@kdcloudjs/kdesign 1.7.19 → 1.7.21

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 (90) hide show
  1. package/CHANGELOG.md +51 -0
  2. package/dist/kdesign-complete.less +337 -240
  3. package/dist/kdesign.css +270 -240
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +766 -850
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +9 -9
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/button/style/token.less +1 -0
  11. package/es/checkbox/checkbox.js +5 -5
  12. package/es/checkbox/style/index.css +2 -0
  13. package/es/checkbox/style/index.less +2 -0
  14. package/es/checkbox/style/token.less +1 -1
  15. package/es/city-picker/city-picker.d.ts +3 -23
  16. package/es/city-picker/city-picker.js +351 -124
  17. package/es/city-picker/interface.d.ts +57 -0
  18. package/es/city-picker/interface.js +3 -0
  19. package/es/city-picker/option.d.ts +4 -0
  20. package/es/city-picker/option.js +42 -0
  21. package/es/city-picker/style/index.css +264 -239
  22. package/es/city-picker/style/index.less +262 -218
  23. package/es/city-picker/style/mixin.less +26 -3
  24. package/es/city-picker/style/token.less +42 -14
  25. package/es/config-provider/compDefaultProps.d.ts +15 -0
  26. package/es/config-provider/compDefaultProps.js +16 -1
  27. package/es/input/style/token.less +2 -8
  28. package/es/select/select.js +25 -15
  29. package/es/tree/tree.js +61 -57
  30. package/es/tree/treeNode.js +1 -6
  31. package/es/tree-select/interface.d.ts +1 -0
  32. package/es/tree-select/style/index.css +4 -1
  33. package/es/tree-select/style/index.less +5 -1
  34. package/es/tree-select/style/token.less +1 -0
  35. package/es/tree-select/tree-select.js +18 -4
  36. package/lib/button/style/token.less +1 -0
  37. package/lib/checkbox/checkbox.js +4 -4
  38. package/lib/checkbox/style/index.css +2 -0
  39. package/lib/checkbox/style/index.less +2 -0
  40. package/lib/checkbox/style/token.less +1 -1
  41. package/lib/city-picker/city-picker.d.ts +3 -23
  42. package/lib/city-picker/city-picker.js +350 -123
  43. package/lib/city-picker/interface.d.ts +57 -0
  44. package/lib/city-picker/interface.js +11 -0
  45. package/lib/city-picker/option.d.ts +4 -0
  46. package/lib/city-picker/option.js +55 -0
  47. package/lib/city-picker/style/index.css +264 -239
  48. package/lib/city-picker/style/index.less +262 -218
  49. package/lib/city-picker/style/mixin.less +26 -3
  50. package/lib/city-picker/style/token.less +42 -14
  51. package/lib/config-provider/compDefaultProps.d.ts +15 -0
  52. package/lib/config-provider/compDefaultProps.js +16 -1
  53. package/lib/input/style/token.less +2 -8
  54. package/lib/select/select.js +25 -15
  55. package/lib/tree/tree.js +60 -56
  56. package/lib/tree/treeNode.js +1 -6
  57. package/lib/tree-select/interface.d.ts +1 -0
  58. package/lib/tree-select/style/index.css +4 -1
  59. package/lib/tree-select/style/index.less +5 -1
  60. package/lib/tree-select/style/token.less +1 -0
  61. package/lib/tree-select/tree-select.js +20 -6
  62. package/package.json +1 -1
  63. package/es/city-picker/city-group.d.ts +0 -8
  64. package/es/city-picker/city-group.js +0 -38
  65. package/es/city-picker/city-list.d.ts +0 -12
  66. package/es/city-picker/city-list.js +0 -55
  67. package/es/city-picker/city-panel-item.d.ts +0 -13
  68. package/es/city-picker/city-panel-item.js +0 -22
  69. package/es/city-picker/city-panel.d.ts +0 -17
  70. package/es/city-picker/city-panel.js +0 -153
  71. package/es/city-picker/city-search-panel.d.ts +0 -9
  72. package/es/city-picker/city-search-panel.js +0 -44
  73. package/es/city-picker/no-data.d.ts +0 -3
  74. package/es/city-picker/no-data.js +0 -18
  75. package/es/city-picker/utils/grouping.d.ts +0 -7
  76. package/es/city-picker/utils/grouping.js +0 -24
  77. package/lib/city-picker/city-group.d.ts +0 -8
  78. package/lib/city-picker/city-group.js +0 -51
  79. package/lib/city-picker/city-list.d.ts +0 -12
  80. package/lib/city-picker/city-list.js +0 -68
  81. package/lib/city-picker/city-panel-item.d.ts +0 -13
  82. package/lib/city-picker/city-panel-item.js +0 -35
  83. package/lib/city-picker/city-panel.d.ts +0 -17
  84. package/lib/city-picker/city-panel.js +0 -166
  85. package/lib/city-picker/city-search-panel.d.ts +0 -9
  86. package/lib/city-picker/city-search-panel.js +0 -57
  87. package/lib/city-picker/no-data.d.ts +0 -3
  88. package/lib/city-picker/no-data.js +0 -31
  89. package/lib/city-picker/utils/grouping.d.ts +0 -7
  90. package/lib/city-picker/utils/grouping.js +0 -30
