@qn-pandora/pandora-component 4.0.12 → 4.0.14

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 (79) hide show
  1. package/CHANGELOG.json +323 -303
  2. package/CHANGELOG.md +123 -115
  3. package/es/components/Descriptions/index.d.ts +13 -0
  4. package/es/components/Descriptions/index.js +57 -0
  5. package/es/components/Descriptions/style.css +337 -0
  6. package/es/components/Descriptions/style.less +15 -0
  7. package/es/components/Drawer/CloseIcon/index.d.ts +7 -0
  8. package/es/components/Drawer/CloseIcon/index.js +13 -0
  9. package/es/components/Drawer/CloseIcon/style.css +12 -0
  10. package/es/components/Drawer/CloseIcon/style.less +8 -0
  11. package/es/components/Drawer/index.d.ts +17 -3
  12. package/es/components/Drawer/index.js +73 -11
  13. package/es/components/Drawer/style.css +11 -3
  14. package/es/components/Drawer/style.less +12 -3
  15. package/es/components/Modal/index.js +3 -2
  16. package/es/components/Table/index.d.ts +2 -0
  17. package/es/components/Table/index.js +27 -5
  18. package/es/components/Tabs/index.d.ts +4 -0
  19. package/es/components/Tabs/index.js +2 -2
  20. package/es/constants/language/en.js +3 -1
  21. package/es/constants/language/modal/en.d.ts +2 -0
  22. package/es/constants/language/modal/en.js +3 -0
  23. package/es/constants/language/modal/type.d.ts +4 -0
  24. package/es/constants/language/modal/type.js +3 -0
  25. package/es/constants/language/modal/zh.d.ts +2 -0
  26. package/es/constants/language/modal/zh.js +3 -0
  27. package/es/constants/language/type.d.ts +2 -0
  28. package/es/constants/language/zh.js +3 -1
  29. package/es/constants/style.d.ts +1 -0
  30. package/es/constants/style.js +1 -0
  31. package/es/hoc/modalPopupContainer.d.ts +6 -0
  32. package/es/hoc/{popContainer.js → modalPopupContainer.js} +8 -3
  33. package/es/index.css +4670 -4647
  34. package/es/index.d.ts +1 -0
  35. package/es/index.js +1 -0
  36. package/es/index.less +19 -17
  37. package/es/style/theme.less +6 -2
  38. package/es/utils/dom.d.ts +1 -0
  39. package/es/utils/dom.js +42 -0
  40. package/lib/components/Descriptions/index.d.ts +13 -0
  41. package/lib/components/Descriptions/index.js +69 -0
  42. package/lib/components/Descriptions/style.css +337 -0
  43. package/lib/components/Descriptions/style.less +15 -0
  44. package/lib/components/Drawer/CloseIcon/index.d.ts +7 -0
  45. package/lib/components/Drawer/CloseIcon/index.js +18 -0
  46. package/lib/components/Drawer/CloseIcon/style.css +12 -0
  47. package/lib/components/Drawer/CloseIcon/style.less +8 -0
  48. package/lib/components/Drawer/index.d.ts +17 -3
  49. package/lib/components/Drawer/index.js +72 -10
  50. package/lib/components/Drawer/style.css +11 -3
  51. package/lib/components/Drawer/style.less +12 -3
  52. package/lib/components/Modal/index.js +3 -2
  53. package/lib/components/Table/index.d.ts +2 -0
  54. package/lib/components/Table/index.js +27 -5
  55. package/lib/components/Tabs/index.d.ts +4 -0
  56. package/lib/components/Tabs/index.js +2 -2
  57. package/lib/constants/language/en.js +4 -2
  58. package/lib/constants/language/modal/en.d.ts +2 -0
  59. package/lib/constants/language/modal/en.js +5 -0
  60. package/lib/constants/language/modal/type.d.ts +4 -0
  61. package/lib/constants/language/modal/type.js +5 -0
  62. package/lib/constants/language/modal/zh.d.ts +2 -0
  63. package/lib/constants/language/modal/zh.js +5 -0
  64. package/lib/constants/language/type.d.ts +2 -0
  65. package/lib/constants/language/zh.js +4 -2
  66. package/lib/constants/style.d.ts +1 -0
  67. package/lib/constants/style.js +1 -0
  68. package/lib/hoc/modalPopupContainer.d.ts +6 -0
  69. package/lib/hoc/{popContainer.js → modalPopupContainer.js} +9 -4
  70. package/lib/index.css +13745 -13722
  71. package/lib/index.d.ts +1 -0
  72. package/lib/index.js +2 -0
  73. package/lib/index.less +20 -18
  74. package/lib/style/theme.less +6 -2
  75. package/lib/utils/dom.d.ts +1 -0
  76. package/lib/utils/dom.js +45 -0
  77. package/package.json +5 -5
  78. package/es/hoc/popContainer.d.ts +0 -5
  79. package/lib/hoc/popContainer.d.ts +0 -5
