@itcase/ui 1.3.11 → 1.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (485) hide show
  1. package/dist/{Badge-DMRagi5O.js → Badge-Bcj5H3vs.js} +2 -2
  2. package/dist/{Badge-B9tt2YPa.js → Badge-DxHwStfq.js} +2 -2
  3. package/dist/{Button-DHQeSUSA.js → Button-BIVXOiP4.js} +6 -6
  4. package/dist/{Button-BVQet4JC.js → Button-C4oPIe_E.js} +6 -6
  5. package/dist/{DropdownItem-DxGxdjUr.js → DropdownItem-BGsCHiqr.js} +4 -4
  6. package/dist/{DropdownItem-DXz1l415.js → DropdownItem-CRvS3KEp.js} +4 -4
  7. package/dist/{Group-B9L2NTgM.js → Group-CIIZoSm5.js} +1 -1
  8. package/dist/{Group-D6CXN4hS.js → Group-pMTTxQH4.js} +1 -1
  9. package/dist/{Icon-3VtRLW-J.js → Icon-DJSIqu5Z.js} +2 -2
  10. package/dist/{Icon-C9FlOMr9.js → Icon-Dz1q9WC2.js} +2 -2
  11. package/dist/{Input-BrV5_NoV.js → Input-Ck5IbuH6.js} +1 -1
  12. package/dist/{Input-ffioh1sj.js → Input-zkYoZhQk.js} +1 -1
  13. package/dist/{Label-DQyB2ThM.js → Label-9O3dQlUa.js} +6 -6
  14. package/dist/{Label-HKRKV3mn.js → Label-GEBQXoVJ.js} +6 -6
  15. package/dist/{Link-C2dn5VUy.js → Link-CH-W1dww.js} +1 -1
  16. package/dist/{Link-CPzqprR1.js → Link-U60OVrcS.js} +1 -1
  17. package/dist/{Loader-K_DJmah6.js → Loader-Cm98w6lJ.js} +2 -2
  18. package/dist/{Loader-Dn036JwE.js → Loader-D_53c71f.js} +2 -2
  19. package/dist/{MenuItem-Cw2Lry6S.js → MenuItem-C422Veuw.js} +3 -3
  20. package/dist/{MenuItem-DEzP_HLq.js → MenuItem-GoaeJJ04.js} +3 -3
  21. package/dist/{Scrollbar-CKbA0jQU.js → Scrollbar-CL9V8d1X.js} +1 -1
  22. package/dist/{Scrollbar-Bo7z7ELm.js → Scrollbar-DkJr3S-w.js} +1 -1
  23. package/dist/{Text-Beslj4Ns.js → Text-COHpLTYr.js} +1 -1
  24. package/dist/{Text-JayJa3hj.js → Text-D9sEeRE4.js} +1 -1
  25. package/dist/{Title-DBaHcpvB.js → Title-BduD-TXE.js} +1 -1
  26. package/dist/{Title-CHgrIarR.js → Title-Cl95USIn.js} +1 -1
  27. package/dist/{Tooltip-1Jbub0K6.js → Tooltip-BsbXMzGd.js} +4 -4
  28. package/dist/{Tooltip-CNua1g76.js → Tooltip-CyZCVyba.js} +4 -4
  29. package/dist/cjs/components/Accordion.js +7 -7
  30. package/dist/cjs/components/Avatar.js +9 -9
  31. package/dist/cjs/components/Badge.js +2 -2
  32. package/dist/cjs/components/Breadcrumbs.js +6 -6
  33. package/dist/cjs/components/Button.js +7 -7
  34. package/dist/cjs/components/Card.js +2 -2
  35. package/dist/cjs/components/Cell.js +7 -7
  36. package/dist/cjs/components/Checkbox.js +3 -3
  37. package/dist/cjs/components/Chips.js +4 -4
  38. package/dist/cjs/components/Choice.js +10 -10
  39. package/dist/cjs/components/Code.js +1 -1
  40. package/dist/cjs/components/CookiesWarning.js +10 -10
  41. package/dist/cjs/components/DadataHintField.js +1 -1
  42. package/dist/cjs/components/DatePicker.js +16 -16
  43. package/dist/cjs/components/Drawer.js +5 -12
  44. package/dist/cjs/components/Dropdown.js +3 -3
  45. package/dist/cjs/components/Flex.js +4 -4
  46. package/dist/cjs/components/Grid.js +6 -6
  47. package/dist/cjs/components/Group.js +1 -1
  48. package/dist/cjs/components/Icon.js +5 -5
  49. package/dist/cjs/components/Input.js +1 -1
  50. package/dist/cjs/components/InputMask.js +1 -1
  51. package/dist/cjs/components/InputPassword.js +5 -5
  52. package/dist/cjs/components/Label.js +4 -4
  53. package/dist/cjs/components/Link.js +1 -1
  54. package/dist/cjs/components/List.js +1 -1
  55. package/dist/cjs/components/Loader.js +2 -2
  56. package/dist/cjs/components/Logo.js +2 -2
  57. package/dist/cjs/components/Menu.js +4 -4
  58. package/dist/cjs/components/MenuItem.js +3 -3
  59. package/dist/cjs/components/Modal.js +5 -5
  60. package/dist/cjs/components/Notification.js +4 -4
  61. package/dist/cjs/components/Pagination.js +28 -28
  62. package/dist/cjs/components/Panel.js +2 -2
  63. package/dist/cjs/components/Radio.js +3 -3
  64. package/dist/cjs/components/Response.js +17 -17
  65. package/dist/cjs/components/ScrollToView.js +1 -1
  66. package/dist/cjs/components/Scrollbar.js +1 -1
  67. package/dist/cjs/components/Search.js +9 -9
  68. package/dist/cjs/components/Segmented.js +13 -13
  69. package/dist/cjs/components/Select.js +11 -11
  70. package/dist/cjs/components/SiteMenu.js +6 -6
  71. package/dist/cjs/components/Swiper.js +8 -8
  72. package/dist/cjs/components/Tab.js +9 -9
  73. package/dist/cjs/components/Text.js +1 -1
  74. package/dist/cjs/components/Tile.js +4 -4
  75. package/dist/cjs/components/Title.js +1 -1
  76. package/dist/cjs/components/Tooltip.js +3 -3
  77. package/dist/cjs/components/Wrapper.js +1 -1
  78. package/dist/cjs/context/Notifications.js +6 -6
  79. package/dist/cjs/context/UIContext.js +1 -1
  80. package/dist/cjs/hooks/useDeviceTargetClassGenerator.js +4 -4
  81. package/dist/components/Accordion.js +7 -7
  82. package/dist/components/Avatar.js +9 -9
  83. package/dist/components/Badge.js +2 -2
  84. package/dist/components/Breadcrumbs.js +6 -6
  85. package/dist/components/Button.js +7 -7
  86. package/dist/components/Card.js +2 -2
  87. package/dist/components/Cell.js +7 -7
  88. package/dist/components/Checkbox.js +3 -3
  89. package/dist/components/Chips.js +4 -4
  90. package/dist/components/Choice.js +10 -10
  91. package/dist/components/Code.js +1 -1
  92. package/dist/components/CookiesWarning.js +10 -10
  93. package/dist/components/DadataHintField.js +1 -1
  94. package/dist/components/DatePicker.js +16 -16
  95. package/dist/components/Drawer.js +5 -12
  96. package/dist/components/Dropdown.js +3 -3
  97. package/dist/components/Flex.js +4 -4
  98. package/dist/components/Grid.js +6 -6
  99. package/dist/components/Group.js +1 -1
  100. package/dist/components/Icon.js +5 -5
  101. package/dist/components/Input.js +1 -1
  102. package/dist/components/InputMask.js +1 -1
  103. package/dist/components/InputPassword.js +5 -5
  104. package/dist/components/Label.js +4 -4
  105. package/dist/components/Link.js +1 -1
  106. package/dist/components/List.js +1 -1
  107. package/dist/components/Loader.js +2 -2
  108. package/dist/components/Logo.js +2 -2
  109. package/dist/components/Menu.js +4 -4
  110. package/dist/components/MenuItem.js +3 -3
  111. package/dist/components/Modal.js +5 -5
  112. package/dist/components/Notification.js +4 -4
  113. package/dist/components/Pagination.js +28 -28
  114. package/dist/components/Panel.js +2 -2
  115. package/dist/components/Radio.js +3 -3
  116. package/dist/components/Response.js +17 -17
  117. package/dist/components/ScrollToView.js +1 -1
  118. package/dist/components/Scrollbar.js +1 -1
  119. package/dist/components/Search.js +9 -9
  120. package/dist/components/Segmented.js +13 -13
  121. package/dist/components/Select.js +11 -11
  122. package/dist/components/SiteMenu.js +6 -6
  123. package/dist/components/Swiper.js +8 -8
  124. package/dist/components/Tab.js +9 -9
  125. package/dist/components/Text.js +1 -1
  126. package/dist/components/Tile.js +4 -4
  127. package/dist/components/Title.js +1 -1
  128. package/dist/components/Tooltip.js +3 -3
  129. package/dist/components/Wrapper.js +1 -1
  130. package/dist/context/Notifications.js +6 -6
  131. package/dist/context/UIContext.js +1 -1
  132. package/dist/css/components/Pagination/Pagination.css +3 -2
  133. package/dist/css/components/Pagination/css/__item/pagination__item.css +3 -2
  134. package/dist/css/components/Text/Text.css +2 -1
  135. package/dist/hooks/useDeviceTargetClassGenerator.js +4 -4
  136. package/dist/stories/Accordion.mdx +1 -1
  137. package/dist/stories/AccordionItem.mdx +1 -1
  138. package/dist/stories/AlignContent.mdx +1 -1
  139. package/dist/stories/AlignItems.mdx +1 -1
  140. package/dist/stories/AlignSelf.mdx +1 -1
  141. package/dist/stories/Appearance.mdx +1 -1
  142. package/dist/stories/Avatar.mdx +1 -1
  143. package/dist/stories/Badge.mdx +2 -2
  144. package/dist/stories/Button.mdx +1 -2
  145. package/dist/stories/Cell.mdx +1 -1
  146. package/dist/stories/Checkbox.mdx +1 -2
  147. package/dist/stories/Chips.mdx +1 -1
  148. package/dist/stories/Choice.mdx +1 -1
  149. package/dist/stories/Code.mdx +1 -1
  150. package/dist/stories/Columns.mdx +1 -1
  151. package/dist/stories/DatePicker.mdx +1 -1
  152. package/dist/stories/Dev.mdx +1 -1
  153. package/dist/stories/DevMode.mdx +3 -2
  154. package/dist/stories/Direction.mdx +1 -1
  155. package/dist/stories/Divider.mdx +1 -1
  156. package/dist/stories/Dot.mdx +1 -1
  157. package/dist/stories/Drawer.mdx +1 -1
  158. package/dist/stories/Dropdown.mdx +2 -2
  159. package/dist/stories/DropdownItem.mdx +1 -1
  160. package/dist/stories/Group.mdx +1 -1
  161. package/dist/stories/Grow.mdx +1 -1
  162. package/dist/stories/Icon.mdx +1 -1
  163. package/dist/stories/Image.mdx +1 -1
  164. package/dist/stories/Input.mdx +1 -1
  165. package/dist/stories/InputPassword.mdx +1 -1
  166. package/dist/stories/JustifyContent.mdx +1 -1
  167. package/dist/stories/Label.mdx +1 -1
  168. package/dist/stories/Loader.mdx +1 -1
  169. package/dist/stories/Logo.mdx +1 -1
  170. package/dist/stories/MenuItem.mdx +1 -1
  171. package/dist/stories/Message.mdx +4 -1
  172. package/dist/stories/Notification.mdx +1 -1
  173. package/dist/stories/Order.mdx +1 -1
  174. package/dist/stories/Overview.mdx +1 -1
  175. package/dist/stories/Pagination.mdx +1 -1
  176. package/dist/stories/Playground.mdx +1 -1
  177. package/dist/stories/Radio.mdx +1 -2
  178. package/dist/stories/Response.mdx +6 -1
  179. package/dist/stories/SearchInput.mdx +1 -1
  180. package/dist/stories/Segmented.mdx +1 -1
  181. package/dist/stories/Size.mdx +1 -1
  182. package/dist/stories/Skeleton.mdx +1 -1
  183. package/dist/stories/State.mdx +1 -1
  184. package/dist/stories/Switch.mdx +1 -1
  185. package/dist/stories/Text.mdx +1 -1
  186. package/dist/stories/Textarea.mdx +1 -1
  187. package/dist/stories/Tile.mdx +1 -1
  188. package/dist/stories/Title.mdx +1 -1
  189. package/dist/stories/Tooltip.mdx +1 -1
  190. package/dist/stories/WithTooltip.mdx +1 -1
  191. package/dist/stories/Wrap.mdx +1 -1
  192. package/dist/types/components/Accordion/Accordion.interface.d.ts +1 -1
  193. package/dist/types/components/Avatar/Avatar.interface.d.ts +5 -5
  194. package/dist/types/components/Badge/Badge.interface.d.ts +4 -4
  195. package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +11 -11
  196. package/dist/types/components/Button/Button.interface.d.ts +10 -10
  197. package/dist/types/components/Button/stories/args.d.ts +200 -0
  198. package/dist/types/components/Caption/Caption.interface.d.ts +5 -5
  199. package/dist/types/components/Card/Card.interface.d.ts +1 -1
  200. package/dist/types/components/Cell/Cell.interface.d.ts +4 -4
  201. package/dist/types/components/Checkbox/Checkbox.interface.d.ts +2 -2
  202. package/dist/types/components/Chips/Chips.interface.d.ts +6 -6
  203. package/dist/types/components/Chips/stories/args.d.ts +45 -0
  204. package/dist/types/components/Choice/Choice.interface.d.ts +6 -6
  205. package/dist/types/components/Code/Code.interface.d.ts +3 -3
  206. package/dist/types/components/CookiesWarning/CookiesWarning.interface.d.ts +1 -1
  207. package/dist/types/components/DadataHintField/DadataHintField.interface.d.ts +0 -1
  208. package/dist/types/components/DatePicker/DatePicker.interface.d.ts +13 -13
  209. package/dist/types/components/Divider/Divider.interface.d.ts +2 -2
  210. package/dist/types/components/Dot/Dot.interface.d.ts +5 -5
  211. package/dist/types/components/Dropdown/Dropdown.interface.d.ts +5 -5
  212. package/dist/types/components/Flex/Flex.interface.d.ts +70 -70
  213. package/dist/types/components/Flex/stories/args.d.ts +80 -0
  214. package/dist/types/components/Grid/Grid.interface.d.ts +29 -32
  215. package/dist/types/components/Grid/stories/args.d.ts +90 -0
  216. package/dist/types/components/Group/Group.interface.d.ts +7 -7
  217. package/dist/types/components/Group/stories/args.d.ts +78 -0
  218. package/dist/types/components/HTMLContent/HTMLContent.interface.d.ts +5 -5
  219. package/dist/types/components/Icon/Icon.interface.d.ts +15 -15
  220. package/dist/types/components/Image/Image.interface.d.ts +3 -3
  221. package/dist/types/components/Input/Input.interface.d.ts +3 -3
  222. package/dist/types/components/InputMask/Input.interface.d.ts +3 -3
  223. package/dist/types/components/InputPassword/InputPassword.interface.d.ts +4 -4
  224. package/dist/types/components/Label/Label.interface.d.ts +6 -6
  225. package/dist/types/components/Link/Link.interface.d.ts +1 -1
  226. package/dist/types/components/List/List.interface.d.ts +2 -2
  227. package/dist/types/components/Loader/Loader.interface.d.ts +3 -3
  228. package/dist/types/components/Logo/Logo.interface.d.ts +4 -4
  229. package/dist/types/components/Menu/Menu.interface.d.ts +2 -2
  230. package/dist/types/components/MenuItem/MenuItem.interface.d.ts +2 -2
  231. package/dist/types/components/Modal/Modal.interface.d.ts +3 -3
  232. package/dist/types/components/ModalSheetBottom/ModalSheetBottom.interface.d.ts +1 -1
  233. package/dist/types/components/Notification/Notification.interface.d.ts +4 -4
  234. package/dist/types/components/Overlay/Overlay.interface.d.ts +1 -1
  235. package/dist/types/components/Pagination/Pagination.interface.d.ts +5 -5
  236. package/dist/types/components/Panel/Panel.interface.d.ts +21 -21
  237. package/dist/types/components/Radio/Radio.interface.d.ts +4 -4
  238. package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +1 -1
  239. package/dist/types/components/Response/Response.interface.d.ts +5 -5
  240. package/dist/types/components/Response/stories/args.d.ts +174 -0
  241. package/dist/types/components/SVGContent/SVGContent.interface.d.ts +3 -3
  242. package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +3 -3
  243. package/dist/types/components/Search/Search.interface.d.ts +7 -7
  244. package/dist/types/components/Segmented/Segmented.interface.d.ts +3 -3
  245. package/dist/types/components/Select/Select.interface.d.ts +5 -5
  246. package/dist/types/components/SiteMenu/SiteMenu.interface.d.ts +3 -3
  247. package/dist/types/components/Swiper/Swiper.interface.d.ts +2 -2
  248. package/dist/types/components/Switch/Switch.interface.d.ts +1 -1
  249. package/dist/types/components/Tab/Tab.interface.d.ts +4 -4
  250. package/dist/types/components/Tab/stories/args.d.ts +171 -0
  251. package/dist/types/components/Text/Text.interface.d.ts +3 -3
  252. package/dist/types/components/Textarea/Textarea.interface.d.ts +4 -4
  253. package/dist/types/components/Tile/Tile.interface.d.ts +5 -5
  254. package/dist/types/components/Title/Title.interface.d.ts +8 -8
  255. package/dist/types/components/Tooltip/Tooltip.interface.d.ts +6 -6
  256. package/dist/types/components/Wrapper/Wrapper.interface.d.ts +5 -5
  257. package/dist/types/hooks/styleAttributes.interface.d.ts +2 -2
  258. package/dist/types/types/componentProps/align.d.ts +3 -1
  259. package/dist/types/types/componentProps/alignDirection.d.ts +3 -1
  260. package/dist/types/types/componentProps/alignment.d.ts +3 -1
  261. package/dist/types/types/componentProps/borderColor.d.ts +3 -1
  262. package/dist/types/types/componentProps/borderColorHover.d.ts +3 -1
  263. package/dist/types/types/componentProps/borderType.d.ts +3 -1
  264. package/dist/types/types/componentProps/borderWidth.d.ts +3 -1
  265. package/dist/types/types/componentProps/captionPosition.d.ts +3 -1
  266. package/dist/types/types/componentProps/direction.d.ts +3 -1
  267. package/dist/types/types/componentProps/elevation.d.ts +3 -1
  268. package/dist/types/types/componentProps/emojiSize.d.ts +3 -1
  269. package/dist/types/types/componentProps/fill.d.ts +3 -1
  270. package/dist/types/types/componentProps/fillGradient.d.ts +3 -1
  271. package/dist/types/types/componentProps/fillHover.d.ts +3 -1
  272. package/dist/types/types/componentProps/fillType.d.ts +3 -1
  273. package/dist/types/types/componentProps/flexAlign.d.ts +3 -1
  274. package/dist/types/types/componentProps/flexGrow.d.ts +3 -1
  275. package/dist/types/types/componentProps/flexJustifyContent.d.ts +3 -1
  276. package/dist/types/types/componentProps/flexWrap.d.ts +3 -1
  277. package/dist/types/types/componentProps/gridAlign.d.ts +3 -1
  278. package/dist/types/types/componentProps/gridAlignSelf.d.ts +3 -1
  279. package/dist/types/types/componentProps/gridJustifyItems.d.ts +3 -1
  280. package/dist/types/types/componentProps/gridJustifySelf.d.ts +3 -1
  281. package/dist/types/types/componentProps/height.d.ts +3 -1
  282. package/dist/types/types/componentProps/horizontalContentAlign.d.ts +3 -1
  283. package/dist/types/types/componentProps/horizontalResizeMode.d.ts +3 -1
  284. package/dist/types/types/componentProps/iconFillSize.d.ts +3 -1
  285. package/dist/types/types/componentProps/iconSize.d.ts +3 -1
  286. package/dist/types/types/componentProps/itemColor.d.ts +3 -1
  287. package/dist/types/types/componentProps/justifyContent.d.ts +3 -1
  288. package/dist/types/types/componentProps/overflow.d.ts +3 -1
  289. package/dist/types/types/componentProps/position.d.ts +3 -1
  290. package/dist/types/types/componentProps/resizeMode.d.ts +3 -1
  291. package/dist/types/types/componentProps/shape.d.ts +3 -1
  292. package/dist/types/types/componentProps/size.d.ts +3 -1
  293. package/dist/types/types/componentProps/sizeOption.d.ts +3 -0
  294. package/dist/types/types/componentProps/sizePX.d.ts +3 -1
  295. package/dist/types/types/componentProps/stacking.d.ts +3 -1
  296. package/dist/types/types/componentProps/state.d.ts +3 -1
  297. package/dist/types/types/componentProps/stateKeys.d.ts +1 -1
  298. package/dist/types/types/componentProps/svgFill.d.ts +3 -1
  299. package/dist/types/types/componentProps/textAlign.d.ts +3 -1
  300. package/dist/types/types/componentProps/textColor.d.ts +3 -1
  301. package/dist/types/types/componentProps/textColorActive.d.ts +3 -2
  302. package/dist/types/types/componentProps/textColorHover.d.ts +3 -1
  303. package/dist/types/types/componentProps/textGradient.d.ts +3 -1
  304. package/dist/types/types/componentProps/textSize.d.ts +3 -1
  305. package/dist/types/types/componentProps/textStyle.d.ts +3 -1
  306. package/dist/types/types/componentProps/textTag.d.ts +3 -1
  307. package/dist/types/types/componentProps/textWeight.d.ts +3 -1
  308. package/dist/types/types/componentProps/textWrap.d.ts +3 -1
  309. package/dist/types/types/componentProps/titleSize.d.ts +3 -1
  310. package/dist/types/types/componentProps/type.d.ts +3 -1
  311. package/dist/types/types/componentProps/underline.d.ts +3 -1
  312. package/dist/types/types/componentProps/verticalContentAlign.d.ts +3 -1
  313. package/dist/types/types/componentProps/verticalResizeMode.d.ts +3 -1
  314. package/dist/types/types/componentProps/width.d.ts +3 -1
  315. package/dist/types/types/componentProps/wrap.d.ts +3 -1
  316. package/dist/types/types/index.d.ts +57 -57
  317. package/package.json +8 -8
  318. package/dist/cjs/constants/componentProps/align.js +0 -7
  319. package/dist/cjs/constants/componentProps/alignDirection.js +0 -7
  320. package/dist/cjs/constants/componentProps/alignment.js +0 -7
  321. package/dist/cjs/constants/componentProps/borderColor.js +0 -7
  322. package/dist/cjs/constants/componentProps/borderColorHover.js +0 -7
  323. package/dist/cjs/constants/componentProps/borderType.js +0 -7
  324. package/dist/cjs/constants/componentProps/borderWidth.js +0 -9
  325. package/dist/cjs/constants/componentProps/captionPosition.js +0 -7
  326. package/dist/cjs/constants/componentProps/direction.js +0 -7
  327. package/dist/cjs/constants/componentProps/emojiSize.js +0 -9
  328. package/dist/cjs/constants/componentProps/fill.js +0 -7
  329. package/dist/cjs/constants/componentProps/fillGradient.js +0 -7
  330. package/dist/cjs/constants/componentProps/fillHover.js +0 -7
  331. package/dist/cjs/constants/componentProps/fillType.js +0 -7
  332. package/dist/cjs/constants/componentProps/flexAlign.js +0 -7
  333. package/dist/cjs/constants/componentProps/flexJustifyContent.js +0 -7
  334. package/dist/cjs/constants/componentProps/flexWrap.js +0 -7
  335. package/dist/cjs/constants/componentProps/gridAlign.js +0 -7
  336. package/dist/cjs/constants/componentProps/gridAlignSelf.js +0 -7
  337. package/dist/cjs/constants/componentProps/gridJustifyItems.js +0 -7
  338. package/dist/cjs/constants/componentProps/gridJustifySelf.js +0 -7
  339. package/dist/cjs/constants/componentProps/height.js +0 -7
  340. package/dist/cjs/constants/componentProps/horizontalContentAlign.js +0 -7
  341. package/dist/cjs/constants/componentProps/horizontalResizeMode.js +0 -7
  342. package/dist/cjs/constants/componentProps/iconFillSize.js +0 -9
  343. package/dist/cjs/constants/componentProps/iconSize.js +0 -9
  344. package/dist/cjs/constants/componentProps/itemColor.js +0 -7
  345. package/dist/cjs/constants/componentProps/position.js +0 -7
  346. package/dist/cjs/constants/componentProps/resizeMode.js +0 -7
  347. package/dist/cjs/constants/componentProps/shape.js +0 -7
  348. package/dist/cjs/constants/componentProps/size.js +0 -7
  349. package/dist/cjs/constants/componentProps/sizeInterface.js +0 -7
  350. package/dist/cjs/constants/componentProps/sizePX.js +0 -9
  351. package/dist/cjs/constants/componentProps/stacking.js +0 -7
  352. package/dist/cjs/constants/componentProps/state.js +0 -7
  353. package/dist/cjs/constants/componentProps/textAlign.js +0 -7
  354. package/dist/cjs/constants/componentProps/textColor.js +0 -7
  355. package/dist/cjs/constants/componentProps/textColorActive.js +0 -7
  356. package/dist/cjs/constants/componentProps/textColorHover.js +0 -7
  357. package/dist/cjs/constants/componentProps/textGradient.js +0 -7
  358. package/dist/cjs/constants/componentProps/textSize.js +0 -7
  359. package/dist/cjs/constants/componentProps/textStyle.js +0 -7
  360. package/dist/cjs/constants/componentProps/textTag.js +0 -7
  361. package/dist/cjs/constants/componentProps/textWeight.js +0 -9
  362. package/dist/cjs/constants/componentProps/textWrap.js +0 -7
  363. package/dist/cjs/constants/componentProps/titleSize.js +0 -7
  364. package/dist/cjs/constants/componentProps/type.js +0 -7
  365. package/dist/cjs/constants/componentProps/underline.js +0 -7
  366. package/dist/cjs/constants/componentProps/verticalContentAlign.js +0 -7
  367. package/dist/cjs/constants/componentProps/verticalResizeMode.js +0 -7
  368. package/dist/cjs/constants/componentProps/width.js +0 -7
  369. package/dist/cjs/constants/componentProps/wrap.js +0 -7
  370. package/dist/cjs/constants.js +0 -109
  371. package/dist/constants/componentProps/align.js +0 -3
  372. package/dist/constants/componentProps/alignDirection.js +0 -3
  373. package/dist/constants/componentProps/alignment.js +0 -3
  374. package/dist/constants/componentProps/borderColor.js +0 -3
  375. package/dist/constants/componentProps/borderColorHover.js +0 -3
  376. package/dist/constants/componentProps/borderType.js +0 -3
  377. package/dist/constants/componentProps/borderWidth.js +0 -5
  378. package/dist/constants/componentProps/captionPosition.js +0 -3
  379. package/dist/constants/componentProps/direction.js +0 -3
  380. package/dist/constants/componentProps/emojiSize.js +0 -5
  381. package/dist/constants/componentProps/fill.js +0 -3
  382. package/dist/constants/componentProps/fillGradient.js +0 -3
  383. package/dist/constants/componentProps/fillHover.js +0 -3
  384. package/dist/constants/componentProps/fillType.js +0 -3
  385. package/dist/constants/componentProps/flexAlign.js +0 -3
  386. package/dist/constants/componentProps/flexJustifyContent.js +0 -3
  387. package/dist/constants/componentProps/flexWrap.js +0 -3
  388. package/dist/constants/componentProps/gridAlign.js +0 -3
  389. package/dist/constants/componentProps/gridAlignSelf.js +0 -3
  390. package/dist/constants/componentProps/gridJustifyItems.js +0 -3
  391. package/dist/constants/componentProps/gridJustifySelf.js +0 -3
  392. package/dist/constants/componentProps/height.js +0 -3
  393. package/dist/constants/componentProps/horizontalContentAlign.js +0 -3
  394. package/dist/constants/componentProps/horizontalResizeMode.js +0 -3
  395. package/dist/constants/componentProps/iconFillSize.js +0 -5
  396. package/dist/constants/componentProps/iconSize.js +0 -5
  397. package/dist/constants/componentProps/itemColor.js +0 -3
  398. package/dist/constants/componentProps/position.js +0 -3
  399. package/dist/constants/componentProps/resizeMode.js +0 -3
  400. package/dist/constants/componentProps/shape.js +0 -3
  401. package/dist/constants/componentProps/size.js +0 -3
  402. package/dist/constants/componentProps/sizeInterface.js +0 -3
  403. package/dist/constants/componentProps/sizePX.js +0 -5
  404. package/dist/constants/componentProps/stacking.js +0 -3
  405. package/dist/constants/componentProps/state.js +0 -3
  406. package/dist/constants/componentProps/textAlign.js +0 -3
  407. package/dist/constants/componentProps/textColor.js +0 -3
  408. package/dist/constants/componentProps/textColorActive.js +0 -3
  409. package/dist/constants/componentProps/textColorHover.js +0 -3
  410. package/dist/constants/componentProps/textGradient.js +0 -3
  411. package/dist/constants/componentProps/textSize.js +0 -3
  412. package/dist/constants/componentProps/textStyle.js +0 -3
  413. package/dist/constants/componentProps/textTag.js +0 -3
  414. package/dist/constants/componentProps/textWeight.js +0 -5
  415. package/dist/constants/componentProps/textWrap.js +0 -3
  416. package/dist/constants/componentProps/titleSize.js +0 -3
  417. package/dist/constants/componentProps/type.js +0 -3
  418. package/dist/constants/componentProps/underline.js +0 -3
  419. package/dist/constants/componentProps/verticalContentAlign.js +0 -3
  420. package/dist/constants/componentProps/verticalResizeMode.js +0 -3
  421. package/dist/constants/componentProps/width.js +0 -3
  422. package/dist/constants/componentProps/wrap.js +0 -3
  423. package/dist/constants.js +0 -52
  424. package/dist/stories/Accordion.stories.js +0 -105
  425. package/dist/stories/AccordionItem.stories.js +0 -150
  426. package/dist/stories/AlignItems.stories.js +0 -88
  427. package/dist/stories/AlignSelf.stories.js +0 -101
  428. package/dist/stories/Appearance.stories.js +0 -100
  429. package/dist/stories/Avatar.stories.js +0 -184
  430. package/dist/stories/Badge.stories.js +0 -115
  431. package/dist/stories/Button.stories.js +0 -110
  432. package/dist/stories/Cell.stories.js +0 -306
  433. package/dist/stories/Checkbox.stories.js +0 -124
  434. package/dist/stories/Chips.stories.js +0 -106
  435. package/dist/stories/Choice.stories.js +0 -115
  436. package/dist/stories/Code.stories.js +0 -96
  437. package/dist/stories/Columns.stories.js +0 -80
  438. package/dist/stories/DatePicker.stories.js +0 -171
  439. package/dist/stories/Direction.stories.js +0 -93
  440. package/dist/stories/Divider.stories.js +0 -131
  441. package/dist/stories/Dot.stories.js +0 -85
  442. package/dist/stories/Drawer.stories.js +0 -75
  443. package/dist/stories/Dropdown.stories.js +0 -75
  444. package/dist/stories/DropdownItem.stories.js +0 -150
  445. package/dist/stories/Flex.stories.js +0 -47
  446. package/dist/stories/FlexAlignContent.stories.js +0 -102
  447. package/dist/stories/FlexAlignItems.stories.js +0 -91
  448. package/dist/stories/FlexAlignSelf.stories.js +0 -97
  449. package/dist/stories/FlexDirection.stories.js +0 -112
  450. package/dist/stories/FlexGrow.stories.js +0 -69
  451. package/dist/stories/FlexJustifyContent.stories.js +0 -98
  452. package/dist/stories/FlexOrder.stories.js +0 -76
  453. package/dist/stories/FlexWrap.stories.js +0 -89
  454. package/dist/stories/Grid.stories.js +0 -202
  455. package/dist/stories/Group.stories.js +0 -151
  456. package/dist/stories/Icon.stories.js +0 -193
  457. package/dist/stories/Image.stories.js +0 -134
  458. package/dist/stories/Input.stories.js +0 -124
  459. package/dist/stories/InputPassword.stories.js +0 -112
  460. package/dist/stories/JustifyContent.stories.js +0 -96
  461. package/dist/stories/Label.stories.js +0 -173
  462. package/dist/stories/Loader.stories.js +0 -119
  463. package/dist/stories/Logo.stories.js +0 -99
  464. package/dist/stories/MenuItem.stories.js +0 -258
  465. package/dist/stories/Message.stories.js +0 -34
  466. package/dist/stories/ModalConfirm.stories.js +0 -60
  467. package/dist/stories/ModalDefault.stories.js +0 -33
  468. package/dist/stories/ModalSheetBottom.stories.js +0 -47
  469. package/dist/stories/Notification.stories.js +0 -105
  470. package/dist/stories/Pagination.stories.js +0 -63
  471. package/dist/stories/Radio.stories.js +0 -100
  472. package/dist/stories/Response.stories.js +0 -92
  473. package/dist/stories/SearchInput.stories.js +0 -189
  474. package/dist/stories/Segmented.stories.js +0 -109
  475. package/dist/stories/Select.stories.js +0 -333
  476. package/dist/stories/Size.stories.js +0 -99
  477. package/dist/stories/State.stories.js +0 -67
  478. package/dist/stories/Switch.stories.js +0 -84
  479. package/dist/stories/Text.stories.js +0 -172
  480. package/dist/stories/Textarea.stories.js +0 -90
  481. package/dist/stories/Tile.stories.js +0 -248
  482. package/dist/stories/Title.stories.js +0 -168
  483. package/dist/stories/Tooltip.stories.js +0 -164
  484. package/dist/stories/Wrap.stories.js +0 -74
  485. package/dist/types/types/componentProps/sizeInterface.d.ts +0 -1
