x-ui-design 0.4.46 → 0.4.47
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/dist/esm/types/components/Button/Button.d.ts +1 -1
- package/dist/esm/types/types/button.d.ts +1 -0
- package/dist/index.esm.js +12 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/lib/components/Button/Button.tsx +2 -0
- package/lib/components/Select/Select.tsx +10 -8
- package/lib/types/button.ts +1 -0
- package/package.json +1 -1
- package/src/app/page.tsx +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ButtonProps } from '../../types/button';
|
|
3
3
|
import './style.css';
|
|
4
|
-
declare const ButtonComponent: ({ type, variant, color, shape, size, htmlType, className, rootClassName, classNames: customClassNames, styles, prefixCls, icon, iconPosition, loading, disabled, ghost, danger, block, children, href, __injected, ...restProps }: ButtonProps) => ReactElement;
|
|
4
|
+
declare const ButtonComponent: ({ type, variant, color, shape, size, htmlType, className, rootClassName, classNames: customClassNames, styles, prefixCls, icon, iconPosition, loading, disabled, ghost, danger, block, children, href, __injected, child, ...restProps }: ButtonProps) => ReactElement;
|
|
5
5
|
export default ButtonComponent;
|
package/dist/index.esm.js
CHANGED
|
@@ -1333,6 +1333,8 @@ const ButtonComponent = ({
|
|
|
1333
1333
|
// @ts-expect-error
|
|
1334
1334
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1335
1335
|
__injected,
|
|
1336
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1337
|
+
child,
|
|
1336
1338
|
...restProps
|
|
1337
1339
|
}) => {
|
|
1338
1340
|
const [innerLoading, setInnerLoading] = useState(false);
|
|
@@ -3203,23 +3205,24 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3203
3205
|
suffixIcon,
|
|
3204
3206
|
searchIcon,
|
|
3205
3207
|
style,
|
|
3208
|
+
showSearch = false,
|
|
3209
|
+
open = true,
|
|
3210
|
+
showArrow = true,
|
|
3211
|
+
notFoundContent = false,
|
|
3212
|
+
noStyle,
|
|
3213
|
+
feedbackIcons,
|
|
3214
|
+
placement = 'bottomLeft',
|
|
3215
|
+
removeIcon,
|
|
3206
3216
|
onSearch,
|
|
3207
3217
|
onSelect,
|
|
3208
3218
|
onDeselect,
|
|
3209
3219
|
onClear,
|
|
3210
3220
|
onChange,
|
|
3211
3221
|
onClose,
|
|
3212
|
-
showSearch = false,
|
|
3213
|
-
open = true,
|
|
3214
|
-
showArrow = true,
|
|
3215
|
-
notFoundContent = false,
|
|
3216
3222
|
tagRender,
|
|
3217
3223
|
getPopupContainer,
|
|
3218
3224
|
dropdownRender,
|
|
3219
|
-
|
|
3220
|
-
feedbackIcons,
|
|
3221
|
-
placement = 'bottomLeft',
|
|
3222
|
-
removeIcon
|
|
3225
|
+
onDropdownVisibleChange
|
|
3223
3226
|
}, ref) => {
|
|
3224
3227
|
const asTag = mode === 'tags';
|
|
3225
3228
|
const asMultiple = mode === 'multiple';
|
|
@@ -3316,6 +3319,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3316
3319
|
}, [prefixCls, listHeight, getPopupContainer, isOpenChecker, isOpen]);
|
|
3317
3320
|
useEffect(() => {
|
|
3318
3321
|
setIsOpenChecker(isOpen);
|
|
3322
|
+
onDropdownVisibleChange?.(isOpen);
|
|
3319
3323
|
if (!isOpen) {
|
|
3320
3324
|
setDropdownPosition({});
|
|
3321
3325
|
setSearchFocused(false);
|