@sheinx/base 3.5.4-beta.6 → 3.5.4-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.
@@ -1 +1 @@
1
- {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["step.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,aAAa,CAAC;AAuGvD,QAAA,MAAM,gBAAgB,UAAW,aAAa,gBAE7C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["step.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,aAAa,CAAC;AA6GvD,QAAA,MAAM,gBAAgB,UAAW,aAAa,gBAE7C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
package/cjs/steps/step.js CHANGED
@@ -63,6 +63,7 @@ var Step = function Step(props) {
63
63
  var labelPlacement = getLabelPlacement();
64
64
  var rootClass = (0, _classnames.default)(styles.step, className, styles[status], _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.disabled, disabled), styles.finish, current > index), styles.horizontalLabel, labelPlacement === 'horizontal'), styles.verticalLabel, labelPlacement === 'vertical'), styles.widthDescription, !!description));
65
65
  var handleChange = function handleChange(e) {
66
+ if (disabled) return;
66
67
  onClick === null || onClick === void 0 || onClick(e, index, id);
67
68
  onChange === null || onChange === void 0 || onChange(index);
68
69
  };
@@ -1 +1 @@
1
- {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["step.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,aAAa,CAAC;AAuGvD,QAAA,MAAM,gBAAgB,UAAW,aAAa,gBAE7C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["step.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAa,aAAa,EAAE,MAAM,aAAa,CAAC;AA6GvD,QAAA,MAAM,gBAAgB,UAAW,aAAa,gBAE7C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
package/esm/steps/step.js CHANGED
@@ -56,6 +56,7 @@ var Step = function Step(props) {
56
56
  var labelPlacement = getLabelPlacement();
57
57
  var rootClass = classNames(styles.step, className, styles[status], _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles.disabled, disabled), styles.finish, current > index), styles.horizontalLabel, labelPlacement === 'horizontal'), styles.verticalLabel, labelPlacement === 'vertical'), styles.widthDescription, !!description));
58
58
  var handleChange = function handleChange(e) {
59
+ if (disabled) return;
59
60
  onClick === null || onClick === void 0 || onClick(e, index, id);
60
61
  onChange === null || onChange === void 0 || onChange(index);
61
62
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.5.4-beta.6",
3
+ "version": "3.5.4-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.5.4-beta.6",
13
+ "@sheinx/hooks": "3.5.4-beta.7",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"