@qn-pandora/pandora-component 3.1.1 → 4.0.1

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 (222) hide show
  1. package/CHANGELOG.json +24 -7
  2. package/CHANGELOG.md +16 -7
  3. package/README.md +36 -36
  4. package/es/components/AutoComplete/style.css +25 -29
  5. package/es/components/AutoComplete/style.less +8 -8
  6. package/es/components/Breadcrumb/style.less +9 -9
  7. package/es/components/Button/index.d.ts +0 -8
  8. package/es/components/Button/index.js +4 -4
  9. package/es/components/Button/style.css +100 -104
  10. package/es/components/Button/style.less +51 -62
  11. package/es/components/Card/RowExtra/style.less +8 -8
  12. package/es/components/Card/SearchInput/style.less +8 -8
  13. package/es/components/Card/style.css +28 -2
  14. package/es/components/Card/style.less +11 -11
  15. package/es/components/CheckTransformList/style.css +50 -21
  16. package/es/components/CheckTransformList/style.less +35 -35
  17. package/es/components/Checkbox/style.css +1 -1
  18. package/es/components/Checkbox/style.less +5 -5
  19. package/es/components/CheckboxList/index.d.ts +2 -0
  20. package/es/components/CheckboxList/index.js +2 -2
  21. package/es/components/CheckboxList/style.css +5 -3
  22. package/es/components/CheckboxList/style.less +11 -9
  23. package/es/components/Collapse/style.css +16 -12
  24. package/es/components/Collapse/style.less +57 -57
  25. package/es/components/CollapsiblePanel/style.css +4 -4
  26. package/es/components/CollapsiblePanel/style.less +63 -63
  27. package/es/components/DateTimePicker/Base/style.css +378 -49
  28. package/es/components/DateTimePicker/Base/style.less +160 -164
  29. package/es/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  30. package/es/components/DateTimePicker/BaseMobile/style.css +4 -4
  31. package/es/components/DateTimePicker/BaseMobile/style.less +32 -32
  32. package/es/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  33. package/es/components/DateTimePicker/DisplayInput/style.css +47 -16
  34. package/es/components/DateTimePicker/DisplayInput/style.less +9 -9
  35. package/es/components/DateTimePicker/constants.d.ts +1 -1
  36. package/es/components/DateTimePicker/constants.js +17 -6
  37. package/es/components/DateTimePicker/index.js +1 -1
  38. package/es/components/DateTimePicker/style.css +7 -7
  39. package/es/components/DateTimePicker/style.less +19 -17
  40. package/es/components/DateTimePicker/transform.d.ts +4 -0
  41. package/es/components/DateTimePicker/transform.js +52 -0
  42. package/es/components/Drawer/index.d.ts +55 -2
  43. package/es/components/Drawer/index.js +3 -1
  44. package/es/components/Drawer/style.css +45 -45
  45. package/es/components/Drawer/style.less +17 -17
  46. package/es/components/Input/index.d.ts +1 -2
  47. package/es/components/Input/index.js +0 -2
  48. package/es/components/Input/style.css +47 -16
  49. package/es/components/Input/style.less +12 -12
  50. package/es/components/InputNumber/index.d.ts +1 -8
  51. package/es/components/InputNumber/index.js +1 -35
  52. package/es/components/KeyValuePair/style.less +21 -21
  53. package/es/components/Menu/Option.d.ts +10 -0
  54. package/es/components/Menu/Option.js +18 -2
  55. package/es/components/Menu/index.d.ts +1 -1
  56. package/es/components/Menu/index.js +3 -3
  57. package/es/components/Menu/style.css +20 -10
  58. package/es/components/Menu/style.less +18 -8
  59. package/es/components/Modal/style.less +30 -30
  60. package/es/components/NameExplainTooltip/style.less +10 -10
  61. package/es/components/NameLimiter/style.css +2 -4
  62. package/es/components/NameLimiter/style.less +19 -21
  63. package/es/components/OptionList/InlineOptionList/style.less +16 -16
  64. package/es/components/OptionList/OptionItem/style.css +2 -2
  65. package/es/components/OptionList/OptionItem/style.less +25 -25
  66. package/es/components/OptionList/PopoverOptionList/style.less +30 -30
  67. package/es/components/OptionList/style.css +2 -2
  68. package/es/components/OptionList/style.less +3 -3
  69. package/es/components/RadioGroup/style.css +8 -8
  70. package/es/components/RadioGroup/style.less +32 -32
  71. package/es/components/RangeInput/style.css +427 -27
  72. package/es/components/RangeInput/style.less +37 -37
  73. package/es/components/RemarkName/style.css +2 -4
  74. package/es/components/RemarkName/style.less +2 -2
  75. package/es/components/Selector/style.css +25 -29
  76. package/es/components/Selector/style.less +99 -100
  77. package/es/components/Spin/style.css +0 -1
  78. package/es/components/Spin/style.less +26 -26
  79. package/es/components/Steps/ControlButton/style.less +5 -5
  80. package/es/components/Steps/style.css +8 -6
  81. package/es/components/Steps/style.less +48 -46
  82. package/es/components/Table/ColumnTag/style.less +40 -40
  83. package/es/components/Table/index.js +7 -4
  84. package/es/components/Table/style.css +85 -27
  85. package/es/components/Table/style.less +306 -313
  86. package/es/components/Tabs/style.css +29 -1
  87. package/es/components/Tabs/style.less +33 -31
  88. package/es/components/TagList/Tag/style.less +72 -72
  89. package/es/components/TagList/TagSwitch/style.less +28 -28
  90. package/es/components/TagList/style.css +10 -10
  91. package/es/components/TagList/style.less +28 -28
  92. package/es/components/Timeline/TimelineItem/style.less +49 -49
  93. package/es/components/Timeline/style.less +23 -23
  94. package/es/components/Transfer/List/index.js +3 -3
  95. package/es/components/Transfer/List/style.css +3 -0
  96. package/es/components/Transfer/List/style.less +19 -15
  97. package/es/components/Transfer/ListBody/style.less +18 -18
  98. package/es/components/Transfer/style.css +3 -0
  99. package/es/components/Transfer/style.less +14 -14
  100. package/es/components/TreeSelector/style.css +64 -20
  101. package/es/components/TreeSelector/style.less +56 -54
  102. package/es/hoc/popContainer.d.ts +5 -0
  103. package/es/hoc/popContainer.js +37 -0
  104. package/es/index.css +3011 -2517
  105. package/es/index.d.ts +1 -1
  106. package/es/index.less +49 -50
  107. package/es/style/mixin.less +45 -45
  108. package/es/style/theme.less +389 -379
  109. package/lib/components/AutoComplete/style.css +25 -29
  110. package/lib/components/AutoComplete/style.less +8 -8
  111. package/lib/components/Breadcrumb/style.less +9 -9
  112. package/lib/components/Button/index.d.ts +0 -8
  113. package/lib/components/Button/index.js +4 -4
  114. package/lib/components/Button/style.css +100 -104
  115. package/lib/components/Button/style.less +51 -62
  116. package/lib/components/Card/RowExtra/style.less +8 -8
  117. package/lib/components/Card/SearchInput/style.less +8 -8
  118. package/lib/components/Card/style.css +28 -2
  119. package/lib/components/Card/style.less +11 -11
  120. package/lib/components/CheckTransformList/style.css +50 -21
  121. package/lib/components/CheckTransformList/style.less +35 -35
  122. package/lib/components/Checkbox/style.css +1 -1
  123. package/lib/components/Checkbox/style.less +5 -5
  124. package/lib/components/CheckboxList/index.d.ts +2 -0
  125. package/lib/components/CheckboxList/index.js +2 -2
  126. package/lib/components/CheckboxList/style.css +5 -3
  127. package/lib/components/CheckboxList/style.less +11 -9
  128. package/lib/components/Collapse/style.css +16 -12
  129. package/lib/components/Collapse/style.less +57 -57
  130. package/lib/components/CollapsiblePanel/style.css +4 -4
  131. package/lib/components/CollapsiblePanel/style.less +63 -63
  132. package/lib/components/DateTimePicker/Base/style.css +378 -49
  133. package/lib/components/DateTimePicker/Base/style.less +160 -164
  134. package/lib/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  135. package/lib/components/DateTimePicker/BaseMobile/style.css +4 -4
  136. package/lib/components/DateTimePicker/BaseMobile/style.less +32 -32
  137. package/lib/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  138. package/lib/components/DateTimePicker/DisplayInput/style.css +47 -16
  139. package/lib/components/DateTimePicker/DisplayInput/style.less +9 -9
  140. package/lib/components/DateTimePicker/constants.d.ts +1 -1
  141. package/lib/components/DateTimePicker/constants.js +17 -6
  142. package/lib/components/DateTimePicker/index.js +1 -1
  143. package/lib/components/DateTimePicker/style.css +7 -7
  144. package/lib/components/DateTimePicker/style.less +19 -17
  145. package/lib/components/DateTimePicker/transform.d.ts +4 -0
  146. package/lib/components/DateTimePicker/transform.js +53 -0
  147. package/lib/components/Drawer/index.d.ts +55 -2
  148. package/lib/components/Drawer/index.js +3 -1
  149. package/lib/components/Drawer/style.css +45 -45
  150. package/lib/components/Drawer/style.less +17 -17
  151. package/lib/components/Input/index.d.ts +1 -2
  152. package/lib/components/Input/index.js +0 -2
  153. package/lib/components/Input/style.css +47 -16
  154. package/lib/components/Input/style.less +12 -12
  155. package/lib/components/InputNumber/index.d.ts +1 -8
  156. package/lib/components/InputNumber/index.js +1 -38
  157. package/lib/components/KeyValuePair/style.less +21 -21
  158. package/lib/components/Menu/Option.d.ts +10 -0
  159. package/lib/components/Menu/Option.js +18 -2
  160. package/lib/components/Menu/index.d.ts +1 -1
  161. package/lib/components/Menu/index.js +3 -3
  162. package/lib/components/Menu/style.css +20 -10
  163. package/lib/components/Menu/style.less +18 -8
  164. package/lib/components/Modal/style.less +30 -30
  165. package/lib/components/NameExplainTooltip/style.less +10 -10
  166. package/lib/components/NameLimiter/style.css +2 -4
  167. package/lib/components/NameLimiter/style.less +19 -21
  168. package/lib/components/OptionList/InlineOptionList/style.less +16 -16
  169. package/lib/components/OptionList/OptionItem/style.css +2 -2
  170. package/lib/components/OptionList/OptionItem/style.less +25 -25
  171. package/lib/components/OptionList/PopoverOptionList/style.less +30 -30
  172. package/lib/components/OptionList/style.css +2 -2
  173. package/lib/components/OptionList/style.less +3 -3
  174. package/lib/components/RadioGroup/style.css +8 -8
  175. package/lib/components/RadioGroup/style.less +32 -32
  176. package/lib/components/RangeInput/style.css +427 -27
  177. package/lib/components/RangeInput/style.less +37 -37
  178. package/lib/components/RemarkName/style.css +2 -4
  179. package/lib/components/RemarkName/style.less +2 -2
  180. package/lib/components/Selector/style.css +25 -29
  181. package/lib/components/Selector/style.less +99 -100
  182. package/lib/components/Spin/style.css +0 -1
  183. package/lib/components/Spin/style.less +26 -26
  184. package/lib/components/Steps/ControlButton/style.less +5 -5
  185. package/lib/components/Steps/style.css +8 -6
  186. package/lib/components/Steps/style.less +48 -46
  187. package/lib/components/Table/ColumnTag/style.less +40 -40
  188. package/lib/components/Table/index.js +6 -3
  189. package/lib/components/Table/style.css +85 -27
  190. package/lib/components/Table/style.less +306 -313
  191. package/lib/components/Tabs/style.css +29 -1
  192. package/lib/components/Tabs/style.less +33 -31
  193. package/lib/components/TagList/Tag/style.less +72 -72
  194. package/lib/components/TagList/TagSwitch/style.less +28 -28
  195. package/lib/components/TagList/style.css +10 -10
  196. package/lib/components/TagList/style.less +28 -28
  197. package/lib/components/Timeline/TimelineItem/style.less +49 -49
  198. package/lib/components/Timeline/style.less +23 -23
  199. package/lib/components/Transfer/List/index.js +3 -3
  200. package/lib/components/Transfer/List/style.css +3 -0
  201. package/lib/components/Transfer/List/style.less +19 -15
  202. package/lib/components/Transfer/ListBody/style.less +18 -18
  203. package/lib/components/Transfer/style.css +3 -0
  204. package/lib/components/Transfer/style.less +14 -14
  205. package/lib/components/TreeSelector/style.css +64 -20
  206. package/lib/components/TreeSelector/style.less +56 -54
  207. package/lib/hoc/popContainer.d.ts +5 -0
  208. package/lib/hoc/popContainer.js +47 -0
  209. package/lib/index.css +5102 -4608
  210. package/lib/index.d.ts +1 -1
  211. package/lib/index.less +49 -50
  212. package/lib/style/mixin.less +45 -45
  213. package/lib/style/theme.less +389 -379
  214. package/package.json +79 -108
  215. package/es/components/Input/NumberInput/index.d.ts +0 -29
  216. package/es/components/Input/NumberInput/index.js +0 -116
  217. package/es/components/InputNumber/style.css +0 -400
  218. package/es/components/InputNumber/style.less +0 -45
  219. package/lib/components/Input/NumberInput/index.d.ts +0 -29
  220. package/lib/components/Input/NumberInput/index.js +0 -121
  221. package/lib/components/InputNumber/style.css +0 -400
  222. package/lib/components/InputNumber/style.less +0 -45
