@nutui/nutui-react-taro 1.3.9 → 1.3.10

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.
Files changed (85) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/esm/Address.js +4 -2
  3. package/dist/esm/Audio.js +3 -3
  4. package/dist/esm/Button.js +2 -2
  5. package/dist/esm/Card.js +4 -4
  6. package/dist/esm/Checkbox.js +2 -3
  7. package/dist/esm/CheckboxGroup.js +4 -2
  8. package/dist/esm/Dialog.js +3 -3
  9. package/dist/esm/Elevator.js +2 -2
  10. package/dist/esm/Input.js +2 -2
  11. package/dist/esm/Menu.js +2 -2
  12. package/dist/esm/MenuItem.js +2 -2
  13. package/dist/esm/NoticeBar.js +2 -2
  14. package/dist/esm/Price.js +2 -2
  15. package/dist/esm/Radio.js +1 -3
  16. package/dist/esm/RadioGroup.js +4 -2
  17. package/dist/esm/Signature.js +3 -3
  18. package/dist/esm/TabbarItem.js +2 -2
  19. package/dist/esm/Tag.js +2 -2
  20. package/dist/esm/Uploader.js +3 -3
  21. package/dist/esm/{address.taro-f16cef31.js → address.taro-8d642b4a.js} +11 -1
  22. package/dist/esm/{audio.taro-c2f9948a.js → audio.taro-b42a082b.js} +1 -1
  23. package/dist/esm/{button.taro-a9ebb937.js → button.taro-7e924b72.js} +3 -1
  24. package/dist/esm/{card.taro-1bc35ebe.js → card.taro-59f65b66.js} +2 -2
  25. package/dist/esm/checkbox.taro-d8656076.js +249 -0
  26. package/dist/esm/{dialog.taro-492e2b9a.js → dialog.taro-0c35b35f.js} +1 -1
  27. package/dist/esm/{elevator.taro-ead49158.js → elevator.taro-d7d65470.js} +1 -1
  28. package/dist/esm/index.taro-c092d216.js +227 -0
  29. package/dist/esm/{input.taro-39b99dbc.js → input.taro-cc46bbc3.js} +11 -4
  30. package/dist/esm/{menu.taro-f8ca86db.js → menu.taro-4abed328.js} +3 -2
  31. package/dist/esm/{menuitem.taro-7bf564c9.js → menuitem.taro-06a135a5.js} +1 -2
  32. package/dist/esm/{noticebar.taro-77b5a2c9.js → noticebar.taro-4915fed3.js} +12 -16
  33. package/dist/esm/nutui-react.es.js +17 -19
  34. package/dist/esm/{price.taro-97393d8f.js → price.taro-8801462e.js} +28 -22
  35. package/dist/esm/{signature.taro-0b3abea5.js → signature.taro-57f8de06.js} +1 -1
  36. package/dist/esm/{tabbaritem.taro-94cd62c2.js → tabbaritem.taro-fb90f659.js} +6 -5
  37. package/dist/esm/{tag.taro-95d7f5c2.js → tag.taro-84d40117.js} +6 -4
  38. package/dist/esm/types/src/packages/checkbox/checkbox.d.ts +6 -1
  39. package/dist/esm/types/src/packages/checkbox/checkbox.taro.d.ts +6 -1
  40. package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +2 -0
  41. package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -0
  42. package/dist/esm/types/src/packages/checkboxgroup/type.d.ts +6 -0
  43. package/dist/esm/types/src/packages/input/input.d.ts +1 -0
  44. package/dist/esm/types/src/packages/input/input.taro.d.ts +1 -0
  45. package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +91 -0
  46. package/dist/esm/types/src/packages/price/price.d.ts +2 -0
  47. package/dist/esm/types/src/packages/price/price.taro.d.ts +2 -0
  48. package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +2 -0
  49. package/dist/esm/types/src/packages/radiogroup/radiogroup.taro.d.ts +2 -0
  50. package/dist/esm/types/src/packages/radiogroup/type.d.ts +7 -0
  51. package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +1 -1
  52. package/dist/esm/types/src/packages/tabbaritem/tabbaritem.taro.d.ts +1 -1
  53. package/dist/esm/{uploader.taro-63a36a30.js → uploader.taro-a03bb003.js} +1 -1
  54. package/dist/locales/base.js +1 -1
  55. package/dist/locales/en-US.js +1 -1
  56. package/dist/locales/id-ID.js +1 -1
  57. package/dist/locales/zh-CN.js +1 -1
  58. package/dist/locales/zh-TW.js +1 -1
  59. package/dist/nutui.react.es.js +170 -78
  60. package/dist/nutui.react.umd.js +169 -77
  61. package/dist/packages/badge/badge.scss +10 -10
  62. package/dist/packages/button/button.scss +3 -3
  63. package/dist/packages/cell/cell.scss +1 -4
  64. package/dist/packages/cellgroup/cellgroup.scss +8 -0
  65. package/dist/packages/countdown/countdown.scss +1 -1
  66. package/dist/packages/infiniteloading/infiniteloading.scss +1 -1
  67. package/dist/packages/inputnumber/inputnumber.scss +3 -3
  68. package/dist/packages/noticebar/noticebar.scss +3 -0
  69. package/dist/packages/price/price.scss +27 -11
  70. package/dist/packages/radio/radio.scss +8 -7
  71. package/dist/packages/shortpassword/shortpassword.scss +4 -4
  72. package/dist/packages/skeleton/skeleton.scss +1 -1
  73. package/dist/packages/swiper/swiper.scss +4 -4
  74. package/dist/packages/switch/switch.scss +8 -8
  75. package/dist/packages/timepannel/timepannel.scss +3 -3
  76. package/dist/packages/timeselect/timeselect.scss +4 -4
  77. package/dist/style.css +1 -1
  78. package/dist/style.es.js +1 -1
  79. package/dist/styles/variables.scss +573 -248
  80. package/dist/types/index.d.ts +19 -3
  81. package/package.json +1 -1
  82. package/dist/esm/checkbox.taro-104557c1.js +0 -121
  83. package/dist/esm/checkboxgroup.taro-3d380042.js +0 -110
  84. package/dist/esm/radio.taro-95d43860.js +0 -112
  85. package/dist/esm/radiogroup.taro-b5dad516.js +0 -95