package/CHANGELOG.md CHANGED
@@ -1,115 +1,123 @@
1
- # Change Log - @qn-pandora/pandora-component
2
-
3
- This log was last generated on Mon, 29 May 2023 10:29:42 GMT and should not be manually modified.
4
-
5
- ## 4.0.12
6
-
7
- Mon, 29 May 2023 10:29:42 GMT
8
-
9
- ### Patches
10
-
11
- - 2023.05.29 发包
12
-
13
- ## 4.0.11
14
-
15
- Wed, 24 May 2023 07:19:25 GMT
16
-
17
- ### Patches
18
-
19
- - 2023.05.24 发包
20
-
21
- ## 4.0.10
22
-
23
- Tue, 23 May 2023 03:12:29 GMT
24
-
25
- ### Patches
26
-
27
- - 2023.05.23 发布
28
-
29
- ## 4.0.9
30
-
31
- Wed, 19 Apr 2023 03:15:25 GMT
32
-
33
- ### Patches
34
-
35
- - 2023.04.19 发包
36
-
37
- ## 4.0.8
38
-
39
- Tue, 04 Apr 2023 08:26:02 GMT
40
-
41
- ### Patches
42
-
43
- - 2023.04.04
44
-
45
- ## 4.0.7
46
-
47
- Thu, 23 Mar 2023 07:12:05 GMT
48
-
49
- ### Patches
50
-
51
- - 2023.03.23 发布
52
-
53
- ## 4.0.6
54
-
55
- Mon, 13 Mar 2023 11:30:17 GMT
56
-
57
- ### Patches
58
-
59
- - 2023.03.13 发布
60
-
61
- ## 4.0.5
62
-
63
- Wed, 15 Feb 2023 09:26:50 GMT
64
-
65
- ### Patches
66
-
67
- - 2023.02.15 发布
68
-
69
- ## 4.0.4
70
-
71
- Wed, 11 Jan 2023 08:25:05 GMT
72
-
73
- ### Patches
74
-
75
- - 2023-01-11 发布
76
-
77
- ## 4.0.3
78
-
79
- Tue, 10 Jan 2023 03:03:58 GMT
80
-
81
- ### Patches
82
-
83
- - 2023-01-10 发布
84
-
85
- ## 4.0.2
86
-
87
- Tue, 29 Nov 2022 03:37:07 GMT
88
-
89
- ### Patches
90
-
91
- - 2022.11.29 发布
92
-
93
- ## 4.0.1
94
-
95
- Mon, 17 Oct 2022 06:49:55 GMT
96
-
97
- ### Patches
98
-
99
- - 22 年 10 月 16 日发布
100
-
101
- ## 4.0.0
102
-
103
- Tue, 14 Jun 2022 09:21:39 GMT
104
-
105
- ### Breaking changes
106
-
107
- - 很久没发版了,统一发个大版本
108
-
109
- ## 3.0.0
110
-
111
- Mon, 20 Dec 2021 11:46:43 GMT
112
-
113
- ### Breaking changes
114
-
115
- - 仓库迁移至 rush 后统一发个大版本
1
+ # Change Log - @qn-pandora/pandora-component
2
+
3
+ This log was last generated on Wed, 21 Jun 2023 06:48:02 GMT and should not be manually modified.
4
+
5
+ ## 4.0.13
6
+
7
+ Wed, 21 Jun 2023 06:48:02 GMT
8
+
9
+ ### Patches
10
+
11
+ - 2023.06.21 发布
12
+
13
+ ## 4.0.12
14
+
15
+ Mon, 29 May 2023 10:29:42 GMT
16
+
17
+ ### Patches
18
+
19
+ - 2023.05.29 发包
20
+
21
+ ## 4.0.11
22
+
23
+ Wed, 24 May 2023 07:19:25 GMT
24
+
25
+ ### Patches
26
+
27
+ - 2023.05.24 发包
28
+
29
+ ## 4.0.10
30
+
31
+ Tue, 23 May 2023 03:12:29 GMT
32
+
33
+ ### Patches
34
+
35
+ - 2023.05.23 发布
36
+
37
+ ## 4.0.9
38
+
39
+ Wed, 19 Apr 2023 03:15:25 GMT
40
+
41
+ ### Patches
42
+
43
+ - 2023.04.19 发包
44
+
45
+ ## 4.0.8
46
+
47
+ Tue, 04 Apr 2023 08:26:02 GMT
48
+
49
+ ### Patches
50
+
51
+ - 2023.04.04
52
+
53
+ ## 4.0.7
54
+
55
+ Thu, 23 Mar 2023 07:12:05 GMT
56
+
57
+ ### Patches
58
+
59
+ - 2023.03.23 发布
60
+
61
+ ## 4.0.6
62
+
63
+ Mon, 13 Mar 2023 11:30:17 GMT
64
+
65
+ ### Patches
66
+
67
+ - 2023.03.13 发布
68
+
69
+ ## 4.0.5
70
+
71
+ Wed, 15 Feb 2023 09:26:50 GMT
72
+
73
+ ### Patches
74
+
75
+ - 2023.02.15 发布
76
+
77
+ ## 4.0.4
78
+
79
+ Wed, 11 Jan 2023 08:25:05 GMT
80
+
81
+ ### Patches
82
+
83
+ - 2023-01-11 发布
84
+
85
+ ## 4.0.3
86
+
87
+ Tue, 10 Jan 2023 03:03:58 GMT
88
+
89
+ ### Patches
90
+
91
+ - 2023-01-10 发布
92
+
93
+ ## 4.0.2
94
+
95
+ Tue, 29 Nov 2022 03:37:07 GMT
96
+
97
+ ### Patches
98
+
99
+ - 2022.11.29 发布
100
+
101
+ ## 4.0.1
102
+
103
+ Mon, 17 Oct 2022 06:49:55 GMT
104
+
105
+ ### Patches
106
+
107
+ - 22 年 10 月 16 日发布
108
+
109
+ ## 4.0.0
110
+
111
+ Tue, 14 Jun 2022 09:21:39 GMT
112
+
113
+ ### Breaking changes
114
+
115
+ - 很久没发版了,统一发个大版本
116
+
117
+ ## 3.0.0
118
+
119
+ Mon, 20 Dec 2021 11:46:43 GMT
120
+
121
+ ### Breaking changes
122
+
123
+ - 仓库迁移至 rush 后统一发个大版本
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import type { DescriptionsProps } from 'antd/es/descriptions';
3
+ import type { DescriptionsItemProps } from 'antd/es/descriptions/Item';
4
+ export declare type TItem = DescriptionsItemProps & {
5
+ labelCol?: number;
6
+ remark?: string;
7
+ };
8
+ interface IDescriptionsProps extends DescriptionsProps {
9
+ labelCol?: number;
10
+ items: TItem[];
11
+ }
12
+ declare const Descriptions: React.FC<IDescriptionsProps>;
13
+ export default Descriptions;
@@ -0,0 +1,57 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React, { useMemo, useCallback } from 'react';
24
+ import { Descriptions as BaseDescriptions, Tooltip } from 'antd';
25
+ import classname from 'classnames';
26
+ import { QuestionCircleOutlined } from '@qn-pandora/pandora-component-icons';
27
+ import { SDK_PREFIX } from '../../constants/style';
28
+ var Item = BaseDescriptions.Item;
29
+ var DEFAYLT_MAX_COL = 24;
30
+ var Descriptions = function (props) {
31
+ var items = props.items, className = props.className, labelStyle = props.labelStyle, labelCol = props.labelCol, other = __rest(props, ["items", "className", "labelStyle", "labelCol"]);
32
+ var getRealLabelWith = useCallback(function (labelCol) {
33
+ if (!labelCol)
34
+ return;
35
+ if (labelCol <= 1)
36
+ return 1;
37
+ if (labelCol >= DEFAYLT_MAX_COL)
38
+ return DEFAYLT_MAX_COL;
39
+ return (Math.round(labelCol) / DEFAYLT_MAX_COL) * 100;
40
+ }, []);
41
+ var getLabelStyle = useCallback(function (labelStyle, labelCol) {
42
+ var col = getRealLabelWith(labelCol);
43
+ return labelCol ? __assign(__assign({}, labelStyle), { width: col + "%" }) : labelStyle;
44
+ }, [getRealLabelWith]);
45
+ var realLabelStyle = useMemo(function () {
46
+ return getLabelStyle(labelStyle, labelCol);
47
+ }, [labelStyle, labelCol, getLabelStyle]);
48
+ return (React.createElement(BaseDescriptions, __assign({ className: classname(SDK_PREFIX + "-descriptions", className), labelStyle: realLabelStyle }, other), items.map(function (item, index) {
49
+ var label = item.label, labelCol = item.labelCol, labelStyle = item.labelStyle, other = __rest(item, ["label", "labelCol", "labelStyle"]);
50
+ return (React.createElement(Item, __assign({ key: index, labelStyle: getLabelStyle(labelStyle, labelCol), label: React.createElement(React.Fragment, null,
51
+ React.createElement("span", null,
52
+ item.label,
53
+ !!item.remark && (React.createElement(Tooltip, { title: item.remark },
54
+ React.createElement(QuestionCircleOutlined, { className: SDK_PREFIX + "-remark-icon" }))))) }, other), item.children));
55
+ })));
56
+ };
57
+ export default Descriptions;
@@ -0,0 +1,337 @@
1
+ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
+ /* stylelint-disable no-duplicate-selectors */
3
+ /* stylelint-disable */
4
+ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
+ .ant-popover {
6
+ -webkit-box-sizing: border-box;
7
+ box-sizing: border-box;
8
+ margin: 0;
9
+ padding: 0;
10
+ color: rgba(0, 0, 0, 0.65);
11
+ font-size: 14px;
12
+ font-variant: tabular-nums;
13
+ line-height: 1.5715;
14
+ list-style: none;
15
+ -webkit-font-feature-settings: 'tnum';
16
+ font-feature-settings: 'tnum';
17
+ position: absolute;
18
+ top: 0;
19
+ left: 0;
20
+ z-index: 1200;
21
+ font-weight: normal;
22
+ white-space: normal;
23
+ text-align: left;
24
+ cursor: auto;
25
+ -webkit-user-select: text;
26
+ -moz-user-select: text;
27
+ -ms-user-select: text;
28
+ user-select: text;
29
+ }
30
+ .ant-popover::after {
31
+ position: absolute;
32
+ background: rgba(255, 255, 255, 0.01);
33
+ content: '';
34
+ }
35
+ .ant-popover-hidden {
36
+ display: none;
37
+ }
38
+ .ant-popover-placement-top,
39
+ .ant-popover-placement-topLeft,
40
+ .ant-popover-placement-topRight {
41
+ padding-bottom: 10px;
42
+ }
43
+ .ant-popover-placement-right,
44
+ .ant-popover-placement-rightTop,
45
+ .ant-popover-placement-rightBottom {
46
+ padding-left: 10px;
47
+ }
48
+ .ant-popover-placement-bottom,
49
+ .ant-popover-placement-bottomLeft,
50
+ .ant-popover-placement-bottomRight {
51
+ padding-top: 10px;
52
+ }
53
+ .ant-popover-placement-left,
54
+ .ant-popover-placement-leftTop,
55
+ .ant-popover-placement-leftBottom {
56
+ padding-right: 10px;
57
+ }
58
+ .ant-popover-inner {
59
+ background-color: #ffffff;
60
+ background-clip: padding-box;
61
+ border-radius: 2px;
62
+ -webkit-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);
63
+ 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);
64
+ -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) \9;
65
+ box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) \9;
66
+ }
67
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
68
+ .ant-popover {
69
+ /* IE10+ */
70
+ }
71
+ .ant-popover-inner {
72
+ -webkit-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);
73
+ 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);
74
+ }
75
+ }
76
+ .ant-popover-title {
77
+ min-width: 177px;
78
+ min-height: 32px;
79
+ margin: 0;
80
+ padding: 5px 16px 4px;
81
+ color: #333;
82
+ font-weight: 500;
83
+ border-bottom: 1px solid #e5e5e5;
84
+ }
85
+ .ant-popover-inner-content {
86
+ padding: 12px 16px;
87
+ color: rgba(0, 0, 0, 0.65);
88
+ }
89
+ .ant-popover-message {
90
+ position: relative;
91
+ padding: 4px 0 12px;
92
+ color: rgba(0, 0, 0, 0.65);
93
+ font-size: 14px;
94
+ }
95
+ .ant-popover-message > .anticon {
96
+ position: absolute;
97
+ top: 8.0005px;
98
+ color: #f0a818;
99
+ font-size: 14px;
100
+ }
101
+ .ant-popover-message-title {
102
+ padding-left: 22px;
103
+ }
104
+ .ant-popover-buttons {
105
+ margin-bottom: 4px;
106
+ text-align: right;
107
+ }
108
+ .ant-popover-buttons button {
109
+ margin-left: 8px;
110
+ }
111
+ .ant-popover-arrow {
112
+ position: absolute;
113
+ display: block;
114
+ width: 8.48528137px;
115
+ height: 8.48528137px;
116
+ overflow: hidden;
117
+ background: transparent;
118
+ pointer-events: none;
119
+ }
120
+ .ant-popover-arrow-content {
121
+ position: absolute;
122
+ top: 0;
123
+ right: 0;
124
+ bottom: 0;
125
+ left: 0;
126
+ display: block;
127
+ width: 6px;
128
+ height: 6px;
129
+ margin: auto;
130
+ background-color: #ffffff;
131
+ content: '';
132
+ pointer-events: auto;
133
+ }
134
+ .ant-popover-placement-top .ant-popover-arrow,
135
+ .ant-popover-placement-topLeft .ant-popover-arrow,
136
+ .ant-popover-placement-topRight .ant-popover-arrow {
137
+ bottom: 1.51471863px;
138
+ }
139
+ .ant-popover-placement-top .ant-popover-arrow-content,
140
+ .ant-popover-placement-topLeft .ant-popover-arrow-content,
141
+ .ant-popover-placement-topRight .ant-popover-arrow-content {
142
+ -webkit-box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
143
+ box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
144
+ -webkit-transform: translateY(-4.24264069px) rotate(45deg);
145
+ transform: translateY(-4.24264069px) rotate(45deg);
146
+ }
147
+ .ant-popover-placement-top .ant-popover-arrow {
148
+ left: 50%;
149
+ -webkit-transform: translateX(-50%);
150
+ transform: translateX(-50%);
151
+ }
152
+ .ant-popover-placement-topLeft .ant-popover-arrow {
153
+ left: 16px;
154
+ }
155
+ .ant-popover-placement-topRight .ant-popover-arrow {
156
+ right: 16px;
157
+ }
158
+ .ant-popover-placement-right .ant-popover-arrow,
159
+ .ant-popover-placement-rightTop .ant-popover-arrow,
160
+ .ant-popover-placement-rightBottom .ant-popover-arrow {
161
+ left: 1.51471863px;
162
+ }
163
+ .ant-popover-placement-right .ant-popover-arrow-content,
164
+ .ant-popover-placement-rightTop .ant-popover-arrow-content,
165
+ .ant-popover-placement-rightBottom .ant-popover-arrow-content {
166
+ -webkit-box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
167
+ box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
168
+ -webkit-transform: translateX(4.24264069px) rotate(45deg);
169
+ transform: translateX(4.24264069px) rotate(45deg);
170
+ }
171
+ .ant-popover-placement-right .ant-popover-arrow {
172
+ top: 50%;
173
+ -webkit-transform: translateY(-50%);
174
+ transform: translateY(-50%);
175
+ }
176
+ .ant-popover-placement-rightTop .ant-popover-arrow {
177
+ top: 12px;
178
+ }
179
+ .ant-popover-placement-rightBottom .ant-popover-arrow {
180
+ bottom: 12px;
181
+ }
182
+ .ant-popover-placement-bottom .ant-popover-arrow,
183
+ .ant-popover-placement-bottomLeft .ant-popover-arrow,
184
+ .ant-popover-placement-bottomRight .ant-popover-arrow {
185
+ top: 1.51471863px;
186
+ }
187
+ .ant-popover-placement-bottom .ant-popover-arrow-content,
188
+ .ant-popover-placement-bottomLeft .ant-popover-arrow-content,
189
+ .ant-popover-placement-bottomRight .ant-popover-arrow-content {
190
+ -webkit-box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
191
+ box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
192
+ -webkit-transform: translateY(4.24264069px) rotate(45deg);
193
+ transform: translateY(4.24264069px) rotate(45deg);
194
+ }
195
+ .ant-popover-placement-bottom .ant-popover-arrow {
196
+ left: 50%;
197
+ -webkit-transform: translateX(-50%);
198
+ transform: translateX(-50%);
199
+ }
200
+ .ant-popover-placement-bottomLeft .ant-popover-arrow {
201
+ left: 16px;
202
+ }
203
+ .ant-popover-placement-bottomRight .ant-popover-arrow {
204
+ right: 16px;
205
+ }
206
+ .ant-popover-placement-left .ant-popover-arrow,
207
+ .ant-popover-placement-leftTop .ant-popover-arrow,
208
+ .ant-popover-placement-leftBottom .ant-popover-arrow {
209
+ right: 1.51471863px;
210
+ }
211
+ .ant-popover-placement-left .ant-popover-arrow-content,
212
+ .ant-popover-placement-leftTop .ant-popover-arrow-content,
213
+ .ant-popover-placement-leftBottom .ant-popover-arrow-content {
214
+ -webkit-box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
215
+ box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
216
+ -webkit-transform: translateX(-4.24264069px) rotate(45deg);
217
+ transform: translateX(-4.24264069px) rotate(45deg);
218
+ }
219
+ .ant-popover-placement-left .ant-popover-arrow {
220
+ top: 50%;
221
+ -webkit-transform: translateY(-50%);
222
+ transform: translateY(-50%);
223
+ }
224
+ .ant-popover-placement-leftTop .ant-popover-arrow {
225
+ top: 12px;
226
+ }
227
+ .ant-popover-placement-leftBottom .ant-popover-arrow {
228
+ bottom: 12px;
229
+ }
230
+ .ant-popover-pink .ant-popover-inner {
231
+ background-color: #eb2f96;
232
+ }
233
+ .ant-popover-pink .ant-popover-arrow-content {
234
+ background-color: #eb2f96;
235
+ }
236
+ .ant-popover-magenta .ant-popover-inner {
237
+ background-color: #eb2f96;
238
+ }
239
+ .ant-popover-magenta .ant-popover-arrow-content {
240
+ background-color: #eb2f96;
241
+ }
242
+ .ant-popover-red .ant-popover-inner {
243
+ background-color: #f5222d;
244
+ }
245
+ .ant-popover-red .ant-popover-arrow-content {
246
+ background-color: #f5222d;
247
+ }
248
+ .ant-popover-volcano .ant-popover-inner {
249
+ background-color: #fa541c;
250
+ }
251
+ .ant-popover-volcano .ant-popover-arrow-content {
252
+ background-color: #fa541c;
253
+ }
254
+ .ant-popover-orange .ant-popover-inner {
255
+ background-color: #fa8c16;
256
+ }
257
+ .ant-popover-orange .ant-popover-arrow-content {
258
+ background-color: #fa8c16;
259
+ }
260
+ .ant-popover-yellow .ant-popover-inner {
261
+ background-color: #fadb14;
262
+ }
263
+ .ant-popover-yellow .ant-popover-arrow-content {
264
+ background-color: #fadb14;
265
+ }
266
+ .ant-popover-gold .ant-popover-inner {
267
+ background-color: #faad14;
268
+ }
269
+ .ant-popover-gold .ant-popover-arrow-content {
270
+ background-color: #faad14;
271
+ }
272
+ .ant-popover-cyan .ant-popover-inner {
273
+ background-color: #13c2c2;
274
+ }
275
+ .ant-popover-cyan .ant-popover-arrow-content {
276
+ background-color: #13c2c2;
277
+ }
278
+ .ant-popover-lime .ant-popover-inner {
279
+ background-color: #a0d911;
280
+ }
281
+ .ant-popover-lime .ant-popover-arrow-content {
282
+ background-color: #a0d911;
283
+ }
284
+ .ant-popover-green .ant-popover-inner {
285
+ background-color: #52c41a;
286
+ }
287
+ .ant-popover-green .ant-popover-arrow-content {
288
+ background-color: #52c41a;
289
+ }
290
+ .ant-popover-blue .ant-popover-inner {
291
+ background-color: #1890ff;
292
+ }
293
+ .ant-popover-blue .ant-popover-arrow-content {
294
+ background-color: #1890ff;
295
+ }
296
+ .ant-popover-geekblue .ant-popover-inner {
297
+ background-color: #2f54eb;
298
+ }
299
+ .ant-popover-geekblue .ant-popover-arrow-content {
300
+ background-color: #2f54eb;
301
+ }
302
+ .ant-popover-purple .ant-popover-inner {
303
+ background-color: #722ed1;
304
+ }
305
+ .ant-popover-purple .ant-popover-arrow-content {
306
+ background-color: #722ed1;
307
+ }
308
+ .ant-popover-rtl {
309
+ direction: rtl;
310
+ text-align: right;
311
+ }
312
+ .ant-popover-rtl .ant-popover-message-title {
313
+ padding-right: 22px;
314
+ padding-left: 16px;
315
+ }
316
+ .ant-popover-rtl .ant-popover-buttons {
317
+ text-align: left;
318
+ }
319
+ .ant-popover-rtl .ant-popover-buttons button {
320
+ margin-right: 8px;
321
+ margin-left: 0;
322
+ }
323
+ .ant-btn {
324
+ padding: 4px 15px;
325
+ }
326
+ .ant-btn-sm {
327
+ padding: 0 7px;
328
+ }
329
+ .pandora-sdk-descriptions .pandora-sdk-remark-icon {
330
+ margin-left: 5px;
331
+ }
332
+ .pandora-sdk-descriptions .ant-descriptions-item-label {
333
+ color: #999;
334
+ }
335
+ .pandora-sdk-descriptions .ant-descriptions-item-content {
336
+ color: #333;
337
+ }
@@ -0,0 +1,15 @@
1
+ @import 'antd/lib/popover/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-descriptions {
5
+ .@{sdk-prefix}-remark-icon {
6
+ margin-left: 5px;
7
+ }
8
+ .@{ant-prefix}-descriptions-item-label {
9
+ color: @font-color-9;
10
+ }
11
+
12
+ .@{ant-prefix}-descriptions-item-content {
13
+ color: @font-color-7;
14
+ }
15
+ }
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface IProps {
3
+ className?: string;
4
+ onClick?: (e: any) => void;
5
+ }
6
+ export declare const CloseIcon: React.FC<IProps>;
7
+ export default CloseIcon;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import classnames from 'classnames';
3
+ import { Tooltip } from 'antd';
4
+ import { Close } from '@qn-pandora/pandora-component-icons';
5
+ import { SDK_PREFIX } from '../../../constants/style';
6
+ import { formatString } from '../../../utils/language';
7
+ import { ModalLocale } from '../../../constants/language/modal/type';
8
+ export var CloseIcon = function (props) {
9
+ var className = props.className, onClick = props.onClick;
10
+ return (React.createElement(Tooltip, { title: formatString(ModalLocale.close_tooltip) },
11
+ React.createElement(Close, { className: classnames(SDK_PREFIX + "-close-icon", className), onClick: onClick })));
12
+ };
13
+ export default CloseIcon;
@@ -0,0 +1,12 @@
1
+ .ant-btn {
2
+ padding: 4px 15px;
3
+ }
4
+ .ant-btn-sm {
5
+ padding: 0 7px;
6
+ }
7
+ .pandora-sdk-close-icon {
8
+ font-size: 20px;
9
+ }
10
+ .pandora-sdk-close-icon:hover {
11
+ background: #f4f5f6;
12
+ }