@nutui/nutui-react 3.0.11 → 3.0.13-beta.0

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 (148) hide show
  1. package/CHANGELOG.md +19 -7
  2. package/dist/cjs/packages/address/style/address.scss +114 -0
  3. package/dist/cjs/packages/address/style/style.css +103 -0
  4. package/dist/cjs/packages/address/style-jmapp/address.scss +114 -0
  5. package/dist/cjs/packages/address/style-jmapp/style.css +103 -0
  6. package/dist/cjs/packages/address/style-jrkf/address.scss +114 -0
  7. package/dist/cjs/packages/address/style-jrkf/style.css +103 -0
  8. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  9. package/dist/cjs/packages/elevator/style/css.js +0 -2
  10. package/dist/cjs/packages/elevator/style/elevator.scss +116 -95
  11. package/dist/cjs/packages/elevator/style/index.js +0 -2
  12. package/dist/cjs/packages/elevator/style/style.css +98 -83
  13. package/dist/cjs/packages/elevator/style-jmapp/css.js +0 -2
  14. package/dist/cjs/packages/elevator/style-jmapp/elevator.scss +116 -95
  15. package/dist/cjs/packages/elevator/style-jmapp/index.js +0 -2
  16. package/dist/cjs/packages/elevator/style-jmapp/style.css +98 -83
  17. package/dist/cjs/packages/elevator/style-jrkf/css.js +0 -2
  18. package/dist/cjs/packages/elevator/style-jrkf/elevator.scss +116 -95
  19. package/dist/cjs/packages/elevator/style-jrkf/index.js +0 -2
  20. package/dist/cjs/packages/elevator/style-jrkf/style.css +98 -83
  21. package/dist/cjs/packages/input/input.js +3 -0
  22. package/dist/cjs/packages/progress/progress.js +38 -17
  23. package/dist/cjs/packages/progress/style/progress.scss +5 -21
  24. package/dist/cjs/packages/progress/style/style.css +5 -19
  25. package/dist/cjs/packages/progress/style-jmapp/progress.scss +5 -21
  26. package/dist/cjs/packages/progress/style-jmapp/style.css +4 -18
  27. package/dist/cjs/packages/progress/style-jrkf/progress.scss +5 -21
  28. package/dist/cjs/packages/progress/style-jrkf/style.css +4 -18
  29. package/dist/cjs/packages/range/range.js +5 -11
  30. package/dist/cjs/packages/range/style/range.scss +6 -2
  31. package/dist/cjs/packages/range/style/style.css +3 -1
  32. package/dist/cjs/packages/range/style-jmapp/range.scss +6 -2
  33. package/dist/cjs/packages/range/style-jmapp/style.css +3 -1
  34. package/dist/cjs/packages/range/style-jrkf/range.scss +6 -2
  35. package/dist/cjs/packages/range/style-jrkf/style.css +3 -1
  36. package/dist/cjs/packages/range/utils.d.ts +3 -0
  37. package/dist/cjs/packages/range/utils.js +24 -0
  38. package/dist/cjs/packages/searchbar/searchbar.js +162 -87
  39. package/dist/cjs/packages/searchbar/style/searchbar.scss +99 -25
  40. package/dist/cjs/packages/searchbar/style/style.css +102 -38
  41. package/dist/cjs/packages/searchbar/style-jmapp/searchbar.scss +99 -25
  42. package/dist/cjs/packages/searchbar/style-jmapp/style.css +85 -21
  43. package/dist/cjs/packages/searchbar/style-jrkf/searchbar.scss +99 -25
  44. package/dist/cjs/packages/searchbar/style-jrkf/style.css +85 -21
  45. package/dist/cjs/packages/step/step.js +74 -33
  46. package/dist/cjs/packages/step/style/step.scss +104 -195
  47. package/dist/cjs/packages/step/style/style.css +85 -159
  48. package/dist/cjs/packages/step/style-jmapp/step.scss +104 -195
  49. package/dist/cjs/packages/step/style-jmapp/style.css +88 -162
  50. package/dist/cjs/packages/step/style-jrkf/step.scss +104 -195
  51. package/dist/cjs/packages/step/style-jrkf/style.css +88 -162
  52. package/dist/cjs/packages/steps/steps.js +23 -8
  53. package/dist/cjs/packages/steps/style/steps.scss +328 -4
  54. package/dist/cjs/packages/steps/style/style.css +219 -2
  55. package/dist/cjs/packages/steps/style-jmapp/steps.scss +328 -4
  56. package/dist/cjs/packages/steps/style-jmapp/style.css +219 -2
  57. package/dist/cjs/packages/steps/style-jrkf/steps.scss +328 -4
  58. package/dist/cjs/packages/steps/style-jrkf/style.css +219 -2
  59. package/dist/cjs/packages/swiper/swiper.js +52 -43
  60. package/dist/cjs/packages/textarea/textarea.d.ts +2 -2
  61. package/dist/cjs/packages/textarea/textarea.js +25 -8
  62. package/dist/cjs/packages/uploader/uploader.js +20 -9
  63. package/dist/cjs/types/spec/lottie/taro.d.ts +1 -0
  64. package/dist/cjs/types/spec/progress/base.d.ts +6 -0
  65. package/dist/cjs/types/spec/progress/taro.d.ts +4 -0
  66. package/dist/cjs/types/spec/searchbar/base.d.ts +3 -0
  67. package/dist/cjs/types/spec/steps/base.d.ts +11 -2
  68. package/dist/cjs/types/spec/swiper/base.d.ts +4 -0
  69. package/dist/cjs/types/spec/swiper/taro.d.ts +4 -0
  70. package/dist/es/packages/address/style/address.scss +114 -0
  71. package/dist/es/packages/address/style/style.css +103 -0
  72. package/dist/es/packages/address/style-jmapp/address.scss +114 -0
  73. package/dist/es/packages/address/style-jmapp/style.css +103 -0
  74. package/dist/es/packages/address/style-jrkf/address.scss +114 -0
  75. package/dist/es/packages/address/style-jrkf/style.css +103 -0
  76. package/dist/es/packages/configprovider/types.d.ts +1 -1
  77. package/dist/es/packages/elevator/style/css.js +0 -2
  78. package/dist/es/packages/elevator/style/elevator.scss +116 -95
  79. package/dist/es/packages/elevator/style/index.js +0 -2
  80. package/dist/es/packages/elevator/style/style.css +98 -83
  81. package/dist/es/packages/elevator/style-jmapp/css.js +0 -2
  82. package/dist/es/packages/elevator/style-jmapp/elevator.scss +116 -95
  83. package/dist/es/packages/elevator/style-jmapp/index.js +0 -2
  84. package/dist/es/packages/elevator/style-jmapp/style.css +98 -83
  85. package/dist/es/packages/elevator/style-jrkf/css.js +0 -2
  86. package/dist/es/packages/elevator/style-jrkf/elevator.scss +116 -95
  87. package/dist/es/packages/elevator/style-jrkf/index.js +0 -2
  88. package/dist/es/packages/elevator/style-jrkf/style.css +98 -83
  89. package/dist/es/packages/input/input.js +3 -0
  90. package/dist/es/packages/progress/progress.js +38 -17
  91. package/dist/es/packages/progress/style/progress.scss +5 -21
  92. package/dist/es/packages/progress/style/style.css +5 -19
  93. package/dist/es/packages/progress/style-jmapp/progress.scss +5 -21
  94. package/dist/es/packages/progress/style-jmapp/style.css +4 -18
  95. package/dist/es/packages/progress/style-jrkf/progress.scss +5 -21
  96. package/dist/es/packages/progress/style-jrkf/style.css +4 -18
  97. package/dist/es/packages/range/range.js +5 -11
  98. package/dist/es/packages/range/style/range.scss +6 -2
  99. package/dist/es/packages/range/style/style.css +3 -1
  100. package/dist/es/packages/range/style-jmapp/range.scss +6 -2
  101. package/dist/es/packages/range/style-jmapp/style.css +3 -1
  102. package/dist/es/packages/range/style-jrkf/range.scss +6 -2
  103. package/dist/es/packages/range/style-jrkf/style.css +3 -1
  104. package/dist/es/packages/range/utils.d.ts +3 -0
  105. package/dist/es/packages/range/utils.js +6 -0
  106. package/dist/es/packages/searchbar/searchbar.js +163 -89
  107. package/dist/es/packages/searchbar/style/searchbar.scss +99 -25
  108. package/dist/es/packages/searchbar/style/style.css +102 -38
  109. package/dist/es/packages/searchbar/style-jmapp/searchbar.scss +99 -25
  110. package/dist/es/packages/searchbar/style-jmapp/style.css +85 -21
  111. package/dist/es/packages/searchbar/style-jrkf/searchbar.scss +99 -25
  112. package/dist/es/packages/searchbar/style-jrkf/style.css +85 -21
  113. package/dist/es/packages/step/step.js +75 -34
  114. package/dist/es/packages/step/style/step.scss +104 -195
  115. package/dist/es/packages/step/style/style.css +85 -159
  116. package/dist/es/packages/step/style-jmapp/step.scss +104 -195
  117. package/dist/es/packages/step/style-jmapp/style.css +88 -162
  118. package/dist/es/packages/step/style-jrkf/step.scss +104 -195
  119. package/dist/es/packages/step/style-jrkf/style.css +88 -162
  120. package/dist/es/packages/steps/steps.js +23 -8
  121. package/dist/es/packages/steps/style/steps.scss +328 -4
  122. package/dist/es/packages/steps/style/style.css +219 -2
  123. package/dist/es/packages/steps/style-jmapp/steps.scss +328 -4
  124. package/dist/es/packages/steps/style-jmapp/style.css +219 -2
  125. package/dist/es/packages/steps/style-jrkf/steps.scss +328 -4
  126. package/dist/es/packages/steps/style-jrkf/style.css +219 -2
  127. package/dist/es/packages/swiper/swiper.js +53 -44
  128. package/dist/es/packages/textarea/textarea.d.ts +2 -2
  129. package/dist/es/packages/textarea/textarea.js +26 -9
  130. package/dist/es/packages/uploader/uploader.js +20 -9
  131. package/dist/es/types/spec/lottie/taro.d.ts +1 -0
  132. package/dist/es/types/spec/progress/base.d.ts +24 -0
  133. package/dist/es/types/spec/progress/taro.d.ts +4 -0
  134. package/dist/es/types/spec/searchbar/base.d.ts +10 -1
  135. package/dist/es/types/spec/steps/base.d.ts +26 -5
  136. package/dist/es/types/spec/swiper/base.d.ts +5 -1
  137. package/dist/es/types/spec/swiper/taro.d.ts +4 -0
  138. package/dist/nutui.react.umd.js +399 -223
  139. package/dist/style-jmapp.css +1 -1
  140. package/dist/style-jmapp.scss +44 -44
  141. package/dist/style-jrkf.css +1 -1
  142. package/dist/style-jrkf.scss +37 -37
  143. package/dist/style.css +1 -1
  144. package/dist/style.scss +37 -37
  145. package/dist/styles/variables-jmapp.scss +133 -79
  146. package/dist/styles/variables-jrkf.scss +134 -80
  147. package/dist/styles/variables.scss +148 -89
  148. package/package.json +1 -1
