x-ui-design 0.4.8 → 0.4.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/dist/esm/types/components/Select/Select.d.ts +1 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/types/select.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/lib/components/Select/Select.tsx +2 -1
- package/lib/types/select.ts +1 -0
- package/package.json +1 -1
- package/src/app/page.tsx +4 -1
|
@@ -20,6 +20,7 @@ declare const Select: React.ForwardRefExoticComponent<import("../../types").Defa
|
|
|
20
20
|
defaultValue?: import("../../types").RuleTypes;
|
|
21
21
|
maxCount?: number;
|
|
22
22
|
onChange?: (e: import("../../types").RuleTypes, option?: OptionType) => void;
|
|
23
|
+
onClose?: () => void;
|
|
23
24
|
disabled?: boolean;
|
|
24
25
|
loading?: boolean;
|
|
25
26
|
placeholder?: string;
|
|
@@ -123,6 +123,7 @@ declare const Select: import("react").ComponentType<import("@/types").DefaultPro
|
|
|
123
123
|
defaultValue?: import("@/types").RuleTypes;
|
|
124
124
|
maxCount?: number;
|
|
125
125
|
onChange?: (e: import("@/types").RuleTypes, option?: import("@/types/select").OptionType) => void;
|
|
126
|
+
onClose?: () => void;
|
|
126
127
|
disabled?: boolean;
|
|
127
128
|
loading?: boolean;
|
|
128
129
|
placeholder?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -225,6 +225,7 @@ declare const Select: react.ComponentType<__types.DefaultProps & {
|
|
|
225
225
|
defaultValue?: __types.RuleTypes;
|
|
226
226
|
maxCount?: number;
|
|
227
227
|
onChange?: (e: __types.RuleTypes, option?: __types_select.OptionType) => void;
|
|
228
|
+
onClose?: () => void;
|
|
228
229
|
disabled?: boolean;
|
|
229
230
|
loading?: boolean;
|
|
230
231
|
placeholder?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -3177,6 +3177,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3177
3177
|
onDeselect,
|
|
3178
3178
|
onClear,
|
|
3179
3179
|
onChange,
|
|
3180
|
+
onClose,
|
|
3180
3181
|
showSearch = false,
|
|
3181
3182
|
open = false,
|
|
3182
3183
|
showArrow = true,
|
|
@@ -3239,6 +3240,7 @@ const SelectComponent = /*#__PURE__*/forwardRef(({
|
|
|
3239
3240
|
if (!clickedInside) {
|
|
3240
3241
|
setIsOpen(false);
|
|
3241
3242
|
handleClearInputValue();
|
|
3243
|
+
onClose?.();
|
|
3242
3244
|
}
|
|
3243
3245
|
};
|
|
3244
3246
|
document.addEventListener('mousedown', handleClickOutside);
|