@salutejs/plasma-new-hope 0.139.0-canary.1352.10686935940.0 → 0.139.0-canary.1352.10698100498.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. package/cjs/components/TextArea/TextArea.js +4 -2
  2. package/cjs/components/TextArea/TextArea.js.map +1 -1
  3. package/cjs/components/TextField/TextField.js +2 -3
  4. package/cjs/components/TextField/TextField.js.map +1 -1
  5. package/emotion/cjs/components/TextArea/TextArea.js +5 -3
  6. package/emotion/cjs/components/TextField/TextField.js +3 -4
  7. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +1 -1
  8. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  9. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  10. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  11. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  12. package/emotion/es/components/TextArea/TextArea.js +5 -3
  13. package/emotion/es/components/TextField/TextField.js +3 -4
  14. package/emotion/es/components/TextField/TextField.template-doc.mdx +1 -1
  15. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  16. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  17. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  18. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  19. package/es/components/TextArea/TextArea.js +4 -2
  20. package/es/components/TextArea/TextArea.js.map +1 -1
  21. package/es/components/TextField/TextField.js +2 -3
  22. package/es/components/TextField/TextField.js.map +1 -1
  23. package/package.json +2 -2
  24. package/styled-components/cjs/components/TextArea/TextArea.js +4 -2
  25. package/styled-components/cjs/components/TextField/TextField.js +2 -3
  26. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +1 -1
  27. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  28. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  29. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  30. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  31. package/styled-components/es/components/TextArea/TextArea.js +4 -2
  32. package/styled-components/es/components/TextField/TextField.js +2 -3
  33. package/styled-components/es/components/TextField/TextField.template-doc.mdx +1 -1
  34. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +13 -1
  35. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +12 -0
  36. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +13 -1
  37. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +12 -0
  38. package/types/components/Autocomplete/Autocomplete.d.ts +2 -2
  39. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  40. package/types/components/Autocomplete/Autocomplete.types.d.ts +1 -1
  41. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  42. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +59 -7
  43. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  44. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +59 -7
  45. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  46. package/types/components/Range/Range.styles.d.ts +59 -7
  47. package/types/components/Range/Range.styles.d.ts.map +1 -1
  48. package/types/components/Slider/components/Double/Double.styles.d.ts +59 -7
  49. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  50. package/types/components/TextArea/TextArea.types.d.ts +30 -18
  51. package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
  52. package/types/components/TextField/TextField.types.d.ts +27 -15
  53. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  54. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +1 -1
  55. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  56. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +135 -3
  57. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
  58. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +59 -7
  59. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  60. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +1 -1
  61. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  62. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +135 -3
  63. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
  64. package/types/examples/plasma_web/components/TextField/TextField.d.ts +59 -7
  65. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
@@ -16,16 +16,42 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
16
16
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
17
17
  textBefore?: string | undefined;
18
18
  textAfter?: string | undefined;
