@autobest-ui/components 1.5.0 → 2.0.0

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 (160) hide show
  1. package/esm/accordion/Item.d.ts +1 -1
  2. package/esm/accordion/Item.js +5 -3
  3. package/esm/accordion/index.d.ts +1 -1
  4. package/esm/accordion/index.js +5 -3
  5. package/esm/affix/PortalAffix.js +7 -7
  6. package/esm/affix/index.js +19 -17
  7. package/esm/carousel/index.js +16 -14
  8. package/esm/checkbox/index.js +19 -17
  9. package/esm/collapse/index.js +13 -11
  10. package/esm/confirm/index.d.ts +1 -1
  11. package/esm/confirm/index.js +14 -14
  12. package/esm/date-picker/calendar/Day.d.ts +1 -1
  13. package/esm/date-picker/calendar/Day.js +11 -11
  14. package/esm/date-picker/calendar/MonthYear.js +8 -8
  15. package/esm/date-picker/calendar/grid/index.js +18 -18
  16. package/esm/date-picker/calendar/index.js +7 -5
  17. package/esm/date-picker/calendar/types.js +1 -0
  18. package/esm/date-picker/index.js +15 -13
  19. package/esm/drawer/Child.js +6 -6
  20. package/esm/drawer/index.js +11 -9
  21. package/esm/ellipsis/index.js +4 -4
  22. package/esm/guide/index.js +15 -13
  23. package/esm/input-number/index.d.ts +4 -4
  24. package/esm/input-number/index.js +27 -25
  25. package/esm/lazy-image/index.d.ts +3 -3
  26. package/esm/lazy-image/index.js +6 -4
  27. package/esm/link-list/index.js +24 -22
  28. package/esm/link-list/style/index.css +1 -1
  29. package/esm/loading/index.js +4 -4
  30. package/esm/loading-bar/index.d.ts +1 -0
  31. package/esm/loading-bar/index.js +3 -3
  32. package/esm/loading-container/index.js +6 -6
  33. package/esm/loading-icon/index.js +12 -12
  34. package/esm/mask/index.js +4 -4
  35. package/esm/message/index.js +14 -14
  36. package/esm/modal/Affix.d.ts +1 -0
  37. package/esm/modal/Affix.js +1 -1
  38. package/esm/modal/Title.js +9 -9
  39. package/esm/modal/getPopupLocation.js +1 -1
  40. package/esm/modal/index.d.ts +1 -1
  41. package/esm/modal/index.js +21 -19
  42. package/esm/modal/style/index.css +1 -1
  43. package/esm/move/index.d.ts +1 -1
  44. package/esm/move/index.js +14 -12
  45. package/esm/popover/index.js +9 -9
  46. package/esm/portal/index.js +5 -3
  47. package/esm/script/index.js +8 -6
  48. package/esm/select/index.d.ts +3 -3
  49. package/esm/select/index.js +34 -36
  50. package/esm/show-more/index.js +14 -12
  51. package/esm/skeleton/Item.js +3 -3
  52. package/esm/skeleton/index.js +11 -15
  53. package/esm/style.css +6 -6
  54. package/esm/table/body/BodyRow.js +8 -8
  55. package/esm/table/body/CheckIcon.js +7 -7
  56. package/esm/table/body/index.d.ts +1 -1
  57. package/esm/table/body/index.js +6 -6
  58. package/esm/table/header/CheckIcon.js +6 -6
  59. package/esm/table/header/HeaderCell.d.ts +1 -1
  60. package/esm/table/header/HeaderCell.js +10 -8
  61. package/esm/table/header/HeaderRow.d.ts +1 -0
  62. package/esm/table/header/HeaderRow.js +2 -2
  63. package/esm/table/index.d.ts +3 -7
  64. package/esm/table/index.js +20 -18
  65. package/esm/table/interface.js +1 -0
  66. package/esm/tabs/index.d.ts +1 -1
  67. package/esm/tabs/index.js +14 -12
  68. package/esm/tooltip/index.d.ts +1 -0
  69. package/esm/tooltip/index.js +1 -1
  70. package/esm/trigger/bottomAlign.js +2 -2
  71. package/esm/trigger/getPopupLocation.js +2 -1
  72. package/esm/trigger/index.d.ts +4 -4
  73. package/esm/trigger/index.js +24 -22
  74. package/esm/trigger/leftAlign.js +2 -2
  75. package/esm/trigger/rightAlign.js +2 -2
  76. package/esm/trigger/topAlign.js +2 -2
  77. package/esm/trigger/utils.js +2 -2
  78. package/lib/accordion/Item.d.ts +1 -1
  79. package/lib/accordion/Item.js +5 -3
  80. package/lib/accordion/index.d.ts +1 -1
  81. package/lib/accordion/index.js +5 -3
  82. package/lib/affix/PortalAffix.js +7 -7
  83. package/lib/affix/index.js +19 -17
  84. package/lib/carousel/index.js +16 -14
  85. package/lib/checkbox/index.js +19 -17
  86. package/lib/collapse/index.js +13 -11
  87. package/lib/confirm/index.d.ts +1 -1
  88. package/lib/confirm/index.js +14 -14
  89. package/lib/date-picker/calendar/Day.d.ts +1 -1
  90. package/lib/date-picker/calendar/Day.js +12 -12
  91. package/lib/date-picker/calendar/MonthYear.js +9 -9
  92. package/lib/date-picker/calendar/grid/index.js +18 -18
  93. package/lib/date-picker/calendar/index.js +8 -6
  94. package/lib/date-picker/calendar/types.js +5 -1
  95. package/lib/date-picker/index.js +15 -13
  96. package/lib/date-picker/utils.js +8 -8
  97. package/lib/drawer/Child.js +6 -6
  98. package/lib/drawer/index.js +11 -9
  99. package/lib/ellipsis/index.js +4 -4
  100. package/lib/guide/index.js +15 -13
  101. package/lib/index.js +54 -54
  102. package/lib/input-number/index.d.ts +4 -4
  103. package/lib/input-number/index.js +27 -25
  104. package/lib/lazy-image/index.d.ts +3 -3
  105. package/lib/lazy-image/index.js +6 -4
  106. package/lib/link-list/index.js +24 -22
  107. package/lib/link-list/style/index.css +1 -1
  108. package/lib/loading/index.js +4 -4
  109. package/lib/loading-bar/index.d.ts +1 -0
  110. package/lib/loading-bar/index.js +3 -3
  111. package/lib/loading-container/index.js +6 -6
  112. package/lib/loading-icon/index.js +12 -12
  113. package/lib/mask/index.js +4 -4
  114. package/lib/message/index.js +14 -14
  115. package/lib/modal/Affix.d.ts +1 -0
  116. package/lib/modal/Affix.js +1 -1
  117. package/lib/modal/Title.js +9 -9
  118. package/lib/modal/getPopupLocation.js +1 -1
  119. package/lib/modal/index.d.ts +1 -1
  120. package/lib/modal/index.js +22 -20
  121. package/lib/modal/style/index.css +1 -1
  122. package/lib/move/index.d.ts +1 -1
  123. package/lib/move/index.js +14 -12
  124. package/lib/popover/index.js +9 -9
  125. package/lib/portal/index.js +5 -3
  126. package/lib/script/index.js +8 -6
  127. package/lib/select/index.d.ts +3 -3
  128. package/lib/select/index.js +34 -36
  129. package/lib/show-more/index.js +14 -12
  130. package/lib/skeleton/Item.js +3 -3
  131. package/lib/skeleton/index.js +11 -15
  132. package/lib/style.css +6 -6
  133. package/lib/table/body/BodyRow.js +8 -8
  134. package/lib/table/body/CheckIcon.js +7 -7
  135. package/lib/table/body/index.d.ts +1 -1
  136. package/lib/table/body/index.js +6 -6
  137. package/lib/table/header/CheckIcon.js +6 -6
  138. package/lib/table/header/HeaderCell.d.ts +1 -1
  139. package/lib/table/header/HeaderCell.js +10 -8
  140. package/lib/table/header/HeaderRow.d.ts +1 -0
  141. package/lib/table/header/HeaderRow.js +2 -2
  142. package/lib/table/index.d.ts +3 -7
  143. package/lib/table/index.js +20 -18
  144. package/lib/table/interface.js +5 -1
  145. package/lib/tabs/index.d.ts +1 -1
  146. package/lib/tabs/index.js +14 -12
  147. package/lib/tooltip/index.d.ts +1 -0
  148. package/lib/tooltip/index.js +1 -1
  149. package/lib/trigger/align.js +24 -24
  150. package/lib/trigger/bottomAlign.js +3 -3
  151. package/lib/trigger/constants.js +1 -1
  152. package/lib/trigger/getPopupLocation.js +2 -1
  153. package/lib/trigger/index.d.ts +4 -4
  154. package/lib/trigger/index.js +25 -23
  155. package/lib/trigger/leftAlign.js +3 -3
  156. package/lib/trigger/ref.js +1 -1
  157. package/lib/trigger/rightAlign.js +3 -3
  158. package/lib/trigger/topAlign.js +3 -3
  159. package/lib/trigger/utils.js +4 -4
  160. package/package.json +2 -2
