@sheinx/base 3.3.6-beta.6 → 3.3.6-beta.7

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.
@@ -315,8 +315,8 @@ var Cascader = function Cascader(props0) {
315
315
  return;
316
316
  }
317
317
  };
318
- var handleChange = function handleChange(item) {
319
- onChange === null || onChange === void 0 || onChange(item);
318
+ var handleChange = function handleChange(item, selectId) {
319
+ onChange === null || onChange === void 0 || onChange(item, selectId);
320
320
  };
321
321
  var handleClear = function handleClear(e) {
322
322
  e.stopPropagation();
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["tabs.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAe,SAAS,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOnD,QAAA,MAAM,IAAI;YAAW,SAAS;;CA6P7B,CAAC;AAIF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["tabs.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAe,SAAS,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOnD,QAAA,MAAM,IAAI;YAAW,SAAS;;CA4P7B,CAAC;AAIF,eAAe,IAAI,CAAC"}
package/cjs/tabs/tabs.js CHANGED
@@ -162,11 +162,10 @@ var Tabs = function Tabs(props) {
162
162
  className: tabsStyle.panelWrapper,
163
163
  style: panelStyle,
164
164
  children: _react.Children.toArray(children).map(function (child, index) {
165
- var Chlid = child;
166
- if (isNamedComponent(Chlid.type) && Chlid.type.displayName === 'ShineoutTabsPanel') {
167
- return /*#__PURE__*/(0, _react.cloneElement)(Chlid, {
168
- id: Chlid.props.id !== undefined ? Chlid.props.id : index,
169
- active: active
165
+ var Child = child;
166
+ if (isNamedComponent(Child.type) && Child.type.displayName === 'ShineoutTabsPanel') {
167
+ return /*#__PURE__*/(0, _react.cloneElement)(Child, {
168
+ id: Child.props.id !== undefined ? Child.props.id : index
170
169
  });
171
170
  }
172
171
  return null;
@@ -177,20 +176,20 @@ var Tabs = function Tabs(props) {
177
176
  var tabs = [];
178
177
  var border = getSplitColor();
179
178
  _react.Children.toArray(children).forEach(function (child, index) {
180
- var Chlid = child;
181
- if (!Chlid || !Chlid.type) return;
182
- var childBorder = Chlid.props.splitColor || Chlid.props.border;
183
- var _Chlid$props$id = Chlid.props.id,
184
- id = _Chlid$props$id === void 0 ? index : _Chlid$props$id;
179
+ var Child = child;
180
+ if (!Child || !Child.type) return;
181
+ var childBorder = Child.props.splitColor || Child.props.border;
182
+ var _Child$props$id = Child.props.id,
183
+ id = _Child$props$id === void 0 ? index : _Child$props$id;
185
184
  if (active === id && childBorder) {
186
185
  border = childBorder;
187
186
  }
188
187
  tabs.push({
189
- id: Chlid.props.id !== undefined ? Chlid.props.id : index,
190
- tab: Chlid.props.tab,
191
- disabled: Chlid.props.disabled,
188
+ id: Child.props.id !== undefined ? Child.props.id : index,
189
+ tab: Child.props.tab,
190
+ disabled: Child.props.disabled,
192
191
  jssStyle: jssStyle,
193
- color: Chlid.props.color || (active === id ? color : undefined)
192
+ color: Child.props.color || (active === id ? color : undefined)
194
193
  });
195
194
  });
196
195
  var header = /*#__PURE__*/(0, _jsxRuntime.jsx)(_tabsHeader.default, {
@@ -308,8 +308,8 @@ var Cascader = function Cascader(props0) {
308
308
  return;
309
309
  }
310
310
  };
311
- var handleChange = function handleChange(item) {
312
- onChange === null || onChange === void 0 || onChange(item);
311
+ var handleChange = function handleChange(item, selectId) {
312
+ onChange === null || onChange === void 0 || onChange(item, selectId);
313
313
  };
314
314
  var handleClear = function handleClear(e) {
315
315
  e.stopPropagation();
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["tabs.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAe,SAAS,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOnD,QAAA,MAAM,IAAI;YAAW,SAAS;;CA6P7B,CAAC;AAIF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["tabs.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAe,SAAS,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAOnD,QAAA,MAAM,IAAI;YAAW,SAAS;;CA4P7B,CAAC;AAIF,eAAe,IAAI,CAAC"}
package/esm/tabs/tabs.js CHANGED
@@ -155,11 +155,10 @@ var Tabs = function Tabs(props) {
155
155
  className: tabsStyle.panelWrapper,
156
156
  style: panelStyle,
157
157
  children: Children.toArray(children).map(function (child, index) {
158
- var Chlid = child;
159
- if (isNamedComponent(Chlid.type) && Chlid.type.displayName === 'ShineoutTabsPanel') {
160
- return /*#__PURE__*/cloneElement(Chlid, {
161
- id: Chlid.props.id !== undefined ? Chlid.props.id : index,
162
- active: active
158
+ var Child = child;
159
+ if (isNamedComponent(Child.type) && Child.type.displayName === 'ShineoutTabsPanel') {
160
+ return /*#__PURE__*/cloneElement(Child, {
161
+ id: Child.props.id !== undefined ? Child.props.id : index
163
162
  });
164
163
  }
165
164
  return null;
@@ -170,20 +169,20 @@ var Tabs = function Tabs(props) {
170
169
  var tabs = [];
171
170
  var border = getSplitColor();
172
171
  Children.toArray(children).forEach(function (child, index) {
173
- var Chlid = child;
174
- if (!Chlid || !Chlid.type) return;
175
- var childBorder = Chlid.props.splitColor || Chlid.props.border;
176
- var _Chlid$props$id = Chlid.props.id,
177
- id = _Chlid$props$id === void 0 ? index : _Chlid$props$id;
172
+ var Child = child;
173
+ if (!Child || !Child.type) return;
174
+ var childBorder = Child.props.splitColor || Child.props.border;
175
+ var _Child$props$id = Child.props.id,
176
+ id = _Child$props$id === void 0 ? index : _Child$props$id;
178
177
  if (active === id && childBorder) {
179
178
  border = childBorder;
180
179
  }
181
180
  tabs.push({
182
- id: Chlid.props.id !== undefined ? Chlid.props.id : index,
183
- tab: Chlid.props.tab,
184
- disabled: Chlid.props.disabled,
181
+ id: Child.props.id !== undefined ? Child.props.id : index,
182
+ tab: Child.props.tab,
183
+ disabled: Child.props.disabled,
185
184
  jssStyle: jssStyle,
186
- color: Chlid.props.color || (active === id ? color : undefined)
185
+ color: Child.props.color || (active === id ? color : undefined)
187
186
  });
188
187
  });
189
188
  var header = /*#__PURE__*/_jsx(TabsHeader, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.3.6-beta.6",
3
+ "version": "3.3.6-beta.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.3.6-beta.6",
13
+ "@sheinx/hooks": "3.3.6-beta.7",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"