@sk-web-gui/core 1.0.2 → 1.1.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 +6 -1
- package/dist/cjs/base.js.map +1 -1
- package/dist/cjs/colors.js +5 -1
- package/dist/cjs/colors.js.map +1 -1
- package/dist/cjs/components/accordion.js +97 -20
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/alert.js +5 -1
- package/dist/cjs/components/alert.js.map +1 -1
- package/dist/cjs/components/avatar.js +5 -1
- package/dist/cjs/components/avatar.js.map +1 -1
- package/dist/cjs/components/badge.js +5 -1
- package/dist/cjs/components/badge.js.map +1 -1
- package/dist/cjs/components/breadcrumb.js +5 -1
- package/dist/cjs/components/breadcrumb.js.map +1 -1
- package/dist/cjs/components/button-group.js +5 -1
- package/dist/cjs/components/button-group.js.map +1 -1
- package/dist/cjs/components/button.js +5 -1
- package/dist/cjs/components/button.js.map +1 -1
- package/dist/cjs/components/card.js +5 -1
- package/dist/cjs/components/card.js.map +1 -1
- package/dist/cjs/components/checkbox.js +5 -1
- package/dist/cjs/components/checkbox.js.map +1 -1
- package/dist/cjs/components/chip.js +41 -0
- package/dist/cjs/components/chip.js.map +1 -0
- package/dist/cjs/components/code.js +5 -1
- package/dist/cjs/components/code.js.map +1 -1
- package/dist/cjs/components/combobox.js +10 -1
- package/dist/cjs/components/combobox.js.map +1 -1
- package/dist/cjs/components/cookie-consent.js +5 -1
- package/dist/cjs/components/cookie-consent.js.map +1 -1
- package/dist/cjs/components/dialog.js +5 -1
- package/dist/cjs/components/dialog.js.map +1 -1
- package/dist/cjs/components/divider.js +5 -1
- package/dist/cjs/components/divider.js.map +1 -1
- package/dist/cjs/components/dot.js +5 -1
- package/dist/cjs/components/dot.js.map +1 -1
- package/dist/cjs/components/filter.js +5 -1
- package/dist/cjs/components/filter.js.map +1 -1
- package/dist/cjs/components/footer.js +5 -1
- package/dist/cjs/components/footer.js.map +1 -1
- package/dist/cjs/components/forms.js +5 -1
- package/dist/cjs/components/forms.js.map +1 -1
- package/dist/cjs/components/header.js +10 -2
- package/dist/cjs/components/header.js.map +1 -1
- package/dist/cjs/components/icon.js +5 -1
- package/dist/cjs/components/icon.js.map +1 -1
- package/dist/cjs/components/input.js +17 -10
- package/dist/cjs/components/input.js.map +1 -1
- package/dist/cjs/components/kbd.js +5 -1
- package/dist/cjs/components/kbd.js.map +1 -1
- package/dist/cjs/components/label.js +5 -1
- package/dist/cjs/components/label.js.map +1 -1
- package/dist/cjs/components/link.js +5 -1
- package/dist/cjs/components/link.js.map +1 -1
- package/dist/cjs/components/list.js +5 -1
- package/dist/cjs/components/list.js.map +1 -1
- package/dist/cjs/components/logo.js +5 -1
- package/dist/cjs/components/logo.js.map +1 -1
- package/dist/cjs/components/menu-vertical.js +7 -6
- package/dist/cjs/components/menu-vertical.js.map +1 -1
- package/dist/cjs/components/menubar.js +7 -3
- package/dist/cjs/components/menubar.js.map +1 -1
- package/dist/cjs/components/modal.js +5 -1
- package/dist/cjs/components/modal.js.map +1 -1
- package/dist/cjs/components/pagination.js +5 -1
- package/dist/cjs/components/pagination.js.map +1 -1
- package/dist/cjs/components/popup-menu.js +5 -1
- package/dist/cjs/components/popup-menu.js.map +1 -1
- package/dist/cjs/components/progress-bar.js +5 -1
- package/dist/cjs/components/progress-bar.js.map +1 -1
- package/dist/cjs/components/progress-stepper.js +5 -1
- package/dist/cjs/components/progress-stepper.js.map +1 -1
- package/dist/cjs/components/radio.js +5 -1
- package/dist/cjs/components/radio.js.map +1 -1
- package/dist/cjs/components/search-field.js +5 -1
- package/dist/cjs/components/search-field.js.map +1 -1
- package/dist/cjs/components/select.js +5 -1
- package/dist/cjs/components/select.js.map +1 -1
- package/dist/cjs/components/snackbar.js +5 -1
- package/dist/cjs/components/snackbar.js.map +1 -1
- package/dist/cjs/components/spinner.js +5 -1
- package/dist/cjs/components/spinner.js.map +1 -1
- package/dist/cjs/components/switch.js +5 -1
- package/dist/cjs/components/switch.js.map +1 -1
- package/dist/cjs/components/table.js +5 -1
- package/dist/cjs/components/table.js.map +1 -1
- package/dist/cjs/components/tabs.js +12 -57
- package/dist/cjs/components/tabs.js.map +1 -1
- package/dist/cjs/components/tooltip.js +5 -1
- package/dist/cjs/components/tooltip.js.map +1 -1
- package/dist/cjs/components/user-menu.js +5 -1
- package/dist/cjs/components/user-menu.js.map +1 -1
- package/dist/cjs/components/zebratable.js +18 -5
- package/dist/cjs/components/zebratable.js.map +1 -1
- package/dist/cjs/index.js +10 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/plugin.js +56 -56
- package/dist/cjs/plugin.js.map +1 -1
- package/dist/cjs/preset.js +10 -2
- package/dist/cjs/preset.js.map +1 -1
- package/dist/cjs/theme.js +70 -66
- package/dist/cjs/theme.js.map +1 -1
- package/dist/cjs/units.js +44 -39
- package/dist/cjs/units.js.map +1 -1
- package/dist/cjs/with-opacity.js +6 -1
- package/dist/cjs/with-opacity.js.map +1 -1
- package/dist/esm/base.js +3 -1
- package/dist/esm/base.js.map +1 -1
- package/dist/esm/colors.js +2 -1
- package/dist/esm/colors.js.map +1 -1
- package/dist/esm/components/accordion.js +93 -20
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/alert.js +1 -1
- package/dist/esm/components/alert.js.map +1 -1
- package/dist/esm/components/avatar.js +1 -1
- package/dist/esm/components/avatar.js.map +1 -1
- package/dist/esm/components/badge.js +1 -1
- package/dist/esm/components/badge.js.map +1 -1
- package/dist/esm/components/breadcrumb.js +1 -1
- package/dist/esm/components/breadcrumb.js.map +1 -1
- package/dist/esm/components/button-group.js +1 -1
- package/dist/esm/components/button-group.js.map +1 -1
- package/dist/esm/components/button.js +1 -1
- package/dist/esm/components/button.js.map +1 -1
- package/dist/esm/components/card.js +1 -1
- package/dist/esm/components/card.js.map +1 -1
- package/dist/esm/components/checkbox.js +1 -1
- package/dist/esm/components/checkbox.js.map +1 -1
- package/dist/esm/components/chip.js +35 -0
- package/dist/esm/components/chip.js.map +1 -0
- package/dist/esm/components/code.js +1 -1
- package/dist/esm/components/code.js.map +1 -1
- package/dist/esm/components/combobox.js +6 -1
- package/dist/esm/components/combobox.js.map +1 -1
- package/dist/esm/components/cookie-consent.js +1 -1
- package/dist/esm/components/cookie-consent.js.map +1 -1
- package/dist/esm/components/dialog.js +1 -1
- package/dist/esm/components/dialog.js.map +1 -1
- package/dist/esm/components/divider.js +1 -1
- package/dist/esm/components/divider.js.map +1 -1
- package/dist/esm/components/dot.js +1 -1
- package/dist/esm/components/dot.js.map +1 -1
- package/dist/esm/components/filter.js +1 -1
- package/dist/esm/components/filter.js.map +1 -1
- package/dist/esm/components/footer.js +1 -1
- package/dist/esm/components/footer.js.map +1 -1
- package/dist/esm/components/forms.js +1 -1
- package/dist/esm/components/forms.js.map +1 -1
- package/dist/esm/components/header.js +6 -2
- package/dist/esm/components/header.js.map +1 -1
- package/dist/esm/components/icon.js +1 -1
- package/dist/esm/components/icon.js.map +1 -1
- package/dist/esm/components/input.js +13 -10
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/kbd.js +1 -1
- package/dist/esm/components/kbd.js.map +1 -1
- package/dist/esm/components/label.js +1 -1
- package/dist/esm/components/label.js.map +1 -1
- package/dist/esm/components/link.js +1 -1
- package/dist/esm/components/link.js.map +1 -1
- package/dist/esm/components/list.js +1 -1
- package/dist/esm/components/list.js.map +1 -1
- package/dist/esm/components/logo.js +1 -1
- package/dist/esm/components/logo.js.map +1 -1
- package/dist/esm/components/menu-vertical.js +3 -6
- package/dist/esm/components/menu-vertical.js.map +1 -1
- package/dist/esm/components/menubar.js +3 -3
- package/dist/esm/components/menubar.js.map +1 -1
- package/dist/esm/components/modal.js +1 -1
- package/dist/esm/components/modal.js.map +1 -1
- package/dist/esm/components/pagination.js +1 -1
- package/dist/esm/components/pagination.js.map +1 -1
- package/dist/esm/components/popup-menu.js +1 -1
- package/dist/esm/components/popup-menu.js.map +1 -1
- package/dist/esm/components/progress-bar.js +1 -1
- package/dist/esm/components/progress-bar.js.map +1 -1
- package/dist/esm/components/progress-stepper.js +1 -1
- package/dist/esm/components/progress-stepper.js.map +1 -1
- package/dist/esm/components/radio.js +1 -1
- package/dist/esm/components/radio.js.map +1 -1
- package/dist/esm/components/search-field.js +1 -1
- package/dist/esm/components/search-field.js.map +1 -1
- package/dist/esm/components/select.js +1 -1
- package/dist/esm/components/select.js.map +1 -1
- package/dist/esm/components/snackbar.js +1 -1
- package/dist/esm/components/snackbar.js.map +1 -1
- package/dist/esm/components/spinner.js +1 -1
- package/dist/esm/components/spinner.js.map +1 -1
- package/dist/esm/components/switch.js +1 -1
- package/dist/esm/components/switch.js.map +1 -1
- package/dist/esm/components/table.js +1 -1
- package/dist/esm/components/table.js.map +1 -1
- package/dist/esm/components/tabs.js +8 -57
- package/dist/esm/components/tabs.js.map +1 -1
- package/dist/esm/components/tooltip.js +1 -1
- package/dist/esm/components/tooltip.js.map +1 -1
- package/dist/esm/components/user-menu.js +1 -1
- package/dist/esm/components/user-menu.js.map +1 -1
- package/dist/esm/components/zebratable.js +14 -5
- package/dist/esm/components/zebratable.js.map +1 -1
- package/dist/esm/index.js +4 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/plugin.js +50 -54
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/preset.js +5 -2
- package/dist/esm/preset.js.map +1 -1
- package/dist/esm/theme.js +25 -26
- package/dist/esm/theme.js.map +1 -1
- package/dist/esm/units.js +41 -39
- package/dist/esm/units.js.map +1 -1
- package/dist/esm/with-opacity.js +2 -1
- package/dist/esm/with-opacity.js.map +1 -1
- package/dist/types/base.d.ts +53 -0
- package/dist/types/colors.d.ts +643 -0
- package/dist/types/components/accordion.d.ts +169 -0
- package/dist/types/components/alert-banner.d.ts +24 -0
- package/dist/types/components/alert.d.ts +21 -0
- package/dist/types/components/avatar.d.ts +26 -0
- package/dist/types/components/badge.d.ts +21 -0
- package/dist/types/components/breadcrumb.d.ts +28 -0
- package/dist/types/components/button-group.d.ts +25 -0
- package/dist/types/components/button.d.ts +198 -0
- package/dist/types/components/card.d.ts +135 -0
- package/dist/types/components/checkbox.d.ts +105 -0
- package/dist/types/components/chip.d.ts +34 -0
- package/dist/types/components/code.d.ts +8 -0
- package/dist/types/components/combobox.d.ts +69 -0
- package/dist/types/components/comments.d.ts +30 -0
- package/dist/types/components/context-menu.d.ts +39 -0
- package/dist/types/components/cookie-consent.d.ts +35 -0
- package/dist/types/components/dialog.d.ts +5 -0
- package/dist/types/components/divider.d.ts +50 -0
- package/dist/types/components/dot.d.ts +43 -0
- package/dist/types/components/dropdown-filter.d.ts +58 -0
- package/dist/types/components/filter.d.ts +14 -0
- package/dist/types/components/footer.d.ts +27 -0
- package/dist/types/components/forms.d.ts +24 -0
- package/dist/types/components/header.d.ts +28 -0
- package/dist/types/components/icon.d.ts +38 -0
- package/dist/types/components/input.d.ts +209 -0
- package/dist/types/components/kbd.d.ts +7 -0
- package/dist/types/components/label.d.ts +19 -0
- package/dist/types/components/link.d.ts +43 -0
- package/dist/types/components/list.d.ts +52 -0
- package/dist/types/components/logo.d.ts +48 -0
- package/dist/types/components/menu-vertical.d.ts +215 -0
- package/dist/types/components/menubar.d.ts +35 -0
- package/dist/types/components/modal.d.ts +41 -0
- package/dist/types/components/notification.d.ts +48 -0
- package/dist/types/components/pagination.d.ts +100 -0
- package/dist/types/components/popup-menu.d.ts +105 -0
- package/dist/types/components/progress-bar.d.ts +13 -0
- package/dist/types/components/progress-stepper.d.ts +50 -0
- package/dist/types/components/radio.d.ts +125 -0
- package/dist/types/components/search-field.d.ts +20 -0
- package/dist/types/components/select.d.ts +141 -0
- package/dist/types/components/side-menu.d.ts +219 -0
- package/dist/types/components/snackbar.d.ts +30 -0
- package/dist/types/components/spinner.d.ts +10 -0
- package/dist/types/components/switch.d.ts +64 -0
- package/dist/types/components/tab-menu.d.ts +57 -0
- package/dist/types/components/table.d.ts +11 -0
- package/dist/types/components/tabs.d.ts +14 -0
- package/dist/types/components/tooltip.d.ts +53 -0
- package/dist/types/components/user-menu.d.ts +13 -0
- package/dist/types/components/zebratable.d.ts +134 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/plugin.d.ts +12 -0
- package/dist/types/preset.d.ts +15 -0
- package/dist/types/theme.d.ts +4 -0
- package/dist/types/units.d.ts +251 -0
- package/dist/types/with-opacity.d.ts +4 -0
- package/package.json +20 -13
- package/dist/cjs/components/calendar.js +0 -67
- package/dist/cjs/components/calendar.js.map +0 -1
- package/dist/cjs/components/form-control.js +0 -8
- package/dist/cjs/components/form-control.js.map +0 -1
- package/dist/cjs/components/message.js +0 -52
- package/dist/cjs/components/message.js.map +0 -1
- package/dist/cjs/components/profile-picture.js +0 -15
- package/dist/cjs/components/profile-picture.js.map +0 -1
- package/dist/cjs/components/profile.js +0 -34
- package/dist/cjs/components/profile.js.map +0 -1
- package/dist/cjs/components/search-bar.js +0 -8
- package/dist/cjs/components/search-bar.js.map +0 -1
- package/dist/cjs/components/tag.js +0 -72
- package/dist/cjs/components/tag.js.map +0 -1
- package/dist/esm/components/calendar.js +0 -65
- package/dist/esm/components/calendar.js.map +0 -1
- package/dist/esm/components/form-control.js +0 -6
- package/dist/esm/components/form-control.js.map +0 -1
- package/dist/esm/components/message.js +0 -50
- package/dist/esm/components/message.js.map +0 -1
- package/dist/esm/components/profile-picture.js +0 -13
- package/dist/esm/components/profile-picture.js.map +0 -1
- package/dist/esm/components/profile.js +0 -32
- package/dist/esm/components/profile.js.map +0 -1
- package/dist/esm/components/search-bar.js +0 -6
- package/dist/esm/components/search-bar.js.map +0 -1
- package/dist/esm/components/tag.js +0 -79
- package/dist/esm/components/tag.js.map +0 -1
- package/src/base.js +0 -47
- package/src/colors.js +0 -645
- package/src/components/accordion.js +0 -103
- package/src/components/alert-banner.js +0 -29
- package/src/components/alert.js +0 -90
- package/src/components/avatar.js +0 -39
- package/src/components/badge.js +0 -41
- package/src/components/breadcrumb.js +0 -33
- package/src/components/button-group.js +0 -31
- package/src/components/button.js +0 -309
- package/src/components/card.js +0 -293
- package/src/components/checkbox.js +0 -136
- package/src/components/code.js +0 -9
- package/src/components/combobox.js +0 -66
- package/src/components/comments.js +0 -38
- package/src/components/context-menu.js +0 -49
- package/src/components/cookie-consent.js +0 -45
- package/src/components/dialog.js +0 -5
- package/src/components/divider.js +0 -52
- package/src/components/dot.js +0 -83
- package/src/components/dropdown-filter.js +0 -66
- package/src/components/filter.js +0 -16
- package/src/components/footer.js +0 -29
- package/src/components/forms.js +0 -27
- package/src/components/header.js +0 -28
- package/src/components/icon.js +0 -78
- package/src/components/input.js +0 -244
- package/src/components/kbd.js +0 -9
- package/src/components/label.js +0 -37
- package/src/components/link.js +0 -53
- package/src/components/list.js +0 -61
- package/src/components/logo.js +0 -49
- package/src/components/menu-vertical.js +0 -293
- package/src/components/menubar.js +0 -56
- package/src/components/modal.js +0 -47
- package/src/components/notification.js +0 -56
- package/src/components/pagination.js +0 -116
- package/src/components/popup-menu.js +0 -111
- package/src/components/progress-bar.js +0 -31
- package/src/components/progress-stepper.js +0 -50
- package/src/components/radio.js +0 -138
- package/src/components/search-field.js +0 -20
- package/src/components/select.js +0 -203
- package/src/components/side-menu.js +0 -272
- package/src/components/snackbar.js +0 -34
- package/src/components/spinner.js +0 -23
- package/src/components/switch.js +0 -85
- package/src/components/tab-menu.js +0 -58
- package/src/components/table.js +0 -13
- package/src/components/tabs.js +0 -64
- package/src/components/tooltip.js +0 -64
- package/src/components/user-menu.js +0 -13
- package/src/components/zebratable.js +0 -140
- package/src/index.js +0 -8
- package/src/plugin.js +0 -142
- package/src/preset.js +0 -5
- package/src/theme.js +0 -158
- package/src/units.js +0 -212
- package/src/with-opacity.js +0 -6
package/src/components/dot.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
module.exports = Dot = (colors) => ({
|
|
2
|
-
'.dot': {
|
|
3
|
-
'@apply relative inline-flex rounded-full': {},
|
|
4
|
-
'&-solid': {
|
|
5
|
-
'@apply bg-neutral-500': {},
|
|
6
|
-
|
|
7
|
-
...colors.reduce(
|
|
8
|
-
(styles, color) => ({
|
|
9
|
-
...styles,
|
|
10
|
-
[`&[data-color="${color}"]`]: {
|
|
11
|
-
[`@apply bg-${color}-surface-primary`]: {},
|
|
12
|
-
},
|
|
13
|
-
}),
|
|
14
|
-
{}
|
|
15
|
-
),
|
|
16
|
-
|
|
17
|
-
'&.dot-bordered': {
|
|
18
|
-
'@apply border-2 border-white': {},
|
|
19
|
-
'@apply dark:border-neutral-800': {},
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
...colors.reduce(
|
|
23
|
-
(styles, color) => ({
|
|
24
|
-
...styles,
|
|
25
|
-
[`&.dot-bordered[data-color="${color}"]`]: {
|
|
26
|
-
[`@apply border-${color}-background-200`]: {},
|
|
27
|
-
},
|
|
28
|
-
}),
|
|
29
|
-
{}
|
|
30
|
-
),
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
'&-outline': {
|
|
34
|
-
'@apply bg-white border-2 border-neutral-500': {},
|
|
35
|
-
'@apply dark:bg-neutral-800': {},
|
|
36
|
-
...colors.reduce(
|
|
37
|
-
(styles, color) => ({
|
|
38
|
-
...styles,
|
|
39
|
-
[`&[data-color="${color}"]`]: {
|
|
40
|
-
[`@apply border-${color}-surface-primary`]: {},
|
|
41
|
-
},
|
|
42
|
-
}),
|
|
43
|
-
{}
|
|
44
|
-
),
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
'&-3xs': {
|
|
48
|
-
'@apply w-1.5 h-1.5': {},
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
'&-2xs': {
|
|
52
|
-
'@apply w-2 h-2': {},
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
'&-xs': {
|
|
56
|
-
'@apply w-2.5 h-2.5': {},
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
'&-sm': {
|
|
60
|
-
'@apply w-3 h-3': {},
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
'&-md': {
|
|
64
|
-
'@apply w-3.5 h-3.5': {},
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
'&-lg': {
|
|
68
|
-
'@apply w-4 h-4': {},
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
'&-xl': {
|
|
72
|
-
'@apply w-5 h-5': {},
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
'&-2xl': {
|
|
76
|
-
'@apply w-6 h-6': {},
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
'&-3xl': {
|
|
80
|
-
'@apply w-8 h-8': {},
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
});
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
module.exports = DropdownFilter = () => ({
|
|
2
|
-
'.dropdown-filter': {
|
|
3
|
-
position: 'relative',
|
|
4
|
-
height: 50,
|
|
5
|
-
border: '1px solid #939393',
|
|
6
|
-
display: 'flex',
|
|
7
|
-
background: '#fff',
|
|
8
|
-
borderRadius: 2,
|
|
9
|
-
|
|
10
|
-
'.dropdown-button': {
|
|
11
|
-
'@apply flex justify-between items-center grow': {},
|
|
12
|
-
'.dropdown-button-icon': {
|
|
13
|
-
'@apply justify-self-end grow-0': {},
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
'.filter-container': {
|
|
18
|
-
position: 'absolute',
|
|
19
|
-
top: '100%',
|
|
20
|
-
left: '-1px',
|
|
21
|
-
zIndex: 10,
|
|
22
|
-
width: 'calc(100% + 2px)',
|
|
23
|
-
background: '#fff',
|
|
24
|
-
border: '1px solid #939393',
|
|
25
|
-
borderRadius: 2,
|
|
26
|
-
|
|
27
|
-
'.filter-controls': {
|
|
28
|
-
display: 'flex',
|
|
29
|
-
justifyContent: 'flex-end',
|
|
30
|
-
button: {
|
|
31
|
-
marginLeft: '1rem',
|
|
32
|
-
textDecoration: 'underline',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
'.filter-item': {
|
|
37
|
-
'@apply px-md': {},
|
|
38
|
-
height: 48,
|
|
39
|
-
display: 'flex',
|
|
40
|
-
justifyContent: 'space-between',
|
|
41
|
-
alignItems: 'center',
|
|
42
|
-
borderBottom: '1px solid #939393',
|
|
43
|
-
|
|
44
|
-
'> label': {
|
|
45
|
-
'@apply w-full': {},
|
|
46
|
-
|
|
47
|
-
'> .form-checkbox-label': {
|
|
48
|
-
'@apply flex-grow': {},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
'&.disabled': {
|
|
53
|
-
color: '#939393',
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
'&:first-of-type': {
|
|
57
|
-
borderTop: '1px solid #939393',
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
'&:last-child': {
|
|
61
|
-
borderBottom: 'none',
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
});
|
package/src/components/filter.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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': {},
|
|
8
|
-
|
|
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': {},
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
'&-logo': {
|
|
17
|
-
'@apply max-h-[7.2rem] h-[7.2rem]': {},
|
|
18
|
-
},
|
|
19
|
-
'&-content': {
|
|
20
|
-
'@apply flex flex-row gap-36 w-fit grow-0 flex-wrap': {},
|
|
21
|
-
},
|
|
22
|
-
'&-list': {
|
|
23
|
-
'@apply flex flex-col gap-16': {},
|
|
24
|
-
'&-item': {
|
|
25
|
-
'@apply flex flex-row justify-start items-center gap-8': {},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
});
|
package/src/components/forms.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
module.exports = Forms = () => ({
|
|
2
|
-
'.sk-form-control': {
|
|
3
|
-
'@apply flex flex-col gap-8 w-fit': {},
|
|
4
|
-
},
|
|
5
|
-
|
|
6
|
-
'.sk-form-label': {
|
|
7
|
-
'@apply font-bold': {},
|
|
8
|
-
'&-sm': {
|
|
9
|
-
'@apply text-label-small': {},
|
|
10
|
-
},
|
|
11
|
-
'&-md': {
|
|
12
|
-
'@apply text-label-medium': {},
|
|
13
|
-
},
|
|
14
|
-
'&-lg': {
|
|
15
|
-
'@apply text-label-large': {},
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
'legend.sk-form-label': {
|
|
20
|
-
display: 'contents',
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
'.sk-form-helper-text, .sk-form-error-message': {
|
|
24
|
-
'@apply font-normal': {},
|
|
25
|
-
'@apply text-small': {},
|
|
26
|
-
},
|
|
27
|
-
});
|
package/src/components/header.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
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': {},
|
|
5
|
-
|
|
6
|
-
'&-container': {
|
|
7
|
-
'@apply flex flex-col gap-20 xl:gap-24': {},
|
|
8
|
-
},
|
|
9
|
-
|
|
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': {},
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
'&-usermenu': {
|
|
18
|
-
'@apply hidden xl:flex-shrink md:flex xl:items-center xl:w-auto': {},
|
|
19
|
-
|
|
20
|
-
'&-content': {
|
|
21
|
-
'@apply relative flex flex-grow justify-end items-center xl:w-auto': {},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
'&-mobilemenu': {
|
|
25
|
-
'@apply block md:hidden relative': {},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
});
|
package/src/components/icon.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
module.exports = Icon = (colors) => ({
|
|
2
|
-
'.sk-icon': {
|
|
3
|
-
'@apply inline-flex items-center justify-center': {},
|
|
4
|
-
'@apply w-24 h-24': {},
|
|
5
|
-
svg: {
|
|
6
|
-
'@apply w-full h-full': {},
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
'&.sk-icon-padded': {
|
|
10
|
-
'@apply rounded-utility': {},
|
|
11
|
-
'@apply text-light-primary fill-light-primary': {},
|
|
12
|
-
'@apply p-[0.4rem]': {},
|
|
13
|
-
|
|
14
|
-
...colors.reduce(
|
|
15
|
-
(styles, color) => ({
|
|
16
|
-
...styles,
|
|
17
|
-
[`&[data-color="${color}"]`]: {
|
|
18
|
-
[`@apply bg-${color}-surface-primary text-${color}-text-secondary fill-${color}-text-secondary`]: {},
|
|
19
|
-
|
|
20
|
-
'&[data-inverted="true"]': {
|
|
21
|
-
'@apply text-inverted-light-primary': {},
|
|
22
|
-
[`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary fill-inverted-${color}-text-secondary`]:
|
|
23
|
-
{},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
}),
|
|
27
|
-
{}
|
|
28
|
-
),
|
|
29
|
-
|
|
30
|
-
"&[data-color='primary'], &[data-color='tertiary']": {
|
|
31
|
-
'@apply bg-primary-surface text-light-primary fill-light-primary': {},
|
|
32
|
-
|
|
33
|
-
'&[data-inverted="true"]': {
|
|
34
|
-
'@apply text-inverted-light-primary fill-inverted-light-primary': {},
|
|
35
|
-
'@apply bg-tertiary-surface': {},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
"&[data-variant='ghost']": {
|
|
39
|
-
'@apply bg-transparent text-current fill-current': {},
|
|
40
|
-
|
|
41
|
-
'&[data-inverted="true"]': {
|
|
42
|
-
'@apply bg-transparent text-current fill-current': {},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
'&[data-size="fit"]': {
|
|
48
|
-
'@apply w-fit h-fit': {},
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
'&[data-rounded="true"]': {
|
|
52
|
-
'@apply rounded-circular': {},
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
...colors.reduce(
|
|
56
|
-
(styles, color) => ({
|
|
57
|
-
...styles,
|
|
58
|
-
[`&[data-color="${color}"]`]: {
|
|
59
|
-
'@apply text-inverted-light-primary': {},
|
|
60
|
-
[`@apply text-inverted-${color}-text-secondary fill-inverted-${color}-text-secondary`]: {},
|
|
61
|
-
|
|
62
|
-
'&[data-inverted="true"]': {
|
|
63
|
-
'@apply text-inverted-light-primary': {},
|
|
64
|
-
[`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary fill-inverted-${color}-text-secondary`]:
|
|
65
|
-
{},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
}),
|
|
69
|
-
{}
|
|
70
|
-
),
|
|
71
|
-
|
|
72
|
-
"&[data-color='primary']": {
|
|
73
|
-
'&[data-inverted="true"]': {
|
|
74
|
-
'@apply text-light-primary fill-light-primary': {},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
});
|
package/src/components/input.js
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
module.exports = Kbd = () => ({
|
|
2
|
-
'.kbd': {
|
|
3
|
-
'@apply inline-flex justify-center items-center capitalize text-xs p-1 rounded h-5 whitespace-nowrap font-sans': {},
|
|
4
|
-
minWidth: '1.25rem',
|
|
5
|
-
'@apply bg-blackAlpha-100 text-body': {},
|
|
6
|
-
// dark
|
|
7
|
-
// '@apply dark:bg-white/30 dark:text-neutral-300': {},
|
|
8
|
-
},
|
|
9
|
-
});
|
package/src/components/label.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
module.exports = Link = () => ({
|
|
2
|
-
'.sk-link': {
|
|
3
|
-
'@apply underline outline-none hover:underline': {},
|
|
4
|
-
'@apply rounded-utility': {},
|
|
5
|
-
|
|
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
|
-
},
|
|
36
|
-
|
|
37
|
-
'&.active': {
|
|
38
|
-
'@apply underline': {},
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
'& &-external-icon': {
|
|
42
|
-
'@apply w-[1em] h-[1em] leading-none ml-[.25em] align-text-top': {},
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
'&[type="button"]': {
|
|
46
|
-
'@apply inline-flex items-center align-bottom': {},
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
'&-disabled': {
|
|
50
|
-
'@apply text-dark-disabled cursor-default': {},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
});
|