@nutui/nutui-react-taro 2.0.0-alpha.8 → 2.0.0-alpha.9

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 (69) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/esm/Address.js +2 -2
  3. package/dist/esm/Card.js +5 -5
  4. package/dist/esm/DatePicker.js +2 -3
  5. package/dist/esm/Elevator.js +1 -1
  6. package/dist/esm/ImagePreview.js +4 -7
  7. package/dist/esm/Indicator.js +1 -1
  8. package/dist/esm/InputNumber.js +1 -1
  9. package/dist/esm/Notify.js +2 -3
  10. package/dist/esm/NumberKeyboard.js +3 -5
  11. package/dist/esm/Picker.js +1 -2
  12. package/dist/esm/Price.js +2 -3
  13. package/dist/esm/PullToRefresh.js +4 -6
  14. package/dist/esm/Radio.js +3 -3
  15. package/dist/esm/RadioGroup.js +3 -3
  16. package/dist/esm/Step.js +1 -1
  17. package/dist/esm/Steps.js +1 -1
  18. package/dist/esm/Sticky.js +1 -2
  19. package/dist/esm/Swiper.js +3 -5
  20. package/dist/esm/SwiperItem.js +1 -5
  21. package/dist/esm/{address.taro-1c534feb.js → address.taro-1a8ab3f1.js} +1 -1
  22. package/dist/esm/{card.taro-a46fdf25.js → card.taro-2080f4d2.js} +1 -1
  23. package/dist/esm/{datepicker.taro-3f718964.js → datepicker.taro-65dbeceb.js} +1 -1
  24. package/dist/esm/{elevator.taro-bc162e4f.js → elevator.taro-df8fde9d.js} +20 -15
  25. package/dist/esm/{imagepreview.taro-8832dc01.js → imagepreview.taro-2508d412.js} +8 -5
  26. package/dist/esm/{indicator.taro-f2bd212f.js → indicator.taro-edbc71df.js} +3 -3
  27. package/dist/esm/{inputnumber.taro-877dc947.js → inputnumber.taro-6657d2c1.js} +1 -1
  28. package/dist/esm/{notify.taro-6b6eb6bf.js → notify.taro-5768403d.js} +11 -18
  29. package/dist/esm/numberkeyboard.taro-ad8afaf9.js +136 -0
  30. package/dist/esm/nutui-react.es.js +16 -21
  31. package/dist/esm/{picker.taro-a5603921.js → picker.taro-0570ec32.js} +14 -1
  32. package/dist/esm/{price.taro-c4f45310.js → price.taro-479f1b82.js} +17 -17
  33. package/dist/esm/pulltorefresh.taro-6afe4805.js +138 -0
  34. package/dist/esm/radio.taro-5d6ca4ad.js +153 -0
  35. package/dist/esm/step.taro-3bc01c0c.js +1 -1
  36. package/dist/esm/steps.taro-77e301ab.js +1 -1
  37. package/dist/esm/{sticky.taro-3c03eb0a.js → sticky.taro-f8ae8d5e.js} +21 -1
  38. package/dist/esm/swiper.taro-53a36427.js +83 -0
  39. package/dist/esm/swiperitem.taro-ef7342e8.js +14 -0
  40. package/dist/locales/base.js +1 -1
  41. package/dist/locales/en-US.js +1 -1
  42. package/dist/locales/id-ID.js +1 -1
  43. package/dist/locales/zh-CN.js +1 -1
  44. package/dist/locales/zh-TW.js +1 -1
  45. package/dist/locales/zh-UG.js +1 -1
  46. package/dist/nutui.react.mjs +1162 -6119
  47. package/dist/nutui.react.umd.js +1546 -6519
  48. package/dist/packages/imagepreview/imagepreview.scss +5 -0
  49. package/dist/packages/notify/notify.scss +1 -1
  50. package/dist/packages/numberkeyboard/numberkeyboard.scss +29 -77
  51. package/dist/packages/price/price.scss +8 -0
  52. package/dist/packages/pulltorefresh/pulltorefresh.scss +0 -8
  53. package/dist/packages/radio/radio.scss +13 -32
  54. package/dist/packages/radiogroup/radiogroup.scss +17 -51
  55. package/dist/packages/swiper/swiper.scss +0 -15
  56. package/dist/style.css +1 -1
  57. package/dist/style.mjs +1 -1
  58. package/dist/styles/variables-jmapp.scss +50 -44
  59. package/dist/styles/variables.scss +50 -46
  60. package/dist/types/index.d.ts +63 -92
  61. package/package.json +1 -1
  62. package/dist/esm/UserContext-735db09f.js +0 -5
  63. package/dist/esm/get-scroll-parent-8da04f2e.js +0 -24
  64. package/dist/esm/numberkeyboard.taro-0a0e866a.js +0 -183
  65. package/dist/esm/pulltorefresh.taro-c611fd92.js +0 -179
  66. package/dist/esm/radio.taro-3a54f4c8.js +0 -152
  67. package/dist/esm/supports-passive-aaaf0eff.js +0 -17
  68. package/dist/esm/swiper.taro-74cf9306.js +0 -430
  69. package/dist/esm/swiperitem-80df464a.js +0 -29
