@tiny-design/react 1.4.0 → 1.5.0
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/es/alert/style/_index.scss +2 -2
- package/es/alert/style/index.css +2 -2
- package/es/auto-complete/style/_index.scss +4 -5
- package/es/auto-complete/style/index.css +4 -5
- package/es/breadcrumb/style/index.css +1 -1
- package/es/breadcrumb/types.d.ts +1 -1
- package/es/button/style/index.css +14 -14
- package/es/calendar/style/_index.scss +9 -9
- package/es/calendar/style/index.css +9 -9
- package/es/card/style/index.css +3 -3
- package/es/cascader/style/_index.scss +9 -9
- package/es/cascader/style/index.css +9 -9
- package/es/checkbox/style/_index.scss +9 -12
- package/es/checkbox/style/index.css +9 -12
- package/es/collapse/style/index.css +3 -3
- package/es/color-picker/style/_index.scss +7 -7
- package/es/color-picker/style/index.css +4 -4
- package/es/date-picker/style/_index.scss +1 -1
- package/es/date-picker/style/index.css +1 -1
- package/es/descriptions/style/_index.scss +5 -6
- package/es/descriptions/style/index.css +6 -6
- package/es/empty/style/_index.scss +1 -1
- package/es/empty/style/index.css +1 -1
- package/es/form/style/_index.scss +5 -6
- package/es/form/style/index.css +4 -4
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/input/style/_index.scss +5 -4
- package/es/input/style/_mixin.scss +1 -1
- package/es/input/style/index.css +21 -20
- package/es/input-number/input-number.js +11 -5
- package/es/input-number/input-number.js.map +1 -1
- package/es/input-number/style/_index.scss +5 -3
- package/es/input-number/style/index.css +13 -11
- package/es/input-otp/style/_index.scss +1 -1
- package/es/input-otp/style/index.css +8 -8
- package/es/list/style/_index.scss +3 -3
- package/es/list/style/index.css +3 -3
- package/es/marquee/index.d.ts +1 -0
- package/es/marquee/index.js +9 -0
- package/es/marquee/index.js.map +1 -0
- package/es/marquee/marquee.d.ts +8 -0
- package/es/marquee/marquee.js +42 -0
- package/es/marquee/marquee.js.map +1 -0
- package/es/marquee/style/_index.scss +77 -0
- package/es/marquee/style/index.css +64 -0
- package/es/marquee/style/index.d.ts +1 -0
- package/es/marquee/style/index.js +1 -0
- package/es/marquee/types.d.ts +21 -0
- package/es/native-select/style/index.css +4 -4
- package/es/notification/style/_index.scss +1 -1
- package/es/notification/style/index.css +1 -1
- package/es/pop-confirm/style/_index.scss +1 -1
- package/es/pop-confirm/style/index.css +1 -1
- package/es/popup/style/_index.scss +9 -9
- package/es/popup/style/index.css +10 -10
- package/es/radio/style/_index.scss +5 -8
- package/es/radio/style/index.css +5 -8
- package/es/segmented/style/_index.scss +10 -10
- package/es/segmented/style/index.css +9 -9
- package/es/select/style/_index.scss +16 -17
- package/es/select/style/index.css +15 -16
- package/es/speed-dial/style/_index.scss +2 -2
- package/es/speed-dial/style/index.css +2 -2
- package/es/statistic/style/_index.scss +2 -2
- package/es/statistic/style/index.css +2 -2
- package/es/style/_component.scss +1 -0
- package/es/style/base.css +57 -0
- package/es/table/style/_index.scss +6 -6
- package/es/table/style/index.css +5 -5
- package/es/tag/style/index.css +1 -1
- package/es/textarea/style/index.css +2 -2
- package/es/time-picker/style/_index.scss +1 -1
- package/es/time-picker/style/index.css +1 -1
- package/es/timeline/style/_index.scss +3 -3
- package/es/timeline/style/index.css +3 -3
- package/es/tooltip/style/index.css +1 -1
- package/es/transfer/style/_index.scss +4 -4
- package/es/transfer/style/index.css +4 -4
- package/es/tree/style/index.css +1 -1
- package/es/typography/style/_index.scss +2 -2
- package/es/typography/style/index.css +2 -2
- package/es/upload/style/_index.scss +4 -4
- package/es/upload/style/index.css +4 -4
- package/lib/alert/style/_index.scss +2 -2
- package/lib/alert/style/index.css +2 -2
- package/lib/auto-complete/style/_index.scss +4 -5
- package/lib/auto-complete/style/index.css +4 -5
- package/lib/breadcrumb/style/index.css +1 -1
- package/lib/breadcrumb/types.d.ts +1 -1
- package/lib/button/style/index.css +14 -14
- package/lib/calendar/style/_index.scss +9 -9
- package/lib/calendar/style/index.css +9 -9
- package/lib/card/style/index.css +3 -3
- package/lib/cascader/style/_index.scss +9 -9
- package/lib/cascader/style/index.css +9 -9
- package/lib/checkbox/style/_index.scss +9 -12
- package/lib/checkbox/style/index.css +9 -12
- package/lib/collapse/style/index.css +3 -3
- package/lib/color-picker/style/_index.scss +7 -7
- package/lib/color-picker/style/index.css +4 -4
- package/lib/date-picker/style/_index.scss +1 -1
- package/lib/date-picker/style/index.css +1 -1
- package/lib/descriptions/style/_index.scss +5 -6
- package/lib/descriptions/style/index.css +6 -6
- package/lib/empty/style/_index.scss +1 -1
- package/lib/empty/style/index.css +1 -1
- package/lib/form/style/_index.scss +5 -6
- package/lib/form/style/index.css +4 -4
- package/lib/index.d.ts +2 -1
- package/lib/index.js +76 -74
- package/lib/input/style/_index.scss +5 -4
- package/lib/input/style/_mixin.scss +1 -1
- package/lib/input/style/index.css +21 -20
- package/lib/input-number/input-number.js +11 -5
- package/lib/input-number/input-number.js.map +1 -1
- package/lib/input-number/style/_index.scss +5 -3
- package/lib/input-number/style/index.css +13 -11
- package/lib/input-otp/style/_index.scss +1 -1
- package/lib/input-otp/style/index.css +8 -8
- package/lib/list/style/_index.scss +3 -3
- package/lib/list/style/index.css +3 -3
- package/lib/marquee/index.js +8 -0
- package/lib/marquee/index.js.map +1 -0
- package/lib/marquee/marquee.d.ts +8 -0
- package/lib/marquee/marquee.js +45 -0
- package/lib/marquee/marquee.js.map +1 -0
- package/lib/marquee/style/_index.scss +77 -0
- package/lib/marquee/style/index.css +64 -0
- package/lib/marquee/style/index.d.ts +1 -0
- package/lib/marquee/style/index.js +1 -0
- package/lib/marquee/types.d.ts +21 -0
- package/lib/native-select/style/index.css +4 -4
- package/lib/notification/style/_index.scss +1 -1
- package/lib/notification/style/index.css +1 -1
- package/lib/pop-confirm/style/_index.scss +1 -1
- package/lib/pop-confirm/style/index.css +1 -1
- package/lib/popup/style/_index.scss +9 -9
- package/lib/popup/style/index.css +10 -10
- package/lib/radio/style/_index.scss +5 -8
- package/lib/radio/style/index.css +5 -8
- package/lib/segmented/style/_index.scss +10 -10
- package/lib/segmented/style/index.css +9 -9
- package/lib/select/style/_index.scss +16 -17
- package/lib/select/style/index.css +15 -16
- package/lib/speed-dial/style/_index.scss +2 -2
- package/lib/speed-dial/style/index.css +2 -2
- package/lib/statistic/style/_index.scss +2 -2
- package/lib/statistic/style/index.css +2 -2
- package/lib/style/_component.scss +1 -0
- package/lib/style/base.css +57 -0
- package/lib/table/style/_index.scss +6 -6
- package/lib/table/style/index.css +5 -5
- package/lib/tag/style/index.css +1 -1
- package/lib/textarea/style/index.css +2 -2
- package/lib/time-picker/style/_index.scss +1 -1
- package/lib/time-picker/style/index.css +1 -1
- package/lib/timeline/style/_index.scss +3 -3
- package/lib/timeline/style/index.css +3 -3
- package/lib/tooltip/style/index.css +1 -1
- package/lib/transfer/style/_index.scss +4 -4
- package/lib/transfer/style/index.css +4 -4
- package/lib/tree/style/index.css +1 -1
- package/lib/typography/style/_index.scss +2 -2
- package/lib/typography/style/index.css +2 -2
- package/lib/upload/style/_index.scss +4 -4
- package/lib/upload/style/index.css +4 -4
- package/package.json +3 -3
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
border: 1px solid var(--ty-input-border);
|
|
7
7
|
transition: all 0.3s;
|
|
8
8
|
outline: 0;
|
|
9
|
-
border-radius:
|
|
10
|
-
font-size:
|
|
9
|
+
border-radius: var(--ty-border-radius);
|
|
10
|
+
font-size: var(--ty-font-size-base);
|
|
11
11
|
background-color: var(--ty-input-bg);
|
|
12
12
|
}
|
|
13
13
|
.ty-textarea:hover {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
.#{$prefix}-timeline {
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
color: var(--ty-color-text-secondary);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: var(--ty-font-size-base);
|
|
7
7
|
line-height: 1.5;
|
|
8
8
|
margin: 0;
|
|
9
9
|
padding: 0;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
&:last-child {
|
|
22
22
|
.#{$prefix}-timeline-item__head {
|
|
23
|
-
|
|
23
|
+
&::before {
|
|
24
24
|
display: none;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
color: var(--ty-color-primary);
|
|
34
34
|
height: 100%;
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
&::before {
|
|
37
37
|
content: '';
|
|
38
38
|
position: absolute;
|
|
39
39
|
top: 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.ty-timeline {
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
color: var(--ty-color-text-secondary);
|
|
4
|
-
font-size:
|
|
4
|
+
font-size: var(--ty-font-size-base);
|
|
5
5
|
line-height: 1.5;
|
|
6
6
|
margin: 0;
|
|
7
7
|
padding: 0;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
font-size: 14px;
|
|
17
17
|
list-style: none;
|
|
18
18
|
}
|
|
19
|
-
.ty-timeline-item:last-child .ty-timeline-item__head
|
|
19
|
+
.ty-timeline-item:last-child .ty-timeline-item__head::before {
|
|
20
20
|
display: none;
|
|
21
21
|
}
|
|
22
22
|
.ty-timeline-item__head {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
color: var(--ty-color-primary);
|
|
27
27
|
height: 100%;
|
|
28
28
|
}
|
|
29
|
-
.ty-timeline-item__head
|
|
29
|
+
.ty-timeline-item__head::before {
|
|
30
30
|
content: "";
|
|
31
31
|
position: absolute;
|
|
32
32
|
top: 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.#{$prefix}-transfer {
|
|
4
4
|
box-sizing: border-box;
|
|
5
|
-
font-size:
|
|
5
|
+
font-size: var(--ty-font-size-base);
|
|
6
6
|
color: var(--ty-color-text);
|
|
7
7
|
|
|
8
8
|
&__left-arrow {
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
vertical-align: middle;
|
|
35
35
|
width: 180px;
|
|
36
36
|
border: 1px solid var(--ty-transfer-border);
|
|
37
|
-
border-radius:
|
|
37
|
+
border-radius: var(--ty-border-radius);
|
|
38
38
|
|
|
39
39
|
&__header {
|
|
40
40
|
padding: 8px 12px 9px;
|
|
41
41
|
color: var(--ty-color-text);
|
|
42
42
|
background: var(--ty-transfer-header-bg);
|
|
43
43
|
border-bottom: 1px solid var(--ty-transfer-footer-border);
|
|
44
|
-
border-radius:
|
|
44
|
+
border-radius: var(--ty-border-radius) var(--ty-border-radius) 0 0;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&__body {
|
|
@@ -93,6 +93,6 @@
|
|
|
93
93
|
padding: 8px 12px 9px;
|
|
94
94
|
border-top: 1px solid var(--ty-transfer-footer-border);
|
|
95
95
|
background-color: var(--ty-transfer-footer-bg);
|
|
96
|
-
border-radius: 0 0
|
|
96
|
+
border-radius: 0 0 var(--ty-border-radius) var(--ty-border-radius);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.ty-transfer {
|
|
2
2
|
box-sizing: border-box;
|
|
3
|
-
font-size:
|
|
3
|
+
font-size: var(--ty-font-size-base);
|
|
4
4
|
color: var(--ty-color-text);
|
|
5
5
|
}
|
|
6
6
|
.ty-transfer__left-arrow {
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
vertical-align: middle;
|
|
29
29
|
width: 180px;
|
|
30
30
|
border: 1px solid var(--ty-transfer-border);
|
|
31
|
-
border-radius:
|
|
31
|
+
border-radius: var(--ty-border-radius);
|
|
32
32
|
}
|
|
33
33
|
.ty-transfer-panel__header {
|
|
34
34
|
padding: 8px 12px 9px;
|
|
35
35
|
color: var(--ty-color-text);
|
|
36
36
|
background: var(--ty-transfer-header-bg);
|
|
37
37
|
border-bottom: 1px solid var(--ty-transfer-footer-border);
|
|
38
|
-
border-radius:
|
|
38
|
+
border-radius: var(--ty-border-radius) var(--ty-border-radius) 0 0;
|
|
39
39
|
}
|
|
40
40
|
.ty-transfer-panel__body {
|
|
41
41
|
position: relative;
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
padding: 8px 12px 9px;
|
|
80
80
|
border-top: 1px solid var(--ty-transfer-footer-border);
|
|
81
81
|
background-color: var(--ty-transfer-footer-bg);
|
|
82
|
-
border-radius: 0 0
|
|
82
|
+
border-radius: 0 0 var(--ty-border-radius) var(--ty-border-radius);
|
|
83
83
|
}
|
package/lib/tree/style/index.css
CHANGED
|
@@ -36,7 +36,7 @@ $tp-prefix: #{$prefix}-typography;
|
|
|
36
36
|
font-size: 85%;
|
|
37
37
|
background: var(--ty-typography-code-bg);
|
|
38
38
|
border: 1px solid var(--ty-typography-code-border);
|
|
39
|
-
border-radius:
|
|
39
|
+
border-radius: var(--ty-border-radius);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
mark {
|
|
@@ -99,7 +99,7 @@ p.#{$tp-prefix}, div.#{$tp-prefix} {
|
|
|
99
99
|
margin-top: 0;
|
|
100
100
|
margin-bottom: 1em;
|
|
101
101
|
color: var(--ty-typography-body-color);
|
|
102
|
-
font-size:
|
|
102
|
+
font-size: var(--ty-font-size-base);
|
|
103
103
|
line-height: 1.5;
|
|
104
104
|
}
|
|
105
105
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
font-size: 85%;
|
|
25
25
|
background: var(--ty-typography-code-bg);
|
|
26
26
|
border: 1px solid var(--ty-typography-code-border);
|
|
27
|
-
border-radius:
|
|
27
|
+
border-radius: var(--ty-border-radius);
|
|
28
28
|
}
|
|
29
29
|
.ty-typography mark {
|
|
30
30
|
padding: 0;
|
|
@@ -83,7 +83,7 @@ p.ty-typography, div.ty-typography {
|
|
|
83
83
|
margin-top: 0;
|
|
84
84
|
margin-bottom: 1em;
|
|
85
85
|
color: var(--ty-typography-body-color);
|
|
86
|
-
font-size:
|
|
86
|
+
font-size: var(--ty-font-size-base);
|
|
87
87
|
line-height: 1.5;
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
margin: 0;
|
|
8
8
|
padding: 0;
|
|
9
9
|
color: var(--ty-color-text);
|
|
10
|
-
font-size:
|
|
10
|
+
font-size: var(--ty-font-size-base);
|
|
11
11
|
outline: 0;
|
|
12
12
|
|
|
13
13
|
&__upload-list {
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
padding: 0;
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
color: var(--ty-color-text);
|
|
19
|
-
font-size:
|
|
19
|
+
font-size: var(--ty-font-size-base);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&__upload-list-item {
|
|
23
23
|
margin-top: 5px;
|
|
24
|
-
font-size:
|
|
24
|
+
font-size: var(--ty-font-size-base);
|
|
25
25
|
transition: background-color 300ms;
|
|
26
26
|
|
|
27
27
|
&:hover {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
text-align: center;
|
|
83
83
|
background: var(--ty-upload-dragger-bg);
|
|
84
84
|
border: 1px dashed var(--ty-upload-dragger-border);
|
|
85
|
-
border-radius:
|
|
85
|
+
border-radius: var(--ty-border-radius);
|
|
86
86
|
cursor: pointer;
|
|
87
87
|
transition: border-color 300ms, background-color 300ms;
|
|
88
88
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
margin: 0;
|
|
31
31
|
padding: 0;
|
|
32
32
|
color: var(--ty-color-text);
|
|
33
|
-
font-size:
|
|
33
|
+
font-size: var(--ty-font-size-base);
|
|
34
34
|
outline: 0;
|
|
35
35
|
}
|
|
36
36
|
.ty-upload__upload-list {
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
padding: 0;
|
|
40
40
|
box-sizing: border-box;
|
|
41
41
|
color: var(--ty-color-text);
|
|
42
|
-
font-size:
|
|
42
|
+
font-size: var(--ty-font-size-base);
|
|
43
43
|
}
|
|
44
44
|
.ty-upload__upload-list-item {
|
|
45
45
|
margin-top: 5px;
|
|
46
|
-
font-size:
|
|
46
|
+
font-size: var(--ty-font-size-base);
|
|
47
47
|
transition: background-color 300ms;
|
|
48
48
|
}
|
|
49
49
|
.ty-upload__upload-list-item:hover {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
text-align: center;
|
|
93
93
|
background: var(--ty-upload-dragger-bg);
|
|
94
94
|
border: 1px dashed var(--ty-upload-dragger-border);
|
|
95
|
-
border-radius:
|
|
95
|
+
border-radius: var(--ty-border-radius);
|
|
96
96
|
cursor: pointer;
|
|
97
97
|
transition: border-color 300ms, background-color 300ms;
|
|
98
98
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiny-design/react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "A friendly UI component set for React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@popperjs/core": "^2.11.4",
|
|
55
55
|
"classnames": "^2.3.1",
|
|
56
56
|
"tslib": "^2.3.1",
|
|
57
|
-
"@tiny-design/icons": "1.
|
|
58
|
-
"@tiny-design/tokens": "1.
|
|
57
|
+
"@tiny-design/icons": "1.5.0",
|
|
58
|
+
"@tiny-design/tokens": "1.5.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@testing-library/jest-dom": "^6.0.0",
|