@sk-web-gui/core 0.1.93 → 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 +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 +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 +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 +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 +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 +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/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
package/src/components/card.js
CHANGED
|
@@ -1,47 +1,238 @@
|
|
|
1
|
-
module.exports = Card = () => ({
|
|
2
|
-
'.
|
|
3
|
-
'@apply bg-
|
|
4
|
-
|
|
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%]': {},
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
+
},
|
|
11
144
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
+
),
|
|
16
191
|
|
|
17
192
|
// clickable
|
|
18
|
-
'
|
|
19
|
-
//
|
|
20
|
-
'
|
|
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
|
+
},
|
|
21
199
|
},
|
|
22
200
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
//"@apply dark:bg-neutral-700 dark:border-neutral-600 dark:text-neutral-300": {},
|
|
26
|
-
},
|
|
27
|
-
'.card-outlined': {
|
|
28
|
-
'@apply border-2 border-gray-stroke': {},
|
|
29
|
-
},
|
|
30
|
-
'.card-border-top': {
|
|
31
|
-
'@apply border-t-4 border-t-primary': {},
|
|
32
|
-
},
|
|
201
|
+
[`&[data-layout="horizontal"]`]: {
|
|
202
|
+
'@apply flex-row h-[100%]': {},
|
|
33
203
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
+
},
|
|
37
218
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
219
|
+
'&-content': {
|
|
220
|
+
'p, a': {
|
|
221
|
+
'@apply text-small': {},
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
|
|
225
|
+
'&-meta': {
|
|
226
|
+
'@apply hidden': {},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
42
231
|
},
|
|
43
232
|
|
|
44
|
-
'.card-link': {
|
|
233
|
+
'.sk-card-link': {
|
|
234
|
+
'@apply hover:cursor-pointer': {},
|
|
235
|
+
|
|
45
236
|
'&::after': {
|
|
46
237
|
content: "''",
|
|
47
238
|
position: 'absolute',
|
|
@@ -51,4 +242,52 @@ module.exports = Card = () => ({
|
|
|
51
242
|
bottom: '0',
|
|
52
243
|
},
|
|
53
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
|
+
},
|
|
54
293
|
});
|
|
@@ -1,133 +1,135 @@
|
|
|
1
|
-
|
|
1
|
+
module.exports = Checkbox = () => ({
|
|
2
|
+
'.sk-form-checkbox': {
|
|
3
|
+
'@apply bg-inherit': {},
|
|
4
|
+
'@apply rounded-utility': {},
|
|
5
|
+
'@apply bg-transparent border-transparent': {},
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
backgroundColor: 'inherit',
|
|
7
|
-
'@apply border-gray-stroke focus:bg-white': {},
|
|
8
|
-
|
|
9
|
-
'&[aria-invalid=true]': {
|
|
10
|
-
'--tw-border-opacity': '1',
|
|
11
|
-
borderColor: 'rgba(220, 38, 38, var(--tw-border-opacity))',
|
|
12
|
-
},
|
|
13
|
-
'&[aria-invalid=true]:hover': {
|
|
14
|
-
'--tw-border-opacity': '1',
|
|
15
|
-
'border-color': 'rgba(220, 38, 38, var(--tw-border-opacity))',
|
|
7
|
+
// sizing
|
|
8
|
+
'&-sm': {
|
|
9
|
+
'@apply w-[2.4rem] h-[2.4rem]': {},
|
|
16
10
|
},
|
|
17
|
-
|
|
18
|
-
'
|
|
19
|
-
|
|
20
|
-
'--tw-border-opacity': '1',
|
|
21
|
-
borderColor: 'rgba(248, 113, 113, var(--tw-border-opacity))',
|
|
11
|
+
|
|
12
|
+
'&-md': {
|
|
13
|
+
'@apply w-[2.4rem] h-[2.4rem]': {},
|
|
22
14
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
15
|
+
|
|
16
|
+
'&-lg': {
|
|
17
|
+
'@apply w-[2.4rem] h-[2.4rem]': {},
|
|
26
18
|
},
|
|
27
19
|
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'
|
|
35
|
-
'border-color': 'rgba(220, 38, 38, var(--tw-border-opacity))',
|
|
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': {},
|
|
36
27
|
},
|
|
37
28
|
},
|
|
38
29
|
|
|
39
|
-
'
|
|
40
|
-
'@apply text-
|
|
41
|
-
[`@apply focus-visible:border-primary focus-visible:ring-primary`]: {},
|
|
30
|
+
'&&:checked': {
|
|
31
|
+
'@apply text-light-primary bg-none': {},
|
|
42
32
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
)}")`,
|
|
46
|
-
//borderColor: "transparent",
|
|
47
|
-
},
|
|
33
|
+
'& + .sk-icon': {
|
|
34
|
+
'@apply text-light-primary bg-dark-primary border-dark-primary': {},
|
|
48
35
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
//[`@apply dark:focus-visible:border-primary-400 dark:focus-visible:ring-primary-400`]: {},
|
|
36
|
+
svg: {
|
|
37
|
+
'@apply block': {},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
54
40
|
},
|
|
55
41
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
+
{},
|
|
60
47
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
...styles,
|
|
65
|
-
[`&[data-color="${color}"]`]: {
|
|
66
|
-
[`@apply text-${color}`]: {},
|
|
67
|
-
[`@apply focus-visible:border-${color} focus-visible:ring-${color}`]: {},
|
|
68
|
-
backgroundImage: `url("${svgToDataUri(
|
|
69
|
-
`<svg viewBox="0 0 16 16" fill="${theme(`colors.primary_raw.DEFAULT`)}" xmlns="http://www.w3.org/2000/svg"><path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z"/></svg>`
|
|
70
|
-
)}")`,
|
|
71
|
-
// dark
|
|
72
|
-
[`@apply dark:text-${color}`]: {},
|
|
73
|
-
[`@apply dark:focus-visible:border-${color}-400 dark:focus-visible:ring-${color}-400`]: {},
|
|
48
|
+
svg: {
|
|
49
|
+
'@apply block': {},
|
|
50
|
+
},
|
|
74
51
|
},
|
|
75
|
-
}
|
|
76
|
-
{}
|
|
77
|
-
),*/
|
|
78
|
-
|
|
79
|
-
'@apply dark:focus-visible:ring-offset-neutral-900': {},
|
|
52
|
+
},
|
|
80
53
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
},
|
|
54
|
+
'&&[aria-invalid=true]': {
|
|
55
|
+
'& + .sk-icon': {
|
|
56
|
+
'@apply border-2 border-error-surface-primary': {},
|
|
57
|
+
},
|
|
86
58
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
//"@apply w-4 h-4": {},
|
|
91
|
-
},
|
|
59
|
+
'&&:checked': {
|
|
60
|
+
'& + .sk-icon': {
|
|
61
|
+
'@apply p-2 bg-background-content text-dark-primary': {},
|
|
92
62
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
63
|
+
svg: {
|
|
64
|
+
'@apply block': {},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
96
68
|
},
|
|
97
69
|
|
|
98
70
|
// disabled
|
|
99
|
-
'
|
|
100
|
-
'@apply
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
+
},
|
|
104
87
|
},
|
|
105
88
|
|
|
106
89
|
// label
|
|
107
90
|
'&-label-left &-label': {
|
|
108
|
-
|
|
91
|
+
'@apply mr-[.8rem]': {},
|
|
109
92
|
},
|
|
110
93
|
'&-label-right &-label': {
|
|
111
|
-
|
|
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
|
+
},
|
|
112
107
|
},
|
|
113
108
|
|
|
114
109
|
'&-label': {
|
|
115
|
-
'@apply text-body select-none text-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
+
},
|
|
120
115
|
|
|
121
116
|
'&-sm': {
|
|
122
|
-
'@apply text-
|
|
117
|
+
'@apply text-small': {},
|
|
123
118
|
},
|
|
124
119
|
|
|
125
120
|
'&-md': {
|
|
126
|
-
'@apply text-
|
|
121
|
+
'@apply text-base': {},
|
|
127
122
|
},
|
|
128
123
|
|
|
129
124
|
'&-lg': {
|
|
130
|
-
'@apply text-
|
|
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': {},
|
|
131
133
|
},
|
|
132
134
|
},
|
|
133
135
|
},
|
|
@@ -0,0 +1,66 @@
|
|
|
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,34 +1,38 @@
|
|
|
1
|
-
module.exports = Comments = () => ({
|
|
2
|
-
'.comment-header': {
|
|
3
|
-
'@apply w-full flex items-center gap-8 p-16 border-b-4 border-gray-200': {},
|
|
4
|
-
},
|
|
1
|
+
module.exports = Comments = () => ({
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
'.comment-header': {
|
|
4
|
+
'@apply w-full flex items-center gap-8 p-16 border-b-4 border-gray-200': {},
|
|
5
|
+
},
|
|
8
6
|
|
|
9
|
-
'
|
|
10
|
-
|
|
7
|
+
'.comment-item':{
|
|
8
|
+
'@apply w-full': {},
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
'&-text': {
|
|
17
|
-
'@apply text-base font-bold mx-0 mb-0 mt-4': {},
|
|
18
|
-
},
|
|
19
|
-
'&-commentorpublished': {
|
|
20
|
-
'@apply float-right text-neutral-600 m-0': {},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
'.comment-input': {
|
|
24
|
-
'@apply w-full flex gap-4 px-10 pt-8 pb-10': {},
|
|
10
|
+
'&-container': {
|
|
11
|
+
'@apply flex justify-between relative': {},
|
|
25
12
|
|
|
26
|
-
|
|
27
|
-
|
|
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
|
+
},
|
|
28
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
|
+
}
|
|
29
34
|
|
|
30
|
-
'&-active': {
|
|
31
|
-
'@apply text-primary !text-3xl': {},
|
|
32
35
|
},
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
});
|