@douyinfe/semi-ui 2.9.0-beta.1 → 2.10.0-beta.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 (96) hide show
  1. package/anchor/__test__/anchor.test.js +1 -0
  2. package/anchor/_story/anchor.stories.js +23 -1
  3. package/badge/_story/badge.stories.js +34 -2
  4. package/banner/_story/banner.stories.js +62 -1
  5. package/banner/index.tsx +5 -5
  6. package/carousel/CarouselArrow.tsx +62 -0
  7. package/carousel/CarouselIndicator.tsx +84 -0
  8. package/carousel/__test__/carousel.test.js +159 -0
  9. package/carousel/_story/carousel.stories.js +486 -0
  10. package/carousel/index.tsx +294 -0
  11. package/carousel/interface.ts +64 -0
  12. package/cascader/_story/cascader.stories.js +17 -2
  13. package/cascader/index.tsx +2 -3
  14. package/checkbox/_story/checkbox.stories.js +1 -1
  15. package/collapse/item.tsx +2 -0
  16. package/datePicker/_story/datePicker.stories.js +37 -0
  17. package/dist/css/semi.css +344 -2
  18. package/dist/css/semi.min.css +1 -1
  19. package/dist/umd/semi-ui.js +1068 -330
  20. package/dist/umd/semi-ui.js.map +1 -1
  21. package/dist/umd/semi-ui.min.js +1 -1
  22. package/dist/umd/semi-ui.min.js.map +1 -1
  23. package/form/hoc/withField.tsx +8 -5
  24. package/index.ts +2 -0
  25. package/input/__test__/input.test.js +12 -3
  26. package/input/__test__/textArea.test.js +53 -0
  27. package/lib/cjs/banner/index.js +11 -5
  28. package/lib/cjs/carousel/CarouselArrow.d.ts +8 -0
  29. package/lib/cjs/carousel/CarouselArrow.js +91 -0
  30. package/lib/cjs/carousel/CarouselIndicator.d.ts +23 -0
  31. package/lib/cjs/carousel/CarouselIndicator.js +145 -0
  32. package/lib/cjs/carousel/index.d.ts +58 -0
  33. package/lib/cjs/carousel/index.js +345 -0
  34. package/lib/cjs/carousel/interface.d.ts +62 -0
  35. package/lib/cjs/carousel/interface.js +7 -0
  36. package/lib/cjs/cascader/index.js +2 -2
  37. package/lib/cjs/collapse/item.js +4 -2
  38. package/lib/cjs/form/hoc/withField.js +6 -4
  39. package/lib/cjs/index.d.ts +1 -0
  40. package/lib/cjs/index.js +9 -0
  41. package/lib/cjs/modal/Modal.js +3 -0
  42. package/lib/cjs/scrollList/scrollItem.js +5 -1
  43. package/lib/cjs/switch/index.d.ts +3 -0
  44. package/lib/cjs/switch/index.js +26 -6
  45. package/lib/cjs/tabs/TabPane.js +4 -0
  46. package/lib/cjs/tabs/index.js +2 -0
  47. package/lib/cjs/toast/toast.d.ts +1 -1
  48. package/lib/cjs/tooltip/index.js +1 -1
  49. package/lib/cjs/transfer/index.d.ts +1 -0
  50. package/lib/cjs/transfer/index.js +3 -1
  51. package/lib/es/banner/index.js +11 -5
  52. package/lib/es/carousel/CarouselArrow.d.ts +8 -0
  53. package/lib/es/carousel/CarouselArrow.js +72 -0
  54. package/lib/es/carousel/CarouselIndicator.d.ts +23 -0
  55. package/lib/es/carousel/CarouselIndicator.js +125 -0
  56. package/lib/es/carousel/index.d.ts +58 -0
  57. package/lib/es/carousel/index.js +311 -0
  58. package/lib/es/carousel/interface.d.ts +62 -0
  59. package/lib/es/carousel/interface.js +1 -0
  60. package/lib/es/cascader/index.js +2 -2
  61. package/lib/es/collapse/item.js +4 -2
  62. package/lib/es/form/hoc/withField.js +6 -4
  63. package/lib/es/index.d.ts +1 -0
  64. package/lib/es/index.js +1 -0
  65. package/lib/es/modal/Modal.js +3 -0
  66. package/lib/es/scrollList/scrollItem.js +5 -1
  67. package/lib/es/switch/index.d.ts +3 -0
  68. package/lib/es/switch/index.js +26 -6
  69. package/lib/es/tabs/TabPane.js +4 -0
  70. package/lib/es/tabs/index.js +2 -0
  71. package/lib/es/toast/toast.d.ts +1 -1
  72. package/lib/es/tooltip/index.js +1 -1
  73. package/lib/es/transfer/index.d.ts +1 -0
  74. package/lib/es/transfer/index.js +3 -1
  75. package/modal/Modal.tsx +2 -0
  76. package/modal/confirm.tsx +1 -1
  77. package/overflowList/_story/overflowList.stories.js +44 -0
  78. package/package.json +9 -9
  79. package/scrollList/_story/SingleWheelList/index.js +72 -0
  80. package/scrollList/_story/scrolllist.stories.js +7 -0
  81. package/scrollList/scrollItem.tsx +4 -1
  82. package/switch/index.tsx +20 -3
  83. package/table/__test__/table.test.js +1 -0
  84. package/tabs/TabPane.tsx +2 -0
  85. package/tabs/_story/tabs.stories.js +72 -0
  86. package/tabs/index.tsx +1 -0
  87. package/tagInput/__test__/tagInput.test.js +11 -11
  88. package/tagInput/_story/tagInput.stories.js +14 -1
  89. package/timePicker/TimePicker.tsx +1 -1
  90. package/timePicker/_story/timepicker.stories.js +20 -1
  91. package/tooltip/_story/tooltip.stories.js +127 -15
  92. package/tooltip/index.tsx +1 -1
  93. package/transfer/index.tsx +4 -1
  94. package/typography/__test__/typography.test.js +1 -0
  95. package/upload/__test__/upload.test.js +2 -0
  96. package/upload/_story/upload.stories.js +2 -2
@@ -1604,97 +1604,6 @@ function times(n, iteratee) {
1604
1604
  module.exports = times;
1605
1605
 
1606
1606
 
1607
- /***/ }),
1608
-
1609
- /***/ "16Al":
1610
- /***/ (function(module, exports, __webpack_require__) {
1611
-
1612
- "use strict";
1613
- /**
1614
- * Copyright (c) 2013-present, Facebook, Inc.
1615
- *
1616
- * This source code is licensed under the MIT license found in the
1617
- * LICENSE file in the root directory of this source tree.
1618
- */
1619
-
1620
-
1621
-
1622
- var ReactPropTypesSecret = __webpack_require__("WbBG");
1623
-
1624
- function emptyFunction() {}
1625
- function emptyFunctionWithReset() {}
1626
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1627
-
1628
- module.exports = function() {
1629
- function shim(props, propName, componentName, location, propFullName, secret) {
1630
- if (secret === ReactPropTypesSecret) {
1631
- // It is still safe when called from React.
1632
- return;
1633
- }
1634
- var err = new Error(
1635
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1636
- 'Use PropTypes.checkPropTypes() to call them. ' +
1637
- 'Read more at http://fb.me/use-check-prop-types'
1638
- );
1639
- err.name = 'Invariant Violation';
1640
- throw err;
1641
- };
1642
- shim.isRequired = shim;
1643
- function getShim() {
1644
- return shim;
1645
- };
1646
- // Important!
1647
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1648
- var ReactPropTypes = {
1649
- array: shim,
1650
- bool: shim,
1651
- func: shim,
1652
- number: shim,
1653
- object: shim,
1654
- string: shim,
1655
- symbol: shim,
1656
-
1657
- any: shim,
1658
- arrayOf: getShim,
1659
- element: shim,
1660
- elementType: shim,
1661
- instanceOf: getShim,
1662
- node: shim,
1663
- objectOf: getShim,
1664
- oneOf: getShim,
1665
- oneOfType: getShim,
1666
- shape: getShim,
1667
- exact: getShim,
1668
-
1669
- checkPropTypes: emptyFunctionWithReset,
1670
- resetWarningCache: emptyFunction
1671
- };
1672
-
1673
- ReactPropTypes.PropTypes = ReactPropTypes;
1674
-
1675
- return ReactPropTypes;
1676
- };
1677
-
1678
-
1679
- /***/ }),
1680
-
1681
- /***/ "17x9":
1682
- /***/ (function(module, exports, __webpack_require__) {
1683
-
1684
- /**
1685
- * Copyright (c) 2013-present, Facebook, Inc.
1686
- *
1687
- * This source code is licensed under the MIT license found in the
1688
- * LICENSE file in the root directory of this source tree.
1689
- */
1690
-
1691
- if (false) { var throwOnDirectAccess, ReactIs; } else {
1692
- // By explicitly using `prop-types` you are opting into new production behavior.
1693
- // http://fb.me/prop-types-in-prod
1694
- module.exports = __webpack_require__("16Al")();
1695
- }
1696
-
1697
-
1698
1607
  /***/ }),
1699
1608
 
1700
1609
  /***/ "1EDM":
@@ -4410,13 +4319,6 @@ module.exports = {
4410
4319
  };
4411
4320
 
4412
4321
 
4413
- /***/ }),
4414
-
4415
- /***/ "BKEV":
4416
- /***/ (function(module, exports) {
4417
-
4418
-
4419
-
4420
4322
  /***/ }),
4421
4323
 
4422
4324
  /***/ "BMex":
@@ -7498,6 +7400,13 @@ Stack.prototype.set = stackSet;
7498
7400
  module.exports = Stack;
7499
7401
 
7500
7402
 
7403
+ /***/ }),
7404
+
7405
+ /***/ "HzcD":
7406
+ /***/ (function(module, exports) {
7407
+
7408
+
7409
+
7501
7410
  /***/ }),
7502
7411
 
7503
7412
  /***/ "I1fX":
@@ -7532,29 +7441,29 @@ module.exports = baseTrim;
7532
7441
  "use strict";
7533
7442
 
7534
7443
 
7535
- 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); }
7444
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
7536
7445
 
7537
7446
  Object.defineProperty(exports, "__esModule", {
7538
7447
  value: true
7539
7448
  });
7540
- exports.matchesSelector = matchesSelector;
7541
- exports.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo;
7449
+ exports.addClassName = addClassName;
7542
7450
  exports.addEvent = addEvent;
7543
- exports.removeEvent = removeEvent;
7544
- exports.outerHeight = outerHeight;
7545
- exports.outerWidth = outerWidth;
7546
- exports.innerHeight = innerHeight;
7547
- exports.innerWidth = innerWidth;
7548
- exports.offsetXYFromParent = offsetXYFromParent;
7451
+ exports.addUserSelectStyles = addUserSelectStyles;
7549
7452
  exports.createCSSTransform = createCSSTransform;
7550
7453
  exports.createSVGTransform = createSVGTransform;
7551
- exports.getTranslation = getTranslation;
7552
7454
  exports.getTouch = getTouch;
7553
7455
  exports.getTouchIdentifier = getTouchIdentifier;
7554
- exports.addUserSelectStyles = addUserSelectStyles;
7555
- exports.removeUserSelectStyles = removeUserSelectStyles;
7556
- exports.addClassName = addClassName;
7456
+ exports.getTranslation = getTranslation;
7457
+ exports.innerHeight = innerHeight;
7458
+ exports.innerWidth = innerWidth;
7459
+ exports.matchesSelector = matchesSelector;
7460
+ exports.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo;
7461
+ exports.offsetXYFromParent = offsetXYFromParent;
7462
+ exports.outerHeight = outerHeight;
7463
+ exports.outerWidth = outerWidth;
7557
7464
  exports.removeClassName = removeClassName;
7465
+ exports.removeEvent = removeEvent;
7466
+ exports.removeUserSelectStyles = removeUserSelectStyles;
7558
7467
 
7559
7468
  var _shims = __webpack_require__("cCoX");
7560
7469
 
@@ -7564,9 +7473,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
7564
7473
 
7565
7474
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
7566
7475
 
7567
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
7476
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
7568
7477
 
7569
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7478
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7570
7479
 
7571
7480
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7572
7481
 