@@ -44,6 +44,120 @@
44
44
  }
45
45
  }
46
46
 
47
+ .nut-address {
48
+ &-title {
49
+ font-size: 14px;
50
+ font-weight: 500;
51
+ padding: 16px 16px 12px 16px;
52
+ }
53
+ &-hotlist {
54
+ padding: 0 16px;
55
+ display: flex;
56
+ flex-wrap: wrap;
57
+ align-items: flex-start;
58
+ &-item {
59
+ display: flex;
60
+ justify-content: center;
61
+ align-items: center;
62
+ width: 63px;
63
+ height: 28px;
64
+ font-size: 12px;
65
+ border-radius: 4px;
66
+ margin-bottom: 7px;
67
+ /* #ifdef harmony*/
68
+ margin-right: 6px;
69
+ /* #endif */
70
+ /* #ifndef harmony*/
71
+ margin-right: 7px;
72
+ /* #endif */
73
+ background-color: $color-background-sunken;
74
+ color: $color-title;
75
+ &:nth-child(5n) {
76
+ margin-right: 0;
77
+ }
78
+ }
79
+
80
+ &.hotlist-more {
81
+ .nut-address-hotlist-item {
82
+ width: auto;
83
+ padding: 0 16px;
84
+ margin-right: 7px;
85
+ }
86
+ }
87
+ }
88
+
89
+ &-selected {
90
+ width: 100%;
91
+ height: 60px;
92
+ padding: 0 16px;
93
+ display: flex;
94
+ align-items: center;
95
+ border-bottom: 1px solid $color-border;
96
+ &-item {
97
+ font-size: 12px;
98
+ display: inline-block;
99
+ height: 28px;
100
+ line-height: 28px;
101
+ padding: 0 12px;
102
+ border-radius: 4px;
103
+ background-color: $color-background-sunken;
104
+
105
+ &.active {
106
+ border: 1px solid $color-primary;
107
+ background-color: $color-primary-light-pressed;
108
+ color: $color-primary;
109
+ }
110
+ }
111
+ &-border {
112
+ margin: 0 2px;
113
+ color: $color-text-disabled;
114
+ }
115
+ }
116
+
117
+ &-elevator {
118
+ margin-top: 0;
119
+ .nut-elevator-list {
120
+ &-item {
121
+ position: relative;
122
+ padding-left: 20px;
123
+ }
124
+ &-item-code {
125
+ display: inline;
126
+ position: absolute;
127
+ left: 0;
128
+ top: 0;
129
+ height: 30px;
130
+ line-height: 30px;
131
+ border-bottom: 0;
132
+ color: $color-text-help;
133
+ font-weight: 500;
134
+ }
135
+ }
136
+ .nut-elevator-bars {
137
+ top: 40%;
138
+ padding: 0;
139
+ background: none;
140
+
141
+ &-inner-item {
142
+ display: flex;
143
+ justify-content: center;
144
+ align-items: center;
145
+ width: 16px;
146
+ height: 16px;
147
+ font-size: 10px;
148
+ border-radius: 16px;
149
+ margin-bottom: 2px;
150
+ color: $color-text-help;
151
+ &-active {
152
+ background-color: $color-primary;
153
+ color: $color-background-overlay;
154
+ font-weight: 400;
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+
47
161
  [dir='rtl'] .nut-address,
48
162
  .nut-rtl .nut-address {
49
163
  &-exist {
@@ -41,6 +41,109 @@
41
41
  color: #ffffff;
42
42
  }
43
43
 
44
+ .nut-address-title {
45
+ font-size: 14px;
46
+ font-weight: 500;
47
+ padding: 16px 16px 12px 16px;
48
+ }
49
+ .nut-address-hotlist {
50
+ padding: 0 16px;
51
+ display: flex;
52
+ flex-wrap: wrap;
53
+ align-items: flex-start;
54
+ }
55
+ .nut-address-hotlist-item {
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ width: 63px;
60
+ height: 28px;
61
+ font-size: 12px;
62
+ border-radius: 4px;
63
+ margin-bottom: 7px;
64
+ /* #ifdef harmony*/
65
+ margin-right: 6px;
66
+ /* #endif */
67
+ /* #ifndef harmony*/
68
+ margin-right: 7px;
69
+ /* #endif */
70
+ background-color: var(--nutui-color-background-sunken, #f7f8fc);
71
+ color: var(--nutui-color-title, #1a1a1a);
72
+ }
73
+ .nut-address-hotlist-item:nth-child(5n) {
74
+ margin-right: 0;
75
+ }
76
+ .nut-address-hotlist.hotlist-more .nut-address-hotlist-item {
77
+ width: auto;
78
+ padding: 0 16px;
79
+ margin-right: 7px;
80
+ }
81
+ .nut-address-selected {
82
+ width: 100%;
83
+ height: 60px;
84
+ padding: 0 16px;
85
+ display: flex;
86
+ align-items: center;
87
+ border-bottom: 1px solid var(--nutui-color-border, rgba(0, 0, 0, 0.06));
88
+ }
89
+ .nut-address-selected-item {
90
+ font-size: 12px;
91
+ display: inline-block;
92
+ height: 28px;
93
+ line-height: 28px;
94
+ padding: 0 12px;
95
+ border-radius: 4px;
96
+ background-color: var(--nutui-color-background-sunken, #f7f8fc);
97
+ }
98
+ .nut-address-selected-item.active {
99
+ border: 1px solid var(--nutui-color-primary, #ff0f23);
100
+ background-color: var(--nutui-color-primary-light-pressed, #ffebf1);
101
+ color: var(--nutui-color-primary, #ff0f23);
102
+ }
103
+ .nut-address-selected-border {
104
+ margin: 0 2px;
105
+ color: var(--nutui-color-text-disabled, #c2c4cc);
106
+ }
107
+ .nut-address-elevator {
108
+ margin-top: 0;
109
+ }
110
+ .nut-address-elevator .nut-elevator-list-item {
111
+ position: relative;
112
+ padding-left: 20px;
113
+ }
114
+ .nut-address-elevator .nut-elevator-list-item-code {
115
+ display: inline;
116
+ position: absolute;
117
+ left: 0;
118
+ top: 0;
119
+ height: 30px;
120
+ line-height: 30px;
121
+ border-bottom: 0;
122
+ color: var(--nutui-color-text-help, #888b94);
123
+ font-weight: 500;
124
+ }
125
+ .nut-address-elevator .nut-elevator-bars {
126
+ top: 40%;
127
+ padding: 0;
128
+ background: none;
129
+ }
130
+ .nut-address-elevator .nut-elevator-bars-inner-item {
131
+ display: flex;
132
+ justify-content: center;
133
+ align-items: center;
134
+ width: 16px;
135
+ height: 16px;
136
+ font-size: 10px;
137
+ border-radius: 16px;
138
+ margin-bottom: 2px;
139
+ color: var(--nutui-color-text-help, #888b94);
140
+ }
141
+ .nut-address-elevator .nut-elevator-bars-inner-item-active {
142
+ background-color: var(--nutui-color-primary, #ff0f23);
143
+ color: var(--nutui-color-background-overlay, #ffffff);
144
+ font-weight: 400;
145
+ }
146
+
44
147
  [dir=rtl] .nut-address-exist-item-info,
45
148
  .nut-rtl .nut-address-exist-item-info {
46
149
  margin-left: 0;
@@ -44,6 +44,120 @@
44
44
  }
45
45
  }
46
46
 
47
+ .nut-address {
48
+ &-title {
49
+ font-size: 14px;
50
+ font-weight: 500;
51
+ padding: 16px 16px 12px 16px;
52
+ }
53
+ &-hotlist {
54
+ padding: 0 16px;
55
+ display: flex;
56
+ flex-wrap: wrap;
57
+ align-items: flex-start;
58
+ &-item {
59
+ display: flex;
60
+ justify-content: center;
61
+ align-items: center;
62
+ width: 63px;
63
+ height: 28px;
64
+ font-size: 12px;
65
+ border-radius: 4px;
66
+ margin-bottom: 7px;
67
+ /* #ifdef harmony*/
68
+ margin-right: 6px;
69
+ /* #endif */
70
+ /* #ifndef harmony*/
71
+ margin-right: 7px;
72
+ /* #endif */
73
+ background-color: $color-background-sunken;
74
+ color: $color-title;
75
+ &:nth-child(5n) {
76
+ margin-right: 0;
77
+ }
78
+ }
79
+
80
+ &.hotlist-more {
81
+ .nut-address-hotlist-item {
82
+ width: auto;
83
+ padding: 0 16px;
84
+ margin-right: 7px;
85
+ }
86
+ }
87
+ }
88
+
89
+ &-selected {
90
+ width: 100%;
91
+ height: 60px;
92
+ padding: 0 16px;
93
+ display: flex;
94
+ align-items: center;
95
+ border-bottom: 1px solid $color-border;
96
+ &-item {
97
+ font-size: 12px;
98
+ display: inline-block;
99
+ height: 28px;
100
+ line-height: 28px;
101
+ padding: 0 12px;
102
+ border-radius: 4px;
103
+ background-color: $color-background-sunken;
104
+
105
+ &.active {
106
+ border: 1px solid $color-primary;
107
+ background-color: $color-primary-light-pressed;
108
+ color: $color-primary;
109
+ }
110
+ }
111
+ &-border {
112
+ margin: 0 2px;
113
+ color: $color-text-disabled;
114
+ }
115
+ }
116
+
117
+ &-elevator {
118
+ margin-top: 0;
119
+ .nut-elevator-list {
120
+ &-item {
121
+ position: relative;
122
+ padding-left: 20px;
123
+ }
124
+ &-item-code {
125
+ display: inline;
126
+ position: absolute;
127
+ left: 0;
128
+ top: 0;
129
+ height: 30px;
130
+ line-height: 30px;
131
+ border-bottom: 0;
132
+ color: $color-text-help;
133
+ font-weight: 500;
134
+ }
135
+ }
136
+ .nut-elevator-bars {
137
+ top: 40%;
138
+ padding: 0;
139
+ background: none;
140
+
141
+ &-inner-item {
142
+ display: flex;
143
+ justify-content: center;
144
+ align-items: center;
145
+ width: 16px;
146
+ height: 16px;
147
+ font-size: 10px;
148
+ border-radius: 16px;
149
+ margin-bottom: 2px;
150
+ color: $color-text-help;
151
+ &-active {
152
+ background-color: $color-primary;
153
+ color: $color-background-overlay;
154
+ font-weight: 400;
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+
47
161
  [dir='rtl'] .nut-address,
48
162
  .nut-rtl .nut-address {
49
163
  &-exist {
@@ -41,6 +41,109 @@
41
41
  color: var(--nutui-color-text-dark);
42
42
  }
43
43
 
44
+ .nut-address-title {
45
+ font-size: 14px;
46
+ font-weight: 500;
47
+ padding: 16px 16px 12px 16px;
48
+ }
49
+ .nut-address-hotlist {
50
+ padding: 0 16px;
51
+ display: flex;
52
+ flex-wrap: wrap;
53
+ align-items: flex-start;
54
+ }
55
+ .nut-address-hotlist-item {
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ width: 63px;
60
+ height: 28px;
61
+ font-size: 12px;
62
+ border-radius: 4px;
63
+ margin-bottom: 7px;
64
+ /* #ifdef harmony*/
65
+ margin-right: 6px;
66
+ /* #endif */
67
+ /* #ifndef harmony*/
68
+ margin-right: 7px;
69
+ /* #endif */
70
+ background-color: var(--nutui-gray-2, #f8f8f8);
71
+ color: var(--nutui-color-title);
72
+ }
73
+ .nut-address-hotlist-item:nth-child(5n) {
74
+ margin-right: 0;
75
+ }
76
+ .nut-address-hotlist.hotlist-more .nut-address-hotlist-item {
77
+ width: auto;
78
+ padding: 0 16px;
79
+ margin-right: 7px;
80
+ }
81
+ .nut-address-selected {
82
+ width: 100%;
83
+ height: 60px;
84
+ padding: 0 16px;
85
+ display: flex;
86
+ align-items: center;
87
+ border-bottom: 1px solid var(--nutui-color-border);
88
+ }
89
+ .nut-address-selected-item {
90
+ font-size: 12px;
91
+ display: inline-block;
92
+ height: 28px;
93
+ line-height: 28px;
94
+ padding: 0 12px;
95
+ border-radius: 4px;
96
+ background-color: var(--nutui-gray-2, #f8f8f8);
97
+ }
98
+ .nut-address-selected-item.active {
99
+ border: 1px solid var(--nutui-color-primary);
100
+ background-color: var(--nutui-color-primary-light-pressed);
101
+ color: var(--nutui-color-primary);
102
+ }
103
+ .nut-address-selected-border {
104
+ margin: 0 2px;
105
+ color: var(--nutui-color-text-disabled);
106
+ }
107
+ .nut-address-elevator {
108
+ margin-top: 0;
109
+ }
110
+ .nut-address-elevator .nut-elevator-list-item {
111
+ position: relative;
112
+ padding-left: 20px;
113
+ }
114
+ .nut-address-elevator .nut-elevator-list-item-code {
115
+ display: inline;
116
+ position: absolute;
117
+ left: 0;
118
+ top: 0;
119
+ height: 30px;
120
+ line-height: 30px;
121
+ border-bottom: 0;
122
+ color: var(--nutui-color-text-help);
123
+ font-weight: 500;
124
+ }
125
+ .nut-address-elevator .nut-elevator-bars {
126
+ top: 40%;
127
+ padding: 0;
128
+ background: none;
129
+ }
130
+ .nut-address-elevator .nut-elevator-bars-inner-item {
131
+ display: flex;
132
+ justify-content: center;
133
+ align-items: center;
134
+ width: 16px;
135
+ height: 16px;
136
+ font-size: 10px;
137
+ border-radius: 16px;
138
+ margin-bottom: 2px;
139
+ color: var(--nutui-color-text-help);
140
+ }
141
+ .nut-address-elevator .nut-elevator-bars-inner-item-active {
142
+ background-color: var(--nutui-color-primary);
143
+ color: var(--nutui-color-surface-2);
144
+ font-weight: 400;
145
+ }
146
+
44
147
  [dir=rtl] .nut-address-exist-item-info,
45
148
  .nut-rtl .nut-address-exist-item-info {
46
149
  margin-left: 0;
@@ -44,6 +44,120 @@
44
44
  }
45
45
  }
46
46
 
47
+ .nut-address {
48
+ &-title {
49
+ font-size: 14px;
50
+ font-weight: 500;
51
+ padding: 16px 16px 12px 16px;
52
+ }
53
+ &-hotlist {
54
+ padding: 0 16px;
55
+ display: flex;
56
+ flex-wrap: wrap;
57
+ align-items: flex-start;
58
+ &-item {
59
+ display: flex;
60
+ justify-content: center;
61
+ align-items: center;
62
+ width: 63px;
63
+ height: 28px;
64
+ font-size: 12px;
65
+ border-radius: 4px;
66
+ margin-bottom: 7px;
67
+ /* #ifdef harmony*/
68
+ margin-right: 6px;
69
+ /* #endif */
70
+ /* #ifndef harmony*/
71
+ margin-right: 7px;
72
+ /* #endif */
73
+ background-color: $color-background-sunken;
74
+ color: $color-title;
75
+ &:nth-child(5n) {
76
+ margin-right: 0;
77
+ }
78
+ }
79
+
80
+ &.hotlist-more {
81
+ .nut-address-hotlist-item {
82
+ width: auto;
83
+ padding: 0 16px;
84
+ margin-right: 7px;
85
+ }
86
+ }
87
+ }
88
+
89
+ &-selected {
90
+ width: 100%;
91
+ height: 60px;
92
+ padding: 0 16px;
93
+ display: flex;
94
+ align-items: center;
95
+ border-bottom: 1px solid $color-border;
96
+ &-item {
97
+ font-size: 12px;
98
+ display: inline-block;
99
+ height: 28px;
100
+ line-height: 28px;
101
+ padding: 0 12px;
102
+ border-radius: 4px;
103
+ background-color: $color-background-sunken;
104
+
105
+ &.active {
106
+ border: 1px solid $color-primary;
107
+ background-color: $color-primary-light-pressed;
108
+ color: $color-primary;
109
+ }
110
+ }
111
+ &-border {
112
+ margin: 0 2px;
113
+ color: $color-text-disabled;
114
+ }
115
+ }
116
+
117
+ &-elevator {
118
+ margin-top: 0;
119
+ .nut-elevator-list {
120
+ &-item {
121
+ position: relative;
122
+ padding-left: 20px;
123
+ }
124
+ &-item-code {
125
+ display: inline;
126
+ position: absolute;
127
+ left: 0;
128
+ top: 0;
129
+ height: 30px;
130
+ line-height: 30px;
131
+ border-bottom: 0;
132
+ color: $color-text-help;
133
+ font-weight: 500;
134
+ }
135
+ }
136
+ .nut-elevator-bars {
137
+ top: 40%;
138
+ padding: 0;
139
+ background: none;
140
+
141
+ &-inner-item {
142
+ display: flex;
143
+ justify-content: center;
144
+ align-items: center;
145
+ width: 16px;
146
+ height: 16px;
147
+ font-size: 10px;
148
+ border-radius: 16px;
149
+ margin-bottom: 2px;
150
+ color: $color-text-help;
151
+ &-active {
152
+ background-color: $color-primary;
153
+ color: $color-background-overlay;
154
+ font-weight: 400;
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+
47
161
  [dir='rtl'] .nut-address,
48
162
  .nut-rtl .nut-address {
49
163
  &-exist {
@@ -41,6 +41,109 @@
41
41
  color: var(--nutui-color-text-dark);
42
42
  }
43
43
 
44
+ .nut-address-title {
45
+ font-size: 14px;
46
+ font-weight: 500;
47
+ padding: 16px 16px 12px 16px;
48
+ }
49
+ .nut-address-hotlist {
50
+ padding: 0 16px;
51
+ display: flex;
52
+ flex-wrap: wrap;
53
+ align-items: flex-start;
54
+ }
55
+ .nut-address-hotlist-item {
56
+ display: flex;
57
+ justify-content: center;
58
+ align-items: center;
59
+ width: 63px;
60
+ height: 28px;
61
+ font-size: 12px;
62
+ border-radius: 4px;
63
+ margin-bottom: 7px;
64
+ /* #ifdef harmony*/
65
+ margin-right: 6px;
66
+ /* #endif */
67
+ /* #ifndef harmony*/
68
+ margin-right: 7px;
69
+ /* #endif */
70
+ background-color: var(--nutui-gray-2, #f0f0f0);
71
+ color: var(--nutui-color-title);
72
+ }
73
+ .nut-address-hotlist-item:nth-child(5n) {
74
+ margin-right: 0;
75
+ }
76
+ .nut-address-hotlist.hotlist-more .nut-address-hotlist-item {
77
+ width: auto;
78
+ padding: 0 16px;
79
+ margin-right: 7px;
80
+ }
81
+ .nut-address-selected {
82
+ width: 100%;
83
+ height: 60px;
84
+ padding: 0 16px;
85
+ display: flex;
86
+ align-items: center;
87
+ border-bottom: 1px solid var(--nutui-color-border);
88
+ }
89
+ .nut-address-selected-item {
90
+ font-size: 12px;
91
+ display: inline-block;
92
+ height: 28px;
93
+ line-height: 28px;
94
+ padding: 0 12px;
95
+ border-radius: 4px;
96
+ background-color: var(--nutui-gray-2, #f0f0f0);
97
+ }
98
+ .nut-address-selected-item.active {
99
+ border: 1px solid var(--nutui-color-primary, #ff6666);
100
+ background-color: var(--nutui-color-primary-light-pressed, #ffcccc);
101
+ color: var(--nutui-color-primary, #ff6666);
102
+ }
103
+ .nut-address-selected-border {
104
+ margin: 0 2px;
105
+ color: var(--nutui-color-text-disabled);
106
+ }
107
+ .nut-address-elevator {
108
+ margin-top: 0;
109
+ }
110
+ .nut-address-elevator .nut-elevator-list-item {
111
+ position: relative;
112
+ padding-left: 20px;
113
+ }
114
+ .nut-address-elevator .nut-elevator-list-item-code {
115
+ display: inline;
116
+ position: absolute;
117
+ left: 0;
118
+ top: 0;
119
+ height: 30px;
120
+ line-height: 30px;
121
+ border-bottom: 0;
122
+ color: var(--nutui-color-text-help);
123
+ font-weight: 500;
124
+ }
125
+ .nut-address-elevator .nut-elevator-bars {
126
+ top: 40%;
127
+ padding: 0;
128
+ background: none;
129
+ }
130
+ .nut-address-elevator .nut-elevator-bars-inner-item {
131
+ display: flex;
132
+ justify-content: center;
133
+ align-items: center;
134
+ width: 16px;
135
+ height: 16px;
136
+ font-size: 10px;
137
+ border-radius: 16px;
138
+ margin-bottom: 2px;
139
+ color: var(--nutui-color-text-help);
140
+ }
141
+ .nut-address-elevator .nut-elevator-bars-inner-item-active {
142
+ background-color: var(--nutui-color-primary, #ff6666);
143
+ color: var(--nutui-color-surface-2);
144
+ font-weight: 400;
145
+ }
146
+
44
147
  [dir=rtl] .nut-address-exist-item-info,
45
148
  .nut-rtl .nut-address-exist-item-info {
46
149
  margin-left: 0;