@sk-web-gui/core 0.1.37 → 0.1.39
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/LICENSE +21 -21
- package/README.md +5 -5
- package/package.json +2 -2
- package/src/colors.js +145 -145
- package/src/components/accordion.js +89 -89
- package/src/components/alert.js +98 -98
- package/src/components/avatar.js +85 -85
- package/src/components/badge.js +60 -60
- package/src/components/breadcrumb.js +13 -13
- package/src/components/button-group.js +46 -46
- package/src/components/button.js +304 -304
- package/src/components/calendar.js +82 -82
- package/src/components/card.js +54 -54
- package/src/components/checkbox.js +127 -127
- package/src/components/code.js +9 -9
- package/src/components/cookie-consent.js +30 -30
- package/src/components/divider.js +12 -12
- package/src/components/dot.js +84 -84
- package/src/components/dropdown-filter.js +72 -72
- package/src/components/footer.js +42 -42
- package/src/components/forms.js +256 -256
- package/src/components/header.js +35 -35
- package/src/components/icon-button.js +5 -5
- package/src/components/icon.js +9 -9
- package/src/components/kbd.js +9 -9
- package/src/components/link.js +20 -20
- package/src/components/message.js +62 -62
- package/src/components/modal.js +30 -30
- package/src/components/notification.js +56 -56
- package/src/components/pagination.js +69 -69
- package/src/components/radio.js +104 -104
- package/src/components/search-bar.js +44 -44
- package/src/components/side-menu.js +186 -0
- package/src/components/switch.js +119 -119
- package/src/components/tab-menu.js +36 -36
- package/src/components/table.js +13 -13
- package/src/components/tag.js +97 -97
- package/src/components/user-menu.js +23 -23
- package/src/components/zebratable.js +77 -77
- package/src/index.js +272 -272
- package/src/with-opacity.js +6 -6
- package/src/components/menu.js +0 -171
package/src/components/dot.js
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
module.exports = Dot = (colors) => ({
|
|
2
|
-
'.dot': {
|
|
3
|
-
'@apply relative inline-flex rounded-full': {},
|
|
4
|
-
'&-solid': {
|
|
5
|
-
'@apply bg-neutral-500': {},
|
|
6
|
-
|
|
7
|
-
...colors.reduce(
|
|
8
|
-
(styles, color) => ({
|
|
9
|
-
...styles,
|
|
10
|
-
[`&[data-color="${color}"]`]: {
|
|
11
|
-
[`@apply bg-${color}-500`]: {},
|
|
12
|
-
},
|
|
13
|
-
}),
|
|
14
|
-
{}
|
|
15
|
-
),
|
|
16
|
-
|
|
17
|
-
'&.dot-bordered': {
|
|
18
|
-
'@apply border-2 border-white': {},
|
|
19
|
-
'@apply dark:border-neutral-800': {},
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
...colors.reduce(
|
|
23
|
-
(styles, color) => ({
|
|
24
|
-
...styles,
|
|
25
|
-
[`&.dot-bordered[data-color="${color}"]`]: {
|
|
26
|
-
[`@apply border-${color}-100`]: {},
|
|
27
|
-
[`@apply dark:border-${color}-300`]: {},
|
|
28
|
-
},
|
|
29
|
-
}),
|
|
30
|
-
{}
|
|
31
|
-
),
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
'&-outline': {
|
|
35
|
-
'@apply bg-white border-2 border-neutral-500': {},
|
|
36
|
-
'@apply dark:bg-neutral-800': {},
|
|
37
|
-
...colors.reduce(
|
|
38
|
-
(styles, color) => ({
|
|
39
|
-
...styles,
|
|
40
|
-
[`&[data-color="${color}"]`]: {
|
|
41
|
-
[`@apply border-${color}-500`]: {},
|
|
42
|
-
},
|
|
43
|
-
}),
|
|
44
|
-
{}
|
|
45
|
-
),
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
'&-3xs': {
|
|
49
|
-
'@apply w-1.5 h-1.5': {},
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
'&-2xs': {
|
|
53
|
-
'@apply w-2 h-2': {},
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
'&-xs': {
|
|
57
|
-
'@apply w-2.5 h-2.5': {},
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
'&-sm': {
|
|
61
|
-
'@apply w-3 h-3': {},
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
'&-md': {
|
|
65
|
-
'@apply w-3.5 h-3.5': {},
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
'&-lg': {
|
|
69
|
-
'@apply w-4 h-4': {},
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
'&-xl': {
|
|
73
|
-
'@apply w-5 h-5': {},
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
'&-2xl': {
|
|
77
|
-
'@apply w-6 h-6': {},
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
'&-3xl': {
|
|
81
|
-
'@apply w-8 h-8': {},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
});
|
|
1
|
+
module.exports = Dot = (colors) => ({
|
|
2
|
+
'.dot': {
|
|
3
|
+
'@apply relative inline-flex rounded-full': {},
|
|
4
|
+
'&-solid': {
|
|
5
|
+
'@apply bg-neutral-500': {},
|
|
6
|
+
|
|
7
|
+
...colors.reduce(
|
|
8
|
+
(styles, color) => ({
|
|
9
|
+
...styles,
|
|
10
|
+
[`&[data-color="${color}"]`]: {
|
|
11
|
+
[`@apply bg-${color}-500`]: {},
|
|
12
|
+
},
|
|
13
|
+
}),
|
|
14
|
+
{}
|
|
15
|
+
),
|
|
16
|
+
|
|
17
|
+
'&.dot-bordered': {
|
|
18
|
+
'@apply border-2 border-white': {},
|
|
19
|
+
'@apply dark:border-neutral-800': {},
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
...colors.reduce(
|
|
23
|
+
(styles, color) => ({
|
|
24
|
+
...styles,
|
|
25
|
+
[`&.dot-bordered[data-color="${color}"]`]: {
|
|
26
|
+
[`@apply border-${color}-100`]: {},
|
|
27
|
+
[`@apply dark:border-${color}-300`]: {},
|
|
28
|
+
},
|
|
29
|
+
}),
|
|
30
|
+
{}
|
|
31
|
+
),
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
'&-outline': {
|
|
35
|
+
'@apply bg-white border-2 border-neutral-500': {},
|
|
36
|
+
'@apply dark:bg-neutral-800': {},
|
|
37
|
+
...colors.reduce(
|
|
38
|
+
(styles, color) => ({
|
|
39
|
+
...styles,
|
|
40
|
+
[`&[data-color="${color}"]`]: {
|
|
41
|
+
[`@apply border-${color}-500`]: {},
|
|
42
|
+
},
|
|
43
|
+
}),
|
|
44
|
+
{}
|
|
45
|
+
),
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
'&-3xs': {
|
|
49
|
+
'@apply w-1.5 h-1.5': {},
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
'&-2xs': {
|
|
53
|
+
'@apply w-2 h-2': {},
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
'&-xs': {
|
|
57
|
+
'@apply w-2.5 h-2.5': {},
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
'&-sm': {
|
|
61
|
+
'@apply w-3 h-3': {},
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
'&-md': {
|
|
65
|
+
'@apply w-3.5 h-3.5': {},
|
|
66
|
+
},
|
|
67
|
+
|
|
68
|
+
'&-lg': {
|
|
69
|
+
'@apply w-4 h-4': {},
|
|
70
|
+
},
|
|
71
|
+
|
|
72
|
+
'&-xl': {
|
|
73
|
+
'@apply w-5 h-5': {},
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
'&-2xl': {
|
|
77
|
+
'@apply w-6 h-6': {},
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
'&-3xl': {
|
|
81
|
+
'@apply w-8 h-8': {},
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
});
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
module.exports = DropdownFilter = () => ({
|
|
2
|
-
".DropdownFilter": {
|
|
3
|
-
position: "relative",
|
|
4
|
-
height: 44,
|
|
5
|
-
border: "1px solid #939393",
|
|
6
|
-
maxWidth: 291,
|
|
7
|
-
display: "flex",
|
|
8
|
-
background: "#fff",
|
|
9
|
-
borderRadius: 2,
|
|
10
|
-
|
|
11
|
-
".dropdown-button": {
|
|
12
|
-
justifyContent: "space-between",
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexGrow: 1,
|
|
15
|
-
alignItems: "center",
|
|
16
|
-
padding: "0 1rem",
|
|
17
|
-
|
|
18
|
-
".arrow-icon": {
|
|
19
|
-
transform: "rotate(180deg)",
|
|
20
|
-
|
|
21
|
-
"&.open": {
|
|
22
|
-
transform: "rotate(0)"
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
".fitler-container": {
|
|
28
|
-
position: "absolute",
|
|
29
|
-
top: "100%",
|
|
30
|
-
left: "-1px",
|
|
31
|
-
index: 10,
|
|
32
|
-
width: "calc(100% + 2px)",
|
|
33
|
-
background: "#fff",
|
|
34
|
-
border: "1px solid #939393",
|
|
35
|
-
padding: "1rem",
|
|
36
|
-
borderRadius: 2,
|
|
37
|
-
|
|
38
|
-
".filter-controls": {
|
|
39
|
-
display: "flex",
|
|
40
|
-
justifyContent: "end",
|
|
41
|
-
padding: "0 1rem",
|
|
42
|
-
paddingBottom: 12,
|
|
43
|
-
|
|
44
|
-
"button": {
|
|
45
|
-
marginLeft: "1rem",
|
|
46
|
-
textDecoration: "underline"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
".FilterItem": {
|
|
51
|
-
height: 48,
|
|
52
|
-
display: "flex",
|
|
53
|
-
justifyContent: "space-between",
|
|
54
|
-
alignItems: "center",
|
|
55
|
-
borderBottom: "1px solid #939393",
|
|
56
|
-
padding: "0 1rem",
|
|
57
|
-
|
|
58
|
-
"&.disabled": {
|
|
59
|
-
color: "#939393"
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
"&:first-of-type": {
|
|
63
|
-
borderTop: "1px solid #939393",
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
"&:last-child": {
|
|
67
|
-
borderBottom: "none",
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
});
|
|
1
|
+
module.exports = DropdownFilter = () => ({
|
|
2
|
+
".DropdownFilter": {
|
|
3
|
+
position: "relative",
|
|
4
|
+
height: 44,
|
|
5
|
+
border: "1px solid #939393",
|
|
6
|
+
maxWidth: 291,
|
|
7
|
+
display: "flex",
|
|
8
|
+
background: "#fff",
|
|
9
|
+
borderRadius: 2,
|
|
10
|
+
|
|
11
|
+
".dropdown-button": {
|
|
12
|
+
justifyContent: "space-between",
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexGrow: 1,
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
padding: "0 1rem",
|
|
17
|
+
|
|
18
|
+
".arrow-icon": {
|
|
19
|
+
transform: "rotate(180deg)",
|
|
20
|
+
|
|
21
|
+
"&.open": {
|
|
22
|
+
transform: "rotate(0)"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
".fitler-container": {
|
|
28
|
+
position: "absolute",
|
|
29
|
+
top: "100%",
|
|
30
|
+
left: "-1px",
|
|
31
|
+
index: 10,
|
|
32
|
+
width: "calc(100% + 2px)",
|
|
33
|
+
background: "#fff",
|
|
34
|
+
border: "1px solid #939393",
|
|
35
|
+
padding: "1rem",
|
|
36
|
+
borderRadius: 2,
|
|
37
|
+
|
|
38
|
+
".filter-controls": {
|
|
39
|
+
display: "flex",
|
|
40
|
+
justifyContent: "flex-end",
|
|
41
|
+
padding: "0 1rem",
|
|
42
|
+
paddingBottom: 12,
|
|
43
|
+
|
|
44
|
+
"button": {
|
|
45
|
+
marginLeft: "1rem",
|
|
46
|
+
textDecoration: "underline"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
".FilterItem": {
|
|
51
|
+
height: 48,
|
|
52
|
+
display: "flex",
|
|
53
|
+
justifyContent: "space-between",
|
|
54
|
+
alignItems: "center",
|
|
55
|
+
borderBottom: "1px solid #939393",
|
|
56
|
+
padding: "0 1rem",
|
|
57
|
+
|
|
58
|
+
"&.disabled": {
|
|
59
|
+
color: "#939393"
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
"&:first-of-type": {
|
|
63
|
+
borderTop: "1px solid #939393",
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
"&:last-child": {
|
|
67
|
+
borderBottom: "none",
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
73
|
|
package/src/components/footer.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
module.exports = Footer = (colors) => ({
|
|
2
|
-
'.footer': {
|
|
3
|
-
'&-innerwrapper': {
|
|
4
|
-
'@apply bg-gray text-white py-12': {},
|
|
5
|
-
|
|
6
|
-
...colors.reduce(
|
|
7
|
-
(styles, color) => ({
|
|
8
|
-
...styles,
|
|
9
|
-
[`&[data-color="${color}"]`]: {
|
|
10
|
-
[`@apply bg-${color}`]: {},
|
|
11
|
-
},
|
|
12
|
-
}),
|
|
13
|
-
{}
|
|
14
|
-
),
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
'&-content': {
|
|
18
|
-
'@apply px-md md:flex items-center justify-center m-auto': {},
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
'&-bottomlinks': {
|
|
22
|
-
'@apply bg-gray-middle text-body py-md': {},
|
|
23
|
-
|
|
24
|
-
...colors.reduce(
|
|
25
|
-
(styles, color) => ({
|
|
26
|
-
...styles,
|
|
27
|
-
[`&[data-color="${color}"]`]: {
|
|
28
|
-
[`@apply bg-${color}`]: {},
|
|
29
|
-
},
|
|
30
|
-
}),
|
|
31
|
-
{}
|
|
32
|
-
),
|
|
33
|
-
|
|
34
|
-
'&-container': {
|
|
35
|
-
'@apply px-md flex items-center items-center justify-center m-auto md:space-x-10 flex-col md:flex-row': {},
|
|
36
|
-
'> *': {
|
|
37
|
-
'@apply text-body text-sm leading-sm py-sm': {},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
});
|
|
1
|
+
module.exports = Footer = (colors) => ({
|
|
2
|
+
'.footer': {
|
|
3
|
+
'&-innerwrapper': {
|
|
4
|
+
'@apply bg-gray text-white py-12': {},
|
|
5
|
+
|
|
6
|
+
...colors.reduce(
|
|
7
|
+
(styles, color) => ({
|
|
8
|
+
...styles,
|
|
9
|
+
[`&[data-color="${color}"]`]: {
|
|
10
|
+
[`@apply bg-${color}`]: {},
|
|
11
|
+
},
|
|
12
|
+
}),
|
|
13
|
+
{}
|
|
14
|
+
),
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
'&-content': {
|
|
18
|
+
'@apply px-md md:flex items-center justify-center m-auto': {},
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
'&-bottomlinks': {
|
|
22
|
+
'@apply bg-gray-middle text-body py-md': {},
|
|
23
|
+
|
|
24
|
+
...colors.reduce(
|
|
25
|
+
(styles, color) => ({
|
|
26
|
+
...styles,
|
|
27
|
+
[`&[data-color="${color}"]`]: {
|
|
28
|
+
[`@apply bg-${color}`]: {},
|
|
29
|
+
},
|
|
30
|
+
}),
|
|
31
|
+
{}
|
|
32
|
+
),
|
|
33
|
+
|
|
34
|
+
'&-container': {
|
|
35
|
+
'@apply px-md flex items-center items-center justify-center m-auto md:space-x-10 flex-col md:flex-row': {},
|
|
36
|
+
'> *': {
|
|
37
|
+
'@apply text-body text-sm leading-sm py-sm': {},
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
});
|