@@ -10096,11 +10005,17 @@ $({ target: 'Array', proto: true, forced: !STRICT_METHOD }, {
10096
10005
 
10097
10006
  var $ = __webpack_require__("n9AK");
10098
10007
  var $includes = __webpack_require__("A551").includes;
10008
+ var fails = __webpack_require__("XU0c");
10099
10009
  var addToUnscopables = __webpack_require__("Uh/D");
10100
10010
 
10011
+ // FF99+ bug
10012
+ var BROKEN_ON_SPARSE = fails(function () {
10013
+ return !Array(1).includes();
10014
+ });
10015
+
10101
10016
  // `Array.prototype.includes` method
10102
10017
  // https://tc39.es/ecma262/#sec-array.prototype.includes
10103
- $({ target: 'Array', proto: true }, {
10018
+ $({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
10104
10019
  includes: function includes(el /* , fromIndex = 0 */) {
10105
10020
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
10106
10021
  }
@@ -10430,13 +10345,13 @@ module.exports = toPath;
10430
10345
  Object.defineProperty(exports, "__esModule", {
10431
10346
  value: true
10432
10347
  });
10433
- exports.getBoundPosition = getBoundPosition;
10434
- exports.snapToGrid = snapToGrid;
10435
10348
  exports.canDragX = canDragX;
10436
10349
  exports.canDragY = canDragY;
10437
- exports.getControlPosition = getControlPosition;
10438
10350
  exports.createCoreData = createCoreData;
10439
10351
  exports.createDraggableData = createDraggableData;
10352
+ exports.getBoundPosition = getBoundPosition;
10353
+ exports.getControlPosition = getControlPosition;
10354
+ exports.snapToGrid = snapToGrid;
10440
10355
 
10441
10356
  var _shims = __webpack_require__("cCoX");
10442
10357
 
@@ -11379,10 +11294,10 @@ var store = __webpack_require__("yULr");
11379
11294
  (module.exports = function (key, value) {
11380
11295
  return store[key] || (store[key] = value !== undefined ? value : {});
11381
11296
  })('versions', []).push({
11382
- version: '3.22.0',
11297
+ version: '3.22.3',
11383
11298
  mode: IS_PURE ? 'pure' : 'global',
11384
11299
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
11385
- license: 'https://github.com/zloirock/core-js/blob/v3.22.0/LICENSE',
11300
+ license: 'https://github.com/zloirock/core-js/blob/v3.22.3/LICENSE',
11386
11301
  source: 'https://github.com/zloirock/core-js'
11387
11302
  });
11388
11303
 
@@ -13465,7 +13380,7 @@ module.exports = overArg;
13465
13380
  "use strict";
13466
13381
 
13467
13382
 
13468
- 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); }
13383
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13469
13384
 
13470
13385
  Object.defineProperty(exports, "__esModule", {
13471
13386
  value: true
@@ -13508,9 +13423,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
13508
13423
 
13509
13424
  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); } }
13510
13425
 
13511
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
13426
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13512
13427
 
13513
- 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); }
13428
+ 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
13514
13429
 
13515
13430
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
13516
13431
 
@@ -13738,7 +13653,21 @@ var DraggableCore = /*#__PURE__*/function (_React$Component) {
13738
13653
  var position = (0, _positionFns.getControlPosition)(e, _this.state.touchIdentifier, _assertThisInitialized(_this));
13739
13654
  if (position == null) return;
13740
13655
  var x = position.x,
13741
- y = position.y;
13656
+ y = position.y; // Snap to grid if prop has been provided
13657
+
13658
+ if (Array.isArray(_this.props.grid)) {
13659
+ var deltaX = x - _this.state.lastX || 0;
13660
+ var deltaY = y - _this.state.lastY || 0;
13661
+
13662
+ var _snapToGrid3 = (0, _positionFns.snapToGrid)(_this.props.grid, deltaX, deltaY);
13663
+
13664
+ var _snapToGrid4 = _slicedToArray(_snapToGrid3, 2);
13665
+
13666
+ deltaX = _snapToGrid4[0];
13667
+ deltaY = _snapToGrid4[1];
13668
+ x = _this.state.lastX + deltaX, y = _this.state.lastY + deltaY;
13669
+ }
13670
+
13742
13671
  var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y); // Call event handler
13743
13672
 
13744
13673
  var shouldContinue = _this.props.onStop(e, coreEvent);
@@ -13835,9 +13764,9 @@ var DraggableCore = /*#__PURE__*/function (_React$Component) {
13835
13764
  value: function findDOMNode()
13836
13765
  /*: ?HTMLElement*/
13837
13766
  {
13838
- var _this$props$nodeRef$c, _this$props, _this$props$nodeRef;
13767
+ var _this$props, _this$props2, _this$props2$nodeRef;
13839
13768
 
13840
- return (_this$props$nodeRef$c = (_this$props = this.props) === null || _this$props === void 0 ? void 0 : (_this$props$nodeRef = _this$props.nodeRef) === null || _this$props$nodeRef === void 0 ? void 0 : _this$props$nodeRef.current) !== null && _this$props$nodeRef$c !== void 0 ? _this$props$nodeRef$c : _reactDom.default.findDOMNode(this);
13769
+ return (_this$props = this.props) !== null && _this$props !== void 0 && _this$props.nodeRef ? (_this$props2 = this.props) === null || _this$props2 === void 0 ? void 0 : (_this$props2$nodeRef = _this$props2.nodeRef) === null || _this$props2$nodeRef === void 0 ? void 0 : _this$props2$nodeRef.current : _reactDom.default.findDOMNode(this);
13841
13770
  }
13842
13771
  }, {
13843
13772
  key: "render",
@@ -14828,26 +14757,6 @@ module.exports = function (it) {
14828
14757
  };
14829
14758
 
14830
14759
 
14831
- /***/ }),
14832
-
14833
- /***/ "WbBG":
14834
- /***/ (function(module, exports, __webpack_require__) {
14835
-
14836
- "use strict";
14837
- /**
14838
- * Copyright (c) 2013-present, Facebook, Inc.
14839
- *
14840
- * This source code is licensed under the MIT license found in the
14841
- * LICENSE file in the root directory of this source tree.
14842
- */
14843
-
14844
-
14845
-
14846
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
14847
-
14848
- module.exports = ReactPropTypesSecret;
14849
-
14850
-
14851
14760
  /***/ }),
14852
14761
 
14853
14762
  /***/ "WbkG":
@@ -14896,6 +14805,13 @@ function buildMatchPatternFn(args) {
14896
14805
 
14897
14806
  module.exports = exports.default;
14898
14807
 
14808
+ /***/ }),
14809
+
14810
+ /***/ "WvjI":
14811
+ /***/ (function(module, exports) {
14812
+
14813
+
14814
+
14899
14815
  /***/ }),
14900
14816
 
14901
14817
  /***/ "X+IB":
@@ -15466,9 +15382,9 @@ module.exports = toKey;
15466
15382
  __webpack_require__("lv3h");
15467
15383
  var $ = __webpack_require__("n9AK");
15468
15384
  var global = __webpack_require__("oNh+");
15469
- var getBuiltIn = __webpack_require__("wF8L");
15470
15385
  var call = __webpack_require__("9fDQ");
15471
15386
  var uncurryThis = __webpack_require__("XQ/X");
15387
+ var DESCRIPTORS = __webpack_require__("5Jdw");
15472
15388
  var USE_NATIVE_URL = __webpack_require__("crqh");
15473
15389
  var redefine = __webpack_require__("yX36");
15474
15390
  var redefineAll = __webpack_require__("mKZK");
@@ -15497,11 +15413,20 @@ var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
15497
15413
  var setInternalState = InternalStateModule.set;
15498
15414
  var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
15499
15415
  var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
15416
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
15417
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
15500
15418
 
15501
- var n$Fetch = getBuiltIn('fetch');
15502
- var N$Request = getBuiltIn('Request');
15503
- var Headers = getBuiltIn('Headers');
15504
- var RequestPrototype = N$Request && N$Request.prototype;
15419
+ // Avoid NodeJS experimental warning
15420
+ var safeGetBuiltIn = function (name) {
15421
+ if (!DESCRIPTORS) return global[name];
15422
+ var descriptor = getOwnPropertyDescriptor(global, name);
15423
+ return descriptor && descriptor.value;
15424
+ };
15425
+
15426
+ var nativeFetch = safeGetBuiltIn('fetch');
15427
+ var NativeRequest = safeGetBuiltIn('Request');
15428
+ var Headers = safeGetBuiltIn('Headers');
15429
+ var RequestPrototype = NativeRequest && NativeRequest.prototype;
15505
15430
  var HeadersPrototype = Headers && Headers.prototype;
15506
15431
  var RegExp = global.RegExp;
15507
15432
  var TypeError = global.TypeError;
@@ -15817,24 +15742,24 @@ if (!USE_NATIVE_URL && isCallable(Headers)) {
15817
15742
  } return init;
15818
15743
  };
15819
15744
 
15820
- if (isCallable(n$Fetch)) {
15821
- $({ global: true, enumerable: true, forced: true }, {
15745
+ if (isCallable(nativeFetch)) {
15746
+ $({ global: true, enumerable: true, noTargetGet: true, forced: true }, {
15822
15747
  fetch: function fetch(input /* , init */) {
15823
- return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
15748
+ return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
15824
15749
  }
15825
15750
  });
15826
15751
  }
15827
15752
 
15828
- if (isCallable(N$Request)) {
15753
+ if (isCallable(NativeRequest)) {
15829
15754
  var RequestConstructor = function Request(input /* , init */) {
15830
15755
  anInstance(this, RequestPrototype);
15831
- return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
15756
+ return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
15832
15757
  };
15833
15758
 
15834
15759
  RequestPrototype.constructor = RequestConstructor;
15835
15760
  RequestConstructor.prototype = RequestPrototype;
15836
15761
 
15837
- $({ global: true, forced: true }, {
15762
+ $({ global: true, forced: true, noTargetGet: true }, {
15838
15763
  Request: RequestConstructor
15839
15764
  });
15840
15765
  }
@@ -18368,11 +18293,11 @@ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDes
18368
18293
  Object.defineProperty(exports, "__esModule", {
18369
18294
  value: true
18370
18295
  });
18296
+ exports.dontSetMe = dontSetMe;
18371
18297
  exports.findInArray = findInArray;
18298
+ exports.int = int;
18372
18299
  exports.isFunction = isFunction;
18373
18300
  exports.isNum = isNum;
18374
- exports.int = int;
18375
- exports.dontSetMe = dontSetMe;
18376
18301
 
18377
18302
  // @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc
18378
18303
  function findInArray(array
@@ -18841,7 +18766,7 @@ module.exports = mapCacheDelete;
18841
18766
  "use strict";
18842
18767
 
18843
18768
 
18844
- 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); }
18769
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
18845
18770
 
18846
18771
  Object.defineProperty(exports, "__esModule", {
18847
18772
  value: true
@@ -18886,9 +18811,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
18886
18811
 
18887
18812
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
18888
18813
 
18889
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
18814
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
18890
18815
 
18891
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
18816
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
18892
18817
 
18893
18818
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18894
18819
 
@@ -18906,9 +18831,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
18906
18831
 
18907
18832
  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); } }
18908
18833
 
18909
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
18834
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18910
18835
 
18911
- 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); }
18836
+ 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 } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
18912
18837
 
18913
18838
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18914
18839
 
@@ -24918,6 +24843,7 @@ __webpack_require__.d(__webpack_exports__, "ButtonGroup", function() { return /*
24918
24843
  __webpack_require__.d(__webpack_exports__, "Calendar", function() { return /* reexport */ calendar_0; });
24919
24844
  __webpack_require__.d(__webpack_exports__, "Card", function() { return /* reexport */ card_0; });
24920
24845
  __webpack_require__.d(__webpack_exports__, "CardGroup", function() { return /* reexport */ cardGroup; });
24846
+ __webpack_require__.d(__webpack_exports__, "Carousel", function() { return /* reexport */ carousel_0; });
24921
24847
  __webpack_require__.d(__webpack_exports__, "Cascader", function() { return /* reexport */ cascader_0; });
24922
24848
  __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return /* reexport */ checkbox_0; });
24923
24849
  __webpack_require__.d(__webpack_exports__, "CheckboxGroup", function() { return /* reexport */ checkboxGroup; });
@@ -25059,8 +24985,8 @@ var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__
25059
24985
  var classnames = __webpack_require__("O94r");
25060
24986
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
25061
24987
 
25062
- // EXTERNAL MODULE: ./node_modules/prop-types/index.js
25063
- var prop_types = __webpack_require__("17x9");
24988
+ // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/prop-types/index.js
24989
+ var prop_types = __webpack_require__("aWzz");
25064
24990
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
25065
24991
 
25066
24992
  // CONCATENATED MODULE: ../semi-foundation/base/env.ts
@@ -29232,7 +29158,7 @@ class tooltip_Tooltip extends baseComponent_BaseComponent {
29232
29158
  }, portalEventSet, {
29233
29159
  "x-placement": placement,
29234
29160
  style: assign_default()({
29235
- visibility: motion ? undefined : 'visible'
29161
+ visibility: motion ? 'hidden' : 'visible'
29236
29162
  }, style)
29237
29163
  }), contentNode, icon);
