@scbt-ecom/ui 0.31.3 → 0.31.5
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/{CustomLink-DmltAHJD.js → CustomLink-fcD_1hIU.js} +14 -14
- package/dist/{CustomLink-DmltAHJD.js.map → CustomLink-fcD_1hIU.js.map} +1 -1
- package/dist/hooks.js +2 -2
- package/dist/shared/ui/formElements/controlled/autocomplete/Autocomplete.d.ts +3 -5
- package/dist/shared/ui/formElements/controlled/checkbox/CheckboxControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/dayPickerControl/dayPickerControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/editor/EditorControl.d.ts +16 -0
- package/dist/shared/ui/formElements/{editorControl → controlled/editor}/model/helper.d.ts +3 -3
- package/dist/shared/ui/formElements/{editorControl → controlled/editor}/model/types.d.ts +2 -2
- package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/Editor.d.ts +6 -3
- package/dist/shared/ui/formElements/controlled/editor/ui/Toolbar.d.ts +6 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +2 -1
- package/dist/shared/ui/formElements/controlled/input/InputControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/inputCurrency/InputCurrencyControl.d.ts +26 -0
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/select/SelectControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/slider/SliderControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/switch/SwitchControl.d.ts +1 -2
- package/dist/shared/ui/formElements/controlled/textarea/TextareaControl.d.ts +1 -2
- package/dist/shared/ui/formElements/index.d.ts +0 -11
- package/dist/shared/ui/formElements/ui/index.d.ts +0 -2
- package/dist/shared/ui/formElements/uncontrolled/input/Input.d.ts +1 -0
- package/dist/ui.js +28203 -33348
- package/dist/ui.js.map +1 -1
- package/dist/{useDebounce-DyvGYvL9.js → useDebounce-BNBPHQrJ.js} +40 -42
- package/dist/{useDebounce-DyvGYvL9.js.map → useDebounce-BNBPHQrJ.js.map} +1 -1
- package/dist/widget.js +40 -33
- package/dist/widget.js.map +1 -1
- package/dist/widgets/interLinking/InterLinking.d.ts +3 -4
- package/dist/widgets/interLinking/model/helpers.d.ts +28 -18
- package/dist/widgets/interLinking/model/types.d.ts +3 -4
- package/dist/widgets/interLinking/ui/Column.d.ts +4 -4
- package/dist/widgets/interLinking/ui/ColumnGroup.d.ts +2 -4
- package/dist/widgets/interLinking/ui/LinksList.d.ts +2 -2
- package/package.json +1 -1
- package/dist/shared/ui/formElements/CheckboxControl.d.ts +0 -23
- package/dist/shared/ui/formElements/InputControl.d.ts +0 -18
- package/dist/shared/ui/formElements/InputOtpControl/InputOtpControl.d.ts +0 -15
- package/dist/shared/ui/formElements/InputOtpControl/index.d.ts +0 -1
- package/dist/shared/ui/formElements/InputOtpControl/ui/InputOtp.d.ts +0 -11
- package/dist/shared/ui/formElements/InputOtpControl/ui/InputOtpSlot.d.ts +0 -13
- package/dist/shared/ui/formElements/InputOtpControl/ui/index.d.ts +0 -2
- package/dist/shared/ui/formElements/SwitchControl.d.ts +0 -19
- package/dist/shared/ui/formElements/TextareaControl.d.ts +0 -20
- package/dist/shared/ui/formElements/comboboxControl/ComboboxControl.d.ts +0 -29
- package/dist/shared/ui/formElements/comboboxControl/index.d.ts +0 -1
- package/dist/shared/ui/formElements/comboboxControl/model/selectClassnames.d.ts +0 -21
- package/dist/shared/ui/formElements/comboboxControl/model/types.d.ts +0 -37
- package/dist/shared/ui/formElements/comboboxControl/ui/ComboboxOption.d.ts +0 -8
- package/dist/shared/ui/formElements/comboboxControl/ui/DropdownIndicator.d.ts +0 -7
- package/dist/shared/ui/formElements/comboboxControl/ui/MultiValueRemove.d.ts +0 -7
- package/dist/shared/ui/formElements/comboboxControl/ui/index.d.ts +0 -3
- package/dist/shared/ui/formElements/controlled/combobox/ComboboxControl.d.ts +0 -26
- package/dist/shared/ui/formElements/controlled/combobox/index.d.ts +0 -1
- package/dist/shared/ui/formElements/controlled/combobox/model/selectClassnames.d.ts +0 -21
- package/dist/shared/ui/formElements/controlled/combobox/model/types.d.ts +0 -37
- package/dist/shared/ui/formElements/controlled/combobox/ui/ComboboxOption.d.ts +0 -8
- package/dist/shared/ui/formElements/controlled/combobox/ui/DropdownIndicator.d.ts +0 -7
- package/dist/shared/ui/formElements/controlled/combobox/ui/MultiValueRemove.d.ts +0 -7
- package/dist/shared/ui/formElements/controlled/combobox/ui/index.d.ts +0 -3
- package/dist/shared/ui/formElements/dadataControl/DadataAddress.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/DadataAuto.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/DadataCountry.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/DadataFio.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/DadataOrganization.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/AutocompleteDadata.d.ts +0 -29
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/index.d.ts +0 -1
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/model/api.d.ts +0 -2
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/model/helpers.d.ts +0 -7
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/model/types.d.ts +0 -41
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/model/useDadata.d.ts +0 -188
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/ui/ComboboxOptionsCustom.d.ts +0 -8
- package/dist/shared/ui/formElements/dadataControl/index.d.ts +0 -6
- package/dist/shared/ui/formElements/dadataControl/types.d.ts +0 -5
- package/dist/shared/ui/formElements/editorControl/EditorControl.d.ts +0 -19
- package/dist/shared/ui/formElements/editorControl/ui/Toolbar.d.ts +0 -6
- package/dist/shared/ui/formElements/inputControlMask/InputControlMask.d.ts +0 -32
- package/dist/shared/ui/formElements/inputControlMask/index.d.ts +0 -1
- package/dist/shared/ui/formElements/inputControlMask/model/useInputControlMask.d.ts +0 -28
- package/dist/shared/ui/formElements/inputCurrencyControl/InputCurrencyControl.d.ts +0 -16
- package/dist/shared/ui/formElements/model/types.d.ts +0 -7
- package/dist/shared/ui/formElements/radioControl/RadioControl.d.ts +0 -35
- package/dist/shared/ui/formElements/radioControl/index.d.ts +0 -1
- package/dist/shared/ui/formElements/radioControl/ui/RadioGroupCustom.d.ts +0 -8
- package/dist/shared/ui/formElements/radioControl/ui/index.d.ts +0 -1
- package/dist/shared/ui/formElements/ui/FieldContainer.d.ts +0 -12
- package/dist/shared/ui/formElements/ui/fieldWrapper/FieldWrapper.d.ts +0 -15
- package/dist/shared/ui/formElements/ui/fieldWrapper/index.d.ts +0 -1
- package/dist/shared/ui/formElements/ui/fieldWrapper/ui/FieldLabel.d.ts +0 -6
- package/dist/shared/ui/formElements/ui/fieldWrapper/ui/index.d.ts +0 -1
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/index.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/model/config.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/SetColor.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/SetCoreCommands.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/SetHeadings.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/index.d.ts +0 -0
- /package/dist/shared/ui/formElements/{editorControl → controlled/editor}/ui/commands/setCustomLink.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/index.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/model/helpers.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/model/useInputCurrency.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/ui/MenuTrigger.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/ui/OptionList.d.ts +0 -0
- /package/dist/shared/ui/formElements/{inputCurrencyControl → controlled/inputCurrency}/ui/index.d.ts +0 -0
|
@@ -3,14 +3,13 @@ import { ColumnClasses } from './ui';
|
|
|
3
3
|
import { AccordionProps } from '../../shared/ui';
|
|
4
4
|
export type InterLinkingClasses = {
|
|
5
5
|
root?: string;
|
|
6
|
-
|
|
6
|
+
headline?: string;
|
|
7
7
|
columnsWrapper?: string;
|
|
8
8
|
column?: ColumnClasses;
|
|
9
9
|
};
|
|
10
|
-
export interface InterLinkingProps {
|
|
11
|
-
data: InterLinkingSchema;
|
|
10
|
+
export interface InterLinkingProps extends InterLinkingSchema {
|
|
12
11
|
mobileAccordionProps?: AccordionProps;
|
|
13
12
|
rootAccordionProps?: AccordionProps;
|
|
14
13
|
classes?: InterLinkingClasses;
|
|
15
14
|
}
|
|
16
|
-
export declare const InterLinking: ({
|
|
15
|
+
export declare const InterLinking: ({ columns, variant, headline, mobileAccordionProps, rootAccordionProps, classes }: InterLinkingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const linkSchema: z.ZodObject<{
|
|
3
|
+
label: z.ZodString;
|
|
4
|
+
path: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
path: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}, {
|
|
9
|
+
path: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const groupSchema: z.ZodObject<{
|
|
3
13
|
groupLabel: z.ZodString;
|
|
4
14
|
links: z.ZodArray<z.ZodObject<{
|
|
5
15
|
label: z.ZodString;
|
|
@@ -23,9 +33,9 @@ export declare const columnGroupSchema: z.ZodArray<z.ZodObject<{
|
|
|
23
33
|
path: string;
|
|
24
34
|
label: string;
|
|
25
35
|
}[];
|
|
26
|
-
}
|
|
27
|
-
export declare const columnsSchema: z.
|
|
28
|
-
|
|
36
|
+
}>;
|
|
37
|
+
export declare const columnsSchema: z.ZodObject<{
|
|
38
|
+
column: z.ZodArray<z.ZodObject<{
|
|
29
39
|
groupLabel: z.ZodString;
|
|
30
40
|
links: z.ZodArray<z.ZodObject<{
|
|
31
41
|
label: z.ZodString;
|
|
@@ -51,7 +61,7 @@ export declare const columnsSchema: z.ZodArray<z.ZodObject<{
|
|
|
51
61
|
}[];
|
|
52
62
|
}>, "many">;
|
|
53
63
|
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
|
|
64
|
+
column: {
|
|
55
65
|
groupLabel: string;
|
|
56
66
|
links: {
|
|
57
67
|
path: string;
|
|
@@ -59,19 +69,19 @@ export declare const columnsSchema: z.ZodArray<z.ZodObject<{
|
|
|
59
69
|
}[];
|
|
60
70
|
}[];
|
|
61
71
|
}, {
|
|
62
|
-
|
|
72
|
+
column: {
|
|
63
73
|
groupLabel: string;
|
|
64
74
|
links: {
|
|
65
75
|
path: string;
|
|
66
76
|
label: string;
|
|
67
77
|
}[];
|
|
68
78
|
}[];
|
|
69
|
-
}
|
|
79
|
+
}>;
|
|
70
80
|
export declare const interLinkingSchema: z.ZodObject<{
|
|
71
|
-
|
|
72
|
-
|
|
81
|
+
headline: z.ZodString;
|
|
82
|
+
variant: z.ZodEnum<["twoCols", "threeCols", "fourCols"]>;
|
|
73
83
|
columns: z.ZodArray<z.ZodObject<{
|
|
74
|
-
|
|
84
|
+
column: z.ZodArray<z.ZodObject<{
|
|
75
85
|
groupLabel: z.ZodString;
|
|
76
86
|
links: z.ZodArray<z.ZodObject<{
|
|
77
87
|
label: z.ZodString;
|
|
@@ -97,7 +107,7 @@ export declare const interLinkingSchema: z.ZodObject<{
|
|
|
97
107
|
}[];
|
|
98
108
|
}>, "many">;
|
|
99
109
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
|
|
110
|
+
column: {
|
|
101
111
|
groupLabel: string;
|
|
102
112
|
links: {
|
|
103
113
|
path: string;
|
|
@@ -105,7 +115,7 @@ export declare const interLinkingSchema: z.ZodObject<{
|
|
|
105
115
|
}[];
|
|
106
116
|
}[];
|
|
107
117
|
}, {
|
|
108
|
-
|
|
118
|
+
column: {
|
|
109
119
|
groupLabel: string;
|
|
110
120
|
links: {
|
|
111
121
|
path: string;
|
|
@@ -114,10 +124,8 @@ export declare const interLinkingSchema: z.ZodObject<{
|
|
|
114
124
|
}[];
|
|
115
125
|
}>, "many">;
|
|
116
126
|
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
heading: string;
|
|
118
|
-
intent: "twoCols" | "threeCols" | "fourCols";
|
|
119
127
|
columns: {
|
|
120
|
-
|
|
128
|
+
column: {
|
|
121
129
|
groupLabel: string;
|
|
122
130
|
links: {
|
|
123
131
|
path: string;
|
|
@@ -125,11 +133,11 @@ export declare const interLinkingSchema: z.ZodObject<{
|
|
|
125
133
|
}[];
|
|
126
134
|
}[];
|
|
127
135
|
}[];
|
|
136
|
+
variant: "twoCols" | "threeCols" | "fourCols";
|
|
137
|
+
headline: string;
|
|
128
138
|
}, {
|
|
129
|
-
heading: string;
|
|
130
|
-
intent: "twoCols" | "threeCols" | "fourCols";
|
|
131
139
|
columns: {
|
|
132
|
-
|
|
140
|
+
column: {
|
|
133
141
|
groupLabel: string;
|
|
134
142
|
links: {
|
|
135
143
|
path: string;
|
|
@@ -137,4 +145,6 @@ export declare const interLinkingSchema: z.ZodObject<{
|
|
|
137
145
|
}[];
|
|
138
146
|
}[];
|
|
139
147
|
}[];
|
|
148
|
+
variant: "twoCols" | "threeCols" | "fourCols";
|
|
149
|
+
headline: string;
|
|
140
150
|
}>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
3
|
-
export type TColumnGroupSchema = z.infer<typeof columnGroupSchema>;
|
|
2
|
+
import { groupSchema, interLinkingSchema, linkSchema } from './helpers';
|
|
4
3
|
export type InterLinkingSchema = z.infer<typeof interLinkingSchema>;
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
4
|
+
export type ColumnGroupSchema = z.infer<typeof groupSchema>;
|
|
5
|
+
export type GroupLinkSchema = z.infer<typeof linkSchema>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TColumnGroupSchema } from '../model/types';
|
|
1
|
+
import { ColumnGroupSchema } from '../model/types';
|
|
3
2
|
import { ColumnGroupClasses } from './ColumnGroup';
|
|
3
|
+
import { AccordionProps } from '../../../shared/ui';
|
|
4
4
|
export type ColumnClasses = {
|
|
5
5
|
column?: string;
|
|
6
6
|
columnGroup?: ColumnGroupClasses;
|
|
7
7
|
};
|
|
8
8
|
export interface ColumnProps {
|
|
9
|
-
|
|
9
|
+
column: ColumnGroupSchema[];
|
|
10
10
|
mobileAccordionProps?: AccordionProps;
|
|
11
11
|
classes?: ColumnClasses;
|
|
12
12
|
}
|
|
13
|
-
export declare const Column: ({
|
|
13
|
+
export declare const Column: ({ column, mobileAccordionProps, classes }: ColumnProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColumnGroupSchema } from '../model/types';
|
|
2
2
|
import { LinksListClasses } from './LinksList';
|
|
3
3
|
import { AccordionProps } from '../../../shared/ui';
|
|
4
4
|
export type ColumnGroupClasses = {
|
|
@@ -6,9 +6,7 @@ export type ColumnGroupClasses = {
|
|
|
6
6
|
columnGroupHeading?: string;
|
|
7
7
|
linksList?: LinksListClasses;
|
|
8
8
|
};
|
|
9
|
-
export interface ColumnGroupProps {
|
|
10
|
-
groupLabel: ColumnsGroupLabel;
|
|
11
|
-
links: ColumnsLinks;
|
|
9
|
+
export interface ColumnGroupProps extends ColumnGroupSchema {
|
|
12
10
|
mobileAccordionProps?: AccordionProps;
|
|
13
11
|
classes?: ColumnGroupClasses;
|
|
14
12
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GroupLinkSchema } from '../model/types';
|
|
2
2
|
export type LinksListClasses = {
|
|
3
3
|
linksWrapper?: string;
|
|
4
4
|
linkText?: string;
|
|
5
5
|
linkIcon?: string;
|
|
6
6
|
};
|
|
7
7
|
export interface LinksListProps {
|
|
8
|
-
links:
|
|
8
|
+
links: GroupLinkSchema[];
|
|
9
9
|
classes?: LinksListClasses;
|
|
10
10
|
}
|
|
11
11
|
export declare const LinksList: ({ links, classes }: LinksListProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from './model/types';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
type TCheckboxControlClasses = {
|
|
5
|
-
root?: string;
|
|
6
|
-
wrapper?: string;
|
|
7
|
-
field?: string;
|
|
8
|
-
input?: string;
|
|
9
|
-
indicator?: string;
|
|
10
|
-
icon?: string;
|
|
11
|
-
label?: string;
|
|
12
|
-
message?: string;
|
|
13
|
-
};
|
|
14
|
-
export interface ICheckboxControlProps<T extends FieldValues> extends Omit<TCommonFieldProps<T>, 'label'> {
|
|
15
|
-
classes?: TCheckboxControlClasses;
|
|
16
|
-
label: React.ReactElement | string;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated For better performance use `Controlled.CheckboxControl` instead.
|
|
21
|
-
*/
|
|
22
|
-
export declare const CheckboxControl: <T extends FieldValues>({ control, label, helperText, disabled, classes, ...props }: ICheckboxControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from './model/types';
|
|
3
|
-
import { IFieldAttachmentProps, TFieldAttachmentClasses, TFieldContainerConfig, TFieldWrapperClasses } from './ui';
|
|
4
|
-
type TInputControlClasses = TFieldAttachmentClasses & TFieldWrapperClasses & {
|
|
5
|
-
root?: string;
|
|
6
|
-
input?: string;
|
|
7
|
-
message?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface IInputControlProps<T extends FieldValues> extends TCommonFieldProps<T>, Omit<IFieldAttachmentProps, 'invalid' | 'isTouched'> {
|
|
10
|
-
size?: TFieldContainerConfig['size'];
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
classes?: TInputControlClasses;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated For better performance use `Controlled.InputControl` instead.
|
|
16
|
-
*/
|
|
17
|
-
export declare const InputControl: <T extends FieldValues>({ label, helperText, control, disabled, size, classes, badge, withValidateIcons, icon, onClickIcon, onKeyDownIcon, ...props }: IInputControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from '../model/types';
|
|
3
|
-
import { TInputOTPClasses, TInputOTPSlotClasses } from './ui';
|
|
4
|
-
export type TInputOtpControlClasses = TInputOTPClasses & TInputOTPSlotClasses & {
|
|
5
|
-
root?: string;
|
|
6
|
-
wrapper?: string;
|
|
7
|
-
message?: string;
|
|
8
|
-
};
|
|
9
|
-
export interface IInputOtpControlProps<T extends FieldValues> extends TCommonFieldProps<T> {
|
|
10
|
-
inputLength?: number;
|
|
11
|
-
classes?: TInputOtpControlClasses;
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
initialFocus?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare const InputOtpControl: <T extends FieldValues>({ control, inputLength, classes, disabled, helperText, initialFocus, ...props }: IInputOtpControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './InputOtpControl';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
import { OTPInput } from 'input-otp';
|
|
3
|
-
export type TInputOTPClasses = {
|
|
4
|
-
inputContainer?: string;
|
|
5
|
-
input?: string;
|
|
6
|
-
};
|
|
7
|
-
type TInputOTPProps = ComponentPropsWithoutRef<typeof OTPInput> & {
|
|
8
|
-
classes?: TInputOTPClasses;
|
|
9
|
-
};
|
|
10
|
-
export declare const InputOTP: import('react').ForwardRefExoticComponent<TInputOTPProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
11
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
-
export type TInputOTPSlotClasses = {
|
|
3
|
-
singleChar?: string;
|
|
4
|
-
caretWrapper?: string;
|
|
5
|
-
caret?: string;
|
|
6
|
-
substrate?: string;
|
|
7
|
-
};
|
|
8
|
-
interface InputOTPSlotProps extends ComponentPropsWithoutRef<'div'> {
|
|
9
|
-
index: number;
|
|
10
|
-
classes?: TInputOTPSlotClasses;
|
|
11
|
-
}
|
|
12
|
-
export declare const InputOTPSlot: import('react').ForwardRefExoticComponent<InputOTPSlotProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from './model/types';
|
|
3
|
-
type TSwitchControlClasses = {
|
|
4
|
-
root?: string;
|
|
5
|
-
input?: string;
|
|
6
|
-
thumb?: string;
|
|
7
|
-
textBlock?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
message?: string;
|
|
10
|
-
};
|
|
11
|
-
export interface ISwitchControlProps<T extends FieldValues> extends TCommonFieldProps<T> {
|
|
12
|
-
disabled?: boolean;
|
|
13
|
-
classes?: TSwitchControlClasses;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated For better performance use `Controlled.SwitchControl` instead.
|
|
17
|
-
*/
|
|
18
|
-
export declare const SwitchControl: <T extends FieldValues>({ disabled, classes, control, helperText, label, ...props }: ISwitchControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from './model/types';
|
|
3
|
-
import { IFieldAttachmentProps, TFieldAttachmentClasses, TFieldContainerConfig, TFieldWrapperClasses } from './ui';
|
|
4
|
-
type TTextareaControlClasses = TFieldAttachmentClasses & TFieldWrapperClasses & {
|
|
5
|
-
root?: string;
|
|
6
|
-
field?: string;
|
|
7
|
-
head?: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
scrollArea?: string;
|
|
10
|
-
input?: string;
|
|
11
|
-
message?: string;
|
|
12
|
-
};
|
|
13
|
-
export interface ITextareaControlProps<T extends FieldValues> extends TCommonFieldProps<T>, Omit<IFieldAttachmentProps, 'invalid' | 'isTouched'> {
|
|
14
|
-
classes?: TTextareaControlClasses;
|
|
15
|
-
size?: TFieldContainerConfig['size'];
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
placeholder?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const TextareaControl: <T extends FieldValues>({ label, helperText, control, disabled, size, classes, badge, withValidateIcons, icon, onClickIcon, onKeyDownIcon, placeholder, ...props }: ITextareaControlProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from '../model/types';
|
|
3
|
-
import { TFieldContainerConfig } from '../ui';
|
|
4
|
-
import { TComboboxControlClasses } from './model/types';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
export interface SelectOption<ValueType> {
|
|
7
|
-
value: ValueType;
|
|
8
|
-
label: string | React.ReactElement;
|
|
9
|
-
}
|
|
10
|
-
export interface IComboboxControlProps<T extends FieldValues, ValueType> extends TCommonFieldProps<T> {
|
|
11
|
-
options: SelectOption<ValueType>[];
|
|
12
|
-
size?: TFieldContainerConfig['size'];
|
|
13
|
-
marker?: boolean;
|
|
14
|
-
isClearable?: boolean;
|
|
15
|
-
defaultValue?: ValueType;
|
|
16
|
-
noOptionsMessage?: string | React.ReactElement;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
isMulti?: boolean;
|
|
19
|
-
placeholder?: string | React.ReactElement;
|
|
20
|
-
isSearchable?: boolean;
|
|
21
|
-
classes?: TComboboxControlClasses;
|
|
22
|
-
onClickIcon?: (...args: unknown[]) => unknown;
|
|
23
|
-
onKeyDownIcon?: (event: React.KeyboardEvent) => unknown;
|
|
24
|
-
customChange?: (...args: unknown[]) => void;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated For better performance use `Controlled.ComboboxControl` instead.
|
|
28
|
-
*/
|
|
29
|
-
export declare const ComboboxControl: <T extends FieldValues, ValueType>({ options, control, defaultValue, isClearable, label, disabled, placeholder, helperText, noOptionsMessage, size, classes, isMulti, isSearchable, customChange, ...props }: IComboboxControlProps<T, ValueType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ComboboxControl';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { MenuProps, OptionProps } from 'react-select';
|
|
2
|
-
import { TComboboxControlClassesCommon } from './types';
|
|
3
|
-
export declare const selectClassNames: (isMulti: boolean, disabled?: boolean, classes?: Partial<TComboboxControlClassesCommon>) => {
|
|
4
|
-
dropdownIndicator: () => string;
|
|
5
|
-
indicatorsContainer: () => string;
|
|
6
|
-
input: () => string;
|
|
7
|
-
valueContainer: () => string;
|
|
8
|
-
control: () => string;
|
|
9
|
-
container: () => string;
|
|
10
|
-
menuList: () => string;
|
|
11
|
-
menu: (state: MenuProps) => string;
|
|
12
|
-
group: () => string;
|
|
13
|
-
option: (state: OptionProps) => string;
|
|
14
|
-
noOptionsMessage: () => string;
|
|
15
|
-
singleValue: () => string;
|
|
16
|
-
multiValue: () => string;
|
|
17
|
-
multiValueLabel: () => string;
|
|
18
|
-
multiValueRemove: () => string;
|
|
19
|
-
placeholder: () => string;
|
|
20
|
-
indicatorSeparator: () => string;
|
|
21
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export type TComboboxControlClasses = TComboboxControlClassesCommon & TComboboxChildClasses & {};
|
|
2
|
-
export type TComboboxControlClassesCommon = {
|
|
3
|
-
messageCombobox?: string;
|
|
4
|
-
selectWrapper?: string;
|
|
5
|
-
dropdownIndicator?: string;
|
|
6
|
-
indicatorsContainer?: string;
|
|
7
|
-
inputCombobox?: string;
|
|
8
|
-
valueContainer?: string;
|
|
9
|
-
controlCombobox?: string;
|
|
10
|
-
containerCombobox?: string;
|
|
11
|
-
menuList?: string;
|
|
12
|
-
menuCombobox?: string;
|
|
13
|
-
groupCombobox?: string;
|
|
14
|
-
menuPortal?: string;
|
|
15
|
-
optionCombobox?: string;
|
|
16
|
-
noOptionsMessage?: string;
|
|
17
|
-
singleValue?: string;
|
|
18
|
-
multiValue?: string;
|
|
19
|
-
multiValueLabel?: string;
|
|
20
|
-
multiValueRemove?: string;
|
|
21
|
-
placeholderCombobox?: string;
|
|
22
|
-
indicatorSeparator?: string;
|
|
23
|
-
fieldLabel?: string;
|
|
24
|
-
message?: string;
|
|
25
|
-
};
|
|
26
|
-
export type TComboboxChildClasses = TMultiValueRemoveClasses | TComboboxOptionClasses | TDropdownIndicatorClasses;
|
|
27
|
-
export type TMultiValueRemoveClasses = {
|
|
28
|
-
multiRemoveIcon?: string;
|
|
29
|
-
};
|
|
30
|
-
export type TComboboxOptionClasses = {
|
|
31
|
-
optionCustom?: string;
|
|
32
|
-
checkboxIsMulti?: string;
|
|
33
|
-
checkboxIsMultiIcon?: string;
|
|
34
|
-
};
|
|
35
|
-
export type TDropdownIndicatorClasses = {
|
|
36
|
-
indicatorIcon?: string;
|
|
37
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { OptionProps } from 'react-select';
|
|
2
|
-
import { TComboboxOptionClasses } from '../model/types';
|
|
3
|
-
interface IComboboxOptionProps<Option> extends OptionProps<Option> {
|
|
4
|
-
classes?: TComboboxOptionClasses;
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const ComboboxOption: <Option>({ isSelected, classes, ...props }: IComboboxOptionProps<Option>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DropdownIndicatorProps } from 'react-select';
|
|
2
|
-
import { TDropdownIndicatorClasses } from '../model/types';
|
|
3
|
-
interface IDropdownIndicatorProps<Option> extends DropdownIndicatorProps<Option> {
|
|
4
|
-
classes?: TDropdownIndicatorClasses;
|
|
5
|
-
}
|
|
6
|
-
export declare const DropdownIndicator: <Option>({ classes, ...props }: IDropdownIndicatorProps<Option>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MultiValueRemoveProps } from 'react-select';
|
|
2
|
-
import { TMultiValueRemoveClasses } from '../model/types';
|
|
3
|
-
interface IMultiValueRemoveProps extends MultiValueRemoveProps {
|
|
4
|
-
classes?: TMultiValueRemoveClasses;
|
|
5
|
-
}
|
|
6
|
-
export declare const MultiValueRemove: ({ classes, ...props }: IMultiValueRemoveProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { TCommonFieldProps } from '../../model/types';
|
|
3
|
-
import { TFieldContainerConfig } from '../../ui';
|
|
4
|
-
import { TComboboxControlClasses } from './model/types';
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
export interface SelectOption<ValueType> {
|
|
7
|
-
value: ValueType;
|
|
8
|
-
label: string | React.ReactElement;
|
|
9
|
-
}
|
|
10
|
-
export interface IComboboxControlProps<T extends FieldValues, ValueType> extends TCommonFieldProps<T> {
|
|
11
|
-
options: SelectOption<ValueType>[];
|
|
12
|
-
size?: TFieldContainerConfig['size'];
|
|
13
|
-
marker?: boolean;
|
|
14
|
-
isClearable?: boolean;
|
|
15
|
-
defaultValue?: ValueType;
|
|
16
|
-
noOptionsMessage?: string | React.ReactElement;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
isMulti?: boolean;
|
|
19
|
-
placeholder?: string | React.ReactElement;
|
|
20
|
-
isSearchable?: boolean;
|
|
21
|
-
classes?: TComboboxControlClasses;
|
|
22
|
-
onClickIcon?: (...args: unknown[]) => unknown;
|
|
23
|
-
onKeyDownIcon?: (event: React.KeyboardEvent) => unknown;
|
|
24
|
-
customChange?: (...args: unknown[]) => void;
|
|
25
|
-
}
|
|
26
|
-
export declare const ComboboxControl: <T extends FieldValues, ValueType>({ options, control, defaultValue, isClearable, label, disabled, placeholder, helperText, noOptionsMessage, size, classes, isMulti, isSearchable, customChange, ...props }: IComboboxControlProps<T, ValueType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ComboboxControl';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { MenuProps, OptionProps } from 'react-select';
|
|
2
|
-
import { TComboboxControlClassesCommon } from './types';
|
|
3
|
-
export declare const selectClassNames: (isMulti: boolean, disabled?: boolean, classes?: Partial<TComboboxControlClassesCommon>) => {
|
|
4
|
-
dropdownIndicator: () => string;
|
|
5
|
-
indicatorsContainer: () => string;
|
|
6
|
-
input: () => string;
|
|
7
|
-
valueContainer: () => string;
|
|
8
|
-
control: () => string;
|
|
9
|
-
container: () => string;
|
|
10
|
-
menuList: () => string;
|
|
11
|
-
menu: (state: MenuProps) => string;
|
|
12
|
-
group: () => string;
|
|
13
|
-
option: (state: OptionProps) => string;
|
|
14
|
-
noOptionsMessage: () => string;
|
|
15
|
-
singleValue: () => string;
|
|
16
|
-
multiValue: () => string;
|
|
17
|
-
multiValueLabel: () => string;
|
|
18
|
-
multiValueRemove: () => string;
|
|
19
|
-
placeholder: () => string;
|
|
20
|
-
indicatorSeparator: () => string;
|
|
21
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export type TComboboxControlClasses = TComboboxControlClassesCommon & TComboboxChildClasses & {};
|
|
2
|
-
export type TComboboxControlClassesCommon = {
|
|
3
|
-
messageCombobox?: string;
|
|
4
|
-
selectWrapper?: string;
|
|
5
|
-
dropdownIndicator?: string;
|
|
6
|
-
indicatorsContainer?: string;
|
|
7
|
-
inputCombobox?: string;
|
|
8
|
-
valueContainer?: string;
|
|
9
|
-
controlCombobox?: string;
|
|
10
|
-
containerCombobox?: string;
|
|
11
|
-
menuList?: string;
|
|
12
|
-
menuCombobox?: string;
|
|
13
|
-
groupCombobox?: string;
|
|
14
|
-
menuPortal?: string;
|
|
15
|
-
optionCombobox?: string;
|
|
16
|
-
noOptionsMessage?: string;
|
|
17
|
-
singleValue?: string;
|
|
18
|
-
multiValue?: string;
|
|
19
|
-
multiValueLabel?: string;
|
|
20
|
-
multiValueRemove?: string;
|
|
21
|
-
placeholderCombobox?: string;
|
|
22
|
-
indicatorSeparator?: string;
|
|
23
|
-
fieldLabel?: string;
|
|
24
|
-
message?: string;
|
|
25
|
-
};
|
|
26
|
-
export type TComboboxChildClasses = TMultiValueRemoveClasses | TComboboxOptionClasses | TDropdownIndicatorClasses;
|
|
27
|
-
export type TMultiValueRemoveClasses = {
|
|
28
|
-
multiRemoveIcon?: string;
|
|
29
|
-
};
|
|
30
|
-
export type TComboboxOptionClasses = {
|
|
31
|
-
optionCustom?: string;
|
|
32
|
-
checkboxIsMulti?: string;
|
|
33
|
-
checkboxIsMultiIcon?: string;
|
|
34
|
-
};
|
|
35
|
-
export type TDropdownIndicatorClasses = {
|
|
36
|
-
indicatorIcon?: string;
|
|
37
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { OptionProps } from 'react-select';
|
|
2
|
-
import { TComboboxOptionClasses } from '../model/types';
|
|
3
|
-
interface IComboboxOptionProps<Option> extends OptionProps<Option> {
|
|
4
|
-
classes?: TComboboxOptionClasses;
|
|
5
|
-
isSelected: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const ComboboxOption: <Option>({ isSelected, classes, ...props }: IComboboxOptionProps<Option>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DropdownIndicatorProps } from 'react-select';
|
|
2
|
-
import { TDropdownIndicatorClasses } from '../model/types';
|
|
3
|
-
interface IDropdownIndicatorProps<Option> extends DropdownIndicatorProps<Option> {
|
|
4
|
-
classes?: TDropdownIndicatorClasses;
|
|
5
|
-
}
|
|
6
|
-
export declare const DropdownIndicator: <Option>({ classes, ...props }: IDropdownIndicatorProps<Option>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MultiValueRemoveProps } from 'react-select';
|
|
2
|
-
import { TMultiValueRemoveClasses } from '../model/types';
|
|
3
|
-
interface IMultiValueRemoveProps extends MultiValueRemoveProps {
|
|
4
|
-
classes?: TMultiValueRemoveClasses;
|
|
5
|
-
}
|
|
6
|
-
export declare const MultiValueRemove: ({ classes, ...props }: IMultiValueRemoveProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IDadataProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated For better performance use `Controlled.DadataAddress` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DadataAddress: <T extends FieldValues>({ ...props }: IDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IDadataProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated For better performance use `Controlled.DadataAuto` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DadataAuto: <T extends FieldValues>({ ...props }: IDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IDadataProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated For better performance use `Controlled.DadataCountry` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DadataCountry: <T extends FieldValues>({ ...props }: IDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IDadataProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated For better performance use `Controlled.DadataFio` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DadataFio: <T extends FieldValues>({ ...props }: IDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
import { IDadataProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated For better performance use `Controlled.DadataOrganization` instead.
|
|
5
|
-
*/
|
|
6
|
-
export declare const DadataOrganization: <T extends FieldValues>({ ...props }: IDadataProps<T>) => import("react/jsx-runtime").JSX.Element;
|