Skip to content

Commit a2ea544

Browse files
authored
fix(react): bundle issue (#60)
* fix: export bug * fix: remove the font-family style * chore: release note
1 parent 0d4ab0b commit a2ea544

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.changeset/moody-numbers-matter.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@tiny-design/react': patch
3+
---
4+
5+
- Fix the AutoComplete component export issue
6+
- Some components' font family issue
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
export { default } from './auto-complete';
1+
import AutoComplete from './auto-complete';
2+
3+
export default AutoComplete;
24
export type { AutoCompleteProps, AutoCompleteOption } from './types';

packages/react/src/date-picker/style/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ $dp: #{$prefix}-date-picker;
55
.#{$dp} {
66
display: inline-flex;
77
position: relative;
8-
font-family: $font-family;
98
font-size: $font-size-base;
109

1110
// ---- Input ----

packages/react/src/loader/style/_index.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
@use '../../style/mixins' as *;
33

44
.#{$prefix}-loader {
5-
font-family: $font-family;
65
position: relative;
76
display: inline-block;
87
color: var(--ty-color-primary);
@@ -21,7 +20,7 @@
2120
position: absolute;
2221
display: block;
2322
transform: scale(0.75);
24-
background-color: currentColor;
23+
background-color: currentcolor;
2524
border-radius: 50%;
2625
transform-origin: 50% 50%;
2726
opacity: 0.5;
@@ -53,7 +52,6 @@
5352

5453
&__label {
5554
margin: 5px 0;
56-
font-family: $font-family;
5755
user-select: none;
5856
opacity: 0.8;
5957
font-size: 16px;
@@ -133,9 +131,11 @@
133131
0% {
134132
opacity: 0.2;
135133
}
134+
136135
50% {
137136
opacity: 0.9;
138137
}
138+
139139
100% {
140140
opacity: 0.2;
141141
}

packages/react/src/time-picker/style/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ $tp: #{$prefix}-time-picker;
66
display: inline-flex;
77
position: relative;
88
font-size: $font-size-base;
9-
font-family: $font-family;
109

1110
// ---- Input ----
1211
&__input {

0 commit comments

Comments
 (0)