@salutejs/plasma-web 1.468.0-canary.1625.12201244312.0 → 1.468.0-canary.1632.12235091027.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -676,7 +676,7 @@ true: PolymorphicClassName;
676
676
  };
677
677
  }> & ((BaseProps & Omit<{
678
678
  titleCaption?: ReactNode;
679
- leftHelper?: string | undefined;
679
+ leftHelper?: ReactNode;
680
680
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
681
681
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
682
682
  textBefore?: string | undefined;
@@ -706,7 +706,7 @@ chipView?: undefined;
706
706
  chipValidator?: undefined;
707
707
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
708
708
  titleCaption?: ReactNode;
709
- leftHelper?: string | undefined;
709
+ leftHelper?: ReactNode;
710
710
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
711
711
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
712
712
  textBefore?: string | undefined;
@@ -738,7 +738,7 @@ view?: string | undefined;
738
738
  }) | undefined;
739
739
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
740
740
  titleCaption?: ReactNode;
741
- leftHelper?: string | undefined;
741
+ leftHelper?: ReactNode;
742
742
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
743
743
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
744
744
  textBefore?: string | undefined;
@@ -768,7 +768,7 @@ chipView?: undefined;
768
768
  chipValidator?: undefined;
769
769
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
770
770
  titleCaption?: ReactNode;
771
- leftHelper?: string | undefined;
771
+ leftHelper?: ReactNode;
772
772
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
773
773
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
774
774
  textBefore?: string | undefined;
@@ -800,7 +800,7 @@ view?: string | undefined;
800
800
  }) | undefined;
801
801
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
802
802
  titleCaption?: ReactNode;
803
- leftHelper?: string | undefined;
803
+ leftHelper?: ReactNode;
804
804
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
805
805
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
806
806
  textBefore?: string | undefined;
@@ -830,7 +830,7 @@ chipView?: undefined;
830
830
  chipValidator?: undefined;
831
831
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
832
832
  titleCaption?: ReactNode;
833
- leftHelper?: string | undefined;
833
+ leftHelper?: ReactNode;
834
834
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
835
835
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
836
836
  textBefore?: string | undefined;
@@ -862,7 +862,7 @@ view?: string | undefined;
862
862
  }) | undefined;
863
863
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
864
864
  titleCaption?: ReactNode;
865
- leftHelper?: string | undefined;
865
+ leftHelper?: ReactNode;
866
866
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
867
867
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
868
868
  textBefore?: string | undefined;
@@ -892,7 +892,7 @@ chipView?: undefined;
892
892
  chipValidator?: undefined;
893
893
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
894
894
  titleCaption?: ReactNode;
895
- leftHelper?: string | undefined;
895
+ leftHelper?: ReactNode;
896
896
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
897
897
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
898
898
  textBefore?: string | undefined;
@@ -2364,7 +2364,7 @@ readOnly?: boolean | undefined;
2364
2364
  disabled?: boolean | undefined;
2365
2365
  } & {
2366
2366
  titleCaption?: ReactNode;
2367
- leftHelper?: string | undefined;
2367
+ leftHelper?: ReactNode;
2368
2368
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2369
2369
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2370
2370
  textBefore?: string | undefined;
@@ -2440,7 +2440,7 @@ readOnly?: boolean | undefined;
2440
2440
  disabled?: boolean | undefined;
2441
2441
  } & {
2442
2442
  titleCaption?: ReactNode;
2443
- leftHelper?: string | undefined;
2443
+ leftHelper?: ReactNode;
2444
2444
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2445
2445
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2446
2446
  textBefore?: string | undefined;
@@ -2518,7 +2518,7 @@ readOnly?: boolean | undefined;
2518
2518
  disabled?: boolean | undefined;
2519
2519
  } & {
2520
2520
  titleCaption?: ReactNode;
2521
- leftHelper?: string | undefined;
2521
+ leftHelper?: ReactNode;
2522
2522
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2523
2523
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2524
2524
  textBefore?: string | undefined;
@@ -2594,7 +2594,7 @@ readOnly?: boolean | undefined;
2594
2594
  disabled?: boolean | undefined;
2595
2595
  } & {
2596
2596
  titleCaption?: ReactNode;
2597
- leftHelper?: string | undefined;
2597
+ leftHelper?: ReactNode;
2598
2598
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2599
2599
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2600
2600
  textBefore?: string | undefined;
@@ -2672,7 +2672,7 @@ readOnly?: boolean | undefined;
2672
2672
  disabled?: boolean | undefined;
2673
2673
  } & {
2674
2674
  titleCaption?: ReactNode;
2675
- leftHelper?: string | undefined;
2675
+ leftHelper?: ReactNode;
2676
2676
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2677
2677
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2678
2678
  textBefore?: string | undefined;
@@ -2748,7 +2748,7 @@ readOnly?: boolean | undefined;
2748
2748
  disabled?: boolean | undefined;
2749
2749
  } & {
2750
2750
  titleCaption?: ReactNode;
2751
- leftHelper?: string | undefined;
2751
+ leftHelper?: ReactNode;
2752
2752
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2753
2753
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2754
2754
  textBefore?: string | undefined;
@@ -2826,7 +2826,7 @@ readOnly?: boolean | undefined;
2826
2826
  disabled?: boolean | undefined;
2827
2827
  } & {
2828
2828
  titleCaption?: ReactNode;
2829
- leftHelper?: string | undefined;
2829
+ leftHelper?: ReactNode;
2830
2830
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2831
2831
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2832
2832
  textBefore?: string | undefined;
@@ -2902,7 +2902,7 @@ readOnly?: boolean | undefined;
2902
2902
  disabled?: boolean | undefined;
2903
2903
  } & {
2904
2904
  titleCaption?: ReactNode;
2905
- leftHelper?: string | undefined;
2905
+ leftHelper?: ReactNode;
2906
2906
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2907
2907
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2908
2908
  textBefore?: string | undefined;
@@ -3791,7 +3791,7 @@ titleCaption?: ReactNode;
3791
3791
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
3792
3792
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
3793
3793
  helperText?: string | undefined;
3794
- leftHelper?: string | undefined;
3794
+ leftHelper?: ReactNode;
3795
3795
  rightHelper?: string | undefined;
3796
3796
  leftHelperPlacement?: "outer" | "inner" | undefined;
3797
3797
  } & {
@@ -3834,7 +3834,7 @@ titleCaption?: ReactNode;
3834
3834
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
3835
3835
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
3836
3836
  helperText?: string | undefined;
3837
- leftHelper?: string | undefined;
3837
+ leftHelper?: ReactNode;
3838
3838
  rightHelper?: string | undefined;
3839
3839
  leftHelperPlacement?: "outer" | "inner" | undefined;
3840
3840
  } & {
@@ -3877,7 +3877,7 @@ titleCaption?: ReactNode;
3877
3877
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
3878
3878
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
3879
3879
  helperText?: string | undefined;
3880
- leftHelper?: string | undefined;
3880
+ leftHelper?: ReactNode;
3881
3881
  rightHelper?: string | undefined;
3882
3882
  leftHelperPlacement?: "outer" | "inner" | undefined;
3883
3883
  } & {
@@ -3920,7 +3920,7 @@ titleCaption?: ReactNode;
3920
3920
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
3921
3921
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
3922
3922
  helperText?: string | undefined;
3923
- leftHelper?: string | undefined;
3923
+ leftHelper?: ReactNode;
3924
3924
  rightHelper?: string | undefined;
3925
3925
  leftHelperPlacement?: "outer" | "inner" | undefined;
3926
3926
  } & {
@@ -3963,7 +3963,7 @@ titleCaption?: ReactNode;
3963
3963
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
3964
3964
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
3965
3965
  helperText?: string | undefined;
3966
- leftHelper?: string | undefined;
3966
+ leftHelper?: ReactNode;
3967
3967
  rightHelper?: string | undefined;
3968
3968
  leftHelperPlacement?: "outer" | "inner" | undefined;
3969
3969
  } & {
@@ -4006,7 +4006,7 @@ titleCaption?: ReactNode;
4006
4006
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
4007
4007
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
4008
4008
  helperText?: string | undefined;
4009
- leftHelper?: string | undefined;
4009
+ leftHelper?: ReactNode;
4010
4010
  rightHelper?: string | undefined;
4011
4011
  leftHelperPlacement?: "outer" | "inner" | undefined;
4012
4012
  } & {
@@ -4049,7 +4049,7 @@ titleCaption?: ReactNode;
4049
4049
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
4050
4050
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
4051
4051
  helperText?: string | undefined;
4052
- leftHelper?: string | undefined;
4052
+ leftHelper?: ReactNode;
4053
4053
  rightHelper?: string | undefined;
4054
4054
  leftHelperPlacement?: "outer" | "inner" | undefined;
4055
4055
  } & {
@@ -4092,7 +4092,7 @@ titleCaption?: ReactNode;
4092
4092
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
4093
4093
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
4094
4094
  helperText?: string | undefined;
4095
- leftHelper?: string | undefined;
4095
+ leftHelper?: ReactNode;
4096
4096
  rightHelper?: string | undefined;
4097
4097
  leftHelperPlacement?: "outer" | "inner" | undefined;
4098
4098
  } & {
@@ -24,7 +24,7 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
24
24
  };
