@sk-web-gui/core 0.1.66 → 0.1.68
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sk-web-gui/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.68",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"postcss-import": "^14.0.2",
|
|
32
32
|
"tailwindcss": "^2.2.4"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "b4d080f30347f482b696750c233c39f3f2a7da62"
|
|
35
35
|
}
|
|
@@ -59,6 +59,17 @@ module.exports = Accordion = (colors) => ({
|
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
61
|
|
|
62
|
+
'&-alert': {
|
|
63
|
+
'@apply border border-warning': {},
|
|
64
|
+
'.accordion-header': {
|
|
65
|
+
'@apply bg-warning-light text-warning': {},
|
|
66
|
+
|
|
67
|
+
'[aria-expanded="true"] &': {
|
|
68
|
+
'@apply bg-warning-light': {},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
|
|
62
73
|
'&-is-open': {
|
|
63
74
|
'@apply border border-gray-stroke': {},
|
|
64
75
|
'& .accordion-header': {
|
|
@@ -66,7 +77,14 @@ module.exports = Accordion = (colors) => ({
|
|
|
66
77
|
},
|
|
67
78
|
},
|
|
68
79
|
|
|
69
|
-
'&-is-open
|
|
80
|
+
'&-is-open-alert': {
|
|
81
|
+
'@apply border border-warning': {},
|
|
82
|
+
'& .accordion-header': {
|
|
83
|
+
'@apply border-b border-warning': {},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
'&-is-open &-body &-is-open-alert': {
|
|
70
88
|
'@apply overflow-visible animate-reset-overflow': {},
|
|
71
89
|
},
|
|
72
90
|
|
package/src/components/button.js
CHANGED
|
@@ -8,7 +8,7 @@ module.exports = DropdownFilter = () => ({
|
|
|
8
8
|
borderRadius: 2,
|
|
9
9
|
|
|
10
10
|
'.dropdown-button': {
|
|
11
|
-
'@apply flex justify-between items-center
|
|
11
|
+
'@apply flex justify-between items-center grow': {},
|
|
12
12
|
'.dropdown-button-icon': {
|
|
13
13
|
'@apply justify-self-end grow-0': {},
|
|
14
14
|
},
|
|
@@ -22,15 +22,11 @@ module.exports = DropdownFilter = () => ({
|
|
|
22
22
|
width: 'calc(100% + 2px)',
|
|
23
23
|
background: '#fff',
|
|
24
24
|
border: '1px solid #939393',
|
|
25
|
-
padding: '1rem',
|
|
26
25
|
borderRadius: 2,
|
|
27
26
|
|
|
28
27
|
'.filter-controls': {
|
|
29
28
|
display: 'flex',
|
|
30
29
|
justifyContent: 'flex-end',
|
|
31
|
-
padding: '0 1rem',
|
|
32
|
-
paddingBottom: 12,
|
|
33
|
-
|
|
34
30
|
button: {
|
|
35
31
|
marginLeft: '1rem',
|
|
36
32
|
textDecoration: 'underline',
|
|
@@ -38,12 +34,12 @@ module.exports = DropdownFilter = () => ({
|
|
|
38
34
|
},
|
|
39
35
|
|
|
40
36
|
'.filter-item': {
|
|
37
|
+
'@apply px-md': {},
|
|
41
38
|
height: 48,
|
|
42
39
|
display: 'flex',
|
|
43
40
|
justifyContent: 'space-between',
|
|
44
41
|
alignItems: 'center',
|
|
45
42
|
borderBottom: '1px solid #939393',
|
|
46
|
-
padding: '0 1rem',
|
|
47
43
|
|
|
48
44
|
'> label:first-child': {
|
|
49
45
|
'@apply flex-grow': {},
|
package/src/components/forms.js
CHANGED
|
@@ -196,19 +196,25 @@ module.exports = Forms = (colors) => ({
|
|
|
196
196
|
'&-sm': {
|
|
197
197
|
'@apply text-sm leading-sm': {},
|
|
198
198
|
borderRadius: '0.2rem',
|
|
199
|
-
padding: '
|
|
199
|
+
padding: '0 1.44rem',
|
|
200
|
+
minHeight: '4rem',
|
|
201
|
+
maxHeight: '4rem',
|
|
200
202
|
},
|
|
201
203
|
|
|
202
204
|
'&-md': {
|
|
203
205
|
'@apply text-base leading-base': {},
|
|
204
206
|
borderRadius: '0.2rem',
|
|
205
|
-
padding: '
|
|
207
|
+
padding: '0 1.6rem',
|
|
208
|
+
minHeight: '4.4rem',
|
|
209
|
+
maxHeight: '4.4rem',
|
|
206
210
|
},
|
|
207
211
|
|
|
208
212
|
'&-lg': {
|
|
209
213
|
'@apply text-lg leading-lg': {},
|
|
210
214
|
borderRadius: '0.2rem',
|
|
211
|
-
padding: '
|
|
215
|
+
padding: '0 1.76rem',
|
|
216
|
+
minHeight: '4.8rem',
|
|
217
|
+
maxHeight: '4.8rem',
|
|
212
218
|
},
|
|
213
219
|
|
|
214
220
|
'&-disabled, &&-disabled': {
|
|
@@ -250,7 +256,7 @@ module.exports = Forms = (colors) => ({
|
|
|
250
256
|
},
|
|
251
257
|
|
|
252
258
|
'.form-select': {
|
|
253
|
-
'@apply
|
|
259
|
+
'@apply justify-between items-center grow text-body bg-white caret-transparent select-none cursor-pointer border-gray-stroke':
|
|
254
260
|
{},
|
|
255
261
|
'background-image': 'none',
|
|
256
262
|
'&-wrapper': {
|
|
@@ -262,9 +268,14 @@ module.exports = Forms = (colors) => ({
|
|
|
262
268
|
'&-list': {
|
|
263
269
|
'@apply z-10 absolute overflow-y-auto w-full bg-white mt-0 border border-gray-stroke border-t-0': {},
|
|
264
270
|
},
|
|
265
|
-
|
|
271
|
+
'&-has-multiple-choices': {
|
|
272
|
+
'@apply flex w-full h-full justify-between items-center pr-md': {},
|
|
273
|
+
},
|
|
274
|
+
'&-multiple-chioces': {
|
|
275
|
+
'@apply truncate pr-md': {},
|
|
276
|
+
},
|
|
266
277
|
'&-option': {
|
|
267
|
-
'@apply rounded-none cursor-default hover:text-white focus-visible:text-white hover:bg-primary focus-visible:bg-primary':
|
|
278
|
+
'@apply text-body rounded-none cursor-default hover:text-white focus-visible:text-white hover:bg-primary focus-visible:bg-primary flex items-center':
|
|
268
279
|
{},
|
|
269
280
|
|
|
270
281
|
'&.multiple.selected': {
|
|
@@ -276,6 +287,9 @@ module.exports = Forms = (colors) => ({
|
|
|
276
287
|
'&.active.selected': {
|
|
277
288
|
'@apply bg-primary text-white': {},
|
|
278
289
|
},
|
|
290
|
+
'&.disabled': {
|
|
291
|
+
'@apply opacity-75 cursor-not-allowed hover:bg-white hover:text-black': {},
|
|
292
|
+
},
|
|
279
293
|
},
|
|
280
294
|
},
|
|
281
295
|
|
|
@@ -3,7 +3,7 @@ module.exports = Menu = () => ({
|
|
|
3
3
|
'@apply w-[440px]': {},
|
|
4
4
|
|
|
5
5
|
'.menu-header': {
|
|
6
|
-
'@apply py-[2rem] px-[1.6rem] bg-primary rounded-t-sm': {},
|
|
6
|
+
'@apply py-[2rem] px-[1.6rem] bg-primary text-white rounded-t-sm': {},
|
|
7
7
|
|
|
8
8
|
'label, .label': {
|
|
9
9
|
'@apply text-xl font-bold text-white': {},
|
package/src/components/tag.js
CHANGED
|
@@ -79,8 +79,7 @@ module.exports = Tag = (colors) => ({
|
|
|
79
79
|
...tagLight(colors),
|
|
80
80
|
|
|
81
81
|
'.tag-close-button': {
|
|
82
|
-
'@apply
|
|
83
|
-
{},
|
|
82
|
+
'@apply border-transparent cursor-base': {},
|
|
84
83
|
fontSize: '1em',
|
|
85
84
|
padding: '0.36em',
|
|
86
85
|
marginLeft: '0.25em',
|