@salutejs/plasma-new-hope 0.195.2-canary.1577.11938240958.0 → 0.196.0-canary.1556.11950950085.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +18 -19
  2. package/cjs/components/Autocomplete/Autocomplete.js +7 -1
  3. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  4. package/cjs/components/Combobox/ComboboxNew/Combobox.css +18 -19
  5. package/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
  6. package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  7. package/cjs/components/Combobox/ComboboxNew/ui/Inner/Inner.css +18 -19
  8. package/cjs/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +18 -19
  9. package/cjs/components/DatePicker/RangeDate/RangeDate.css +18 -19
  10. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +18 -19
  11. package/cjs/components/DatePicker/SingleDate/SingleDate.css +18 -19
  12. package/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  13. package/cjs/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  14. package/cjs/components/Pagination/Pagination.css +18 -19
  15. package/cjs/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +18 -19
  16. package/cjs/components/Range/Range.css +18 -19
  17. package/cjs/components/Select/Select.css +18 -19
  18. package/cjs/components/Select/ui/Inner/Inner.css +18 -19
  19. package/cjs/components/Select/ui/Inner/ui/Item/Item.css +18 -19
  20. package/cjs/components/Select/ui/Target/Target.css +18 -19
  21. package/cjs/components/Select/ui/Target/Target.js +1 -2
  22. package/cjs/components/Select/ui/Target/Target.js.map +1 -1
  23. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.css +18 -19
  24. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  25. package/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  26. package/cjs/components/Slider/Slider.css +18 -19
  27. package/cjs/components/Slider/components/Double/Double.css +18 -19
  28. package/cjs/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +18 -19
  29. package/cjs/components/TextField/TextField.js +12 -11
  30. package/cjs/components/TextField/TextField.js.map +1 -1
  31. package/cjs/components/TextField/TextField.styles.js +20 -11
  32. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  33. package/cjs/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
  34. package/cjs/components/TextField/TextField.tokens.js +1 -0
  35. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  36. package/cjs/components/TextField/ui/Hint/Hint.css +20 -20
  37. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.css +1 -2
  38. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +3 -17
  39. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  40. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -7
  41. package/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  42. package/{es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1yosnxc.css → cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1y8n7la.css} +0 -1
  43. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  44. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  45. package/cjs/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  46. package/cjs/index.css +18 -19
  47. package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -1
  48. package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
  49. package/emotion/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  50. package/emotion/cjs/components/Select/ui/Target/Target.js +1 -2
  51. package/emotion/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  52. package/emotion/cjs/components/TextField/TextField.js +13 -12
  53. package/emotion/cjs/components/TextField/TextField.styles.js +29 -26
  54. package/emotion/cjs/components/TextField/TextField.tokens.js +1 -0
  55. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +3 -17
  56. package/emotion/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +3 -12
  57. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  58. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
  59. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
  60. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
  61. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
  62. package/emotion/es/components/Autocomplete/Autocomplete.js +7 -1
  63. package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
  64. package/emotion/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  65. package/emotion/es/components/Select/ui/Target/Target.js +1 -2
  66. package/emotion/es/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  67. package/emotion/es/components/TextField/TextField.js +13 -12
  68. package/emotion/es/components/TextField/TextField.styles.js +29 -26
  69. package/emotion/es/components/TextField/TextField.tokens.js +1 -0
  70. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +4 -18
  71. package/emotion/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -11
  72. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  73. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
  74. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
  75. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
  76. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
  77. package/es/components/Autocomplete/Autocomplete.css +18 -19
  78. package/es/components/Autocomplete/Autocomplete.js +7 -1
  79. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  80. package/es/components/Combobox/ComboboxNew/Combobox.css +18 -19
  81. package/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
  82. package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
  83. package/es/components/Combobox/ComboboxNew/ui/Inner/Inner.css +18 -19
  84. package/es/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.css +18 -19
  85. package/es/components/DatePicker/RangeDate/RangeDate.css +18 -19
  86. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +18 -19
  87. package/es/components/DatePicker/SingleDate/SingleDate.css +18 -19
  88. package/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  89. package/es/components/DatePicker/SingleDate/SingleDate.js.map +1 -1
  90. package/es/components/Pagination/Pagination.css +18 -19
  91. package/es/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.css +18 -19
  92. package/es/components/Range/Range.css +18 -19
  93. package/es/components/Select/Select.css +18 -19
  94. package/es/components/Select/ui/Inner/Inner.css +18 -19
  95. package/es/components/Select/ui/Inner/ui/Item/Item.css +18 -19
  96. package/es/components/Select/ui/Target/Target.css +18 -19
  97. package/es/components/Select/ui/Target/Target.js +1 -2
  98. package/es/components/Select/ui/Target/Target.js.map +1 -1
  99. package/es/components/Select/ui/Target/ui/Textfield/Textfield.css +18 -19
  100. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  101. package/es/components/Select/ui/Target/ui/Textfield/Textfield.js.map +1 -1
  102. package/es/components/Slider/Slider.css +18 -19
  103. package/es/components/Slider/components/Double/Double.css +18 -19
  104. package/es/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.css +18 -19
  105. package/es/components/TextField/TextField.js +12 -11
  106. package/es/components/TextField/TextField.js.map +1 -1
  107. package/es/components/TextField/TextField.styles.js +20 -11
  108. package/es/components/TextField/TextField.styles.js.map +1 -1
  109. package/es/components/TextField/{TextField.styles_j7dqpn.css → TextField.styles_ppcxpx.css} +1 -1
  110. package/es/components/TextField/TextField.tokens.js +1 -0
  111. package/es/components/TextField/TextField.tokens.js.map +1 -1
  112. package/es/components/TextField/ui/Hint/Hint.css +20 -20
  113. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.css +1 -2
  114. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +4 -18
  115. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.js.map +1 -1
  116. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -7
  117. package/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js.map +1 -1
  118. package/{cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1yosnxc.css → es/components/TextField/ui/TextFieldChip/TextFieldChip.styles_1y8n7la.css} +0 -1
  119. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  120. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  121. package/es/components/TextField/variations/_label-placement/base_y1lvvc.css +1 -0
  122. package/es/index.css +18 -19
  123. package/package.json +2 -2
  124. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +7 -1
  125. package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +7 -2
  126. package/styled-components/cjs/components/DatePicker/SingleDate/SingleDate.js +9 -4
  127. package/styled-components/cjs/components/Select/ui/Target/Target.js +1 -2
  128. package/styled-components/cjs/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  129. package/styled-components/cjs/components/TextField/TextField.js +12 -11
  130. package/styled-components/cjs/components/TextField/TextField.styles.js +9 -6
  131. package/styled-components/cjs/components/TextField/TextField.tokens.js +1 -0
  132. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.js +3 -17
  133. package/styled-components/cjs/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +2 -10
  134. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  135. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
  136. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
  137. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
  138. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
  139. package/styled-components/es/components/Autocomplete/Autocomplete.js +7 -1
  140. package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +7 -2
  141. package/styled-components/es/components/DatePicker/SingleDate/SingleDate.js +9 -4
  142. package/styled-components/es/components/Select/ui/Target/Target.js +1 -2
  143. package/styled-components/es/components/Select/ui/Target/ui/Textfield/Textfield.js +12 -7
  144. package/styled-components/es/components/TextField/TextField.js +12 -11
  145. package/styled-components/es/components/TextField/TextField.styles.js +9 -6
  146. package/styled-components/es/components/TextField/TextField.tokens.js +1 -0
  147. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.js +4 -18
  148. package/styled-components/es/components/TextField/ui/TextFieldChip/TextFieldChip.styles.js +1 -9
  149. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  150. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -8
  151. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +7 -10
  152. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +1 -8
  153. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +9 -12
  154. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  155. package/types/components/Autocomplete/Autocomplete.types.d.ts +2 -3
  156. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  157. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +717 -77
  158. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  159. package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
  160. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +30 -10
  161. package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
  162. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +717 -77
  163. package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
  164. package/types/components/DatePicker/SingleDate/SingleDate.d.ts +2 -2
  165. package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
  166. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +717 -77
  167. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  168. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +28 -9
  169. package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
  170. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +282 -20
  171. package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
  172. package/types/components/Range/Range.styles.d.ts +717 -77
  173. package/types/components/Range/Range.styles.d.ts.map +1 -1
  174. package/types/components/Select/Select.types.d.ts +30 -15
  175. package/types/components/Select/Select.types.d.ts.map +1 -1
  176. package/types/components/Select/ui/Target/Target.d.ts +1 -1
  177. package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
  178. package/types/components/Select/ui/Target/Target.types.d.ts +1 -1
  179. package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
  180. package/types/components/Select/ui/Target/ui/Textfield/Textfield.d.ts.map +1 -1
  181. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +717 -77
  182. package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
  183. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
  184. package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
  185. package/types/components/Slider/components/Double/Double.styles.d.ts +717 -77
  186. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  187. package/types/components/TextField/TextField.d.ts.map +1 -1
  188. package/types/components/TextField/TextField.styles.d.ts +3 -1
  189. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  190. package/types/components/TextField/TextField.tokens.d.ts +1 -0
  191. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  192. package/types/components/TextField/TextField.types.d.ts +43 -28
  193. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  194. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.d.ts.map +1 -1
  195. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +0 -1
  196. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +1 -1
  197. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +1 -5
  198. package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +1 -1
  199. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts +5 -557
  200. package/types/examples/plasma_b2c/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  201. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts +1045 -133
  202. package/types/examples/plasma_b2c/components/Combobox/Combobox.d.ts.map +1 -1
  203. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts +47 -1
  204. package/types/examples/plasma_b2c/components/DatePicker/DatePicker.d.ts.map +1 -1
  205. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts +1246 -78
  206. package/types/examples/plasma_b2c/components/Mask/Mask.d.ts.map +1 -1
  207. package/types/examples/plasma_b2c/components/Select/Select.d.ts +282 -20
  208. package/types/examples/plasma_b2c/components/Select/Select.d.ts.map +1 -1
  209. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +717 -77
  210. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  211. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts +5 -557
  212. package/types/examples/plasma_web/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  213. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts +1045 -133
  214. package/types/examples/plasma_web/components/Combobox/Combobox.d.ts.map +1 -1
  215. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts +47 -1
  216. package/types/examples/plasma_web/components/DatePicker/DatePicker.d.ts.map +1 -1
  217. package/types/examples/plasma_web/components/Mask/Mask.d.ts +1246 -78
  218. package/types/examples/plasma_web/components/Mask/Mask.d.ts.map +1 -1
  219. package/types/examples/plasma_web/components/Select/Select.d.ts +282 -20
  220. package/types/examples/plasma_web/components/Select/Select.d.ts.map +1 -1
  221. package/types/examples/plasma_web/components/TextField/TextField.d.ts +717 -77
  222. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  223. package/cjs/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
  224. package/es/components/TextField/variations/_label-placement/base_gttvto.css +0 -1
