antd3-esm 1.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 (174) hide show
  1. package/LICENSE +21 -0
  2. package/dist/Checkbox.js +164 -0
  3. package/dist/CommonMixin.js +816 -0
  4. package/dist/Divider.js +646 -0
  5. package/dist/Notification.js +279 -0
  6. package/dist/Pagination.js +1106 -0
  7. package/dist/PortalWrapper.js +347 -0
  8. package/dist/RowContext.js +5 -0
  9. package/dist/Sider.js +533 -0
  10. package/dist/TextArea.js +432 -0
  11. package/dist/_arrayMap.js +68 -0
  12. package/dist/_assignValue.js +95 -0
  13. package/dist/_copyArray.js +31 -0
  14. package/dist/_hasPath.js +53 -0
  15. package/dist/_overArg.js +437 -0
  16. package/dist/_stringToArray.js +136 -0
  17. package/dist/antd/es/affix.js +12 -0
  18. package/dist/antd/es/alert.js +5 -0
  19. package/dist/antd/es/anchor.js +466 -0
  20. package/dist/antd/es/auto-complete.js +5 -0
  21. package/dist/antd/es/avatar.js +5 -0
  22. package/dist/antd/es/back-top.js +5 -0
  23. package/dist/antd/es/badge.js +5 -0
  24. package/dist/antd/es/breadcrumb.js +18 -0
  25. package/dist/antd/es/button.js +12 -0
  26. package/dist/antd/es/calendar.js +953 -0
  27. package/dist/antd/es/card.js +5 -0
  28. package/dist/antd/es/carousel.js +5 -0
  29. package/dist/antd/es/cascader.js +1275 -0
  30. package/dist/antd/es/checkbox.js +11 -0
  31. package/dist/antd/es/col.js +4 -0
  32. package/dist/antd/es/collapse.js +688 -0
  33. package/dist/antd/es/comment.js +5 -0
  34. package/dist/antd/es/config-provider.js +2 -0
  35. package/dist/antd/es/date-picker.js +4322 -0
  36. package/dist/antd/es/descriptions.js +342 -0
  37. package/dist/antd/es/divider.js +53 -0
  38. package/dist/antd/es/drawer.js +1115 -0
  39. package/dist/antd/es/dropdown.js +14 -0
  40. package/dist/antd/es/empty.js +6 -0
  41. package/dist/antd/es/form.js +5008 -0
  42. package/dist/antd/es/grid.js +13 -0
  43. package/dist/antd/es/icon.js +6 -0
  44. package/dist/antd/es/input-number.js +5 -0
  45. package/dist/antd/es/input.js +16 -0
  46. package/dist/antd/es/layout.js +14 -0
  47. package/dist/antd/es/list.js +5 -0
  48. package/dist/antd/es/locale/ar_EG.js +102 -0
  49. package/dist/antd/es/locale/bg_BG.js +98 -0
  50. package/dist/antd/es/locale/ca_ES.js +96 -0
  51. package/dist/antd/es/locale/cs_CZ.js +96 -0
  52. package/dist/antd/es/locale/da_DK.js +98 -0
  53. package/dist/antd/es/locale/de_DE.js +98 -0
  54. package/dist/antd/es/locale/default.js +2 -0
  55. package/dist/antd/es/locale/el_GR.js +98 -0
  56. package/dist/antd/es/locale/en_GB.js +98 -0
  57. package/dist/antd/es/locale/en_US.js +2 -0
  58. package/dist/antd/es/locale/es_ES.js +114 -0
  59. package/dist/antd/es/locale/et_EE.js +98 -0
  60. package/dist/antd/es/locale/fa_IR.js +98 -0
  61. package/dist/antd/es/locale/fi_FI.js +99 -0
  62. package/dist/antd/es/locale/fr_BE.js +102 -0
  63. package/dist/antd/es/locale/fr_FR.js +102 -0
  64. package/dist/antd/es/locale/ga_IE.js +99 -0
  65. package/dist/antd/es/locale/he_IL.js +99 -0
  66. package/dist/antd/es/locale/hi_IN.js +107 -0
  67. package/dist/antd/es/locale/hr_HR.js +113 -0
  68. package/dist/antd/es/locale/hu_HU.js +99 -0
  69. package/dist/antd/es/locale/hy_AM.js +109 -0
  70. package/dist/antd/es/locale/id_ID.js +101 -0
  71. package/dist/antd/es/locale/is_IS.js +98 -0
  72. package/dist/antd/es/locale/it_IT.js +111 -0
  73. package/dist/antd/es/locale/ja_JP.js +96 -0
  74. package/dist/antd/es/locale/kn_IN.js +107 -0
  75. package/dist/antd/es/locale/ko_KR.js +98 -0
  76. package/dist/antd/es/locale/ku_IQ.js +98 -0
  77. package/dist/antd/es/locale/lv_LV.js +98 -0
  78. package/dist/antd/es/locale/mk_MK.js +113 -0
  79. package/dist/antd/es/locale/mn_MN.js +99 -0
  80. package/dist/antd/es/locale/ms_MY.js +118 -0
  81. package/dist/antd/es/locale/nb_NO.js +97 -0
  82. package/dist/antd/es/locale/ne_NP.js +44 -0
  83. package/dist/antd/es/locale/nl_BE.js +98 -0
  84. package/dist/antd/es/locale/nl_NL.js +117 -0
  85. package/dist/antd/es/locale/pl_PL.js +98 -0
  86. package/dist/antd/es/locale/pt_BR.js +104 -0
  87. package/dist/antd/es/locale/pt_PT.js +127 -0
  88. package/dist/antd/es/locale/ro_RO.js +118 -0
  89. package/dist/antd/es/locale/ru_RU.js +110 -0
  90. package/dist/antd/es/locale/sk_SK.js +118 -0
  91. package/dist/antd/es/locale/sl_SI.js +96 -0
  92. package/dist/antd/es/locale/sr_RS.js +97 -0
  93. package/dist/antd/es/locale/sv_SE.js +101 -0
  94. package/dist/antd/es/locale/ta_IN.js +119 -0
  95. package/dist/antd/es/locale/th_TH.js +117 -0
  96. package/dist/antd/es/locale/tr_TR.js +112 -0
  97. package/dist/antd/es/locale/uk_UA.js +97 -0
  98. package/dist/antd/es/locale/vi_VN.js +99 -0
  99. package/dist/antd/es/locale/zh_CN.js +104 -0
  100. package/dist/antd/es/locale/zh_TW.js +100 -0
  101. package/dist/antd/es/locale-provider.js +6 -0
  102. package/dist/antd/es/mention.js +23215 -0
  103. package/dist/antd/es/mentions.js +961 -0
  104. package/dist/antd/es/menu.js +5 -0
  105. package/dist/antd/es/message.js +161 -0
  106. package/dist/antd/es/modal.js +885 -0
  107. package/dist/antd/es/notification.js +216 -0
  108. package/dist/antd/es/page-header.js +350 -0
  109. package/dist/antd/es/pagination.js +15 -0
  110. package/dist/antd/es/popconfirm.js +215 -0
  111. package/dist/antd/es/popover.js +5 -0
  112. package/dist/antd/es/progress.js +10 -0
  113. package/dist/antd/es/radio.js +10 -0
  114. package/dist/antd/es/rate.js +5 -0
  115. package/dist/antd/es/result.js +828 -0
  116. package/dist/antd/es/row.js +9 -0
  117. package/dist/antd/es/select.js +5 -0
  118. package/dist/antd/es/skeleton.js +370 -0
  119. package/dist/antd/es/slider.js +5 -0
  120. package/dist/antd/es/spin.js +11 -0
  121. package/dist/antd/es/statistic.js +650 -0
  122. package/dist/antd/es/steps.js +5 -0
  123. package/dist/antd/es/style.js +5 -0
  124. package/dist/antd/es/switch.js +5 -0
  125. package/dist/antd/es/table.js +7057 -0
  126. package/dist/antd/es/tabs.js +5 -0
  127. package/dist/antd/es/tag.js +12 -0
  128. package/dist/antd/es/time-picker.js +10 -0
  129. package/dist/antd/es/timeline.js +206 -0
  130. package/dist/antd/es/tooltip.js +9 -0
  131. package/dist/antd/es/transfer.js +2508 -0
  132. package/dist/antd/es/tree-select.js +5 -0
  133. package/dist/antd/es/tree.js +10 -0
  134. package/dist/antd/es/typography.js +1246 -0
  135. package/dist/antd/es/upload.js +3418 -0
  136. package/dist/antd/es/version.js +7 -0
  137. package/dist/col.js +142 -0
  138. package/dist/config-provider.js +6949 -0
  139. package/dist/dropdown.js +442 -0
  140. package/dist/get.js +1043 -0
  141. package/dist/icon.js +6138 -0
  142. package/dist/identity.js +230 -0
  143. package/dist/index.js +462 -0
  144. package/dist/index10.js +478 -0
  145. package/dist/index11.js +232 -0
  146. package/dist/index12.js +2766 -0
  147. package/dist/index13.js +422 -0
  148. package/dist/index14.js +283 -0
  149. package/dist/index15.js +1755 -0
  150. package/dist/index2.js +374 -0
  151. package/dist/index3.js +407 -0
  152. package/dist/index4.js +522 -0
  153. package/dist/index5.js +601 -0
  154. package/dist/index6.js +601 -0
  155. package/dist/index7.js +364 -0
  156. package/dist/index8.js +436 -0
  157. package/dist/index9.js +130 -0
  158. package/dist/input.js +475 -0
  159. package/dist/isLength.js +402 -0
  160. package/dist/keys.js +292 -0
  161. package/dist/menu.js +8138 -0
  162. package/dist/progress.js +852 -0
  163. package/dist/raf.js +34 -0
  164. package/dist/responsiveObserve.js +444 -0
  165. package/dist/row.js +173 -0
  166. package/dist/scrollTo.js +66 -0
  167. package/dist/toInteger.js +123 -0
  168. package/dist/toString.js +84 -0
  169. package/dist/transButton.js +121 -0
  170. package/dist/tree.js +3017 -0
  171. package/dist/warning.js +55 -0
  172. package/dist/wave.js +230 -0
  173. package/dist/zh_CN.js +17 -0
  174. package/package.json +160 -0
