@kne/super-select 0.1.34 → 0.1.35
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/dist/index.css +163 -163
- package/dist/index.js +375 -416
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +18 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -46,7 +46,7 @@ const {
|
|
|
46
46
|
useContext
|
|
47
47
|
} = context;
|
|
48
48
|
|
|
49
|
-
var style$6 = {"select-input":"
|
|
49
|
+
var style$6 = {"select-input":"kne-super-select_d8lGc","disabled":"kne-super-select_3kjwO","wrap":"kne-super-select_dsTM2","select-input-inner":"kne-super-select_NQoX9","large":"kne-super-select_T8ZX8","small":"kne-super-select_1B72H","single-label":"kne-super-select_pL0tE","tag-item":"kne-super-select_lc4o7","tag-label":"kne-super-select_RJmlD","overflow-tag":"kne-super-select_aHua2","measure-layer":"kne-super-select_QoQpC","select-input-icon":"kne-super-select_g8QC-","placeholder":"kne-super-select_r3q69","overlay-content":"kne-super-select_zEqGe","overlay":"kne-super-select_ybN30","select-input-prefix":"kne-super-select_4Pw75","select-input-suffix":"kne-super-select_Wd4pE"};
|
|
50
50
|
|
|
51
51
|
const locale$1 = {
|
|
52
52
|
placeholder: '请选择',
|
|
@@ -254,9 +254,11 @@ const SelectInput = createWithIntlProvider({
|
|
|
254
254
|
} = contextProps;
|
|
255
255
|
const {
|
|
256
256
|
placeholder,
|
|
257
|
-
children
|
|
257
|
+
children,
|
|
258
|
+
overlayClassName
|
|
258
259
|
} = props;
|
|
259
260
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
261
|
+
className: overlayClassName,
|
|
260
262
|
width: 1000,
|
|
261
263
|
open: open,
|
|
262
264
|
title: placeholder,
|
|
@@ -281,6 +283,10 @@ const SelectInput = createWithIntlProvider({
|
|
|
281
283
|
className,
|
|
282
284
|
maxLength,
|
|
283
285
|
overlayClassName,
|
|
286
|
+
overlayStyle,
|
|
287
|
+
align,
|
|
288
|
+
autoAdjustOverflow,
|
|
289
|
+
transitionName,
|
|
284
290
|
single,
|
|
285
291
|
labelWrap,
|
|
286
292
|
isPopup,
|
|
@@ -471,6 +477,10 @@ const SelectInput = createWithIntlProvider({
|
|
|
471
477
|
placement: placement,
|
|
472
478
|
arrow: false,
|
|
473
479
|
overlayClassName: classnames(style$6['overlay'], overlayClassName),
|
|
480
|
+
overlayStyle: overlayStyle,
|
|
481
|
+
align: align,
|
|
482
|
+
autoAdjustOverflow: autoAdjustOverflow,
|
|
483
|
+
transitionName: transitionName,
|
|
474
484
|
trigger: "click",
|
|
475
485
|
popupRender: () => /*#__PURE__*/React.createElement("div", {
|
|
476
486
|
style: {
|
|
@@ -488,7 +498,7 @@ const SelectInput = createWithIntlProvider({
|
|
|
488
498
|
}), /*#__PURE__*/React.createElement(ModalContent, contextProps, renderModal)));
|
|
489
499
|
}));
|
|
490
500
|
|
|
491
|
-
var style$5 = {"selected-all":"
|
|
501
|
+
var style$5 = {"selected-all":"kne-super-select_prlgN"};
|
|
492
502
|
|
|
493
503
|
const SelectedAll = createWithIntlProvider('zh-CN', locale$1, 'super-select')(() => {
|
|
494
504
|
const {
|
|
@@ -536,7 +546,7 @@ const computedIsSelectAll = (value, selectedAllValue, valueKey = 'value') => {
|
|
|
536
546
|
return (value == null ? void 0 : value.length) === 1 && get(value, `[0][${valueKey}]`) === selectedAllValue[valueKey];
|
|
537
547
|
};
|
|
538
548
|
|
|
539
|
-
var style$4 = {"label":"
|
|
549
|
+
var style$4 = {"label":"kne-super-select_l3KoW","tag-list":"kne-super-select_CCPzb","tag-container":"kne-super-select_dKZHi","tag-container-inner":"kne-super-select_oijCI","tag":"kne-super-select_WmnnS","tag-inner":"kne-super-select_TMcFl"};
|
|
540
550
|
|
|
541
551
|
const SelectedTagList = createWithIntlProvider('zh-CN', locale$1, 'super-select')(() => {
|
|
542
552
|
const {
|
|
@@ -582,7 +592,7 @@ const SelectedTagList = createWithIntlProvider('zh-CN', locale$1, 'super-select'
|
|
|
582
592
|
}))));
|
|
583
593
|
});
|
|
584
594
|
|
|
585
|
-
var style$3 = {"list":"
|
|
595
|
+
var style$3 = {"list":"kne-super-select_IsXdU","is-popup":"kne-super-select_-dvpa","empty":"kne-super-select_SQZ8k","default-list":"kne-super-select_QD1Mz","is-selected-all":"kne-super-select_M-mOy","default-list-item":"kne-super-select_KtOsz","is-selected":"kne-super-select_TQhBB","single-checked":"kne-super-select_2rUrh","is-disabled":"kne-super-select_NbwX5","selected-all":"kne-super-select_vN2Fx","selected-tag":"kne-super-select_6oITk","select-search":"kne-super-select_iAH9D","select-list-item-description":"kne-super-select_TCkeJ","footer":"kne-super-select_v3f23"};
|
|
586
596
|
|
|
587
597
|
const _excluded$2 = ["children"];
|
|
588
598
|
const SelectList = forwardRef((_ref, ref) => {
|
|
@@ -790,7 +800,7 @@ const SelectList = forwardRef((_ref, ref) => {
|
|
|
790
800
|
});
|
|
791
801
|
});
|
|
792
802
|
|
|
793
|
-
var style$2 = {"list":"
|
|
803
|
+
var style$2 = {"list":"kne-super-select_DrEYJ","is-popup":"kne-super-select_KgWTX","empty":"kne-super-select_5Tyrt","table":"kne-super-select_zE-14","right-options":"kne-super-select_UXi-g","no-padding-btn":"kne-super-select_iaCir","tag":"kne-super-select_JkYqS","tag-inner":"kne-super-select_VZlBL","single-checked":"kne-super-select_Eiz-u","select-search":"kne-super-select_temy6","tags-search":"kne-super-select_7phL2","descriptions":"kne-super-select_ttNK9","footer":"kne-super-select_lISfA"};
|
|
794
804
|
|
|
795
805
|
const SelectTableList = createWithIntlProvider('zh-CN', locale$1, 'super-select')(forwardRef((p, ref) => {
|
|
796
806
|
const {
|
|
@@ -1052,7 +1062,7 @@ const SelectTableList = createWithIntlProvider('zh-CN', locale$1, 'super-select'
|
|
|
1052
1062
|
});
|
|
1053
1063
|
}));
|
|
1054
1064
|
|
|
1055
|
-
var style$1 = {"list":"
|
|
1065
|
+
var style$1 = {"list":"kne-super-select_YTqxA","is-popup":"kne-super-select_TR-1a","default-list":"kne-super-select_IZN7r","is-selected-all":"kne-super-select_GCIMn","default-list-item":"kne-super-select_AYi0i","is-selected":"kne-super-select_eovZv","single-checked":"kne-super-select_Tr-bO","is-disabled":"kne-super-select_T-hri","selected-all":"kne-super-select_4XFtm","selected-tag":"kne-super-select_Whlzr","select-search":"kne-super-select_7zuBL","select-tree-item-description":"kne-super-select_R-Sye","footer":"kne-super-select_PjlnR"};
|
|
1056
1066
|
|
|
1057
1067
|
const _excluded$1 = ["children"],
|
|
1058
1068
|
_excluded2 = ["data"];
|
|
@@ -1477,7 +1487,7 @@ const createTreeUtils = mapping => {
|
|
|
1477
1487
|
};
|
|
1478
1488
|
};
|
|
1479
1489
|
|
|
1480
|
-
var style = {"content":"
|
|
1490
|
+
var style = {"content":"kne-super-select_fHNBt","columns":"kne-super-select_VgpIp","content-item":"kne-super-select_kSkN1","last-level-area":"kne-super-select_1QV-l","is-popup":"kne-super-select_zFwDF","menu":"kne-super-select_s-ON4","scroll-plus-box":"kne-super-select_rIix2","menu-label":"kne-super-select_XAs20","menu-label-text":"kne-super-select_Y8AoQ","menu-item":"kne-super-select_ZwakZ","checkbox-hidden":"kne-super-select_0FUoe","single-mode":"kne-super-select_dahnB","menu-item-icon":"kne-super-select_AZZvN","menu-item-placeholder":"kne-super-select_TudTj","loading":"kne-super-select_ljvZk","search-input":"kne-super-select_FVxuS","list":"kne-super-select_iUhv7","is-selected":"kne-super-select_tx4-l","custom-menu":"kne-super-select_OerpL","selected":"kne-super-select_OUkpN"};
|
|
1481
1491
|
|
|
1482
1492
|
const CustomMenu = ({
|
|
1483
1493
|
className,
|