@majoo-ui/react 1.61.7-rc.3 → 1.61.7-rc.4
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/index.esm.js +7 -6
- package/index.umd.js +7 -6
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -8064,9 +8064,10 @@ const InputGroup = _ref => {
|
|
|
8064
8064
|
size = 'lg'
|
|
8065
8065
|
} = _ref,
|
|
8066
8066
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
8067
|
-
const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
8068
|
-
const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
8067
|
+
const isLetter = children.some(child => child && (child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement'));
|
|
8068
|
+
const isElement = children.some(child => child && (child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement'));
|
|
8069
8069
|
const clone = children.map((child, index) => {
|
|
8070
|
+
if (child === null) return null;
|
|
8070
8071
|
return isLetter ? child.type.name === 'InputText' ? /*#__PURE__*/React__default.cloneElement(child, {
|
|
8071
8072
|
inputGroup: true,
|
|
8072
8073
|
size: size,
|
|
@@ -8087,7 +8088,7 @@ const InputGroup = _ref => {
|
|
|
8087
8088
|
__self: undefined,
|
|
8088
8089
|
__source: {
|
|
8089
8090
|
fileName: _jsxFileName$L,
|
|
8090
|
-
lineNumber:
|
|
8091
|
+
lineNumber: 171,
|
|
8091
8092
|
columnNumber: 10
|
|
8092
8093
|
}
|
|
8093
8094
|
}));
|
|
@@ -13063,7 +13064,7 @@ const SelectInputSearch$1 = /*#__PURE__*/React.forwardRef((_a, forwardedRef) =>
|
|
|
13063
13064
|
},
|
|
13064
13065
|
disabled: disabled
|
|
13065
13066
|
}, {
|
|
13066
|
-
children: [
|
|
13067
|
+
children: [jsx(InputLeftElement, {
|
|
13067
13068
|
children: showLeadingIcon && jsx(SearchOutline, {}, void 0),
|
|
13068
13069
|
css: !showLeadingIcon ? {
|
|
13069
13070
|
width: '$spacing-05',
|
|
@@ -13079,7 +13080,7 @@ const SelectInputSearch$1 = /*#__PURE__*/React.forwardRef((_a, forwardedRef) =>
|
|
|
13079
13080
|
marginLeft: 0,
|
|
13080
13081
|
height: 'fit-content'
|
|
13081
13082
|
}
|
|
13082
|
-
}), void 0), showClearIcon
|
|
13083
|
+
}), void 0), showClearIcon ? jsx(InputRightElement, {
|
|
13083
13084
|
children: showClearIcon && (inputProps.value || '').length > 0 && !disabled ? jsx(CloseFilled, {}, void 0) : jsx("div", {}, void 0),
|
|
13084
13085
|
onClick: e => {
|
|
13085
13086
|
if (!disabled) {
|
|
@@ -13092,7 +13093,7 @@ const SelectInputSearch$1 = /*#__PURE__*/React.forwardRef((_a, forwardedRef) =>
|
|
|
13092
13093
|
if (inputRef.current) inputRef.current.focus();
|
|
13093
13094
|
}
|
|
13094
13095
|
}
|
|
13095
|
-
}, void 0)]
|
|
13096
|
+
}, void 0) : null]
|
|
13096
13097
|
}), void 0);
|
|
13097
13098
|
});
|
|
13098
13099
|
function isHTMLElement(element) {
|
package/index.umd.js
CHANGED
|
@@ -8133,9 +8133,10 @@
|
|
|
8133
8133
|
size = 'lg'
|
|
8134
8134
|
} = _ref,
|
|
8135
8135
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
8136
|
-
const isLetter = children.some(child => child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
8137
|
-
const isElement = children.some(child => child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement');
|
|
8136
|
+
const isLetter = children.some(child => child && (child.type.name === 'InputPrefix' || child.type.name === 'InputSuffix' || child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement'));
|
|
8137
|
+
const isElement = children.some(child => child && (child.type.name === 'InputLeftElement' || child.type.name === 'InputRightElement'));
|
|
8138
8138
|
const clone = children.map((child, index) => {
|
|
8139
|
+
if (child === null) return null;
|
|
8139
8140
|
return isLetter ? child.type.name === 'InputText' ? /*#__PURE__*/React__default["default"].cloneElement(child, {
|
|
8140
8141
|
inputGroup: true,
|
|
8141
8142
|
size: size,
|
|
@@ -8156,7 +8157,7 @@
|
|
|
8156
8157
|
__self: undefined,
|
|
8157
8158
|
__source: {
|
|
8158
8159
|
fileName: _jsxFileName$L,
|
|
8159
|
-
lineNumber:
|
|
8160
|
+
lineNumber: 171,
|
|
8160
8161
|
columnNumber: 10
|
|
8161
8162
|
}
|
|
8162
8163
|
}));
|
|
@@ -13130,7 +13131,7 @@
|
|
|
13130
13131
|
},
|
|
13131
13132
|
disabled: disabled
|
|
13132
13133
|
}, {
|
|
13133
|
-
children: [
|
|
13134
|
+
children: [jsxRuntime.jsx(InputLeftElement, {
|
|
13134
13135
|
children: showLeadingIcon && jsxRuntime.jsx(icons.SearchOutline, {}, void 0),
|
|
13135
13136
|
css: !showLeadingIcon ? {
|
|
13136
13137
|
width: '$spacing-05',
|
|
@@ -13146,7 +13147,7 @@
|
|
|
13146
13147
|
marginLeft: 0,
|
|
13147
13148
|
height: 'fit-content'
|
|
13148
13149
|
}
|
|
13149
|
-
}), void 0), showClearIcon
|
|
13150
|
+
}), void 0), showClearIcon ? jsxRuntime.jsx(InputRightElement, {
|
|
13150
13151
|
children: showClearIcon && (inputProps.value || '').length > 0 && !disabled ? jsxRuntime.jsx(icons.CloseFilled, {}, void 0) : jsxRuntime.jsx("div", {}, void 0),
|
|
13151
13152
|
onClick: function (e) {
|
|
13152
13153
|
if (!disabled) {
|
|
@@ -13159,7 +13160,7 @@
|
|
|
13159
13160
|
if (inputRef.current) inputRef.current.focus();
|
|
13160
13161
|
}
|
|
13161
13162
|
}
|
|
13162
|
-
}, void 0)]
|
|
13163
|
+
}, void 0) : null]
|
|
13163
13164
|
}), void 0);
|
|
13164
13165
|
});
|
|
13165
13166
|
function isHTMLElement(element) {
|