@douyinfe/semi-ui 2.9.1 → 2.10.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 (74) hide show
  1. package/banner/_story/banner.stories.js +62 -1
  2. package/banner/index.tsx +5 -5
  3. package/button/buttonGroup.tsx +2 -2
  4. package/carousel/CarouselArrow.tsx +62 -0
  5. package/carousel/CarouselIndicator.tsx +83 -0
  6. package/carousel/__test__/carousel.test.js +159 -0
  7. package/carousel/_story/carousel.stories.js +486 -0
  8. package/carousel/index.tsx +292 -0
  9. package/carousel/interface.ts +63 -0
  10. package/cascader/index.tsx +1 -2
  11. package/datePicker/monthsGrid.tsx +8 -8
  12. package/dist/css/semi.css +342 -0
  13. package/dist/css/semi.min.css +1 -1
  14. package/dist/umd/semi-ui.js +1238 -266
  15. package/dist/umd/semi-ui.js.map +1 -1
  16. package/dist/umd/semi-ui.min.js +1 -1
  17. package/dist/umd/semi-ui.min.js.map +1 -1
  18. package/form/baseForm.tsx +10 -1
  19. package/form/hoc/withField.tsx +17 -5
  20. package/index.ts +2 -0
  21. package/inputNumber/__test__/inputNumber.test.js +40 -3
  22. package/inputNumber/_story/inputNumber.stories.js +56 -1
  23. package/inputNumber/index.tsx +22 -14
  24. package/lib/cjs/banner/index.js +11 -5
  25. package/lib/cjs/button/buttonGroup.d.ts +1 -1
  26. package/lib/cjs/carousel/CarouselArrow.d.ts +8 -0
  27. package/lib/cjs/carousel/CarouselArrow.js +88 -0
  28. package/lib/cjs/carousel/CarouselIndicator.d.ts +23 -0
  29. package/lib/cjs/carousel/CarouselIndicator.js +145 -0
  30. package/lib/cjs/carousel/index.d.ts +58 -0
  31. package/lib/cjs/carousel/index.js +343 -0
  32. package/lib/cjs/carousel/interface.d.ts +61 -0
  33. package/lib/cjs/carousel/interface.js +7 -0
  34. package/lib/cjs/cascader/index.js +1 -1
  35. package/lib/cjs/datePicker/monthsGrid.js +6 -6
  36. package/lib/cjs/form/baseForm.d.ts +1 -0
  37. package/lib/cjs/form/baseForm.js +10 -1
  38. package/lib/cjs/form/hoc/withField.js +8 -1
  39. package/lib/cjs/index.d.ts +1 -0
  40. package/lib/cjs/index.js +9 -0
  41. package/lib/cjs/inputNumber/index.d.ts +2 -6
  42. package/lib/cjs/inputNumber/index.js +27 -11
  43. package/lib/cjs/switch/index.d.ts +3 -0
  44. package/lib/cjs/switch/index.js +26 -6
  45. package/lib/cjs/transfer/index.js +5 -5
  46. package/lib/cjs/treeSelect/index.js +1 -1
  47. package/lib/es/banner/index.js +11 -5
  48. package/lib/es/button/buttonGroup.d.ts +1 -1
  49. package/lib/es/carousel/CarouselArrow.d.ts +8 -0
  50. package/lib/es/carousel/CarouselArrow.js +70 -0
  51. package/lib/es/carousel/CarouselIndicator.d.ts +23 -0
  52. package/lib/es/carousel/CarouselIndicator.js +125 -0
  53. package/lib/es/carousel/index.d.ts +58 -0
  54. package/lib/es/carousel/index.js +309 -0
  55. package/lib/es/carousel/interface.d.ts +61 -0
  56. package/lib/es/carousel/interface.js +1 -0
  57. package/lib/es/cascader/index.js +1 -1
  58. package/lib/es/datePicker/monthsGrid.js +7 -7
  59. package/lib/es/form/baseForm.d.ts +1 -0
  60. package/lib/es/form/baseForm.js +10 -1
  61. package/lib/es/form/hoc/withField.js +8 -1
  62. package/lib/es/index.d.ts +1 -0
  63. package/lib/es/index.js +1 -0
  64. package/lib/es/inputNumber/index.d.ts +2 -6
  65. package/lib/es/inputNumber/index.js +26 -11
  66. package/lib/es/switch/index.d.ts +3 -0
  67. package/lib/es/switch/index.js +26 -6
  68. package/lib/es/transfer/index.js +1 -1
  69. package/lib/es/treeSelect/index.js +1 -1
  70. package/package.json +9 -9
  71. package/switch/index.tsx +20 -3
  72. package/tagInput/__test__/tagInput.test.js +11 -11
  73. package/transfer/index.tsx +1 -1
  74. package/treeSelect/index.tsx +1 -1
@@ -1604,6 +1604,97 @@ 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
+
1607
1698
  /***/ }),
1608
1699
 
1609
1700
  /***/ "1EDM":
@@ -4319,6 +4410,13 @@ module.exports = {
4319
4410
  };
4320
4411
 
4321
4412
 
4413
+ /***/ }),
4414
+
4415
+ /***/ "BKEV":
4416
+ /***/ (function(module, exports) {
4417
+
4418
+
4419
+
4322
4420
  /***/ }),
4323
4421
 
4324
4422
  /***/ "BMex":
@@ -7400,6 +7498,13 @@ Stack.prototype.set = stackSet;
7400
7498
  module.exports = Stack;
7401
7499
 
7402
7500
 
7501
+ /***/ }),
7502
+
7503
+ /***/ "HzcD":
7504
+ /***/ (function(module, exports) {
7505
+
7506
+
7507
+
7403
7508
  /***/ }),
7404
7509
 
7405
7510
  /***/ "I1fX":
@@ -7434,29 +7539,29 @@ module.exports = baseTrim;
7434
7539
  "use strict";
7435
7540
 
7436
7541
 
7437
- 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); }
7542
+ 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); }
7438
7543
 
7439
7544
  Object.defineProperty(exports, "__esModule", {
7440
7545
  value: true
7441
7546
  });
7442
- exports.matchesSelector = matchesSelector;
7443
- exports.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo;
7547
+ exports.addClassName = addClassName;
7444
7548
  exports.addEvent = addEvent;
7445
- exports.removeEvent = removeEvent;
7446
- exports.outerHeight = outerHeight;
7447
- exports.outerWidth = outerWidth;
7448
- exports.innerHeight = innerHeight;
7449
- exports.innerWidth = innerWidth;
7450
- exports.offsetXYFromParent = offsetXYFromParent;
7549
+ exports.addUserSelectStyles = addUserSelectStyles;
7451
7550
  exports.createCSSTransform = createCSSTransform;
7452
7551
  exports.createSVGTransform = createSVGTransform;
7453
- exports.getTranslation = getTranslation;
7454
7552
  exports.getTouch = getTouch;
7455
7553
  exports.getTouchIdentifier = getTouchIdentifier;
7456
- exports.addUserSelectStyles = addUserSelectStyles;
7457
- exports.removeUserSelectStyles = removeUserSelectStyles;
7458
- exports.addClassName = addClassName;
7554
+ exports.getTranslation = getTranslation;
7555
+ exports.innerHeight = innerHeight;
7556
+ exports.innerWidth = innerWidth;
7557
+ exports.matchesSelector = matchesSelector;
7558
+ exports.matchesSelectorAndParentsTo = matchesSelectorAndParentsTo;
7559
+ exports.offsetXYFromParent = offsetXYFromParent;
7560
+ exports.outerHeight = outerHeight;
7561
+ exports.outerWidth = outerWidth;
7459
7562
  exports.removeClassName = removeClassName;
7563
+ exports.removeEvent = removeEvent;
7564
+ exports.removeUserSelectStyles = removeUserSelectStyles;
7460
7565
 
7461
7566
  var _shims = __webpack_require__("cCoX");
7462
7567
 
@@ -7466,9 +7571,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
7466
7571
 
7467
7572
  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; }
7468
7573
 
7469
- 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; }
7574
+ 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; }
7470
7575
 
7471
- 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; }
7576
+ 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; }
7472
7577
 
7473
7578
  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; }
7474
7579
 
@@ -9998,11 +10103,17 @@ $({ target: 'Array', proto: true, forced: !STRICT_METHOD }, {
9998
10103
 
9999
10104
  var $ = __webpack_require__("n9AK");
10000
10105
  var $includes = __webpack_require__("A551").includes;
10106
+ var fails = __webpack_require__("XU0c");
10001
10107
  var addToUnscopables = __webpack_require__("Uh/D");
10002
10108
 
10109
+ // FF99+ bug
10110
+ var BROKEN_ON_SPARSE = fails(function () {
10111
+ return !Array(1).includes();
10112
+ });
10113
+
10003
10114
  // `Array.prototype.includes` method
10004
10115
  // https://tc39.es/ecma262/#sec-array.prototype.includes
10005
- $({ target: 'Array', proto: true }, {
10116
+ $({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
10006
10117
  includes: function includes(el /* , fromIndex = 0 */) {
10007
10118
  return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
10008
10119
  }
@@ -10332,13 +10443,13 @@ module.exports = toPath;
10332
10443
  Object.defineProperty(exports, "__esModule", {
10333
10444
  value: true
10334
10445
  });
10335
- exports.getBoundPosition = getBoundPosition;
10336
- exports.snapToGrid = snapToGrid;
10337
10446
  exports.canDragX = canDragX;
10338
10447
  exports.canDragY = canDragY;
10339
- exports.getControlPosition = getControlPosition;
10340
10448
  exports.createCoreData = createCoreData;
10341
10449
  exports.createDraggableData = createDraggableData;
10450
+ exports.getBoundPosition = getBoundPosition;
10451
+ exports.getControlPosition = getControlPosition;
10452
+ exports.snapToGrid = snapToGrid;
10342
10453
 
10343
10454
  var _shims = __webpack_require__("cCoX");
10344
10455
 
@@ -11281,10 +11392,10 @@ var store = __webpack_require__("yULr");
11281
11392
  (module.exports = function (key, value) {
11282
11393
  return store[key] || (store[key] = value !== undefined ? value : {});
11283
11394
  })('versions', []).push({
11284
- version: '3.22.1',
11395
+ version: '3.22.3',
11285
11396
  mode: IS_PURE ? 'pure' : 'global',
11286
11397
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
11287
- license: 'https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE',
11398
+ license: 'https://github.com/zloirock/core-js/blob/v3.22.3/LICENSE',
11288
11399
  source: 'https://github.com/zloirock/core-js'
11289
11400
  });
11290
11401
 
@@ -13367,7 +13478,7 @@ module.exports = overArg;
13367
13478
  "use strict";
13368
13479
 
13369
13480
 
13370
- 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); }
13481
+ 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); }
13371
13482
 
13372
13483
  Object.defineProperty(exports, "__esModule", {
13373
13484
  value: true
@@ -13410,9 +13521,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
13410
13521
 
13411
13522
  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); } }
13412
13523
 
13413
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
13524
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
13414
13525
 
13415
- 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); }
13526
+ 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); }
13416
13527
 
13417
13528
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
13418
13529
 
@@ -13640,7 +13751,21 @@ var DraggableCore = /*#__PURE__*/function (_React$Component) {
13640
13751
  var position = (0, _positionFns.getControlPosition)(e, _this.state.touchIdentifier, _assertThisInitialized(_this));
13641
13752
  if (position == null) return;
13642
13753
  var x = position.x,
13643
- y = position.y;
13754
+ y = position.y; // Snap to grid if prop has been provided
13755
+
13756
+ if (Array.isArray(_this.props.grid)) {
13757
+ var deltaX = x - _this.state.lastX || 0;
13758
+ var deltaY = y - _this.state.lastY || 0;
13759
+
13760
+ var _snapToGrid3 = (0, _positionFns.snapToGrid)(_this.props.grid, deltaX, deltaY);
13761
+
13762
+ var _snapToGrid4 = _slicedToArray(_snapToGrid3, 2);
13763
+
13764
+ deltaX = _snapToGrid4[0];
13765
+ deltaY = _snapToGrid4[1];
13766
+ x = _this.state.lastX + deltaX, y = _this.state.lastY + deltaY;
13767
+ }
13768
+
13644
13769
  var coreEvent = (0, _positionFns.createCoreData)(_assertThisInitialized(_this), x, y); // Call event handler
13645
13770
 
13646
13771
  var shouldContinue = _this.props.onStop(e, coreEvent);
@@ -13737,9 +13862,9 @@ var DraggableCore = /*#__PURE__*/function (_React$Component) {
13737
13862
  value: function findDOMNode()
13738
13863
  /*: ?HTMLElement*/
13739
13864
  {
13740
- var _this$props$nodeRef$c, _this$props, _this$props$nodeRef;
13865
+ var _this$props, _this$props2, _this$props2$nodeRef;
13741
13866
 
13742
- 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);
13867
+ 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);
13743
13868
  }
13744
13869
  }, {
13745
13870
  key: "render",
@@ -14730,6 +14855,26 @@ module.exports = function (it) {
14730
14855
  };
14731
14856
 
14732
14857
 
14858
+ /***/ }),
14859
+
14860
+ /***/ "WbBG":
14861
+ /***/ (function(module, exports, __webpack_require__) {
14862
+
14863
+ "use strict";
14864
+ /**
14865
+ * Copyright (c) 2013-present, Facebook, Inc.
14866
+ *
14867
+ * This source code is licensed under the MIT license found in the
14868
+ * LICENSE file in the root directory of this source tree.
14869
+ */
14870
+
14871
+
14872
+
14873
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
14874
+
14875
+ module.exports = ReactPropTypesSecret;
14876
+
14877
+
14733
14878
  /***/ }),
14734
14879
 
14735
14880
  /***/ "WbkG":
@@ -14778,13 +14923,6 @@ function buildMatchPatternFn(args) {
14778
14923
 
14779
14924
  module.exports = exports.default;
14780
14925
 
14781
- /***/ }),
14782
-
14783
- /***/ "WvjI":
14784
- /***/ (function(module, exports) {
14785
-
14786
-
14787
-
14788
14926
  /***/ }),
14789
14927
 
14790
14928
  /***/ "X+IB":
@@ -18266,11 +18404,11 @@ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDes
18266
18404
  Object.defineProperty(exports, "__esModule", {
18267
18405
  value: true
18268
18406
  });
18407
+ exports.dontSetMe = dontSetMe;
18269
18408
  exports.findInArray = findInArray;
18409
+ exports.int = int;
18270
18410
  exports.isFunction = isFunction;
18271
18411
  exports.isNum = isNum;
18272
- exports.int = int;
18273
- exports.dontSetMe = dontSetMe;
18274
18412
 
18275
18413
  // @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc
18276
18414
  function findInArray(array
@@ -18739,7 +18877,7 @@ module.exports = mapCacheDelete;
18739
18877
  "use strict";
18740
18878
 
18741
18879
 
18742
- 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); }
18880
+ 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); }
18743
18881
 
18744
18882
  Object.defineProperty(exports, "__esModule", {
18745
18883
  value: true
@@ -18784,9 +18922,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
18784
18922
 
18785
18923
  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; }
18786
18924
 
18787
- 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; }
18925
+ 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; }
18788
18926
 
18789
- 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; }
18927
+ 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; }
18790
18928
 
18791
18929
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18792
18930
 
@@ -18804,9 +18942,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
18804
18942
 
18805
18943
  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); } }
18806
18944
 
18807
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
18945
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
18808
18946
 
18809
- 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); }
18947
+ 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); }
18810
18948
 
18811
18949
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
18812
18950
 
@@ -24816,6 +24954,7 @@ __webpack_require__.d(__webpack_exports__, "ButtonGroup", function() { return /*
24816
24954
  __webpack_require__.d(__webpack_exports__, "Calendar", function() { return /* reexport */ calendar_0; });
24817
24955
  __webpack_require__.d(__webpack_exports__, "Card", function() { return /* reexport */ card_0; });
24818
24956
  __webpack_require__.d(__webpack_exports__, "CardGroup", function() { return /* reexport */ cardGroup; });
24957
+ __webpack_require__.d(__webpack_exports__, "Carousel", function() { return /* reexport */ carousel_0; });
24819
24958
  __webpack_require__.d(__webpack_exports__, "Cascader", function() { return /* reexport */ cascader_0; });
24820
24959
  __webpack_require__.d(__webpack_exports__, "Checkbox", function() { return /* reexport */ checkbox_0; });
