@datability/8ui 1.5.2 → 1.5.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/dist/components/loading-overlay/index.scss +19 -0
- package/dist/index.css +1 -1
- package/dist/index.es.js +964 -960
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/types/components/input/auto-complete/index.d.ts +2 -2
- package/dist/types/components/input/auto-complete/index.type.d.ts +2 -1
- package/dist/types/components/input/checkbox/index.d.ts +2 -2
- package/dist/types/components/input/checkbox/index.type.d.ts +4 -4
- package/dist/types/components/input/date-input/index.d.ts +2 -2
- package/dist/types/components/input/date-input/index.type.d.ts +2 -1
- package/dist/types/components/input/date-range-input/index.d.ts +2 -2
- package/dist/types/components/input/date-range-input/index.type.d.ts +2 -1
- package/dist/types/components/input/date-time-input/index.d.ts +2 -2
- package/dist/types/components/input/date-time-input/index.type.d.ts +2 -1
- package/dist/types/components/input/input-base/index.type.d.ts +4 -4
- package/dist/types/components/input/multi-select/index.d.ts +2 -2
- package/dist/types/components/input/multi-select/index.type.d.ts +2 -1
- package/dist/types/components/input/number-input/index.d.ts +2 -2
- package/dist/types/components/input/number-input/index.type.d.ts +2 -1
- package/dist/types/components/input/password-input/index.d.ts +2 -2
- package/dist/types/components/input/password-input/index.type.d.ts +2 -1
- package/dist/types/components/input/phone-input/index.d.ts +2 -2
- package/dist/types/components/input/phone-input/index.type.d.ts +2 -1
- package/dist/types/components/input/radio-button/index.d.ts +2 -2
- package/dist/types/components/input/radio-button/index.type.d.ts +4 -4
- package/dist/types/components/input/range-slider/index.d.ts +2 -2
- package/dist/types/components/input/range-slider/index.type.d.ts +4 -4
- package/dist/types/components/input/select/index.d.ts +2 -2
- package/dist/types/components/input/select/index.type.d.ts +2 -1
- package/dist/types/components/input/slider/index.d.ts +2 -2
- package/dist/types/components/input/slider/index.type.d.ts +4 -4
- package/dist/types/components/input/text-input/index.d.ts +2 -2
- package/dist/types/components/input/text-input/index.type.d.ts +2 -1
- package/dist/types/components/input/textarea/index.d.ts +2 -2
- package/dist/types/components/input/textarea/index.type.d.ts +2 -1
- package/dist/types/components/input/toggle/index.d.ts +2 -2
- package/dist/types/components/input/toggle/index.type.d.ts +4 -4
- package/dist/types/components/loading-overlay/index.d.ts +4 -0
- package/dist/types/components/loading-overlay/index.type.d.ts +4 -0
- package/dist/types/components/quantity/index.d.ts +2 -2
- package/dist/types/components/quantity/index.type.d.ts +4 -4
- package/dist/types/components/search-bar/index.d.ts +2 -2
- package/dist/types/components/search-bar/index.type.d.ts +4 -4
- package/dist/types/index.d.ts +2 -0
- package/dist/types/pages/Components/demos/LoadingOverlayDemo.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsAutoComplete } from './index.type';
|
|
3
|
-
declare const AutoComplete:
|
|
3
|
+
declare const AutoComplete: <T extends FieldValues = FieldValues>({ control, name, label, caption, placeholder, disabled, readOnly, require, fullWidth, size, hint, isSuccess, options, loading, emptyText, children, }: PropsAutoComplete<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default AutoComplete;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
3
|
import { PropsInputField } from '../input-base/index.type';
|
|
3
4
|
import { TSelectOption } from '../select/index.type';
|
|
4
5
|
export type AutoCompleteRenderProps = {
|
|
5
6
|
query: string;
|
|
6
7
|
onSelect: (value: string | number) => void;
|
|
7
8
|
};
|
|
8
|
-
export type PropsAutoComplete = PropsInputField & {
|
|
9
|
+
export type PropsAutoComplete<T extends FieldValues = FieldValues> = PropsInputField<T> & {
|
|
9
10
|
options: TSelectOption[];
|
|
10
11
|
loading?: boolean;
|
|
11
12
|
emptyText?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsCheckbox } from './index.type';
|
|
3
|
-
declare const Checkbox:
|
|
3
|
+
declare const Checkbox: <T extends FieldValues = FieldValues>({ control, name, label, caption, disabled, require, fullWidth, size, isVertical, hint, isSuccess, options, }: PropsCheckbox<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Checkbox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Control } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
2
|
import { InputBaseSize } from '../input-base/index.type';
|
|
3
3
|
export type CheckboxOption = {
|
|
4
4
|
label: string;
|
|
@@ -6,9 +6,9 @@ export type CheckboxOption = {
|
|
|
6
6
|
description?: string;
|
|
7
7
|
indeterminate?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export type PropsCheckbox = {
|
|
10
|
-
control: Control<
|
|
11
|
-
name:
|
|
9
|
+
export type PropsCheckbox<T extends FieldValues = FieldValues> = {
|
|
10
|
+
control: Control<T>;
|
|
11
|
+
name: Path<T>;
|
|
12
12
|
label?: string;
|
|
13
13
|
caption?: string;
|
|
14
14
|
disabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsDateInput } from './index.type';
|
|
3
|
-
declare const DateInput:
|
|
3
|
+
declare const DateInput: <T extends FieldValues = FieldValues>({ control, name, label, caption, placeholder, disabled, readOnly, require, fullWidth, size, hint, isSuccess, min, max, }: PropsDateInput<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default DateInput;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
1
2
|
import { PropsInputField } from '../input-base/index.type';
|
|
2
|
-
export type PropsDateInput = PropsInputField & {
|
|
3
|
+
export type PropsDateInput<T extends FieldValues = FieldValues> = PropsInputField<T> & {
|
|
3
4
|
min?: string;
|
|
4
5
|
max?: string;
|
|
5
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsDateRangeInput } from './index.type';
|
|
3
|
-
declare const DateRangeInput:
|
|
3
|
+
declare const DateRangeInput: <T extends FieldValues = FieldValues>({ control, name, label, caption, startPlaceholder, endPlaceholder, disabled, readOnly, require, fullWidth, size, hint, isSuccess, min, max, }: PropsDateRangeInput<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default DateRangeInput;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
1
2
|
import { PropsInputField } from '../input-base/index.type';
|
|
2
3
|
export type DateRangeValue = {
|
|
3
4
|
start: string;
|
|
4
5
|
end: string;
|
|
5
6
|
};
|
|
6
|
-
export type PropsDateRangeInput = Omit<PropsInputField
|
|
7
|
+
export type PropsDateRangeInput<T extends FieldValues = FieldValues> = Omit<PropsInputField<T>, "placeholder"> & {
|
|
7
8
|
min?: string;
|
|
8
9
|
max?: string;
|
|
9
10
|
startPlaceholder?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsDateTimeInput } from './index.type';
|
|
3
|
-
declare const DateTimeInput:
|
|
3
|
+
declare const DateTimeInput: <T extends FieldValues = FieldValues>({ control, name, label, caption, placeholder, disabled, readOnly, require, fullWidth, size, hint, isSuccess, min, max, }: PropsDateTimeInput<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default DateTimeInput;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
1
2
|
import { PropsInputField } from '../input-base/index.type';
|
|
2
|
-
export type PropsDateTimeInput = PropsInputField & {
|
|
3
|
+
export type PropsDateTimeInput<T extends FieldValues = FieldValues> = PropsInputField<T> & {
|
|
3
4
|
min?: string;
|
|
4
5
|
max?: string;
|
|
5
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
|
-
import { Control, FieldError, FieldErrorsImpl, Merge } from 'react-hook-form';
|
|
2
|
+
import { Control, FieldError, FieldErrorsImpl, FieldValues, Merge, Path } from 'react-hook-form';
|
|
3
3
|
export type InputBaseSize = "sm" | "md" | "lg" | "xl";
|
|
4
4
|
export type PropsInputBase = {
|
|
5
5
|
name: string;
|
|
@@ -14,9 +14,9 @@ export type PropsInputBase = {
|
|
|
14
14
|
hint?: string;
|
|
15
15
|
errorMessage: string | FieldError | Merge<FieldError, FieldErrorsImpl<any>> | undefined;
|
|
16
16
|
};
|
|
17
|
-
export type PropsInputField = {
|
|
18
|
-
control: Control<
|
|
19
|
-
name:
|
|
17
|
+
export type PropsInputField<T extends FieldValues = FieldValues> = {
|
|
18
|
+
control: Control<T>;
|
|
19
|
+
name: Path<T>;
|
|
20
20
|
label?: string;
|
|
21
21
|
caption?: string;
|
|
22
22
|
placeholder?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsMultiSelect } from './index.type';
|
|
3
|
-
declare const MultiSelect:
|
|
3
|
+
declare const MultiSelect: <T extends FieldValues = FieldValues>({ control, name, label, caption, placeholder, disabled, require, fullWidth, size, hint, isSuccess, options, loading, children, }: PropsMultiSelect<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default MultiSelect;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
3
|
import { PropsInputField } from '../input-base/index.type';
|
|
3
4
|
import { TSelectOption, MultiSelectRenderProps } from '../select/index.type';
|
|
4
|
-
export type PropsMultiSelect = Omit<PropsInputField
|
|
5
|
+
export type PropsMultiSelect<T extends FieldValues = FieldValues> = Omit<PropsInputField<T>, "readOnly"> & {
|
|
5
6
|
options: TSelectOption[];
|
|
6
7
|
loading?: boolean;
|
|
7
8
|
children?: (props: MultiSelectRenderProps) => ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsNumberInput } from './index.type';
|
|
3
|
-
declare const NumberInput:
|
|
3
|
+
declare const NumberInput: <T extends FieldValues = FieldValues>({ control, name, label, caption, placeholder, disabled, readOnly, require, fullWidth, size, hint, icon, iconText, isSuccess, }: PropsNumberInput<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default NumberInput;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
3
|
import { PropsInputField } from '../input-base/index.type';
|
|
3
|
-
export type PropsNumberInput = PropsInputField & {
|
|
4
|
+
export type PropsNumberInput<T extends FieldValues = FieldValues> = PropsInputField<T> & {
|
|
4
5
|
icon?: ReactNode;
|
|
5
6
|
iconText?: string;
|
|
6
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsPasswordInput } from './index.type';
|
|
3
|
-
declare const PasswordInput:
|
|
3
|
+
declare const PasswordInput: <T extends FieldValues = FieldValues>({ control, name, label, caption, placeholder, disabled, readOnly, require, fullWidth, size, hint, isSuccess, }: PropsPasswordInput<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default PasswordInput;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsPhoneInput } from './index.type';
|
|
3
|
-
declare const PhoneInput:
|
|
3
|
+
declare const PhoneInput: <T extends FieldValues = FieldValues>({ control, name, label, caption, placeholder, disabled, readOnly, require, fullWidth, size, hint, icon, iconText, isSuccess, }: PropsPhoneInput<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default PhoneInput;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
3
|
import { PropsInputField } from '../input-base/index.type';
|
|
3
|
-
export type PropsPhoneInput = PropsInputField & {
|
|
4
|
+
export type PropsPhoneInput<T extends FieldValues = FieldValues> = PropsInputField<T> & {
|
|
4
5
|
icon?: ReactNode;
|
|
5
6
|
iconText?: string;
|
|
6
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsRadioButton } from './index.type';
|
|
3
|
-
declare const RadioButton:
|
|
3
|
+
declare const RadioButton: <T extends FieldValues = FieldValues>({ control, name, label, caption, disabled, require, fullWidth, size, isVertical, hint, isSuccess, options, }: PropsRadioButton<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default RadioButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Control } from 'react-hook-form';
|
|
2
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
3
3
|
import { InputBaseSize } from '../input-base/index.type';
|
|
4
4
|
export type RadioOption = {
|
|
5
5
|
label: string;
|
|
@@ -7,9 +7,9 @@ export type RadioOption = {
|
|
|
7
7
|
description?: string;
|
|
8
8
|
image?: React.ReactNode;
|
|
9
9
|
};
|
|
10
|
-
export type PropsRadioButton = {
|
|
11
|
-
control: Control<
|
|
12
|
-
name:
|
|
10
|
+
export type PropsRadioButton<T extends FieldValues = FieldValues> = {
|
|
11
|
+
control: Control<T>;
|
|
12
|
+
name: Path<T>;
|
|
13
13
|
label?: string;
|
|
14
14
|
caption?: string;
|
|
15
15
|
disabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsRangeSliderInput } from './index.type';
|
|
3
|
-
declare const RangeSliderInput:
|
|
3
|
+
declare const RangeSliderInput: <T extends FieldValues = FieldValues>({ control, name, min, max, disabled, className }: PropsRangeSliderInput<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default RangeSliderInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Control } from 'react-hook-form';
|
|
2
|
-
export type PropsRangeSliderInput = {
|
|
3
|
-
control: Control<
|
|
4
|
-
name:
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
export type PropsRangeSliderInput<T extends FieldValues = FieldValues> = {
|
|
3
|
+
control: Control<T>;
|
|
4
|
+
name: Path<T>;
|
|
5
5
|
min?: number;
|
|
6
6
|
max?: number;
|
|
7
7
|
disabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsSelect } from './index.type';
|
|
3
|
-
declare const Select:
|
|
3
|
+
declare const Select: <T extends FieldValues = FieldValues>({ control, name, label, caption, placeholder, disabled, readOnly, require, fullWidth, size, hint, isSuccess, options, loading, children, }: PropsSelect<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Select;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
3
|
import { PropsInputField } from '../input-base/index.type';
|
|
3
4
|
export type TSelectOption = {
|
|
4
5
|
label: string;
|
|
@@ -12,7 +13,7 @@ export type MultiSelectRenderProps = {
|
|
|
12
13
|
values: (string | number)[];
|
|
13
14
|
onToggle: (value: string | number) => void;
|
|
14
15
|
};
|
|
15
|
-
export type PropsSelect = PropsInputField & {
|
|
16
|
+
export type PropsSelect<T extends FieldValues = FieldValues> = PropsInputField<T> & {
|
|
16
17
|
options: TSelectOption[];
|
|
17
18
|
loading?: boolean;
|
|
18
19
|
children?: (props: SelectRenderProps) => ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsSliderInput } from './index.type';
|
|
3
|
-
declare const SliderInput:
|
|
3
|
+
declare const SliderInput: <T extends FieldValues = FieldValues>({ control, name, min, max, disabled, className }: PropsSliderInput<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default SliderInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Control } from 'react-hook-form';
|
|
2
|
-
export type PropsSliderInput = {
|
|
3
|
-
control: Control<
|
|
4
|
-
name:
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
|
+
export type PropsSliderInput<T extends FieldValues = FieldValues> = {
|
|
3
|
+
control: Control<T>;
|
|
4
|
+
name: Path<T>;
|
|
5
5
|
min?: number;
|
|
6
6
|
max?: number;
|
|
7
7
|
disabled?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsTextInput } from './index.type';
|
|
3
|
-
declare const TextInput:
|
|
3
|
+
declare const TextInput: <T extends FieldValues = FieldValues>({ control, name, label, caption, placeholder, disabled, readOnly, require, fullWidth, size, hint, icon, iconText, isSuccess, }: PropsTextInput<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default TextInput;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
3
|
import { PropsInputField } from '../input-base/index.type';
|
|
3
|
-
export type PropsTextInput = PropsInputField & {
|
|
4
|
+
export type PropsTextInput<T extends FieldValues = FieldValues> = PropsInputField<T> & {
|
|
4
5
|
icon?: ReactNode;
|
|
5
6
|
iconText?: string;
|
|
6
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsTextarea } from './index.type';
|
|
3
|
-
declare const Textarea:
|
|
3
|
+
declare const Textarea: <T extends FieldValues = FieldValues>({ control, name, label, caption, placeholder, disabled, readOnly, require, fullWidth, size, hint, isSuccess, rows, cols, }: PropsTextarea<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Textarea;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
1
2
|
import { PropsInputField } from '../input-base/index.type';
|
|
2
|
-
export type PropsTextarea = PropsInputField & {
|
|
3
|
+
export type PropsTextarea<T extends FieldValues = FieldValues> = PropsInputField<T> & {
|
|
3
4
|
rows?: number;
|
|
4
5
|
cols?: number;
|
|
5
6
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsToggle } from './index.type';
|
|
3
|
-
declare const Toggle:
|
|
3
|
+
declare const Toggle: <T extends FieldValues = FieldValues>({ control, name, disabled, size }: PropsToggle<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Toggle;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Control } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
2
|
export type ToggleSize = "sm" | "md" | "lg";
|
|
3
|
-
export type PropsToggle = {
|
|
4
|
-
control: Control<
|
|
5
|
-
name:
|
|
3
|
+
export type PropsToggle<T extends FieldValues = FieldValues> = {
|
|
4
|
+
control: Control<T>;
|
|
5
|
+
name: Path<T>;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
size?: ToggleSize;
|
|
8
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsQuantity } from './index.type';
|
|
3
|
-
declare const Quantity:
|
|
3
|
+
declare const Quantity: <T extends FieldValues = FieldValues>({ control, name, min, max, size, variant, disabled, }: PropsQuantity<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default Quantity;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Control } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
2
|
export type QuantitySize = "sm" | "md";
|
|
3
3
|
export type QuantityVariant = "quantity" | "cart";
|
|
4
|
-
export type PropsQuantity = {
|
|
5
|
-
control: Control<
|
|
6
|
-
name:
|
|
4
|
+
export type PropsQuantity<T extends FieldValues = FieldValues> = {
|
|
5
|
+
control: Control<T>;
|
|
6
|
+
name: Path<T>;
|
|
7
7
|
min?: number;
|
|
8
8
|
max?: number;
|
|
9
9
|
size?: QuantitySize;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { PropsSearchBar } from './index.type';
|
|
3
|
-
declare const SearchBar:
|
|
3
|
+
declare const SearchBar: <T extends FieldValues = FieldValues>({ control, name, placeholder, showIcon, size, disabled, onClear, className, }: PropsSearchBar<T>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default SearchBar;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Control } from 'react-hook-form';
|
|
1
|
+
import { Control, FieldValues, Path } from 'react-hook-form';
|
|
2
2
|
export type SearchBarSize = "sm" | "md" | "lg" | "xl";
|
|
3
|
-
export type PropsSearchBar = {
|
|
4
|
-
control: Control<
|
|
5
|
-
name:
|
|
3
|
+
export type PropsSearchBar<T extends FieldValues = FieldValues> = {
|
|
4
|
+
control: Control<T>;
|
|
5
|
+
name: Path<T>;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
showIcon?: boolean;
|
|
8
8
|
size?: SearchBarSize;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -46,6 +46,8 @@ export { default as CounterLabel } from './components/counter-label';
|
|
|
46
46
|
export type { PropsCounterLabel, CounterLabelShape, CounterLabelSize, CounterLabelType, } from './components/counter-label/index.type';
|
|
47
47
|
export { default as Loading } from './components/loading';
|
|
48
48
|
export type { PropsLoading, LoadingThickness } from './components/loading/index.type';
|
|
49
|
+
export { default as LoadingOverlay } from './components/loading-overlay';
|
|
50
|
+
export type { PropsLoadingOverlay } from './components/loading-overlay/index.type';
|
|
49
51
|
export { default as Modal } from './components/modal';
|
|
50
52
|
export type { PropsModal } from './components/modal/index.type';
|
|
51
53
|
export { default as DialogBox } from './components/dialog-box';
|