@@ -126,6 +126,9 @@
126
126
  .go {
127
127
  align-self: center;
128
128
  display: flex;
129
+ justify-content: center;
130
+ width: $noticebar-right-icon-width;
131
+ margin: $noticebar-righticon-margin;
129
132
  }
130
133
  }
131
134
  }
@@ -2,20 +2,36 @@
2
2
  font-size: $font-size-3;
3
3
  display: inline;
4
4
  color: $primary-color;
5
- &__symbol {
5
+ &__symbol,
6
+ &__integer,
7
+ &__decimal {
6
8
  display: inline-block;
7
- font-size: $font-size-3;
8
9
  }
9
- &__big {
10
- display: inline-block;
11
- font-size: $price-big-size;
10
+ &__symbol {
11
+ font-size: $price-symbol-medium-size;
12
+ &-large {
13
+ font-size: $price-symbol-big-size;
14
+ }
15
+ &-small {
16
+ font-size: $price-symbol-small-size;
17
+ }
12
18
  }
13
- &__point {
14
- display: inline-block;
15
- font-size: $price-big-size;
19
+ &__integer {
20
+ font-size: $price-integer-medium-size;
21
+ &-large {
22
+ font-size: $price-integer-big-size;
23
+ }
24
+ &-small {
25
+ font-size: $price-integer-small-size;
26
+ }
16
27
  }
17
- &__small {
18
- display: inline-block;
19
- font-size: $font-size-4;
28
+ &__decimal {
29
+ font-size: $price-decimal-medium-size;
30
+ &-large {
31
+ font-size: $price-decimal-big-size;
32
+ }
33
+ &-small {
34
+ font-size: $price-decimal-small-size;
35
+ }
20
36
  }
21
37
  }
@@ -29,7 +29,7 @@
29
29
 
30
30
  &--reverse {
31
31
  .nut-radio__label {
32
- margin-right: 15px;
32
+ margin-right: $radio-label-margin-left;
33
33
  margin-left: 0;
34
34
  }
35
35
  }
@@ -37,10 +37,10 @@
37
37
  &__button {
38
38
  display: inline-flex;
39
39
  align-items: center;
40
- padding: 5px 18px;
41
- font-size: 12px;
40
+ padding: $radio-button-padding;
41
+ font-size: $radio-button-font-size;
42
42
  background: #f6f7f9;
43
- border-radius: 15px;
43
+ border-radius: $radio-button-border-radius;
44
44
  color: $radio-label-font-color;
45
45
  box-sizing: border-box;
46
46
  &--active {
@@ -55,8 +55,8 @@
55
55
  }
56
56
 
57
57
  &__label {
58
- margin-left: 15px;
59
- font-size: 14px;
58
+ margin-left: $radio-label-margin-left;
59
+ font-size: $radio-label-font-size;
60
60
  color: $radio-label-font-color;
61
61
  &--disabled {
62
62
  color: $radio-label-disable-color;
@@ -67,11 +67,12 @@
67
67
  color: $radio-label-font-active-color;
68
68
  transition-duration: 0.3s;
69
69
  transition-property: color, border-color, background-color;
70
+ font-size: $radio-icon-font-size;
70
71
  }
71
72
  &__icon--unchecked {
72
73
  color: $radio-icon-disable-color;
73
74
  }
74
75
  &__icon--disable {
75
- color: $help-color;
76
+ color: $radio-icon-disable-color2;
76
77
  }
77
78
  }
@@ -104,9 +104,9 @@
104
104
  height: 41px;
105
105
  margin: 0 auto;
106
106
  box-sizing: border-box;
107
- background: $shortpsd-background-color;
107
+ background: $shortpassword-background-color;
108
108
  border-radius: 4px;
109
- border: 1px solid $shortpsd-border-color;
109
+ border: 1px solid $shortpassword-border-color;
110
110
  display: flex;
111
111
  position: absolute;
112
112
  left: 0;
@@ -137,13 +137,13 @@
137
137
  &__error {
138
138
  line-height: 1;
139
139
  font-size: $font-size-0;
140
- color: $shortpsd-error;
140
+ color: $shortpassword-error;
141
141
  }
142
142
 
143
143
  &__forget {
144
144
  line-height: 1;
145
145
  font-size: $font-size-1;
146
- color: $shortpsd-forget;
146
+ color: $shortpassword-forget;
147
147
  display: flex;
148
148
  align-items: center;
149
149
  }
@@ -31,7 +31,7 @@
31
31
  .skeleton-title {
32
32
  width: 30%;
33
33
  height: 15px;
34
- background: #efefef;
34
+ background: $skeleton-content-line-title-background-color;
35
35
  }
36
36
  }
37
37
  }
@@ -21,10 +21,10 @@
21
21
  bottom: 12px;
22
22
  transform: translateX(-50%);
23
23
  i {
24
- width: 8px;
25
- height: 3px;
26
- margin-right: 7px;
27
- border-radius: 2px;
24
+ width: $swiper-pagination-item-width;
25
+ height: $swiper-pagination-item-height;
26
+ margin-right: $swiper-pagination-item-margin-right;
27
+ border-radius: $swiper-pagination-item-border-radius;
28
28
  &:last-child {
29
29
  margin-right: 0;
30
30
  }
@@ -3,7 +3,7 @@
3
3
  display: flex;
4
4
  align-items: center;
5
5
  background-color: $primary-color;
6
- border-radius: 21px;
6
+ border-radius: $switch-border-radius;
7
7
  background-size: 100% 100%;
8
8
  background-repeat: no-repeat;
9
9
  background-position: center center;
@@ -37,17 +37,17 @@
37
37
  opacity: 0.6;
38
38
  }
39
39
  &-base {
40
- width: 36px;
41
- height: 21px;
42
- line-height: 21px;
40
+ width: $switch-width;
41
+ height: $switch-height;
42
+ line-height: $switch-line-height;
43
43
  .switch-button {
44
- height: 13px;
45
- width: 13px;
46
- transform: translateX(30%);
44
+ height: $switch-inside-height;
45
+ width: $switch-inside-width;
46
+ transform: $switch-inside-close-transform;
47
47
  }
48
48
  &.switch-open {
49
49
  .switch-button {
50
- transform: translateX(146%);
50
+ transform: $switch-inside-open-transform;
51
51
  }
52
52
  }
53
53
  &.switch-close {
@@ -9,9 +9,9 @@
9
9
  }
10
10
  }
11
11
  .nut-timepannel {
12
- height: 40px;
12
+ height: $timeselect-timepannel-height;
13
13
  line-height: 40px;
14
14
  text-align: center;
15
- color: #666;
16
- font-size: 14px;
15
+ color: $timeselect-timepannel-text-color;
16
+ font-size: $timeselect-timepannel-font-size;
17
17
  }
@@ -23,11 +23,11 @@
23
23
  height: 100%;
24
24
 
25
25
  &__title {
26
- height: 50px;
27
- line-height: 50px;
26
+ height: $timeselect-title-height;
27
+ line-height: $timeselect-title-line-height;
28
28
  margin-bottom: 10px;
29
- font-size: 14px;
30
- color: #1a1a1a;
29
+ font-size: $timeselect-title-font-size;
30
+ color: $timeselect-title-color;
31
31
  text-align: center;
32
32
  }
33
33