@@ -103,7 +103,16 @@
103
103
  普通组件内部自身层级应设置在0-100间
104
104
  */
105
105
  /* ----------- zIndex ——————---- end */
106
- .kd-city-picker-container {
106
+ /* 多行显示省略号 */
107
+ /* 单行显示省略号 */
108
+ /** 浮层箭头样式 **/
109
+ .kd-city-picker {
110
+ position: relative;
111
+ -webkit-box-sizing: border-box;
112
+ box-sizing: border-box;
113
+ background-color: transparent;
114
+ cursor: pointer;
115
+ vertical-align: middle;
107
116
  display: -webkit-box;
108
117
  display: -ms-flexbox;
109
118
  display: flex;
@@ -111,204 +120,179 @@
111
120
  -webkit-box-direction: normal;
112
121
  -ms-flex-direction: column;
113
122
  flex-direction: column;
114
- position: relative;
115
- border-bottom: 1px solid #999;
116
123
  }
117
- .kd-city-picker-container .kd-city-picker-content {
118
- position: relative;
119
- display: -webkit-box;
120
- display: -ms-flexbox;
121
- display: flex;
122
- -webkit-box-align: center;
123
- -ms-flex-align: center;
124
- align-items: center;
125
- -webkit-box-pack: justify;
126
- -ms-flex-pack: justify;
127
- justify-content: space-between;
128
- font-size: 14px;
129
- color: #999999;
130
- letter-spacing: 0;
131
- line-height: 21px;
124
+ .kd-city-picker-selector:hover .kd-city-picker-icon-active {
125
+ color: #3761ca;
132
126
  }
133
- .kd-city-picker-container .kd-city-picker-title {
134
- margin-bottom: 9px;
135
- font-size: 12px;
127
+ .kd-city-picker-description {
136
128
  color: #666666;
137
- letter-spacing: 0;
138
- line-height: 18px;
129
+ font-size: 12px;
139
130
  }
140
- .kd-city-picker-container .kd-city-picker-info {
141
- margin-right: 20px;
131
+ .kd-city-picker-visible .kd-city-picker-icon-active {
132
+ color: #3761ca;
142
133
  }
143
- .kd-city-picker-container .kd-city-picker-input {
144
- border: 0;
145
- outline: none;
146
- -webkit-box-flex: 1;
147
- -ms-flex-positive: 1;
148
- flex-grow: 1;
149
- width: 50%;
150
- color: #212121;
134
+ .kd-city-picker-visible div.kd-city-picker-show-search .kd-city-picker-selection-item {
135
+ color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
151
136
  }
152
- .kd-city-picker-container .kd-city-picker-arrow {
153
- font-size: 16px;
154
- position: absolute;
155
- right: 0;
156
- bottom: 0;
157
- -webkit-transition: -webkit-transform 0.2s ease;
158
- transition: -webkit-transform 0.2s ease;
159
- transition: transform 0.2s ease;
160
- transition: transform 0.2s ease, -webkit-transform 0.2s ease;
137
+ .kd-city-picker-icon-arrow {
138
+ display: -webkit-inline-box;
139
+ display: -ms-inline-flexbox;
140
+ display: inline-flex;
141
+ -webkit-box-align: center;
142
+ -ms-flex-align: center;
143
+ align-items: center;
144
+ vertical-align: middle;
161
145
  }
162
- .kd-city-picker-container .kd-city-picker-arrow.arrow-up {
146
+ .kd-city-picker-icon-arrow-up {
163
147
  -webkit-transform: rotate(180deg);
164
148
  transform: rotate(180deg);
165
- }
166
- .kd-city-picker-panel.hidden {
149
+ -webkit-transition: -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
150
+ transition: -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
151
+ transition: transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
152
+ transition: transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
153
+ }
154
+ .kd-city-picker-icon-arrow-down {
155
+ -webkit-transform: rotate(0deg);
156
+ transform: rotate(0deg);
157
+ -webkit-transition: -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
158
+ transition: -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
159
+ transition: transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
160
+ transition: transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
161
+ }
162
+ .kd-city-picker-icon-clear {
167
163
  opacity: 0;
168
- visibility: hidden;
169
- -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
170
- transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
164
+ z-index: 1;
165
+ position: absolute;
166
+ background: #fff;
167
+ -webkit-transition: opacity 0.15s ease;
168
+ transition: opacity 0.15s ease;
171
169
  }
172
- .kd-city-picker-panel-container {
173
- width: var(--kd-c-city-picker-panel-sizing-width, 460px);
174
- height: var(--kd-c-city-picker-panel-sizing-height, 373px);
175
- font-size: var(--kd-c-city-picker-panel-font-size, 12px);
176
- line-height: 18px;
177
- letter-spacing: 0;
170
+ .kd-city-picker-icon-clear:hover {
171
+ color: var(--kd-c-city-picker-color-border-hover, var(--kd-g-color-theme, #5582f3));
178
172
  }
179
- .kd-city-picker-panel-container .kd-city-picker-header {
180
- display: -webkit-box;
181
- display: -ms-flexbox;
182
- display: flex;
183
- -webkit-box-align: center;
184
- -ms-flex-align: center;
185
- align-items: center;
186
- text-align: center;
173
+ .kd-city-picker-placeholder {
174
+ position: absolute;
175
+ color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
176
+ overflow: hidden;
177
+ white-space: nowrap;
178
+ text-overflow: ellipsis;
179
+ right: 24px;
180
+ left: 0;
187
181
  }
188
- .kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-tab-item {
189
- position: relative;
190
- cursor: pointer;
191
- padding: 3px 0;
182
+ .kd-city-picker-borderless {
183
+ border: none;
192
184
  }
193
- .kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-tab-item.active {
194
- color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
195
- z-index: 1;
185
+ .kd-city-picker-underline {
186
+ border-bottom: 1px solid var(--kd-c-city-picker-color-border, var(--kd-g-color-input, #999));
196
187
  }
197
- .kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-tab-item.active::before {
198
- z-index: -1;
199
- background: #fff;
188
+ .kd-city-picker-underline:hover:not(.kd-city-picker-disabled) {
189
+ border-bottom: 1px solid var(--kd-c-city-picker-color-border-hover, var(--kd-g-color-theme, #5582f3));
200
190
  }
201
- .kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-header-domestic {
202
- width: 94px;
191
+ .kd-city-picker-bordered {
192
+ border: 1px solid var(--kd-c-city-picker-border-color-border, var(--kd-g-color-border-strong, #d9d9d9));
193
+ padding-left: var(--kd-c-city-picker-bordered-spacing-padding-left, 8px) !important;
194
+ border-radius: var(--kd-c-city-picker-bordered-radius-border, 2px);
203
195
  }
204
- .kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-header-domestic::before {
205
- position: absolute;
206
- content: '';
207
- top: 0;
208
- left: 0;
209
- right: 0;
210
- bottom: 0;
211
- z-index: -2;
212
- background: var(--kd-c-city-picker-color-background, var(--kd-g-color-background-contain, #fafafa));
213
- border-radius: 2px 4px 0 0;
214
- -webkit-transform: scaleY(1.25) perspective(18px) rotateX(10deg);
215
- transform: scaleY(1.25) perspective(18px) rotateX(10deg);
216
- -webkit-transform-origin: bottom left;
217
- transform-origin: bottom left;
218
- -webkit-box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
219
- box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
220
- }
221
- .kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-header-internation {
222
- width: 108px;
223
- margin-left: -13px;
224
- }
225
- .kd-city-picker-panel-container .kd-city-picker-header .kd-city-picker-header-internation::before {
226
- position: absolute;
227
- content: '';
228
- top: 0;
229
- left: 0;
230
- right: 0;
231
- bottom: 0;
232
- z-index: -2;
233
- background: var(--kd-c-city-picker-color-background, var(--kd-g-color-background-contain, #fafafa));
234
- border-radius: 4px 4px 0 0;
235
- -webkit-transform: scaleY(1.25) perspective(18px) rotateX(10deg);
236
- transform: scaleY(1.25) perspective(18px) rotateX(10deg);
237
- -webkit-transform-origin: bottom;
238
- transform-origin: bottom;
239
- -webkit-box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
240
- box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.2);
241
- }
242
- .kd-city-picker-panel-item {
243
- margin: 4px 6px;
244
- padding: 3px 6px;
245
- color: #212121;
246
- width: 72px;
247
- cursor: pointer;
196
+ .kd-city-picker-bordered:hover:not(.kd-city-picker-disabled) {
197
+ border: 1px solid var(--kd-c-city-picker-color-border-hover, var(--kd-g-color-theme, #5582f3));
248
198
  }
249
- .kd-city-picker-panel-item:hover {
250
- background: var(--kd-c-city-picker-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
251
- border-radius: 2px;
199
+ .kd-city-picker-bordered .kd-city-picker-suffix {
200
+ padding-right: 8px;
252
201
  }
253
- .kd-city-picker-content-container {
254
- height: 349px;
255
- padding: 0 20px 12px 20px;
256
- background: #fff;
257
- -webkit-box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
258
- box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.2);
259
- border-radius: 0 var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px)) var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px)) var(--kd-c-city-picker-panel-radius-border, var(--kd-g-radius-border, 2px));
202
+ .kd-city-picker-bordered .kd-city-picker-placeholder {
203
+ padding-left: var(--kd-c-city-picker-bordered-spacing-padding-left, 8px);
260
204
  }
261
- .kd-city-picker-group-container {
205
+ .kd-city-picker-wrapper {
206
+ -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
207
+ transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
208
+ padding: var(--kd-c-city-picker-wrapper-spacing-padding, 1px 24px 1px 0);
209
+ max-width: 100%;
210
+ color: #212121;
262
211
  display: -webkit-box;
263
212
  display: -ms-flexbox;
264
213
  display: flex;
214
+ -ms-flex-wrap: wrap;
215
+ flex-wrap: wrap;
265
216
  -webkit-box-align: center;
266
217
  -ms-flex-align: center;
267
218
  align-items: center;
268
- -ms-flex-pack: distribute;
269
- justify-content: space-around;
219
+ cursor: pointer;
220
+ -webkit-box-sizing: border-box;
221
+ box-sizing: border-box;
222
+ overflow-y: auto;
223
+ overflow-x: hidden;
224
+ position: relative;
270
225
  }
271
- .kd-city-picker-group-item {
272
- -webkit-box-flex: 1;
273
- -ms-flex-positive: 1;
274
- flex-grow: 1;
275
- -ms-flex-negative: 1;
276
- flex-shrink: 1;
277
- padding: 10px 0;
278
- max-height: 39px;
226
+ .kd-city-picker-wrapper:hover .kd-city-picker-icon-clear {
227
+ opacity: 1;
228
+ }
229
+ .kd-city-picker-wrapper .kd-city-picker-icon-clear {
230
+ color: var(--kd-c-city-picker-icon-clear-color-text, #d9d9d9);
231
+ }
232
+ .kd-city-picker-wrapper .kd-city-picker-icon-clear:hover {
233
+ color: var(--kd-c-city-picker-icon-clear-color-text-hover, #999);
234
+ }
235
+ .kd-city-picker-show-search {
236
+ cursor: text;
237
+ }
238
+ .kd-city-picker-dropdown {
239
+ display: block;
240
+ left: 0;
241
+ z-index: var(--kd-c-city-picker-z-index, var(--kd-g-z-index-popper, 1050));
279
242
  -webkit-box-sizing: border-box;
280
243
  box-sizing: border-box;
281
- border-bottom: 2px solid #F5F5F5;
282
- cursor: pointer;
244
+ margin: 0;
245
+ overflow: auto;
246
+ font-size: var(--kd-c-city-picker-dropdown-font-size, 12px);
247
+ font-variant: initial;
248
+ background-color: var(--kd-c-city-picker-dropdown-color-background, var(--kd-g-color-background, #fff));
249
+ border-radius: var(--kd-c-city-picker-radius-border, var(--kd-g-radius-border, 2px));
250
+ outline: none;
251
+ -webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
252
+ box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
253
+ }
254
+ .kd-city-picker-dropdown .kd-tabs-tab-list {
255
+ width: 100%;
256
+ }
257
+ .kd-city-picker-dropdown .kd-tabs-tab-list > span {
258
+ width: 50%;
259
+ }
260
+ .kd-city-picker-dropdown .kd-tabs-tab-list .kd-tab-pane {
283
261
  text-align: center;
284
262
  }
285
- .kd-city-picker-group-item:hover {
286
- color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
263
+ .kd-city-picker-dropdown .kd-tabs-tab-list .kd-tab-pane-type-line {
264
+ padding: 0 12px;
265
+ font-size: 12px;
287
266
  }
288
- .kd-city-picker-group-item.active {
289
- color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
290
- border-bottom: 2px solid var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
267
+ .kd-city-picker-dropdown .kd-tabs-noContainer {
268
+ height: unset;
291
269
  }
292
- .kd-city-picker-group-item.last {
293
- -ms-flex-negative: 1;
294
- flex-shrink: 1;
270
+ .kd-city-picker-dropdown .kd-tabs-right-arrows {
271
+ display: none;
295
272
  }
296
- .kd-city-picker-city-table {
273
+ .kd-city-picker-dropdown-empty {
274
+ height: 48px;
297
275
  display: -webkit-box;
298
276
  display: -ms-flexbox;
299
277
  display: flex;
300
- -ms-flex-wrap: wrap;
301
- flex-wrap: wrap;
302
- margin-top: 10px;
303
- max-height: calc(100% - 39px - 10px);
304
- overflow: scroll;
278
+ -webkit-box-align: center;
279
+ -ms-flex-align: center;
280
+ align-items: center;
281
+ -webkit-box-pack: center;
282
+ -ms-flex-pack: center;
283
+ justify-content: center;
284
+ color: #b2b2b2;
285
+ font-size: 14px;
305
286
  }
306
- .kd-city-picker-city-table .kd-city-picker-city-table-group {
307
- display: -webkit-box;
308
- display: -ms-flexbox;
309
- display: flex;
287
+ .kd-city-picker-dropdown-common {
288
+ height: 32px;
289
+ line-height: 32px;
290
+ padding: 0 12px;
291
+ background: #fafafa;
292
+ color: var(--kd-c-city-picker-footer-color-text, var(--kd-g-color-text-primary, #212121));
310
293
  }
311
- .kd-city-picker-city-table .kd-city-picker-city-table-group .kd-city-picker-city-table-key {
294
+ .kd-city-picker-dropdown-loading {
295
+ height: 48px;
312
296
  display: -webkit-box;
313
297
  display: -ms-flexbox;
314
298
  display: flex;
@@ -318,111 +302,152 @@
318
302
  -webkit-box-pack: center;
319
303
  -ms-flex-pack: center;
320
304
  justify-content: center;
321
- width: 32px;
322
- height: 32px;
323
- color: #999;
324
- margin-right: 32px;
325
- -ms-flex-negative: 0;
326
- flex-shrink: 0;
327
- -webkit-box-flex: 0;
328
- -ms-flex-positive: 0;
329
- flex-grow: 0;
330
305
  }
331
- .kd-city-picker-city-table .kd-city-picker-city-table-item-container {
306
+ .kd-city-picker-list {
307
+ padding: 8px 0;
308
+ max-height: 320px;
309
+ overflow-y: auto;
310
+ }
311
+ .kd-city-picker-list-item {
312
+ position: relative;
313
+ display: block;
314
+ font-weight: normal;
315
+ font-size: var(--kd-c-city-picker-dropdown-font-size, 12px);
316
+ min-height: var(--kd-c-city-picker-item-sizing-height, 22px);
317
+ padding: 5px 12px;
318
+ color: var(--kd-c-city-picker-footer-color-text, var(--kd-g-color-text-primary, #212121));
319
+ line-height: var(--kd-c-city-picker-dropdown-line-height, 22px);
332
320
  display: -webkit-box;
333
321
  display: -ms-flexbox;
334
322
  display: flex;
335
- -ms-flex-wrap: wrap;
336
- flex-wrap: wrap;
337
- }
338
- .kd-city-picker-city-table .kd-city-picker-city-table-cell {
339
- margin: 4px 6px;
340
- padding: 3px 6px;
341
- color: var(--kd-c-city-picker-panel-item-color, var(--kd-g-color-text-primary, #212121));
342
323
  cursor: pointer;
343
- width: 60px;
324
+ }
325
+ .kd-city-picker-list-item-content {
344
326
  overflow: hidden;
345
327
  white-space: nowrap;
346
328
  text-overflow: ellipsis;
347
329
  }
348
- .kd-city-picker-city-table .kd-city-picker-city-table-cell:hover {
349
- background: var(--kd-c-city-picker-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
350
- border-radius: 2px;
330
+ .kd-city-picker-list-item-info {
331
+ color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
332
+ white-space: nowrap;
351
333
  }
352
- .kd-city-picker-search-panel {
353
- display: -webkit-box;
354
- display: -ms-flexbox;
355
- display: flex;
356
- -webkit-box-orient: vertical;
357
- -webkit-box-direction: normal;
358
- -ms-flex-direction: column;
359
- flex-direction: column;
360
- width: 256px;
361
- height: 320px;
362
- padding: 8px 0;
363
- font-size: 12px;
364
- color: #212121;
365
- letter-spacing: 0;
366
- line-height: 18px;
367
- overflow: scroll;
368
- -webkit-box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
369
- box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
370
- border-radius: 2px;
371
- background: #fff;
334
+ .kd-city-picker-list-item:hover {
335
+ background-color: var(--kd-c-city-picker-color-background, #f5f5f5);
336
+ }
337
+ .kd-city-picker-list-item-selected:not(.kd-city-picker-list-item-disabled) {
338
+ background-color: var(--kd-c-city-picker-color-background-selected, #f2f6ff);
339
+ }
340
+ .kd-city-picker-list-item-disabled {
341
+ color: var(--kd-c-city-picker-item-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
342
+ cursor: not-allowed;
343
+ background-color: var(--kd-c-city-picker-item-color-background-disabled, #fff);
344
+ }
345
+ .kd-city-picker-highlight {
346
+ color: #5582f3;
347
+ }
348
+ .kd-city-picker-size-small {
349
+ min-height: var(--kd-c-city-picker-sizing-height-small, 24px);
350
+ max-height: calc(var(--kd-c-city-picker-sizing-height-small, 24px) * 3 - 10px);
351
+ font-size: var(--kd-c-city-picker-font-size-small, 12px);
372
352
  }
373
- .kd-city-picker-search-panel .kd-city-picker-search-panel-item {
353
+ .kd-city-picker-size-middle {
354
+ min-height: var(--kd-c-city-picker-sizing-height-middle, 30px);
355
+ max-height: calc(var(--kd-c-city-picker-sizing-height-middle, 30px) * 3 - 10px);
356
+ font-size: var(--kd-c-city-picker-font-size-middle, 14px);
357
+ }
358
+ .kd-city-picker-size-large {
359
+ min-height: var(--kd-c-city-picker-sizing-height-large, 36px);
360
+ max-height: calc(var(--kd-c-city-picker-sizing-height-large, 36px) * 3 - 10px);
361
+ font-size: var(--kd-c-city-picker-font-size-large, 16px);
362
+ }
363
+ .kd-city-picker-suffix {
364
+ right: 0;
365
+ position: absolute;
374
366
  display: -webkit-box;
375
367
  display: -ms-flexbox;
376
368
  display: flex;
377
- -webkit-box-pack: justify;
378
- -ms-flex-pack: justify;
379
- justify-content: space-between;
369
+ -webkit-box-flex: 0;
370
+ -ms-flex: 0;
371
+ flex: 0;
372
+ -ms-flex-wrap: wrap;
373
+ flex-wrap: wrap;
380
374
  -webkit-box-align: center;
381
375
  -ms-flex-align: center;
382
376
  align-items: center;
383
- padding: 7px 8px;
377
+ -webkit-box-pack: center;
378
+ -ms-flex-pack: center;
379
+ justify-content: center;
380
+ margin-left: 8px;
384
381
  cursor: pointer;
385
382
  }
386
- .kd-city-picker-search-panel .kd-city-picker-search-panel-item:hover {
387
- background: var(--kd-c-city-picker-color-background-hover, var(--kd-g-color-hover, #f5f5f5));
383
+ .kd-city-picker-focused {
384
+ border-color: var(--kd-c-city-picker-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
388
385
  }
389
- .kd-city-picker-search-panel .kd-city-picker-search-panel-item .kd-city-picker-search-panel-item-left {
386
+ .kd-city-picker-focused .kd-city-picker-content-item {
387
+ color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
388
+ }
389
+ .kd-city-picker-disabled {
390
+ background-color: var(--kd-c-city-picker-color-background-disabled, #fff);
391
+ color: var(--kd-c-city-picker-color-text-disabled, var(--kd-g-color-disabled, #b2b2b2));
392
+ padding-right: 0;
393
+ border-color: #e5e5e5;
394
+ }
395
+ .kd-city-picker-disabled:hover {
396
+ cursor: not-allowed;
397
+ }
398
+ .kd-city-picker-disabled .kd-city-picker-suffix {
399
+ color: var(--kd-c-city-picker-arrow-icon-color-text-disabled, #b2b2b2);
400
+ }
401
+ .kd-city-picker-disabled.kd-city-picker-bordered {
402
+ padding-right: var(--kd-c-city-picker-bordered-spacing-padding-left, 8px);
403
+ }
404
+ .kd-city-picker-content {
405
+ display: -webkit-box;
406
+ display: -ms-flexbox;
407
+ display: flex;
408
+ width: 100%;
409
+ font-size: 14px;
410
+ }
411
+ .kd-city-picker-content-search {
412
+ -webkit-box-flex: 1;
413
+ -ms-flex: 1;
414
+ flex: 1;
415
+ position: relative;
416
+ }
417
+ .kd-city-picker-content-search-input {
418
+ outline: 0;
419
+ border-radius: 0;
420
+ border: none;
421
+ background: transparent;
422
+ height: 100%;
423
+ width: 100%;
424
+ cursor: pointer;
425
+ }
426
+ .kd-city-picker-content-item {
427
+ display: inline-block;
428
+ position: absolute;
429
+ left: 0;
430
+ right: 0;
390
431
  overflow: hidden;
391
432
  white-space: nowrap;
392
433
  text-overflow: ellipsis;
393
- -webkit-box-flex: 0;
394
- -ms-flex-positive: 0;
395
- flex-grow: 0;
396
- -ms-flex-negative: 0;
397
- flex-shrink: 0;
398
- max-width: 168px;
399
434
  }
400
- .kd-city-picker-search-panel .kd-city-picker-search-panel-item .kd-city-picker-search-panel-item-right {
401
- -webkit-box-flex: 0;
402
- -ms-flex-positive: 0;
403
- flex-grow: 0;
404
- -ms-flex-negative: 0;
405
- flex-shrink: 0;
406
- max-width: 112px;
435
+ .kd-city-picker-content-info {
436
+ -webkit-box-flex: 1;
437
+ -ms-flex: 1;
438
+ flex: 1;
439
+ text-align: right;
440
+ color: var(--kd-c-city-picker-placeholder-color-text, #b2b2b2);
407
441
  overflow: hidden;
408
442
  white-space: nowrap;
409
443
  text-overflow: ellipsis;
410
- text-align: right;
411
- color: #999999;
412
- }
413
- .kd-city-picker-search-keyword {
414
- color: var(--kd-c-city-picker-color, var(--kd-g-color-theme, #5582f3));
415
444
  }
416
- .kd-city-picker-no-data {
417
- width: 100%;
418
- height: 100%;
419
- display: -webkit-box;
420
- display: -ms-flexbox;
421
- display: flex;
422
- -webkit-box-align: center;
423
- -ms-flex-align: center;
424
- align-items: center;
425
- -webkit-box-pack: center;
426
- -ms-flex-pack: center;
427
- justify-content: center;
445
+ .kd-city-picker.topLeft.hidden,
446
+ .kd-city-picker.bottomLeft.hidden,
447
+ .kd-city-picker.topRight.hidden,
448
+ .kd-city-picker.bottomRight.hidden {
449
+ opacity: 0;
450
+ visibility: hidden;
451
+ -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
452
+ transition: all calc(0.3s - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
428
453
  }