@qn-pandora/pandora-component 3.1.1 → 4.0.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 (145) hide show
  1. package/CHANGELOG.json +7 -7
  2. package/CHANGELOG.md +8 -7
  3. package/es/components/AutoComplete/style.css +25 -29
  4. package/es/components/Button/index.d.ts +0 -8
  5. package/es/components/Button/index.js +4 -4
  6. package/es/components/Button/style.css +100 -104
  7. package/es/components/Button/style.less +3 -14
  8. package/es/components/Card/style.css +28 -2
  9. package/es/components/CheckTransformList/style.css +50 -21
  10. package/es/components/Checkbox/style.css +1 -1
  11. package/es/components/CheckboxList/index.d.ts +2 -0
  12. package/es/components/CheckboxList/index.js +2 -2
  13. package/es/components/CheckboxList/style.css +5 -3
  14. package/es/components/CheckboxList/style.less +4 -2
  15. package/es/components/Collapse/style.css +16 -12
  16. package/es/components/CollapsiblePanel/style.css +4 -4
  17. package/es/components/CollapsiblePanel/style.less +4 -4
  18. package/es/components/DateTimePicker/Base/style.css +378 -49
  19. package/es/components/DateTimePicker/Base/style.less +37 -41
  20. package/es/components/DateTimePicker/BaseMobile/style.css +4 -4
  21. package/es/components/DateTimePicker/BaseMobile/style.less +4 -4
  22. package/es/components/DateTimePicker/DisplayInput/style.css +47 -16
  23. package/es/components/DateTimePicker/constants.d.ts +1 -1
  24. package/es/components/DateTimePicker/constants.js +17 -6
  25. package/es/components/DateTimePicker/index.js +1 -1
  26. package/es/components/DateTimePicker/style.css +7 -7
  27. package/es/components/DateTimePicker/style.less +12 -10
  28. package/es/components/DateTimePicker/transform.d.ts +4 -0
  29. package/es/components/DateTimePicker/transform.js +52 -0
  30. package/es/components/Drawer/style.css +45 -45
  31. package/es/components/Input/index.d.ts +1 -2
  32. package/es/components/Input/index.js +0 -2
  33. package/es/components/Input/style.css +47 -16
  34. package/es/components/InputNumber/index.d.ts +1 -8
  35. package/es/components/InputNumber/index.js +1 -35
  36. package/es/components/Menu/Option.d.ts +4 -0
  37. package/es/components/Menu/Option.js +2 -1
  38. package/es/components/Menu/index.d.ts +1 -1
  39. package/es/components/Menu/style.css +20 -10
  40. package/es/components/Menu/style.less +10 -0
  41. package/es/components/NameLimiter/style.css +2 -4
  42. package/es/components/NameLimiter/style.less +2 -4
  43. package/es/components/OptionList/OptionItem/style.css +2 -2
  44. package/es/components/OptionList/OptionItem/style.less +2 -2
  45. package/es/components/OptionList/style.css +2 -2
  46. package/es/components/RadioGroup/style.css +8 -8
  47. package/es/components/RangeInput/style.css +427 -27
  48. package/es/components/RemarkName/style.css +2 -4
  49. package/es/components/Selector/style.css +25 -29
  50. package/es/components/Selector/style.less +27 -28
  51. package/es/components/Spin/style.css +0 -1
  52. package/es/components/Steps/style.css +8 -6
  53. package/es/components/Steps/style.less +9 -7
  54. package/es/components/Table/style.css +81 -23
  55. package/es/components/Table/style.less +10 -17
  56. package/es/components/Tabs/style.css +29 -1
  57. package/es/components/Tabs/style.less +3 -1
  58. package/es/components/TagList/style.css +10 -10
  59. package/es/components/TagList/style.less +1 -1
  60. package/es/components/Transfer/List/index.js +3 -3
  61. package/es/components/Transfer/List/style.css +3 -0
  62. package/es/components/Transfer/List/style.less +4 -0
  63. package/es/components/Transfer/style.css +3 -0
  64. package/es/components/TreeSelector/style.css +64 -20
  65. package/es/components/TreeSelector/style.less +9 -7
  66. package/es/index.css +2701 -2207
  67. package/es/index.d.ts +1 -1
  68. package/es/index.less +0 -1
  69. package/es/style/theme.less +2 -0
  70. package/lib/components/AutoComplete/style.css +25 -29
  71. package/lib/components/Button/index.d.ts +0 -8
  72. package/lib/components/Button/index.js +4 -4
  73. package/lib/components/Button/style.css +100 -104
  74. package/lib/components/Button/style.less +3 -14
  75. package/lib/components/Card/style.css +28 -2
  76. package/lib/components/CheckTransformList/style.css +50 -21
  77. package/lib/components/Checkbox/style.css +1 -1
  78. package/lib/components/CheckboxList/index.d.ts +2 -0
  79. package/lib/components/CheckboxList/index.js +2 -2
  80. package/lib/components/CheckboxList/style.css +5 -3
  81. package/lib/components/CheckboxList/style.less +4 -2
  82. package/lib/components/Collapse/style.css +16 -12
  83. package/lib/components/CollapsiblePanel/style.css +4 -4
  84. package/lib/components/CollapsiblePanel/style.less +4 -4
  85. package/lib/components/DateTimePicker/Base/style.css +378 -49
  86. package/lib/components/DateTimePicker/Base/style.less +37 -41
  87. package/lib/components/DateTimePicker/BaseMobile/style.css +4 -4
  88. package/lib/components/DateTimePicker/BaseMobile/style.less +4 -4
  89. package/lib/components/DateTimePicker/DisplayInput/style.css +47 -16
  90. package/lib/components/DateTimePicker/constants.d.ts +1 -1
  91. package/lib/components/DateTimePicker/constants.js +17 -6
  92. package/lib/components/DateTimePicker/index.js +1 -1
  93. package/lib/components/DateTimePicker/style.css +7 -7
  94. package/lib/components/DateTimePicker/style.less +12 -10
  95. package/lib/components/DateTimePicker/transform.d.ts +4 -0
  96. package/lib/components/DateTimePicker/transform.js +53 -0
  97. package/lib/components/Drawer/style.css +45 -45
  98. package/lib/components/Input/index.d.ts +1 -2
  99. package/lib/components/Input/index.js +0 -2
  100. package/lib/components/Input/style.css +47 -16
  101. package/lib/components/InputNumber/index.d.ts +1 -8
  102. package/lib/components/InputNumber/index.js +1 -38
  103. package/lib/components/Menu/Option.d.ts +4 -0
  104. package/lib/components/Menu/Option.js +2 -1
  105. package/lib/components/Menu/index.d.ts +1 -1
  106. package/lib/components/Menu/style.css +20 -10
  107. package/lib/components/Menu/style.less +10 -0
  108. package/lib/components/NameLimiter/style.css +2 -4
  109. package/lib/components/NameLimiter/style.less +2 -4
  110. package/lib/components/OptionList/OptionItem/style.css +2 -2
  111. package/lib/components/OptionList/OptionItem/style.less +2 -2
  112. package/lib/components/OptionList/style.css +2 -2
  113. package/lib/components/RadioGroup/style.css +8 -8
  114. package/lib/components/RangeInput/style.css +427 -27
  115. package/lib/components/RemarkName/style.css +2 -4
  116. package/lib/components/Selector/style.css +25 -29
  117. package/lib/components/Selector/style.less +27 -28
  118. package/lib/components/Spin/style.css +0 -1
  119. package/lib/components/Steps/style.css +8 -6
  120. package/lib/components/Steps/style.less +9 -7
  121. package/lib/components/Table/style.css +81 -23
  122. package/lib/components/Table/style.less +10 -17
  123. package/lib/components/Tabs/style.css +29 -1
  124. package/lib/components/Tabs/style.less +3 -1
  125. package/lib/components/TagList/style.css +10 -10
  126. package/lib/components/TagList/style.less +1 -1
  127. package/lib/components/Transfer/List/index.js +3 -3
  128. package/lib/components/Transfer/List/style.css +3 -0
  129. package/lib/components/Transfer/List/style.less +4 -0
  130. package/lib/components/Transfer/style.css +3 -0
  131. package/lib/components/TreeSelector/style.css +64 -20
  132. package/lib/components/TreeSelector/style.less +9 -7
  133. package/lib/index.css +5228 -4734
  134. package/lib/index.d.ts +1 -1
  135. package/lib/index.less +6 -7
  136. package/lib/style/theme.less +2 -0
  137. package/package.json +18 -47
  138. package/es/components/Input/NumberInput/index.d.ts +0 -29
  139. package/es/components/Input/NumberInput/index.js +0 -116
  140. package/es/components/InputNumber/style.css +0 -400
  141. package/es/components/InputNumber/style.less +0 -45
  142. package/lib/components/Input/NumberInput/index.d.ts +0 -29
  143. package/lib/components/Input/NumberInput/index.js +0 -121
  144. package/lib/components/InputNumber/style.css +0 -400
  145. package/lib/components/InputNumber/style.less +0 -45
