@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
package/src/components/card.js
DELETED
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
module.exports = Card = (colors) => ({
|
|
2
|
-
'.sk-card': {
|
|
3
|
-
'@apply bg-white relative rounded-b-cards rounded-cards': {},
|
|
4
|
-
'@apply flex flex-col': {},
|
|
5
|
-
'@apply no-underline hover:no-underline': {},
|
|
6
|
-
'@apply h-[100%]': {},
|
|
7
|
-
|
|
8
|
-
'&-wrapper': {
|
|
9
|
-
'@apply grid': {},
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
'&-image': {
|
|
13
|
-
'@apply object-cover grow': {},
|
|
14
|
-
'@apply rounded-t-cards': {},
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
'&-body': {
|
|
18
|
-
'@apply px-24 pb-24 pt-16 rounded-b-cards': {},
|
|
19
|
-
'@apply shrink': {},
|
|
20
|
-
|
|
21
|
-
'&-wrapper': {
|
|
22
|
-
'@apply flex': {},
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
'&-meta': {
|
|
26
|
-
'@apply flex space-x-12 mt-16': {},
|
|
27
|
-
span: {
|
|
28
|
-
'@apply flex space-x-4 items-center': {},
|
|
29
|
-
time: {
|
|
30
|
-
'@apply h-[23px] leading-[24px]': {},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
'&.sk-card-image': {
|
|
35
|
-
backgroundColor: 'green',
|
|
36
|
-
'@apply h-[278px]': {},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
'&-header': {
|
|
41
|
-
'h1, h2, h3, h4, h5, h6, h7, a': {
|
|
42
|
-
'@apply line-clamp-1 text-h3-md text-dark-primary mt-16': {},
|
|
43
|
-
},
|
|
44
|
-
span: {
|
|
45
|
-
'@apply pl-12': {},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
'&-content': {
|
|
50
|
-
'@apply w-full': {},
|
|
51
|
-
'p, a': {
|
|
52
|
-
'@apply line-clamp-3 m-0 pt-8 text-base': {},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
'&-icon': {
|
|
57
|
-
'@apply hidden': {},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
...colors.reduce(
|
|
62
|
-
(styles, color) => ({
|
|
63
|
-
...styles,
|
|
64
|
-
|
|
65
|
-
'&[data-color="mono"], &[data-color="tertiary"]': {
|
|
66
|
-
'@apply border-solid border-1': {},
|
|
67
|
-
'@apply border-primitives-overlay-darken-5 dark:border-primitives-overlay-lighten-5': {},
|
|
68
|
-
'@apply bg-primitives-gray-lightest dark:bg-primitives-gray-800': {},
|
|
69
|
-
|
|
70
|
-
'.sk-card-body-meta': {
|
|
71
|
-
'@apply text-dark-secondary': {},
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
'.sk-card-body-icon': {
|
|
75
|
-
'@apply bg-primitives-overlay-darken-9 dark:bg-primitives-overlay-lighten-10': {},
|
|
76
|
-
'@apply text-primitives-gray-lightest dark:text-primitives-overlay-darken-9': {},
|
|
77
|
-
'@apply hover:bg-primitives-overlay-darken-10 dark:hover:bg-primitives-gray-lightest': {},
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
// inverted.
|
|
81
|
-
[`&[data-inverted="true"]`]: {
|
|
82
|
-
'@apply bg-primitives-gray-800': {},
|
|
83
|
-
|
|
84
|
-
'.sk-card-body': {
|
|
85
|
-
// Meta
|
|
86
|
-
'&-meta': {
|
|
87
|
-
span: {
|
|
88
|
-
'@apply text-light-secondary': {},
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
// header
|
|
93
|
-
'&-header': {
|
|
94
|
-
'h1, h2, h3, h4, h5, h6, h7, a': {
|
|
95
|
-
[`@apply text-light-primary`]: {},
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
// Content
|
|
100
|
-
'&-content': {
|
|
101
|
-
'p, a': {
|
|
102
|
-
[`@apply text-light-secondary`]: {},
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
'.sk-card-body-icon': {
|
|
107
|
-
'@apply bg-primitives-overlay-lighten-10 text-primitives-gray-900': {},
|
|
108
|
-
'@apply hover:bg-primitives-gray-lightest': {},
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
'&[data-color="tertiary"]': {
|
|
115
|
-
'@apply border-solid border-1': {},
|
|
116
|
-
'@apply border-primitives-overlay-darken-5 dark:border-primitives-overlay-lighten-5': {},
|
|
117
|
-
'@apply bg-primitives-gray-50 dark:bg-primitives-gray-700': {},
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
[`&[data-color="${color}"]`]: {
|
|
121
|
-
// card
|
|
122
|
-
[`@apply bg-${color}-surface-primary-hover`]: {},
|
|
123
|
-
|
|
124
|
-
// clickable
|
|
125
|
-
'&.sk-card-use-hover-effect': {
|
|
126
|
-
// hover
|
|
127
|
-
[`@apply hover:cursor-pointer hover:bg-${color}-surface-primary`]: {},
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
// Meta
|
|
131
|
-
'.sk-card-body': {
|
|
132
|
-
'&-meta': {
|
|
133
|
-
span: {
|
|
134
|
-
'@apply text-light-secondary': {},
|
|
135
|
-
},
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
// header
|
|
139
|
-
'&-header': {
|
|
140
|
-
'h1, h2, h3, h4, h5, h6, h7, a': {
|
|
141
|
-
[`@apply text-light-primary`]: {},
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
// Content
|
|
146
|
-
'&-content': {
|
|
147
|
-
'p, a': {
|
|
148
|
-
[`@apply text-light-secondary`]: {},
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
// inverted.
|
|
154
|
-
[`&[data-inverted="true"]`]: {
|
|
155
|
-
// card
|
|
156
|
-
[`@apply bg-${color}-surface-accent-hover`]: {},
|
|
157
|
-
|
|
158
|
-
// clickable
|
|
159
|
-
'&.sk-card-use-hover-effect': {
|
|
160
|
-
// hover
|
|
161
|
-
[`@apply hover:cursor-pointer hover:bg-${color}-surface-accent`]: {},
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
'.sk-card-body': {
|
|
165
|
-
// Meta
|
|
166
|
-
'&-meta': {
|
|
167
|
-
span: {
|
|
168
|
-
'@apply text-dark-secondary': {},
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
// header
|
|
173
|
-
'&-header': {
|
|
174
|
-
'h1, h2, h3, h4, h5, h6, h7, a': {
|
|
175
|
-
[`@apply text-dark-primary`]: {},
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
|
|
179
|
-
// Content
|
|
180
|
-
'&-content': {
|
|
181
|
-
'p, a': {
|
|
182
|
-
[`@apply text-dark-secondary`]: {},
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
},
|
|
188
|
-
}),
|
|
189
|
-
{}
|
|
190
|
-
),
|
|
191
|
-
|
|
192
|
-
// clickable
|
|
193
|
-
'&.sk-card-use-hover-effect': {
|
|
194
|
-
//Hide and show of icon
|
|
195
|
-
'.sk-card-body-icon': {
|
|
196
|
-
'@apply inline-flex': {},
|
|
197
|
-
'@apply mt-auto mb-auto mr-24': {},
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
[`&[data-layout="horizontal"]`]: {
|
|
202
|
-
'@apply flex-row h-[100%]': {},
|
|
203
|
-
|
|
204
|
-
'.sk-card': {
|
|
205
|
-
'&-image': {
|
|
206
|
-
'@apply h-[100%] w-[128px]': {},
|
|
207
|
-
'@apply float-left': {},
|
|
208
|
-
'@apply rounded-none rounded-l-cards grow-0': {},
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
'&-body': {
|
|
212
|
-
'@apply w-[100%]': {},
|
|
213
|
-
'@apply border-none': {},
|
|
214
|
-
|
|
215
|
-
'&-wrapper': {
|
|
216
|
-
'@apply w-[100%]': {},
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
'&-content': {
|
|
220
|
-
'p, a': {
|
|
221
|
-
'@apply text-small': {},
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
|
|
225
|
-
'&-meta': {
|
|
226
|
-
'@apply hidden': {},
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
'.sk-card-link': {
|
|
234
|
-
'@apply hover:cursor-pointer': {},
|
|
235
|
-
|
|
236
|
-
'&::after': {
|
|
237
|
-
content: "''",
|
|
238
|
-
position: 'absolute',
|
|
239
|
-
left: '0',
|
|
240
|
-
top: '0',
|
|
241
|
-
right: '0',
|
|
242
|
-
bottom: '0',
|
|
243
|
-
},
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* Meta card
|
|
248
|
-
*/
|
|
249
|
-
'.sk-meta-card': {
|
|
250
|
-
'@apply no-underline hover:no-underline': {},
|
|
251
|
-
'@apply flex bg-vattjom-surface-accent': {},
|
|
252
|
-
'@apply p-14 rounded-16 w-[454px]': {},
|
|
253
|
-
|
|
254
|
-
'&[data-color="mono"]': {
|
|
255
|
-
'@apply bg-primitives-overlay-darken-1 dark:bg-primitives-overlay-lighten-1': {},
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
-
'&[data-color="vattjom"]': {
|
|
259
|
-
'@apply bg-vattjom-background-200': {},
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
'&-text-icon': {
|
|
263
|
-
'@apply mr-12 rounded-12 p-8': {},
|
|
264
|
-
'@apply bg-primitives-gray-lightest dark:bg-primitives-gray-800': {},
|
|
265
|
-
'@apply text-dark': {},
|
|
266
|
-
svg: {
|
|
267
|
-
height: 'unset',
|
|
268
|
-
width: 'unset',
|
|
269
|
-
},
|
|
270
|
-
},
|
|
271
|
-
|
|
272
|
-
'&-body': {
|
|
273
|
-
'&-header': {
|
|
274
|
-
'h1, h2, h3, h4, h5, h6, h7, a, p': {
|
|
275
|
-
'@apply mt-6 text-base line-clamp-1': {},
|
|
276
|
-
'@apply text-dark-primary': {},
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
|
|
280
|
-
'&-content': {
|
|
281
|
-
'p, a': {
|
|
282
|
-
'@apply text-primitives-gray-700 dark:text-primitives-gray-200': {},
|
|
283
|
-
'@apply text-dark-secondary line-clamp-1': {},
|
|
284
|
-
},
|
|
285
|
-
},
|
|
286
|
-
},
|
|
287
|
-
|
|
288
|
-
'&-external-link-icon': {
|
|
289
|
-
'@apply ml-auto h-[32px] w-[32px]': {},
|
|
290
|
-
'@apply p-6 text-dark': {},
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
});
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
module.exports = Checkbox = () => ({
|
|
2
|
-
'.sk-form-checkbox': {
|
|
3
|
-
'@apply bg-inherit': {},
|
|
4
|
-
'@apply rounded-utility': {},
|
|
5
|
-
'@apply bg-transparent border-transparent': {},
|
|
6
|
-
|
|
7
|
-
// sizing
|
|
8
|
-
'&-sm': {
|
|
9
|
-
'@apply w-[2.4rem] h-[2.4rem]': {},
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
'&-md': {
|
|
13
|
-
'@apply w-[2.4rem] h-[2.4rem]': {},
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
'&-lg': {
|
|
17
|
-
'@apply w-[2.4rem] h-[2.4rem]': {},
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
'+ .sk-icon': {
|
|
21
|
-
'@apply absolute inset-0 my-auto bg-transparent': {},
|
|
22
|
-
'@apply border-[0.1rem] p-2 border-primitives-overlay-darken-6 dark:border-primitives-overlay-lighten-6': {},
|
|
23
|
-
'@apply bg-primitives-overlay-lighten-10 dark:bg-primitives-overlay-darken-6': {},
|
|
24
|
-
|
|
25
|
-
svg: {
|
|
26
|
-
'@apply hidden': {},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
'&&:checked': {
|
|
31
|
-
'@apply text-light-primary bg-none': {},
|
|
32
|
-
|
|
33
|
-
'& + .sk-icon': {
|
|
34
|
-
'@apply text-light-primary bg-dark-primary border-dark-primary': {},
|
|
35
|
-
|
|
36
|
-
svg: {
|
|
37
|
-
'@apply block': {},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
'&&:hover:not(&&-disabled,&&:checked,&&[aria-invalid=true]),&&:hover:focus:not(&&-disabled,&&:checked,&&[aria-invalid=true])':
|
|
43
|
-
{
|
|
44
|
-
'& + .sk-icon, &:focus + .sk-icon': {
|
|
45
|
-
'@apply text-primitives-overlay-darken-6 dark:text-primitives-overlay-lighten-5 border-primitives-overlay-darken-8 dark:border-primitives-overlay-lighten-4':
|
|
46
|
-
{},
|
|
47
|
-
|
|
48
|
-
svg: {
|
|
49
|
-
'@apply block': {},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
'&&[aria-invalid=true]': {
|
|
55
|
-
'& + .sk-icon': {
|
|
56
|
-
'@apply border-2 border-error-surface-primary': {},
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
'&&:checked': {
|
|
60
|
-
'& + .sk-icon': {
|
|
61
|
-
'@apply p-2 bg-background-content text-dark-primary': {},
|
|
62
|
-
|
|
63
|
-
svg: {
|
|
64
|
-
'@apply block': {},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
// disabled
|
|
71
|
-
'&&-disabled,&&-disabled:hover': {
|
|
72
|
-
'@apply cursor-not-allowed': {},
|
|
73
|
-
|
|
74
|
-
'& + .sk-icon': {
|
|
75
|
-
'@apply bg-background-200 border-primitives-overlay-darken-3': {},
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
'&:checked': {
|
|
79
|
-
'& + .sk-icon': {
|
|
80
|
-
'@apply bg-dark-disabled text-light-primary border-0': {},
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
'& ~ .sk-form-checkbox-label': {
|
|
85
|
-
'@apply text-dark-disabled': {},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
// label
|
|
90
|
-
'&-label-left &-label': {
|
|
91
|
-
'@apply mr-[.8rem]': {},
|
|
92
|
-
},
|
|
93
|
-
'&-label-right &-label': {
|
|
94
|
-
'@apply ml-[.8rem]': {},
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
'&-label-left': {
|
|
98
|
-
'.sk-icon': {
|
|
99
|
-
'@apply left-auto right-0': {},
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
'&-label-right': {
|
|
104
|
-
'.sk-icon': {
|
|
105
|
-
'@apply right-auto left-0': {},
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
'&-label': {
|
|
110
|
-
'@apply font-normal text-body select-none text-small': {},
|
|
111
|
-
|
|
112
|
-
'&-wrapper': {
|
|
113
|
-
'@apply relative inline-flex align-top items-center cursor-base': {},
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
'&-sm': {
|
|
117
|
-
'@apply text-small': {},
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
'&-md': {
|
|
121
|
-
'@apply text-base': {},
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
'&-lg': {
|
|
125
|
-
'@apply text-large': {},
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
'&-group': {
|
|
130
|
-
'@apply flex flex-col gap-16 my-12': {},
|
|
131
|
-
'&[data-direction="row"]': {
|
|
132
|
-
'@apply flex-row': {},
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
});
|
package/src/components/code.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
module.exports = Code = () => ({
|
|
2
|
-
'.code': {
|
|
3
|
-
'@apply inline-flex justify-center items-center capitalize text-xs rounded-sm font-mono break-all': {},
|
|
4
|
-
'@apply bg-neutral-200 border border-neutral-100 text-body': {},
|
|
5
|
-
// dark
|
|
6
|
-
'@apply dark:bg-neutral-700 dark:border-neutral-600 dark:text-neutral-300': {},
|
|
7
|
-
padding: '2px 3px 1px',
|
|
8
|
-
},
|
|
9
|
-
});
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
module.exports = ComboBox = () => ({
|
|
2
|
-
'.sk-form-combobox': {
|
|
3
|
-
'@apply focus-within:ring ring-ring ring-offset': {},
|
|
4
|
-
'@apply relative w-auto': {},
|
|
5
|
-
'@apply inline-block': {},
|
|
6
|
-
'&-sm': {
|
|
7
|
-
'@apply h-[3.2rem]': {},
|
|
8
|
-
'@apply rounded-button-sm': {},
|
|
9
|
-
'.sk-form-combobox-select.active': {
|
|
10
|
-
'@apply text-input-small': {},
|
|
11
|
-
'@apply pr-[5.2rem]': {},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
'&-md': {
|
|
15
|
-
'@apply h-[4rem]': {},
|
|
16
|
-
'@apply rounded-button-md': {},
|
|
17
|
-
'.sk-form-combobox-select.active': {
|
|
18
|
-
'@apply text-input-medium': {},
|
|
19
|
-
'@apply pr-[6.1rem]': {},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
'&-lg': {
|
|
23
|
-
'@apply h-[4.8rem]': {},
|
|
24
|
-
'@apply rounded-button-lg': {},
|
|
25
|
-
'.sk-form-combobox-select.active': {
|
|
26
|
-
'@apply text-input-large': {},
|
|
27
|
-
'@apply pr-[6.8rem]': {},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
'&-select': {
|
|
32
|
-
'@apply h-full bg-right-12 bg-no-repeat': {},
|
|
33
|
-
|
|
34
|
-
'&.sk-form-select': { '@apply focus:outline-none focus:ring-0 focus:ring-transparent': {} },
|
|
35
|
-
'@apply w-full': {},
|
|
36
|
-
|
|
37
|
-
'&:not(.active)': {
|
|
38
|
-
'@apply cursor-default': {},
|
|
39
|
-
},
|
|
40
|
-
'@apply focus:border-transparent': {},
|
|
41
|
-
'@apply focus:hover:border-transparent': {},
|
|
42
|
-
'&.active': {
|
|
43
|
-
'@apply bg-primitives-overlay-lighten-10': {},
|
|
44
|
-
'@apply dark:bg-primitives-overlay-darken-6': {},
|
|
45
|
-
'@apply placeholder:text-dark-placeholder': {},
|
|
46
|
-
'@apply text-dark-primary': {},
|
|
47
|
-
'@apply border-transparent': {},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
'&-list': {
|
|
51
|
-
'@apply w-full': {},
|
|
52
|
-
'@apply max-h-[23rem] overflow-y-auto': {},
|
|
53
|
-
'&-option': {
|
|
54
|
-
'&.sk-popup-menu-item': {
|
|
55
|
-
'@apply cursor-default': {},
|
|
56
|
-
'@apply leading-none': {},
|
|
57
|
-
'@apply h-auto': {},
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
'&-checkbox': {
|
|
61
|
-
'@apply w-0 h-0 m-0 p-0 opacity-0': {},
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
});
|
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
});
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
module.exports = ContextMenu = () => ({
|
|
2
|
-
'.context-menu-wrapper': {
|
|
3
|
-
'@apply relative inline': {},
|
|
4
|
-
|
|
5
|
-
'> a, > button': {
|
|
6
|
-
'@apply inline-flex': {},
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
'.context-menu-items': {
|
|
10
|
-
'@apply absolute rounded bg-white border border-body z-10 drop-shadow-md mt-sm flex flex-col justify-start items-start':
|
|
11
|
-
{},
|
|
12
|
-
'.context-menu-item': {
|
|
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': {},
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
module.exports = CookieConsent = () => ({
|
|
2
|
-
'.sk-cookie-consent': {
|
|
3
|
-
'@apply min-w-full fixed flex justify-center z-10 bottom-0 left-0 right-0': {},
|
|
4
|
-
'@apply bg-background-content': {},
|
|
5
|
-
'@apply p-40': {},
|
|
6
|
-
'@apply pt-24': {},
|
|
7
|
-
|
|
8
|
-
'&-wrapper': {
|
|
9
|
-
'@apply fixed inset-0 z-20 overflow-y-auto': {},
|
|
10
|
-
'@apply bg-primitives-overlay-darken-6': {},
|
|
11
|
-
'@apply dark:bg-primitives-overlay-darken-8': {},
|
|
12
|
-
},
|
|
13
|
-
'&-close-btn': {
|
|
14
|
-
// '@apply cursor-pointer hover:text-dark-secondary absolute right-8 top-6 border border-transparent focus-visible:border-black flex self-center':
|
|
15
|
-
// {},
|
|
16
|
-
|
|
17
|
-
'&-icon': {
|
|
18
|
-
// '@apply !text-2xl': {},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
'&-content-wrapper': {
|
|
23
|
-
'@apply flex flex-col gap-24 container max-w-[102.4rem] relative': {},
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
'&-body': {
|
|
27
|
-
'@apply flex flex-col gap-8': {},
|
|
28
|
-
'@apply max-w-[80rem]': {},
|
|
29
|
-
},
|
|
30
|
-
'&-title': {
|
|
31
|
-
'@apply text-h2-sm md:text-h2-md xl:text-h2-lg': {},
|
|
32
|
-
},
|
|
33
|
-
'&-custom-wrapper': {
|
|
34
|
-
'@apply flex flex-col gap-24': {},
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
'&-description': {
|
|
38
|
-
'@apply text-base flex flex-col gap-8': {},
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
'&-btn-wrapper': {
|
|
42
|
-
'@apply flex flex-col md:flex-row gap-12 flex-wrap': {},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
});
|
package/src/components/dialog.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
module.exports = Divider = () => ({
|
|
2
|
-
'.sk-divider': {
|
|
3
|
-
'@apply border-t-0 border-divider': {},
|
|
4
|
-
'&-vertical': {
|
|
5
|
-
'@apply min-h-[1em] border-l-1 border-solid h-auto ml-4 mt-8 mb-4 mr-4 self-stretch': {},
|
|
6
|
-
'&[data-strong="true"]': {
|
|
7
|
-
'@apply border-l border-solid h-auto mx-2': {},
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
'&-horizontal': {
|
|
11
|
-
'@apply flex-1 border-b-1 border-solid w-auto my-2': {},
|
|
12
|
-
'&[data-strong="true"]': {
|
|
13
|
-
'@apply border-b border-solid w-auto my-2': {},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
'&-root': {
|
|
18
|
-
'@apply flex items-center gap-16': {},
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
'&-sm': {
|
|
22
|
-
'&.sk-divider': {
|
|
23
|
-
'&-root': {
|
|
24
|
-
'@apply gap-[.8rem]': {},
|
|
25
|
-
},
|
|
26
|
-
'.sk-divider-text': {
|
|
27
|
-
'@apply text-label-small': {},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
'&-md': {
|
|
32
|
-
'&.sk-divider': {
|
|
33
|
-
'&-root': {
|
|
34
|
-
'@apply gap-[1rem]': {},
|
|
35
|
-
},
|
|
36
|
-
'.sk-divider-text': {
|
|
37
|
-
'@apply text-label-medium': {},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
'&-lg': {
|
|
42
|
-
'&.sk-divider': {
|
|
43
|
-
'&-root': {
|
|
44
|
-
'@apply gap-[1.2rem]': {},
|
|
45
|
-
},
|
|
46
|
-
'.sk-divider-text': {
|
|
47
|
-
'@apply text-label-large': {},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
});
|