@sk-web-gui/core 0.1.92 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/base.js +21 -40
- package/dist/cjs/base.js.map +1 -1
- package/dist/cjs/colors.js +629 -123
- package/dist/cjs/colors.js.map +1 -1
- package/dist/cjs/components/accordion.js +52 -141
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/alert-banner.js +1 -1
- package/dist/cjs/components/alert-banner.js.map +1 -1
- package/dist/cjs/components/alert.js +6 -6
- package/dist/cjs/components/alert.js.map +1 -1
- package/dist/cjs/components/avatar.js +28 -63
- package/dist/cjs/components/avatar.js.map +1 -1
- package/dist/cjs/components/badge.js +21 -165
- package/dist/cjs/components/badge.js.map +1 -1
- package/dist/cjs/components/breadcrumb.js +15 -3
- package/dist/cjs/components/breadcrumb.js.map +1 -1
- package/dist/cjs/components/button-group.js +20 -33
- package/dist/cjs/components/button-group.js.map +1 -1
- package/dist/cjs/components/button.js +178 -151
- package/dist/cjs/components/button.js.map +1 -1
- package/dist/cjs/components/calendar.js +1 -1
- package/dist/cjs/components/calendar.js.map +1 -1
- package/dist/cjs/components/card.js +200 -39
- package/dist/cjs/components/card.js.map +1 -1
- package/dist/cjs/components/checkbox.js +97 -70
- package/dist/cjs/components/checkbox.js.map +1 -1
- package/dist/cjs/components/combobox.js +67 -0
- package/dist/cjs/components/combobox.js.map +1 -0
- package/dist/cjs/components/comments.js.map +1 -1
- package/dist/cjs/components/cookie-consent.js +25 -8
- package/dist/cjs/components/cookie-consent.js.map +1 -1
- package/dist/cjs/components/dialog.js +2 -9
- package/dist/cjs/components/dialog.js.map +1 -1
- package/dist/cjs/components/divider.js +43 -5
- package/dist/cjs/components/divider.js.map +1 -1
- package/dist/cjs/components/dot.js +3 -3
- package/dist/cjs/components/dot.js.map +1 -1
- package/dist/cjs/components/filter.js +17 -0
- package/dist/cjs/components/filter.js.map +1 -0
- package/dist/cjs/components/footer.js +22 -22
- package/dist/cjs/components/footer.js.map +1 -1
- package/dist/cjs/components/form-control.js +8 -0
- package/dist/cjs/components/form-control.js.map +1 -0
- package/dist/cjs/components/forms.js +13 -283
- package/dist/cjs/components/forms.js.map +1 -1
- package/dist/cjs/components/header.js +28 -17
- package/dist/cjs/components/header.js.map +1 -1
- package/dist/cjs/components/icon.js +52 -7
- package/dist/cjs/components/icon.js.map +1 -1
- package/dist/cjs/components/input.js +227 -0
- package/dist/cjs/components/input.js.map +1 -0
- package/dist/cjs/components/kbd.js +2 -2
- package/dist/cjs/components/kbd.js.map +1 -1
- package/dist/cjs/components/label.js +26 -0
- package/dist/cjs/components/label.js.map +1 -0
- package/dist/cjs/components/link.js +35 -12
- package/dist/cjs/components/link.js.map +1 -1
- package/dist/cjs/components/list.js +56 -0
- package/dist/cjs/components/list.js.map +1 -0
- package/dist/cjs/components/logo.js +50 -0
- package/dist/cjs/components/logo.js.map +1 -0
- package/dist/cjs/components/menu-vertical.js +234 -0
- package/dist/cjs/components/menu-vertical.js.map +1 -0
- package/dist/cjs/components/menubar.js +44 -0
- package/dist/cjs/components/menubar.js.map +1 -0
- package/dist/cjs/components/modal.js +34 -14
- package/dist/cjs/components/modal.js.map +1 -1
- package/dist/cjs/components/notification.js +2 -2
- package/dist/cjs/components/notification.js.map +1 -1
- package/dist/cjs/components/pagination.js +50 -29
- package/dist/cjs/components/pagination.js.map +1 -1
- package/dist/cjs/components/popup-menu.js +108 -0
- package/dist/cjs/components/popup-menu.js.map +1 -0
- package/dist/cjs/components/progress-bar.js +23 -0
- package/dist/cjs/components/progress-bar.js.map +1 -0
- package/dist/cjs/components/progress-stepper.js +53 -0
- package/dist/cjs/components/progress-stepper.js.map +1 -0
- package/dist/cjs/components/radio.js +113 -64
- package/dist/cjs/components/radio.js.map +1 -1
- package/dist/cjs/components/search-field.js +23 -0
- package/dist/cjs/components/search-field.js.map +1 -0
- package/dist/cjs/components/select.js +190 -0
- package/dist/cjs/components/select.js.map +1 -0
- package/dist/cjs/components/side-menu.js +7 -7
- package/dist/cjs/components/side-menu.js.map +1 -1
- package/dist/cjs/components/snackbar.js +33 -0
- package/dist/cjs/components/snackbar.js.map +1 -0
- package/dist/cjs/components/spinner.js +19 -0
- package/dist/cjs/components/spinner.js.map +1 -0
- package/dist/cjs/components/switch.js +46 -75
- package/dist/cjs/components/switch.js.map +1 -1
- package/dist/cjs/components/tab-menu.js.map +1 -1
- package/dist/cjs/components/tabs.js +1 -1
- package/dist/cjs/components/tabs.js.map +1 -1
- package/dist/cjs/components/tag.js +4 -4
- package/dist/cjs/components/tag.js.map +1 -1
- package/dist/cjs/components/tooltip.js +61 -0
- package/dist/cjs/components/tooltip.js.map +1 -0
- package/dist/cjs/components/user-menu.js +7 -50
- package/dist/cjs/components/user-menu.js.map +1 -1
- package/dist/cjs/components/zebratable.js +89 -34
- package/dist/cjs/components/zebratable.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/plugin.js +19 -8
- package/dist/cjs/plugin.js.map +1 -1
- package/dist/cjs/theme.js +83 -37
- package/dist/cjs/theme.js.map +1 -1
- package/dist/cjs/units.js +250 -0
- package/dist/cjs/units.js.map +1 -0
- package/dist/esm/base.js +21 -40
- package/dist/esm/base.js.map +1 -1
- package/dist/esm/colors.js +629 -123
- package/dist/esm/colors.js.map +1 -1
- package/dist/esm/components/accordion.js +52 -141
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/alert-banner.js +1 -1
- package/dist/esm/components/alert-banner.js.map +1 -1
- package/dist/esm/components/alert.js +5 -11
- package/dist/esm/components/alert.js.map +1 -1
- package/dist/esm/components/avatar.js +32 -63
- package/dist/esm/components/avatar.js.map +1 -1
- package/dist/esm/components/badge.js +27 -172
- package/dist/esm/components/badge.js.map +1 -1
- package/dist/esm/components/breadcrumb.js +19 -2
- package/dist/esm/components/breadcrumb.js.map +1 -1
- package/dist/esm/components/button-group.js +20 -33
- package/dist/esm/components/button-group.js.map +1 -1
- package/dist/esm/components/button.js +185 -200
- package/dist/esm/components/button.js.map +1 -1
- package/dist/esm/components/calendar.js +1 -1
- package/dist/esm/components/calendar.js.map +1 -1
- package/dist/esm/components/card.js +233 -39
- package/dist/esm/components/card.js.map +1 -1
- package/dist/esm/components/checkbox.js +83 -93
- package/dist/esm/components/checkbox.js.map +1 -1
- package/dist/esm/components/combobox.js +65 -0
- package/dist/esm/components/combobox.js.map +1 -0
- package/dist/esm/components/comments.js.map +1 -1
- package/dist/esm/components/cookie-consent.js +25 -8
- package/dist/esm/components/cookie-consent.js.map +1 -1
- package/dist/esm/components/dialog.js +2 -9
- package/dist/esm/components/dialog.js.map +1 -1
- package/dist/esm/components/divider.js +43 -5
- package/dist/esm/components/divider.js.map +1 -1
- package/dist/esm/components/dot.js +3 -4
- package/dist/esm/components/dot.js.map +1 -1
- package/dist/esm/components/filter.js +15 -0
- package/dist/esm/components/filter.js.map +1 -0
- package/dist/esm/components/footer.js +22 -24
- package/dist/esm/components/footer.js.map +1 -1
- package/dist/esm/components/form-control.js +6 -0
- package/dist/esm/components/form-control.js.map +1 -0
- package/dist/esm/components/forms.js +15 -289
- package/dist/esm/components/forms.js.map +1 -1
- package/dist/esm/components/header.js +22 -18
- package/dist/esm/components/header.js.map +1 -1
- package/dist/esm/components/icon.js +57 -7
- package/dist/esm/components/icon.js.map +1 -1
- package/dist/esm/components/input.js +225 -0
- package/dist/esm/components/input.js.map +1 -0
- package/dist/esm/components/kbd.js +2 -2
- package/dist/esm/components/kbd.js.map +1 -1
- package/dist/esm/components/label.js +30 -0
- package/dist/esm/components/label.js.map +1 -0
- package/dist/esm/components/link.js +35 -12
- package/dist/esm/components/link.js.map +1 -1
- package/dist/esm/components/list.js +54 -0
- package/dist/esm/components/list.js.map +1 -0
- package/dist/esm/components/logo.js +48 -0
- package/dist/esm/components/logo.js.map +1 -0
- package/dist/esm/components/menu-vertical.js +228 -0
- package/dist/esm/components/menu-vertical.js.map +1 -0
- package/dist/esm/components/menubar.js +49 -0
- package/dist/esm/components/menubar.js.map +1 -0
- package/dist/esm/components/modal.js +34 -14
- package/dist/esm/components/modal.js.map +1 -1
- package/dist/esm/components/notification.js +2 -2
- package/dist/esm/components/notification.js.map +1 -1
- package/dist/esm/components/pagination.js +50 -29
- package/dist/esm/components/pagination.js.map +1 -1
- package/dist/esm/components/popup-menu.js +106 -0
- package/dist/esm/components/popup-menu.js.map +1 -0
- package/dist/esm/components/progress-bar.js +25 -0
- package/dist/esm/components/progress-bar.js.map +1 -0
- package/dist/esm/components/progress-stepper.js +51 -0
- package/dist/esm/components/progress-stepper.js.map +1 -0
- package/dist/esm/components/radio.js +113 -68
- package/dist/esm/components/radio.js.map +1 -1
- package/dist/esm/components/search-field.js +21 -0
- package/dist/esm/components/search-field.js.map +1 -0
- package/dist/esm/components/select.js +188 -0
- package/dist/esm/components/select.js.map +1 -0
- package/dist/esm/components/side-menu.js +7 -7
- package/dist/esm/components/side-menu.js.map +1 -1
- package/dist/esm/components/snackbar.js +31 -0
- package/dist/esm/components/snackbar.js.map +1 -0
- package/dist/esm/components/spinner.js +18 -0
- package/dist/esm/components/spinner.js.map +1 -0
- package/dist/esm/components/switch.js +53 -80
- package/dist/esm/components/switch.js.map +1 -1
- package/dist/esm/components/tab-menu.js.map +1 -1
- package/dist/esm/components/tabs.js +1 -1
- package/dist/esm/components/tabs.js.map +1 -1
- package/dist/esm/components/tag.js +4 -4
- package/dist/esm/components/tag.js.map +1 -1
- package/dist/esm/components/tooltip.js +59 -0
- package/dist/esm/components/tooltip.js.map +1 -0
- package/dist/esm/components/user-menu.js +7 -50
- package/dist/esm/components/user-menu.js.map +1 -1
- package/dist/esm/components/zebratable.js +89 -34
- package/dist/esm/components/zebratable.js.map +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/plugin.js +19 -8
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/theme.js +85 -37
- package/dist/esm/theme.js.map +1 -1
- package/dist/esm/units.js +250 -0
- package/dist/esm/units.js.map +1 -0
- package/package.json +5 -5
- package/src/base.js +28 -28
- package/src/colors.js +631 -132
- package/src/components/accordion.js +53 -161
- package/src/components/alert-banner.js +1 -2
- package/src/components/alert.js +5 -13
- package/src/components/avatar.js +36 -82
- package/src/components/badge.js +33 -200
- package/src/components/breadcrumb.js +22 -2
- package/src/components/button-group.js +17 -32
- package/src/components/button.js +197 -212
- package/src/components/card.js +273 -34
- package/src/components/checkbox.js +95 -93
- package/src/components/combobox.js +66 -0
- package/src/components/comments.js +37 -37
- package/src/components/cookie-consent.js +24 -9
- package/src/components/dialog.js +2 -9
- package/src/components/divider.js +45 -5
- package/src/components/dot.js +3 -4
- package/src/components/filter.js +16 -0
- package/src/components/footer.js +20 -33
- package/src/components/forms.js +14 -360
- package/src/components/header.js +21 -21
- package/src/components/icon.js +75 -6
- package/src/components/input.js +244 -0
- package/src/components/kbd.js +1 -1
- package/src/components/label.js +37 -0
- package/src/components/link.js +38 -12
- package/src/components/list.js +61 -0
- package/src/components/logo.js +48 -0
- package/src/components/menu-vertical.js +293 -0
- package/src/components/menubar.js +56 -0
- package/src/components/modal.js +35 -18
- package/src/components/notification.js +2 -2
- package/src/components/pagination.js +54 -31
- package/src/components/popup-menu.js +111 -0
- package/src/components/progress-bar.js +31 -0
- package/src/components/progress-stepper.js +50 -0
- package/src/components/radio.js +114 -80
- package/src/components/search-field.js +20 -0
- package/src/components/select.js +203 -0
- package/src/components/side-menu.js +7 -7
- package/src/components/snackbar.js +34 -0
- package/src/components/spinner.js +23 -0
- package/src/components/switch.js +54 -88
- package/src/components/tab-menu.js +58 -58
- package/src/components/tabs.js +64 -64
- package/src/components/tooltip.js +64 -0
- package/src/components/user-menu.js +7 -59
- package/src/components/zebratable.js +92 -41
- package/src/index.js +8 -8
- package/src/plugin.js +142 -120
- package/src/theme.js +158 -84
- package/src/units.js +212 -0
- package/src/components/calendar.js +0 -78
- package/src/components/message.js +0 -60
- package/src/components/profile-picture.js +0 -14
- package/src/components/profile.js +0 -33
- package/src/components/search-bar.js +0 -5
- package/src/components/tag.js +0 -96
package/src/theme.js
CHANGED
|
@@ -1,84 +1,158 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
xl:
|
|
12
|
-
'2xl':
|
|
13
|
-
'3xl':
|
|
14
|
-
'4xl':
|
|
15
|
-
'5xl':
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
1
|
+
const withOpacity = require('./with-opacity');
|
|
2
|
+
const colors = require('./colors');
|
|
3
|
+
const units = require('./units');
|
|
4
|
+
const { screens } = require('@sk-web-gui/theme');
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
fontSize: {
|
|
8
|
+
...units.fontSizes,
|
|
9
|
+
tiny: '1rem',
|
|
10
|
+
xs: '1.2rem',
|
|
11
|
+
xl: units.fontSizes['h4'],
|
|
12
|
+
'2xl': units.fontSizes['h3'],
|
|
13
|
+
'3xl': units.fontSizes['h2'],
|
|
14
|
+
'4xl': units.fontSizes['h1'],
|
|
15
|
+
'5xl': units.fontSizes['h3'],
|
|
16
|
+
},
|
|
17
|
+
fontFamily: {
|
|
18
|
+
DEFAULT: ['Arial', 'Helvetica', 'sans-serif'],
|
|
19
|
+
sans: ['Arial', 'Helvetica', 'sans-serif'],
|
|
20
|
+
header: ['Raleway', 'Arial', 'Helvetica', 'sans-serif'],
|
|
21
|
+
display: ['Raleway', 'Arial', 'Helvetica', 'sans-serif'],
|
|
22
|
+
},
|
|
23
|
+
screens,
|
|
24
|
+
borderRadius: {
|
|
25
|
+
...units.radius,
|
|
26
|
+
base: 'var(--sk-spacing-0)',
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
extend: {
|
|
30
|
+
backgroundPosition: {
|
|
31
|
+
...Object.keys(units.spacing).reduce(
|
|
32
|
+
(positions, spaceKey) => ({
|
|
33
|
+
...positions,
|
|
34
|
+
[`top-${spaceKey}`]: `center top ${units.spacing[spaceKey]}`,
|
|
35
|
+
[`right-${spaceKey}`]: `center right ${units.spacing[spaceKey]}`,
|
|
36
|
+
[`bottom-${spaceKey}`]: `center bottom ${units.spacing[spaceKey]}`,
|
|
37
|
+
[`left-${spaceKey}`]: `center left ${units.spacing[spaceKey]}`,
|
|
38
|
+
}),
|
|
39
|
+
{}
|
|
40
|
+
),
|
|
41
|
+
},
|
|
42
|
+
boxShadow: {
|
|
43
|
+
100: [
|
|
44
|
+
'0 0.6rem 1.6rem 0 rgba(13,13,14, 0.07)',
|
|
45
|
+
'0 0.181rem 1.2rem 0 rgba(13,13,14, 0.15)',
|
|
46
|
+
'0 0.075rem 0.2rem 0 rgba(13,13,14, 0.085)',
|
|
47
|
+
'0 0.027rem 0.072rem 0 rgba(13,13,14, 0.0583)',
|
|
48
|
+
],
|
|
49
|
+
200: [
|
|
50
|
+
'0 1.5rem 2.7rem 0 rgba(13,13,14, 0.1)',
|
|
51
|
+
'0 0.452rem 1.2rem 0 rgba(13,13,14, 0.06)',
|
|
52
|
+
'0 0.188rem 0.338rem 0 rgba(13,13,14, 0.03)',
|
|
53
|
+
'0 0.068rem 0.122rem 0 rgba(13,13,14, 0.02)',
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
ringColor: {
|
|
57
|
+
DEFAULT: colors.ring,
|
|
58
|
+
...colors,
|
|
59
|
+
},
|
|
60
|
+
ringOffsetWidth: {
|
|
61
|
+
DEFAULT: '0.2rem',
|
|
62
|
+
},
|
|
63
|
+
ringWidth: {
|
|
64
|
+
DEFAULT: '0.3rem',
|
|
65
|
+
0: '0px',
|
|
66
|
+
},
|
|
67
|
+
ringOpacity: {
|
|
68
|
+
DEFAULT: 1,
|
|
69
|
+
},
|
|
70
|
+
colors: {
|
|
71
|
+
...colors,
|
|
72
|
+
current: 'currentColor',
|
|
73
|
+
gray: {
|
|
74
|
+
DEFAULT: colors.primitives.gray[600],
|
|
75
|
+
stroke: colors.divider,
|
|
76
|
+
middle: colors.primitives.gray[600],
|
|
77
|
+
light: colors.primitives.gray[300],
|
|
78
|
+
lighter: colors.primitives.gray[200],
|
|
79
|
+
...colors.primitives.gray,
|
|
80
|
+
},
|
|
81
|
+
hover: colors.primitives.gray[600],
|
|
82
|
+
background: {
|
|
83
|
+
...colors.background,
|
|
84
|
+
one: colors.background[100],
|
|
85
|
+
two: colors.background[200],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
cursor: {
|
|
89
|
+
base: 'var(--tw-cursor)',
|
|
90
|
+
},
|
|
91
|
+
spacing: {
|
|
92
|
+
...units.spacing,
|
|
93
|
+
xs: units.spacing[4],
|
|
94
|
+
sm: units.spacing[8],
|
|
95
|
+
md: units.spacing[16],
|
|
96
|
+
lg: units.spacing[24],
|
|
97
|
+
xl: units.spacing[48],
|
|
98
|
+
},
|
|
99
|
+
maxWidth: {
|
|
100
|
+
content: '100%',
|
|
101
|
+
},
|
|
102
|
+
borderRadius: {
|
|
103
|
+
...units.radius,
|
|
104
|
+
base: 'var(--sk-spacing-0)',
|
|
105
|
+
},
|
|
106
|
+
lineHeight: {
|
|
107
|
+
...units.lineHeights,
|
|
108
|
+
xs: '1.6rem',
|
|
109
|
+
xl: units.lineHeights['h4'],
|
|
110
|
+
'2xl': units.lineHeights['h3'],
|
|
111
|
+
'3xl': units.lineHeights['h2'],
|
|
112
|
+
'4xl': units.lineHeights['h1'],
|
|
113
|
+
'5xl': units.lineHeights['display-3'],
|
|
114
|
+
},
|
|
115
|
+
opacity: {
|
|
116
|
+
15: '0.15',
|
|
117
|
+
},
|
|
118
|
+
borderWidth: {
|
|
119
|
+
DEFAULT: '0.2rem',
|
|
120
|
+
1: '0.1rem',
|
|
121
|
+
2: '0.2rem',
|
|
122
|
+
},
|
|
123
|
+
backgroundColor: {
|
|
124
|
+
base: withOpacity('--sk-colors-primary-surface'),
|
|
125
|
+
fill: withOpacity('--sk-colors-bg-fill'),
|
|
126
|
+
},
|
|
127
|
+
textColor: {
|
|
128
|
+
foreground: withOpacity('--sk-colors-primary-DEFAULT'),
|
|
129
|
+
muted: withOpacity('--sk-colors-xt-muted'),
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
zIndex: {
|
|
133
|
+
hide: -1,
|
|
134
|
+
none: 0,
|
|
135
|
+
base: 1,
|
|
136
|
+
docked: 10,
|
|
137
|
+
dropdown: 1000,
|
|
138
|
+
sticky: 1100,
|
|
139
|
+
banner: 1200,
|
|
140
|
+
overlay: 1300,
|
|
141
|
+
modal: 1400,
|
|
142
|
+
popover: 1500,
|
|
143
|
+
skipLink: 1600,
|
|
144
|
+
toast: 1700,
|
|
145
|
+
tooltip: 1800,
|
|
146
|
+
},
|
|
147
|
+
keyframes: {
|
|
148
|
+
'reset-overflow': {
|
|
149
|
+
'from, to': {
|
|
150
|
+
overflow: 'hidden',
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
animation: {
|
|
155
|
+
'reset-overflow': 'reset-overflow 180ms backwards',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
};
|
package/src/units.js
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
spacing: {
|
|
3
|
+
0: 'var(--sk-spacing-0)',
|
|
4
|
+
2: 'var(--sk-spacing-2)',
|
|
5
|
+
4: 'var(--sk-spacing-4)',
|
|
6
|
+
6: 'var(--sk-spacing-6)',
|
|
7
|
+
8: 'var(--sk-spacing-8)',
|
|
8
|
+
10: 'var(--sk-spacing-10)',
|
|
9
|
+
12: 'var(--sk-spacing-12)',
|
|
10
|
+
14: 'var(--sk-spacing-14)',
|
|
11
|
+
16: 'var(--sk-spacing-16)',
|
|
12
|
+
18: 'var(--sk-spacing-18)',
|
|
13
|
+
20: 'var(--sk-spacing-20)',
|
|
14
|
+
24: 'var(--sk-spacing-24)',
|
|
15
|
+
32: 'var(--sk-spacing-32)',
|
|
16
|
+
40: 'var(--sk-spacing-40)',
|
|
17
|
+
48: 'var(--sk-spacing-48)',
|
|
18
|
+
56: 'var(--sk-spacing-56)',
|
|
19
|
+
64: 'var(--sk-spacing-64)',
|
|
20
|
+
72: 'var(--sk-spacing-72)',
|
|
21
|
+
80: 'var(--sk-spacing-80)',
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
fontSizes: {
|
|
25
|
+
'display-1': [
|
|
26
|
+
'var(--sk-fontSize-display-1-DEFAULT)',
|
|
27
|
+
{ lineHeight: 'var(--sk-lineHeight-display-1-DEFAULT)', fontWeight: 700 },
|
|
28
|
+
],
|
|
29
|
+
'display-1-lg': [
|
|
30
|
+
'var(--sk-fontSize-display-1-lg)',
|
|
31
|
+
{ lineHeight: 'var(--sk-lineHeight-display-1-lg)', fontWeight: 700 },
|
|
32
|
+
],
|
|
33
|
+
'display-1-md': [
|
|
34
|
+
'var(--sk-fontSize-display-1-md)',
|
|
35
|
+
{ lineHeight: 'var(--sk-lineHeight-display-1-md)', fontWeight: 700 },
|
|
36
|
+
],
|
|
37
|
+
'display-1-sm': [
|
|
38
|
+
'var(--sk-fontSize-display-1-sm)',
|
|
39
|
+
{ lineHeight: 'var(--sk-lineHeight-display-1-sm)', fontWeight: 700 },
|
|
40
|
+
],
|
|
41
|
+
'display-2': [
|
|
42
|
+
'var(--sk-fontSize-display-2-DEFAULT)',
|
|
43
|
+
{ lineHeight: 'var(--sk-lineHeight-display-2-DEFAULT)', fontWeight: 700 },
|
|
44
|
+
],
|
|
45
|
+
'display-2-lg': [
|
|
46
|
+
'var(--sk-fontSize-display-2-lg)',
|
|
47
|
+
{ lineHeight: 'var(--sk-lineHeight-display-2-lg)', fontWeight: 700 },
|
|
48
|
+
],
|
|
49
|
+
'display-2-md': [
|
|
50
|
+
'var(--sk-fontSize-display-2-md)',
|
|
51
|
+
{ lineHeight: 'var(--sk-lineHeight-display-2-md)', fontWeight: 700 },
|
|
52
|
+
],
|
|
53
|
+
'display-2-sm': [
|
|
54
|
+
'var(--sk-fontSize-display-2-sm)',
|
|
55
|
+
{ lineHeight: 'var(--sk-lineHeight-display-2-sm)', fontWeight: 700 },
|
|
56
|
+
],
|
|
57
|
+
'display-3': [
|
|
58
|
+
'var(--sk-fontSize-display-3-DEFAULT)',
|
|
59
|
+
{ lineHeight: 'var(--sk-lineHeight-display-3-DEFAULT)', fontWeight: 700 },
|
|
60
|
+
],
|
|
61
|
+
'display-3-lg': [
|
|
62
|
+
'var(--sk-fontSize-display-3-lg)',
|
|
63
|
+
{ lineHeight: 'var(--sk-lineHeight-display-3-lg)', fontWeight: 700 },
|
|
64
|
+
],
|
|
65
|
+
'display-3-md': [
|
|
66
|
+
'var(--sk-fontSize-display-3-md)',
|
|
67
|
+
{ lineHeight: 'var(--sk-lineHeight-display-3-md)', fontWeight: 700 },
|
|
68
|
+
],
|
|
69
|
+
'display-3-sm': [
|
|
70
|
+
'var(--sk-fontSize-display-3-sm)',
|
|
71
|
+
{ lineHeight: 'var(--sk-lineHeight-display-3-sm)', fontWeight: 700 },
|
|
72
|
+
],
|
|
73
|
+
|
|
74
|
+
h1: ['var(--sk-fontSize-h-1-DEFAULT)', { lineHeight: 'var(--sk-lineHeight-h-1-DEFAULT)', fontWeight: 700 }],
|
|
75
|
+
'h1-lg': ['var(--sk-fontSize-h-1-lg)', { lineHeight: 'var(--sk-lineHeight-h-1-lg)', fontWeight: 700 }],
|
|
76
|
+
'h1-md': ['var(--sk-fontSize-h-1-md)', { lineHeight: 'var(--sk-lineHeight-h-1-md)', fontWeight: 700 }],
|
|
77
|
+
'h1-sm': ['var(--sk-fontSize-h-1-sm)', { lineHeight: 'var(--sk-lineHeight-h-1-sm)', fontWeight: 700 }],
|
|
78
|
+
h2: ['var(--sk-fontSize-h-2-DEFAULT)', { lineHeight: 'var(--sk-lineHeight-h-2-DEFAULT)', fontWeight: 700 }],
|
|
79
|
+
'h2-lg': ['var(--sk-fontSize-h-2-lg)', { lineHeight: 'var(--sk-lineHeight-h-2-lg)', fontWeight: 700 }],
|
|
80
|
+
'h2-md': ['var(--sk-fontSize-h-2-md)', { lineHeight: 'var(--sk-lineHeight-h-2-md)', fontWeight: 700 }],
|
|
81
|
+
'h2-sm': ['var(--sk-fontSize-h-2-sm)', { lineHeight: 'var(--sk-lineHeight-h-2-sm)', fontWeight: 700 }],
|
|
82
|
+
h3: ['var(--sk-fontSize-h-3-DEFAULT)', { lineHeight: 'var(--sk-lineHeight-h-3-DEFAULT)', fontWeight: 700 }],
|
|
83
|
+
'h3-lg': ['var(--sk-fontSize-h-3-lg)', { lineHeight: 'var(--sk-lineHeight-h-3-lg)', fontWeight: 700 }],
|
|
84
|
+
'h3-md': ['var(--sk-fontSize-h-3-md)', { lineHeight: 'var(--sk-lineHeight-h-3-md)', fontWeight: 700 }],
|
|
85
|
+
'h3-sm': ['var(--sk-fontSize-h-3-sm)', { lineHeight: 'var(--sk-lineHeight-h-3-sm)', fontWeight: 700 }],
|
|
86
|
+
h4: ['var(--sk-fontSize-h-4-DEFAULT)', { lineHeight: 'var(--sk-lineHeight-h-4-DEFAULT)', fontWeight: 700 }],
|
|
87
|
+
'h4-lg': ['var(--sk-fontSize-h-4-lg)', { lineHeight: 'var(--sk-lineHeight-h-4-lg)', fontWeight: 700 }],
|
|
88
|
+
'h4-md': ['var(--sk-fontSize-h-4-md)', { lineHeight: 'var(--sk-lineHeight-h-4-md)', fontWeight: 700 }],
|
|
89
|
+
'h4-sm': ['var(--sk-fontSize-h-4-sm)', { lineHeight: 'var(--sk-lineHeight-h-4-sm)', fontWeight: 700 }],
|
|
90
|
+
|
|
91
|
+
'label-large': [
|
|
92
|
+
'var(--sk-fontSize-label-large)',
|
|
93
|
+
{ lineHeight: 'var(--sk-lineHeight-label-large)', fontWeight: 700 },
|
|
94
|
+
],
|
|
95
|
+
'label-medium': [
|
|
96
|
+
'var(--sk-fontSize-label-medium)',
|
|
97
|
+
{ lineHeight: 'var(--sk-lineHeight-label-medium)', fontWeight: 700 },
|
|
98
|
+
],
|
|
99
|
+
'label-small': [
|
|
100
|
+
'var(--sk-fontSize-label-small)',
|
|
101
|
+
{ lineHeight: 'var(--sk-lineHeight-label-small)', fontWeight: 700 },
|
|
102
|
+
],
|
|
103
|
+
|
|
104
|
+
'input-large': [
|
|
105
|
+
'var(--sk-fontSize-input-large)',
|
|
106
|
+
{ lineHeight: 'var(--sk-lineHeight-input-large)', fontWeight: 400 },
|
|
107
|
+
],
|
|
108
|
+
'input-medium': [
|
|
109
|
+
'var(--sk-fontSize-input-medium)',
|
|
110
|
+
{ lineHeight: 'var(--sk-lineHeight-input-medium)', fontWeight: 400 },
|
|
111
|
+
],
|
|
112
|
+
'input-small': [
|
|
113
|
+
'var(--sk-fontSize-input-small)',
|
|
114
|
+
{ lineHeight: 'var(--sk-lineHeight-input-small)', fontWeight: 400 },
|
|
115
|
+
],
|
|
116
|
+
|
|
117
|
+
lead: ['var(--sk-fontSize-lead)', 'var(--sk-lineHeight-lead)'],
|
|
118
|
+
base: ['var(--sk-fontSize-base)', 'var(--sk-lineHeight-base)'],
|
|
119
|
+
large: ['var(--sk-fontSize-large)', 'var(--sk-lineHeight-large)'],
|
|
120
|
+
small: ['var(--sk-fontSize-small)', 'var(--sk-lineHeight-small)'],
|
|
121
|
+
},
|
|
122
|
+
lineHeights: {
|
|
123
|
+
'display-1': 'var(--sk-lineHeight-display-1-DEFAULT)',
|
|
124
|
+
'display-1-lg': 'var(--sk-lineHeight-display-1-lg)',
|
|
125
|
+
'display-1-md': 'var(--sk-lineHeight-display-1-md)',
|
|
126
|
+
'display-1-sm': 'var(--sk-lineHeight-display-1-sm)',
|
|
127
|
+
'display-2': 'var(--sk-lineHeight-display-2-DEFAULT)',
|
|
128
|
+
'display-2-lg': 'var(--sk-lineHeight-display-2-lg)',
|
|
129
|
+
'display-2-md': 'var(--sk-lineHeight-display-2-md)',
|
|
130
|
+
'display-2-sm': 'var(--sk-lineHeight-display-2-sm)',
|
|
131
|
+
'display-3': 'var(--sk-lineHeight-display-3-DEFAULT)',
|
|
132
|
+
'display-3-lg': 'var(--sk-lineHeight-display-3-lg)',
|
|
133
|
+
'display-3-md': 'var(--sk-lineHeight-display-3-md)',
|
|
134
|
+
'display-3-sm': 'var(--sk-lineHeight-display-3-sm)',
|
|
135
|
+
|
|
136
|
+
h1: 'var(--sk-lineHeight-h-1-DEFAULT)',
|
|
137
|
+
'h1-lg': 'var(--sk-lineHeight-h-1-lg)',
|
|
138
|
+
'h1-md': 'var(--sk-lineHeight-h-1-md)',
|
|
139
|
+
'h1-sm': 'var(--sk-lineHeight-h-1-sm)',
|
|
140
|
+
h2: 'var(--sk-lineHeight-h-2-DEFAULT)',
|
|
141
|
+
'h2-lg': 'var(--sk-lineHeight-h-2-lg)',
|
|
142
|
+
'h2-md': 'var(--sk-lineHeight-h-2-md)',
|
|
143
|
+
'h2-sm': 'var(--sk-lineHeight-h-2-sm)',
|
|
144
|
+
h3: 'var(--sk-lineHeight-h-3-DEFAULT)',
|
|
145
|
+
'h3-lg': 'var(--sk-lineHeight-h-3-lg)',
|
|
146
|
+
'h3-md': 'var(--sk-lineHeight-h-3-md)',
|
|
147
|
+
'h3-sm': 'var(--sk-lineHeight-h-3-sm)',
|
|
148
|
+
h4: 'var(--sk-lineHeight-h-4-DEFAULT)',
|
|
149
|
+
'h4-lg': 'var(--sk-lineHeight-h-4-lg)',
|
|
150
|
+
'h4-md': 'var(--sk-lineHeight-h-4-md)',
|
|
151
|
+
'h4-sm': 'var(--sk-lineHeight-h-4-sm)',
|
|
152
|
+
|
|
153
|
+
'label-large': 'var(--sk-lineHeight-label-large)',
|
|
154
|
+
'label-medium': 'var(--sk-lineHeight-label-medium)',
|
|
155
|
+
'label-small': 'var(--sk-lineHeight-label-small)',
|
|
156
|
+
|
|
157
|
+
'input-large': 'var(--sk-lineHeight-input-large)',
|
|
158
|
+
'input-medium': 'var(--sk-lineHeight-input-medium)',
|
|
159
|
+
'input-small': 'var(--sk-lineHeight-input-small)',
|
|
160
|
+
|
|
161
|
+
lead: 'var(--sk-lineHeight-lead)',
|
|
162
|
+
base: 'var(--sk-lineHeight-base)',
|
|
163
|
+
large: 'var(--sk-lineHeight-large)',
|
|
164
|
+
small: 'var(--sk-lineHeight-small)',
|
|
165
|
+
},
|
|
166
|
+
radius: {
|
|
167
|
+
DEFAULT: 'var(--sk-radius-utility-DEFAULT)',
|
|
168
|
+
full: 'var(--sk-radius-circular-DEFAULT)',
|
|
169
|
+
none: 'var(--sk-spacing-0)',
|
|
170
|
+
circular: 'var(--sk-radius-circular-DEFAULT)',
|
|
171
|
+
'circular-lg': 'var(--sk-radius-circular-lg)',
|
|
172
|
+
'circular-md': 'var(--sk-radius-circular-md)',
|
|
173
|
+
'circular-sm': 'var(--sk-radius-circular-sm)',
|
|
174
|
+
|
|
175
|
+
button: 'var(--sk-radius-button-DEFAULT)',
|
|
176
|
+
'button-lg': 'var(--sk-radius-button-lg)',
|
|
177
|
+
'button-md': 'var(--sk-radius-button-md)',
|
|
178
|
+
'button-sm': 'var(--sk-radius-button-sm)',
|
|
179
|
+
cards: 'var(--sk-radius-cards-DEFAULT)',
|
|
180
|
+
'cards-lg': 'var(--sk-radius-cards-lg)',
|
|
181
|
+
'cards-md': 'var(--sk-radius-cards-md)',
|
|
182
|
+
'cards-sm': 'var(--sk-radius-cards-sm)',
|
|
183
|
+
utility: 'var(--sk-radius-utility-DEFAULT)',
|
|
184
|
+
'utility-lg': 'var(--sk-radius-utility-lg)',
|
|
185
|
+
'utility-md': 'var(--sk-radius-utility-md)',
|
|
186
|
+
'utility-sm': 'var(--sk-radius-utility-sm)',
|
|
187
|
+
groups: 'var(--sk-radius-groups-DEFAULT)',
|
|
188
|
+
'groups-lg': 'var(--sk-radius-groups-lg)',
|
|
189
|
+
'groups-md': 'var(--sk-radius-groups-md)',
|
|
190
|
+
'groups-sm': 'var(--sk-radius-groups-sm)',
|
|
191
|
+
|
|
192
|
+
0: 'var(--sk-spacing-0)',
|
|
193
|
+
2: 'var(--sk-spacing-2)',
|
|
194
|
+
4: 'var(--sk-spacing-4)',
|
|
195
|
+
6: 'var(--sk-spacing-6)',
|
|
196
|
+
8: 'var(--sk-spacing-8)',
|
|
197
|
+
10: 'var(--sk-spacing-10)',
|
|
198
|
+
12: 'var(--sk-spacing-12)',
|
|
199
|
+
14: 'var(--sk-spacing-14)',
|
|
200
|
+
16: 'var(--sk-spacing-16)',
|
|
201
|
+
18: 'var(--sk-spacing-18)',
|
|
202
|
+
20: 'var(--sk-spacing-20)',
|
|
203
|
+
24: 'var(--sk-spacing-24)',
|
|
204
|
+
32: 'var(--sk-spacing-32)',
|
|
205
|
+
40: 'var(--sk-spacing-40)',
|
|
206
|
+
48: 'var(--sk-spacing-48)',
|
|
207
|
+
56: 'var(--sk-spacing-56)',
|
|
208
|
+
64: 'var(--sk-spacing-64)',
|
|
209
|
+
72: 'var(--sk-spacing-72)',
|
|
210
|
+
80: 'var(--sk-spacing-80)',
|
|
211
|
+
},
|
|
212
|
+
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
module.exports = Calendar = () => ({
|
|
2
|
-
// Month row
|
|
3
|
-
'.MuiCalendarPicker-root > div:first-of-type': {
|
|
4
|
-
'@apply ml-2 -mr-2 px-10': {},
|
|
5
|
-
},
|
|
6
|
-
|
|
7
|
-
// Month
|
|
8
|
-
'.MuiCalendarPicker-root > div:first-of-type > div': {
|
|
9
|
-
'@apply font-bold text-base text-body': {},
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
// Arrow switchers
|
|
13
|
-
'.MuiCalendarPicker-root > div:first-of-type .MuiButtonBase-root .MuiSvgIcon-root': {
|
|
14
|
-
'@apply text-body text-lg': {},
|
|
15
|
-
},
|
|
16
|
-
'.MuiCalendarPicker-root > div:first-of-type .MuiButtonBase-root': {
|
|
17
|
-
'@apply border-solid border border-transparent focus:text-transparent hover:text-transparent focus:bg-transparent hover:bg-transparent focus:border-primary hover:border-primary':
|
|
18
|
-
{},
|
|
19
|
-
},
|
|
20
|
-
// Arrow spacer
|
|
21
|
-
'.MuiCalendarPicker-root .MuiPickersArrowSwitcher-spacer': {
|
|
22
|
-
'@apply w-11': {},
|
|
23
|
-
},
|
|
24
|
-
// Disabled arrow
|
|
25
|
-
'.MuiCalendarPicker-root > div:first-of-type .MuiButtonBase-root[disabled] .MuiSvgIcon-root': {
|
|
26
|
-
'@apply text-gray-stroke': {},
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
// Weekdays
|
|
30
|
-
'.MuiCalendarPicker-root div > div:first-of-type > .MuiTypography-root': {
|
|
31
|
-
'@apply font-bold text-body text-base': {},
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
// Days-Grid
|
|
35
|
-
'.MuiCalendarPicker-root > div:last-of-type > div:last-of-type': {
|
|
36
|
-
'@apply min-h-min pb-6': {},
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
// Day picking
|
|
40
|
-
'.MuiCalendarPicker-root .MuiPickersDay-root': {
|
|
41
|
-
'@apply text-base': {},
|
|
42
|
-
},
|
|
43
|
-
'.MuiCalendarPicker-root .Mui-disabled': {
|
|
44
|
-
'@apply text-gray-stroke': {},
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
// Day picked
|
|
48
|
-
'.MuiCalendarPicker-root .MuiButtonBase-root.MuiPickersDay-root.Mui-selected': {
|
|
49
|
-
'@apply bg-background-one text-body focus-visible:bg-background-one hover:bg-background-one focus:bg-background-one':
|
|
50
|
-
{},
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
// Day hovered
|
|
54
|
-
'.MuiCalendarPicker-root .MuiPickersDay-root, .MuiCalendarPicker-root .MuiPickersDay-root.MuiPickersDay-today': {
|
|
55
|
-
'@apply border-primary border-solid focus-visible:border hover:bg-transparent focus:bg-transparent hover:border':
|
|
56
|
-
{},
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
// today
|
|
60
|
-
'.MuiCalendarPicker-root .MuiPickersDay-root.MuiPickersDay-today': {
|
|
61
|
-
'@apply border-0 hover:border': {},
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
'.calendar': {
|
|
65
|
-
// Input field
|
|
66
|
-
'.datepicker-input': {
|
|
67
|
-
'@apply relative': {},
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
'.datepicker-input input': {
|
|
71
|
-
'@apply pl-20 cursor-pointer': {},
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
'.datepicker-input-icon': {
|
|
75
|
-
'@apply pointer-events-none absolute my-auto top-0 bottom-0 left-md mr-md text-xl fill-body': {},
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
});
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
module.exports = Message = () => ({
|
|
2
|
-
'.message': {
|
|
3
|
-
'@apply max-w-2xl flex items-center font-bold text-sm sm:text-base px-6 py-6 m-2 shadow-lg w-max break-words': {},
|
|
4
|
-
'@apply text-body bg-white border-l-4': {},
|
|
5
|
-
// dark
|
|
6
|
-
'@apply dark:text-neutral-100 dark:bg-neutral-700 dark:border-neutral-600': {},
|
|
7
|
-
|
|
8
|
-
'&-text': {
|
|
9
|
-
'@apply text-left flex-grow': {},
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
'&-info': {
|
|
13
|
-
'@apply border-info': {},
|
|
14
|
-
|
|
15
|
-
'.message-icon': {
|
|
16
|
-
'@apply text-info': {},
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
'&-success': {
|
|
20
|
-
'@apply border-success': {},
|
|
21
|
-
|
|
22
|
-
'.message-icon': {
|
|
23
|
-
'@apply text-success': {},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
'&-error': {
|
|
27
|
-
'@apply border-error': {},
|
|
28
|
-
|
|
29
|
-
'.message-icon': {
|
|
30
|
-
'@apply text-error': {},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
'&-warning': {
|
|
34
|
-
'@apply border-warning': {},
|
|
35
|
-
|
|
36
|
-
'.message-icon': {
|
|
37
|
-
'@apply text-warning': {},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
'.message-icon': {
|
|
43
|
-
'@apply mr-4 flex-shrink-0 w-10 h-10': {},
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
'.message-close-button': {
|
|
47
|
-
'@apply text-body border-transparent flex items-center justify-center transition-all duration-150 rounded-full outline-none cursor-base':
|
|
48
|
-
{},
|
|
49
|
-
marginLeft: '0.25em',
|
|
50
|
-
marginRight: '-0.55em',
|
|
51
|
-
|
|
52
|
-
'&-icon': {
|
|
53
|
-
'@apply !text-xl': {},
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
'&-disabled': {
|
|
57
|
-
'@apply disabled:opacity-40 disabled:cursor-not-allowed disabled:shadow-none': {},
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
module.exports = ProfilePicture = () => ({
|
|
2
|
-
'.profile-picture': {
|
|
3
|
-
'@apply relative overflow-hidden flex-shrink-0 text-xs leading-none flex items-center justify-center text-center w-[48px] h-[48px] mr-sm rounded-full border-2 border-primary':
|
|
4
|
-
{},
|
|
5
|
-
|
|
6
|
-
'.profile-picture-img': {
|
|
7
|
-
'@apply bg-cover absolute inset-0 bg-center text-xs leading-none': {},
|
|
8
|
-
},
|
|
9
|
-
'.icon': {
|
|
10
|
-
width: '3.8rem!important',
|
|
11
|
-
height: '3.8rem!important',
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
module.exports = Profile = () => ({
|
|
2
|
-
'.profile-container': {
|
|
3
|
-
'@apply flex items-center': {},
|
|
4
|
-
|
|
5
|
-
'.profile-title': {
|
|
6
|
-
'@apply font-bold text-base m-0': {},
|
|
7
|
-
},
|
|
8
|
-
'.profile-subtitle': {
|
|
9
|
-
'@apply text-sm leading-[20px] m-0': {},
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
'&.minimal': {
|
|
13
|
-
'.profile-title': {
|
|
14
|
-
overflow: 'hidden',
|
|
15
|
-
'text-overflow': 'ellipsis',
|
|
16
|
-
display: '-webkit-box',
|
|
17
|
-
'-webkit-line-clamp': '1' /* number of lines to show */,
|
|
18
|
-
'line-clamp': '1',
|
|
19
|
-
'-webkit-box-orient': 'vertical',
|
|
20
|
-
},
|
|
21
|
-
'.profile-subtitle': {
|
|
22
|
-
overflow: 'hidden',
|
|
23
|
-
'text-overflow': 'ellipsis',
|
|
24
|
-
display: '-webkit-box',
|
|
25
|
-
'-webkit-line-clamp': '1' /* number of lines to show */,
|
|
26
|
-
'line-clamp': '1',
|
|
27
|
-
'-webkit-box-orient': 'vertical',
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
// '&.truncate': { '@apply truncate pr-md': {} },
|
|
32
|
-
},
|
|
33
|
-
});
|