@banch0u/core-project-test-repository 1.10.0 → 1.10.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.
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["children", "className", "size", "placeholder", "onChange", "onOpen", "disabled", "value", "defaultValue", "mode", "text", "allowClear", "width"];
|
|
5
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2
7
|
import React from "react";
|
|
3
8
|
import style from "./index.module.scss";
|
|
4
9
|
import { Select as AntdSelect, Divider } from "antd";
|
|
@@ -21,7 +26,8 @@ var Select = function Select(_ref) {
|
|
|
21
26
|
text = _ref.text,
|
|
22
27
|
_ref$allowClear = _ref.allowClear,
|
|
23
28
|
allowClear = _ref$allowClear === void 0 ? true : _ref$allowClear,
|
|
24
|
-
width = _ref.width
|
|
29
|
+
width = _ref.width,
|
|
30
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
25
31
|
var getClassName = function getClassName() {
|
|
26
32
|
if (className) return className;
|
|
27
33
|
switch (size) {
|
|
@@ -33,7 +39,7 @@ var Select = function Select(_ref) {
|
|
|
33
39
|
return style.select;
|
|
34
40
|
}
|
|
35
41
|
};
|
|
36
|
-
var commonProps = {
|
|
42
|
+
var commonProps = _objectSpread({
|
|
37
43
|
className: getClassName(),
|
|
38
44
|
style: {
|
|
39
45
|
width: width ? "".concat(width, "px") : "100%"
|
|
@@ -46,7 +52,7 @@ var Select = function Select(_ref) {
|
|
|
46
52
|
disabled: disabled,
|
|
47
53
|
value: value,
|
|
48
54
|
defaultValue: defaultValue
|
|
49
|
-
};
|
|
55
|
+
}, rest);
|
|
50
56
|
var normalizeAz = function normalizeAz(str) {
|
|
51
57
|
return str.replace(/I/g, "i").toLocaleLowerCase("az").normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/ç/g, "c").replace(/ş/g, "s").replace(/ğ/g, "g").replace(/ü/g, "u").replace(/ö/g, "o").replace(/ə/g, "e");
|
|
52
58
|
};
|