@@ -104,11 +104,6 @@ const meta: Meta<StorySelectProps> = {
104
104
  },
105
105
  if: { arg: 'required', truthy: false },
106
106
  },
107
- chipType: {
108
- control: 'select',
109
- options: ['default', 'text'],
110
- if: { arg: 'target', eq: 'textfield-like' },
111
- },
112
107
  },
113
108
  args: {
114
109
  target: 'textfield-like',
@@ -126,7 +121,6 @@ const meta: Meta<StorySelectProps> = {
126
121
  optional: false,
127
122
  required: false,
128
123
  requiredPlacement: 'right',
129
- chipType: 'default',
130
124
  },
131
125
  parameters: {
132
126
  controls: {
@@ -150,7 +144,6 @@ const meta: Meta<StorySelectProps> = {
150
144
  'optional',
151
145
  'required',
152
146
  'requiredPlacement',
153
- 'chipType',
154
147
  ],
155
148
  },
156
149
  },
@@ -389,7 +382,7 @@ const SingleStory = (args: StorySelectProps) => {
389
382
  export const Single: StoryObj<StorySelectProps> = {
390
383
  parameters: {
391
384
  controls: {
392
- exclude: ['chipView', 'isTargetAmount', 'chipType'],
385
+ exclude: ['chipView', 'isTargetAmount'],
393
386
  },
394
387
  },
395
388
  render: (args) => <SingleStory {...args} />,
@@ -87,6 +87,12 @@ const meta: Meta<typeof TextField> = {
87
87
  type: 'inline-radio',
88
88
  },
89
89
  },
90
+ hasPlaceholder: {
91
+ control: {
92
+ type: 'boolean',
93
+ },
94
+ if: { arg: 'labelPlacement', eq: 'inner' },
95
+ },
90
96
  size: {
91
97
  options: sizes,
92
98
  control: {
@@ -134,10 +140,6 @@ const meta: Meta<typeof TextField> = {
134
140
  control: { type: 'text' },
135
141
  if: { arg: 'hasHint', truthy: true },
136
142
  },
137
- chipType: {
138
- control: 'select',
139
- options: ['default', 'text'],
140
- },
141
143
  },
142
144
  };
143
145
 
@@ -214,6 +216,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
214
216
  view: 'default',
215
217
  label: 'Лейбл',
216
218
  labelPlacement: 'outer',
219
+ hasPlaceholder: false,
217
220
  titleCaption: 'Подпись к полю',
218
221
  textBefore: '',
219
222
  textAfter: '',
@@ -237,11 +240,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
237
240
  hintWidth: '10rem',
238
241
  hintHasArrow: true,
239
242
  },
240
- parameters: {
241
- controls: {
242
- exclude: ['chipType'],
243
- },
244
- },
245
243
  render: (args) => <StoryDemo {...args} />,
246
244
  };
