@nutui/nutui-react 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 (38) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/esm/Audio.js +5 -5
  3. package/dist/esm/Elevator.js +6 -5
  4. package/dist/esm/Image.js +2 -5
  5. package/dist/esm/ImagePreview.js +9 -9
  6. package/dist/esm/Indicator.js +4 -4
  7. package/dist/esm/Notify.js +35 -46
  8. package/dist/esm/NumberKeyboard.js +137 -195
  9. package/dist/esm/Price.js +22 -23
  10. package/dist/esm/PullToRefresh.js +8 -8
  11. package/dist/esm/Radio.js +2 -0
  12. package/dist/esm/RadioGroup.js +31 -51
  13. package/dist/esm/Swiper.js +100 -111
  14. package/dist/esm/SwiperItem.js +1 -1
  15. package/dist/esm/radio2.js +52 -54
  16. package/dist/locales/base.js +1 -1
  17. package/dist/locales/en-US.js +1 -1
  18. package/dist/locales/id-ID.js +1 -1
  19. package/dist/locales/zh-CN.js +1 -1
  20. package/dist/locales/zh-TW.js +1 -1
  21. package/dist/locales/zh-UG.js +1 -1
  22. package/dist/nutui.react.mjs +718 -742
  23. package/dist/nutui.react.umd.js +717 -741
  24. package/dist/packages/imagepreview/imagepreview.scss +5 -0
  25. package/dist/packages/notify/notify.scss +1 -1
  26. package/dist/packages/numberkeyboard/numberkeyboard.scss +29 -77
  27. package/dist/packages/price/price.scss +8 -0
  28. package/dist/packages/pulltorefresh/pulltorefresh.scss +0 -8
  29. package/dist/packages/radio/radio.scss +13 -32
  30. package/dist/packages/radiogroup/radiogroup.scss +17 -51
  31. package/dist/packages/swiper/swiper.scss +0 -15
  32. package/dist/style.css +1 -1
  33. package/dist/style.mjs +1 -1
  34. package/dist/styles/variables-jmapp.scss +50 -44
  35. package/dist/styles/variables.scss +50 -46
  36. package/dist/types/index.d.ts +64 -80
  37. package/package.json +1 -1
  38. /package/dist/esm/{UserContext3.js → context2.js} +0 -0
@@ -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
  }