@autobest-ui/components 1.5.0 → 2.0.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.
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 +12 -12
  54. package/esm/table/body/BodyRow.js +9 -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 +12 -12
  133. package/lib/table/body/BodyRow.js +9 -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 +3 -3
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.getLeftBottomLocationInfo = getLeftBottomLocationInfo;
6
7
  exports.getLeftLocationInfo = getLeftLocationInfo;
7
8
  exports.getLeftTopLocationInfo = getLeftTopLocationInfo;
8
- exports.getLeftBottomLocationInfo = getLeftBottomLocationInfo;
9
9
 
10
10
  var _utils = require("./utils");
11
11
 
@@ -39,11 +39,11 @@ function getLeftCommon(_a) {
39
39
  height: popInfo.height,
40
40
  left: left - (rootToPopupSpacing + popInfo.width),
41
41
  arrowStyle: hiddenArrow ? {} : {
42
- top: arrowTop + "px",
42
+ top: "".concat(arrowTop, "px"),
43
43
  right: '-4px',
44
44
  transform: 'translateY(-50%) rotate(-45deg)'
45
45
  },
46
- transformOrigin: isTransformHorizontalDirection ? 'right center' : "right " + arrowTop + "px"
46
+ transformOrigin: isTransformHorizontalDirection ? 'right center' : "right ".concat(arrowTop, "px")
47
47
  };
48
48
  }
49
49
  /* 具体方位 */
@@ -5,8 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.fillRef = fillRef;
9
8
  exports.composeRef = composeRef;
9
+ exports.fillRef = fillRef;
10
10
  exports.supportRef = supportRef;
11
11
 
12
12
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.getRightBottomLocationInfo = getRightBottomLocationInfo;
6
7
  exports.getRightLocationInfo = getRightLocationInfo;
7
8
  exports.getRightTopLocationInfo = getRightTopLocationInfo;
8
- exports.getRightBottomLocationInfo = getRightBottomLocationInfo;
9
9
 
10
10
  var _utils = require("./utils");
11
11
 
@@ -39,11 +39,11 @@ function getRightCommon(_a) {
39
39
  height: popInfo.height,
40
40
  left: left + rootToPopupSpacing + rootInfo.width,
41
41
  arrowStyle: hiddenArrow ? {} : {
42
- top: arrowTop + "px",
42
+ top: "".concat(arrowTop, "px"),
43
43
  left: '-4px',
44
44
  transform: 'translateY(-50%) rotate(-225deg)'
45
45
  },
46
- transformOrigin: isTransformHorizontalDirection ? 'left center' : "left " + arrowTop + "px"
46
+ transformOrigin: isTransformHorizontalDirection ? 'left center' : "left ".concat(arrowTop, "px")
47
47
  };
48
48
  }
49
49
 
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getTopLocationInfo = getTopLocationInfo;
7
6
  exports.getTopLeftLocationInfo = getTopLeftLocationInfo;
7
+ exports.getTopLocationInfo = getTopLocationInfo;
8
8
  exports.getTopRightLocationInfo = getTopRightLocationInfo;
9
9
 
10
10
  var _utils = require("./utils");
@@ -38,12 +38,12 @@ function getTopCommon(_a) {
38
38
  width: popInfo.width,
39
39
  height: popInfo.height,
40
40
  arrowStyle: hiddenArrow ? {} : {
41
- left: arrowLeft + "px",
41
+ left: "".concat(arrowLeft, "px"),
42
42
  bottom: '-4px',
43
43
  transform: 'translateX(-50%) rotate(45deg)'
44
44
  },
45
45
  top: top - (rootToPopupSpacing + popInfo.height),
46
- transformOrigin: isTransformHorizontalDirection ? 'center bottom' : arrowLeft + "px bottom"
46
+ transformOrigin: isTransformHorizontalDirection ? 'center bottom' : "".concat(arrowLeft, "px bottom")
47
47
  };
48
48
  }
49
49
 
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getArrowLeft = getArrowLeft;
7
7
  exports.getArrowTop = getArrowTop;
8
8
  exports.getAvailPosition = getAvailPosition;
9
+ exports.getLocationMethodByPlacement = getLocationMethodByPlacement;
9
10
  exports.getTranslate = getTranslate;
10
- exports.isTopMoreThanBottom = isTopMoreThanBottom;
11
11
  exports.isLeftMoreThanRight = isLeftMoreThanRight;
12
- exports.getLocationMethodByPlacement = getLocationMethodByPlacement;
12
+ exports.isTopMoreThanBottom = isTopMoreThanBottom;
13
13
 
14
14
  var _constants = require("./constants");
15
15
 
@@ -187,7 +187,7 @@ function getLocationMethodByPlacement(_a) {
187
187
  availHeight: availSize.height
188
188
  });
189
189
  return {
190
- methodStr: useTopLocation ? "Top" + splitArr[1] : "Bottom" + splitArr[1],
190
+ methodStr: useTopLocation ? "Top".concat(splitArr[1]) : "Bottom".concat(splitArr[1]),
191
191
  isVertical: true
192
192
  };
193
193
  } // 判断悬浮框最终位置
@@ -201,7 +201,7 @@ function getLocationMethodByPlacement(_a) {
201
201
  availWidth: availSize.width
202
202
  });
203
203
  return {
204
- methodStr: useLeftLocation ? "Left" + splitArr[1] : "Right" + splitArr[1],
204
+ methodStr: useLeftLocation ? "Left".concat(splitArr[1]) : "Right".concat(splitArr[1]),
205
205
  isVertical: false
206
206
  };
207
207
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobest-ui/components",
3
- "version": "1.5.0",
3
+ "version": "2.0.2",
4
4
  "private": false,
5
5
  "description": "components common ui for React",
6
6
  "main": "lib/index.js",
@@ -41,10 +41,10 @@
41
41
  },
42
42
  "homepage": "https://autobest.visualstudio.com/AutoBestChina/_git/AutobestFrontendCommon#readme",
43
43
  "peerDependencies": {
44
- "@autobest-ui/utils": ">=0.0.27",
44
+ "@autobest-ui/utils": ">=2.0.0",
45
45
  "intersection-observer": ">=0.12.0",
46
46
  "react": ">=16.8.6",
47
47
  "react-transition-group": ">=4.2.2"
48
48
  },
49
- "gitHead": "300bad54619d88be7e1cc9a94e0615a57df91f21"
49
+ "gitHead": "ca9dbc056a85bb05972ef47319d8c3b88547ff27"
50
50
  }