@@ -4,10 +4,10 @@ var cls = 'ab-dp-cg';
4
4
 
5
5
  var renderArrow = function renderArrow(prefixCls, direction, onClick) {
6
6
  var enabled = !!onClick;
7
- return React.createElement("span", {
8
- className: prefixCls + "-arrow",
7
+ return /*#__PURE__*/React.createElement("span", {
8
+ className: "".concat(prefixCls, "-arrow"),
9
9
  onClick: onClick
10
- }, React.createElement("svg", {
10
+ }, /*#__PURE__*/React.createElement("svg", {
11
11
  style: direction,
12
12
  viewBox: "0 0 1024 1024",
13
13
  version: "1.1",
@@ -15,7 +15,7 @@ var renderArrow = function renderArrow(prefixCls, direction, onClick) {
15
15
  height: "0.28rem",
16
16
  fill: enabled ? '#333' : '#808080',
17
17
  xmlns: "http://www.w3.org/2000/svg"
18
- }, React.createElement("path", {
18
+ }, /*#__PURE__*/React.createElement("path", {
19
19
  d: "M525.339326 186.172452L801.789086 462.622212c12.496698 12.496698 32.758136 12.496698 45.254834 0 12.497405-12.497405 12.496698-32.758136 0-45.254834l-331.014362-331.014362c-12.496698-12.496698-32.757429-12.497405-45.254834 0l-341.795619 339.143969c-12.496698 12.496698-12.496698 32.758136 0 45.254834 12.496698 12.496698 32.758136 12.496698 45.254834 0l287.10586-284.454209L461.372325 925.726242c0 17.673427 14.32669 32.000117 32.000118 32.000117 17.67272-0.000707 31.99941-14.327398 32.000117-32.000117l-0.032527-739.553083z"
20
20
  })));
21
21
  };
@@ -31,29 +31,29 @@ var CalendarGrid = function CalendarGrid(_a) {
31
31
  headList = _a.headList,
32
32
  list = _a.list,
33
33
  bottomElement = _a.bottomElement;
34
- return React.createElement("div", {
34
+ return /*#__PURE__*/React.createElement("div", {
35
35
  className: classNames(className, cls)
36
- }, React.createElement("div", {
37
- className: cls + "-title"
38
- }, React.createElement("strong", {
39
- className: classNames((_b = {}, _b[cls + "-clickable"] = !!onClickTitle, _b)),
36
+ }, /*#__PURE__*/React.createElement("div", {
37
+ className: "".concat(cls, "-title")
38
+ }, /*#__PURE__*/React.createElement("strong", {
39
+ className: classNames((_b = {}, _b["".concat(cls, "-clickable")] = !!onClickTitle, _b)),
40
40
  onClick: onClickTitle
41
41
  }, title), renderArrow(cls, {}, onPrev), renderArrow(cls, {
42
42
  transform: 'rotate(180deg)'
43
- }, onNext)), React.createElement("ul", {
44
- className: cls + "-head"
43
+ }, onNext)), /*#__PURE__*/React.createElement("ul", {
44
+ className: "".concat(cls, "-head")
45
45
  }, headList.map(function (item, index) {
46
- return React.createElement("li", {
47
- key: index + " " + item
46
+ return /*#__PURE__*/React.createElement("li", {
47
+ key: "".concat(index, " ").concat(item)
48
48
  }, item);
49
- })), React.createElement("ul", {
50
- className: cls + "-content"
49
+ })), /*#__PURE__*/React.createElement("ul", {
50
+ className: "".concat(cls, "-content")
51
51
  }, list.map(function (item, index) {
52
52
  var _a, _b, _c;
53
53
 
54
- return React.createElement("li", {
55
- key: index + " " + item.name,
56
- className: classNames((_a = {}, _a[cls + "-dis"] = item.disabled, _a), (_b = {}, _b[cls + "-selected"] = item.selected, _b), (_c = {}, _c[cls + "-today"] = item.isToday, _c), item.className),
54
+ return /*#__PURE__*/React.createElement("li", {
55
+ key: "".concat(index, " ").concat(item.name),
56
+ className: classNames((_a = {}, _a["".concat(cls, "-dis")] = item.disabled, _a), (_b = {}, _b["".concat(cls, "-selected")] = item.selected, _b), (_c = {}, _c["".concat(cls, "-today")] = item.isToday, _c), item.className),
57
57
  onClick: item.onClick
58
58
  }, item.name);
59
59
  })), bottomElement);
@@ -6,7 +6,7 @@ var __extends = this && this.__extends || function () {
6
6
  d.__proto__ = b;
7
7
  } || function (d, b) {
8
8
  for (var p in b) {
9
- if (b.hasOwnProperty(p)) d[p] = b[p];
9
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
10
10
  }
11
11
  };
12
12
 
@@ -14,6 +14,8 @@ var __extends = this && this.__extends || function () {
14
14
  };
15
15
 
16
16
  return function (d, b) {
17
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18
+
17
19
  _extendStatics(d, b);
18
20
 
19
21
  function __() {
@@ -42,9 +44,9 @@ var __assign = this && this.__assign || function () {
42
44
 
43
45
  import React from 'react';
44
46
  import classNames from 'classnames';
47
+ import { getMonthStart, isOutOfDate } from '../utils';
45
48
  import DayCalendar from './Day';
46
49
  import MonthYearCalendar from './MonthYear';
47
- import { getMonthStart, isOutOfDate } from '../utils';
48
50
 
49
51
  var Calendar =
50
52
  /** @class */
@@ -104,14 +106,14 @@ function (_super) {
104
106
  monthPickerVisible = _a.monthPickerVisible,
105
107
  yearPickerVisible = _a.yearPickerVisible,
106
108
  className = _a.className;
107
- return React.createElement("div", {
109
+ return /*#__PURE__*/React.createElement("div", {
108
110
  className: classNames(cls, className)
109
- }, React.createElement(DayCalendar, __assign({
111
+ }, /*#__PURE__*/React.createElement(DayCalendar, __assign({
110
112
  prefixCls: cls
111
113
  }, this.props, this.state, {
112
114
  onChangeNavigatedDate: this.onChangeNavigatedDate,
113
115
  onChangeSelectedDate: this.onChangeSelectedDate
114
- })), (monthPickerVisible || yearPickerVisible) && React.createElement(MonthYearCalendar, __assign({
116
+ })), (monthPickerVisible || yearPickerVisible) && /*#__PURE__*/React.createElement(MonthYearCalendar, __assign({
115
117
  prefixCls: cls
116
118
  }, this.props, this.state, {
117
119
  onChangeNavigatedDate: this.onChangeNavigatedDate
@@ -0,0 +1 @@
1
+ export {};
@@ -6,7 +6,7 @@ var __extends = this && this.__extends || function () {
6
6
  d.__proto__ = b;
7
7
  } || function (d, b) {
8
8
  for (var p in b) {
9
- if (b.hasOwnProperty(p)) d[p] = b[p];
9
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
10
10
  }
11
11
  };
12
12
 
@@ -14,6 +14,8 @@ var __extends = this && this.__extends || function () {
14
14
  };
15
15
 
16
16
  return function (d, b) {
17
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18
+
17
19
  _extendStatics(d, b);
18
20
 
19
21
  function __() {
@@ -42,8 +44,8 @@ var __assign = this && this.__assign || function () {
42
44
 
43
45
  import React, { createRef } from 'react';
44
46
  import classNames from 'classnames';
45
- import Calendar from './calendar';
46
- import Popover from '../popover'; // TODO: 移动端
47
+ import Popover from '../popover';
48
+ import Calendar from './calendar'; // TODO: 移动端
47
49
 
48
50
  var DatePicker =
49
51
  /** @class */
@@ -54,7 +56,7 @@ function (_super) {
54
56
  var _this = _super.call(this, props) || this;
55
57
 
56
58
  _this.prefixCls = 'ab-date-picker';
57
- _this.calendarRef = createRef();
59
+ _this.calendarRef = /*#__PURE__*/createRef();
58
60
  _this.popoverTriggered = false;
59
61
 
60
62
  _this.onCalendarSelect = function (date) {
@@ -139,7 +141,7 @@ function (_super) {
139
141
  delete copyProps.prefix;
140
142
  delete copyProps.allowTextInput;
141
143
  delete copyProps.parseDateFromString;
142
- return React.createElement(Calendar, __assign({}, copyProps, {
144
+ return /*#__PURE__*/React.createElement(Calendar, __assign({}, copyProps, {
143
145
  ref: _this.calendarRef,
144
146
  onSelect: _this.onCalendarSelect,
145
147
  className: copyProps.calendarClassName,
@@ -186,32 +188,32 @@ function (_super) {
186
188
  var _b = this.state,
187
189
  calendarVisible = _b.calendarVisible,
188
190
  inputValue = _b.inputValue;
189
- return React.createElement(Popover, {
191
+ return /*#__PURE__*/React.createElement(Popover, {
190
192
  tip: this.renderTip(),
191
193
  visible: calendarVisible,
192
194
  hiddenClose: true,
193
195
  trigger: "click",
194
196
  onVisibleChange: this.onPopoverVisibleChange,
195
197
  placement: "Bottom"
196
- }, React.createElement("label", {
198
+ }, /*#__PURE__*/React.createElement("label", {
197
199
  className: classNames(cls, className)
198
- }, prefix, React.createElement("input", {
200
+ }, prefix, /*#__PURE__*/React.createElement("input", {
199
201
  disabled: disabled,
200
- className: cls + "-input",
202
+ className: "".concat(cls, "-input"),
201
203
  type: "text",
202
204
  value: inputValue,
203
205
  onFocus: this.onInputFocus,
204
206
  onChange: this.onInputChange
205
- }), iconVisible && React.createElement("span", {
206
- className: cls + "-icon"
207
- }, React.createElement("svg", {
207
+ }), iconVisible && /*#__PURE__*/React.createElement("span", {
208
+ className: "".concat(cls, "-icon")
209
+ }, /*#__PURE__*/React.createElement("svg", {
208
210
  viewBox: "0 0 1024 1024",
209
211
  version: "1.1",
210
212
  width: "0.16rem",
211
213
  height: "0.18rem",
212
214
  fill: "currentColor",
213
215
  xmlns: "http://www.w3.org/2000/svg"
214
- }, React.createElement("path", {
216
+ }, /*#__PURE__*/React.createElement("path", {
215
217
  d: "M928 128H832V64h-64v64H256V64H192v64H96l-32 32v768l32 32h832l32-32v-768l-32-32zM896 896H128V320h768v576z m0-640H128V192h768v64zM256 512H192v64h64V512z m-64 128h64v64H192v-64z m64 128H192v64h64v-64z m128-256h64v64H384V512z m64 128H384v64h64v-64z m-64 128h64v64H384v-64z m64-384H384v64h64V384z m128 128h64v64H576V512z m64 128H576v64h64v-64z m-64 128h64v64H576v-64z m64-384H576v64h64V384z m128 128h64v64h-64V512z m64 128h-64v64h64v-64z m-64-256h64v64h-64V384z"
216
218
  })))));
217
219
  };
@@ -53,7 +53,7 @@ function Child(_a, ref) {
53
53
  exiting: {},
54
54
  exited: {}
55
55
  };
56
- return React.createElement(Transition, {
56
+ return /*#__PURE__*/React.createElement(Transition, {
57
57
  "in": visible,
58
58
  timeout: 200,
59
59
  appear: true,
@@ -63,15 +63,15 @@ function Child(_a, ref) {
63
63
  var _a;
64
64
 
65
65
  var nextStyles = state !== 'exited' ? contentStyle : {};
66
- return React.createElement("div", {
66
+ return /*#__PURE__*/React.createElement("div", {
67
67
  style: __assign(__assign({}, nextStyles), transitionStyles[state]),
68
68
  ref: ref,
69
- className: classNames(cls, className, (_a = {}, _a[cls + "-tf-" + placement] = state === 'exited' || state === 'exiting', _a))
70
- }, closable ? React.createElement("span", {
71
- className: cls + "-times",
69
+ className: classNames(cls, className, (_a = {}, _a["".concat(cls, "-tf-").concat(placement)] = state === 'exited' || state === 'exiting', _a))
70
+ }, closable ? /*#__PURE__*/React.createElement("span", {
71
+ className: "".concat(cls, "-times"),
72
72
  onClick: onCancel
73
73
  }, "\xD7") : null, children);
74
74
  });
75
75
  }
76
76
 
77
- export default React.forwardRef(Child);
77
+ export default /*#__PURE__*/React.forwardRef(Child);
@@ -6,7 +6,7 @@ var __extends = this && this.__extends || function () {
6
6
  d.__proto__ = b;
7
7
  } || function (d, b) {
8
8
  for (var p in b) {
9
- if (b.hasOwnProperty(p)) d[p] = b[p];
9
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
10
10
  }
11
11
  };
12
12
 
@@ -14,6 +14,8 @@ var __extends = this && this.__extends || function () {
14
14
  };
15
15
 
16
16
  return function (d, b) {
17
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18
+
17
19
  _extendStatics(d, b);
18
20
 
19
21
  function __() {
@@ -69,7 +71,7 @@ function (_super) {
69
71
  var _this = _super.call(this, props) || this;
70
72
 
71
73
  _this.prefixCls = 'ab-drawer';
72
- _this.childRef = React.createRef();
74
+ _this.childRef = /*#__PURE__*/React.createRef();
73
75
 
74
76
  _this.onClose = function () {
75
77
  var _a = _this.props,
@@ -105,7 +107,7 @@ function (_super) {
105
107
  var scrollSize = getScrollBarSize();
106
108
 
107
109
  if (hasVerticalScrollbar(scrollSize)) {
108
- currentDocument.style.paddingRight = scrollSize + "px";
110
+ currentDocument.style.paddingRight = "".concat(scrollSize, "px");
109
111
  }
110
112
  }
111
113
  };
@@ -168,9 +170,9 @@ function (_super) {
168
170
  showMask = _b.showMask;
169
171
 
170
172
  if (showMask) {
171
- return React.createElement(Mask, {
173
+ return /*#__PURE__*/React.createElement(Mask, {
172
174
  onClose: this.onClose,
173
- className: classNames((_a = {}, _a[this.prefixCls + "-hidden"] = this.state.isHidden, _a)),
175
+ className: classNames((_a = {}, _a["".concat(this.prefixCls, "-hidden")] = this.state.isHidden, _a)),
174
176
  visible: visible,
175
177
  timeout: 300
176
178
  });
@@ -188,9 +190,9 @@ function (_super) {
188
190
  className = _b.className,
189
191
  extraProps = __rest(_b, ["visible", "children", "className"]);
190
192
 
191
- return React.createElement(Child, __assign({}, extraProps, {
193
+ return /*#__PURE__*/React.createElement(Child, __assign({}, extraProps, {
192
194
  visible: visible,
193
- className: classNames(className, (_a = {}, _a[this.prefixCls + "-hidden"] = this.state.isHidden, _a)),
195
+ className: classNames(className, (_a = {}, _a["".concat(this.prefixCls, "-hidden")] = this.state.isHidden, _a)),
194
196
  prefixCls: this.prefixCls,
195
197
  onCancel: this.onCancel,
196
198
  onEnter: this.onEnter,
@@ -205,11 +207,11 @@ function (_super) {
205
207
  isInsertNode = _a.isInsertNode;
206
208
 
207
209
  if (isInsertNode) {
208
- return React.createElement(React.Fragment, null, this.renderMask(), this.renderChild());
210
+ return /*#__PURE__*/React.createElement(React.Fragment, null, this.renderMask(), this.renderChild());
209
211
  }
210
212
 
211
213
  if (visible || this.childRef.current) {
212
- return React.createElement(Portal, null, React.createElement(React.Fragment, null, this.renderMask(), this.renderChild()));
214
+ return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(React.Fragment, null, this.renderMask(), this.renderChild()));
213
215
  }
214
216
 
215
217
  return null;
@@ -30,7 +30,7 @@ function Ellipsis(props) {
30
30
  title = props.title,
31
31
  _d = props.mobileLines,
32
32
  mobileLines = _d === void 0 ? 0 : _d;
33
- var wrapCls = classNames(cls, className, (_a = {}, _a[cls + "-line" + lines] = lines > 0, _a), (_b = {}, _b[cls + "-m-line" + mobileLines] = mobileLines > 0, _b));
33
+ var wrapCls = classNames(cls, className, (_a = {}, _a["".concat(cls, "-line").concat(lines)] = lines > 0, _a), (_b = {}, _b["".concat(cls, "-m-line").concat(mobileLines)] = mobileLines > 0, _b));
34
34
  var style = maxHeight ? {
35
35
  maxHeight: maxHeight
36
36
  } : null;
@@ -40,17 +40,17 @@ function Ellipsis(props) {
40
40
 
41
41
  if (!isFragment(children) && isElement(children)) {
42
42
  var child = children;
43
- return React.cloneElement(child, __assign(__assign({}, titleParam), {
43
+ return /*#__PURE__*/React.cloneElement(child, __assign(__assign({}, titleParam), {
44
44
  className: classNames(wrapCls, child.props.className),
45
45
  style: __assign(__assign({}, style), child.props.style)
46
46
  }));
47
47
  }
48
48
 
49
- return React.createElement("span", __assign({
49
+ return /*#__PURE__*/React.createElement("span", __assign({
50
50
  className: wrapCls
51
51
  }, titleParam, {
52
52
  style: style
53
53
  }), children);
54
54
  }
55
55
 
56
- export default React.memo(Ellipsis);
56
+ export default /*#__PURE__*/React.memo(Ellipsis);
@@ -6,7 +6,7 @@ var __extends = this && this.__extends || function () {
6
6
  d.__proto__ = b;
7
7
  } || function (d, b) {
8
8
  for (var p in b) {
9
- if (b.hasOwnProperty(p)) d[p] = b[p];
9
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
10
10
  }
11
11
  };
12
12
 
@@ -14,6 +14,8 @@ var __extends = this && this.__extends || function () {
14
14
  };
15
15
 
16
16
  return function (d, b) {
17
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18
+
17
19
  _extendStatics(d, b);
18
20
 
19
21
  function __() {
@@ -41,7 +43,7 @@ function (_super) {
41
43
 
42
44
  _this.prefixCls = 'ab-guide';
43
45
  _this.timer = null;
44
- _this.imgRef = React.createRef(); // eslint-disable-next-line react/no-find-dom-node
46
+ _this.imgRef = /*#__PURE__*/React.createRef(); // eslint-disable-next-line react/no-find-dom-node
45
47
 
46
48
  _this.getElement = function () {
47
49
  return findDOMNode(_this);
@@ -121,12 +123,12 @@ function (_super) {
121
123
 
122
124
  var imgWidth = image_1.width;
123
125
  var imgHeight = image_1.height;
124
- var imgTop = top_1 - imgHeight + translateY + "px";
126
+ var imgTop = "".concat(top_1 - imgHeight + translateY, "px");
125
127
 
126
128
  if (position === 'left') {
127
129
  _this.setState({
128
130
  top: imgTop,
129
- left: left + translateX + "px"
131
+ left: "".concat(left + translateX, "px")
130
132
  });
131
133
 
132
134
  return;
@@ -135,7 +137,7 @@ function (_super) {
135
137
  if (position === 'right') {
136
138
  _this.setState({
137
139
  top: imgTop,
138
- left: left + width - imgWidth + translateX + "px"
140
+ left: "".concat(left + width - imgWidth + translateX, "px")
139
141
  });
140
142
 
141
143
  return;
@@ -144,7 +146,7 @@ function (_super) {
144
146
 
145
147
  _this.setState({
146
148
  top: imgTop,
147
- left: left + width / 2 - imgWidth / 2 + translateX + "px"
149
+ left: "".concat(left + width / 2 - imgWidth / 2 + translateX, "px")
148
150
  });
149
151
  }
150
152
  };
@@ -167,14 +169,14 @@ function (_super) {
167
169
  };
168
170
 
169
171
  if (visible || this.imgRef.current) {
170
- return React.createElement(Portal, null, React.createElement(React.Fragment, null, React.createElement(Mask, {
171
- className: cls + "-mask",
172
+ return /*#__PURE__*/React.createElement(Portal, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Mask, {
173
+ className: "".concat(cls, "-mask"),
172
174
  visible: visible,
173
175
  timeout: 400,
174
176
  onClose: this.onClose
175
- }), loadablePointer ? React.createElement("img", {
177
+ }), loadablePointer ? /*#__PURE__*/React.createElement("img", {
176
178
  style: style,
177
- className: cls + "-icon",
179
+ className: "".concat(cls, "-icon"),
178
180
  src: imgSrc,
179
181
  alt: "selection pointer",
180
182
  ref: this.imgRef
@@ -189,16 +191,16 @@ function (_super) {
189
191
  var _a = this.props,
190
192
  children = _a.children,
191
193
  visible = _a.visible;
192
- var className = visible ? cls + "-content" : null;
194
+ var className = visible ? "".concat(cls, "-content") : null;
193
195
 
194
196
  if (typeof children === 'function') {
195
- return React.createElement(React.Fragment, null, children({
197
+ return /*#__PURE__*/React.createElement(React.Fragment, null, children({
196
198
  className: className
197
199
  }), this.renderMask());
198
200
  }
199
201
 
200
202
  var child = React.Children.only(children);
201
- return React.createElement(React.Fragment, null, React.cloneElement(child, {
203
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.cloneElement(child, {
202
204
  className: classNames(className, child.props.className)
203
205
  }), this.renderMask());
204
206
  }; // 默认值
@@ -106,8 +106,8 @@ declare class InputNumber extends React.Component<InputNumberProps, InputNumberS
106
106
  onBlur: (e: any) => void;
107
107
  onMouseEnter: () => void;
108
108
  onMouseLeave: () => void;
109
- onMouseMove: (ev: React.MouseEvent<Element, MouseEvent>) => void;
110
- onMouseDown: (ev: React.MouseEvent<Element, MouseEvent>) => void;
109
+ onMouseMove: (ev: React.MouseEvent) => void;
110
+ onMouseDown: (ev: React.MouseEvent) => void;
111
111
  onMouseUp: () => void;
112
112
  addMouseMoveListener: () => void;
113
113
  addMouseUpListener: () => void;
@@ -116,11 +116,11 @@ declare class InputNumber extends React.Component<InputNumberProps, InputNumberS
116
116
  addBtnEl: HTMLDivElement;
117
117
  subBtnEl: HTMLDivElement;
118
118
  };
119
- getMouseElement: (ev: React.MouseEvent<Element, MouseEvent>) => {
119
+ getMouseElement: (ev: React.MouseEvent) => {
120
120
  isAdd: boolean;
121
121
  isSub: boolean;
122
122
  };
123
- isInside: (ev: React.MouseEvent<Element, MouseEvent>, locationInfo: LocationInfo) => boolean;
123
+ isInside: (ev: React.MouseEvent, locationInfo: LocationInfo) => boolean;
124
124
  getLocationInfo: () => void;
125
125
  getCurrentValue: (value: string) => number;
126
126
  getPadDigitalValue: (value: string) => string;
@@ -6,7 +6,7 @@ var __extends = this && this.__extends || function () {
6
6
  d.__proto__ = b;
7
7
  } || function (d, b) {
8
8
  for (var p in b) {
9
- if (b.hasOwnProperty(p)) d[p] = b[p];
9
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
10
10
  }
11
11
  };
12
12
 
@@ -14,6 +14,8 @@ var __extends = this && this.__extends || function () {
14
14
  };
15
15
 
16
16
  return function (d, b) {
17
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18
+
17
19
  _extendStatics(d, b);
18
20
 
19
21
  function __() {
@@ -53,7 +55,7 @@ function (_super) {
53
55
  function InputNumber(props) {
54
56
  var _this = _super.call(this, props) || this;
55
57
 
56
- _this.currentRef = React.createRef();
58
+ _this.currentRef = /*#__PURE__*/React.createRef();
57
59
 
58
60
  _this.onFocus = function (e) {
59
61
  var _a = _this.props,
@@ -133,19 +135,19 @@ function (_super) {
133
135
 
134
136
  if (isAdd) {
135
137
  inputEl.style.cursor = 'default';
136
- addBtnEl.setAttribute('class', cls + "-button " + cls + "-hover");
138
+ addBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-hover"));
137
139
  return;
138
140
  }
139
141
 
140
142
  if (isSub) {
141
143
  inputEl.style.cursor = 'default';
142
- subBtnEl.setAttribute('class', cls + "-button " + cls + "-hover");
144
+ subBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-hover"));
143
145
  return;
144
146
  }
145
147
 
146
148
  inputEl.style.cursor = 'text';
147
- addBtnEl.setAttribute('class', cls + "-button");
148
- subBtnEl.setAttribute('class', cls + "-button");
149
+ addBtnEl.setAttribute('class', "".concat(cls, "-button"));
150
+ subBtnEl.setAttribute('class', "".concat(cls, "-button"));
149
151
  };
150
152
 
151
153
  _this.onMouseDown = function (ev) {
@@ -173,13 +175,13 @@ function (_super) {
173
175
  isSub = _b.isSub;
174
176
 
175
177
  if (isAdd) {
176
- addBtnEl.setAttribute('class', cls + "-button " + cls + "-active");
178
+ addBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-active"));
177
179
 
178
180
  _this.onAdd();
179
181
  }
180
182
 
181
183
  if (isSub) {
182
- subBtnEl.setAttribute('class', cls + "-button " + cls + "-active");
184
+ subBtnEl.setAttribute('class', "".concat(cls, "-button ").concat(cls, "-active"));
183
185
 
184
186
  _this.onSub();
185
187
  }
@@ -199,8 +201,8 @@ function (_super) {
199
201
  subBtnEl = _a.subBtnEl;
200
202
 
201
203
  if (addBtnEl && subBtnEl) {
202
- addBtnEl.setAttribute('class', cls + "-button");
203
- subBtnEl.setAttribute('class', cls + "-button");
204
+ addBtnEl.setAttribute('class', "".concat(cls, "-button"));
205
+ subBtnEl.setAttribute('class', "".concat(cls, "-button"));
204
206
  } // 重新添加move事件
205
207
 
206
208
 
@@ -315,7 +317,7 @@ function (_super) {
315
317
  }
316
318
 
317
319
  var resultArr = value.split('.');
318
- return resultArr[0] + "." + (resultArr[1] || '').padEnd(digital, '0');
320
+ return "".concat(resultArr[0], ".").concat((resultArr[1] || '').padEnd(digital, '0'));
319
321
  };
320
322
 
321
323
  _this.onChangePackMultipleValue = function (value) {
@@ -438,7 +440,7 @@ function (_super) {
438
440
 
439
441
 
440
442
  if (digital) {
441
- currentValue = new RegExp("[^.]+([.](\\d{0," + digital + "}))?").exec(currentValue)[0].toString();
443
+ currentValue = new RegExp("[^.]+([.](\\d{0,".concat(digital, "}))?")).exec(currentValue)[0].toString();
442
444
  }
443
445
 
444
446
  var valueNumber = parseFloat(currentValue);
@@ -517,18 +519,18 @@ function (_super) {
517
519
 
518
520
 
519
521
  _this.renderButton = function () {
520
- return React.createElement("div", {
521
- className: cls + "-button-wrap"
522
- }, React.createElement("div", {
523
- className: cls + "-button",
522
+ return /*#__PURE__*/React.createElement("div", {
523
+ className: "".concat(cls, "-button-wrap")
524
+ }, /*#__PURE__*/React.createElement("div", {
525
+ className: "".concat(cls, "-button"),
524
526
  onClick: _this.onAdd
525
- }, React.createElement("div", {
526
- className: cls + "-add"
527
- })), React.createElement("div", {
528
- className: cls + "-button",
527
+ }, /*#__PURE__*/React.createElement("div", {
528
+ className: "".concat(cls, "-add")
529
+ })), /*#__PURE__*/React.createElement("div", {
530
+ className: "".concat(cls, "-button"),
529
531
  onClick: _this.onSub
530
- }, React.createElement("div", {
531
- className: cls + "-sub"
532
+ }, /*#__PURE__*/React.createElement("div", {
533
+ className: "".concat(cls, "-sub")
532
534
  })));
533
535
  };
534
536
 
@@ -597,10 +599,10 @@ function (_super) {
597
599
  var inputStyle = visibleButton ? {
598
600
  paddingRight: '.2rem'
599
601
  } : {};
600
- return React.createElement("label", {
601
- className: cls + "-wrap",
602
+ return /*#__PURE__*/React.createElement("label", {
603
+ className: "".concat(cls, "-wrap"),
602
604
  ref: this.currentRef
603
- }, React.createElement("input", __assign({}, copyProps, {
605
+ }, /*#__PURE__*/React.createElement("input", __assign({}, copyProps, {
604
606
  className: classNames(cls, className),
605
607
  type: "text",
606
608
  onChange: this.onValueChange,
@@ -1,4 +1,4 @@
1
- import React, { MouseEventHandler } from 'react';
1
+ import React, { MouseEventHandler, MouseEvent } from 'react';
2
2
  export interface LazyImageProps {
3
3
  /**
4
4
  * 需要显示的图片
@@ -71,8 +71,8 @@ declare class LazyImage extends React.Component<LazyImageProps, LazyImageStates>
71
71
  * 监听原生lazy loading, 并回调不同的事件
72
72
  */
73
73
  originalLazyLoad: () => void;
74
- onMouseOut: (ev: React.MouseEvent<HTMLImageElement, globalThis.MouseEvent>) => void;
75
- onMouseOver: (ev: React.MouseEvent<HTMLImageElement, globalThis.MouseEvent>) => void;
74
+ onMouseOut: (ev: MouseEvent<HTMLImageElement>) => void;
75
+ onMouseOver: (ev: MouseEvent<HTMLImageElement>) => void;
76
76
  render(): JSX.Element;
77
77
  }
78
78
  export default LazyImage;
@@ -6,7 +6,7 @@ var __extends = this && this.__extends || function () {
6
6
  d.__proto__ = b;
7
7
  } || function (d, b) {
8
8
  for (var p in b) {
9
- if (b.hasOwnProperty(p)) d[p] = b[p];
9
+ if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
10
10
  }
11
11
  };
12
12
 
@@ -14,6 +14,8 @@ var __extends = this && this.__extends || function () {
14
14
  };
15
15
 
16
16
  return function (d, b) {
17
+ if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
18
+
17
19
  _extendStatics(d, b);
18
20
 
19
21
  function __() {
@@ -54,7 +56,7 @@ function (_super) {
54
56
  var _this = _super.call(this, props) || this;
55
57
 
56
58
  _this.prefixCls = 'ab-lazy-image';
57
- _this.rootRef = React.createRef();
59
+ _this.rootRef = /*#__PURE__*/React.createRef();
58
60
  _this.isUnmount = false;
59
61
  /**
60
62
  * 监听原生lazy loading, 并回调不同的事件
@@ -193,10 +195,10 @@ function (_super) {
193
195
  delete props.active;
194
196
  delete props.onLoading;
195
197
  delete props.onLoaded;
196
- return React.createElement("img", __assign({
198
+ return /*#__PURE__*/React.createElement("img", __assign({
197
199
  alt: ""
198
200
  }, props, {
199
- className: classNames(cls, className, (_a = {}, _a[cls + "-loading"] = loading, _a[cls + "-active"] = loading && active, _a)),
201
+ className: classNames(cls, className, (_a = {}, _a["".concat(cls, "-loading")] = loading, _a["".concat(cls, "-active")] = loading && active, _a)),
200
202
  onMouseOver: this.onMouseOver,
201
203
  onMouseOut: this.onMouseOut,
202
204
  onFocus: noop,