@sheinx/base 3.9.5-beta.7 → 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.
|
@@ -67,7 +67,7 @@ var ResultInput = function ResultInput(props) {
|
|
|
67
67
|
onBindInput === null || onBindInput === void 0 || onBindInput(inputRef.current);
|
|
68
68
|
}, []);
|
|
69
69
|
var renderResultPlaceholder = function renderResultPlaceholder() {
|
|
70
|
-
if (!inputText && !focus && props.placeholder && typeof props.placeholder !== 'string') {
|
|
70
|
+
if (props.isEmpty && !inputText && !focus && props.placeholder && typeof props.placeholder !== 'string') {
|
|
71
71
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
72
72
|
className: styles.inputPlaceholder,
|
|
73
73
|
children: props.placeholder
|
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,
|
|
@@ -59,7 +59,7 @@ var ResultInput = function ResultInput(props) {
|
|
|
59
59
|
onBindInput === null || onBindInput === void 0 || onBindInput(inputRef.current);
|
|
60
60
|
}, []);
|
|
61
61
|
var renderResultPlaceholder = function renderResultPlaceholder() {
|
|
62
|
-
if (!inputText && !focus && props.placeholder && typeof props.placeholder !== 'string') {
|
|
62
|
+
if (props.isEmpty && !inputText && !focus && props.placeholder && typeof props.placeholder !== 'string') {
|
|
63
63
|
return /*#__PURE__*/_jsx("div", {
|
|
64
64
|
className: styles.inputPlaceholder,
|
|
65
65
|
children: props.placeholder
|
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"
|