@@ -211,14 +211,14 @@
211
211
  border-color: #722ed1;
212
212
  }
213
213
  .ant-tag-success {
214
- color: #52c41a;
215
- background: #f6ffed;
216
- border-color: #b7eb8f;
214
+ color: #20c997;
215
+ background: #f0fff8;
216
+ border-color: #99f0cd;
217
217
  }
218
218
  .ant-tag-processing {
219
- color: #1890ff;
220
- background: #e6f7ff;
221
- border-color: #91d5ff;
219
+ color: #7a869a;
220
+ background: #ccd3d9;
221
+ border-color: #b4b9bf;
222
222
  }
223
223
  .ant-tag-error {
224
224
  color: #f5222d;
@@ -226,9 +226,9 @@
226
226
  border-color: #ffa39e;
227
227
  }
228
228
  .ant-tag-warning {
229
- color: #fa8c16;
230
- background: #fff7e6;
231
- border-color: #ffd591;
229
+ color: #f0a818;
230
+ background: #fffbe6;
231
+ border-color: #ffe694;
232
232
  }
233
233
  .ant-tag > .anticon + span,
234
234
  .ant-tag > span + .anticon {
@@ -270,7 +270,7 @@
270
270
  max-width: 400px;
271
271
  max-height: 1000px;
272
272
  overflow: auto;
273
- padding: 8px !important;
273
+ padding: 8px;
274
274
  }
