@itcase/ui 1.8.27 → 1.8.30

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 (457) hide show
  1. package/dist/{Avatar_cjs_D84VawE9.js → Avatar_cjs_33OrnLtt.js} +36 -99
  2. package/dist/{Avatar_es_CUnfNViT.js → Avatar_es_B3LiV8MM.js} +36 -99
  3. package/dist/{Button_cjs_CYUpbdMO.js → Button_cjs_C05Joa8j.js} +3 -3
  4. package/dist/{Button_es_Dp6yFZgn.js → Button_es_CO_dwo-N.js} +3 -3
  5. package/dist/{ChipsGroup_cjs_Ct-NrPmJ.js → ChipsGroup_cjs_DN9BoTKe.js} +13 -10
  6. package/dist/{ChipsGroup_es_BNuhlSG6.js → ChipsGroup_es_D9aK8Roh.js} +13 -10
  7. package/dist/{DatePicker_cjs_DamcZFbX.js → DatePicker_cjs_B_OWDm9X.js} +15 -26
  8. package/dist/{DatePicker_es_Bm_onmmb.js → DatePicker_es_BCbmUdl0.js} +15 -26
  9. package/dist/Divider_cjs_BmCJj3TN.js +99 -0
  10. package/dist/Divider_es_kY-30pft.js +95 -0
  11. package/dist/{DropdownItem_cjs_B_7anyaJ.js → DropdownItem_cjs_DPoFy70W.js} +27 -20
  12. package/dist/{DropdownItem_es_B4EZYdJA.js → DropdownItem_es_CVztMEm0.js} +27 -20
  13. package/dist/{Label_cjs_ByGAWJcj.js → Label_cjs_BefEcq6i.js} +15 -15
  14. package/dist/{Label_es_BtwZ3a2V.js → Label_es_Dl_DrMOh.js} +15 -15
  15. package/dist/{Loader_cjs___VikiqS.js → Loader_cjs_CCrbD8Em.js} +1 -1
  16. package/dist/{Loader_es_DHKB6tTw.js → Loader_es_B2auu_rc.js} +1 -1
  17. package/dist/Overlay_cjs_CFOtnzDU.js +42 -0
  18. package/dist/Overlay_es_DczPjVL9.js +38 -0
  19. package/dist/{Text_cjs_DPhKj3wf.js → Text_cjs_C9fOm0nd.js} +0 -7
  20. package/dist/{Text_es_BRb3qqKM.js → Text_es_BfLRfj-5.js} +0 -7
  21. package/dist/{Tooltip_cjs_CaocDcQ5.js → Tooltip_cjs_pBGCcXLZ.js} +169 -310
  22. package/dist/{Tooltip_es_D1w1s33u.js → Tooltip_es_frBCZDrO.js} +169 -310
  23. package/dist/cjs/components/Accordion.js +61 -75
  24. package/dist/cjs/components/Avatar.js +3 -3
  25. package/dist/cjs/components/AvatarStack/stories/__mock__.js +28 -0
  26. package/dist/cjs/components/AvatarStack.js +41 -9
  27. package/dist/cjs/components/Badge.js +2 -2
  28. package/dist/cjs/components/Breadcrumbs.js +2 -2
  29. package/dist/cjs/components/Button.js +4 -4
  30. package/dist/cjs/components/Cell/stories/__mock__.js +14 -0
  31. package/dist/cjs/components/Cell.js +84 -42
  32. package/dist/cjs/components/Checkbox.js +49 -56
  33. package/dist/cjs/components/Checkmark.js +51 -14
  34. package/dist/cjs/components/Chips.js +3 -3
  35. package/dist/cjs/components/Choice.js +10 -10
  36. package/dist/cjs/components/Code.js +17 -26
  37. package/dist/cjs/components/CookiesWarning.js +34 -16
  38. package/dist/cjs/components/DatePeriod.js +48 -11
  39. package/dist/cjs/components/DatePicker.js +6 -6
  40. package/dist/cjs/components/Divider.js +1 -1
  41. package/dist/cjs/components/Drawer.js +35 -6
  42. package/dist/cjs/components/Dropdown/stories/__mock__.js +24 -0
  43. package/dist/cjs/components/Dropdown.js +4 -4
  44. package/dist/cjs/components/HeroTitle.js +9 -5
  45. package/dist/cjs/components/Icon.js +2 -2
  46. package/dist/cjs/components/InputPassword.js +2 -2
  47. package/dist/cjs/components/Label.js +3 -3
  48. package/dist/cjs/components/Loader.js +2 -2
  49. package/dist/cjs/components/MenuItem.js +10 -10
  50. package/dist/cjs/components/Modal.js +4 -4
  51. package/dist/cjs/components/Notification/stories/__mock__.js +30 -0
  52. package/dist/cjs/components/Notification.js +83 -101
  53. package/dist/cjs/components/Overlay.js +1 -1
  54. package/dist/cjs/components/Pagination.js +4 -4
  55. package/dist/cjs/components/Radio.js +123 -31
  56. package/dist/cjs/components/Response.js +21 -7
  57. package/dist/cjs/components/Search.js +60 -98
  58. package/dist/cjs/components/Segmented.js +6 -6
  59. package/dist/cjs/components/Select.js +3 -3
  60. package/dist/cjs/components/Swiper.js +2 -2
  61. package/dist/cjs/components/Switch.js +68 -195
  62. package/dist/cjs/components/Tab.js +11 -11
  63. package/dist/cjs/components/Text.js +1 -1
  64. package/dist/cjs/components/Tile.js +72 -45
  65. package/dist/cjs/components/Title.js +2 -2
  66. package/dist/cjs/components/Tooltip.js +2 -2
  67. package/dist/cjs/components/Video/stories/__mocks__.js +10 -0
  68. package/dist/cjs/components/Video.js +2 -9
  69. package/dist/cjs/context/Notifications.js +2 -1
  70. package/dist/components/Accordion.js +62 -75
  71. package/dist/components/Avatar.js +3 -3
  72. package/dist/components/AvatarStack/stories/__mock__.js +26 -0
  73. package/dist/components/AvatarStack.js +41 -9
  74. package/dist/components/Badge.js +2 -2
  75. package/dist/components/Breadcrumbs.js +2 -2
  76. package/dist/components/Button.js +4 -4
  77. package/dist/components/Cell/stories/__mock__.js +12 -0
  78. package/dist/components/Cell.js +84 -42
  79. package/dist/components/Checkbox.js +49 -56
  80. package/dist/components/Checkmark.js +51 -14
  81. package/dist/components/Chips.js +3 -3
  82. package/dist/components/Choice.js +10 -10
  83. package/dist/components/Code.js +17 -26
  84. package/dist/components/CookiesWarning.js +34 -17
  85. package/dist/components/DatePeriod.js +48 -11
  86. package/dist/components/DatePicker.js +6 -6
  87. package/dist/components/Divider.js +1 -1
  88. package/dist/components/Drawer.js +35 -6
  89. package/dist/components/Dropdown/stories/__mock__.js +22 -0
  90. package/dist/components/Dropdown.js +4 -4
  91. package/dist/components/HeroTitle.js +10 -6
  92. package/dist/components/Icon.js +2 -2
  93. package/dist/components/InputPassword.js +2 -2
  94. package/dist/components/Label.js +3 -3
  95. package/dist/components/Loader.js +2 -2
  96. package/dist/components/MenuItem.js +10 -10
  97. package/dist/components/Modal.js +4 -4
  98. package/dist/components/Notification/stories/__mock__.js +28 -0
  99. package/dist/components/Notification.js +80 -98
  100. package/dist/components/Overlay.js +1 -1
  101. package/dist/components/Pagination.js +4 -4
  102. package/dist/components/Radio.js +124 -31
  103. package/dist/components/Response.js +21 -7
  104. package/dist/components/Search.js +60 -98
  105. package/dist/components/Segmented.js +6 -6
  106. package/dist/components/Select.js +3 -3
  107. package/dist/components/Swiper.js +2 -2
  108. package/dist/components/Switch.js +68 -195
  109. package/dist/components/Tab.js +11 -11
  110. package/dist/components/Text.js +1 -1
  111. package/dist/components/Tile.js +72 -45
  112. package/dist/components/Title.js +2 -2
  113. package/dist/components/Tooltip.js +2 -2
  114. package/dist/components/Video/stories/__mocks__.js +8 -0
  115. package/dist/components/Video.js +2 -9
  116. package/dist/context/Notifications.js +2 -1
  117. package/dist/css/components/Accordion/Accordion.css +64 -19
  118. package/dist/css/components/Avatar/Avatar.css +44 -16
  119. package/dist/css/components/AvatarStack/AvatarStack.css +38 -3
  120. package/dist/css/components/Badge/Badge.css +1 -1
  121. package/dist/css/components/Button/Button.css +1 -0
  122. package/dist/css/components/Cell/Cell.css +31 -41
  123. package/dist/css/components/Checkbox/Checkbox.css +63 -38
  124. package/dist/css/components/Code/Code.css +36 -6
  125. package/dist/css/components/CookiesWarning/CookiesWarning.css +3 -0
  126. package/dist/css/components/Divider/Divider.css +24 -0
  127. package/dist/css/components/Drawer/Drawer.css +11 -0
  128. package/dist/css/components/Dropdown/Dropdown.css +9 -24
  129. package/dist/css/components/Flex/Flex.css +4 -2
  130. package/dist/css/components/Flex/css/__item/flex__item_shape.css +1 -1
  131. package/dist/css/components/Grid/Grid.css +7 -83
  132. package/dist/css/components/Grid/css/__item/grid__item_column.css +1 -12
  133. package/dist/css/components/Group/Group.css +54 -11
  134. package/dist/css/components/HeroTitle/HeroTitle.css +22 -18
  135. package/dist/css/components/Link/Link.css +0 -1
  136. package/dist/css/components/Notification/Notification.css +69 -78
  137. package/dist/css/components/Notification/css/__item/notification__item.css +22 -0
  138. package/dist/css/components/Notification/css/__item/notification__item_position_float.css +13 -0
  139. package/dist/css/components/Notification/css/__item/notification__item_position_toast.css +17 -0
  140. package/dist/css/components/Notification/css/__item/notification__item_skeleton.css +25 -0
  141. package/dist/css/components/Notification/css/__item/notification__item_status.css +8 -8
  142. package/dist/css/components/Overlay/Overlay.css +0 -5
  143. package/dist/css/components/Radio/Radio.css +6 -63
  144. package/dist/css/components/Response/Response.css +24 -0
  145. package/dist/css/components/Search/Search.css +36 -15
  146. package/dist/css/components/Search/css/search-input/search-input_skeleton.css +25 -0
  147. package/dist/css/components/Switch/Switch.css +10 -17
  148. package/dist/css/components/Tab/Tab.css +45 -12
  149. package/dist/css/components/Text/Text.css +3 -3
  150. package/dist/css/components/Tile/Tile.css +64 -22
  151. package/dist/css/components/Title/Title.css +36 -26
  152. package/dist/css/components/Tooltip/Tooltip.css +95 -42
  153. package/dist/css/components/Video/Video.css +1 -1
  154. package/dist/css/styles/blur/blur.css +9 -0
  155. package/dist/css/styles/border-color/border-color.css +3 -0
  156. package/dist/css/styles/elevation/elevation.css +1 -1
  157. package/dist/css/styles/elevation/elevation_hover.css +1 -1
  158. package/dist/css/styles/opacity/opacity.css +2 -1
  159. package/dist/stories/AccordionOverview.mdx +12 -0
  160. package/dist/stories/AccordionPlayground.mdx +10 -0
  161. package/dist/stories/AvatarOverview.mdx +19 -0
  162. package/dist/stories/AvatarPlayground.mdx +10 -0
  163. package/dist/stories/AvatarStackOverview.mdx +13 -0
  164. package/dist/stories/AvatarStackPlayground.mdx +8 -0
  165. package/dist/stories/BadgeOverview.mdx +13 -0
  166. package/dist/stories/BadgePlayground.mdx +8 -0
  167. package/dist/stories/BreadcrumbsOverview.mdx +14 -0
  168. package/dist/stories/{Plsyground.mdx → BreadcrumbsPlsyground.mdx} +1 -1
  169. package/dist/stories/ButtonOverview.mdx +12 -0
  170. package/dist/stories/ButtonPlayground.mdx +10 -0
  171. package/dist/stories/CellOverview.mdx +21 -0
  172. package/dist/stories/CellPlayground.mdx +10 -0
  173. package/dist/stories/CheckboxOverview.mdx +12 -0
  174. package/dist/stories/CheckboxPlayground.mdx +10 -0
  175. package/dist/stories/CheckmarkOverview.mdx +12 -0
  176. package/dist/stories/CheckmarkPlayground.mdx +10 -0
  177. package/dist/stories/ChipsOverview.mdx +37 -0
  178. package/dist/stories/ChipsPlayground.mdx +10 -0
  179. package/dist/stories/ChoiceOverview.mdx +11 -0
  180. package/dist/stories/ChoicePlayground.mdx +10 -0
  181. package/dist/stories/CodeOverview.mdx +11 -0
  182. package/dist/stories/CodePlayground.mdx +10 -0
  183. package/dist/stories/CookiesWarningOverview.mdx +13 -0
  184. package/dist/stories/CookiesWarningPlayground.mdx +11 -0
  185. package/dist/stories/DadataHintFieldOverview.mdx +11 -0
  186. package/dist/stories/DatePeriodOverview.mdx +9 -0
  187. package/dist/stories/DatePeriodPlayground.mdx +10 -0
  188. package/dist/stories/DatePickerOverview.mdx +12 -0
  189. package/dist/stories/DatePickerPlayground.mdx +10 -0
  190. package/dist/stories/DividerOverview.mdx +11 -0
  191. package/dist/stories/DividerPlayground.mdx +10 -0
  192. package/dist/stories/DotOverview.mdx +11 -0
  193. package/dist/stories/DotPlayground.mdx +10 -0
  194. package/dist/stories/DrawerOverview.mdx +14 -0
  195. package/dist/stories/DrawerPlayground.mdx +10 -0
  196. package/dist/stories/DropdownOverview.mdx +11 -0
  197. package/dist/stories/DropdownPlayground.mdx +10 -0
  198. package/dist/stories/FlexAlignItems.mdx +73 -0
  199. package/dist/stories/FlexAlignSelf.mdx +84 -0
  200. package/dist/stories/FlexDirection.mdx +106 -0
  201. package/dist/stories/FlexJustifyContent.mdx +87 -0
  202. package/dist/stories/FlexOverview.mdx +48 -0
  203. package/dist/stories/FlexPlayground.mdx +10 -0
  204. package/dist/stories/FlexWrap.mdx +60 -0
  205. package/dist/stories/GridOverview.mdx +12 -0
  206. package/dist/stories/GridPlayground.mdx +10 -0
  207. package/dist/stories/GroupOverview.mdx +22 -0
  208. package/dist/stories/GroupPlayground.mdx +10 -0
  209. package/dist/stories/HTMLContentOverview.mdx +11 -0
  210. package/dist/stories/HTMLContentPlayground.mdx +10 -0
  211. package/dist/stories/HeroTitleOverview.mdx +36 -0
  212. package/dist/stories/HeroTitlePlayground.mdx +10 -0
  213. package/dist/stories/IconOverview.mdx +16 -0
  214. package/dist/stories/IconPlayground.mdx +10 -0
  215. package/dist/stories/ImageOverview.mdx +11 -0
  216. package/dist/stories/ImagePlayground.mdx +10 -0
  217. package/dist/stories/InputOverview.mdx +11 -0
  218. package/dist/stories/InputPasswordOverview.mdx +11 -0
  219. package/dist/stories/InputPasswordPlayground.mdx +10 -0
  220. package/dist/stories/InputPlayground.mdx +10 -0
  221. package/dist/stories/LabelOverview.mdx +11 -0
  222. package/dist/stories/LabelPlayground.mdx +10 -0
  223. package/dist/stories/LinkOverview.mdx +20 -0
  224. package/dist/stories/LinkPlayground.mdx +10 -0
  225. package/dist/stories/ListOverview.mdx +14 -0
  226. package/dist/stories/ListPlayground.mdx +10 -0
  227. package/dist/stories/LoaderOverview.mdx +11 -0
  228. package/dist/stories/LoaderPlayground.mdx +10 -0
  229. package/dist/stories/LogoOverview.mdx +24 -0
  230. package/dist/stories/LogoPlayground.mdx +10 -0
  231. package/dist/stories/MenuItemOverview.mdx +11 -0
  232. package/dist/stories/MenuItemPlayground.mdx +10 -0
  233. package/dist/stories/ModalOverview.mdx +15 -0
  234. package/dist/stories/ModalPlayground.mdx +10 -0
  235. package/dist/stories/ModalSheetBottomOverview.mdx +9 -0
  236. package/dist/stories/NotificationOverview.mdx +13 -0
  237. package/dist/stories/NotificationPlayground.mdx +10 -0
  238. package/dist/stories/OverlayOverview.mdx +12 -0
  239. package/dist/stories/OverlayPlayground.mdx +10 -0
  240. package/dist/stories/Overview.mdx +5 -15
  241. package/dist/stories/Playground.mdx +4 -4
  242. package/dist/stories/RadioOverview.mdx +12 -0
  243. package/dist/stories/RadioPlayground.mdx +10 -0
  244. package/dist/stories/ResponseOverview.mdx +11 -0
  245. package/dist/stories/ResponsePlayground.mdx +10 -0
  246. package/dist/stories/SVGContentOverview.mdx +15 -0
  247. package/dist/stories/SVGContentPlayground.mdx +10 -0
  248. package/dist/stories/SearchOverview.mdx +11 -0
  249. package/dist/stories/SearchPlayground.mdx +11 -0
  250. package/dist/stories/SegmentedOverview.mdx +12 -0
  251. package/dist/stories/SegmentedPlayground.mdx +10 -0
  252. package/dist/stories/SwiperOverview.mdx +28 -0
  253. package/dist/stories/SwiperPlayground.mdx +10 -0
  254. package/dist/stories/SwitchOverview.mdx +15 -0
  255. package/dist/stories/SwitchPlayground.mdx +10 -0
  256. package/dist/stories/TabOverview.mdx +25 -0
  257. package/dist/stories/TabPlayground.mdx +10 -0
  258. package/dist/stories/TextOverview.mdx +40 -0
  259. package/dist/stories/TextPlayground.mdx +10 -0
  260. package/dist/stories/TileOverview.mdx +11 -0
  261. package/dist/stories/TilePlayground.mdx +10 -0
  262. package/dist/stories/TitleOverview.mdx +12 -0
  263. package/dist/stories/TitlePlayground.mdx +10 -0
  264. package/dist/stories/TooltipOverview.mdx +11 -0
  265. package/dist/stories/TooltipPlayground.mdx +10 -0
  266. package/dist/stories/VideoOverview.mdx +21 -0
  267. package/dist/stories/VideoPlayground.mdx +10 -0
  268. package/dist/types/components/Accordion/Accordion.d.ts +2 -3
  269. package/dist/types/components/Accordion/appearance/accordionSize.d.ts +27 -35
  270. package/dist/types/components/Accordion/appearance/accordionStyle.d.ts +4 -6
  271. package/dist/types/components/Accordion/appearance/accordionSurface.d.ts +15 -5
  272. package/dist/types/components/Accordion/index.d.ts +2 -2
  273. package/dist/types/components/Avatar/Avatar.interface.d.ts +1 -0
  274. package/dist/types/components/Avatar/appearance/{avatarSurface.d.ts → avatarDefault.d.ts} +6 -5
  275. package/dist/types/components/Avatar/appearance/avatarSize.d.ts +9 -0
  276. package/dist/types/components/Avatar/appearance/avatarStyle.d.ts +5 -5
  277. package/dist/types/components/AvatarStack/AvatarStack.appearance.d.ts +2 -0
  278. package/dist/types/components/AvatarStack/AvatarStack.interface.d.ts +22 -2
  279. package/dist/types/components/AvatarStack/appearance/avatarStackSize.d.ts +21 -0
  280. package/dist/types/components/AvatarStack/stories/__mock__/index.d.ts +12 -0
  281. package/dist/types/components/Cell/appearance/cellSize.d.ts +36 -0
  282. package/dist/types/components/Cell/appearance/cellStyle.d.ts +4 -6
  283. package/dist/types/components/Cell/appearance/cellSurface.d.ts +19 -5
  284. package/dist/types/components/Cell/stories/__mock__/index.d.ts +9 -0
  285. package/dist/types/components/Checkbox/appearance/checkboxDefault.d.ts +9 -19
  286. package/dist/types/components/Checkbox/appearance/checkboxError.d.ts +11 -6
  287. package/dist/types/components/Checkbox/appearance/checkboxSize.d.ts +5 -18
  288. package/dist/types/components/Checkmark/appearance/checkmarkAccent.d.ts +2 -1
  289. package/dist/types/components/Checkmark/appearance/checkmarkDisabled.d.ts +2 -0
  290. package/dist/types/components/Checkmark/appearance/checkmarkSize.d.ts +24 -0
  291. package/dist/types/components/Checkmark/appearance/checkmarkStyle.d.ts +7 -9
  292. package/dist/types/components/Checkmark/appearance/checkmarkSurface.d.ts +2 -1
  293. package/dist/types/components/Chips/appearance/chipsAccent.d.ts +6 -0
  294. package/dist/types/components/Chips/appearance/chipsSize.d.ts +2 -2
  295. package/dist/types/components/Choice/appearance/choiceStyle.d.ts +6 -6
  296. package/dist/types/components/Code/Code.interface.d.ts +1 -0
  297. package/dist/types/components/Code/appearance/codeDefault.d.ts +0 -5
  298. package/dist/types/components/Code/appearance/codeDisabled.d.ts +0 -4
  299. package/dist/types/components/Code/appearance/codeError.d.ts +7 -7
  300. package/dist/types/components/Code/appearance/codeStyle.d.ts +5 -5
  301. package/dist/types/components/CookiesWarning/CookiesWarning.appearance.d.ts +7 -1
  302. package/dist/types/components/CookiesWarning/CookiesWarning.d.ts +2 -1
  303. package/dist/types/components/CookiesWarning/appearance/cookiesWarningDefault.d.ts +12 -0
  304. package/dist/types/components/CookiesWarning/index.d.ts +2 -2
  305. package/dist/types/components/DatePeriod/DatePeriod.appearance.d.ts +1 -2
  306. package/dist/types/components/DatePeriod/appearance/datePeriodSize.d.ts +17 -0
  307. package/dist/types/components/DatePeriod/appearance/datePeriodSurface.d.ts +19 -0
  308. package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +7 -15
  309. package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +4 -4
  310. package/dist/types/components/DatePicker/appearance/datePickerStyle.d.ts +3 -9
  311. package/dist/types/components/DatePicker/appearance/datePickerSurface.d.ts +0 -2
  312. package/dist/types/components/Divider/Divider.interface.d.ts +2 -0
  313. package/dist/types/components/Divider/appearance/dividerAccent.d.ts +0 -15
  314. package/dist/types/components/Divider/appearance/dividerError.d.ts +1 -6
  315. package/dist/types/components/Divider/appearance/dividerPrimary.d.ts +1 -3
  316. package/dist/types/components/Divider/appearance/dividerSecondary.d.ts +1 -3
  317. package/dist/types/components/Divider/appearance/dividerSuccess.d.ts +1 -6
  318. package/dist/types/components/Divider/appearance/dividerSurface.d.ts +3 -13
  319. package/dist/types/components/Divider/appearance/dividerWarning.d.ts +1 -6
  320. package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +7 -1
  321. package/dist/types/components/Dropdown/appearance/dropdownAccent.d.ts +6 -1
  322. package/dist/types/components/Dropdown/appearance/dropdownSize.d.ts +3 -0
  323. package/dist/types/components/Dropdown/appearance/dropdownStyle.d.ts +4 -6
  324. package/dist/types/components/Dropdown/appearance/dropdownSurface.d.ts +6 -5
  325. package/dist/types/components/Dropdown/stories/__mock__/index.d.ts +44 -0
  326. package/dist/types/components/Icon/appearance/iconAccent.d.ts +3 -12
  327. package/dist/types/components/Icon/appearance/iconDanger.d.ts +0 -2
  328. package/dist/types/components/Icon/appearance/iconError.d.ts +0 -2
  329. package/dist/types/components/Icon/appearance/iconInfo.d.ts +0 -4
  330. package/dist/types/components/Icon/appearance/iconSize.d.ts +56 -28
  331. package/dist/types/components/Icon/appearance/iconStyle.d.ts +5 -6
  332. package/dist/types/components/Icon/appearance/iconSuccess.d.ts +6 -2
  333. package/dist/types/components/Icon/appearance/iconSurface.d.ts +8 -3
  334. package/dist/types/components/Icon/appearance/iconWarning.d.ts +0 -2
  335. package/dist/types/components/Label/appearance/labelSurface.d.ts +9 -9
  336. package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +5 -5
  337. package/dist/types/components/Notification/Notification.appearance.d.ts +2 -0
  338. package/dist/types/components/Notification/Notification.d.ts +4 -0
  339. package/dist/types/components/Notification/Notification.interface.d.ts +9 -8
  340. package/dist/types/components/Notification/NotificationWrapper.d.ts +3 -0
  341. package/dist/types/components/Notification/appearance/notificationDefault.d.ts +17 -0
  342. package/dist/types/components/Notification/appearance/notificationError.d.ts +17 -0
  343. package/dist/types/components/Notification/appearance/notificationSize.d.ts +2 -0
  344. package/dist/types/components/{Divider/appearance/dividerStyle.d.ts → Notification/appearance/notificationStyle.d.ts} +3 -5
  345. package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +17 -0
  346. package/dist/types/components/Notification/appearance/notificationWarning.d.ts +17 -0
  347. package/dist/types/components/Notification/index.d.ts +4 -4
  348. package/dist/types/components/Notification/stories/__mock__/index.d.ts +7 -0
  349. package/dist/types/components/Overlay/appearance/overlayDefault.d.ts +11 -0
  350. package/dist/types/components/Pagination/appearance/paginationSize.d.ts +9 -28
  351. package/dist/types/components/Radio/Radio.appearance.d.ts +93 -3
  352. package/dist/types/components/Radio/appearance/radioDefault.d.ts +11 -5
  353. package/dist/types/components/Radio/appearance/radioDisabled.d.ts +12 -0
  354. package/dist/types/components/Radio/appearance/radioRequire.d.ts +2 -2
  355. package/dist/types/components/Radio/appearance/radioSize.d.ts +3 -12
  356. package/dist/types/components/Radio/index.d.ts +1 -1
  357. package/dist/types/components/Response/Response.interface.d.ts +1 -0
  358. package/dist/types/components/Response/appearance/responceFail.d.ts +2 -0
  359. package/dist/types/components/Response/appearance/responceNothingFound.d.ts +2 -0
  360. package/dist/types/components/Response/appearance/responceRefresh.d.ts +2 -0
  361. package/dist/types/components/Response/appearance/responseError.d.ts +2 -0
  362. package/dist/types/components/Response/appearance/responseSuccess.d.ts +2 -0
  363. package/dist/types/components/Response/appearance/responseUnableLoadData.d.ts +2 -0
  364. package/dist/types/components/Response/appearance/responseWarning.d.ts +2 -0
  365. package/dist/types/components/Search/Search.interface.d.ts +2 -0
  366. package/dist/types/components/Search/appearance/searchDefault.d.ts +2 -13
  367. package/dist/types/components/Search/appearance/searchDisabled.d.ts +2 -9
  368. package/dist/types/components/Search/appearance/searchError.d.ts +2 -9
  369. package/dist/types/components/Search/appearance/searchRequire.d.ts +2 -9
  370. package/dist/types/components/Search/appearance/searchSize.d.ts +24 -6
  371. package/dist/types/components/Search/appearance/searchStyle.d.ts +3 -1
  372. package/dist/types/components/Search/appearance/searchSuccess.d.ts +1 -8
  373. package/dist/types/components/Segmented/appearance/segmentedStyle.d.ts +5 -5
  374. package/dist/types/components/Switch/appearance/switchDefault.d.ts +11 -0
  375. package/dist/types/components/Switch/appearance/switchDisabled.d.ts +5 -14
  376. package/dist/types/components/Switch/appearance/switchError.d.ts +6 -6
  377. package/dist/types/components/Switch/appearance/switchRequire.d.ts +5 -14
  378. package/dist/types/components/Switch/appearance/switchSize.d.ts +6 -47
  379. package/dist/types/components/Switch/appearance/switchSuccess.d.ts +6 -6
  380. package/dist/types/components/Tab/Tab.interface.d.ts +1 -0
  381. package/dist/types/components/Tab/appearance/tabStyle.d.ts +4 -4
  382. package/dist/types/components/Text/appearance/textSize.d.ts +0 -7
  383. package/dist/types/components/Tile/Tile.interface.d.ts +1 -0
  384. package/dist/types/components/Tile/appearance/tileSize.d.ts +30 -30
  385. package/dist/types/components/{Overlay/appearance/overlayStyle.d.ts → Tile/appearance/tileStyle.d.ts} +2 -2
  386. package/dist/types/components/Tile/appearance/tileSurface.d.ts +19 -8
  387. package/dist/types/components/Tooltip/appearance/tooltipDefault.d.ts +10 -0
  388. package/dist/types/components/Tooltip/appearance/tooltipDisabled.d.ts +2 -13
  389. package/dist/types/components/Tooltip/appearance/tooltipError.d.ts +4 -5
  390. package/dist/types/components/Tooltip/appearance/tooltipRequire.d.ts +2 -12
  391. package/dist/types/components/Tooltip/appearance/tooltipSize.d.ts +6 -47
  392. package/dist/types/components/Tooltip/appearance/tooltipStyle.d.ts +4 -6
  393. package/dist/types/components/Tooltip/appearance/tooltipSuccess.d.ts +4 -5
  394. package/dist/types/components/Video/stories/{mocks/videoSources.d.ts → __mocks__/index.d.ts} +2 -1
  395. package/dist/types/context/Notifications.d.ts +1 -1
  396. package/package.json +9 -9
  397. package/dist/Divider_cjs_DhqcldLH.js +0 -159
  398. package/dist/Divider_es_BEYLRagS.js +0 -155
  399. package/dist/Overlay_cjs_BdAm_zrO.js +0 -229
  400. package/dist/Overlay_es_cI_-_xUO.js +0 -225
  401. package/dist/css/components/Notification/css/__item/notification__item_set_float.css +0 -15
  402. package/dist/css/components/Notification/css/__item/notification__item_set_form.css +0 -19
  403. package/dist/css/components/Notification/css/__item/notification__item_set_toast.css +0 -19
  404. package/dist/css/components/Notification/css/__item/notification__item_set_top.css +0 -15
  405. package/dist/css/components/Notification/css/__item/notification__item_type_close-button.css +0 -17
  406. package/dist/stories/index.stories.js +0 -46
  407. package/dist/types/components/Avatar/appearance/avatarAccent.d.ts +0 -15
  408. package/dist/types/components/Avatar/appearance/avatarDanger.d.ts +0 -6
  409. package/dist/types/components/Avatar/appearance/avatarError.d.ts +0 -9
  410. package/dist/types/components/Avatar/appearance/avatarInfo.d.ts +0 -13
  411. package/dist/types/components/Avatar/appearance/avatarPrimary.d.ts +0 -7
  412. package/dist/types/components/Avatar/appearance/avatarSecondary.d.ts +0 -7
  413. package/dist/types/components/Avatar/appearance/avatarSuccess.d.ts +0 -7
  414. package/dist/types/components/Avatar/appearance/avatarWarning.d.ts +0 -9
  415. package/dist/types/components/Notification/NotificationItem.appearance.d.ts +0 -2
  416. package/dist/types/components/Notification/NotificationItem.d.ts +0 -4
  417. package/dist/types/components/Notification/NotificationList.d.ts +0 -3
  418. package/dist/types/components/Notification/appearance/notificationItemError.d.ts +0 -11
  419. package/dist/types/components/Notification/appearance/notificationItemSize.d.ts +0 -59
  420. package/dist/types/components/Notification/appearance/notificationItemStyle.d.ts +0 -16
  421. package/dist/types/components/Notification/appearance/notificationItemSuccess.d.ts +0 -11
  422. package/dist/types/components/Notification/appearance/notificationItemWarning.d.ts +0 -11
  423. package/dist/types/components/Overlay/appearance/overlayAccent.d.ts +0 -21
  424. package/dist/types/components/Overlay/appearance/overlayDanger.d.ts +0 -7
  425. package/dist/types/components/Overlay/appearance/overlayError.d.ts +0 -11
  426. package/dist/types/components/Overlay/appearance/overlayInfo.d.ts +0 -21
  427. package/dist/types/components/Overlay/appearance/overlayPrimary.d.ts +0 -8
  428. package/dist/types/components/Overlay/appearance/overlaySecondary.d.ts +0 -8
  429. package/dist/types/components/Overlay/appearance/overlaySize.d.ts +0 -59
  430. package/dist/types/components/Overlay/appearance/overlaySuccess.d.ts +0 -11
  431. package/dist/types/components/Overlay/appearance/overlaySurface.d.ts +0 -25
  432. package/dist/types/components/Overlay/appearance/overlayWarning.d.ts +0 -11
  433. package/dist/types/components/Search/appearance/searchSurface.d.ts +0 -18
  434. package/dist/types/components/Switch/appearance/switchAccent.d.ts +0 -20
  435. package/dist/types/components/Switch/appearance/switchDanger.d.ts +0 -7
  436. package/dist/types/components/Switch/appearance/switchInfo.d.ts +0 -21
  437. package/dist/types/components/Switch/appearance/switchPrimary.d.ts +0 -8
  438. package/dist/types/components/Switch/appearance/switchSecondary.d.ts +0 -8
  439. package/dist/types/components/Switch/appearance/switchSurface.d.ts +0 -25
  440. package/dist/types/components/Switch/appearance/switchWarning.d.ts +0 -11
  441. package/dist/types/components/Tooltip/appearance/tooltipAccent.d.ts +0 -20
  442. package/dist/types/components/Tooltip/appearance/tooltipDanger.d.ts +0 -7
  443. package/dist/types/components/Tooltip/appearance/tooltipInfo.d.ts +0 -21
  444. package/dist/types/components/Tooltip/appearance/tooltipPrimary.d.ts +0 -8
  445. package/dist/types/components/Tooltip/appearance/tooltipSecondary.d.ts +0 -8
  446. package/dist/types/components/Tooltip/appearance/tooltipSurface.d.ts +0 -25
  447. package/dist/types/components/Tooltip/appearance/tooltipWarning.d.ts +0 -11
  448. /package/dist/stories/{Playgroynd.mdx → DadataHintFieldPlaygroynd.mdx} +0 -0
  449. /package/dist/stories/{AlignContent.mdx → FlexAlignContent.mdx} +0 -0
  450. /package/dist/stories/{Grow.mdx → FlexGrow.mdx} +0 -0
  451. /package/dist/stories/{Order.mdx → FlexOrder.mdx} +0 -0
  452. /package/dist/stories/{AlignItems.mdx → GroupAlignItems.mdx} +0 -0
  453. /package/dist/stories/{AlignSelf.mdx → GroupAlignSelf.mdx} +0 -0
  454. /package/dist/stories/{Columns.mdx → GroupColumns.mdx} +0 -0
  455. /package/dist/stories/{Direction.mdx → GroupDirection.mdx} +0 -0
  456. /package/dist/stories/{JustifyContent.mdx → GroupJustifyContent.mdx} +0 -0
  457. /package/dist/stories/{Wrap.mdx → GroupWrap.mdx} +0 -0