@@ -46,6 +46,11 @@
46
46
  display: flex;
47
47
  align-items: center;
48
48
  }
49
+ .nut-imagepreview-swiper {
50
+ swiper {
51
+ width: 100%;
52
+ }
53
+ }
49
54
  .nut-imagepreview-swiper .nut-swiper-item {
50
55
  height: 327px;
51
56
  }
@@ -50,7 +50,7 @@
50
50
  text-align: center;
51
51
  word-wrap: break-word;
52
52
  height: $notify-height;
53
-
53
+ line-height: $notify-line-height;
54
54
  &--popup-top {
55
55
  position: fixed;
56
56
  top: 0;
@@ -1,39 +1,4 @@
1
1
 
2
- .nut-theme-dark {
3
- .nut-numberkeyboard {
4
- background-color: $dark5;
5
-
6
- &__body {
7
- background-color: $dark5;
8
- color: $dark1;
9
-
10
- .nut-numberkeyboard__body__keys,
11
- .nut-numberkeyboard__sidebar {
12
- .key-board-wrapper {
13
- background-color: $dark5;
14
-
15
- .key {
16
- background-color: $dark4;
17
- color: $dark1;
18
- }
19
- }
20
- }
21
- }
22
-
23
- .nut-numberkeyboard__header {
24
- .nut-numberkeyboard__header__tit {
25
- color: $dark1;
26
- }
27
- }
28
-
29
- &__header {
30
- &__close {
31
- color: $dark1 !important;
32
- }
33
- }
34
- }
35
- }
36
-
37
2
  .nut-numberkeyboard {
38
3
  width: $numberkeyboard-width;
39
4
  padding: $numberkeyboard-padding;
@@ -41,7 +6,7 @@
41
6
  user-select: none;
42
7
  background-color: $gray4;
43
8
 
44
- .nut-numberkeyboard__header {
9
+ &__header {
45
10
  position: relative;
46
11
  display: flex;
47
12
  align-items: center;
@@ -52,12 +17,12 @@
52
17
  color: $numberkeyboard-header-color;
53
18
  font-size: $numberkeyboard-header-font-size;
54
19
 
55
- .nut-numberkeyboard__header__tit {
20
+ &__title {
56
21
  color: $title-color;
57
22
  display: inline-block;
58
23
  }
59
24
 
60
- .nut-numberkeyboard__header__close {
25
+ &__close {
61
26
  position: absolute;
62
27
  display: block;
63
28
  right: 0;
@@ -70,17 +35,17 @@
70
35
  }
71
36
  }
72
37
 
73
- .nut-numberkeyboard__body {
38
+ &__body {
74
39
  display: flex;
75
40
  padding: 6px 0 0 6px;
76
41
 
77
- .nut-numberkeyboard__body__keys {
42
+ &__keys {
78
43
  display: flex;
79
44
  flex: 3;
80
45
  flex-wrap: wrap;
81
46
  }
82
47
 
83
- .key-board-wrapper {
48
+ &__wrapper {
84
49
  position: relative;
85
50
  flex: 1;
86
51
  flex-basis: 33%;
@@ -99,47 +64,34 @@
99
64
  color: $numberkeyboard-key-font-color;
100
65
  border-radius: $numberkeyboard-key-border-radius;
101
66
  cursor: pointer;
102
- }
103
-
104
- .active {
105
- background-color: $numberkeyboard-key-active-background-color;
106
- }
107
-
108
- img {
109
- width: 30px;
110
- height: 24px;
67
+ &.active {
68
+ background-color: $numberkeyboard-key-active-background-color;
69
+ }
111
70
  }
112
71
  }
72
+ }
113
73
 
114
- .key-board-wrapper-large {
115
- flex-basis: 66%;
116
- }
117
-
118
- .nut-numberkeyboard__sidebar {
119
- display: flex;
120
- flex: 1;
121
- flex-direction: column;
122
-
123
- .key-board-wrapper {
124
- .key {
125
- position: absolute;
126
- top: 0;
127
- right: 6px;
128
- bottom: 6px;
129
- left: 0;
130
- height: auto;
131
- }
74
+ &__sidebar {
75
+ display: flex;
76
+ flex: 1;
77
+ flex-direction: column;
132
78
 
133
- .finish {
134
- font-size: $numberkeyboard-key-finish-font-size;
135
- color: $numberkeyboard-key-finish-font-color;
136
- background-color: $numberkeyboard-key-finish-background-color;
137
- }
79
+ .nut-numberkeyboard__body__wrapper {
80
+ .key {
81
+ position: absolute;
82
+ top: 0;
83
+ right: 6px;
84
+ bottom: 6px;
85
+ left: 0;
86
+ height: auto;
87
+ }
138
88
 
139
- .activeFinsh {
140
- font-size: $numberkeyboard-key-finish-font-size;
141
- color: $numberkeyboard-key-finish-font-color;
142
- background-color: $numberkeyboard-key-activeFinsh-background-color;
89
+ .confirm {
90
+ font-size: $numberkeyboard-key-confirm-font-size;
91
+ color: $numberkeyboard-key-confirm-font-color;
92
+ background-color: $numberkeyboard-key-confirm-background-color;
93
+ &.active {
94
+ background-color: rgba(255, 0, 0, 0.7);
143
95
  }
144
96
  }
145
97
  }
@@ -2,6 +2,13 @@
2
2
  font-size: $font-size-3;
3
3
  display: inline;
4
4
  color: $primary-color;
5
+ &--line {
6
+ div {
7
+ text-decoration: line-through;
8
+ font-size: $price-line-font-size !important;
9
+ color: $price-line-color !important;
10
+ }
11
+ }
5
12
  &__symbol,
6
13
  &__integer,
7
14
  &__decimal {
@@ -9,6 +16,7 @@
9
16
  }
10
17
  &__symbol {
11
18
  font-size: $price-symbol-medium-size;
19
+ padding-right: $price-symbol-padding-right;
12
20
  &-large {
13
21
  font-size: $price-symbol-big-size;
14
22
  }
@@ -1,11 +1,3 @@
1
- .nut-theme-dark {
2
- .nut-pulltorefresh {
3
- &-head-content {
4
- color: $dark1;
5
- }
6
- }
7
- }
8
-
9
1
  .nut-pulltorefresh {
10
2
  &-head {
11
3
  overflow: hidden;
@@ -1,30 +1,4 @@
1
1
 
2
- .nut-theme-dark {
3
- .nut-radio {
4
- &__label {
5
- color: $dark1;
6
-
7
- &--disabled {
8
- color: $dark2;
9
- }
10
- }
11
-
12
- &__button {
13
- background: $dark4;
14
- color: $dark1;
15
-
16
- &--active {
17
- color: $primary-color;
18
- }
19
-
20
- &--disabled {
21
- color: $dark2;
22
- border: 1px solid $dark2;
23
- }
24
- }
25
- }
26
- }
27
-
28
2
  .nut-radio {
29
3
  display: flex;
30
4
  align-items: center;
@@ -61,9 +35,14 @@
61
35
 
62
36
  &--disabled {
63
37
  color: $radio-label-disable-color;
64
- border: none;
38
+ border: 1px solid $radio-button-background;
65
39
  }
66
40
  }
41
+ .nut-radio__button--active.nut-radio__button--disabled {
42
+ background: $radio-button-disabled-active-background;
43
+ color: $radio-button-disabled-active-color;
44
+ border: 1px solid $radio-button-disabled-active-border-color;
45
+ }
67
46
 
68
47
  &__label {
69
48
  margin-left: $radio-label-margin-left;
@@ -82,11 +61,13 @@
82
61
  font-size: $radio-icon-font-size;
83
62
  }
84
63
 
85
- &__icon--unchecked {
86
- color: $radio-icon-disable-color;
87
- }
64
+ &__icon {
65
+ &--unchecked {
66
+ color: $radio-icon-disable-color;
67
+ }
88
68
 
89
- &__icon--disable {
90
- color: $radio-icon-disable-color2;
69
+ &--disable {
70
+ color: $radio-icon-disable-color2;
71
+ }
91
72
  }
92
73
  }
@@ -1,51 +1,13 @@
1
- .nut-theme-dark {
2
- .nut-radiogroup {
3
- &--vertical {
4
- .nut-radio {
5
- &__label {
6
- margin-right: 5px;
7
- }
8
-
9
- &__button {
10
- background-color: $dark4;
11
- border: 1px solid $dark6;
12
- }
13
-
14
- &__button--active {
15
- border-color: $radio-label-button-border-color;
16
- }
17
- }
18
- }
19
-
20
- &--horizontal {
21
- .nut-radio {
22
- &__label {
23
- margin-right: 5px;
24
- }
25
-
26
- &__button {
27
- background-color: $dark4;
28
- border: 1px solid $dark6;
29
- }
30
-
31
- &__button--active {
32
- border-color: $radio-label-button-border-color;
33
- }
34
- }
35
- }
36
- }
37
- }
38
-
39
1
  .nut-radiogroup {
40
2
  .nut-radio {
41
- margin-bottom: 5px;
3
+ margin: $radiogroup-radio-margin;
42
4
 
43
5
  &__label {
44
- margin-right: 5px;
6
+ margin: $radiogroup-radio-label-margin;
45
7
  }
46
8
 
47
9
  &__button {
48
- background-color: $gray4;
10
+ background-color: $radio-button-background;
49
11
  }
50
12
  }
51
13
 
@@ -56,12 +18,8 @@
56
18
  justify-content: space-between;
57
19
  }
58
20
 
59
- &__label {
60
- margin-right: 5px;
61
- }
62
-
63
21
  &__button {
64
- border: 1px solid $gray6;
22
+ border: 1px solid $radio-button-background;
65
23
  }
66
24
 
67
25
  &__button--active {
@@ -74,13 +32,21 @@
74
32
  &--horizontal {
75
33
  .nut-radio {
76
34
  display: inline-flex;
77
- margin-right: 20px;
78
35
 
79
- &--round {
80
- .nut-radio__label {
81
- margin: 0 6px;
82
- }
36
+ &__button {
37
+ border: 1px solid $gray6;
38
+ }
39
+
40
+ &__button--active {
41
+ border-color: $radio-label-button-border-color;
42
+ background-color: $radio-label-button-background;
83
43
  }
84
44
  }
85
45
  }
46
+
47
+ .nut-radio__button--active.nut-radio__button--disabled {
48
+ background: $radio-button-disabled-active-background;
49
+ color: $radio-button-disabled-active-color;
50
+ border: 1px solid $radio-button-disabled-active-border-color;
51
+ }
86
52
  }
@@ -24,17 +24,6 @@
24
24
  left: 50%;
25
25
  bottom: $swiper-pagination-bottom;
26
26
  transform: translateX(-50%);
27
-
28
- i {
29
- width: $swiper-pagination-item-width;
30
- height: $swiper-pagination-item-height;
31
- margin-right: $swiper-pagination-item-margin-right;
32
- border-radius: $swiper-pagination-item-border-radius;
33
-
34
- &:last-child {
35
- margin-right: 0;
36
- }
37
- }
38
27
  }
39
28
 
40
29
  &__pagination-vertical {
@@ -45,9 +34,5 @@
45
34
  -webkit-box-orient: vertical;
46
35
  -webkit-box-direction: normal;
47
36
  transform: translateY(-50%);
48
-
49
- i {
50
- margin-bottom: 5px;
51
- }
52
37
  }
53
38
  }