@qn-pandora/pandora-component 2.1.1 → 2.2.2
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.
- package/es/components/AutoComplete/style.css +17 -13
- package/es/components/Button/style.css +2 -3
- package/es/components/Button/style.less +0 -1
- package/es/components/Card/index.js +2 -1
- package/es/components/CheckTransformList/Item/index.js +1 -1
- package/es/components/CheckTransformList/style.css +25 -17
- package/es/components/CheckboxList/index.d.ts +1 -0
- package/es/components/CheckboxList/index.js +3 -2
- package/es/components/Collapse/index.js +2 -1
- package/es/components/CollapsiblePanel/index.d.ts +2 -2
- package/es/components/ConfigProvider/index.js +2 -1
- package/es/components/DateTimePicker/Base/index.js +2 -2
- package/es/components/DateTimePicker/Base/style.css +13 -13
- package/es/components/DateTimePicker/BaseMobile/index.d.ts +1 -0
- package/es/components/DateTimePicker/BaseMobile/index.js +2 -2
- package/es/components/DateTimePicker/DisplayInput/style.css +16 -16
- package/es/components/DateTimePicker/index.d.ts +6 -1
- package/es/components/DateTimePicker/index.js +2 -2
- package/es/components/Input/NumberInput/index.d.ts +29 -0
- package/es/components/Input/NumberInput/index.js +116 -0
- package/es/components/Input/index.d.ts +1 -0
- package/es/components/Input/index.js +4 -1
- package/es/components/Input/style.css +19 -16
- package/es/components/Input/style.less +4 -0
- package/es/components/InputNumber/style.css +6 -6
- package/es/components/KeyValuePair/style.css +1 -0
- package/es/components/KeyValuePair/style.less +1 -0
- package/es/components/Menu/index.d.ts +2 -2
- package/es/components/NameLimiter/index.d.ts +3 -13
- package/es/components/NameLimiter/index.js +30 -39
- package/es/components/NameLimiter/style.css +9 -1
- package/es/components/NameLimiter/style.less +10 -1
- package/es/components/OptionList/index.js +2 -1
- package/es/components/RangeInput/style.css +22 -22
- package/es/components/RemarkName/index.d.ts +0 -2
- package/es/components/RemarkName/index.js +2 -4
- package/es/components/RemarkName/style.css +9 -5
- package/es/components/RemarkName/style.less +0 -5
- package/es/components/Selector/style.css +17 -13
- package/es/components/Selector/style.less +7 -3
- package/es/components/SolidRadioGroup/index.d.ts +3 -2
- package/es/components/SolidRadioGroup/index.js +7 -4
- package/es/components/SolidRadioGroup/style.css +13 -6
- package/es/components/SolidRadioGroup/style.less +16 -3
- package/es/components/Steps/index.js +2 -1
- package/es/components/Table/index.d.ts +9 -24
- package/es/components/Table/index.js +40 -8
- package/es/components/Table/style.css +11 -8
- package/es/components/Table/style.less +6 -0
- package/es/components/TagList/Tag/style.css +3 -3
- package/es/components/TagList/Tag/style.less +3 -3
- package/es/components/TagList/index.js +3 -2
- package/es/components/TagList/style.css +3 -3
- package/es/components/TagList/style.less +8 -8
- package/es/index.css +211 -190
- package/es/index.d.ts +2 -2
- package/es/index.js +1 -1
- package/es/index.less +6 -6
- package/es/style/theme.less +9 -7
- package/lib/components/AutoComplete/style.css +17 -13
- package/lib/components/Button/style.css +2 -3
- package/lib/components/Button/style.less +0 -1
- package/lib/components/Card/index.js +1 -1
- package/lib/components/CheckTransformList/Item/index.js +1 -1
- package/lib/components/CheckTransformList/style.css +25 -17
- package/lib/components/CheckboxList/index.d.ts +1 -0
- package/lib/components/CheckboxList/index.js +3 -2
- package/lib/components/Collapse/index.js +1 -1
- package/lib/components/CollapsiblePanel/index.d.ts +2 -2
- package/lib/components/ConfigProvider/index.js +1 -1
- package/lib/components/DateTimePicker/Base/index.js +2 -2
- package/lib/components/DateTimePicker/Base/style.css +13 -13
- package/lib/components/DateTimePicker/BaseMobile/index.d.ts +1 -0
- package/lib/components/DateTimePicker/BaseMobile/index.js +2 -2
- package/lib/components/DateTimePicker/DisplayInput/style.css +16 -16
- package/lib/components/DateTimePicker/index.d.ts +6 -1
- package/lib/components/DateTimePicker/index.js +2 -2
- package/lib/components/Input/NumberInput/index.d.ts +29 -0
- package/lib/components/Input/NumberInput/index.js +121 -0
- package/lib/components/Input/index.d.ts +1 -0
- package/lib/components/Input/index.js +3 -1
- package/lib/components/Input/style.css +19 -16
- package/lib/components/Input/style.less +4 -0
- package/lib/components/InputNumber/style.css +6 -6
- package/lib/components/KeyValuePair/style.css +1 -0
- package/lib/components/KeyValuePair/style.less +1 -0
- package/lib/components/Menu/index.d.ts +2 -2
- package/lib/components/NameLimiter/index.d.ts +3 -13
- package/lib/components/NameLimiter/index.js +30 -38
- package/lib/components/NameLimiter/style.css +9 -1
- package/lib/components/NameLimiter/style.less +10 -1
- package/lib/components/OptionList/index.js +1 -1
- package/lib/components/RangeInput/style.css +22 -22
- package/lib/components/RemarkName/index.d.ts +0 -2
- package/lib/components/RemarkName/index.js +2 -4
- package/lib/components/RemarkName/style.css +9 -5
- package/lib/components/RemarkName/style.less +0 -5
- package/lib/components/Selector/style.css +17 -13
- package/lib/components/Selector/style.less +7 -3
- package/lib/components/SolidRadioGroup/index.d.ts +3 -2
- package/lib/components/SolidRadioGroup/index.js +6 -3
- package/lib/components/SolidRadioGroup/style.css +13 -6
- package/lib/components/SolidRadioGroup/style.less +16 -3
- package/lib/components/Steps/index.js +1 -1
- package/lib/components/Table/index.d.ts +9 -24
- package/lib/components/Table/index.js +39 -7
- package/lib/components/Table/style.css +11 -8
- package/lib/components/Table/style.less +6 -0
- package/lib/components/TagList/Tag/style.css +3 -3
- package/lib/components/TagList/Tag/style.less +3 -3
- package/lib/components/TagList/index.js +2 -2
- package/lib/components/TagList/style.css +3 -3
- package/lib/components/TagList/style.less +8 -8
- package/lib/index.css +39 -18
- package/lib/index.d.ts +2 -2
- package/lib/index.js +0 -1
- package/lib/style/theme.less +9 -7
- package/package.json +23 -23
- package/es/components/NameLimiter/transformer.d.ts +0 -6
- package/es/components/NameLimiter/transformer.js +0 -84
- package/lib/components/NameLimiter/transformer.d.ts +0 -6
- package/lib/components/NameLimiter/transformer.js +0 -91
@@ -264,7 +264,7 @@
|
|
264
264
|
border-radius: 0;
|
265
265
|
}
|
266
266
|
.ant-table-tbody > tr.ant-table-row:hover > td {
|
267
|
-
background:
|
267
|
+
background: #e9f0fa;
|
268
268
|
}
|
269
269
|
.ant-table-tbody > tr.ant-table-row-selected > td {
|
270
270
|
background: #2c6dd2;
|
@@ -1145,7 +1145,7 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
1145
1145
|
line-height: 1.5715;
|
1146
1146
|
background-color: transparent;
|
1147
1147
|
background-image: none;
|
1148
|
-
border: 1px solid #
|
1148
|
+
border: 1px solid #bfbfbf;
|
1149
1149
|
border-radius: 2px;
|
1150
1150
|
-webkit-transition: all 0.3s;
|
1151
1151
|
transition: all 0.3s;
|
@@ -1187,7 +1187,7 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
1187
1187
|
opacity: 1;
|
1188
1188
|
}
|
1189
1189
|
.ant-pagination-options-quick-jumper input-disabled:hover {
|
1190
|
-
border-color: #
|
1190
|
+
border-color: #bfbfbf;
|
1191
1191
|
border-right-width: 1px !important;
|
1192
1192
|
}
|
1193
1193
|
.ant-pagination-options-quick-jumper input[disabled] {
|
@@ -1197,7 +1197,7 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
|
|
1197
1197
|
opacity: 1;
|
1198
1198
|
}
|
1199
1199
|
.ant-pagination-options-quick-jumper input[disabled]:hover {
|
1200
|
-
border-color: #
|
1200
|
+
border-color: #bfbfbf;
|
1201
1201
|
border-right-width: 1px !important;
|
1202
1202
|
}
|
1203
1203
|
.ant-pagination-options-quick-jumper input-borderless,
|
@@ -1221,7 +1221,7 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1221
1221
|
transition: all 0.3s, height 0s;
|
1222
1222
|
}
|
1223
1223
|
.ant-pagination-options-quick-jumper input-lg {
|
1224
|
-
padding:
|
1224
|
+
padding: 6.5px 11px;
|
1225
1225
|
font-size: 16px;
|
1226
1226
|
}
|
1227
1227
|
.ant-pagination-options-quick-jumper input-sm {
|
@@ -1512,10 +1512,10 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1512
1512
|
background: #ffffff !important;
|
1513
1513
|
}
|
1514
1514
|
.pandora-sdk-table-wrapper .ant-table-row:hover {
|
1515
|
-
background:
|
1515
|
+
background: #e9f0fa;
|
1516
1516
|
}
|
1517
1517
|
.pandora-sdk-table-wrapper .ant-table-row-hover {
|
1518
|
-
background:
|
1518
|
+
background: #e9f0fa;
|
1519
1519
|
}
|
1520
1520
|
.pandora-sdk-table-wrapper .ant-table-placeholder {
|
1521
1521
|
border: none;
|
@@ -1608,7 +1608,7 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1608
1608
|
max-height: 200px;
|
1609
1609
|
}
|
1610
1610
|
.pandora-sdk-table-wrapper .ant-table-tbody > tr.ant-table-row:hover > td {
|
1611
|
-
background-color:
|
1611
|
+
background-color: #e9f0fa;
|
1612
1612
|
}
|
1613
1613
|
.pandora-sdk-table-wrapper .ant-table-filter-trigger {
|
1614
1614
|
display: block;
|
@@ -1647,3 +1647,6 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
1647
1647
|
.ant-table-cell::before {
|
1648
1648
|
display: none;
|
1649
1649
|
}
|
1650
|
+
.ant-empty .ant-empty-description {
|
1651
|
+
color: #bfbfbf;
|
1652
|
+
}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
line-height: 24px;
|
10
10
|
margin-right: 8px;
|
11
11
|
border-radius: 1px;
|
12
|
-
color: #
|
12
|
+
color: #333;
|
13
13
|
text-align: center;
|
14
14
|
vertical-align: middle;
|
15
15
|
border-radius: 2px;
|
@@ -47,8 +47,8 @@
|
|
47
47
|
border-left: 1px solid rgba(44, 109, 210, 0.1);
|
48
48
|
}
|
49
49
|
.pandora-sdk-root .pandora-sdk-content {
|
50
|
-
padding: 0
|
51
|
-
max-width:
|
50
|
+
padding: 0 8px;
|
51
|
+
max-width: 150px;
|
52
52
|
vertical-align: middle;
|
53
53
|
overflow: hidden;
|
54
54
|
white-space: nowrap;
|
@@ -5,7 +5,7 @@
|
|
5
5
|
line-height: 24px;
|
6
6
|
margin-right: 8px;
|
7
7
|
border-radius: 1px;
|
8
|
-
color: @font-color-
|
8
|
+
color: @font-color-7;
|
9
9
|
text-align: center;
|
10
10
|
vertical-align: middle;
|
11
11
|
border-radius: @border-radius-base;
|
@@ -45,8 +45,8 @@
|
|
45
45
|
}
|
46
46
|
|
47
47
|
.@{sdk-prefix}-content {
|
48
|
-
padding: 0
|
49
|
-
max-width:
|
48
|
+
padding: 0 8px;
|
49
|
+
max-width: 150px;
|
50
50
|
vertical-align: middle;
|
51
51
|
overflow: hidden;
|
52
52
|
white-space: nowrap;
|
@@ -69,11 +69,11 @@ function TagList(props) {
|
|
69
69
|
}
|
70
70
|
return (React.createElement("div", { className: classnames_1.default(style_1.SDK_PREFIX + "-simplify", props.className) },
|
71
71
|
React.Children.toArray(children).slice(0, simplifyTo),
|
72
|
-
React.createElement(popover_1.default, { content: React.createElement("div", { className: style_1.SDK_PREFIX + "-popover" }, children), getPopupContainer: getPopupContainer },
|
72
|
+
React.createElement(popover_1.default, { content: React.createElement("div", { className: style_1.SDK_PREFIX + "-popover" }, React.Children.toArray(children).slice(simplifyTo, childSize)), getPopupContainer: getPopupContainer },
|
73
73
|
React.createElement(pandora_component_icons_1.MoreCircle, { className: style_1.SDK_PREFIX + "-icon" }))));
|
74
74
|
};
|
75
75
|
return (React.createElement("div", { className: classnames_1.default(style_1.SDK_PREFIX + "-taglist-containter", className) }, mode === 'tag' ? getTagList() : getTagSwitchList()));
|
76
76
|
}
|
77
|
-
exports.default = TagList;
|
78
77
|
TagList.Tag = Tag_1.default;
|
79
78
|
TagList.TagSwitch = TagSwitch_1.default;
|
79
|
+
exports.default = TagList;
|
@@ -266,12 +266,12 @@
|
|
266
266
|
.pandora-sdk-taglist-containter .pandora-sdk-simplify .pandora-sdk-icon:hover {
|
267
267
|
color: #7a869a;
|
268
268
|
}
|
269
|
-
.pandora-sdk-
|
269
|
+
.pandora-sdk-popover {
|
270
270
|
max-width: 400px;
|
271
271
|
max-height: 1000px;
|
272
272
|
overflow: auto;
|
273
|
-
padding:
|
273
|
+
padding: 8px !important;
|
274
274
|
}
|
275
|
-
.pandora-sdk-
|
275
|
+
.pandora-sdk-popover > div {
|
276
276
|
margin: 4px;
|
277
277
|
}
|
@@ -15,14 +15,14 @@
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
}
|
18
|
+
}
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
}
|
20
|
+
.@{sdk-prefix}-popover {
|
21
|
+
max-width: 400px;
|
22
|
+
max-height: 1000px;
|
23
|
+
overflow: auto;
|
24
|
+
padding: 8px !important;
|
25
|
+
> div {
|
26
|
+
margin: 4px;
|
27
27
|
}
|
28
28
|
}
|
package/lib/index.css
CHANGED
@@ -2019,7 +2019,6 @@ a.ant-btn-sm {
|
|
2019
2019
|
.pandora-sdk-button {
|
2020
2020
|
-webkit-box-shadow: none;
|
2021
2021
|
box-shadow: none;
|
2022
|
-
border-radius: 2px;
|
2023
2022
|
}
|
2024
2023
|
.pandora-sdk-button.pandora-sdk-button-disabled {
|
2025
2024
|
background: #eee !important;
|
@@ -4764,6 +4763,9 @@ textarea.ant-input {
|
|
4764
4763
|
.ant-input[disabled] {
|
4765
4764
|
border-color: #d9d9d9;
|
4766
4765
|
}
|
4766
|
+
.ant-input-group-addon {
|
4767
|
+
color: #666;
|
4768
|
+
}
|
4767
4769
|
.ant-input-number {
|
4768
4770
|
-webkit-box-sizing: border-box;
|
4769
4771
|
box-sizing: border-box;
|
@@ -5175,6 +5177,7 @@ textarea.ant-input-number {
|
|
5175
5177
|
text-overflow: ellipsis;
|
5176
5178
|
white-space: nowrap;
|
5177
5179
|
line-height: 1.8;
|
5180
|
+
vertical-align: middle;
|
5178
5181
|
}
|
5179
5182
|
.pandora-sdk-key-value-label {
|
5180
5183
|
color: #666;
|
@@ -6705,7 +6708,15 @@ textarea.ant-input-number {
|
|
6705
6708
|
.ant-tooltip-rtl .ant-tooltip-inner {
|
6706
6709
|
text-align: right;
|
6707
6710
|
}
|
6708
|
-
.pandora-sdk-name-
|
6711
|
+
.pandora-sdk-name-limit {
|
6712
|
+
max-width: 100%;
|
6713
|
+
display: inline-block;
|
6714
|
+
vertical-align: top;
|
6715
|
+
white-space: nowrap;
|
6716
|
+
text-overflow: ellipsis;
|
6717
|
+
overflow: hidden;
|
6718
|
+
}
|
6719
|
+
.pandora-sdk-name-limit-tooltip .ant-tooltip-inner {
|
6709
6720
|
max-width: 400px !important;
|
6710
6721
|
max-height: 200px !important;
|
6711
6722
|
overflow: auto;
|
@@ -6741,10 +6752,6 @@ textarea.ant-input-number {
|
|
6741
6752
|
.pandora-sdk-range-input input[type='number'] {
|
6742
6753
|
-moz-appearance: textfield;
|
6743
6754
|
}
|
6744
|
-
.pandora-sdk-remark-name {
|
6745
|
-
word-break: break-all;
|
6746
|
-
white-space: nowrap;
|
6747
|
-
}
|
6748
6755
|
.ant-select-single .ant-select-selector {
|
6749
6756
|
display: -webkit-box;
|
6750
6757
|
display: -ms-flexbox;
|
@@ -7537,16 +7544,20 @@ textarea.ant-input-number {
|
|
7537
7544
|
.pandora-sdk-selector-dropdown .ant-select-dropdown-menu::-webkit-scrollbar-corner {
|
7538
7545
|
background: transparent;
|
7539
7546
|
}
|
7540
|
-
.pandora-sdk-selector-dropdown .ant-select-
|
7547
|
+
.pandora-sdk-selector-dropdown .ant-select-item-option-disabled {
|
7541
7548
|
color: #d9d9d9 !important;
|
7542
7549
|
}
|
7543
|
-
.pandora-sdk-selector-dropdown .ant-select-
|
7550
|
+
.pandora-sdk-selector-dropdown .ant-select-item-option-selected {
|
7544
7551
|
color: #2c6dd2;
|
7552
|
+
font-weight: 400;
|
7545
7553
|
}
|
7546
|
-
.pandora-sdk-selector-dropdown .ant-select-
|
7554
|
+
.pandora-sdk-selector-dropdown .ant-select-item-option-selected::after {
|
7547
7555
|
color: #2c6dd2 !important;
|
7548
7556
|
}
|
7549
|
-
.pandora-sdk-selector-dropdown .ant-select-
|
7557
|
+
.pandora-sdk-selector-dropdown .ant-select-item-option:hover {
|
7558
|
+
color: #2c6dd2;
|
7559
|
+
}
|
7560
|
+
.pandora-sdk-selector-dropdown .ant-select-item-group {
|
7550
7561
|
color: #d9d9d9;
|
7551
7562
|
}
|
7552
7563
|
.pandora-sdk-selector-dropdown.pandora-sdk-selector-no-ellipsis .ant-select-dropdown-menu {
|
@@ -7957,8 +7968,15 @@ span.ant-radio + * {
|
|
7957
7968
|
border-color: #2c6dd2 !important;
|
7958
7969
|
color: #2c6dd2 !important;
|
7959
7970
|
}
|
7960
|
-
.pandora-sdk-solid-radio-group .ant-radio-button-wrapper-checked
|
7961
|
-
|
7971
|
+
.pandora-sdk-solid-radio-group .ant-radio-button-wrapper-checked.ant-radio-button-wrapper-disabled {
|
7972
|
+
border-color: #d9d9d9 !important;
|
7973
|
+
color: rgba(0, 0, 0, 0.85) !important;
|
7974
|
+
}
|
7975
|
+
.pandora-sdk-solid-radio-group .ant-radio-button-wrapper:not(:first-child)::before {
|
7976
|
+
background-color: #d9d9d9;
|
7977
|
+
}
|
7978
|
+
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before {
|
7979
|
+
background-color: #2c6dd2 !important;
|
7962
7980
|
}
|
7963
7981
|
.ant-spin {
|
7964
7982
|
-webkit-box-sizing: border-box;
|
@@ -10657,6 +10675,9 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
10657
10675
|
.ant-table-cell::before {
|
10658
10676
|
display: none;
|
10659
10677
|
}
|
10678
|
+
.ant-empty .ant-empty-description {
|
10679
|
+
color: #bfbfbf;
|
10680
|
+
}
|
10660
10681
|
.pandora-sdk-tabs .pandora-sdk-tabs-tab {
|
10661
10682
|
position: relative;
|
10662
10683
|
}
|
@@ -10939,13 +10960,13 @@ textarea.ant-pagination-options-quick-jumper input {
|
|
10939
10960
|
.pandora-sdk-taglist-containter .pandora-sdk-simplify .pandora-sdk-icon:hover {
|
10940
10961
|
color: #7a869a;
|
10941
10962
|
}
|
10942
|
-
.pandora-sdk-
|
10963
|
+
.pandora-sdk-popover {
|
10943
10964
|
max-width: 400px;
|
10944
10965
|
max-height: 1000px;
|
10945
10966
|
overflow: auto;
|
10946
|
-
padding:
|
10967
|
+
padding: 8px !important;
|
10947
10968
|
}
|
10948
|
-
.pandora-sdk-
|
10969
|
+
.pandora-sdk-popover > div {
|
10949
10970
|
margin: 4px;
|
10950
10971
|
}
|
10951
10972
|
.pandora-sdk-timeline-container {
|
@@ -18887,7 +18908,7 @@ _:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-ce
|
|
18887
18908
|
line-height: 24px;
|
18888
18909
|
margin-right: 8px;
|
18889
18910
|
border-radius: 1px;
|
18890
|
-
color: #
|
18911
|
+
color: #333;
|
18891
18912
|
text-align: center;
|
18892
18913
|
vertical-align: middle;
|
18893
18914
|
border-radius: 2px;
|
@@ -18925,8 +18946,8 @@ _:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-ce
|
|
18925
18946
|
border-left: 1px solid rgba(44, 109, 210, 0.1);
|
18926
18947
|
}
|
18927
18948
|
.pandora-sdk-root .pandora-sdk-content {
|
18928
|
-
padding: 0
|
18929
|
-
max-width:
|
18949
|
+
padding: 0 8px;
|
18950
|
+
max-width: 150px;
|
18930
18951
|
vertical-align: middle;
|
18931
18952
|
overflow: hidden;
|
18932
18953
|
white-space: nowrap;
|
package/lib/index.d.ts
CHANGED
@@ -4,7 +4,7 @@ export { default as Button, IButtonProps } from './components/Button';
|
|
4
4
|
export { default as Card } from './components/Card';
|
5
5
|
export { default as Collapse } from './components/Collapse';
|
6
6
|
export { default as ConfigProvider } from './components/ConfigProvider';
|
7
|
-
export { default as NameLimiter, INameLimiterProps
|
7
|
+
export { default as NameLimiter, INameLimiterProps } from './components/NameLimiter';
|
8
8
|
export { default as Input, TInputProps } from './components/Input';
|
9
9
|
export { default as Selector, ISelectorProps, IGroupOption as ISelectorGroupOption, IOptions as ISelectorOptions, SelectValue as ISelectValue } from './components/Selector';
|
10
10
|
export { default as Table, ITableProps, IOptionItem as ITableOptionItem } from './components/Table';
|
@@ -13,7 +13,7 @@ export { default as DateTimePicker, Time, EButtonType, IDateTimePickerProps } fr
|
|
13
13
|
export * from './components/DateTimePicker/constants';
|
14
14
|
export * from './components/DateTimePicker/transform';
|
15
15
|
export { default as Style } from './components/Style';
|
16
|
-
export { default as SolidRadioGroup, ISolidRadioGroupProps } from './components/SolidRadioGroup';
|
16
|
+
export { default as SolidRadioGroup, ISolidRadioGroupProps, IOption as ISolidRadioGroupOption } from './components/SolidRadioGroup';
|
17
17
|
export { default as Menu, IOption as IMenuOption } from './components/Menu';
|
18
18
|
export { default as Spin, SpinMode } from './components/Spin';
|
19
19
|
export { default as Modal } from './components/Modal';
|
package/lib/index.js
CHANGED
@@ -16,7 +16,6 @@ var ConfigProvider_1 = require("./components/ConfigProvider");
|
|
16
16
|
exports.ConfigProvider = ConfigProvider_1.default;
|
17
17
|
var NameLimiter_1 = require("./components/NameLimiter");
|
18
18
|
exports.NameLimiter = NameLimiter_1.default;
|
19
|
-
exports.SplitType = NameLimiter_1.SplitType;
|
20
19
|
var Input_1 = require("./components/Input");
|
21
20
|
exports.Input = Input_1.default;
|
22
21
|
var Selector_1 = require("./components/Selector");
|
package/lib/style/theme.less
CHANGED
@@ -123,8 +123,8 @@
|
|
123
123
|
@zindex-popover: 1200; // antd
|
124
124
|
@zindex-tooltip: 1300; // antd
|
125
125
|
// pandora色
|
126
|
-
@zindex-layout-navbar:
|
127
|
-
@zindex-layout-sidebar:
|
126
|
+
@zindex-layout-navbar: 1210; // phoenix
|
127
|
+
@zindex-layout-sidebar: 1200; // phoenix
|
128
128
|
@zindex-toaster: 3000; // app-platform phoenix
|
129
129
|
|
130
130
|
// 组件色变量=========================================================
|
@@ -170,9 +170,9 @@
|
|
170
170
|
// Input和label------------------------
|
171
171
|
// antd覆盖色
|
172
172
|
@input-placeholder-color: #bfbfbf; // pandora-component antd 多 phoenix
|
173
|
-
@input-border-color: #
|
173
|
+
@input-border-color: #bfbfbf; // pandora-component antd
|
174
174
|
@input-height-base: 32px; // phoenix antd
|
175
|
-
@input-height-lg:
|
175
|
+
@input-height-lg: 40px; // antd
|
176
176
|
@input-height-sm: 26px; // antd
|
177
177
|
@input-padding-vertical-base: 4px;
|
178
178
|
@input-bg: transparent; // 多个 antd
|
@@ -201,7 +201,8 @@
|
|
201
201
|
|
202
202
|
// Table------------------------
|
203
203
|
// antd覆盖色
|
204
|
-
|
204
|
+
// TODO: 暂时写死,后续通过函数计算@theme-color-010得到
|
205
|
+
@table-row-hover-bg: #e9f0fa;
|
205
206
|
@table-selected-row-bg: @theme-color; // antd
|
206
207
|
@table-padding-vertical: 14px; // antd
|
207
208
|
@table-padding-horizontal: 12px; // antd
|
@@ -244,9 +245,10 @@
|
|
244
245
|
@time-absolute-picker-title-div: #939393; // pandora-component
|
245
246
|
|
246
247
|
// sidebar------------------------
|
247
|
-
@layout-sidebar-width:
|
248
|
+
@layout-sidebar-width: 240px; // phoenix
|
248
249
|
@layout-sidebar-collapsed-width: 0px; // phoenix
|
249
|
-
@layout-navbar-height:
|
250
|
+
@layout-navbar-height: 52px; // phoenix
|
251
|
+
@layout-navbar-sub-height: 56px; // phoenix
|
250
252
|
// 深色主题
|
251
253
|
@side-bar-active-color: #6ac73c; // pandora-visualization
|
252
254
|
|
package/package.json
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"name": "@qn-pandora/pandora-component",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.2.2",
|
4
4
|
"description": "基础组件",
|
5
5
|
"author": "pandora <pandora@qiniu.com>",
|
6
|
-
"homepage": "https://github.com/qbox/
|
6
|
+
"homepage": "https://github.com/qbox/phoenix#readme",
|
7
7
|
"license": "ISC",
|
8
8
|
"main": "lib/index.js",
|
9
9
|
"module": "es/index.js",
|
@@ -22,28 +22,24 @@
|
|
22
22
|
"**/*.css"
|
23
23
|
],
|
24
24
|
"publishConfig": {
|
25
|
-
"registry": "
|
25
|
+
"registry": "https://registry.npmjs.org/"
|
26
26
|
},
|
27
27
|
"repository": {
|
28
28
|
"type": "git",
|
29
|
-
"url": "git+https://github.com/qbox/
|
29
|
+
"url": "git+https://github.com/qbox/phoenix.git"
|
30
30
|
},
|
31
31
|
"scripts": {
|
32
32
|
"build": "pandora-tools build esm && pandora-tools build cjs",
|
33
33
|
"test": "jest",
|
34
|
-
"storybook": "pandora-tools storybook start --port 9000
|
35
|
-
"storybook:build": "pandora-tools storybook build
|
36
|
-
"prettier": "prettier -l 'src/**/*.{ts,tsx,less,css}'"
|
37
|
-
"lint": "npm run prettier && ../../hack/check-tsc.sh && eslint 'src/**/*.ts*' && tslint './src/**/*.ts*'"
|
34
|
+
"storybook": "pandora-tools storybook start --port 9000",
|
35
|
+
"storybook:build": "pandora-tools storybook build",
|
36
|
+
"prettier": "prettier -l 'src/**/*.{ts,tsx,less,css}'"
|
38
37
|
},
|
39
38
|
"bugs": {
|
40
|
-
"url": "https://github.com/qbox/
|
39
|
+
"url": "https://github.com/qbox/phoenix/issues"
|
41
40
|
},
|
42
41
|
"peerDependencies": {
|
43
|
-
"
|
44
|
-
"@ant-design/icons": "^4.6.2",
|
45
|
-
"@types/react": "^16.14.5",
|
46
|
-
"antd": "^4.16.3",
|
42
|
+
"antd": "4.16.3",
|
47
43
|
"lodash": "^4.17.15",
|
48
44
|
"mobx": "^4.15.4",
|
49
45
|
"mobx-react": "5.4.4",
|
@@ -53,8 +49,11 @@
|
|
53
49
|
"@babel/helper-skip-transparent-expression-wrappers": "^7.11.0",
|
54
50
|
"@babel/plugin-proposal-decorators": "^7.8.3",
|
55
51
|
"@qn-pandora/pandora-tools": "^0.1.0",
|
56
|
-
"@storybook/addon-docs": "^5.3.19",
|
57
52
|
"@svgr/webpack": "^5.4.0",
|
53
|
+
"@types/classnames": "^2.2.7",
|
54
|
+
"@types/react": "^16.14.5",
|
55
|
+
"@types/react-measure": "^2.0.4",
|
56
|
+
"@types/prop-types": "^15.7.1",
|
58
57
|
"@types/css": "^0.0.31",
|
59
58
|
"@types/jest": "^25.2.3",
|
60
59
|
"@types/lodash": "^4.14.152",
|
@@ -62,7 +61,7 @@
|
|
62
61
|
"@typescript-eslint/eslint-plugin": "^4.1.0",
|
63
62
|
"@typescript-eslint/eslint-plugin-tslint": "^4.1.0",
|
64
63
|
"@typescript-eslint/parser": "^4.1.0",
|
65
|
-
"antd": "
|
64
|
+
"antd": "4.16.3",
|
66
65
|
"antd-mobile": "^2.3.3",
|
67
66
|
"babel-loader": "^8.1.0",
|
68
67
|
"copy-webpack-plugin": "^5.1.1",
|
@@ -78,7 +77,7 @@
|
|
78
77
|
"mini-css-extract-plugin": "^0.9.0",
|
79
78
|
"mobx": "^4.15.4",
|
80
79
|
"mobx-react": "5.4.4",
|
81
|
-
"prettier": "
|
80
|
+
"prettier": "2.0.5",
|
82
81
|
"query-string": "^6.12.1",
|
83
82
|
"react": "^16.8.6",
|
84
83
|
"ts-jest": "^26.0.0",
|
@@ -93,13 +92,14 @@
|
|
93
92
|
"webpack-node-externals": "^1.7.2"
|
94
93
|
},
|
95
94
|
"dependencies": {
|
96
|
-
"@ant-design/compatible": "
|
97
|
-
"@ant-design/icons": "
|
98
|
-
"@qn-pandora/pandora-component-icons": "^1.
|
99
|
-
"antd-mobile": "
|
95
|
+
"@ant-design/compatible": "1.0.8",
|
96
|
+
"@ant-design/icons": "4.6.2",
|
97
|
+
"@qn-pandora/pandora-component-icons": "^1.2.0",
|
98
|
+
"antd-mobile": "2.3.3",
|
100
99
|
"css": "^2.2.4",
|
100
|
+
"classnames": "^2.2.6",
|
101
101
|
"moment": "^2.29.1",
|
102
|
+
"prop-types": "^15.7.2",
|
102
103
|
"react-measure": "^2.5.2"
|
103
|
-
}
|
104
|
-
|
105
|
-
}
|
104
|
+
}
|
105
|
+
}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { SplitType } from './index';
|
2
|
-
export declare function getBytes(value?: string): number;
|
3
|
-
export declare function isChinese(char?: string): boolean;
|
4
|
-
export declare function getPrefixString(value?: string, length?: number): string;
|
5
|
-
export declare function getSuffixString(value?: string, length?: number): string;
|
6
|
-
export declare function getTransformerString(value?: string, length?: number, type?: SplitType): string;
|
@@ -1,84 +0,0 @@
|
|
1
|
-
var __values = (this && this.__values) || function(o) {
|
2
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
3
|
-
if (m) return m.call(o);
|
4
|
-
if (o && typeof o.length === "number") return {
|
5
|
-
next: function () {
|
6
|
-
if (o && i >= o.length) o = void 0;
|
7
|
-
return { value: o && o[i++], done: !o };
|
8
|
-
}
|
9
|
-
};
|
10
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
11
|
-
};
|
12
|
-
import { SplitType } from './index';
|
13
|
-
export function getBytes(value) {
|
14
|
-
if (value === void 0) { value = ''; }
|
15
|
-
return (value.replace(/[^\x00-\xff]/g, '--') || '').length;
|
16
|
-
}
|
17
|
-
export function isChinese(char) {
|
18
|
-
if (char === void 0) { char = ''; }
|
19
|
-
return /[^\x00-\xff]/g.test(char);
|
20
|
-
}
|
21
|
-
export function getPrefixString(value, length) {
|
22
|
-
var e_1, _a;
|
23
|
-
if (value === void 0) { value = ''; }
|
24
|
-
if (length === void 0) { length = 8; }
|
25
|
-
var len = length - 1;
|
26
|
-
var res = '';
|
27
|
-
if (getBytes(value) <= length) {
|
28
|
-
return value;
|
29
|
-
}
|
30
|
-
try {
|
31
|
-
for (var value_1 = __values(value), value_1_1 = value_1.next(); !value_1_1.done; value_1_1 = value_1.next()) {
|
32
|
-
var char = value_1_1.value;
|
33
|
-
if (isChinese(char)) {
|
34
|
-
len -= 2;
|
35
|
-
}
|
36
|
-
else {
|
37
|
-
len -= 1;
|
38
|
-
}
|
39
|
-
res = res.concat(char);
|
40
|
-
if (len <= 0) {
|
41
|
-
return res;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
46
|
-
finally {
|
47
|
-
try {
|
48
|
-
if (value_1_1 && !value_1_1.done && (_a = value_1.return)) _a.call(value_1);
|
49
|
-
}
|
50
|
-
finally { if (e_1) throw e_1.error; }
|
51
|
-
}
|
52
|
-
return value;
|
53
|
-
}
|
54
|
-
export function getSuffixString(value, length) {
|
55
|
-
if (value === void 0) { value = ''; }
|
56
|
-
if (length === void 0) { length = 8; }
|
57
|
-
var len = length;
|
58
|
-
var res = [];
|
59
|
-
if (getBytes(value) <= length) {
|
60
|
-
return value;
|
61
|
-
}
|
62
|
-
for (var i = value.length - 1; i >= 0; i--) {
|
63
|
-
if (isChinese(value[i])) {
|
64
|
-
len -= 2;
|
65
|
-
}
|
66
|
-
else {
|
67
|
-
len -= 1;
|
68
|
-
}
|
69
|
-
res.unshift(value[i]);
|
70
|
-
if (len <= 0) {
|
71
|
-
return res.join('');
|
72
|
-
}
|
73
|
-
}
|
74
|
-
return value;
|
75
|
-
}
|
76
|
-
export function getTransformerString(value, length, type) {
|
77
|
-
if (value === void 0) { value = ''; }
|
78
|
-
if (length === void 0) { length = 16; }
|
79
|
-
if (type === void 0) { type = SplitType.Between; }
|
80
|
-
if (type === SplitType.End) {
|
81
|
-
return getPrefixString(value, length) + "...";
|
82
|
-
}
|
83
|
-
return getPrefixString(value.slice(0, length / 2), length / 2) + "..." + getSuffixString(value.slice(-length / 2), length / 2);
|
84
|
-
}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { SplitType } from './index';
|
2
|
-
export declare function getBytes(value?: string): number;
|
3
|
-
export declare function isChinese(char?: string): boolean;
|
4
|
-
export declare function getPrefixString(value?: string, length?: number): string;
|
5
|
-
export declare function getSuffixString(value?: string, length?: number): string;
|
6
|
-
export declare function getTransformerString(value?: string, length?: number, type?: SplitType): string;
|