24821
24960
  __webpack_require__.d(__webpack_exports__, "CheckboxGroup", function() { return /* reexport */ checkboxGroup; });
@@ -24957,8 +25096,8 @@ var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__
24957
25096
  var classnames = __webpack_require__("O94r");
24958
25097
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
24959
25098
 
24960
- // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/prop-types/index.js
24961
- var prop_types = __webpack_require__("aWzz");
25099
+ // EXTERNAL MODULE: ./node_modules/prop-types/index.js
25100
+ var prop_types = __webpack_require__("17x9");
24962
25101
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
24963
25102
 
24964
25103
  // CONCATENATED MODULE: ../semi-foundation/base/env.ts
@@ -25689,7 +25828,7 @@ var find_index_default = /*#__PURE__*/__webpack_require__.n(find_index);
25689
25828
 
25690
25829
  // CONCATENATED MODULE: ../semi-foundation/utils/isNullOrUndefined.ts
25691
25830
  /**
25692
- * Whether null or undenfined
25831
+ * Whether null or undefined
25693
25832
  * @param {*} value
25694
25833
  * @returns {boolean}
25695
25834
  */
@@ -30519,12 +30658,12 @@ localeConsumer_LocaleConsumer.defaultProps = {
30519
30658
  var is_safe_integer = __webpack_require__("lpbv");
30520
30659
  var is_safe_integer_default = /*#__PURE__*/__webpack_require__.n(is_safe_integer);
30521
30660
 
30522
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/env.js
30661
+ // CONCATENATED MODULE: ../semi-icons/lib/es/env.js
30523
30662
  const env_BASE_CLASS_PREFIX = 'semi';
30524
- // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/styles/icons.css
30525
- var icons = __webpack_require__("WvjI");
30663
+ // EXTERNAL MODULE: ../semi-icons/lib/es/styles/icons.css
30664
+ var icons = __webpack_require__("BKEV");
30526
30665
 
30527
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/components/Icon.js
30666
+ // CONCATENATED MODULE: ../semi-icons/lib/es/components/Icon.js
30528
30667
 
30529
30668
 
30530
30669
 
@@ -30604,7 +30743,7 @@ const convertIcon = (Svg, iconType) => {
30604
30743
 
30605
30744
 
30606
30745
  /* harmony default export */ var components_Icon = (Icon);
30607
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconAlertCircle.js
30746
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconAlertCircle.js
30608
30747
 
30609
30748
 
30610
30749
 
@@ -30628,7 +30767,7 @@ function SvgComponent(props) {
30628
30767
 
30629
30768
  const IconComponent = convertIcon(SvgComponent, 'alert_circle');
30630
30769
  /* harmony default export */ var IconAlertCircle = (IconComponent);
30631
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconAlertTriangle.js
30770
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconAlertTriangle.js
30632
30771
 
30633
30772
 
30634
30773
 
@@ -30652,7 +30791,7 @@ function IconAlertTriangle_SvgComponent(props) {
30652
30791
 
30653
30792
  const IconAlertTriangle_IconComponent = convertIcon(IconAlertTriangle_SvgComponent, 'alert_triangle');
30654
30793
  /* harmony default export */ var IconAlertTriangle = (IconAlertTriangle_IconComponent);
30655
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCalendar.js
30794
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCalendar.js
30656
30795
 
30657
30796
 
30658
30797
 
@@ -30676,7 +30815,7 @@ function IconCalendar_SvgComponent(props) {
30676
30815
 
30677
30816
  const IconCalendar_IconComponent = convertIcon(IconCalendar_SvgComponent, 'calendar');
30678
30817
  /* harmony default export */ var IconCalendar = (IconCalendar_IconComponent);
30679
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCalendarClock.js
30818
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCalendarClock.js
30680
30819
 
30681
30820
 
30682
30821
 
@@ -30715,7 +30854,7 @@ function IconCalendarClock_SvgComponent(props) {
30715
30854
 
30716
30855
  const IconCalendarClock_IconComponent = convertIcon(IconCalendarClock_SvgComponent, 'calendar_clock');
30717
30856
  /* harmony default export */ var IconCalendarClock = (IconCalendarClock_IconComponent);
30718
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCaretdown.js
30857
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCaretdown.js
30719
30858
 
30720
30859
 
30721
30860
 
@@ -30737,7 +30876,7 @@ function IconCaretdown_SvgComponent(props) {
30737
30876
 
30738
30877
  const IconCaretdown_IconComponent = convertIcon(IconCaretdown_SvgComponent, 'caretdown');
30739
30878
  /* harmony default export */ var IconCaretdown = (IconCaretdown_IconComponent);
30740
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCaretup.js
30879
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCaretup.js
30741
30880
 
30742
30881
 
30743
30882
 
@@ -30759,7 +30898,7 @@ function IconCaretup_SvgComponent(props) {
30759
30898
 
30760
30899
  const IconCaretup_IconComponent = convertIcon(IconCaretup_SvgComponent, 'caretup');
30761
30900
  /* harmony default export */ var IconCaretup = (IconCaretup_IconComponent);
30762
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCheckboxIndeterminate.js
30901
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCheckboxIndeterminate.js
30763
30902
 
30764
30903
 
30765
30904
 
@@ -30781,7 +30920,7 @@ function IconCheckboxIndeterminate_SvgComponent(props) {
30781
30920
 
30782
30921
  const IconCheckboxIndeterminate_IconComponent = convertIcon(IconCheckboxIndeterminate_SvgComponent, 'checkbox_indeterminate');
30783
30922
  /* harmony default export */ var IconCheckboxIndeterminate = (IconCheckboxIndeterminate_IconComponent);
30784
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCheckboxTick.js
30923
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCheckboxTick.js
30785
30924
 
30786
30925
 
30787
30926
 
@@ -30805,7 +30944,7 @@ function IconCheckboxTick_SvgComponent(props) {
30805
30944
 
30806
30945
  const IconCheckboxTick_IconComponent = convertIcon(IconCheckboxTick_SvgComponent, 'checkbox_tick');
30807
30946
  /* harmony default export */ var IconCheckboxTick = (IconCheckboxTick_IconComponent);
30808
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconChevronDown.js
30947
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronDown.js
30809
30948
 
30810
30949
 
30811
30950
 
@@ -30829,7 +30968,7 @@ function IconChevronDown_SvgComponent(props) {
30829
30968
 
30830
30969
  const IconChevronDown_IconComponent = convertIcon(IconChevronDown_SvgComponent, 'chevron_down');
30831
30970
  /* harmony default export */ var IconChevronDown = (IconChevronDown_IconComponent);
30832
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconChevronLeft.js
30971
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronLeft.js
30833
30972
 
30834
30973
 
30835
30974
 
@@ -30853,7 +30992,7 @@ function IconChevronLeft_SvgComponent(props) {
30853
30992
 
30854
30993
  const IconChevronLeft_IconComponent = convertIcon(IconChevronLeft_SvgComponent, 'chevron_left');
30855
30994
  /* harmony default export */ var IconChevronLeft = (IconChevronLeft_IconComponent);
30856
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconChevronRight.js
30995
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronRight.js
30857
30996
 
30858
30997
 
30859
30998
 
@@ -30877,7 +31016,7 @@ function IconChevronRight_SvgComponent(props) {
30877
31016
 
30878
31017
  const IconChevronRight_IconComponent = convertIcon(IconChevronRight_SvgComponent, 'chevron_right');
30879
31018
  /* harmony default export */ var IconChevronRight = (IconChevronRight_IconComponent);
30880
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconChevronUp.js
31019
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconChevronUp.js
30881
31020
 
30882
31021
 
30883
31022
 
@@ -30901,7 +31040,7 @@ function IconChevronUp_SvgComponent(props) {
30901
31040
 
30902
31041
  const IconChevronUp_IconComponent = convertIcon(IconChevronUp_SvgComponent, 'chevron_up');
30903
31042
  /* harmony default export */ var IconChevronUp = (IconChevronUp_IconComponent);
30904
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconClear.js
31043
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconClear.js
30905
31044
 
30906
31045
 
30907
31046
 
@@ -30925,7 +31064,7 @@ function IconClear_SvgComponent(props) {
30925
31064
 
30926
31065
  const IconClear_IconComponent = convertIcon(IconClear_SvgComponent, 'clear');
30927
31066
  /* harmony default export */ var IconClear = (IconClear_IconComponent);
30928
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconClock.js
31067
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconClock.js
30929
31068
 
30930
31069
 
30931
31070
 
@@ -30949,7 +31088,7 @@ function IconClock_SvgComponent(props) {
30949
31088
 
30950
31089
  const IconClock_IconComponent = convertIcon(IconClock_SvgComponent, 'clock');
30951
31090
  /* harmony default export */ var IconClock = (IconClock_IconComponent);
30952
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconClose.js
31091
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconClose.js
30953
31092
 
30954
31093
 
30955
31094
 
@@ -30971,7 +31110,7 @@ function IconClose_SvgComponent(props) {
30971
31110
 
30972
31111
  const IconClose_IconComponent = convertIcon(IconClose_SvgComponent, 'close');
30973
31112
  /* harmony default export */ var IconClose = (IconClose_IconComponent);
30974
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconCopy.js
31113
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconCopy.js
30975
31114
 
30976
31115
 
30977
31116
 
@@ -30996,7 +31135,7 @@ function IconCopy_SvgComponent(props) {
30996
31135
 
30997
31136
  const IconCopy_IconComponent = convertIcon(IconCopy_SvgComponent, 'copy');
30998
31137
  /* harmony default export */ var IconCopy = (IconCopy_IconComponent);
30999
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconDoubleChevronLeft.js
31138
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconDoubleChevronLeft.js
31000
31139
 
31001
31140
 
31002
31141
 
@@ -31025,7 +31164,7 @@ function IconDoubleChevronLeft_SvgComponent(props) {
31025
31164
 
31026
31165
  const IconDoubleChevronLeft_IconComponent = convertIcon(IconDoubleChevronLeft_SvgComponent, 'double_chevron_left');
31027
31166
  /* harmony default export */ var IconDoubleChevronLeft = (IconDoubleChevronLeft_IconComponent);
31028
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconDoubleChevronRight.js
31167
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconDoubleChevronRight.js
31029
31168
 
31030
31169
 
31031
31170
 
@@ -31054,7 +31193,7 @@ function IconDoubleChevronRight_SvgComponent(props) {
31054
31193
 
31055
31194
  const IconDoubleChevronRight_IconComponent = convertIcon(IconDoubleChevronRight_SvgComponent, 'double_chevron_right');
31056
31195
  /* harmony default export */ var IconDoubleChevronRight = (IconDoubleChevronRight_IconComponent);
31057
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconEyeClosedSolid.js
31196
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconEyeClosedSolid.js
31058
31197
 
31059
31198
 
31060
31199
 
@@ -31081,7 +31220,7 @@ function IconEyeClosedSolid_SvgComponent(props) {
31081
31220
 
31082
31221
  const IconEyeClosedSolid_IconComponent = convertIcon(IconEyeClosedSolid_SvgComponent, 'eye_closed_solid');
31083
31222
  /* harmony default export */ var IconEyeClosedSolid = (IconEyeClosedSolid_IconComponent);
31084
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconEyeOpened.js
31223
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconEyeOpened.js
31085
31224
 
31086
31225
 
31087
31226
 
@@ -31105,7 +31244,7 @@ function IconEyeOpened_SvgComponent(props) {
31105
31244
 
31106
31245
  const IconEyeOpened_IconComponent = convertIcon(IconEyeOpened_SvgComponent, 'eye_opened');
31107
31246
  /* harmony default export */ var IconEyeOpened = (IconEyeOpened_IconComponent);
31108
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconFile.js
31247
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFile.js
31109
31248
 
31110
31249
 
31111
31250
 
@@ -31129,7 +31268,7 @@ function IconFile_SvgComponent(props) {
31129
31268
 
31130
31269
  const IconFile_IconComponent = convertIcon(IconFile_SvgComponent, 'file');
31131
31270
  /* harmony default export */ var IconFile = (IconFile_IconComponent);
31132
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconFilter.js
31271
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFilter.js
31133
31272
 
31134
31273
 
31135
31274
 
@@ -31153,7 +31292,7 @@ function IconFilter_SvgComponent(props) {
31153
31292
 
31154
31293
  const IconFilter_IconComponent = convertIcon(IconFilter_SvgComponent, 'filter');
31155
31294
  /* harmony default export */ var IconFilter = (IconFilter_IconComponent);
31156
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconFolder.js
31295
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFolder.js
31157
31296
 
31158
31297
 
31159
31298
 
@@ -31178,7 +31317,7 @@ function IconFolder_SvgComponent(props) {
31178
31317
 
31179
31318
  const IconFolder_IconComponent = convertIcon(IconFolder_SvgComponent, 'folder');
31180
31319
  /* harmony default export */ var IconFolder = (IconFolder_IconComponent);
31181
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconFolderOpen.js
31320
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconFolderOpen.js
31182
31321
 
31183
31322
 
31184
31323
 
@@ -31202,7 +31341,7 @@ function IconFolderOpen_SvgComponent(props) {
31202
31341
 
31203
31342
  const IconFolderOpen_IconComponent = convertIcon(IconFolderOpen_SvgComponent, 'folder_open');
31204
31343
  /* harmony default export */ var IconFolderOpen = (IconFolderOpen_IconComponent);
31205
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconHandle.js
31344
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconHandle.js
31206
31345
 
31207
31346
 
31208
31347
 
@@ -31239,7 +31378,7 @@ function IconHandle_SvgComponent(props) {
31239
31378
 
31240
31379
  const IconHandle_IconComponent = convertIcon(IconHandle_SvgComponent, 'handle');
31241
31380
  /* harmony default export */ var IconHandle = (IconHandle_IconComponent);
31242
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconHelpCircle.js
31381
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconHelpCircle.js
31243
31382
 
31244
31383
 
31245
31384
 
@@ -31263,7 +31402,7 @@ function IconHelpCircle_SvgComponent(props) {
31263
31402
 
31264
31403
  const IconHelpCircle_IconComponent = convertIcon(IconHelpCircle_SvgComponent, 'help_circle');
31265
31404
  /* harmony default export */ var IconHelpCircle = (IconHelpCircle_IconComponent);
31266
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconInfoCircle.js
31405
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconInfoCircle.js
31267
31406
 
31268
31407
 
31269
31408
 
@@ -31287,7 +31426,7 @@ function IconInfoCircle_SvgComponent(props) {
31287
31426
 
31288
31427
  const IconInfoCircle_IconComponent = convertIcon(IconInfoCircle_SvgComponent, 'info_circle');
31289
31428
  /* harmony default export */ var IconInfoCircle = (IconInfoCircle_IconComponent);
31290
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconMore.js
31429
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconMore.js
31291
31430
 
31292
31431
 
31293
31432
 
@@ -31315,7 +31454,7 @@ function IconMore_SvgComponent(props) {
31315
31454
 
31316
31455
  const IconMore_IconComponent = convertIcon(IconMore_SvgComponent, 'more');
31317
31456
  /* harmony default export */ var IconMore = (IconMore_IconComponent);
31318
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconRadio.js
31457
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconRadio.js
31319
31458
 
31320
31459
 
31321
31460
 
@@ -31339,7 +31478,7 @@ function IconRadio_SvgComponent(props) {
31339
31478
 
31340
31479
  const IconRadio_IconComponent = convertIcon(IconRadio_SvgComponent, 'radio');
31341
31480
  /* harmony default export */ var IconRadio = (IconRadio_IconComponent);
31342
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconRefresh.js
31481
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconRefresh.js
31343
31482
 
31344
31483
 
31345
31484
 
@@ -31363,7 +31502,7 @@ function IconRefresh_SvgComponent(props) {
31363
31502
 
31364
31503
  const IconRefresh_IconComponent = convertIcon(IconRefresh_SvgComponent, 'refresh');
31365
31504
  /* harmony default export */ var IconRefresh = (IconRefresh_IconComponent);
31366
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconSearch.js
31505
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconSearch.js
31367
31506
 
31368
31507
 
31369
31508
 
@@ -31387,7 +31526,7 @@ function IconSearch_SvgComponent(props) {
31387
31526
 
31388
31527
  const IconSearch_IconComponent = convertIcon(IconSearch_SvgComponent, 'search');
31389
31528
  /* harmony default export */ var IconSearch = (IconSearch_IconComponent);
31390
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconSidebar.js
31529
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconSidebar.js
31391
31530
 
31392
31531
 
31393
31532
 
@@ -31411,7 +31550,7 @@ function IconSidebar_SvgComponent(props) {
31411
31550
 
31412
31551
  const IconSidebar_IconComponent = convertIcon(IconSidebar_SvgComponent, 'sidebar');
31413
31552
  /* harmony default export */ var IconSidebar = (IconSidebar_IconComponent);
31414
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconStar.js
31553
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconStar.js
31415
31554
 
31416
31555
 
31417
31556
 
@@ -31433,7 +31572,7 @@ function IconStar_SvgComponent(props) {
31433
31572
 
31434
31573
  const IconStar_IconComponent = convertIcon(IconStar_SvgComponent, 'star');
31435
31574
  /* harmony default export */ var IconStar = (IconStar_IconComponent);
31436
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconTick.js
31575
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTick.js
31437
31576
 
31438
31577
 
31439
31578
 
@@ -31457,7 +31596,7 @@ function IconTick_SvgComponent(props) {
31457
31596
 
31458
31597
  const IconTick_IconComponent = convertIcon(IconTick_SvgComponent, 'tick');
31459
31598
  /* harmony default export */ var IconTick = (IconTick_IconComponent);
31460
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconTickCircle.js
31599
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTickCircle.js
31461
31600
 
31462
31601
 
31463
31602
 
@@ -31481,7 +31620,7 @@ function IconTickCircle_SvgComponent(props) {
31481
31620
 
31482
31621
  const IconTickCircle_IconComponent = convertIcon(IconTickCircle_SvgComponent, 'tick_circle');
31483
31622
  /* harmony default export */ var IconTickCircle = (IconTickCircle_IconComponent);
31484
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconTreeTriangleDown.js
31623
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTreeTriangleDown.js
31485
31624
 
31486
31625
 
31487
31626
 
@@ -31503,7 +31642,7 @@ function IconTreeTriangleDown_SvgComponent(props) {
31503
31642
 
31504
31643
  const IconTreeTriangleDown_IconComponent = convertIcon(IconTreeTriangleDown_SvgComponent, 'tree_triangle_down');
31505
31644
  /* harmony default export */ var IconTreeTriangleDown = (IconTreeTriangleDown_IconComponent);
31506
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconTreeTriangleRight.js
31645
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconTreeTriangleRight.js
31507
31646
 
31508
31647
 
31509
31648
 
@@ -31525,7 +31664,7 @@ function IconTreeTriangleRight_SvgComponent(props) {
31525
31664
 
31526
31665
  const IconTreeTriangleRight_IconComponent = convertIcon(IconTreeTriangleRight_SvgComponent, 'tree_triangle_right');
31527
31666
  /* harmony default export */ var IconTreeTriangleRight = (IconTreeTriangleRight_IconComponent);
31528
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/IconUpload.js
31667
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/IconUpload.js
31529
31668
 
31530
31669
 
31531
31670
 
@@ -31549,7 +31688,7 @@ function IconUpload_SvgComponent(props) {
31549
31688
 
31550
31689
  const IconUpload_IconComponent = convertIcon(IconUpload_SvgComponent, 'upload');
31551
31690
  /* harmony default export */ var IconUpload = (IconUpload_IconComponent);
31552
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/icons/index.js
31691
+ // CONCATENATED MODULE: ../semi-icons/lib/es/icons/index.js
31553
31692
 
31554
31693
 
31555
31694
 
@@ -31987,7 +32126,7 @@ const IconUpload_IconComponent = convertIcon(IconUpload_SvgComponent, 'upload');
31987
32126
 
31988
32127
 
31989
32128
 
31990
- // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/@douyinfe/semi-icons/lib/es/index.js
32129
+ // CONCATENATED MODULE: ../semi-icons/lib/es/index.js
31991
32130
 
31992
32131
 
31993
32132
 
@@ -37943,7 +38082,9 @@ class banner_Banner extends baseComponent_BaseComponent {
37943
38082
  const closer = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(iconButton_0, {
37944
38083
  className: "".concat(banner_prefixCls, "-close"),
37945
38084
  onClick: this.remove,
37946
- icon: closeIcon || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, null),
38085
+ icon: closeIcon || /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClose, {
38086
+ "aria-hidden": true
38087
+ }),
37947
38088
  theme: "borderless",
37948
38089
  size: "small",
37949
38090
  type: "tertiary",
@@ -37959,16 +38100,20 @@ class banner_Banner extends baseComponent_BaseComponent {
37959
38100
  } = this.props;
37960
38101
  const iconMap = {
37961
38102
  warning: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconAlertTriangle, {
37962
- size: "large"
38103
+ size: "large",
38104
+ "aria-label": 'warning'
37963
38105
  }),
37964
38106
  success: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconTickCircle, {
37965
- size: "large"
38107
+ size: "large",
38108
+ "aria-label": 'success'
37966
38109
  }),
37967
38110
  info: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconInfoCircle, {
37968
- size: "large"
38111
+ size: "large",
38112
+ "aria-label": 'info'
37969
38113
  }),
37970
38114
  danger: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconAlertCircle, {
37971
- size: "large"
38115
+ size: "large",
38116
+ "aria-label": 'danger'
37972
38117
  })
37973
38118
  };
37974
38119
  let iconType = iconMap[type];
@@ -45291,6 +45436,762 @@ cardGroup_CardGroup.defaultProps = {
45291
45436
  spacing: 16
45292
45437
  };
45293
45438
  /* harmony default export */ var cardGroup = (cardGroup_CardGroup);
45439
+ // CONCATENATED MODULE: ../semi-foundation/carousel/constants.ts
45440
+
45441
+ const carousel_constants_cssClasses = {
45442
+ CAROUSEL: "".concat(BASE_CLASS_PREFIX, "-carousel"),
45443
+ CAROUSEL_INDICATOR: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator"),
45444
+ CAROUSEL_INDICATOR_LINE: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-line"),
45445
+ CAROUSEL_INDICATOR_DOT: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-dot"),
45446
+ CAROUSEL_INDICATOR_COLUMNAR: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-columnar"),
45447
+ CAROUSEL_INDICATOR_INACTIVE: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-inactive"),
45448
+ CAROUSEL_INDICATOR_ACTIVE: "".concat(BASE_CLASS_PREFIX, "-carousel-indicator-active"),
45449
+ CAROUSEL_CONTENT: "".concat(BASE_CLASS_PREFIX, "-carousel-content"),
45450
+ CAROUSEL_ARROW: "".concat(BASE_CLASS_PREFIX, "-carousel-arrow")
45451
+ };
45452
+ const carousel_constants_numbers = {
45453
+ DEFAULT_ACTIVE_INDEX: 0,
45454
+ DEFAULT_INTERVAL: 2000,
45455
+ DEFAULT_SPEED: 300
45456
+ };
45457
+ const carousel_constants_strings = {
45458
+ ANIMATION_MAP: ['slide', 'fade'],
45459
+ DIRECTION: ['left', 'right'],
45460
+ TYPE_MAP: ['columnar', 'line', 'dot'],
45461
+ THEME_MAP: ['dark', 'primary', 'light'],
45462
+ POSITION_MAP: ['left', 'center', 'right'],
45463
+ ARROW_MAP: ['always', 'hover'],
45464
+ SIZE: ['small', 'medium'],
45465
+ TRIGGER: ['click', 'hover']
45466
+ };
45467
+
45468
+ // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime-corejs3/core-js-stable/set-interval.js
45469
+ var set_interval = __webpack_require__("1l5A");
45470
+ var set_interval_default = /*#__PURE__*/__webpack_require__.n(set_interval);
45471
+
45472
+ // CONCATENATED MODULE: ../semi-foundation/carousel/foundation.ts
45473
+
45474
+
45475
+
45476
+
45477
+
45478
+
45479
+
45480
+ class foundation_CarouselFoundation extends foundation {
45481
+ constructor(adapter) {
45482
+ super(assign_default()({}, adapter));
45483
+ this._interval = null;
45484
+ }
45485
+
45486
+ play(interval) {
45487
+ if (this._interval) {
45488
+ clearInterval(this._interval);
45489
+ }
45490
+
45491
+ this._interval = set_interval_default()(() => {
45492
+ this.next();
45493
+ }, interval);
45494
+ }
45495
+
45496
+ stop() {
45497
+ if (this._interval) {
45498
+ clearInterval(this._interval);
45499
+ }
45500
+ }
45501
+
45502
+ goTo(activeIndex) {
45503
+ const {
45504
+ activeIndex: stateActiveIndex
45505
+ } = this.getStates();
45506
+ const targetIndex = this.getValidIndex(activeIndex);
45507
+
45508
+ this._adapter.setIsReverse(stateActiveIndex > targetIndex);
45509
+
45510
+ if (this.getIsControledComponent()) {
45511
+ this._notifyChange(targetIndex);
45512
+ } else {
45513
+ this._notifyChange(targetIndex);
45514
+
45515
+ this.handleNewActiveIndex(targetIndex);
45516
+ }
45517
+ }
45518
+
45519
+ next() {
45520
+ const {
45521
+ activeIndex: stateActiveIndex
45522
+ } = this.getStates();
45523
+ const targetIndex = this.getValidIndex(stateActiveIndex + 1);
45524
+
45525
+ this._adapter.setIsReverse(false);
45526
+
45527
+ if (this.getIsControledComponent()) {
45528
+ this._notifyChange(targetIndex);
45529
+ } else {
45530
+ this._notifyChange(targetIndex);
45531
+
45532
+ this.handleNewActiveIndex(targetIndex);
45533
+ }
45534
+ }
45535
+
45536
+ prev() {
45537
+ const {
45538
+ activeIndex: stateActiveIndex
45539
+ } = this.getStates();
45540
+ const targetIndex = this.getValidIndex(stateActiveIndex - 1);
45541
+
45542
+ this._adapter.setIsReverse(true);
45543
+
45544
+ if (this.getIsControledComponent()) {
45545
+ this._notifyChange(targetIndex);
45546
+ } else {
45547
+ this._notifyChange(targetIndex);
45548
+
45549
+ this.handleNewActiveIndex(targetIndex);
45550
+ }
45551
+ }
45552
+
45553
+ destroy() {
45554
+ this._unregisterInterval();
45555
+ }
45556
+
45557
+ _unregisterInterval() {
45558
+ if (this._interval) {
45559
+ clearInterval(this._interval);
45560
+ this._interval = null;
45561
+ }
45562
+ }
45563
+
45564
+ _notifyChange(activeIndex) {
45565
+ const {
45566
+ activeIndex: stateActiveIndex,
45567
+ isInit
45568
+ } = this.getStates();
45569
+
45570
+ if (isInit) {
45571
+ this._adapter.setIsInit(false);
45572
+ }
45573
+
45574
+ if (stateActiveIndex !== activeIndex) {
45575
+ this._adapter.setPreActiveIndex(stateActiveIndex);
45576
+
45577
+ this._adapter.notifyChange(activeIndex, stateActiveIndex);
45578
+ }
45579
+ }
45580
+
45581
+ getValidIndex(index) {
45582
+ const {
45583
+ children
45584
+ } = this.getStates();
45585
+ return (index + children.length) % children.length;
45586
+ }
45587
+
45588
+ getSwitchingTime() {
45589
+ const {
45590
+ autoPlay,
45591
+ speed
45592
+ } = this.getProps();
45593
+ const autoPlayType = typeof autoPlay;
45594
+
45595
+ if (autoPlayType === 'boolean' && autoPlay) {
45596
+ return carousel_constants_numbers.DEFAULT_INTERVAL + speed;
45597
+ }
45598
+
45599
+ if (isObject_default()(autoPlay)) {
45600
+ return get_default()(autoPlay, 'interval', carousel_constants_numbers.DEFAULT_INTERVAL) + speed;
45601
+ }
45602
+
45603
+ return speed;
45604
+ }
45605
+
45606
+ getIsControledComponent() {
45607
+ return this._isInProps('activeIndex');
45608
+ }
45609
+
45610
+ handleAutoPlay() {
45611
+ const {
45612
+ autoPlay
45613
+ } = this.getProps();
45614
+ const autoPlayType = typeof autoPlay;
45615
+
45616
+ if (autoPlayType === 'boolean' && autoPlay || isObject_default()(autoPlay)) {
45617
+ this.play(this.getSwitchingTime());
45618
+ }
45619
+ }
45620
+
45621
+ handleKeyDown(event) {
45622
+ if (event.key === 'ArrowLeft') {
45623
+ this.prev();
45624
+ }
45625
+
45626
+ if (event.key === 'ArrowRight') {
45627
+ this.next();
45628
+ }
45629
+ }
45630
+
45631
+ onIndicatorChange(activeIndex) {
45632
+ const {
45633
+ activeIndex: stateActiveIndex
45634
+ } = this.getStates();
45635
+
45636
+ this._adapter.setIsReverse(stateActiveIndex > activeIndex);
45637
+
45638
+ this._notifyChange(activeIndex);
45639
+
45640
+ if (!this.getIsControledComponent()) {
45641
+ this.handleNewActiveIndex(activeIndex);
45642
+ }
45643
+ }
45644
+
45645
+ handleNewActiveIndex(activeIndex) {
45646
+ const {
45647
+ activeIndex: stateActiveIndex
45648
+ } = this.getStates();
45649
+
45650
+ if (stateActiveIndex !== activeIndex) {
45651
+ this._adapter.setNewActiveIndex(activeIndex);
45652
+ }
45653
+ }
45654
+
45655
+ getDefaultActiveIndex() {
45656
+ let activeIndex;
45657
+ const props = this.getProps();
45658
+
45659
+ if ('activeIndex' in props) {
45660
+ activeIndex = props.activeIndex;
45661
+ } else if ('defaultActiveIndex' in props) {
45662
+ activeIndex = props.defaultActiveIndex;
45663
+ }
45664
+
45665
+ return activeIndex;
45666
+ }
45667
+
45668
+ }
45669
+
45670
+ /* harmony default export */ var carousel_foundation = (foundation_CarouselFoundation);
45671
+ // CONCATENATED MODULE: ../semi-foundation/utils/getDataAttr.ts
45672
+
45673
+
45674
+ function getDataAttr(props) {
45675
+ var _context;
45676
+
45677
+ return reduce_default()(_context = keys_default()(props)).call(_context, (prev, key) => {
45678
+ if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
45679
+ prev[key] = props[key];
45680
+ }
45681
+
45682
+ return prev;
45683
+ }, {});
45684
+ }
45685
+ // CONCATENATED MODULE: ./carousel/CarouselIndicator.tsx
45686
+
45687
+
45688
+
45689
+
45690
+
45691
+ var CarouselIndicator_rest = undefined && undefined.__rest || function (s, e) {
45692
+ var t = {};
45693
+
45694
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && index_of_default()(e).call(e, p) < 0) t[p] = s[p];
45695
+
45696
+ 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++) {
45697
+ if (index_of_default()(e).call(e, p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
45698
+ }
45699
+ return t;
45700
+ };
45701
+ /* eslint-disable jsx-a11y/no-static-element-interactions */
45702
+
45703
+ /* eslint-disable jsx-a11y/click-events-have-key-events */
45704
+
45705
+
45706
+
45707
+
45708
+
45709
+
45710
+
45711
+
45712
+ class CarouselIndicator_CarouselIndicator extends external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.PureComponent {
45713
+ constructor() {
45714
+ super(...arguments);
45715
+
45716
+ this.onIndicatorChange = activeIndex => {
45717
+ this.props.onIndicatorChange(activeIndex);
45718
+ };
45719
+
45720
+ this.handleIndicatorClick = activeIndex => {
45721
+ const {
45722
+ trigger
45723
+ } = this.props;
45724
+
45725
+ if (trigger === 'click') {
45726
+ this.onIndicatorChange(activeIndex);
45727
+ }
45728
+ };
45729
+
45730
+ this.handleIndicatorHover = activeIndex => {
45731
+ const {
45732
+ trigger
45733
+ } = this.props;
45734
+
45735
+ if (trigger === 'hover') {
45736
+ this.onIndicatorChange(activeIndex);
45737
+ }
45738
+ };
45739
+ }
45740
+
45741
+ renderIndicatorContent() {
45742
+ const {
45743
+ total,
45744
+ theme,
45745
+ size,
45746
+ activeIndex
45747
+ } = this.props;
45748
+ const indicatorContent = [];
45749
+
45750
+ for (let i = 0; i < total; i++) {
45751
+ var _context, _context2;
45752
+
45753
+ indicatorContent.push( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
45754
+ // role='none'
45755
+ key: i,
45756
+ "data-index": i,
45757
+ className: classnames_default()(["".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-item")], {
45758
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-item-active")]: i === activeIndex,
45759
+ [concat_default()(_context = "".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-item-")).call(_context, theme)]: theme,
45760
+ [concat_default()(_context2 = "".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-item-")).call(_context2, size)]: size
45761
+ }),
45762
+ onClick: () => this.handleIndicatorClick(i),
45763
+ onMouseEnter: () => this.handleIndicatorHover(i)
45764
+ }));
45765
+ }
45766
+
45767
+ return indicatorContent;
45768
+ }
45769
+
45770
+ render() {
45771
+ var _context3, _context4;
45772
+
45773
+ const _a = this.props,
45774
+ {
45775
+ type,
45776
+ size,
45777
+ theme,
45778
+ style,
45779
+ className,
45780
+ position
45781
+ } = _a,
45782
+ restProps = CarouselIndicator_rest(_a, ["type", "size", "theme", "style", "className", "position"]);
45783
+
45784
+ const classNames = classnames_default()(className, {
45785
+ [carousel_constants_cssClasses.CAROUSEL_INDICATOR]: true,
45786
+ [concat_default()(_context3 = "".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-")).call(_context3, type)]: type,
45787
+ [concat_default()(_context4 = "".concat(carousel_constants_cssClasses.CAROUSEL_INDICATOR, "-")).call(_context4, position)]: position
45788
+ });
45789
+ const indicatorContent = this.renderIndicatorContent();
45790
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
45791
+ className: classNames,
45792
+ style: style
45793
+ }, getDataAttr(restProps)), indicatorContent);
45794
+ }
45795
+
45796
+ }
45797
+
45798
+ CarouselIndicator_CarouselIndicator.propTypes = {
45799
+ activeKey: prop_types_default.a.number,
45800
+ className: prop_types_default.a.string,
45801
+ position: prop_types_default.a.oneOf(carousel_constants_strings.POSITION_MAP),
45802
+ size: prop_types_default.a.oneOf(carousel_constants_strings.SIZE),
45803
+ style: prop_types_default.a.object,
45804
+ theme: prop_types_default.a.oneOf(carousel_constants_strings.THEME_MAP),
45805
+ total: prop_types_default.a.number,
45806
+ onIndicatorChange: prop_types_default.a.func,
45807
+ type: prop_types_default.a.oneOf(carousel_constants_strings.TYPE_MAP),
45808
+ trigger: prop_types_default.a.oneOf(carousel_constants_strings.TRIGGER)
45809
+ };
45810
+ /* harmony default export */ var carousel_CarouselIndicator = (CarouselIndicator_CarouselIndicator);
45811
+ // CONCATENATED MODULE: ./carousel/CarouselArrow.tsx
45812
+
45813
+
45814
+
45815
+
45816
+ /* eslint-disable jsx-a11y/click-events-have-key-events */
45817
+
45818
+ /* eslint-disable jsx-a11y/no-static-element-interactions */
45819
+
45820
+
45821
+
45822
+
45823
+
45824
+ class CarouselArrow_CarouselArrow extends external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.PureComponent {
45825
+ constructor() {
45826
+ super(...arguments);
45827
+
45828
+ this.renderLeftIcon = () => {
45829
+ return get_default()(this.props, 'arrowProps.leftArrow.children', /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconChevronLeft, {
45830
+ "aria-label": "Previous index",
45831
+ size: "inherit"
45832
+ }));
45833
+ };
45834
+
45835
+ this.renderRightIcon = () => {
45836
+ return get_default()(this.props, 'arrowProps.rightArrow.children', /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconChevronRight, {
45837
+ "aria-label": "Next index",
45838
+ size: "inherit"
45839
+ }));
45840
+ };
45841
+ }
45842
+
45843
+ render() {
45844
+ var _context, _context2, _context3;
45845
+
45846
+ const {
45847
+ type,
45848
+ theme,
45849
+ prev,
45850
+ next
45851
+ } = this.props;
45852
+ const classNames = classnames_default()({
45853
+ [carousel_constants_cssClasses.CAROUSEL_ARROW]: true,
45854
+ [concat_default()(_context = "".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-")).call(_context, theme)]: theme,
45855
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-hover")]: type === 'hover'
45856
+ });
45857
+ const leftClassNames = classnames_default()({
45858
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-prev")]: true,
45859
+ [concat_default()(_context2 = "".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-")).call(_context2, theme)]: theme
45860
+ });
45861
+ const rightClassNames = classnames_default()({
45862
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-next")]: true,
45863
+ [concat_default()(_context3 = "".concat(carousel_constants_cssClasses.CAROUSEL_ARROW, "-")).call(_context3, theme)]: theme
45864
+ });
45865
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
45866
+ className: classNames
45867
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", assign_default()({
45868
+ // role='button'
45869
+ className: leftClassNames,
45870
+ onClick: prev
45871
+ }, 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()({
45872
+ // role='button'
45873
+ // tabIndex={0}
45874
+ className: rightClassNames,
45875
+ onClick: next
45876
+ }, get_default()(this.props, 'arrowProps.rightArrow.props')), this.renderRightIcon()));
45877
+ }
45878
+
45879
+ }
45880
+
45881
+ /* harmony default export */ var carousel_CarouselArrow = (CarouselArrow_CarouselArrow);
45882
+ // EXTERNAL MODULE: ../semi-foundation/carousel/carousel.scss
45883
+ var carousel = __webpack_require__("HzcD");
45884
+
45885
+ // CONCATENATED MODULE: ./carousel/index.tsx
45886
+
45887
+
45888
+
45889
+
45890
+
45891
+
45892
+ /* eslint-disable jsx-a11y/no-static-element-interactions */
45893
+
45894
+
45895
+
45896
+
45897
+
45898
+
45899
+
45900
+
45901
+
45902
+
45903
+
45904
+ class carousel_Carousel extends baseComponent_BaseComponent {
45905
+ constructor(props) {
45906
+ super(props);
45907
+
45908
+ this.play = () => {
45909
+ return this.foundation.handleAutoPlay();
45910
+ };
45911
+
45912
+ this.stop = () => {
45913
+ return this.foundation.stop();
45914
+ };
45915
+
45916
+ this.goTo = targetIndex => {
45917
+ return this.foundation.goTo(targetIndex);
45918
+ };
45919
+
45920
+ this.prev = () => {
45921
+ return this.foundation.prev();
45922
+ };
45923
+
45924
+ this.next = () => {
45925
+ return this.foundation.next();
45926
+ };
45927
+
45928
+ this.handleAutoPlay = () => {
45929
+ if (!this.foundation.getIsControledComponent()) {
45930
+ this.foundation.handleAutoPlay();
45931
+ }
45932
+ };
45933
+
45934
+ this.handleMouseEnter = () => {
45935
+ const {
45936
+ autoPlay
45937
+ } = this.props;
45938
+
45939
+ if (typeof autoPlay !== 'object' || autoPlay.hoverToPause) {
45940
+ this.foundation.stop();
45941
+ }
45942
+ };
45943
+
45944
+ this.handleMouseLeave = () => {
45945
+ const {
45946
+ autoPlay
45947
+ } = this.props;
45948
+
45949
+ if ((typeof autoPlay !== 'object' || autoPlay.hoverToPause) && !this.foundation.getIsControledComponent()) {
45950
+ this.foundation.handleAutoPlay();
45951
+ }
45952
+ };
45953
+
45954
+ this.onIndicatorChange = activeIndex => {
45955
+ return this.foundation.onIndicatorChange(activeIndex);
45956
+ };
45957
+
45958
+ this.getChildren = () => {
45959
+ var _context;
45960
+
45961
+ const {
45962
+ children: originChildren
45963
+ } = this.props;
45964
+ return filter_default()(_context = external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].toArray(originChildren)).call(_context, child => {
45965
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(child);
45966
+ });
45967
+ };
45968
+
45969
+ this.getValidIndex = activeIndex => {
45970
+ return this.foundation.getValidIndex(activeIndex);
45971
+ };
45972
+
45973
+ this.renderChildren = () => {
45974
+ const {
45975
+ speed,
45976
+ animation
45977
+ } = this.props;
45978
+ const {
45979
+ activeIndex,
45980
+ children,
45981
+ preIndex,
45982
+ isInit
45983
+ } = this.state;
45984
+ 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) => {
45985
+ const isCurrent = index === activeIndex;
45986
+ const isPrev = index === this.getValidIndex(activeIndex - 1);
45987
+ const isNext = index === this.getValidIndex(activeIndex + 1);
45988
+ const animateStyle = {
45989
+ transitionTimingFunction: 'ease',
45990
+ transitionDuration: "".concat(speed, "ms"),
45991
+ animationTimingFunction: 'ease',
45992
+ animationDuration: "".concat(speed, "ms")
45993
+ };
45994
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(child, {
45995
+ style: assign_default()(assign_default()({}, child.props.style), animateStyle),
45996
+ className: classnames_default()(child.props.className, {
45997
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-prev")]: isPrev,
45998
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-next")]: isNext,
45999
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-current")]: isCurrent,
46000
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item")]: true,
46001
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-active")]: isCurrent,
46002
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-slide-in")]: animation === 'slide' && !isInit && isCurrent,
46003
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-item-slide-out")]: animation === 'slide' && !isInit && index === preIndex
46004
+ })
46005
+ });
46006
+ }));
46007
+ };
46008
+
46009
+ this.renderIndicator = () => {
46010
+ const {
46011
+ children,
46012
+ activeIndex
46013
+ } = this.state;
46014
+ const {
46015
+ showIndicator,
46016
+ indicatorType,
46017
+ theme,
46018
+ indicatorPosition,
46019
+ indicatorSize,
46020
+ trigger
46021
+ } = this.props;
46022
+ const carouselIndicatorCls = classnames_default()({
46023
+ [carousel_constants_cssClasses.CAROUSEL_INDICATOR]: true
46024
+ });
46025
+
46026
+ if (showIndicator && children.length > 1) {
46027
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46028
+ className: carouselIndicatorCls
46029
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(carousel_CarouselIndicator, {
46030
+ type: indicatorType,
46031
+ total: children.length,
46032
+ activeIndex: activeIndex,
46033
+ position: indicatorPosition,
46034
+ trigger: trigger,
46035
+ size: indicatorSize,
46036
+ theme: theme,
46037
+ onIndicatorChange: this.onIndicatorChange
46038
+ }));
46039
+ }
46040
+
46041
+ return null;
46042
+ };
46043
+
46044
+ this.renderArrow = () => {
46045
+ const {
46046
+ children
46047
+ } = this.state;
46048
+ const {
46049
+ showArrow,
46050
+ arrowType,
46051
+ theme,
46052
+ arrowProps
46053
+ } = this.props;
46054
+
46055
+ if (showArrow && children.length > 1) {
46056
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(carousel_CarouselArrow, {
46057
+ type: arrowType,
46058
+ theme: theme,
46059
+ prev: this.prev,
46060
+ next: this.next,
46061
+ arrowProps: arrowProps
46062
+ });
46063
+ }
46064
+
46065
+ return null;
46066
+ };
46067
+
46068
+ this.foundation = new carousel_foundation(this.adapter);
46069
+ const defaultActiveIndex = this.foundation.getDefaultActiveIndex();
46070
+ this.state = {
46071
+ activeIndex: defaultActiveIndex,
46072
+ children: this.getChildren(),
46073
+ preIndex: defaultActiveIndex,
46074
+ isReverse: false,
46075
+ isInit: true
46076
+ };
46077
+ }
46078
+
46079
+ get adapter() {
46080
+ return assign_default()(assign_default()({}, super.adapter), {
46081
+ notifyChange: (activeIndex, preIndex) => {
46082
+ this.props.onChange(activeIndex, preIndex);
46083
+ },
46084
+ setNewActiveIndex: activeIndex => {
46085
+ this.setState({
46086
+ activeIndex
46087
+ });
46088
+ },
46089
+ setPreActiveIndex: preIndex => {
46090
+ this.setState({
46091
+ preIndex
46092
+ });
46093
+ },
46094
+ setIsReverse: isReverse => {
46095
+ this.setState({
46096
+ isReverse
46097
+ });
46098
+ },
46099
+ setIsInit: isInit => {
46100
+ this.setState({
46101
+ isInit
46102
+ });
46103
+ }
46104
+ });
46105
+ }
46106
+
46107
+ static getDerivedStateFromProps(props, state) {
46108
+ const states = {};
46109
+
46110
+ if (!isNullOrUndefined(props.activeIndex) && props.activeIndex !== state.activeIndex) {
46111
+ states.activeIndex = props.activeIndex;
46112
+ }
46113
+
46114
+ return states;
46115
+ }
46116
+
46117
+ componentDidMount() {
46118
+ this.handleAutoPlay();
46119
+ }
46120
+
46121
+ componentWillUnmount() {
46122
+ this.foundation.destroy();
46123
+ }
46124
+
46125
+ render() {
46126
+ var _context2;
46127
+
46128
+ const {
46129
+ animation,
46130
+ className,
46131
+ style,
46132
+ slideDirection
46133
+ } = this.props;
46134
+ const {
46135
+ isReverse
46136
+ } = this.state;
46137
+ const carouselWrapperCls = classnames_default()(className, {
46138
+ [carousel_constants_cssClasses.CAROUSEL]: true
46139
+ });
46140
+ return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46141
+ // role='listbox'
46142
+ // tabIndex={0}
46143
+ className: carouselWrapperCls,
46144
+ style: style,
46145
+ onMouseEnter: debounce_default()(this.handleMouseEnter, 400),
46146
+ onMouseLeave: debounce_default()(this.handleMouseLeave, 400)
46147
+ }, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
46148
+ className: classnames_default()([concat_default()(_context2 = "".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-")).call(_context2, animation)], {
46149
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT)]: true,
46150
+ ["".concat(carousel_constants_cssClasses.CAROUSEL_CONTENT, "-reverse")]: slideDirection === 'left' ? isReverse : !isReverse
46151
+ })
46152
+ }, this.renderChildren()), this.renderIndicator(), this.renderArrow());
46153
+ }
46154
+
46155
+ }
46156
+
46157
+ carousel_Carousel.propTypes = {
46158
+ activeIndex: prop_types_default.a.number,
46159
+ animation: prop_types_default.a.oneOf(carousel_constants_strings.ANIMATION_MAP),
46160
+ arrowProps: prop_types_default.a.object,
46161
+ autoPlay: prop_types_default.a.oneOfType([prop_types_default.a.bool, prop_types_default.a.object]),
46162
+ className: prop_types_default.a.string,
46163
+ defaultActiveIndex: prop_types_default.a.number,
46164
+ indicatorPosition: prop_types_default.a.oneOf(carousel_constants_strings.POSITION_MAP),
46165
+ indicatorSize: prop_types_default.a.oneOf(carousel_constants_strings.SIZE),
46166
+ indicatorType: prop_types_default.a.oneOf(carousel_constants_strings.TYPE_MAP),
46167
+ theme: prop_types_default.a.oneOf(carousel_constants_strings.THEME_MAP),
46168
+ onChange: prop_types_default.a.func,
46169
+ arrowType: prop_types_default.a.oneOf(carousel_constants_strings.ARROW_MAP),
46170
+ showArrow: prop_types_default.a.bool,
46171
+ showIndicator: prop_types_default.a.bool,
46172
+ slideDirection: prop_types_default.a.oneOf(carousel_constants_strings.DIRECTION),
46173
+ speed: prop_types_default.a.number,
46174
+ style: prop_types_default.a.object,
46175
+ trigger: prop_types_default.a.oneOf(carousel_constants_strings.TRIGGER)
46176
+ };
46177
+ carousel_Carousel.defaultProps = {
46178
+ children: [],
46179
+ animation: 'slide',
46180
+ autoPlay: true,
46181
+ arrowType: 'always',
46182
+ defaultActiveIndex: carousel_constants_numbers.DEFAULT_ACTIVE_INDEX,
46183
+ indicatorPosition: 'center',
46184
+ indicatorSize: 'small',
46185
+ indicatorType: 'dot',
46186
+ theme: 'light',
46187
+ onChange: () => undefined,
46188
+ showArrow: true,
46189
+ showIndicator: true,
46190
+ slideDirection: 'left',
46191
+ speed: carousel_constants_numbers.DEFAULT_SPEED,
46192
+ trigger: 'click'
46193
+ };
46194
+ /* harmony default export */ var carousel_0 = (carousel_Carousel);
45294
46195
  // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/lodash/flatten.js
45295
46196
  var lodash_flatten = __webpack_require__("1xil");
45296
46197
  var flatten_default = /*#__PURE__*/__webpack_require__.n(lodash_flatten);
@@ -45440,13 +46341,13 @@ function convertJsonToData(treeJson) {
45440
46341
  if (isObject_default()(children)) {
45441
46342
  var _context2;
45442
46343
 
45443
- const childres = [];
46344
+ const newChildren = [];
45444
46345
 
45445
46346
  for_each_default()(_context2 = object_entries_default()(children)).call(_context2, c => {
45446
- traverseNode(c[0], c[1], currPath, childres);
46347
+ traverseNode(c[0], c[1], currPath, newChildren);
45447
46348
  });
45448
46349
 
45449
- newNode.children = childres;
46350
+ newNode.children = newChildren;
45450
46351
  }
45451
46352
 
45452
46353
  res.push(newNode);
@@ -45722,8 +46623,8 @@ function calcCheckedKeys(values, keyEntities) {
45722
46623
  const allChecked = every_default()(siblingKeys).call(siblingKeys, siblingKey => checkedKeys.has(siblingKey));
45723
46624
 
45724
46625
  if (!allChecked) {
45725
- const ancesterKeys = findAncestorKeys([key], keyEntities, false);
45726
- halfCheckedKeys = new set_default.a([...halfCheckedKeys, ...ancesterKeys]);
46626
+ const ancestorKeys = findAncestorKeys([key], keyEntities, false);
46627
+ halfCheckedKeys = new set_default.a([...halfCheckedKeys, ...ancestorKeys]);
45727
46628
  } else {
45728
46629
  checkedKeys.add(parent.key); // IMPORTANT! parent level may not exist in original level map; if add to the end directly may destroy the hierarchical order
45729
46630
 
@@ -45763,8 +46664,8 @@ function calcExpandedKeys() {
45763
46664
  }
45764
46665
 
45765
46666
  if (autoExpandParent) {
45766
- const ancesterKeys = findAncestorKeys(keyList, keyEntities, true);
45767
- return new set_default.a(ancesterKeys);
46667
+ const ancestorKeys = findAncestorKeys(keyList, keyEntities, true);
46668
+ return new set_default.a(ancestorKeys);
45768
46669
  }
45769
46670
 
45770
46671
  return new set_default.a(keyList);
@@ -45909,8 +46810,8 @@ function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKey
45909
46810
  const allChecked = every_default()(siblingKeys).call(siblingKeys, key => checkedKeys.has(key));
45910
46811
 
45911
46812
  if (!allChecked) {
45912
- const ancesterKeys = findAncestorKeys([key], keyEntities, false);
45913
- halfCheckedKeys = new set_default.a([...halfCheckedKeys, ...ancesterKeys]);
46813
+ const ancestorKeys = findAncestorKeys([key], keyEntities, false);
46814
+ halfCheckedKeys = new set_default.a([...halfCheckedKeys, ...ancestorKeys]);
45914
46815
  } else {
45915
46816
  const par = node.parent;
45916
46817
  checkedKeys.add(par.key);
@@ -45960,10 +46861,10 @@ function calcCheckedKeysForUnchecked(key, keyEntities, checkedKeys, halfCheckedK
45960
46861
 
45961
46862
  const anyChecked = some_default()(siblingKeys).call(siblingKeys, key => checkedKeys.has(key) || halfCheckedKeys.has(key));
45962
46863
 
45963
- const ancesterKeys = findAncestorKeys([key], keyEntities, false); // If there is checked or halfChecked in the sibling node, you need to change the parent node to halfChecked
46864
+ const ancestorKeys = findAncestorKeys([key], keyEntities, false); // If there is checked or halfChecked in the sibling node, you need to change the parent node to halfChecked
45964
46865
 
45965
46866
  if (anyChecked) {
45966
- for_each_default()(ancesterKeys).call(ancesterKeys, itemKey => {
46867
+ for_each_default()(ancestorKeys).call(ancestorKeys, itemKey => {
45967
46868
  if (checkedKeys.has(itemKey)) {
45968
46869
  checkedKeys.delete(itemKey);
45969
46870
  halfCheckedKeys.add(itemKey);
@@ -46510,7 +47411,7 @@ class foundation_CascaderFoundation extends foundation {
46510
47411
  activeKeys,
46511
47412
  loadingKeys,
46512
47413
  loading,
46513
- keyEntities: keyEntitieState,
47414
+ keyEntities: keyEntityState,
46514
47415
  selectedKeys: selectedKeysState
46515
47416
  } = this.getStates();
46516
47417
 
@@ -46581,7 +47482,7 @@ class foundation_CascaderFoundation extends foundation {
46581
47482
  } else if (loading) {
46582
47483
  // Use assign to avoid overwriting the'not-exist- * 'property of keyEntities after asynchronous loading
46583
47484
  // Overwriting'not-exist- * 'will cause selectionContent to be emptied unexpectedly when clicking on a dropDown item
46584
- updateStates.keyEntities = lodash_assign_default()(keyEntitieState, keyEntities);
47485
+ updateStates.keyEntities = lodash_assign_default()(keyEntityState, keyEntities);
46585
47486
 
46586
47487
  this._adapter.updateStates(updateStates);
46587
47488
 
@@ -46935,12 +47836,12 @@ class foundation_CascaderFoundation extends foundation {
46935
47836
 
46936
47837
  const prevCheckedStatus = checkedKeys.has(key); // next checked status
46937
47838
 
46938
- const curCheckedStatus = disableStrictly ? this.calcChekcedStatus(!prevCheckedStatus, key) : !prevCheckedStatus; // calculate all key of nodes that are checked or half checked
47839
+ const curCheckedStatus = disableStrictly ? this.calcCheckedStatus(!prevCheckedStatus, key) : !prevCheckedStatus; // calculate all key of nodes that are checked or half checked
46939
47840
 
46940
47841
  const {
46941
47842
  checkedKeys: curCheckedKeys,
46942
47843
  halfCheckedKeys: curHalfCheckedKeys
46943
- } = disableStrictly ? this.calcNonDisabedCheckedKeys(key, curCheckedStatus) : this.calcCheckedKeys(key, curCheckedStatus);
47844
+ } = disableStrictly ? this.calcNonDisabledCheckedKeys(key, curCheckedStatus) : this.calcCheckedKeys(key, curCheckedStatus);
46944
47845
  const mergeType = calcMergeType(autoMergeValue, leafOnly);
46945
47846
  const isLeafOnlyMerge = mergeType === cascader_constants_strings.LEAF_ONLY_MERGE_TYPE;
46946
47847
  const isNoneMerge = mergeType === cascader_constants_strings.NONE_MERGE_TYPE;
@@ -46998,7 +47899,7 @@ class foundation_CascaderFoundation extends foundation {
46998
47899
  });
46999
47900
  }
47000
47901
 
47001
- calcNonDisabedCheckedKeys(eventKey, targetStatus) {
47902
+ calcNonDisabledCheckedKeys(eventKey, targetStatus) {
47002
47903
  const {
47003
47904
  keyEntities,
47004
47905
  disabledKeys
@@ -47020,7 +47921,7 @@ class foundation_CascaderFoundation extends foundation {
47020
47921
  return calcCheckedKeys(newCheckedKeys, keyEntities);
47021
47922
  }
47022
47923
 
47023
- calcChekcedStatus(targetStatus, eventKey) {
47924
+ calcCheckedStatus(targetStatus, eventKey) {
47024
47925
  if (!targetStatus) {
47025
47926
  return targetStatus;
47026
47927
  }
@@ -47747,12 +48648,12 @@ checkbox_Checkbox.defaultProps = {
47747
48648
 
47748
48649
 
47749
48650
  class checkboxGroupFoundation_CheckboxGroupFoundation extends foundation {
47750
- static get checkboxGroupdefaultAdapter() {
48651
+ static get checkboxGroupDefaultAdapter() {
47751
48652
  return {};
47752
48653
  }
47753
48654
 
47754
48655
  constructor(adapter) {
47755
- super(assign_default()(assign_default()({}, checkboxGroupFoundation_CheckboxGroupFoundation.checkboxGroupdefaultAdapter), adapter));
48656
+ super(assign_default()(assign_default()({}, checkboxGroupFoundation_CheckboxGroupFoundation.checkboxGroupDefaultAdapter), adapter));
47756
48657
  }
47757
48658
 
47758
48659
  init() {
@@ -49362,7 +50263,7 @@ class cascader_Cascader extends baseComponent_BaseComponent {
49362
50263
  e.preventDefault();
49363
50264
  this.handleTagRemove(e, keyEntities[nodeKey].valuePath);
49364
50265
  }
49365
- }, displayProp === 'label' && keyEntities[nodeKey].data.label, displayProp === 'value' && keyEntities[nodeKey].data.value);
50266
+ }, keyEntities[nodeKey].data[displayProp]);
49366
50267
  }
49367
50268
  }
49368
50269
 
@@ -50929,8 +51830,8 @@ function isEmptyObject(target) {
50929
51830
  * }
50930
51831
  * the result of JSON.stringify(a/b/d) are same: '{}'
50931
51832
  * We can use the above features to remove keys with empty values in Form
50932
- * But we cannot use JSON.stringify() directly, because if the input parameter of JSON.stringify includes fiberNode, it will cause an TypeError: 'Convering circular structure to JSON'
50933
- * So we have to mock it's behavihor, also, the form value cannot have Symbol or function type, it can be ignored
51833
+ * But we cannot use JSON.stringify() directly, because if the input parameter of JSON.stringify includes fiberNode, it will cause an TypeError: 'Converting circular structure to JSON'
51834
+ * So we have to mock it's behavior, also, the form value cannot have Symbol or function type, it can be ignored
50934
51835
  */
50935
51836
  if (!isObject_default()(target)) {
50936
51837
  return false;
@@ -51538,7 +52439,7 @@ var validIANATimezoneCache = {}
51538
52439
  function isValidTimezoneIANAString(timeZoneString) {
51539
52440
  if (validIANATimezoneCache[timeZoneString]) return true
51540
52441
  try {
51541
- Intl.DateTimeFormat(undefined, { timeZone: timeZoneString })
52442
+ new Intl.DateTimeFormat(undefined, { timeZone: timeZoneString })
51542
52443
  validIANATimezoneCache[timeZoneString] = true
51543
52444
  return true
51544
52445
  } catch (error) {
@@ -55202,7 +56103,7 @@ function parseISO_validateTimezone(_hours, minutes) {
55202
56103
  * Parsing value to Date object
55203
56104
  */
55204
56105
 
55205
- function compatiableParse(value, formatToken, baseDate, locale) {
56106
+ function compatibleParse(value, formatToken, baseDate, locale) {
55206
56107
  let result = null;
55207
56108
 
55208
56109
  if (value) {
@@ -55552,7 +56453,7 @@ class foundation_DatePickerFoundation extends foundation {
55552
56453
  if (isValidDate(value)) {
55553
56454
  dateObj = value;
55554
56455
  } else if (isString_default()(value)) {
55555
- dateObj = compatiableParse(value, this.getProp('format'), undefined, dateFnsLocale);
56456
+ dateObj = compatibleParse(value, this.getProp('format'), undefined, dateFnsLocale);
55556
56457
  } else if (isTimestamp(value)) {
55557
56458
  dateObj = new Date(value);
55558
56459
  } else {
@@ -55930,7 +56831,7 @@ class foundation_DatePickerFoundation extends foundation {
55930
56831
  case 'date':
55931
56832
  case 'dateTime':
55932
56833
  case 'month':
55933
- parsedResult = input ? compatiableParse(input, formatToken, nowDate, dateFnsLocale) : '';
56834
+ parsedResult = input ? compatibleParse(input, formatToken, nowDate, dateFnsLocale) : '';
55934
56835
  formatedInput = parsedResult && isValid(parsedResult) && this.localeFormat(parsedResult, formatToken);
55935
56836
 
55936
56837
  if (parsedResult && formatedInput === input) {
@@ -55944,7 +56845,7 @@ class foundation_DatePickerFoundation extends foundation {
55944
56845
  const separator = rangeSeparator;
55945
56846
  const values = input.split(separator);
55946
56847
  parsedResult = values && reduce_default()(values).call(values, (arr, cur) => {
55947
- const parsedVal = cur && compatiableParse(cur, formatToken, nowDate, dateFnsLocale);
56848
+ const parsedVal = cur && compatibleParse(cur, formatToken, nowDate, dateFnsLocale);
55948
56849
  parsedVal && arr.push(parsedVal);
55949
56850
  return arr;
55950
56851
  }, []);
@@ -58121,7 +59022,7 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
58121
59022
  }
58122
59023
 
58123
59024
  initDefaultPickerValue() {
58124
- const defaultPickerValue = compatiableParse(this.getProp('defaultPickerValue'));
59025
+ const defaultPickerValue = compatibleParse(this.getProp('defaultPickerValue'));
58125
59026
 
58126
59027
  if (defaultPickerValue && isValidDate(defaultPickerValue)) {
58127
59028
  this._updatePanelDetail(datePicker_constants_strings.PANEL_TYPE_LEFT, {
@@ -58736,7 +59637,7 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
58736
59637
 
58737
59638
  const dateFormat = this.getValidDateFormat(); // When passed to the upper layer, it is converted into a Date object to ensure that the input parameter format of initFormDefaultValue is consistent
58738
59639
 
58739
- const newSelectedDates = map_default()(_context4 = [...newSelected]).call(_context4, _dateStr => compatiableParse(_dateStr, dateFormat, undefined, dateFnsLocale));
59640
+ const newSelectedDates = map_default()(_context4 = [...newSelected]).call(_context4, _dateStr => compatibleParse(_dateStr, dateFormat, undefined, dateFnsLocale));
58740
59641
 
58741
59642
  this.handleShowDateAndTime(panelType, time);
58742
59643
 
@@ -58771,10 +59672,10 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
58771
59672
 
58772
59673
  const dateFnsLocale = this._adapter.getProp('dateFnsLocale');
58773
59674
 
58774
- const dateStr = format_format(isValidDate(date) ? date : compatiableParse(date, datePicker_constants_strings.FORMAT_FULL_DATE, undefined, dateFnsLocale), datePicker_constants_strings.FORMAT_FULL_DATE);
58775
- const timeStr = format_format(isValidDate(time) ? time : compatiableParse(time, datePicker_constants_strings.FORMAT_TIME_PICKER, undefined, dateFnsLocale), datePicker_constants_strings.FORMAT_TIME_PICKER);
59675
+ const dateStr = format_format(isValidDate(date) ? date : compatibleParse(date, datePicker_constants_strings.FORMAT_FULL_DATE, undefined, dateFnsLocale), datePicker_constants_strings.FORMAT_FULL_DATE);
59676
+ const timeStr = format_format(isValidDate(time) ? time : compatibleParse(time, datePicker_constants_strings.FORMAT_TIME_PICKER, undefined, dateFnsLocale), datePicker_constants_strings.FORMAT_TIME_PICKER);
58776
59677
  const timeFormat = this.getValidTimeFormat();
58777
- return compatiableParse(concat_default()(_context5 = "".concat(dateStr, " ")).call(_context5, timeStr), timeFormat, undefined, dateFnsLocale);
59678
+ return compatibleParse(concat_default()(_context5 = "".concat(dateStr, " ")).call(_context5, timeStr), timeFormat, undefined, dateFnsLocale);
58778
59679
  }
58779
59680
 
58780
59681
  handleRangeSelected(day) {
@@ -58857,7 +59758,7 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
58857
59758
  const dateFormat = this.getValidDateFormat(); // only notify when choose completed
58858
59759
 
58859
59760
  if (rangeStart || rangeEnd) {
58860
- const [startDate, endDate] = [compatiableParse(rangeStart, dateFormat, undefined, dateFnsLocale), compatiableParse(rangeEnd, dateFormat, undefined, dateFnsLocale)];
59761
+ const [startDate, endDate] = [compatibleParse(rangeStart, dateFormat, undefined, dateFnsLocale), compatibleParse(rangeEnd, dateFormat, undefined, dateFnsLocale)];
58861
59762
  let date = [startDate, endDate]; // If the type is dateRangeTime, add the value of time
58862
59763
 
58863
59764
  if (type === 'dateTimeRange') {
@@ -58994,7 +59895,7 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
58994
59895
  // } else
58995
59896
 
58996
59897
  if (type === 'dateTimeRange' && destRange) {
58997
- const rangeDate = compatiableParse(destRange, dateFormat, undefined, dateFnsLocale);
59898
+ const rangeDate = compatibleParse(destRange, dateFormat, undefined, dateFnsLocale);
58998
59899
  year = rangeDate.getFullYear();
58999
59900
  monthNo = rangeDate.getMonth();
59000
59901
  date = rangeDate.getDate();
@@ -59043,8 +59944,8 @@ class monthsGridFoundation_MonthsGridFoundation extends foundation {
59043
59944
  const dateFormat = this.getValidDateFormat(); // TODO: Modify a time individually
59044
59945
 
59045
59946
  if (rangeStart && rangeEnd) {
59046
- let startDate = compatiableParse(rangeStart, dateFormat, undefined, dateFnsLocale);
59047
- let endDate = compatiableParse(rangeEnd, dateFormat, undefined, dateFnsLocale); // console.log('_updateTimeInDateRange()', rangeStart, rangeEnd, startDate, endDate);
59947
+ let startDate = compatibleParse(rangeStart, dateFormat, undefined, dateFnsLocale);
59948
+ let endDate = compatibleParse(rangeEnd, dateFormat, undefined, dateFnsLocale); // console.log('_updateTimeInDateRange()', rangeStart, rangeEnd, startDate, endDate);
59048
59949
 
59049
59950
  if (panelType === datePicker_constants_strings.PANEL_TYPE_RIGHT) {
59050
59951
  endDate = this._mergeDateAndTime(timeDate, timeDate);
@@ -60026,7 +60927,7 @@ const timePicker_constants_strings = {
60026
60927
  DEFAULT_MULTIPLE_SEPARATOR,
60027
60928
  SIZE: input_constants_strings.SIZE,
60028
60929
  DEFAULT_FORMAT: 'HH:mm:ss',
60029
- DEFAULT_FROMAT_A: 'a h:mm:ss',
60930
+ DEFAULT_FORMAT_A: 'a h:mm:ss',
60030
60931
  STATUS: VALIDATE_STATUS,
60031
60932
  DEFAULT_POSITION: {
60032
60933
  [TYPE_TIME_PICKER]: 'bottomLeft',
@@ -61119,7 +62020,7 @@ class ComboxFoundation_ComboboxFoundation extends foundation {
61119
62020
  if (this._isInProps('format')) {
61120
62021
  return this.getProp('format');
61121
62022
  } else if (this.getProp('use12Hours')) {
61122
- return timePicker_constants_strings.DEFAULT_FROMAT_A;
62023
+ return timePicker_constants_strings.DEFAULT_FORMAT_A;
61123
62024
  } else {
61124
62025
  return timePicker_constants_strings.DEFAULT_FORMAT;
61125
62026
  }
@@ -61510,7 +62411,7 @@ var fill_default = /*#__PURE__*/__webpack_require__.n(fill);
61510
62411
  // CONCATENATED MODULE: ../semi-foundation/datePicker/yearAndMonthFoundation.ts
61511
62412
 
61512
62413
 
61513
- class yearAndMonthFoundation_YearAndMonthFoundataion extends foundation {
62414
+ class yearAndMonthFoundation_YearAndMonthFoundation extends foundation {
61514
62415
  constructor(adapter) {
61515
62416
  super(assign_default()({}, adapter));
61516
62417
  } // eslint-disable-next-line @typescript-eslint/no-empty-function
@@ -61672,7 +62573,7 @@ class yearAndMonth_YearAndMonth extends baseComponent_BaseComponent {
61672
62573
  };
61673
62574
  this.yearRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
61674
62575
  this.monthRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
61675
- this.foundation = new yearAndMonthFoundation_YearAndMonthFoundataion(this.adapter);
62576
+ this.foundation = new yearAndMonthFoundation_YearAndMonthFoundation(this.adapter);
61676
62577
  }
61677
62578
 
61678
62579
  get adapter() {
@@ -61878,7 +62779,7 @@ function getDefaultPickerDate(options) {
61878
62779
  break;
61879
62780
 
61880
62781
  case typeof nowDate === 'string':
61881
- nowDate = compatiableParse(nowDate, format, undefined, dateFnsLocale);
62782
+ nowDate = compatibleParse(nowDate, format, undefined, dateFnsLocale);
61882
62783
  break;
61883
62784
 
61884
62785
  default:
@@ -61895,7 +62796,7 @@ function getDefaultPickerDate(options) {
61895
62796
  break;
61896
62797
 
61897
62798
  case typeof nextDate === 'string':
61898
- nextDate = compatiableParse(nextDate, format, undefined, dateFnsLocale);
62799
+ nextDate = compatibleParse(nextDate, format, undefined, dateFnsLocale);
61899
62800
  break;
61900
62801
 
61901
62802
  default:
@@ -62385,7 +63286,7 @@ class monthsGrid_MonthsGrid extends baseComponent_BaseComponent {
62385
63286
  const dateFormat = this.foundation.getValidDateFormat();
62386
63287
  let startDate, endDate;
62387
63288
 
62388
- if (type === 'dateTimeRange' && rangeStart && rangeEnd && isSameDay(startDate = compatiableParse(rangeStart, dateFormat, undefined, dateFnsLocale), endDate = compatiableParse(rangeEnd, dateFormat, undefined, dateFnsLocale))) {
63289
+ if (type === 'dateTimeRange' && rangeStart && rangeEnd && isSameDay(startDate = compatibleParse(rangeStart, dateFormat, undefined, dateFnsLocale), endDate = compatibleParse(rangeEnd, dateFormat, undefined, dateFnsLocale))) {
62389
63290
  if (panelType === datePicker_constants_strings.PANEL_TYPE_RIGHT) {
62390
63291
  rangeStart && (restProps.startDate = startDate);
62391
63292
  } else {
@@ -62471,10 +63372,10 @@ class monthsGrid_MonthsGrid extends baseComponent_BaseComponent {
62471
63372
 
62472
63373
  if (panelType === datePicker_constants_strings.PANEL_TYPE_LEFT) {
62473
63374
  panelDetail = monthLeft;
62474
- dateText = rangeStart ? format_format(compatiableParse(rangeStart, dateFormat, undefined, dateFnsLocale), FORMAT_SWITCH_DATE) : '';
63375
+ dateText = rangeStart ? format_format(compatibleParse(rangeStart, dateFormat, undefined, dateFnsLocale), FORMAT_SWITCH_DATE) : '';
62475
63376
  } else {
62476
63377
  panelDetail = monthRight;
62477
- dateText = rangeEnd ? format_format(compatiableParse(rangeEnd, dateFormat, undefined, dateFnsLocale), FORMAT_SWITCH_DATE) : '';
63378
+ dateText = rangeEnd ? format_format(compatibleParse(rangeEnd, dateFormat, undefined, dateFnsLocale), FORMAT_SWITCH_DATE) : '';
62478
63379
  }
62479
63380
 
62480
63381
  const {
@@ -62484,7 +63385,7 @@ class monthsGrid_MonthsGrid extends baseComponent_BaseComponent {
62484
63385
  const monthText = showDate ? format_format(showDate, FORMAT_SWITCH_DATE) : '';
62485
63386
  const timeText = showDate ? format_format(showDate, formatTimePicker) : '';
62486
63387
 
62487
- const showSwithIcon = includes_default()(_context3 = ['default']).call(_context3, density);
63388
+ const showSwitchIcon = includes_default()(_context3 = ['default']).call(_context3, density);
62488
63389
 
62489
63390
  const switchCls = classnames_default()("".concat(monthsGrid_prefixCls, "-switch"));
62490
63391
  const dateCls = classnames_default()({
@@ -62505,7 +63406,7 @@ class monthsGrid_MonthsGrid extends baseComponent_BaseComponent {
62505
63406
  "aria-label": "Switch to date panel",
62506
63407
  className: dateCls,
62507
63408
  onClick: e => this.foundation.showDatePanel(panelType)
62508
- }, showSwithIcon && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconCalendar, {
63409
+ }, showSwitchIcon && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconCalendar, {
62509
63410
  "aria-hidden": true
62510
63411
  }), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
62511
63412
  className: textCls
@@ -62514,7 +63415,7 @@ class monthsGrid_MonthsGrid extends baseComponent_BaseComponent {
62514
63415
  "aria-label": "Switch to time panel",
62515
63416
  className: timeCls,
62516
63417
  onClick: e => this.foundation.showTimePicker(panelType, true)
62517
- }, showSwithIcon && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClock, {
63418
+ }, showSwitchIcon && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(IconClock, {
62518
63419
  "aria-hidden": true
62519
63420
  }), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("span", {
62520
63421
  className: textCls
@@ -66051,20 +66952,6 @@ const LayoutContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_
66051
66952
  }
66052
66953
  });
66053
66954
  /* harmony default export */ var layout_context = (LayoutContext);
66054
- // CONCATENATED MODULE: ../semi-foundation/utils/getDataAttr.ts
66055
-
66056
-
66057
- function getDataAttr(props) {
66058
- var _context;
66059
-
66060
- return reduce_default()(_context = keys_default()(props)).call(_context, (prev, key) => {
66061
- if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
66062
- prev[key] = props[key];
66063
- }
66064
-
66065
- return prev;
66066
- }, {});
66067
- }
66068
66955
  // CONCATENATED MODULE: ./layout/Sider.tsx
66069
66956
 
66070
66957
 
@@ -67667,9 +68554,9 @@ var toString_default = /*#__PURE__*/__webpack_require__.n(lodash_toString);
67667
68554
  var toNumber = __webpack_require__("nvU9");
67668
68555
  var toNumber_default = /*#__PURE__*/__webpack_require__.n(toNumber);
67669
68556
 
67670
- // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime-corejs3/core-js-stable/set-interval.js
67671
- var set_interval = __webpack_require__("1l5A");
67672
- var set_interval_default = /*#__PURE__*/__webpack_require__.n(set_interval);
68557
+ // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js
68558
+ var is_nan = __webpack_require__("gobS");
68559
+ var is_nan_default = /*#__PURE__*/__webpack_require__.n(is_nan);
67673
68560
 
67674
68561
  // CONCATENATED MODULE: ../semi-foundation/inputNumber/constants.ts
67675
68562
 
@@ -67717,6 +68604,8 @@ function minus(num1, num2) {
67717
68604
 
67718
68605
 
67719
68606
 
68607
+
68608
+
67720
68609
  /* eslint-disable max-len */
67721
68610
 
67722
68611
  /* eslint-disable no-param-reassign */
@@ -67917,9 +68806,9 @@ class foundation_InputNumberFoundation extends foundation {
67917
68806
 
67918
68807
  this._adapter.recordCursorPosition();
67919
68808
 
67920
- const formatedVal = code === utils_keyCode.UP ? this.add() : this.minus();
68809
+ const formattedVal = code === utils_keyCode.UP ? this.add() : this.minus();
67921
68810
 
67922
- this._doInput(formatedVal, event, () => {
68811
+ this._doInput(formattedVal, event, () => {
67923
68812
  this._adapter.restoreCursor();
67924
68813
  });
67925
68814
 
@@ -68093,18 +68982,22 @@ class foundation_InputNumberFoundation extends foundation {
68093
68982
  value
68094
68983
  } = this.getProps();
68095
68984
  const propsValue = this._isControlledComponent('value') ? value : defaultValue;
68096
- const tmpNumer = this.doParse(toString_default()(propsValue), false, true, true);
68985
+ const tmpNumber = this.doParse(toString_default()(propsValue), false, true, true);
68097
68986
  let number = null;
68098
68987
 
68099
- if (typeof tmpNumer === 'number' && !isNaN(tmpNumer)) {
68100
- number = tmpNumer;
68988
+ if (typeof tmpNumber === 'number' && !isNaN(tmpNumber)) {
68989
+ number = tmpNumber;
68101
68990
  }
68102
68991
 
68103
- const formatedValue = typeof number === 'number' ? this.doFormat(number, true) : '';
68992
+ const formattedValue = typeof number === 'number' ? this.doFormat(number, true) : '';
68104
68993
 
68105
68994
  this._adapter.setNumber(number);
68106
68995
 
68107
- this._adapter.setValue(formatedValue);
68996
+ this._adapter.setValue(formattedValue);
68997
+
68998
+ if (isString_default()(formattedValue) && formattedValue !== String(propsValue)) {
68999
+ this.notifyChange(formattedValue, null);
69000
+ }
68108
69001
  }
68109
69002
 
68110
69003
  add(step, event) {
@@ -68175,7 +69068,7 @@ class foundation_InputNumberFoundation extends foundation {
68175
69068
  _adjustPrec(num) {
68176
69069
  const precision = this.getProp('precision');
68177
69070
 
68178
- if (typeof precision === 'number' && num !== '') {
69071
+ if (typeof precision === 'number' && num !== '' && num !== null && !is_nan_default()(Number(num))) {
68179
69072
  num = Number(num).toFixed(precision);
68180
69073
  }
68181
69074
 
@@ -68393,6 +69286,10 @@ class foundation_InputNumberFoundation extends foundation {
68393
69286
  }
68394
69287
  }
68395
69288
 
69289
+ updateStates(states, callback) {
69290
+ this._adapter.updateStates(states, callback);
69291
+ }
69292
+
68396
69293
  }
68397
69294
 
68398
69295
  /* harmony default export */ var inputNumber_foundation = (foundation_InputNumberFoundation);
@@ -68409,6 +69306,7 @@ var inputNumber = __webpack_require__("KwJG");
68409
69306
 
68410
69307
 
68411
69308
 
69309
+
68412
69310
  var inputNumber_rest = undefined && undefined.__rest || function (s, e) {
68413
69311
  var t = {};
68414
69312
 
@@ -68673,6 +69571,9 @@ class inputNumber_InputNumber extends baseComponent_BaseComponent {
68673
69571
  },
68674
69572
  setClickUpOrDown: value => {
68675
69573
  this.clickUpOrDown = value;
69574
+ },
69575
+ updateStates: (states, callback) => {
69576
+ this.setState(states, callback);
68676
69577
  }
68677
69578
  });
68678
69579
  }
@@ -68684,6 +69585,7 @@ class inputNumber_InputNumber extends baseComponent_BaseComponent {
68684
69585
  const {
68685
69586
  focusing
68686
69587
  } = this.state;
69588
+ let newValue;
68687
69589
  /**
68688
69590
  * To determine whether the front and back are equal
68689
69591
  * NaN need to check whether both are NaN
@@ -68691,8 +69593,9 @@ class inputNumber_InputNumber extends baseComponent_BaseComponent {
68691
69593
 
68692
69594
  if (value !== prevProps.value && !utils_isBothNaN(value, prevProps.value)) {
68693
69595
  if (isNullOrUndefined(value) || value === '') {
68694
- this.setState({
68695
- value: '',
69596
+ newValue = '';
69597
+ this.foundation.updateStates({
69598
+ value: newValue,
68696
69599
  number: null
68697
69600
  });
68698
69601
  } else {
@@ -68748,33 +69651,42 @@ class inputNumber_InputNumber extends baseComponent_BaseComponent {
68748
69651
 
68749
69652
  if (this.clickUpOrDown) {
68750
69653
  obj.value = this.foundation.doFormat(valueStr, true);
69654
+ newValue = obj.value;
68751
69655
  }
68752
69656
 
68753
- this.setState(obj, () => this.adapter.restoreCursor());
69657
+ this.foundation.updateStates(obj, () => this.adapter.restoreCursor());
68754
69658
  } else if (!isNaN_default()(toNum)) {
68755
69659
  // Update input content when controlled input is illegal and not NaN
68756
- this.setState({
68757
- value: this.foundation.doFormat(toNum, false)
69660
+ newValue = this.foundation.doFormat(toNum, false);
69661
+ this.foundation.updateStates({
69662
+ value: newValue
68758
69663
  });
68759
69664
  } else {
68760
69665
  // Update input content when controlled input NaN
68761
- this.setState({
68762
- value: this.foundation.doFormat(valueStr, false)
69666
+ newValue = this.foundation.doFormat(valueStr, false);
69667
+ this.foundation.updateStates({
69668
+ value: newValue
68763
69669
  });
68764
69670
  }
68765
69671
  } else if (this.foundation.isValidNumber(parsedNum)) {
68766
- this.setState({
69672
+ newValue = this.foundation.doFormat(parsedNum);
69673
+ this.foundation.updateStates({
68767
69674
  number: parsedNum,
68768
- value: this.foundation.doFormat(parsedNum)
69675
+ value: newValue
68769
69676
  });
68770
69677
  } else {
68771
69678
  // Invalid digital analog blurring effect instead of controlled failure
68772
- this.setState({
69679
+ newValue = '';
69680
+ this.foundation.updateStates({
68773
69681
  number: null,
68774
- value: ''
69682
+ value: newValue
68775
69683
  });
68776
69684
  }
68777
69685
  }
69686
+
69687
+ if (isString_default()(newValue) && newValue !== String(this.props.value)) {
69688
+ this.foundation.notifyChange(newValue, null);
69689
+ }
68778
69690
  }
68779
69691
 
68780
69692
  if (!this.clickUpOrDown) {
@@ -69107,7 +70019,7 @@ class foundation_NavigationFoundation extends foundation {
69107
70019
  const {
69108
70020
  itemKeysMap,
69109
70021
  willOpenKeys,
69110
- formatedItems
70022
+ formattedItems
69111
70023
  } = this.getCalcState();
69112
70024
  const parentSelectKeys = this.selectLevelZeroParentKeys(itemKeysMap, willSelectedKeys);
69113
70025
  willSelectedKeys = concat_default()(willSelectedKeys).call(willSelectedKeys, parentSelectKeys);
@@ -69117,7 +70029,7 @@ class foundation_NavigationFoundation extends foundation {
69117
70029
  selectedKeys: willSelectedKeys,
69118
70030
  itemKeysMap,
69119
70031
  openKeys: willOpenKeys,
69120
- items: formatedItems
70032
+ items: formattedItems
69121
70033
  };
69122
70034
  } else {
69123
70035
  this._adapter.updateSelectedKeys(willSelectedKeys);
@@ -69126,7 +70038,7 @@ class foundation_NavigationFoundation extends foundation {
69126
70038
 
69127
70039
  this._adapter.updateOpenKeys(willOpenKeys);
69128
70040
 
69129
- this._adapter.updateItems(formatedItems);
70041
+ this._adapter.updateItems(formattedItems);
69130
70042
 
69131
70043
  this._adapter.setItemsChanged(true);
69132
70044
  }
@@ -69141,13 +70053,13 @@ class foundation_NavigationFoundation extends foundation {
69141
70053
  getCalcState() {
69142
70054
  const {
69143
70055
  itemKeysMap,
69144
- formatedItems
69145
- } = this.getFormatedItems();
70056
+ formattedItems
70057
+ } = this.getFormattedItems();
69146
70058
  const willOpenKeys = this.getWillOpenKeys(itemKeysMap);
69147
70059
  return {
69148
70060
  itemKeysMap,
69149
70061
  willOpenKeys,
69150
- formatedItems
70062
+ formattedItems
69151
70063
  };
69152
70064
  }
69153
70065
  /**
@@ -69155,17 +70067,17 @@ class foundation_NavigationFoundation extends foundation {
69155
70067
  */
69156
70068
 
69157
70069
 
69158
- getFormatedItems() {
70070
+ getFormattedItems() {
69159
70071
  const {
69160
70072
  items,
69161
70073
  children
69162
70074
  } = this.getProps();
69163
- const formatedItems = this.formatItems(items);
69164
- const willHandleItems = is_array_default()(items) && items.length ? formatedItems : children;
70075
+ const formattedItems = this.formatItems(items);
70076
+ const willHandleItems = is_array_default()(items) && items.length ? formattedItems : children;
69165
70077
  const itemKeysMap = foundation_NavigationFoundation.buildItemKeysMap(willHandleItems);
69166
70078
  return {
69167
70079
  itemKeysMap,
69168
- formatedItems
70080
+ formattedItems
69169
70081
  };
69170
70082
  }
69171
70083
  /**
@@ -69256,13 +70168,13 @@ class foundation_NavigationFoundation extends foundation {
69256
70168
 
69257
70169
  formatItems() {
69258
70170
  let items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
69259
- const formatedItems = [];
70171
+ const formattedItems = [];
69260
70172
 
69261
70173
  for (const item of items) {
69262
- formatedItems.push(new NavItem_NavItem(item));
70174
+ formattedItems.push(new NavItem_NavItem(item));
69263
70175
  }
69264
70176
 
69265
- return formatedItems;
70177
+ return formattedItems;
69266
70178
  }
69267
70179
 
69268
70180
  handleSelect(data) {
@@ -74550,10 +75462,6 @@ function shouldComponentUpdate(nextProps, nextState) {
74550
75462
 
74551
75463
  //# sourceMappingURL=index.esm.js.map
74552
75464
 
74553
- // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js
74554
- var is_nan = __webpack_require__("gobS");
74555
- var is_nan_default = /*#__PURE__*/__webpack_require__.n(is_nan);
74556
-
74557
75465
  // CONCATENATED MODULE: ../semi-foundation/pagination/constants.ts
74558
75466
 
74559
75467
  const pagination_constants_cssClasses = {
@@ -83007,6 +83915,24 @@ steps_Steps.defaultProps = {
83007
83915
  class foundation_SwitchFoundation extends foundation {
83008
83916
  constructor(adapter) {
83009
83917
  super(assign_default()({}, adapter));
83918
+
83919
+ this.handleFocusVisible = event => {
83920
+ const {
83921
+ target
83922
+ } = event;
83923
+
83924
+ try {
83925
+ if (target.matches(':focus-visible')) {
83926
+ this._adapter.setFocusVisible(true);
83927
+ }
83928
+ } catch (error) {
83929
+ console.warn('The current browser does not support the focus-visible');
83930
+ }
83931
+ };
83932
+
83933
+ this.handleBlur = () => {
83934
+ this._adapter.setFocusVisible(false);
83935
+ };
83010
83936
  }
83011
83937
 
83012
83938
  init() {
@@ -83048,6 +83974,7 @@ class foundation_SwitchFoundation extends foundation {
83048
83974
 
83049
83975
  const switch_constants_cssClasses = {
83050
83976
  PREFIX: "".concat(BASE_CLASS_PREFIX, "-switch"),
83977
+ FOCUS: "".concat(BASE_CLASS_PREFIX, "-switch-focus"),
83051
83978
  LARGE: "".concat(BASE_CLASS_PREFIX, "-switch-large"),
83052
83979
  SMALL: "".concat(BASE_CLASS_PREFIX, "-switch-small"),
83053
83980
  CHECKED: "".concat(BASE_CLASS_PREFIX, "-switch-checked"),
@@ -83071,7 +83998,7 @@ var switch_switch = __webpack_require__("DE4K");
83071
83998
 
83072
83999
 
83073
84000
 
83074
- /* eslint-disable max-len, jsx-a11y/role-supports-aria-props */
84001
+ /* eslint-disable max-len */
83075
84002
 
83076
84003
 
83077
84004
 
@@ -83084,9 +84011,19 @@ var switch_switch = __webpack_require__("DE4K");
83084
84011
  class switch_Switch extends baseComponent_BaseComponent {
83085
84012
  constructor(props) {
83086
84013
  super(props);
84014
+
84015
+ this.handleFocusVisible = event => {
84016
+ this.foundation.handleFocusVisible(event);
84017
+ };
84018
+
84019
+ this.handleBlur = event => {
84020
+ this.foundation.handleBlur();
84021
+ };
84022
+
83087
84023
  this.state = {
83088
84024
  nativeControlChecked: false,
83089
- nativeControlDisabled: false
84025
+ nativeControlDisabled: false,
84026
+ focusVisible: false
83090
84027
  };
83091
84028
  this.switchRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createRef();
83092
84029
  this.foundation = new foundation_SwitchFoundation(this.adapter);
@@ -83122,6 +84059,11 @@ class switch_Switch extends baseComponent_BaseComponent {
83122
84059
  nativeControlDisabled
83123
84060
  });
83124
84061
  },
84062
+ setFocusVisible: focusVisible => {
84063
+ this.setState({
84064
+ focusVisible
84065
+ });
84066
+ },
83125
84067
  notifyChange: (checked, e) => {
83126
84068
  this.props.onChange(checked, e);
83127
84069
  }
@@ -83131,7 +84073,8 @@ class switch_Switch extends baseComponent_BaseComponent {
83131
84073
  render() {
83132
84074
  const {
83133
84075
  nativeControlChecked,
83134
- nativeControlDisabled
84076
+ nativeControlDisabled,
84077
+ focusVisible
83135
84078
  } = this.state;
83136
84079
  const {
83137
84080
  className,
@@ -83150,11 +84093,11 @@ class switch_Switch extends baseComponent_BaseComponent {
83150
84093
  [switch_constants_cssClasses.DISABLED]: nativeControlDisabled,
83151
84094
  [switch_constants_cssClasses.LARGE]: size === 'large',
83152
84095
  [switch_constants_cssClasses.SMALL]: size === 'small',
83153
- [switch_constants_cssClasses.LOADING]: loading
84096
+ [switch_constants_cssClasses.LOADING]: loading,
84097
+ [switch_constants_cssClasses.FOCUS]: focusVisible
83154
84098
  });
83155
84099
  const switchProps = {
83156
84100
  type: 'checkbox',
83157
- role: 'switch',
83158
84101
  className: switch_constants_cssClasses.NATIVE_CONTROL,
83159
84102
  disabled: nativeControlDisabled || loading,
83160
84103
  checked: nativeControlChecked || false
@@ -83179,13 +84122,17 @@ class switch_Switch extends baseComponent_BaseComponent {
83179
84122
  }, uncheckedText) : null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("input", assign_default()({}, switchProps, {
83180
84123
  ref: this.switchRef,
83181
84124
  id: id,
84125
+ role: 'switch',
83182
84126
  "aria-checked": nativeControlChecked,
83183
84127
  "aria-invalid": this.props['aria-invalid'],
83184
84128
  "aria-errormessage": this.props['aria-errormessage'],
83185
84129
  "aria-label": this.props['aria-label'],
83186
84130
  "aria-labelledby": this.props['aria-labelledby'],
83187
84131
  "aria-describedby": this.props["aria-describedby"],
83188
- onChange: e => this.foundation.handleChange(e.target.checked, e)
84132
+ "aria-disabled": this.props['disabled'],
84133
+ onChange: e => this.foundation.handleChange(e.target.checked, e),
84134
+ onFocus: e => this.handleFocusVisible(e),
84135
+ onBlur: e => this.handleBlur(e)
83189
84136
  })));
83190
84137
  }
83191
84138
 
@@ -90728,9 +91675,9 @@ class foundation_TabsFoundation extends foundation {
90728
91675
  }
90729
91676
 
90730
91677
  handleTabClick(activeKey, event) {
90731
- const isControledComponent = this._isInProps('activeKey');
91678
+ const isControlledComponent = this._isInProps('activeKey');
90732
91679
 
90733
- if (isControledComponent) {
91680
+ if (isControlledComponent) {
90734
91681
  this._notifyChange(activeKey);
90735
91682
  } else {
90736
91683
  this._notifyChange(activeKey);
@@ -92145,7 +93092,7 @@ class foundation_TimePickerFoundation extends foundation {
92145
93092
  if (this._isInProps('format')) {
92146
93093
  return this.getProp('format');
92147
93094
  } else if (this.getProp('use12Hours')) {
92148
- return timePicker_constants_strings.DEFAULT_FROMAT_A;
93095
+ return timePicker_constants_strings.DEFAULT_FORMAT_A;
92149
93096
  } else {
92150
93097
  return timePicker_constants_strings.DEFAULT_FORMAT;
92151
93098
  }
@@ -94398,7 +95345,7 @@ class foundation_TreeFoundation extends foundation {
94398
95345
  */
94399
95346
 
94400
95347
 
94401
- calcChekcedStatus(targetStatus, eventKey) {
95348
+ calcCheckedStatus(targetStatus, eventKey) {
94402
95349
  // From checked to unchecked, you can change it directly
94403
95350
  if (!targetStatus) {
94404
95351
  return targetStatus;
@@ -94431,7 +95378,7 @@ class foundation_TreeFoundation extends foundation {
94431
95378
  */
94432
95379
 
94433
95380
 
94434
- calcNonDisabedCheckedKeys(eventKey, targetStatus) {
95381
+ calcNonDisabledCheckedKeys(eventKey, targetStatus) {
94435
95382
  const {
94436
95383
  keyEntities,
94437
95384
  disabledKeys
@@ -94475,11 +95422,11 @@ class foundation_TreeFoundation extends foundation {
94475
95422
 
94476
95423
  if (checkRelation === 'related') {
94477
95424
  // Find the checked state of the current node
94478
- const targetStatus = disableStrictly ? this.calcChekcedStatus(!checked, eventKey) : !checked;
95425
+ const targetStatus = disableStrictly ? this.calcCheckedStatus(!checked, eventKey) : !checked;
94479
95426
  const {
94480
95427
  checkedKeys,
94481
95428
  halfCheckedKeys
94482
- } = disableStrictly ? this.calcNonDisabedCheckedKeys(eventKey, targetStatus) : this.calcCheckedKeys(eventKey, targetStatus);
95429
+ } = disableStrictly ? this.calcNonDisabledCheckedKeys(eventKey, targetStatus) : this.calcCheckedKeys(eventKey, targetStatus);
94483
95430
 
94484
95431
  this._adapter.notifySelect(eventKey, targetStatus, data);
94485
95432
 
@@ -96508,7 +97455,7 @@ tree_Tree.TreeNode = treeNode_TreeNode;
96508
97455
 
96509
97456
  const treeSelect_constants_cssClasses = {
96510
97457
  PREFIX: "".concat(BASE_CLASS_PREFIX, "-tree-select"),
96511
- PREFIXTREE: "".concat(BASE_CLASS_PREFIX, "-tree"),
97458
+ PREFIX_TREE: "".concat(BASE_CLASS_PREFIX, "-tree"),
96512
97459
  PREFIX_OPTION: "".concat(BASE_CLASS_PREFIX, "-tree-select-option")
96513
97460
  };
96514
97461
  const treeSelect_constants_strings = {
@@ -97132,11 +98079,11 @@ class foundation_TreeSelectFoundation extends foundation {
97132
98079
  } = treeNode;
97133
98080
 
97134
98081
  if (checkRelation === 'related') {
97135
- const targetStatus = disableStrictly ? this.calcChekcedStatus(!checked, eventKey) : !checked;
98082
+ const targetStatus = disableStrictly ? this.calcCheckedStatus(!checked, eventKey) : !checked;
97136
98083
  const {
97137
98084
  checkedKeys,
97138
98085
  halfCheckedKeys
97139
- } = disableStrictly ? this.calcNonDisabedCheckedKeys(eventKey, targetStatus) : this.calcCheckedKeys(eventKey, targetStatus);
98086
+ } = disableStrictly ? this.calcNonDisabledCheckedKeys(eventKey, targetStatus) : this.calcCheckedKeys(eventKey, targetStatus);
97140
98087
 
97141
98088
  this._adapter.notifySelect(eventKey, targetStatus, data);
97142
98089
 
@@ -97182,7 +98129,7 @@ class foundation_TreeSelectFoundation extends foundation {
97182
98129
  }
97183
98130
  }
97184
98131
 
97185
- calcNonDisabedCheckedKeys(eventKey, targetStatus) {
98132
+ calcNonDisabledCheckedKeys(eventKey, targetStatus) {
97186
98133
  const {
97187
98134
  keyEntities,
97188
98135
  disabledKeys
@@ -97204,7 +98151,7 @@ class foundation_TreeSelectFoundation extends foundation {
97204
98151
  return calcCheckedKeys(newCheckedKeys, keyEntities);
97205
98152
  }
97206
98153
 
97207
- calcChekcedStatus(targetStatus, eventKey) {
98154
+ calcCheckedStatus(targetStatus, eventKey) {
97208
98155
  if (!targetStatus) {
97209
98156
  return targetStatus;
97210
98157
  }
@@ -97433,7 +98380,7 @@ var treeSelect = __webpack_require__("uw59");
97433
98380
 
97434
98381
 
97435
98382
  const treeSelect_prefixcls = treeSelect_constants_cssClasses.PREFIX;
97436
- const prefixTree = treeSelect_constants_cssClasses.PREFIXTREE;
98383
+ const prefixTree = treeSelect_constants_cssClasses.PREFIX_TREE;
97437
98384
  const treeSelect_key = 0;
97438
98385
 
97439
98386
  class treeSelect_TreeSelect extends baseComponent_BaseComponent {
@@ -98912,7 +99859,7 @@ function mapFileTree(items) {
98912
99859
  const result = yield promise_default.a.all(promises);
98913
99860
  return result;
98914
99861
  } catch (error) {
98915
- console.warn('Catched error while loop directory.');
99862
+ console.warn('Captured error while loop directory.');
98916
99863
  console.error(error);
98917
99864
  return [];
98918
99865
  }
@@ -99037,13 +99984,13 @@ class foundation_UploadFoundation extends foundation {
99037
99984
  maxSize,
99038
99985
  minSize
99039
99986
  } = this.getProps();
99040
- let isIlligal = false;
99987
+ let isIllegal = false;
99041
99988
 
99042
99989
  if (size > maxSize * byteKB || size < minSize * byteKB) {
99043
- isIlligal = true;
99990
+ isIllegal = true;
99044
99991
  }
99045
99992
 
99046
- return isIlligal;
99993
+ return isIllegal;
99047
99994
  }
99048
99995
  /**
99049
99996
  * 1. 选择文件
@@ -99451,7 +100398,7 @@ class foundation_UploadFoundation extends foundation {
99451
100398
  });
99452
100399
 
99453
100400
  switch (true) {
99454
- // sync valiate - boolean
100401
+ // sync validate - boolean
99455
100402
  case buResult === true:
99456
100403
  {
99457
100404
  this.post(file);
@@ -99471,17 +100418,17 @@ class foundation_UploadFoundation extends foundation {
99471
100418
 
99472
100419
  case buResult && isPromise(buResult):
99473
100420
  {
99474
- promise_default.a.resolve(buResult).then(resloveData => {
100421
+ promise_default.a.resolve(buResult).then(resolveData => {
99475
100422
  var _context5;
99476
100423
 
99477
100424
  let newResult = {
99478
100425
  shouldUpload: true
99479
100426
  };
99480
100427
 
99481
- const typeOfResloveData = slice_default()(_context5 = Object.prototype.toString.call(resloveData)).call(_context5, 8, -1);
100428
+ const typeOfResolveData = slice_default()(_context5 = Object.prototype.toString.call(resolveData)).call(_context5, 8, -1);
99482
100429
 
99483
- if (typeOfResloveData === 'Object') {
99484
- newResult = assign_default()(assign_default()({}, newResult), resloveData);
100430
+ if (typeOfResolveData === 'Object') {
100431
+ newResult = assign_default()(assign_default()({}, newResult), resolveData);
99485
100432
  }
99486
100433
 
99487
100434
  this.handleBeforeUploadResultInObject(newResult, file);
@@ -101390,6 +102337,10 @@ function _nonIterableSpread() {
101390
102337
  function _toConsumableArray(arr) {
101391
102338
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
101392
102339
  }
102340
+ // EXTERNAL MODULE: /home/runner/work/semi-design/semi-design/node_modules/prop-types/index.js
102341
+ var semi_design_node_modules_prop_types = __webpack_require__("aWzz");
102342
+ var semi_design_node_modules_prop_types_default = /*#__PURE__*/__webpack_require__.n(semi_design_node_modules_prop_types);
102343
+
101393
102344
  // CONCATENATED MODULE: /home/runner/work/semi-design/semi-design/node_modules/react-sortable-hoc/dist/react-sortable-hoc.esm.js
101394
102345
 
101395
102346
 
@@ -101907,37 +102858,37 @@ function defaultShouldCancelStart(event) {
101907
102858
  }
101908
102859
 
101909
102860
  var propTypes = {
101910
- axis: prop_types_default.a.oneOf(['x', 'y', 'xy']),
101911
- contentWindow: prop_types_default.a.any,
101912
- disableAutoscroll: prop_types_default.a.bool,
101913
- distance: prop_types_default.a.number,
101914
- getContainer: prop_types_default.a.func,
101915
- getHelperDimensions: prop_types_default.a.func,
101916
- helperClass: prop_types_default.a.string,
101917
- 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)]),
101918
- hideSortableGhost: prop_types_default.a.bool,
101919
- keyboardSortingTransitionDuration: prop_types_default.a.number,
101920
- lockAxis: prop_types_default.a.string,
101921
- 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]))]),
101922
- lockToContainerEdges: prop_types_default.a.bool,
101923
- onSortEnd: prop_types_default.a.func,
101924
- onSortMove: prop_types_default.a.func,
101925
- onSortOver: prop_types_default.a.func,
101926
- onSortStart: prop_types_default.a.func,
101927
- pressDelay: prop_types_default.a.number,
101928
- pressThreshold: prop_types_default.a.number,
101929
- keyCodes: prop_types_default.a.shape({
101930
- lift: prop_types_default.a.arrayOf(prop_types_default.a.number),
101931
- drop: prop_types_default.a.arrayOf(prop_types_default.a.number),
101932
- cancel: prop_types_default.a.arrayOf(prop_types_default.a.number),
101933
- up: prop_types_default.a.arrayOf(prop_types_default.a.number),
101934
- down: prop_types_default.a.arrayOf(prop_types_default.a.number)
102861
+ axis: semi_design_node_modules_prop_types_default.a.oneOf(['x', 'y', 'xy']),
102862
+ contentWindow: semi_design_node_modules_prop_types_default.a.any,
102863
+ disableAutoscroll: semi_design_node_modules_prop_types_default.a.bool,
102864
+ distance: semi_design_node_modules_prop_types_default.a.number,
102865
+ getContainer: semi_design_node_modules_prop_types_default.a.func,
102866
+ getHelperDimensions: semi_design_node_modules_prop_types_default.a.func,
102867
+ helperClass: semi_design_node_modules_prop_types_default.a.string,
102868
+ 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)]),
102869
+ hideSortableGhost: semi_design_node_modules_prop_types_default.a.bool,
102870
+ keyboardSortingTransitionDuration: semi_design_node_modules_prop_types_default.a.number,
102871
+ lockAxis: semi_design_node_modules_prop_types_default.a.string,
102872
+ 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]))]),
102873
+ lockToContainerEdges: semi_design_node_modules_prop_types_default.a.bool,
102874
+ onSortEnd: semi_design_node_modules_prop_types_default.a.func,
102875
+ onSortMove: semi_design_node_modules_prop_types_default.a.func,
102876
+ onSortOver: semi_design_node_modules_prop_types_default.a.func,
102877
+ onSortStart: semi_design_node_modules_prop_types_default.a.func,
102878
+ pressDelay: semi_design_node_modules_prop_types_default.a.number,
102879
+ pressThreshold: semi_design_node_modules_prop_types_default.a.number,
102880
+ keyCodes: semi_design_node_modules_prop_types_default.a.shape({
102881
+ lift: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
102882
+ drop: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
102883
+ cancel: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
102884
+ up: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number),
102885
+ down: semi_design_node_modules_prop_types_default.a.arrayOf(semi_design_node_modules_prop_types_default.a.number)
101935
102886
  }),
101936
- shouldCancelStart: prop_types_default.a.func,
101937
- transitionDuration: prop_types_default.a.number,
101938
- updateBeforeSortStart: prop_types_default.a.func,
101939
- useDragHandle: prop_types_default.a.bool,
101940
- useWindowAsScrollContainer: prop_types_default.a.bool
102887
+ shouldCancelStart: semi_design_node_modules_prop_types_default.a.func,
102888
+ transitionDuration: semi_design_node_modules_prop_types_default.a.number,
102889
+ updateBeforeSortStart: semi_design_node_modules_prop_types_default.a.func,
102890
+ useDragHandle: semi_design_node_modules_prop_types_default.a.bool,
102891
+ useWindowAsScrollContainer: semi_design_node_modules_prop_types_default.a.bool
101941
102892
  };
101942
102893
  var defaultKeyCodes = {
101943
102894
  lift: [KEYCODE.SPACE],
@@ -102884,9 +103835,9 @@ function sortableContainer(WrappedComponent) {
102884
103835
  }
102885
103836
 
102886
103837
  var propTypes$1 = {
102887
- index: prop_types_default.a.number.isRequired,
102888
- collection: prop_types_default.a.oneOfType([prop_types_default.a.number, prop_types_default.a.string]),
102889
- disabled: prop_types_default.a.bool
103838
+ index: semi_design_node_modules_prop_types_default.a.number.isRequired,
103839
+ 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]),
103840
+ disabled: semi_design_node_modules_prop_types_default.a.bool
102890
103841
  };
102891
103842
  var omittedProps$1 = Object.keys(propTypes$1);
102892
103843
  function sortableElement(WrappedComponent) {
@@ -103006,7 +103957,7 @@ const transfer_constants_strings = {
103006
103957
  };
103007
103958
  const transfer_constants_numbers = {};
103008
103959
 
103009
- // CONCATENATED MODULE: ../semi-foundation/transfer/transferUtlls.ts
103960
+ // CONCATENATED MODULE: ../semi-foundation/transfer/transferUtils.ts
103010
103961
 
103011
103962
 
103012
103963
 
@@ -103019,7 +103970,7 @@ const transfer_constants_numbers = {};
103019
103970
 
103020
103971
 
103021
103972
 
103022
- var transferUtlls_rest = undefined && undefined.__rest || function (s, e) {
103973
+ var transferUtils_rest = undefined && undefined.__rest || function (s, e) {
103023
103974
  var t = {};
103024
103975
 
103025
103976
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && index_of_default()(e).call(e, p) < 0) t[p] = s[p];
@@ -103041,7 +103992,7 @@ function _generateGroupedData(dataSource) {
103041
103992
  const {
103042
103993
  children
103043
103994
  } = group,
103044
- rest = transferUtlls_rest(group, ["children"]);
103995
+ rest = transferUtils_rest(group, ["children"]);
103045
103996
 
103046
103997
  newData.push(assign_default()(assign_default()({}, item), {
103047
103998
  _parent: rest
@@ -104387,6 +105338,10 @@ class foundation_FormFoundation extends foundation {
104387
105338
  this.scrollToField = bind_default()(_context20 = this.scrollToField).call(_context20, this);
104388
105339
  }
104389
105340
 
105341
+ init() {
105342
+ this._adapter.initFormId();
105343
+ }
105344
+
104390
105345
  getField(field) {
104391
105346
  const targetField = this.fields.get(field);
104392
105347
  return targetField;
@@ -104643,7 +105598,7 @@ class foundation_FormFoundation extends foundation {
104643
105598
  let targetFields = new core_js_stable_map_default.a();
104644
105599
 
104645
105600
  if (!isUndefined_default()(fieldPaths)) {
104646
- // reset or validate spcific fields
105601
+ // reset or validate specific fields
104647
105602
  for_each_default()(fieldPaths).call(fieldPaths, path => {
104648
105603
  const field = this.fields.get(path); // may be undefined, if exists two fields like 'a[0]'、'a[1]', but user directly call reset(['a']) / validate(['a'])
104649
105604
 
@@ -104781,8 +105736,8 @@ class foundation_FormFoundation extends foundation {
104781
105736
  updateKey: new Date().valueOf()
104782
105737
  });
104783
105738
  });
104784
- } // When isOverrid is true, there may be a non-existent field in the values passed in, directly synchronized to formState.values
104785
- // 当isOverrid为true,传入的values中可能存在不存在的field时,直接将其同步到formState.values中
105739
+ } // When isOverride is true, there may be a non-existent field in the values passed in, directly synchronized to formState.values
105740
+ // 当isOverride为true,传入的values中可能存在不存在的field时,直接将其同步到formState.values中
104786
105741
 
104787
105742
 
104788
105743
  if (isOverride) {
@@ -104956,7 +105911,7 @@ class foundation_FormFoundation extends foundation {
104956
105911
  };
104957
105912
 
104958
105913
  const setTouched = (field, isTouched, opts) => {
104959
- const fieldApi = this.fields.get(field) ? this.fields.get(field).fieldApi : undefined; // touched is boolean variable, no need to execu deepClone like setValue
105914
+ const fieldApi = this.fields.get(field) ? this.fields.get(field).fieldApi : undefined; // touched is boolean variable, no need to exec deepClone like setValue
104960
105915
 
104961
105916
  if (fieldApi) {
104962
105917
  fieldApi.setTouched(isTouched, opts);
@@ -105043,7 +105998,7 @@ class foundation_FormFoundation extends foundation {
105043
105998
  getFormState() {
105044
105999
  let needClone = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
105045
106000
 
105046
- // NOTES:这里如果直接返回this.data,forceUpdae触发Formrerender时,通过context传下去的formState会被认为是同一个对象【应该是浅对比的原因】
106001
+ // NOTES:这里如果直接返回this.data,forceUpdate 触发 Form rerender 时,通过context传下去的formState会被认为是同一个对象【应该是浅对比的原因】
105047
106002
  // 使用了useFormState相关的component都不会触发重新渲染。所以使用...复制一次
105048
106003
 
105049
106004
  /*
@@ -106015,9 +106970,16 @@ function withField(Component, opts) {
106015
106970
  // eslint-disable-next-line @typescript-eslint/no-empty-function
106016
106971
  return () => {};
106017
106972
  } // log('register: ' + field);
106973
+ // field value may change after field component mounted, we use ref value here to get changed value
106018
106974
 
106019
106975
 
106020
- updater.register(field, fieldState, {
106976
+ const refValue = getVal();
106977
+ updater.register(field, {
106978
+ value: refValue,
106979
+ error,
106980
+ touched,
106981
+ status
106982
+ }, {
106021
106983
  field,
106022
106984
  fieldApi,
106023
106985
  keepState,
@@ -106307,7 +107269,7 @@ class baseForm_Form extends baseComponent_BaseComponent {
106307
107269
 
106308
107270
  super(props);
106309
107271
  this.state = {
106310
- formId: getUuidv4()
107272
+ formId: ''
106311
107273
  };
106312
107274
  Object(warning["a" /* default */])(Boolean(props.component && props.render), '[Semi Form] You should not use <Form component> and <Form render> in ths same time; <Form render> will be ignored');
106313
107275
  Object(warning["a" /* default */])(props.component && props.children && !isEmptyChildren(props.children), '[Semi Form] You should not use <Form component> and <Form>{children}</Form> in ths same time; <Form>{children}</Form> will be ignored');
@@ -106322,6 +107284,10 @@ class baseForm_Form extends baseComponent_BaseComponent {
106322
107284
  }
106323
107285
  }
106324
107286
 
107287
+ componentDidMount() {
107288
+ this.foundation.init();
107289
+ }
107290
+
106325
107291
  componentWillUnmount() {
106326
107292
  this.foundation.destroy();
106327
107293
  this.foundation = null;
@@ -106349,6 +107315,11 @@ class baseForm_Form extends baseComponent_BaseComponent {
106349
107315
  notifyReset: () => {
106350
107316
  this.props.onReset();
106351
107317
  },
107318
+ initFormId: () => {
107319
+ this.setState({
107320
+ formId: getUuidv4()
107321
+ });
107322
+ },
106352
107323
  getInitValues: () => this.props.initValues,
106353
107324
  getFormProps: keys => {
106354
107325
  if (typeof keys === 'undefined') {
@@ -106932,6 +107903,7 @@ arrayField_ArrayFieldComponent.contextType = FormUpdaterContext;
106932
107903
 
106933
107904
 
106934
107905
 
107906
+
106935
107907
 
106936
107908
 
106937
107909
  /** Form */
@@ -111414,10 +112386,10 @@ module.exports = baseForOwn;
111414
112386
  Object.defineProperty(exports, "__esModule", {
111415
112387
  value: true
111416
112388
  });
111417
- exports.getPrefix = getPrefix;
111418
112389
  exports.browserPrefixToKey = browserPrefixToKey;
111419
112390
  exports.browserPrefixToStyle = browserPrefixToStyle;
111420
112391
  exports.default = void 0;
112392
+ exports.getPrefix = getPrefix;
111421
112393
  var prefixes = ['Moz', 'Webkit', 'O', 'ms'];
111422
112394
 
111423
112395
  function getPrefix()