275
275
  .pandora-sdk-popover > div {
276
276
  margin: 4px;
@@ -21,7 +21,7 @@
21
21
  max-width: 400px;
22
22
  max-height: 1000px;
23
23
  overflow: auto;
24
- padding: 8px !important;
24
+ padding: 8px;
25
25
  > div {
26
26
  margin: 4px;
27
27
  }
@@ -33,11 +33,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
33
33
  var react_1 = __importStar(require("react"));
34
34
  var antd_1 = require("antd");
35
35
  var config_provider_1 = require("antd/es/config-provider");
36
+ var pandora_component_icons_1 = require("@qn-pandora/pandora-component-icons");
36
37
  var ListBody_1 = __importDefault(require("../ListBody"));
37
38
  var language_1 = require("../../../utils/language");
38
39
  var style_1 = require("../../../constants/style");
39
40
  var type_1 = require("../../../constants/language/transfer/type");
40
- var Search = antd_1.Input.Search;
41
41
  function List(props) {
42
42
  var _a = __read(react_1.useState(''), 2), searchValue = _a[0], setSearchValue = _a[1];
43
43
  var locale = react_1.useContext(config_provider_1.ConfigContext).locale;
@@ -67,8 +67,8 @@ function List(props) {
67
67
  return (react_1.default.createElement("div", { className: style_1.SDK_PREFIX + "-transfer-list" },
68
68
  react_1.default.createElement("div", { className: style_1.SDK_PREFIX + "-transfer-title" }, title),
69
69
  react_1.default.createElement("div", { className: style_1.SDK_PREFIX + "-transfer-search" },
70
- react_1.default.createElement(Search, { placeholder: searchPlaceHolder ||
71
- language_1.formatString(type_1.TransferLocale.placeholder, locale), value: searchValue, onChange: function (e) { return setSearchValue(e.target.value); }, className: style_1.SDK_PREFIX + "-transfer-mb10" })),
70
+ react_1.default.createElement(antd_1.Input, { placeholder: searchPlaceHolder ||
71
+ language_1.formatString(type_1.TransferLocale.placeholder, locale), value: searchValue, onChange: function (e) { return setSearchValue(e.target.value); }, className: style_1.SDK_PREFIX + "-transfer-mb10", prefix: react_1.default.createElement(pandora_component_icons_1.Search, { className: style_1.SDK_PREFIX + "-search-icon" }) })),
72
72
  type === "source" /* Source */ && selectedAllNode,
73
73
  react_1.default.createElement(ListBody_1.default, { dataSource: dataSource.filter(function (item) { return item.name.includes(searchValue); }), onChange: onCheckboxChange })));
74
74
  }
@@ -32,3 +32,6 @@
32
32
  .pandora-sdk-transfer-list .pandora-sdk-transfer-mb10 {
33
33
  margin-bottom: 10px;
34
34
  }
35
+ .pandora-sdk-search-icon {
36
+ color: #bfbfbf;
37
+ }
@@ -13,3 +13,7 @@
13
13
  margin-bottom: 10px;
14
14
  }
