@sk-web-gui/core 0.1.92 → 1.0.0
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.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 +28 -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 +50 -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 +44 -0
- package/dist/cjs/components/menubar.js.map +1 -0
- 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/popup-menu.js +108 -0
- package/dist/cjs/components/popup-menu.js.map +1 -0
- package/dist/cjs/components/progress-bar.js +23 -0
- package/dist/cjs/components/progress-bar.js.map +1 -0
- package/dist/cjs/components/progress-stepper.js +53 -0
- package/dist/cjs/components/progress-stepper.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 +33 -0
- package/dist/cjs/components/snackbar.js.map +1 -0
- 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/tab-menu.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/index.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/cjs/units.js +250 -0
- package/dist/cjs/units.js.map +1 -0
- 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.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 +22 -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 +48 -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 +49 -0
- package/dist/esm/components/menubar.js.map +1 -0
- 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/popup-menu.js +106 -0
- package/dist/esm/components/popup-menu.js.map +1 -0
- package/dist/esm/components/progress-bar.js +25 -0
- package/dist/esm/components/progress-bar.js.map +1 -0
- package/dist/esm/components/progress-stepper.js +51 -0
- package/dist/esm/components/progress-stepper.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 +31 -0
- package/dist/esm/components/snackbar.js.map +1 -0
- 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/tab-menu.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/index.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/dist/esm/units.js +250 -0
- package/dist/esm/units.js.map +1 -0
- 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 +37 -37
- 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 +21 -21
- 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 +48 -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/tab-menu.js +58 -58
- package/src/components/tabs.js +64 -64
- package/src/components/tooltip.js +64 -0
- package/src/components/user-menu.js +7 -59
- package/src/components/zebratable.js +92 -41
- package/src/index.js +8 -8
- package/src/plugin.js +142 -120
- package/src/theme.js +158 -84
- 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
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
function calendar() {
|
|
2
|
+
return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='18' height='18' x='3' y='4' rx='2' ry='2' /><line x1='16' x2='16' y1='2' y2='6' /><line x1='8' x2='8' y1='2' y2='6' /><line x1='3' x2='21' y1='10' y2='10' /></svg>`;
|
|
3
|
+
}
|
|
4
|
+
function clock() {
|
|
5
|
+
return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' /><polyline points='12 6 12 12 16 14' /></svg>`;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
function inputStandards() {
|
|
9
|
+
return {
|
|
10
|
+
'@apply border-1': {},
|
|
11
|
+
'@apply border-primitives-overlay-darken-6': {},
|
|
12
|
+
'@apply dark:border-primitives-overlay-lighten-6': {},
|
|
13
|
+
'@apply hover:border-primitives-overlay-darken-8': {},
|
|
14
|
+
'@apply dark:hover:border-primitives-overlay-lighten-4': {},
|
|
15
|
+
|
|
16
|
+
'@apply placeholder:text-dark-placeholder': {},
|
|
17
|
+
|
|
18
|
+
'@apply bg-primitives-overlay-lighten-10': {},
|
|
19
|
+
'@apply dark:bg-primitives-overlay-darken-6': {},
|
|
20
|
+
|
|
21
|
+
//Invalid
|
|
22
|
+
'&:invalid, &[aria-invalid="true"]': {
|
|
23
|
+
'@apply border-2 border-error-surface-primary': {},
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
//Disabled
|
|
27
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
28
|
+
'@apply bg-primitives-overlay-darken-1': {},
|
|
29
|
+
'@apply dark:bg-primitives-overlay-lighten-1': {},
|
|
30
|
+
'@apply border-primitives-overlay-darken-3': {},
|
|
31
|
+
'@apply dark:border-primitives-overlay-lighten-3': {},
|
|
32
|
+
'@apply hover:border-primitives-overlay-darken-3': {},
|
|
33
|
+
'@apply dark:hover:border-primitives-overlay-lighten-3': {},
|
|
34
|
+
'@apply text-dark-disabled': {},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function addin() {
|
|
40
|
+
return {
|
|
41
|
+
'&-addin': {
|
|
42
|
+
'@apply bg-transparent': {},
|
|
43
|
+
'@apply flex': {},
|
|
44
|
+
'@apply justify-start items-center': {},
|
|
45
|
+
'&-sm': {
|
|
46
|
+
'@apply px-6 gap-6': {},
|
|
47
|
+
'&.sk-form-input-addin-left': {
|
|
48
|
+
'@apply -mr-12': {},
|
|
49
|
+
'@apply pl-10': {},
|
|
50
|
+
},
|
|
51
|
+
'&.sk-form-input-addin-right': {
|
|
52
|
+
'@apply -ml-12': {},
|
|
53
|
+
'@apply pr-10': {},
|
|
54
|
+
},
|
|
55
|
+
svg: {
|
|
56
|
+
'@apply w-[1.6rem] h-[1.6rem]': {},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
'&-md': {
|
|
60
|
+
'@apply md:px-8 md:gap-8': {},
|
|
61
|
+
'&.sk-form-input-addin-left': {
|
|
62
|
+
'@apply -mr-16': {},
|
|
63
|
+
'@apply pl-12': {},
|
|
64
|
+
},
|
|
65
|
+
'&.sk-form-input-addin-right': {
|
|
66
|
+
'@apply -ml-16': {},
|
|
67
|
+
'@apply pr-12': {},
|
|
68
|
+
},
|
|
69
|
+
svg: {
|
|
70
|
+
'@apply w-[2rem] h-[2rem]': {},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
'&-lg': {
|
|
74
|
+
'@apply md:px-8 md:gap-8': {},
|
|
75
|
+
'&.sk-form-input-addin-left': {
|
|
76
|
+
'@apply -mr-20': {},
|
|
77
|
+
'@apply pl-16': {},
|
|
78
|
+
},
|
|
79
|
+
'&.sk-form-input-addin-right': {
|
|
80
|
+
'@apply -ml-20': {},
|
|
81
|
+
'@apply pr-16': {},
|
|
82
|
+
},
|
|
83
|
+
svg: {
|
|
84
|
+
'@apply w-[2.2rem] h-[2.2rem]': {},
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function inputGroup() {
|
|
92
|
+
return {
|
|
93
|
+
'&-group': {
|
|
94
|
+
'@apply flex relative': {},
|
|
95
|
+
'@apply items-center': {},
|
|
96
|
+
'@apply focus-within:ring': {},
|
|
97
|
+
'@apply focus-within:ring-ring': {},
|
|
98
|
+
'@apply text-dark-secondary': {},
|
|
99
|
+
//Focus
|
|
100
|
+
'@apply focus-within:border-primitives-overlay-lighten-10': {},
|
|
101
|
+
'@apply dark:focus-within:border-primitives-overlay-darken-6': {},
|
|
102
|
+
|
|
103
|
+
'&:not(:invalid):not([aria-invalid="true"])': {
|
|
104
|
+
'@apply focus-within:hover:border-primitives-overlay-lighten-10': {},
|
|
105
|
+
'@apply dark:focus-within:hover:border-primitives-overlay-darken-6': {},
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
109
|
+
'&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {
|
|
110
|
+
'@apply color-black-disabled': {},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
'&&-lg': {
|
|
114
|
+
'@apply text-input-large': {},
|
|
115
|
+
'@apply rounded-button-lg': {},
|
|
116
|
+
},
|
|
117
|
+
'&&-md': {
|
|
118
|
+
'@apply text-input-medium': {},
|
|
119
|
+
'@apply rounded-button-md': {},
|
|
120
|
+
},
|
|
121
|
+
'&&-sm': {
|
|
122
|
+
'@apply text-input-small': {},
|
|
123
|
+
'@apply rounded-button-sm': {},
|
|
124
|
+
},
|
|
125
|
+
...inputStandards(),
|
|
126
|
+
'.sk-form-input': {
|
|
127
|
+
'@apply rounded-0': {},
|
|
128
|
+
'@apply border-0': {},
|
|
129
|
+
'@apply focus:ring-0': {},
|
|
130
|
+
'@apply focus:ring-offset-0': {},
|
|
131
|
+
'@apply bg-transparent': {},
|
|
132
|
+
'@apply dark:bg-transparent': {},
|
|
133
|
+
'@apply grow': {},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function timeAndDatePicker() {
|
|
140
|
+
return {
|
|
141
|
+
'&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {
|
|
142
|
+
'@apply block': {},
|
|
143
|
+
'@apply p-0': {},
|
|
144
|
+
'@apply pl-6 md:pl-8': {},
|
|
145
|
+
'@apply m-0': {},
|
|
146
|
+
'@apply bg-none': {},
|
|
147
|
+
'@apply bg-dark-secondary': {},
|
|
148
|
+
'&.sk-form-input-sm': {
|
|
149
|
+
'@apply w-[1.6rem] h-[1.6rem]': {},
|
|
150
|
+
'@apply -mr-2': {},
|
|
151
|
+
},
|
|
152
|
+
'&.sk-form-input-md': {
|
|
153
|
+
'@apply -mr-4': {},
|
|
154
|
+
'@apply w-[1.8rem] h-[1.8rem]': {},
|
|
155
|
+
},
|
|
156
|
+
'&.sk-form-input-lg': {
|
|
157
|
+
'@apply -mr-6': {},
|
|
158
|
+
'@apply w-[2rem] h-[2rem]': {},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
'&[type="date"]::-webkit-inner-spin-button, &[type="date"]::-webkit-calendar-picker-indicator': {
|
|
163
|
+
mask: [`url("data:image/svg+xml;utf-8,${calendar()}") no-repeat 100% 100%`],
|
|
164
|
+
'-webkit-mask': [`url("data:image/svg+xml;utf-8,${calendar()}") no-repeat 100% 100%`],
|
|
165
|
+
maskSize: 'contain',
|
|
166
|
+
'-webkit-mask-size': 'contain',
|
|
167
|
+
},
|
|
168
|
+
'&[type="datetime-local"]::-webkit-inner-spin-button, &[type="datetime-local"]::-webkit-calendar-picker-indicator':
|
|
169
|
+
{
|
|
170
|
+
mask: [`url("data:image/svg+xml;utf-8,${calendar()}") no-repeat 100% 100%`],
|
|
171
|
+
'-webkit-mask': [`url("data:image/svg+xml;utf-8,${calendar()}") no-repeat 100% 100%`],
|
|
172
|
+
maskSize: 'contain',
|
|
173
|
+
'-webkit-mask-size': 'contain',
|
|
174
|
+
},
|
|
175
|
+
'&[type="time"]::-webkit-inner-spin-button, &[type="time"]::-webkit-calendar-picker-indicator': {
|
|
176
|
+
mask: [`url("data:image/svg+xml;utf-8,${clock()}") no-repeat 100% 100%`],
|
|
177
|
+
'-webkit-mask': [`url("data:image/svg+xml;utf-8,${clock()}") no-repeat 100% 100%`],
|
|
178
|
+
maskSize: 'contain',
|
|
179
|
+
'-webkit-mask-size': 'contain',
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
'&:disabled, &[aria-disabled="true"]': {
|
|
183
|
+
'&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {
|
|
184
|
+
'@apply color-black-disabled': {},
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
module.exports = Input = () => ({
|
|
191
|
+
'.sk-form-input': {
|
|
192
|
+
'@apply grow-0': {},
|
|
193
|
+
'@apply text-dark-primary': {},
|
|
194
|
+
|
|
195
|
+
'&[data-hideextra="true"]': {
|
|
196
|
+
'&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
|
|
197
|
+
'-webkit-appearance': 'none',
|
|
198
|
+
display: 'none',
|
|
199
|
+
margin: 0,
|
|
200
|
+
},
|
|
201
|
+
'-moz-appearance': 'textfield',
|
|
202
|
+
},
|
|
203
|
+
|
|
204
|
+
'&&-lg': {
|
|
205
|
+
'@apply rounded-button-lg': {},
|
|
206
|
+
'@apply px-20': {},
|
|
207
|
+
'@apply py-12': {},
|
|
208
|
+
'@apply gap-8': {},
|
|
209
|
+
'@apply text-input-large': {},
|
|
210
|
+
'@apply h-[4.8rem]': {},
|
|
211
|
+
},
|
|
212
|
+
'&&-md': {
|
|
213
|
+
'@apply rounded-button-md': {},
|
|
214
|
+
'@apply px-16': {},
|
|
215
|
+
'@apply py-8': {},
|
|
216
|
+
'@apply gap-8': {},
|
|
217
|
+
'@apply text-input-medium': {},
|
|
218
|
+
'@apply h-[4rem]': {},
|
|
219
|
+
},
|
|
220
|
+
'&&-sm': {
|
|
221
|
+
'@apply rounded-button-sm': {},
|
|
222
|
+
'@apply px-12': {},
|
|
223
|
+
'@apply py-6': {},
|
|
224
|
+
'@apply gap-6': {},
|
|
225
|
+
'@apply text-input-small': {},
|
|
226
|
+
'@apply h-[3.2rem]': {},
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
//Focus
|
|
230
|
+
'@apply focus:ring': {},
|
|
231
|
+
'@apply focus:ring-ring': {},
|
|
232
|
+
'@apply focus:ring-offset': {},
|
|
233
|
+
'@apply focus:border-primitives-overlay-lighten-10': {},
|
|
234
|
+
'@apply dark:focus:border-primitives-overlay-darken-6': {},
|
|
235
|
+
'&:not(:invalid):not([aria-invalid="true"])': {
|
|
236
|
+
'@apply focus:hover:border-primitives-overlay-lighten-10': {},
|
|
237
|
+
'@apply dark:focus:hover:border-primitives-overlay-darken-6': {},
|
|
238
|
+
},
|
|
239
|
+
...timeAndDatePicker(),
|
|
240
|
+
...inputStandards(),
|
|
241
|
+
...inputGroup(),
|
|
242
|
+
...addin(),
|
|
243
|
+
},
|
|
244
|
+
});
|
package/src/components/kbd.js
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module.exports = Label = (colors) => ({
|
|
2
|
+
'.sk-label': {
|
|
3
|
+
'@apply inline-flex flex-row': {},
|
|
4
|
+
'@apply justify-center items-center': {},
|
|
5
|
+
'@apply gap-6 px-10 py-4': {},
|
|
6
|
+
'@apply h-24 max-h-24': {},
|
|
7
|
+
'@apply text-label-small': {},
|
|
8
|
+
|
|
9
|
+
'@apply rounded-utility-sm md:rounded-utility-md xl:rounded-utility-lg': {},
|
|
10
|
+
|
|
11
|
+
'@apply bg-primary-surface': {},
|
|
12
|
+
'@apply text-light-primary': {},
|
|
13
|
+
|
|
14
|
+
'&[data-rounded="true"]': {
|
|
15
|
+
'@apply rounded-full': {},
|
|
16
|
+
},
|
|
17
|
+
'&[data-inverted="true"]': {
|
|
18
|
+
'@apply bg-inverted-primary-surface': {},
|
|
19
|
+
'@apply text-inverted-light-primary': {},
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
...colors.reduce(
|
|
23
|
+
(styles, color) => ({
|
|
24
|
+
...styles,
|
|
25
|
+
[`&[data-color="${color}"]`]: {
|
|
26
|
+
[`@apply bg-${color}-surface-primary`]: {},
|
|
27
|
+
[`@apply text-${color}-text-secondary`]: {},
|
|
28
|
+
'&[data-inverted="true"]': {
|
|
29
|
+
[`@apply bg-${color}-surface-accent`]: {},
|
|
30
|
+
[`@apply text-${color}-text-primary`]: {},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
}),
|
|
34
|
+
{}
|
|
35
|
+
),
|
|
36
|
+
},
|
|
37
|
+
});
|
package/src/components/link.js
CHANGED
|
@@ -1,19 +1,45 @@
|
|
|
1
1
|
module.exports = Link = () => ({
|
|
2
|
-
'.link': {
|
|
3
|
-
'@apply
|
|
4
|
-
'@apply
|
|
5
|
-
'@apply focus-visible:ring-4 focus-visible:ring-primary': {},
|
|
2
|
+
'.sk-link': {
|
|
3
|
+
'@apply underline outline-none hover:underline': {},
|
|
4
|
+
'@apply rounded-utility': {},
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
// focus
|
|
7
|
+
'@apply focus-visible:ring ring-offset-[.6rem]': {},
|
|
8
|
+
|
|
9
|
+
// sizes
|
|
10
|
+
'&-sm': {
|
|
11
|
+
'@apply text-small leading-[2rem]': {},
|
|
12
|
+
},
|
|
13
|
+
'&-md': {
|
|
14
|
+
'@apply text-base': {},
|
|
15
|
+
},
|
|
16
|
+
'&-lg': {
|
|
17
|
+
'@apply text-large': {},
|
|
18
|
+
},
|
|
19
|
+
'&-xl': {
|
|
20
|
+
'@apply text-lead leading-[3.2rem]': {},
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
// variants
|
|
24
|
+
'&-primary': {
|
|
25
|
+
'@apply text-vattjom-surface-primary': {},
|
|
26
|
+
'&:hover': {
|
|
27
|
+
'@apply text-vattjom-surface-primary-hover': {},
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
'&-tertiary': {
|
|
31
|
+
'@apply text-dark-secondary': {},
|
|
32
|
+
'&:hover': {
|
|
33
|
+
'@apply text-dark-primary': {},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
8
36
|
|
|
9
37
|
'&.active': {
|
|
10
|
-
'@apply underline
|
|
38
|
+
'@apply underline': {},
|
|
11
39
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
marginLeft: '.25em',
|
|
16
|
-
verticalAlign: 'text-top',
|
|
40
|
+
|
|
41
|
+
'& &-external-icon': {
|
|
42
|
+
'@apply w-[1em] h-[1em] leading-none ml-[.25em] align-text-top': {},
|
|
17
43
|
},
|
|
18
44
|
|
|
19
45
|
'&[type="button"]': {
|
|
@@ -21,7 +47,7 @@ module.exports = Link = () => ({
|
|
|
21
47
|
},
|
|
22
48
|
|
|
23
49
|
'&-disabled': {
|
|
24
|
-
'@apply disabled
|
|
50
|
+
'@apply text-dark-disabled cursor-default': {},
|
|
25
51
|
},
|
|
26
52
|
},
|
|
27
53
|
});
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module.exports = Link = () => ({
|
|
2
|
+
'.sk-list': {
|
|
3
|
+
// General
|
|
4
|
+
li: {
|
|
5
|
+
'&:before': {
|
|
6
|
+
'@apply text-vattjom-surface-primary font-bold': {},
|
|
7
|
+
'@apply absolute inline-flex items-center justify-center text-center': {},
|
|
8
|
+
'@apply w-24 h-24': {},
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
'&[data-style="bullet"]': {
|
|
13
|
+
li: {
|
|
14
|
+
'&:before': {
|
|
15
|
+
"@apply content-['•'] my-[.5rem] text-[1.8rem]": {},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
'&[data-style="numbered"]': {
|
|
21
|
+
li: {
|
|
22
|
+
counterIncrement: 'item',
|
|
23
|
+
|
|
24
|
+
'&:before': {
|
|
25
|
+
'@apply text-small border-vattjom-surface-primary rounded-full leading-8': {},
|
|
26
|
+
'@apply my-[.6rem] h-[2.2rem] w-[2.2rem] border-[.2rem]': {},
|
|
27
|
+
content: 'counter(item)',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
'&[data-style="stroke"]': {
|
|
33
|
+
li: {
|
|
34
|
+
'&:before': {
|
|
35
|
+
"@apply content-['–'] my-[.4rem] text-[1.6rem]": {},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
'.sk-link': {
|
|
41
|
+
'&-tertiary': {
|
|
42
|
+
'@apply text-dark-primary': {},
|
|
43
|
+
'&:hover': {
|
|
44
|
+
'@apply text-dark-secondary': {},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
'&-item': {
|
|
50
|
+
'@apply pt-20': {},
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
'&-header': {
|
|
54
|
+
'@apply text-large font-bold ml-[3.2rem]': {},
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
'&-text': {
|
|
58
|
+
'@apply text-dark-secondary ml-[3.2rem]': {},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
module.exports = Logo = () => ({
|
|
2
|
+
'.sk-logo': {
|
|
3
|
+
'@apply flex w-auto h-auto': {},
|
|
4
|
+
'@apply items-center': {},
|
|
5
|
+
'@apply text-dark-primary': {},
|
|
6
|
+
'&[data-inverted="true"]': {
|
|
7
|
+
'@apply text-light-primary': {},
|
|
8
|
+
'.sk-logo-divider': {
|
|
9
|
+
'@apply border-inverted-divider': {},
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
'&-figure': {
|
|
14
|
+
'@apply w-full h-full': {},
|
|
15
|
+
},
|
|
16
|
+
'&[data-variant="service"]': {
|
|
17
|
+
'@apply flex-row gap-6': {},
|
|
18
|
+
'@apply w-auto h-[6rem]': {},
|
|
19
|
+
'@apply pb-4': {},
|
|
20
|
+
'.sk-logo-figure': {
|
|
21
|
+
'@apply w-auto h-[5.6rem]': {},
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
'a:focus-within &': {
|
|
25
|
+
'@apply outline outline-2 outline-ring': {},
|
|
26
|
+
},
|
|
27
|
+
'a &': {
|
|
28
|
+
'@apply no-underline': {},
|
|
29
|
+
},
|
|
30
|
+
'a:hover &': {
|
|
31
|
+
'@apply underline': {},
|
|
32
|
+
},
|
|
33
|
+
'&-service-content': {
|
|
34
|
+
'@apply h-full w-max': {},
|
|
35
|
+
'@apply flex flex-col justify-center': {},
|
|
36
|
+
'@apply pl-2 pt-2 pr-8 pb-0': {},
|
|
37
|
+
},
|
|
38
|
+
'&-title': {
|
|
39
|
+
'@apply text-[2.2rem] leading-[2.8rem] font-header font-bold': {},
|
|
40
|
+
},
|
|
41
|
+
'&-subtitle': {
|
|
42
|
+
'@apply text-small font-normal block': {},
|
|
43
|
+
},
|
|
44
|
+
'&-divider': {
|
|
45
|
+
'@apply pt-8 pb-4': {},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
});
|