@@ -1,62 +1,51 @@
1
- @import 'antd/lib/button/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-button {
5
- box-shadow: none;
6
-
7
- &.@{sdk-prefix}-button-disabled {
8
- background: @button-disabled-bg!important;
9
- color: @button-disabled-color!important;
10
- border-color: @button-disabled-border-color!important;
11
- pointer-events: none;
12
- text-shadow: none;
13
- }
14
-
15
- // type
16
- &.@{sdk-prefix}-type-default {
17
- background: @button-default-bg;
18
- color: @button-default-color;
19
- border: 1px solid @button-default-border-color;
20
- &:hover,
21
- &:focus {
22
- background: @button-default-hover-bg;
23
- border-color: @button-default-hover-border-color;
24
- }
25
- }
26
- &.@{sdk-prefix}-type-primary {
27
- background: @button-primary-bg;
28
- color: @button-primary-color;
29
- border: 1px solid @button-primary-border-color;
30
- &:hover,
31
- &:focus {
32
- background: @button-primary-hover-bg;
33
- color: @button-primary-hover-color;
34
- border-color: @button-primary-hover-border-color;
35
- }
36
- }
37
-
38
- // size
39
- &.@{sdk-prefix}-size-large {
40
- font-size: 16px;
41
- padding: 0 20px;
42
- height: 32px;
43
- }
44
- &.@{sdk-prefix}-size-default {
45
- font-size: 14px;
46
- padding: 0 16px;
47
- height: 32px;
48
- }
49
- &.@{sdk-prefix}-size-small {
50
- font-size: 12px;
51
- padding: 4px 14px;
52
- }
53
- &.@{sdk-prefix}-size-mini {
54
- font-size: 10px;
55
- padding: 2px 6px;
56
- }
57
-
58
- .anticon {
59
- color: inherit;
60
- vertical-align: middle;
61
- }
62
- }
1
+ @import 'antd/lib/button/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-button {
5
+ box-shadow: none;
6
+
7
+ &.@{sdk-prefix}-button-disabled {
8
+ background: @button-disabled-bg;
9
+ color: @button-disabled-color;
10
+ border-color: @button-disabled-border-color;
11
+ pointer-events: none;
12
+ text-shadow: none;
13
+ }
14
+
15
+ // type
16
+ &.@{sdk-prefix}-type-default {
17
+ background: @button-default-bg;
18
+ color: @button-default-color;
19
+ border: 1px solid @button-default-border-color;
20
+ &:hover,
21
+ &:focus {
22
+ background: @button-default-hover-bg;
23
+ border-color: @button-default-hover-border-color;
24
+ }
25
+ }
26
+
27
+ // size
28
+ &.@{sdk-prefix}-size-large {
29
+ font-size: 16px;
30
+ padding: 0 20px;
31
+ height: 32px;
32
+ }
33
+ &.@{sdk-prefix}-size-default {
34
+ font-size: 14px;
35
+ padding: 0 16px;
36
+ height: 32px;
37
+ }
38
+ &.@{sdk-prefix}-size-small {
39
+ font-size: 12px;
40
+ padding: 4px 14px;
41
+ }
42
+ &.@{sdk-prefix}-size-mini {
43
+ font-size: 10px;
44
+ padding: 2px 6px;
45
+ }
46
+
47
+ .anticon {
48
+ color: inherit;
49
+ vertical-align: middle;
50
+ }
51
+ }
@@ -1,8 +1,8 @@
1
- @import 'antd/lib/grid/style/index.less';
2
- @import '../../../style/theme.less';
3
-
4
- .@{sdk-prefix}-card-row-extra {
5
- button {
6
- min-width: 80px;
7
- }
8
- }
1
+ @import 'antd/lib/grid/style/index.less';
2
+ @import '../../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-card-row-extra {
5
+ button {
6
+ min-width: 80px;
7
+ }
8
+ }
@@ -1,8 +1,8 @@
1
- @import '../../../style/theme.less';
2
-
3
- .@{sdk-prefix}-card-search-input {
4
- min-width: 200px;
5
- i {
6
- color: @input-placeholder-color;
7
- }
8
- }
1
+ @import '../../../style/theme.less';
2
+
3
+ .@{sdk-prefix}-card-search-input {
4
+ min-width: 200px;
5
+ i {
6
+ color: @input-placeholder-color;
7
+ }
8
+ }
@@ -80,14 +80,14 @@
80
80
  margin-top: 0;