15
15
  }
16
+
17
+ .@{sdk-prefix}-search-icon {
18
+ color: @icon-color;
19
+ }
@@ -32,6 +32,9 @@
32
32
  .pandora-sdk-transfer-list .pandora-sdk-transfer-mb10 {
33
33
  margin-bottom: 10px;
34
34
  }
35
+ .pandora-sdk-search-icon {
36
+ color: #bfbfbf;
37
+ }
35
38
  .pandora-sdk-transfer-container {
36
39
  display: -webkit-box;
37
40
  display: -ms-flexbox;
@@ -2,10 +2,21 @@
2
2
  /* stylelint-disable no-duplicate-selectors */
3
3
  /* stylelint-disable */
4
4
  /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
- .ant-tree-treenode-leaf-last .ant-tree-switcher-leaf-line::before {
6
- top: auto !important;
7
- bottom: auto !important;
8
- height: 14px !important;
5
+ @-webkit-keyframes ant-tree-node-fx-do-not-use {
6
+ 0% {
7
+ opacity: 0;
8
+ }
9
+ 100% {
10
+ opacity: 1;
11
+ }
12
+ }
13
+ @keyframes ant-tree-node-fx-do-not-use {
14
+ 0% {
15
+ opacity: 0;
16
+ }
17
+ 100% {
18
+ opacity: 1;
19
+ }
9
20
  }
10
21
  @-webkit-keyframes antCheckboxEffect {
11
22
  0% {
@@ -92,7 +103,7 @@
92
103
  .ant-select-tree-checkbox-inner::after {
93
104
  position: absolute;
94
105
  top: 50%;
95
- left: 22%;
106
+ left: 21.5%;
96
107
  display: table;
97
108
  width: 5.71428571px;
98
109
  height: 9.14285714px;
@@ -245,7 +256,7 @@
245
256
  border-color: rgba(0, 0, 0, 0.25);
246
257
  }
247
258
  .ant-tree-select-dropdown {
248
- padding: 8px 4px 0;
259
+ padding: 8px 4px;
249
260
  }
250
261
  .ant-tree-select-dropdown-rtl {
251
262
  direction: rtl;
@@ -258,9 +269,6 @@
258
269
  -ms-flex-align: stretch;
259
270
  align-items: stretch;
260
271
  }
261
- .ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode {
262
- padding-bottom: 8px;
263
- }
264
272
  .ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode .ant-select-tree-node-content-wrapper {
265
273
  -webkit-box-flex: 1;
266
274
  -ms-flex: auto;
@@ -301,6 +309,26 @@
301
309
  -ms-flex: auto;
302
310
  flex: auto;
303
311
  }
312
+ .ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-treenode.dragging {
313
+ position: relative;
314
+ }
315
+ .ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-treenode.dragging::after {
316
+ position: absolute;
317
+ top: 0;
318
+ right: 0;
319
+ bottom: 4px;
320
+ left: 0;
321
+ border: 1px solid #7a869a;
322
+ opacity: 0;
323
+ -webkit-animation: ant-tree-node-fx-do-not-use 0.3s;
324
+ animation: ant-tree-node-fx-do-not-use 0.3s;
325
+ -webkit-animation-play-state: running;
326
+ animation-play-state: running;
327
+ -webkit-animation-fill-mode: forwards;
328
+ animation-fill-mode: forwards;
329
+ content: '';
330
+ pointer-events: none;
331
+ }
304
332
  .ant-select-tree .ant-select-tree-treenode {
305
333
  display: -webkit-box;
306
334
  display: -ms-flexbox;
@@ -338,6 +366,17 @@
338
366
  display: inline-block;
339
367
  width: 24px;
340
368
  }
369
+ .ant-select-tree-draggable-icon {
370
+ width: 24px;
371
+ line-height: 24px;
372
+ text-align: center;
373
+ opacity: 0.2;
374
+ -webkit-transition: opacity 0.3s;
375
+ transition: opacity 0.3s;
376
+ }
377
+ .ant-select-tree-treenode:hover .ant-select-tree-draggable-icon {
378
+ opacity: 0.45;
379
+ }
341
380
  .ant-select-tree-switcher {
342
381
  position: relative;
343
382
  -webkit-box-flex: 0;
@@ -388,16 +427,16 @@
388
427
  .ant-select-tree-switcher-leaf-line::before {
389
428
  position: absolute;
390
429
  top: 0;
430
+ right: 12px;
391
431
  bottom: -4px;
392
432
  margin-left: -1px;
393
- border-left: 1px solid #ffffff;
433
+ border-right: 1px solid #ffffff;
394
434
  content: ' ';
395
435
  }
396
436
  .ant-select-tree-switcher-leaf-line::after {
397
437
  position: absolute;
398
438
  width: 10px;
399
439
  height: 14px;
400
- margin-left: -1px;
401
440
  border-bottom: 1px solid #ffffff;
402
441
  content: ' ';
403
442
  }
@@ -441,14 +480,14 @@
441
480
  .ant-select-tree-unselectable .ant-select-tree-node-content-wrapper:hover {
442
481
  background-color: transparent;
443
482
  }
444
- .ant-select-tree-node-content-wrapper[draggable='true'] {
483
+ .ant-select-tree-node-content-wrapper {
445
484
  line-height: 24px;
446
485
  -webkit-user-select: none;
447
486
  -moz-user-select: none;
448
487
  -ms-user-select: none;
449
488
  user-select: none;
450
489
  }
451
- .ant-select-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator {
490
+ .ant-select-tree-node-content-wrapper .ant-tree-drop-indicator {
452
491
  position: absolute;
453
492
  z-index: 1;
454
493
  height: 2px;
@@ -456,7 +495,7 @@
456
495
  border-radius: 1px;
457
496
  pointer-events: none;
458
497
  }
459
- .ant-select-tree-node-content-wrapper[draggable='true'] .ant-tree-drop-indicator::after {
498
+ .ant-select-tree-node-content-wrapper .ant-tree-drop-indicator::after {
460
499
  position: absolute;
461
500
  top: -3px;
462
501
  left: -6px;
@@ -490,7 +529,12 @@
490
529
  background: #ffffff;
491
530
  }
492
531
  .ant-select-tree-show-line .ant-select-tree-switcher-line-icon {
493
- vertical-align: -0.225em;
532
+ vertical-align: -0.15em;
533
+ }
534
+ .ant-select-tree .ant-select-tree-treenode-leaf-last .ant-select-tree-switcher-leaf-line::before {
535
+ top: auto !important;
536
+ bottom: auto !important;
537
+ height: 14px !important;
494
538
  }
495
539
  .ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg {
496
540
  -webkit-transform: rotate(90deg);
@@ -515,12 +559,12 @@
515
559
  .pandora-sdk-tree-select .ant-select-selection {
516
560
  background: transparent;
517
561
  }
518
- .pandora-sdk-tree-select .ant-select-selection__choice {
519
- color: #ffffff !important;
520
- background: rgba(44, 109, 210, 0.8) !important;
562
+ .pandora-sdk-tree-select .ant-select-multiple .ant-select-selection-item {
563
+ color: #ffffff;
564
+ background: rgba(44, 109, 210, 0.8);
521
565
  }
522
- .pandora-sdk-tree-select .ant-select-selection__choice__remove {
523
- color: #ffffff !important;
566
+ .pandora-sdk-tree-select .ant-select-multiple .ant-select-selection-item-remove {
567
+ color: #ffffff;
524
568
  opacity: 0.5;
525
569
  }
526
570
  .pandora-sdk-tree-select-dropdown {
@@ -10,13 +10,15 @@
10
10
  .@{ant-prefix}-select-selection {
11
11
  background: @select-bg;
12
12
  }
13
- .@{ant-prefix}-select-selection__choice {
14
- color: @normal-color!important;
15
- background: @theme-color-080!important;
16
- }
17
- .@{ant-prefix}-select-selection__choice__remove {
18
- color: @normal-color!important;
19
- opacity: 0.5;
13
+ .@{ant-prefix}-select-multiple {
14
+ .@{ant-prefix}-select-selection-item {
15
+ color: @normal-color;
16
+ background: @theme-color-080;
17
+ }
18
+ .@{ant-prefix}-select-selection-item-remove {
19
+ color: @normal-color;
20
+ opacity: 0.5;
21
+ }
20
22
  }
21
23
  }
22
24