@salutejs/plasma-new-hope 0.138.0-dev.0 → 0.139.0-canary.1352.10697708497.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +16 -12
  2. package/cjs/components/DatePicker/RangeDate/RangeDate.css +16 -12
  3. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +16 -12
  4. package/cjs/components/DatePicker/SingleDate/SingleDate.css +16 -12
  5. package/cjs/components/Range/Range.css +16 -12
  6. package/cjs/components/Slider/Slider.css +16 -12
  7. package/cjs/components/Slider/components/Double/Double.css +16 -12
  8. package/cjs/components/TextArea/TextArea.js +24 -7
  9. package/cjs/components/TextArea/TextArea.js.map +1 -1
  10. package/cjs/components/TextArea/TextArea.styles.js +47 -35
  11. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  12. package/cjs/components/TextArea/TextArea.styles_1fyj8ox.css +11 -0
  13. package/cjs/components/TextArea/TextArea.tokens.js +13 -2
  14. package/cjs/components/TextArea/TextArea.tokens.js.map +1 -1
  15. package/cjs/components/TextField/TextField.js +46 -20
  16. package/cjs/components/TextField/TextField.js.map +1 -1
  17. package/cjs/components/TextField/TextField.styles.js +31 -7
  18. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  19. package/cjs/components/TextField/TextField.styles_u6pm7v.css +14 -0
  20. package/cjs/components/TextField/TextField.tokens.js +10 -1
  21. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  22. package/cjs/components/TextField/TextField_1lzb2r1.css +1 -0
  23. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  24. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  25. package/cjs/components/TextField/variations/_label-placement/base_1dbnupp.css +1 -0
  26. package/cjs/components/TextField/variations/_read-only/base.js +1 -1
  27. package/cjs/components/TextField/variations/_read-only/base.js.map +1 -1
  28. package/cjs/components/TextField/variations/_read-only/base_4tqave.css +1 -0
  29. package/cjs/components/TextField/variations/_size/base.js +1 -1
  30. package/cjs/components/TextField/variations/_size/base.js.map +1 -1
  31. package/cjs/components/TextField/variations/_size/base_uk56yo.css +1 -0
  32. package/cjs/components/TextField/variations/_view/base.js +1 -1
  33. package/cjs/components/TextField/variations/_view/base.js.map +1 -1
  34. package/cjs/components/TextField/variations/_view/{base_18ea6z7.css → base_uszjx8.css} +1 -1
  35. package/cjs/index.css +27 -21
  36. package/emotion/cjs/components/TextArea/TextArea.js +25 -8
  37. package/emotion/cjs/components/TextArea/TextArea.styles.js +27 -19
  38. package/emotion/cjs/components/TextArea/TextArea.template-doc.mdx +29 -3
  39. package/emotion/cjs/components/TextArea/TextArea.tokens.js +13 -2
  40. package/emotion/cjs/components/TextArea/variations/_size/tokens.json +7 -1
  41. package/emotion/cjs/components/TextField/TextField.js +50 -24
  42. package/emotion/cjs/components/TextField/TextField.styles.js +57 -25
  43. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +27 -1
  44. package/emotion/cjs/components/TextField/TextField.tokens.js +10 -1
  45. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  46. package/emotion/cjs/components/TextField/variations/_read-only/base.js +1 -1
  47. package/emotion/cjs/components/TextField/variations/_size/base.js +1 -1
  48. package/emotion/cjs/components/TextField/variations/_size/tokens.json +6 -0
  49. package/emotion/cjs/components/TextField/variations/_view/base.js +1 -1
  50. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +9 -9
  51. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +21 -0
  52. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +12 -12
  53. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +21 -1
  54. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +9 -9
  55. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +22 -0
  56. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +12 -12
  57. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +22 -0
  58. package/emotion/es/components/TextArea/TextArea.js +26 -9
  59. package/emotion/es/components/TextArea/TextArea.styles.js +27 -19
  60. package/emotion/es/components/TextArea/TextArea.template-doc.mdx +29 -3
  61. package/emotion/es/components/TextArea/TextArea.tokens.js +13 -2
  62. package/emotion/es/components/TextArea/variations/_size/tokens.json +7 -1
  63. package/emotion/es/components/TextField/TextField.js +51 -25
  64. package/emotion/es/components/TextField/TextField.styles.js +56 -24
  65. package/emotion/es/components/TextField/TextField.template-doc.mdx +27 -1
  66. package/emotion/es/components/TextField/TextField.tokens.js +10 -1
  67. package/emotion/es/components/TextField/variations/_label-placement/base.js +2 -2
  68. package/emotion/es/components/TextField/variations/_read-only/base.js +2 -2
  69. package/emotion/es/components/TextField/variations/_size/base.js +2 -2
  70. package/emotion/es/components/TextField/variations/_size/tokens.json +6 -0
  71. package/emotion/es/components/TextField/variations/_view/base.js +2 -2
  72. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +9 -9
  73. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +21 -0
  74. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +12 -12
  75. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +21 -1
  76. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.config.js +9 -9
  77. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +22 -0
  78. package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +12 -12
  79. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +22 -0
  80. package/es/components/Autocomplete/Autocomplete.css +16 -12
  81. package/es/components/DatePicker/RangeDate/RangeDate.css +16 -12
  82. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +16 -12
  83. package/es/components/DatePicker/SingleDate/SingleDate.css +16 -12
  84. package/es/components/Range/Range.css +16 -12
  85. package/es/components/Slider/Slider.css +16 -12
  86. package/es/components/Slider/components/Double/Double.css +16 -12
  87. package/es/components/TextArea/TextArea.js +25 -8
  88. package/es/components/TextArea/TextArea.js.map +1 -1
  89. package/es/components/TextArea/TextArea.styles.js +46 -36
  90. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  91. package/es/components/TextArea/TextArea.styles_1fyj8ox.css +11 -0
  92. package/es/components/TextArea/TextArea.tokens.js +13 -2
  93. package/es/components/TextArea/TextArea.tokens.js.map +1 -1
  94. package/es/components/TextField/TextField.js +47 -21
  95. package/es/components/TextField/TextField.js.map +1 -1
  96. package/es/components/TextField/TextField.styles.js +28 -8
  97. package/es/components/TextField/TextField.styles.js.map +1 -1
  98. package/es/components/TextField/TextField.styles_u6pm7v.css +14 -0
  99. package/es/components/TextField/TextField.tokens.js +10 -1
  100. package/es/components/TextField/TextField.tokens.js.map +1 -1
  101. package/es/components/TextField/TextField_1lzb2r1.css +1 -0
  102. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  103. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  104. package/es/components/TextField/variations/_label-placement/base_1dbnupp.css +1 -0
  105. package/es/components/TextField/variations/_read-only/base.js +1 -1
  106. package/es/components/TextField/variations/_read-only/base.js.map +1 -1
  107. package/es/components/TextField/variations/_read-only/base_4tqave.css +1 -0
  108. package/es/components/TextField/variations/_size/base.js +1 -1
  109. package/es/components/TextField/variations/_size/base.js.map +1 -1
  110. package/es/components/TextField/variations/_size/base_uk56yo.css +1 -0
  111. package/es/components/TextField/variations/_view/base.js +1 -1
  112. package/es/components/TextField/variations/_view/base.js.map +1 -1
  113. package/es/components/TextField/variations/_view/{base_18ea6z7.css → base_uszjx8.css} +1 -1
  114. package/es/index.css +27 -21
  115. package/package.json +2 -2
  116. package/styled-components/cjs/components/TextArea/TextArea.js +24 -7
  117. package/styled-components/cjs/components/TextArea/TextArea.styles.js +17 -11
  118. package/styled-components/cjs/components/TextArea/TextArea.template-doc.mdx +29 -3
  119. package/styled-components/cjs/components/TextArea/TextArea.tokens.js +13 -2
  120. package/styled-components/cjs/components/TextArea/variations/_size/tokens.json +7 -1
  121. package/styled-components/cjs/components/TextField/TextField.js +46 -20
  122. package/styled-components/cjs/components/TextField/TextField.styles.js +22 -10
  123. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +27 -1
  124. package/styled-components/cjs/components/TextField/TextField.tokens.js +10 -1
  125. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  126. package/styled-components/cjs/components/TextField/variations/_read-only/base.js +1 -1
  127. package/styled-components/cjs/components/TextField/variations/_size/base.js +1 -1
  128. package/styled-components/cjs/components/TextField/variations/_size/tokens.json +6 -0
  129. package/styled-components/cjs/components/TextField/variations/_view/base.js +1 -1
  130. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +7 -7
  131. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +21 -0
  132. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +8 -8
  133. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +21 -1
  134. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +8 -8
  135. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +22 -0
  136. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +8 -8
  137. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +22 -0
  138. package/styled-components/es/components/TextArea/TextArea.js +25 -8
  139. package/styled-components/es/components/TextArea/TextArea.styles.js +17 -11
  140. package/styled-components/es/components/TextArea/TextArea.template-doc.mdx +29 -3
  141. package/styled-components/es/components/TextArea/TextArea.tokens.js +13 -2
  142. package/styled-components/es/components/TextArea/variations/_size/tokens.json +7 -1
  143. package/styled-components/es/components/TextField/TextField.js +47 -21
  144. package/styled-components/es/components/TextField/TextField.styles.js +21 -9
  145. package/styled-components/es/components/TextField/TextField.template-doc.mdx +27 -1
  146. package/styled-components/es/components/TextField/TextField.tokens.js +10 -1
  147. package/styled-components/es/components/TextField/variations/_label-placement/base.js +2 -2
  148. package/styled-components/es/components/TextField/variations/_read-only/base.js +2 -2
  149. package/styled-components/es/components/TextField/variations/_size/base.js +2 -2
  150. package/styled-components/es/components/TextField/variations/_size/tokens.json +6 -0
  151. package/styled-components/es/components/TextField/variations/_view/base.js +2 -2
  152. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +7 -7
  153. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +21 -0
  154. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +8 -8
  155. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +21 -1
  156. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +8 -8
  157. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +22 -0
  158. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +8 -8
  159. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +22 -0
  160. package/types/components/Autocomplete/Autocomplete.d.ts +2 -2
  161. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  162. package/types/components/Autocomplete/Autocomplete.types.d.ts +1 -1
  163. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  164. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +60 -2
  165. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  166. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +60 -2
  167. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  168. package/types/components/Range/Range.styles.d.ts +60 -2
  169. package/types/components/Range/Range.styles.d.ts.map +1 -1
  170. package/types/components/Slider/components/Double/Double.styles.d.ts +60 -2
  171. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  172. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  173. package/types/components/TextArea/TextArea.styles.d.ts +2 -0
  174. package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
  175. package/types/components/TextArea/TextArea.tokens.d.ts +11 -0
  176. package/types/components/TextArea/TextArea.tokens.d.ts.map +1 -1
  177. package/types/components/TextArea/TextArea.types.d.ts +30 -5
  178. package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
  179. package/types/components/TextField/TextField.d.ts.map +1 -1
  180. package/types/components/TextField/TextField.styles.d.ts +4 -0
  181. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  182. package/types/components/TextField/TextField.tokens.d.ts +9 -0
  183. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  184. package/types/components/TextField/TextField.types.d.ts +27 -2
  185. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  186. package/types/components/TextField/variations/_label-placement/base.d.ts.map +1 -1
  187. package/types/components/TextField/variations/_size/base.d.ts.map +1 -1
  188. package/types/components/TextField/variations/_view/base.d.ts.map +1 -1
  189. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +1 -1
  190. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  191. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts.map +1 -1
  192. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +135 -3
  193. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
  194. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  195. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +60 -2
  196. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  197. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +1 -1
  198. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  199. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts.map +1 -1
  200. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +135 -3
  201. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
  202. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +1 -1
  203. package/types/examples/plasma_web/components/TextField/TextField.d.ts +60 -2
  204. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  205. package/cjs/components/TextArea/TextArea.styles_1bv40vw.css +0 -9
  206. package/cjs/components/TextField/TextField.styles_9fkr1l.css +0 -10
  207. package/cjs/components/TextField/TextField_wctd2m.css +0 -1
  208. package/cjs/components/TextField/variations/_label-placement/base_170eaex.css +0 -1
  209. package/cjs/components/TextField/variations/_read-only/base_1vu13zn.css +0 -1
  210. package/cjs/components/TextField/variations/_size/base_orwx1f.css +0 -1
  211. package/es/components/TextArea/TextArea.styles_1bv40vw.css +0 -9
  212. package/es/components/TextField/TextField.styles_9fkr1l.css +0 -10
  213. package/es/components/TextField/TextField_wctd2m.css +0 -1
  214. package/es/components/TextField/variations/_label-placement/base_170eaex.css +0 -1
  215. package/es/components/TextField/variations/_read-only/base_1vu13zn.css +0 -1
  216. package/es/components/TextField/variations/_size/base_orwx1f.css +0 -1