@@ -18,16 +18,9 @@ require('../utils/setViewportProperty.js');
18
18
  require('../hooks/useStyles/styleAttributes.js');
19
19
 
20
20
  function Video(props) {
21
- var id = props.id, className = props.className, type = props.type, position = props.position, mp4 = props.mp4, ogv = props.ogv, poster = props.poster, webm = props.webm, children = props.children;
22
- // @ts-expect-error
21
+ var id = props.id, className = props.className, position = props.position, mp4 = props.mp4, ogv = props.ogv, poster = props.poster, webm = props.webm, children = props.children;
23
22
  var videoStyles = useStyles.useStyles(props).styles;
24
- return (jsxRuntime.jsxs("div", { id: id, className: clsx('video', className, type && "video_type_".concat(type), position && "video_position_".concat(position)), style: videoStyles, children: [jsxRuntime.jsxs("video", { className: "video__wrapper", autoPlay: true, loop: true, muted: true, playsInline: false, poster: poster, children: [webm && (jsxRuntime.jsx("source", { type: "video/webm", src: webm,
25
- // @ts-expect-error
26
- codecs: "vp8, vorbis" })), ogv && (jsxRuntime.jsx("source", { type: "video/ogg", src: ogv,
27
- // @ts-expect-error
28
- codecs: "theora, vorbis" })), mp4 && (jsxRuntime.jsx("source", { type: "video/mp4", src: mp4,
29
- // @ts-expect-error
30
- codecs: "avc1.42E01E, mp4a.40.2" }))] }), children] }));
23
+ return (jsxRuntime.jsxs("div", { id: id, className: clsx('video', className, poster && "video_poster", position && "video_position_".concat(position)), style: videoStyles, children: [jsxRuntime.jsxs("video", { className: "video__wrapper", autoPlay: true, loop: true, muted: true, playsInline: false, poster: poster, children: [webm && jsxRuntime.jsx("source", { type: "video/webm", src: webm, codecs: "vp8, vorbis" }), ogv && jsxRuntime.jsx("source", { type: "video/ogg", src: ogv, codecs: "theora, vorbis" }), mp4 && (jsxRuntime.jsx("source", { type: "video/mp4", src: mp4, codecs: "avc1.42E01E, mp4a.40.2" }))] }), children] }));
31
24
  }
