@salutejs/plasma-new-hope 0.194.0-canary.1562.11857238836.0 → 0.194.0-canary.1565.11870784206.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cjs/components/Combobox/ComboboxNew/Combobox.js +1 -0
- package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
- package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
- package/cjs/components/Combobox/ComboboxOld/Combobox.css +4 -5
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +4 -5
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +4 -5
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +4 -5
- package/cjs/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +4 -5
- package/cjs/components/Dropdown/Dropdown.css +4 -5
- package/cjs/components/Dropdown/Dropdown.js +2 -4
- package/cjs/components/Dropdown/Dropdown.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -5
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -3
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +1 -7
- package/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
- package/cjs/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_14yih1y.css → DropdownItem.styles_1b439rx.css} +0 -1
- package/cjs/components/Select/Select.js +1 -0
- package/cjs/components/Select/Select.js.map +1 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js +2 -1
- package/cjs/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -18
- package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/cjs/components/TextField/TextField.js +27 -3
- package/cjs/components/TextField/TextField.js.map +1 -1
- package/cjs/components/TextField/hooks/useValidation.js +273 -0
- package/cjs/components/TextField/hooks/useValidation.js.map +1 -0
- package/cjs/index.css +4 -5
- package/cjs/utils/constants.js +4 -0
- package/cjs/utils/constants.js.map +1 -1
- package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +1 -0
- package/emotion/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
- package/emotion/cjs/components/Dropdown/Dropdown.js +2 -4
- package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -3
- package/emotion/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +11 -15
- package/emotion/cjs/components/Select/Select.js +1 -0
- package/emotion/cjs/components/Select/ui/Inner/ui/Item/Item.js +2 -1
- package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -24
- package/emotion/cjs/components/TextField/TextField.js +27 -4
- package/emotion/cjs/components/TextField/TextField.template-doc.mdx +330 -0
- package/emotion/cjs/components/TextField/hooks/index.js +8 -1
- package/emotion/cjs/components/TextField/hooks/useValidation.js +276 -0
- package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +253 -1
- package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +252 -0
- package/emotion/cjs/utils/constants.js +4 -2
- package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +1 -0
- package/emotion/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
- package/emotion/es/components/Dropdown/Dropdown.js +2 -4
- package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -4
- package/emotion/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +11 -15
- package/emotion/es/components/Select/Select.js +1 -0
- package/emotion/es/components/Select/ui/Inner/ui/Item/Item.js +2 -1
- package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -24
- package/emotion/es/components/TextField/TextField.js +28 -5
- package/emotion/es/components/TextField/TextField.template-doc.mdx +330 -0
- package/emotion/es/components/TextField/hooks/index.js +2 -1
- package/emotion/es/components/TextField/hooks/useValidation.js +270 -0
- package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +253 -1
- package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +252 -0
- package/emotion/es/utils/constants.js +3 -1
- package/es/components/Combobox/ComboboxNew/Combobox.js +1 -0
- package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
- package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js.map +1 -1
- package/es/components/Combobox/ComboboxOld/Combobox.css +4 -5
- package/es/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.css +4 -5
- package/es/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.css +4 -5
- package/es/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.css +4 -5
- package/es/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.css +4 -5
- package/es/components/Dropdown/Dropdown.css +4 -5
- package/es/components/Dropdown/Dropdown.js +2 -4
- package/es/components/Dropdown/Dropdown.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.css +4 -5
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -4
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +2 -7
- package/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js.map +1 -1
- package/es/components/Dropdown/ui/DropdownItem/{DropdownItem.styles_14yih1y.css → DropdownItem.styles_1b439rx.css} +0 -1
- package/es/components/Select/Select.js +1 -0
- package/es/components/Select/Select.js.map +1 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.js +2 -1
- package/es/components/Select/ui/Inner/ui/Item/Item.js.map +1 -1
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +4 -19
- package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
- package/es/components/TextField/TextField.js +27 -3
- package/es/components/TextField/TextField.js.map +1 -1
- package/es/components/TextField/hooks/useValidation.js +269 -0
- package/es/components/TextField/hooks/useValidation.js.map +1 -0
- package/es/index.css +4 -5
- package/es/utils/constants.js +3 -1
- package/es/utils/constants.js.map +1 -1
- package/package.json +2 -3
- package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +1 -0
- package/styled-components/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
- package/styled-components/cjs/components/Dropdown/Dropdown.js +2 -4
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.js +2 -3
- package/styled-components/cjs/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +2 -5
- package/styled-components/cjs/components/Select/Select.js +1 -0
- package/styled-components/cjs/components/Select/ui/Inner/ui/Item/Item.js +2 -1
- package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -24
- package/styled-components/cjs/components/TextField/TextField.js +26 -3
- package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +330 -0
- package/styled-components/cjs/components/TextField/hooks/index.js +8 -1
- package/styled-components/cjs/components/TextField/hooks/useValidation.js +276 -0
- package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +253 -1
- package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +252 -0
- package/styled-components/cjs/utils/constants.js +4 -2
- package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +1 -0
- package/styled-components/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.js +2 -1
- package/styled-components/es/components/Dropdown/Dropdown.js +2 -4
- package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.js +3 -4
- package/styled-components/es/components/Dropdown/ui/DropdownItem/DropdownItem.styles.js +2 -5
- package/styled-components/es/components/Select/Select.js +1 -0
- package/styled-components/es/components/Select/ui/Inner/ui/Item/Item.js +2 -1
- package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +3 -24
- package/styled-components/es/components/TextField/TextField.js +27 -4
- package/styled-components/es/components/TextField/TextField.template-doc.mdx +330 -0
- package/styled-components/es/components/TextField/hooks/index.js +2 -1
- package/styled-components/es/components/TextField/hooks/useValidation.js +270 -0
- package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +253 -1
- package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +252 -0
- package/styled-components/es/utils/constants.js +3 -1
- package/types/components/Autocomplete/Autocomplete.types.d.ts +2 -2
- package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +1676 -92
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +2 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +1676 -92
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +1676 -92
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.d.ts +2 -50
- package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.types.d.ts +6 -11
- package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
- package/types/components/Dropdown/index.d.ts +0 -1
- package/types/components/Dropdown/index.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +0 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
- package/types/components/Range/Range.styles.d.ts +1676 -92
- package/types/components/Range/Range.styles.d.ts.map +1 -1
- package/types/components/Select/Select.d.ts.map +1 -1
- package/types/components/Select/Select.types.d.ts +2 -1
- package/types/components/Select/Select.types.d.ts.map +1 -1
- package/types/components/Select/ui/Inner/ui/Item/Item.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +1676 -92
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.styles.d.ts +1676 -92
- package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/TextField/TextField.types.d.ts +51 -1
- package/types/components/TextField/TextField.types.d.ts.map +1 -1
- package/types/components/TextField/hooks/index.d.ts +1 -0
- package/types/components/TextField/hooks/index.d.ts.map +1 -1
- package/types/components/TextField/hooks/useValidation.d.ts +7 -0
- package/types/components/TextField/hooks/useValidation.d.ts.map +1 -0
- package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +64 -2
- package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts +1 -25
- package/types/examples/plasma_b2c/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +2732 -92
- package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +1676 -92
- package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +64 -2
- package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts +1 -25
- package/types/examples/plasma_web/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/examples/plasma_web/components/Mask/Mask.d.ts +2732 -92
- package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
- package/types/examples/plasma_web/components/TextField/TextField.d.ts +1676 -92
- package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
- package/types/utils/constants.d.ts +2 -0
- package/types/utils/constants.d.ts.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Double.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Double/Double.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY,qKAMxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qKAAe,CAAC;AAE7C,eAAO,MAAM,KAAK,8KAOjB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAIzB,CAAC;AAGF,eAAO,MAAM,WAAW
|
1
|
+
{"version":3,"file":"Double.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/Slider/components/Double/Double.styles.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY,qKAMxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qKAAe,CAAC;AAE7C,eAAO,MAAM,KAAK,8KAOjB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAIzB,CAAC;AAGF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 +1 @@
|
|
1
|
-
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAYvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI/C,OAAO,KAAK,EAAuC,cAAc,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAoCjH,eAAO,MAAM,IAAI,0CAGhB,CAAC;AAIF,eAAO,MAAM,aAAa,SAAU,UAAU,cAAc,EAAE,kBAAkB,CAAC,4FA0a5E,CAAC;AAEN,eAAO,MAAM,eAAe;;;mBA5aQ,UAAU,cAAc,EAAE,kBAAkB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkdhF,CAAC"}
|
@@ -7,6 +7,51 @@ export declare type ChipValues = {
|
|
7
7
|
text: TextFieldPrimitiveValue;
|
8
8
|
};
|
9
9
|
export declare type EnumerationType = 'plain' | 'chip';
|
10
|
+
declare type ValidationOption<T> = {
|
11
|
+
value?: T;
|
12
|
+
errorMessage?: string;
|
13
|
+
};
|
14
|
+
export declare type PasswordValidationOptions = {
|
15
|
+
minLength?: ValidationOption<number>;
|
16
|
+
maxLength?: ValidationOption<number>;
|
17
|
+
includeUppercase?: ValidationOption<boolean>;
|
18
|
+
includeLowercase?: ValidationOption<boolean>;
|
19
|
+
includeDigits?: ValidationOption<boolean>;
|
20
|
+
includeSpecialSymbols?: ValidationOption<boolean>;
|
21
|
+
};
|
22
|
+
export declare type EmailValidationOptions = {
|
23
|
+
customEmailRegex?: ValidationOption<RegExp>;
|
24
|
+
minLength?: ValidationOption<number>;
|
25
|
+
maxLength?: ValidationOption<number>;
|
26
|
+
minHostLength?: ValidationOption<number>;
|
27
|
+
maxHostLength?: ValidationOption<number>;
|
28
|
+
minDomainLength?: ValidationOption<number>;
|
29
|
+
maxDomainLength?: ValidationOption<number>;
|
30
|
+
minZoneLength?: ValidationOption<number>;
|
31
|
+
maxZoneLength?: ValidationOption<number>;
|
32
|
+
whitelistDomains?: ValidationOption<string[]>;
|
33
|
+
blacklistDomains?: ValidationOption<string[]>;
|
34
|
+
};
|
35
|
+
declare type OnValidateArgs = {
|
36
|
+
isValid: boolean;
|
37
|
+
errorMessage?: string;
|
38
|
+
};
|
39
|
+
export declare type ValidationProps = {
|
40
|
+
validationType?: never;
|
41
|
+
options?: never;
|
42
|
+
passwordHidden?: never;
|
43
|
+
onValidate?: never;
|
44
|
+
} | {
|
45
|
+
validationType: 'password';
|
46
|
+
options?: PasswordValidationOptions;
|
47
|
+
passwordHidden?: boolean;
|
48
|
+
onValidate?: (args: OnValidateArgs) => void;
|
49
|
+
} | {
|
50
|
+
validationType: 'email';
|
51
|
+
options?: EmailValidationOptions;
|
52
|
+
passwordHidden?: never;
|
53
|
+
onValidate?: (args: OnValidateArgs) => void;
|
54
|
+
};
|
10
55
|
declare type TextFieldChipProps = {
|
11
56
|
/**
|
12
57
|
* Выбранные значения.
|
@@ -181,7 +226,7 @@ export declare type TextFieldPropsBase = {
|
|
181
226
|
* Callback по нажатию Enter
|
182
227
|
*/
|
183
228
|
onSearch?: (value: string, event?: KeyboardEvent<HTMLInputElement>) => void;
|
184
|
-
} & RequiredProps & ClearProps & HintProps & TextFieldChipProps;
|
229
|
+
} & RequiredProps & ClearProps & HintProps & TextFieldChipProps & ValidationProps;
|
185
230
|
export declare type TextFieldProps = {
|
186
231
|
/**
|
187
232
|
* Размер контрола.
|
@@ -225,5 +270,10 @@ export interface UseKeyNavigationProps {
|
|
225
270
|
onSearch?: (value: string, event?: KeyboardEvent<HTMLInputElement>) => void;
|
226
271
|
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
227
272
|
}
|
273
|
+
export declare type UseValidationArgs = {
|
274
|
+
validationType?: 'password' | 'email';
|
275
|
+
options?: PasswordValidationOptions | EmailValidationOptions;
|
276
|
+
onValidate?: (args: OnValidateArgs) => void;
|
277
|
+
};
|
228
278
|
export {};
|
229
279
|
//# sourceMappingURL=TextField.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TextField.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAE1E,oBAAY,uBAAuB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhE,oBAAY,UAAU,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,uBAAuB,CAAC;CACjC,CAAC;AAEF,oBAAY,eAAe,GAAG,OAAO,GAAG,MAAM,CAAC;AAE/C,aAAK,kBAAkB,GACjB;IACI;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC/E,GACD;IACI;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IACvC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK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;IACI,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,cAAc,CAAC,EAAE,KAAK,CAAC;IACvB,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,eAAe,CAAC,EAAE,KAAK,CAAC;CAC3B,CAAC;AAER,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IACjC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC/E,GAAG,aAAa,GACb,UAAU,GACV,SAAS,GACT,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"TextField.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErF,OAAO,KAAK,EAAE,mBAAmB,E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K,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAC;IAC9F,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC7D;AAED,oBAAY,iBAAiB,GAAG;IAC5B,cAAc,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;IACtC,OAAO,CAAC,EAAE,yBAAyB,GAAG,sBAAsB,CAAC;IAC7D,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;CAC/C,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { FocusEvent, KeyboardEvent } from 'react';
|
2
|
+
import type { UseValidationArgs } from '../TextField.types';
|
3
|
+
export declare const useValidation: ({ validationType, options, onValidate }: UseValidationArgs) => {
|
4
|
+
handleValidationBlur: (event: FocusEvent<HTMLInputElement>) => void;
|
5
|
+
handleValidationKeyDown: (event: KeyboardEvent<HTMLInputElement>) => void;
|
6
|
+
};
|
7
|
+
//# sourceMappingURL=useValidation.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useValidation.d.ts","sourceRoot":"","sources":["../../../../src/components/TextField/hooks/useValidation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,KAAK,EAAqD,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAiO/G,eAAO,MAAM,aAAa,4CAA6C,iBAAiB;kCAC/C,WAAW,gBAAgB,CAAC;qCAUzB,cAAc,gBAAgB,CAAC;CA6B1E,CAAC"}
|
@@ -27,10 +27,72 @@ export declare const Autocomplete: import("react").FunctionComponent<import("../
|
|
27
27
|
} & {
|
28
28
|
required: true;
|
29
29
|
optional?: false | undefined;
|
30
|
-
} &
|
30
|
+
} & {
|
31
|
+
validationType?: undefined;
|
32
|
+
options?: undefined;
|
33
|
+
passwordHidden?: undefined;
|
34
|
+
onValidate?: undefined;
|
35
|
+
} & Omit<import("../../../../components/TextField/TextField.types").TextFieldPropsBase, "required" | "options" | "optional" | "requiredPlacement" | "chips" | "enumerationType" | "validationType" | "onValidate" | "passwordHidden" | "onChangeChips"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Autocomplete/Autocomplete.types").BaseProps & {
|
36
|
+
requiredPlacement?: "left" | "right" | undefined;
|
37
|
+
} & {
|
38
|
+
required: true;
|
39
|
+
optional?: false | undefined;
|
40
|
+
} & {
|
41
|
+
validationType: "password";
|
42
|
+
options?: import("../../../../components/TextField/TextField.types").PasswordValidationOptions | undefined;
|
43
|
+
passwordHidden?: boolean | undefined;
|
44
|
+
onValidate?: ((args: {
|
45
|
+
isValid: boolean;
|
46
|
+
errorMessage?: string | undefined;
|
47
|
+
}) => void) | undefined;
|
48
|
+
} & Omit<import("../../../../components/TextField/TextField.types").TextFieldPropsBase, "required" | "options" | "optional" | "requiredPlacement" | "chips" | "enumerationType" | "validationType" | "onValidate" | "passwordHidden" | "onChangeChips"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Autocomplete/Autocomplete.types").BaseProps & {
|
49
|
+
requiredPlacement?: "left" | "right" | undefined;
|
50
|
+
} & {
|
51
|
+
required: true;
|
52
|
+
optional?: false | undefined;
|
53
|
+
} & {
|
54
|
+
validationType: "email";
|
55
|
+
options?: import("../../../../components/TextField/TextField.types").EmailValidationOptions | undefined;
|
56
|
+
passwordHidden?: undefined;
|
57
|
+
onValidate?: ((args: {
|
58
|
+
isValid: boolean;
|
59
|
+
errorMessage?: string | undefined;
|
60
|
+
}) => void) | undefined;
|
61
|
+
} & Omit<import("../../../../components/TextField/TextField.types").TextFieldPropsBase, "required" | "options" | "optional" | "requiredPlacement" | "chips" | "enumerationType" | "validationType" | "onValidate" | "passwordHidden" | "onChangeChips"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Autocomplete/Autocomplete.types").BaseProps & {
|
31
62
|
requiredPlacement?: "left" | "right" | undefined;
|
32
63
|
} & {
|
33
64
|
optional?: true | undefined;
|
34
65
|
required?: false | undefined;
|
35
|
-
} &
|
66
|
+
} & {
|
67
|
+
validationType?: undefined;
|
68
|
+
options?: undefined;
|
69
|
+
passwordHidden?: undefined;
|
70
|
+
onValidate?: undefined;
|
71
|
+
} & Omit<import("../../../../components/TextField/TextField.types").TextFieldPropsBase, "required" | "options" | "optional" | "requiredPlacement" | "chips" | "enumerationType" | "validationType" | "onValidate" | "passwordHidden" | "onChangeChips"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Autocomplete/Autocomplete.types").BaseProps & {
|
72
|
+
requiredPlacement?: "left" | "right" | undefined;
|
73
|
+
} & {
|
74
|
+
optional?: true | undefined;
|
75
|
+
required?: false | undefined;
|
76
|
+
} & {
|
77
|
+
validationType: "password";
|
78
|
+
options?: import("../../../../components/TextField/TextField.types").PasswordValidationOptions | undefined;
|
79
|
+
passwordHidden?: boolean | undefined;
|
80
|
+
onValidate?: ((args: {
|
81
|
+
isValid: boolean;
|
82
|
+
errorMessage?: string | undefined;
|
83
|
+
}) => void) | undefined;
|
84
|
+
} & Omit<import("../../../../components/TextField/TextField.types").TextFieldPropsBase, "required" | "options" | "optional" | "requiredPlacement" | "chips" | "enumerationType" | "validationType" | "onValidate" | "passwordHidden" | "onChangeChips"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | (import("../../../../components/Autocomplete/Autocomplete.types").BaseProps & {
|
85
|
+
requiredPlacement?: "left" | "right" | undefined;
|
86
|
+
} & {
|
87
|
+
optional?: true | undefined;
|
88
|
+
required?: false | undefined;
|
89
|
+
} & {
|
90
|
+
validationType: "email";
|
91
|
+
options?: import("../../../../components/TextField/TextField.types").EmailValidationOptions | undefined;
|
92
|
+
passwordHidden?: undefined;
|
93
|
+
onValidate?: ((args: {
|
94
|
+
isValid: boolean;
|
95
|
+
errorMessage?: string | undefined;
|
96
|
+
}) => void) | undefined;
|
97
|
+
} & Omit<import("../../../../components/TextField/TextField.types").TextFieldPropsBase, "required" | "options" | "optional" | "requiredPlacement" | "chips" | "enumerationType" | "validationType" | "onValidate" | "passwordHidden" | "onChangeChips"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
|
36
98
|
//# sourceMappingURL=Autocomplete.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Autocomplete/Autocomplete.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,YAAY
|
1
|
+
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Autocomplete/Autocomplete.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+XAA0B,CAAC"}
|
@@ -9,29 +9,5 @@ export declare const Dropdown: import("react").FunctionComponent<import("../../.
|
|
9
9
|
view: {
|
10
10
|
default: import("@linaria/core").LinariaClassName;
|
11
11
|
};
|
12
|
-
}> &
|
13
|
-
items: import("../../../../components/Dropdown").DropdownItemOption[];
|
14
|
-
alwaysOpened?: boolean | undefined;
|
15
|
-
children?: import("react").ReactNode;
|
16
|
-
itemRole?: string | undefined;
|
17
|
-
onHover?: ((index: number) => void) | undefined;
|
18
|
-
onItemSelect?: ((item: import("../../../../components/Dropdown").DropdownItemOption, event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
19
|
-
trigger?: import("../../../../components/Dropdown/Dropdown.types").DropdownTrigger | undefined;
|
20
|
-
placement?: import("../../../../components/Dropdown/Dropdown.types").DropdownPlacement | undefined;
|
21
|
-
offset?: [number, number] | undefined;
|
22
|
-
listWidth?: import("csstype").Property.Width<string | number> | undefined;
|
23
|
-
hasArrow?: boolean | undefined;
|
24
|
-
closeOnSelect?: boolean | undefined;
|
25
|
-
closeOnOverlayClick?: boolean | undefined;
|
26
|
-
onToggle?: ((isOpen: boolean, event: Event | import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
27
|
-
size?: string | undefined;
|
28
|
-
view?: string | undefined;
|
29
|
-
variant?: "normal" | "tight" | undefined;
|
30
|
-
portal?: string | import("react").RefObject<HTMLElement> | undefined;
|
31
|
-
renderItem?: ((item: import("../../../../components/Dropdown").DropdownItemOption) => import("react").ReactNode) | undefined;
|
32
|
-
onItemClick?: ((item: import("../../../../components/Dropdown").DropdownItemOption, event: import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
33
|
-
listOverflow?: import("csstype").Property.Overflow | undefined;
|
34
|
-
listHeight?: import("csstype").Property.Height<string | number> | undefined;
|
35
|
-
hoverIndex?: number | undefined;
|
36
|
-
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
12
|
+
}> & import("../../../../components/Dropdown/Dropdown.types").DropdownProps & import("react").RefAttributes<HTMLDivElement>>;
|
37
13
|
//# sourceMappingURL=Dropdown.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Dropdown/Dropdown.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,QAAQ
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Dropdown/Dropdown.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,QAAQ;;;;;;;;;;4HAA0B,CAAC"}
|