@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/switch.js
CHANGED
|
@@ -1,119 +1,85 @@
|
|
|
1
|
-
module.exports = Switch = (
|
|
2
|
-
'.form-switch-label': {
|
|
3
|
-
'@apply inline-
|
|
1
|
+
module.exports = Switch = () => ({
|
|
2
|
+
'.sk-form-switch-label': {
|
|
3
|
+
'@apply inline-flex align-middle items-center': {},
|
|
4
|
+
'@apply flex-row gap-12': {},
|
|
5
|
+
'@apply font-normal text-base': {},
|
|
4
6
|
|
|
5
7
|
"&[type='hidden']": {
|
|
6
8
|
'@apply hidden': {},
|
|
7
9
|
|
|
8
|
-
'.form-switch': {
|
|
10
|
+
'.sk-form-switch': {
|
|
9
11
|
'@apply hidden': {},
|
|
10
12
|
},
|
|
11
13
|
},
|
|
12
14
|
},
|
|
13
|
-
'.form-switch': {
|
|
14
|
-
'@apply rounded-full
|
|
15
|
-
'@apply bg-
|
|
16
|
-
// Hover
|
|
17
|
-
//"@apply hover:bg-neutral-300 dark:hover:bg-neutral-600": {},
|
|
18
|
-
|
|
19
|
-
border: '0.1rem solid transparent',
|
|
15
|
+
'.sk-form-switch': {
|
|
16
|
+
'@apply rounded-full cursor-pointer focus:outline-none': {},
|
|
17
|
+
'@apply bg-primitives-overlay-darken-3 dark:bg-primitives-overlay-lighten-3': {},
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'.form-switch-box-sm': {
|
|
24
|
-
transform: 'translateX(1.42rem)',
|
|
25
|
-
},
|
|
26
|
-
'.form-switch-box-md': {
|
|
27
|
-
transform: 'translateX(1.6rem)',
|
|
28
|
-
},
|
|
29
|
-
'.form-switch-box-lg': {
|
|
30
|
-
transform: 'translateX(1.78rem)',
|
|
31
|
-
},
|
|
32
|
-
},
|
|
19
|
+
// Hover
|
|
20
|
+
'@apply hover:bg-primitives-overlay-darken-5 hover:dark:bg-primitives-overlay-lighten-4': {},
|
|
33
21
|
|
|
22
|
+
// Focus
|
|
34
23
|
'input[type=checkbox]:focus-visible + &': {
|
|
35
|
-
'@apply
|
|
36
|
-
'@apply border-primary !important': {},
|
|
37
|
-
'@apply ring-4 ring-black !important': {},
|
|
24
|
+
'@apply ring ring-blue-500': {},
|
|
38
25
|
},
|
|
39
26
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
27
|
+
// Checked
|
|
28
|
+
'input[type=checkbox]:checked + &': {
|
|
29
|
+
[`&[data-color="gronsta"]`]: {
|
|
30
|
+
'.sk-form-switch-box': {
|
|
31
|
+
'@apply bg-gronsta-surface-primary': {},
|
|
32
|
+
},
|
|
46
33
|
},
|
|
47
|
-
|
|
48
|
-
{
|
|
49
|
-
'@apply
|
|
34
|
+
|
|
35
|
+
'.sk-form-switch-icon': {
|
|
36
|
+
'@apply flex': {},
|
|
50
37
|
},
|
|
51
38
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
...styles,
|
|
56
|
-
[`&[data-color="${color}"]`]: {
|
|
57
|
-
[`@apply text-${color}`]: {},
|
|
39
|
+
'.sk-form-switch-box': {
|
|
40
|
+
transform: 'translateX(2.4rem)',
|
|
41
|
+
},
|
|
58
42
|
|
|
59
|
-
|
|
60
|
-
// borderColor: `${theme(`colors.${color}.DEFAULT`)}`,
|
|
61
|
-
// boxShadow: `0 0 5px ${theme(`colors.${color}.DEFAULT`)}`,
|
|
62
|
-
// borderWidth: '0.1rem',
|
|
63
|
-
// },
|
|
64
|
-
},
|
|
65
|
-
}),
|
|
66
|
-
{}
|
|
67
|
-
),
|
|
43
|
+
'@apply bg-primitives-overlay-darken-4 dark:bg-primitives-overlay-lighten-5': {},
|
|
68
44
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
45
|
+
// Disabled
|
|
46
|
+
[`&[data-disabled="true"]`]: {
|
|
47
|
+
'.sk-form-switch-box': {
|
|
48
|
+
'@apply bg-transparent': {},
|
|
72
49
|
|
|
73
|
-
|
|
74
|
-
|
|
50
|
+
'.sk-form-switch-icon': {
|
|
51
|
+
'@apply bg-primitives-overlay-darken-6 dark:bg-primitives-overlay-lighten-6': {},
|
|
52
|
+
'@apply text-light-primary': {},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
75
55
|
},
|
|
76
56
|
},
|
|
77
57
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
// sizing
|
|
83
|
-
'&-sm': {
|
|
84
|
-
height: '2.16rem',
|
|
85
|
-
width: '3.6rem',
|
|
86
|
-
},
|
|
58
|
+
// Disabled not checked
|
|
59
|
+
[`&[data-disabled="true"]`]: {
|
|
60
|
+
'@apply cursor-default': {},
|
|
61
|
+
'@apply bg-primitives-overlay-darken-2 dark:bg-primitives-overlay-lighten-2': {},
|
|
87
62
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
63
|
+
'.sk-form-switch-box': {
|
|
64
|
+
'@apply bg-primitives-overlay-darken-6 dark:bg-primitives-overlay-lighten-6': {},
|
|
65
|
+
},
|
|
91
66
|
},
|
|
92
67
|
|
|
93
|
-
'
|
|
94
|
-
height: '2.64rem',
|
|
95
|
-
width: '4.4rem',
|
|
96
|
-
},
|
|
68
|
+
width: '5.6rem',
|
|
97
69
|
},
|
|
98
70
|
|
|
99
71
|
// Knob
|
|
100
|
-
'.form-switch-box': {
|
|
101
|
-
'@apply transition-transform ease-in-out duration-150 transform
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
'
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
width: '2rem',
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
'&-lg': {
|
|
115
|
-
height: '2.2rem',
|
|
116
|
-
width: '2.2rem',
|
|
72
|
+
'.sk-form-switch-box': {
|
|
73
|
+
'@apply transition-transform ease-in-out duration-150 transform rounded-full shadow translate-x-0 m-6': {},
|
|
74
|
+
'@apply bg-primitives-overlay-darken-7 dark:bg-primitives-overlay-lighten-7': {},
|
|
75
|
+
'@apply h-20 w-20': {},
|
|
76
|
+
'@apply flex justify-center items-center object-center': {},
|
|
77
|
+
|
|
78
|
+
'.sk-form-switch-icon': {
|
|
79
|
+
'@apply bg-transparent': {},
|
|
80
|
+
'@apply hidden': {},
|
|
81
|
+
'@apply w-20 h-20': {},
|
|
82
|
+
'@apply text-light-primary': {},
|
|
117
83
|
},
|
|
118
84
|
},
|
|
119
85
|
});
|
package/src/components/tabs.js
CHANGED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
module.exports = Tooltip = () => ({
|
|
2
|
+
'.sk-tooltip': {
|
|
3
|
+
'@apply inline-flex justify-center items-center': {},
|
|
4
|
+
'@apply w-fit h-fit': {},
|
|
5
|
+
'@apply grow-0': {},
|
|
6
|
+
|
|
7
|
+
'&-text': {
|
|
8
|
+
'@apply inline-flex': {},
|
|
9
|
+
'@apply bg-primary-surface shadow': {},
|
|
10
|
+
'@apply px-16 py-8': {},
|
|
11
|
+
'@apply rounded-utility': {},
|
|
12
|
+
'@apply text-light-primary text-small': {},
|
|
13
|
+
'@apply font-bold': {},
|
|
14
|
+
'@apply w-fit h-fit': {},
|
|
15
|
+
'@apply grow-0': {},
|
|
16
|
+
'@apply min-h-[3.4rem]': {},
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
//Arrow
|
|
20
|
+
'&::after, &::before': {
|
|
21
|
+
'@apply h-0 w-0 overflow-hidden': {},
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
// Above
|
|
25
|
+
'&[data-position="above"]': {
|
|
26
|
+
'@apply flex-col': {},
|
|
27
|
+
'@apply pb-2': {},
|
|
28
|
+
'&::after': {
|
|
29
|
+
'@apply content-[""] border-solid border-[0.6rem] border-b-0': {},
|
|
30
|
+
'@apply border-t-primary-surface border-r-transparent border-b-transparent border-l-transparent': {},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
// Below
|
|
35
|
+
'&[data-position="below"]': {
|
|
36
|
+
'@apply flex-col': {},
|
|
37
|
+
'@apply pt-2': {},
|
|
38
|
+
'&::before': {
|
|
39
|
+
'@apply content-[""] border-solid border-[0.6rem] border-t-0': {},
|
|
40
|
+
'@apply border-t-transparent border-r-transparent border-b-primary-surface border-l-transparent': {},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
// Left
|
|
45
|
+
'&[data-position="left"]': {
|
|
46
|
+
'@apply flex-row': {},
|
|
47
|
+
'@apply pr-2 py-[0.3rem]': {},
|
|
48
|
+
'&::after': {
|
|
49
|
+
'@apply content-[""] border-solid border-[0.6rem] border-r-0': {},
|
|
50
|
+
'@apply border-t-transparent border-r-transparent border-b-transparent border-l-primary-surface': {},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
|
|
54
|
+
// Right
|
|
55
|
+
'&[data-position="right"]': {
|
|
56
|
+
'@apply flex-row': {},
|
|
57
|
+
'@apply pl-2 py-[0.3rem]': {},
|
|
58
|
+
'&::before': {
|
|
59
|
+
'@apply content-[""] border-solid border-[0.6rem] border-l-0': {},
|
|
60
|
+
'@apply border-t-transparent border-r-primary-surface border-b-transparent border-l-transparent': {},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
});
|
|
@@ -1,65 +1,13 @@
|
|
|
1
|
-
module.exports = UserMenu = (
|
|
1
|
+
module.exports = UserMenu = () => ({
|
|
2
2
|
'.sk-usermenu': {
|
|
3
|
-
'@apply
|
|
4
|
-
|
|
5
|
-
'&-wrapper': {
|
|
6
|
-
'@apply block max-lg:-mr-md': {},
|
|
7
|
-
},
|
|
8
|
-
|
|
3
|
+
'@apply relative': {},
|
|
9
4
|
'&-button': {
|
|
10
|
-
'
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
'&-first-row': {
|
|
19
|
-
'@apply max-lg:hidden bg-white border-t-2 pb-sm -mt-0 mx-md': {},
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
'&-label': {
|
|
23
|
-
'@apply flex align-middle mt-md lg:mb-xs': {},
|
|
24
|
-
'&-content': {
|
|
25
|
-
'@apply inline-block px-lg py-md lg:pl-md lg:pr-md lg:py-sm text-sm font-semibold uppercase whitespace-nowrap':
|
|
26
|
-
{},
|
|
27
|
-
},
|
|
28
|
-
'&-line': {
|
|
29
|
-
'@apply inline-block w-full h-px border-gray-300 border-t-2 mt-[2.6rem] lg:hidden': {},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
'&-body': {
|
|
34
|
-
'@apply py-sm absolute rounded border-t-0 bg-white mt-6 right-0 left-0 border-none max-lg:shadow-lg lg:-mt-2 lg:border-2 lg:border-solid lg:border-white':
|
|
35
|
-
{},
|
|
36
|
-
'&[data-open="true"]': {
|
|
37
|
-
'@apply lg:border-gray-300 lg:border-t-0 lg:shadow-lg': {},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
'&-header': {
|
|
42
|
-
'@apply px-md py-sm bg-white border-none rounded lg:border-2 lg:border-solid lg:border-b-0 lg:border-transparent':
|
|
43
|
-
{},
|
|
44
|
-
'&[aria-expanded="true"]': {
|
|
45
|
-
'@apply lg:border-gray-300 lg:shadow-none': {},
|
|
5
|
+
'@apply p-0 bg-transparent hover:bg-transparent': {},
|
|
6
|
+
'@apply border-0': {},
|
|
7
|
+
'.sk-avatar': {
|
|
8
|
+
height: 'inherit',
|
|
9
|
+
width: 'inherit',
|
|
46
10
|
},
|
|
47
11
|
},
|
|
48
|
-
'&-group': {
|
|
49
|
-
'a, button': {
|
|
50
|
-
'@apply block px-lg py-md lg:px-md lg:py-sm w-full cursor-pointer text-body no-underline': {},
|
|
51
|
-
'&.active': {
|
|
52
|
-
'@apply bg-hover text-white no-underline': {},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
'&.active': {
|
|
56
|
-
'a, button': {
|
|
57
|
-
'@apply bg-hover text-white no-underline': {},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
},
|
|
61
|
-
'&-divider': {
|
|
62
|
-
'@apply bg-white border-t-2 pb-sm mt-sm mx-md': {},
|
|
63
|
-
},
|
|
64
12
|
},
|
|
65
13
|
});
|
|
@@ -1,89 +1,140 @@
|
|
|
1
1
|
module.exports = ZebraTable = () => ({
|
|
2
|
+
'.sk-zebratable-wrapper': {
|
|
3
|
+
'@apply rounded-groups': {},
|
|
4
|
+
'@apply border-1': {},
|
|
5
|
+
'@apply bg-background-content': {},
|
|
6
|
+
'&-inside': {
|
|
7
|
+
'@apply border-0 rounded-t-groups': {},
|
|
8
|
+
'@apply overflow-hidden': {},
|
|
9
|
+
},
|
|
10
|
+
'&[data-variant="table"]': {
|
|
11
|
+
'&:not([data-background="true"])': {
|
|
12
|
+
'@apply border-0': {},
|
|
13
|
+
'@apply bg-transparent': {},
|
|
14
|
+
},
|
|
15
|
+
'.sk-zebratable-wrapper-inside': {
|
|
16
|
+
'@apply border-0 rounded-b-groups': {},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
2
20
|
'.sk-zebratable': {
|
|
3
21
|
'@apply w-full text-left table-auto': {},
|
|
22
|
+
'@apply text-dark-secondary': {},
|
|
4
23
|
|
|
5
24
|
'&-thead': {
|
|
25
|
+
'@apply border-b-1 border-dark-primary': {},
|
|
26
|
+
'@apply h-48': {},
|
|
6
27
|
'&-tr': {
|
|
7
|
-
'@apply
|
|
28
|
+
'@apply table-row': {},
|
|
29
|
+
'@apply text-label-small': {},
|
|
8
30
|
},
|
|
9
31
|
|
|
10
32
|
'&-th': {
|
|
11
|
-
'@apply py-
|
|
33
|
+
'@apply py-4': {},
|
|
12
34
|
|
|
13
35
|
"&[data-isColumnSortable='true']": {
|
|
14
|
-
'@apply
|
|
36
|
+
'@apply cursor-pointer': {},
|
|
15
37
|
},
|
|
16
38
|
},
|
|
39
|
+
'@apply bg-transparent': {},
|
|
40
|
+
'&[data-background="true"]': {
|
|
41
|
+
'@apply bg-vattjom-background-200 border-b-transparent': {},
|
|
42
|
+
},
|
|
17
43
|
},
|
|
18
44
|
|
|
19
45
|
'&-sortbutton': {
|
|
20
46
|
'@apply flex items-center': {},
|
|
47
|
+
'@apply focus-visible:ring ring-ring ring-offset-0': {},
|
|
48
|
+
'@apply focus-visible:bg-vattjom-background-200': {},
|
|
49
|
+
'@apply rounded-utility': {},
|
|
50
|
+
'@apply px-16': {},
|
|
51
|
+
'@apply h-40': {},
|
|
21
52
|
|
|
22
53
|
'&-icon': {
|
|
23
54
|
'@apply inline-flex pl-sm': {},
|
|
24
55
|
|
|
25
|
-
'.MuiSvgIcon-root': {
|
|
26
|
-
'@apply !text-lg': {},
|
|
27
|
-
},
|
|
28
|
-
|
|
29
56
|
'&-sort': {
|
|
30
|
-
'@apply text-
|
|
57
|
+
'@apply text-dark-secondary': {},
|
|
58
|
+
'@apply flex flex-col': {},
|
|
59
|
+
|
|
60
|
+
svg: {
|
|
61
|
+
'@apply h-16 w-16': {},
|
|
62
|
+
'@apply first-of-type:-mb-4': {},
|
|
63
|
+
'@apply last-of-type:-mt-4': {},
|
|
64
|
+
},
|
|
31
65
|
|
|
32
66
|
"&[data-sortmodeascending='true']": {
|
|
33
|
-
'
|
|
67
|
+
'> *': {
|
|
68
|
+
'@apply last-of-type:text-dark-ghost': {},
|
|
69
|
+
},
|
|
34
70
|
},
|
|
35
71
|
|
|
36
72
|
"&[data-sortmodeascending='false']": {
|
|
37
|
-
'
|
|
73
|
+
'> *': {
|
|
74
|
+
'@apply first-of-type:text-dark-ghost': {},
|
|
75
|
+
},
|
|
38
76
|
},
|
|
39
77
|
},
|
|
40
|
-
|
|
41
|
-
'&-more': {
|
|
42
|
-
'@apply text-gray': {},
|
|
43
|
-
},
|
|
44
78
|
},
|
|
45
79
|
},
|
|
46
80
|
|
|
47
|
-
'.material-icons-outlined': {
|
|
48
|
-
fontSize: '1.25em',
|
|
49
|
-
},
|
|
50
|
-
|
|
51
81
|
'&-tbody': {
|
|
52
|
-
'@apply text-
|
|
82
|
+
'@apply text-dark-secondary bg-transparent': {},
|
|
53
83
|
|
|
54
84
|
'&-tr': {
|
|
55
|
-
'@apply
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
'
|
|
59
|
-
'@apply lg:border-4 lg:border-hover': {},
|
|
60
|
-
},
|
|
85
|
+
'@apply bg-transparent': {},
|
|
86
|
+
'@apply hover:bg-background-100': {},
|
|
87
|
+
'@apply border-b-1': {},
|
|
88
|
+
'@apply last-of-type:border-b-transparent': {},
|
|
61
89
|
},
|
|
62
90
|
|
|
63
91
|
'&-td': {
|
|
64
|
-
'@apply
|
|
65
|
-
|
|
92
|
+
'@apply py-20 px-18': {},
|
|
93
|
+
'@apply text-small': {},
|
|
66
94
|
},
|
|
67
95
|
},
|
|
68
96
|
|
|
69
|
-
'
|
|
70
|
-
'
|
|
97
|
+
'&[data-dense="true"]': {
|
|
98
|
+
'.sk-zebratable': {
|
|
99
|
+
'&-thead': {
|
|
100
|
+
'&-th': {
|
|
101
|
+
'@apply py-12': {},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
'&-tbody': {
|
|
105
|
+
'&-td': {
|
|
106
|
+
'@apply py-12': {},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
71
110
|
},
|
|
72
|
-
|
|
73
|
-
|
|
111
|
+
|
|
112
|
+
'&-paginationwrapper': {
|
|
113
|
+
'@apply w-full max-w-[60rem]': {},
|
|
114
|
+
'@apply shrink': {},
|
|
74
115
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
'
|
|
78
|
-
|
|
116
|
+
|
|
117
|
+
'&-bottom': {
|
|
118
|
+
'@apply py-14 px-16': {},
|
|
119
|
+
'@apply border-t-1': {},
|
|
120
|
+
'@apply flex flex-row': {},
|
|
121
|
+
'@apply gap-32': {},
|
|
122
|
+
'@apply justify-between items-center': {},
|
|
123
|
+
'&-section': {
|
|
124
|
+
'@apply shrink-0': {},
|
|
125
|
+
'@apply flex flex-row': {},
|
|
126
|
+
'@apply justify-start items-center': {},
|
|
127
|
+
'@apply gap-8': {},
|
|
128
|
+
'&-label': {
|
|
129
|
+
'@apply font-normal': {},
|
|
130
|
+
'@apply text-small': {},
|
|
131
|
+
'@apply shrink-0': {},
|
|
132
|
+
},
|
|
79
133
|
},
|
|
80
|
-
'
|
|
81
|
-
'@apply
|
|
134
|
+
'&-pagination': {
|
|
135
|
+
'@apply grow': {},
|
|
136
|
+
'@apply shrink': {},
|
|
82
137
|
},
|
|
83
138
|
},
|
|
84
|
-
|
|
85
|
-
'&-bottomwrapper': {
|
|
86
|
-
'@apply mt-lg px-lg flex items-center justify-end': {},
|
|
87
|
-
},
|
|
88
139
|
},
|
|
89
140
|
});
|
package/src/plugin.js
CHANGED
|
@@ -9,22 +9,32 @@ const AlertBanner = require('./components/alert-banner');
|
|
|
9
9
|
const Badge = require('./components/badge');
|
|
10
10
|
const Breadcrumb = require('./components/breadcrumb');
|
|
11
11
|
const ButtonGroup = require('./components/button-group');
|
|
12
|
+
const ComboBox = require('./components/combobox');
|
|
12
13
|
const Comments = require('./components/comments');
|
|
13
14
|
const Checkbox = require('./components/checkbox');
|
|
14
15
|
const ContextMenu = require('./components/context-menu');
|
|
15
16
|
const Dialog = require('./components/dialog');
|
|
16
17
|
const Dot = require('./components/dot');
|
|
17
18
|
const Forms = require('./components/forms');
|
|
18
|
-
const
|
|
19
|
+
const Filter = require('./components/filter');
|
|
19
20
|
const Icon = require('./components/icon');
|
|
21
|
+
const Input = require('./components/input');
|
|
22
|
+
const Label = require('./components/label');
|
|
20
23
|
const Link = require('./components/link');
|
|
21
|
-
const
|
|
24
|
+
const List = require('./components/list');
|
|
25
|
+
const Logo = require('./components/logo');
|
|
26
|
+
const Menubar = require('./components/menubar');
|
|
27
|
+
const MenuVertical = require('./components/menu-vertical');
|
|
28
|
+
const Select = require('./components/select');
|
|
29
|
+
const Snackbar = require('./components/snackbar');
|
|
30
|
+
const Spinner = require('./components/spinner');
|
|
22
31
|
const Notification = require('./components/notification');
|
|
23
32
|
const Radio = require('./components/radio');
|
|
24
33
|
const Switch = require('./components/switch');
|
|
25
34
|
|
|
26
35
|
const Button = require('./components/button');
|
|
27
36
|
const Accordion = require('./components/accordion');
|
|
37
|
+
const Avatar = require('./components/avatar');
|
|
28
38
|
const Card = require('./components/card');
|
|
29
39
|
const Table = require('./components/table');
|
|
30
40
|
const ZebraTable = require('./components/zebratable');
|
|
@@ -36,19 +46,20 @@ const Divider = require('./components/divider');
|
|
|
36
46
|
const SideMenu = require('./components/side-menu');
|
|
37
47
|
const TabMenu = require('./components/tab-menu');
|
|
38
48
|
const Tabs = require('./components/tabs');
|
|
49
|
+
const Tooltip = require('./components/tooltip');
|
|
39
50
|
const UserMenu = require('./components/user-menu');
|
|
40
51
|
|
|
41
52
|
const DropdownFilter = require('./components/dropdown-filter');
|
|
42
53
|
|
|
43
|
-
const Tag = require('./components/tag');
|
|
44
54
|
const Pagination = require('./components/pagination');
|
|
55
|
+
const PopupMenu = require('./components/popup-menu');
|
|
45
56
|
const Footer = require('./components/footer');
|
|
46
57
|
const Header = require('./components/header');
|
|
47
58
|
|
|
48
|
-
const
|
|
59
|
+
const SearchField = require('./components/search-field');
|
|
49
60
|
|
|
50
|
-
const
|
|
51
|
-
const
|
|
61
|
+
const ProgressStepper = require('./components/progress-stepper');
|
|
62
|
+
const ProgressBar = require('./components/progress-bar');
|
|
52
63
|
|
|
53
64
|
const components = [
|
|
54
65
|
Alert,
|
|
@@ -58,47 +69,58 @@ const components = [
|
|
|
58
69
|
ButtonGroup,
|
|
59
70
|
Button,
|
|
60
71
|
Checkbox,
|
|
72
|
+
|
|
61
73
|
Comments,
|
|
62
74
|
ContextMenu,
|
|
63
75
|
Dialog,
|
|
64
76
|
Dot,
|
|
65
77
|
Forms,
|
|
66
|
-
|
|
78
|
+
Filter,
|
|
67
79
|
Icon,
|
|
80
|
+
Input,
|
|
81
|
+
Label,
|
|
68
82
|
Link,
|
|
69
|
-
|
|
83
|
+
List,
|
|
84
|
+
Logo,
|
|
85
|
+
Menubar,
|
|
86
|
+
MenuVertical,
|
|
87
|
+
Select,
|
|
88
|
+
Snackbar,
|
|
89
|
+
Spinner,
|
|
70
90
|
Notification,
|
|
71
91
|
Radio,
|
|
72
92
|
Switch,
|
|
73
|
-
|
|
74
93
|
Table,
|
|
75
94
|
ZebraTable,
|
|
76
95
|
CookieConsent,
|
|
77
96
|
Modal,
|
|
78
97
|
|
|
79
98
|
Accordion,
|
|
99
|
+
Avatar,
|
|
80
100
|
Card,
|
|
81
101
|
Divider,
|
|
82
102
|
|
|
83
103
|
SideMenu,
|
|
84
104
|
TabMenu,
|
|
85
105
|
Tabs,
|
|
106
|
+
Tooltip,
|
|
107
|
+
|
|
86
108
|
UserMenu,
|
|
87
109
|
|
|
88
110
|
DropdownFilter,
|
|
89
111
|
|
|
90
|
-
|
|
112
|
+
SearchField,
|
|
91
113
|
|
|
92
|
-
Tag,
|
|
93
114
|
Pagination,
|
|
115
|
+
PopupMenu,
|
|
94
116
|
Footer,
|
|
95
117
|
Header,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
118
|
+
ProgressStepper,
|
|
119
|
+
ProgressBar,
|
|
120
|
+
ComboBox,
|
|
99
121
|
];
|
|
100
122
|
|
|
101
|
-
const defaultColors = ['
|
|
123
|
+
const defaultColors = ['warning', 'error', 'success', 'info', 'vattjom', 'juniskar', 'bjornstigen', 'gronsta'];
|
|
102
124
|
|
|
103
125
|
module.exports = plugin.withOptions(
|
|
104
126
|
function (options = { colors: [], cssBase: true }) {
|