@@ -14,12 +14,65 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
14
14
  textBefore?: string | undefined;
15
15
  textAfter?: string | undefined;
16
16
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
17
+ } & {
18
+ requiredPlacement?: "left" | "right" | undefined;
19
+ } & {
20
+ required: true;
21
+ optional?: false | undefined;
22
+ } & {
23
+ chips?: undefined;
24
+ onChangeChips?: undefined;
25
+ enumerationType?: "plain" | undefined;
26
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
27
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
28
+ size?: string | undefined;
29
+ view?: string | undefined;
30
+ readOnly?: boolean | undefined;
31
+ disabled?: boolean | undefined;
32
+ } & {
33
+ label?: string | undefined;
34
+ labelPlacement?: "inner" | "outer" | undefined;
35
+ leftHelper?: string | undefined;
36
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
37
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
38
+ textBefore?: string | undefined;
39
+ textAfter?: string | undefined;
40
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
41
+ } & {
42
+ requiredPlacement?: "left" | "right" | undefined;
43
+ } & {
44
+ required: true;
45
+ optional?: false | undefined;
46
+ } & {
47
+ enumerationType: "chip";
48
+ onSearch?: undefined;
49
+ chips?: import("../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
50
+ onChangeChips?: ((value: import("../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
51
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
52
+ size?: string | undefined;
53
+ view?: string | undefined;
54
+ readOnly?: boolean | undefined;
55
+ disabled?: boolean | undefined;
56
+ } & {
57
+ label?: string | undefined;
58
+ labelPlacement?: "inner" | "outer" | undefined;
59
+ leftHelper?: string | undefined;
60
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
61
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
62
+ textBefore?: string | undefined;
63
+ textAfter?: string | undefined;
64
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
65
+ } & {
66
+ requiredPlacement?: "left" | "right" | undefined;
67
+ } & {
68
+ optional?: true | undefined;
69
+ required?: false | undefined;
17
70
  } & {
18
71
  chips?: undefined;
19
72
  onChangeChips?: undefined;
20
73
  enumerationType?: "plain" | undefined;
21
74
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
22
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
75
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
23
76
  size?: string | undefined;
24
77
  view?: string | undefined;
25
78
  readOnly?: boolean | undefined;
@@ -33,12 +86,17 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
33
86
  textBefore?: string | undefined;
34
87
  textAfter?: string | undefined;
35
88
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
89
+ } & {
90
+ requiredPlacement?: "left" | "right" | undefined;
91
+ } & {
92
+ optional?: true | undefined;
93
+ required?: false | undefined;
36
94
  } & {
37
95
  enumerationType: "chip";
38
96
  onSearch?: undefined;
39
97
  chips?: import("../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
40
98
  onChangeChips?: ((value: import("../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
41
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>))>;
99
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
42
100
  export declare const base: import("@linaria/core").LinariaClassName;
43
101
  export declare const StyledLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & Record<never, unknown>>;
44
102
  export declare const LeftHelper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"SingleDate.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.styles.ts"],"names":[],"mappings":";AAcA,eAAO,MAAM,aAAa,4TAAoB,CAAC;AAG/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4HAuEvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAMhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,qKAAe,CAAC"}
1
+ {"version":3,"file":"SingleDate.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/SingleDate/SingleDate.styles.ts"],"names":[],"mappings":";AAcA,eAAO,MAAM,aAAa,4TAAoB,CAAC;AAG/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIAuEvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAMhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,qKAAe,CAAC"}
@@ -13,12 +13,65 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
13
13
  textBefore?: string | undefined;
14
14
  textAfter?: string | undefined;
15
15
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
16
+ } & {
17
+ requiredPlacement?: "left" | "right" | undefined;
18
+ } & {
19
+ required: true;
20
+ optional?: false | undefined;
21
+ } & {
22
+ chips?: undefined;
23
+ onChangeChips?: undefined;
24
+ enumerationType?: "plain" | undefined;
25
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
26
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
27
+ size?: string | undefined;
28
+ view?: string | undefined;
29
+ readOnly?: boolean | undefined;
30
+ disabled?: boolean | undefined;
31
+ } & {
32
+ label?: string | undefined;
33
+ labelPlacement?: "inner" | "outer" | undefined;
34
+ leftHelper?: string | undefined;
35
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
36
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
37
+ textBefore?: string | undefined;
38
+ textAfter?: string | undefined;
39
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
40
+ } & {
41
+ requiredPlacement?: "left" | "right" | undefined;
42
+ } & {
43
+ required: true;
44
+ optional?: false | undefined;
45
+ } & {
46
+ enumerationType: "chip";
47
+ onSearch?: undefined;
48
+ chips?: import("../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
49
+ onChangeChips?: ((value: import("../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
50
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
51
+ size?: string | undefined;
52
+ view?: string | undefined;
53
+ readOnly?: boolean | undefined;
54
+ disabled?: boolean | undefined;
55
+ } & {
56
+ label?: string | undefined;
57
+ labelPlacement?: "inner" | "outer" | undefined;
58
+ leftHelper?: string | undefined;
59
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
60
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
61
+ textBefore?: string | undefined;
62
+ textAfter?: string | undefined;
63
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
64
+ } & {
65
+ requiredPlacement?: "left" | "right" | undefined;
66
+ } & {
67
+ optional?: true | undefined;
68
+ required?: false | undefined;
16
69
  } & {
17
70
  chips?: undefined;
18
71
  onChangeChips?: undefined;
19
72
  enumerationType?: "plain" | undefined;
20
73
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
21
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
74
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
22
75
  size?: string | undefined;
23
76
  view?: string | undefined;
24
77
  readOnly?: boolean | undefined;
@@ -32,12 +85,17 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
32
85
  textBefore?: string | undefined;
33
86
  textAfter?: string | undefined;
34
87
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
88
+ } & {
89
+ requiredPlacement?: "left" | "right" | undefined;
90
+ } & {
91
+ optional?: true | undefined;
92
+ required?: false | undefined;
35
93
  } & {
36
94
  enumerationType: "chip";
37
95
  onSearch?: undefined;
38
96
  chips?: import("../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
39
97
  onChangeChips?: ((value: import("../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
40
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>))>;
98
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
41
99
  export declare const base: import("@linaria/core").LinariaClassName;
42
100
  export declare const StyledLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & Record<never, unknown>>;
43
101
  export declare const LeftHelper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Range.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Range/Range.styles.ts"],"names":[],"mappings":";AAYA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4HA+DvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAEhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,qKAAe,CAAC;AAEvC,eAAO,MAAM,cAAc,qKAG1B,CAAC;AAEF,eAAO,MAAM,aAAa,qKAAe,CAAC;AAE1C,eAAO,MAAM,iBAAiB,qKAE7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,qKAAe,CAAC"}
1
+ {"version":3,"file":"Range.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Range/Range.styles.ts"],"names":[],"mappings":";AAYA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yIA+DvB,CAAC;AAEF,eAAO,MAAM,IAAI,0CAEhB,CAAC;AAEF,eAAO,MAAM,WAAW,8KAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,qKAAe,CAAC;AAEvC,eAAO,MAAM,cAAc,qKAG1B,CAAC;AAEF,eAAO,MAAM,aAAa,qKAAe,CAAC;AAE1C,eAAO,MAAM,iBAAiB,qKAE7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,qKAAe,CAAC"}
@@ -17,12 +17,65 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
17
17
  textBefore?: string | undefined;
18
18
  textAfter?: string | undefined;
19
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;
25
+ } & {
26
+ chips?: undefined;
27
+ onChangeChips?: undefined;
28
+ enumerationType?: "plain" | undefined;
29
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
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>) | ({
55
+ size?: string | undefined;
56
+ view?: string | undefined;
57
+ readOnly?: boolean | undefined;
58
+ disabled?: boolean | undefined;
59
+ } & {
60
+ label?: string | undefined;
61
+ labelPlacement?: "inner" | "outer" | undefined;
62
+ leftHelper?: string | undefined;
63
+ contentLeft?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
64
+ contentRight?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
65
+ textBefore?: string | undefined;
66
+ textAfter?: string | undefined;
67
+ onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
68
+ } & {
69
+ requiredPlacement?: "left" | "right" | undefined;
70
+ } & {
71
+ optional?: true | undefined;
72
+ required?: false | undefined;
20
73
  } & {
21
74
  chips?: undefined;
22
75
  onChangeChips?: undefined;
23
76
  enumerationType?: "plain" | undefined;
24
77
  onSearch?: ((value: string, event?: import("react").KeyboardEvent<HTMLInputElement> | undefined) => void) | undefined;
25
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
78
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>) | ({
26
79
  size?: string | undefined;
27
80
  view?: string | undefined;
28
81
  readOnly?: boolean | undefined;
@@ -36,12 +89,17 @@ export declare const StyledInput: import("@linaria/react").StyledMeta & import("
36
89
  textBefore?: string | undefined;
37
90
  textAfter?: string | undefined;
38
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;
39
97
  } & {
40
98
  enumerationType: "chip";
41
99
  onSearch?: undefined;
42
100
  chips?: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[] | undefined;
43
101
  onChangeChips?: ((value: import("../../../TextField/TextField.types").TextFieldPrimitiveValue[]) => void) | undefined;
44
- } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size"> & import("react").RefAttributes<HTMLInputElement>))>;
102
+ } & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "required" | "size"> & import("react").RefAttributes<HTMLInputElement>))>;
45
103
  export declare const DoubleWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
46
104
  export declare const SliderWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
47
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAK5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAmBrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA6BtD,eAAO,MAAM,sBAAsB,UAAW,aAAa,WAAW,OAAO,2BA4B5E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,UAAU,mBAAmB,EAAE,aAAa,CAAC,8FAiJ1E,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAnJQ,UAAU,mBAAmB,EAAE,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;CA2K/E,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAK5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAqBrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA+BtD,eAAO,MAAM,sBAAsB,UAAW,aAAa,WAAW,OAAO,2BA4B5E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,UAAU,mBAAmB,EAAE,aAAa,CAAC,8FAgL1E,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAlLQ,UAAU,mBAAmB,EAAE,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;CA0M/E,CAAC"}
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export declare const StyledLabel: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
3
+ export declare const StyledOptionalText: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
3
4
  export declare const StyledTextAreaWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
4
5
  hasHelper: boolean;
5
6
  }>;
@@ -23,4 +24,5 @@ export declare const StyledRightHelper: import("@linaria/react").StyledMeta & im
23
24
  export declare const StyledPlaceholder: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & {
24
25
  hasContentRight: boolean;
25
26
  }>;
27
+ export declare const StyledIndicator: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
26
28
  //# sourceMappingURL=TextArea.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,WAAW,qKASvB,CAAC;AAEF,eAAO,MAAM,qBAAqB;eACnB,OAAO;EAUrB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAWzB,CAAC;AAEF,eAAO,MAAM,eAAe;WAAuB,MAAM;EAOxD,CAAC;AAEF,eAAO,MAAM,cAAc;eACZ,OAAO;qBACD,OAAO;sBACN,OAAO;;;;EAgF5B,CAAC;AAEF,eAAO,MAAM,aAAa,qKAgBzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,uKAa5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;EAG7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;qBACT,OAAO;EA2B3B,CAAC"}
1
+ {"version":3,"file":"TextArea.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.styles.ts"],"names":[],"mappings":";AAMA,eAAO,MAAM,WAAW,qKAWvB,CAAC;AAEF,eAAO,MAAM,kBAAkB,uKAE9B,CAAC;AAEF,eAAO,MAAM,qBAAqB;eACnB,OAAO;EAUrB,CAAC;AAEF,eAAO,MAAM,aAAa,qKAWzB,CAAC;AAEF,eAAO,MAAM,eAAe;WAAuB,MAAM;EAOxD,CAAC;AAEF,eAAO,MAAM,cAAc;eACZ,OAAO;qBACD,OAAO;sBACN,OAAO;;;;EAgF5B,CAAC;AAEF,eAAO,MAAM,aAAa,qKAgBzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,uKAa5B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;EAG7B,CAAC;AAEF,eAAO,MAAM,iBAAiB;qBACT,OAAO;EA2B3B,CAAC;AAEF,eAAO,MAAM,eAAe,qKAyB3B,CAAC"}
@@ -15,6 +15,8 @@ export declare const classes: {
15
15
  styledPlaceholder: string;
16
16
  /** Класс для компонента `StyledHelpers` */
17
17
  styledHelpers: string;
18
+ innerLabelPlacement: string;
19
+ outerLabelPlacement: string;
18
20
  };
19
21
  export declare const tokens: {
20
22
  /** Цвет фона для элемента textarea */
@@ -51,6 +53,8 @@ export declare const tokens: {
51
53
  placeholderColor: string;
52
54
  /** Цвет элемента placeholder в состоянии focus */
53
55
  placeholderColorFocus: string;
56
+ /** Цвет элемента optional */
57
+ optionalColor: string;
54
58
  /** Цвет текста для левой подписи снизу */
55
59
  leftHelperColor: string;
56
60
  /** Цвет текста для правой подписи снизу */
@@ -147,5 +151,12 @@ export declare const tokens: {
147
151
  disabledOpacity: string;
148
152
  /** Цвет текста для элемента textarea в состоянии disabled */
149
153
  inputColorDisabled: string;
154
+ indicatorColor: string;
155
+ indicatorSizeInner: string;
156
+ indicatorSizeOuter: string;
157
+ indicatorLabelPlacementInner: string;
158
+ indicatorLabelPlacementOuter: string;
159
+ indicatorLabelPlacementInnerRight: string;
160
+ indicatorLabelPlacementOuterRight: string;
150
161
  };
151
162
  //# sourceMappingURL=TextArea.tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;IAChB,6DAA6D;;IAE7D,kEAAkE;;IAElE,+CAA+C;;IAE/C,6CAA6C;;IAE7C,4CAA4C;;IAE5C,mDAAmD;;IAEnD,+CAA+C;;IAE/C,2CAA2C;;CAE9C,CAAC;AAEF,eAAO,MAAM,MAAM;IACf,sCAAsC;;IAEtC,wDAAwD;;IAExD,yDAAyD;;IAEzD,wDAAwD;;IAExD,0CAA0C;;IAE1C,4DAA4D;;IAE5D,6DAA6D;;IAE7D,4DAA4D;;IAE5D,yCAAyC;;IAEzC,2DAA2D;;IAE3D,4DAA4D;;IAE5D,2DAA2D;;IAE3D,wCAAwC;;IAExC,0DAA0D;;IAE1D,yCAAyC;;IAEzC,gCAAgC;;IAEhC,kDAAkD;;IAElD,0CAA0C;;IAE1C,2CAA2C;;IAE3C,y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4DAA4D;;IAE5D,2DAA2D;;IAE3D,wCAAwC;;IAExC,0DAA0D;;IAE1D,yCAAyC;;IAEzC,gCAAgC;;IAEhC,kDAAkD;;IAElD,6BAA6B;;IAE7B,0CAA0C;;IAE1C,2CAA2C;;IAE3C,yCAAyC;;IAEzC,2DAA2D;;IAE3D,2DAA2D;;IAG3D,+BAA+B;;IAE/B,+BAA+B;;IAE/B,2CAA2C;;IAE3C,qCAAqC;;IAErC,+CAA+C;;IAE/C,4FAA4F;;IAE5F,0CAA0C;;IAE1C,0CAA0C;;IAE1C,qEAAqE;;IAErE,yCAAyC;;IAEzC,mEAAmE;;IAEnE,yCAAyC;;IAEzC,uCAAuC;;IAEvC,uCAAuC;;IAEvC,sCAAsC;;IAEtC,sCAAsC;;IAEtC,+FAA+F;;IAE/F,wCAAwC;;IAExC,wCAAwC;;IAExC,6BAA6B;;IAE7B,mEAAmE;;IAEnE,2DAA2D;;IAE3D,mEAAmE;;IAEnE,kEAAkE;;IAElE,uEAAuE;;IAEvE,8EAA8E;;IAE9E,mEAAmE;;IAEnE,qDAAqD;;IAErD,oCAAoC;;IAEpC,kCAAkC;;IAElC,0CAA0C;;IAE1C,yCAAyC;;IAEzC,8CAA8C;;IAE9C,4DAA4D;;IAE5D,iDAAiD;;IAEjD,8CAA8C;;IAE9C,sDAAsD;;IAEtD,qDAAqD;;IAErD,0DAA0D;;IAE1D,iEAAiE;;IAEjE,sDAAsD;;IAGtD,6DAA6D;;IAE7D,6DAA6D;;;;;;;;;CAUhE,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,8 +108,8 @@ export interface TextAreaPropsBase {
83
108
  * Вспомогательный текст снизу справа для поля ввода.
84
109
  */
85
110
  rightHelper?: string;
86
- }
87
- export interface TextAreaPropsExtends extends TextAreaPropsBase {
111
+ } & RequiredProps;
112
+ declare type TextAreaPropsExtends = TextAreaPropsBase & {
88
113
  /**
89
114
  * Размер контрола.
90
115
  */
@@ -93,7 +118,7 @@ export interface TextAreaPropsExtends extends TextAreaPropsBase {
93
118
  * Вид контрола.
94
119
  */
95
120
  view?: string;
96
- }
97
- 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;
98
123
  export {};
99
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,CAAC,CAA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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;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,EAAE,CAAC,CAAC,CAAC;AAEpE,oBAAY,uBAAuB,GAAG;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,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AAC;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,KAAK,EAAuC,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAsB7F,eAAO,MAAM,IAAI,0CAIhB,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,UAAU,cAAc,EAAE,cAAc,CAAC,4FAiNxE,CAAC;AAEN,eAAO,MAAM,eAAe;;;mBAnNQ,UAAU,cAAc,EAAE,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CA+O5E,CAAC"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAKvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,KAAK,EAAuC,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA4B7F,eAAO,MAAM,IAAI,0CAGhB,CAAC;AAEF,eAAO,MAAM,aAAa,SAAU,UAAU,cAAc,EAAE,cAAc,CAAC,4FA6PxE,CAAC;AAEN,eAAO,MAAM,eAAe;;;mBA/PQ,UAAU,cAAc,EAAE,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CA2R5E,CAAC"}
@@ -3,10 +3,14 @@ export declare const InputWrapper: import("@linaria/react").StyledComponent<impo
3
3
  export declare const InputLabelWrapper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
4
4
  export declare const StyledChips: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
5
5
  export declare const Input: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & Record<never, unknown>>;
6
+ export declare const InputContainer: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
7
+ export declare const InputPlaceholder: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
6
8
  export declare const Label: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLLabelElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & Record<never, unknown>>;
7
9
  export declare const StyledContentLeft: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
8
10
  export declare const StyledContentRight: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
9
11
  export declare const LeftHelper: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
10
12
  export declare const StyledTextBefore: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
11
13
  export declare const StyledTextAfter: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
14
+ export declare const StyledOptionalText: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLSpanElement> & import("react").HTMLAttributes<HTMLSpanElement> & Record<never, unknown>>;
15
+ export declare const StyledIndicator: import("@linaria/react").StyledComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
12
16
  //# sourceMappingURL=TextField.styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY,qKAKxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAoB7B,CAAC;AAEF,eAAO,MAAM,WAAW,qKAKvB,CAAC;AAEF,eAAO,MAAM,KAAK,8KASjB,CAAC;AAEF,eAAO,MAAM,KAAK,8KAAiB,CAAC;AAEpC,eAAO,MAAM,iBAAiB,qKAG7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,qKAG9B,CAAC;AAEF,eAAO,MAAM,UAAU,qKAAe,CAAC;AAEvC,eAAO,MAAM,gBAAgB,qKAAe,CAAC;AAE7C,eAAO,MAAM,eAAe,qKAAe,CAAC"}
1
+ {"version":3,"file":"TextField.styles.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY,qKAKxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAoB7B,CAAC;AAEF,eAAO,MAAM,WAAW,qKAKvB,CAAC;AAEF,eAAO,MAAM,KAAK,8KAajB,CAAC;AAEF,eAAO,MAAM,cAAc,qKAI1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,qKAgB5B,CAAC;AAEF,eAAO,MAAM,KAAK,8KAGjB,CAAC;AAEF,eAAO,MAAM,iBAAiB,qKAG7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,qKAG9B,CAAC;AAEF,eAAO,MAAM,UAAU,qKAAe,CAAC;AAEvC,eAAO,MAAM,gBAAgB,qKAAe,CAAC;AAE7C,eAAO,MAAM,eAAe,qKAAe,CAAC;AAE5C,eAAO,MAAM,kBAAkB,uKAE9B,CAAC;AAEF,eAAO,MAAM,eAAe,qKAyB3B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export declare const classes: {
2
2
  hasChips: string;
3
+ hasValue: string;
3
4
  hasEmptyContentLeft: string;
4
5
  hasEmptyContentRight: string;
5
6
  innerLabelPlacement: string;
@@ -23,6 +24,7 @@ export declare const tokens: {
23
24
  /** Цвет каретки */
24
25
  caretColor: string;
25
26
  placeholderColor: string;
27
+ optionalColor: string;
26
28
  height: string;
27
29
  borderWidth: string;
28
30
  borderRadius: string;
@@ -106,5 +108,12 @@ export declare const tokens: {
106
108
  chipClearContentMarginRight: string;
107
109
  chipOpacityReadonly: string;
108
110
  focusColor: string;
111
+ indicatorColor: string;
112
+ indicatorSizeInner: string;
113
+ indicatorSizeOuter: string;
114
+ indicatorLabelPlacementInner: string;
115
+ indicatorLabelPlacementOuter: string;
116
+ indicatorLabelPlacementInnerRight: string;
117
+ indicatorLabelPlacementOuterRight: string;
109
118
  };
110
119
  //# sourceMappingURL=TextField.tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;CAQnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;IAWf,oCAAoC;;;;;IAMpC,mBAAmB;;;;;;IAQnB,kCAAkC;;;;;;;;;;;IAelC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkCpB,qCAAqC;;;;;IAMrC,6DAA6D;;IAG7D,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCrB,CAAC"}
1
+ {"version":3,"file":"TextField.tokens.d.ts","sourceRoot":"","sources":["../../../src/components/TextField/TextField.tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;CASnB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;IAWf,oCAAoC;;;;;IAMpC,mBAAmB;;;;;;;IASnB,kCAAkC;;;;;;;;;;;IAelC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkCpB,qCAAqC;;;;;IAMrC,6DAA6D;;IAG7D,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CrB,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
  * Метка-подпись к элементу
@@ -75,7 +100,7 @@ export declare type TextFieldPropsBase = {
75
100
  * Callback по нажатию Enter
76
101
  */
77
102
  onSearch?: (value: string, event?: KeyboardEvent<HTMLInputElement>) => void;
78
- } & TextFieldChipProps;
103
+ } & RequiredProps & TextFieldChipProps;
79
104
  export declare type TextFieldProps = {
80
105
  /**
81
106
  * Размер контрола.
@@ -93,7 +118,7 @@ export declare type TextFieldProps = {
93
118
  * Компонент неактивен.
94
119
  */
95
120
  disabled?: boolean;
96
- } & TextFieldPropsBase & Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>;
121
+ } & TextFieldPropsBase & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'required'>;
97
122
  export interface ControlledRefs {
98
123
  chipsRefs: MutableRefObject<Array<HTMLButtonElement>>;
99
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,CAAC,KAAK,IAAI,CAAC;CAC/E,GACD;IACI;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,CAAC;IACvC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAC;CACnE,CAAC;AAER,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,CA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AAO,CAAC;CACtB,GAAG,kBAAkB,GAClB,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC;AAErE,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,gBAAgB,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IACrD,UAAU,CAAC,EAAE,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,qBAAqB;IAClC,cAAc,EAAE,cAAc,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACzB,eAAe,EAAE,eAAe,CAAC;IACjC,WAAW,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAC;IAC9F,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5E,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;CAC7D"}
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_label-placement/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CA4DhB,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_label-placement/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAkDhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_size/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CAkEhB,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_size/base.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,IAAI,0CAyEhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_view/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,0CA2ChB,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextField/variations/_view/base.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,IAAI,0CA8ChB,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_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"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextArea/TextArea.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;CAyPlB,CAAC"}
1
+ {"version":3,"file":"TextArea.config.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextArea/TextArea.config.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;CAqRlB,CAAC"}