25
25
  }> & ((import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & Omit<{
26
26
  titleCaption?: import("react").ReactNode;
27
- leftHelper?: string | undefined;
27
+ leftHelper?: import("react").ReactNode;
28
28
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
29
29
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
30
30
  textBefore?: string | undefined;
@@ -54,7 +54,7 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
54
54
  chipValidator?: undefined;
55
55
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & Omit<{
56
56
  titleCaption?: import("react").ReactNode;
57
- leftHelper?: string | undefined;
57
+ leftHelper?: import("react").ReactNode;
58
58
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
59
59
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
60
60
  textBefore?: string | undefined;
@@ -86,7 +86,7 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
86
86
  }) | undefined;
87
87
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & Omit<{
88
88
  titleCaption?: import("react").ReactNode;
89
- leftHelper?: string | undefined;
89
+ leftHelper?: import("react").ReactNode;
90
90
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
91
91
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
92
92
  textBefore?: string | undefined;
@@ -116,7 +116,7 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
116
116
  chipValidator?: undefined;
117
117
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & Omit<{
118
118
  titleCaption?: import("react").ReactNode;
119
- leftHelper?: string | undefined;
119
+ leftHelper?: import("react").ReactNode;
120
120
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
121
121
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
122
122
  textBefore?: string | undefined;
@@ -148,7 +148,7 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
148
148
  }) | undefined;
149
149
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & Omit<{
150
150
  titleCaption?: import("react").ReactNode;
151
- leftHelper?: string | undefined;
151
+ leftHelper?: import("react").ReactNode;
152
152
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
153
153
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
154
154
  textBefore?: string | undefined;
@@ -178,7 +178,7 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
178
178
  chipValidator?: undefined;
179
179
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & Omit<{
180
180
  titleCaption?: import("react").ReactNode;
181
- leftHelper?: string | undefined;
181
+ leftHelper?: import("react").ReactNode;
182
182
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
183
183
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
184
184
  textBefore?: string | undefined;
@@ -210,7 +210,7 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
210
210
  }) | undefined;
211
211
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & Omit<{
212
212
  titleCaption?: import("react").ReactNode;
213
- leftHelper?: string | undefined;
213
+ leftHelper?: import("react").ReactNode;
214
214
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
215
215
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
216
216
  textBefore?: string | undefined;
@@ -240,7 +240,7 @@ export declare const Autocomplete: import("react").FunctionComponent<import("@sa
240
240
  chipValidator?: undefined;
241
241
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "required"> & import("react").RefAttributes<HTMLInputElement>) | (import("@salutejs/plasma-new-hope/types/components/Autocomplete/Autocomplete.types").BaseProps & Omit<{
242
242
  titleCaption?: import("react").ReactNode;
243
- leftHelper?: string | undefined;
243
+ leftHelper?: import("react").ReactNode;
244
244
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
245
245
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
246
246
  textBefore?: string | undefined;
@@ -47,7 +47,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
47
47
  disabled?: boolean | undefined;
48
48
  } & {
49
49
  titleCaption?: import("react").ReactNode;
50
- leftHelper?: string | undefined;
50
+ leftHelper?: import("react").ReactNode;
51
51
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
52
52
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
53
53
  textBefore?: string | undefined;
@@ -123,7 +123,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
123
123
  disabled?: boolean | undefined;
124
124
  } & {
125
125
  titleCaption?: import("react").ReactNode;
126
- leftHelper?: string | undefined;
126
+ leftHelper?: import("react").ReactNode;
127
127
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
128
128
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
129
129
  textBefore?: string | undefined;
@@ -201,7 +201,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
201
201
  disabled?: boolean | undefined;
202
202
  } & {
203
203
  titleCaption?: import("react").ReactNode;
204
- leftHelper?: string | undefined;
204
+ leftHelper?: import("react").ReactNode;
205
205
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
206
206
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
207
207
  textBefore?: string | undefined;
@@ -277,7 +277,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
277
277
  disabled?: boolean | undefined;
278
278
  } & {
279
279
  titleCaption?: import("react").ReactNode;
280
- leftHelper?: string | undefined;
280
+ leftHelper?: import("react").ReactNode;
281
281
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
282
282
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
283
283
  textBefore?: string | undefined;
@@ -355,7 +355,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
355
355
  disabled?: boolean | undefined;
356
356
  } & {
357
357
  titleCaption?: import("react").ReactNode;
358
- leftHelper?: string | undefined;
358
+ leftHelper?: import("react").ReactNode;
359
359
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
360
360
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
361
361
  textBefore?: string | undefined;
@@ -431,7 +431,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
431
431
  disabled?: boolean | undefined;
432
432
  } & {
433
433
  titleCaption?: import("react").ReactNode;
434
- leftHelper?: string | undefined;
434
+ leftHelper?: import("react").ReactNode;
435
435
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
436
436
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
437
437
  textBefore?: string | undefined;
@@ -509,7 +509,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
509
509
  disabled?: boolean | undefined;
510
510
  } & {
511
511
  titleCaption?: import("react").ReactNode;
512
- leftHelper?: string | undefined;
512
+ leftHelper?: import("react").ReactNode;
513
513
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
514
514
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
515
515
  textBefore?: string | undefined;
@@ -585,7 +585,7 @@ export declare const Mask: import("react").ForwardRefExoticComponent<(Omit<impor
585
585
  disabled?: boolean | undefined;
586
586
  } & {
587
587
  titleCaption?: import("react").ReactNode;
588
- leftHelper?: string | undefined;
588
+ leftHelper?: import("react").ReactNode;
589
589
  contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
590
590
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
591
591
  textBefore?: string | undefined;
@@ -37,7 +37,7 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
37
37
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
38
38
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
39
39
  helperText?: string | undefined;
40
- leftHelper?: string | undefined;
40
+ leftHelper?: import("react").ReactNode;
41
41
  rightHelper?: string | undefined;
42
42
  leftHelperPlacement?: "outer" | "inner" | undefined;
43
43
  } & {
@@ -80,7 +80,7 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
80
80
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
81
81
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
82
82
  helperText?: string | undefined;
83
- leftHelper?: string | undefined;
83
+ leftHelper?: import("react").ReactNode;
84
84
  rightHelper?: string | undefined;
85
85
  leftHelperPlacement?: "outer" | "inner" | undefined;
86
86
  } & {
@@ -123,7 +123,7 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
123
123
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
124
124
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
125
125
  helperText?: string | undefined;
126
- leftHelper?: string | undefined;
126
+ leftHelper?: import("react").ReactNode;
127
127
  rightHelper?: string | undefined;
128
128
  leftHelperPlacement?: "outer" | "inner" | undefined;
129
129
  } & {
@@ -166,7 +166,7 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
166
166
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
167
167
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
168
168
  helperText?: string | undefined;
169
- leftHelper?: string | undefined;
169
+ leftHelper?: import("react").ReactNode;
170
170
  rightHelper?: string | undefined;
171
171
  leftHelperPlacement?: "outer" | "inner" | undefined;
172
172
  } & {
@@ -209,7 +209,7 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
209
209
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
210
210
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
211
211
  helperText?: string | undefined;
212
- leftHelper?: string | undefined;
212
+ leftHelper?: import("react").ReactNode;
213
213
  rightHelper?: string | undefined;
214
214
  leftHelperPlacement?: "outer" | "inner" | undefined;
215
215
  } & {
@@ -252,7 +252,7 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
252
252
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
253
253
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
254
254
  helperText?: string | undefined;
255
- leftHelper?: string | undefined;
255
+ leftHelper?: import("react").ReactNode;
256
256
  rightHelper?: string | undefined;
257
257
  leftHelperPlacement?: "outer" | "inner" | undefined;
258
258
  } & {
@@ -295,7 +295,7 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
295
295
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
296
296
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
297
297
  helperText?: string | undefined;
298
- leftHelper?: string | undefined;
298
+ leftHelper?: import("react").ReactNode;
299
299
  rightHelper?: string | undefined;
300
300
  leftHelperPlacement?: "outer" | "inner" | undefined;
301
301
  } & {
@@ -338,7 +338,7 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
338
338
  contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
339
339
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
340
340
  helperText?: string | undefined;
341
- leftHelper?: string | undefined;
341
+ leftHelper?: import("react").ReactNode;
342
342
  rightHelper?: string | undefined;
343
343
  leftHelperPlacement?: "outer" | "inner" | undefined;
344
344
  } & {
@@ -48,8 +48,8 @@ export declare const TextFieldComponent: React.FunctionComponent<import("@salute
48
48
  readOnly?: boolean | undefined;
49
49
  disabled?: boolean | undefined;
50
50
  } & {
51
- titleCaption?: React.ReactNode;
52
- leftHelper?: string | undefined;
51
+ titleCaption?: React.ReactNode; /** TODO: #1064 Remove In plasma-2.0 */
52
+ leftHelper?: React.ReactNode;
53
53
  contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
54
54
  contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
55
55
  textBefore?: string | undefined;
@@ -83,8 +83,8 @@ export declare const TextFieldComponent: React.FunctionComponent<import("@salute
83
83
  readOnly?: boolean | undefined;
84
84
  disabled?: boolean | undefined;
85
85
  } & {
86
- titleCaption?: React.ReactNode;
87
- leftHelper?: string | undefined;
86
+ titleCaption?: React.ReactNode; /** TODO: #1064 Remove In plasma-2.0 */
87
+ leftHelper?: React.ReactNode;
88
88
  contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
89
89
  contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
90
90
  textBefore?: string | undefined;
@@ -124,8 +124,8 @@ export declare const TextFieldComponent: React.FunctionComponent<import("@salute
124
124
  readOnly?: boolean | undefined;
125
125
  disabled?: boolean | undefined;
126
126
  } & {
127
- titleCaption?: React.ReactNode;
128
- leftHelper?: string | undefined;
127
+ titleCaption?: React.ReactNode; /** TODO: #1064 Remove In plasma-2.0 */
128
+ leftHelper?: React.ReactNode;
129
129
  contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
130
130
  contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
131
131
  textBefore?: string | undefined;
@@ -159,8 +159,8 @@ export declare const TextFieldComponent: React.FunctionComponent<import("@salute
159
159
  readOnly?: boolean | undefined;
160
160
  disabled?: boolean | undefined;
161
161
  } & {
162
- titleCaption?: React.ReactNode;
163
- leftHelper?: string | undefined;
162
+ titleCaption?: React.ReactNode; /** TODO: #1064 Remove In plasma-2.0 */
163
+ leftHelper?: React.ReactNode;
164
164
  contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
165
165
  contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
166
166
  textBefore?: string | undefined;
@@ -200,8 +200,8 @@ export declare const TextFieldComponent: React.FunctionComponent<import("@salute
200
200
  readOnly?: boolean | undefined;
201
201
  disabled?: boolean | undefined;
202
202
  } & {
203
- titleCaption?: React.ReactNode;
204
- leftHelper?: string | undefined;
203
+ titleCaption?: React.ReactNode; /** TODO: #1064 Remove In plasma-2.0 */
204
+ leftHelper?: React.ReactNode;
205
205
  contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
206
206
  contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
207
207
  textBefore?: string | undefined;
@@ -235,8 +235,8 @@ export declare const TextFieldComponent: React.FunctionComponent<import("@salute
235
235
  readOnly?: boolean | undefined;
236
236
  disabled?: boolean | undefined;
237
237
  } & {
238
- titleCaption?: React.ReactNode;
239
- leftHelper?: string | undefined;
238
+ titleCaption?: React.ReactNode; /** TODO: #1064 Remove In plasma-2.0 */
239
+ leftHelper?: React.ReactNode;
240
240
  contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
241
241
  contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
242
242
  textBefore?: string | undefined;
@@ -276,8 +276,8 @@ export declare const TextFieldComponent: React.FunctionComponent<import("@salute
276
276
  readOnly?: boolean | undefined;
277
277
  disabled?: boolean | undefined;
278
278
  } & {
279
- titleCaption?: React.ReactNode;
280
- leftHelper?: string | undefined;
279
+ titleCaption?: React.ReactNode; /** TODO: #1064 Remove In plasma-2.0 */
280
+ leftHelper?: React.ReactNode;
281
281
  contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
282
282
  contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
283
283
  textBefore?: string | undefined;
@@ -311,8 +311,8 @@ export declare const TextFieldComponent: React.FunctionComponent<import("@salute
311
311
  readOnly?: boolean | undefined;
312
312
  disabled?: boolean | undefined;
313
313
  } & {
314
- titleCaption?: React.ReactNode;
315
- leftHelper?: string | undefined;
314
+ titleCaption?: React.ReactNode; /** TODO: #1064 Remove In plasma-2.0 */
315
+ leftHelper?: React.ReactNode;
316
316
  contentLeft?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
317
317
  contentRight?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
318
318
  textBefore?: string | undefined;
@@ -423,7 +423,12 @@ declare type HintProps = {
423
423
  hintWidth?: never;
424
424
  hintContentLeft?: never;
425
425
  };
426
- declare type TextFieldProps = TextFieldPropsOld & ClearProps & HintProps;
426
+ declare type TextFieldProps = Omit<TextFieldPropsOld, 'helperText'> & {
427
+ /**
428
+ * Подсказка для поля ввода.
429
+ */
430
+ helperText?: ReactNode;
431
+ } & ClearProps & HintProps;
427
432
  export declare type CustomTextFieldProps = TextFieldProps & Pick<newHopeTextFieldProps, 'enumerationType' | 'chips' | 'chipType' | 'onChangeChips' | 'titleCaption' | 'labelPlacement' | 'keepPlaceholder' | 'required' | 'requiredPlacement' | 'optional' | 'chipView' | 'chipValidator'>;
428
433
  /**
429
434
  * Поле ввода текста.
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.js","sources":["../../../../src-css/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react';\nimport type { TextFieldProps as TextFieldPropsOld } from '@salutejs/plasma-hope';\nimport { textFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\nimport type { PopoverPlacement, PopoverPlacementBasic } from '@salutejs/plasma-new-hope';\n\nimport { config } from './TextField.config';\n\nconst mergedConfig = mergeConfig(textFieldConfig, config);\nexport const TextFieldComponent = component(mergedConfig);\n\ntype newHopeTextFieldProps = React.ComponentProps<typeof TextFieldComponent>;\n\ntype ClearProps =\n | {\n /**\n * view применяется с clear-токенами\n */\n clear?: boolean;\n /**\n * отобразить ли divider\n */\n hasDivider?: boolean;\n }\n | {\n /**\n * view применяется с clear-токенами\n */\n clear?: false;\n /**\n * отобразить ли divider\n */\n hasDivider?: never;\n };\n\ntype HintProps =\n | {\n /**\n * Текст тултипа\n */\n hintText: string;\n /**\n * Способ открытия тултипа - наведение или клик мышью\n */\n hintTrigger?: 'hover' | 'click';\n /**\n * Вид тултипа\n */\n hintView?: 'default';\n /**\n * Размер тултипа\n */\n hintSize?: 's' | 'm';\n /**\n * Элемент, рядом с которым произойдет вызов всплывающего окна.\n * Если свойство не задано, применится иконка по умолчанию.\n */\n hintTarget?: ReactNode;\n /**\n * Направление раскрытия тултипа.\n */\n hintPlacement?: PopoverPlacement | Array<PopoverPlacementBasic>;\n /**\n * Видимость стрелки (хвоста).\n */\n hintHasArrow?: boolean;\n /**\n * Отступ окна относительно элемента, у которого оно вызвано.\n * @default\n * [0, 8]\n */\n hintOffset?: [number, number];\n /**\n * Ширина окна (в rem).\n */\n hintWidth?: string;\n /**\n * Слот для контента слева, например `Icon`.\n */\n hintContentLeft?: ReactNode;\n }\n | {\n hintTrigger?: never;\n hintText?: never;\n hintView?: never;\n hintSize?: never;\n hintTarget?: never;\n hintPlacement?: never;\n hintHasArrow?: never;\n hintOffset?: never;\n hintWidth?: never;\n hintContentLeft?: never;\n };\n\ntype TextFieldProps = TextFieldPropsOld & ClearProps & HintProps;\n\nexport type CustomTextFieldProps = TextFieldProps &\n Pick<\n newHopeTextFieldProps,\n | 'enumerationType'\n | 'chips'\n | 'chipType'\n | 'onChangeChips'\n | 'titleCaption'\n | 'labelPlacement'\n | 'keepPlaceholder'\n | 'required'\n | 'requiredPlacement'\n | 'optional'\n | 'chipView'\n | 'chipValidator'\n >;\n\nconst statusToView: Record<NonNullable<TextFieldProps['status']>, NonNullable<newHopeTextFieldProps['view']>> = {\n success: 'positive',\n warning: 'warning',\n error: 'negative',\n};\nconst animatedHintToLabelPlacement: Record<\n NonNullable<TextFieldProps['animatedHint']>,\n NonNullable<newHopeTextFieldProps['labelPlacement']>\n> = {\n placeholder: 'outer',\n label: 'inner',\n};\n\n/**\n * Поле ввода текста.\n */\nexport const TextField = forwardRef<HTMLInputElement, CustomTextFieldProps>((props, ref) => {\n const {\n status,\n\n label,\n keepPlaceholder,\n placeholder,\n animatedHint,\n helperText,\n hintText,\n\n enumerationType,\n chips,\n chipView,\n chipValidator,\n onSearch,\n onChangeChips,\n chipType,\n\n size = 'l',\n\n ...rest\n } = props;\n\n /** TODO: #1064 Remove In plasma-2.0 */\n /* eslint-disable no-underscore-dangle */\n const _view = status ? statusToView[status] : 'default';\n let _labelPlacement = animatedHint ? animatedHintToLabelPlacement[animatedHint] : 'outer';\n let _label = label ? String(label) : undefined;\n\n if (size !== 'l' && _labelPlacement === 'inner' && !keepPlaceholder) {\n _label = undefined;\n _labelPlacement = 'outer';\n }\n\n if (size === 'l' && animatedHint === 'placeholder' && !label) {\n _label = placeholder;\n _labelPlacement = 'inner';\n }\n\n const labelProps = {\n label: _label,\n labelPlacement: _labelPlacement,\n keepPlaceholder,\n };\n\n if (enumerationType === 'chip') {\n return (\n <TextFieldComponent\n {...rest}\n {...labelProps}\n view={_view}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"chip\"\n chips={chips}\n chipView={chipView}\n chipValidator={chipValidator}\n hintText={String(hintText || '')}\n onChangeChips={onChangeChips}\n chipType={chipType}\n />\n );\n }\n\n return (\n <TextFieldComponent\n {...rest}\n {...labelProps}\n view={_view}\n label={_label}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"plain\"\n hintText={String(hintText || '')}\n onSearch={onSearch}\n />\n );\n});\n"],"names":["mergedConfig","mergeConfig","textFieldConfig","config","TextFieldComponent","component","statusToView","success","warning","error","animatedHintToLabelPlacement","placeholder","label","TextField","forwardRef","props","ref","status","keepPlaceholder","animatedHint","helperText","hintText","enumerationType","chips","chipView","chipValidator","onSearch","onChangeChips","chipType","_props$size","size","rest","_objectWithoutProperties","_excluded","_view","_labelPlacement","_label","String","undefined","labelProps","labelPlacement","React","createElement","_extends","view","leftHelper"],"mappings":"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"}
1
+ {"version":3,"file":"TextField.js","sources":["../../../../src-css/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react';\nimport type { TextFieldProps as TextFieldPropsOld } from '@salutejs/plasma-hope';\nimport { textFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\nimport type { PopoverPlacement, PopoverPlacementBasic } from '@salutejs/plasma-new-hope';\n\nimport { config } from './TextField.config';\n\nconst mergedConfig = mergeConfig(textFieldConfig, config);\nexport const TextFieldComponent = component(mergedConfig);\n\ntype newHopeTextFieldProps = React.ComponentProps<typeof TextFieldComponent>;\n\ntype ClearProps =\n | {\n /**\n * view применяется с clear-токенами\n */\n clear?: boolean;\n /**\n * отобразить ли divider\n */\n hasDivider?: boolean;\n }\n | {\n /**\n * view применяется с clear-токенами\n */\n clear?: false;\n /**\n * отобразить ли divider\n */\n hasDivider?: never;\n };\n\ntype HintProps =\n | {\n /**\n * Текст тултипа\n */\n hintText: string;\n /**\n * Способ открытия тултипа - наведение или клик мышью\n */\n hintTrigger?: 'hover' | 'click';\n /**\n * Вид тултипа\n */\n hintView?: 'default';\n /**\n * Размер тултипа\n */\n hintSize?: 's' | 'm';\n /**\n * Элемент, рядом с которым произойдет вызов всплывающего окна.\n * Если свойство не задано, применится иконка по умолчанию.\n */\n hintTarget?: ReactNode;\n /**\n * Направление раскрытия тултипа.\n */\n hintPlacement?: PopoverPlacement | Array<PopoverPlacementBasic>;\n /**\n * Видимость стрелки (хвоста).\n */\n hintHasArrow?: boolean;\n /**\n * Отступ окна относительно элемента, у которого оно вызвано.\n * @default\n * [0, 8]\n */\n hintOffset?: [number, number];\n /**\n * Ширина окна (в rem).\n */\n hintWidth?: string;\n /**\n * Слот для контента слева, например `Icon`.\n */\n hintContentLeft?: ReactNode;\n }\n | {\n hintTrigger?: never;\n hintText?: never;\n hintView?: never;\n hintSize?: never;\n hintTarget?: never;\n hintPlacement?: never;\n hintHasArrow?: never;\n hintOffset?: never;\n hintWidth?: never;\n hintContentLeft?: never;\n };\n\ntype TextFieldProps = Omit<TextFieldPropsOld, 'helperText'> & {\n /**\n * Подсказка для поля ввода.\n */\n helperText?: ReactNode;\n} & ClearProps &\n HintProps;\n\nexport type CustomTextFieldProps = TextFieldProps &\n Pick<\n newHopeTextFieldProps,\n | 'enumerationType'\n | 'chips'\n | 'chipType'\n | 'onChangeChips'\n | 'titleCaption'\n | 'labelPlacement'\n | 'keepPlaceholder'\n | 'required'\n | 'requiredPlacement'\n | 'optional'\n | 'chipView'\n | 'chipValidator'\n >;\n\nconst statusToView: Record<NonNullable<TextFieldProps['status']>, NonNullable<newHopeTextFieldProps['view']>> = {\n success: 'positive',\n warning: 'warning',\n error: 'negative',\n};\nconst animatedHintToLabelPlacement: Record<\n NonNullable<TextFieldProps['animatedHint']>,\n NonNullable<newHopeTextFieldProps['labelPlacement']>\n> = {\n placeholder: 'outer',\n label: 'inner',\n};\n\n/**\n * Поле ввода текста.\n */\nexport const TextField = forwardRef<HTMLInputElement, CustomTextFieldProps>((props, ref) => {\n const {\n status,\n\n label,\n keepPlaceholder,\n placeholder,\n animatedHint,\n helperText,\n hintText,\n\n enumerationType,\n chips,\n chipView,\n chipValidator,\n onSearch,\n onChangeChips,\n chipType,\n\n size = 'l',\n\n ...rest\n } = props;\n\n /** TODO: #1064 Remove In plasma-2.0 */\n /* eslint-disable no-underscore-dangle */\n const _view = status ? statusToView[status] : 'default';\n let _labelPlacement = animatedHint ? animatedHintToLabelPlacement[animatedHint] : 'outer';\n let _label = label ? String(label) : undefined;\n\n if (size !== 'l' && _labelPlacement === 'inner' && !keepPlaceholder) {\n _label = undefined;\n _labelPlacement = 'outer';\n }\n\n if (size === 'l' && animatedHint === 'placeholder' && !label) {\n _label = placeholder;\n _labelPlacement = 'inner';\n }\n\n const labelProps = {\n label: _label,\n labelPlacement: _labelPlacement,\n keepPlaceholder,\n };\n\n if (enumerationType === 'chip') {\n return (\n <TextFieldComponent\n {...rest}\n {...labelProps}\n view={_view}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"chip\"\n chips={chips}\n chipView={chipView}\n chipValidator={chipValidator}\n hintText={String(hintText || '')}\n onChangeChips={onChangeChips}\n chipType={chipType}\n />\n );\n }\n\n return (\n <TextFieldComponent\n {...rest}\n {...labelProps}\n view={_view}\n label={_label}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"plain\"\n hintText={String(hintText || '')}\n onSearch={onSearch}\n />\n );\n});\n"],"names":["mergedConfig","mergeConfig","textFieldConfig","config","TextFieldComponent","component","statusToView","success","warning","error","animatedHintToLabelPlacement","placeholder","label","TextField","forwardRef","props","ref","status","keepPlaceholder","animatedHint","helperText","hintText","enumerationType","chips","chipView","chipValidator","onSearch","onChangeChips","chipType","_props$size","size","rest","_objectWithoutProperties","_excluded","_view","_labelPlacement","_label","String","undefined","labelProps","labelPlacement","React","createElement","_extends","view","leftHelper"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.js","sources":["../../../../src-css/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react';\nimport type { TextFieldProps as TextFieldPropsOld } from '@salutejs/plasma-hope';\nimport { textFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\nimport type { PopoverPlacement, PopoverPlacementBasic } from '@salutejs/plasma-new-hope';\n\nimport { config } from './TextField.config';\n\nconst mergedConfig = mergeConfig(textFieldConfig, config);\nexport const TextFieldComponent = component(mergedConfig);\n\ntype newHopeTextFieldProps = React.ComponentProps<typeof TextFieldComponent>;\n\ntype ClearProps =\n | {\n /**\n * view применяется с clear-токенами\n */\n clear?: boolean;\n /**\n * отобразить ли divider\n */\n hasDivider?: boolean;\n }\n | {\n /**\n * view применяется с clear-токенами\n */\n clear?: false;\n /**\n * отобразить ли divider\n */\n hasDivider?: never;\n };\n\ntype HintProps =\n | {\n /**\n * Текст тултипа\n */\n hintText: string;\n /**\n * Способ открытия тултипа - наведение или клик мышью\n */\n hintTrigger?: 'hover' | 'click';\n /**\n * Вид тултипа\n */\n hintView?: 'default';\n /**\n * Размер тултипа\n */\n hintSize?: 's' | 'm';\n /**\n * Элемент, рядом с которым произойдет вызов всплывающего окна.\n * Если свойство не задано, применится иконка по умолчанию.\n */\n hintTarget?: ReactNode;\n /**\n * Направление раскрытия тултипа.\n */\n hintPlacement?: PopoverPlacement | Array<PopoverPlacementBasic>;\n /**\n * Видимость стрелки (хвоста).\n */\n hintHasArrow?: boolean;\n /**\n * Отступ окна относительно элемента, у которого оно вызвано.\n * @default\n * [0, 8]\n */\n hintOffset?: [number, number];\n /**\n * Ширина окна (в rem).\n */\n hintWidth?: string;\n /**\n * Слот для контента слева, например `Icon`.\n */\n hintContentLeft?: ReactNode;\n }\n | {\n hintTrigger?: never;\n hintText?: never;\n hintView?: never;\n hintSize?: never;\n hintTarget?: never;\n hintPlacement?: never;\n hintHasArrow?: never;\n hintOffset?: never;\n hintWidth?: never;\n hintContentLeft?: never;\n };\n\ntype TextFieldProps = TextFieldPropsOld & ClearProps & HintProps;\n\nexport type CustomTextFieldProps = TextFieldProps &\n Pick<\n newHopeTextFieldProps,\n | 'enumerationType'\n | 'chips'\n | 'chipType'\n | 'onChangeChips'\n | 'titleCaption'\n | 'labelPlacement'\n | 'keepPlaceholder'\n | 'required'\n | 'requiredPlacement'\n | 'optional'\n | 'chipView'\n | 'chipValidator'\n >;\n\nconst statusToView: Record<NonNullable<TextFieldProps['status']>, NonNullable<newHopeTextFieldProps['view']>> = {\n success: 'positive',\n warning: 'warning',\n error: 'negative',\n};\nconst animatedHintToLabelPlacement: Record<\n NonNullable<TextFieldProps['animatedHint']>,\n NonNullable<newHopeTextFieldProps['labelPlacement']>\n> = {\n placeholder: 'outer',\n label: 'inner',\n};\n\n/**\n * Поле ввода текста.\n */\nexport const TextField = forwardRef<HTMLInputElement, CustomTextFieldProps>((props, ref) => {\n const {\n status,\n\n label,\n keepPlaceholder,\n placeholder,\n animatedHint,\n helperText,\n hintText,\n\n enumerationType,\n chips,\n chipView,\n chipValidator,\n onSearch,\n onChangeChips,\n chipType,\n\n size = 'l',\n\n ...rest\n } = props;\n\n /** TODO: #1064 Remove In plasma-2.0 */\n /* eslint-disable no-underscore-dangle */\n const _view = status ? statusToView[status] : 'default';\n let _labelPlacement = animatedHint ? animatedHintToLabelPlacement[animatedHint] : 'outer';\n let _label = label ? String(label) : undefined;\n\n if (size !== 'l' && _labelPlacement === 'inner' && !keepPlaceholder) {\n _label = undefined;\n _labelPlacement = 'outer';\n }\n\n if (size === 'l' && animatedHint === 'placeholder' && !label) {\n _label = placeholder;\n _labelPlacement = 'inner';\n }\n\n const labelProps = {\n label: _label,\n labelPlacement: _labelPlacement,\n keepPlaceholder,\n };\n\n if (enumerationType === 'chip') {\n return (\n <TextFieldComponent\n {...rest}\n {...labelProps}\n view={_view}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"chip\"\n chips={chips}\n chipView={chipView}\n chipValidator={chipValidator}\n hintText={String(hintText || '')}\n onChangeChips={onChangeChips}\n chipType={chipType}\n />\n );\n }\n\n return (\n <TextFieldComponent\n {...rest}\n {...labelProps}\n view={_view}\n label={_label}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"plain\"\n hintText={String(hintText || '')}\n onSearch={onSearch}\n />\n );\n});\n"],"names":["mergedConfig","mergeConfig","textFieldConfig","config","TextFieldComponent","component","statusToView","success","warning","error","animatedHintToLabelPlacement","placeholder","label","TextField","forwardRef","props","ref","status","keepPlaceholder","animatedHint","helperText","hintText","enumerationType","chips","chipView","chipValidator","onSearch","onChangeChips","chipType","_props$size","size","rest","_objectWithoutProperties","_excluded","_view","_labelPlacement","_label","String","undefined","labelProps","labelPlacement","React","createElement","_extends","view","leftHelper"],"mappings":"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"}
1
+ {"version":3,"file":"TextField.js","sources":["../../../../src-css/components/TextField/TextField.tsx"],"sourcesContent":["import React, { forwardRef, ReactNode } from 'react';\nimport type { TextFieldProps as TextFieldPropsOld } from '@salutejs/plasma-hope';\nimport { textFieldConfig, component, mergeConfig } from '@salutejs/plasma-new-hope';\nimport type { PopoverPlacement, PopoverPlacementBasic } from '@salutejs/plasma-new-hope';\n\nimport { config } from './TextField.config';\n\nconst mergedConfig = mergeConfig(textFieldConfig, config);\nexport const TextFieldComponent = component(mergedConfig);\n\ntype newHopeTextFieldProps = React.ComponentProps<typeof TextFieldComponent>;\n\ntype ClearProps =\n | {\n /**\n * view применяется с clear-токенами\n */\n clear?: boolean;\n /**\n * отобразить ли divider\n */\n hasDivider?: boolean;\n }\n | {\n /**\n * view применяется с clear-токенами\n */\n clear?: false;\n /**\n * отобразить ли divider\n */\n hasDivider?: never;\n };\n\ntype HintProps =\n | {\n /**\n * Текст тултипа\n */\n hintText: string;\n /**\n * Способ открытия тултипа - наведение или клик мышью\n */\n hintTrigger?: 'hover' | 'click';\n /**\n * Вид тултипа\n */\n hintView?: 'default';\n /**\n * Размер тултипа\n */\n hintSize?: 's' | 'm';\n /**\n * Элемент, рядом с которым произойдет вызов всплывающего окна.\n * Если свойство не задано, применится иконка по умолчанию.\n */\n hintTarget?: ReactNode;\n /**\n * Направление раскрытия тултипа.\n */\n hintPlacement?: PopoverPlacement | Array<PopoverPlacementBasic>;\n /**\n * Видимость стрелки (хвоста).\n */\n hintHasArrow?: boolean;\n /**\n * Отступ окна относительно элемента, у которого оно вызвано.\n * @default\n * [0, 8]\n */\n hintOffset?: [number, number];\n /**\n * Ширина окна (в rem).\n */\n hintWidth?: string;\n /**\n * Слот для контента слева, например `Icon`.\n */\n hintContentLeft?: ReactNode;\n }\n | {\n hintTrigger?: never;\n hintText?: never;\n hintView?: never;\n hintSize?: never;\n hintTarget?: never;\n hintPlacement?: never;\n hintHasArrow?: never;\n hintOffset?: never;\n hintWidth?: never;\n hintContentLeft?: never;\n };\n\ntype TextFieldProps = Omit<TextFieldPropsOld, 'helperText'> & {\n /**\n * Подсказка для поля ввода.\n */\n helperText?: ReactNode;\n} & ClearProps &\n HintProps;\n\nexport type CustomTextFieldProps = TextFieldProps &\n Pick<\n newHopeTextFieldProps,\n | 'enumerationType'\n | 'chips'\n | 'chipType'\n | 'onChangeChips'\n | 'titleCaption'\n | 'labelPlacement'\n | 'keepPlaceholder'\n | 'required'\n | 'requiredPlacement'\n | 'optional'\n | 'chipView'\n | 'chipValidator'\n >;\n\nconst statusToView: Record<NonNullable<TextFieldProps['status']>, NonNullable<newHopeTextFieldProps['view']>> = {\n success: 'positive',\n warning: 'warning',\n error: 'negative',\n};\nconst animatedHintToLabelPlacement: Record<\n NonNullable<TextFieldProps['animatedHint']>,\n NonNullable<newHopeTextFieldProps['labelPlacement']>\n> = {\n placeholder: 'outer',\n label: 'inner',\n};\n\n/**\n * Поле ввода текста.\n */\nexport const TextField = forwardRef<HTMLInputElement, CustomTextFieldProps>((props, ref) => {\n const {\n status,\n\n label,\n keepPlaceholder,\n placeholder,\n animatedHint,\n helperText,\n hintText,\n\n enumerationType,\n chips,\n chipView,\n chipValidator,\n onSearch,\n onChangeChips,\n chipType,\n\n size = 'l',\n\n ...rest\n } = props;\n\n /** TODO: #1064 Remove In plasma-2.0 */\n /* eslint-disable no-underscore-dangle */\n const _view = status ? statusToView[status] : 'default';\n let _labelPlacement = animatedHint ? animatedHintToLabelPlacement[animatedHint] : 'outer';\n let _label = label ? String(label) : undefined;\n\n if (size !== 'l' && _labelPlacement === 'inner' && !keepPlaceholder) {\n _label = undefined;\n _labelPlacement = 'outer';\n }\n\n if (size === 'l' && animatedHint === 'placeholder' && !label) {\n _label = placeholder;\n _labelPlacement = 'inner';\n }\n\n const labelProps = {\n label: _label,\n labelPlacement: _labelPlacement,\n keepPlaceholder,\n };\n\n if (enumerationType === 'chip') {\n return (\n <TextFieldComponent\n {...rest}\n {...labelProps}\n view={_view}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"chip\"\n chips={chips}\n chipView={chipView}\n chipValidator={chipValidator}\n hintText={String(hintText || '')}\n onChangeChips={onChangeChips}\n chipType={chipType}\n />\n );\n }\n\n return (\n <TextFieldComponent\n {...rest}\n {...labelProps}\n view={_view}\n label={_label}\n size={size}\n placeholder={placeholder}\n leftHelper={helperText}\n ref={ref}\n enumerationType=\"plain\"\n hintText={String(hintText || '')}\n onSearch={onSearch}\n />\n );\n});\n"],"names":["mergedConfig","mergeConfig","textFieldConfig","config","TextFieldComponent","component","statusToView","success","warning","error","animatedHintToLabelPlacement","placeholder","label","TextField","forwardRef","props","ref","status","keepPlaceholder","animatedHint","helperText","hintText","enumerationType","chips","chipView","chipValidator","onSearch","onChangeChips","chipType","_props$size","size","rest","_objectWithoutProperties","_excluded","_view","_labelPlacement","_label","String","undefined","labelProps","labelPlacement","React","createElement","_extends","view","leftHelper"],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-web",
3
- "version": "1.468.0-canary.1625.12201244312.0",
3
+ "version": "1.468.0-canary.1632.12235091027.0",
4
4
  "description": "Salute Design System / React UI kit for web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@salutejs/plasma-core": "1.187.0",
23
23
  "@salutejs/plasma-hope": "1.322.0",
24
- "@salutejs/plasma-new-hope": "0.213.0-canary.1625.12201244312.0",
24
+ "@salutejs/plasma-new-hope": "0.213.0-canary.1632.12235091027.0",
25
25
  "@salutejs/plasma-themes": "0.23.0",
26
26
  "@salutejs/plasma-tokens-b2b": "1.43.0",
27
27
  "@salutejs/plasma-tokens-b2c": "0.54.0",
@@ -112,5 +112,5 @@
112
112
  "Fanil Zubairov"
113
113
  ],
114
114
  "sideEffects": false,
115
- "gitHead": "ed68052aca3431b998ad5ea6f068a521397114ac"
115
+ "gitHead": "ce8c142571f236c53784fb03e82e777912cd7e71"
116
116
  }
@@ -676,7 +676,7 @@ true: PolymorphicClassName;
676
676
  };
677
677
  }> & ((BaseProps & Omit<{
678
678
  titleCaption?: ReactNode;
679
- leftHelper?: string | undefined;
679
+ leftHelper?: ReactNode;
680
680
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
681
681
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
682
682
  textBefore?: string | undefined;
@@ -706,7 +706,7 @@ chipView?: undefined;
706
706
  chipValidator?: undefined;
707
707
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
708
708
  titleCaption?: ReactNode;
709
- leftHelper?: string | undefined;
709
+ leftHelper?: ReactNode;
710
710
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
711
711
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
712
712
  textBefore?: string | undefined;
@@ -738,7 +738,7 @@ view?: string | undefined;
738
738
  }) | undefined;
739
739
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
740
740
  titleCaption?: ReactNode;
741
- leftHelper?: string | undefined;
741
+ leftHelper?: ReactNode;
742
742
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
743
743
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
744
744
  textBefore?: string | undefined;
@@ -768,7 +768,7 @@ chipView?: undefined;
768
768
  chipValidator?: undefined;
769
769
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
770
770
  titleCaption?: ReactNode;
771
- leftHelper?: string | undefined;
771
+ leftHelper?: ReactNode;
772
772
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
773
773
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
774
774
  textBefore?: string | undefined;
@@ -800,7 +800,7 @@ view?: string | undefined;
800
800
  }) | undefined;
801
801
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
802
802
  titleCaption?: ReactNode;
803
- leftHelper?: string | undefined;
803
+ leftHelper?: ReactNode;
804
804
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
805
805
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
806
806
  textBefore?: string | undefined;
@@ -830,7 +830,7 @@ chipView?: undefined;
830
830
  chipValidator?: undefined;
831
831
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
832
832
  titleCaption?: ReactNode;
833
- leftHelper?: string | undefined;
833
+ leftHelper?: ReactNode;
834
834
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
835
835
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
836
836
  textBefore?: string | undefined;
@@ -862,7 +862,7 @@ view?: string | undefined;
862
862
  }) | undefined;
863
863
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
864
864
  titleCaption?: ReactNode;
865
- leftHelper?: string | undefined;
865
+ leftHelper?: ReactNode;
866
866
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
867
867
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
868
868
  textBefore?: string | undefined;
@@ -892,7 +892,7 @@ chipView?: undefined;
892
892
  chipValidator?: undefined;
893
893
  }, "labelPlacement" | "enumerationType" | "chipType" | "chipView" | "chips" | "onChangeChips" | "chipValidator"> & Omit<InputHTMLAttributes_3<HTMLInputElement>, "size" | "required"> & RefAttributes<HTMLInputElement>) | (BaseProps & Omit<{
894
894
  titleCaption?: ReactNode;
895
- leftHelper?: string | undefined;
895
+ leftHelper?: ReactNode;
896
896
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
897
897
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
898
898
  textBefore?: string | undefined;
@@ -2364,7 +2364,7 @@ readOnly?: boolean | undefined;
2364
2364
  disabled?: boolean | undefined;
2365
2365
  } & {
2366
2366
  titleCaption?: ReactNode;
2367
- leftHelper?: string | undefined;
2367
+ leftHelper?: ReactNode;
2368
2368
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2369
2369
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2370
2370
  textBefore?: string | undefined;
@@ -2440,7 +2440,7 @@ readOnly?: boolean | undefined;
2440
2440
  disabled?: boolean | undefined;
2441
2441
  } & {
2442
2442
  titleCaption?: ReactNode;
2443
- leftHelper?: string | undefined;
2443
+ leftHelper?: ReactNode;
2444
2444
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2445
2445
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2446
2446
  textBefore?: string | undefined;
@@ -2518,7 +2518,7 @@ readOnly?: boolean | undefined;
2518
2518
  disabled?: boolean | undefined;
2519
2519
  } & {
2520
2520
  titleCaption?: ReactNode;
2521
- leftHelper?: string | undefined;
2521
+ leftHelper?: ReactNode;
2522
2522
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2523
2523
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2524
2524
  textBefore?: string | undefined;
@@ -2594,7 +2594,7 @@ readOnly?: boolean | undefined;
2594
2594
  disabled?: boolean | undefined;
2595
2595
  } & {
2596
2596
  titleCaption?: ReactNode;
2597
- leftHelper?: string | undefined;
2597
+ leftHelper?: ReactNode;
2598
2598
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2599
2599
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2600
2600
  textBefore?: string | undefined;
@@ -2672,7 +2672,7 @@ readOnly?: boolean | undefined;
2672
2672
  disabled?: boolean | undefined;
2673
2673
  } & {
2674
2674
  titleCaption?: ReactNode;
2675
- leftHelper?: string | undefined;
2675
+ leftHelper?: ReactNode;
2676
2676
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2677
2677
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2678
2678
  textBefore?: string | undefined;
@@ -2748,7 +2748,7 @@ readOnly?: boolean | undefined;
2748
2748
  disabled?: boolean | undefined;
2749
2749
  } & {
2750
2750
  titleCaption?: ReactNode;
2751
- leftHelper?: string | undefined;
2751
+ leftHelper?: ReactNode;
2752
2752
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2753
2753
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2754
2754
  textBefore?: string | undefined;
@@ -2826,7 +2826,7 @@ readOnly?: boolean | undefined;
2826
2826
  disabled?: boolean | undefined;
2827
2827
  } & {
2828
2828
  titleCaption?: ReactNode;
2829
- leftHelper?: string | undefined;
2829
+ leftHelper?: ReactNode;
2830
2830
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2831
2831
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2832
2832
  textBefore?: string | undefined;
@@ -2902,7 +2902,7 @@ readOnly?: boolean | undefined;
2902
2902
  disabled?: boolean | undefined;
2903
2903
  } & {
2904
2904
  titleCaption?: ReactNode;
2905
- leftHelper?: string | undefined;
2905
+ leftHelper?: ReactNode;
2906
2906
  contentLeft?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2907
2907
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
2908
2908
  textBefore?: string | undefined;
@@ -3791,7 +3791,7 @@ titleCaption?: ReactNode;
3791
3791
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
3792
3792
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
3793
3793
  helperText?: string | undefined;
3794
- leftHelper?: string | undefined;
3794
+ leftHelper?: ReactNode;
3795
3795
  rightHelper?: string | undefined;
3796
3796
  leftHelperPlacement?: "outer" | "inner" | undefined;
3797
3797
  } & {
@@ -3834,7 +3834,7 @@ titleCaption?: ReactNode;
3834
3834
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
3835
3835
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
3836
3836
  helperText?: string | undefined;
3837
- leftHelper?: string | undefined;
3837
+ leftHelper?: ReactNode;
3838
3838
  rightHelper?: string | undefined;
3839
3839
  leftHelperPlacement?: "outer" | "inner" | undefined;
3840
3840
  } & {
@@ -3877,7 +3877,7 @@ titleCaption?: ReactNode;
3877
3877
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
3878
3878
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
3879
3879
  helperText?: string | undefined;
3880
- leftHelper?: string | undefined;
3880
+ leftHelper?: ReactNode;
3881
3881
  rightHelper?: string | undefined;
3882
3882
  leftHelperPlacement?: "outer" | "inner" | undefined;
3883
3883
  } & {
@@ -3920,7 +3920,7 @@ titleCaption?: ReactNode;
3920
3920
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
3921
3921
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
3922
3922
  helperText?: string | undefined;
3923
- leftHelper?: string | undefined;
3923
+ leftHelper?: ReactNode;
3924
3924
  rightHelper?: string | undefined;
3925
3925
  leftHelperPlacement?: "outer" | "inner" | undefined;
3926
3926
  } & {
@@ -3963,7 +3963,7 @@ titleCaption?: ReactNode;
3963
3963
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
3964
3964
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
3965
3965
  helperText?: string | undefined;
3966
- leftHelper?: string | undefined;
3966
+ leftHelper?: ReactNode;
3967
3967
  rightHelper?: string | undefined;
3968
3968
  leftHelperPlacement?: "outer" | "inner" | undefined;
3969
3969
  } & {
@@ -4006,7 +4006,7 @@ titleCaption?: ReactNode;
4006
4006
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
4007
4007
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
4008
4008
  helperText?: string | undefined;
4009
- leftHelper?: string | undefined;
4009
+ leftHelper?: ReactNode;
4010
4010
  rightHelper?: string | undefined;
4011
4011
  leftHelperPlacement?: "outer" | "inner" | undefined;
4012
4012
  } & {
@@ -4049,7 +4049,7 @@ titleCaption?: ReactNode;
4049
4049
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
4050
4050
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
4051
4051
  helperText?: string | undefined;
4052
- leftHelper?: string | undefined;
4052
+ leftHelper?: ReactNode;
4053
4053
  rightHelper?: string | undefined;
4054
4054
  leftHelperPlacement?: "outer" | "inner" | undefined;
4055
4055
  } & {
@@ -4092,7 +4092,7 @@ titleCaption?: ReactNode;
4092
4092
  contentRight?: ReactElement<any, string | JSXElementConstructor<any>> | undefined;
4093
4093
  resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
4094
4094
  helperText?: string | undefined;
4095
- leftHelper?: string | undefined;
4095
+ leftHelper?: ReactNode;
4096
4096
  rightHelper?: string | undefined;
4097
4097
  leftHelperPlacement?: "outer" | "inner" | undefined;
4098
4098
  } & {