@bagaar/velvet-thunder 0.1.1 → 0.2.1
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/CHANGELOG.md +13 -0
- package/declarations/components/velvet-select/option.d.ts +2 -1
- package/dist/components/velvet-alert.js.map +1 -1
- package/dist/components/velvet-avatar.js.map +1 -1
- package/dist/components/velvet-button.js.map +1 -1
- package/dist/components/velvet-checkbox-group.js.map +1 -1
- package/dist/components/velvet-checkbox.js.map +1 -1
- package/dist/components/velvet-disclosure.js.map +1 -1
- package/dist/components/velvet-dropdown/content.js +1 -1
- package/dist/components/velvet-dropdown/content.js.map +1 -1
- package/dist/components/velvet-dropdown.js.map +1 -1
- package/dist/components/velvet-icon/chevron-down.js.map +1 -1
- package/dist/components/velvet-icon/circle-check-solid.js +1 -1
- package/dist/components/velvet-icon/circle-check-solid.js.map +1 -1
- package/dist/components/velvet-icon/circle-exclamation-solid.js.map +1 -1
- package/dist/components/velvet-icon/circle-info-solid.js +1 -1
- package/dist/components/velvet-icon/circle-info-solid.js.map +1 -1
- package/dist/components/velvet-icon/user.js.map +1 -1
- package/dist/components/velvet-icon/x-mark.js.map +1 -1
- package/dist/components/velvet-icon-button.js.map +1 -1
- package/dist/components/velvet-icon-link.js.map +1 -1
- package/dist/components/velvet-input.js.map +1 -1
- package/dist/components/velvet-link.js.map +1 -1
- package/dist/components/velvet-progress.js.map +1 -1
- package/dist/components/velvet-radio-group.js.map +1 -1
- package/dist/components/velvet-radio.js.map +1 -1
- package/dist/components/velvet-select/option.js.map +1 -1
- package/dist/components/velvet-select.js.map +1 -1
- package/dist/components/velvet-spinner.js.map +1 -1
- package/dist/components/velvet-switch.js.map +1 -1
- package/dist/components/velvet-tag.js.map +1 -1
- package/dist/components/velvet-textarea.js.map +1 -1
- package/dist/components/velvet-tooltip/content.js.map +1 -1
- package/dist/components/velvet-tooltip.js.map +1 -1
- package/package.json +24 -20
- package/tailwind/components/alert.cjs +15 -6
- package/tailwind/components/avatar.cjs +30 -9
- package/tailwind/components/button.cjs +34 -13
- package/tailwind/components/checkbox.cjs +30 -12
- package/tailwind/components/disclosure.cjs +2 -2
- package/tailwind/components/icon-button.cjs +26 -12
- package/tailwind/components/icon-link.cjs +23 -10
- package/tailwind/components/input.cjs +25 -8
- package/tailwind/components/link.cjs +30 -10
- package/tailwind/components/progress.cjs +12 -6
- package/tailwind/components/radio.cjs +29 -12
- package/tailwind/components/select.cjs +28 -10
- package/tailwind/components/spinner.cjs +18 -8
- package/tailwind/components/switch.cjs +49 -18
- package/tailwind/components/tag.cjs +23 -8
- package/tailwind/components/textarea.cjs +28 -7
- package/tailwind/components/tooltip.cjs +3 -2
- package/tailwind/utilities/outline.cjs +6 -2
|
@@ -1,31 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
module.exports = () => ({
|
|
3
|
+
module.exports = ({ theme }) => ({
|
|
4
4
|
'.velvet-input': {
|
|
5
|
-
'
|
|
5
|
+
'padding-top': '0',
|
|
6
|
+
'padding-bottom': '0',
|
|
7
|
+
'border-radius': theme('borderRadius.md'),
|
|
8
|
+
'font-size': theme('fontSize.sm'),
|
|
9
|
+
'line-height': theme('lineHeight.5'),
|
|
10
|
+
'transition-property': theme('transitionProperty.DEFAULT'),
|
|
11
|
+
'transition-timing-function': theme('transitionTimingFunction.DEFAULT'),
|
|
12
|
+
'transition-duration': theme('transitionDuration.DEFAULT'),
|
|
13
|
+
width: '100%',
|
|
6
14
|
|
|
7
15
|
'&:focus': {
|
|
8
|
-
'
|
|
16
|
+
'box-shadow': 'none',
|
|
17
|
+
'outline-style': 'solid',
|
|
18
|
+
'outline-width': '2px',
|
|
19
|
+
'outline-offset': '0px',
|
|
9
20
|
},
|
|
10
21
|
|
|
11
22
|
'&:disabled': {
|
|
12
|
-
'
|
|
23
|
+
cursor: 'not-allowed',
|
|
13
24
|
},
|
|
14
25
|
|
|
15
26
|
'&-sm': {
|
|
16
|
-
'
|
|
27
|
+
height: theme('spacing.8'),
|
|
28
|
+
'padding-left': theme('spacing.2'),
|
|
29
|
+
'padding-right': theme('spacing.2'),
|
|
17
30
|
},
|
|
18
31
|
|
|
19
32
|
'&-md': {
|
|
20
|
-
'
|
|
33
|
+
height: theme('spacing.9'),
|
|
34
|
+
'padding-left': theme('spacing.3'),
|
|
35
|
+
'padding-right': theme('spacing.3'),
|
|
21
36
|
},
|
|
22
37
|
|
|
23
38
|
'&-lg': {
|
|
24
|
-
'
|
|
39
|
+
height: theme('spacing.10'),
|
|
40
|
+
'padding-left': theme('spacing.4'),
|
|
41
|
+
'padding-right': theme('spacing.4'),
|
|
25
42
|
},
|
|
26
43
|
|
|
27
44
|
'&-pill': {
|
|
28
|
-
'
|
|
45
|
+
'border-radius': theme('borderRadius.full'),
|
|
29
46
|
},
|
|
30
47
|
},
|
|
31
48
|
});
|
|
@@ -1,33 +1,53 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
module.exports = () => ({
|
|
3
|
+
module.exports = ({ theme }) => ({
|
|
4
4
|
'.velvet-link': {
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'
|
|
5
|
+
'border-width': '1px',
|
|
6
|
+
'border-color': 'transparent',
|
|
7
|
+
'font-weight': theme('fontWeight.medium'),
|
|
8
|
+
display: 'flex',
|
|
9
|
+
'align-items': 'center',
|
|
10
|
+
'justify-content': 'center',
|
|
11
|
+
'border-radius': theme('borderRadius.md'),
|
|
12
|
+
'font-size': theme('fontSize.sm'),
|
|
13
|
+
'line-height': theme('lineHeight.5'),
|
|
14
|
+
'transition-property': theme('transitionProperty.DEFAULT'),
|
|
15
|
+
'transition-timing-function': theme('transitionTimingFunction.DEFAULT'),
|
|
16
|
+
'transition-duration': theme('transitionDuration.DEFAULT'),
|
|
17
|
+
width: 'fit-content',
|
|
8
18
|
|
|
9
19
|
'&:focus-visible': {
|
|
10
|
-
'
|
|
20
|
+
'outline-style': 'solid',
|
|
21
|
+
'outline-width': '2px',
|
|
22
|
+
'outline-offset': '1px',
|
|
11
23
|
},
|
|
12
24
|
|
|
13
25
|
'&-xs': {
|
|
14
|
-
'
|
|
26
|
+
height: theme('spacing.7'),
|
|
27
|
+
'padding-left': theme('spacing.2'),
|
|
28
|
+
'padding-right': theme('spacing.2'),
|
|
15
29
|
},
|
|
16
30
|
|
|
17
31
|
'&-sm': {
|
|
18
|
-
'
|
|
32
|
+
height: theme('spacing.8'),
|
|
33
|
+
'padding-left': theme('spacing.3'),
|
|
34
|
+
'padding-right': theme('spacing.3'),
|
|
19
35
|
},
|
|
20
36
|
|
|
21
37
|
'&-md': {
|
|
22
|
-
'
|
|
38
|
+
height: theme('spacing.9'),
|
|
39
|
+
'padding-left': theme('spacing.4'),
|
|
40
|
+
'padding-right': theme('spacing.4'),
|
|
23
41
|
},
|
|
24
42
|
|
|
25
43
|
'&-lg': {
|
|
26
|
-
'
|
|
44
|
+
height: theme('spacing.10'),
|
|
45
|
+
'padding-left': theme('spacing.6'),
|
|
46
|
+
'padding-right': theme('spacing.6'),
|
|
27
47
|
},
|
|
28
48
|
|
|
29
49
|
'&-pill': {
|
|
30
|
-
'
|
|
50
|
+
'border-radius': theme('borderRadius.full'),
|
|
31
51
|
},
|
|
32
52
|
},
|
|
33
53
|
});
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
module.exports = () => ({
|
|
3
|
+
module.exports = ({ theme }) => ({
|
|
4
4
|
'.velvet-progress': {
|
|
5
|
-
|
|
5
|
+
overflow: 'hidden',
|
|
6
|
+
'border-radius': theme('borderRadius.full'),
|
|
7
|
+
width: '100%',
|
|
6
8
|
|
|
7
9
|
'&-sm': {
|
|
8
|
-
'
|
|
10
|
+
height: theme('spacing.1'),
|
|
9
11
|
},
|
|
10
12
|
|
|
11
13
|
'&-md': {
|
|
12
|
-
'
|
|
14
|
+
height: theme('spacing.2'),
|
|
13
15
|
},
|
|
14
16
|
|
|
15
17
|
'&-lg': {
|
|
16
|
-
'
|
|
18
|
+
height: theme('spacing.3'),
|
|
17
19
|
},
|
|
18
20
|
|
|
19
21
|
'&-line': {
|
|
20
|
-
|
|
22
|
+
height: '100%',
|
|
23
|
+
'border-radius': theme('borderRadius.full'),
|
|
24
|
+
'transition-property': theme('transitionProperty.all'),
|
|
25
|
+
'transition-timing-function': theme('transitionTimingFunction.DEFAULT'),
|
|
26
|
+
'transition-duration': theme('transitionDuration.DEFAULT'),
|
|
21
27
|
},
|
|
22
28
|
},
|
|
23
29
|
});
|
|
@@ -1,46 +1,63 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
module.exports = () => ({
|
|
3
|
+
module.exports = ({ theme }) => ({
|
|
4
4
|
'.velvet-radio': {
|
|
5
|
-
'
|
|
5
|
+
display: 'flex',
|
|
6
|
+
'align-items': 'center',
|
|
7
|
+
width: 'fit-content',
|
|
6
8
|
|
|
7
9
|
'&-sm': {
|
|
8
|
-
'
|
|
10
|
+
'font-size': theme('fontSize.xs'),
|
|
11
|
+
'line-height': theme('lineHeight.4'),
|
|
9
12
|
|
|
10
13
|
'.velvet-radio-input': {
|
|
11
|
-
'
|
|
14
|
+
'margin-right': theme('spacing.2'),
|
|
15
|
+
width: theme('spacing.4'),
|
|
16
|
+
height: theme('spacing.4'),
|
|
12
17
|
},
|
|
13
18
|
},
|
|
14
19
|
|
|
15
20
|
'&-md': {
|
|
16
|
-
'
|
|
21
|
+
'font-size': theme('fontSize.sm'),
|
|
22
|
+
'line-height': theme('lineHeight.5'),
|
|
17
23
|
|
|
18
24
|
'.velvet-radio-input': {
|
|
19
|
-
'
|
|
25
|
+
'margin-right': theme('spacing.3'),
|
|
26
|
+
width: theme('spacing.5'),
|
|
27
|
+
height: theme('spacing.5'),
|
|
20
28
|
},
|
|
21
29
|
},
|
|
22
30
|
|
|
23
31
|
'&-lg': {
|
|
24
|
-
'
|
|
32
|
+
'font-size': theme('fontSize.base'),
|
|
33
|
+
'line-height': theme('lineHeight.6'),
|
|
25
34
|
|
|
26
35
|
'.velvet-radio-input': {
|
|
27
|
-
'
|
|
36
|
+
'margin-right': theme('spacing.4'),
|
|
37
|
+
width: theme('spacing.6'),
|
|
38
|
+
height: theme('spacing.6'),
|
|
28
39
|
},
|
|
29
40
|
},
|
|
30
41
|
|
|
31
42
|
'&-disabled': {
|
|
32
|
-
'
|
|
43
|
+
cursor: 'not-allowed',
|
|
33
44
|
},
|
|
34
45
|
|
|
35
46
|
'&-input': {
|
|
36
|
-
'
|
|
47
|
+
'border-width': '2px',
|
|
48
|
+
'transition-property': theme('transitionProperty.DEFAULT'),
|
|
49
|
+
'transition-timing-function': theme('transitionTimingFunction.DEFAULT'),
|
|
50
|
+
'transition-duration': theme('transitionDuration.DEFAULT'),
|
|
37
51
|
|
|
38
52
|
'&:focus': {
|
|
39
|
-
'
|
|
53
|
+
'box-shadow': 'none',
|
|
54
|
+
'outline-style': 'solid',
|
|
55
|
+
'outline-width': '2px',
|
|
56
|
+
'outline-offset': '1px',
|
|
40
57
|
},
|
|
41
58
|
|
|
42
59
|
'&:disabled': {
|
|
43
|
-
'
|
|
60
|
+
cursor: 'not-allowed',
|
|
44
61
|
},
|
|
45
62
|
},
|
|
46
63
|
},
|
|
@@ -2,33 +2,51 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = ({ theme }) => ({
|
|
4
4
|
'.velvet-select': {
|
|
5
|
-
'
|
|
5
|
+
'padding-top': '0',
|
|
6
|
+
'padding-bottom': '0',
|
|
7
|
+
'border-radius': theme('borderRadius.md'),
|
|
8
|
+
'font-size': theme('fontSize.sm'),
|
|
9
|
+
'line-height': theme('lineHeight.5'),
|
|
10
|
+
'transition-property': theme('transitionProperty.DEFAULT'),
|
|
11
|
+
'transition-timing-function': theme('transitionTimingFunction.DEFAULT'),
|
|
12
|
+
'transition-duration': theme('transitionDuration.DEFAULT'),
|
|
13
|
+
width: '100%',
|
|
6
14
|
|
|
7
15
|
'&:focus': {
|
|
8
|
-
'
|
|
16
|
+
'box-shadow': 'none',
|
|
17
|
+
'outline-style': 'solid',
|
|
18
|
+
'outline-width': '2px',
|
|
19
|
+
'outline-offset': '0px',
|
|
9
20
|
},
|
|
10
21
|
|
|
11
22
|
'&:disabled': {
|
|
12
|
-
'
|
|
23
|
+
cursor: 'not-allowed',
|
|
24
|
+
opacity: '1',
|
|
13
25
|
},
|
|
14
26
|
|
|
15
27
|
'&-sm': {
|
|
16
|
-
'
|
|
17
|
-
|
|
28
|
+
height: theme('spacing.8'),
|
|
29
|
+
'padding-left': theme('spacing.2'),
|
|
30
|
+
'padding-right': theme('spacing.8'),
|
|
31
|
+
'background-position': `right ${theme('spacing.1')} center`,
|
|
18
32
|
},
|
|
19
33
|
|
|
20
34
|
'&-md': {
|
|
21
|
-
'
|
|
22
|
-
|
|
35
|
+
height: theme('spacing.9'),
|
|
36
|
+
'padding-left': theme('spacing.3'),
|
|
37
|
+
'padding-right': theme('spacing.10'),
|
|
38
|
+
'background-position': `right ${theme('spacing.2')} center`,
|
|
23
39
|
},
|
|
24
40
|
|
|
25
41
|
'&-lg': {
|
|
26
|
-
'
|
|
27
|
-
|
|
42
|
+
height: theme('spacing.10'),
|
|
43
|
+
'padding-left': theme('spacing.4'),
|
|
44
|
+
'padding-right': theme('spacing.12'),
|
|
45
|
+
'background-position': `right ${theme('spacing.3')} center`,
|
|
28
46
|
},
|
|
29
47
|
|
|
30
48
|
'&-pill': {
|
|
31
|
-
'
|
|
49
|
+
'border-radius': theme('borderRadius.full'),
|
|
32
50
|
},
|
|
33
51
|
},
|
|
34
52
|
});
|
|
@@ -1,31 +1,41 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
module.exports = () => ({
|
|
3
|
+
module.exports = ({ theme }) => ({
|
|
4
|
+
'@keyframes velvet-spin': {
|
|
5
|
+
to: { transform: 'rotate(360deg)' },
|
|
6
|
+
},
|
|
7
|
+
|
|
4
8
|
'.velvet-spinner': {
|
|
5
|
-
'
|
|
9
|
+
animation: 'velvet-spin 1s linear infinite',
|
|
10
|
+
'flex-shrink': '0',
|
|
6
11
|
|
|
7
12
|
'&-xs': {
|
|
8
|
-
'
|
|
13
|
+
width: theme('spacing.3'),
|
|
14
|
+
height: theme('spacing.3'),
|
|
9
15
|
},
|
|
10
16
|
|
|
11
17
|
'&-sm': {
|
|
12
|
-
'
|
|
18
|
+
width: theme('spacing.4'),
|
|
19
|
+
height: theme('spacing.4'),
|
|
13
20
|
},
|
|
14
21
|
|
|
15
22
|
'&-md': {
|
|
16
|
-
'
|
|
23
|
+
width: theme('spacing.5'),
|
|
24
|
+
height: theme('spacing.5'),
|
|
17
25
|
},
|
|
18
26
|
|
|
19
27
|
'&-lg': {
|
|
20
|
-
'
|
|
28
|
+
width: theme('spacing.6'),
|
|
29
|
+
height: theme('spacing.6'),
|
|
21
30
|
},
|
|
22
31
|
|
|
23
32
|
'&-xl': {
|
|
24
|
-
'
|
|
33
|
+
width: theme('spacing.7'),
|
|
34
|
+
height: theme('spacing.7'),
|
|
25
35
|
},
|
|
26
36
|
|
|
27
37
|
'&-track': {
|
|
28
|
-
|
|
38
|
+
opacity: '0.2',
|
|
29
39
|
},
|
|
30
40
|
},
|
|
31
41
|
});
|
|
@@ -1,71 +1,102 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
module.exports = () => ({
|
|
3
|
+
module.exports = ({ theme }) => ({
|
|
4
4
|
'.velvet-switch': {
|
|
5
|
-
'
|
|
5
|
+
display: 'flex',
|
|
6
|
+
'align-items': 'center',
|
|
7
|
+
width: 'fit-content',
|
|
6
8
|
|
|
7
9
|
'&-right': {
|
|
8
|
-
'
|
|
10
|
+
'flex-direction': 'row-reverse',
|
|
9
11
|
},
|
|
10
12
|
|
|
11
13
|
'&-sm': {
|
|
12
|
-
|
|
14
|
+
gap: theme('spacing.2'),
|
|
15
|
+
'font-size': theme('fontSize.xs'),
|
|
16
|
+
'line-height': theme('lineHeight.4'),
|
|
13
17
|
|
|
14
18
|
'.velvet-switch-track': {
|
|
15
|
-
'
|
|
19
|
+
height: theme('spacing.4'),
|
|
20
|
+
width: theme('spacing.7'),
|
|
16
21
|
},
|
|
17
22
|
|
|
18
23
|
'.velvet-switch-handle': {
|
|
19
|
-
'
|
|
24
|
+
width: theme('spacing.3'),
|
|
25
|
+
height: theme('spacing.3'),
|
|
20
26
|
},
|
|
21
27
|
},
|
|
22
28
|
|
|
23
29
|
'&-md': {
|
|
24
|
-
|
|
30
|
+
gap: theme('spacing.3'),
|
|
31
|
+
'font-size': theme('fontSize.sm'),
|
|
32
|
+
'line-height': theme('lineHeight.5'),
|
|
25
33
|
|
|
26
34
|
'.velvet-switch-track': {
|
|
27
|
-
'
|
|
35
|
+
height: theme('spacing.5'),
|
|
36
|
+
width: theme('spacing.9'),
|
|
28
37
|
},
|
|
29
38
|
|
|
30
39
|
'.velvet-switch-handle': {
|
|
31
|
-
'
|
|
40
|
+
width: theme('spacing.4'),
|
|
41
|
+
height: theme('spacing.4'),
|
|
32
42
|
},
|
|
33
43
|
},
|
|
34
44
|
|
|
35
45
|
'&-lg': {
|
|
36
|
-
|
|
46
|
+
gap: theme('spacing.4'),
|
|
47
|
+
'font-size': theme('fontSize.base'),
|
|
48
|
+
'line-height': theme('lineHeight.6'),
|
|
37
49
|
|
|
38
50
|
'.velvet-switch-track': {
|
|
39
|
-
'
|
|
51
|
+
height: theme('spacing.6'),
|
|
52
|
+
width: theme('spacing.11'),
|
|
40
53
|
},
|
|
41
54
|
|
|
42
55
|
'.velvet-switch-handle': {
|
|
43
|
-
'
|
|
56
|
+
width: theme('spacing.5'),
|
|
57
|
+
height: theme('spacing.5'),
|
|
44
58
|
},
|
|
45
59
|
},
|
|
46
60
|
|
|
47
61
|
'&-disabled': {
|
|
48
|
-
'
|
|
62
|
+
cursor: 'not-allowed',
|
|
49
63
|
},
|
|
50
64
|
|
|
51
65
|
'&-input': {
|
|
52
|
-
|
|
66
|
+
position: 'absolute',
|
|
67
|
+
width: '1px',
|
|
68
|
+
height: '1px',
|
|
69
|
+
padding: '0',
|
|
70
|
+
margin: '-1px',
|
|
71
|
+
overflow: 'hidden',
|
|
72
|
+
clip: 'rect(0, 0, 0, 0)',
|
|
73
|
+
'white-space': 'nowrap',
|
|
74
|
+
'border-width': '0',
|
|
53
75
|
|
|
54
76
|
'&:focus-visible + .velvet-switch-track': {
|
|
55
|
-
'
|
|
77
|
+
'outline-style': 'solid',
|
|
78
|
+
'outline-width': '2px',
|
|
79
|
+
'outline-offset': '1px',
|
|
56
80
|
},
|
|
57
81
|
|
|
58
82
|
'&:checked + .velvet-switch-track .velvet-switch-handle': {
|
|
59
|
-
|
|
83
|
+
transform: 'translateX(100%)',
|
|
60
84
|
},
|
|
61
85
|
},
|
|
62
86
|
|
|
63
87
|
'.velvet-switch-track': {
|
|
64
|
-
'
|
|
88
|
+
padding: '0.125rem',
|
|
89
|
+
'border-radius': theme('borderRadius.full'),
|
|
90
|
+
'transition-property': theme('transitionProperty.colors'),
|
|
91
|
+
'transition-timing-function': theme('transitionTimingFunction.DEFAULT'),
|
|
92
|
+
'transition-duration': theme('transitionDuration.DEFAULT'),
|
|
65
93
|
},
|
|
66
94
|
|
|
67
95
|
'.velvet-switch-handle': {
|
|
68
|
-
'
|
|
96
|
+
'border-radius': theme('borderRadius.full'),
|
|
97
|
+
'transition-property': theme('transitionProperty.transform'),
|
|
98
|
+
'transition-timing-function': theme('transitionTimingFunction.DEFAULT'),
|
|
99
|
+
'transition-duration': theme('transitionDuration.DEFAULT'),
|
|
69
100
|
},
|
|
70
101
|
},
|
|
71
102
|
});
|
|
@@ -1,25 +1,40 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
module.exports = () => ({
|
|
3
|
+
module.exports = ({ theme }) => ({
|
|
4
4
|
'.velvet-tag': {
|
|
5
|
-
'
|
|
6
|
-
'
|
|
7
|
-
'
|
|
5
|
+
'border-width': '1px',
|
|
6
|
+
'border-color': 'transparent',
|
|
7
|
+
'font-weight': theme('fontWeight.medium'),
|
|
8
|
+
display: 'flex',
|
|
9
|
+
'align-items': 'center',
|
|
10
|
+
'justify-content': 'center',
|
|
11
|
+
'border-radius': theme('borderRadius.DEFAULT'),
|
|
12
|
+
'font-size': theme('fontSize.sm'),
|
|
13
|
+
'line-height': theme('lineHeight.5'),
|
|
14
|
+
width: 'fit-content',
|
|
8
15
|
|
|
9
16
|
'&-sm': {
|
|
10
|
-
'
|
|
17
|
+
height: theme('spacing.5'),
|
|
18
|
+
'padding-left': theme('spacing.1'),
|
|
19
|
+
'padding-right': theme('spacing.1'),
|
|
20
|
+
'font-size': theme('fontSize.xs'),
|
|
21
|
+
'line-height': theme('lineHeight.4'),
|
|
11
22
|
},
|
|
12
23
|
|
|
13
24
|
'&-md': {
|
|
14
|
-
'
|
|
25
|
+
height: theme('spacing.6'),
|
|
26
|
+
'padding-left': theme('spacing.2'),
|
|
27
|
+
'padding-right': theme('spacing.2'),
|
|
15
28
|
},
|
|
16
29
|
|
|
17
30
|
'&-lg': {
|
|
18
|
-
'
|
|
31
|
+
height: theme('spacing.7'),
|
|
32
|
+
'padding-left': theme('spacing.3'),
|
|
33
|
+
'padding-right': theme('spacing.3'),
|
|
19
34
|
},
|
|
20
35
|
|
|
21
36
|
'&-pill': {
|
|
22
|
-
'
|
|
37
|
+
'border-radius': theme('borderRadius.full'),
|
|
23
38
|
},
|
|
24
39
|
},
|
|
25
40
|
});
|
|
@@ -1,27 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
module.exports = () => ({
|
|
3
|
+
module.exports = ({ theme }) => ({
|
|
4
4
|
'.velvet-textarea': {
|
|
5
|
-
'
|
|
5
|
+
'border-radius': theme('borderRadius.md'),
|
|
6
|
+
'font-size': theme('fontSize.sm'),
|
|
7
|
+
'line-height': theme('lineHeight.5'),
|
|
8
|
+
'transition-property': theme('transitionProperty.DEFAULT'),
|
|
9
|
+
'transition-timing-function': theme('transitionTimingFunction.DEFAULT'),
|
|
10
|
+
'transition-duration': theme('transitionDuration.DEFAULT'),
|
|
11
|
+
width: '100%',
|
|
6
12
|
|
|
7
13
|
'&:focus': {
|
|
8
|
-
'
|
|
14
|
+
'box-shadow': 'none',
|
|
15
|
+
'outline-style': 'solid',
|
|
16
|
+
'outline-width': '2px',
|
|
17
|
+
'outline-offset': '0px',
|
|
9
18
|
},
|
|
10
19
|
|
|
11
20
|
'&:disabled': {
|
|
12
|
-
'
|
|
21
|
+
cursor: 'not-allowed',
|
|
13
22
|
},
|
|
14
23
|
|
|
15
24
|
'&-sm': {
|
|
16
|
-
'
|
|
25
|
+
height: theme('spacing.16'),
|
|
26
|
+
'padding-left': theme('spacing.2'),
|
|
27
|
+
'padding-right': theme('spacing.2'),
|
|
28
|
+
'padding-top': theme('spacing.1'),
|
|
29
|
+
'padding-bottom': theme('spacing.1'),
|
|
17
30
|
},
|
|
18
31
|
|
|
19
32
|
'&-md': {
|
|
20
|
-
'
|
|
33
|
+
height: theme('spacing.24'),
|
|
34
|
+
'padding-left': theme('spacing.3'),
|
|
35
|
+
'padding-right': theme('spacing.3'),
|
|
36
|
+
'padding-top': theme('spacing.2'),
|
|
37
|
+
'padding-bottom': theme('spacing.2'),
|
|
21
38
|
},
|
|
22
39
|
|
|
23
40
|
'&-lg': {
|
|
24
|
-
'
|
|
41
|
+
height: theme('spacing.32'),
|
|
42
|
+
'padding-left': theme('spacing.4'),
|
|
43
|
+
'padding-right': theme('spacing.4'),
|
|
44
|
+
'padding-top': theme('spacing.3'),
|
|
45
|
+
'padding-bottom': theme('spacing.3'),
|
|
25
46
|
},
|
|
26
47
|
},
|
|
27
48
|
});
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
'.velvet-outline': {
|
|
5
|
-
'
|
|
5
|
+
'outline-style': 'solid',
|
|
6
|
+
'outline-width': '2px',
|
|
7
|
+
'outline-offset': '1px',
|
|
6
8
|
},
|
|
7
9
|
'.velvet-outline-offset-0': {
|
|
8
|
-
'
|
|
10
|
+
'outline-style': 'solid',
|
|
11
|
+
'outline-width': '2px',
|
|
12
|
+
'outline-offset': '0px',
|
|
9
13
|
},
|
|
10
14
|
};
|