@sk-web-gui/core 0.1.73 → 0.1.74

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.73",
3
+ "version": "0.1.74",
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": "1d81477b0890e3439bf3d44ad8cb7562c41eeae4"
34
+ "gitHead": "043082a334de566c85d49b320dacf5f87ba021cd"
35
35
  }
@@ -107,5 +107,17 @@ module.exports = Accordion = (colors) => ({
107
107
  },
108
108
  },
109
109
  },
110
+
111
+ '&-disabled, &-disabled button': {
112
+ '@apply disabled:cursor-not-allowed cursor-not-allowed': {},
113
+ },
114
+
115
+ '&-disabled &-header': {
116
+ '@apply bg-gray-lighter text-gray': {},
117
+ },
118
+
119
+ '&-disabled, &&-disabled': {
120
+ '@apply border-gray': {},
121
+ },
110
122
  },
111
123
  });
@@ -335,6 +335,35 @@ module.exports = Button = (colors) => ({
335
335
  fontSize: 'inherit',
336
336
  },
337
337
 
338
+ '&[data-icon=true]': {
339
+ '@apply p-0': {},
340
+ "&[data-rounded='true']": {
341
+ '@apply rounded-full': {},
342
+ },
343
+ '&.btn-sm': {
344
+ minWidth: '4rem',
345
+ maxWidth: '4rem',
346
+ },
347
+
348
+ '&.btn-md': {
349
+ minWidth: '4.4rem',
350
+ maxWidth: '4.4rem',
351
+ },
352
+
353
+ '&.btn-lg': {
354
+ minWidth: '4.8rem',
355
+ maxWidth: '4.8rem',
356
+ },
357
+ '.btn-has-icon': {
358
+ '&-left .MuiSvgIcon-root': {
359
+ '@apply mr-0': {},
360
+ },
361
+ '&-right .MuiSvgIcon-root': {
362
+ '@apply ml-0': {},
363
+ },
364
+ },
365
+ },
366
+
338
367
  // State
339
368
 
340
369
  '&-disabled': {
@@ -76,7 +76,7 @@ module.exports = Calendar = () => ({
76
76
  },
77
77
 
78
78
  '.datepicker-input-icon': {
79
- '@apply pointer-events-none absolute m-6 top-0 left-0 text-xl fill-body': {},
79
+ '@apply pointer-events-none absolute my-auto top-0 bottom-0 left-md mr-md text-xl fill-body': {},
80
80
  },
81
81
  },
82
82
  });
@@ -278,6 +278,18 @@ module.exports = Forms = (colors) => ({
278
278
  '@apply mt-xs text-right': {},
279
279
  },
280
280
  },
281
+ '.dropdown-search': {
282
+ '@apply block w-full relative': {},
283
+ '&-results': {
284
+ '@apply w-full flex justify-between items-center': {},
285
+ '&-text': {
286
+ '@apply truncate text-left grow': {},
287
+ },
288
+ '&-counter': {
289
+ '@apply grow-0': {},
290
+ },
291
+ },
292
+ },
281
293
 
282
294
  '.form-select': {
283
295
  '@apply justify-between items-center grow text-body bg-white caret-transparent select-none cursor-pointer border-gray-stroke':
@@ -298,6 +310,7 @@ module.exports = Forms = (colors) => ({
298
310
  '&-multiple-chioces': {
299
311
  '@apply truncate pr-md': {},
300
312
  },
313
+
301
314
  '&-option': {
302
315
  '@apply text-body rounded-none cursor-default hover:text-white focus-visible:text-white hover:bg-primary focus-visible:bg-primary flex items-center':
303
316
  {},
@@ -309,11 +322,17 @@ module.exports = Forms = (colors) => ({
309
322
  '@apply bg-primary text-white': {},
310
323
  },
311
324
  '&.active.selected': {
312
- '@apply bg-primary text-white': {},
325
+ '@apply bg-gray text-white': {},
313
326
  },
314
327
  '&.disabled': {
315
328
  '@apply opacity-75 cursor-not-allowed hover:bg-white hover:text-black': {},
316
329
  },
330
+ '&-remove-button': {
331
+ '@apply w-full flex justify-between items-center': {},
332
+ '&-text': {
333
+ '@apply truncate grow text-left': {},
334
+ },
335
+ },
317
336
  },
318
337
  },
319
338
 
@@ -46,8 +46,6 @@ module.exports = Message = () => ({
46
46
  '.message-close-button': {
47
47
  '@apply text-body border-transparent flex items-center justify-center transition-all duration-150 rounded-full outline-none cursor-base':
48
48
  {},
49
- fontSize: '1.2em',
50
- padding: '0.36em',
51
49
  marginLeft: '0.25em',
52
50
  marginRight: '-0.55em',
53
51
 
@@ -83,7 +83,7 @@ module.exports = Tag = (colors) => ({
83
83
  fontSize: '1em',
84
84
  padding: '0.36em',
85
85
  marginLeft: '0.25em',
86
- marginRight: '-0.55em',
86
+ marginRight: '-1em',
87
87
 
88
88
  '&-icon': {
89
89
  fontSize: '1em !important',
package/src/index.js CHANGED
@@ -16,7 +16,6 @@ const Dialog = require('./components/dialog');
16
16
  const Dot = require('./components/dot');
17
17
  const Forms = require('./components/forms');
18
18
  const Calendar = require('./components/calendar');
19
- const IconButton = require('./components/icon-button');
20
19
  const Icon = require('./components/icon');
21
20
  const Link = require('./components/link');
22
21
  const Message = require('./components/message');
@@ -63,7 +62,6 @@ const components = [
63
62
  Dot,
64
63
  Forms,
65
64
  Calendar,
66
- IconButton,
67
65
  Icon,
68
66
  Link,
69
67
  Message,
@@ -1,30 +0,0 @@
1
- module.exports = IconButton = () => ({
2
- '.btn-icon, [data-icon="true"]': {
3
- '@apply p-0': {},
4
- "&[data-rounded='true']": {
5
- '@apply rounded-full': {},
6
- },
7
- '&.btn-sm': {
8
- minWidth: '4rem',
9
- maxWidth: '4rem',
10
- },
11
-
12
- '&.btn-md': {
13
- minWidth: '4.4rem',
14
- maxWidth: '4.4rem',
15
- },
16
-
17
- '&.btn-lg': {
18
- minWidth: '4.8rem',
19
- maxWidth: '4.8rem',
20
- },
21
- '.btn-has-icon': {
22
- '&-left .MuiSvgIcon-root': {
23
- '@apply mr-0': {},
24
- },
25
- '&-right .MuiSvgIcon-root': {
26
- '@apply ml-0': {},
27
- },
28
- },
29
- },
30
- });