@sk-web-gui/core 0.1.93 → 1.0.1
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/base.js +21 -40
- package/dist/cjs/base.js.map +1 -1
- package/dist/cjs/colors.js +629 -123
- package/dist/cjs/colors.js.map +1 -1
- package/dist/cjs/components/accordion.js +52 -141
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/alert-banner.js +1 -1
- package/dist/cjs/components/alert-banner.js.map +1 -1
- package/dist/cjs/components/alert.js +6 -6
- package/dist/cjs/components/alert.js.map +1 -1
- package/dist/cjs/components/avatar.js +28 -63
- package/dist/cjs/components/avatar.js.map +1 -1
- package/dist/cjs/components/badge.js +21 -165
- package/dist/cjs/components/badge.js.map +1 -1
- package/dist/cjs/components/breadcrumb.js +15 -3
- package/dist/cjs/components/breadcrumb.js.map +1 -1
- package/dist/cjs/components/button-group.js +20 -33
- package/dist/cjs/components/button-group.js.map +1 -1
- package/dist/cjs/components/button.js +178 -151
- package/dist/cjs/components/button.js.map +1 -1
- package/dist/cjs/components/calendar.js +1 -1
- package/dist/cjs/components/calendar.js.map +1 -1
- package/dist/cjs/components/card.js +200 -39
- package/dist/cjs/components/card.js.map +1 -1
- package/dist/cjs/components/checkbox.js +97 -70
- package/dist/cjs/components/checkbox.js.map +1 -1
- package/dist/cjs/components/combobox.js +67 -0
- package/dist/cjs/components/combobox.js.map +1 -0
- package/dist/cjs/components/comments.js +2 -2
- package/dist/cjs/components/comments.js.map +1 -1
- package/dist/cjs/components/cookie-consent.js +25 -8
- package/dist/cjs/components/cookie-consent.js.map +1 -1
- package/dist/cjs/components/dialog.js +2 -9
- package/dist/cjs/components/dialog.js.map +1 -1
- package/dist/cjs/components/divider.js +43 -5
- package/dist/cjs/components/divider.js.map +1 -1
- package/dist/cjs/components/dot.js +3 -3
- package/dist/cjs/components/dot.js.map +1 -1
- package/dist/cjs/components/filter.js +17 -0
- package/dist/cjs/components/filter.js.map +1 -0
- package/dist/cjs/components/footer.js +22 -22
- package/dist/cjs/components/footer.js.map +1 -1
- package/dist/cjs/components/form-control.js +8 -0
- package/dist/cjs/components/form-control.js.map +1 -0
- package/dist/cjs/components/forms.js +13 -283
- package/dist/cjs/components/forms.js.map +1 -1
- package/dist/cjs/components/header.js +22 -17
- package/dist/cjs/components/header.js.map +1 -1
- package/dist/cjs/components/icon.js +52 -7
- package/dist/cjs/components/icon.js.map +1 -1
- package/dist/cjs/components/input.js +227 -0
- package/dist/cjs/components/input.js.map +1 -0
- package/dist/cjs/components/kbd.js +2 -2
- package/dist/cjs/components/kbd.js.map +1 -1
- package/dist/cjs/components/label.js +26 -0
- package/dist/cjs/components/label.js.map +1 -0
- package/dist/cjs/components/link.js +35 -12
- package/dist/cjs/components/link.js.map +1 -1
- package/dist/cjs/components/list.js +56 -0
- package/dist/cjs/components/list.js.map +1 -0
- package/dist/cjs/components/logo.js +51 -0
- package/dist/cjs/components/logo.js.map +1 -0
- package/dist/cjs/components/menu-vertical.js +234 -0
- package/dist/cjs/components/menu-vertical.js.map +1 -0
- package/dist/cjs/components/menubar.js +1 -1
- package/dist/cjs/components/menubar.js.map +1 -1
- package/dist/cjs/components/modal.js +34 -14
- package/dist/cjs/components/modal.js.map +1 -1
- package/dist/cjs/components/notification.js +2 -2
- package/dist/cjs/components/notification.js.map +1 -1
- package/dist/cjs/components/pagination.js +50 -29
- package/dist/cjs/components/pagination.js.map +1 -1
- package/dist/cjs/components/progress-bar.js +23 -0
- package/dist/cjs/components/progress-bar.js.map +1 -0
- package/dist/cjs/components/radio.js +113 -64
- package/dist/cjs/components/radio.js.map +1 -1
- package/dist/cjs/components/search-field.js +23 -0
- package/dist/cjs/components/search-field.js.map +1 -0
- package/dist/cjs/components/select.js +190 -0
- package/dist/cjs/components/select.js.map +1 -0
- package/dist/cjs/components/side-menu.js +7 -7
- package/dist/cjs/components/side-menu.js.map +1 -1
- package/dist/cjs/components/snackbar.js +6 -0
- package/dist/cjs/components/snackbar.js.map +1 -1
- package/dist/cjs/components/spinner.js +19 -0
- package/dist/cjs/components/spinner.js.map +1 -0
- package/dist/cjs/components/switch.js +46 -75
- package/dist/cjs/components/switch.js.map +1 -1
- package/dist/cjs/components/tabs.js +1 -1
- package/dist/cjs/components/tabs.js.map +1 -1
- package/dist/cjs/components/tag.js +4 -4
- package/dist/cjs/components/tag.js.map +1 -1
- package/dist/cjs/components/tooltip.js +61 -0
- package/dist/cjs/components/tooltip.js.map +1 -0
- package/dist/cjs/components/user-menu.js +7 -50
- package/dist/cjs/components/user-menu.js.map +1 -1
- package/dist/cjs/components/zebratable.js +89 -34
- package/dist/cjs/components/zebratable.js.map +1 -1
- package/dist/cjs/plugin.js +19 -8
- package/dist/cjs/plugin.js.map +1 -1
- package/dist/cjs/theme.js +83 -37
- package/dist/cjs/theme.js.map +1 -1
- package/dist/esm/base.js +21 -40
- package/dist/esm/base.js.map +1 -1
- package/dist/esm/colors.js +629 -123
- package/dist/esm/colors.js.map +1 -1
- package/dist/esm/components/accordion.js +52 -141
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/alert-banner.js +1 -1
- package/dist/esm/components/alert-banner.js.map +1 -1
- package/dist/esm/components/alert.js +5 -11
- package/dist/esm/components/alert.js.map +1 -1
- package/dist/esm/components/avatar.js +32 -63
- package/dist/esm/components/avatar.js.map +1 -1
- package/dist/esm/components/badge.js +27 -172
- package/dist/esm/components/badge.js.map +1 -1
- package/dist/esm/components/breadcrumb.js +19 -2
- package/dist/esm/components/breadcrumb.js.map +1 -1
- package/dist/esm/components/button-group.js +20 -33
- package/dist/esm/components/button-group.js.map +1 -1
- package/dist/esm/components/button.js +185 -200
- package/dist/esm/components/button.js.map +1 -1
- package/dist/esm/components/calendar.js +1 -1
- package/dist/esm/components/calendar.js.map +1 -1
- package/dist/esm/components/card.js +233 -39
- package/dist/esm/components/card.js.map +1 -1
- package/dist/esm/components/checkbox.js +83 -93
- package/dist/esm/components/checkbox.js.map +1 -1
- package/dist/esm/components/combobox.js +65 -0
- package/dist/esm/components/combobox.js.map +1 -0
- package/dist/esm/components/comments.js +2 -2
- package/dist/esm/components/comments.js.map +1 -1
- package/dist/esm/components/cookie-consent.js +25 -8
- package/dist/esm/components/cookie-consent.js.map +1 -1
- package/dist/esm/components/dialog.js +2 -9
- package/dist/esm/components/dialog.js.map +1 -1
- package/dist/esm/components/divider.js +43 -5
- package/dist/esm/components/divider.js.map +1 -1
- package/dist/esm/components/dot.js +3 -4
- package/dist/esm/components/dot.js.map +1 -1
- package/dist/esm/components/filter.js +15 -0
- package/dist/esm/components/filter.js.map +1 -0
- package/dist/esm/components/footer.js +22 -24
- package/dist/esm/components/footer.js.map +1 -1
- package/dist/esm/components/form-control.js +6 -0
- package/dist/esm/components/form-control.js.map +1 -0
- package/dist/esm/components/forms.js +15 -289
- package/dist/esm/components/forms.js.map +1 -1
- package/dist/esm/components/header.js +16 -18
- package/dist/esm/components/header.js.map +1 -1
- package/dist/esm/components/icon.js +57 -7
- package/dist/esm/components/icon.js.map +1 -1
- package/dist/esm/components/input.js +225 -0
- package/dist/esm/components/input.js.map +1 -0
- package/dist/esm/components/kbd.js +2 -2
- package/dist/esm/components/kbd.js.map +1 -1
- package/dist/esm/components/label.js +30 -0
- package/dist/esm/components/label.js.map +1 -0
- package/dist/esm/components/link.js +35 -12
- package/dist/esm/components/link.js.map +1 -1
- package/dist/esm/components/list.js +54 -0
- package/dist/esm/components/list.js.map +1 -0
- package/dist/esm/components/logo.js +49 -0
- package/dist/esm/components/logo.js.map +1 -0
- package/dist/esm/components/menu-vertical.js +228 -0
- package/dist/esm/components/menu-vertical.js.map +1 -0
- package/dist/esm/components/menubar.js +1 -1
- package/dist/esm/components/menubar.js.map +1 -1
- package/dist/esm/components/modal.js +34 -14
- package/dist/esm/components/modal.js.map +1 -1
- package/dist/esm/components/notification.js +2 -2
- package/dist/esm/components/notification.js.map +1 -1
- package/dist/esm/components/pagination.js +50 -29
- package/dist/esm/components/pagination.js.map +1 -1
- package/dist/esm/components/progress-bar.js +25 -0
- package/dist/esm/components/progress-bar.js.map +1 -0
- package/dist/esm/components/radio.js +113 -68
- package/dist/esm/components/radio.js.map +1 -1
- package/dist/esm/components/search-field.js +21 -0
- package/dist/esm/components/search-field.js.map +1 -0
- package/dist/esm/components/select.js +188 -0
- package/dist/esm/components/select.js.map +1 -0
- package/dist/esm/components/side-menu.js +7 -7
- package/dist/esm/components/side-menu.js.map +1 -1
- package/dist/esm/components/snackbar.js +6 -0
- package/dist/esm/components/snackbar.js.map +1 -1
- package/dist/esm/components/spinner.js +18 -0
- package/dist/esm/components/spinner.js.map +1 -0
- package/dist/esm/components/switch.js +53 -80
- package/dist/esm/components/switch.js.map +1 -1
- package/dist/esm/components/tabs.js +1 -1
- package/dist/esm/components/tabs.js.map +1 -1
- package/dist/esm/components/tag.js +4 -4
- package/dist/esm/components/tag.js.map +1 -1
- package/dist/esm/components/tooltip.js +59 -0
- package/dist/esm/components/tooltip.js.map +1 -0
- package/dist/esm/components/user-menu.js +7 -50
- package/dist/esm/components/user-menu.js.map +1 -1
- package/dist/esm/components/zebratable.js +89 -34
- package/dist/esm/components/zebratable.js.map +1 -1
- package/dist/esm/plugin.js +19 -8
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/theme.js +85 -37
- package/dist/esm/theme.js.map +1 -1
- package/package.json +5 -5
- package/src/base.js +28 -28
- package/src/colors.js +631 -132
- package/src/components/accordion.js +53 -161
- package/src/components/alert-banner.js +1 -2
- package/src/components/alert.js +5 -13
- package/src/components/avatar.js +36 -82
- package/src/components/badge.js +33 -200
- package/src/components/breadcrumb.js +22 -2
- package/src/components/button-group.js +17 -32
- package/src/components/button.js +197 -212
- package/src/components/card.js +273 -34
- package/src/components/checkbox.js +95 -93
- package/src/components/combobox.js +66 -0
- package/src/components/comments.js +31 -27
- package/src/components/cookie-consent.js +24 -9
- package/src/components/dialog.js +2 -9
- package/src/components/divider.js +45 -5
- package/src/components/dot.js +3 -4
- package/src/components/filter.js +16 -0
- package/src/components/footer.js +20 -33
- package/src/components/forms.js +14 -360
- package/src/components/header.js +15 -22
- package/src/components/icon.js +75 -6
- package/src/components/input.js +244 -0
- package/src/components/kbd.js +1 -1
- package/src/components/label.js +37 -0
- package/src/components/link.js +38 -12
- package/src/components/list.js +61 -0
- package/src/components/logo.js +49 -0
- package/src/components/menu-vertical.js +293 -0
- package/src/components/menubar.js +56 -0
- package/src/components/modal.js +35 -18
- package/src/components/notification.js +2 -2
- package/src/components/pagination.js +54 -31
- package/src/components/popup-menu.js +111 -0
- package/src/components/progress-bar.js +31 -0
- package/src/components/progress-stepper.js +50 -0
- package/src/components/radio.js +114 -80
- package/src/components/search-field.js +20 -0
- package/src/components/select.js +203 -0
- package/src/components/side-menu.js +7 -7
- package/src/components/snackbar.js +34 -0
- package/src/components/spinner.js +23 -0
- package/src/components/switch.js +54 -88
- package/src/components/tabs.js +1 -1
- package/src/components/tooltip.js +64 -0
- package/src/components/user-menu.js +7 -59
- package/src/components/zebratable.js +92 -41
- package/src/plugin.js +37 -15
- package/src/theme.js +105 -31
- package/src/units.js +212 -0
- package/src/components/calendar.js +0 -78
- package/src/components/message.js +0 -60
- package/src/components/profile-picture.js +0 -14
- package/src/components/profile.js +0 -33
- package/src/components/search-bar.js +0 -5
- package/src/components/tag.js +0 -96
|
@@ -1,30 +1,45 @@
|
|
|
1
1
|
module.exports = CookieConsent = () => ({
|
|
2
|
-
'.cookie-consent': {
|
|
3
|
-
'@apply min-w-full fixed flex justify-center z-10 bottom-0 left-0 right-0
|
|
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': {},
|
|
4
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
|
+
},
|
|
5
13
|
'&-close-btn': {
|
|
6
|
-
'@apply cursor-pointer hover:text-
|
|
7
|
-
|
|
14
|
+
// '@apply cursor-pointer hover:text-dark-secondary absolute right-8 top-6 border border-transparent focus-visible:border-black flex self-center':
|
|
15
|
+
// {},
|
|
8
16
|
|
|
9
17
|
'&-icon': {
|
|
10
|
-
'@apply !text-2xl': {},
|
|
18
|
+
// '@apply !text-2xl': {},
|
|
11
19
|
},
|
|
12
20
|
},
|
|
13
21
|
|
|
14
22
|
'&-content-wrapper': {
|
|
15
|
-
'@apply flex flex-col container
|
|
23
|
+
'@apply flex flex-col gap-24 container max-w-[102.4rem] relative': {},
|
|
16
24
|
},
|
|
17
25
|
|
|
26
|
+
'&-body': {
|
|
27
|
+
'@apply flex flex-col gap-8': {},
|
|
28
|
+
'@apply max-w-[80rem]': {},
|
|
29
|
+
},
|
|
18
30
|
'&-title': {
|
|
19
|
-
'@apply text-
|
|
31
|
+
'@apply text-h2-sm md:text-h2-md xl:text-h2-lg': {},
|
|
32
|
+
},
|
|
33
|
+
'&-custom-wrapper': {
|
|
34
|
+
'@apply flex flex-col gap-24': {},
|
|
20
35
|
},
|
|
21
36
|
|
|
22
37
|
'&-description': {
|
|
23
|
-
'@apply text-base
|
|
38
|
+
'@apply text-base flex flex-col gap-8': {},
|
|
24
39
|
},
|
|
25
40
|
|
|
26
41
|
'&-btn-wrapper': {
|
|
27
|
-
'@apply flex flex-col
|
|
42
|
+
'@apply flex flex-col md:flex-row gap-12 flex-wrap': {},
|
|
28
43
|
},
|
|
29
44
|
},
|
|
30
45
|
});
|
package/src/components/dialog.js
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
module.exports = Dialog = () => ({
|
|
2
|
-
'.dialog': {
|
|
3
|
-
'@apply w-fit max-w-prose': {},
|
|
4
|
-
'&-buttons': {
|
|
5
|
-
'@apply grid grid-flow-col gap-lg place-content-stretch': {},
|
|
6
|
-
gridAutoColumns: 'minmax(0, 1fr)',
|
|
7
|
-
},
|
|
8
|
-
'&-content': {
|
|
9
|
-
'@apply text-center mb-lg': {},
|
|
10
|
-
},
|
|
2
|
+
'.sk-dialog': {
|
|
3
|
+
'@apply w-fit max-w-prose md:min-w-[40rem]': {},
|
|
11
4
|
},
|
|
12
5
|
});
|
|
@@ -1,12 +1,52 @@
|
|
|
1
1
|
module.exports = Divider = () => ({
|
|
2
|
-
'.divider': {
|
|
3
|
-
'@apply border-0 border-
|
|
4
|
-
//borderColor: "inherit",
|
|
2
|
+
'.sk-divider': {
|
|
3
|
+
'@apply border-t-0 border-divider': {},
|
|
5
4
|
'&-vertical': {
|
|
6
|
-
'@apply border-l border-solid h-auto
|
|
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
|
+
},
|
|
7
9
|
},
|
|
8
10
|
'&-horizontal': {
|
|
9
|
-
'@apply border-b border-solid w-auto my-2': {},
|
|
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
|
+
},
|
|
10
50
|
},
|
|
11
51
|
},
|
|
12
52
|
});
|
package/src/components/dot.js
CHANGED
|
@@ -8,7 +8,7 @@ module.exports = Dot = (colors) => ({
|
|
|
8
8
|
(styles, color) => ({
|
|
9
9
|
...styles,
|
|
10
10
|
[`&[data-color="${color}"]`]: {
|
|
11
|
-
[`@apply bg-${color}-
|
|
11
|
+
[`@apply bg-${color}-surface-primary`]: {},
|
|
12
12
|
},
|
|
13
13
|
}),
|
|
14
14
|
{}
|
|
@@ -23,8 +23,7 @@ module.exports = Dot = (colors) => ({
|
|
|
23
23
|
(styles, color) => ({
|
|
24
24
|
...styles,
|
|
25
25
|
[`&.dot-bordered[data-color="${color}"]`]: {
|
|
26
|
-
[`@apply border-${color}-
|
|
27
|
-
[`@apply dark:border-${color}-300`]: {},
|
|
26
|
+
[`@apply border-${color}-background-200`]: {},
|
|
28
27
|
},
|
|
29
28
|
}),
|
|
30
29
|
{}
|
|
@@ -38,7 +37,7 @@ module.exports = Dot = (colors) => ({
|
|
|
38
37
|
(styles, color) => ({
|
|
39
38
|
...styles,
|
|
40
39
|
[`&[data-color="${color}"]`]: {
|
|
41
|
-
[`@apply border-${color}-
|
|
40
|
+
[`@apply border-${color}-surface-primary`]: {},
|
|
42
41
|
},
|
|
43
42
|
}),
|
|
44
43
|
{}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module.exports = Filter = () => ({
|
|
2
|
+
'.sk-filter': {
|
|
3
|
+
'@apply w-full': {},
|
|
4
|
+
|
|
5
|
+
'&-label': {
|
|
6
|
+
'@apply text-label-medium': {},
|
|
7
|
+
},
|
|
8
|
+
|
|
9
|
+
'.sk-form-checkbox-label': {
|
|
10
|
+
'@apply grow flex items-center justify-between': {},
|
|
11
|
+
'&-wrapper': {
|
|
12
|
+
'@apply w-full': {},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
});
|
package/src/components/footer.js
CHANGED
|
@@ -1,41 +1,28 @@
|
|
|
1
|
-
module.exports = Footer = (
|
|
2
|
-
'.footer': {
|
|
3
|
-
'
|
|
4
|
-
|
|
1
|
+
module.exports = Footer = () => ({
|
|
2
|
+
'.sk-footer': {
|
|
3
|
+
'@apply bg-background-content': {},
|
|
4
|
+
'@apply flex justify-center': {},
|
|
5
|
+
'@apply w-full': {},
|
|
6
|
+
'@apply p-20 sm:p-32 md:p-40 lg:p-48 xl:p-80': {},
|
|
7
|
+
'@apply text-dark-secondary': {},
|
|
5
8
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
}),
|
|
13
|
-
{}
|
|
14
|
-
),
|
|
9
|
+
'&-innerwrapper': {
|
|
10
|
+
'@apply w-full max-w-content': {},
|
|
11
|
+
'@apply pb-20 sm:pb-32 md:pb-40 lg:pb-48 xl:pb-80': {},
|
|
12
|
+
'@apply flex flex-row flex-wrap gap-[10rem]': {},
|
|
13
|
+
'@apply justify-between': {},
|
|
15
14
|
},
|
|
16
15
|
|
|
16
|
+
'&-logo': {
|
|
17
|
+
'@apply max-h-[7.2rem] h-[7.2rem]': {},
|
|
18
|
+
},
|
|
17
19
|
'&-content': {
|
|
18
|
-
'@apply
|
|
20
|
+
'@apply flex flex-row gap-36 w-fit grow-0 flex-wrap': {},
|
|
19
21
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
'
|
|
23
|
-
|
|
24
|
-
...colors.reduce(
|
|
25
|
-
(styles, color) => ({
|
|
26
|
-
...styles,
|
|
27
|
-
[`&[data-color="${color}"]`]: {
|
|
28
|
-
[`@apply bg-${color}`]: {},
|
|
29
|
-
},
|
|
30
|
-
}),
|
|
31
|
-
{}
|
|
32
|
-
),
|
|
33
|
-
|
|
34
|
-
'&-container': {
|
|
35
|
-
'@apply px-md flex items-center items-center justify-center m-auto md:space-x-10 flex-col md:flex-row': {},
|
|
36
|
-
'> *': {
|
|
37
|
-
'@apply text-body text-sm leading-sm py-sm': {},
|
|
38
|
-
},
|
|
22
|
+
'&-list': {
|
|
23
|
+
'@apply flex flex-col gap-16': {},
|
|
24
|
+
'&-item': {
|
|
25
|
+
'@apply flex flex-row justify-start items-center gap-8': {},
|
|
39
26
|
},
|
|
40
27
|
},
|
|
41
28
|
},
|
package/src/components/forms.js
CHANGED
|
@@ -1,373 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
'
|
|
4
|
-
|
|
5
|
-
'@apply text-gray bg-white': {},
|
|
6
|
-
|
|
7
|
-
...colors.reduce(
|
|
8
|
-
(styles, color) => ({
|
|
9
|
-
...styles,
|
|
10
|
-
[`&[data-color="${color}"]`]: {
|
|
11
|
-
[`@apply focus-visible:border-${color} focus-visible:ring-${color}`]: {},
|
|
12
|
-
[`@apply dark:focus-visible:border-${color} dark:focus-visible:ring-${color}`]: {},
|
|
13
|
-
},
|
|
14
|
-
}),
|
|
15
|
-
{}
|
|
16
|
-
),
|
|
17
|
-
|
|
18
|
-
'&[aria-invalid=true]': {
|
|
19
|
-
'@apply border-error ring-error': {},
|
|
20
|
-
|
|
21
|
-
'&:focus-visible': {
|
|
22
|
-
'@apply border-error ring-error': {},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function fieldSolid(colors) {
|
|
30
|
-
return {
|
|
31
|
-
'&-solid': {
|
|
32
|
-
'@apply border border-transparent': {},
|
|
33
|
-
'@apply text-black bg-gray-light': {},
|
|
34
|
-
|
|
35
|
-
...colors.reduce(
|
|
36
|
-
(styles, color) => ({
|
|
37
|
-
...styles,
|
|
38
|
-
[`&[data-color="${color}"]`]: {
|
|
39
|
-
[`@apply focus-visible:border-${color} focus-visible:ring-${color}`]: {},
|
|
40
|
-
[`@apply dark:focus-visible:border-${color} dark:focus-visible:ring-${color}`]: {},
|
|
41
|
-
},
|
|
42
|
-
}),
|
|
43
|
-
{}
|
|
44
|
-
),
|
|
45
|
-
|
|
46
|
-
'&[aria-invalid=true]': {
|
|
47
|
-
'@apply border-error ring-error': {},
|
|
48
|
-
|
|
49
|
-
'&:focus-visible': {
|
|
50
|
-
'@apply border-error ring-error': {},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function formControl() {
|
|
58
|
-
return {
|
|
59
|
-
'.form-control': {
|
|
60
|
-
'@apply w-full relative': {},
|
|
61
|
-
},
|
|
62
|
-
'.form-helper-text': {
|
|
63
|
-
'@apply mt-1.5 leading-none text-gray dark:text-white/60': {},
|
|
64
|
-
},
|
|
65
|
-
'.form-error-message': {
|
|
66
|
-
'@apply mt-1.5 leading-none flex items-center text-sm text-error': {},
|
|
67
|
-
},
|
|
68
|
-
'.form-label': {
|
|
69
|
-
'@apply text-sm font-medium text-left align-middle block mb-1.5': {},
|
|
70
|
-
},
|
|
71
|
-
'.form-required-indicator': {
|
|
72
|
-
'@apply ml-1 text-sm': {},
|
|
73
|
-
'--tw-text-opacity': '1',
|
|
74
|
-
color: 'rgba(239, 68, 68, var(--tw-text-opacity))',
|
|
75
|
-
'.dark &': {
|
|
76
|
-
'--tw-text-opacity': '1',
|
|
77
|
-
color: 'rgba(252, 165, 165, var(--tw-text-opacity))',
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
function formInputGroup() {
|
|
84
|
-
return {
|
|
85
|
-
'.form-input-group': {
|
|
86
|
-
'@apply flex relative bg-white h-fit w-full rounded-[0.2rem] border border-gray-stroke': {},
|
|
87
|
-
|
|
88
|
-
'&:focus-within': {
|
|
89
|
-
'@apply border border-primary ring-primary ring-1': {},
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
'> *': {
|
|
93
|
-
'@apply border-0 ring-0 shadow-none': {},
|
|
94
|
-
|
|
95
|
-
'&:focus': {
|
|
96
|
-
'@apply ring-0': {},
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
'&-sm': {
|
|
101
|
-
'@apply min-h-[4rem] max-h-[4rem]': {},
|
|
102
|
-
|
|
103
|
-
'.form-field': {
|
|
104
|
-
'@apply min-h-[3.8rem] max-h-[3.8rem]': {},
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
'&-md': {
|
|
109
|
-
'@apply min-h-[4.4rem] max-h-[4.4rem]': {},
|
|
110
|
-
|
|
111
|
-
'.form-field': {
|
|
112
|
-
'@apply min-h-[4.2rem] max-h-[4.2rem]': {},
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
|
|
116
|
-
'&-lg': {
|
|
117
|
-
'@apply min-h-[4.8rem] max-h-[4.8rem]': {},
|
|
118
|
-
|
|
119
|
-
'.form-field': {
|
|
120
|
-
'@apply min-h-[4.6rem] max-h-[4.6rem]': {},
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
"&[data-rounded='true']": {
|
|
125
|
-
'@apply rounded-[3.2rem]': {},
|
|
126
|
-
|
|
127
|
-
'> *:first-child': {
|
|
128
|
-
'@apply rounded-[3.2rem]': {},
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
'> *:last-child': {
|
|
132
|
-
'@apply rounded-[3.2rem]': {},
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
'&[aria-invalid=true]': {
|
|
137
|
-
'@apply border-error ring-error': {},
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
'.form-input-element': {
|
|
142
|
-
'@apply flex items-center justify-center absolute z-base top-0': {},
|
|
143
|
-
|
|
144
|
-
'&-sm': {
|
|
145
|
-
'@apply text-xs h-7 w-7': {},
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
'&-md': {
|
|
149
|
-
'@apply text-sm h-8 w-8': {},
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
'&-lg': {
|
|
153
|
-
'@apply text-base h-10 w-10': {},
|
|
154
|
-
},
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
'.form-input-addon': {
|
|
158
|
-
'@apply flex items-center w-auto shadow-sm whitespace-nowrap': {},
|
|
159
|
-
'@apply text-gray bg-neutral-50': {},
|
|
160
|
-
// dark colors
|
|
161
|
-
'@apply dark:border-neutral-700': {},
|
|
162
|
-
'@apply dark:text-neutral-100 dark:bg-white/30': {},
|
|
163
|
-
|
|
164
|
-
'&-sm': {
|
|
165
|
-
'@apply px-3 text-xs': {},
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
'&-md': {
|
|
169
|
-
'@apply px-4 text-sm': {},
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
'&-lg': {
|
|
173
|
-
'@apply px-4 text-base': {},
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
'&-left': {
|
|
177
|
-
'@apply rounded-r-none': {},
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
'&-right': {
|
|
181
|
-
'@apply rounded-l-none': {},
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
'.form-input-addin': {
|
|
185
|
-
'@apply flex items-center w-auto whitespace-nowrap': {},
|
|
186
|
-
'@apply text-body': {},
|
|
187
|
-
|
|
188
|
-
'&-sm': {
|
|
189
|
-
'@apply px-[1.44rem] text-xs': {},
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
'&-md': {
|
|
193
|
-
'@apply px-[1.6rem] text-sm': {},
|
|
194
|
-
},
|
|
195
|
-
|
|
196
|
-
'&-lg': {
|
|
197
|
-
'@apply px-[1.76rem] text-base': {},
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
'&-left': {
|
|
201
|
-
'@apply pr-0 rounded-r-none': {},
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
'&-right': {
|
|
205
|
-
'@apply pl-0 rounded-l-none': {},
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
module.exports = Forms = (colors) => ({
|
|
212
|
-
'.form-field': {
|
|
213
|
-
'@apply rounded-[0.2rem] placeholder-gray-stroke': {},
|
|
214
|
-
'@apply relative w-full min-w-0 inline-flex items-center appearance-none focus-visible:outline-none': {},
|
|
215
|
-
'@apply transition-colors duration-75 ease-out': {},
|
|
1
|
+
module.exports = Forms = () => ({
|
|
2
|
+
'.sk-form-control': {
|
|
3
|
+
'@apply flex flex-col gap-8 w-fit': {},
|
|
4
|
+
},
|
|
216
5
|
|
|
6
|
+
'.sk-form-label': {
|
|
7
|
+
'@apply font-bold': {},
|
|
217
8
|
'&-sm': {
|
|
218
|
-
'@apply text-
|
|
219
|
-
'@apply py-0 px-[1.44rem] min-h-[4rem] max-h-[4rem]': {},
|
|
9
|
+
'@apply text-label-small': {},
|
|
220
10
|
},
|
|
221
|
-
|
|
222
11
|
'&-md': {
|
|
223
|
-
'@apply text-
|
|
224
|
-
'@apply py-0 px-[1.6rem] min-h-[4.4rem] max-h-[4.4rem]': {},
|
|
12
|
+
'@apply text-label-medium': {},
|
|
225
13
|
},
|
|
226
|
-
|
|
227
14
|
'&-lg': {
|
|
228
|
-
'@apply text-
|
|
229
|
-
'@apply py-0 px-[1.76rem] min-h-[4.8rem] max-h-[4.8rem]': {},
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
'&-disabled, &&-disabled': {
|
|
233
|
-
'@apply disabled:cursor-not-allowed cursor-not-allowed': {},
|
|
234
|
-
'@apply disabled:bg-gray-lighter bg-gray-lighter': {},
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
"&[data-rounded='true']": {
|
|
238
|
-
'@apply rounded-[3.2rem]': {},
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
// variants
|
|
242
|
-
...fieldOutline(colors),
|
|
243
|
-
...fieldSolid(colors),
|
|
244
|
-
},
|
|
245
|
-
|
|
246
|
-
'.form-button': {
|
|
247
|
-
'@apply text-[1.1433em] border-0 ml-auto text-primary hover:text-white': {},
|
|
248
|
-
|
|
249
|
-
'&[data-icon=true]': {
|
|
250
|
-
'@apply p-[0.2em]': {},
|
|
251
|
-
},
|
|
252
|
-
|
|
253
|
-
'&-icon': {
|
|
254
|
-
'@apply inline-flex': {},
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
'&-wrapper': {
|
|
258
|
-
'@apply flex items-center absolute inset-y-0 right-sm': {},
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
|
|
262
|
-
'.form-textarea': {
|
|
263
|
-
maxHeight: 'none',
|
|
264
|
-
'&.form-field': {
|
|
265
|
-
'&-sm': {
|
|
266
|
-
'@apply py-[0.85rem] min-h-[4rem]': {},
|
|
267
|
-
},
|
|
268
|
-
|
|
269
|
-
'&-md': {
|
|
270
|
-
'@apply py-[0.9rem] min-h-[4.4rem]': {},
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
'&-lg': {
|
|
274
|
-
'@apply py-[1.1rem] min-h-[4.8rem]': {},
|
|
275
|
-
},
|
|
276
|
-
},
|
|
277
|
-
'&-counter': {
|
|
278
|
-
'@apply mt-xs text-right': {},
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
'.dropdown-search': {
|
|
282
|
-
'@apply block w-full relative': {},
|
|
283
|
-
'&-results': {
|
|
284
|
-
'@apply w-full flex justify-between items-center': {},
|
|
285
|
-
'&-text': {
|
|
286
|
-
'@apply truncate text-left grow': {},
|
|
287
|
-
},
|
|
288
|
-
'&-counter': {
|
|
289
|
-
'@apply grow-0': {},
|
|
290
|
-
},
|
|
291
|
-
},
|
|
292
|
-
|
|
293
|
-
'&[data-expanded=true]': {
|
|
294
|
-
'.form-input-group[data-rounded=true]': {
|
|
295
|
-
'@apply rounded-t-[2rem] rounded-bl-none rounded-br-none': {},
|
|
296
|
-
|
|
297
|
-
'> *:first-child': {
|
|
298
|
-
'@apply rounded-t-[2rem] rounded-bl-none rounded-br-none': {},
|
|
299
|
-
},
|
|
300
|
-
|
|
301
|
-
'> *:last-child': {
|
|
302
|
-
'@apply rounded-t-[2rem] rounded-bl-none rounded-br-none': {},
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
'& ~ #dropdown-search-results': {
|
|
306
|
-
'@apply rounded-b-[1.6rem]': {},
|
|
307
|
-
},
|
|
308
|
-
},
|
|
15
|
+
'@apply text-label-large': {},
|
|
309
16
|
},
|
|
310
17
|
},
|
|
311
18
|
|
|
312
|
-
'.form-
|
|
313
|
-
|
|
314
|
-
{},
|
|
315
|
-
'&.showabove': {
|
|
316
|
-
'@apply mb-1 bottom-full': {},
|
|
317
|
-
},
|
|
318
|
-
'&:not(.showabove)': {
|
|
319
|
-
'@apply mt-1 top-full': {},
|
|
320
|
-
},
|
|
19
|
+
'legend.sk-form-label': {
|
|
20
|
+
display: 'contents',
|
|
321
21
|
},
|
|
322
22
|
|
|
323
|
-
'.form-
|
|
324
|
-
'@apply
|
|
325
|
-
|
|
326
|
-
'background-image': 'none',
|
|
327
|
-
'&-wrapper': {
|
|
328
|
-
'@apply block w-full relative': {},
|
|
329
|
-
},
|
|
330
|
-
'&-icon': {
|
|
331
|
-
'@apply grow-0': {},
|
|
332
|
-
},
|
|
333
|
-
'&-list': {
|
|
334
|
-
'@apply z-10 absolute overflow-y-auto w-full bg-white mt-0 border border-gray-stroke border-t-0 border-b': {},
|
|
335
|
-
'&.showabove': {
|
|
336
|
-
'@apply border-t border-b-0': {},
|
|
337
|
-
},
|
|
338
|
-
},
|
|
339
|
-
'&-has-multiple-choices': {
|
|
340
|
-
'@apply flex w-full h-full justify-between items-center pr-md': {},
|
|
341
|
-
},
|
|
342
|
-
'&-multiple-chioces': {
|
|
343
|
-
'@apply truncate pr-md': {},
|
|
344
|
-
},
|
|
345
|
-
|
|
346
|
-
'&-option': {
|
|
347
|
-
'@apply text-body rounded-none cursor-default hover:text-white focus-visible:text-white hover:bg-primary focus-visible:bg-primary flex items-center':
|
|
348
|
-
{},
|
|
349
|
-
|
|
350
|
-
'&.multiple.selected': {
|
|
351
|
-
'@apply bg-background-one': {},
|
|
352
|
-
},
|
|
353
|
-
'&.active': {
|
|
354
|
-
'@apply bg-primary text-white': {},
|
|
355
|
-
},
|
|
356
|
-
'&.active.selected': {
|
|
357
|
-
'@apply bg-gray text-white': {},
|
|
358
|
-
},
|
|
359
|
-
'&.disabled': {
|
|
360
|
-
'@apply opacity-75 cursor-not-allowed hover:bg-white hover:text-black': {},
|
|
361
|
-
},
|
|
362
|
-
'&-remove-button': {
|
|
363
|
-
'@apply w-full flex justify-between items-center': {},
|
|
364
|
-
'&-text': {
|
|
365
|
-
'@apply truncate grow text-left': {},
|
|
366
|
-
},
|
|
367
|
-
},
|
|
368
|
-
},
|
|
23
|
+
'.sk-form-helper-text, .sk-form-error-message': {
|
|
24
|
+
'@apply font-normal': {},
|
|
25
|
+
'@apply text-small': {},
|
|
369
26
|
},
|
|
370
|
-
|
|
371
|
-
...formInputGroup(),
|
|
372
|
-
...formControl(),
|
|
373
27
|
});
|
package/src/components/header.js
CHANGED
|
@@ -1,35 +1,28 @@
|
|
|
1
|
-
module.exports = Header = (
|
|
2
|
-
'.header': {
|
|
3
|
-
'@apply
|
|
4
|
-
|
|
5
|
-
...colors.reduce(
|
|
6
|
-
(styles, color) => ({
|
|
7
|
-
...styles,
|
|
8
|
-
[`&[data-color="${color}"]`]: {
|
|
9
|
-
[`@apply border-${color}`]: {},
|
|
10
|
-
},
|
|
11
|
-
}),
|
|
12
|
-
{}
|
|
13
|
-
),
|
|
14
|
-
|
|
15
|
-
[`&[data-color="none"]`]: {
|
|
16
|
-
[`@apply border-none`]: {},
|
|
17
|
-
},
|
|
1
|
+
module.exports = Header = () => ({
|
|
2
|
+
'.sk-header': {
|
|
3
|
+
'@apply bg-background-content p-12 md:px-32 md:pt-24 md:pb-20 xl:pt-32 xl:pb-20 xl:px-80 xl:h-auto xl:min-h-0': {},
|
|
4
|
+
'@apply shadow-100': {},
|
|
18
5
|
|
|
19
6
|
'&-container': {
|
|
20
|
-
'@apply flex
|
|
7
|
+
'@apply flex flex-col gap-20 xl:gap-24': {},
|
|
21
8
|
},
|
|
22
9
|
|
|
23
|
-
'&-content': {
|
|
24
|
-
'@apply flex items-center w-full justify-between m-auto flex-shrink-0
|
|
10
|
+
'&-top-content': {
|
|
11
|
+
'@apply flex items-center w-full justify-between m-auto flex-shrink-0 py-4 gap-20': {},
|
|
12
|
+
},
|
|
13
|
+
'&-bottom-content': {
|
|
14
|
+
'@apply hidden md:flex items-center w-full justify-start p-8 xl:p-0': {},
|
|
25
15
|
},
|
|
26
16
|
|
|
27
17
|
'&-usermenu': {
|
|
28
|
-
'@apply
|
|
18
|
+
'@apply hidden xl:flex-shrink md:flex xl:items-center xl:w-auto': {},
|
|
29
19
|
|
|
30
20
|
'&-content': {
|
|
31
|
-
'@apply flex flex-grow
|
|
21
|
+
'@apply relative flex flex-grow justify-end items-center xl:w-auto': {},
|
|
32
22
|
},
|
|
33
23
|
},
|
|
24
|
+
'&-mobilemenu': {
|
|
25
|
+
'@apply block md:hidden relative': {},
|
|
26
|
+
},
|
|
34
27
|
},
|
|
35
28
|
});
|