@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
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
module.exports = Accordion = () => ({
|
|
2
|
-
'.sk-disclosure': {
|
|
3
|
-
'&-header': {
|
|
4
|
-
'@apply mt-6 mb-8': {},
|
|
5
|
-
'@apply flex flex-col text-left': {},
|
|
6
|
-
'@apply cursor-pointer': {},
|
|
7
|
-
'*': {
|
|
8
|
-
'@apply cursor-pointer': {},
|
|
9
|
-
},
|
|
10
|
-
'&:focus-visible': {
|
|
11
|
-
'@apply outline-0': {},
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
'&-icon': {
|
|
15
|
-
'@apply ml-auto': {},
|
|
16
|
-
svg: {
|
|
17
|
-
'@apply w-20 h-20': {},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
'&[data-disabled="true"]': {
|
|
21
|
-
'@apply text-dark-disabled': {},
|
|
22
|
-
'@apply cursor-default': {},
|
|
23
|
-
'*': {
|
|
24
|
-
'@apply cursor-default': {},
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
'&-sm': {
|
|
30
|
-
'.sk-disclosure-title': {
|
|
31
|
-
'@apply text-h4-sm font-bold': {},
|
|
32
|
-
},
|
|
33
|
-
'.sk-disclosure-toggle': {
|
|
34
|
-
'@apply py-4': {},
|
|
35
|
-
'@apply h-40': {},
|
|
36
|
-
},
|
|
37
|
-
'.sk-disclosure-header-icon': {
|
|
38
|
-
'@apply w-32 h-32': {},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
'&-md': {
|
|
42
|
-
'.sk-disclosure-title': {
|
|
43
|
-
'@apply text-h4-md font-bold': {},
|
|
44
|
-
},
|
|
45
|
-
'.sk-disclosure-toggle': {
|
|
46
|
-
'@apply py-8': {},
|
|
47
|
-
'@apply h-56': {},
|
|
48
|
-
},
|
|
49
|
-
'.sk-disclosure-header-icon': {
|
|
50
|
-
'@apply w-40 h-40': {},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
'&-toggle': {
|
|
54
|
-
'@apply flex items-center justify-between': {},
|
|
55
|
-
'@apply gap-16': {},
|
|
56
|
-
},
|
|
57
|
-
'&-title': {
|
|
58
|
-
'@apply text-dark-secondary': {},
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
'&-body': {
|
|
62
|
-
'@apply flex flex-col': {},
|
|
63
|
-
'@apply mb-32': {},
|
|
64
|
-
'@apply mr-32': {},
|
|
65
|
-
'@apply gap-8': {},
|
|
66
|
-
'@apply py-0': {},
|
|
67
|
-
'@apply h-0 overflow-hidden': {},
|
|
68
|
-
transitionProperty: 'visibility, height, padding, margin',
|
|
69
|
-
transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
70
|
-
transitionDuration: '180ms',
|
|
71
|
-
|
|
72
|
-
'&[aria-hidden="true"], &[data-hidden="true"]': {
|
|
73
|
-
'@apply my-0 invisible h-0': {},
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
'&[aria-hidden="false"], &[data-hidden="false"]': {
|
|
77
|
-
'@apply block h-max visible': {},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
'&-is-open': {
|
|
82
|
-
'.sk-disclosure-body': {
|
|
83
|
-
'@apply overflow-visible animate-reset-overflow': {},
|
|
84
|
-
},
|
|
85
|
-
'.sk-disclosure-title': {
|
|
86
|
-
'@apply text-vattjom-text-primary': {},
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
'.sk-accordion': {
|
|
91
|
-
'&-item': {
|
|
92
|
-
'.sk-disclosure': {
|
|
93
|
-
transitionProperty: 'margin',
|
|
94
|
-
transitionDuration: '180ms',
|
|
95
|
-
'@apply border-b-1 border-divider': {},
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
'&:last-child .sk-disclosure': {
|
|
99
|
-
'@apply border-b-transparent': {},
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
module.exports = Modal = () => ({
|
|
2
|
-
'.alert-banner': {
|
|
3
|
-
'@apply p-md': {},
|
|
4
|
-
|
|
5
|
-
'&-content': {
|
|
6
|
-
'@apply w-full m-auto flex': {},
|
|
7
|
-
|
|
8
|
-
'&-wrapper': {
|
|
9
|
-
'@apply flex-grow flex': {},
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
|
|
13
|
-
'&-icon': {
|
|
14
|
-
'@apply mr-[10px]': {},
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
'&-children': {
|
|
18
|
-
'@apply w-full underline inline-block max-w-[800px] text-body text-base': {},
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
'&-close': {
|
|
22
|
-
'@apply p-4 -m-4 flex flex-col': {},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
'.tab': {
|
|
27
|
-
'@apply mr-[10px] bg-white pt-4 pb-3 px-4 rounded-b-button shadow-[rgba(0,_0,_0,_0.24)_0px_1.5px_4px]': {},
|
|
28
|
-
},
|
|
29
|
-
});
|
package/src/components/alert.js
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
function alertSubtle(colors) {
|
|
2
|
-
return {
|
|
3
|
-
'.alert-subtle': {
|
|
4
|
-
'@apply border rounded-base': {},
|
|
5
|
-
'@apply text-body': {},
|
|
6
|
-
|
|
7
|
-
...colors.reduce(
|
|
8
|
-
(styles, color) => ({
|
|
9
|
-
...styles,
|
|
10
|
-
[`&[data-color="${color}"]`]: {
|
|
11
|
-
[`@apply bg-${color}-background-100 border-${color}-surface-primary`]: {},
|
|
12
|
-
|
|
13
|
-
'@apply dark:bg-opacity-15': {},
|
|
14
|
-
'@apply dark:border-opacity-40': {},
|
|
15
|
-
},
|
|
16
|
-
}),
|
|
17
|
-
{}
|
|
18
|
-
),
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function alertSolid(colors) {
|
|
24
|
-
return {
|
|
25
|
-
'.alert-solid': {
|
|
26
|
-
'@apply border rounded-base': {},
|
|
27
|
-
'@apply text-white': {},
|
|
28
|
-
|
|
29
|
-
...colors.reduce(
|
|
30
|
-
(styles, color) => ({
|
|
31
|
-
...styles,
|
|
32
|
-
[`&[data-color="${color}"]`]: {
|
|
33
|
-
[`@apply bg-${color}-surface-primary border-${color}-surface-primary border-opacity-20`]: {},
|
|
34
|
-
},
|
|
35
|
-
}),
|
|
36
|
-
{}
|
|
37
|
-
),
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function alertLeftAccent(colors) {
|
|
43
|
-
return {
|
|
44
|
-
'.alert-left-accent': {
|
|
45
|
-
'@apply border-l-2 rounded-none': {},
|
|
46
|
-
'@apply text-body': {},
|
|
47
|
-
|
|
48
|
-
...colors.reduce(
|
|
49
|
-
(styles, color) => ({
|
|
50
|
-
...styles,
|
|
51
|
-
[`&[data-color="${color}"]`]: {
|
|
52
|
-
[`@apply bg-transparent border-${color}-surface-primary`]: {},
|
|
53
|
-
},
|
|
54
|
-
}),
|
|
55
|
-
{}
|
|
56
|
-
),
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function alertCloseButton(colors) {
|
|
62
|
-
return {
|
|
63
|
-
'.alert-close-button': {
|
|
64
|
-
'@apply absolute right-4 cursor-base focus-visible:outline-none': {},
|
|
65
|
-
'@apply text-neutral-600 hover:text-neutral-700': {},
|
|
66
|
-
|
|
67
|
-
...colors.reduce(
|
|
68
|
-
(styles, color) => ({
|
|
69
|
-
...styles,
|
|
70
|
-
[`&[data-color="${color}"]`]: {},
|
|
71
|
-
}),
|
|
72
|
-
{}
|
|
73
|
-
),
|
|
74
|
-
},
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
module.exports = Alert = (colors) => ({
|
|
79
|
-
'.alert': {
|
|
80
|
-
'@apply w-full flex items-center px-4 py-3 relative overflow-hidden text-small': {},
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
// variants
|
|
84
|
-
...alertSubtle(colors),
|
|
85
|
-
...alertSolid(colors),
|
|
86
|
-
...alertLeftAccent(colors),
|
|
87
|
-
|
|
88
|
-
// close button
|
|
89
|
-
...alertCloseButton(colors),
|
|
90
|
-
});
|
package/src/components/avatar.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
module.exports = Avatar = (colors) => ({
|
|
2
|
-
'.sk-avatar': {
|
|
3
|
-
'@apply inline-flex': {},
|
|
4
|
-
'@apply justify-center items-center': {},
|
|
5
|
-
'@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},
|
|
6
|
-
'@apply overflow-hidden': {},
|
|
7
|
-
'&[data-rounded="true"]': {
|
|
8
|
-
'@apply rounded-circular': {},
|
|
9
|
-
},
|
|
10
|
-
'&&-sm': {
|
|
11
|
-
'@apply h-[3.2rem] w-[3.2rem] min-h-[2.4rem] max-h-[3.2rem] min-w-[2.4rem] max-w-[3.2rem]': {},
|
|
12
|
-
'@apply text-label-small': {},
|
|
13
|
-
},
|
|
14
|
-
'&&-md': {
|
|
15
|
-
'@apply h-[4rem] w-[4rem] min-h-[3.2rem] max-h-[4rem] min-w-[3.2rem] max-w-[4rem]': {},
|
|
16
|
-
'@apply text-label-medium': {},
|
|
17
|
-
},
|
|
18
|
-
'&&-lg': {
|
|
19
|
-
'@apply h-[6.4rem] w-[6.4rem] min-h-[4rem] max-h-[6.4rem] min-w-[4rem] max-w-[6.4rem]': {},
|
|
20
|
-
'@apply text-label-large': {},
|
|
21
|
-
},
|
|
22
|
-
...colors.reduce(
|
|
23
|
-
(styles, color) => ({
|
|
24
|
-
...styles,
|
|
25
|
-
[`&[data-color="${color}"]`]: {
|
|
26
|
-
[`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},
|
|
27
|
-
|
|
28
|
-
'&[data-accent="true"]': {
|
|
29
|
-
[`@apply bg-${color}-surface-accent text-${color}-text-primary`]: {},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
}),
|
|
33
|
-
{}
|
|
34
|
-
),
|
|
35
|
-
'&-img': {
|
|
36
|
-
'@apply min-w-full min-h-full object-cover': {},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
});
|
package/src/components/badge.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
module.exports = Badge = (colors) => ({
|
|
2
|
-
'.sk-badge': {
|
|
3
|
-
'@apply inline-flex': {},
|
|
4
|
-
'@apply justify-center items-center': {},
|
|
5
|
-
'@apply text-light-primary': {},
|
|
6
|
-
'@apply rounded-utility': {},
|
|
7
|
-
'@apply overflow-hidden': {},
|
|
8
|
-
|
|
9
|
-
// size
|
|
10
|
-
'@apply h-[2.4rem] w-[2.4rem]': {},
|
|
11
|
-
'@apply text-label-small': {},
|
|
12
|
-
|
|
13
|
-
'&[data-rounded="true"]': {
|
|
14
|
-
'@apply rounded-circular': {},
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
...colors.reduce(
|
|
18
|
-
(styles, color) => ({
|
|
19
|
-
...styles,
|
|
20
|
-
[`&[data-color="${color}"]`]: {
|
|
21
|
-
[`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},
|
|
22
|
-
|
|
23
|
-
'&[data-inverted="true"]': {
|
|
24
|
-
'@apply text-inverted-light-primary': {},
|
|
25
|
-
[`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
}),
|
|
29
|
-
{}
|
|
30
|
-
),
|
|
31
|
-
|
|
32
|
-
"&[data-color='tertiary']": {
|
|
33
|
-
'@apply bg-primary-surface': {},
|
|
34
|
-
|
|
35
|
-
'&[data-inverted="true"]': {
|
|
36
|
-
'@apply text-inverted-light-primary': {},
|
|
37
|
-
'@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
module.exports = Breadcrumb = () => ({
|
|
2
|
-
'.sk-breadcrumb': {
|
|
3
|
-
'@apply text-body relative': {},
|
|
4
|
-
|
|
5
|
-
'&-item': {
|
|
6
|
-
'@apply inline-flex items-center whitespace-nowrap': {},
|
|
7
|
-
},
|
|
8
|
-
|
|
9
|
-
'&-separator': {
|
|
10
|
-
'@apply mx-6': {},
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
'.sk-breadcrumb-item': {
|
|
15
|
-
span: {
|
|
16
|
-
'&[aria-current="page"]': {
|
|
17
|
-
'@apply font-bold': {},
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
[`&[data-color="primary"]`]: {
|
|
22
|
-
'a.sk-link': {
|
|
23
|
-
[`@apply text-secondary`]: {},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
[`&[data-color="vattjom"]`]: {
|
|
28
|
-
'a.sk-link': {
|
|
29
|
-
[`@apply text-vattjom-text-primary`]: {},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
});
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
module.exports = ButtonGroup = () => ({
|
|
2
|
-
'.sk-btn-group': {
|
|
3
|
-
'@apply inline-flex items-center': {},
|
|
4
|
-
|
|
5
|
-
'&.sk-btn-group-attached': {
|
|
6
|
-
'@apply rounded-groups': {},
|
|
7
|
-
'@apply bg-tertiary-surface': {},
|
|
8
|
-
'@apply py-6 px-12': {},
|
|
9
|
-
|
|
10
|
-
'> *': {
|
|
11
|
-
'@apply bg-transparent': {},
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
'.sk-btn[data-icon="true"] .sk-icon': {
|
|
15
|
-
'@apply bg-transparent text-dark-secondary': {},
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
'.sk-icon': {
|
|
19
|
-
'@apply p-0 w-fit h-fit': {},
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
'&-divider': {
|
|
24
|
-
'@apply grow bg-tertiary-surface px-6': {},
|
|
25
|
-
|
|
26
|
-
hr: {
|
|
27
|
-
'@apply h-[2rem]': {},
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
});
|
package/src/components/button.js
DELETED
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
function buttonPrimary(colors) {
|
|
2
|
-
return {
|
|
3
|
-
'&-primary': {
|
|
4
|
-
'@apply text-light-primary': {},
|
|
5
|
-
/* hover */
|
|
6
|
-
'@apply hover:bg-primary-surface-hover': {},
|
|
7
|
-
|
|
8
|
-
...colors.reduce(
|
|
9
|
-
(styles, color) => ({
|
|
10
|
-
...styles,
|
|
11
|
-
[`&[data-color="${color}"]`]: {
|
|
12
|
-
[`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},
|
|
13
|
-
// hover
|
|
14
|
-
[`@apply hover:bg-${color}-surface-primary-hover hover:text-light-primary`]: {},
|
|
15
|
-
// keyboard active
|
|
16
|
-
'&.active': {
|
|
17
|
-
[`@apply bg-${color}-surface-primary-hover`]: {},
|
|
18
|
-
},
|
|
19
|
-
[`@apply active:bg-${color}-surface-primary-hover`]: {},
|
|
20
|
-
|
|
21
|
-
'&[data-inverted="true"]': {
|
|
22
|
-
'@apply text-inverted-light-primary': {},
|
|
23
|
-
[`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},
|
|
24
|
-
// hover
|
|
25
|
-
[`@apply hover:bg-inverted-${color}-surface-primary-hover hover:text-inverted-light-primary`]: {},
|
|
26
|
-
// keyboard active
|
|
27
|
-
'&.active': {
|
|
28
|
-
[`@apply bg-inverted-${color}-surface-primary-hover`]: {},
|
|
29
|
-
},
|
|
30
|
-
[`@apply active:bg-inverted-${color}-surface-primary-hover`]: {},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
}),
|
|
34
|
-
{}
|
|
35
|
-
),
|
|
36
|
-
|
|
37
|
-
"&[data-color='primary']": {
|
|
38
|
-
'@apply bg-primary-surface': {},
|
|
39
|
-
'@apply hover:bg-primary-surface-hover': {},
|
|
40
|
-
'&.active': {
|
|
41
|
-
'@apply bg-primary-surface-hover': {},
|
|
42
|
-
},
|
|
43
|
-
[`@apply active:bg-primary-surface-hover`]: {},
|
|
44
|
-
|
|
45
|
-
'&[data-inverted="true"]': {
|
|
46
|
-
'@apply text-inverted-light-primary': {},
|
|
47
|
-
'@apply bg-inverted-primary-surface': {},
|
|
48
|
-
'@apply hover:bg-inverted-primary-surface-hover': {},
|
|
49
|
-
'&.active': {
|
|
50
|
-
'@apply bg-inverted-primary-surface-hover': {},
|
|
51
|
-
},
|
|
52
|
-
[`@apply active:bg-inverted-primary-surface-hover`]: {},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
function buttonSecondary() {
|
|
59
|
-
return {
|
|
60
|
-
'&-secondary': {
|
|
61
|
-
'@apply border-secondary-outline': {},
|
|
62
|
-
'@apply text-dark-secondary': {},
|
|
63
|
-
'@apply bg-secondary-surface': {},
|
|
64
|
-
/* hover */
|
|
65
|
-
'@apply hover:border-secondary-outline-hover': {},
|
|
66
|
-
'@apply hover:bg-secondary-surface-hover': {},
|
|
67
|
-
/* focus */
|
|
68
|
-
'@apply focus-visible:border-background-content': {},
|
|
69
|
-
|
|
70
|
-
// State
|
|
71
|
-
'&.sk-btn-disabled, &[aria-disabled="true"]': {
|
|
72
|
-
'@apply disabled:bg-secondary-surface-disabled bg-secondary-surface-disabled disabled:border-transparent border-transparent !important':
|
|
73
|
-
{},
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
'&[data-inverted="true"]': {
|
|
77
|
-
'@apply border-inverted-secondary-outline': {},
|
|
78
|
-
'@apply text-inverted-dark-secondary': {},
|
|
79
|
-
'@apply bg-inverted-secondary-surface': {},
|
|
80
|
-
/* hover */
|
|
81
|
-
'@apply hover:border-inverted-secondary-outline-hover': {},
|
|
82
|
-
'@apply hover:bg-inverted-secondary-surface-hover': {},
|
|
83
|
-
/* focus */
|
|
84
|
-
'@apply focus-visible:border-inverted-background-content': {},
|
|
85
|
-
|
|
86
|
-
// State
|
|
87
|
-
'&.sk-btn-disabled, &[aria-disabled="true"]': {
|
|
88
|
-
'@apply disabled:bg-inverted-secondary-surface-disabled bg-inverted-secondary-surface-disabled disabled:border-transparent border-transparent !important':
|
|
89
|
-
{},
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function buttonTertiary() {
|
|
97
|
-
return {
|
|
98
|
-
'&-tertiary': {
|
|
99
|
-
'@apply text-dark-secondary': {},
|
|
100
|
-
'@apply bg-tertiary-surface': {},
|
|
101
|
-
/* hover */
|
|
102
|
-
'@apply hover:bg-tertiary-surface-hover': {},
|
|
103
|
-
|
|
104
|
-
// State
|
|
105
|
-
'&.sk-btn-disabled, &[aria-disabled="true"]': {
|
|
106
|
-
'@apply disabled:bg-tertiary-surface-disabled bg-tertiary-surface-disabled disabled:border-transparent border-transparent !important':
|
|
107
|
-
{},
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
'&[data-inverted="true"]': {
|
|
111
|
-
'@apply text-inverted-dark-secondary': {},
|
|
112
|
-
'@apply bg-inverted-tertiary-surface': {},
|
|
113
|
-
/* hover */
|
|
114
|
-
'@apply hover:bg-inverted-tertiary-surface-hover': {},
|
|
115
|
-
'&.sk-btn-disabled, &[aria-disabled="true"]': {
|
|
116
|
-
'@apply disabled:bg-inverted-tertiary-surface-disabled bg-inverted-tertiary-surface-disabled disabled:border-transparent border-transparent !important':
|
|
117
|
-
{},
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
};
|
|
122
|
-
}
|
|
123
|
-
function buttonGhost() {
|
|
124
|
-
return {
|
|
125
|
-
'&-ghost': {
|
|
126
|
-
'@apply text-dark-secondary': {},
|
|
127
|
-
'@apply bg-transparent': {},
|
|
128
|
-
'@apply border-transparent': {},
|
|
129
|
-
/* hover */
|
|
130
|
-
'@apply hover:bg-transparent': {},
|
|
131
|
-
'@apply hover:border-transparent': {},
|
|
132
|
-
|
|
133
|
-
// State
|
|
134
|
-
'&.sk-btn-disabled, &[aria-disabled="true"]': {
|
|
135
|
-
'@apply disabled:bg-transparent bg-transparent disabled:border-transparent border-transparent !important': {},
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
'&[data-inverted="true"]': {
|
|
139
|
-
'@apply text-inverted-dark-secondary': {},
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
function buttonLink(colors) {
|
|
146
|
-
return {
|
|
147
|
-
'&-link': {
|
|
148
|
-
'@apply h-auto p-0 leading-normal text-neutral-600 hover:underline active:text-neutral-700': {},
|
|
149
|
-
'&.active': {
|
|
150
|
-
'@apply underline': {},
|
|
151
|
-
},
|
|
152
|
-
// dark colors
|
|
153
|
-
'@apply dark:text-neutral-200': {},
|
|
154
|
-
'@apply dark:active:text-neutral-500': {},
|
|
155
|
-
|
|
156
|
-
...colors.reduce(
|
|
157
|
-
(styles, color) => ({
|
|
158
|
-
...styles,
|
|
159
|
-
[`&[data-color="${color}"]`]: {
|
|
160
|
-
[`@apply text-${color}-text active:text-${color}-text`]: {},
|
|
161
|
-
// dark colors
|
|
162
|
-
},
|
|
163
|
-
}),
|
|
164
|
-
{}
|
|
165
|
-
),
|
|
166
|
-
},
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
module.exports = Button = (colors) => ({
|
|
171
|
-
'.sk-btn': {
|
|
172
|
-
'@apply box-border': {},
|
|
173
|
-
'@apply border-2 border-transparent': {},
|
|
174
|
-
'@apply cursor-pointer': {},
|
|
175
|
-
'@apply relative': {},
|
|
176
|
-
'@apply m-0': {},
|
|
177
|
-
'@apply px-24 py-8 gap-8': {},
|
|
178
|
-
'@apply inline-flex items-center justify-center flex-shrink-0 align-middle': {},
|
|
179
|
-
'@apply rounded-button': {},
|
|
180
|
-
transitionProperty: 'background-color, border-color, color, fill, stroke, box-shadow',
|
|
181
|
-
'@apply duration-75 ease-out': {},
|
|
182
|
-
'@apply outline-none appearance-none select-none whitespace-nowrap': {},
|
|
183
|
-
'@apply focus-visible:outline-none': {},
|
|
184
|
-
'@apply focus-visible:ring': {},
|
|
185
|
-
|
|
186
|
-
"&[data-rounded='true']": {
|
|
187
|
-
'@apply rounded-circular': {},
|
|
188
|
-
},
|
|
189
|
-
|
|
190
|
-
// sizing
|
|
191
|
-
'&-sm': {
|
|
192
|
-
'@apply text-label-small': {},
|
|
193
|
-
'@apply px-14 py-8 gap-6': {},
|
|
194
|
-
'@apply max-h-[3.2rem] h-[3.2rem]': {},
|
|
195
|
-
'@apply rounded-button-sm': {},
|
|
196
|
-
svg: {
|
|
197
|
-
'@apply h-[1.6rem] w-[1.6rem]': {},
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
'&-md': {
|
|
202
|
-
'@apply text-label-medium': {},
|
|
203
|
-
'@apply px-18 py-8 gap-8': {},
|
|
204
|
-
'@apply max-h-[4rem] h-[4rem]': {},
|
|
205
|
-
'@apply rounded-button-md': {},
|
|
206
|
-
svg: {
|
|
207
|
-
'@apply h-[1.8rem] w-[1.8rem]': {},
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
'&-lg': {
|
|
212
|
-
'@apply text-label-large': {},
|
|
213
|
-
'@apply px-24 py-8 gap-8': {},
|
|
214
|
-
'@apply max-h-[4.8rem] h-[4.8rem]': {},
|
|
215
|
-
'@apply rounded-button-lg': {},
|
|
216
|
-
svg: {
|
|
217
|
-
'@apply h-[2rem] w-[2rem]': {},
|
|
218
|
-
},
|
|
219
|
-
},
|
|
220
|
-
|
|
221
|
-
// State
|
|
222
|
-
'&-disabled, &[aria-disabled="true"]': {
|
|
223
|
-
'@apply shadow-none disabled:shadow-none disabled:cursor-default cursor-default': {},
|
|
224
|
-
'@apply disabled:text-dark-disabled text-dark-disabled disabled:bg-primary-surface-disabled bg-primary-surface-disabled disabled:border-transparent border-transparent !important':
|
|
225
|
-
{},
|
|
226
|
-
'&[data-inverted="true"]': {
|
|
227
|
-
'@apply disabled:text-inverted-dark-disabled text-inverted-dark-disabled disabled:bg-inverted-primary-surface-disabled bg-inverted-primary-surface-disabled disabled:border-transparent border-transparent !important':
|
|
228
|
-
{},
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
// variants
|
|
233
|
-
...buttonPrimary(colors),
|
|
234
|
-
...buttonSecondary(),
|
|
235
|
-
...buttonTertiary(),
|
|
236
|
-
...buttonGhost(),
|
|
237
|
-
...buttonLink(colors),
|
|
238
|
-
|
|
239
|
-
'.btn-has-icon': {
|
|
240
|
-
'&-left': {
|
|
241
|
-
'@apply h-full flex items-center justify-center -ml-2': {},
|
|
242
|
-
'.sk-icon': {
|
|
243
|
-
'@apply bg-transparent': {},
|
|
244
|
-
color: 'currentColor',
|
|
245
|
-
},
|
|
246
|
-
},
|
|
247
|
-
'&-right': {
|
|
248
|
-
'@apply h-full flex items-center justify-center -mr-2': {},
|
|
249
|
-
'.sk-icon': {
|
|
250
|
-
'@apply bg-transparent': {},
|
|
251
|
-
color: 'currentColor',
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
},
|
|
255
|
-
'&-lg .btn-has-icon-left': {
|
|
256
|
-
'@apply -ml-4': {},
|
|
257
|
-
},
|
|
258
|
-
'&-lg .btn-has-icon-right': {
|
|
259
|
-
'@apply -mr-4': {},
|
|
260
|
-
},
|
|
261
|
-
'&[data-icon=true]': {
|
|
262
|
-
'@apply p-0': {},
|
|
263
|
-
|
|
264
|
-
'.sk-icon': {
|
|
265
|
-
'@apply bg-transparent': {},
|
|
266
|
-
color: 'currentColor',
|
|
267
|
-
},
|
|
268
|
-
|
|
269
|
-
"&[data-rounded='true']": {
|
|
270
|
-
'@apply rounded-full': {},
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
'&.sk-btn-sm': {
|
|
274
|
-
minWidth: '3.2rem',
|
|
275
|
-
width: '3.2rem',
|
|
276
|
-
maxWidth: '3.2rem',
|
|
277
|
-
svg: {
|
|
278
|
-
'@apply h-[2rem] w-[2rem]': {},
|
|
279
|
-
},
|
|
280
|
-
},
|
|
281
|
-
|
|
282
|
-
'&.sk-btn-md': {
|
|
283
|
-
minWidth: '4rem',
|
|
284
|
-
width: '4rem',
|
|
285
|
-
maxWidth: '4rem',
|
|
286
|
-
svg: {
|
|
287
|
-
'@apply h-[2rem] w-[2rem]': {},
|
|
288
|
-
},
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
'&.sk-btn-lg': {
|
|
292
|
-
minWidth: '4.8rem',
|
|
293
|
-
width: '4.8rem',
|
|
294
|
-
maxWidth: '4.8rem',
|
|
295
|
-
svg: {
|
|
296
|
-
'@apply h-[2.4rem] w-[2.4rem]': {},
|
|
297
|
-
},
|
|
298
|
-
},
|
|
299
|
-
'.btn-has-icon': {
|
|
300
|
-
'&-left': {
|
|
301
|
-
'@apply m-0': {},
|
|
302
|
-
},
|
|
303
|
-
'&-right': {
|
|
304
|
-
'@apply m-0': {},
|
|
305
|
-
},
|
|
306
|
-
},
|
|
307
|
-
},
|
|
308
|
-
},
|
|
309
|
-
});
|