247
245
 
@@ -297,7 +295,6 @@ export const Chips: StoryObj<StoryPropsChips> = {
297
295
  args: {
298
296
  ...Default.args,
299
297
  chips: ['1 value', '2 value', '3 value', '4 value'],
300
- chipType: 'default',
301
298
  },
302
299
  render: (args) => <StoryChips {...args} />,
303
300
  };
@@ -103,11 +103,6 @@ const meta: Meta<StorySelectProps> = {
103
103
  },
104
104
  if: { arg: 'required', truthy: false },
105
105
  },
106
- chipType: {
107
- control: 'select',
108
- options: ['default', 'text'],
109
- if: { arg: 'target', eq: 'textfield-like' },
110
- },
111
106
  },
112
107
  args: {
113
108
  target: 'textfield-like',
@@ -125,7 +120,6 @@ const meta: Meta<StorySelectProps> = {
125
120
  optional: false,
126
121
  required: false,
127
122
  requiredPlacement: 'right',
128
- chipType: 'default',
129
123
  },
130
124
  parameters: {
131
125
  controls: {
@@ -149,7 +143,6 @@ const meta: Meta<StorySelectProps> = {
149
143
  'optional',
150
144
  'required',
151
145
  'requiredPlacement',
152
- 'chipType',
153
146
  ],
154
147
  },
155
148
  },
@@ -388,7 +381,7 @@ const SingleStory = (args: StorySelectProps) => {
388
381
  export const Single: StoryObj<StorySelectProps> = {
389
382
  parameters: {
390
383
  controls: {
391
- exclude: ['chipView', 'isTargetAmount', 'chipType'],
384
+ exclude: ['chipView', 'isTargetAmount'],
392
385
  },
393
386
  },
394
387
  render: (args) => <SingleStory {...args} />,
@@ -87,6 +87,12 @@ const meta: Meta<typeof TextField> = {
87
87
  type: 'inline-radio',
88
88
  },
89
89
  },
90
+ hasPlaceholder: {
91
+ control: {
92
+ type: 'boolean',
93
+ },
94
+ if: { arg: 'labelPlacement', eq: 'inner' },
95
+ },
90
96
  size: {
91
97
  options: sizes,
92
98
  control: {
@@ -134,10 +140,6 @@ const meta: Meta<typeof TextField> = {
134
140
  control: { type: 'text' },
135
141
  if: { arg: 'hasHint', truthy: true },
136
142
  },
137
- chipType: {
138
- control: 'select',
139
- options: ['default', 'text'],
140
- },
141
143
  },
142
144
  };
143
145
 
@@ -214,6 +216,7 @@ export const Default: StoryObj<StoryPropsDefault> = {
214
216
  view: 'default',
215
217
  label: 'Лейбл',
216
218
  labelPlacement: 'outer',
219
+ hasPlaceholder: false,
217
220
  titleCaption: 'Подпись к полю',
218
221
  textBefore: '',
219
222
  textAfter: '',
@@ -223,11 +226,11 @@ export const Default: StoryObj<StoryPropsDefault> = {
223
226
  readOnly: false,
224
227
  enableContentLeft: true,
225
228
  enableContentRight: true,
226
- clear: false,
227
- hasDivider: false,
228
229
  optional: false,
229
230
  required: false,
230
231
  requiredPlacement: 'right',
232
+ clear: false,
233
+ hasDivider: false,
231
234
  hasHint: true,
232
235
  hintText: 'Текст подсказки',
233
236
  hintTrigger: 'hover',
@@ -237,11 +240,6 @@ export const Default: StoryObj<StoryPropsDefault> = {
237
240
  hintWidth: '10rem',
238
241
  hintHasArrow: true,
239
242
  },
240
- parameters: {
241
- controls: {
242
- exclude: ['chipType'],
243
- },
244
- },
245
243
  render: (args) => <StoryDemo {...args} />,
246
244
  };
247
245
 
@@ -297,7 +295,6 @@ export const Chips: StoryObj<StoryPropsChips> = {
297
295
  args: {
298
296
  ...Default.args,
299
297
  chips: ['1 value', '2 value', '3 value', '4 value'],
300
- chipType: 'default',
301
298
  },
302
299
  render: (args) => <StoryChips {...args} />,
303
300
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,+FAuLhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBAzLQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CAwMpF,CAAC"}
1
+ {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C,OAAO,KAAK,EAAE,iBAAiB,EAAsB,MAAM,sBAAsB,CAAC;AAGlF;;GAEG;AACH,eAAO,MAAM,gBAAgB,SAAU,UAAU,gBAAgB,EAAE,iBAAiB,CAAC,+FA8LhF,CAAC;AAEN,eAAO,MAAM,kBAAkB;;;mBAhMQ,UAAU,gBAAgB,EAAE,iBAAiB,CAAC;;;;;;;;;;;;CA+MpF,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import type { InputHTMLAttributes, ReactNode } from 'react';
2
- import { DistributiveOmit } from '../../types';
3
- import { TextFieldPropsBase } from '../TextField/TextField.types';
2
+ import { TextFieldPropsBase, RequiredProps } from '../TextField/TextField.types';
4
3
  export declare type SuggestionItemType = {
5
4
  /**
6
5
  * Метка-подпись к подсказке
@@ -85,5 +84,5 @@ export declare type BaseProps = {
85
84
  */
86
85
  renderListEnd?: () => ReactNode;
87
86
  };
88
- export declare type AutocompleteProps = BaseProps & DistributiveOmit<TextFieldPropsBase, 'chips' | 'onChangeChips' | 'enumerationType' | 'chipType'> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'required'>;
87
+ export declare type AutocompleteProps = BaseProps & RequiredProps & Omit<TextFieldPropsBase, 'chips' | 'onChangeChips' | 'enumerationType' | 'required' | 'optional' | 'requiredPlacement'> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'required'>;
89
88
  //# sourceMappingURL=Autocomplete.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,oBAAY,SAAS,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC;IAC/C;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,KAAK,SAAS,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,SAAS,CAAC;CACnC,CAAC;AAEF,oBAAY,iBAAiB,GAAG,SAAS,GACrC,gBAAgB,CAAC,kBAAkB,EAAE,OAAO,GAAG,eAAe,GAAG,iBAAiB,GAAG,UAAU,CAAC,GAChG,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"Autocomplete.types.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAEjF,oBAAY,kBAAkB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC5B,CAAC;AAEF,oBAAY,SAAS,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,OAAO,CAAC;IAC/C;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,EAAE,KAAK,SAAS,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,SAAS,CAAC;CACnC,CAAC;AAEF,oBAAY,iBAAiB,GAAG,SAAS,GACrC,aAAa,GACb,IAAI,CACA,kBAAkB,EAClB,OAAO,GAAG,eAAe,GAAG,iBAAiB,GAAG,UAAU,GAAG,UAAU,GAAG,mBAAmB,CAChG,GACD,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC"}