@salutejs/plasma-new-hope 0.195.2-canary.1580.11946918297.0 → 0.196.0-canary.1574.11948690681.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (528) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.js +7 -1
  2. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  3. package/emotion/cjs/components/Autocomplete/Autocomplete.js +7 -1
  4. package/emotion/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
  5. package/emotion/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +1 -1
  6. package/emotion/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +1 -1
  7. package/emotion/cjs/examples/plasma_b2c/components/Avatar/Avatar.stories.tsx +1 -1
  8. package/emotion/cjs/examples/plasma_b2c/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
  9. package/emotion/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -1
  10. package/emotion/cjs/examples/plasma_b2c/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  11. package/emotion/cjs/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
  12. package/emotion/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  13. package/emotion/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +1 -1
  14. package/emotion/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +1 -1
  15. package/emotion/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -1
  16. package/emotion/cjs/examples/plasma_b2c/components/Chip/Chip.stories.tsx +1 -1
  17. package/emotion/cjs/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +1 -1
  18. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  19. package/emotion/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
  20. package/emotion/cjs/examples/plasma_b2c/components/Counter/Counter.stories.tsx +1 -1
  21. package/emotion/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +1 -1
  22. package/emotion/cjs/examples/plasma_b2c/components/Divider/Divider.stories.tsx +1 -1
  23. package/emotion/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
  24. package/emotion/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +1 -1
  25. package/emotion/cjs/examples/plasma_b2c/components/Editable/Editable.stories.tsx +1 -1
  26. package/emotion/cjs/examples/plasma_b2c/components/EmptyState/EmptyState.stories.tsx +1 -1
  27. package/emotion/cjs/examples/plasma_b2c/components/Grid/Grid.stories.tsx +1 -1
  28. package/emotion/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
  29. package/emotion/cjs/examples/plasma_b2c/components/Image/Image.stories.tsx +1 -1
  30. package/emotion/cjs/examples/plasma_b2c/components/Indicator/Indicator.stories.tsx +1 -1
  31. package/emotion/cjs/examples/plasma_b2c/components/Link/Link.stories.tsx +1 -1
  32. package/emotion/cjs/examples/plasma_b2c/components/Mask/Mask.stories.tsx +1 -1
  33. package/emotion/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
  34. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
  35. package/emotion/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +1 -1
  36. package/emotion/cjs/examples/plasma_b2c/components/Overlay/Overlay.stories.tsx +1 -1
  37. package/emotion/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -1
  38. package/emotion/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +1 -1
  39. package/emotion/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
  40. package/emotion/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
  41. package/emotion/cjs/examples/plasma_b2c/components/Portal/Portal.stories.tsx +1 -1
  42. package/emotion/cjs/examples/plasma_b2c/components/Price/Price.stories.tsx +1 -1
  43. package/emotion/cjs/examples/plasma_b2c/components/Progress/Progress.stories.tsx +1 -1
  44. package/emotion/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +1 -1
  45. package/emotion/cjs/examples/plasma_b2c/components/Range/Range.stories.tsx +1 -1
  46. package/emotion/cjs/examples/plasma_b2c/components/Segment/Segment.stories.tsx +1 -1
  47. package/emotion/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -1
  48. package/emotion/cjs/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +1 -1
  49. package/emotion/cjs/examples/plasma_b2c/components/Skeleton/Skeleton.stories.tsx +1 -1
  50. package/emotion/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +1 -1
  51. package/emotion/cjs/examples/plasma_b2c/components/Spinner/Spinner.stories.tsx +1 -1
  52. package/emotion/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  53. package/emotion/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -1
  54. package/emotion/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +1 -1
  55. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
  56. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -1
  57. package/emotion/cjs/examples/plasma_b2c/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
  58. package/emotion/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
  59. package/emotion/cjs/examples/plasma_b2c/components/Toolbar/Toolbar.stories.tsx +1 -1
  60. package/emotion/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +1 -1
  61. package/emotion/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +1 -1
  62. package/emotion/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +1 -1
  63. package/emotion/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +1 -1
  64. package/emotion/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.stories.tsx +1 -1
  65. package/emotion/cjs/examples/plasma_web/components/Avatar/Avatar.stories.tsx +1 -1
  66. package/emotion/cjs/examples/plasma_web/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
  67. package/emotion/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +1 -1
  68. package/emotion/cjs/examples/plasma_web/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  69. package/emotion/cjs/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
  70. package/emotion/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  71. package/emotion/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +1 -1
  72. package/emotion/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +1 -1
  73. package/emotion/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -1
  74. package/emotion/cjs/examples/plasma_web/components/Chip/Chip.stories.tsx +1 -1
  75. package/emotion/cjs/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +1 -1
  76. package/emotion/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +1 -1
  77. package/emotion/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
  78. package/emotion/cjs/examples/plasma_web/components/Counter/Counter.stories.tsx +1 -1
  79. package/emotion/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -1
  80. package/emotion/cjs/examples/plasma_web/components/Divider/Divider.stories.tsx +1 -1
  81. package/emotion/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
  82. package/emotion/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +1 -1
  83. package/emotion/cjs/examples/plasma_web/components/Editable/Editable.stories.tsx +1 -1
  84. package/emotion/cjs/examples/plasma_web/components/EmptyState/EmptyState.stories.tsx +1 -1
  85. package/emotion/cjs/examples/plasma_web/components/Grid/Grid.stories.tsx +1 -1
  86. package/emotion/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
  87. package/emotion/cjs/examples/plasma_web/components/Image/Image.stories.tsx +1 -1
  88. package/emotion/cjs/examples/plasma_web/components/Indicator/Indicator.stories.tsx +1 -1
  89. package/emotion/cjs/examples/plasma_web/components/Link/Link.stories.tsx +1 -1
  90. package/emotion/cjs/examples/plasma_web/components/Mask/Mask.stories.tsx +1 -1
  91. package/emotion/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
  92. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
  93. package/emotion/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +1 -1
  94. package/emotion/cjs/examples/plasma_web/components/Overlay/Overlay.stories.tsx +1 -1
  95. package/emotion/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +1 -1
  96. package/emotion/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +1 -1
  97. package/emotion/cjs/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
  98. package/emotion/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
  99. package/emotion/cjs/examples/plasma_web/components/Portal/Portal.stories.tsx +1 -1
  100. package/emotion/cjs/examples/plasma_web/components/Price/Price.stories.tsx +1 -1
  101. package/emotion/cjs/examples/plasma_web/components/Progress/Progress.stories.tsx +1 -1
  102. package/emotion/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +1 -1
  103. package/emotion/cjs/examples/plasma_web/components/Range/Range.stories.tsx +1 -1
  104. package/emotion/cjs/examples/plasma_web/components/Segment/Segment.stories.tsx +1 -1
  105. package/emotion/cjs/examples/plasma_web/components/Select/Select.stories.tsx +1 -1
  106. package/emotion/cjs/examples/plasma_web/components/Sheet/Sheet.stories.tsx +1 -1
  107. package/emotion/cjs/examples/plasma_web/components/Skeleton/Skeleton.stories.tsx +1 -1
  108. package/emotion/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +1 -1
  109. package/emotion/cjs/examples/plasma_web/components/Spinner/Spinner.stories.tsx +1 -1
  110. package/emotion/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  111. package/emotion/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -1
  112. package/emotion/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +1 -1
  113. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
  114. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -1
  115. package/emotion/cjs/examples/plasma_web/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
  116. package/emotion/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
  117. package/emotion/cjs/examples/plasma_web/components/Toolbar/Toolbar.stories.tsx +1 -1
  118. package/emotion/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +1 -1
  119. package/emotion/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +1 -1
  120. package/emotion/cjs/examples/typograpy/components/Body/Body.stories.tsx +1 -1
  121. package/emotion/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -1
  122. package/emotion/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +1 -1
  123. package/emotion/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -1
  124. package/emotion/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -1
  125. package/emotion/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -1
  126. package/emotion/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -1
  127. package/emotion/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -1
  128. package/emotion/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -1
  129. package/emotion/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -1
  130. package/emotion/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -1
  131. package/emotion/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -1
  132. package/emotion/cjs/examples/typograpy/components/Text/Text.stories.tsx +1 -1
  133. package/emotion/es/components/Autocomplete/Autocomplete.js +7 -1
  134. package/emotion/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
  135. package/emotion/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +1 -1
  136. package/emotion/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +1 -1
  137. package/emotion/es/examples/plasma_b2c/components/Avatar/Avatar.stories.tsx +1 -1
  138. package/emotion/es/examples/plasma_b2c/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
  139. package/emotion/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -1
  140. package/emotion/es/examples/plasma_b2c/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  141. package/emotion/es/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
  142. package/emotion/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  143. package/emotion/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +1 -1
  144. package/emotion/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +1 -1
  145. package/emotion/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -1
  146. package/emotion/es/examples/plasma_b2c/components/Chip/Chip.stories.tsx +1 -1
  147. package/emotion/es/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +1 -1
  148. package/emotion/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  149. package/emotion/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
  150. package/emotion/es/examples/plasma_b2c/components/Counter/Counter.stories.tsx +1 -1
  151. package/emotion/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +1 -1
  152. package/emotion/es/examples/plasma_b2c/components/Divider/Divider.stories.tsx +1 -1
  153. package/emotion/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
  154. package/emotion/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +1 -1
  155. package/emotion/es/examples/plasma_b2c/components/Editable/Editable.stories.tsx +1 -1
  156. package/emotion/es/examples/plasma_b2c/components/EmptyState/EmptyState.stories.tsx +1 -1
  157. package/emotion/es/examples/plasma_b2c/components/Grid/Grid.stories.tsx +1 -1
  158. package/emotion/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
  159. package/emotion/es/examples/plasma_b2c/components/Image/Image.stories.tsx +1 -1
  160. package/emotion/es/examples/plasma_b2c/components/Indicator/Indicator.stories.tsx +1 -1
  161. package/emotion/es/examples/plasma_b2c/components/Link/Link.stories.tsx +1 -1
  162. package/emotion/es/examples/plasma_b2c/components/Mask/Mask.stories.tsx +1 -1
  163. package/emotion/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
  164. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
  165. package/emotion/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +1 -1
  166. package/emotion/es/examples/plasma_b2c/components/Overlay/Overlay.stories.tsx +1 -1
  167. package/emotion/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -1
  168. package/emotion/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +1 -1
  169. package/emotion/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
  170. package/emotion/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
  171. package/emotion/es/examples/plasma_b2c/components/Portal/Portal.stories.tsx +1 -1
  172. package/emotion/es/examples/plasma_b2c/components/Price/Price.stories.tsx +1 -1
  173. package/emotion/es/examples/plasma_b2c/components/Progress/Progress.stories.tsx +1 -1
  174. package/emotion/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +1 -1
  175. package/emotion/es/examples/plasma_b2c/components/Range/Range.stories.tsx +1 -1
  176. package/emotion/es/examples/plasma_b2c/components/Segment/Segment.stories.tsx +1 -1
  177. package/emotion/es/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -1
  178. package/emotion/es/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +1 -1
  179. package/emotion/es/examples/plasma_b2c/components/Skeleton/Skeleton.stories.tsx +1 -1
  180. package/emotion/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +1 -1
  181. package/emotion/es/examples/plasma_b2c/components/Spinner/Spinner.stories.tsx +1 -1
  182. package/emotion/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  183. package/emotion/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -1
  184. package/emotion/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +1 -1
  185. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
  186. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -1
  187. package/emotion/es/examples/plasma_b2c/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
  188. package/emotion/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
  189. package/emotion/es/examples/plasma_b2c/components/Toolbar/Toolbar.stories.tsx +1 -1
  190. package/emotion/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +1 -1
  191. package/emotion/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +1 -1
  192. package/emotion/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +1 -1
  193. package/emotion/es/examples/plasma_web/components/Attach/Attach.stories.tsx +1 -1
  194. package/emotion/es/examples/plasma_web/components/Autocomplete/Autocomplete.stories.tsx +1 -1
  195. package/emotion/es/examples/plasma_web/components/Avatar/Avatar.stories.tsx +1 -1
  196. package/emotion/es/examples/plasma_web/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
  197. package/emotion/es/examples/plasma_web/components/Badge/Badge.stories.tsx +1 -1
  198. package/emotion/es/examples/plasma_web/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  199. package/emotion/es/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
  200. package/emotion/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  201. package/emotion/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +1 -1
  202. package/emotion/es/examples/plasma_web/components/Cell/Cell.stories.tsx +1 -1
  203. package/emotion/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -1
  204. package/emotion/es/examples/plasma_web/components/Chip/Chip.stories.tsx +1 -1
  205. package/emotion/es/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +1 -1
  206. package/emotion/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +1 -1
  207. package/emotion/es/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
  208. package/emotion/es/examples/plasma_web/components/Counter/Counter.stories.tsx +1 -1
  209. package/emotion/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -1
  210. package/emotion/es/examples/plasma_web/components/Divider/Divider.stories.tsx +1 -1
  211. package/emotion/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
  212. package/emotion/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +1 -1
  213. package/emotion/es/examples/plasma_web/components/Editable/Editable.stories.tsx +1 -1
  214. package/emotion/es/examples/plasma_web/components/EmptyState/EmptyState.stories.tsx +1 -1
  215. package/emotion/es/examples/plasma_web/components/Grid/Grid.stories.tsx +1 -1
  216. package/emotion/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
  217. package/emotion/es/examples/plasma_web/components/Image/Image.stories.tsx +1 -1
  218. package/emotion/es/examples/plasma_web/components/Indicator/Indicator.stories.tsx +1 -1
  219. package/emotion/es/examples/plasma_web/components/Link/Link.stories.tsx +1 -1
  220. package/emotion/es/examples/plasma_web/components/Mask/Mask.stories.tsx +1 -1
  221. package/emotion/es/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
  222. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
  223. package/emotion/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +1 -1
  224. package/emotion/es/examples/plasma_web/components/Overlay/Overlay.stories.tsx +1 -1
  225. package/emotion/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +1 -1
  226. package/emotion/es/examples/plasma_web/components/Panel/Panel.stories.tsx +1 -1
  227. package/emotion/es/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
  228. package/emotion/es/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
  229. package/emotion/es/examples/plasma_web/components/Portal/Portal.stories.tsx +1 -1
  230. package/emotion/es/examples/plasma_web/components/Price/Price.stories.tsx +1 -1
  231. package/emotion/es/examples/plasma_web/components/Progress/Progress.stories.tsx +1 -1
  232. package/emotion/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +1 -1
  233. package/emotion/es/examples/plasma_web/components/Range/Range.stories.tsx +1 -1
  234. package/emotion/es/examples/plasma_web/components/Segment/Segment.stories.tsx +1 -1
  235. package/emotion/es/examples/plasma_web/components/Select/Select.stories.tsx +1 -1
  236. package/emotion/es/examples/plasma_web/components/Sheet/Sheet.stories.tsx +1 -1
  237. package/emotion/es/examples/plasma_web/components/Skeleton/Skeleton.stories.tsx +1 -1
  238. package/emotion/es/examples/plasma_web/components/Slider/Slider.stories.tsx +1 -1
  239. package/emotion/es/examples/plasma_web/components/Spinner/Spinner.stories.tsx +1 -1
  240. package/emotion/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  241. package/emotion/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -1
  242. package/emotion/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +1 -1
  243. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
  244. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -1
  245. package/emotion/es/examples/plasma_web/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
  246. package/emotion/es/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
  247. package/emotion/es/examples/plasma_web/components/Toolbar/Toolbar.stories.tsx +1 -1
  248. package/emotion/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +1 -1
  249. package/emotion/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +1 -1
  250. package/emotion/es/examples/typograpy/components/Body/Body.stories.tsx +1 -1
  251. package/emotion/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -1
  252. package/emotion/es/examples/typograpy/components/Heading/Heading.stories.tsx +1 -1
  253. package/emotion/es/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -1
  254. package/emotion/es/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -1
  255. package/emotion/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -1
  256. package/emotion/es/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -1
  257. package/emotion/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -1
  258. package/emotion/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -1
  259. package/emotion/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -1
  260. package/emotion/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -1
  261. package/emotion/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -1
  262. package/emotion/es/examples/typograpy/components/Text/Text.stories.tsx +1 -1
  263. package/es/components/Autocomplete/Autocomplete.js +7 -1
  264. package/es/components/Autocomplete/Autocomplete.js.map +1 -1
  265. package/package.json +2 -2
  266. package/styled-components/cjs/components/Autocomplete/Autocomplete.js +7 -1
  267. package/styled-components/cjs/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
  268. package/styled-components/cjs/examples/plasma_b2c/components/Attach/Attach.stories.tsx +1 -1
  269. package/styled-components/cjs/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +1 -1
  270. package/styled-components/cjs/examples/plasma_b2c/components/Avatar/Avatar.stories.tsx +1 -1
  271. package/styled-components/cjs/examples/plasma_b2c/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
  272. package/styled-components/cjs/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -1
  273. package/styled-components/cjs/examples/plasma_b2c/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  274. package/styled-components/cjs/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
  275. package/styled-components/cjs/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  276. package/styled-components/cjs/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +1 -1
  277. package/styled-components/cjs/examples/plasma_b2c/components/Cell/Cell.stories.tsx +1 -1
  278. package/styled-components/cjs/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -1
  279. package/styled-components/cjs/examples/plasma_b2c/components/Chip/Chip.stories.tsx +1 -1
  280. package/styled-components/cjs/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +1 -1
  281. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  282. package/styled-components/cjs/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
  283. package/styled-components/cjs/examples/plasma_b2c/components/Counter/Counter.stories.tsx +1 -1
  284. package/styled-components/cjs/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +1 -1
  285. package/styled-components/cjs/examples/plasma_b2c/components/Divider/Divider.stories.tsx +1 -1
  286. package/styled-components/cjs/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
  287. package/styled-components/cjs/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +1 -1
  288. package/styled-components/cjs/examples/plasma_b2c/components/Editable/Editable.stories.tsx +1 -1
  289. package/styled-components/cjs/examples/plasma_b2c/components/EmptyState/EmptyState.stories.tsx +1 -1
  290. package/styled-components/cjs/examples/plasma_b2c/components/Grid/Grid.stories.tsx +1 -1
  291. package/styled-components/cjs/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
  292. package/styled-components/cjs/examples/plasma_b2c/components/Image/Image.stories.tsx +1 -1
  293. package/styled-components/cjs/examples/plasma_b2c/components/Indicator/Indicator.stories.tsx +1 -1
  294. package/styled-components/cjs/examples/plasma_b2c/components/Link/Link.stories.tsx +1 -1
  295. package/styled-components/cjs/examples/plasma_b2c/components/Mask/Mask.stories.tsx +1 -1
  296. package/styled-components/cjs/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
  297. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
  298. package/styled-components/cjs/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +1 -1
  299. package/styled-components/cjs/examples/plasma_b2c/components/Overlay/Overlay.stories.tsx +1 -1
  300. package/styled-components/cjs/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -1
  301. package/styled-components/cjs/examples/plasma_b2c/components/Panel/Panel.stories.tsx +1 -1
  302. package/styled-components/cjs/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
  303. package/styled-components/cjs/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
  304. package/styled-components/cjs/examples/plasma_b2c/components/Portal/Portal.stories.tsx +1 -1
  305. package/styled-components/cjs/examples/plasma_b2c/components/Price/Price.stories.tsx +1 -1
  306. package/styled-components/cjs/examples/plasma_b2c/components/Progress/Progress.stories.tsx +1 -1
  307. package/styled-components/cjs/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +1 -1
  308. package/styled-components/cjs/examples/plasma_b2c/components/Range/Range.stories.tsx +1 -1
  309. package/styled-components/cjs/examples/plasma_b2c/components/Segment/Segment.stories.tsx +1 -1
  310. package/styled-components/cjs/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -1
  311. package/styled-components/cjs/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +1 -1
  312. package/styled-components/cjs/examples/plasma_b2c/components/Skeleton/Skeleton.stories.tsx +1 -1
  313. package/styled-components/cjs/examples/plasma_b2c/components/Slider/Slider.stories.tsx +1 -1
  314. package/styled-components/cjs/examples/plasma_b2c/components/Spinner/Spinner.stories.tsx +1 -1
  315. package/styled-components/cjs/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  316. package/styled-components/cjs/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -1
  317. package/styled-components/cjs/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +1 -1
  318. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
  319. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -1
  320. package/styled-components/cjs/examples/plasma_b2c/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
  321. package/styled-components/cjs/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
  322. package/styled-components/cjs/examples/plasma_b2c/components/Toolbar/Toolbar.stories.tsx +1 -1
  323. package/styled-components/cjs/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +1 -1
  324. package/styled-components/cjs/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +1 -1
  325. package/styled-components/cjs/examples/plasma_web/components/Accordion/Accordion.stories.tsx +1 -1
  326. package/styled-components/cjs/examples/plasma_web/components/Attach/Attach.stories.tsx +1 -1
  327. package/styled-components/cjs/examples/plasma_web/components/Autocomplete/Autocomplete.stories.tsx +1 -1
  328. package/styled-components/cjs/examples/plasma_web/components/Avatar/Avatar.stories.tsx +1 -1
  329. package/styled-components/cjs/examples/plasma_web/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
  330. package/styled-components/cjs/examples/plasma_web/components/Badge/Badge.stories.tsx +1 -1
  331. package/styled-components/cjs/examples/plasma_web/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  332. package/styled-components/cjs/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
  333. package/styled-components/cjs/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  334. package/styled-components/cjs/examples/plasma_web/components/Calendar/Calendar.stories.tsx +1 -1
  335. package/styled-components/cjs/examples/plasma_web/components/Cell/Cell.stories.tsx +1 -1
  336. package/styled-components/cjs/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -1
  337. package/styled-components/cjs/examples/plasma_web/components/Chip/Chip.stories.tsx +1 -1
  338. package/styled-components/cjs/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +1 -1
  339. package/styled-components/cjs/examples/plasma_web/components/Combobox/Combobox.stories.tsx +1 -1
  340. package/styled-components/cjs/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
  341. package/styled-components/cjs/examples/plasma_web/components/Counter/Counter.stories.tsx +1 -1
  342. package/styled-components/cjs/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -1
  343. package/styled-components/cjs/examples/plasma_web/components/Divider/Divider.stories.tsx +1 -1
  344. package/styled-components/cjs/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
  345. package/styled-components/cjs/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +1 -1
  346. package/styled-components/cjs/examples/plasma_web/components/Editable/Editable.stories.tsx +1 -1
  347. package/styled-components/cjs/examples/plasma_web/components/EmptyState/EmptyState.stories.tsx +1 -1
  348. package/styled-components/cjs/examples/plasma_web/components/Grid/Grid.stories.tsx +1 -1
  349. package/styled-components/cjs/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
  350. package/styled-components/cjs/examples/plasma_web/components/Image/Image.stories.tsx +1 -1
  351. package/styled-components/cjs/examples/plasma_web/components/Indicator/Indicator.stories.tsx +1 -1
  352. package/styled-components/cjs/examples/plasma_web/components/Link/Link.stories.tsx +1 -1
  353. package/styled-components/cjs/examples/plasma_web/components/Mask/Mask.stories.tsx +1 -1
  354. package/styled-components/cjs/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
  355. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
  356. package/styled-components/cjs/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +1 -1
  357. package/styled-components/cjs/examples/plasma_web/components/Overlay/Overlay.stories.tsx +1 -1
  358. package/styled-components/cjs/examples/plasma_web/components/Pagination/Pagination.stories.tsx +1 -1
  359. package/styled-components/cjs/examples/plasma_web/components/Panel/Panel.stories.tsx +1 -1
  360. package/styled-components/cjs/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
  361. package/styled-components/cjs/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
  362. package/styled-components/cjs/examples/plasma_web/components/Portal/Portal.stories.tsx +1 -1
  363. package/styled-components/cjs/examples/plasma_web/components/Price/Price.stories.tsx +1 -1
  364. package/styled-components/cjs/examples/plasma_web/components/Progress/Progress.stories.tsx +1 -1
  365. package/styled-components/cjs/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +1 -1
  366. package/styled-components/cjs/examples/plasma_web/components/Range/Range.stories.tsx +1 -1
  367. package/styled-components/cjs/examples/plasma_web/components/Segment/Segment.stories.tsx +1 -1
  368. package/styled-components/cjs/examples/plasma_web/components/Select/Select.stories.tsx +1 -1
  369. package/styled-components/cjs/examples/plasma_web/components/Sheet/Sheet.stories.tsx +1 -1
  370. package/styled-components/cjs/examples/plasma_web/components/Skeleton/Skeleton.stories.tsx +1 -1
  371. package/styled-components/cjs/examples/plasma_web/components/Slider/Slider.stories.tsx +1 -1
  372. package/styled-components/cjs/examples/plasma_web/components/Spinner/Spinner.stories.tsx +1 -1
  373. package/styled-components/cjs/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  374. package/styled-components/cjs/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -1
  375. package/styled-components/cjs/examples/plasma_web/components/Tabs/Tabs.stories.tsx +1 -1
  376. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
  377. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -1
  378. package/styled-components/cjs/examples/plasma_web/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
  379. package/styled-components/cjs/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
  380. package/styled-components/cjs/examples/plasma_web/components/Toolbar/Toolbar.stories.tsx +1 -1
  381. package/styled-components/cjs/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +1 -1
  382. package/styled-components/cjs/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +1 -1
  383. package/styled-components/cjs/examples/typograpy/components/Body/Body.stories.tsx +1 -1
  384. package/styled-components/cjs/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -1
  385. package/styled-components/cjs/examples/typograpy/components/Heading/Heading.stories.tsx +1 -1
  386. package/styled-components/cjs/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -1
  387. package/styled-components/cjs/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -1
  388. package/styled-components/cjs/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -1
  389. package/styled-components/cjs/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -1
  390. package/styled-components/cjs/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -1
  391. package/styled-components/cjs/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -1
  392. package/styled-components/cjs/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -1
  393. package/styled-components/cjs/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -1
  394. package/styled-components/cjs/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -1
  395. package/styled-components/cjs/examples/typograpy/components/Text/Text.stories.tsx +1 -1
  396. package/styled-components/es/components/Autocomplete/Autocomplete.js +7 -1
  397. package/styled-components/es/examples/plasma_b2c/components/Accordion/Accordion.stories.tsx +1 -1
  398. package/styled-components/es/examples/plasma_b2c/components/Attach/Attach.stories.tsx +1 -1
  399. package/styled-components/es/examples/plasma_b2c/components/Autocomplete/Autocomplete.stories.tsx +1 -1
  400. package/styled-components/es/examples/plasma_b2c/components/Avatar/Avatar.stories.tsx +1 -1
  401. package/styled-components/es/examples/plasma_b2c/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
  402. package/styled-components/es/examples/plasma_b2c/components/Badge/Badge.stories.tsx +1 -1
  403. package/styled-components/es/examples/plasma_b2c/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  404. package/styled-components/es/examples/plasma_b2c/components/Button/Button.stories.tsx +1 -1
  405. package/styled-components/es/examples/plasma_b2c/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  406. package/styled-components/es/examples/plasma_b2c/components/Calendar/Calendar.stories.tsx +1 -1
  407. package/styled-components/es/examples/plasma_b2c/components/Cell/Cell.stories.tsx +1 -1
  408. package/styled-components/es/examples/plasma_b2c/components/Checkbox/Checkbox.stories.tsx +1 -1
  409. package/styled-components/es/examples/plasma_b2c/components/Chip/Chip.stories.tsx +1 -1
  410. package/styled-components/es/examples/plasma_b2c/components/ChipGroup /ChipGroup.stories.tsx +1 -1
  411. package/styled-components/es/examples/plasma_b2c/components/Combobox/Combobox.stories.tsx +1 -1
  412. package/styled-components/es/examples/plasma_b2c/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
  413. package/styled-components/es/examples/plasma_b2c/components/Counter/Counter.stories.tsx +1 -1
  414. package/styled-components/es/examples/plasma_b2c/components/DatePicker/DatePicker.stories.tsx +1 -1
  415. package/styled-components/es/examples/plasma_b2c/components/Divider/Divider.stories.tsx +1 -1
  416. package/styled-components/es/examples/plasma_b2c/components/Drawer/Drawer.stories.tsx +1 -1
  417. package/styled-components/es/examples/plasma_b2c/components/Dropdown/Dropdown.stories.tsx +1 -1
  418. package/styled-components/es/examples/plasma_b2c/components/Editable/Editable.stories.tsx +1 -1
  419. package/styled-components/es/examples/plasma_b2c/components/EmptyState/EmptyState.stories.tsx +1 -1
  420. package/styled-components/es/examples/plasma_b2c/components/Grid/Grid.stories.tsx +1 -1
  421. package/styled-components/es/examples/plasma_b2c/components/IconButton/IconButton.stories.tsx +1 -1
  422. package/styled-components/es/examples/plasma_b2c/components/Image/Image.stories.tsx +1 -1
  423. package/styled-components/es/examples/plasma_b2c/components/Indicator/Indicator.stories.tsx +1 -1
  424. package/styled-components/es/examples/plasma_b2c/components/Link/Link.stories.tsx +1 -1
  425. package/styled-components/es/examples/plasma_b2c/components/Mask/Mask.stories.tsx +1 -1
  426. package/styled-components/es/examples/plasma_b2c/components/Modal/Modal.stories.tsx +1 -1
  427. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +1 -1
  428. package/styled-components/es/examples/plasma_b2c/components/NumberInput/NumberInput.stories.tsx +1 -1
  429. package/styled-components/es/examples/plasma_b2c/components/Overlay/Overlay.stories.tsx +1 -1
  430. package/styled-components/es/examples/plasma_b2c/components/Pagination/Pagination.stories.tsx +1 -1
  431. package/styled-components/es/examples/plasma_b2c/components/Panel/Panel.stories.tsx +1 -1
  432. package/styled-components/es/examples/plasma_b2c/components/Popover/Popover.stories.tsx +1 -1
  433. package/styled-components/es/examples/plasma_b2c/components/Popup/Popup.stories.tsx +1 -1
  434. package/styled-components/es/examples/plasma_b2c/components/Portal/Portal.stories.tsx +1 -1
  435. package/styled-components/es/examples/plasma_b2c/components/Price/Price.stories.tsx +1 -1
  436. package/styled-components/es/examples/plasma_b2c/components/Progress/Progress.stories.tsx +1 -1
  437. package/styled-components/es/examples/plasma_b2c/components/Radiobox/Radiobox.stories.tsx +1 -1
  438. package/styled-components/es/examples/plasma_b2c/components/Range/Range.stories.tsx +1 -1
  439. package/styled-components/es/examples/plasma_b2c/components/Segment/Segment.stories.tsx +1 -1
  440. package/styled-components/es/examples/plasma_b2c/components/Select/Select.stories.tsx +1 -1
  441. package/styled-components/es/examples/plasma_b2c/components/Sheet/Sheet.stories.tsx +1 -1
  442. package/styled-components/es/examples/plasma_b2c/components/Skeleton/Skeleton.stories.tsx +1 -1
  443. package/styled-components/es/examples/plasma_b2c/components/Slider/Slider.stories.tsx +1 -1
  444. package/styled-components/es/examples/plasma_b2c/components/Spinner/Spinner.stories.tsx +1 -1
  445. package/styled-components/es/examples/plasma_b2c/components/Steps/Steps.stories.tsx +1 -1
  446. package/styled-components/es/examples/plasma_b2c/components/Switch/Switch.stories.tsx +1 -1
  447. package/styled-components/es/examples/plasma_b2c/components/Tabs/Tabs.stories.tsx +1 -1
  448. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +1 -1
  449. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +1 -1
  450. package/styled-components/es/examples/plasma_b2c/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
  451. package/styled-components/es/examples/plasma_b2c/components/Toast/Toast.stories.tsx +1 -1
  452. package/styled-components/es/examples/plasma_b2c/components/Toolbar/Toolbar.stories.tsx +1 -1
  453. package/styled-components/es/examples/plasma_b2c/components/Tooltip/Tooltip.stories.tsx +1 -1
  454. package/styled-components/es/examples/plasma_b2c/components/ViewContainer/ViewContainer.stories.tsx +1 -1
  455. package/styled-components/es/examples/plasma_web/components/Accordion/Accordion.stories.tsx +1 -1
  456. package/styled-components/es/examples/plasma_web/components/Attach/Attach.stories.tsx +1 -1
  457. package/styled-components/es/examples/plasma_web/components/Autocomplete/Autocomplete.stories.tsx +1 -1
  458. package/styled-components/es/examples/plasma_web/components/Avatar/Avatar.stories.tsx +1 -1
  459. package/styled-components/es/examples/plasma_web/components/AvatarGroup/AvatarGroup.stories.tsx +1 -1
  460. package/styled-components/es/examples/plasma_web/components/Badge/Badge.stories.tsx +1 -1
  461. package/styled-components/es/examples/plasma_web/components/Breadcrumbs/Breadcrumbs.stories.tsx +1 -1
  462. package/styled-components/es/examples/plasma_web/components/Button/Button.stories.tsx +1 -1
  463. package/styled-components/es/examples/plasma_web/components/ButtonGroup/ButtonGroup.stories.tsx +1 -1
  464. package/styled-components/es/examples/plasma_web/components/Calendar/Calendar.stories.tsx +1 -1
  465. package/styled-components/es/examples/plasma_web/components/Cell/Cell.stories.tsx +1 -1
  466. package/styled-components/es/examples/plasma_web/components/Checkbox/Checkbox.stories.tsx +1 -1
  467. package/styled-components/es/examples/plasma_web/components/Chip/Chip.stories.tsx +1 -1
  468. package/styled-components/es/examples/plasma_web/components/ChipGroup /ChipGroup.stories.tsx +1 -1
  469. package/styled-components/es/examples/plasma_web/components/Combobox/Combobox.stories.tsx +1 -1
  470. package/styled-components/es/examples/plasma_web/components/Combobox/Legacy/Combobox.stories.tsx +1 -1
  471. package/styled-components/es/examples/plasma_web/components/Counter/Counter.stories.tsx +1 -1
  472. package/styled-components/es/examples/plasma_web/components/DatePicker/DatePicker.stories.tsx +1 -1
  473. package/styled-components/es/examples/plasma_web/components/Divider/Divider.stories.tsx +1 -1
  474. package/styled-components/es/examples/plasma_web/components/Drawer/Drawer.stories.tsx +1 -1
  475. package/styled-components/es/examples/plasma_web/components/Dropdown/Dropdown.stories.tsx +1 -1
  476. package/styled-components/es/examples/plasma_web/components/Editable/Editable.stories.tsx +1 -1
  477. package/styled-components/es/examples/plasma_web/components/EmptyState/EmptyState.stories.tsx +1 -1
  478. package/styled-components/es/examples/plasma_web/components/Grid/Grid.stories.tsx +1 -1
  479. package/styled-components/es/examples/plasma_web/components/IconButton/IconButton.stories.tsx +1 -1
  480. package/styled-components/es/examples/plasma_web/components/Image/Image.stories.tsx +1 -1
  481. package/styled-components/es/examples/plasma_web/components/Indicator/Indicator.stories.tsx +1 -1
  482. package/styled-components/es/examples/plasma_web/components/Link/Link.stories.tsx +1 -1
  483. package/styled-components/es/examples/plasma_web/components/Mask/Mask.stories.tsx +1 -1
  484. package/styled-components/es/examples/plasma_web/components/Modal/Modal.stories.tsx +1 -1
  485. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +1 -1
  486. package/styled-components/es/examples/plasma_web/components/NumberInput/NumberInput.stories.tsx +1 -1
  487. package/styled-components/es/examples/plasma_web/components/Overlay/Overlay.stories.tsx +1 -1
  488. package/styled-components/es/examples/plasma_web/components/Pagination/Pagination.stories.tsx +1 -1
  489. package/styled-components/es/examples/plasma_web/components/Panel/Panel.stories.tsx +1 -1
  490. package/styled-components/es/examples/plasma_web/components/Popover/Popover.stories.tsx +1 -1
  491. package/styled-components/es/examples/plasma_web/components/Popup/Popup.stories.tsx +1 -1
  492. package/styled-components/es/examples/plasma_web/components/Portal/Portal.stories.tsx +1 -1
  493. package/styled-components/es/examples/plasma_web/components/Price/Price.stories.tsx +1 -1
  494. package/styled-components/es/examples/plasma_web/components/Progress/Progress.stories.tsx +1 -1
  495. package/styled-components/es/examples/plasma_web/components/Radiobox/Radiobox.stories.tsx +1 -1
  496. package/styled-components/es/examples/plasma_web/components/Range/Range.stories.tsx +1 -1
  497. package/styled-components/es/examples/plasma_web/components/Segment/Segment.stories.tsx +1 -1
  498. package/styled-components/es/examples/plasma_web/components/Select/Select.stories.tsx +1 -1
  499. package/styled-components/es/examples/plasma_web/components/Sheet/Sheet.stories.tsx +1 -1
  500. package/styled-components/es/examples/plasma_web/components/Skeleton/Skeleton.stories.tsx +1 -1
  501. package/styled-components/es/examples/plasma_web/components/Slider/Slider.stories.tsx +1 -1
  502. package/styled-components/es/examples/plasma_web/components/Spinner/Spinner.stories.tsx +1 -1
  503. package/styled-components/es/examples/plasma_web/components/Steps/Steps.stories.tsx +1 -1
  504. package/styled-components/es/examples/plasma_web/components/Switch/Switch.stories.tsx +1 -1
  505. package/styled-components/es/examples/plasma_web/components/Tabs/Tabs.stories.tsx +1 -1
  506. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +1 -1
  507. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +1 -1
  508. package/styled-components/es/examples/plasma_web/components/TextFieldGroup/TextFieldGroup.stories.tsx +1 -1
  509. package/styled-components/es/examples/plasma_web/components/Toast/Toast.stories.tsx +1 -1
  510. package/styled-components/es/examples/plasma_web/components/Toolbar/Toolbar.stories.tsx +1 -1
  511. package/styled-components/es/examples/plasma_web/components/Tooltip/Tooltip.stories.tsx +1 -1
  512. package/styled-components/es/examples/plasma_web/components/ViewContainer/ViewContainer.stories.tsx +1 -1
  513. package/styled-components/es/examples/typograpy/components/Body/Body.stories.tsx +1 -1
  514. package/styled-components/es/examples/typograpy/components/Dspl/Dspl.stories.tsx +1 -1
  515. package/styled-components/es/examples/typograpy/components/Heading/Heading.stories.tsx +1 -1
  516. package/styled-components/es/examples/typograpy/components/Old/Body/Body.stories.tsx +1 -1
  517. package/styled-components/es/examples/typograpy/components/Old/Button/Button.stories.tsx +1 -1
  518. package/styled-components/es/examples/typograpy/components/Old/Caption/Caption.stories.tsx +1 -1
  519. package/styled-components/es/examples/typograpy/components/Old/Display/Display.stories.tsx +1 -1
  520. package/styled-components/es/examples/typograpy/components/Old/Footnote/Footnote.stories.tsx +1 -1
  521. package/styled-components/es/examples/typograpy/components/Old/Headline/Headline.stories.tsx +1 -1
  522. package/styled-components/es/examples/typograpy/components/Old/Paragraph/Paragraph.stories.tsx +1 -1
  523. package/styled-components/es/examples/typograpy/components/Old/Subtitle/Subtitle.stories.tsx +1 -1
  524. package/styled-components/es/examples/typograpy/components/Old/Underline/Underline.stories.tsx +1 -1
  525. package/styled-components/es/examples/typograpy/components/Text/Text.stories.tsx +1 -1
  526. package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  527. package/types/components/Autocomplete/Autocomplete.types.d.ts +4 -0
  528. package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
