@salutejs/plasma-new-hope 0.133.2-canary.1396.10611246152.0 → 0.134.0-canary.1352.10609199302.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (729) hide show
  1. package/cjs/components/Autocomplete/Autocomplete.css +11 -9
  2. package/cjs/components/DatePicker/RangeDate/RangeDate.css +11 -9
  3. package/cjs/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +11 -9
  4. package/cjs/components/DatePicker/SingleDate/SingleDate.css +11 -9
  5. package/cjs/components/Range/Range.css +11 -9
  6. package/cjs/components/Slider/Slider.css +11 -9
  7. package/cjs/components/Slider/components/Double/Double.css +11 -9
  8. package/cjs/components/TextArea/TextArea.js +28 -7
  9. package/cjs/components/TextArea/TextArea.js.map +1 -1
  10. package/cjs/components/TextArea/TextArea.styles.js +47 -35
  11. package/cjs/components/TextArea/TextArea.styles.js.map +1 -1
  12. package/cjs/components/TextArea/TextArea.styles_av6xxy.css +11 -0
  13. package/cjs/components/TextArea/TextArea.tokens.js +8 -1
  14. package/cjs/components/TextArea/TextArea.tokens.js.map +1 -1
  15. package/cjs/components/TextArea/variations/_required/base.js +9 -0
  16. package/cjs/components/TextArea/variations/_required/base.js.map +1 -0
  17. package/cjs/components/TextArea/variations/_required/base_x642ct.css +1 -0
  18. package/cjs/components/TextField/TextField.js +32 -9
  19. package/cjs/components/TextField/TextField.js.map +1 -1
  20. package/cjs/components/TextField/TextField.styles.js +13 -1
  21. package/cjs/components/TextField/TextField.styles.js.map +1 -1
  22. package/{es/components/TextField/TextField.styles_9fkr1l.css → cjs/components/TextField/TextField.styles_1lfge6n.css} +3 -1
  23. package/cjs/components/TextField/TextField.tokens.js +8 -1
  24. package/cjs/components/TextField/TextField.tokens.js.map +1 -1
  25. package/cjs/components/TextField/TextField_1lzb2r1.css +1 -0
  26. package/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  27. package/cjs/components/TextField/variations/_label-placement/base.js.map +1 -1
  28. package/cjs/components/TextField/variations/_label-placement/base_1yaoy2k.css +1 -0
  29. package/cjs/components/TextField/variations/_required/base.js +9 -0
  30. package/cjs/components/TextField/variations/_required/base.js.map +1 -0
  31. package/cjs/components/TextField/variations/_required/base_x642ct.css +1 -0
  32. package/cjs/index.css +22 -18
  33. package/emotion/cjs/components/TextArea/TextArea.js +29 -8
  34. package/emotion/cjs/components/TextArea/TextArea.styles.js +27 -19
  35. package/emotion/cjs/components/TextArea/TextArea.template-doc.mdx +29 -3
  36. package/emotion/cjs/components/TextArea/TextArea.tokens.js +8 -1
  37. package/emotion/cjs/components/TextArea/variations/_required/base.js +8 -0
  38. package/emotion/cjs/components/TextArea/variations/_required/tokens.json +1 -0
  39. package/emotion/cjs/components/TextArea/variations/_size/tokens.json +7 -1
  40. package/emotion/cjs/components/TextField/TextField.js +36 -13
  41. package/emotion/cjs/components/TextField/TextField.styles.js +37 -21
  42. package/emotion/cjs/components/TextField/TextField.template-doc.mdx +27 -1
  43. package/emotion/cjs/components/TextField/TextField.tokens.js +8 -1
  44. package/emotion/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  45. package/emotion/cjs/components/TextField/variations/_required/base.js +8 -0
  46. package/emotion/cjs/components/TextField/variations/_required/tokens.json +1 -0
  47. package/emotion/cjs/components/TextField/variations/_size/tokens.json +6 -0
  48. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +12 -9
  49. package/emotion/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -0
  50. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +15 -12
  51. package/emotion/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -1
  52. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +12 -9
  53. package/emotion/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +10 -0
  54. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.config.js +15 -12
  55. package/emotion/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
  56. package/emotion/cjs/examples/sds_engineer/components/Avatar/Avatar.config.js +29 -0
  57. package/emotion/cjs/examples/sds_engineer/components/Avatar/Avatar.js +11 -0
  58. package/emotion/cjs/examples/sds_engineer/components/Avatar/Avatar.stories.tsx +65 -0
  59. package/emotion/cjs/examples/sds_engineer/components/AvatarGroup/AvatarGroup.js +10 -0
  60. package/emotion/cjs/examples/sds_engineer/components/AvatarGroup/AvatarGroup.stories.tsx +73 -0
  61. package/emotion/cjs/examples/sds_engineer/components/Badge/Badge.config.js +36 -0
  62. package/emotion/cjs/examples/sds_engineer/components/Badge/Badge.js +11 -0
  63. package/emotion/cjs/examples/sds_engineer/components/Badge/Badge.stories.tsx +56 -0
  64. package/emotion/cjs/examples/sds_engineer/components/Button/Button.config.js +51 -0
  65. package/emotion/cjs/examples/sds_engineer/components/Button/Button.js +11 -0
  66. package/emotion/cjs/examples/sds_engineer/components/Button/Button.stories.tsx +117 -0
  67. package/emotion/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +56 -0
  68. package/emotion/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.js +11 -0
  69. package/emotion/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +118 -0
  70. package/emotion/cjs/examples/sds_engineer/components/Calendar/Calendar.js +23 -0
  71. package/emotion/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +283 -0
  72. package/emotion/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +25 -0
  73. package/emotion/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +25 -0
  74. package/emotion/cjs/examples/sds_engineer/components/Checkbox/Checkbox.config.js +41 -0
  75. package/emotion/cjs/examples/sds_engineer/components/Checkbox/Checkbox.js +11 -0
  76. package/emotion/cjs/examples/sds_engineer/components/Checkbox/Checkbox.stories.tsx +167 -0
  77. package/emotion/cjs/examples/sds_engineer/components/Chip/Chip.config.js +28 -0
  78. package/emotion/cjs/examples/sds_engineer/components/Chip/Chip.js +11 -0
  79. package/emotion/cjs/examples/sds_engineer/components/Chip/Chip.stories.tsx +37 -0
  80. package/emotion/cjs/examples/sds_engineer/components/Counter/Counter.config.js +29 -0
  81. package/emotion/cjs/examples/sds_engineer/components/Counter/Counter.js +11 -0
  82. package/emotion/cjs/examples/sds_engineer/components/Counter/Counter.stories.tsx +41 -0
  83. package/emotion/cjs/examples/sds_engineer/components/Divider/Divider.config.js +31 -0
  84. package/emotion/cjs/examples/sds_engineer/components/Divider/Divider.js +11 -0
  85. package/emotion/cjs/examples/sds_engineer/components/Divider/Divider.stories.tsx +61 -0
  86. package/emotion/cjs/examples/sds_engineer/components/Drawer/Drawer.config.js +26 -0
  87. package/emotion/cjs/examples/sds_engineer/components/Drawer/Drawer.js +18 -0
  88. package/emotion/cjs/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +218 -0
  89. package/emotion/cjs/examples/sds_engineer/components/Grid/Grid.config.js +22 -0
  90. package/emotion/cjs/examples/sds_engineer/components/Grid/Grid.js +23 -0
  91. package/emotion/cjs/examples/sds_engineer/components/Grid/Grid.stories.tsx +122 -0
  92. package/emotion/cjs/examples/sds_engineer/components/Image/Image.js +10 -0
  93. package/emotion/cjs/examples/sds_engineer/components/Image/Image.stories.tsx +48 -0
  94. package/emotion/cjs/examples/sds_engineer/components/Link/Link.config.js +121 -0
  95. package/emotion/cjs/examples/sds_engineer/components/Link/Link.js +11 -0
  96. package/emotion/cjs/examples/sds_engineer/components/Link/Link.stories.tsx +30 -0
  97. package/emotion/cjs/examples/sds_engineer/components/Modal/Modal.config.js +18 -0
  98. package/emotion/cjs/examples/sds_engineer/components/Modal/Modal.js +17 -0
  99. package/emotion/cjs/examples/sds_engineer/components/Modal/Modal.stories.tsx +208 -0
  100. package/emotion/cjs/examples/sds_engineer/components/Notification/Notification.config.js +25 -0
  101. package/emotion/cjs/examples/sds_engineer/components/Notification/Notification.js +29 -0
  102. package/emotion/cjs/examples/sds_engineer/components/Notification/Notification.stories.tsx +159 -0
  103. package/emotion/cjs/examples/sds_engineer/components/Overlay/Overlay.stories.tsx +79 -0
  104. package/emotion/cjs/examples/sds_engineer/components/Panel/Panel.config.js +27 -0
  105. package/emotion/cjs/examples/sds_engineer/components/Panel/Panel.js +18 -0
  106. package/emotion/cjs/examples/sds_engineer/components/Panel/Panel.stories.tsx +148 -0
  107. package/emotion/cjs/examples/sds_engineer/components/Popover/Popover.config.js +18 -0
  108. package/emotion/cjs/examples/sds_engineer/components/Popover/Popover.js +11 -0
  109. package/emotion/cjs/examples/sds_engineer/components/Popover/Popover.stories.tsx +117 -0
  110. package/emotion/cjs/examples/sds_engineer/components/Popup/Popup.js +28 -0
  111. package/emotion/cjs/examples/sds_engineer/components/Popup/Popup.stories.tsx +179 -0
  112. package/emotion/cjs/examples/sds_engineer/components/Progress/Progress.config.js +28 -0
  113. package/emotion/cjs/examples/sds_engineer/components/Progress/Progress.js +11 -0
  114. package/emotion/cjs/examples/sds_engineer/components/Progress/Progress.stories.tsx +33 -0
  115. package/emotion/cjs/examples/sds_engineer/components/Radiobox/Radiobox.config.js +42 -0
  116. package/emotion/cjs/examples/sds_engineer/components/Radiobox/Radiobox.js +11 -0
  117. package/emotion/cjs/examples/sds_engineer/components/Radiobox/Radiobox.stories.tsx +134 -0
  118. package/emotion/cjs/examples/sds_engineer/components/Segment/Segment.js +14 -0
  119. package/emotion/cjs/examples/sds_engineer/components/Segment/Segment.stories.tsx +95 -0
  120. package/emotion/cjs/examples/sds_engineer/components/Segment/SegmentGroup.config.js +35 -0
  121. package/emotion/cjs/examples/sds_engineer/components/Segment/SegmentItem.config.js +33 -0
  122. package/emotion/cjs/examples/sds_engineer/components/Skeleton/LineSkeleton.config.js +34 -0
  123. package/emotion/cjs/examples/sds_engineer/components/Skeleton/Skeleton.js +25 -0
  124. package/emotion/cjs/examples/sds_engineer/components/Skeleton/Skeleton.stories.tsx +90 -0
  125. package/emotion/cjs/examples/sds_engineer/components/Spinner/Spinner.config.js +31 -0
  126. package/emotion/cjs/examples/sds_engineer/components/Spinner/Spinner.js +11 -0
  127. package/emotion/cjs/examples/sds_engineer/components/Spinner/Spinner.stories.tsx +53 -0
  128. package/emotion/cjs/examples/sds_engineer/components/Switch/Switch.config.js +36 -0
  129. package/emotion/cjs/examples/sds_engineer/components/Switch/Switch.js +11 -0
  130. package/emotion/cjs/examples/sds_engineer/components/Switch/Switch.stories.tsx +61 -0
  131. package/emotion/cjs/examples/sds_engineer/components/Tabs/TabItem.config.js +39 -0
  132. package/emotion/cjs/examples/sds_engineer/components/Tabs/TabItem.js +11 -0
  133. package/emotion/cjs/examples/sds_engineer/components/Tabs/Tabs.config.js +42 -0
  134. package/emotion/cjs/examples/sds_engineer/components/Tabs/Tabs.js +11 -0
  135. package/emotion/cjs/examples/sds_engineer/components/Tabs/Tabs.stories.tsx +262 -0
  136. package/emotion/cjs/examples/sds_engineer/components/Tabs/TabsController.js +10 -0
  137. package/emotion/cjs/examples/sds_engineer/components/TextArea/TextArea.config.js +28 -0
  138. package/emotion/cjs/examples/sds_engineer/components/TextArea/TextArea.js +11 -0
  139. package/emotion/cjs/examples/sds_engineer/components/TextArea/TextArea.stories.tsx +66 -0
  140. package/emotion/cjs/examples/sds_engineer/components/TextField/TextField.config.js +39 -0
  141. package/emotion/cjs/examples/sds_engineer/components/TextField/TextField.js +11 -0
  142. package/emotion/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx +171 -0
  143. package/emotion/cjs/examples/sds_engineer/components/Toast/Toast.config.js +27 -0
  144. package/emotion/cjs/examples/sds_engineer/components/Toast/Toast.js +19 -0
  145. package/emotion/cjs/examples/sds_engineer/components/Toast/Toast.stories.tsx +223 -0
  146. package/emotion/cjs/examples/sds_engineer/components/Toolbar/Toolbar.config.js +25 -0
  147. package/emotion/cjs/examples/sds_engineer/components/Toolbar/Toolbar.js +17 -0
  148. package/emotion/cjs/examples/sds_engineer/components/Toolbar/Toolbar.stories.tsx +64 -0
  149. package/emotion/cjs/examples/sds_engineer/components/Tooltip/Tooltip.config.js +22 -0
  150. package/emotion/cjs/examples/sds_engineer/components/Tooltip/Tooltip.js +11 -0
  151. package/emotion/cjs/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +205 -0
  152. package/emotion/cjs/examples/themes/index.js +3 -1
  153. package/emotion/cjs/examples/themes/sds_engineer.module.css +373 -0
  154. package/emotion/es/components/TextArea/TextArea.js +30 -9
  155. package/emotion/es/components/TextArea/TextArea.styles.js +26 -18
  156. package/emotion/es/components/TextArea/TextArea.template-doc.mdx +29 -3
  157. package/emotion/es/components/TextArea/TextArea.tokens.js +8 -1
  158. package/emotion/es/components/TextArea/variations/_required/base.js +2 -0
  159. package/emotion/es/components/TextArea/variations/_required/tokens.json +1 -0
  160. package/emotion/es/components/TextArea/variations/_size/tokens.json +7 -1
  161. package/emotion/es/components/TextField/TextField.js +35 -12
  162. package/emotion/es/components/TextField/TextField.styles.js +36 -20
  163. package/emotion/es/components/TextField/TextField.template-doc.mdx +27 -1
  164. package/emotion/es/components/TextField/TextField.tokens.js +8 -1
  165. package/emotion/es/components/TextField/variations/_label-placement/base.js +1 -1
  166. package/emotion/es/components/TextField/variations/_required/base.js +2 -0
  167. package/emotion/es/components/TextField/variations/_required/tokens.json +1 -0
  168. package/emotion/es/components/TextField/variations/_size/tokens.json +6 -0
  169. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +12 -9
  170. package/emotion/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -0
  171. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.config.js +15 -12
  172. package/emotion/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -1
  173. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.config.js +12 -9
  174. package/emotion/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +10 -0
  175. package/emotion/es/examples/plasma_web/components/TextField/TextField.config.js +15 -12
  176. package/emotion/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
  177. package/emotion/es/examples/sds_engineer/components/Avatar/Avatar.config.js +23 -0
  178. package/emotion/es/examples/sds_engineer/components/Avatar/Avatar.js +5 -0
  179. package/emotion/es/examples/sds_engineer/components/Avatar/Avatar.stories.tsx +65 -0
  180. package/emotion/es/examples/sds_engineer/components/AvatarGroup/AvatarGroup.js +4 -0
  181. package/emotion/es/examples/sds_engineer/components/AvatarGroup/AvatarGroup.stories.tsx +73 -0
  182. package/emotion/es/examples/sds_engineer/components/Badge/Badge.config.js +30 -0
  183. package/emotion/es/examples/sds_engineer/components/Badge/Badge.js +5 -0
  184. package/emotion/es/examples/sds_engineer/components/Badge/Badge.stories.tsx +56 -0
  185. package/emotion/es/examples/sds_engineer/components/Button/Button.config.js +45 -0
  186. package/emotion/es/examples/sds_engineer/components/Button/Button.js +5 -0
  187. package/emotion/es/examples/sds_engineer/components/Button/Button.stories.tsx +117 -0
  188. package/emotion/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +50 -0
  189. package/emotion/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.js +5 -0
  190. package/emotion/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +118 -0
  191. package/emotion/es/examples/sds_engineer/components/Calendar/Calendar.js +17 -0
  192. package/emotion/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +283 -0
  193. package/emotion/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +19 -0
  194. package/emotion/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +19 -0
  195. package/emotion/es/examples/sds_engineer/components/Checkbox/Checkbox.config.js +35 -0
  196. package/emotion/es/examples/sds_engineer/components/Checkbox/Checkbox.js +5 -0
  197. package/emotion/es/examples/sds_engineer/components/Checkbox/Checkbox.stories.tsx +167 -0
  198. package/emotion/es/examples/sds_engineer/components/Chip/Chip.config.js +22 -0
  199. package/emotion/es/examples/sds_engineer/components/Chip/Chip.js +5 -0
  200. package/emotion/es/examples/sds_engineer/components/Chip/Chip.stories.tsx +37 -0
  201. package/emotion/es/examples/sds_engineer/components/Counter/Counter.config.js +23 -0
  202. package/emotion/es/examples/sds_engineer/components/Counter/Counter.js +5 -0
  203. package/emotion/es/examples/sds_engineer/components/Counter/Counter.stories.tsx +41 -0
  204. package/emotion/es/examples/sds_engineer/components/Divider/Divider.config.js +25 -0
  205. package/emotion/es/examples/sds_engineer/components/Divider/Divider.js +5 -0
  206. package/emotion/es/examples/sds_engineer/components/Divider/Divider.stories.tsx +61 -0
  207. package/emotion/es/examples/sds_engineer/components/Drawer/Drawer.config.js +20 -0
  208. package/emotion/es/examples/sds_engineer/components/Drawer/Drawer.js +12 -0
  209. package/emotion/es/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +218 -0
  210. package/emotion/es/examples/sds_engineer/components/Grid/Grid.config.js +16 -0
  211. package/emotion/es/examples/sds_engineer/components/Grid/Grid.js +6 -0
  212. package/emotion/es/examples/sds_engineer/components/Grid/Grid.stories.tsx +122 -0
  213. package/emotion/es/examples/sds_engineer/components/Image/Image.js +4 -0
  214. package/emotion/es/examples/sds_engineer/components/Image/Image.stories.tsx +48 -0
  215. package/emotion/es/examples/sds_engineer/components/Link/Link.config.js +115 -0
  216. package/emotion/es/examples/sds_engineer/components/Link/Link.js +5 -0
  217. package/emotion/es/examples/sds_engineer/components/Link/Link.stories.tsx +30 -0
  218. package/emotion/es/examples/sds_engineer/components/Modal/Modal.config.js +12 -0
  219. package/emotion/es/examples/sds_engineer/components/Modal/Modal.js +6 -0
  220. package/emotion/es/examples/sds_engineer/components/Modal/Modal.stories.tsx +208 -0
  221. package/emotion/es/examples/sds_engineer/components/Notification/Notification.config.js +19 -0
  222. package/emotion/es/examples/sds_engineer/components/Notification/Notification.js +16 -0
  223. package/emotion/es/examples/sds_engineer/components/Notification/Notification.stories.tsx +159 -0
  224. package/emotion/es/examples/sds_engineer/components/Overlay/Overlay.stories.tsx +79 -0
  225. package/emotion/es/examples/sds_engineer/components/Panel/Panel.config.js +21 -0
  226. package/emotion/es/examples/sds_engineer/components/Panel/Panel.js +12 -0
  227. package/emotion/es/examples/sds_engineer/components/Panel/Panel.stories.tsx +148 -0
  228. package/emotion/es/examples/sds_engineer/components/Popover/Popover.config.js +12 -0
  229. package/emotion/es/examples/sds_engineer/components/Popover/Popover.js +5 -0
  230. package/emotion/es/examples/sds_engineer/components/Popover/Popover.stories.tsx +117 -0
  231. package/emotion/es/examples/sds_engineer/components/Popup/Popup.js +5 -0
  232. package/emotion/es/examples/sds_engineer/components/Popup/Popup.stories.tsx +179 -0
  233. package/emotion/es/examples/sds_engineer/components/Progress/Progress.config.js +22 -0
  234. package/emotion/es/examples/sds_engineer/components/Progress/Progress.js +5 -0
  235. package/emotion/es/examples/sds_engineer/components/Progress/Progress.stories.tsx +33 -0
  236. package/emotion/es/examples/sds_engineer/components/Radiobox/Radiobox.config.js +36 -0
  237. package/emotion/es/examples/sds_engineer/components/Radiobox/Radiobox.js +5 -0
  238. package/emotion/es/examples/sds_engineer/components/Radiobox/Radiobox.stories.tsx +134 -0
  239. package/emotion/es/examples/sds_engineer/components/Segment/Segment.js +8 -0
  240. package/emotion/es/examples/sds_engineer/components/Segment/Segment.stories.tsx +95 -0
  241. package/emotion/es/examples/sds_engineer/components/Segment/SegmentGroup.config.js +29 -0
  242. package/emotion/es/examples/sds_engineer/components/Segment/SegmentItem.config.js +27 -0
  243. package/emotion/es/examples/sds_engineer/components/Skeleton/LineSkeleton.config.js +28 -0
  244. package/emotion/es/examples/sds_engineer/components/Skeleton/Skeleton.js +7 -0
  245. package/emotion/es/examples/sds_engineer/components/Skeleton/Skeleton.stories.tsx +90 -0
  246. package/emotion/es/examples/sds_engineer/components/Spinner/Spinner.config.js +25 -0
  247. package/emotion/es/examples/sds_engineer/components/Spinner/Spinner.js +5 -0
  248. package/emotion/es/examples/sds_engineer/components/Spinner/Spinner.stories.tsx +53 -0
  249. package/emotion/es/examples/sds_engineer/components/Switch/Switch.config.js +30 -0
  250. package/emotion/es/examples/sds_engineer/components/Switch/Switch.js +5 -0
  251. package/emotion/es/examples/sds_engineer/components/Switch/Switch.stories.tsx +61 -0
  252. package/emotion/es/examples/sds_engineer/components/Tabs/TabItem.config.js +33 -0
  253. package/emotion/es/examples/sds_engineer/components/Tabs/TabItem.js +5 -0
  254. package/emotion/es/examples/sds_engineer/components/Tabs/Tabs.config.js +36 -0
  255. package/emotion/es/examples/sds_engineer/components/Tabs/Tabs.js +5 -0
  256. package/emotion/es/examples/sds_engineer/components/Tabs/Tabs.stories.tsx +262 -0
  257. package/emotion/es/examples/sds_engineer/components/Tabs/TabsController.js +4 -0
  258. package/emotion/es/examples/sds_engineer/components/TextArea/TextArea.config.js +22 -0
  259. package/emotion/es/examples/sds_engineer/components/TextArea/TextArea.js +5 -0
  260. package/emotion/es/examples/sds_engineer/components/TextArea/TextArea.stories.tsx +66 -0
  261. package/emotion/es/examples/sds_engineer/components/TextField/TextField.config.js +33 -0
  262. package/emotion/es/examples/sds_engineer/components/TextField/TextField.js +5 -0
  263. package/emotion/es/examples/sds_engineer/components/TextField/TextField.stories.tsx +171 -0
  264. package/emotion/es/examples/sds_engineer/components/Toast/Toast.config.js +21 -0
  265. package/emotion/es/examples/sds_engineer/components/Toast/Toast.js +8 -0
  266. package/emotion/es/examples/sds_engineer/components/Toast/Toast.stories.tsx +223 -0
  267. package/emotion/es/examples/sds_engineer/components/Toolbar/Toolbar.config.js +19 -0
  268. package/emotion/es/examples/sds_engineer/components/Toolbar/Toolbar.js +11 -0
  269. package/emotion/es/examples/sds_engineer/components/Toolbar/Toolbar.stories.tsx +64 -0
  270. package/emotion/es/examples/sds_engineer/components/Tooltip/Tooltip.config.js +16 -0
  271. package/emotion/es/examples/sds_engineer/components/Tooltip/Tooltip.js +5 -0
  272. package/emotion/es/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +205 -0
  273. package/emotion/es/examples/themes/index.js +3 -1
  274. package/emotion/es/examples/themes/sds_engineer.module.css +373 -0
  275. package/es/components/Autocomplete/Autocomplete.css +11 -9
  276. package/es/components/DatePicker/RangeDate/RangeDate.css +11 -9
  277. package/es/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.css +11 -9
  278. package/es/components/DatePicker/SingleDate/SingleDate.css +11 -9
  279. package/es/components/Range/Range.css +11 -9
  280. package/es/components/Slider/Slider.css +11 -9
  281. package/es/components/Slider/components/Double/Double.css +11 -9
  282. package/es/components/TextArea/TextArea.js +29 -8
  283. package/es/components/TextArea/TextArea.js.map +1 -1
  284. package/es/components/TextArea/TextArea.styles.js +46 -36
  285. package/es/components/TextArea/TextArea.styles.js.map +1 -1
  286. package/es/components/TextArea/TextArea.styles_av6xxy.css +11 -0
  287. package/es/components/TextArea/TextArea.tokens.js +8 -1
  288. package/es/components/TextArea/TextArea.tokens.js.map +1 -1
  289. package/es/components/TextArea/variations/_required/base.js +5 -0
  290. package/es/components/TextArea/variations/_required/base.js.map +1 -0
  291. package/es/components/TextArea/variations/_required/base_x642ct.css +1 -0
  292. package/es/components/TextField/TextField.js +33 -10
  293. package/es/components/TextField/TextField.js.map +1 -1
  294. package/es/components/TextField/TextField.styles.js +12 -2
  295. package/es/components/TextField/TextField.styles.js.map +1 -1
  296. package/{cjs/components/TextField/TextField.styles_9fkr1l.css → es/components/TextField/TextField.styles_1lfge6n.css} +3 -1
  297. package/es/components/TextField/TextField.tokens.js +8 -1
  298. package/es/components/TextField/TextField.tokens.js.map +1 -1
  299. package/es/components/TextField/TextField_1lzb2r1.css +1 -0
  300. package/es/components/TextField/variations/_label-placement/base.js +1 -1
  301. package/es/components/TextField/variations/_label-placement/base.js.map +1 -1
  302. package/es/components/TextField/variations/_label-placement/base_1yaoy2k.css +1 -0
  303. package/es/components/TextField/variations/_required/base.js +5 -0
  304. package/es/components/TextField/variations/_required/base.js.map +1 -0
  305. package/es/components/TextField/variations/_required/base_x642ct.css +1 -0
  306. package/es/index.css +22 -18
  307. package/package.json +2 -2
  308. package/styled-components/cjs/components/TextArea/TextArea.js +28 -7
  309. package/styled-components/cjs/components/TextArea/TextArea.styles.js +17 -11
  310. package/styled-components/cjs/components/TextArea/TextArea.template-doc.mdx +29 -3
  311. package/styled-components/cjs/components/TextArea/TextArea.tokens.js +8 -1
  312. package/styled-components/cjs/components/TextArea/variations/_required/base.js +8 -0
  313. package/styled-components/cjs/components/TextArea/variations/_required/tokens.json +1 -0
  314. package/styled-components/cjs/components/TextArea/variations/_size/tokens.json +7 -1
  315. package/styled-components/cjs/components/TextField/TextField.js +32 -9
  316. package/styled-components/cjs/components/TextField/TextField.styles.js +9 -3
  317. package/styled-components/cjs/components/TextField/TextField.template-doc.mdx +27 -1
  318. package/styled-components/cjs/components/TextField/TextField.tokens.js +8 -1
  319. package/styled-components/cjs/components/TextField/variations/_label-placement/base.js +1 -1
  320. package/styled-components/cjs/components/TextField/variations/_required/base.js +8 -0
  321. package/styled-components/cjs/components/TextField/variations/_required/tokens.json +1 -0
  322. package/styled-components/cjs/components/TextField/variations/_size/tokens.json +6 -0
  323. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.config.js +7 -4
  324. package/styled-components/cjs/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -0
  325. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.config.js +7 -4
  326. package/styled-components/cjs/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -1
  327. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.config.js +7 -4
  328. package/styled-components/cjs/examples/plasma_web/components/TextArea/TextArea.stories.tsx +10 -0
  329. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.config.js +7 -4
  330. package/styled-components/cjs/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
  331. package/styled-components/cjs/examples/sds_engineer/components/Avatar/Avatar.config.js +29 -0
  332. package/styled-components/cjs/examples/sds_engineer/components/Avatar/Avatar.js +11 -0
  333. package/styled-components/cjs/examples/sds_engineer/components/Avatar/Avatar.stories.tsx +65 -0
  334. package/styled-components/cjs/examples/sds_engineer/components/AvatarGroup/AvatarGroup.js +10 -0
  335. package/styled-components/cjs/examples/sds_engineer/components/AvatarGroup/AvatarGroup.stories.tsx +73 -0
  336. package/styled-components/cjs/examples/sds_engineer/components/Badge/Badge.config.js +36 -0
  337. package/styled-components/cjs/examples/sds_engineer/components/Badge/Badge.js +11 -0
  338. package/styled-components/cjs/examples/sds_engineer/components/Badge/Badge.stories.tsx +56 -0
  339. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.config.js +51 -0
  340. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.js +11 -0
  341. package/styled-components/cjs/examples/sds_engineer/components/Button/Button.stories.tsx +117 -0
  342. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +56 -0
  343. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.js +11 -0
  344. package/styled-components/cjs/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +118 -0
  345. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.js +23 -0
  346. package/styled-components/cjs/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +283 -0
  347. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarBase.config.js +25 -0
  348. package/styled-components/cjs/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +25 -0
  349. package/styled-components/cjs/examples/sds_engineer/components/Checkbox/Checkbox.config.js +41 -0
  350. package/styled-components/cjs/examples/sds_engineer/components/Checkbox/Checkbox.js +11 -0
  351. package/styled-components/cjs/examples/sds_engineer/components/Checkbox/Checkbox.stories.tsx +167 -0
  352. package/styled-components/cjs/examples/sds_engineer/components/Chip/Chip.config.js +28 -0
  353. package/styled-components/cjs/examples/sds_engineer/components/Chip/Chip.js +11 -0
  354. package/styled-components/cjs/examples/sds_engineer/components/Chip/Chip.stories.tsx +37 -0
  355. package/styled-components/cjs/examples/sds_engineer/components/Counter/Counter.config.js +29 -0
  356. package/styled-components/cjs/examples/sds_engineer/components/Counter/Counter.js +11 -0
  357. package/styled-components/cjs/examples/sds_engineer/components/Counter/Counter.stories.tsx +41 -0
  358. package/styled-components/cjs/examples/sds_engineer/components/Divider/Divider.config.js +31 -0
  359. package/styled-components/cjs/examples/sds_engineer/components/Divider/Divider.js +11 -0
  360. package/styled-components/cjs/examples/sds_engineer/components/Divider/Divider.stories.tsx +61 -0
  361. package/styled-components/cjs/examples/sds_engineer/components/Drawer/Drawer.config.js +26 -0
  362. package/styled-components/cjs/examples/sds_engineer/components/Drawer/Drawer.js +18 -0
  363. package/styled-components/cjs/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +218 -0
  364. package/styled-components/cjs/examples/sds_engineer/components/Grid/Grid.config.js +22 -0
  365. package/styled-components/cjs/examples/sds_engineer/components/Grid/Grid.js +23 -0
  366. package/styled-components/cjs/examples/sds_engineer/components/Grid/Grid.stories.tsx +122 -0
  367. package/styled-components/cjs/examples/sds_engineer/components/Image/Image.js +10 -0
  368. package/styled-components/cjs/examples/sds_engineer/components/Image/Image.stories.tsx +48 -0
  369. package/styled-components/cjs/examples/sds_engineer/components/Link/Link.config.js +32 -0
  370. package/styled-components/cjs/examples/sds_engineer/components/Link/Link.js +11 -0
  371. package/styled-components/cjs/examples/sds_engineer/components/Link/Link.stories.tsx +30 -0
  372. package/styled-components/cjs/examples/sds_engineer/components/Modal/Modal.config.js +18 -0
  373. package/styled-components/cjs/examples/sds_engineer/components/Modal/Modal.js +17 -0
  374. package/styled-components/cjs/examples/sds_engineer/components/Modal/Modal.stories.tsx +208 -0
  375. package/styled-components/cjs/examples/sds_engineer/components/Notification/Notification.config.js +25 -0
  376. package/styled-components/cjs/examples/sds_engineer/components/Notification/Notification.js +29 -0
  377. package/styled-components/cjs/examples/sds_engineer/components/Notification/Notification.stories.tsx +159 -0
  378. package/styled-components/cjs/examples/sds_engineer/components/Overlay/Overlay.stories.tsx +79 -0
  379. package/styled-components/cjs/examples/sds_engineer/components/Panel/Panel.config.js +27 -0
  380. package/styled-components/cjs/examples/sds_engineer/components/Panel/Panel.js +18 -0
  381. package/styled-components/cjs/examples/sds_engineer/components/Panel/Panel.stories.tsx +148 -0
  382. package/styled-components/cjs/examples/sds_engineer/components/Popover/Popover.config.js +18 -0
  383. package/styled-components/cjs/examples/sds_engineer/components/Popover/Popover.js +11 -0
  384. package/styled-components/cjs/examples/sds_engineer/components/Popover/Popover.stories.tsx +117 -0
  385. package/styled-components/cjs/examples/sds_engineer/components/Popup/Popup.js +28 -0
  386. package/styled-components/cjs/examples/sds_engineer/components/Popup/Popup.stories.tsx +179 -0
  387. package/styled-components/cjs/examples/sds_engineer/components/Progress/Progress.config.js +28 -0
  388. package/styled-components/cjs/examples/sds_engineer/components/Progress/Progress.js +11 -0
  389. package/styled-components/cjs/examples/sds_engineer/components/Progress/Progress.stories.tsx +33 -0
  390. package/styled-components/cjs/examples/sds_engineer/components/Radiobox/Radiobox.config.js +42 -0
  391. package/styled-components/cjs/examples/sds_engineer/components/Radiobox/Radiobox.js +11 -0
  392. package/styled-components/cjs/examples/sds_engineer/components/Radiobox/Radiobox.stories.tsx +134 -0
  393. package/styled-components/cjs/examples/sds_engineer/components/Segment/Segment.js +14 -0
  394. package/styled-components/cjs/examples/sds_engineer/components/Segment/Segment.stories.tsx +95 -0
  395. package/styled-components/cjs/examples/sds_engineer/components/Segment/SegmentGroup.config.js +35 -0
  396. package/styled-components/cjs/examples/sds_engineer/components/Segment/SegmentItem.config.js +33 -0
  397. package/styled-components/cjs/examples/sds_engineer/components/Skeleton/LineSkeleton.config.js +34 -0
  398. package/styled-components/cjs/examples/sds_engineer/components/Skeleton/Skeleton.js +25 -0
  399. package/styled-components/cjs/examples/sds_engineer/components/Skeleton/Skeleton.stories.tsx +90 -0
  400. package/styled-components/cjs/examples/sds_engineer/components/Spinner/Spinner.config.js +31 -0
  401. package/styled-components/cjs/examples/sds_engineer/components/Spinner/Spinner.js +11 -0
  402. package/styled-components/cjs/examples/sds_engineer/components/Spinner/Spinner.stories.tsx +53 -0
  403. package/styled-components/cjs/examples/sds_engineer/components/Switch/Switch.config.js +36 -0
  404. package/styled-components/cjs/examples/sds_engineer/components/Switch/Switch.js +11 -0
  405. package/styled-components/cjs/examples/sds_engineer/components/Switch/Switch.stories.tsx +61 -0
  406. package/styled-components/cjs/examples/sds_engineer/components/Tabs/TabItem.config.js +39 -0
  407. package/styled-components/cjs/examples/sds_engineer/components/Tabs/TabItem.js +11 -0
  408. package/styled-components/cjs/examples/sds_engineer/components/Tabs/Tabs.config.js +42 -0
  409. package/styled-components/cjs/examples/sds_engineer/components/Tabs/Tabs.js +11 -0
  410. package/styled-components/cjs/examples/sds_engineer/components/Tabs/Tabs.stories.tsx +262 -0
  411. package/styled-components/cjs/examples/sds_engineer/components/Tabs/TabsController.js +10 -0
  412. package/styled-components/cjs/examples/sds_engineer/components/TextArea/TextArea.config.js +28 -0
  413. package/styled-components/cjs/examples/sds_engineer/components/TextArea/TextArea.js +11 -0
  414. package/styled-components/cjs/examples/sds_engineer/components/TextArea/TextArea.stories.tsx +66 -0
  415. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.config.js +39 -0
  416. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.js +11 -0
  417. package/styled-components/cjs/examples/sds_engineer/components/TextField/TextField.stories.tsx +171 -0
  418. package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.config.js +27 -0
  419. package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.js +19 -0
  420. package/styled-components/cjs/examples/sds_engineer/components/Toast/Toast.stories.tsx +223 -0
  421. package/styled-components/cjs/examples/sds_engineer/components/Toolbar/Toolbar.config.js +25 -0
  422. package/styled-components/cjs/examples/sds_engineer/components/Toolbar/Toolbar.js +17 -0
  423. package/styled-components/cjs/examples/sds_engineer/components/Toolbar/Toolbar.stories.tsx +64 -0
  424. package/styled-components/cjs/examples/sds_engineer/components/Tooltip/Tooltip.config.js +22 -0
  425. package/styled-components/cjs/examples/sds_engineer/components/Tooltip/Tooltip.js +11 -0
  426. package/styled-components/cjs/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +205 -0
  427. package/styled-components/cjs/examples/themes/index.js +3 -1
  428. package/styled-components/cjs/examples/themes/sds_engineer.module.css +373 -0
  429. package/styled-components/es/components/TextArea/TextArea.js +29 -8
  430. package/styled-components/es/components/TextArea/TextArea.styles.js +16 -10
  431. package/styled-components/es/components/TextArea/TextArea.template-doc.mdx +29 -3
  432. package/styled-components/es/components/TextArea/TextArea.tokens.js +8 -1
  433. package/styled-components/es/components/TextArea/variations/_required/base.js +2 -0
  434. package/styled-components/es/components/TextArea/variations/_required/tokens.json +1 -0
  435. package/styled-components/es/components/TextArea/variations/_size/tokens.json +7 -1
  436. package/styled-components/es/components/TextField/TextField.js +31 -8
  437. package/styled-components/es/components/TextField/TextField.styles.js +8 -2
  438. package/styled-components/es/components/TextField/TextField.template-doc.mdx +27 -1
  439. package/styled-components/es/components/TextField/TextField.tokens.js +8 -1
  440. package/styled-components/es/components/TextField/variations/_label-placement/base.js +1 -1
  441. package/styled-components/es/components/TextField/variations/_required/base.js +2 -0
  442. package/styled-components/es/components/TextField/variations/_required/tokens.json +1 -0
  443. package/styled-components/es/components/TextField/variations/_size/tokens.json +6 -0
  444. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.config.js +7 -4
  445. package/styled-components/es/examples/plasma_b2c/components/TextArea/TextArea.stories.tsx +9 -0
  446. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.config.js +7 -4
  447. package/styled-components/es/examples/plasma_b2c/components/TextField/TextField.stories.tsx +9 -1
  448. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.config.js +7 -4
  449. package/styled-components/es/examples/plasma_web/components/TextArea/TextArea.stories.tsx +10 -0
  450. package/styled-components/es/examples/plasma_web/components/TextField/TextField.config.js +7 -4
  451. package/styled-components/es/examples/plasma_web/components/TextField/TextField.stories.tsx +10 -0
  452. package/styled-components/es/examples/sds_engineer/components/Avatar/Avatar.config.js +23 -0
  453. package/styled-components/es/examples/sds_engineer/components/Avatar/Avatar.js +5 -0
  454. package/styled-components/es/examples/sds_engineer/components/Avatar/Avatar.stories.tsx +65 -0
  455. package/styled-components/es/examples/sds_engineer/components/AvatarGroup/AvatarGroup.js +4 -0
  456. package/styled-components/es/examples/sds_engineer/components/AvatarGroup/AvatarGroup.stories.tsx +73 -0
  457. package/styled-components/es/examples/sds_engineer/components/Badge/Badge.config.js +30 -0
  458. package/styled-components/es/examples/sds_engineer/components/Badge/Badge.js +5 -0
  459. package/styled-components/es/examples/sds_engineer/components/Badge/Badge.stories.tsx +56 -0
  460. package/styled-components/es/examples/sds_engineer/components/Button/Button.config.js +45 -0
  461. package/styled-components/es/examples/sds_engineer/components/Button/Button.js +5 -0
  462. package/styled-components/es/examples/sds_engineer/components/Button/Button.stories.tsx +117 -0
  463. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.js +50 -0
  464. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.js +5 -0
  465. package/styled-components/es/examples/sds_engineer/components/ButtonGroup/ButtonGroup.stories.tsx +118 -0
  466. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.js +17 -0
  467. package/styled-components/es/examples/sds_engineer/components/Calendar/Calendar.stories.tsx +283 -0
  468. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarBase.config.js +19 -0
  469. package/styled-components/es/examples/sds_engineer/components/Calendar/CalendarDouble.config.js +19 -0
  470. package/styled-components/es/examples/sds_engineer/components/Checkbox/Checkbox.config.js +35 -0
  471. package/styled-components/es/examples/sds_engineer/components/Checkbox/Checkbox.js +5 -0
  472. package/styled-components/es/examples/sds_engineer/components/Checkbox/Checkbox.stories.tsx +167 -0
  473. package/styled-components/es/examples/sds_engineer/components/Chip/Chip.config.js +22 -0
  474. package/styled-components/es/examples/sds_engineer/components/Chip/Chip.js +5 -0
  475. package/styled-components/es/examples/sds_engineer/components/Chip/Chip.stories.tsx +37 -0
  476. package/styled-components/es/examples/sds_engineer/components/Counter/Counter.config.js +23 -0
  477. package/styled-components/es/examples/sds_engineer/components/Counter/Counter.js +5 -0
  478. package/styled-components/es/examples/sds_engineer/components/Counter/Counter.stories.tsx +41 -0
  479. package/styled-components/es/examples/sds_engineer/components/Divider/Divider.config.js +25 -0
  480. package/styled-components/es/examples/sds_engineer/components/Divider/Divider.js +5 -0
  481. package/styled-components/es/examples/sds_engineer/components/Divider/Divider.stories.tsx +61 -0
  482. package/styled-components/es/examples/sds_engineer/components/Drawer/Drawer.config.js +20 -0
  483. package/styled-components/es/examples/sds_engineer/components/Drawer/Drawer.js +12 -0
  484. package/styled-components/es/examples/sds_engineer/components/Drawer/Drawer.stories.tsx +218 -0
  485. package/styled-components/es/examples/sds_engineer/components/Grid/Grid.config.js +16 -0
  486. package/styled-components/es/examples/sds_engineer/components/Grid/Grid.js +6 -0
  487. package/styled-components/es/examples/sds_engineer/components/Grid/Grid.stories.tsx +122 -0
  488. package/styled-components/es/examples/sds_engineer/components/Image/Image.js +4 -0
  489. package/styled-components/es/examples/sds_engineer/components/Image/Image.stories.tsx +48 -0
  490. package/styled-components/es/examples/sds_engineer/components/Link/Link.config.js +26 -0
  491. package/styled-components/es/examples/sds_engineer/components/Link/Link.js +5 -0
  492. package/styled-components/es/examples/sds_engineer/components/Link/Link.stories.tsx +30 -0
  493. package/styled-components/es/examples/sds_engineer/components/Modal/Modal.config.js +12 -0
  494. package/styled-components/es/examples/sds_engineer/components/Modal/Modal.js +6 -0
  495. package/styled-components/es/examples/sds_engineer/components/Modal/Modal.stories.tsx +208 -0
  496. package/styled-components/es/examples/sds_engineer/components/Notification/Notification.config.js +19 -0
  497. package/styled-components/es/examples/sds_engineer/components/Notification/Notification.js +16 -0
  498. package/styled-components/es/examples/sds_engineer/components/Notification/Notification.stories.tsx +159 -0
  499. package/styled-components/es/examples/sds_engineer/components/Overlay/Overlay.stories.tsx +79 -0
  500. package/styled-components/es/examples/sds_engineer/components/Panel/Panel.config.js +21 -0
  501. package/styled-components/es/examples/sds_engineer/components/Panel/Panel.js +12 -0
  502. package/styled-components/es/examples/sds_engineer/components/Panel/Panel.stories.tsx +148 -0
  503. package/styled-components/es/examples/sds_engineer/components/Popover/Popover.config.js +12 -0
  504. package/styled-components/es/examples/sds_engineer/components/Popover/Popover.js +5 -0
  505. package/styled-components/es/examples/sds_engineer/components/Popover/Popover.stories.tsx +117 -0
  506. package/styled-components/es/examples/sds_engineer/components/Popup/Popup.js +5 -0
  507. package/styled-components/es/examples/sds_engineer/components/Popup/Popup.stories.tsx +179 -0
  508. package/styled-components/es/examples/sds_engineer/components/Progress/Progress.config.js +22 -0
  509. package/styled-components/es/examples/sds_engineer/components/Progress/Progress.js +5 -0
  510. package/styled-components/es/examples/sds_engineer/components/Progress/Progress.stories.tsx +33 -0
  511. package/styled-components/es/examples/sds_engineer/components/Radiobox/Radiobox.config.js +36 -0
  512. package/styled-components/es/examples/sds_engineer/components/Radiobox/Radiobox.js +5 -0
  513. package/styled-components/es/examples/sds_engineer/components/Radiobox/Radiobox.stories.tsx +134 -0
  514. package/styled-components/es/examples/sds_engineer/components/Segment/Segment.js +8 -0
  515. package/styled-components/es/examples/sds_engineer/components/Segment/Segment.stories.tsx +95 -0
  516. package/styled-components/es/examples/sds_engineer/components/Segment/SegmentGroup.config.js +29 -0
  517. package/styled-components/es/examples/sds_engineer/components/Segment/SegmentItem.config.js +27 -0
  518. package/styled-components/es/examples/sds_engineer/components/Skeleton/LineSkeleton.config.js +28 -0
  519. package/styled-components/es/examples/sds_engineer/components/Skeleton/Skeleton.js +7 -0
  520. package/styled-components/es/examples/sds_engineer/components/Skeleton/Skeleton.stories.tsx +90 -0
  521. package/styled-components/es/examples/sds_engineer/components/Spinner/Spinner.config.js +25 -0
  522. package/styled-components/es/examples/sds_engineer/components/Spinner/Spinner.js +5 -0
  523. package/styled-components/es/examples/sds_engineer/components/Spinner/Spinner.stories.tsx +53 -0
  524. package/styled-components/es/examples/sds_engineer/components/Switch/Switch.config.js +30 -0
  525. package/styled-components/es/examples/sds_engineer/components/Switch/Switch.js +5 -0
  526. package/styled-components/es/examples/sds_engineer/components/Switch/Switch.stories.tsx +61 -0
  527. package/styled-components/es/examples/sds_engineer/components/Tabs/TabItem.config.js +33 -0
  528. package/styled-components/es/examples/sds_engineer/components/Tabs/TabItem.js +5 -0
  529. package/styled-components/es/examples/sds_engineer/components/Tabs/Tabs.config.js +36 -0
  530. package/styled-components/es/examples/sds_engineer/components/Tabs/Tabs.js +5 -0
  531. package/styled-components/es/examples/sds_engineer/components/Tabs/Tabs.stories.tsx +262 -0
  532. package/styled-components/es/examples/sds_engineer/components/Tabs/TabsController.js +4 -0
  533. package/styled-components/es/examples/sds_engineer/components/TextArea/TextArea.config.js +22 -0
  534. package/styled-components/es/examples/sds_engineer/components/TextArea/TextArea.js +5 -0
  535. package/styled-components/es/examples/sds_engineer/components/TextArea/TextArea.stories.tsx +66 -0
  536. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.config.js +33 -0
  537. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.js +5 -0
  538. package/styled-components/es/examples/sds_engineer/components/TextField/TextField.stories.tsx +171 -0
  539. package/styled-components/es/examples/sds_engineer/components/Toast/Toast.config.js +21 -0
  540. package/styled-components/es/examples/sds_engineer/components/Toast/Toast.js +8 -0
  541. package/styled-components/es/examples/sds_engineer/components/Toast/Toast.stories.tsx +223 -0
  542. package/styled-components/es/examples/sds_engineer/components/Toolbar/Toolbar.config.js +19 -0
  543. package/styled-components/es/examples/sds_engineer/components/Toolbar/Toolbar.js +11 -0
  544. package/styled-components/es/examples/sds_engineer/components/Toolbar/Toolbar.stories.tsx +64 -0
  545. package/styled-components/es/examples/sds_engineer/components/Tooltip/Tooltip.config.js +16 -0
  546. package/styled-components/es/examples/sds_engineer/components/Tooltip/Tooltip.js +5 -0
  547. package/styled-components/es/examples/sds_engineer/components/Tooltip/Tooltip.stories.tsx +205 -0
  548. package/styled-components/es/examples/themes/index.js +3 -1
  549. package/styled-components/es/examples/themes/sds_engineer.module.css +373 -0
  550. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +6 -0
  551. package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
  552. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +6 -0
  553. package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
  554. package/types/components/Range/Range.styles.d.ts +6 -0
  555. package/types/components/Range/Range.styles.d.ts.map +1 -1
  556. package/types/components/Slider/components/Double/Double.styles.d.ts +6 -0
  557. package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
  558. package/types/components/TextArea/TextArea.d.ts +4 -0
  559. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  560. package/types/components/TextArea/TextArea.styles.d.ts +2 -0
  561. package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
  562. package/types/components/TextArea/TextArea.tokens.d.ts +7 -0
  563. package/types/components/TextArea/TextArea.tokens.d.ts.map +1 -1
  564. package/types/components/TextArea/TextArea.types.d.ts +13 -0
  565. package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
  566. package/types/components/TextArea/variations/_required/base.d.ts +2 -0
  567. package/types/components/TextArea/variations/_required/base.d.ts.map +1 -0
  568. package/types/components/TextField/TextField.d.ts +4 -0
  569. package/types/components/TextField/TextField.d.ts.map +1 -1
  570. package/types/components/TextField/TextField.styles.d.ts +2 -0
  571. package/types/components/TextField/TextField.styles.d.ts.map +1 -1
  572. package/types/components/TextField/TextField.tokens.d.ts +7 -0
  573. package/types/components/TextField/TextField.tokens.d.ts.map +1 -1
  574. package/types/components/TextField/TextField.types.d.ts +13 -0
  575. package/types/components/TextField/TextField.types.d.ts.map +1 -1
  576. package/types/components/TextField/variations/_label-placement/base.d.ts.map +1 -1
  577. package/types/components/TextField/variations/_required/base.d.ts +2 -0
  578. package/types/components/TextField/variations/_required/base.d.ts.map +1 -0
  579. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts +3 -0
  580. package/types/examples/plasma_b2c/components/TextArea/TextArea.config.d.ts.map +1 -1
  581. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +3 -0
  582. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
  583. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts +3 -0
  584. package/types/examples/plasma_b2c/components/TextField/TextField.config.d.ts.map +1 -1
  585. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts +9 -0
  586. package/types/examples/plasma_b2c/components/TextField/TextField.d.ts.map +1 -1
  587. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts +3 -0
  588. package/types/examples/plasma_web/components/TextArea/TextArea.config.d.ts.map +1 -1
  589. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +3 -0
  590. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
  591. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts +3 -0
  592. package/types/examples/plasma_web/components/TextField/TextField.config.d.ts.map +1 -1
  593. package/types/examples/plasma_web/components/TextField/TextField.d.ts +9 -0
  594. package/types/examples/plasma_web/components/TextField/TextField.d.ts.map +1 -1
  595. package/types/examples/sds_engineer/components/Avatar/Avatar.config.d.ts +22 -0
  596. package/types/examples/sds_engineer/components/Avatar/Avatar.config.d.ts.map +1 -0
  597. package/types/examples/sds_engineer/components/Avatar/Avatar.d.ts +26 -0
  598. package/types/examples/sds_engineer/components/Avatar/Avatar.d.ts.map +1 -0
  599. package/types/examples/sds_engineer/components/AvatarGroup/AvatarGroup.d.ts +5 -0
  600. package/types/examples/sds_engineer/components/AvatarGroup/AvatarGroup.d.ts.map +1 -0
  601. package/types/examples/sds_engineer/components/Badge/Badge.config.d.ts +29 -0
  602. package/types/examples/sds_engineer/components/Badge/Badge.config.d.ts.map +1 -0
  603. package/types/examples/sds_engineer/components/Badge/Badge.d.ts +34 -0
  604. package/types/examples/sds_engineer/components/Badge/Badge.d.ts.map +1 -0
  605. package/types/examples/sds_engineer/components/Button/Button.config.d.ts +44 -0
  606. package/types/examples/sds_engineer/components/Button/Button.config.d.ts.map +1 -0
  607. package/types/examples/sds_engineer/components/Button/Button.d.ts +80 -0
  608. package/types/examples/sds_engineer/components/Button/Button.d.ts.map +1 -0
  609. package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.d.ts +49 -0
  610. package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.config.d.ts.map +1 -0
  611. package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.d.ts +44 -0
  612. package/types/examples/sds_engineer/components/ButtonGroup/ButtonGroup.d.ts.map +1 -0
  613. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts +28 -0
  614. package/types/examples/sds_engineer/components/Calendar/Calendar.d.ts.map +1 -0
  615. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts +18 -0
  616. package/types/examples/sds_engineer/components/Calendar/CalendarBase.config.d.ts.map +1 -0
  617. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts +18 -0
  618. package/types/examples/sds_engineer/components/Calendar/CalendarDouble.config.d.ts.map +1 -0
  619. package/types/examples/sds_engineer/components/Checkbox/Checkbox.config.d.ts +34 -0
  620. package/types/examples/sds_engineer/components/Checkbox/Checkbox.config.d.ts.map +1 -0
  621. package/types/examples/sds_engineer/components/Checkbox/Checkbox.d.ts +24 -0
  622. package/types/examples/sds_engineer/components/Checkbox/Checkbox.d.ts.map +1 -0
  623. package/types/examples/sds_engineer/components/Chip/Chip.config.d.ts +21 -0
  624. package/types/examples/sds_engineer/components/Chip/Chip.config.d.ts.map +1 -0
  625. package/types/examples/sds_engineer/components/Chip/Chip.d.ts +16 -0
  626. package/types/examples/sds_engineer/components/Chip/Chip.d.ts.map +1 -0
  627. package/types/examples/sds_engineer/components/Counter/Counter.config.d.ts +22 -0
  628. package/types/examples/sds_engineer/components/Counter/Counter.config.d.ts.map +1 -0
  629. package/types/examples/sds_engineer/components/Counter/Counter.d.ts +22 -0
  630. package/types/examples/sds_engineer/components/Counter/Counter.d.ts.map +1 -0
  631. package/types/examples/sds_engineer/components/Divider/Divider.config.d.ts +23 -0
  632. package/types/examples/sds_engineer/components/Divider/Divider.config.d.ts.map +1 -0
  633. package/types/examples/sds_engineer/components/Divider/Divider.d.ts +17 -0
  634. package/types/examples/sds_engineer/components/Divider/Divider.d.ts.map +1 -0
  635. package/types/examples/sds_engineer/components/Drawer/Drawer.config.d.ts +19 -0
  636. package/types/examples/sds_engineer/components/Drawer/Drawer.config.d.ts.map +1 -0
  637. package/types/examples/sds_engineer/components/Drawer/Drawer.d.ts +38 -0
  638. package/types/examples/sds_engineer/components/Drawer/Drawer.d.ts.map +1 -0
  639. package/types/examples/sds_engineer/components/Grid/Grid.config.d.ts +11 -0
  640. package/types/examples/sds_engineer/components/Grid/Grid.config.d.ts.map +1 -0
  641. package/types/examples/sds_engineer/components/Grid/Grid.d.ts +8 -0
  642. package/types/examples/sds_engineer/components/Grid/Grid.d.ts.map +1 -0
  643. package/types/examples/sds_engineer/components/Image/Image.d.ts +8 -0
  644. package/types/examples/sds_engineer/components/Image/Image.d.ts.map +1 -0
  645. package/types/examples/sds_engineer/components/Link/Link.config.d.ts +26 -0
  646. package/types/examples/sds_engineer/components/Link/Link.config.d.ts.map +1 -0
  647. package/types/examples/sds_engineer/components/Link/Link.d.ts +21 -0
  648. package/types/examples/sds_engineer/components/Link/Link.d.ts.map +1 -0
  649. package/types/examples/sds_engineer/components/Modal/Modal.config.d.ts +11 -0
  650. package/types/examples/sds_engineer/components/Modal/Modal.config.d.ts.map +1 -0
  651. package/types/examples/sds_engineer/components/Modal/Modal.d.ts +8 -0
  652. package/types/examples/sds_engineer/components/Modal/Modal.d.ts.map +1 -0
  653. package/types/examples/sds_engineer/components/Notification/Notification.config.d.ts +18 -0
  654. package/types/examples/sds_engineer/components/Notification/Notification.config.d.ts.map +1 -0
  655. package/types/examples/sds_engineer/components/Notification/Notification.d.ts +19 -0
  656. package/types/examples/sds_engineer/components/Notification/Notification.d.ts.map +1 -0
  657. package/types/examples/sds_engineer/components/Panel/Panel.config.d.ts +20 -0
  658. package/types/examples/sds_engineer/components/Panel/Panel.config.d.ts.map +1 -0
  659. package/types/examples/sds_engineer/components/Panel/Panel.d.ts +27 -0
  660. package/types/examples/sds_engineer/components/Panel/Panel.d.ts.map +1 -0
  661. package/types/examples/sds_engineer/components/Popover/Popover.config.d.ts +11 -0
  662. package/types/examples/sds_engineer/components/Popover/Popover.config.d.ts.map +1 -0
  663. package/types/examples/sds_engineer/components/Popover/Popover.d.ts +8 -0
  664. package/types/examples/sds_engineer/components/Popover/Popover.d.ts.map +1 -0
  665. package/types/examples/sds_engineer/components/Popup/Popup.d.ts +4 -0
  666. package/types/examples/sds_engineer/components/Popup/Popup.d.ts.map +1 -0
  667. package/types/examples/sds_engineer/components/Progress/Progress.config.d.ts +21 -0
  668. package/types/examples/sds_engineer/components/Progress/Progress.config.d.ts.map +1 -0
  669. package/types/examples/sds_engineer/components/Progress/Progress.d.ts +16 -0
  670. package/types/examples/sds_engineer/components/Progress/Progress.d.ts.map +1 -0
  671. package/types/examples/sds_engineer/components/Radiobox/Radiobox.config.d.ts +35 -0
  672. package/types/examples/sds_engineer/components/Radiobox/Radiobox.config.d.ts.map +1 -0
  673. package/types/examples/sds_engineer/components/Radiobox/Radiobox.d.ts +24 -0
  674. package/types/examples/sds_engineer/components/Radiobox/Radiobox.d.ts.map +1 -0
  675. package/types/examples/sds_engineer/components/Segment/Segment.d.ts +58 -0
  676. package/types/examples/sds_engineer/components/Segment/Segment.d.ts.map +1 -0
  677. package/types/examples/sds_engineer/components/Segment/SegmentGroup.config.d.ts +28 -0
  678. package/types/examples/sds_engineer/components/Segment/SegmentGroup.config.d.ts.map +1 -0
  679. package/types/examples/sds_engineer/components/Segment/SegmentItem.config.d.ts +26 -0
  680. package/types/examples/sds_engineer/components/Segment/SegmentItem.config.d.ts.map +1 -0
  681. package/types/examples/sds_engineer/components/Skeleton/LineSkeleton.config.d.ts +27 -0
  682. package/types/examples/sds_engineer/components/Skeleton/LineSkeleton.config.d.ts.map +1 -0
  683. package/types/examples/sds_engineer/components/Skeleton/Skeleton.d.ts +51 -0
  684. package/types/examples/sds_engineer/components/Skeleton/Skeleton.d.ts.map +1 -0
  685. package/types/examples/sds_engineer/components/Spinner/Spinner.config.d.ts +24 -0
  686. package/types/examples/sds_engineer/components/Spinner/Spinner.config.d.ts.map +1 -0
  687. package/types/examples/sds_engineer/components/Spinner/Spinner.d.ts +34 -0
  688. package/types/examples/sds_engineer/components/Spinner/Spinner.d.ts.map +1 -0
  689. package/types/examples/sds_engineer/components/Switch/Switch.config.d.ts +28 -0
  690. package/types/examples/sds_engineer/components/Switch/Switch.config.d.ts.map +1 -0
  691. package/types/examples/sds_engineer/components/Switch/Switch.d.ts +21 -0
  692. package/types/examples/sds_engineer/components/Switch/Switch.d.ts.map +1 -0
  693. package/types/examples/sds_engineer/components/Tabs/TabItem.config.d.ts +32 -0
  694. package/types/examples/sds_engineer/components/Tabs/TabItem.config.d.ts.map +1 -0
  695. package/types/examples/sds_engineer/components/Tabs/TabItem.d.ts +3 -0
  696. package/types/examples/sds_engineer/components/Tabs/TabItem.d.ts.map +1 -0
  697. package/types/examples/sds_engineer/components/Tabs/Tabs.config.d.ts +35 -0
  698. package/types/examples/sds_engineer/components/Tabs/Tabs.config.d.ts.map +1 -0
  699. package/types/examples/sds_engineer/components/Tabs/Tabs.d.ts +3 -0
  700. package/types/examples/sds_engineer/components/Tabs/Tabs.d.ts.map +1 -0
  701. package/types/examples/sds_engineer/components/Tabs/TabsController.d.ts +3 -0
  702. package/types/examples/sds_engineer/components/Tabs/TabsController.d.ts.map +1 -0
  703. package/types/examples/sds_engineer/components/TextArea/TextArea.config.d.ts +21 -0
  704. package/types/examples/sds_engineer/components/TextArea/TextArea.config.d.ts.map +1 -0
  705. package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts +46 -0
  706. package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts.map +1 -0
  707. package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts +32 -0
  708. package/types/examples/sds_engineer/components/TextField/TextField.config.d.ts.map +1 -0
  709. package/types/examples/sds_engineer/components/TextField/TextField.d.ts +70 -0
  710. package/types/examples/sds_engineer/components/TextField/TextField.d.ts.map +1 -0
  711. package/types/examples/sds_engineer/components/Toast/Toast.config.d.ts +20 -0
  712. package/types/examples/sds_engineer/components/Toast/Toast.config.d.ts.map +1 -0
  713. package/types/examples/sds_engineer/components/Toast/Toast.d.ts +20 -0
  714. package/types/examples/sds_engineer/components/Toast/Toast.d.ts.map +1 -0
  715. package/types/examples/sds_engineer/components/Toolbar/Toolbar.config.d.ts +18 -0
  716. package/types/examples/sds_engineer/components/Toolbar/Toolbar.config.d.ts.map +1 -0
  717. package/types/examples/sds_engineer/components/Toolbar/Toolbar.d.ts +23 -0
  718. package/types/examples/sds_engineer/components/Toolbar/Toolbar.d.ts.map +1 -0
  719. package/types/examples/sds_engineer/components/Tooltip/Tooltip.config.d.ts +15 -0
  720. package/types/examples/sds_engineer/components/Tooltip/Tooltip.config.d.ts.map +1 -0
  721. package/types/examples/sds_engineer/components/Tooltip/Tooltip.d.ts +5 -0
  722. package/types/examples/sds_engineer/components/Tooltip/Tooltip.d.ts.map +1 -0
  723. package/types/examples/themes/index.d.ts.map +1 -1
  724. package/cjs/components/TextArea/TextArea.styles_1bv40vw.css +0 -9
  725. package/cjs/components/TextField/TextField_wctd2m.css +0 -1
  726. package/cjs/components/TextField/variations/_label-placement/base_170eaex.css +0 -1
  727. package/es/components/TextArea/TextArea.styles_1bv40vw.css +0 -9
  728. package/es/components/TextField/TextField_wctd2m.css +0 -1
  729. package/es/components/TextField/variations/_label-placement/base_170eaex.css +0 -1
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TextField = void 0;
7
+ var _engines = /*#__PURE__*/require("../../../../engines");
8
+ var _TextField = /*#__PURE__*/require("../../../../components/TextField");
9
+ var _TextField2 = /*#__PURE__*/require("./TextField.config");
10
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_TextField.textFieldConfig, _TextField2.config);
11
+ var TextField = exports.TextField = /*#__PURE__*/(0, _engines.component)(mergedConfig);
@@ -0,0 +1,171 @@
1
+ import React, { ComponentProps, useState } from 'react';
2
+ import type { StoryObj, Meta } from '@storybook/react';
3
+ import { action } from '@storybook/addon-actions';
4
+ import { IconPlaceholder } from '@salutejs/plasma-sb-utils';
5
+
6
+ import { WithTheme } from '../../../_helpers';
7
+
8
+ import { TextField } from './TextField';
9
+
10
+ const onChange = action('onChange');
11
+ const onFocus = action('onFocus');
12
+ const onBlur = action('onBlur');
13
+ const onSearch = action('onSearch');
14
+ const onChipsChange = action('onChipsChange');
15
+
16
+ const sizes = ['l', 'm', 's', 'xs'];
17
+ const views = ['default', 'positive', 'warning', 'negative'];
18
+ const labelPlacements = ['outer', 'inner'];
19
+
20
+ const meta: Meta<typeof TextField> = {
21
+ title: 'sds_engineer/TextField',
22
+ component: TextField,
23
+ decorators: [WithTheme],
24
+ argTypes: {
25
+ view: {
26
+ options: views,
27
+ control: {
28
+ type: 'select',
29
+ },
30
+ },
31
+ maxLength: {
32
+ control: {
33
+ type: 'number',
34
+ },
35
+ },
36
+ labelPlacement: {
37
+ options: labelPlacements,
38
+ control: {
39
+ type: 'inline-radio',
40
+ },
41
+ },
42
+ size: {
43
+ options: sizes,
44
+ control: {
45
+ type: 'inline-radio',
46
+ },
47
+ },
48
+ },
49
+ };
50
+
51
+ export default meta;
52
+
53
+ type StoryPropsDefault = Omit<
54
+ ComponentProps<typeof TextField>,
55
+ | 'helperBlock'
56
+ | 'contentLeft'
57
+ | 'htmlSize'
58
+ | 'contentRight'
59
+ | 'type'
60
+ | 'name'
61
+ | 'onFocus'
62
+ | 'onBlur'
63
+ | 'onChange'
64
+ | 'value'
65
+ | 'checked'
66
+ | 'maxLength'
67
+ | 'minLength'
68
+ | 'required'
69
+ | 'enumerationType'
70
+ | 'chips'
71
+ | 'onChangeChips'
72
+ > & {
73
+ enableContentLeft: boolean;
74
+ enableContentRight: boolean;
75
+ };
76
+
77
+ const StoryDemo = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsDefault) => {
78
+ const [text, setText] = useState('Значение поля');
79
+
80
+ const iconSize = rest.size === 'xs' ? 'xs' : 's';
81
+
82
+ return (
83
+ <TextField
84
+ {...rest}
85
+ enumerationType="plain"
86
+ value={text}
87
+ contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
88
+ contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
89
+ view={view}
90
+ onChange={(e) => {
91
+ setText(e.target.value);
92
+ onChange(e.target.value);
93
+ }}
94
+ onFocus={onFocus}
95
+ onBlur={onBlur}
96
+ onSearch={onSearch}
97
+ />
98
+ );
99
+ };
100
+
101
+ export const Default: StoryObj<StoryPropsDefault> = {
102
+ args: {
103
+ id: 'example-text-field',
104
+ size: 'l',
105
+ view: 'default',
106
+ label: 'Лейбл',
107
+ labelPlacement: 'outer',
108
+ placeholder: 'Заполните поле',
109
+ leftHelper: 'Подсказка к полю',
110
+ disabled: false,
111
+ readOnly: false,
112
+ enableContentLeft: true,
113
+ enableContentRight: true,
114
+ },
115
+ render: (args) => <StoryDemo {...args} />,
116
+ };
117
+
118
+ type StoryPropsChips = Omit<
119
+ ComponentProps<typeof TextField>,
120
+ | 'helperBlock'
121
+ | 'contentLeft'
122
+ | 'htmlSize'
123
+ | 'contentRight'
124
+ | 'type'
125
+ | 'name'
126
+ | 'onFocus'
127
+ | 'onBlur'
128
+ | 'onChange'
129
+ | 'onSearch'
130
+ | 'value'
131
+ | 'checked'
132
+ | 'maxLength'
133
+ | 'minLength'
134
+ | 'required'
135
+ | 'enumerationType'
136
+ > & {
137
+ enableContentLeft: boolean;
138
+ enableContentRight: boolean;
139
+ };
140
+
141
+ const StoryChips = ({ enableContentLeft, enableContentRight, view, ...rest }: StoryPropsChips) => {
142
+ const [text, setText] = useState('Значение поля');
143
+
144
+ const iconSize = rest.size === 'xs' ? 'xs' : 's';
145
+
146
+ return (
147
+ <TextField
148
+ {...rest}
149
+ enumerationType="chip"
150
+ value={text}
151
+ contentLeft={enableContentLeft ? <IconPlaceholder size={iconSize} /> : undefined}
152
+ contentRight={enableContentRight ? <IconPlaceholder size={iconSize} /> : undefined}
153
+ view={view}
154
+ onChange={(e) => {
155
+ setText(e.target.value);
156
+ onChange(e.target.value);
157
+ }}
158
+ onFocus={onFocus}
159
+ onBlur={onBlur}
160
+ onChangeChips={onChipsChange}
161
+ />
162
+ );
163
+ };
164
+
165
+ export const Chips: StoryObj<StoryPropsChips> = {
166
+ args: {
167
+ ...Default.args,
168
+ chips: ['1 value', '2 value', '3 value', '4 value'],
169
+ },
170
+ render: (args) => <StoryChips {...args} />,
171
+ };
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _react = /*#__PURE__*/require("@emotion/react");
8
+ var _Toast = /*#__PURE__*/require("../../../../components/Toast");
9
+ var config = exports.config = {
10
+ defaults: {
11
+ view: 'default',
12
+ size: 'm'
13
+ },
14
+ variations: {
15
+ view: {
16
+ "default": /*#__PURE__*/(0, _react.css)(_Toast.toastTokens.color, ":var(--text-primary);", _Toast.toastTokens.background, ":var(--surface-solid-card);", _Toast.toastTokens.closeIconColor, ":var(--text-secondary);", _Toast.toastTokens.closeIconColorOnHover, ":var(--text-secondary);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoi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YWNlLXNvbGlkLXByaW1hcnkpO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25Db2xvcn06IHZhcigtLW9uLWRhcmstdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3JPbkhvdmVyfTogdmFyKC0tb24tZGFyay10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbGlnaHQ6IGNzc2BcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNvbG9yfTogdmFyKC0tb24tbGlnaHQtdGV4dC1wcmltYXJ5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmJhY2tncm91bmR9OiB2YXIoLS1vbi1saWdodC1zdXJmYWNlLXNvbGlkLXByaW1hcnkpO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25Db2xvcn06IHZhcigtLW9uLWxpZ2h0LXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yT25Ib3Zlcn06IHZhcigtLW9uLWxpZ2h0LXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHNpemU6IHtcbiAgICAgICAgICAgIG06IGNzc2BcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmJvcmRlclJhZGl1c306IDAuNzVyZW07XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5tYXhXaWR0aH06IGNhbGMoMTAwdncgLSA1cmVtKTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLnBhZGRpbmd9OiAwLjU2MjVyZW0gMC43NXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuZm9udEZhbWlseX06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC1mYW1pbHkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuZm9udFNpemV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtc2l6ZSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5mb250U3R5bGV9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtc3R5bGUpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuZm9udFdlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtZm9udC13ZWlnaHQpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubGV0dGVyU3BhY2luZ306IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtbGV0dGVyLXNwYWNpbmcpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubGluZUhlaWdodH06IHZhcigtLXBsYXNtYS10eXBvLWJvZHkteHMtbGluZS1oZWlnaHQpO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5sZWZ0Q29udGVudE1hcmdpbn06IC0wLjA2MjVyZW0gMC4zNzVyZW0gLTAuMDYyNXJlbSAtMC4xMjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25NYXJnaW59OiAtMC4wNjI1cmVtIC0wLjI1cmVtIC0wLjA2MjVyZW0gMC41cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgcGlsbGVkOiB7XG4gICAgICAgICAgICB0cnVlOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5waWxsZWRCb3JkZXJSYWRpdXN9OiAxLjVyZW07XG5cbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmxlZnRDb250ZW50TWFyZ2lufTogLTAuMDYyNXJlbSAwLjM3NXJlbSAtMC4wNjI1cmVtIC0wLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uTWFyZ2lufTogLTAuMDYyNXJlbSAtMC4yNXJlbSAtMC4wNjI1cmVtIDAuMzc1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */")),
17
+ dark: /*#__PURE__*/(0, _react.css)(_Toast.toastTokens.color, ":var(--on-dark-text-primary);", _Toast.toastTokens.background, ":var(--on-dark-surface-solid-primary);", _Toast.toastTokens.closeIconColor, ":var(--on-dark-text-secondary);", _Toast.toastTokens.closeIconColorOnHover, ":var(--on-dark-text-secondary);;label:plasma-new-hope__dark;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFrQnFCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9hc3RUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi9jb21wb25lbnRzL1RvYXN0JztcblxuZXhwb3J0IGNvbnN0IGNvbmZpZyA9IHtcbiAgICBkZWZhdWx0czoge1xuICAgICAgICB2aWV3OiAnZGVmYXVsdCcsXG4gICAgICAgIHNpemU6ICdtJyxcbiAgICB9LFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuYmFja2dyb3VuZH06IHZhcigtLXN1cmZhY2Utc29saWQtY2FyZCk7XG5cbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3JPbkhvdmVyfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGRhcms6IGNzc2BcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNvbG9yfTogdmFyKC0tb24tZGFyay10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuYmFja2dyb3VuZH06IHZhcigtLW9uLWRhcmstc3VyZmFjZS1zb2xpZC1wcmltYXJ5KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3J9OiB2YXIoLS1vbi1kYXJrLXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yT25Ib3Zlcn06IHZhcigtLW9uLWRhcmstdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGxpZ2h0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jb2xvcn06IHZhcigtLW9uLWxpZ2h0LXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tb24tbGlnaHQtc3VyZmFjZS1zb2xpZC1wcmltYXJ5KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3J9OiB2YXIoLS1vbi1saWdodC10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25Db2xvck9uSG92ZXJ9OiB2YXIoLS1vbi1saWdodC10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubWF4V2lkdGh9OiBjYWxjKDEwMHZ3IC0gNXJlbSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5wYWRkaW5nfTogMC41NjI1cmVtIDAuNzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXNpemUpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuZm9udFN0eWxlfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtd2VpZ2h0KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxpbmUtaGVpZ2h0KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubGVmdENvbnRlbnRNYXJnaW59OiAtMC4wNjI1cmVtIDAuMzc1cmVtIC0wLjA2MjVyZW0gLTAuMTI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uTWFyZ2lufTogLTAuMDYyNXJlbSAtMC4yNXJlbSAtMC4wNjI1cmVtIDAuNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHBpbGxlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMucGlsbGVkQm9yZGVyUmFkaXVzfTogMS41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5sZWZ0Q29udGVudE1hcmdpbn06IC0wLjA2MjVyZW0gMC4zNzVyZW0gLTAuMDYyNXJlbSAtMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbk1hcmdpbn06IC0wLjA2MjVyZW0gLTAuMjVyZW0gLTAuMDYyNXJlbSAwLjM3NXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */")),
18
+ light: /*#__PURE__*/(0, _react.css)(_Toast.toastTokens.color, ":var(--on-light-text-primary);", _Toast.toastTokens.background, ":var(--on-light-surface-solid-primary);", _Toast.toastTokens.closeIconColor, ":var(--on-light-text-secondary);", _Toast.toastTokens.closeIconColorOnHover, ":var(--on-light-text-secondary);;label:plasma-new-hope__light;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIj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RUb2tlbnMucGlsbGVkQm9yZGVyUmFkaXVzfTogMS41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5sZWZ0Q29udGVudE1hcmdpbn06IC0wLjA2MjVyZW0gMC4zNzVyZW0gLTAuMDYyNXJlbSAtMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbk1hcmdpbn06IC0wLjA2MjVyZW0gLTAuMjVyZW0gLTAuMDYyNXJlbSAwLjM3NXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
19
+ },
20
+ size: {
21
+ m: /*#__PURE__*/(0, _react.css)(_Toast.toastTokens.borderRadius, ":0.75rem;", _Toast.toastTokens.maxWidth, ":calc(100vw - 5rem);", _Toast.toastTokens.padding, ":0.5625rem 0.75rem;", _Toast.toastTokens.fontFamily, ":var(--plasma-typo-body-xs-font-family);", _Toast.toastTokens.fontSize, ":var(--plasma-typo-body-xs-font-size);", _Toast.toastTokens.fontStyle, ":var(--plasma-typo-body-xs-font-style);", _Toast.toastTokens.fontWeight, ":var(--plasma-typo-body-xs-font-weight);", _Toast.toastTokens.letterSpacing, ":var(--plasma-typo-body-xs-letter-spacing);", _Toast.toastTokens.lineHeight, ":var(--plasma-typo-body-xs-line-height);", _Toast.toastTokens.leftContentMargin, ":-0.0625rem 0.375rem -0.0625rem -0.125rem;", _Toast.toastTokens.closeIconMargin, ":-0.0625rem -0.25rem -0.0625rem 0.5rem;;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1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yZW0gLTAuMDYyNXJlbSAtMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbk1hcmdpbn06IC0wLjA2MjVyZW0gLTAuMjVyZW0gLTAuMDYyNXJlbSAwLjM3NXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
22
+ },
23
+ pilled: {
24
+ "true": /*#__PURE__*/(0, _react.css)(_Toast.toastTokens.pilledBorderRadius, ":1.5rem;", _Toast.toastTokens.leftContentMargin, ":-0.0625rem 0.375rem -0.0625rem -0.25rem;", _Toast.toastTokens.closeIconMargin, ":-0.0625rem -0.25rem -0.0625rem 0.375rem;;label:plasma-new-hope__true;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtRHFCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1RvYXN0L1RvYXN0LmNvbmZpZy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHsgdG9hc3RUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi9jb21wb25lbnRzL1RvYXN0JztcblxuZXhwb3J0IGNvbnN0IGNvbmZpZyA9IHtcbiAgICBkZWZhdWx0czoge1xuICAgICAgICB2aWV3OiAnZGVmYXVsdCcsXG4gICAgICAgIHNpemU6ICdtJyxcbiAgICB9LFxuICAgIHZhcmlhdGlvbnM6IHtcbiAgICAgICAgdmlldzoge1xuICAgICAgICAgICAgZGVmYXVsdDogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY29sb3J9OiB2YXIoLS10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuYmFja2dyb3VuZH06IHZhcigtLXN1cmZhY2Utc29saWQtY2FyZCk7XG5cbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3JPbkhvdmVyfTogdmFyKC0tdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGRhcms6IGNzc2BcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNvbG9yfTogdmFyKC0tb24tZGFyay10ZXh0LXByaW1hcnkpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuYmFja2dyb3VuZH06IHZhcigtLW9uLWRhcmstc3VyZmFjZS1zb2xpZC1wcmltYXJ5KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3J9OiB2YXIoLS1vbi1kYXJrLXRleHQtc2Vjb25kYXJ5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbkNvbG9yT25Ib3Zlcn06IHZhcigtLW9uLWRhcmstdGV4dC1zZWNvbmRhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGxpZ2h0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jb2xvcn06IHZhcigtLW9uLWxpZ2h0LXRleHQtcHJpbWFyeSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5iYWNrZ3JvdW5kfTogdmFyKC0tb24tbGlnaHQtc3VyZmFjZS1zb2xpZC1wcmltYXJ5KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uQ29sb3J9OiB2YXIoLS1vbi1saWdodC10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5jbG9zZUljb25Db2xvck9uSG92ZXJ9OiB2YXIoLS1vbi1saWdodC10ZXh0LXNlY29uZGFyeSk7XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgICAgICBzaXplOiB7XG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubWF4V2lkdGh9OiBjYWxjKDEwMHZ3IC0gNXJlbSk7XG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5wYWRkaW5nfTogMC41NjI1cmVtIDAuNzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRGYW1pbHl9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtZmFtaWx5KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRTaXplfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXNpemUpO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuZm9udFN0eWxlfTogdmFyKC0tcGxhc21hLXR5cG8tYm9keS14cy1mb250LXN0eWxlKTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmZvbnRXZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWZvbnQtd2VpZ2h0KTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmxldHRlclNwYWNpbmd9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxldHRlci1zcGFjaW5nKTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmxpbmVIZWlnaHR9OiB2YXIoLS1wbGFzbWEtdHlwby1ib2R5LXhzLWxpbmUtaGVpZ2h0KTtcblxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMubGVmdENvbnRlbnRNYXJnaW59OiAtMC4wNjI1cmVtIDAuMzc1cmVtIC0wLjA2MjVyZW0gLTAuMTI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMuY2xvc2VJY29uTWFyZ2lufTogLTAuMDYyNXJlbSAtMC4yNXJlbSAtMC4wNjI1cmVtIDAuNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgICAgIHBpbGxlZDoge1xuICAgICAgICAgICAgdHJ1ZTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9hc3RUb2tlbnMucGlsbGVkQm9yZGVyUmFkaXVzfTogMS41cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b2FzdFRva2Vucy5sZWZ0Q29udGVudE1hcmdpbn06IC0wLjA2MjVyZW0gMC4zNzVyZW0gLTAuMDYyNXJlbSAtMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3RvYXN0VG9rZW5zLmNsb3NlSWNvbk1hcmdpbn06IC0wLjA2MjVyZW0gLTAuMjVyZW0gLTAuMDYyNXJlbSAwLjM3NXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgIH0sXG4gICAgfSxcbn07XG4iXX0= */"))
25
+ }
26
+ }
27
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToastProvider = exports.ToastController = exports.Toast = void 0;
7
+ Object.defineProperty(exports, "useToast", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _Toast.useToast;
11
+ }
12
+ });
13
+ var _Toast = /*#__PURE__*/require("../../../../components/Toast");
14
+ var _engines = /*#__PURE__*/require("../../../../engines");
15
+ var _Toast2 = /*#__PURE__*/require("./Toast.config");
16
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Toast.toastConfig, _Toast2.config);
17
+ var Toast = exports.Toast = /*#__PURE__*/(0, _engines.component)(mergedConfig);
18
+ var ToastController = exports.ToastController = /*#__PURE__*/(0, _Toast.ToastControllerHoc)(Toast);
19
+ var ToastProvider = exports.ToastProvider = /*#__PURE__*/(0, _Toast.ToastProviderHoc)(ToastController);
@@ -0,0 +1,223 @@
1
+ import React, { ComponentProps, useCallback, useRef, useState } from 'react';
2
+ import type { StoryObj, Meta } from '@storybook/react';
3
+ import { action } from '@storybook/addon-actions';
4
+ import styled from 'styled-components';
5
+ import { disableProps } from '@salutejs/plasma-sb-utils';
6
+
7
+ import { toastConfig } from '../../../../components/Toast';
8
+ import { mergeConfig } from '../../../../engines';
9
+ import { WithTheme, argTypesFromConfig } from '../../../_helpers';
10
+ import { Button } from '../Button/Button';
11
+ import { PopupProvider } from '../Popup/Popup';
12
+ import { addNotification } from '../../../../../src/components/Notification';
13
+ import { NotificationsProvider } from '../Notification/Notification';
14
+ import { Modal } from '../Modal/Modal';
15
+
16
+ import { config } from './Toast.config';
17
+ import { Toast, ToastController, ToastProvider, useToast } from './Toast';
18
+
19
+ const meta: Meta<typeof ToastController> = {
20
+ title: 'sds_engineer/Toast',
21
+ decorators: [WithTheme],
22
+ };
23
+
24
+ export default meta;
25
+
26
+ type StoryComponentProps = ComponentProps<typeof Toast> & {
27
+ enableContentLeft?: boolean;
28
+ };
29
+ type StoryComponent = StoryObj<StoryComponentProps>;
30
+
31
+ type StoryProps = ComponentProps<typeof ToastController> & {
32
+ text: string;
33
+ timeout?: number;
34
+ enableContentLeft?: boolean;
35
+ };
36
+ type Story = StoryObj<StoryProps>;
37
+
38
+ const BellIcon = (props) => (
39
+ <svg width="100%" viewBox="0 0 24 24" fill="none" {...props}>
40
+ <path
41
+ d="M11.501 21.28c1.088 0 1.978-.889 1.978-1.977H9.524c0 1.088.88 1.978 1.977 1.978zm5.933-5.932v-4.944c0-3.035-1.622-5.576-4.45-6.248v-.673c0-.82-.662-1.483-1.483-1.483-.82 0-1.483.662-1.483 1.483v.672c-2.838.673-4.45 3.204-4.45 6.25v4.943l-1.275 1.276c-.623.623-.188 1.69.692 1.69h13.022c.88 0 1.325-1.067.702-1.69l-1.275-1.276z"
42
+ fill="currentColor"
43
+ />
44
+ </svg>
45
+ );
46
+
47
+ const ToastContainer = styled.div`
48
+ position: fixed;
49
+ transform: translateX(50%);
50
+ `;
51
+
52
+ const Container = styled.div`
53
+ display: flex;
54
+ gap: 0.5rem;
55
+ `;
56
+
57
+ export const ToastComponent: StoryComponent = {
58
+ args: {
59
+ text: 'Текст всплывающего уведомления',
60
+ view: 'default',
61
+ size: 'm',
62
+ hasClose: true,
63
+ enableContentLeft: true,
64
+ pilled: false,
65
+ },
66
+ render: ({ enableContentLeft, ...args }) => (
67
+ <ToastContainer>
68
+ <Toast contentLeft={enableContentLeft && <BellIcon width="1rem" height="1rem" />} {...args} />
69
+ </ToastContainer>
70
+ ),
71
+ };
72
+
73
+ const StoryLiveDemo = ({
74
+ text,
75
+ position,
76
+ timeout,
77
+ fade,
78
+ offset,
79
+ pilled,
80
+ view,
81
+ size,
82
+ hasClose,
83
+ enableContentLeft,
84
+ }: StoryProps) => {
85
+ const { showToast, hideToast } = useToast();
86
+ const contentLeft = enableContentLeft && <BellIcon width="1rem" height="1rem" />;
87
+
88
+ return (
89
+ <Container>
90
+ <Button onClick={hideToast}>Скрыть уведомление</Button>
91
+ <Button
92
+ onClick={() => {
93
+ showToast({
94
+ text,
95
+ position,
96
+ offset,
97
+ timeout,
98
+ fade,
99
+ contentLeft,
100
+ pilled,
101
+ view,
102
+ size,
103
+ hasClose,
104
+ onHide: action('onHide'),
105
+ onShow: action('onShow'),
106
+ });
107
+ }}
108
+ >
109
+ Показать уведомление
110
+ </Button>
111
+ </Container>
112
+ );
113
+ };
114
+
115
+ export const LiveDemo: Story = {
116
+ args: {
117
+ ...ToastComponent.args,
118
+ position: 'bottom',
119
+ fade: true,
120
+ offset: 0,
121
+ timeout: 3000,
122
+ role: 'alert',
123
+ },
124
+ argTypes: {
125
+ position: {
126
+ options: ['top', 'bottom'],
127
+ control: {
128
+ type: 'inline-radio',
129
+ },
130
+ },
131
+ ...argTypesFromConfig(mergeConfig(toastConfig, config)),
132
+ ...disableProps(['role', 'onShow', 'onHide', 'contentLeft']),
133
+ },
134
+ parameters: {
135
+ chromatic: {
136
+ disable: true,
137
+ },
138
+ },
139
+ render: (args) => (
140
+ <ToastProvider>
141
+ <StoryLiveDemo {...args} />
142
+ </ToastProvider>
143
+ ),
144
+ };
145
+
146
+ const StoryComplex = ({
147
+ text,
148
+ position,
149
+ timeout,
150
+ fade,
151
+ offset,
152
+ pilled,
153
+ view,
154
+ size,
155
+ hasClose,
156
+ enableContentLeft,
157
+ }: StoryProps) => {
158
+ const [isModalOpen, setIsModalOpen] = useState(false);
159
+
160
+ const { showToast } = useToast();
161
+ const contentLeft = enableContentLeft && <BellIcon width="1rem" height="1rem" />;
162
+
163
+ const handleShowToast = () => {
164
+ showToast({
165
+ text,
166
+ position,
167
+ offset,
168
+ timeout,
169
+ fade,
170
+ contentLeft,
171
+ pilled,
172
+ view,
173
+ size,
174
+ hasClose,
175
+ onHide: action('onHide'),
176
+ onShow: action('onShow'),
177
+ });
178
+ };
179
+
180
+ const count = useRef(0);
181
+ const handleShowNotification = useCallback(() => {
182
+ addNotification(
183
+ {
184
+ title: 'Добавить Toast',
185
+ size: 'xs',
186
+ actions: <Button text="Добавить" size="xs" stretch onClick={handleShowToast} />,
187
+ },
188
+ 5000,
189
+ );
190
+ count.current++;
191
+ }, [count]);
192
+
193
+ return (
194
+ <NotificationsProvider>
195
+ <PopupProvider>
196
+ <Button text="Открыть модальное окно" onClick={() => setIsModalOpen(true)} />
197
+ <Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
198
+ <div>Hello!</div>
199
+ <Button view="default" text="Add notification" onClick={handleShowNotification} />
200
+ </Modal>
201
+ </PopupProvider>
202
+ </NotificationsProvider>
203
+ );
204
+ };
205
+
206
+ export const Complex: Story = {
207
+ args: {
208
+ ...LiveDemo.args,
209
+ },
210
+ argTypes: {
211
+ ...LiveDemo.argTypes,
212
+ },
213
+ parameters: {
214
+ chromatic: {
215
+ disable: true,
216
+ },
217
+ },
218
+ render: (args) => (
219
+ <ToastProvider>
220
+ <StoryComplex {...args} />
221
+ </ToastProvider>
222
+ ),
223
+ };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.config = void 0;
7
+ var _react = /*#__PURE__*/require("@emotion/react");
8
+ var _Toolbar = /*#__PURE__*/require("../../../../components/Toolbar");
9
+ var config = exports.config = {
10
+ defaults: {
11
+ view: 'default',
12
+ size: 'm'
13
+ },
14
+ variations: {
15
+ view: {
16
+ "default": /*#__PURE__*/(0, _react.css)(_Toolbar.toolbarTokens.boxShadow, ":var(--shadow-down-soft-s);", _Toolbar.toolbarTokens.background, ":var(--surface-solid-card);", _Toolbar.toolbarTokens.dividerColor, ":var(--surface-transparent-tertiary);;label:plasma-new-hope__default;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBV3dCIiwiZmlsZSI6Ii4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7IHRvb2xiYXJUb2tlbnMgfSBmcm9tICcuLi8uLi8uLi8uLi9jb21wb25lbnRzL1Rvb2xiYXInO1xuXG5leHBvcnQgY29uc3QgY29uZmlnID0ge1xuICAgIGRlZmF1bHRzOiB7XG4gICAgICAgIHZpZXc6ICdkZWZhdWx0JyxcbiAgICAgICAgc2l6ZTogJ20nLFxuICAgIH0sXG4gICAgdmFyaWF0aW9uczoge1xuICAgICAgICB2aWV3OiB7XG4gICAgICAgICAgICBkZWZhdWx0OiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmJveFNoYWRvd306IHZhcigtLXNoYWRvdy1kb3duLXNvZnQtcyk7XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmJhY2tncm91bmR9OiB2YXIoLS1zdXJmYWNlLXNvbGlkLWNhcmQpO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJDb2xvcn06IHZhcigtLXN1cmZhY2UtdHJhbnNwYXJlbnQtdGVydGlhcnkpO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICAgICAgc2l6ZToge1xuICAgICAgICAgICAgeHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDIuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuMjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmJvcmRlclJhZGl1c306IDAuNzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyT2Zmc2V0fTogMC41cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIHM6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDNyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnBhZGRpbmd9OiAwLjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAwLjg3NXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyU2l6ZX06IDEuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlckJvcmRlclJhZGl1c306IDAuMDYyNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBtOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAzLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC4zNzVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmJvcmRlclJhZGl1c306IDFyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyT2Zmc2V0fTogMC42MjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbDogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5zaXplfTogNC41cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC41cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAxLjI1cmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMnJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNzVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICB9LFxuICAgIH0sXG59O1xuIl19 */"))
17
+ },
18
+ size: {
19
+ xs: /*#__PURE__*/(0, _react.css)(_Toolbar.toolbarTokens.size, ":2.5rem;", _Toolbar.toolbarTokens.padding, ":0.25rem;", _Toolbar.toolbarTokens.borderRadius, ":0.75rem;", _Toolbar.toolbarTokens.dividerSize, ":1.25rem;", _Toolbar.toolbarTokens.dividerOffset, ":0.5rem;", _Toolbar.toolbarTokens.dividerBorderRadius, ":0.0625rem;;label:plasma-new-hope__xs;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBbUJtQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9zZHNfZW5naW5lZXIvY29tcG9uZW50cy9Ub29sYmFyL1R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Ub2tlbnMuZGl2aWRlck9mZnNldH06IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlckJvcmRlclJhZGl1c306IDAuMDYyNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAzcmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMC44NzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5zaXplfTogMy43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAxcmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGw6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDQuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMS4yNXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyU2l6ZX06IDJyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */")),
20
+ s: /*#__PURE__*/(0, _react.css)(_Toolbar.toolbarTokens.size, ":3rem;", _Toolbar.toolbarTokens.padding, ":0.25rem;", _Toolbar.toolbarTokens.borderRadius, ":0.875rem;", _Toolbar.toolbarTokens.dividerSize, ":1.5rem;", _Toolbar.toolbarTokens.dividerOffset, ":0.5rem;", _Toolbar.toolbarTokens.dividerBorderRadius, ":0.0625rem;;label:plasma-new-hope__s;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBNEJrQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9zZHNfZW5naW5lZXIvY29tcG9uZW50cy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ICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlckJvcmRlclJhZGl1c306IDAuMDYyNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAzcmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMC44NzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5zaXplfTogMy43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAxcmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGw6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDQuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMS4yNXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyU2l6ZX06IDJyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */")),
21
+ m: /*#__PURE__*/(0, _react.css)(_Toolbar.toolbarTokens.size, ":3.75rem;", _Toolbar.toolbarTokens.padding, ":0.375rem;", _Toolbar.toolbarTokens.borderRadius, ":1rem;", _Toolbar.toolbarTokens.dividerSize, ":1.75rem;", _Toolbar.toolbarTokens.dividerOffset, ":0.625rem;", _Toolbar.toolbarTokens.dividerBorderRadius, ":0.0625rem;;label:plasma-new-hope__m;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBcUNrQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9zZHNfZW5naW5lZX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AgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlckJvcmRlclJhZGl1c306IDAuMDYyNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAzcmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMC44NzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5zaXplfTogMy43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAxcmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGw6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDQuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMS4yNXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyU2l6ZX06IDJyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */")),
22
+ l: /*#__PURE__*/(0, _react.css)(_Toolbar.toolbarTokens.size, ":4.5rem;", _Toolbar.toolbarTokens.padding, ":0.5rem;", _Toolbar.toolbarTokens.borderRadius, ":1.25rem;", _Toolbar.toolbarTokens.dividerSize, ":2rem;", _Toolbar.toolbarTokens.dividerOffset, ":0.75rem;", _Toolbar.toolbarTokens.dividerBorderRadius, ":0.0625rem;;label:plasma-new-hope__l;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2V4YW1wbGVzL3Nkc19lbmdpbmVlci9jb21wb25lbnRzL1Rvb2xiYXIvVG9vbGJhci5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBOENrQiIsImZpbGUiOiIuLi8uLi8uLi8uLi8uLi8uLi9zcmMtZW1vdGlvbi9leGFtcGxlcy9z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S4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlckJvcmRlclJhZGl1c306IDAuMDYyNXJlbTtcbiAgICAgICAgICAgIGAsXG4gICAgICAgICAgICBzOiBjc3NgXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLnNpemV9OiAzcmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5wYWRkaW5nfTogMC4yNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMC44NzVyZW07XG5cbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlclNpemV9OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjVyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJCb3JkZXJSYWRpdXN9OiAwLjA2MjVyZW07XG4gICAgICAgICAgICBgLFxuICAgICAgICAgICAgbTogY3NzYFxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5zaXplfTogMy43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuMzc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5ib3JkZXJSYWRpdXN9OiAxcmVtO1xuXG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJTaXplfTogMS43NXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuZGl2aWRlck9mZnNldH06IDAuNjI1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgICAgIGw6IGNzc2BcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuc2l6ZX06IDQuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMucGFkZGluZ306IDAuNXJlbTtcbiAgICAgICAgICAgICAgICAke3Rvb2xiYXJUb2tlbnMuYm9yZGVyUmFkaXVzfTogMS4yNXJlbTtcblxuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyU2l6ZX06IDJyZW07XG4gICAgICAgICAgICAgICAgJHt0b29sYmFyVG9rZW5zLmRpdmlkZXJPZmZzZXR9OiAwLjc1cmVtO1xuICAgICAgICAgICAgICAgICR7dG9vbGJhclRva2Vucy5kaXZpZGVyQm9yZGVyUmFkaXVzfTogMC4wNjI1cmVtO1xuICAgICAgICAgICAgYCxcbiAgICAgICAgfSxcbiAgICB9LFxufTtcbiJdfQ== */"))
23
+ }
24
+ }
25
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ToolbarDivider = exports.Toolbar = void 0;
7
+ var _engines = /*#__PURE__*/require("../../../../engines");
8
+ var _Toolbar = /*#__PURE__*/require("../../../../components/Toolbar");
9
+ var _Toolbar2 = /*#__PURE__*/require("./Toolbar.config");
10
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Toolbar.toolbarConfig, _Toolbar2.config);
11
+
12
+ /**
13
+ * Компонент Toolbar.
14
+ */
15
+ var Toolbar = exports.Toolbar = /*#__PURE__*/(0, _engines.component)(mergedConfig);
16
+ var mergedDividerConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Toolbar.toolbarDividerConfig);
17
+ var ToolbarDivider = exports.ToolbarDivider = /*#__PURE__*/(0, _engines.component)(mergedDividerConfig);
@@ -0,0 +1,64 @@
1
+ import React from 'react';
2
+ import type { ComponentProps } from 'react';
3
+ import type { StoryObj, Meta } from '@storybook/react';
4
+
5
+ import { IconDone } from '../../../../components/_Icon';
6
+ import { Button } from '../Button/Button';
7
+ import { WithTheme } from '../../../_helpers';
8
+
9
+ import { Toolbar, ToolbarDivider } from './Toolbar';
10
+
11
+ const orientations: Array<string> = ['vertical', 'horizontal'];
12
+ const size: Array<string> = ['xs', 's', 'm', 'l'];
13
+
14
+ const ToolbarWrapper = (props: ComponentProps<typeof Toolbar>) => {
15
+ return (
16
+ <Toolbar {...props}>
17
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
18
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
19
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
20
+ <ToolbarDivider />
21
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
22
+ <Button square size={props.size} view="clear" contentLeft={<IconDone />} />
23
+ </Toolbar>
24
+ );
25
+ };
26
+
27
+ const meta: Meta<typeof Toolbar> = {
28
+ title: 'sds_engineer/Toolbar',
29
+ component: ToolbarWrapper,
30
+ decorators: [WithTheme],
31
+ argTypes: {
32
+ orientation: {
33
+ options: orientations,
34
+ control: {
35
+ type: 'select',
36
+ },
37
+ },
38
+ hasShadow: {
39
+ control: {
40
+ type: 'boolean',
41
+ },
42
+ },
43
+ size: {
44
+ options: size,
45
+ control: {
46
+ type: 'select',
47
+ },
48
+ },
49
+ },
50
+ args: {
51
+ orientation: 'vertical',
52
+ hasShadow: true,
53
+ size: 'm',
54
+ view: 'default',
55
+ },
56
+ };
57
+
58
+ export default meta;
59
+
60
+ type Story = StoryObj<typeof Toolbar>;
61
+
62
+ export const Default: Story = {
63
+ args: {},
64
+ };