81
81
  margin-bottom: 0;
82
82
  }
83
- .ant-card-head .ant-tabs {
83
+ .ant-card-head .ant-tabs-top {
84
84
  clear: both;
85
85
  margin-bottom: -17px;
86
86
  color: rgba(0, 0, 0, 0.65);
87
87
  font-weight: normal;
88
88
  font-size: 14px;
89
89
  }
90
- .ant-card-head .ant-tabs-bar {
90
+ .ant-card-head .ant-tabs-top-bar {
91
91
  border-bottom: 1px solid #e5e5e5;
92
92
  }
93
93
  .ant-card-extra {
@@ -679,6 +679,12 @@
679
679
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
680
680
  }
681
681
  .ant-tabs-dropdown-menu-item {
682
+ display: -webkit-box;
683
+ display: -ms-flexbox;
684
+ display: flex;
685
+ -webkit-box-align: center;
686
+ -ms-flex-align: center;
687
+ align-items: center;
682
688
  min-width: 120px;
683
689
  margin: 0;
684
690
  padding: 5px 12px;
@@ -693,6 +699,26 @@
693
699
  -webkit-transition: all 0.3s;
694
700
  transition: all 0.3s;
695
701
  }
702
+ .ant-tabs-dropdown-menu-item > span {
703
+ -webkit-box-flex: 1;
704
+ -ms-flex: 1;
705
+ flex: 1;
706
+ white-space: nowrap;
707
+ }
708
+ .ant-tabs-dropdown-menu-item-remove {
709
+ -webkit-box-flex: 0;
710
+ -ms-flex: none;
711
+ flex: none;
712
+ margin-left: 12px;
713
+ color: rgba(0, 0, 0, 0.45);
714
+ font-size: 12px;
715
+ background: transparent;
716
+ border: 0;
717
+ cursor: pointer;
718
+ }
719
+ .ant-tabs-dropdown-menu-item-remove:hover {
720
+ color: #2c6dd2;
721
+ }
696
722
  .ant-tabs-dropdown-menu-item:hover {
697
723
  background: rgba(44, 109, 210, 0.05);
698
724
  }
@@ -1,11 +1,11 @@
1
- @import 'antd/lib/card/style/index.less';
2
- @import 'antd/lib/tabs/style/index.less';
3
- @import '../../style/theme.less';
4
-
5
- .@{sdk-prefix}-card {
6
- .@{ant-prefix}-card-head {
7
- .@{ant-prefix}-card-extra {
8
- padding: 0;
9
- }
10
- }
11
- }
1
+ @import 'antd/lib/card/style/index.less';
2
+ @import 'antd/lib/tabs/style/index.less';
3
+ @import '../../style/theme.less';
4
+
5
+ .@{sdk-prefix}-card {
6
+ .@{ant-prefix}-card-head {
7
+ .@{ant-prefix}-card-extra {
8
+ padding: 0;
9
+ }
10
+ }
11
+ }
@@ -201,7 +201,7 @@
201
201
  .ant-checkbox-inner::after {
202
202
  position: absolute;
203
203
  top: 50%;
204
- left: 22%;
204
+ left: 21.5%;
205
205
  display: table;
206
206
  width: 5.71428571px;
207
207
  height: 9.14285714px;
@@ -381,6 +381,7 @@
381
381
  border-radius: 2px;
382
382
  -webkit-transition: all 0.3s;
383
383
  transition: all 0.3s;
384
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
384
385
  display: -webkit-inline-box;
385
386
  display: -ms-inline-flexbox;
386
387
  display: inline-flex;
@@ -390,12 +391,20 @@
390
391
  }
391
392
  .ant-input-affix-wrapper::-webkit-input-placeholder {
392
393
  color: #bfbfbf;
394
+ -webkit-user-select: none;
395
+ user-select: none;
393
396
  }
394
397
  .ant-input-affix-wrapper::-ms-input-placeholder {
395
398
  color: #bfbfbf;
399
+ -ms-user-select: none;
400
+ user-select: none;
396
401
  }
397
402
  .ant-input-affix-wrapper::placeholder {
398
403
  color: #bfbfbf;
404
+ -webkit-user-select: none;
405
+ -moz-user-select: none;
406
+ -ms-user-select: none;
407
+ user-select: none;
399
408
  }
400
409
  .ant-input-affix-wrapper:placeholder-shown {
401
410
  text-overflow: ellipsis;
@@ -410,11 +419,11 @@
410
419
  }
411
420
  .ant-input-affix-wrapper:focus,
412
421
  .ant-input-affix-wrapper-focused {
413
- border-color: #528cde;
422
+ border-color: #9ca0a6;
423
+ -webkit-box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
424
+ box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
414
425
  border-right-width: 1px !important;
415
426
  outline: 0;
416
- -webkit-box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
417
- box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
418
427
  }
419
428
  .ant-input-rtl .ant-input-affix-wrapper:focus,
420
429
  .ant-input-rtl .ant-input-affix-wrapper-focused {
@@ -424,6 +433,9 @@
424
433
  .ant-input-affix-wrapper-disabled {
425
434
  color: rgba(0, 0, 0, 0.25);
426
435
  background-color: #f5f5f5;
436
+ border-color: #bfbfbf;
437
+ -webkit-box-shadow: none;
438
+ box-shadow: none;
427
439
  cursor: not-allowed;
428
440
  opacity: 1;
429
441
  }
@@ -434,6 +446,9 @@
434
446
  .ant-input-affix-wrapper[disabled] {
435
447
  color: rgba(0, 0, 0, 0.25);
436
448
  background-color: #f5f5f5;
449
+ border-color: #bfbfbf;
450
+ -webkit-box-shadow: none;
451
+ box-shadow: none;
437
452
  cursor: not-allowed;
438
453
  opacity: 1;
439
454
  }
@@ -523,7 +538,7 @@ textarea.ant-input-affix-wrapper {
523
538
  margin-left: 4px;
524
539
  }
525
540
  .anticon.ant-input-clear-icon {
526
- margin: 0 4px;
541
+ margin: 0;
527
542
  color: rgba(0, 0, 0, 0.25);
528
543
  font-size: 12px;
529
544
  vertical-align: -1px;
@@ -540,8 +555,8 @@ textarea.ant-input-affix-wrapper {
540
555
  .anticon.ant-input-clear-icon-hidden {
541
556
  visibility: hidden;
542
557
  }
543
- .anticon.ant-input-clear-icon:last-child {
544
- margin-right: 0;
558
+ .anticon.ant-input-clear-icon-has-suffix {
559
+ margin: 0 4px;
545
560
  }
546
561
  .ant-input-affix-wrapper-textarea-with-clear-btn {
547
562
  padding: 0 !important;
@@ -577,18 +592,27 @@ textarea.ant-input-affix-wrapper {
577
592
  border-radius: 2px;
578
593
  -webkit-transition: all 0.3s;
579
594
  transition: all 0.3s;
595
+ /* stylelint-disable-next-line selector-no-vendor-prefix */
580
596
  }
581
597
  .ant-input::-moz-placeholder {
582
598
  opacity: 1;
583
599
  }
584
600
  .ant-input::-webkit-input-placeholder {
585
601
  color: #bfbfbf;
602
+ -webkit-user-select: none;
603
+ user-select: none;
586
604
  }
587
605
  .ant-input::-ms-input-placeholder {
588
606
  color: #bfbfbf;
607
+ -ms-user-select: none;
608
+ user-select: none;
589
609
  }
590
610
  .ant-input::placeholder {
591
611
  color: #bfbfbf;
612
+ -webkit-user-select: none;
613
+ -moz-user-select: none;
614
+ -ms-user-select: none;
615
+ user-select: none;
592
616
  }
593
617
  .ant-input:placeholder-shown {
594
618
  text-overflow: ellipsis;
@@ -603,11 +627,11 @@ textarea.ant-input-affix-wrapper {
603
627
  }
604
628
  .ant-input:focus,
605
629
  .ant-input-focused {
606
- border-color: #528cde;
630
+ border-color: #9ca0a6;
631
+ -webkit-box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
632
+ box-shadow: 0 0 0 2px rgba(122, 134, 154, 0.2);
607
633
  border-right-width: 1px !important;
608
634
  outline: 0;
609
- -webkit-box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
610
- box-shadow: 0 0 0 2px rgba(44, 109, 210, 0.2);
611
635
  }
612
636
  .ant-input-rtl .ant-input:focus,
613
637
  .ant-input-rtl .ant-input-focused {
@@ -617,6 +641,9 @@ textarea.ant-input-affix-wrapper {
617
641
  .ant-input-disabled {
618
642
  color: rgba(0, 0, 0, 0.25);
619
643
  background-color: #f5f5f5;
644
+ border-color: #bfbfbf;
645
+ -webkit-box-shadow: none;
646
+ box-shadow: none;
620
647
  cursor: not-allowed;
621
648
  opacity: 1;
622
649
  }
@@ -627,6 +654,9 @@ textarea.ant-input-affix-wrapper {
627
654
  .ant-input[disabled] {
628
655
  color: rgba(0, 0, 0, 0.25);
629
656
  background-color: #f5f5f5;
657
+ border-color: #bfbfbf;
658
+ -webkit-box-shadow: none;
659
+ box-shadow: none;
630
660
  cursor: not-allowed;
631
661
  opacity: 1;
632
662
  }
@@ -814,10 +844,6 @@ textarea.ant-input {
814
844
  .ant-input-group-sm .ant-select-single .ant-select-selector {
815
845
  height: 26px;
816
846
  }
817
- .ant-input-group .ant-input-affix-wrapper:not(:first-child) {
818
- border-top-left-radius: 0;
819
- border-bottom-left-radius: 0;
820
- }
821
847
  .ant-input-group .ant-input-affix-wrapper:not(:last-child) {
822
848
  border-top-right-radius: 0;
823
849
  border-bottom-right-radius: 0;
@@ -826,6 +852,11 @@ textarea.ant-input {
826
852
  border-top-left-radius: 2px;
827
853
  border-bottom-left-radius: 2px;
828
854
  }
855
+ .ant-input-group .ant-input-affix-wrapper:not(:first-child),
856
+ .ant-input-search .ant-input-group .ant-input-affix-wrapper:not(:first-child) {
857
+ border-top-left-radius: 0;
858
+ border-bottom-left-radius: 0;
859
+ }
829
860
  .ant-input-group.ant-input-group-compact {
830
861
  display: block;
831
862
  }
@@ -1080,9 +1111,9 @@ textarea.ant-input {
1080
1111
  .ant-input-textarea-rtl.ant-input-textarea-show-count::after {
1081
1112
  text-align: left;
1082
1113
  }
1083
- .ant-input-affix-wrapper-rtl .ant-input-clear-icon:last-child {
1084
- margin-right: 4px;
1085
- margin-left: 0;
1114
+ .ant-input-affix-wrapper-rtl .ant-input-clear-icon-has-suffix {
1115
+ margin-right: 0;
1116
+ margin-left: 4px;
1086
1117
  }
1087
1118
  .ant-input-affix-wrapper-rtl .ant-input-clear-icon {
1088
1119
  right: auto;
@@ -1390,11 +1421,9 @@ textarea.ant-input {
1390
1421
  overflow: hidden;
1391
1422
  }
1392
1423
  .pandora-sdk-name-limit-tooltip .ant-tooltip-inner {
1393
- max-width: 400px !important;
1394
- max-height: 200px !important;
1424
+ max-width: 400px;
1425
+ max-height: 200px;
1395
1426
  overflow: auto;
1396
- line-height: 22px;
1397
- font-size: 12px;
1398
1427
  }
1399
1428
  .ant-btn {
1400
1429
  padding: 4px 15px;
@@ -1,35 +1,35 @@
1
- @import 'antd/lib/divider/style/index.less';
2
- @import 'antd/lib/checkbox/style/index.less';
3
- @import 'antd/lib/input/style/index.less';
4
- @import '../NameLimiter/style.less';
5
- @import '../../style/theme.less';
6
-
7
- .@{sdk-prefix}-check-transform-list {
8
- display: flex;
9
- margin-top: 20px;
10
- padding-left: 5px;
11
- padding-right: 5px;
12
- .@{sdk-prefix}-check-transform-divider {
13
- height: auto;
14
- margin-left: 40px;
15
- margin-right: 40px;
16
- }
17
- }
18
- .@{sdk-prefix}-check-transform {
19
- flex: 1;
20
- .@{sdk-prefix}-check-transform-header {
21
- margin-bottom: 10px;
22
- }
23
- .@{sdk-prefix}-check-transform-search {
24
- width: 100%;
25
- height: 40px;
26
- margin-bottom: 10px;
27
- }
28
- .@{sdk-prefix}-check-transform-checkBox {
29
- line-height: 40px;
30
-
31
- .@{sdk-prefix}-check-transform-checkbox-group {
32
- line-height: 40px;
33
- }
34
- }
35
- }
1
+ @import 'antd/lib/divider/style/index.less';
2
+ @import 'antd/lib/checkbox/style/index.less';
3
+ @import 'antd/lib/input/style/index.less';
4
+ @import '../NameLimiter/style.less';
5
+ @import '../../style/theme.less';
6
+
7
+ .@{sdk-prefix}-check-transform-list {
8
+ display: flex;
9
+ margin-top: 20px;
10
+ padding-left: 5px;
11
+ padding-right: 5px;
12
+ .@{sdk-prefix}-check-transform-divider {
13
+ height: auto;
14
+ margin-left: 40px;
15
+ margin-right: 40px;
16
+ }
17
+ }
18
+ .@{sdk-prefix}-check-transform {
19
+ flex: 1;
20
+ .@{sdk-prefix}-check-transform-header {
21
+ margin-bottom: 10px;
22
+ }
23
+ .@{sdk-prefix}-check-transform-search {
24
+ width: 100%;
25
+ height: 40px;
26
+ margin-bottom: 10px;
27
+ }
28
+ .@{sdk-prefix}-check-transform-checkBox {
29
+ line-height: 40px;
30
+
31
+ .@{sdk-prefix}-check-transform-checkbox-group {
32
+ line-height: 40px;
33
+ }
34
+ }
35
+ }
@@ -87,7 +87,7 @@
87
87
  .ant-checkbox-inner::after {
88
88
  position: absolute;
89
89
  top: 50%;
90
- left: 22%;
90
+ left: 21.5%;
91
91
  display: table;
92
92
  width: 5.71428571px;
93
93
  height: 9.14285714px;
@@ -1,5 +1,5 @@
1
- @import 'antd/lib/checkbox/style/index.less';
2
-
3
- .@{ant-prefix}-checkbox-inner::after {
4
- left: 20%;
5
- }
1
+ @import 'antd/lib/checkbox/style/index.less';
2
+
3
+ .@{ant-prefix}-checkbox-inner::after {
4
+ left: 20%;
5
+ }
@@ -7,6 +7,7 @@ export interface IOptionItem {
7
7
  indeterminate?: boolean | ((item: IOptionItem) => boolean);
8
8
  disabled?: boolean | ((item: IOptionItem) => boolean);
9
9
  }
10
+ export { CheckboxValueType };
10
11
  export interface ICheckboxListProps {
11
12
  /**
12
13
  * 选项可以是对象数组,也可以是字符串数组;
@@ -23,5 +24,6 @@ export interface ICheckboxListProps {
23
24
  */
24
25
  itemClassName?: string;
25
26
  onChange?: (value: CheckboxValueType[]) => void;
27
+ disabled?: boolean;
26
28
  }
27
29
  export default function CheckboxList(props: ICheckboxListProps): JSX.Element;
@@ -4,8 +4,8 @@ import classnames from 'classnames';
4
4
  import { SDK_PREFIX } from '../../constants/style';
5
5
  var CheckboxGroup = Checkbox.Group;
6
6
  export default function CheckboxList(props) {
7
- var options = props.options, itemClassName = props.itemClassName, value = props.value, onChange = props.onChange;
8
- return (React.createElement(CheckboxGroup, { value: value, onChange: onChange }, options &&
7
+ var options = props.options, itemClassName = props.itemClassName, value = props.value, onChange = props.onChange, disabled = props.disabled;
8
+ return (React.createElement(CheckboxGroup, { value: value, onChange: onChange, disabled: disabled }, options &&
9
9
  options.map(function (option) {
10
10
  // 将 option string的形式进行格式化
11
11
  var optionItem = typeof option === 'string' ? { value: option } : option;
@@ -87,7 +87,7 @@
87
87
  .ant-checkbox-inner::after {
88
88
  position: absolute;
89
89
  top: 50%;
90
- left: 22%;
90
+ left: 21.5%;
91
91
  display: table;
92
92
  width: 5.71428571px;
93
93
  height: 9.14285714px;
@@ -259,8 +259,10 @@
259
259
  padding: 0 7px;
260
260
  }
261
261
  .pandora-sdk-checkbox-item {
262
- line-height: 25px !important;
263
262
  white-space: nowrap;
264
263
  width: 100%;
265
- margin-left: 0 !important;
264
+ }
265
+ .pandora-sdk-checkbox-item.ant-checkbox-wrapper {
266
+ margin-left: 0;
267
+ line-height: 25px;
266
268
  }
@@ -1,9 +1,11 @@
1
- @import 'antd/lib/checkbox/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-checkbox-item {
5
- line-height: 25px !important;
6
- white-space: nowrap;
7
- width: 100%;
8
- margin-left: 0 !important;
9
- }
1
+ @import 'antd/lib/checkbox/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-checkbox-item {
5
+ white-space: nowrap;
6
+ width: 100%;
7
+ &.@{ant-prefix}-checkbox-wrapper {
8
+ margin-left: 0;
9
+ line-height: 25px;
10
+ }
11
+ }
@@ -27,7 +27,14 @@
27
27
  border-radius: 0 0 2px 2px;
28
28
  }
29
29
  .ant-collapse > .ant-collapse-item > .ant-collapse-header {
30
- position: relative;
30
+ display: -webkit-box;
31
+ display: -ms-flexbox;
32
+ display: flex;
33
+ -ms-flex-wrap: nowrap;
34
+ flex-wrap: nowrap;
35
+ -webkit-box-align: start;
36
+ -ms-flex-align: start;
37
+ align-items: flex-start;
31
38
  padding: 12px 16px;
32
39
  color: #333;
33
40
  line-height: 1.5715;
@@ -35,15 +42,6 @@
35
42
  -webkit-transition: all 0.3s, visibility 0s;
36
43
  transition: all 0.3s, visibility 0s;
37
44
  }
38
- .ant-collapse > .ant-collapse-item > .ant-collapse-header::before {
39
- display: table;
40
- content: '';
41
- }
42
- .ant-collapse > .ant-collapse-item > .ant-collapse-header::after {
43
- display: table;
44
- clear: both;
45
- content: '';
46
- }
47
45
  .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {
48
46
  display: inline-block;
49
47
  margin-right: 12px;
@@ -57,7 +55,7 @@
57
55
  transition: transform 0.24s, -webkit-transform 0.24s;
58
56
  }
59
57
  .ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-extra {
60
- float: right;
58
+ margin-left: auto;
61
59
  }
62
60
  .ant-collapse > .ant-collapse-item > .ant-collapse-header:focus {
63
61
  outline: none;
@@ -72,6 +70,7 @@
72
70
  padding-left: 12px;
73
71
  }
74
72
  .ant-collapse-icon-position-right > .ant-collapse-item > .ant-collapse-header {
73
+ position: relative;
75
74
  padding: 12px 16px;
76
75
  padding-right: 40px;
77
76
  }
@@ -143,12 +142,17 @@
143
142
  padding: 12px 16px;
144
143
  padding-right: 40px;
145
144
  }
145
+ .ant-collapse-rtl.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow {
146
+ margin-right: 0;
147
+ margin-left: 12px;
148
+ }
146
149
  .ant-collapse-rtl.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-arrow svg {
147
150
  -webkit-transform: rotate(180deg);
148
151
  transform: rotate(180deg);
149
152
  }
150
153
  .ant-collapse-rtl.ant-collapse > .ant-collapse-item > .ant-collapse-header .ant-collapse-extra {
151
- float: left;
154
+ margin-right: auto;
155
+ margin-left: 0;
152
156
  }
153
157
  .ant-collapse-rtl.ant-collapse > .ant-collapse-item.ant-collapse-no-arrow > .ant-collapse-header {
154
158
  padding-right: 12px;