@@ -0,0 +1,66 @@
1
+ import { r as raf } from './menu.js';
2
+
3
+ function getScroll(target, top) {
4
+ if (typeof window === 'undefined') {
5
+ return 0;
6
+ }
7
+
8
+ var prop = 'pageYOffset' ;
9
+ var method = 'scrollTop' ;
10
+ var isWindow = target === window;
11
+ var ret = isWindow ? target[prop] : target[method]; // ie6,7,8 standard mode
12
+
13
+ if (isWindow && typeof ret !== 'number') {
14
+ ret = document.documentElement[method];
15
+ }
16
+
17
+ return ret;
18
+ }
19
+
20
+ // eslint-disable-next-line import/prefer-default-export
21
+ function easeInOutCubic(t, b, c, d) {
22
+ var cc = c - b;
23
+ t /= d / 2;
24
+
25
+ if (t < 1) {
26
+ return cc / 2 * t * t * t + b;
27
+ }
28
+
29
+ return cc / 2 * ((t -= 2) * t * t + 2) + b;
30
+ }
31
+
32
+ function scrollTo(y) {
33
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
34
+ var _options$getContainer = options.getContainer,
35
+ getContainer = _options$getContainer === void 0 ? function () {
36
+ return window;
37
+ } : _options$getContainer,
38
+ callback = options.callback,
39
+ _options$duration = options.duration,
40
+ duration = _options$duration === void 0 ? 450 : _options$duration;
41
+ var container = getContainer();
42
+ var scrollTop = getScroll(container);
43
+ var startTime = Date.now();
44
+
45
+ var frameFunc = function frameFunc() {
46
+ var timestamp = Date.now();
47
+ var time = timestamp - startTime;
48
+ var nextScrollTop = easeInOutCubic(time > duration ? duration : time, scrollTop, y, duration);
49
+
50
+ if (container === window) {
51
+ window.scrollTo(window.pageXOffset, nextScrollTop);
52
+ } else {
53
+ container.scrollTop = nextScrollTop;
54
+ }
55
+
56
+ if (time < duration) {
57
+ raf(frameFunc);
58
+ } else if (typeof callback === 'function') {
59
+ callback();
60
+ }
61
+ };
62
+
63
+ raf(frameFunc);
64
+ }
65
+
66
+ export { getScroll as g, scrollTo as s };
@@ -0,0 +1,123 @@
1
+ import { b as requireToNumber } from './tree.js';
2
+
3
+ /**
4
+ * The base implementation of `_.property` without support for deep paths.
5
+ *
6
+ * @private
7
+ * @param {string} key The key of the property to get.
8
+ * @returns {Function} Returns the new accessor function.
9
+ */
10
+
11
+ var _baseProperty;
12
+ var hasRequired_baseProperty;
13
+
14
+ function require_baseProperty () {
15
+ if (hasRequired_baseProperty) return _baseProperty;
16
+ hasRequired_baseProperty = 1;
17
+ function baseProperty(key) {
18
+ return function(object) {
19
+ return object == null ? undefined : object[key];
20
+ };
21
+ }
22
+
23
+ _baseProperty = baseProperty;
24
+ return _baseProperty;
25
+ }
26
+
27
+ var toFinite_1;
28
+ var hasRequiredToFinite;
29
+
30
+ function requireToFinite () {
31
+ if (hasRequiredToFinite) return toFinite_1;
32
+ hasRequiredToFinite = 1;
33
+ var toNumber = requireToNumber();
34
+
35
+ /** Used as references for various `Number` constants. */
36
+ var INFINITY = 1 / 0,
37
+ MAX_INTEGER = 1.7976931348623157e+308;
38
+
39
+ /**
40
+ * Converts `value` to a finite number.
41
+ *
42
+ * @static
43
+ * @memberOf _
44
+ * @since 4.12.0
45
+ * @category Lang
46
+ * @param {*} value The value to convert.
47
+ * @returns {number} Returns the converted number.
48
+ * @example
49
+ *
50
+ * _.toFinite(3.2);
51
+ * // => 3.2
52
+ *
53
+ * _.toFinite(Number.MIN_VALUE);
54
+ * // => 5e-324
55
+ *
56
+ * _.toFinite(Infinity);
57
+ * // => 1.7976931348623157e+308
58
+ *
59
+ * _.toFinite('3.2');
60
+ * // => 3.2
61
+ */
62
+ function toFinite(value) {
63
+ if (!value) {
64
+ return value === 0 ? value : 0;
65
+ }
66
+ value = toNumber(value);
67
+ if (value === INFINITY || value === -INFINITY) {
68
+ var sign = (value < 0 ? -1 : 1);
69
+ return sign * MAX_INTEGER;
70
+ }
71
+ return value === value ? value : 0;
72
+ }
73
+
74
+ toFinite_1 = toFinite;
75
+ return toFinite_1;
76
+ }
77
+
78
+ var toInteger_1;
79
+ var hasRequiredToInteger;
80
+
81
+ function requireToInteger () {
82
+ if (hasRequiredToInteger) return toInteger_1;
83
+ hasRequiredToInteger = 1;
84
+ var toFinite = requireToFinite();
85
+
86
+ /**
87
+ * Converts `value` to an integer.
88
+ *
89
+ * **Note:** This method is loosely based on
90
+ * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
91
+ *
92
+ * @static
93
+ * @memberOf _
94
+ * @since 4.0.0
95
+ * @category Lang
96
+ * @param {*} value The value to convert.
97
+ * @returns {number} Returns the converted integer.
98
+ * @example
99
+ *
100
+ * _.toInteger(3.2);
101
+ * // => 3
102
+ *
103
+ * _.toInteger(Number.MIN_VALUE);
104
+ * // => 0
105
+ *
106
+ * _.toInteger(Infinity);
107
+ * // => 1.7976931348623157e+308
108
+ *
109
+ * _.toInteger('3.2');
110
+ * // => 3
111
+ */
112
+ function toInteger(value) {
113
+ var result = toFinite(value),
114
+ remainder = result % 1;
115
+
116
+ return result === result ? (remainder ? result - remainder : result) : 0;
117
+ }
118
+
119
+ toInteger_1 = toInteger;
120
+ return toInteger_1;
121
+ }
122
+
123
+ export { requireToInteger as a, require_baseProperty as r };
@@ -0,0 +1,84 @@
1
+ import { r as require_Symbol, a as requireIsSymbol } from './tree.js';
2
+ import { r as requireIsArray, a as require_arrayMap } from './_arrayMap.js';
3
+
4
+ var _baseToString;
5
+ var hasRequired_baseToString;
6
+
7
+ function require_baseToString () {
8
+ if (hasRequired_baseToString) return _baseToString;
9
+ hasRequired_baseToString = 1;
10
+ var Symbol = require_Symbol(),
11
+ arrayMap = require_arrayMap(),
12
+ isArray = requireIsArray(),
13
+ isSymbol = requireIsSymbol();
14
+
15
+ /** Used to convert symbols to primitives and strings. */
16
+ var symbolProto = Symbol ? Symbol.prototype : undefined,
17
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
18
+
19
+ /**
20
+ * The base implementation of `_.toString` which doesn't convert nullish
21
+ * values to empty strings.
22
+ *
23
+ * @private
24
+ * @param {*} value The value to process.
25
+ * @returns {string} Returns the string.
26
+ */
27
+ function baseToString(value) {
28
+ // Exit early for strings to avoid a performance hit in some environments.
29
+ if (typeof value == 'string') {
30
+ return value;
31
+ }
32
+ if (isArray(value)) {
33
+ // Recursively convert values (susceptible to call stack limits).
34
+ return arrayMap(value, baseToString) + '';
35
+ }
36
+ if (isSymbol(value)) {
37
+ return symbolToString ? symbolToString.call(value) : '';
38
+ }
39
+ var result = (value + '');
40
+ return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
41
+ }
42
+
43
+ _baseToString = baseToString;
44
+ return _baseToString;
45
+ }
46
+
47
+ var toString_1;
48
+ var hasRequiredToString;
49
+
50
+ function requireToString () {
51
+ if (hasRequiredToString) return toString_1;
52
+ hasRequiredToString = 1;
53
+ var baseToString = require_baseToString();
54
+
55
+ /**
56
+ * Converts `value` to a string. An empty string is returned for `null`
57
+ * and `undefined` values. The sign of `-0` is preserved.
58
+ *
59
+ * @static
60
+ * @memberOf _
61
+ * @since 4.0.0
62
+ * @category Lang
63
+ * @param {*} value The value to convert.
64
+ * @returns {string} Returns the converted string.
65
+ * @example
66
+ *
67
+ * _.toString(null);
68
+ * // => ''
69
+ *
70
+ * _.toString(-0);
71
+ * // => '-0'
72
+ *
73
+ * _.toString([1, 2, 3]);
74
+ * // => '1,2,3'
75
+ */
76
+ function toString(value) {
77
+ return value == null ? '' : baseToString(value);
78
+ }
79
+
80
+ toString_1 = toString;
81
+ return toString_1;
82
+ }
83
+
84
+ export { requireToString as a, require_baseToString as r };
@@ -0,0 +1,121 @@
1
+ import * as React from 'react';
2
+ import { K as KeyCode } from './menu.js';
3
+
4
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
5
+
6
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7
+
8
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
9
+
10
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
11
+
12
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); return Constructor; }
13
+
14
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
15
+
16
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
17
+
18
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
19
+
20
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
21
+
22
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
23
+
24
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
25
+
26
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
27
+
28
+ var __rest = undefined && undefined.__rest || function (s, e) {
29
+ var t = {};
30
+
31
+ for (var p in s) {
32
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
33
+ }
34
+
35
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
36
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
37
+ }
38
+ return t;
39
+ };
40
+ var inlineStyle = {
41
+ border: 0,
42
+ background: 'transparent',
43
+ padding: 0,
44
+ lineHeight: 'inherit',
45
+ display: 'inline-block'
46
+ };
47
+
48
+ var TransButton = /*#__PURE__*/function (_React$Component) {
49
+ _inherits(TransButton, _React$Component);
50
+
51
+ var _super = _createSuper(TransButton);
52
+
53
+ function TransButton() {
54
+ var _this;
55
+
56
+ _classCallCheck(this, TransButton);
57
+
58
+ _this = _super.apply(this, arguments);
59
+
60
+ _this.onKeyDown = function (event) {
61
+ var keyCode = event.keyCode;
62
+
63
+ if (keyCode === KeyCode.ENTER) {
64
+ event.preventDefault();
65
+ }
66
+ };
67
+
68
+ _this.onKeyUp = function (event) {
69
+ var keyCode = event.keyCode;
70
+ var onClick = _this.props.onClick;
71
+
72
+ if (keyCode === KeyCode.ENTER && onClick) {
73
+ onClick();
74
+ }
75
+ };
76
+
77
+ _this.setRef = function (btn) {
78
+ _this.div = btn;
79
+ };
80
+
81
+ return _this;
82
+ }
83
+
84
+ _createClass(TransButton, [{
85
+ key: "focus",
86
+ value: function focus() {
87
+ if (this.div) {
88
+ this.div.focus();
89
+ }
90
+ }
91
+ }, {
92
+ key: "blur",
93
+ value: function blur() {
94
+ if (this.div) {
95
+ this.div.blur();
96
+ }
97
+ }
98
+ }, {
99
+ key: "render",
100
+ value: function render() {
101
+ var _a = this.props,
102
+ style = _a.style,
103
+ noStyle = _a.noStyle,
104
+ restProps = __rest(_a, ["style", "noStyle"]);
105
+
106
+ return /*#__PURE__*/React.createElement("div", _extends({
107
+ role: "button",
108
+ tabIndex: 0,
109
+ ref: this.setRef
110
+ }, restProps, {
111
+ onKeyDown: this.onKeyDown,
112
+ onKeyUp: this.onKeyUp,
113
+ style: _extends(_extends({}, !noStyle ? inlineStyle : null), style)
114
+ }));
115
+ }
116
+ }]);
117
+
118
+ return TransButton;
119
+ }(React.Component);
120
+
121
+ export { TransButton as T };