@sheinx/base 3.9.5-beta.8 → 3.9.5-beta.9
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.
- package/cjs/steps/steps.d.ts.map +1 -1
- package/cjs/steps/steps.js +1 -0
- package/esm/steps/steps.d.ts.map +1 -1
- package/esm/steps/steps.js +1 -0
- package/package.json +2 -2
package/cjs/steps/steps.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["steps.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,QAAA,MAAM,KAAK;YAAW,UAAU;;
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["steps.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,QAAA,MAAM,KAAK;YAAW,UAAU;;CA0E/B,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
package/cjs/steps/steps.js
CHANGED
|
@@ -49,6 +49,7 @@ var Steps = function Steps(props) {
|
|
|
49
49
|
var rootClass = (0, _classnames.default)(styles.rootClass, styles.steps, className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles[type], type), styles.small, size === 'small'), styles.large, size === 'large'), styles.vertical, direction === 'vertical'), styles.horizontal, direction === 'horizontal'), styles.click, onChange !== undefined));
|
|
50
50
|
var renderStep = function renderStep() {
|
|
51
51
|
return _react.Children.map(children, function (child, index) {
|
|
52
|
+
if (!child) return null;
|
|
52
53
|
var Child = child;
|
|
53
54
|
return /*#__PURE__*/(0, _react.cloneElement)(Child, {
|
|
54
55
|
id: 'id' in Child.props ? Child.props.id : index,
|
package/esm/steps/steps.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["steps.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,QAAA,MAAM,KAAK;YAAW,UAAU;;
|
|
1
|
+
{"version":3,"file":"steps.d.ts","sourceRoot":"","sources":["steps.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,QAAA,MAAM,KAAK;YAAW,UAAU;;CA0E/B,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
package/esm/steps/steps.js
CHANGED
|
@@ -42,6 +42,7 @@ var Steps = function Steps(props) {
|
|
|
42
42
|
var rootClass = classNames(styles.rootClass, styles.steps, className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles[type], type), styles.small, size === 'small'), styles.large, size === 'large'), styles.vertical, direction === 'vertical'), styles.horizontal, direction === 'horizontal'), styles.click, onChange !== undefined));
|
|
43
43
|
var renderStep = function renderStep() {
|
|
44
44
|
return Children.map(children, function (child, index) {
|
|
45
|
+
if (!child) return null;
|
|
45
46
|
var Child = child;
|
|
46
47
|
return /*#__PURE__*/cloneElement(Child, {
|
|
47
48
|
id: 'id' in Child.props ? Child.props.id : index,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.9.5-beta.
|
|
3
|
+
"version": "3.9.5-beta.9",
|
|
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.9.5-beta.
|
|
13
|
+
"@sheinx/hooks": "3.9.5-beta.9",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.3.3"
|