@nutui/nutui-react 2.0.0-alpha.7 → 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.
- package/CHANGELOG.md +26 -0
- package/dist/esm/Audio.js +12 -8
- package/dist/esm/Cascader.js +20 -12
- package/dist/esm/Elevator.js +6 -5
- package/dist/esm/Image.js +2 -5
- package/dist/esm/ImagePreview.js +9 -9
- package/dist/esm/Indicator.js +4 -4
- package/dist/esm/Notify.js +35 -46
- package/dist/esm/NumberKeyboard.js +137 -195
- package/dist/esm/Price.js +22 -23
- package/dist/esm/PullToRefresh.js +8 -8
- package/dist/esm/Radio.js +2 -0
- package/dist/esm/RadioGroup.js +31 -51
- package/dist/esm/Range/style/index.js +1 -1
- package/dist/esm/Range.js +119 -174
- package/dist/esm/Swiper.js +100 -111
- package/dist/esm/SwiperItem.js +1 -1
- package/dist/esm/radio2.js +52 -54
- package/dist/esm/tabs2.js +19 -8
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +1306 -1386
- package/dist/nutui.react.umd.js +1305 -1385
- package/dist/packages/imagepreview/imagepreview.scss +5 -0
- package/dist/packages/notify/notify.scss +1 -1
- package/dist/packages/numberkeyboard/numberkeyboard.scss +29 -77
- package/dist/packages/price/price.scss +8 -0
- package/dist/packages/pulltorefresh/pulltorefresh.scss +0 -8
- package/dist/packages/radio/radio.scss +13 -32
- package/dist/packages/radiogroup/radiogroup.scss +17 -51
- package/dist/packages/range/range.scss +24 -49
- package/dist/packages/swiper/swiper.scss +0 -15
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +61 -61
- package/dist/styles/variables.scss +61 -60
- package/dist/types/index.d.ts +84 -106
- package/package.json +1 -1
- /package/dist/esm/{UserContext3.js → context2.js} +0 -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
|
-
|
|
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
|
-
|
|
20
|
+
&__title {
|
|
56
21
|
color: $title-color;
|
|
57
22
|
display: inline-block;
|
|
58
23
|
}
|
|
59
24
|
|
|
60
|
-
|
|
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
|
-
|
|
38
|
+
&__body {
|
|
74
39
|
display: flex;
|
|
75
40
|
padding: 6px 0 0 6px;
|
|
76
41
|
|
|
77
|
-
|
|
42
|
+
&__keys {
|
|
78
43
|
display: flex;
|
|
79
44
|
flex: 3;
|
|
80
45
|
flex-wrap: wrap;
|
|
81
46
|
}
|
|
82
47
|
|
|
83
|
-
|
|
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
|
-
|
|
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
|
-
|
|
115
|
-
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
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,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:
|
|
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
|
|
86
|
-
|
|
87
|
-
|
|
64
|
+
&__icon {
|
|
65
|
+
&--unchecked {
|
|
66
|
+
color: $radio-icon-disable-color;
|
|
67
|
+
}
|
|
88
68
|
|
|
89
|
-
|
|
90
|
-
|
|
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
|
|
3
|
+
margin: $radiogroup-radio-margin;
|
|
42
4
|
|
|
43
5
|
&__label {
|
|
44
|
-
margin
|
|
6
|
+
margin: $radiogroup-radio-label-margin;
|
|
45
7
|
}
|
|
46
8
|
|
|
47
9
|
&__button {
|
|
48
|
-
background-color: $
|
|
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 $
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
}
|
|
@@ -1,34 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
.nut-theme-dark {
|
|
3
|
-
.nut-range-container {
|
|
4
|
-
background: $dark5;
|
|
5
|
-
.min,
|
|
6
|
-
.max {
|
|
7
|
-
color: $dark1;
|
|
8
|
-
}
|
|
9
|
-
.nut-range {
|
|
10
|
-
&-mark-text {
|
|
11
|
-
color: $dark2;
|
|
12
|
-
}
|
|
13
|
-
&-button {
|
|
14
|
-
.number {
|
|
15
|
-
color: $dark1;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
1
|
.nut-range-container {
|
|
23
2
|
display: flex;
|
|
24
3
|
position: relative;
|
|
25
4
|
width: 100%;
|
|
26
|
-
height:
|
|
5
|
+
height: $range-height;
|
|
27
6
|
align-items: center;
|
|
28
7
|
.min,
|
|
29
8
|
.max {
|
|
30
9
|
font-size: $font-size-1;
|
|
31
|
-
color: $range-
|
|
10
|
+
color: $range-font-color;
|
|
32
11
|
user-select: none;
|
|
33
12
|
}
|
|
34
13
|
&-vertical {
|
|
@@ -36,7 +15,7 @@
|
|
|
36
15
|
flex-direction: column;
|
|
37
16
|
padding: 0px 15px;
|
|
38
17
|
.nut-range {
|
|
39
|
-
width:
|
|
18
|
+
width: $range-height;
|
|
40
19
|
height: 100%;
|
|
41
20
|
&-button {
|
|
42
21
|
&-wrapper,
|
|
@@ -60,7 +39,7 @@
|
|
|
60
39
|
transform: translate3d(100%, 0, 0);
|
|
61
40
|
}
|
|
62
41
|
&-vertical {
|
|
63
|
-
margin:
|
|
42
|
+
margin: $range-margin 0px;
|
|
64
43
|
}
|
|
65
44
|
&-mark {
|
|
66
45
|
position: absolute;
|
|
@@ -84,11 +63,6 @@
|
|
|
84
63
|
word-break: keep-all;
|
|
85
64
|
user-select: none;
|
|
86
65
|
transform: translateY(-50%);
|
|
87
|
-
&-active {
|
|
88
|
-
.nut-range-tick {
|
|
89
|
-
background: $range-bar-bg-color;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
66
|
}
|
|
93
67
|
&-tick {
|
|
94
68
|
position: absolute;
|
|
@@ -98,7 +72,11 @@
|
|
|
98
72
|
height: 11px;
|
|
99
73
|
margin-left: -0px;
|
|
100
74
|
border-radius: 50%;
|
|
101
|
-
background
|
|
75
|
+
background: $range-inactive-color;
|
|
76
|
+
|
|
77
|
+
&.active {
|
|
78
|
+
background: $range-active-color;
|
|
79
|
+
}
|
|
102
80
|
}
|
|
103
81
|
}
|
|
104
82
|
}
|
|
@@ -107,8 +85,9 @@
|
|
|
107
85
|
display: block;
|
|
108
86
|
position: relative;
|
|
109
87
|
width: 100%;
|
|
110
|
-
height:
|
|
111
|
-
|
|
88
|
+
height: $range-height;
|
|
89
|
+
margin: 0 $range-margin;
|
|
90
|
+
background-color: $range-inactive-color;
|
|
112
91
|
border-radius: 2px;
|
|
113
92
|
cursor: pointer;
|
|
114
93
|
&::before {
|
|
@@ -125,19 +104,19 @@
|
|
|
125
104
|
position: relative;
|
|
126
105
|
width: 100%;
|
|
127
106
|
height: 100%;
|
|
128
|
-
background: $range-
|
|
107
|
+
background: $range-active-color;
|
|
129
108
|
border-radius: inherit;
|
|
130
109
|
transition: all 0.2s;
|
|
131
110
|
}
|
|
132
111
|
|
|
133
112
|
&-button {
|
|
134
113
|
display: block;
|
|
135
|
-
width: $range-
|
|
136
|
-
height: $range-
|
|
137
|
-
background
|
|
114
|
+
width: $range-button-width;
|
|
115
|
+
height: $range-button-height;
|
|
116
|
+
background: $range-button-background;
|
|
138
117
|
border-radius: 50%;
|
|
139
118
|
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.15);
|
|
140
|
-
border: $range-
|
|
119
|
+
border: $range-button-border;
|
|
141
120
|
outline: none;
|
|
142
121
|
|
|
143
122
|
&-wrapper,
|
|
@@ -169,7 +148,7 @@
|
|
|
169
148
|
justify-content: center;
|
|
170
149
|
user-select: none;
|
|
171
150
|
font-size: $font-size-1;
|
|
172
|
-
color: $range-
|
|
151
|
+
color: $range-font-color;
|
|
173
152
|
transform: translate3d(0, -100%, 0);
|
|
174
153
|
}
|
|
175
154
|
}
|
|
@@ -183,9 +162,6 @@
|
|
|
183
162
|
cursor: not-allowed;
|
|
184
163
|
}
|
|
185
164
|
}
|
|
186
|
-
&-show-number {
|
|
187
|
-
margin: 0 15px;
|
|
188
|
-
}
|
|
189
165
|
|
|
190
166
|
&-mark {
|
|
191
167
|
position: absolute;
|
|
@@ -205,20 +181,19 @@
|
|
|
205
181
|
word-break: keep-all;
|
|
206
182
|
user-select: none;
|
|
207
183
|
transform: translateX(-50%);
|
|
208
|
-
&-active {
|
|
209
|
-
.nut-range-tick {
|
|
210
|
-
background: $range-bar-bg-color;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
184
|
}
|
|
185
|
+
|
|
214
186
|
&-tick {
|
|
215
187
|
position: absolute;
|
|
216
188
|
top: -20px;
|
|
217
189
|
width: 11px;
|
|
218
190
|
height: 11px;
|
|
219
|
-
// margin-left: -11px;
|
|
220
191
|
left: 0px;
|
|
221
192
|
border-radius: 50%;
|
|
222
|
-
background
|
|
193
|
+
background: $range-inactive-color;
|
|
194
|
+
|
|
195
|
+
&.active {
|
|
196
|
+
background: $range-active-color;
|
|
197
|
+
}
|
|
223
198
|
}
|
|
224
199
|
}
|
|
@@ -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
|
}
|