@sk-web-gui/core 1.0.2 → 1.0.3
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/components/header.js +5 -1
- package/dist/cjs/components/header.js.map +1 -1
- package/dist/cjs/components/zebratable.js +13 -4
- package/dist/cjs/components/zebratable.js.map +1 -1
- package/dist/esm/components/header.js +5 -1
- package/dist/esm/components/header.js.map +1 -1
- package/dist/esm/components/zebratable.js +13 -4
- package/dist/esm/components/zebratable.js.map +1 -1
- package/dist/types/base.d.ts +52 -0
- package/dist/types/colors.d.ts +883 -0
- package/dist/types/components/accordion.d.ts +97 -0
- package/dist/types/components/alert-banner.d.ts +24 -0
- package/dist/types/components/alert.d.ts +10 -0
- package/dist/types/components/avatar.d.ts +4 -0
- package/dist/types/components/badge.d.ts +4 -0
- package/dist/types/components/breadcrumb.d.ts +29 -0
- package/dist/types/components/button-group.d.ts +26 -0
- package/dist/types/components/button.d.ts +172 -0
- package/dist/types/components/card.d.ts +56 -0
- package/dist/types/components/checkbox.d.ts +106 -0
- package/dist/types/components/code.d.ts +9 -0
- package/dist/types/components/combobox.d.ts +65 -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 +36 -0
- package/dist/types/components/dialog.d.ts +6 -0
- package/dist/types/components/divider.d.ts +51 -0
- package/dist/types/components/dot.d.ts +35 -0
- package/dist/types/components/dropdown-filter.d.ts +58 -0
- package/dist/types/components/filter.d.ts +15 -0
- package/dist/types/components/footer.d.ts +28 -0
- package/dist/types/components/forms.d.ts +25 -0
- package/dist/types/components/header.d.ts +29 -0
- package/dist/types/components/icon.d.ts +4 -0
- package/dist/types/components/input.d.ts +207 -0
- package/dist/types/components/kbd.d.ts +8 -0
- package/dist/types/components/label.d.ts +4 -0
- package/dist/types/components/link.d.ts +44 -0
- package/dist/types/components/list.d.ts +53 -0
- package/dist/types/components/logo.d.ts +49 -0
- package/dist/types/components/menu-vertical.d.ts +219 -0
- package/dist/types/components/menubar.d.ts +12 -0
- package/dist/types/components/modal.d.ts +42 -0
- package/dist/types/components/notification.d.ts +48 -0
- package/dist/types/components/pagination.d.ts +101 -0
- package/dist/types/components/popup-menu.d.ts +106 -0
- package/dist/types/components/progress-bar.d.ts +4 -0
- package/dist/types/components/progress-stepper.d.ts +51 -0
- package/dist/types/components/radio.d.ts +126 -0
- package/dist/types/components/search-field.d.ts +21 -0
- package/dist/types/components/select.d.ts +142 -0
- package/dist/types/components/side-menu.d.ts +219 -0
- package/dist/types/components/snackbar.d.ts +31 -0
- package/dist/types/components/spinner.d.ts +4 -0
- package/dist/types/components/switch.d.ts +65 -0
- package/dist/types/components/tab-menu.d.ts +57 -0
- package/dist/types/components/table.d.ts +12 -0
- package/dist/types/components/tabs.d.ts +64 -0
- package/dist/types/components/tooltip.d.ts +54 -0
- package/dist/types/components/user-menu.d.ts +14 -0
- package/dist/types/components/zebratable.d.ts +135 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/plugin.d.ts +8 -0
- package/dist/types/preset.d.ts +13 -0
- package/dist/types/theme.d.ts +1719 -0
- package/dist/types/units.d.ts +247 -0
- package/dist/types/with-opacity.d.ts +4 -0
- package/package.json +14 -6
- 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,140 +0,0 @@
|
|
|
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
|
-
},
|
|
20
|
-
'.sk-zebratable': {
|
|
21
|
-
'@apply w-full text-left table-auto': {},
|
|
22
|
-
'@apply text-dark-secondary': {},
|
|
23
|
-
|
|
24
|
-
'&-thead': {
|
|
25
|
-
'@apply border-b-1 border-dark-primary': {},
|
|
26
|
-
'@apply h-48': {},
|
|
27
|
-
'&-tr': {
|
|
28
|
-
'@apply table-row': {},
|
|
29
|
-
'@apply text-label-small': {},
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
'&-th': {
|
|
33
|
-
'@apply py-4': {},
|
|
34
|
-
|
|
35
|
-
"&[data-isColumnSortable='true']": {
|
|
36
|
-
'@apply cursor-pointer': {},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
'@apply bg-transparent': {},
|
|
40
|
-
'&[data-background="true"]': {
|
|
41
|
-
'@apply bg-vattjom-background-200 border-b-transparent': {},
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
'&-sortbutton': {
|
|
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': {},
|
|
52
|
-
|
|
53
|
-
'&-icon': {
|
|
54
|
-
'@apply inline-flex pl-sm': {},
|
|
55
|
-
|
|
56
|
-
'&-sort': {
|
|
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
|
-
},
|
|
65
|
-
|
|
66
|
-
"&[data-sortmodeascending='true']": {
|
|
67
|
-
'> *': {
|
|
68
|
-
'@apply last-of-type:text-dark-ghost': {},
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
"&[data-sortmodeascending='false']": {
|
|
73
|
-
'> *': {
|
|
74
|
-
'@apply first-of-type:text-dark-ghost': {},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
'&-tbody': {
|
|
82
|
-
'@apply text-dark-secondary bg-transparent': {},
|
|
83
|
-
|
|
84
|
-
'&-tr': {
|
|
85
|
-
'@apply bg-transparent': {},
|
|
86
|
-
'@apply hover:bg-background-100': {},
|
|
87
|
-
'@apply border-b-1': {},
|
|
88
|
-
'@apply last-of-type:border-b-transparent': {},
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
'&-td': {
|
|
92
|
-
'@apply py-20 px-18': {},
|
|
93
|
-
'@apply text-small': {},
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
|
|
97
|
-
'&[data-dense="true"]': {
|
|
98
|
-
'.sk-zebratable': {
|
|
99
|
-
'&-thead': {
|
|
100
|
-
'&-th': {
|
|
101
|
-
'@apply py-4': {},
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
'&-tbody': {
|
|
105
|
-
'&-td': {
|
|
106
|
-
'@apply py-12': {},
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
|
|
112
|
-
'&-paginationwrapper': {
|
|
113
|
-
'@apply w-full max-w-[60rem]': {},
|
|
114
|
-
'@apply shrink': {},
|
|
115
|
-
},
|
|
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
|
-
},
|
|
133
|
-
},
|
|
134
|
-
'&-pagination': {
|
|
135
|
-
'@apply grow': {},
|
|
136
|
-
'@apply shrink': {},
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
});
|
package/src/index.js
DELETED
package/src/plugin.js
DELETED
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
const plugin = require('tailwindcss/plugin');
|
|
2
|
-
|
|
3
|
-
const base = require('./base');
|
|
4
|
-
const theme = require('./theme');
|
|
5
|
-
|
|
6
|
-
// components
|
|
7
|
-
const Alert = require('./components/alert');
|
|
8
|
-
const AlertBanner = require('./components/alert-banner');
|
|
9
|
-
const Badge = require('./components/badge');
|
|
10
|
-
const Breadcrumb = require('./components/breadcrumb');
|
|
11
|
-
const ButtonGroup = require('./components/button-group');
|
|
12
|
-
const ComboBox = require('./components/combobox');
|
|
13
|
-
const Comments = require('./components/comments');
|
|
14
|
-
const Checkbox = require('./components/checkbox');
|
|
15
|
-
const ContextMenu = require('./components/context-menu');
|
|
16
|
-
const Dialog = require('./components/dialog');
|
|
17
|
-
const Dot = require('./components/dot');
|
|
18
|
-
const Forms = require('./components/forms');
|
|
19
|
-
const Filter = require('./components/filter');
|
|
20
|
-
const Icon = require('./components/icon');
|
|
21
|
-
const Input = require('./components/input');
|
|
22
|
-
const Label = require('./components/label');
|
|
23
|
-
const Link = require('./components/link');
|
|
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');
|
|
31
|
-
const Notification = require('./components/notification');
|
|
32
|
-
const Radio = require('./components/radio');
|
|
33
|
-
const Switch = require('./components/switch');
|
|
34
|
-
|
|
35
|
-
const Button = require('./components/button');
|
|
36
|
-
const Accordion = require('./components/accordion');
|
|
37
|
-
const Avatar = require('./components/avatar');
|
|
38
|
-
const Card = require('./components/card');
|
|
39
|
-
const Table = require('./components/table');
|
|
40
|
-
const ZebraTable = require('./components/zebratable');
|
|
41
|
-
|
|
42
|
-
const Modal = require('./components/modal');
|
|
43
|
-
const CookieConsent = require('./components/cookie-consent');
|
|
44
|
-
const Divider = require('./components/divider');
|
|
45
|
-
|
|
46
|
-
const SideMenu = require('./components/side-menu');
|
|
47
|
-
const TabMenu = require('./components/tab-menu');
|
|
48
|
-
const Tabs = require('./components/tabs');
|
|
49
|
-
const Tooltip = require('./components/tooltip');
|
|
50
|
-
const UserMenu = require('./components/user-menu');
|
|
51
|
-
|
|
52
|
-
const DropdownFilter = require('./components/dropdown-filter');
|
|
53
|
-
|
|
54
|
-
const Pagination = require('./components/pagination');
|
|
55
|
-
const PopupMenu = require('./components/popup-menu');
|
|
56
|
-
const Footer = require('./components/footer');
|
|
57
|
-
const Header = require('./components/header');
|
|
58
|
-
|
|
59
|
-
const SearchField = require('./components/search-field');
|
|
60
|
-
|
|
61
|
-
const ProgressStepper = require('./components/progress-stepper');
|
|
62
|
-
const ProgressBar = require('./components/progress-bar');
|
|
63
|
-
|
|
64
|
-
const components = [
|
|
65
|
-
Alert,
|
|
66
|
-
AlertBanner,
|
|
67
|
-
Badge,
|
|
68
|
-
Breadcrumb,
|
|
69
|
-
ButtonGroup,
|
|
70
|
-
Button,
|
|
71
|
-
Checkbox,
|
|
72
|
-
|
|
73
|
-
Comments,
|
|
74
|
-
ContextMenu,
|
|
75
|
-
Dialog,
|
|
76
|
-
Dot,
|
|
77
|
-
Forms,
|
|
78
|
-
Filter,
|
|
79
|
-
Icon,
|
|
80
|
-
Input,
|
|
81
|
-
Label,
|
|
82
|
-
Link,
|
|
83
|
-
List,
|
|
84
|
-
Logo,
|
|
85
|
-
Menubar,
|
|
86
|
-
MenuVertical,
|
|
87
|
-
Select,
|
|
88
|
-
Snackbar,
|
|
89
|
-
Spinner,
|
|
90
|
-
Notification,
|
|
91
|
-
Radio,
|
|
92
|
-
Switch,
|
|
93
|
-
Table,
|
|
94
|
-
ZebraTable,
|
|
95
|
-
CookieConsent,
|
|
96
|
-
Modal,
|
|
97
|
-
|
|
98
|
-
Accordion,
|
|
99
|
-
Avatar,
|
|
100
|
-
Card,
|
|
101
|
-
Divider,
|
|
102
|
-
|
|
103
|
-
SideMenu,
|
|
104
|
-
TabMenu,
|
|
105
|
-
Tabs,
|
|
106
|
-
Tooltip,
|
|
107
|
-
|
|
108
|
-
UserMenu,
|
|
109
|
-
|
|
110
|
-
DropdownFilter,
|
|
111
|
-
|
|
112
|
-
SearchField,
|
|
113
|
-
|
|
114
|
-
Pagination,
|
|
115
|
-
PopupMenu,
|
|
116
|
-
Footer,
|
|
117
|
-
Header,
|
|
118
|
-
ProgressStepper,
|
|
119
|
-
ProgressBar,
|
|
120
|
-
ComboBox,
|
|
121
|
-
];
|
|
122
|
-
|
|
123
|
-
const defaultColors = ['warning', 'error', 'success', 'info', 'vattjom', 'juniskar', 'bjornstigen', 'gronsta'];
|
|
124
|
-
|
|
125
|
-
module.exports = plugin.withOptions(
|
|
126
|
-
function (options = { colors: [], cssBase: true }) {
|
|
127
|
-
return function ({ addComponents, addBase, theme }) {
|
|
128
|
-
const optionColors = [...defaultColors, ...(options.colors || [])];
|
|
129
|
-
|
|
130
|
-
if (options.cssBase) {
|
|
131
|
-
addBase(base);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
addComponents(components.map((component) => component(optionColors, theme)));
|
|
135
|
-
};
|
|
136
|
-
},
|
|
137
|
-
function () {
|
|
138
|
-
return {
|
|
139
|
-
theme: theme,
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
);
|
package/src/preset.js
DELETED
package/src/theme.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
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: screens['desktop-max'],
|
|
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
DELETED
|
@@ -1,212 +0,0 @@
|
|
|
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
|
-
};
|