wargerm 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,5 +20,5 @@ declare type Props = {
20
20
  sliderTabs?: IsliderTabs;
21
21
  style?: Record<string, string>;
22
22
  };
23
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<any>>;
23
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Props & React.RefAttributes<any>>>;
24
24
  export default _default;
package/dist/index.esm.js CHANGED
@@ -9561,6 +9561,7 @@ var Index$c = function Index(_ref, ref) {
9561
9561
  className: "sliderTabs ".concat(sliderTabs.direction == 'left' ? "left ".concat(sliderTabs.className || '') : "right ".concat(sliderTabs.className || ''))
9562
9562
  }, (sliderTabs === null || sliderTabs === void 0 ? void 0 : sliderTabs.renderTab) ? sliderTabs === null || sliderTabs === void 0 ? void 0 : sliderTabs.renderTab : sliderTabs === null || sliderTabs === void 0 ? void 0 : (_sliderTabs$tabs = sliderTabs.tabs) === null || _sliderTabs$tabs === void 0 ? void 0 : _sliderTabs$tabs.map(function (item, index) {
9563
9563
  return /*#__PURE__*/React.createElement("div", {
9564
+ key: index,
9564
9565
  className: "tab ".concat(index == activeTab ? "active ".concat(sliderTabs.activeTabClassName || '') : '', " ").concat(sliderTabs.tabClassName || '')
9565
9566
  }, /*#__PURE__*/React.createElement("span", {
9566
9567
  onClick: function onClick() {
@@ -9571,7 +9572,7 @@ var Index$c = function Index(_ref, ref) {
9571
9572
  }))));
9572
9573
  };
9573
9574
 
9574
- var index$2 = /*#__PURE__*/forwardRef(Index$c);
9575
+ var index$2 = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(Index$c));
9575
9576
 
9576
9577
  var controlShow = function controlShow(f1, f2, value, timer) {
9577
9578
  f1(value);
package/dist/index.js CHANGED
@@ -9620,6 +9620,7 @@ var Index$c = function Index(_ref, ref) {
9620
9620
  className: "sliderTabs ".concat(sliderTabs.direction == 'left' ? "left ".concat(sliderTabs.className || '') : "right ".concat(sliderTabs.className || ''))
9621
9621
  }, (sliderTabs === null || sliderTabs === void 0 ? void 0 : sliderTabs.renderTab) ? sliderTabs === null || sliderTabs === void 0 ? void 0 : sliderTabs.renderTab : sliderTabs === null || sliderTabs === void 0 ? void 0 : (_sliderTabs$tabs = sliderTabs.tabs) === null || _sliderTabs$tabs === void 0 ? void 0 : _sliderTabs$tabs.map(function (item, index) {
9622
9622
  return /*#__PURE__*/React__default['default'].createElement("div", {
9623
+ key: index,
9623
9624
  className: "tab ".concat(index == activeTab ? "active ".concat(sliderTabs.activeTabClassName || '') : '', " ").concat(sliderTabs.tabClassName || '')
9624
9625
  }, /*#__PURE__*/React__default['default'].createElement("span", {
9625
9626
  onClick: function onClick() {
@@ -9630,7 +9631,7 @@ var Index$c = function Index(_ref, ref) {
9630
9631
  }))));
9631
9632
  };
9632
9633
 
9633
- var index$2 = /*#__PURE__*/React.forwardRef(Index$c);
9634
+ var index$2 = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(Index$c));
9634
9635
 
9635
9636
  var controlShow = function controlShow(f1, f2, value, timer) {
9636
9637
  f1(value);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "wargerm",
4
- "version": "0.5.1",
4
+ "version": "0.5.2",
5
5
  "scripts": {
6
6
  "dev": "dumi dev",
7
7
  "docs:build": "dumi build",