@dipusevilla/componentes-iu 1.0.36 → 1.0.38
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/index.cjs.js +7 -7
- package/dist/index.es.js +813 -808
- package/dist/index.umd.js +8 -8
- package/dist/types/components/InputGroup.d.ts +13 -7
- package/package.json +1 -1
|
@@ -2,19 +2,24 @@ import React from 'react';
|
|
|
2
2
|
import { type Control } from 'react-hook-form';
|
|
3
3
|
import { type InputProps } from './Input';
|
|
4
4
|
import { type SelectProps } from './Select';
|
|
5
|
-
import { Option } from '../types/FormTypes';
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
control?: Control<any>;
|
|
9
|
-
name: string;
|
|
10
|
-
}) | (SelectProps & {
|
|
5
|
+
import type { Option } from '../types/FormTypes';
|
|
6
|
+
export type Size = 'sm' | 'md' | 'lg';
|
|
7
|
+
type BaseCommon = {
|
|
11
8
|
width?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
size?: Size;
|
|
11
|
+
};
|
|
12
|
+
type SelectExtra = {
|
|
12
13
|
options?: Option[];
|
|
13
14
|
loadOptions?: () => Promise<Option[]>;
|
|
15
|
+
};
|
|
16
|
+
export type InputOrSelectProps = (InputProps & BaseCommon & {
|
|
17
|
+
control?: Control<any>;
|
|
18
|
+
name: string;
|
|
19
|
+
}) | (SelectProps & BaseCommon & SelectExtra & {
|
|
14
20
|
control?: Control<any>;
|
|
15
21
|
name: string;
|
|
16
22
|
});
|
|
17
|
-
export type Size = 'sm' | 'md' | 'lg';
|
|
18
23
|
export interface InputGroupProps {
|
|
19
24
|
groupLabel: string;
|
|
20
25
|
inputs?: InputOrSelectProps[];
|
|
@@ -26,3 +31,4 @@ export interface InputGroupProps {
|
|
|
26
31
|
width?: string;
|
|
27
32
|
}
|
|
28
33
|
export declare function InputGroup({ groupLabel, inputs, separator, useSeparator, className, showVisibleLabel, size, width, }: InputGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
export {};
|