32
25
 
33
26
  exports.Video = Video;
@@ -9,9 +9,9 @@ var common = require('@itcase/common');
9
9
 
10
10
  var STATUSES = {
11
11
  error: 'error',
12
+ warning: 'warning',
12
13
  info: 'info',
13
14
  success: 'success',
14
- warning: 'warning',
15
15
  };
16
16
  var NotificationsContext = React.createContext([]);
17
17
  /* eslint-disable @typescript-eslint/no-unused-vars */
@@ -127,6 +127,7 @@ function createNotification(notification, onClose) {
127
127
  var title = '';
128
128
  var text = '';
129
129
  var status = STATUSES.warning;
130
+ // let appearance = STATUSES.appearance
130
131
  var closeByTime = 4500;
131
132
  var textColor = '';
132
133
  if (typeof notification === 'string') {
@@ -5,10 +5,10 @@ import clsx from 'clsx';
5
5
  import castArray from 'lodash/castArray';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
+ import { B as Badge, I as Icon } from '../Tooltip_es_frBCZDrO.js';
9
+ import { D as Divider } from '../Divider_es_kY-30pft.js';
10
+ import { T as Text } from '../Text_es_BfLRfj-5.js';
8
11
  import { icon16 } from '@itcase/icons/default';
9
- import { D as Divider } from '../Divider_es_BEYLRagS.js';
10
- import { I as Icon } from '../Tooltip_es_D1w1s33u.js';
11
- import { T as Text } from '../Text_es_BRb3qqKM.js';
12
12
  import 'lodash/camelCase';
13
13
  import 'lodash/upperFirst';
14
14
  import '../context/Notifications.js';
@@ -26,75 +26,65 @@ import '../Link_es_DxtZLeKY.js';
26
26
  var accordionAppearanceSize = {
27
27
  sizeXXL: {
28
28
  size: 'xxl',
29
- labelTextSize: 'xxl',
30
- iconAfterFillSize: '24',
31
- iconAfterSize: '24',
32
- iconBeforeFillSize: '24',
33
- iconBeforeSize: '24',
29
+ titleTextSize: 'h3',
30
+ badgeAppearanceSize: 'sizeXS',
31
+ contentTextSize: 'xxl',
32
+ icon: icon16.ChevronDown,
34
33
  },
35
34
  sizeXL: {
36
35
  size: 'xl',
37
- labelTextSize: 'l',
38
- iconAfterFillSize: '24',
39
- iconAfterSize: '24',
40
- iconBeforeFillSize: '24',
41
- iconBeforeSize: '24',
36
+ titleTextSize: 'h3',
37
+ badgeAppearanceSize: 'sizeXS',
38
+ contentTextSize: 'l',
39
+ icon: icon16.ChevronDown,
42
40
  },
43
41
  sizeL: {
44
42
  size: 'l',
45
- labelTextSize: 'l',
46
- iconAfterFillSize: '24',
47
- iconAfterSize: '24',
48
- iconBeforeFillSize: '24',
49
- iconBeforeSize: '24',
43
+ titleTextSize: 'h4',
44
+ badgeAppearanceSize: 'sizeXS',
45
+ icon: icon16.ChevronDown,
50
46
  },
51
47
  sizeM: {
52
48
  size: 'm',
53
- labelTextSize: 'm',
54
- iconAfterFillSize: '24',
55
- iconAfterSize: '24',
56
- iconBeforeFillSize: '24',
57
- iconBeforeSize: '24',
49
+ titleTextSize: 'h5',
50
+ badgeAppearanceSize: 'sizeXS',
51
+ contentTextSize: 'm',
52
+ icon: icon16.ChevronDown,
58
53
  },
59
54
  sizeS: {
60
55
  size: 's',
61
- labelTextSize: 's',
62
- iconAfterFillSize: '20',
63
- iconAfterSize: '20',
64
- iconBeforeFillSize: '20',
65
- iconBeforeSize: '20',
56
+ titleTextSize: 'h6',
57
+ badgeAppearanceSize: 'sizeXS',
58
+ contentTextSize: 's',
59
+ icon: icon16.ChevronDown,
66
60
  },
67
61
  sizeXS: {
68
62
  size: 'xs',
69
- labelTextSize: 'xs',
70
- iconAfterFillSize: '16',
71
- iconAfterSize: '16',
72
- iconBeforeFillSize: '16',
73
- iconBeforeSize: '16',
63
+ titleTextSize: 'h6',
64
+ badgeAppearanceSize: 'sizeXS',
65
+ contentTextSize: 'xs',
66
+ icon: icon16.ChevronDown,
74
67
  },
75
68
  sizeXXS: {
76
69
  size: 'xxs',
77
- labelTextSize: 'xs',
78
- iconAfterFillSize: '14',
79
- iconAfterSize: '14',
80
- iconBeforeFillSize: '14',
81
- iconBeforeSize: '14',
70
+ titleTextSize: 'h6',
71
+ badgeAppearanceSize: 'sizeXS',
72
+ contentTextSize: 'xs',
73
+ icon: icon16.ChevronDown,
82
74
  },
83
75
  };
84
76
 
85
77
  var accordionAppearanceStyle = {
86
- full: {
87
- borderColor: '0',
88
- },
89
- ghost: {
90
- fill: 'none',
91
- borderColor: '0',
78
+ solid: {
79
+ borderColor: 'none',
92
80
  },
93
81
  outlined: {
94
82
  fill: 'none',
95
83
  },
96
- solid: {
97
- borderColor: '0',
84
+ full: {},
85
+ ghost: {
86
+ fill: 'none',
87
+ borderColor: 'none',
98
88
  },
99
89
  };
100
90
 
@@ -104,23 +94,33 @@ var accordionAppearanceSurface = {
104
94
  fillHover: 'surfacePrimaryHover',
105
95
  titleTextColor: 'surfaceTextPrimary',
106
96
  labelTextColor: 'surfaceTextPrimary',
107
- },
108
- surfaceQuaternary: {
109
- fill: 'surfaceQuaternary',
110
- fillHover: 'surfaceQuaternaryHover',
111
- labelTextColor: 'surfaceTextPrimary',
97
+ badgeAppearance: 'accentPrimary solid',
98
+ badgeShape: 'circular',
99
+ iconFillIcon: 'surfaceItemPrimary',
112
100
  },
113
101
  surfaceSecondary: {
114
102
  fill: 'surfaceSecondary',
115
103
  fillHover: 'surfaceSecondaryHover',
116
104
  labelTextColor: 'surfaceTextPrimary',
117
- loaderFill: 'surfaceSecondary',
118
- loaderItemFill: 'surfaceItemPrimary',
105
+ badgeAppearance: 'accentPrimary solid',
106
+ badgeShape: 'circular',
107
+ iconFillIcon: 'surfaceItemPrimary',
119
108
  },
120
109
  surfaceTertiary: {
121
110
  fill: 'surfaceTertiary',
122
111
  fillHover: 'surfaceTertiaryHover',
123
112
  labelTextColor: 'surfaceTextPrimary',
113
+ badgeAppearance: 'accentPrimary solid',
114
+ badgeShape: 'circular',
115
+ iconFillIcon: 'surfaceItemPrimary',
116
+ },
117
+ surfaceQuaternary: {
118
+ fill: 'surfaceQuaternary',
119
+ fillHover: 'surfaceQuaternaryHover',
120
+ labelTextColor: 'surfaceTextPrimary',
121
+ badgeAppearance: 'accentPrimary solid',
122
+ badgeShape: 'circular',
123
+ iconFillIcon: 'surfaceItemPrimary',
124
124
  },
125
125
  };
126
126
 
@@ -133,7 +133,7 @@ var accordionItemConfig = {
133
133
  },
134
134
  };
135
135
  function AccordionItem(props) {
136
- var id = props.id, className = props.className, appearance = props.appearance, size = props.size, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, afterContent = props.afterContent, beforeContent = props.beforeContent, content = props.content, contentTextColor = props.contentTextColor, contentTextSize = props.contentTextSize, contentTextWeight = props.contentTextWeight, dividerDirection = props.dividerDirection, dividerFill = props.dividerFill, dividerSize = props.dividerSize, icon = props.icon, _a = props.iconFill, iconFill = _a === void 0 ? 'surfaceItemAccent' : _a, showDivider = props.showDivider, isExpanded = props.isExpanded, onClick = props.onClick, children = props.children;
136
+ var id = props.id, className = props.className, appearance = props.appearance, title = props.title, afterContent = props.afterContent, beforeContent = props.beforeContent, content = props.content, isExpanded = props.isExpanded, onClick = props.onClick, children = props.children;
137
137
  var onClickTitle = useCallback(function () {
138
138
  // "!isExpanded" - is next state of expanded
139
139
  var thisItemData = {
@@ -149,20 +149,12 @@ function AccordionItem(props) {
149
149
  return (__assign(__assign({}, resultConfig), (_a = accordionItemConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
150
150
  }, {});
151
151
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
152
- var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, borderColorClass = propsGenerator.borderColorClass, contentBorderColorClass = propsGenerator.contentBorderColorClass, contentFillClass = propsGenerator.contentFillClass, contentFillHoverClass = propsGenerator.contentFillHoverClass, shapeClass = propsGenerator.shapeClass;
152
+ var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleBorderColorClass = propsGenerator.titleBorderColorClass, titleFillClass = propsGenerator.titleFillClass, titleFillHoverClass = propsGenerator.titleFillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, titleWidthClass = propsGenerator.titleWidthClass, borderColorClass = propsGenerator.borderColorClass, badgeAppearance = propsGenerator.badgeAppearance, badgeAppearanceSize = propsGenerator.badgeAppearanceSize, badgeShape = propsGenerator.badgeShape, badgeSize = propsGenerator.badgeSize, badgeTextColor = propsGenerator.badgeTextColor, badgeTextSize = propsGenerator.badgeTextSize, badgeValue = propsGenerator.badgeValue, contentTextColor = propsGenerator.contentTextColor, contentTextSize = propsGenerator.contentTextSize, contentTextWeight = propsGenerator.contentTextWeight, dividerDirection = propsGenerator.dividerDirection, dividerFill = propsGenerator.dividerFill, dividerSize = propsGenerator.dividerSize, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, showDivider = propsGenerator.showDivider, sizeClass = propsGenerator.sizeClass, zeroGap = propsGenerator.zeroGap, zeroPadding = propsGenerator.zeroPadding;
153
153
  // @ts-expect-error
154
154
  var styles = useStyles(props).styles;
155
- return (jsxs("div", { className: clsx('accordion-item', className, borderColorClass && "border-color_".concat(borderColorClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "accordion-item_shape_".concat(shapeClass), size && "accordion-item_size_".concat(size), isExpanded && 'accordion-item_state_open'), style: styles, children: [jsx(Text, { className: clsx('accordion-item__title', titleBorderColorClass && "border-color_".concat(titleBorderColorClass), titleFillClass && "fill_".concat(titleFillClass), titleFillHoverClass && "fill_hover_".concat(titleFillHoverClass), 'cursor_type_pointer'), size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, onClick: onClickTitle, children: title }), jsx("div", { className: clsx('accordion-item__icon', 'cursor_type_pointer'), onClick: onClickTitle, children: icon || (jsx(Icon, { size: "16", iconFill: iconFill, SvgImage: icon16.ChevronDown })) }), beforeContent && beforeContent, showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill || 'surfaceTertiary' })), isExpanded && (jsx("div", { className: clsx('accordion-item__content', contentBorderColorClass &&
156
- "border-color_".concat(contentBorderColorClass), contentFillClass && "fill_".concat(contentFillClass), contentFillHoverClass && "fill_hover_".concat(contentFillHoverClass)), children: children ||
157
- (content && (jsx(Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }))) })), afterContent && afterContent] }));
155
+ return (jsxs("div", { className: clsx('accordion-item', className, zeroPadding && 'accordion-item_zero-padding', zeroGap && 'accordion-item_zero-gap', borderColorClass && "border-color_".concat(borderColorClass), shapeClass && "accordion-item_shape_".concat(shapeClass), sizeClass && "accordion-item_size_".concat(sizeClass), isExpanded && 'accordion-item_state_open'), style: styles, children: [jsxs("div", { className: clsx('accordion-item__header', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), children: [jsx(Text, { className: clsx('accordion-item__title', titleBorderColorClass && "border-color_".concat(titleBorderColorClass), titleFillClass && "fill_".concat(titleFillClass), titleFillHoverClass && "fill_hover_".concat(titleFillHoverClass), titleWidthClass && "width_".concat(titleWidthClass), onClickTitle && 'cursor_type_pointer'), size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, onClick: onClickTitle, children: title }), jsxs("div", { className: "accordion-item__action", children: [badgeValue && (jsx(Badge, { className: "accordion-item__badge", appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), (icon || iconSrc) && (jsx(Icon, { className: clsx('accordion-item__icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon, onClick: onClickTitle }))] }), showDivider && (jsx(Divider, { width: "fill", direction: dividerDirection, size: dividerSize, fill: dividerFill || 'surfaceTertiary' }))] }), beforeContent, isExpanded && (jsxs("div", { className: clsx('accordion-item__content'), children: [content && (jsx("div", { className: clsx('accordion-item__content-inner', fillClass && "fill_".concat(fillClass)), children: jsx(Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }) })), children] })), afterContent] }));
158
156
  }
159
157
 
160
- var accordionConfig = {
161
- appearance: accordionAppearance,
162
- setAppearance: function (appearanceConfig) {
163
- accordionConfig.appearance = appearanceConfig;
164
- },
165
- };
166
158
  function Accordion(props) {
167
159
  var className = props.className, appearance = props.appearance, _a = props.initial, initial = _a === void 0 ? [] : _a, items = props.items, isMultiple = props.isMultiple, onClickItem = props.onClickItem, children = props.children;
168
160
  var _b = useState(function () { return castArray(initial); }), expandedItems = _b[0], setExpandedItems = _b[1];
@@ -192,7 +184,7 @@ function Accordion(props) {
192
184
  }, [isMultiple, onClickItem]);
193
185
  var accordionItemsList = useMemo(function () {
194
186
  if (items) {
195
- return items.map(function (item, i) { return (jsx(AccordionItem, { id: item.id, title: item.title, content: item.content, isExpanded: expandedItems.includes(item.id), onClick: onClickAccordionItem }, "accordionItem_".concat(item.id || i + 1))); });
187
+ return items.map(function (item, i) { return (jsx(AccordionItem, { id: item.id, appearance: appearance, title: item.title, content: item.content, isExpanded: expandedItems.includes(item.id), onClick: onClickAccordionItem }, "accordionItem_".concat(item.id || i + 1))); });
196
188
  }
197
189
  if (children) {
198
190
  // @ts-ignore
@@ -210,15 +202,10 @@ function Accordion(props) {
210
202
  }
211
203
  return [];
212
204
  }, [children, items, expandedItems, onClickAccordionItem]);
213
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
214
- var _a;
215
- return (__assign(__assign({}, resultConfig), (_a = accordionConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
216
- }, {});
217
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
218
- var directionClass = propsGenerator.directionClass, fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
219
- // @ts-expect-error
220
- var _c = useStyles(props), accordionStyles = _c.styles, accordionWrapperStyles = _c.wrapper;
221
- return (jsx("div", { className: clsx(className, 'accordion', borderColorClass && "border-color_".concat(borderColorClass), directionClass && "accordion_direction_".concat(directionClass), fillClass && "fill_".concat(fillClass), shapeClass && "accordion_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass)), style: accordionStyles, children: jsx("div", { className: "accordion__wrapper", style: accordionWrapperStyles, children: accordionItemsList }) }));
205
+ var propsGenerator = useDevicePropsGenerator(props);
206
+ var fillClass = propsGenerator.fillClass, borderColorClass = propsGenerator.borderColorClass, shapeClass = propsGenerator.shapeClass, widthClass = propsGenerator.widthClass;
207
+ var accordionStyles = useStyles(props).styles;
208
+ return (jsx("div", { className: clsx(className, 'accordion', borderColorClass && "border-color_".concat(borderColorClass), fillClass && "fill_".concat(fillClass), shapeClass && "accordion_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass)), style: accordionStyles, children: accordionItemsList }));
222
209
  }
223
210
 
224
- export { Accordion, AccordionItem, accordionAppearance, accordionConfig, accordionItemConfig };
211
+ export { Accordion, AccordionItem, accordionAppearance, accordionItemConfig };
@@ -1,4 +1,4 @@
1
- export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_CUnfNViT.js';
1
+ export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_B3LiV8MM.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -14,11 +14,11 @@ import '../context/UIContext.js';
14
14
  import '../hooks/useMediaQueries/useMediaQueries.js';
15
15
  import 'react-responsive';
16
16
  import '../utils/setViewportProperty.js';
17
- import '../Tooltip_es_D1w1s33u.js';
17
+ import '../Tooltip_es_frBCZDrO.js';
18
18
  import '../hooks/useStyles/useStyles.js';
19
19
  import 'lodash/maxBy';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
- import '../Text_es_BRb3qqKM.js';
21
+ import '../Text_es_BfLRfj-5.js';
22
22
  import 'react-inlinesvg';
23
23
  import '../Link_es_DxtZLeKY.js';
24
24
  import '../Image_es_DZUVp0FS.js';
@@ -0,0 +1,26 @@
1
+ var avatarsListMock = [
2
+ {
3
+ id: 0,
4
+ src: '/avatar/Man.png',
5
+ firstName: 'firstName',
6
+ secondName: 'secondName',
7
+ },
8
+ {
9
+ id: 1,
10
+ src: '/avatar/Woman.png',
11
+ firstName: 'firstName',
12
+ secondName: 'secondName',
13
+ },
14
+ {
15
+ id: 2,
16
+ firstName: 'firstName',
17
+ secondName: 'secondName',
18
+ },
19
+ {
20
+ id: 3,
21
+ firstName: 'firstName',
22
+ secondName: 'secondName',
23
+ },
24
+ ];
25
+
26
+ export { avatarsListMock };
@@ -1,33 +1,65 @@
1
+ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
1
2
  import { jsxs, jsx } from 'react/jsx-runtime';
2
3
  import clsx from 'clsx';
4
+ import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
3
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
4
- import { A as Avatar } from '../Avatar_es_CUnfNViT.js';
6
+ import { A as Avatar } from '../Avatar_es_B3LiV8MM.js';
5
7
  import { G as Group } from '../Group_es_CYW2Hquh.js';
6
- import { T as Text } from '../Text_es_BRb3qqKM.js';
8
+ import { T as Text } from '../Text_es_BfLRfj-5.js';
7
9
  import 'react';
8
10
  import 'lodash/camelCase';
9
- import 'lodash/maxBy';
11
+ import 'lodash/castArray';
10
12
  import 'lodash/upperFirst';
11
13
  import '../context/Notifications.js';
12
- import '../tslib.es6_es_Bwu1Cn-t.js';
13
14
  import 'uuid';
14
15
  import '@itcase/common';
15
16
  import '../context/UIContext.js';
16
17
  import '../hooks/useMediaQueries/useMediaQueries.js';
17
18
  import 'react-responsive';
18
19
  import '../utils/setViewportProperty.js';
20
+ import 'lodash/maxBy';
19
21
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
21
- import 'lodash/castArray';
22
- import '../Tooltip_es_D1w1s33u.js';
22
+ import '../Tooltip_es_frBCZDrO.js';
23
23
  import 'react-inlinesvg';
24
24
  import '../Link_es_DxtZLeKY.js';
25
25
  import '../Image_es_DZUVp0FS.js';
26
26
 
27
+ var avatarStackAppearanceSize = {
28
+ size16: {
29
+ size: '16',
30
+ },
31
+ size20: {
32
+ size: '20',
33
+ },
34
+ size24: {
35
+ size: '24',
36
+ },
37
+ size32: {
38
+ size: '32',
39
+ },
40
+ size40: {
41
+ size: '40',
42
+ },
43
+ size56: {
44
+ size: '56',
45
+ },
46
+ };
47
+
48
+ var avatarStackAppearance = __assign({}, avatarStackAppearanceSize);
49
+
50
+ var avatarStackConfig = {
51
+ appearance: avatarStackAppearance};
27
52
  function AvatarStack(props) {
28
- var className = props.className, _a = props.direction, direction = _a === void 0 ? 'horizontal' : _a; props.textSize; var avatarSize = props.avatarSize, avatarsList = props.avatarsList, _b = props.showCountUsers, showCountUsers = _b === void 0 ? 3 : _b;
53
+ var className = props.className, appearance = props.appearance, _a = props.direction, direction = _a === void 0 ? 'horizontal' : _a, avatarAppearance = props.avatarAppearance, avatarsList = props.avatarsList, _b = props.length, length = _b === void 0 ? 3 : _b, isSkeleton = props.isSkeleton;
54
+ var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
55
+ var _a;
56
+ return (__assign(__assign({}, resultConfig), (_a = avatarStackConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
57
+ }, {});
58
+ var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
59
+ // "size" is numeric
60
+ var size = propsGenerator.size;
29
61
  var avatarStackStyles = useStyles(props).styles;
30
- return (avatarsList.length && (jsxs("div", { className: clsx(className, 'avatar-stack', direction && "group_direction_".concat(direction)), style: avatarStackStyles, children: [avatarsList.slice(0, showCountUsers).map(function (item) { return (jsx(Avatar, { appearance: "size".concat(avatarSize, " surfaceSecondary"), className: "avatar-stack__item", size: avatarSize, src: item.src, textSize: "l", firstName: item.firstName, secondName: item.lastName, shape: "circular" }, item.id)); }), avatarsList.length > showCountUsers && (jsx(Group, { width: avatarSize, height: avatarSize, fill: "surfaceSecondary", className: "avatar-stack__item avatar-stack__item-text", children: jsxs(Text, { size: "xs", textColor: "surfaceTextPrimary", textWeight: "600", children: ["+", avatarsList.length - showCountUsers] }) }))] })));
62
+ return (avatarsList.length && (jsxs("div", { className: clsx(className, 'avatar-stack', direction && "group_direction_".concat(direction), size && "avatar-stack_size_".concat(size), isSkeleton && "avatar-stack-skeleton"), style: avatarStackStyles, children: [avatarsList.slice(0, length).map(function (item) { return (jsx(Avatar, { className: "avatar-stack__item", appearance: "".concat(avatarAppearance, " size").concat(size), src: item.src, textSize: "l", firstName: item.firstName, secondName: item.lastName, shape: "circular" }, item.id)); }), avatarsList.length > length && (jsx(Group, { className: "avatar-stack__item avatar-stack__item-text", width: size, height: size, fill: "surfaceSecondary", children: jsxs(Text, { size: "xs", textColor: "surfaceTextPrimary", textWeight: "600", children: ["+", avatarsList.length - length] }) }))] })));
31
63
  }
32
64
 
33
65
  export { AvatarStack };
@@ -1,4 +1,4 @@
1
- export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Tooltip_es_D1w1s33u.js';
1
+ export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Tooltip_es_frBCZDrO.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -17,6 +17,6 @@ import '../utils/setViewportProperty.js';
17
17
  import '../hooks/useStyles/useStyles.js';
18
18
  import 'lodash/maxBy';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../Text_es_BRb3qqKM.js';
20
+ import '../Text_es_BfLRfj-5.js';
21
21
  import 'react-inlinesvg';
22
22
  import '../Link_es_DxtZLeKY.js';
@@ -4,9 +4,9 @@ import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
6
  import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
7
- import { I as Icon } from '../Tooltip_es_D1w1s33u.js';
7
+ import { I as Icon } from '../Tooltip_es_frBCZDrO.js';
8
8
  import { a as LinkWrapper } from '../Link_es_DxtZLeKY.js';
9
- import { T as Text } from '../Text_es_BRb3qqKM.js';
9
+ import { T as Text } from '../Text_es_BfLRfj-5.js';
10
10
  import 'lodash/camelCase';
11
11
  import 'lodash/castArray';
12
12
  import 'lodash/upperFirst';
@@ -1,9 +1,9 @@
1
- export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_Dp6yFZgn.js';
1
+ export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_CO_dwo-N.js';
2
2
  import '../tslib.es6_es_Bwu1Cn-t.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
5
5
  import 'clsx';
6
- import '../Tooltip_es_D1w1s33u.js';
6
+ import '../Tooltip_es_frBCZDrO.js';
7
7
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
8
  import 'lodash/camelCase';
9
9
  import 'lodash/castArray';
@@ -18,7 +18,7 @@ import '../utils/setViewportProperty.js';
18
18
  import '../hooks/useStyles/useStyles.js';
19
19
  import 'lodash/maxBy';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
- import '../Text_es_BRb3qqKM.js';
21
+ import '../Text_es_BfLRfj-5.js';
22
22
  import 'react-inlinesvg';
23
23
  import '../Link_es_DxtZLeKY.js';
24
- import '../Loader_es_DHKB6tTw.js';
24
+ import '../Loader_es_B2auu_rc.js';
@@ -0,0 +1,12 @@
1
+ import { icon16 } from '@itcase/icons/default';
2
+
3
+ var cellMock = {
4
+ title: 'Title',
5
+ titleIcon: icon16.Placeholder,
6
+ titleLabel: 'Label',
7
+ value: 'Value',
8
+ valueIcon: icon16.Placeholder,
9
+ valueLabel: 'Label',
10
+ };
11
+
12
+ export { cellMock };