29238
29164
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(_portal, {
@@ -30621,12 +30547,12 @@ localeConsumer_LocaleConsumer.defaultProps = {
30621
30547
  var is_safe_integer = __webpack_require__("lpbv");
30622
30548
  var is_safe_integer_default = /*#__PURE__*/__webpack_require__.n(is_safe_integer);
30623
30549
 
30624
- // CONCATENATED MODULE: ../semi-icons/lib/es/env.js
30550
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/env.js
30625
30551
  const env_BASE_CLASS_PREFIX = 'semi';
30626
- // EXTERNAL MODULE: ../semi-icons/lib/es/styles/icons.css
30627
- var icons = __webpack_require__("BKEV");
30552
+ // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/styles/icons.css
30553
+ var icons = __webpack_require__("WvjI");
30628
30554
 
30629
- // CONCATENATED MODULE: ../semi-icons/lib/es/components/Icon.js
30555
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/components/Icon.js
30630
30556
 
30631
30557
 
30632
30558
 
@@ -30706,7 +30632,7 @@ const convertIcon = (Svg, iconType) => {
30706
30632
 
30707
30633
 
30708
30634
  /* harmony default export */ var components_Icon = (Icon);
30709
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconAlertCircle.js
30635
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconAlertCircle.js
30710
30636
 
30711
30637
 
30712
30638
 
@@ -30730,7 +30656,7 @@ function SvgComponent(props) {
30730
30656
 
30731
30657
  const IconComponent = convertIcon(SvgComponent, 'alert_circle');
30732
30658
  /* harmony default export */ var IconAlertCircle = (IconComponent);
30733
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconAlertTriangle.js
30659
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconAlertTriangle.js
30734
30660
 
30735
30661
 
30736
30662
 
@@ -30754,7 +30680,7 @@ function IconAlertTriangle_SvgComponent(props) {
30754
30680
 
30755
30681
  const IconAlertTriangle_IconComponent = convertIcon(IconAlertTriangle_SvgComponent, 'alert_triangle');
30756
30682
  /* harmony default export */ var IconAlertTriangle = (IconAlertTriangle_IconComponent);
30757
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCalendar.js
30683
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCalendar.js
30758
30684
 
30759
30685
 
30760
30686
 
@@ -30778,7 +30704,7 @@ function IconCalendar_SvgComponent(props) {
30778
30704
 
30779
30705
  const IconCalendar_IconComponent = convertIcon(IconCalendar_SvgComponent, 'calendar');
30780
30706
  /* harmony default export */ var IconCalendar = (IconCalendar_IconComponent);
30781
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCalendarClock.js
30707
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCalendarClock.js
30782
30708
 
30783
30709
 
30784
30710
 
@@ -30817,7 +30743,7 @@ function IconCalendarClock_SvgComponent(props) {
30817
30743
 
30818
30744
  const IconCalendarClock_IconComponent = convertIcon(IconCalendarClock_SvgComponent, 'calendar_clock');
30819
30745
  /* harmony default export */ var IconCalendarClock = (IconCalendarClock_IconComponent);
30820
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCaretdown.js
30746
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCaretdown.js
30821
30747
 
30822
30748
 
30823
30749
 
@@ -30839,7 +30765,7 @@ function IconCaretdown_SvgComponent(props) {
30839
30765
 
30840
30766
  const IconCaretdown_IconComponent = convertIcon(IconCaretdown_SvgComponent, 'caretdown');
30841
30767
  /* harmony default export */ var IconCaretdown = (IconCaretdown_IconComponent);
30842
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCaretup.js
30768
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCaretup.js
30843
30769
 
30844
30770
 
30845
30771
 
@@ -30861,7 +30787,7 @@ function IconCaretup_SvgComponent(props) {
30861
30787
 
30862
30788
  const IconCaretup_IconComponent = convertIcon(IconCaretup_SvgComponent, 'caretup');
30863
30789
  /* harmony default export */ var IconCaretup = (IconCaretup_IconComponent);
30864
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCheckboxIndeterminate.js
30790
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCheckboxIndeterminate.js
30865
30791
 
30866
30792
 
30867
30793
 
@@ -30883,7 +30809,7 @@ function IconCheckboxIndeterminate_SvgComponent(props) {
30883
30809
 
30884
30810
  const IconCheckboxIndeterminate_IconComponent = convertIcon(IconCheckboxIndeterminate_SvgComponent, 'checkbox_indeterminate');
30885
30811
  /* harmony default export */ var IconCheckboxIndeterminate = (IconCheckboxIndeterminate_IconComponent);
30886
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCheckboxTick.js
30812
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCheckboxTick.js
30887
30813
 
30888
30814
 
30889
30815
 
@@ -30907,7 +30833,7 @@ function IconCheckboxTick_SvgComponent(props) {
30907
30833
 
30908
30834
  const IconCheckboxTick_IconComponent = convertIcon(IconCheckboxTick_SvgComponent, 'checkbox_tick');
30909
30835
  /* harmony default export */ var IconCheckboxTick = (IconCheckboxTick_IconComponent);
30910
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronDown.js
30836
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconChevronDown.js
30911
30837
 
30912
30838
 
30913
30839
 
@@ -30931,7 +30857,7 @@ function IconChevronDown_SvgComponent(props) {
30931
30857
 
30932
30858
  const IconChevronDown_IconComponent = convertIcon(IconChevronDown_SvgComponent, 'chevron_down');
30933
30859
  /* harmony default export */ var IconChevronDown = (IconChevronDown_IconComponent);
30934
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronLeft.js
30860
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconChevronLeft.js
30935
30861
 
30936
30862
 
30937
30863
 
@@ -30955,7 +30881,7 @@ function IconChevronLeft_SvgComponent(props) {
30955
30881
 
30956
30882
  const IconChevronLeft_IconComponent = convertIcon(IconChevronLeft_SvgComponent, 'chevron_left');
30957
30883
  /* harmony default export */ var IconChevronLeft = (IconChevronLeft_IconComponent);
30958
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronRight.js
30884
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconChevronRight.js
30959
30885
 
30960
30886
 
30961
30887
 
@@ -30979,7 +30905,7 @@ function IconChevronRight_SvgComponent(props) {
30979
30905
 
30980
30906
  const IconChevronRight_IconComponent = convertIcon(IconChevronRight_SvgComponent, 'chevron_right');
30981
30907
  /* harmony default export */ var IconChevronRight = (IconChevronRight_IconComponent);
30982
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronUp.js
30908
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconChevronUp.js
30983
30909
 
30984
30910
 
30985
30911
 
@@ -31003,7 +30929,7 @@ function IconChevronUp_SvgComponent(props) {
31003
30929
 
31004
30930
  const IconChevronUp_IconComponent = convertIcon(IconChevronUp_SvgComponent, 'chevron_up');
31005
30931
  /* harmony default export */ var IconChevronUp = (IconChevronUp_IconComponent);
31006
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconClear.js
30932
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconClear.js
31007
30933
 
31008
30934
 
31009
30935
 
@@ -31027,7 +30953,7 @@ function IconClear_SvgComponent(props) {
31027
30953
 
31028
30954
  const IconClear_IconComponent = convertIcon(IconClear_SvgComponent, 'clear');
31029
30955
  /* harmony default export */ var IconClear = (IconClear_IconComponent);
31030
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconClock.js
30956
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconClock.js
31031
30957
 
31032
30958
 
31033
30959
 
@@ -31051,7 +30977,7 @@ function IconClock_SvgComponent(props) {
31051
30977
 
31052
30978
  const IconClock_IconComponent = convertIcon(IconClock_SvgComponent, 'clock');
31053
30979
  /* harmony default export */ var IconClock = (IconClock_IconComponent);
31054
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconClose.js
30980
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconClose.js
31055
30981
 
31056
30982
 
31057
30983
 
@@ -31073,7 +30999,7 @@ function IconClose_SvgComponent(props) {
31073
30999
 
31074
31000
  const IconClose_IconComponent = convertIcon(IconClose_SvgComponent, 'close');
31075
31001
  /* harmony default export */ var IconClose = (IconClose_IconComponent);
31076
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCopy.js
31002
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCopy.js
31077
31003
 
31078
31004
 
31079
31005
 
@@ -31098,7 +31024,7 @@ function IconCopy_SvgComponent(props) {
31098
31024
 
31099
31025
  const IconCopy_IconComponent = convertIcon(IconCopy_SvgComponent, 'copy');
31100
31026
  /* harmony default export */ var IconCopy = (IconCopy_IconComponent);
31101
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconDoubleChevronLeft.js
31027
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconDoubleChevronLeft.js
31102
31028
 
31103
31029
 
31104
31030
 
@@ -31127,7 +31053,7 @@ function IconDoubleChevronLeft_SvgComponent(props) {
31127
31053
 
31128
31054
  const IconDoubleChevronLeft_IconComponent = convertIcon(IconDoubleChevronLeft_SvgComponent, 'double_chevron_left');
31129
31055
  /* harmony default export */ var IconDoubleChevronLeft = (IconDoubleChevronLeft_IconComponent);
31130
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconDoubleChevronRight.js
31056
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconDoubleChevronRight.js
31131
31057
 
31132
31058
 
31133
31059
 
@@ -31156,7 +31082,7 @@ function IconDoubleChevronRight_SvgComponent(props) {
31156
31082
 
31157
31083
  const IconDoubleChevronRight_IconComponent = convertIcon(IconDoubleChevronRight_SvgComponent, 'double_chevron_right');
31158
31084
  /* harmony default export */ var IconDoubleChevronRight = (IconDoubleChevronRight_IconComponent);
31159
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconEyeClosedSolid.js
31085
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconEyeClosedSolid.js
31160
31086
 
31161
31087
 
31162
31088
 
@@ -31183,7 +31109,7 @@ function IconEyeClosedSolid_SvgComponent(props) {
31183
31109
 
31184
31110
  const IconEyeClosedSolid_IconComponent = convertIcon(IconEyeClosedSolid_SvgComponent, 'eye_closed_solid');
31185
31111
  /* harmony default export */ var IconEyeClosedSolid = (IconEyeClosedSolid_IconComponent);
31186
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconEyeOpened.js
31112
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconEyeOpened.js
31187
31113
 
31188
31114
 
31189
31115
 
@@ -31207,7 +31133,7 @@ function IconEyeOpened_SvgComponent(props) {
31207
31133
 
31208
31134
  const IconEyeOpened_IconComponent = convertIcon(IconEyeOpened_SvgComponent, 'eye_opened');
31209
31135
  /* harmony default export */ var IconEyeOpened = (IconEyeOpened_IconComponent);
31210
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFile.js
31136
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconFile.js
31211
31137
 
31212
31138
 
31213
31139
 
@@ -31231,7 +31157,7 @@ function IconFile_SvgComponent(props) {
31231
31157
 
31232
31158
  const IconFile_IconComponent = convertIcon(IconFile_SvgComponent, 'file');
31233
31159
  /* harmony default export */ var IconFile = (IconFile_IconComponent);
31234
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFilter.js
31160
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconFilter.js
31235
31161
 
31236
31162
 
31237
31163
 
@@ -31255,7 +31181,7 @@ function IconFilter_SvgComponent(props) {
31255
31181
 
31256
31182
  const IconFilter_IconComponent = convertIcon(IconFilter_SvgComponent, 'filter');
31257
31183
  /* harmony default export */ var IconFilter = (IconFilter_IconComponent);
31258
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFolder.js
31184
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconFolder.js
31259
31185
 
31260
31186
 
31261
31187
 
@@ -31280,7 +31206,7 @@ function IconFolder_SvgComponent(props) {
31280
31206
 
31281
31207
  const IconFolder_IconComponent = convertIcon(IconFolder_SvgComponent, 'folder');
31282
31208
  /* harmony default export */ var IconFolder = (IconFolder_IconComponent);
31283
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFolderOpen.js
31209
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconFolderOpen.js
31284
31210
 
31285
31211
 
31286
31212
 
@@ -31304,7 +31230,7 @@ function IconFolderOpen_SvgComponent(props) {
31304
31230
 
31305
31231
  const IconFolderOpen_IconComponent = convertIcon(IconFolderOpen_SvgComponent, 'folder_open');
31306
31232
  /* harmony default export */ var IconFolderOpen = (IconFolderOpen_IconComponent);
31307
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconHandle.js
31233
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconHandle.js
31308
31234
 
31309
31235
 
31310
31236
 
@@ -31341,7 +31267,7 @@ function IconHandle_SvgComponent(props) {
31341
31267
 
31342
31268
  const IconHandle_IconComponent = convertIcon(IconHandle_SvgComponent, 'handle');
31343
31269
  /* harmony default export */ var IconHandle = (IconHandle_IconComponent);
31344
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconHelpCircle.js
31270
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconHelpCircle.js
31345
31271
 
31346
31272
 
31347
31273
 
@@ -31365,7 +31291,7 @@ function IconHelpCircle_SvgComponent(props) {
31365
31291
 
31366
31292
  const IconHelpCircle_IconComponent = convertIcon(IconHelpCircle_SvgComponent, 'help_circle');
31367
31293
  /* harmony default export */ var IconHelpCircle = (IconHelpCircle_IconComponent);
31368
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconInfoCircle.js
31294
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconInfoCircle.js
31369
31295
 
31370
31296
 
31371
31297
 
@@ -31389,7 +31315,7 @@ function IconInfoCircle_SvgComponent(props) {
31389
31315
 
31390
31316
  const IconInfoCircle_IconComponent = convertIcon(IconInfoCircle_SvgComponent, 'info_circle');
31391
31317
  /* harmony default export */ var IconInfoCircle = (IconInfoCircle_IconComponent);
31392
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconMore.js
31318
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconMore.js
31393
31319
 
31394
31320
 
31395
31321
 
@@ -31417,7 +31343,7 @@ function IconMore_SvgComponent(props) {
31417
31343
 
31418
31344
  const IconMore_IconComponent = convertIcon(IconMore_SvgComponent, 'more');
31419
31345
  /* harmony default export */ var IconMore = (IconMore_IconComponent);
31420
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconRadio.js
31346
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconRadio.js
31421
31347
 
31422
31348
 
31423
31349
 
@@ -31441,7 +31367,7 @@ function IconRadio_SvgComponent(props) {
31441
31367
 
31442
31368
  const IconRadio_IconComponent = convertIcon(IconRadio_SvgComponent, 'radio');
31443
31369
  /* harmony default export */ var IconRadio = (IconRadio_IconComponent);
31444
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconRefresh.js
31370
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconRefresh.js
31445
31371
 
31446
31372
 
31447
31373
 
@@ -31465,7 +31391,7 @@ function IconRefresh_SvgComponent(props) {
31465
31391
 
31466
31392
  const IconRefresh_IconComponent = convertIcon(IconRefresh_SvgComponent, 'refresh');
31467
31393
  /* harmony default export */ var IconRefresh = (IconRefresh_IconComponent);
31468
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconSearch.js
31394
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconSearch.js
31469
31395
 
31470
31396
 
31471
31397
 
@@ -31489,7 +31415,7 @@ function IconSearch_SvgComponent(props) {
31489
31415
 
31490
31416
  const IconSearch_IconComponent = convertIcon(IconSearch_SvgComponent, 'search');
31491
31417
  /* harmony default export */ var IconSearch = (IconSearch_IconComponent);
31492
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconSidebar.js
31418
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconSidebar.js
31493
31419
 
31494
31420
 
31495
31421
 
@@ -31513,7 +31439,7 @@ function IconSidebar_SvgComponent(props) {
31513
31439
 
31514
31440
  const IconSidebar_IconComponent = convertIcon(IconSidebar_SvgComponent, 'sidebar');
31515
31441
  /* harmony default export */ var IconSidebar = (IconSidebar_IconComponent);
31516
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconStar.js
31442
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconStar.js
31517
31443
 
31518
31444
 
31519
31445
 
@@ -31535,7 +31461,7 @@ function IconStar_SvgComponent(props) {
31535
31461
 
31536
31462
  const IconStar_IconComponent = convertIcon(IconStar_SvgComponent, 'star');
31537
31463
  /* harmony default export */ var IconStar = (IconStar_IconComponent);
31538
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTick.js
31464
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconTick.js
31539
31465
 
31540
31466
 
31541
31467
 
@@ -31559,7 +31485,7 @@ function IconTick_SvgComponent(props) {
31559
31485
 
31560
31486
  const IconTick_IconComponent = convertIcon(IconTick_SvgComponent, 'tick');
31561
31487
  /* harmony default export */ var IconTick = (IconTick_IconComponent);
31562
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTickCircle.js
31488
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconTickCircle.js
31563
31489
 
31564
31490
 
31565
31491
 
@@ -31583,7 +31509,7 @@ function IconTickCircle_SvgComponent(props) {
31583
31509
 
31584
31510
  const IconTickCircle_IconComponent = convertIcon(IconTickCircle_SvgComponent, 'tick_circle');
31585
31511
  /* harmony default export */ var IconTickCircle = (IconTickCircle_IconComponent);
31586
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTreeTriangleDown.js
31512
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconTreeTriangleDown.js
31587
31513
 
31588
31514
 
31589
31515
 
@@ -31605,7 +31531,7 @@ function IconTreeTriangleDown_SvgComponent(props) {
31605
31531
 
31606
31532
  const IconTreeTriangleDown_IconComponent = convertIcon(IconTreeTriangleDown_SvgComponent, 'tree_triangle_down');
31607
31533
  /* harmony default export */ var IconTreeTriangleDown = (IconTreeTriangleDown_IconComponent);
31608
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTreeTriangleRight.js
31534
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconTreeTriangleRight.js
31609
31535
 
31610
31536
 
31611
31537
 
@@ -31627,7 +31553,7 @@ function IconTreeTriangleRight_SvgComponent(props) {
31627
31553
 
31628
31554
  const IconTreeTriangleRight_IconComponent = convertIcon(IconTreeTriangleRight_SvgComponent, 'tree_triangle_right');
31629
31555
  /* harmony default export */ var IconTreeTriangleRight = (IconTreeTriangleRight_IconComponent);
31630
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconUpload.js
31556
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconUpload.js
31631
31557
 
31632
31558
 
31633
31559
 
@@ -31651,7 +31577,7 @@ function IconUpload_SvgComponent(props) {
31651
31577
 
31652
31578
  const IconUpload_IconComponent = convertIcon(IconUpload_SvgComponent, 'upload');
31653
31579
  /* harmony default export */ var IconUpload = (IconUpload_IconComponent);
31654
- // CONCATENATED MODULE: ../semi-icons/lib/es/icons/index.js
31580
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/index.js
31655
31581
 
31656
31582
 
31657
31583
 
@@ -32089,7 +32015,7 @@ const IconUpload_IconComponent = convertIcon(IconUpload_SvgComponent, 'upload');
32089
32015
 
32090
32016
 
32091
32017
 
32092
- // CONCATENATED MODULE: ../semi-icons/lib/es/index.js
32018
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/index.js
32093
32019
 
32094
32020
 
32095
32021
 
@@ -38045,7 +37971,9 @@ class banner_Banner extends baseComponent_BaseComponent {
38045
37971
  const closer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(iconButton_0, {
38046
37972
  className: "".concat(banner_prefixCls, "-close"),
38047
37973
  onClick: this.remove,
38048
- icon: closeIcon || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, null),
37974
+ icon: closeIcon || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, {
37975
+ "aria-hidden": true
37976
+ }),
38049
37977
  theme: "borderless",
38050
37978
  size: "small",
38051
37979
  type: "tertiary",
@@ -38061,16 +37989,20 @@ class banner_Banner extends baseComponent_BaseComponent {
38061
37989
  } = this.props;
38062
37990
  const iconMap = {
38063
37991
  warning: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconAlertTriangle, {
38064
- size: "large"
37992
+ size: "large",
37993
+ "aria-label": 'warning'
38065
37994
  }),
38066
37995
  success: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconTickCircle, {
38067
- size: "large"
37996
+ size: "large",
37997
+ "aria-label": 'success'
38068
37998
  }),
38069
37999
  info: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconInfoCircle, {
38070
- size: "large"
38000
+ size: "large",
38001
+ "aria-label": 'info'
38071
38002
  }),
38072
38003
  danger: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconAlertCircle, {
38073
- size: "large"
38004
+ size: "large",
38005
+ "aria-label": 'danger'
38074
38006
  })
38075
38007
  };
38076
38008
  let iconType = iconMap[type];
@@ -45393,6 +45325,768 @@ cardGroup_CardGroup.defaultProps = {
45393
45325
  spacing: 16
45394
45326
  };
45395
45327
  /* harmony default export */ var cardGroup = (cardGroup_CardGroup);
45328
+ // CONCATENATED MODULE: ../semi-foundation/carousel/constants.ts
45329
+
45330
+ const carousel_constants_cssClasses = {
45331
+ CAROUSEL: "".concat(BASE_CLASS_PREFIX, "-carousel"),
45332
+ CAROUSEL_INDICATOR: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator"),
45333
+ CAROUSEL_INDICATOR_LINE: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-line"),
45334
+ CAROUSEL_INDICATOR_DOT: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-dot"),
45335
+ CAROUSEL_INDICATOR_COLUMNAR: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-columnar"),
45336
+ CAROUSEL_INDICATOR_INACTIVE: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-inactive"),
45337
+ CAROUSEL_INDICATOR_ACTIVE: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-active"),
45338
+ CAROUSEL_CONTENT: "".concat(BASE_CLASS_PREFIX, "-carousel-content"),
45339
+ CAROUSEL_ARROW: "".concat(BASE_CLASS_PREFIX, "-carousel-arrow")
45340
+ };
45341
+ const carousel_constants_numbers = {
45342
+ DEFAULT_ACTIVE_INDEX: 0,
45343
+ DEFAULT_INTERVAL: 2000,
45344
+ DEFAULT_SPEED: 300
45345
+ };
45346
+ const carousel_constants_strings = {
45347
+ ANIMATION_MAP: ['slide', 'fade'],
45348
+ DIRECTION: ['left', 'right'],
45349
+ TYPE_MAP: ['columnar', 'line', 'dot'],
45350
+ THEME_MAP: ['dark', 'primary', 'light'],
45351
+ POSITION_MAP: ['left', 'center', 'right'],
45352
+ ARROW_MAP: ['always', 'hover'],
45353
+ SIZE: ['small', 'medium'],
45354
+ TRIGGER: ['click', 'hover']
45355
+ };
45356
+
45357
+ // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime-corejs3/core-js-stable/set-interval.js
45358
+ var set_interval = __webpack_require__("1l5A");
45359
+ var set_interval_default = /*#__PURE__*/__webpack_require__.n(set_interval);
45360
+
45361
+ // CONCATENATED MODULE: ../semi-foundation/carousel/foundation.ts
45362
+
45363
+
45364
+
45365
+
45366
+
45367
+
45368
+
45369
+
45370
+ class foundation_CarouselFoundation extends foundation {
45371
+ constructor(adapter) {
45372
+ super(assign_default()({}, adapter));
45373
+ this._interval = null;
45374
+ this.throttleChange = throttle_default()(this.onIndicatorChange, this.getSwitchingTime());
45375
+ }
45376
+
45377
+ play(interval) {
45378
+ if (this._interval) {
45379
+ clearInterval(this._interval);
45380
+ }
45381
+
45382
+ this._interval = set_interval_default()(() => {
45383
+ this.next();
45384
+ }, interval);
45385
+ }
45386
+
45387
+ stop() {
45388
+ if (this._interval) {
45389
+ clearInterval(this._interval);
45390
+ }
45391
+ }
45392
+
45393
+ goTo(activeIndex) {
45394
+ const {
45395
+ activeIndex: stateActiveIndex
45396
+ } = this.getStates();
45397
+ const targetIndex = this.getValidIndex(activeIndex);
45398
+
45399
+ this._adapter.setIsReverse(stateActiveIndex > targetIndex);
45400
+
45401
+ if (this.getIsControledComponent()) {
45402
+ this._notifyChange(targetIndex);
45403
+ } else {
45404
+ this._notifyChange(targetIndex);
45405
+
45406
+ this.handleNewActiveIndex(targetIndex);
45407
+ }
45408
+ }
45409
+
45410
+ next() {
45411
+ const {
45412
+ activeIndex: stateActiveIndex
45413
+ } = this.getStates();
45414
+ const targetIndex = this.getValidIndex(stateActiveIndex + 1);
45415
+
45416
+ this._adapter.setIsReverse(false);
45417
+
45418
+ if (this.getIsControledComponent()) {
45419
+ this._notifyChange(targetIndex);
45420
+ } else {
45421
+ this._notifyChange(targetIndex);
45422
+
45423
+ this.handleNewActiveIndex(targetIndex);
45424
+ }
45425
+ }
45426
+
45427
+ prev() {
45428
+ const {
45429
+ activeIndex: stateActiveIndex
45430
+ } = this.getStates();
45431
+ const targetIndex = this.getValidIndex(stateActiveIndex - 1);
45432
+
45433
+ this._adapter.setIsReverse(true);
45434
+
45435
+ if (this.getIsControledComponent()) {
45436
+ this._notifyChange(targetIndex);
45437
+ } else {
45438
+ this._notifyChange(targetIndex);
45439
+
45440
+ this.handleNewActiveIndex(targetIndex);
45441
+ }
45442
+ }
45443
+
45444
+ destroy() {
45445
+ this._unregisterInterval();
45446
+ }
45447
+
45448
+ _unregisterInterval() {
45449
+ if (this._interval) {
45450
+ clearInterval(this._interval);
45451
+ this._interval = null;
45452
+ }
45453
+ }
45454
+
45455
+ _notifyChange(activeIndex) {
45456
+ const {
45457
+ activeIndex: stateActiveIndex,
45458
+ isInit
45459
+ } = this.getStates();
45460
+
45461
+ if (isInit) {
45462
+ this._adapter.setIsInit(false);
45463
+ }
45464
+
45465
+ if (stateActiveIndex !== activeIndex) {
45466
+ this._adapter.setPreActiveIndex(stateActiveIndex);
45467
+
45468
+ this._adapter.notifyChange(activeIndex, stateActiveIndex);
45469
+ }
45470
+ }
45471
+
45472
+ getValidIndex(index) {
45473
+ const {
45474
+ children
45475
+ } = this.getStates();
45476
+ return (index + children.length) % children.length;
45477
+ }
45478
+
45479
+ getSwitchingTime() {
45480
+ const {
45481
+ autoPlay,
45482
+ speed
45483
+ } = this.getProps();
45484
+ const autoPlayType = typeof autoPlay;
45485
+
45486
+ if (autoPlayType === 'boolean' && autoPlay) {
45487
+ return carousel_constants_numbers.DEFAULT_INTERVAL + speed;
45488
+ }
45489
+
45490
+ if (isObject_default()(autoPlay)) {
45491
+ return get_default()(autoPlay, 'interval', carousel_constants_numbers.DEFAULT_INTERVAL) + speed;
45492
+ }
45493
+
45494
+ return speed;
45495
+ }
45496
+
45497
+ getIsControledComponent() {
45498
+ return this._isInProps('activeIndex');
45499
+ }
45500
+
45501
+ handleAutoPlay() {
45502
+ const {
45503
+ autoPlay
45504
+ } = this.getProps();
45505
+ const autoPlayType = typeof autoPlay;
45506
+
45507
+ if (autoPlayType === 'boolean' && autoPlay || isObject_default()(autoPlay)) {
45508
+ this.play(this.getSwitchingTime());
45509
+ }
45510
+ }
45511
+
45512
+ handleKeyDown(event) {
45513
+ if (event.key === 'ArrowLeft') {
45514
+ this.prev();
45515
+ }
45516
+
45517
+ if (event.key === 'ArrowRight') {
45518
+ this.next();
45519
+ }
45520
+ }
45521
+
45522
+ onIndicatorChange(activeIndex) {
45523
+ const {
45524
+ activeIndex: stateActiveIndex
45525
+ } = this.getStates();
45526
+
45527
+ this._adapter.setIsReverse(stateActiveIndex > activeIndex);
45528
+
45529
+ this._notifyChange(activeIndex);
45530
+
45531
+ if (!this.getIsControledComponent()) {
45532
+ this.handleNewActiveIndex(activeIndex);
45533
+ }
45534
+ }
45535
+
45536
+ handleNewActiveIndex(activeIndex) {
45537
+ const {
45538
+ activeIndex: stateActiveIndex
45539
+ } = this.getStates();
45540
+
45541
+ if (stateActiveIndex !== activeIndex) {
45542
+ this._adapter.setNewActiveIndex(activeIndex);
45543
+ }
45544
+ }
45545
+
45546
+ getDefaultActiveIndex() {
45547
+ let activeIndex;
45548
+ const props = this.getProps();
45549
+
45550
+ if ('activeIndex' in props) {
45551
+ activeIndex = props.activeIndex;
45552
+ } else if ('defaultActiveIndex' in props) {
45553
+ activeIndex = props.defaultActiveIndex;
45554
+ }
45555
+
45556
+ return activeIndex;
45557
+ }
45558
+
45559
+ }
45560
+
45561
+ /* harmony default export */ var carousel_foundation = (foundation_CarouselFoundation);
45562
+ // CONCATENATED MODULE: ../semi-foundation/utils/getDataAttr.ts
45563
+
45564
+
45565
+ function getDataAttr(props) {
45566
+ var _context;
45567
+
45568
+ return reduce_default()(_context = keys_default()(props)).call(_context, (prev, key) => {
45569
+ if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
45570
+ prev[key] = props[key];
45571
+ }
45572
+
45573
+ return prev;
45574
+ }, {});
45575
+ }
45576
+ // CONCATENATED MODULE: ./carousel/CarouselIndicator.tsx
45577
+
45578
+
45579
+
45580
+
45581
+
45582
+ var CarouselIndicator_rest = undefined && undefined.__rest || function (s, e) {
45583
+ var t = {};
45584
+
45585
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && index_of_default()(e).call(e, p) < 0) t[p] = s[p];
45586
+
45587
+ if (s != null && typeof get_own_property_symbols_default.a === "function") for (var i = 0, p = get_own_property_symbols_default()(s); i < p.length; i++) {
45588
+ if (index_of_default()(e).call(e, p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
45589
+ }
45590
+ return t;
45591
+ };
45592
+ /* eslint-disable jsx-a11y/no-static-element-interactions */
45593
+
45594
+ /* eslint-disable jsx-a11y/click-events-have-key-events */
45595
+
45596
+
45597
+
45598
+
45599
+
45600
+
45601
+
45602
+
45603
+ class CarouselIndicator_CarouselIndicator extends external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.PureComponent {
45604
+ constructor() {
45605
+ super(...arguments);
45606
+
45607
+ this.onIndicatorChange = activeIndex => {
45608
+ this.props.onIndicatorChange(activeIndex);
45609
+ };
45610
+
45611
+ this.handleIndicatorClick = activeIndex => {
45612
+ const {
45613
+ trigger
45614
+ } = this.props;
45615
+
45616
+ if (trigger === 'click') {
45617
+ this.onIndicatorChange(activeIndex);
45618
+ }
45619
+ };
45620
+
45621
+ this.handleIndicatorHover = activeIndex => {
45622
+ const {
45623
+ trigger
45624
+ } = this.props;
45625
+
45626
+ if (trigger === 'hover') {
45627
+ this.onIndicatorChange(activeIndex);
45628
+ }
45629
+ };
45630
+ }
45631
+
45632
+ renderIndicatorContent() {
45633
+ const {
45634
+ total,
45635
+ theme,
45636
+ size,
45637
+ activeIndex
45638
+ } = this.props;
45639
+ const indicatorContent = [];
45640
+
45641
+ for (let i = 0; i < total; i++) {
45642
+ var _context, _context2;
45643
+
45644
+ indicatorContent.push( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
45645
+ // role='none'
45646
+ key: i,
45647
+ "data-index": i,
45648
+ className: classnames_default()(["".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-item")], {
45649
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-item-active")]: i === activeIndex,
45650
+ [concat_default()(_context = "".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-item-")).call(_context, theme)]: theme,
45651
+ [concat_default()(_context2 = "".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-item-")).call(_context2, size)]: size
45652
+ }),
45653
+ onClick: () => this.handleIndicatorClick(i),
45654
+ onMouseEnter: () => this.handleIndicatorHover(i)
45655
+ }));
45656
+ }
45657
+
45658
+ return indicatorContent;
45659
+ }
45660
+
45661
+ render() {
45662
+ var _context3, _context4;
45663
+
45664
+ const _a = this.props,
45665
+ {
45666
+ type,
45667
+ size,
45668
+ theme,
45669
+ style,
45670
+ className,
45671
+ position
45672
+ } = _a,
45673
+ restProps = CarouselIndicator_rest(_a, ["type", "size", "theme", "style", "className", "position"]);
45674
+
45675
+ const classNames = classnames_default()(className, {
45676
+ [carousel_constants_cssClasses.CAROUSEL_INDICATOR]: true,
45677
+ [concat_default()(_context3 = "".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-")).call(_context3, type)]: type,
45678
+ [concat_default()(_context4 = "".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-")).call(_context4, position)]: position
45679
+ });
45680
+ const indicatorContent = this.renderIndicatorContent();
45681
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
45682
+ className: classNames,
45683
+ style: style
45684
+ }, getDataAttr(restProps)), indicatorContent);
45685
+ }
45686
+
45687
+ }
45688
+
45689
+ CarouselIndicator_CarouselIndicator.propTypes = {
45690
+ activeKey: prop_types_default.a.number,
45691
+ className: prop_types_default.a.string,
45692
+ position: prop_types_default.a.oneOf(carousel_constants_strings.POSITION_MAP),
45693
+ size: prop_types_default.a.oneOf(carousel_constants_strings.SIZE),
45694
+ style: prop_types_default.a.object,
45695
+ theme: prop_types_default.a.oneOf(carousel_constants_strings.THEME_MAP),
45696
+ total: prop_types_default.a.number,
45697
+ onIndicatorChange: prop_types_default.a.func,
45698
+ type: prop_types_default.a.oneOf(carousel_constants_strings.TYPE_MAP),
45699
+ trigger: prop_types_default.a.oneOf(carousel_constants_strings.TRIGGER)
45700
+ };
45701
+ /* harmony default export */ var carousel_CarouselIndicator = (CarouselIndicator_CarouselIndicator);
45702
+ // CONCATENATED MODULE: ./carousel/CarouselArrow.tsx
45703
+
45704
+
45705
+
45706
+
45707
+
45708
+ /* eslint-disable jsx-a11y/click-events-have-key-events */
45709
+
45710
+ /* eslint-disable jsx-a11y/no-static-element-interactions */
45711
+
45712
+
45713
+
45714
+
45715
+
45716
+ class CarouselArrow_CarouselArrow extends external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.PureComponent {
45717
+ constructor() {
45718
+ super(...arguments);
45719
+
45720
+ this.renderLeftIcon = () => {
45721
+ return get_default()(this.props, 'arrowProps.leftArrow.children', /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconChevronLeft, {
45722
+ "aria-label": "Previous index",
45723
+ size: "inherit"
45724
+ }));
45725
+ };
45726
+
45727
+ this.renderRightIcon = () => {
45728
+ return get_default()(this.props, 'arrowProps.rightArrow.children', /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconChevronRight, {
45729
+ "aria-label": "Next index",
45730
+ size: "inherit"
45731
+ }));
45732
+ };
45733
+ }
45734
+
45735
+ render() {
45736
+ var _context, _context2, _context3;
45737
+
45738
+ const {
45739
+ type,
45740
+ theme,
45741
+ prev,
45742
+ next,
45743
+ timing
45744
+ } = this.props;
45745
+ const classNames = classnames_default()({
45746
+ [carousel_constants_cssClasses.CAROUSEL_ARROW]: true,
45747
+ [concat_default()(_context = "".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-")).call(_context, theme)]: theme,
45748
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-hover")]: type === 'hover'
45749
+ });
45750
+ const leftClassNames = classnames_default()({
45751
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-prev")]: true,
45752
+ [concat_default()(_context2 = "".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-")).call(_context2, theme)]: theme
45753
+ });
45754
+ const rightClassNames = classnames_default()({
45755
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-next")]: true,
45756
+ [concat_default()(_context3 = "".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-")).call(_context3, theme)]: theme
45757
+ });
45758
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
45759
+ className: classNames
45760
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
45761
+ // role='button'
45762
+ className: leftClassNames,
45763
+ onClick: throttle_default()(prev, timing)
45764
+ }, get_default()(this.props, 'arrowProps.leftArrow.props')), this.renderLeftIcon()), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
45765
+ // role='button'
45766
+ // tabIndex={0}
45767
+ className: rightClassNames,
45768
+ onClick: throttle_default()(next, timing)
45769
+ }, get_default()(this.props, 'arrowProps.rightArrow.props')), this.renderRightIcon()));
45770
+ }
45771
+
45772
+ }
45773
+
45774
+ /* harmony default export */ var carousel_CarouselArrow = (CarouselArrow_CarouselArrow);
45775
+ // EXTERNAL MODULE: ../semi-foundation/carousel/carousel.scss
45776
+ var carousel = __webpack_require__("HzcD");
45777
+
45778
+ // CONCATENATED MODULE: ./carousel/index.tsx
45779
+
45780
+
45781
+
45782
+
45783
+
45784
+
45785
+ /* eslint-disable jsx-a11y/no-static-element-interactions */
45786
+
45787
+
45788
+
45789
+
45790
+
45791
+
45792
+
45793
+
45794
+
45795
+
45796
+
45797
+ class carousel_Carousel extends baseComponent_BaseComponent {
45798
+ constructor(props) {
45799
+ super(props);
45800
+
45801
+ this.play = () => {
45802
+ return this.foundation.handleAutoPlay();
45803
+ };
45804
+
45805
+ this.stop = () => {
45806
+ return this.foundation.stop();
45807
+ };
45808
+
45809
+ this.goTo = targetIndex => {
45810
+ return this.foundation.goTo(targetIndex);
45811
+ };
45812
+
45813
+ this.prev = () => {
45814
+ return this.foundation.prev();
45815
+ };
45816
+
45817
+ this.next = () => {
45818
+ return this.foundation.next();
45819
+ };
45820
+
45821
+ this.handleAutoPlay = () => {
45822
+ if (!this.foundation.getIsControledComponent()) {
45823
+ this.foundation.handleAutoPlay();
45824
+ }
45825
+ };
45826
+
45827
+ this.handleMouseEnter = () => {
45828
+ const {
45829
+ autoPlay
45830
+ } = this.props;
45831
+
45832
+ if (typeof autoPlay !== 'object' || autoPlay.hoverToPause) {
45833
+ this.foundation.stop();
45834
+ }
45835
+ };
45836
+
45837
+ this.handleMouseLeave = () => {
45838
+ const {
45839
+ autoPlay
45840
+ } = this.props;
45841
+
45842
+ if ((typeof autoPlay !== 'object' || autoPlay.hoverToPause) && !this.foundation.getIsControledComponent()) {
45843
+ this.foundation.handleAutoPlay();
45844
+ }
45845
+ };
45846
+
45847
+ this.onIndicatorChange = activeIndex => {
45848
+ return this.foundation.throttleChange(activeIndex);
45849
+ };
45850
+
45851
+ this.getChildren = () => {
45852
+ var _context;
45853
+
45854
+ const {
45855
+ children: originChildren
45856
+ } = this.props;
45857
+ return filter_default()(_context = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].toArray(originChildren)).call(_context, child => {
45858
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child);
45859
+ });
45860
+ };
45861
+
45862
+ this.getValidIndex = activeIndex => {
45863
+ return this.foundation.getValidIndex(activeIndex);
45864
+ };
45865
+
45866
+ this.renderChildren = () => {
45867
+ const {
45868
+ speed,
45869
+ animation
45870
+ } = this.props;
45871
+ const {
45872
+ activeIndex,
45873
+ children,
45874
+ preIndex,
45875
+ isInit
45876
+ } = this.state;
45877
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Fragment, null, map_default()(children).call(children, (child, index) => {
45878
+ const isCurrent = index === activeIndex;
45879
+ const isPrev = index === this.getValidIndex(activeIndex - 1);
45880
+ const isNext = index === this.getValidIndex(activeIndex + 1);
45881
+ const animateStyle = {
45882
+ transitionTimingFunction: 'ease',
45883
+ transitionDuration: "".concat(speed, "ms"),
45884
+ animationTimingFunction: 'ease',
45885
+ animationDuration: "".concat(speed, "ms")
45886
+ };
45887
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(child, {
45888
+ style: assign_default()(assign_default()({}, child.props.style), animateStyle),
45889
+ className: classnames_default()(child.props.className, {
45890
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-prev")]: isPrev,
45891
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-next")]: isNext,
45892
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-current")]: isCurrent,
45893
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item")]: true,
45894
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-active")]: isCurrent,
45895
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-slide-in")]: animation === 'slide' && !isInit && isCurrent,
45896
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-slide-out")]: animation === 'slide' && !isInit && index === preIndex
45897
+ })
45898
+ });
45899
+ }));
45900
+ };
45901
+
45902
+ this.renderIndicator = () => {
45903
+ const {
45904
+ children,
45905
+ activeIndex
45906
+ } = this.state;
45907
+ const {
45908
+ showIndicator,
45909
+ indicatorType,
45910
+ theme,
45911
+ indicatorPosition,
45912
+ indicatorSize,
45913
+ trigger
45914
+ } = this.props;
45915
+ const carouselIndicatorCls = classnames_default()({
45916
+ [carousel_constants_cssClasses.CAROUSEL_INDICATOR]: true
45917
+ });
45918
+
45919
+ if (showIndicator && children.length > 1) {
45920
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
45921
+ className: carouselIndicatorCls
45922
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(carousel_CarouselIndicator, {
45923
+ type: indicatorType,
45924
+ total: children.length,
45925
+ activeIndex: activeIndex,
45926
+ position: indicatorPosition,
45927
+ trigger: trigger,
45928
+ size: indicatorSize,
45929
+ theme: theme,
45930
+ onIndicatorChange: this.onIndicatorChange
45931
+ }));
45932
+ }
45933
+
45934
+ return null;
45935
+ };
45936
+
45937
+ this.renderArrow = () => {
45938
+ const {
45939
+ children
45940
+ } = this.state;
45941
+ const {
45942
+ showArrow,
45943
+ arrowType,
45944
+ theme,
45945
+ arrowProps
45946
+ } = this.props;
45947
+ const timing = this.foundation.getSwitchingTime();
45948
+
45949
+ if (showArrow && children.length > 1) {
45950
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(carousel_CarouselArrow, {
45951
+ type: arrowType,
45952
+ theme: theme,
45953
+ prev: this.prev,
45954
+ next: this.next,
45955
+ timing: timing,
45956
+ arrowProps: arrowProps
45957
+ });
45958
+ }
45959
+
45960
+ return null;
45961
+ };
45962
+
45963
+ this.foundation = new carousel_foundation(this.adapter);
45964
+ const defaultActiveIndex = this.foundation.getDefaultActiveIndex();
45965
+ this.state = {
45966
+ activeIndex: defaultActiveIndex,
45967
+ children: this.getChildren(),
45968
+ preIndex: defaultActiveIndex,
45969
+ isReverse: false,
45970
+ isInit: true
45971
+ };
45972
+ }
45973
+
45974
+ get adapter() {
45975
+ return assign_default()(assign_default()({}, super.adapter), {
45976
+ notifyChange: (activeIndex, preIndex) => {
45977
+ this.props.onChange(activeIndex, preIndex);
45978
+ },
45979
+ setNewActiveIndex: activeIndex => {
45980
+ this.setState({
45981
+ activeIndex
45982
+ });
45983
+ },
45984
+ setPreActiveIndex: preIndex => {
45985
+ this.setState({
45986
+ preIndex
45987
+ });
45988
+ },
45989
+ setIsReverse: isReverse => {
45990
+ this.setState({
45991
+ isReverse
45992
+ });
45993
+ },
45994
+ setIsInit: isInit => {
45995
+ this.setState({
45996
+ isInit
45997
+ });
45998
+ }
45999
+ });
46000
+ }
46001
+
46002
+ static getDerivedStateFromProps(props, state) {
46003
+ const states = {};
46004
+
46005
+ if (!isNullOrUndefined(props.activeIndex) && props.activeIndex !== state.activeIndex) {
46006
+ states.activeIndex = props.activeIndex;
46007
+ }
46008
+
46009
+ return states;
46010
+ }
46011
+
46012
+ componentDidMount() {
46013
+ this.handleAutoPlay();
46014
+ }
46015
+
46016
+ componentWillUnmount() {
46017
+ this.foundation.destroy();
46018
+ }
46019
+
46020
+ render() {
46021
+ var _context2;
46022
+
46023
+ const {
46024
+ animation,
46025
+ className,
46026
+ style,
46027
+ slideDirection
46028
+ } = this.props;
46029
+ const {
46030
+ isReverse
46031
+ } = this.state;
46032
+ const carouselWrapperCls = classnames_default()(className, {
46033
+ [carousel_constants_cssClasses.CAROUSEL]: true
46034
+ });
46035
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46036
+ // role='listbox'
46037
+ // tabIndex={0}
46038
+ className: carouselWrapperCls,
46039
+ style: style,
46040
+ onMouseEnter: debounce_default()(this.handleMouseEnter, 400),
46041
+ onMouseLeave: debounce_default()(this.handleMouseLeave, 400)
46042
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46043
+ className: classnames_default()([concat_default()(_context2 = "".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-")).call(_context2, animation)], {
46044
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT)]: true,
46045
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-reverse")]: slideDirection === 'left' ? isReverse : !isReverse
46046
+ })
46047
+ }, this.renderChildren()), this.renderIndicator(), this.renderArrow());
46048
+ }
46049
+
46050
+ }
46051
+
46052
+ carousel_Carousel.propTypes = {
46053
+ activeIndex: prop_types_default.a.number,
46054
+ animation: prop_types_default.a.oneOf(carousel_constants_strings.ANIMATION_MAP),
46055
+ arrowProps: prop_types_default.a.object,
46056
+ autoPlay: prop_types_default.a.oneOfType([prop_types_default.a.bool, prop_types_default.a.object]),
46057
+ className: prop_types_default.a.string,
46058
+ defaultActiveIndex: prop_types_default.a.number,
46059
+ indicatorPosition: prop_types_default.a.oneOf(carousel_constants_strings.POSITION_MAP),
46060
+ indicatorSize: prop_types_default.a.oneOf(carousel_constants_strings.SIZE),
46061
+ indicatorType: prop_types_default.a.oneOf(carousel_constants_strings.TYPE_MAP),
46062
+ theme: prop_types_default.a.oneOf(carousel_constants_strings.THEME_MAP),
46063
+ onChange: prop_types_default.a.func,
46064
+ arrowType: prop_types_default.a.oneOf(carousel_constants_strings.ARROW_MAP),
46065
+ showArrow: prop_types_default.a.bool,
46066
+ showIndicator: prop_types_default.a.bool,
46067
+ slideDirection: prop_types_default.a.oneOf(carousel_constants_strings.DIRECTION),
46068
+ speed: prop_types_default.a.number,
46069
+ style: prop_types_default.a.object,
46070
+ trigger: prop_types_default.a.oneOf(carousel_constants_strings.TRIGGER)
46071
+ };
46072
+ carousel_Carousel.defaultProps = {
46073
+ children: [],
46074
+ animation: 'slide',
46075
+ autoPlay: true,
46076
+ arrowType: 'always',
46077
+ defaultActiveIndex: carousel_constants_numbers.DEFAULT_ACTIVE_INDEX,
46078
+ indicatorPosition: 'center',
46079
+ indicatorSize: 'small',
46080
+ indicatorType: 'dot',
46081
+ theme: 'light',
46082
+ onChange: () => undefined,
46083
+ showArrow: true,
46084
+ showIndicator: true,
46085
+ slideDirection: 'left',
46086
+ speed: carousel_constants_numbers.DEFAULT_SPEED,
46087
+ trigger: 'click'
46088
+ };
46089
+ /* harmony default export */ var carousel_0 = (carousel_Carousel);
45396
46090
  // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/lodash/flatten.js
45397
46091
  var lodash_flatten = __webpack_require__("1xil");
45398
46092
  var flatten_default = /*#__PURE__*/__webpack_require__.n(lodash_flatten);
@@ -48776,8 +49470,12 @@ class foundation_TagInputFoundation extends foundation {
48776
49470
 
48777
49471
  const code = e.keyCode;
48778
49472
 
48779
- if (code === utils_keyCode.ENTER && inputValue !== '') {
48780
- this._handleAddTags(e);
49473
+ if (code === utils_keyCode.ENTER) {
49474
+ e.preventDefault(); // prevent trigger submit when using in form
49475
+
49476
+ if (inputValue !== '') {
49477
+ this._handleAddTags(e);
49478
+ }
48781
49479
  }
48782
49480
 
48783
49481
  const {
@@ -49460,7 +50158,7 @@ class cascader_Cascader extends baseComponent_BaseComponent {
49460
50158
  e.preventDefault();
49461
50159
  this.handleTagRemove(e, keyEntities[nodeKey].valuePath);
49462
50160
  }
49463
- }, displayProp === 'label' && keyEntities[nodeKey].data.label, displayProp === 'value' && keyEntities[nodeKey].data.value);
50161
+ }, keyEntities[nodeKey].data[displayProp]);
49464
50162
  }
49465
50163
  }
49466
50164
 
@@ -49742,7 +50440,7 @@ class cascader_Cascader extends baseComponent_BaseComponent {
49742
50440
 
49743
50441
  this.handleClearEnterPress = e => {
49744
50442
  e && e.stopPropagation();
49745
- this.foundation.handleClearEnterPress();
50443
+ this.foundation.handleClearEnterPress(e);
49746
50444
  };
49747
50445
 
49748
50446
  this.showClearBtn = () => {
@@ -50711,9 +51409,11 @@ class item_CollapsePanel extends external_root_React_commonjs2_react_commonjs_re
50711
51409
  className,
50712
51410
  children,
50713
51411
  itemKey,
50714
- reCalcKey
51412
+ reCalcKey,
51413
+ header,
51414
+ extra
50715
51415
  } = _a,
50716
- restProps = collapse_item_rest(_a, ["className", "children", "itemKey", "reCalcKey"]);
51416
+ restProps = collapse_item_rest(_a, ["className", "children", "itemKey", "reCalcKey", "header", "extra"]);
50717
51417
 
50718
51418
  const {
50719
51419
  keepDOM,
@@ -51634,7 +52334,7 @@ var validIANATimezoneCache = {}
51634
52334
  function isValidTimezoneIANAString(timeZoneString) {
51635
52335
  if (validIANATimezoneCache[timeZoneString]) return true
51636
52336
  try {
51637
- Intl.DateTimeFormat(undefined, { timeZone: timeZoneString })
52337
+ new Intl.DateTimeFormat(undefined, { timeZone: timeZoneString })
51638
52338
  validIANATimezoneCache[timeZoneString] = true
51639
52339
  return true
51640
52340
  } catch (error) {
@@ -60539,6 +61239,8 @@ class scrollItem_ScrollItem extends baseComponent_BaseComponent {
60539
61239
  this._cacheSelectorNode = selector => this._cacheNode('selector', selector);
60540
61240
 
60541
61241
  this._cacheWrapperNode = wrapper => this._cacheNode('wrapper', wrapper);
61242
+ /* istanbul ignore next */
61243
+
60542
61244
 
60543
61245
  this._isFirst = node => {
60544
61246
  const {
@@ -60555,6 +61257,8 @@ class scrollItem_ScrollItem extends baseComponent_BaseComponent {
60555
61257
 
60556
61258
  return false;
60557
61259
  };
61260
+ /* istanbul ignore next */
61261
+
60558
61262
 
60559
61263
  this._isLast = node => {
60560
61264
  const {
@@ -60672,7 +61376,7 @@ class scrollItem_ScrollItem extends baseComponent_BaseComponent {
60672
61376
  } = this;
60673
61377
  const wrapperHeight = wrapper.offsetHeight;
60674
61378
  const itemHeight = this.getItmHeight(node);
60675
- const targetTop = node.offsetTop - (wrapperHeight - itemHeight) / 2;
61379
+ const targetTop = (node.offsetTop || this.list.children.length * itemHeight / 2) - (wrapperHeight - itemHeight) / 2;
60676
61380
  this.scrollToPos(targetTop, duration);
60677
61381
  };
60678
61382
 
@@ -65086,6 +65790,9 @@ class Modal_Modal extends baseComponent_BaseComponent {
65086
65790
  this.props.onOk(e);
65087
65791
  },
65088
65792
  notifyClose: () => {
65793
+ var _a, _b;
65794
+
65795
+ (_b = (_a = this.props.motion) === null || _a === void 0 ? void 0 : _a.didLeave) === null || _b === void 0 ? void 0 : _b.call(_a);
65089
65796
  this.props.afterClose();
65090
65797
  },
65091
65798
  toggleHidden: (hidden, callback) => {
@@ -66140,20 +66847,6 @@ const LayoutContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_
66140
66847
  }
66141
66848
  });
66142
66849
  /* harmony default export */ var layout_context = (LayoutContext);
66143
- // CONCATENATED MODULE: ../semi-foundation/utils/getDataAttr.ts
66144
-
66145
-
66146
- function getDataAttr(props) {
66147
- var _context;
66148
-
66149
- return reduce_default()(_context = keys_default()(props)).call(_context, (prev, key) => {
66150
- if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
66151
- prev[key] = props[key];
66152
- }
66153
-
66154
- return prev;
66155
- }, {});
66156
- }
66157
66850
  // CONCATENATED MODULE: ./layout/Sider.tsx
66158
66851
 
66159
66852
 
@@ -67756,10 +68449,6 @@ var toString_default = /*#__PURE__*/__webpack_require__.n(lodash_toString);
67756
68449
  var toNumber = __webpack_require__("nvU9");
67757
68450
  var toNumber_default = /*#__PURE__*/__webpack_require__.n(toNumber);
67758
68451
 
67759
- // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime-corejs3/core-js-stable/set-interval.js
67760
- var set_interval = __webpack_require__("1l5A");
67761
- var set_interval_default = /*#__PURE__*/__webpack_require__.n(set_interval);
67762
-
67763
68452
  // CONCATENATED MODULE: ../semi-foundation/inputNumber/constants.ts
67764
68453
 
67765
68454
 
@@ -72613,6 +73302,14 @@ function _extends() {
72613
73302
 
72614
73303
  return _extends.apply(this, arguments);
72615
73304
  }
73305
+ // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
73306
+ function _assertThisInitialized(self) {
73307
+ if (self === void 0) {
73308
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
73309
+ }
73310
+
73311
+ return self;
73312
+ }
72616
73313
  // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
72617
73314
  function _setPrototypeOf(o, p) {
72618
73315
  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
@@ -72629,14 +73326,6 @@ function _inheritsLoose(subClass, superClass) {
72629
73326
  subClass.prototype.constructor = subClass;
72630
73327
  _setPrototypeOf(subClass, superClass);
72631
73328
  }
72632
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
72633
- function _assertThisInitialized(self) {
72634
- if (self === void 0) {
72635
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
72636
- }
72637
-
72638
- return self;
72639
- }
72640
73329
  // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/memoize-one/dist/memoize-one.esm.js
72641
73330
  var safeIsNaN = Number.isNaN ||
72642
73331
  function ponyfill(value) {
@@ -72822,7 +73511,7 @@ var devWarningsTagName = null;
72822
73511
  if (false) {}
72823
73512
 
72824
73513
  function createGridComponent(_ref2) {
72825
- var _class, _temp;
73514
+ var _class;
72826
73515
 
72827
73516
  var getColumnOffset = _ref2.getColumnOffset,
72828
73517
  getColumnStartIndexForOffset = _ref2.getColumnStartIndexForOffset,
@@ -72839,9 +73528,7 @@ function createGridComponent(_ref2) {
72839
73528
  initInstanceProps = _ref2.initInstanceProps,
72840
73529
  shouldResetStyleCacheOnItemSizeChange = _ref2.shouldResetStyleCacheOnItemSizeChange,
72841
73530
  validateProps = _ref2.validateProps;
72842
- return _temp = _class =
72843
- /*#__PURE__*/
72844
- function (_PureComponent) {
73531
+ return _class = /*#__PURE__*/function (_PureComponent) {
72845
73532
  _inheritsLoose(Grid, _PureComponent);
72846
73533
 
72847
73534
  // Always use explicit constructor for React components.
@@ -72851,11 +73538,11 @@ function createGridComponent(_ref2) {
72851
73538
  var _this;
72852
73539
 
72853
73540
  _this = _PureComponent.call(this, props) || this;
72854
- _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_assertThisInitialized(_this)));
73541
+ _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
72855
73542
  _this._resetIsScrollingTimeoutId = null;
72856
73543
  _this._outerRef = void 0;
72857
73544
  _this.state = {
72858
- instance: _assertThisInitialized(_assertThisInitialized(_this)),
73545
+ instance: _assertThisInitialized(_this),
72859
73546
  isScrolling: false,
72860
73547
  horizontalScrollDirection: 'forward',
72861
73548
  scrollLeft: typeof _this.props.initialScrollLeft === 'number' ? _this.props.initialScrollLeft : 0,
@@ -73264,11 +73951,11 @@ function createGridComponent(_ref2) {
73264
73951
 
73265
73952
  this._callOnScroll(_scrollLeft, _scrollTop, _horizontalScrollDirection, _verticalScrollDirection, _scrollUpdateWasRequested);
73266
73953
  }
73267
- }; // Lazily create and cache item styles while scrolling,
73954
+ } // Lazily create and cache item styles while scrolling,
73268
73955
  // So that pure component sCU will prevent re-renders.
73269
73956
  // We maintain this cache, and pass a style prop rather than index,
73270
73957
  // So that List can clear cached styles and force item re-render if necessary.
73271
-
73958
+ ;
73272
73959
 
73273
73960
  _proto._getHorizontalRangeToRender = function _getHorizontalRangeToRender() {
73274
73961
  var _this$props6 = this.props,
@@ -73327,7 +74014,7 @@ function createGridComponent(_ref2) {
73327
74014
  direction: 'ltr',
73328
74015
  itemData: undefined,
73329
74016
  useIsScrolling: false
73330
- }, _temp;
74017
+ }, _class;
73331
74018
  }
73332
74019
 
73333
74020
  var validateSharedProps = function validateSharedProps(_ref5, _ref6) {
@@ -73532,9 +74219,7 @@ var index_esm_getOffsetForIndexAndAlignment = function getOffsetForIndexAndAlign
73532
74219
  }
73533
74220
  };
73534
74221
 
73535
- var VariableSizeGrid =
73536
- /*#__PURE__*/
73537
- createGridComponent({
74222
+ var VariableSizeGrid = /*#__PURE__*/createGridComponent({
73538
74223
  getColumnOffset: function getColumnOffset(props, index, instanceProps) {
73539
74224
  return getItemMetadata('column', props, index, instanceProps).offset;
73540
74225
  },
@@ -73676,7 +74361,7 @@ var devWarningsTagName$1 = null;
73676
74361
  if (false) {}
73677
74362
 
73678
74363
  function createListComponent(_ref) {
73679
- var _class, _temp;
74364
+ var _class;
73680
74365
 
73681
74366
  var getItemOffset = _ref.getItemOffset,
73682
74367
  getEstimatedTotalSize = _ref.getEstimatedTotalSize,
@@ -73687,9 +74372,7 @@ function createListComponent(_ref) {
73687
74372
  initInstanceProps = _ref.initInstanceProps,
73688
74373
  shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange,
73689
74374
  validateProps = _ref.validateProps;
73690
- return _temp = _class =
73691
- /*#__PURE__*/
73692
- function (_PureComponent) {
74375
+ return _class = /*#__PURE__*/function (_PureComponent) {
73693
74376
  _inheritsLoose(List, _PureComponent);
73694
74377
 
73695
74378
  // Always use explicit constructor for React components.
@@ -73699,11 +74382,11 @@ function createListComponent(_ref) {
73699
74382
  var _this;
73700
74383
 
73701
74384
  _this = _PureComponent.call(this, props) || this;
73702
- _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_assertThisInitialized(_this)));
74385
+ _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
73703
74386
  _this._outerRef = void 0;
73704
74387
  _this._resetIsScrollingTimeoutId = null;
73705
74388
  _this.state = {
73706
- instance: _assertThisInitialized(_assertThisInitialized(_this)),
74389
+ instance: _assertThisInitialized(_this),
73707
74390
  isScrolling: false,
73708
74391
  scrollDirection: 'forward',
73709
74392
  scrollOffset: typeof _this.props.initialScrollOffset === 'number' ? _this.props.initialScrollOffset : 0,
@@ -74062,11 +74745,11 @@ function createListComponent(_ref) {
74062
74745
 
74063
74746
  this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
74064
74747
  }
74065
- }; // Lazily create and cache item styles while scrolling,
74748
+ } // Lazily create and cache item styles while scrolling,
74066
74749
  // So that pure component sCU will prevent re-renders.
74067
74750
  // We maintain this cache, and pass a style prop rather than index,
74068
74751
  // So that List can clear cached styles and force item re-render if necessary.
74069
-
74752
+ ;
74070
74753
 
74071
74754
  _proto._getRangeToRender = function _getRangeToRender() {
74072
74755
  var _this$props5 = this.props,
@@ -74097,7 +74780,7 @@ function createListComponent(_ref) {
74097
74780
  layout: 'vertical',
74098
74781
  overscanCount: 2,
74099
74782
  useIsScrolling: false
74100
- }, _temp;
74783
+ }, _class;
74101
74784
  } // NOTE: I considered further wrapping individual items with a pure ListItem component.
74102
74785
  // This would avoid ever calling the render function for the same index more than once,
74103
74786
  // But it would also add the overhead of a lot of components/fibers.
@@ -74219,9 +74902,7 @@ var index_esm_getEstimatedTotalSize = function getEstimatedTotalSize(_ref2, _ref
74219
74902
  return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
74220
74903
  };
74221
74904
 
74222
- var VariableSizeList =
74223
- /*#__PURE__*/
74224
- createListComponent({
74905
+ var VariableSizeList = /*#__PURE__*/createListComponent({
74225
74906
  getItemOffset: function getItemOffset(props, index, instanceProps) {
74226
74907
  return getItemMetadata$1(props, index, instanceProps).offset;
74227
74908
  },
@@ -74334,9 +75015,7 @@ createListComponent({
74334
75015
  }
74335
75016
  });
74336
75017
 
74337
- var FixedSizeGrid =
74338
- /*#__PURE__*/
74339
- createGridComponent({
75018
+ var FixedSizeGrid = /*#__PURE__*/createGridComponent({
74340
75019
  getColumnOffset: function getColumnOffset(_ref, index) {
74341
75020
  var columnWidth = _ref.columnWidth;
74342
75021
  return index * columnWidth;
@@ -74506,9 +75185,7 @@ createGridComponent({
74506
75185
  }
74507
75186
  });
74508
75187
 
74509
- var FixedSizeList =
74510
- /*#__PURE__*/
74511
- createListComponent({
75188
+ var FixedSizeList = /*#__PURE__*/createListComponent({
74512
75189
  getItemOffset: function getItemOffset(_ref, index) {
74513
75190
  var itemSize = _ref.itemSize;
74514
75191
  return index * itemSize;
@@ -74626,15 +75303,17 @@ function shallowDiffers(prev, next) {
74626
75303
  return false;
74627
75304
  }
74628
75305
 
75306
+ var _excluded = ["style"],
75307
+ _excluded2 = ["style"];
74629
75308
  // It knows to compare individual style props and ignore the wrapper object.
74630
75309
  // See https://reactjs.org/docs/react-api.html#reactmemo
74631
75310
 
74632
75311
  function areEqual(prevProps, nextProps) {
74633
75312
  var prevStyle = prevProps.style,
74634
- prevRest = _objectWithoutPropertiesLoose(prevProps, ["style"]);
75313
+ prevRest = _objectWithoutPropertiesLoose(prevProps, _excluded);
74635
75314
 
74636
75315
  var nextStyle = nextProps.style,
74637
- nextRest = _objectWithoutPropertiesLoose(nextProps, ["style"]);
75316
+ nextRest = _objectWithoutPropertiesLoose(nextProps, _excluded2);
74638
75317
 
74639
75318
  return !shallowDiffers(prevStyle, nextStyle) && !shallowDiffers(prevRest, nextRest);
74640
75319
  }
@@ -83106,6 +83785,24 @@ steps_Steps.defaultProps = {
83106
83785
  class foundation_SwitchFoundation extends foundation {
83107
83786
  constructor(adapter) {
83108
83787
  super(assign_default()({}, adapter));
83788
+
83789
+ this.handleFocusVisible = event => {
83790
+ const {
83791
+ target
83792
+ } = event;
83793
+
83794
+ try {
83795
+ if (target.matches(':focus-visible')) {
83796
+ this._adapter.setFocusVisible(true);
83797
+ }
83798
+ } catch (error) {
83799
+ console.warn('The current browser does not support the focus-visible');
83800
+ }
83801
+ };
83802
+
83803
+ this.handleBlur = () => {
83804
+ this._adapter.setFocusVisible(false);
83805
+ };
83109
83806
  }
83110
83807
 
83111
83808
  init() {
@@ -83147,6 +83844,7 @@ class foundation_SwitchFoundation extends foundation {
83147
83844
 
83148
83845
  const switch_constants_cssClasses = {
83149
83846
  PREFIX: "".concat(BASE_CLASS_PREFIX, "-switch"),
83847
+ FOCUS: "".concat(BASE_CLASS_PREFIX, "-switch-focus"),
83150
83848
  LARGE: "".concat(BASE_CLASS_PREFIX, "-switch-large"),
83151
83849
  SMALL: "".concat(BASE_CLASS_PREFIX, "-switch-small"),
83152
83850
  CHECKED: "".concat(BASE_CLASS_PREFIX, "-switch-checked"),
@@ -83170,7 +83868,7 @@ var switch_switch = __webpack_require__("DE4K");
83170
83868
 
83171
83869
 
83172
83870
 
83173
- /* eslint-disable max-len, jsx-a11y/role-supports-aria-props */
83871
+ /* eslint-disable max-len */
83174
83872
 
83175
83873
 
83176
83874
 
@@ -83183,9 +83881,19 @@ var switch_switch = __webpack_require__("DE4K");
83183
83881
  class switch_Switch extends baseComponent_BaseComponent {
83184
83882
  constructor(props) {
83185
83883
  super(props);
83884
+
83885
+ this.handleFocusVisible = event => {
83886
+ this.foundation.handleFocusVisible(event);
83887
+ };
83888
+
83889
+ this.handleBlur = event => {
83890
+ this.foundation.handleBlur();
83891
+ };
83892
+
83186
83893
  this.state = {
83187
83894
  nativeControlChecked: false,
83188
- nativeControlDisabled: false
83895
+ nativeControlDisabled: false,
83896
+ focusVisible: false
83189
83897
  };
83190
83898
  this.switchRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
83191
83899
  this.foundation = new foundation_SwitchFoundation(this.adapter);
@@ -83221,6 +83929,11 @@ class switch_Switch extends baseComponent_BaseComponent {
83221
83929
  nativeControlDisabled
83222
83930
  });
83223
83931
  },
83932
+ setFocusVisible: focusVisible => {
83933
+ this.setState({
83934
+ focusVisible
83935
+ });
83936
+ },
83224
83937
  notifyChange: (checked, e) => {
83225
83938
  this.props.onChange(checked, e);
83226
83939
  }
@@ -83230,7 +83943,8 @@ class switch_Switch extends baseComponent_BaseComponent {
83230
83943
  render() {
83231
83944
  const {
83232
83945
  nativeControlChecked,
83233
- nativeControlDisabled
83946
+ nativeControlDisabled,
83947
+ focusVisible
83234
83948
  } = this.state;
83235
83949
  const {
83236
83950
  className,
@@ -83249,11 +83963,11 @@ class switch_Switch extends baseComponent_BaseComponent {
83249
83963
  [switch_constants_cssClasses.DISABLED]: nativeControlDisabled,
83250
83964
  [switch_constants_cssClasses.LARGE]: size === 'large',
83251
83965
  [switch_constants_cssClasses.SMALL]: size === 'small',
83252
- [switch_constants_cssClasses.LOADING]: loading
83966
+ [switch_constants_cssClasses.LOADING]: loading,
83967
+ [switch_constants_cssClasses.FOCUS]: focusVisible
83253
83968
  });
83254
83969
  const switchProps = {
83255
83970
  type: 'checkbox',
83256
- role: 'switch',
83257
83971
  className: switch_constants_cssClasses.NATIVE_CONTROL,
83258
83972
  disabled: nativeControlDisabled || loading,
83259
83973
  checked: nativeControlChecked || false
@@ -83278,13 +83992,17 @@ class switch_Switch extends baseComponent_BaseComponent {
83278
83992
  }, uncheckedText) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("input", assign_default()({}, switchProps, {
83279
83993
  ref: this.switchRef,
83280
83994
  id: id,
83995
+ role: 'switch',
83281
83996
  "aria-checked": nativeControlChecked,
83282
83997
  "aria-invalid": this.props['aria-invalid'],
83283
83998
  "aria-errormessage": this.props['aria-errormessage'],
83284
83999
  "aria-label": this.props['aria-label'],
83285
84000
  "aria-labelledby": this.props['aria-labelledby'],
83286
84001
  "aria-describedby": this.props["aria-describedby"],
83287
- onChange: e => this.foundation.handleChange(e.target.checked, e)
84002
+ "aria-disabled": this.props['disabled'],
84003
+ onChange: e => this.foundation.handleChange(e.target.checked, e),
84004
+ onFocus: e => this.handleFocusVisible(e),
84005
+ onBlur: e => this.handleBlur(e)
83288
84006
  })));
83289
84007
  }
83290
84008
 
@@ -91349,6 +92067,8 @@ class TabPane_TabPane extends external_root_React_commonjs2_react_commonjs_react
91349
92067
 
91350
92068
  return false;
91351
92069
  };
92070
+ /* istanbul ignore next */
92071
+
91352
92072
 
91353
92073
  this.hideScroll = () => {
91354
92074
  if (this.ref && this.ref.current) {
@@ -91356,6 +92076,8 @@ class TabPane_TabPane extends external_root_React_commonjs2_react_commonjs_react
91356
92076
  this.isAnimating = true;
91357
92077
  }
91358
92078
  };
92079
+ /* istanbul ignore next */
92080
+
91359
92081
 
91360
92082
  this.autoScroll = () => {
91361
92083
  if (this.ref && this.ref.current) {
@@ -91490,6 +92212,8 @@ class tabs_Tabs extends baseComponent_BaseComponent {
91490
92212
  this.onTabClick = (activeKey, event) => {
91491
92213
  this.foundation.handleTabClick(activeKey, event);
91492
92214
  };
92215
+ /* istanbul ignore next */
92216
+
91493
92217
 
91494
92218
  this.rePosChildren = (children, activeKey) => {
91495
92219
  const newChildren = [];
@@ -92274,6 +92998,12 @@ class foundation_TimePickerFoundation extends foundation {
92274
92998
  }
92275
92999
  });
92276
93000
 
93001
+ const isAM = [true, false];
93002
+
93003
+ map_default()(parsedValues).call(parsedValues, (item, idx) => {
93004
+ isAM[idx] = getHours(item) < 12;
93005
+ });
93006
+
92277
93007
  if (parsedValues.length === value.length) {
92278
93008
  value = parsedValues;
92279
93009
  } else {
@@ -92291,6 +93021,7 @@ class foundation_TimePickerFoundation extends foundation {
92291
93021
  }
92292
93022
 
92293
93023
  this.setState({
93024
+ isAM,
92294
93025
  value,
92295
93026
  inputValue,
92296
93027
  invalid
@@ -92328,6 +93059,12 @@ class foundation_TimePickerFoundation extends foundation {
92328
93059
  isAM[index] = panelIsAM;
92329
93060
  const inputValue = this.formatValue(value);
92330
93061
 
93062
+ if (this.getState('isAM')[index] !== result.isAM) {
93063
+ this.setState({
93064
+ isAM
93065
+ });
93066
+ }
93067
+
92331
93068
  if (!this._isControlledComponent('value')) {
92332
93069
  const invalid = this.validateDates(value);
92333
93070
  this.setState({
@@ -101470,10 +102207,6 @@ function _nonIterableSpread() {
101470
102207
  function _toConsumableArray(arr) {
101471
102208
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
101472
102209
  }
101473
- // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/prop-types/index.js
101474
- var semi_design_node_modules_prop_types = __webpack_require__("aWzz");
101475
- var semi_design_node_modules_prop_types_default = /*#__PURE__*/__webpack_require__.n(semi_design_node_modules_prop_types);
101476
-
101477
102210
  // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/react-sortable-hoc/dist/react-sortable-hoc.esm.js
101478
102211
 
101479
102212
 
@@ -101991,37 +102724,37 @@ function defaultShouldCancelStart(event) {
101991
102724
  }
101992
102725
 
101993
102726
  var propTypes = {
101994
- axis: semi_design_node_modules_prop_types_default.a.oneOf(['x', 'y', 'xy']),
101995
- contentWindow: semi_design_node_modules_prop_types_default.a.any,
101996
- disableAutoscroll: semi_design_node_modules_prop_types_default.a.bool,
101997
- distance: semi_design_node_modules_prop_types_default.a.number,
101998
- getContainer: semi_design_node_modules_prop_types_default.a.func,
101999
- getHelperDimensions: semi_design_node_modules_prop_types_default.a.func,
102000
- helperClass: semi_design_node_modules_prop_types_default.a.string,
102001
- helperContainer: semi_design_node_modules_prop_types_default.a.oneOfType([semi_design_node_modules_prop_types_default.a.func, typeof HTMLElement === 'undefined' ? semi_design_node_modules_prop_types_default.a.any : semi_design_node_modules_prop_types_default.a.instanceOf(HTMLElement)]),
102002
- hideSortableGhost: semi_design_node_modules_prop_types_default.a.bool,
102003
- keyboardSortingTransitionDuration: semi_design_node_modules_prop_types_default.a.number,
102004
- lockAxis: semi_design_node_modules_prop_types_default.a.string,
102005
- lockOffset: semi_design_node_modules_prop_types_default.a.oneOfType([semi_design_node_modules_prop_types_default.a.number, semi_design_node_modules_prop_types_default.a.string, semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.oneOfType([semi_design_node_modules_prop_types_default.a.number, semi_design_node_modules_prop_types_default.a.string]))]),
102006
- lockToContainerEdges: semi_design_node_modules_prop_types_default.a.bool,
102007
- onSortEnd: semi_design_node_modules_prop_types_default.a.func,
102008
- onSortMove: semi_design_node_modules_prop_types_default.a.func,
102009
- onSortOver: semi_design_node_modules_prop_types_default.a.func,
102010
- onSortStart: semi_design_node_modules_prop_types_default.a.func,
102011
- pressDelay: semi_design_node_modules_prop_types_default.a.number,
102012
- pressThreshold: semi_design_node_modules_prop_types_default.a.number,
102013
- keyCodes: semi_design_node_modules_prop_types_default.a.shape({
102014
- lift: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
102015
- drop: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
102016
- cancel: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
102017
- up: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
102018
- down: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number)
102727
+ axis: prop_types_default.a.oneOf(['x', 'y', 'xy']),
102728
+ contentWindow: prop_types_default.a.any,
102729
+ disableAutoscroll: prop_types_default.a.bool,
102730
+ distance: prop_types_default.a.number,
102731
+ getContainer: prop_types_default.a.func,
102732
+ getHelperDimensions: prop_types_default.a.func,
102733
+ helperClass: prop_types_default.a.string,
102734
+ helperContainer: prop_types_default.a.oneOfType([prop_types_default.a.func, typeof HTMLElement === 'undefined' ? prop_types_default.a.any : prop_types_default.a.instanceOf(HTMLElement)]),
102735
+ hideSortableGhost: prop_types_default.a.bool,
102736
+ keyboardSortingTransitionDuration: prop_types_default.a.number,
102737
+ lockAxis: prop_types_default.a.string,
102738
+ lockOffset: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string, prop_types_default.a.arrayOf(prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]))]),
102739
+ lockToContainerEdges: prop_types_default.a.bool,
102740
+ onSortEnd: prop_types_default.a.func,
102741
+ onSortMove: prop_types_default.a.func,
102742
+ onSortOver: prop_types_default.a.func,
102743
+ onSortStart: prop_types_default.a.func,
102744
+ pressDelay: prop_types_default.a.number,
102745
+ pressThreshold: prop_types_default.a.number,
102746
+ keyCodes: prop_types_default.a.shape({
102747
+ lift: prop_types_default.a.arrayOf(prop_types_default.a.number),
102748
+ drop: prop_types_default.a.arrayOf(prop_types_default.a.number),
102749
+ cancel: prop_types_default.a.arrayOf(prop_types_default.a.number),
102750
+ up: prop_types_default.a.arrayOf(prop_types_default.a.number),
102751
+ down: prop_types_default.a.arrayOf(prop_types_default.a.number)
102019
102752
  }),
102020
- shouldCancelStart: semi_design_node_modules_prop_types_default.a.func,
102021
- transitionDuration: semi_design_node_modules_prop_types_default.a.number,
102022
- updateBeforeSortStart: semi_design_node_modules_prop_types_default.a.func,
102023
- useDragHandle: semi_design_node_modules_prop_types_default.a.bool,
102024
- useWindowAsScrollContainer: semi_design_node_modules_prop_types_default.a.bool
102753
+ shouldCancelStart: prop_types_default.a.func,
102754
+ transitionDuration: prop_types_default.a.number,
102755
+ updateBeforeSortStart: prop_types_default.a.func,
102756
+ useDragHandle: prop_types_default.a.bool,
102757
+ useWindowAsScrollContainer: prop_types_default.a.bool
102025
102758
  };
102026
102759
  var defaultKeyCodes = {
102027
102760
  lift: [KEYCODE.SPACE],
@@ -102968,9 +103701,9 @@ function sortableContainer(WrappedComponent) {
102968
103701
  }
102969
103702
 
102970
103703
  var propTypes$1 = {
102971
- index: semi_design_node_modules_prop_types_default.a.number.isRequired,
102972
- collection: semi_design_node_modules_prop_types_default.a.oneOfType([semi_design_node_modules_prop_types_default.a.number, semi_design_node_modules_prop_types_default.a.string]),
102973
- disabled: semi_design_node_modules_prop_types_default.a.bool
103704
+ index: prop_types_default.a.number.isRequired,
103705
+ collection: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
103706
+ disabled: prop_types_default.a.bool
102974
103707
  };
102975
103708
  var omittedProps$1 = Object.keys(propTypes$1);
102976
103709
  function sortableElement(WrappedComponent) {
@@ -103753,7 +104486,8 @@ class transfer_Transfer extends baseComponent_BaseComponent {
103753
104486
  loading,
103754
104487
  type,
103755
104488
  emptyContent,
103756
- renderSourcePanel
104489
+ renderSourcePanel,
104490
+ dataSource
103757
104491
  } = this.props;
103758
104492
  const totalToken = locale.total;
103759
104493
  const inSearchMode = inputValue !== '';
@@ -103811,6 +104545,7 @@ class transfer_Transfer extends baseComponent_BaseComponent {
103811
104545
  noMatch,
103812
104546
  filterData,
103813
104547
  sourceData: data,
104548
+ propsDataSource: dataSource,
103814
104549
  allChecked: !leftContainesNotInSelected,
103815
104550
  showNumber,
103816
104551
  inputValue,
@@ -105829,7 +106564,8 @@ function withField(Component, opts) {
105829
106564
  const [cursor, setCursor, getCursor] = useStateWithGetter(0);
105830
106565
  const [status, setStatus] = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useState"])(validateStatus); // use props.validateStatus to init
105831
106566
 
105832
- const rulesRef = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useRef"])(rules); // notNotify is true means that the onChange of the Form does not need to be triggered
106567
+ const rulesRef = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useRef"])(rules);
106568
+ const validateRef = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useRef"])(validate); // notNotify is true means that the onChange of the Form does not need to be triggered
105833
106569
  // notUpdate is true means that this operation does not need to trigger the forceUpdate
105834
106570
 
105835
106571
  const updateTouched = (isTouched, callOpts) => {
@@ -105930,7 +106666,7 @@ function withField(Component, opts) {
105930
106666
  let maybePromisedErrors; // let errorThrowSync;
105931
106667
 
105932
106668
  try {
105933
- maybePromisedErrors = validate(val, values);
106669
+ maybePromisedErrors = validateRef.current(val, values);
105934
106670
  } catch (err) {
105935
106671
  // error throw by syncValidate
105936
106672
  maybePromisedErrors = err;
@@ -105970,7 +106706,7 @@ function withField(Component, opts) {
105970
106706
  finalVal = transform(val);
105971
106707
  }
105972
106708
 
105973
- if (validate) {
106709
+ if (validateRef.current) {
105974
106710
  return _validate(finalVal, updater.getValue(), callOpts);
105975
106711
  } else if (latestRules) {
105976
106712
  return _validateInternal(finalVal, callOpts);
@@ -106079,7 +106815,8 @@ function withField(Component, opts) {
106079
106815
 
106080
106816
  Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useLayoutEffect"])(() => {
106081
106817
  rulesRef.current = rules;
106082
- }, [rules]); // exec validate once when trigger inlcude 'mount'
106818
+ validateRef.current = validate;
106819
+ }, [rules, validate]); // exec validate once when trigger inlcude 'mount'
106083
106820
 
106084
106821
  Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["useLayoutEffect"])(() => {
106085
106822
  if (validateOnMount) {
@@ -107012,6 +107749,7 @@ arrayField_ArrayFieldComponent.contextType = FormUpdaterContext;
107012
107749
 
107013
107750
 
107014
107751
 
107752
+
107015
107753
 
107016
107754
 
107017
107755
  /** Form */
@@ -111494,10 +112232,10 @@ module.exports = baseForOwn;
111494
112232
  Object.defineProperty(exports, "__esModule", {
111495
112233
  value: true
111496
112234
  });
111497
- exports.getPrefix = getPrefix;
111498
112235
  exports.browserPrefixToKey = browserPrefixToKey;
111499
112236
  exports.browserPrefixToStyle = browserPrefixToStyle;
111500
112237
  exports.default = void 0;
112238
+ exports.getPrefix = getPrefix;
111501
112239
  var prefixes = ['Moz', 'Webkit', 'O', 'ms'];
111502
112240
 
111503
112241
  function getPrefix()