@@ -9,7 +9,7 @@ import { Price } from './Price';
9
9
  const currencies = ['rub', 'usd', 'eur', 'inr'];
10
10
 
11
11
  const meta: Meta<typeof Price> = {
12
- title: 'web/Data Display/Price',
12
+ title: 'plasma_web/Price',
13
13
  decorators: [WithTheme],
14
14
  argTypes: {
15
15
  currency: {
@@ -8,7 +8,7 @@ import { Progress } from './Progress';
8
8
  const views = ['default', 'secondary', 'primary', 'accent', 'success', 'warning', 'error'];
9
9
 
10
10
  const meta: Meta<typeof Progress> = {
11
- title: 'web/Overlay/Progress',
11
+ title: 'plasma_web/Progress',
12
12
  component: Progress,
13
13
  decorators: [WithTheme],
14
14
  argTypes: {
@@ -16,7 +16,7 @@ const onFocus = action('onFocus');
16
16
  const onBlur = action('onBlur');
17
17
 
18
18
  const meta: Meta<typeof Radiobox> = {
19
- title: 'web/Data Entry/Radiobox',
19
+ title: 'plasma_web/Radiobox',
20
20
  decorators: [WithTheme],
21
21
  component: Radiobox,
22
22
  argTypes: argTypesFromConfig(mergeConfig(radioboxConfig, config)),
@@ -23,7 +23,7 @@ const views = ['default'];
23
23
  const dividers = ['none', 'dash', 'icon'];
24
24
 
25
25
  const meta: Meta<typeof Range> = {
26
- title: 'web/Data Entry/Range',
26
+ title: 'plasma_web/Range',
27
27
  component: Range,
28
28
  decorators: [WithTheme],
29
29
  argTypes: {
@@ -52,7 +52,7 @@ const getContentRight = (contentRightOption: string, size: Size) => {
52
52
  };
53
53
 
54
54
  const meta: Meta<StorySegmentProps> = {
55
- title: 'web/Data Entry/Segment',
55
+ title: 'plasma_web/Segment',
56
56
  decorators: [WithTheme],
57
57
  component: SegmentGroup,
58
58
  argTypes: {
@@ -20,7 +20,7 @@ const chip = ['default', 'secondary', 'accent'];
20
20
  const variant = ['normal', 'tight'];
21
21
 
22
22
  const meta: Meta<StorySelectProps> = {
23
- title: 'web/Data Entry/Select',
23
+ title: 'plasma_web/Select',
24
24
  decorators: [WithTheme],
25
25
  component: Select,
26
26
  argTypes: {
@@ -10,7 +10,7 @@ import { Body } from '../../../typograpy/components/Body/Body';
10
10
  import { Sheet } from './Sheet';
11
11
 
12
12
  const meta: Meta<typeof Sheet> = {
13
- title: 'web/Overlay/Select',
13
+ title: 'plasma_web/Sheet',
14
14
  decorators: [WithTheme],
15
15
  args: {
16
16
  withBlur: false,
@@ -18,7 +18,7 @@ type StoryRectSkeletonProps = ComponentProps<typeof RectSkeleton>;
18
18
  type BasicButtonProps = ComponentProps<typeof BasicButton>;
19
19
 
20
20
  const meta: Meta = {
21
- title: 'web/Data Display/Skeleton',
21
+ title: 'plasma_web/Skeleton',
22
22
  decorators: [WithTheme],
23
23
  };
24
24
 
@@ -18,7 +18,7 @@ const scaleAligns = ['side', 'bottom'];
18
18
  const orientations: Array<string> = ['vertical', 'horizontal'];
19
19
 
20
20
  const meta: Meta<typeof Slider> = {
21
- title: 'web/Data Entry/Slider',
21
+ title: 'plasma_web/Slider',
22
22
  component: Slider,
23
23
  decorators: [WithTheme],
24
24
  argTypes: {
@@ -10,7 +10,7 @@ import { config } from './Spinner.config';
10
10
  import { Spinner } from './Spinner';
11
11
 
12
12
  const meta: Meta<typeof Spinner> = {
13
- title: 'web/Data Display/Spinner',
13
+ title: 'plasma_web/Spinner',
14
14
  decorators: [WithTheme],
15
15
  component: Spinner,
16
16
  args: {
@@ -10,7 +10,7 @@ import { StepItemProps } from '../../../../components/Steps/ui';
10
10
  import { Steps, mergedConfig } from './Steps';
11
11
 
12
12
  const meta: Meta<typeof Steps> = {
13
- title: 'web/Navigation/Steps',
13
+ title: 'plasma_web/Steps',
14
14
  decorators: [WithTheme],
15
15
  component: Steps,
16
16
  argTypes: {
@@ -14,7 +14,7 @@ import { Switch, SwitchOutline } from './Switch';
14
14
  type SwitchProps = ComponentProps<typeof Switch>;
15
15
 
16
16
  const meta: Meta<SwitchProps> = {
17
- title: 'web/Data Entry/Switch',
17
+ title: 'plasma_web/Switch',
18
18
  decorators: [WithTheme],
19
19
  component: Switch,
20
20
  argTypes: {
@@ -56,7 +56,7 @@ type HorizontalStoryTabsProps = StoryTabsProps & { width: string };
56
56
  type VerticalStoryTabsProps = StoryTabsProps & { height: string };
57
57
 
58
58
  const meta: Meta<StoryTabsProps> = {
59
- title: 'web/Navigation/Tabs',
59
+ title: 'plasma_web/Tabs',
60
60
  component: Tabs,
61
61
  decorators: [WithTheme],
62
62
  argTypes: {
@@ -44,7 +44,7 @@ type StoryTextAreaPropsCustom = {
44
44
  type StoryTextAreaProps = ComponentProps<typeof TextArea> & StoryTextAreaPropsCustom;
45
45
 
46
46
  const meta: Meta<StoryTextAreaProps> = {
47
- title: 'web/Data Entry/TextArea',
47
+ title: 'plasma_web/TextArea',
48
48
  decorators: [WithTheme],
49
49
  component: TextArea,
50
50
  argTypes: {
@@ -42,7 +42,7 @@ const placements: Array<PopoverPlacement> = [
42
42
  ];
43
43
 
44
44
  const meta: Meta<typeof TextField> = {
45
- title: 'web/Data Entry/TextField',
45
+ title: 'plasma_web/TextField',
46
46
  component: TextField,
47
47
  decorators: [WithTheme],
48
48
  argTypes: {
@@ -23,7 +23,7 @@ const shapeValues = ['segmented', 'default'];
23
23
  const stretchingValues = ['auto', 'filled'];
24
24
 
25
25
  const meta: Meta<typeof TextFieldGroup> = {
26
- title: 'web/Data Entry/TextFieldGroup',
26
+ title: 'plasma_web/TextFieldGroup',
27
27
  decorators: [WithTheme],
28
28
  argTypes: {
29
29
  size: {
@@ -17,7 +17,7 @@ import { config } from './Toast.config';
17
17
  import { Toast, ToastController, ToastProvider, useToast } from './Toast';
18
18
 
19
19
  const meta: Meta<typeof ToastController> = {
20
- title: 'web/Overlay/Toast',
20
+ title: 'plasma_web/Toast',
21
21
  decorators: [WithTheme],
22
22
  };
23
23
 
@@ -25,7 +25,7 @@ const ToolbarWrapper = (props: ComponentProps<typeof Toolbar>) => {
25
25
  };
26
26
 
27
27
  const meta: Meta<typeof Toolbar> = {
28
- title: 'web/Overlay/Toolbar',
28
+ title: 'plasma_web/Toolbar',
29
29
  component: ToolbarWrapper,
30
30
  decorators: [WithTheme],
31
31
  argTypes: {
@@ -31,7 +31,7 @@ const placements: Array<PopoverPlacement> = [
31
31
  ];
32
32
 
33
33
  const meta: Meta<TooltipProps> = {
34
- title: 'web/Overlay/Tooltip',
34
+ title: 'plasma_web/Tooltip',
35
35
  decorators: [WithTheme],
36
36
  component: Tooltip,
37
37
  parameters: {
@@ -10,7 +10,7 @@ import { ViewContainer } from './ViewContainer';
10
10
  type StoryViewProps = ComponentProps<typeof ViewContainer>;
11
11
 
12
12
  const meta: Meta<StoryViewProps> = {
13
- title: 'web/Data Display/ViewContainer',
13
+ title: 'plasma_web/ViewContainer',
14
14
  };
15
15
 
16
16
  export default meta;
@@ -9,7 +9,7 @@ import { Body } from './Body';
9
9
  import { config } from './Body.config';
10
10
 
11
11
  const meta: Meta<typeof Body> = {
12
- title: 'Data Display/Typography/Body',
12
+ title: 'typography/Body',
13
13
  decorators: [WithTheme],
14
14
  component: Body,
15
15
  argTypes: argTypesFromConfig(mergeConfig(bodyConfig, config)),
@@ -9,7 +9,7 @@ import { Dspl } from './Dspl';
9
9
  import { config } from './Dspl.config';
10
10
 
11
11
  const meta: Meta<typeof Dspl> = {
12
- title: 'Data Display/Typography/Dspl',
12
+ title: 'typography/Dspl',
13
13
  decorators: [WithTheme],
14
14
  component: Dspl,
15
15
  argTypes: argTypesFromConfig(mergeConfig(dsplConfig, config)),
@@ -9,7 +9,7 @@ import { Heading } from './Heading';
9
9
  import { config } from './Heading.config';
10
10
 
11
11
  const meta: Meta<typeof Heading> = {
12
- title: 'Data Display/Typography/Heading',
12
+ title: 'typography/Heading',
13
13
  decorators: [WithTheme],
14
14
  component: Heading,
15
15
  argTypes: argTypesFromConfig(mergeConfig(dsplConfig, config)),
@@ -9,7 +9,7 @@ import { OldBody } from './Body';
9
9
  import { config } from './Body.config';
10
10
 
11
11
  const meta: Meta<typeof OldBody> = {
12
- title: 'Data Display/Typography/Old/Body',
12
+ title: 'typography/Old/Body',
13
13
  decorators: [WithTheme],
14
14
  component: OldBody,
15
15
  argTypes: argTypesFromConfig(mergeConfig(oldBodyConfig, config)),
@@ -9,7 +9,7 @@ import { Button } from './Button';
9
9
  import { config } from './Button.config';
10
10
 
11
11
  const meta: Meta<typeof Button> = {
12
- title: 'Data Display/Typography/Old/Button',
12
+ title: 'typography/Old/Button',
13
13
  decorators: [WithTheme],
14
14
  component: Button,
15
15
  argTypes: argTypesFromConfig(mergeConfig(buttonTypographyConfig, config)),
@@ -9,7 +9,7 @@ import { Caption } from './Caption';
9
9
  import { config } from './Caption.config';
10
10
 
11
11
  const meta: Meta<typeof Caption> = {
12
- title: 'Data Display/Typography/Old/Caption',
12
+ title: 'typography/Old/Caption',
13
13
  decorators: [WithTheme],
14
14
  component: Caption,
15
15
  argTypes: argTypesFromConfig(mergeConfig(captionConfig, config)),
@@ -9,7 +9,7 @@ import { Display } from './Display';
9
9
  import { config } from './Display.config';
10
10
 
11
11
  const meta: Meta<typeof Display> = {
12
- title: 'Data Display/Typography/Old/Display',
12
+ title: 'typography/Old/Display',
13
13
  decorators: [WithTheme],
14
14
  component: Display,
15
15
  argTypes: argTypesFromConfig(mergeConfig(displayConfig, config)),
@@ -9,7 +9,7 @@ import { Footnote } from './Footnote';
9
9
  import { config } from './Footnote.config';
10
10
 
11
11
  const meta: Meta<typeof Footnote> = {
12
- title: 'Data Display/Typography/Old/Footnote',
12
+ title: 'typography/Old/Footnote',
13
13
  decorators: [WithTheme],
14
14
  component: Footnote,
15
15
  argTypes: argTypesFromConfig(mergeConfig(footnoteConfig, config)),
@@ -9,7 +9,7 @@ import { Headline } from './Headline';
9
9
  import { config } from './Headline.config';
10
10
 
11
11
  const meta: Meta<typeof Headline> = {
12
- title: 'Data Display/Typography/Old/Headline',
12
+ title: 'typography/Old/Headline',
13
13
  decorators: [WithTheme],
14
14
  component: Headline,
15
15
  argTypes: argTypesFromConfig(mergeConfig(headlineConfig, config)),
@@ -9,7 +9,7 @@ import { Paragraph } from './Paragraph';
9
9
  import { config } from './Paragraph.config';
10
10
 
11
11
  const meta: Meta<typeof Paragraph> = {
12
- title: 'Data Display/Typography/Old/Paragraph',
12
+ title: 'typography/Old/Paragraph',
13
13
  decorators: [WithTheme],
14
14
  component: Paragraph,
15
15
  argTypes: argTypesFromConfig(mergeConfig(paragraphConfig, config)),
@@ -9,7 +9,7 @@ import { Subtitle } from './Subtitle';
9
9
  import { config } from './Subtitle.config';
10
10
 
11
11
  const meta: Meta<typeof Subtitle> = {
12
- title: 'Data Display/Typography/Old/Subtitle',
12
+ title: 'typography/Old/Subtitle',
13
13
  decorators: [WithTheme],
14
14
  component: Subtitle,
15
15
  argTypes: argTypesFromConfig(mergeConfig(subtitleConfig, config)),
@@ -9,7 +9,7 @@ import { Underline } from './Underline';
9
9
  import { config } from './Underline.config';
10
10
 
11
11
  const meta: Meta<typeof Underline> = {
12
- title: 'Data Display/Typography/Old/Underline',
12
+ title: 'typography/Old/Underline',
13
13
  decorators: [WithTheme],
14
14
  component: Underline,
15
15
  argTypes: argTypesFromConfig(mergeConfig(underlineConfig, config)),
@@ -9,7 +9,7 @@ import { Text } from './Text';
9
9
  import { config } from './Text.config';
10
10
 
11
11
  const meta: Meta<typeof Text> = {
12
- title: 'Data Display/Typography/Text',
12
+ title: 'typography/Text',
13
13
  decorators: [WithTheme],
14
14
  component: Text,
15
15
  argTypes: argTypesFromConfig(mergeConfig(textConfig, config)),
@@ -10,7 +10,7 @@ import { StyledTextField } from './ui/TextField/TextField.styles.js';
10
10
  import { SuggestionItem } from './ui/SuggestionItem/SuggestionItem.js';
11
11
  import { getPlacements } from '../../utils/getPopoverPlacement.js';
12
12
 
13
- var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
13
+ var _excluded = ["value", "defaultValue", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
14
14
 
15
15
  /**
16
16
  * Компонент Autocomplete. Поле ввода с подсказками в выпадающем списке.
@@ -18,6 +18,7 @@ var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlace
18
18
  var autocompleteRoot = function autocompleteRoot(Root) {
19
19
  return /*#__PURE__*/forwardRef(function (_ref, ref) {
20
20
  var outerValue = _ref.value,
21
+ defaultValue = _ref.defaultValue,
21
22
  onChange = _ref.onChange,
22
23
  suggestions = _ref.suggestions,
23
24
  view = _ref.view,
@@ -105,6 +106,11 @@ var autocompleteRoot = function autocompleteRoot(Root) {
105
106
  type: 'reset'
106
107
  });
107
108
  }, [value]);
109
+ useDidMountEffect(function () {
110
+ if (defaultValue) {
111
+ setInnerValue(defaultValue);
112
+ }
113
+ }, [defaultValue]);
108
114
  return /*#__PURE__*/React.createElement(Root, {
109
115
  view: view,
110
116
  size: size,
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.js","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"sourcesContent":["import React, { forwardRef, useState, useReducer } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport { useDidMountEffect, useOutsideClick } from '../../hooks';\nimport { RootProps } from '../../engines';\nimport { getPlacements } from '../../utils';\n\nimport { focusedReducer } from './reducers/focusedReducer';\nimport { SuggestionItem, StyledTextField } from './ui';\nimport { StyledPopover, Ul, LeftHelper, base, InfiniteLoaderWrapper } from './Autocomplete.styles';\nimport type { AutocompleteProps, SuggestionItemType } from './Autocomplete.types';\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\n\n/**\n * Компонент Autocomplete. Поле ввода с подсказками в выпадающем списке.\n */\nexport const autocompleteRoot = (Root: RootProps<HTMLInputElement, AutocompleteProps>) =>\n forwardRef<HTMLInputElement, AutocompleteProps>(\n (\n {\n value: outerValue,\n onChange,\n suggestions,\n view,\n size,\n labelPlacement,\n disabled,\n readOnly,\n label,\n leftHelper,\n contentLeft,\n contentRight,\n textBefore,\n textAfter,\n onScroll,\n listMaxHeight,\n listWidth,\n portal,\n filter,\n onSuggestionSelect,\n threshold = 2,\n renderList,\n renderListEnd,\n onSearch,\n\n hintText,\n\n ...rest\n },\n ref,\n ) => {\n const [focused, dispatchFocused] = useReducer(focusedReducer, null);\n const [innerValue, setInnerValue] = useState<string | number>('');\n const [isOpen, setIsOpen] = useState(false);\n\n const listId = safeUseId();\n const value = outerValue ?? innerValue;\n\n const helperTextId = safeUseId();\n\n const targetRef = useOutsideClick<HTMLDivElement>(() => {\n setIsOpen(false);\n });\n\n const handleFocus = () => {\n if (value.toString().length >= threshold) {\n setIsOpen(true);\n }\n };\n\n const handleItemClick = (e: SuggestionItemType) => {\n setInnerValue(e.label);\n\n if (onSuggestionSelect) {\n onSuggestionSelect(e);\n }\n\n setIsOpen(false);\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const currentValue = e.target.value;\n\n setInnerValue(currentValue);\n\n if (onChange) {\n onChange(e);\n }\n\n if (currentValue.toString().length >= threshold) {\n setIsOpen(true);\n } else {\n setIsOpen(false);\n }\n };\n\n const defaultFilterCallback = ({ label }: { label: string }) => {\n return label.toLowerCase().includes(value.toString().toLowerCase());\n };\n\n const finalResults = suggestions?.filter(filter || defaultFilterCallback) || [];\n\n const { onKeyDown } = useKeyNavigation({\n isOpen,\n setIsOpen,\n focused,\n dispatchFocused,\n finalResults,\n handleItemClick,\n });\n\n useDidMountEffect(() => {\n dispatchFocused({ type: 'reset' });\n }, [value]);\n\n return (\n <Root view={view} size={size} labelPlacement={labelPlacement} disabled={disabled} readOnly={readOnly}>\n <StyledPopover\n opened={isOpen}\n offset={[0, 0]}\n placement={getPlacements('bottom')}\n isFocusTrapped={false}\n usePortal={Boolean(portal)}\n frame={portal}\n target={\n <StyledTextField\n value={value}\n onChange={handleChange}\n onSearch={focused === null ? onSearch : undefined}\n ref={ref}\n size={size}\n view={view}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n label={label}\n contentLeft={contentLeft}\n contentRight={contentRight}\n textBefore={textBefore}\n textAfter={textAfter}\n onFocus={handleFocus}\n onKeyDown={onKeyDown}\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-controls={listId}\n aria-expanded={isOpen}\n aria-activedescendant={`${listId}/${focused}`}\n aria-describedby={helperTextId}\n hintText={String(hintText || '')}\n {...rest}\n />\n }\n preventOverflow={false}\n ref={targetRef}\n listWidth={listWidth}\n >\n {(renderList && renderList(finalResults)) ||\n (Boolean(finalResults.length) && (\n <Root\n view={view}\n size={size}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n >\n <Ul\n id={listId}\n role=\"listbox\"\n aria-label={label}\n onScroll={onScroll}\n listMaxHeight={listMaxHeight}\n >\n {finalResults.map((suggestion, index) => (\n <SuggestionItem\n key={index}\n item={suggestion}\n onClick={handleItemClick}\n id={`${listId}/${index}`}\n focused={focused === index}\n />\n ))}\n\n {renderListEnd && (\n <InfiniteLoaderWrapper>{renderListEnd()}</InfiniteLoaderWrapper>\n )}\n </Ul>\n </Root>\n ))}\n </StyledPopover>\n\n {/* TODO: Дублируем хелпер для корректного позиционирования списка подсказок */}\n {leftHelper && (\n <LeftHelper id={helperTextId} disabled={disabled} readOnly={readOnly}>\n {leftHelper}\n </LeftHelper>\n )}\n </Root>\n );\n },\n );\n\nexport const autocompleteConfig = {\n name: 'Autocomplete',\n tag: 'div',\n layout: autocompleteRoot,\n base,\n defaults: {\n view: 'default',\n size: 'l',\n labelPlacement: 'outer',\n },\n variations: {\n view: {\n css: '',\n },\n },\n};\n"],"names":["autocompleteRoot","Root","forwardRef","_ref","ref","outerValue","value","onChange","suggestions","view","size","labelPlacement","disabled","readOnly","label","leftHelper","contentLeft","contentRight","textBefore","textAfter","onScroll","listMaxHeight","listWidth","portal","filter","onSuggestionSelect","_ref$threshold","threshold","renderList","renderListEnd","onSearch","hintText","rest","_objectWithoutProperties","_excluded","_useReducer","useReducer","focusedReducer","_useReducer2","_slicedToArray","focused","dispatchFocused","_useState","useState","_useState2","innerValue","setInnerValue","_useState3","_useState4","isOpen","setIsOpen","listId","safeUseId","helperTextId","targetRef","useOutsideClick","handleFocus","toString","length","handleItemClick","e","handleChange","currentValue","target","defaultFilterCallback","_ref2","toLowerCase","includes","finalResults","_useKeyNavigation","useKeyNavigation","onKeyDown","useDidMountEffect","type","React","createElement","StyledPopover","opened","offset","placement","getPlacements","isFocusTrapped","usePortal","Boolean","frame","StyledTextField","_extends","undefined","onFocus","role","concat","String","preventOverflow","Ul","id","map","suggestion","index","SuggestionItem","key","item","onClick","InfiniteLoaderWrapper","LeftHelper","autocompleteConfig","name","tag","layout","base","defaults","variations","css"],"mappings":";;;;;;;;;;;;;;AAaA;AACA;AACA;IACaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,IAAoD,EAAA;AAAA,EAAA,oBACjFC,UAAU,CACN,UAAAC,IAAA,EA+BIC,GAAG,EACF;AAAA,IAAA,IA9BUC,UAAU,GAAAF,IAAA,CAAjBG,KAAK;MACLC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;MACRC,WAAW,GAAAL,IAAA,CAAXK,WAAW;MACXC,IAAI,GAAAN,IAAA,CAAJM,IAAI;MACJC,IAAI,GAAAP,IAAA,CAAJO,IAAI;MACJC,cAAc,GAAAR,IAAA,CAAdQ,cAAc;MACdC,QAAQ,GAAAT,IAAA,CAARS,QAAQ;MACRC,QAAQ,GAAAV,IAAA,CAARU,QAAQ;MACRC,KAAK,GAAAX,IAAA,CAALW,KAAK;MACLC,UAAU,GAAAZ,IAAA,CAAVY,UAAU;MACVC,WAAW,GAAAb,IAAA,CAAXa,WAAW;MACXC,YAAY,GAAAd,IAAA,CAAZc,YAAY;MACZC,UAAU,GAAAf,IAAA,CAAVe,UAAU;MACVC,SAAS,GAAAhB,IAAA,CAATgB,SAAS;MACTC,QAAQ,GAAAjB,IAAA,CAARiB,QAAQ;MACRC,aAAa,GAAAlB,IAAA,CAAbkB,aAAa;MACbC,SAAS,GAAAnB,IAAA,CAATmB,SAAS;MACTC,MAAM,GAAApB,IAAA,CAANoB,MAAM;MACNC,MAAM,GAAArB,IAAA,CAANqB,MAAM;MACNC,kBAAk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,QAAQ,EAAEA,QAAAA;KACvDE,EAAAA,UACO,CAEd,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMyF,kBAAkB,GAAG;AAC9BC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE3G,gBAAgB;AACxB4G,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,QAAQ,EAAE;AACNpG,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,cAAc,EAAE,OAAA;GACnB;AACDmG,EAAAA,UAAU,EAAE;AACRrG,IAAAA,IAAI,EAAE;AACFsG,MAAAA,GAAG,EAAE,EAAA;AACT,KAAA;AACJ,GAAA;AACJ;;;;"}
1
+ {"version":3,"file":"Autocomplete.js","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"sourcesContent":["import React, { forwardRef, useState, useReducer } from 'react';\nimport { safeUseId } from '@salutejs/plasma-core';\n\nimport { useDidMountEffect, useOutsideClick } from '../../hooks';\nimport { RootProps } from '../../engines';\nimport { getPlacements } from '../../utils';\n\nimport { focusedReducer } from './reducers/focusedReducer';\nimport { SuggestionItem, StyledTextField } from './ui';\nimport { StyledPopover, Ul, LeftHelper, base, InfiniteLoaderWrapper } from './Autocomplete.styles';\nimport type { AutocompleteProps, SuggestionItemType } from './Autocomplete.types';\nimport { useKeyNavigation } from './hooks/useKeyboardNavigation';\n\n/**\n * Компонент Autocomplete. Поле ввода с подсказками в выпадающем списке.\n */\nexport const autocompleteRoot = (Root: RootProps<HTMLInputElement, AutocompleteProps>) =>\n forwardRef<HTMLInputElement, AutocompleteProps>(\n (\n {\n value: outerValue,\n defaultValue,\n onChange,\n suggestions,\n view,\n size,\n labelPlacement,\n disabled,\n readOnly,\n label,\n leftHelper,\n contentLeft,\n contentRight,\n textBefore,\n textAfter,\n onScroll,\n listMaxHeight,\n listWidth,\n portal,\n filter,\n onSuggestionSelect,\n threshold = 2,\n renderList,\n renderListEnd,\n onSearch,\n\n hintText,\n\n ...rest\n },\n ref,\n ) => {\n const [focused, dispatchFocused] = useReducer(focusedReducer, null);\n const [innerValue, setInnerValue] = useState<string | number>('');\n const [isOpen, setIsOpen] = useState(false);\n\n const listId = safeUseId();\n const value = outerValue ?? innerValue;\n\n const helperTextId = safeUseId();\n\n const targetRef = useOutsideClick<HTMLDivElement>(() => {\n setIsOpen(false);\n });\n\n const handleFocus = () => {\n if (value.toString().length >= threshold) {\n setIsOpen(true);\n }\n };\n\n const handleItemClick = (e: SuggestionItemType) => {\n setInnerValue(e.label);\n\n if (onSuggestionSelect) {\n onSuggestionSelect(e);\n }\n\n setIsOpen(false);\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const currentValue = e.target.value;\n\n setInnerValue(currentValue);\n\n if (onChange) {\n onChange(e);\n }\n\n if (currentValue.toString().length >= threshold) {\n setIsOpen(true);\n } else {\n setIsOpen(false);\n }\n };\n\n const defaultFilterCallback = ({ label }: { label: string }) => {\n return label.toLowerCase().includes(value.toString().toLowerCase());\n };\n\n const finalResults = suggestions?.filter(filter || defaultFilterCallback) || [];\n\n const { onKeyDown } = useKeyNavigation({\n isOpen,\n setIsOpen,\n focused,\n dispatchFocused,\n finalResults,\n handleItemClick,\n });\n\n useDidMountEffect(() => {\n dispatchFocused({ type: 'reset' });\n }, [value]);\n\n useDidMountEffect(() => {\n if (defaultValue) {\n setInnerValue(defaultValue);\n }\n }, [defaultValue]);\n\n return (\n <Root view={view} size={size} labelPlacement={labelPlacement} disabled={disabled} readOnly={readOnly}>\n <StyledPopover\n opened={isOpen}\n offset={[0, 0]}\n placement={getPlacements('bottom')}\n isFocusTrapped={false}\n usePortal={Boolean(portal)}\n frame={portal}\n target={\n <StyledTextField\n value={value}\n onChange={handleChange}\n onSearch={focused === null ? onSearch : undefined}\n ref={ref}\n size={size}\n view={view}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n label={label}\n contentLeft={contentLeft}\n contentRight={contentRight}\n textBefore={textBefore}\n textAfter={textAfter}\n onFocus={handleFocus}\n onKeyDown={onKeyDown}\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-controls={listId}\n aria-expanded={isOpen}\n aria-activedescendant={`${listId}/${focused}`}\n aria-describedby={helperTextId}\n hintText={String(hintText || '')}\n {...rest}\n />\n }\n preventOverflow={false}\n ref={targetRef}\n listWidth={listWidth}\n >\n {(renderList && renderList(finalResults)) ||\n (Boolean(finalResults.length) && (\n <Root\n view={view}\n size={size}\n labelPlacement={labelPlacement}\n disabled={disabled}\n readOnly={readOnly}\n >\n <Ul\n id={listId}\n role=\"listbox\"\n aria-label={label}\n onScroll={onScroll}\n listMaxHeight={listMaxHeight}\n >\n {finalResults.map((suggestion, index) => (\n <SuggestionItem\n key={index}\n item={suggestion}\n onClick={handleItemClick}\n id={`${listId}/${index}`}\n focused={focused === index}\n />\n ))}\n\n {renderListEnd && (\n <InfiniteLoaderWrapper>{renderListEnd()}</InfiniteLoaderWrapper>\n )}\n </Ul>\n </Root>\n ))}\n </StyledPopover>\n\n {/* TODO: Дублируем хелпер для корректного позиционирования списка подсказок */}\n {leftHelper && (\n <LeftHelper id={helperTextId} disabled={disabled} readOnly={readOnly}>\n {leftHelper}\n </LeftHelper>\n )}\n </Root>\n );\n },\n );\n\nexport const autocompleteConfig = {\n name: 'Autocomplete',\n tag: 'div',\n layout: autocompleteRoot,\n base,\n defaults: {\n view: 'default',\n size: 'l',\n labelPlacement: 'outer',\n },\n variations: {\n view: {\n css: '',\n },\n },\n};\n"],"names":["autocompleteRoot","Root","forwardRef","_ref","ref","outerValue","value","defaultValue","onChange","suggestions","view","size","labelPlacement","disabled","readOnly","label","leftHelper","contentLeft","contentRight","textBefore","textAfter","onScroll","listMaxHeight","listWidth","portal","filter","onSuggestionSelect","_ref$threshold","threshold","renderList","renderListEnd","onSearch","hintText","rest","_objectWithoutProperties","_excluded","_useReducer","useReducer","focusedReducer","_useReducer2","_slicedToArray","focused","dispatchFocused","_useState","useState","_useState2","innerValue","setInnerValue","_useState3","_useState4","isOpen","setIsOpen","listId","safeUseId","helperTextId","targetRef","useOutsideClick","handleFocus","toString","length","handleItemClick","e","handleChange","currentValue","target","defaultFilterCallback","_ref2","toLowerCase","includes","finalResults","_useKeyNavigation","useKeyNavigation","onKeyDown","useDidMountEffect","type","React","createElement","StyledPopover","opened","offset","placement","getPlacements","isFocusTrapped","usePortal","Boolean","frame","StyledTextField","_extends","undefined","onFocus","role","concat","String","preventOverflow","Ul","id","map","suggestion","index","SuggestionItem","key","item","onClick","InfiniteLoaderWrapper","LeftHelper","autocompleteConfig","name","tag","layout","base","defaults","variations","css"],"mappings":";;;;;;;;;;;;;;AAaA;AACA;AACA;IACaA,gBAAgB,GAAG,SAAnBA,gBAAgBA,CAAIC,IAAoD,EAAA;AAAA,EAAA,oBACjFC,UAAU,CACN,UAAAC,IAAA,EAgCIC,GAAG,EACF;AAAA,IAAA,IA/BUC,UAAU,GAAAF,IAAA,CAAjBG,KAAK;MACLC,YAAY,GAAAJ,IAAA,CAAZI,YAAY;MACZC,QAAQ,GAAAL,IAAA,CAARK,QAAQ;MACRC,WAAW,GAAAN,IAAA,CAAXM,WAAW;MACXC,IAAI,GAAAP,IAAA,CAAJO,IAAI;MACJC,IAAI,GAAAR,IAAA,CAAJQ,IAAI;MACJC,cAAc,GAAAT,IAAA,CAAdS,cAAc;MACdC,QAAQ,GAAAV,IAAA,CAARU,QAAQ;MACRC,QAAQ,GAAAX,IAAA,CAARW,QAAQ;MACRC,KAAK,GAAAZ,IAAA,CAALY,KAAK;MACLC,UAAU,GAAAb,IAAA,CAAVa,UAAU;MACVC,WAAW,GAAAd,IAAA,CAAXc,WAAW;MACXC,YAAY,GAAAf,IAAA,CAAZe,YAAY;MACZC,UAAU,GAAAhB,IAAA,CAAVgB,UAAU;MACVC,SAAS,GAAAjB,IAAA,CAATiB,SAAS;MACTC,QAA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uC,MAAA,CAAIO,KAAK,CAAG;QACzBzD,OAAO,EAAEA,OAAO,KAAKyD,KAAAA;AAAM,OAC9B,CAAC,CAAA;KACL,CAAC,EAEDpE,aAAa,iBACV6C,KAAA,CAAAC,aAAA,CAAC2B,qBAAqB,EAAA,IAAA,EAAEzE,aAAa,EAA0B,CAEnE,CACF,CAEH,CAAC,EAGfd,UAAU,iBACP2D,KAAA,CAAAC,aAAA,CAAC4B,UAAU,EAAA;AAACT,MAAAA,EAAE,EAAEzC,YAAa;AAACzC,MAAAA,QAAQ,EAAEA,QAAS;AAACC,MAAAA,QAAQ,EAAEA,QAAAA;KACvDE,EAAAA,UACO,CAEd,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMyF,kBAAkB,GAAG;AAC9BC,EAAAA,IAAI,EAAE,cAAc;AACpBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAE5G,gBAAgB;AACxB6G,EAAAA,IAAI,EAAJA,IAAI;AACJC,EAAAA,QAAQ,EAAE;AACNpG,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,cAAc,EAAE,OAAA;GACnB;AACDmG,EAAAA,UAAU,EAAE;AACRrG,IAAAA,IAAI,EAAE;AACFsG,MAAAA,GAAG,EAAE,EAAA;AACT,KAAA;AACJ,GAAA;AACJ;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/plasma-new-hope",
3
- "version": "0.195.2-canary.1580.11946918297.0",
3
+ "version": "0.196.0-canary.1574.11948690681.0",
4
4
  "description": "Salute Design System blueprint",
5
5
  "main": "cjs/index.js",
6
6
  "module": "es/index.js",
@@ -129,5 +129,5 @@
129
129
  "sideEffects": [
130
130
  "*.css"
131
131
  ],
132
- "gitHead": "6e71c0fda87166c0213d6bb5020b0cc74be464a7"
132
+ "gitHead": "89d4f0045ac161635514bee7c82ac3d4c88aef4a"
133
133
  }
@@ -13,7 +13,7 @@ var _focusedReducer = /*#__PURE__*/require("./reducers/focusedReducer");
13
13
  var _ui = /*#__PURE__*/require("./ui");
14
14
  var _Autocomplete = /*#__PURE__*/require("./Autocomplete.styles");
15
15
  var _useKeyboardNavigation = /*#__PURE__*/require("./hooks/useKeyboardNavigation");
16
- var _excluded = ["value", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
16
+ var _excluded = ["value", "defaultValue", "onChange", "suggestions", "view", "size", "labelPlacement", "disabled", "readOnly", "label", "leftHelper", "contentLeft", "contentRight", "textBefore", "textAfter", "onScroll", "listMaxHeight", "listWidth", "portal", "filter", "onSuggestionSelect", "threshold", "renderList", "renderListEnd", "onSearch", "hintText"];
17
17
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
18
18
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
19
19
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -31,6 +31,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
31
31
  var autocompleteRoot = exports.autocompleteRoot = function autocompleteRoot(Root) {
32
32
  return /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
33
33
  var outerValue = _ref.value,
34
+ defaultValue = _ref.defaultValue,
34
35
  onChange = _ref.onChange,
35
36
  suggestions = _ref.suggestions,
36
37
  view = _ref.view,
@@ -118,6 +119,11 @@ var autocompleteRoot = exports.autocompleteRoot = function autocompleteRoot(Root
118
119
  type: 'reset'
119
120
  });
120
121
  }, [value]);
122
+ (0, _hooks.useDidMountEffect)(function () {
123
+ if (defaultValue) {
124
+ setInnerValue(defaultValue);
125
+ }
126
+ }, [defaultValue]);
121
127
  return /*#__PURE__*/_react["default"].createElement(Root, {
122
128
  view: view,
123
129
  size: size,
@@ -24,7 +24,7 @@ type AccordionItemCustomProps = {
24
24
  type AccordionProps = ComponentProps<typeof Accordion> & AccordionItemCustomProps;
25
25
 
26
26
  const meta: Meta<AccordionProps> = {
27
- title: 'b2c/Data Display/Accordion',
27
+ title: 'plasma_b2c/Accordion',
28
28
  decorators: [WithTheme],
29
29
  component: Accordion,
30
30
  args: {
@@ -47,7 +47,7 @@ type StoryAttachProps = ComponentProps<typeof Attach> & {
47
47
  };
48
48
 
49
49
  const meta: Meta<StoryAttachProps> = {
50
- title: 'b2c/Data Entry/Attach',
50
+ title: 'plasma_b2c/Attach',
51
51
  decorators: [WithTheme],
52
52
  component: Attach,
53
53
  argTypes: {
@@ -70,7 +70,7 @@ type StoryProps = ComponentProps<typeof Autocomplete> & {
70
70
  };
71
71
 
72
72
  const meta: Meta<StoryProps> = {
73
- title: 'b2c/Data Entry/Autocomplete',
73
+ title: 'plasma_b2c/Autocomplete',
74
74
  decorators: [WithTheme],
75
75
  component: Autocomplete,
76
76
  argTypes: {
@@ -7,7 +7,7 @@ import { argTypesFromConfig, WithTheme } from '../../../_helpers';
7
7
  import { Avatar, mergedConfig } from './Avatar';
8
8
 
9
9
  const meta: Meta<typeof Avatar> = {
10
- title: 'b2c/Data Display/Avatar',
10
+ title: 'plasma_b2c/Avatar',
11
11
  decorators: [WithTheme],
12
12
  component: Avatar,
13
13
  argTypes: {
@@ -11,7 +11,7 @@ type Story = StoryObj<ComponentProps<typeof AvatarGroup>>;
11
11
  type Avatar = ComponentProps<typeof Avatar>;
12
12
 
13
13
  const meta: Meta<typeof AvatarGroup> = {
14
- title: 'b2c/Data Display/AvatarGroup',
14
+ title: 'plasma_b2c/AvatarGroup',
15
15
  decorators: [WithTheme],
16
16
  component: AvatarGroup,
17
17
  };
@@ -7,7 +7,7 @@ import { WithTheme } from '../../../_helpers';
7
7
  import { Badge } from './Badge';
8
8
 
9
9
  const meta: Meta<typeof Badge> = {
10
- title: 'b2c/Data Display/Badge',
10
+ title: 'plasma_b2c/Badge',
11
11
  component: Badge,
12
12
  decorators: [WithTheme],
13
13
  argTypes: {
@@ -13,7 +13,7 @@ import { Breadcrumbs } from './Breadcrumbs';
13
13
  type BreadcrumbsProps = ComponentProps<typeof Breadcrumbs>;
14
14
 
15
15
  const meta: Meta<BreadcrumbsProps> = {
16
- title: 'b2c/Navigation/Breadcrumbs',
16
+ title: 'plasma_b2c/Breadcrumbs',
17
17
  decorators: [WithTheme],
18
18
  component: Breadcrumbs,
19
19
  args: {
@@ -24,7 +24,7 @@ const pinValues = [
24
24
  const contentPlacinValues = ['default', 'relaxed'];
25
25
 
26
26
  const meta: Meta<typeof Button> = {
27
- title: 'b2c/Data Entry/Button',
27
+ title: 'plasma_b2c/Button',
28
28
  decorators: [WithTheme],
29
29
  component: Button,
30
30
  args: {
@@ -19,7 +19,7 @@ const shapeValues = ['segmented', 'default'];
19
19
  const stretchingValues = ['auto', 'filled'];
20
20
 
21
21
  const meta: Meta<typeof ButtonGroup> = {
22
- title: 'b2c/Data Entry/ButtonGroup',
22
+ title: 'plasma_b2c/ButtonGroup',
23
23
  decorators: [WithTheme],
24
24
  argTypes: {
25
25
  size: {
@@ -13,7 +13,7 @@ import { Calendar, CalendarBase, CalendarBaseRange, CalendarDouble, CalendarDoub
13
13
  const onChangeValue = action('onChangeValue');
14
14
 
15
15
  const meta: Meta<typeof CalendarBase> = {
16
- title: 'b2c/Data Entry/Calendar',
16
+ title: 'plasma_b2c/Calendar',
17
17
  decorators: [WithTheme],
18
18
  argTypes: {
19
19
  min: {
@@ -33,7 +33,7 @@ const getSize = (size: SizesCell): SizesAvatar => {
33
33
  };
34
34
 
35
35
  const meta: Meta<typeof Cell> = {
36
- title: 'b2c/Data Display/Cell',
36
+ title: 'plasma_b2c/Cell',
37
37
  decorators: [WithTheme],
38
38
  argTypes: {
39
39
  size: {