19
- optional?: boolean | undefined;
20
- required?: boolean | undefined;
21
- requiredPlacement?: "left" | "right" | undefined;
22
19
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
20
+ } & {
21
+ requiredPlacement?: "left" | "right" | undefined;
22
+ } & {
23
+ required: true;
24
+ optional?: false | undefined;
23
25
  } & {
24
26
  chips?: undefined;
25
27
  onChangeChips?: undefined;
26
28
  enumerationType?: "plain" | undefined;
27
29
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
28
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
30
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
31
+ size?: string | undefined;
32
+ view?: string | undefined;
33
+ readOnly?: boolean | undefined;
34
+ disabled?: boolean | undefined;
35
+ } & {
36
+ label?: string | undefined;
37
+ labelPlacement?: "inner" | "outer" | undefined;
38
+ leftHelper?: string | undefined;
39
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
40
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
41
+ textBefore?: string | undefined;
42
+ textAfter?: string | undefined;
43
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
44
+ } & {
45
+ requiredPlacement?: "left" | "right" | undefined;
46
+ } & {
47
+ required: true;
48
+ optional?: false | undefined;
49
+ } & {
50
+ enumerationType: "chip";
51
+ onSearch?: undefined;
52
+ chips?: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
53
+ onChangeChips?: ((value: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
54
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
29
55
  size?: string | undefined;
30
56
  view?: string | undefined;
31
57
  readOnly?: boolean | undefined;
@@ -38,16 +64,42 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
38
64
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
39
65
  textBefore?: string | undefined;
40
66
  textAfter?: string | undefined;
41
- optional?: boolean | undefined;
42
- required?: boolean | undefined;
67
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
68
+ } & {
43
69
  requiredPlacement?: "left" | "right" | undefined;
70
+ } & {
71
+ optional?: true | undefined;
72
+ required?: false | undefined;
73
+ } & {
74
+ chips?: undefined;
75
+ onChangeChips?: undefined;
76
+ enumerationType?: "plain" | undefined;
77
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
78
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
79
+ size?: string | undefined;
80
+ view?: string | undefined;
81
+ readOnly?: boolean | undefined;
82
+ disabled?: boolean | undefined;
83
+ } & {
84
+ label?: string | undefined;
85
+ labelPlacement?: "inner" | "outer" | undefined;
86
+ leftHelper?: string | undefined;
87
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
88
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
89
+ textBefore?: string | undefined;
90
+ textAfter?: string | undefined;
44
91
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
92
+ } & {
93
+ requiredPlacement?: "left" | "right" | undefined;
94
+ } & {
95
+ optional?: true | undefined;
96
+ required?: false | undefined;
45
97
  } & {
46
98
  enumerationType: "chip";
47
99
  onSearch?: undefined;
48
100
  chips?: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
49
101
  onChangeChips?: ((value: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
50
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>))>;
102
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
51
103
  export declare const DoubleWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
52
104
  export declare const SliderWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
53
105
  //# sourceMappingURL=Double.styles.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4HAiCvB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAEzB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAAe,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIAiCvB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAEzB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAAe,CAAC"}
@@ -47,7 +47,32 @@ export declare type TextAreaPropsRowsCols = {
47
47
  cols?: number;
48
48
  };
49
49
  export declare type TextAreaDimensionsProps = OneOf<TextAreaPropsAutoResize, TextAreaPropsHeightWidth, TextAreaPropsRowsCols>;
50
- export interface TextAreaPropsBase {
50
+ declare type RequiredProps = {
51
+ /**
52
+ * Задает выравнивание индикатора обязательности поля
53
+ * @default right
54
+ */
55
+ requiredPlacement?: 'left' | 'right';
56
+ } & ({
57
+ /**
58
+ * Флаг обязательности поля
59
+ */
60
+ required: true;
61
+ /**
62
+ * Флаг необязательности поля
63
+ */
64
+ optional?: never | false;
65
+ } | {
66
+ /**
67
+ * Флаг необязательности поля
68
+ */
69
+ optional?: true;
70
+ /**
71
+ * Флаг обязательности поля
72
+ */
73
+ required?: never | false;
74
+ });
75
+ export declare type TextAreaPropsBase = {
51
76
  /**
52
77
  * Статус компонента: заполнен успешно / с предупреждением / с ошибкой.
53
78
  * @deprecated использовать вместо этого свойство `view`
@@ -83,21 +108,8 @@ export interface TextAreaPropsBase {
83
108
  * Вспомогательный текст снизу справа для поля ввода.
84
109
  */
85
110
  rightHelper?: string;
86
- /**
87
- * Флаг необязательности поля
88
- */
89
- optional?: boolean;
90
- /**
91
- * Флаг обязательности поля
92
- */
93
- required?: boolean;
94
- /**
95
- * Задает выравнивание индикатора обязательности поля
96
- * @default right
97
- */
98
- requiredPlacement?: 'left' | 'right';
99
- }
100
- export interface TextAreaPropsExtends extends TextAreaPropsBase {
111
+ } & RequiredProps;
112
+ declare type TextAreaPropsExtends = TextAreaPropsBase & {
101
113
  /**
102
114
  * Размер контрола.
103
115
  */
@@ -106,7 +118,7 @@ export interface TextAreaPropsExtends extends TextAreaPropsBase {
106
118
  * Вид контрола.
107
119
  */
108
120
  view?: string;
109
- }
110
- export declare type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'rows' | 'cols'> & TextAreaPropsExtends & TextAreaDimensionsProps;
121
+ };
122
+ export declare type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'rows' | 'cols' | 'required'> & TextAreaPropsExtends & TextAreaDimensionsProps;
111
123
  export {};
112
124
  //# sourceMappingURL=TextArea.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.types.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,aAAK,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI;KAChB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvB,GACG;KACK,CAAC,IAAI,MAAM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AAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;IACrD;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACxC;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC3D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oBAAY,aAAa,GAAG,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,GAC1F,oBAAoB,GACpB,uBAAuB,CAAC"}
1
+ {"version":3,"file":"TextArea.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.types.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,aAAK,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI;KAChB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvB,GACG;KACK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK;CACzB,GACD;KACK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK;CACzB,CAAC;AAEN,aAAK,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EA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;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;IACrD;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,aAAa,CAAC;AAElB,aAAK,oBAAoB,GAAG,iBAAiB,GAAG;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,aAAa,GAAG,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC,GACvG,oBAAoB,GACpB,uBAAuB,CAAC"}
@@ -42,6 +42,31 @@ declare type TextFieldChipProps = {
42
42
  */
43
43
  onChangeChips?: (value: Array<TextFieldPrimitiveValue>) => void;
44
44
  };
45
+ declare type RequiredProps = {
46
+ /**
47
+ * Задает выравнивание индикатора обязательности поля
48
+ * @default right
49
+ */
50
+ requiredPlacement?: 'left' | 'right';
51
+ } & ({
52
+ /**
53
+ * Флаг обязательности поля
54
+ */
55
+ required: true;
56
+ /**
57
+ * Флаг необязательности поля
58
+ */
59
+ optional?: never | false;
60
+ } | {
61
+ /**
62
+ * Флаг необязательности поля
63
+ */
64
+ optional?: true;
65
+ /**
66
+ * Флаг обязательности поля
67
+ */
68
+ required?: never | false;
69
+ });
45
70
  export declare type TextFieldPropsBase = {
46
71
  /**
47
72
  * Метка-подпись к элементу
@@ -71,24 +96,11 @@ export declare type TextFieldPropsBase = {
71
96
  * Слот для вспомогательного текста слева.
72
97
  */
73
98
  textAfter?: string;
74
- /**
75
- * Флаг необязательности поля
76
- */
77
- optional?: boolean;
78
- /**
79
- * Флаг обязательности поля
80
- */
81
- required?: boolean;
82
- /**
83
- * Задает выравнивание индикатора обязательности поля
84
- * @default right
85
- */
86
- requiredPlacement?: 'left' | 'right';
87
99
  /**
88
100
  * Callback по нажатию Enter
89
101
  */
90
102
  onSearch?: (value: string, event?: KeyboardEvent<HTMLInputElement>) => void;
91
- } & TextFieldChipProps;
103
+ } & RequiredProps & TextFieldChipProps;
92
104
  export declare type TextFieldProps = {
93
105
  /**
94
106
  * Размер контрола.
@@ -106,7 +118,7 @@ export declare type TextFieldProps = {
106
118
  * Компонент неактивен.
107
119
  */
108
120
  disabled?: boolean;
109
- } & TextFieldPropsBase & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;
121
+ } & TextFieldPropsBase & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'required'>;
110
122
  export interface ControlledRefs {
111
123
  chipsRefs: MutableRefObject<Array<HTMLButtonElement>>;
112
124
  inputRef?: MutableRefObject<HTMLInputElement | null>;
@@ -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,mBAAmB,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAE/F,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,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C,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"}
@@ -22,5 +22,5 @@ export declare const Autocomplete: import("react").FunctionComponent<import("../
22
22
  readOnly: {
23
23
  true: import("@linaria/core").LinariaClassName;
24
24
  };
25
- }> & import("../../../../components/Autocomplete/Autocomplete.types").BaseProps & Omit<import("../../../../components/TextField/TextField.types").TextFieldPropsBase, "chips" | "enumerationType" | "onChangeChips"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>>;
25
+ }> & import("../../../../components/Autocomplete/Autocomplete.types").BaseProps & Omit<import("../../../../components/TextField/TextField.types").TextFieldPropsBase, "required" | "optional" | "requiredPlacement" | "chips" | "enumerationType" | "onChangeChips"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>>;
26
26
  //# 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;;;;;;;;;;;;;;;;;;;;;;;6UAA0B,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Autocomplete/Autocomplete.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;0YAA0B,CAAC"}
@@ -15,7 +15,24 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
15
15
  disabled: {
16
16
  true: import("@linaria/core").LinariaClassName;
17
17
  };
18
- }> & ((Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
18
+ }> & ((Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
19
+ status?: "" | "error" | "success" | "warning" | undefined;
20
+ label?: string | undefined;
21
+ labelPlacement?: "inner" | "outer" | undefined;
22
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
23
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
24
+ helperText?: string | undefined;
25
+ leftHelper?: string | undefined;
26
+ rightHelper?: string | undefined;
27
+ } & {
28
+ requiredPlacement?: "left" | "right" | undefined;
29
+ } & {
30
+ required: true;
31
+ optional?: false | undefined;
32
+ } & {
33
+ size?: string | undefined;
34
+ view?: string | undefined;
35
+ } & {
19
36
  autoResize?: boolean | undefined;
20
37
  maxAuto?: number | undefined;
21
38
  minAuto?: number | undefined;
@@ -25,7 +42,24 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
25
42
  } & {
26
43
  rows?: undefined;
27
44
  cols?: undefined;
28
- } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
45
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
46
+ status?: "" | "error" | "success" | "warning" | undefined;
47
+ label?: string | undefined;
48
+ labelPlacement?: "inner" | "outer" | undefined;
49
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
50
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
51
+ helperText?: string | undefined;
52
+ leftHelper?: string | undefined;
53
+ rightHelper?: string | undefined;
54
+ } & {
55
+ requiredPlacement?: "left" | "right" | undefined;
56
+ } & {
57
+ required: true;
58
+ optional?: false | undefined;
59
+ } & {
60
+ size?: string | undefined;
61
+ view?: string | undefined;
62
+ } & {
29
63
  height?: string | number | undefined;
30
64
  width?: string | number | undefined;
31
65
  } & {
@@ -35,7 +69,105 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
35
69
  } & {
36
70
  rows?: undefined;
37
71
  cols?: undefined;
38
- } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
72
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
73
+ status?: "" | "error" | "success" | "warning" | undefined;
74
+ label?: string | undefined;
75
+ labelPlacement?: "inner" | "outer" | undefined;
76
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
77
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
78
+ helperText?: string | undefined;
79
+ leftHelper?: string | undefined;
80
+ rightHelper?: string | undefined;
81
+ } & {
82
+ requiredPlacement?: "left" | "right" | undefined;
83
+ } & {
84
+ required: true;
85
+ optional?: false | undefined;
86
+ } & {
87
+ size?: string | undefined;
88
+ view?: string | undefined;
89
+ } & {
90
+ rows?: number | undefined;
91
+ cols?: number | undefined;
92
+ } & {
93
+ autoResize?: undefined;
94
+ maxAuto?: undefined;
95
+ minAuto?: undefined;
96
+ } & {
97
+ height?: undefined;
98
+ width?: undefined;
99
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
100
+ status?: "" | "error" | "success" | "warning" | undefined;
101
+ label?: string | undefined;
102
+ labelPlacement?: "inner" | "outer" | undefined;
103
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
104
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
105
+ helperText?: string | undefined;
106
+ leftHelper?: string | undefined;
107
+ rightHelper?: string | undefined;
108
+ } & {
109
+ requiredPlacement?: "left" | "right" | undefined;
110
+ } & {
111
+ optional?: true | undefined;
112
+ required?: false | undefined;
113
+ } & {
114
+ size?: string | undefined;
115
+ view?: string | undefined;
116
+ } & {
117
+ autoResize?: boolean | undefined;
118
+ maxAuto?: number | undefined;
119
+ minAuto?: number | undefined;
120
+ } & {
121
+ height?: undefined;
122
+ width?: undefined;
123
+ } & {
124
+ rows?: undefined;
125
+ cols?: undefined;
126
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
127
+ status?: "" | "error" | "success" | "warning" | undefined;
128
+ label?: string | undefined;
129
+ labelPlacement?: "inner" | "outer" | undefined;
130
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
131
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
132
+ helperText?: string | undefined;
133
+ leftHelper?: string | undefined;
134
+ rightHelper?: string | undefined;
135
+ } & {
136
+ requiredPlacement?: "left" | "right" | undefined;
137
+ } & {
138
+ optional?: true | undefined;
139
+ required?: false | undefined;
140
+ } & {
141
+ size?: string | undefined;
142
+ view?: string | undefined;
143
+ } & {
144
+ height?: string | number | undefined;
145
+ width?: string | number | undefined;
146
+ } & {
147
+ autoResize?: undefined;
148
+ maxAuto?: undefined;
149
+ minAuto?: undefined;
150
+ } & {
151
+ rows?: undefined;
152
+ cols?: undefined;
153
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "required" | "rows" | "cols"> & {
154
+ status?: "" | "error" | "success" | "warning" | undefined;
155
+ label?: string | undefined;
156
+ labelPlacement?: "inner" | "outer" | undefined;
157
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
158
+ resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
159
+ helperText?: string | undefined;
160
+ leftHelper?: string | undefined;
161
+ rightHelper?: string | undefined;
162
+ } & {
163
+ requiredPlacement?: "left" | "right" | undefined;
164
+ } & {
165
+ optional?: true | undefined;
166
+ required?: false | undefined;
167
+ } & {
168
+ size?: string | undefined;
169
+ view?: string | undefined;
170
+ } & {
39
171
  rows?: number | undefined;
40
172
  cols?: number | undefined;
41
173
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAA0B,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAA0B,CAAC"}
@@ -35,16 +35,42 @@ export declare const TextField: import("react").FunctionComponent<import("../../
35
35
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
36
36
  textBefore?: string | undefined;
37
37
  textAfter?: string | undefined;
38
- optional?: boolean | undefined;
39
- required?: boolean | undefined;
40
- requiredPlacement?: "left" | "right" | undefined;
41
38
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
39
+ } & {
40
+ requiredPlacement?: "left" | "right" | undefined;
41
+ } & {
42
+ required: true;
43
+ optional?: false | undefined;
42
44
  } & {
43
45
  chips?: undefined;
44
46
  onChangeChips?: undefined;
45
47
  enumerationType?: "plain" | undefined;
46
48
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
47
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
49
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
50
+ size?: string | undefined;
51
+ view?: string | undefined;
52
+ readOnly?: boolean | undefined;
53
+ disabled?: boolean | undefined;
54
+ } & {
55
+ label?: string | undefined;
56
+ labelPlacement?: "inner" | "outer" | undefined;
57
+ leftHelper?: string | undefined;
58
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
59
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
60
+ textBefore?: string | undefined;
61
+ textAfter?: string | undefined;
62
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
63
+ } & {
64
+ requiredPlacement?: "left" | "right" | undefined;
65
+ } & {
66
+ required: true;
67
+ optional?: false | undefined;
68
+ } & {
69
+ enumerationType: "chip";
70
+ onSearch?: undefined;
71
+ chips?: import("../../../../components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
72
+ onChangeChips?: ((value: import("../../../../components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
73
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
48
74
  size?: string | undefined;
49
75
  view?: string | undefined;
50
76
  readOnly?: boolean | undefined;
@@ -57,14 +83,40 @@ export declare const TextField: import("react").FunctionComponent<import("../../
57
83
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
58
84
  textBefore?: string | undefined;
59
85
  textAfter?: string | undefined;
60
- optional?: boolean | undefined;
61
- required?: boolean | undefined;
86
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
87
+ } & {
62
88
  requiredPlacement?: "left" | "right" | undefined;
89
+ } & {
90
+ optional?: true | undefined;
91
+ required?: false | undefined;
92
+ } & {
93
+ chips?: undefined;
94
+ onChangeChips?: undefined;
95
+ enumerationType?: "plain" | undefined;
96
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
97
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
98
+ size?: string | undefined;
99
+ view?: string | undefined;
100
+ readOnly?: boolean | undefined;
101
+ disabled?: boolean | undefined;
102
+ } & {
103
+ label?: string | undefined;
104
+ labelPlacement?: "inner" | "outer" | undefined;
105
+ leftHelper?: string | undefined;
106
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
107
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
108
+ textBefore?: string | undefined;
109
+ textAfter?: string | undefined;
63
110
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
111
+ } & {
112
+ requiredPlacement?: "left" | "right" | undefined;
113
+ } & {
114
+ optional?: true | undefined;
115
+ required?: false | undefined;
64
116
  } & {
65
117
  enumerationType: "chip";
66
118
  onSearch?: undefined;
67
119
  chips?: import("../../../../components/TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
68
120
  onChangeChips?: ((value: import("../../../../components/TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
69
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>))>;
121
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
70
122
  //# sourceMappingURL=TextField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextField/TextField.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4HAA0B,CAAC"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextField/TextField.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIAA0B,CAAC"}
@@ -22,5 +22,5 @@ export declare const Autocomplete: import("react").FunctionComponent<import("../
22
22
  readOnly: {
23
23
  true: import("@linaria/core").LinariaClassName;
24
24
  };
25
- }> & import("../../../../components/Autocomplete/Autocomplete.types").BaseProps & Omit<import("../../../../components/TextField/TextField.types").TextFieldPropsBase, "chips" | "enumerationType" | "onChangeChips"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>>;
25
+ }> & import("../../../../components/Autocomplete/Autocomplete.types").BaseProps & Omit<import("../../../../components/TextField/TextField.types").TextFieldPropsBase, "required" | "optional" | "requiredPlacement" | "chips" | "enumerationType" | "onChangeChips"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>>;
26
26
  //# sourceMappingURL=Autocomplete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Autocomplete/Autocomplete.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;6UAA0B,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Autocomplete/Autocomplete.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;0YAA0B,CAAC"}