@@ -1,202 +0,0 @@
1
- import { Grid, GridItem, GridRow } from '../../Grid'
2
- import { argTypes, parameters } from './args'
3
-
4
- export default {
5
- argTypes: {
6
- ...argTypes,
7
- },
8
- component: Grid,
9
- parameters: {
10
- ...parameters,
11
- },
12
- title: 'Layout / Grid / Variants',
13
- }
14
-
15
- const Default = {
16
- args: {
17
- width: '600',
18
- height: '400',
19
- padding: '20',
20
- gap: 10,
21
- borderColor: 'surfaceBorderTertiary',
22
- },
23
- }
24
-
25
- export const Regular = {
26
- args: {
27
- ...Default.args,
28
- children: (
29
- <>
30
- <GridRow gap="10" gridTemplateColumns="1fr 1fr 1fr">
31
- <GridItem fill="accentPrimary" padding="20">
32
- 1
33
- </GridItem>
34
- <GridItem fill="primaryPrimary" padding="20">
35
- 2
36
- </GridItem>
37
- <GridItem fill="secondaryPrimary" padding="20">
38
- 3
39
- </GridItem>
40
- </GridRow>
41
- <GridRow gap="10" gridTemplateColumns="1fr 1fr 1fr">
42
- <GridItem fill="infoPrimary" padding="20">
43
- 4
44
- </GridItem>
45
-
46
- <GridItem fill="surfaceQuaternary" padding="20">
47
- 5
48
- </GridItem>
49
- <GridItem fill="gradientPrimary" padding="20">
50
- 6
51
- </GridItem>
52
- </GridRow>
53
- </>
54
- ),
55
- },
56
- }
57
-
58
- export const VariantOne = {
59
- args: {
60
- ...Default.args,
61
- children: (
62
- <GridRow gap="10" gridTemplateColumns="1fr 1fr 1fr">
63
- <GridItem fill="accentPrimary" padding="20">
64
- 1
65
- </GridItem>
66
- <GridItem fill="primaryPrimary" padding="20">
67
- 2
68
- </GridItem>
69
- <GridItem fill="secondaryPrimary" padding="20">
70
- 3
71
- </GridItem>
72
- </GridRow>
73
- ),
74
- },
75
- }
76
-
77
- export const VariantTwo = {
78
- args: {
79
- ...Default.args,
80
- children: (
81
- <>
82
- <GridRow gap="10" gridTemplateColumns="1fr 1fr">
83
- <GridItem fill="accentPrimary" padding="20">
84
- 1
85
- </GridItem>
86
- <GridItem fill="primaryPrimary" padding="20">
87
- 2
88
- </GridItem>
89
- </GridRow>
90
- <GridRow gap="10" gridTemplateColumns="1fr 1fr">
91
- <GridItem fill="secondaryPrimary" padding="20">
92
- 3
93
- </GridItem>
94
- <GridItem fill="infoPrimary" padding="20">
95
- 4
96
- </GridItem>
97
- </GridRow>
98
- </>
99
- ),
100
- },
101
- }
102
-
103
- export const VariantThree = {
104
- args: {
105
- ...Default.args,
106
- children: (
107
- <>
108
- <GridRow gap="10" gridTemplateColumns="1fr 1fr">
109
- <GridItem fill="accentPrimary" padding="20" gridRow="span 2">
110
- 1
111
- </GridItem>
112
- <GridItem fill="primaryPrimary" padding="20">
113
- 2
114
- </GridItem>
115
- <GridItem fill="secondaryPrimary" padding="20">
116
- 3
117
- </GridItem>
118
- </GridRow>
119
- </>
120
- ),
121
- },
122
- }
123
-
124
- export const VariantFour = {
125
- args: {
126
- ...Default.args,
127
- children: (
128
- <>
129
- <GridRow gap="10" gridTemplateColumns="1fr 1fr">
130
- <GridItem fill="accentPrimary" padding="20" gridColumn="span 2">
131
- 1
132
- </GridItem>
133
- <GridItem fill="primaryPrimary" padding="20">
134
- 2
135
- </GridItem>
136
- <GridItem fill="secondaryPrimary" padding="20">
137
- 3
138
- </GridItem>
139
- </GridRow>
140
- </>
141
- ),
142
- },
143
- }
144
-
145
- export const VariantFive = {
146
- args: {
147
- ...Default.args,
148
- children: (
149
- <>
150
- <GridRow gap="10" gridTemplateColumns="1fr 1fr">
151
- <GridItem fill="accentPrimary" padding="20" gridColumn="span 2">
152
- 1
153
- </GridItem>
154
- <GridItem fill="primaryPrimary" padding="20">
155
- 2
156
- </GridItem>
157
- <GridItem fill="secondaryPrimary" padding="20" gridRow="span 2">
158
- 3
159
- </GridItem>
160
- <GridItem fill="infoPrimary" padding="20">
161
- 4
162
- </GridItem>
163
- <GridItem fill="surfaceQuaternary" padding="20" gridColumn="span 2">
164
- 5
165
- </GridItem>
166
- </GridRow>
167
- </>
168
- ),
169
- },
170
- }
171
-
172
- export const VariantSix = {
173
- args: {
174
- ...Default.args,
175
- children: (
176
- <>
177
- <GridRow gap="10" gridTemplateColumns="1fr 1fr 1fr">
178
- <GridItem fill="accentPrimary" padding="20">
179
- 1
180
- </GridItem>
181
- <GridItem fill="primaryPrimary" padding="20" gridColumn="span 2">
182
- 2
183
- </GridItem>
184
-
185
- <GridItem fill="secondaryPrimary" padding="20" gridColumn="span 2">
186
- 3
187
- </GridItem>
188
- <GridItem fill="infoPrimary" padding="20" gridRow="span 2">
189
- 4
190
- </GridItem>
191
-
192
- <GridItem fill="surfaceQuaternary" padding="20">
193
- 5
194
- </GridItem>
195
- <GridItem fill="gradientPrimary" padding="20">
196
- 6
197
- </GridItem>
198
- </GridRow>
199
- </>
200
- ),
201
- },
202
- }
@@ -1,151 +0,0 @@
1
- import {
2
- directionProps,
3
- fillProps,
4
- shapeProps,
5
- stackingProps,
6
- widthProps,
7
- wrapProps,
8
- } from '../../../constants'
9
- import { badgeAppearance, badgeConfig } from '../../Badge'
10
- import { Tab, tabConfig } from '../Tab'
11
- import { tabAppearance } from '../Tab.appearance'
12
- import { TabGroup } from '../TabGroup'
13
-
14
- badgeConfig.setAppearance(badgeAppearance)
15
- tabConfig.setAppearance(tabAppearance)
16
-
17
- const tabs = {
18
- 1: {
19
- isActive: true,
20
- badgeValue: 3,
21
- label: 'Все',
22
- },
23
- 2: {
24
- isActive: false,
25
- badgeValue: null,
26
- label: 'Непрочитанные',
27
- },
28
- 3: {
29
- isActive: false,
30
- badgeValue: null,
31
- label: 'Прочитанные',
32
- },
33
- }
34
-
35
- let currentTabIndex = ''
36
-
37
- function setTabIndex(index) {
38
- currentTabIndex = index
39
- }
40
-
41
- export default {
42
- argTypes: {
43
- id: {
44
- if: { arg: 'advancedProps' },
45
- },
46
- width: {
47
- control: 'inline-radio',
48
- options: widthProps,
49
- },
50
- direction: {
51
- control: 'inline-radio',
52
- options: directionProps,
53
- },
54
- advancedProps: { control: 'boolean' },
55
- className: {
56
- if: { arg: 'advancedProps' },
57
- },
58
- columns: {
59
- if: { arg: 'advancedProps' },
60
- },
61
- fill: {
62
- control: 'select',
63
- options: fillProps,
64
- },
65
- horizontalScroll: {
66
- control: 'boolean',
67
- },
68
- set: {
69
- if: { arg: 'advancedProps' },
70
- },
71
- shape: {
72
- control: 'select',
73
- if: { arg: 'advancedProps' },
74
- options: shapeProps,
75
- },
76
- stacking: {
77
- control: 'inline-radio',
78
- if: { arg: 'advancedProps' },
79
- options: stackingProps,
80
- },
81
- wrap: {
82
- control: 'inline-radio',
83
- options: wrapProps,
84
- },
85
- },
86
- component: TabGroup,
87
- parameters: {
88
- controls: {
89
- exclude: [
90
- 'direction',
91
- 'directionDesktop',
92
- 'directionMobile',
93
- 'directionTablet',
94
- 'fillDesktop',
95
- 'fillMobile',
96
- 'fillTablet',
97
- 'contentAlign',
98
- 'contentAlignDesktop',
99
- 'contentAlignMobile',
100
- 'contentAlignTablet',
101
- 'stackingDesktop',
102
- 'stackingMobile',
103
- 'stackingTablet',
104
- 'wrapDesktop',
105
- 'wrapMobile',
106
- 'wrapTablet',
107
- 'shapeDesktop',
108
- 'shapeMobile',
109
- 'shapeTablet',
110
- 'spaceBetweenItems',
111
- 'spaceBetweenItemsDesktop',
112
- 'spaceBetweenItemsMobile',
113
- 'spaceBetweenItemsTablet',
114
- 'widthDesktop',
115
- 'widthMobile',
116
- 'widthTablet',
117
- 'columnsDesktop',
118
- 'columnsMobile',
119
- 'columnsTablet',
120
- ],
121
- },
122
- },
123
- title: 'Atoms / Tab / TabGroup',
124
- }
125
-
126
- export const Default = {
127
- args: {
128
- children: (
129
- <>
130
- {Object.entries(tabs).map(([index, tabItem]) => (
131
- <Tab
132
- key={index}
133
- labelTextSize="s"
134
- appearance="any"
135
- badgeAppearance="accent"
136
- badgeSize="xs"
137
- badgeTextSize="xxs"
138
- badgeValue={Boolean(tabItem.badgeValue) && tabItem.badgeValue}
139
- dividerFill={tabItem.isActive ? 'surfaceItemAccent' : 'surfaceTertiary'}
140
- label={tabItem.label}
141
- labelColor={tabItem.isActive ? 'surfaceTextAccent' : 'surfaceTextPrimary'}
142
- size="l"
143
- isActive={index === currentTabIndex}
144
- onClick={() => setTabIndex(index)}
145
- />
146
- ))}
147
- </>
148
- ),
149
- direction: 'horizontal',
150
- },
151
- }
@@ -1,193 +0,0 @@
1
- import {
2
- borderColorHoverProps,
3
- borderColorProps,
4
- borderTypeProps,
5
- borderWidthProps,
6
- fillHoverProps,
7
- fillProps,
8
- shapeProps,
9
- sizePXProps,
10
- } from '../../../constants'
11
- import { Badge, badgeAppearance, badgeConfig } from '../../Badge'
12
- import { Icon, iconConfig } from '../Icon'
13
- import { iconAppearance } from '../Icon.appearance'
14
-
15
- badgeConfig.setAppearance(badgeAppearance)
16
- iconConfig.setAppearance(iconAppearance)
17
-
18
- export default {
19
- argTypes: {
20
- borderWidth: {
21
- control: 'select',
22
- options: borderWidthProps,
23
- },
24
- borderColor: {
25
- control: 'select',
26
- options: borderColorProps,
27
- },
28
- advancedProps: { control: 'boolean' },
29
- borderColorHover: {
30
- control: 'select',
31
- options: borderColorHoverProps,
32
- },
33
- borderType: {
34
- control: 'inline-radio',
35
- options: borderTypeProps,
36
- },
37
- className: {
38
- if: { arg: 'advancedProps' },
39
- },
40
- dataTour: {
41
- if: { arg: 'advancedProps' },
42
- },
43
- fill: {
44
- control: 'select',
45
- options: fillProps,
46
- },
47
- fillHover: {
48
- control: 'select',
49
- options: fillHoverProps,
50
- },
51
- fillSize: {
52
- control: 'select',
53
- options: sizePXProps,
54
- },
55
- iconFill: {
56
- control: 'select',
57
- options: fillProps,
58
- },
59
- iconFillHover: {
60
- control: 'select',
61
- options: fillProps,
62
- },
63
- iconSize: {
64
- control: 'select',
65
- options: sizePXProps,
66
- },
67
- LinkComponent: {
68
- if: { arg: 'advancedProps' },
69
- },
70
- shape: {
71
- control: 'inline-radio',
72
- options: shapeProps,
73
- },
74
- SvgImage: {
75
- if: { arg: 'advancedProps' },
76
- },
77
- onClick: {
78
- if: { arg: 'advancedProps' },
79
- },
80
- },
81
- component: Icon,
82
- parameters: {
83
- controls: {
84
- exclude: [
85
- 'textColor',
86
- 'textColorHover',
87
- 'fillDesktop',
88
- 'fillMobile',
89
- 'fillTablet',
90
- 'fillSizeDesktop',
91
- 'fillSizeMobile',
92
- 'fillSizeTablet',
93
- 'shapeDesktop',
94
- 'shapeMobile',
95
- 'shapeTablet',
96
- 'size',
97
- 'sizeDesktop',
98
- 'sizeMobile',
99
- 'sizeTablet',
100
- 'height',
101
- 'href',
102
- 'link',
103
- 'linkRel',
104
- 'linkTarget',
105
- 'width',
106
- ],
107
- },
108
- },
109
- title: 'Atoms / Icon',
110
- }
111
-
112
- export const Default = {
113
- args: {
114
- fill: 'surfaceSecondary',
115
- fillHover: 'surfaceSecondaryHover',
116
- fillSize: '40',
117
- iconFill: 'surfaceItemPrimary',
118
- iconSize: '24',
119
- imageSrc: 'assets/24/Bell.svg',
120
- shape: 'circular',
121
- },
122
- }
123
-
124
- export const WithBadge = {
125
- args: {
126
- Badge: <Badge position="absolute" appearance="accent" size="xs" textSize="xxs" value={3} />,
127
- fill: 'surfaceSecondary',
128
- fillHover: 'surfaceSecondaryHover',
129
- fillSize: '40',
130
- iconFill: 'surfaceItemPrimary',
131
- iconSize: '24',
132
- imageSrc: 'assets/24/Bell.svg',
133
- shape: 'circular',
134
- },
135
- }
136
-
137
- export const WithTooltip = {
138
- args: {
139
- width: '16',
140
- alignment: 'topRight',
141
- iconFill: 'surfaceItemPrimary',
142
- imageSrc: 'assets/16/Search.svg',
143
- showTooltip: true,
144
- tooltipAppearance: 'surfaceTertiary',
145
- tooltipText: 'Search',
146
- tooltipTextSize: 'm',
147
- },
148
- }
149
-
150
- export const Size14 = {
151
- args: {
152
- fill: 'surfaceSecondary',
153
- fillHover: 'surfaceSecondaryHover',
154
- fillSize: '24',
155
- iconFill: 'surfaceItemPrimary',
156
- iconSize: '14',
157
- imageSrc: 'assets/14/Remove.svg',
158
- shape: 'circular',
159
- },
160
- }
161
-
162
- export const Size16 = {
163
- args: {
164
- fill: 'surfaceSecondary',
165
- fillHover: 'surfaceSecondaryHover',
166
- fillSize: '32',
167
- iconFill: 'surfaceItemPrimary',
168
- iconSize: '16',
169
- imageSrc: 'assets/16/Search.svg',
170
- shape: 'circular',
171
- },
172
- }
173
-
174
- export const Size24 = {
175
- args: {
176
- fill: 'surfaceSecondary',
177
- fillHover: 'surfaceSecondaryHover',
178
- fillSize: '40',
179
- iconFill: 'surfaceItemPrimary',
180
- iconSize: '24',
181
- imageSrc: 'assets/24/Delete.svg',
182
- shape: 'circular',
183
- },
184
- }
185
-
186
- export const Size40 = {
187
- args: {
188
- fillHover: 'surfaceSecondaryHover',
189
- iconSize: '40',
190
- imageSrc: 'assets/40/Close.svg',
191
- shape: 'circular',
192
- },
193
- }
@@ -1,134 +0,0 @@
1
- import { borderColorProps, fillProps, shapeProps } from '../../../constants'
2
- import { Image } from '../Image'
3
-
4
- export default {
5
- argTypes: {
6
- children: {
7
- if: { arg: 'advancedProps' },
8
- },
9
- resizeMode: {
10
- control: 'inline-radio',
11
- options: [null, 'cover', 'contain'],
12
- },
13
- advancedProps: { control: 'boolean' },
14
- after: {
15
- if: { arg: 'advancedProps' },
16
- },
17
- before: {
18
- if: { arg: 'advancedProps' },
19
- },
20
- border: {
21
- control: 'select',
22
- options: borderColorProps,
23
- },
24
- borderColorImage: {
25
- if: { arg: 'advancedProps' },
26
- },
27
- caption: {
28
- if: { arg: 'advancedProps' },
29
- },
30
- className: {
31
- if: { arg: 'advancedProps' },
32
- },
33
- fill: {
34
- control: 'select',
35
- options: fillProps,
36
- },
37
- imageClassName: {
38
- if: { arg: 'advancedProps' },
39
- },
40
- imageHeight: {
41
- if: { arg: 'advancedProps' },
42
- },
43
- imageWidth: {
44
- if: { arg: 'advancedProps' },
45
- },
46
- imgWrapClassName: {
47
- if: { arg: 'advancedProps' },
48
- },
49
- overlay: {
50
- if: { arg: 'advancedProps' },
51
- },
52
- shape: {
53
- control: 'inline-radio',
54
- options: shapeProps,
55
- },
56
- style: {
57
- if: { arg: 'advancedProps' },
58
- },
59
- title: {
60
- if: { arg: 'advancedProps' },
61
- },
62
- type: {
63
- control: 'inline-radio',
64
- options: [null, 'cover'],
65
- },
66
- onClick: {
67
- if: { arg: 'advancedProps' },
68
- },
69
- onError: {
70
- if: { arg: 'advancedProps' },
71
- },
72
- },
73
- component: Image,
74
- parameters: {
75
- controls: {
76
- exclude: [
77
- 'borderColorImageDesktop',
78
- 'borderColorImageMobile',
79
- 'borderColorImageTablet',
80
- 'resizeModeDesktop',
81
- 'resizeModeMobile',
82
- 'resizeModeTablet',
83
- 'shapeDesktop',
84
- 'shapeMobile',
85
- 'shapeTablet',
86
- 'сontentX',
87
- 'сontentXDesktop',
88
- 'сontentXMobile',
89
- 'сontentXTablet',
90
- 'сontentY',
91
- 'сontentYDesktop',
92
- 'сontentYMobile',
93
- 'сontentYTablet',
94
- 'imageWidthDesktop',
95
- 'imageWidthMobile',
96
- 'imageWidthTablet',
97
- ],
98
- },
99
- },
100
- title: 'Atoms / Image',
101
- }
102
-
103
- const Default = {
104
- args: {
105
- resizeMode: 'contain',
106
- alt: 'placeholder',
107
- fill: 'surfaceTertiary',
108
- shape: 'rounded',
109
- src: 'assets/img/tomato.png',
110
- },
111
- }
112
-
113
- export const Rectangular = {
114
- args: {
115
- ...Default.args,
116
- },
117
- }
118
-
119
- export const Circular = {
120
- args: {
121
- ...Default.args,
122
- width: 150,
123
- height: 150,
124
- resizeMode: 'cover',
125
- shape: 'circular',
126
- },
127
- }
128
-
129
- export const SkeletonMode = {
130
- args: {
131
- ...Default.args,
132
- mode: 'skeleton',
133
- },
134
- }