@itcase/ui-web 1.9.81 → 1.9.83

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 (286) hide show
  1. package/dist/Avatar_cjs_B7uiPPJz.js +1 -0
  2. package/dist/Avatar_es_sVVoRDHX.js +1 -0
  3. package/dist/Button_cjs_CKSxHfMM.js +1 -0
  4. package/dist/Button_es_byVASRY8.js +1 -0
  5. package/dist/{ChipsGroup_cjs_BlbEYAYF.js → ChipsGroup_cjs_BeOUW9Ph.js} +1 -1
  6. package/dist/{ChipsGroup_es_oBJDKTBL.js → ChipsGroup_es_CVn85hj2.js} +1 -1
  7. package/dist/{DatePicker_cjs_D96Oz7cl.js → DatePicker_cjs_YbxC7o6W.js} +1 -1
  8. package/dist/{DatePicker_es_DMePdexK.js → DatePicker_es_B_Ohymbm.js} +1 -1
  9. package/dist/Group_cjs_CiLUYKP7.js +1 -0
  10. package/dist/Group_es_DIuSNHx3.js +1 -0
  11. package/dist/Input_cjs_CgWxKHuR.js +1 -0
  12. package/dist/Input_es_BLo9TAve.js +1 -0
  13. package/dist/Label_cjs_NYoev96S.js +1 -0
  14. package/dist/Label_es_C-a522jk.js +1 -0
  15. package/dist/{Loader_cjs_CGugAIv_.js → Loader_cjs_BFLrUlMX.js} +1 -1
  16. package/dist/{Loader_es_DWZILN4t.js → Loader_es_pnhZ5s_O.js} +1 -1
  17. package/dist/SelectContainer_cjs_DfKmrpLN.js +1 -0
  18. package/dist/SelectContainer_es_DicmpT12.js +1 -0
  19. package/dist/cjs/components/Accordion.js +1 -1
  20. package/dist/cjs/components/Avatar.js +1 -1
  21. package/dist/cjs/components/AvatarStack.js +1 -1
  22. package/dist/cjs/components/Badge.js +1 -1
  23. package/dist/cjs/components/Breadcrumbs.js +1 -1
  24. package/dist/cjs/components/Button.js +1 -1
  25. package/dist/cjs/components/Cell.js +1 -1
  26. package/dist/cjs/components/Checkbox.js +1 -1
  27. package/dist/cjs/components/Checkmark.js +1 -1
  28. package/dist/cjs/components/Chips.js +1 -1
  29. package/dist/cjs/components/Choice.js +1 -1
  30. package/dist/cjs/components/Code.js +1 -1
  31. package/dist/cjs/components/CookiesWarning.js +1 -1
  32. package/dist/cjs/components/Dadata.js +1 -1
  33. package/dist/cjs/components/DatePeriod.js +1 -1
  34. package/dist/cjs/components/DatePicker.js +1 -1
  35. package/dist/cjs/components/Divider.js +1 -1
  36. package/dist/cjs/components/Drawer.js +1 -1
  37. package/dist/cjs/components/Dropdown.js +1 -1
  38. package/dist/cjs/components/Dropzone.js +1 -1
  39. package/dist/cjs/components/Group.js +1 -1
  40. package/dist/cjs/components/HeroTitle.js +1 -1
  41. package/dist/cjs/components/Icon.js +1 -1
  42. package/dist/cjs/components/Input.js +1 -1
  43. package/dist/cjs/components/InputNumber.js +1 -1
  44. package/dist/cjs/components/InputPassword.js +1 -1
  45. package/dist/cjs/components/Label.js +1 -1
  46. package/dist/cjs/components/Link.js +1 -1
  47. package/dist/cjs/components/List.js +1 -1
  48. package/dist/cjs/components/Loader.js +1 -1
  49. package/dist/cjs/components/Logo.js +1 -1
  50. package/dist/cjs/components/MenuItem.js +1 -1
  51. package/dist/cjs/components/Modal.js +1 -1
  52. package/dist/cjs/components/ModalSheetBottom.js +1 -1
  53. package/dist/cjs/components/Notification.js +1 -1
  54. package/dist/cjs/components/Pagination.js +1 -1
  55. package/dist/cjs/components/Radio.js +1 -1
  56. package/dist/cjs/components/Response.js +1 -1
  57. package/dist/cjs/components/Search.js +1 -1
  58. package/dist/cjs/components/Segmented.js +1 -1
  59. package/dist/cjs/components/Select.js +1 -1
  60. package/dist/cjs/components/Swiper.js +1 -1
  61. package/dist/cjs/components/Switch.js +1 -1
  62. package/dist/cjs/components/Tab.js +1 -1
  63. package/dist/cjs/components/Text.js +1 -1
  64. package/dist/cjs/components/Textarea.js +1 -1
  65. package/dist/cjs/components/Tile.js +1 -1
  66. package/dist/cjs/components/Title.js +1 -1
  67. package/dist/cjs/components/Tooltip.js +1 -1
  68. package/dist/cjs/components/Warning.js +1 -1
  69. package/dist/components/Accordion.js +1 -1
  70. package/dist/components/Avatar.js +1 -1
  71. package/dist/components/AvatarStack.js +1 -1
  72. package/dist/components/Badge.js +1 -1
  73. package/dist/components/Breadcrumbs.js +1 -1
  74. package/dist/components/Button.js +1 -1
  75. package/dist/components/Cell.js +1 -1
  76. package/dist/components/Checkbox.js +1 -1
  77. package/dist/components/Checkmark.js +1 -1
  78. package/dist/components/Chips.js +1 -1
  79. package/dist/components/Choice.js +1 -1
  80. package/dist/components/Code.js +1 -1
  81. package/dist/components/CookiesWarning.js +1 -1
  82. package/dist/components/Dadata.js +1 -1
  83. package/dist/components/DatePeriod.js +1 -1
  84. package/dist/components/DatePicker.js +1 -1
  85. package/dist/components/Divider.js +1 -1
  86. package/dist/components/Drawer.js +1 -1
  87. package/dist/components/Dropdown.js +1 -1
  88. package/dist/components/Dropzone.js +1 -1
  89. package/dist/components/Group.js +1 -1
  90. package/dist/components/HeroTitle.js +1 -1
  91. package/dist/components/Icon.js +1 -1
  92. package/dist/components/Input.js +1 -1
  93. package/dist/components/InputNumber.js +1 -1
  94. package/dist/components/InputPassword.js +1 -1
  95. package/dist/components/Label.js +1 -1
  96. package/dist/components/Link.js +1 -1
  97. package/dist/components/List.js +1 -1
  98. package/dist/components/Loader.js +1 -1
  99. package/dist/components/Logo.js +1 -1
  100. package/dist/components/MenuItem.js +1 -1
  101. package/dist/components/Modal.js +1 -1
  102. package/dist/components/ModalSheetBottom.js +1 -1
  103. package/dist/components/Notification.js +1 -1
  104. package/dist/components/Pagination.js +1 -1
  105. package/dist/components/Radio.js +1 -1
  106. package/dist/components/Response.js +1 -1
  107. package/dist/components/Search.js +1 -1
  108. package/dist/components/Segmented.js +1 -1
  109. package/dist/components/Select.js +1 -1
  110. package/dist/components/Swiper.js +1 -1
  111. package/dist/components/Switch.js +1 -1
  112. package/dist/components/Tab.js +1 -1
  113. package/dist/components/Text.js +1 -1
  114. package/dist/components/Textarea.js +1 -1
  115. package/dist/components/Tile.js +1 -1
  116. package/dist/components/Title.js +1 -1
  117. package/dist/components/Tooltip.js +1 -1
  118. package/dist/components/Warning.js +1 -1
  119. package/dist/css/styles/bundles.css +9 -2
  120. package/dist/primitives_cjs_C-jtJ9pL.js +1 -0
  121. package/dist/primitives_es_CJQjjxtH.js +1 -0
  122. package/dist/types/components/Accordion/Accordion.interface.d.ts +1 -3
  123. package/dist/types/components/Accordion/Accordion.js +2 -2
  124. package/dist/types/components/Accordion/AccordionItem.js +2 -2
  125. package/dist/types/components/Avatar/Avatar.interface.d.ts +1 -2
  126. package/dist/types/components/Avatar/Avatar.js +2 -2
  127. package/dist/types/components/Avatar/appearance/avatarShape.js +0 -4
  128. package/dist/types/components/Badge/Badge.interface.d.ts +1 -2
  129. package/dist/types/components/Badge/Badge.js +2 -2
  130. package/dist/types/components/Badge/appearance/badgeShape.js +0 -4
  131. package/dist/types/components/Button/Button.d.ts +0 -1
  132. package/dist/types/components/Button/Button.interface.d.ts +1 -2
  133. package/dist/types/components/Button/Button.js +2 -2
  134. package/dist/types/components/Button/__test__/ButtonTest.stories.d.ts +0 -1
  135. package/dist/types/components/Button/appearance/buttonShape.js +0 -4
  136. package/dist/types/components/Button/stories/ButtonDefault.stories.d.ts +0 -1
  137. package/dist/types/components/Button/stories/ButtonDemo.stories.d.ts +0 -1
  138. package/dist/types/components/Button/stories/ButtonIcon.stories.d.ts +0 -1
  139. package/dist/types/components/Button/stories/ButtonLabel.stories.d.ts +0 -1
  140. package/dist/types/components/Button/stories/ButtonLoading.stories.d.ts +0 -1
  141. package/dist/types/components/Button/stories/ButtonMuted.stories.d.ts +0 -1
  142. package/dist/types/components/Button/stories/ButtonMutedIcon.stories.d.ts +0 -1
  143. package/dist/types/components/Button/stories/ButtonShape.stories.d.ts +0 -1
  144. package/dist/types/components/Button/stories/ButtonSize.stories.d.ts +0 -1
  145. package/dist/types/components/Checkbox/Checkbox.interface.d.ts +1 -2
  146. package/dist/types/components/Checkbox/Checkbox.js +2 -2
  147. package/dist/types/components/Checkbox/appearance/checkboxShape.js +0 -1
  148. package/dist/types/components/Chips/Chips.interface.d.ts +1 -2
  149. package/dist/types/components/Chips/Chips.js +2 -2
  150. package/dist/types/components/Chips/appearance/chipsShape.js +0 -4
  151. package/dist/types/components/Choice/Choice.interface.d.ts +1 -2
  152. package/dist/types/components/Choice/Choice.js +3 -3
  153. package/dist/types/components/Choice/appearance/choiceShape.js +0 -4
  154. package/dist/types/components/Code/Code.interface.d.ts +1 -2
  155. package/dist/types/components/Code/Code.js +2 -2
  156. package/dist/types/components/Code/appearance/codeShape.js +0 -4
  157. package/dist/types/components/DatePeriod/DatePeriod.interface.d.ts +2 -3
  158. package/dist/types/components/DatePeriod/DatePeriod.js +2 -2
  159. package/dist/types/components/DatePeriod/appearance/datePeriodShape.js +0 -4
  160. package/dist/types/components/Divider/Divider.interface.d.ts +1 -2
  161. package/dist/types/components/Divider/Divider.js +2 -2
  162. package/dist/types/components/Dropdown/Dropdown.interface.d.ts +1 -3
  163. package/dist/types/components/Dropdown/Dropdown.js +2 -2
  164. package/dist/types/components/Dropdown/DropdownItem.js +2 -2
  165. package/dist/types/components/Dropdown/appearance/dropdownShape.js +0 -4
  166. package/dist/types/components/Dropzone/Dropzone.interface.d.ts +1 -2
  167. package/dist/types/components/Dropzone/appearance/dropzoneShape.js +0 -4
  168. package/dist/types/components/Group/Group.d.ts +2 -1
  169. package/dist/types/components/Group/Group.interface.d.ts +4 -3
  170. package/dist/types/components/Group/Group.js +4 -4
  171. package/dist/types/components/Group/stories/GroupAlignItems.stories.d.ts +4 -2
  172. package/dist/types/components/Group/stories/GroupAlignSelf.stories.d.ts +4 -2
  173. package/dist/types/components/Group/stories/GroupColumns.stories.d.ts +4 -2
  174. package/dist/types/components/Group/stories/GroupDirection.stories.d.ts +4 -2
  175. package/dist/types/components/Group/stories/GroupJustifyContent.stories.d.ts +4 -2
  176. package/dist/types/components/Group/stories/GroupWrap.stories.d.ts +4 -2
  177. package/dist/types/components/Icon/Icon.interface.d.ts +1 -2
  178. package/dist/types/components/Icon/Icon.js +2 -2
  179. package/dist/types/components/Icon/appearance/iconShape.js +0 -4
  180. package/dist/types/components/Input/Input.interface.d.ts +1 -2
  181. package/dist/types/components/Input/Input.js +2 -2
  182. package/dist/types/components/Input/appearance/inputShape.js +0 -4
  183. package/dist/types/components/InputNumber/InputNumber.interfaces.d.ts +1 -2
  184. package/dist/types/components/InputNumber/InputNumber.js +2 -2
  185. package/dist/types/components/InputNumber/appearance/InputNumberShape.js +0 -4
  186. package/dist/types/components/InputPassword/InputPassword.interface.d.ts +1 -2
  187. package/dist/types/components/InputPassword/InputPassword.js +2 -2
  188. package/dist/types/components/InputPassword/appearance/inputPasswordShape.js +0 -4
  189. package/dist/types/components/Label/Label.interface.d.ts +1 -2
  190. package/dist/types/components/Label/Label.js +2 -2
  191. package/dist/types/components/Label/appearance/labelShape.js +0 -4
  192. package/dist/types/components/Loader/Loader.interface.d.ts +1 -2
  193. package/dist/types/components/Loader/Loader.js +2 -2
  194. package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -3
  195. package/dist/types/components/MenuItem/MenuItem.js +3 -5
  196. package/dist/types/components/MenuItem/appearance/menuItemShape.js +0 -4
  197. package/dist/types/components/Modal/Modal.d.ts +0 -1
  198. package/dist/types/components/Modal/Modal.interface.d.ts +1 -2
  199. package/dist/types/components/Modal/Modal.js +2 -2
  200. package/dist/types/components/Modal/appearance/modalShape.js +0 -4
  201. package/dist/types/components/Modal/stories/ModalAbsoluteHeader.stories.d.ts +0 -1
  202. package/dist/types/components/Modal/stories/ModalDemo.stories.d.ts +0 -1
  203. package/dist/types/components/Modal/stories/ModalScroll.stories.d.ts +0 -1
  204. package/dist/types/components/Modal/stories/ModalSize.stories.d.ts +0 -1
  205. package/dist/types/components/Modal/stories/ModalStickyHeader.stories.d.ts +0 -1
  206. package/dist/types/components/Modal/stories/ModalStyle.stories.d.ts +0 -1
  207. package/dist/types/components/Notification/Notification.interface.d.ts +1 -2
  208. package/dist/types/components/Notification/Notification.js +2 -2
  209. package/dist/types/components/Notification/appearance/notificationShape.js +0 -4
  210. package/dist/types/components/Pagination/Pagination.interface.d.ts +1 -3
  211. package/dist/types/components/Pagination/Pagination.js +2 -3
  212. package/dist/types/components/Pagination/appearance/paginationShape.js +0 -8
  213. package/dist/types/components/Radio/Radio.interface.d.ts +1 -2
  214. package/dist/types/components/Radio/Radio.js +2 -2
  215. package/dist/types/components/Radio/appearance/radioShape.js +0 -4
  216. package/dist/types/components/Response/Response.d.ts +0 -1
  217. package/dist/types/components/Response/Response.interface.d.ts +1 -2
  218. package/dist/types/components/Response/Response.js +2 -2
  219. package/dist/types/components/Response/stories/ResponseConfirm.stories.d.ts +0 -1
  220. package/dist/types/components/Response/stories/ResponseDemo.stories.d.ts +0 -1
  221. package/dist/types/components/Response/stories/ResponseError.stories.d.ts +0 -1
  222. package/dist/types/components/Response/stories/ResponseFail.stories.d.ts +0 -1
  223. package/dist/types/components/Response/stories/ResponseNothingFound.stories.d.ts +0 -1
  224. package/dist/types/components/Response/stories/ResponseRefresh.stories.d.ts +0 -1
  225. package/dist/types/components/Response/stories/ResponseSuccess.stories.d.ts +0 -1
  226. package/dist/types/components/Response/stories/ResponseUnableLoadData.stories.d.ts +0 -1
  227. package/dist/types/components/Response/stories/ResponseWarning.stories.d.ts +0 -1
  228. package/dist/types/components/Search/Search.interface.d.ts +1 -3
  229. package/dist/types/components/Search/SearchInput.d.ts +0 -1
  230. package/dist/types/components/Search/SearchInput.js +2 -2
  231. package/dist/types/components/Search/SearchResult.d.ts +0 -1
  232. package/dist/types/components/Search/SearchResult.js +2 -2
  233. package/dist/types/components/Search/appearance/searchShape.js +0 -4
  234. package/dist/types/components/Search/stories/SearchInputDefault.stories.d.ts +0 -1
  235. package/dist/types/components/Search/stories/SearchInputDemo.stories.d.ts +0 -1
  236. package/dist/types/components/Search/stories/SearchInputDisabled.stories.d.ts +0 -1
  237. package/dist/types/components/Search/stories/SearchInputError.stories.d.ts +0 -1
  238. package/dist/types/components/Search/stories/SearchInputRequire.stories.d.ts +0 -1
  239. package/dist/types/components/Search/stories/SearchInputShape.stories.d.ts +0 -1
  240. package/dist/types/components/Search/stories/SearchInputSize.stories.d.ts +0 -1
  241. package/dist/types/components/Search/stories/SearchInputStyle.stories.d.ts +0 -1
  242. package/dist/types/components/Search/stories/SearchInputSuccess.stories.d.ts +0 -1
  243. package/dist/types/components/Segmented/Segmented.interface.d.ts +1 -2
  244. package/dist/types/components/Segmented/Segmented.js +2 -2
  245. package/dist/types/components/Segmented/appearance/segmentedShape.js +0 -4
  246. package/dist/types/components/Select/Select.interface.d.ts +1 -5
  247. package/dist/types/components/Select/SelectContainer.js +3 -3
  248. package/dist/types/components/Select/SelectMenu.js +2 -2
  249. package/dist/types/components/Select/SelectOption.js +2 -2
  250. package/dist/types/components/Select/appearance/selectShape.js +0 -4
  251. package/dist/types/components/Tab/Tab.interface.d.ts +1 -2
  252. package/dist/types/components/Tab/Tab.js +2 -2
  253. package/dist/types/components/Textarea/Textarea.interface.d.ts +1 -2
  254. package/dist/types/components/Textarea/Textarea.js +2 -2
  255. package/dist/types/components/Textarea/appearance/textareaShape.js +0 -4
  256. package/dist/types/components/Tile/Tile.interface.d.ts +1 -2
  257. package/dist/types/components/Tile/Tile.js +2 -2
  258. package/dist/types/components/Tile/appearance/tileShape.js +0 -4
  259. package/dist/types/components/Tooltip/Tooltip.d.ts +0 -1
  260. package/dist/types/components/Tooltip/Tooltip.interface.d.ts +1 -2
  261. package/dist/types/components/Tooltip/Tooltip.js +2 -2
  262. package/dist/types/components/Tooltip/appearance/tooltipShape.js +0 -4
  263. package/dist/types/components/Tooltip/stories/TooltipAppearance.stories.d.ts +0 -1
  264. package/dist/types/components/Tooltip/stories/TooltipArrow.stories.d.ts +0 -1
  265. package/dist/types/components/Tooltip/stories/TooltipCustom.stories.d.ts +0 -1
  266. package/dist/types/components/Tooltip/stories/TooltipDemo.stories.d.ts +0 -1
  267. package/dist/types/components/Tooltip/stories/TooltipSize.stories.d.ts +0 -1
  268. package/dist/types/components/Tooltip/stories/TooltipStyle.stories.d.ts +0 -1
  269. package/dist/types/components/Warning/Warning.interface.d.ts +1 -2
  270. package/dist/types/components/Warning/Warning.js +2 -2
  271. package/dist/types/components/Warning/appearance/warningShape.js +0 -4
  272. package/package.json +3 -3
  273. package/dist/Avatar_cjs_DdnwG1w2.js +0 -1
  274. package/dist/Avatar_es_euIbzcZ-.js +0 -1
  275. package/dist/Button_cjs_CzPantyj.js +0 -1
  276. package/dist/Button_es_BVekDLIK.js +0 -1
  277. package/dist/Group_cjs_DAN0XGpT.js +0 -1
  278. package/dist/Group_es_BFXPojdD.js +0 -1
  279. package/dist/Input_cjs_lvK2GCQw.js +0 -1
  280. package/dist/Input_es_BrC02Clu.js +0 -1
  281. package/dist/Label_cjs_BQhRLATI.js +0 -1
  282. package/dist/Label_es_CXOrFvDM.js +0 -1
  283. package/dist/SelectContainer_cjs_CthoI8WZ.js +0 -1
  284. package/dist/SelectContainer_es_D9ojPuGg.js +0 -1
  285. package/dist/primitives_cjs_CHD2pBSn.js +0 -1
  286. package/dist/primitives_es_AOPzysvv.js +0 -1
@@ -13,8 +13,8 @@ function Loader(props) {
13
13
  const { appearance, className, dataTestId, dataTour, type = 'dot', text, isDisabled, isSkeleton, children, } = props;
14
14
  const appearanceConfig = useAppearanceConfig(appearance, loaderConfig, isDisabled);
15
15
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
16
- const { fillClass, borderColorClass, textColor, textSize, heightClass, itemFillClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
16
+ const { fillClass, borderColorClass, textColor, textSize, heightClass, itemFillClass, shapeClass, sizeClass, widthClass, } = propsGenerator;
17
17
  const { styles: loader } = useStyles(props);
18
- return (_jsxs("div", { className: clsx('loader', className, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, fillClass && `fill_${fillClass}`, sizeClass && `loader_size_${sizeClass}`, isSkeleton && `skeleton`, type && `loader_type_${type}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: loader, children: [children || (_jsxs("div", { className: "loader__inner", children: [_jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`, type === 'circular' && `border-color_${borderColorClass}`), children: "\u00A0" }), _jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" }), _jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" })] })), text && (_jsx(Text, { className: "loader__text", size: textSize, textColor: textColor, children: text }))] }));
18
+ return (_jsxs("div", { className: clsx('loader', className, widthClass && `width_${widthClass}`, heightClass && `height_${heightClass}`, fillClass && `fill_${fillClass}`, sizeClass && `loader_size_${sizeClass}`, isSkeleton && `skeleton`, type && `loader_type_${type}`, shapeClass && `shape_${shapeClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: loader, children: [children || (_jsxs("div", { className: "loader__inner", children: [_jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`, type === 'circular' && `border-color_${borderColorClass}`), children: "\u00A0" }), _jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" }), _jsx("span", { className: clsx('loader__item', itemFillClass && `fill_${itemFillClass}`), children: "\u00A0" })] })), text && (_jsx(Text, { className: "loader__text", size: textSize, textColor: textColor, children: text }))] }));
19
19
  }
20
20
  export { Loader, loaderConfig };
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties, ElementType, ReactNode } from 'react';
2
2
  import type { LinkProps } from 'react-scroll';
3
- import type { AlignProps, AppearanceConfig, AppearanceKeysDefault, ArrowPosition, BorderColorProps, CompositeAppearanceKeys, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, ShapeStrengthProps, TextSizeProps, UnderlineProps } from '@itcase/types-ui';
3
+ import type { AlignProps, AppearanceConfig, AppearanceKeysDefault, ArrowPosition, BorderColorProps, CompositeAppearanceKeys, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, TextSizeProps, UnderlineProps } from '@itcase/types-ui';
4
4
  import { StyleAttributes } from '@itcase/ui-core/hooks';
5
5
  import type { IconProps } from '../Icon/Icon.interface';
6
6
  import type { TextProps } from '../Text/Text.interface';
@@ -47,11 +47,9 @@ type MenuItemAppearanceProps = {
47
47
  labelWeight?: TextProps['textWeight'];
48
48
  labelWrap?: TextProps['textWrap'];
49
49
  shape?: ShapeProps;
50
- shapeStrength?: ShapeStrengthProps;
51
50
  size?: TextSizeProps;
52
51
  tooltipFill?: TooltipProps['fill'];
53
52
  tooltipShape?: TooltipProps['shape'];
54
- tooltipShapeStrength?: TooltipProps['shapeStrength'];
55
53
  tooltipSize?: TooltipProps['size'];
56
54
  tooltipText?: TooltipProps['text'];
57
55
  tooltipTextColor?: TooltipProps['textColor'];
@@ -17,18 +17,16 @@ function MenuItem(props) {
17
17
  const { appearance, className, dataTestId, dataTour, label, easing, href, link, LinkComponent, rel, showTooltip, target, tooltipAppearance, tooltipArrowPosition, tooltipContent, underline, before, after, isActive, isDisabled, onClick, children, } = props;
18
18
  const appearanceConfig = useAppearanceConfig(appearance, menuItemConfig, isDisabled);
19
19
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
20
- const { directionClass, justifyContentClass, alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorDisabled, labelTextColorHover, labelTextSize, labelWeight, labelWrap, borderColorClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBadgeAppearance, iconBadgeShape, iconBadgeSize, iconBadgeTextColor, iconBadgeTextSize, iconBadgeValue, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, shapeClass, shapeStrengthClass, sizeClass, tooltipFill, tooltipPlacement = 'top', tooltipShape, tooltipShapeStrength, tooltipSize, tooltipText, tooltipTextColor, tooltipTextSize, tooltipTitle, tooltipTitleTextColor, typeClass, widthClass, isSkeleton, } = propsGenerator;
20
+ const { directionClass, justifyContentClass, alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorDisabled, labelTextColorHover, labelTextSize, labelWeight, labelWrap, borderColorClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBadgeAppearance, iconBadgeShape, iconBadgeSize, iconBadgeTextColor, iconBadgeTextSize, iconBadgeValue, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, shapeClass, sizeClass, tooltipFill, tooltipPlacement = 'top', tooltipShape, tooltipSize, tooltipText, tooltipTextColor, tooltipTextSize, tooltipTitle, tooltipTitleTextColor, typeClass, widthClass, isSkeleton, } = propsGenerator;
21
21
  const { styles: menuItem } = useStyles(props);
22
22
  const TooltipWrapperComponent = showTooltip ? TooltipWrapper : React.Fragment;
23
- return (_jsx(TooltipWrapperComponent, { appearance: tooltipAppearance, minWidth: "auto", size: tooltipSize, fill: tooltipFill, title: tooltipTitle, titleColor: tooltipTitleTextColor, text: tooltipText, textColor: tooltipTextColor, textSize: tooltipTextSize, arrowPosition: tooltipArrowPosition, placement: tooltipPlacement, shape: tooltipShape, shapeStrength: tooltipShapeStrength, tooltipContent: tooltipContent, children: _jsx("div", { className: clsx('menu-item', easing && `easing_${easing}`, isActive && 'menu-item_state_active', isDisabled && `menu-item_state_disabled`, directionClass && `menu-item_direction_${directionClass}`, className, (iconBefore || iconBeforeSrc || iconAfter || iconAfterSrc) &&
23
+ return (_jsx(TooltipWrapperComponent, { appearance: tooltipAppearance, minWidth: "auto", size: tooltipSize, fill: tooltipFill, title: tooltipTitle, titleColor: tooltipTitleTextColor, text: tooltipText, textColor: tooltipTextColor, textSize: tooltipTextSize, arrowPosition: tooltipArrowPosition, placement: tooltipPlacement, shape: tooltipShape, tooltipContent: tooltipContent, children: _jsx("div", { className: clsx('menu-item', easing && `easing_${easing}`, isActive && 'menu-item_state_active', isDisabled && `menu-item_state_disabled`, directionClass && `menu-item_direction_${directionClass}`, className, (iconBefore || iconBeforeSrc || iconAfter || iconAfterSrc) &&
24
24
  'menu-item_label-icon', sizeClass && `menu-item_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, !isActive
25
25
  ? fillClass && `fill_${fillClass}`
26
26
  : fillActiveClass && `fill_active_${fillActiveClass}`, !isActive
27
27
  ? fillHoverClass && `fill_hover_${fillHoverClass}`
28
28
  : fillActiveHoverClass &&
29
- `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass
30
- ? `shape-strength_${shapeStrengthClass}`
31
- : shapeClass === 'rounded' && 'shape-strength_default', typeClass && `menu-item_type_${typeClass}`, widthClass && `width_${widthClass}`, justifyContentClass &&
29
+ `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeClass === 'rounded' && 'shape-strength_default', typeClass && `menu-item_type_${typeClass}`, widthClass && `width_${widthClass}`, justifyContentClass &&
32
30
  `menu-item_justify-content_${justifyContentClass}`, isSkeleton && `skeleton`), "data-testid": dataTestId, "data-tour": dataTour, style: menuItem, children: _jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, onClick: onClick, children: [before, children || (_jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (_jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (_jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorDisabled: labelTextColorDisabled, textColorHover: labelTextColorHover, textWeight: labelWeight, textWrap: labelWrap, isActive: isActive, isDisabled: isDisabled, children: label })), (iconAfter || iconAfterSrc) && (_jsx(Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: "menu-item__icon_after_badge", badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after] }) }) }));
33
31
  }
34
32
  export { MenuItem, menuItemConfig };
@@ -7,19 +7,15 @@ const menuItemAppearanceShape = {
7
7
  },
8
8
  roundedXL: {
9
9
  shape: 'rounded',
10
- shapeStrength: '2m',
11
10
  },
12
11
  roundedL: {
13
12
  shape: 'rounded',
14
- shapeStrength: '1_5m',
15
13
  },
16
14
  roundedM: {
17
15
  shape: 'rounded',
18
- shapeStrength: '1m',
19
16
  },
20
17
  roundedS: {
21
18
  shape: 'rounded',
22
- shapeStrength: '0_5m',
23
19
  },
24
20
  };
25
21
  export { menuItemAppearanceShape };
@@ -21,7 +21,6 @@ declare const Modal: React.ForwardRefExoticComponent<{
21
21
  overlayOpacity?: import("src/components/Overlay").OverlayProps["opacity"];
22
22
  print?: boolean;
23
23
  shape?: import("@itcase/types-ui").ShapeProps;
24
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
25
24
  size?: import("@itcase/types-ui").SizeProps;
26
25
  textColor?: import("../Text").TextProps["textColor"];
27
26
  textSize?: import("../Text").TextProps["size"];
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, MouseEventHandler, ReactNode } from 'react';
2
- import { AppearanceConfig, AppearanceIconSizeKey, AppearanceKeysDefault, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKeys, ElevationProps, FillProps, ItemFillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps } from '@itcase/types-ui';
2
+ import { AppearanceConfig, AppearanceIconSizeKey, AppearanceKeysDefault, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceKeys, ElevationProps, FillProps, ItemFillProps, ShapeProps, SizeProps, WidthProps } from '@itcase/types-ui';
3
3
  import { StyleAttributes } from '@itcase/ui-core/hooks';
4
4
  import { IconProps } from 'src/components/Icon/Icon.interface';
5
5
  import { OverlayProps } from 'src/components/Overlay/Overlay.interface';
@@ -25,7 +25,6 @@ type ModalAppearanceProps = {
25
25
  overlayOpacity?: OverlayProps['opacity'];
26
26
  print?: boolean;
27
27
  shape?: ShapeProps;
28
- shapeStrength?: ShapeStrengthProps;
29
28
  size?: SizeProps;
30
29
  textColor?: TextProps['textColor'];
31
30
  textSize?: TextProps['size'];
@@ -125,10 +125,10 @@ const Modal = React.forwardRef(function Modal(props, ref) {
125
125
  useImperativeHandle(ref, () => ({ modalElement, openModal, closeModal, isOpen }), [isOpen, openModal, closeModal, modalElement]);
126
126
  const appearanceConfig = useAppearanceConfig(appearance, modalConfig, isDisabled);
127
127
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
128
- const { fillClass, titleTextColor, titleTextColorHover, titleTextSize, titleTextTruncate, titleTextWeight, titleTextWidth, titleTextWrap, borderColorClass, borderTypeClass, borderWidthClass, elevationClass, overlayFill, overlayOpacity, shapeClass, shapeStrengthClass, sizeClass, closeIconAppearance, closeIconAppearanceSize, closeIconFillSize, closeIconImage, closeIconShape, closeIconSize, } = propsGenerator;
128
+ const { fillClass, titleTextColor, titleTextColorHover, titleTextSize, titleTextTruncate, titleTextWeight, titleTextWidth, titleTextWrap, borderColorClass, borderTypeClass, borderWidthClass, elevationClass, overlayFill, overlayOpacity, shapeClass, sizeClass, closeIconAppearance, closeIconAppearanceSize, closeIconFillSize, closeIconImage, closeIconShape, closeIconSize, } = propsGenerator;
129
129
  const { styles: modalStyles } = useStyles(props);
130
130
  return (modalElement &&
131
- ReactDOM.createPortal(isOpen ? (_jsxs(React.Fragment, { children: [_jsxs("div", { id: id, className: clsx('modal__content', absoluteHeader && 'modal__content-absolute-header', !title && !closeIcon && 'modal__content-no-header', fillClass && `fill_${fillClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, shapeClass && `shape_${shapeClass}`, sizeClass && `modal_size_${sizeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, elevationClass && `elevation_${elevationClass}`, scroll && `modal-scroll_${scroll}`, stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'skeleton'), ref: modalContentRef, "data-testid": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, children: [before, (title || closeIcon) && (_jsxs("div", { className: clsx('modal__header', fillClass && `fill_${fillClass}`), children: [title && (_jsx(Title, { width: titleTextWidth, flex: "1", size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeIcon && (_jsx("div", { className: "modal__close", onClick: closeModal, children: _jsx(Icon, { appearance: mergeAppearanceKeys(closeIconAppearance, closeIconAppearanceSize), fillSize: closeIconFillSize, iconSize: closeIconSize, shape: closeIconShape, SvgImage: closeIconImage ?? icons24.Action.Close }) }))] })), _jsx("div", { className: "modal__content-wrapper", children: children }), after] }), _jsx(Overlay, { className: "modal__overlay",
131
+ ReactDOM.createPortal(isOpen ? (_jsxs(React.Fragment, { children: [_jsxs("div", { id: id, className: clsx('modal__content', absoluteHeader && 'modal__content-absolute-header', !title && !closeIcon && 'modal__content-no-header', fillClass && `fill_${fillClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderColorClass && `border-color_${borderColorClass}`, borderTypeClass && `border_type_${borderTypeClass}`, shapeClass && `shape_${shapeClass}`, sizeClass && `modal_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, elevationClass && `elevation_${elevationClass}`, scroll && `modal-scroll_${scroll}`, stickyHeader && 'modal-scroll_header_sticky', isSkeleton && 'skeleton'), ref: modalContentRef, "data-testid": dataTestId, "data-tour": dataTour, style: modalStyles, tabIndex: 0, children: [before, (title || closeIcon) && (_jsxs("div", { className: clsx('modal__header', fillClass && `fill_${fillClass}`), children: [title && (_jsx(Title, { width: titleTextWidth, flex: "1", size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeIcon && (_jsx("div", { className: "modal__close", onClick: closeModal, children: _jsx(Icon, { appearance: mergeAppearanceKeys(closeIconAppearance, closeIconAppearanceSize), fillSize: closeIconFillSize, iconSize: closeIconSize, shape: closeIconShape, SvgImage: closeIconImage ?? icons24.Action.Close }) }))] })), _jsx("div", { className: "modal__content-wrapper", children: children }), after] }), _jsx(Overlay, { className: "modal__overlay",
132
132
  // ref={modalOverlayRef}
133
133
  fill: overlayFill, opacity: overlayOpacity, isOverlay: isOverlay, onClick: handleClickOverlay })] })) : null,
134
134
  // A DOM element
@@ -7,19 +7,15 @@ const modalAppearanceShape = {
7
7
  },
8
8
  roundedXL: {
9
9
  shape: 'rounded',
10
- shapeStrength: '2m',
11
10
  },
12
11
  roundedL: {
13
12
  shape: 'rounded',
14
- shapeStrength: '1_5m',
15
13
  },
16
14
  roundedM: {
17
15
  shape: 'rounded',
18
- shapeStrength: '1m',
19
16
  },
20
17
  roundedS: {
21
18
  shape: 'rounded',
22
- shapeStrength: '0_5m',
23
19
  },
24
20
  };
25
21
  export { modalAppearanceShape };
@@ -21,7 +21,6 @@ declare const meta: {
21
21
  overlayOpacity?: import("../../Overlay").OverlayProps["opacity"];
22
22
  print?: boolean;
23
23
  shape?: import("@itcase/types-ui").ShapeProps;
24
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
25
24
  size?: import("@itcase/types-ui").SizeProps;
26
25
  textColor?: import("../../Text").TextProps["textColor"];
27
26
  textSize?: import("../../Text").TextProps["size"];
@@ -22,7 +22,6 @@ declare const meta: {
22
22
  overlayOpacity?: import("../../Overlay").OverlayProps["opacity"];
23
23
  print?: boolean;
24
24
  shape?: import("@itcase/types-ui").ShapeProps;
25
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
26
25
  size?: import("@itcase/types-ui").SizeProps;
27
26
  textColor?: import("../../Text").TextProps["textColor"];
28
27
  textSize?: import("../../Text").TextProps["size"];
@@ -21,7 +21,6 @@ declare const meta: {
21
21
  overlayOpacity?: import("../../Overlay").OverlayProps["opacity"];
22
22
  print?: boolean;
23
23
  shape?: import("@itcase/types-ui").ShapeProps;
24
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
25
24
  size?: import("@itcase/types-ui").SizeProps;
26
25
  textColor?: import("../../Text").TextProps["textColor"];
27
26
  textSize?: import("../../Text").TextProps["size"];
@@ -21,7 +21,6 @@ declare const meta: {
21
21
  overlayOpacity?: import("../../Overlay").OverlayProps["opacity"];
22
22
  print?: boolean;
23
23
  shape?: import("@itcase/types-ui").ShapeProps;
24
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
25
24
  size?: import("@itcase/types-ui").SizeProps;
26
25
  textColor?: import("../../Text").TextProps["textColor"];
27
26
  textSize?: import("../../Text").TextProps["size"];
@@ -21,7 +21,6 @@ declare const meta: {
21
21
  overlayOpacity?: import("../../Overlay").OverlayProps["opacity"];
22
22
  print?: boolean;
23
23
  shape?: import("@itcase/types-ui").ShapeProps;
24
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
25
24
  size?: import("@itcase/types-ui").SizeProps;
26
25
  textColor?: import("../../Text").TextProps["textColor"];
27
26
  textSize?: import("../../Text").TextProps["size"];
@@ -21,7 +21,6 @@ declare const meta: {
21
21
  overlayOpacity?: import("../../Overlay").OverlayProps["opacity"];
22
22
  print?: boolean;
23
23
  shape?: import("@itcase/types-ui").ShapeProps;
24
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
25
24
  size?: import("@itcase/types-ui").SizeProps;
26
25
  textColor?: import("../../Text").TextProps["textColor"];
27
26
  textSize?: import("../../Text").TextProps["size"];
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties, MouseEventHandler, ReactNode } from 'react';
2
2
  import { GeneratedId } from '@itcase/types-core';
3
- import { AppearanceConfig, AppearanceIconSizeKey, AppearanceKeysNotification, BorderColorProps, CompositeAppearanceNotificationKeys, ElevationProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, WidthProps } from '@itcase/types-ui';
3
+ import { AppearanceConfig, AppearanceIconSizeKey, AppearanceKeysNotification, BorderColorProps, CompositeAppearanceNotificationKeys, ElevationProps, FillHoverProps, FillProps, ShapeProps, SizeProps, WidthProps } from '@itcase/types-ui';
4
4
  import { StyleAttributes } from '@itcase/ui-core/hooks';
5
5
  import { ButtonProps } from 'src/components/Button/Button.interface';
6
6
  import { IconProps } from 'src/components/Icon/Icon.interface';
@@ -27,7 +27,6 @@ type NotificationAppearanceProps = {
27
27
  loaderType?: LoaderProps['type'];
28
28
  set?: string;
29
29
  shape?: ShapeProps;
30
- shapeStrength?: ShapeStrengthProps;
31
30
  size?: SizeProps;
32
31
  status?: string;
33
32
  text?: string;
@@ -17,8 +17,8 @@ function Notification(props) {
17
17
  const { id, appearance, className, dataTestId, dataTour, type = 'float', title, text, before, after, isSkeleton, isLoading, onClickButton, onClickClose, } = props;
18
18
  const appearanceConfig = useAppearanceConfig(appearance, notificationConfig);
19
19
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
20
- const { fillClass, fillHoverClass, titleTextColor, titleTextSize, descTextColor, descTextSize, buttonAppearance, buttonLabel, elevationClass, loaderAppearance, loaderAppearanceSize, loaderFill, loaderItemFill, loaderSize, loaderType = 'dot', shapeClass, shapeStrengthClass, sizeClass, widthClass, closeIcon, closeIconAppearance, closeIconAppearanceSize, closeIconSrc, } = propsGenerator;
20
+ const { fillClass, fillHoverClass, titleTextColor, titleTextSize, descTextColor, descTextSize, buttonAppearance, buttonLabel, elevationClass, loaderAppearance, loaderAppearanceSize, loaderFill, loaderItemFill, loaderSize, loaderType = 'dot', shapeClass, sizeClass, widthClass, closeIcon, closeIconAppearance, closeIconAppearanceSize, closeIconSrc, } = propsGenerator;
21
21
  const { styles: notificationStyles } = useStyles(props);
22
- return (_jsxs("div", { className: clsx('notification__item', `notification__item_${type}`, widthClass && `width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, fillClass && `fill_${fillClass}`, sizeClass && `notification__item_size_${sizeClass}`, type && `notification__item_type_${type}`, fillHoverClass && `fill_${fillHoverClass}`, isSkeleton && `skeleton`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: notificationStyles, children: [before, _jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (_jsx(Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), text && (_jsx(Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: text })), isLoading && (_jsx(Loader, { appearance: mergeAppearanceKeys(loaderAppearance, loaderAppearanceSize), className: clsx(className, 'button__loader'), type: loaderType, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), onClickClose && (_jsx(Icon, { appearance: mergeAppearanceKeys(closeIconAppearance, closeIconAppearanceSize), className: clsx('notification__item-close', 'cursor_type_pointer'), imageSrc: closeIconSrc, SvgImage: closeIcon, onClick: () => onClickClose && onClickClose(id) })), onClickButton && buttonLabel && (_jsx(Button, { appearance: buttonAppearance, className: "notification__item-button", width: "fill", label: buttonLabel, onClick: onClickButton }))] }), after] }));
22
+ return (_jsxs("div", { className: clsx('notification__item', `notification__item_${type}`, widthClass && `width_${widthClass}`, elevationClass && `elevation_${elevationClass}`, fillClass && `fill_${fillClass}`, sizeClass && `notification__item_size_${sizeClass}`, type && `notification__item_type_${type}`, fillHoverClass && `fill_${fillHoverClass}`, isSkeleton && `skeleton`, shapeClass && `shape_${shapeClass}`), "data-testid": dataTestId, "data-tour": dataTour, style: notificationStyles, children: [before, _jsxs("div", { className: clsx(className, 'notification__item-wrapper'), children: [title && (_jsx(Text, { className: "notification__item-title", size: titleTextSize, textColor: titleTextColor, children: title })), text && (_jsx(Text, { className: "notification__item-text", size: descTextSize, textColor: descTextColor, children: text })), isLoading && (_jsx(Loader, { appearance: mergeAppearanceKeys(loaderAppearance, loaderAppearanceSize), className: clsx(className, 'button__loader'), type: loaderType, size: loaderSize, fill: loaderFill, itemFill: loaderItemFill })), onClickClose && (_jsx(Icon, { appearance: mergeAppearanceKeys(closeIconAppearance, closeIconAppearanceSize), className: clsx('notification__item-close', 'cursor_type_pointer'), imageSrc: closeIconSrc, SvgImage: closeIcon, onClick: () => onClickClose && onClickClose(id) })), onClickButton && buttonLabel && (_jsx(Button, { appearance: buttonAppearance, className: "notification__item-button", width: "fill", label: buttonLabel, onClick: onClickButton }))] }), after] }));
23
23
  }
24
24
  export { Notification, notificationConfig };
@@ -7,19 +7,15 @@ const notificationAppearanceShape = {
7
7
  },
8
8
  roundedXL: {
9
9
  shape: 'rounded',
10
- shapeStrength: '2m',
11
10
  },
12
11
  roundedL: {
13
12
  shape: 'rounded',
14
- shapeStrength: '1_5m',
15
13
  },
16
14
  roundedM: {
17
15
  shape: 'rounded',
18
- shapeStrength: '1m',
19
16
  },
20
17
  roundedS: {
21
18
  shape: 'rounded',
22
- shapeStrength: '0_5m',
23
19
  },
24
20
  };
25
21
  export { notificationAppearanceShape };
@@ -1,5 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
- import { AppearanceConfig, AppearanceKeysDefault, BorderColorProps, CompositeAppearanceKeys, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, ShapeStrengthProps, SizeProps } from '@itcase/types-ui';
2
+ import { AppearanceConfig, AppearanceKeysDefault, BorderColorProps, CompositeAppearanceKeys, DirectionProps, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, SizeProps } from '@itcase/types-ui';
3
3
  import { StyleAttributes } from '@itcase/ui-core/hooks';
4
4
  import { DropdownItemProps, DropdownProps } from 'src/components/Dropdown/Dropdown.interface';
5
5
  import { IconProps } from 'src/components/Icon/Icon.interface';
@@ -18,7 +18,6 @@ type PaginationAppearanceProps = {
18
18
  fillInput?: FillProps;
19
19
  fillInputHover?: FillHoverProps;
20
20
  fillInputShape?: ShapeProps;
21
- fillInputShapeStrength?: ShapeStrengthProps;
22
21
  gap?: string;
23
22
  justifyContent?: JustifyContentProps;
24
23
  labelTextColor?: TextProps['textColor'];
@@ -55,7 +54,6 @@ type PaginationAppearanceProps = {
55
54
  pageCountDropdownItemSize?: DropdownItemProps['size'];
56
55
  pageCountDropdownItemWidth?: DropdownItemProps['width'];
57
56
  pageCountDropdownShape?: DropdownItemProps['shape'];
58
- pageCountDropdownShapeStrength?: DropdownProps['shapeStrength'];
59
57
  pageCountInputIcon?: IconProps['SvgImage'];
60
58
  pageCountInputIconColor?: IconProps['iconFill'];
61
59
  pageCountInputIconFillSize?: IconProps['fillSize'];
@@ -98,7 +98,7 @@ function Pagination(props) {
98
98
  }, [allItemsCount]);
99
99
  const appearanceConfig = useAppearanceConfig(appearance, paginationConfig, isDisabled);
100
100
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
101
- const { justifyContentClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, fillInputClass, fillInputHoverClass, fillInputShapeClass, fillInputShapeStrengthClass, textColorActiveClass, textColorActiveHoverClass, textColorClass, textColorHoverClass, textSizeClass, builderIcon, builderIconFill, builderIconFillIcon, builderIconFillSize, builderIconSize, marginPagesDisplayed, nextIcon, nextIconFill, nextIconFillIcon, nextIconFillSize, nextIconSize, pageCountDescTextColor, pageCountDescTextSize, pageCountDropdownAlignment, pageCountDropdownElevation, pageCountDropdownFill, pageCountDropdownFillHover, pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize, pageCountDropdownItemFill, pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider, pageCountDropdownItemSize, pageCountDropdownItemWidth, pageCountDropdownShape, pageCountDropdownShapeStrength, pageCountInputIcon, pageCountInputIconColor, pageCountInputIconFillSize, pageCountInputIconSrc, pageCountInputTextColor, pageCountInputTextSize, pageRangeDisplayed, previousIcon, previousIconFill, previousIconFillIcon, previousIconFillSize, previousIconSize, sizeClass, } = propsGenerator;
101
+ const { justifyContentClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, fillInputClass, fillInputHoverClass, fillInputShapeClass, textColorActiveClass, textColorActiveHoverClass, textColorClass, textColorHoverClass, textSizeClass, builderIcon, builderIconFill, builderIconFillIcon, builderIconFillSize, builderIconSize, marginPagesDisplayed, nextIcon, nextIconFill, nextIconFillIcon, nextIconFillSize, nextIconSize, pageCountDescTextColor, pageCountDescTextSize, pageCountDropdownAlignment, pageCountDropdownElevation, pageCountDropdownFill, pageCountDropdownFillHover, pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize, pageCountDropdownItemFill, pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider, pageCountDropdownItemSize, pageCountDropdownItemWidth, pageCountDropdownShape, pageCountInputIcon, pageCountInputIconColor, pageCountInputIconFillSize, pageCountInputIconSrc, pageCountInputTextColor, pageCountInputTextSize, pageRangeDisplayed, previousIcon, previousIconFill, previousIconFillIcon, previousIconFillSize, previousIconSize, sizeClass, } = propsGenerator;
102
102
  const { styles: paginationStyles } = useStyles(props);
103
103
  const minPageSize = Math.min(perPageCount, ...pageCountList);
104
104
  const isPaginationDisplayed = allItemsCount > minPageSize;
@@ -107,8 +107,7 @@ function Pagination(props) {
107
107
  `text text-color_active_${textColorActiveClass}`, textColorActiveHoverClass &&
108
108
  `text text-color_active_hover_${textColorActiveHoverClass}`), breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
109
109
  `pagination_justify-content_${justifyContentClass}`), disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled", forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: clsx('pagination__item pagination__item_next', sizeClass && `pagination__item_size_${sizeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), nextLabel: _jsx(Icon, { fill: nextIconFill, fillSize: nextIconFillSize, iconFill: nextIconFillIcon, iconSize: nextIconSize, shape: "circular", SvgImage: nextIcon }), nextLinkClassName: "pagination__item-link", pageClassName: clsx('pagination__item', sizeClass && `pagination__item_size_${sizeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), pageCount: paginationPagesCount, pageLabelBuilder: isPageLabelBuilder &&
110
- (() => (_jsx(Icon, { fill: builderIconFill, fillSize: builderIconFillSize, iconFill: builderIconFillIcon, iconSize: builderIconSize, shape: "circular", SvgImage: builderIcon }))), pageLinkClassName: clsx('pagination__item-link', textSizeClass && `pagination__item-link_size_${textSizeClass}`, textColorClass && `text text-color_${textColorClass}`, textColorHoverClass && `text-color_hover_${textColorHoverClass}`), pageRangeDisplayed: pageRangeDisplayed ?? 8, previousClassName: clsx('pagination__item pagination__item_previous', sizeClass && `pagination__item_size_${sizeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), previousLabel: _jsx(Icon, { fill: previousIconFill, fillSize: previousIconFillSize, iconFill: previousIconFillIcon, iconSize: previousIconSize, shape: "circular", SvgImage: previousIcon }), previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (_jsxs("div", { className: clsx(className, 'pagination__count'), children: [_jsx(Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), _jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillInputClass && `fill_${fillInputClass}`, fillInputHoverClass && `fill_hover_${fillInputHoverClass}`, fillInputShapeClass && `shape_${fillInputShapeClass}`, fillInputShapeStrengthClass &&
111
- `shape-strength_${fillInputShapeStrengthClass}`), onClick: onClickCommandMenuButton, children: [_jsx(Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), _jsx(Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), _jsx(Dropdown, { className: "pagination__dropdown", alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, fillHover: pageCountDropdownFillHover, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, shapeStrength: pageCountDropdownShapeStrength, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map((item, index) => activeDropdownItem === item ? (_jsx(DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillActive: pageCountDropdownItemFillActive, fillActiveHover: pageCountDropdownItemFillActiveHover, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorActive: pageCountDropdownItemLabelColorActive, labelTextColorActiveHover: pageCountDropdownItemLabelColorActiveHover, labelTextColorHover: pageCountDropdownItemLabelColorHover, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountList.length - 1 &&
110
+ (() => (_jsx(Icon, { fill: builderIconFill, fillSize: builderIconFillSize, iconFill: builderIconFillIcon, iconSize: builderIconSize, shape: "circular", SvgImage: builderIcon }))), pageLinkClassName: clsx('pagination__item-link', textSizeClass && `pagination__item-link_size_${textSizeClass}`, textColorClass && `text text-color_${textColorClass}`, textColorHoverClass && `text-color_hover_${textColorHoverClass}`), pageRangeDisplayed: pageRangeDisplayed ?? 8, previousClassName: clsx('pagination__item pagination__item_previous', sizeClass && `pagination__item_size_${sizeClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`), previousLabel: _jsx(Icon, { fill: previousIconFill, fillSize: previousIconFillSize, iconFill: previousIconFillIcon, iconSize: previousIconSize, shape: "circular", SvgImage: previousIcon }), previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (_jsxs("div", { className: clsx(className, 'pagination__count'), children: [_jsx(Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), _jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillInputClass && `fill_${fillInputClass}`, fillInputHoverClass && `fill_hover_${fillInputHoverClass}`, fillInputShapeClass && `shape_${fillInputShapeClass}`), onClick: onClickCommandMenuButton, children: [_jsx(Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), _jsx(Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), _jsx(Dropdown, { className: "pagination__dropdown", alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, fillHover: pageCountDropdownFillHover, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map((item, index) => activeDropdownItem === item ? (_jsx(DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillActive: pageCountDropdownItemFillActive, fillActiveHover: pageCountDropdownItemFillActiveHover, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorActive: pageCountDropdownItemLabelColorActive, labelTextColorActiveHover: pageCountDropdownItemLabelColorActiveHover, labelTextColorHover: pageCountDropdownItemLabelColorHover, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountList.length - 1 &&
112
111
  pageCountDropdownItemShowDivider, isActive: true, onClick: (event) => handleDropdownItemClick(event, item) }, item)) : (_jsx(DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorHover: pageCountDropdownItemLabelColorHover, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountList.length - 1 &&
113
112
  pageCountDropdownItemShowDivider, isActive: false, onClick: (event) => handleDropdownItemClick(event, item) }, item))) })] })] }))] })));
114
113
  }
@@ -8,27 +8,19 @@ const paginationAppearanceShape = {
8
8
  },
9
9
  roundedXL: {
10
10
  fillInputShape: 'rounded',
11
- fillInputShapeStrength: '2m',
12
11
  pageCountDropdownShape: 'rounded',
13
- pageCountDropdownShapeStrength: '2m',
14
12
  },
15
13
  roundedL: {
16
14
  fillInputShape: 'rounded',
17
- fillInputShapeStrength: '1_5m',
18
15
  pageCountDropdownShape: 'rounded',
19
- pageCountDropdownShapeStrength: '1_5m',
20
16
  },
21
17
  roundedM: {
22
18
  fillInputShape: 'rounded',
23
- fillInputShapeStrength: '1m',
24
19
  pageCountDropdownShape: 'rounded',
25
- pageCountDropdownShapeStrength: '1m',
26
20
  },
27
21
  roundedS: {
28
22
  fillInputShape: 'rounded',
29
- fillInputShapeStrength: '0_5m',
30
23
  pageCountDropdownShape: 'rounded',
31
- pageCountDropdownShapeStrength: '0_5m',
32
24
  },
33
25
  };
34
26
  export { paginationAppearanceShape };
@@ -1,5 +1,5 @@
1
1
  import { ElementType } from 'react';
2
- import { AppearanceConfig, AppearanceKeysState, BorderColorActiveProps, BorderColorHoverProps, BorderColorProps, CompositeAppearanceStateDefault, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SizeProps } from '@itcase/types-ui';
2
+ import { AppearanceConfig, AppearanceKeysState, BorderColorActiveProps, BorderColorHoverProps, BorderColorProps, CompositeAppearanceStateDefault, FillActiveHoverProps, FillActiveProps, FillHoverProps, FillProps, ShapeProps, SizeProps } from '@itcase/types-ui';
3
3
  import { StyleAttributes } from '@itcase/ui-core/hooks';
4
4
  import { TextProps } from 'src/components/Text/Text.interface';
5
5
  type RadioAppearanceProps = {
@@ -23,7 +23,6 @@ type RadioAppearanceProps = {
23
23
  labelTextSize?: TextProps['size'];
24
24
  labelTextWeight?: TextProps['textWeight'];
25
25
  shape?: ShapeProps;
26
- shapeStrength?: ShapeStrengthProps;
27
26
  size?: SizeProps;
28
27
  };
29
28
  type RadioProps = RadioAppearanceProps & StyleAttributes & {
@@ -13,7 +13,7 @@ function Radio(props) {
13
13
  const { id, appearance, className, dataTestId, dataTour, label, desc, checked, tag: Tag = 'label', value, isActive, isDisabled, isSkeleton, onChange, } = props;
14
14
  const appearanceConfig = useAppearanceConfig(appearance, radioConfig, isDisabled);
15
15
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
16
- const { fillCheckmarkClass, fillClass, fillHoverClass, fillRadioActiveClass, fillRadioActiveHoverClass, fillRadioClass, fillRadioHoverClass, labelTextColor, labelTextSize, labelTextWeight, descTextColor, descTextSize, descTextWeight, borderRadioColorActiveClass, borderRadioColorActiveHoverClass, borderRadioColorClass, borderRadioColorHoverClass, shapeClass, shapeStrengthClass, sizeClass, } = propsGenerator;
16
+ const { fillCheckmarkClass, fillClass, fillHoverClass, fillRadioActiveClass, fillRadioActiveHoverClass, fillRadioClass, fillRadioHoverClass, labelTextColor, labelTextSize, labelTextWeight, descTextColor, descTextSize, descTextWeight, borderRadioColorActiveClass, borderRadioColorActiveHoverClass, borderRadioColorClass, borderRadioColorHoverClass, shapeClass, sizeClass, } = propsGenerator;
17
17
  return (_jsxs(Tag, { className: clsx(className, 'radio', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_${fillHoverClass}`, isSkeleton && 'skeleton', sizeClass && `radio_size_${sizeClass}`, !checked || !isActive
18
18
  ? fillRadioClass && `radio_fill_${fillRadioClass}`
19
19
  : fillRadioActiveClass && `radio_fill_active_${fillRadioActiveClass}`, !checked || !isActive
@@ -27,6 +27,6 @@ function Radio(props) {
27
27
  ? borderRadioColorHoverClass &&
28
28
  `radio_border-color_hover_${borderRadioColorHoverClass}`
29
29
  : borderRadioColorActiveHoverClass &&
30
- `radio_border-color_active_hover_${borderRadioColorActiveHoverClass}`), "data-testid": dataTestId, "data-tour": dataTour, htmlFor: id, children: [_jsxs("div", { className: clsx('radio__item'), children: [_jsx("input", { id: String(id), className: "radio__input", type: "radio", checked: checked, disabled: isDisabled, value: value, onChange: onChange }), _jsx("div", { className: clsx('radio__state', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), children: "\u00A0" }), _jsx("div", { className: clsx('radio__state-checkmark', checked && fillCheckmarkClass && `fill_${fillCheckmarkClass}`), children: "\u00A0" })] }), label && (_jsx(Text, { className: "radio__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (_jsx(Text, { className: "radio__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] }));
30
+ `radio_border-color_active_hover_${borderRadioColorActiveHoverClass}`), "data-testid": dataTestId, "data-tour": dataTour, htmlFor: id, children: [_jsxs("div", { className: clsx('radio__item'), children: [_jsx("input", { id: String(id), className: "radio__input", type: "radio", checked: checked, disabled: isDisabled, value: value, onChange: onChange }), _jsx("div", { className: clsx('radio__state', shapeClass && `shape_${shapeClass}`), children: "\u00A0" }), _jsx("div", { className: clsx('radio__state-checkmark', checked && fillCheckmarkClass && `fill_${fillCheckmarkClass}`), children: "\u00A0" })] }), label && (_jsx(Text, { className: "radio__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (_jsx(Text, { className: "radio__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] }));
31
31
  }
32
32
  export { Radio, radioConfig };
@@ -7,19 +7,15 @@ const radioAppearanceShape = {
7
7
  },
8
8
  roundedXL: {
9
9
  shape: 'rounded',
10
- shapeStrength: '2m',
11
10
  },
12
11
  roundedL: {
13
12
  shape: 'rounded',
14
- shapeStrength: '1_5m',
15
13
  },
16
14
  roundedM: {
17
15
  shape: 'rounded',
18
- shapeStrength: '1m',
19
16
  },
20
17
  roundedS: {
21
18
  shape: 'rounded',
22
- shapeStrength: '0_5m',
23
19
  },
24
20
  };
25
21
  export { radioAppearanceShape };
@@ -35,7 +35,6 @@ declare const Response: import("react").ForwardRefExoticComponent<Omit<{
35
35
  secondaryButtonSize?: import("src/components/Button").ButtonProps["size"];
36
36
  secondaryButtonWidth?: import("src/components/Button").ButtonProps["width"];
37
37
  shape?: import("@itcase/types-ui").ShapeProps;
38
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
39
38
  svgFill?: import("@itcase/types-ui").SvgFillProps;
40
39
  SvgImage?: ComponentType<SVGProps<SVGSVGElement>> | import("../Icon").IconProps["SvgImage"];
41
40
  svgPathFill?: import("@itcase/types-ui").SvgFillProps;
@@ -1,5 +1,5 @@
1
1
  import { ComponentType, CSSProperties, ReactNode, SVGProps } from 'react';
2
- import { AppearanceConfig, AppearanceKeysResponse, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceResponseKeys, FillHoverProps, FillProps, ShapeProps, ShapeStrengthProps, SvgFillProps } from '@itcase/types-ui';
2
+ import { AppearanceConfig, AppearanceKeysResponse, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceResponseKeys, FillHoverProps, FillProps, ShapeProps, SvgFillProps } from '@itcase/types-ui';
3
3
  import { StyleAttributes } from '@itcase/ui-core/hooks';
4
4
  import { ButtonProps } from 'src/components/Button/Button.interface';
5
5
  import { IconProps } from 'src/components/Icon/Icon.interface';
@@ -38,7 +38,6 @@ type ResponseAppearanceProps = {
38
38
  secondaryButtonSize?: ButtonProps['size'];
39
39
  secondaryButtonWidth?: ButtonProps['width'];
40
40
  shape?: ShapeProps;
41
- shapeStrength?: ShapeStrengthProps;
42
41
  svgFill?: SvgFillProps;
43
42
  SvgImage?: ComponentType<SVGProps<SVGSVGElement>> | IconProps['SvgImage'];
44
43
  svgPathFill?: SvgFillProps;
@@ -17,7 +17,7 @@ const Response = urlWithAssetPrefix(forwardRef(function Response(props, ref) {
17
17
  const { appearance, className, dataTestId, dataTour, width, height, title, desc, primaryButton, secondaryButton, showPrimaryButton = true, showSecondaryButton = true, before, after, isSkeleton, isBottomButton, onClickPrimaryButton, onClickSecondaryButton, } = props;
18
18
  const appearanceConfig = useAppearanceConfig(appearance, responseConfig);
19
19
  const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
20
- const { fillClass, fillHoverClass, titleTextColor, titleTextSize, titleTextWeight, descTextColor, descTextSize, descTextWeight, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, heightClass, imageSrc, primaryButtonAfter, primaryButtonAppearance, primaryButtonBefore, primaryButtonFill, primaryButtonFillHover, primaryButtonLabel, primaryButtonLabelTextColor, primaryButtonLabelTextSize, primaryButtonShape, primaryButtonSize, primaryButtonWidth, secondaryButtonAfter, secondaryButtonAppearance, secondaryButtonBefore, secondaryButtonFill, secondaryButtonFillHover, secondaryButtonLabel, secondaryButtonLabelTextColor, secondaryButtonLabelTextSize, secondaryButtonShape, secondaryButtonSize, secondaryButtonWidth, shapeClass, shapeStrengthClass, svgFillClass, SvgImage, svgPathFillClass, svgSrc, widthClass, } = propsGenerator;
20
+ const { fillClass, fillHoverClass, titleTextColor, titleTextSize, titleTextWeight, descTextColor, descTextSize, descTextWeight, borderColorClass, borderColorHoverClass, borderTypeClass, borderWidthClass, heightClass, imageSrc, primaryButtonAfter, primaryButtonAppearance, primaryButtonBefore, primaryButtonFill, primaryButtonFillHover, primaryButtonLabel, primaryButtonLabelTextColor, primaryButtonLabelTextSize, primaryButtonShape, primaryButtonSize, primaryButtonWidth, secondaryButtonAfter, secondaryButtonAppearance, secondaryButtonBefore, secondaryButtonFill, secondaryButtonFillHover, secondaryButtonLabel, secondaryButtonLabelTextColor, secondaryButtonLabelTextSize, secondaryButtonShape, secondaryButtonSize, secondaryButtonWidth, shapeClass, svgFillClass, SvgImage, svgPathFillClass, svgSrc, widthClass, } = propsGenerator;
21
21
  const ImageComponent = useMemo(() => {
22
22
  const src = imageSrc || svgSrc;
23
23
  const Image = SvgImage;
@@ -38,7 +38,7 @@ const Response = urlWithAssetPrefix(forwardRef(function Response(props, ref) {
38
38
  }, [imageSrc, svgSrc, SvgImage, width, height]);
39
39
  const { styles: responseStyles, wrapper: wrapperStyles } = useStyles(props);
40
40
  return (_jsxs("div", { className: clsx(className, 'response', isBottomButton && `response_bottom-button`, borderColorClass && `border-color_${borderColorClass}`, borderColorHoverClass &&
41
- `border-color_hover_${borderColorHoverClass}`, borderTypeClass && `border_type_${borderTypeClass}`, borderWidthClass && `border-width_${borderWidthClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, heightClass && `height_${heightClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, widthClass && `width_${widthClass}`, isSkeleton && `skeleton`), ref: ref, "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, _jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [ImageComponent && (_jsx("div", { className: clsx('response__image', svgFillClass && `svg_fill_${svgFillClass}`, svgPathFillClass && `svg_path_fill_${svgPathFillClass}`), children: ImageComponent })), _jsxs("div", { className: "response__wrapper-inner", children: [title && (_jsx(Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (_jsx(Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
41
+ `border-color_hover_${borderColorHoverClass}`, borderTypeClass && `border_type_${borderTypeClass}`, borderWidthClass && `border-width_${borderWidthClass}`, fillClass && `fill_${fillClass}`, fillHoverClass && `fill_hover_${fillHoverClass}`, heightClass && `height_${heightClass}`, shapeClass && `shape_${shapeClass}`, widthClass && `width_${widthClass}`, isSkeleton && `skeleton`), ref: ref, "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, _jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [ImageComponent && (_jsx("div", { className: clsx('response__image', svgFillClass && `svg_fill_${svgFillClass}`, svgPathFillClass && `svg_path_fill_${svgPathFillClass}`), children: ImageComponent })), _jsxs("div", { className: "response__wrapper-inner", children: [title && (_jsx(Text, { className: "response__title", size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, children: title })), desc && (_jsx(Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
42
42
  primaryButton ||
43
43
  secondaryButtonLabel ||
44
44
  secondaryButton ||
@@ -35,7 +35,6 @@ declare const meta: {
35
35
  secondaryButtonSize?: import("../../Button").ButtonProps["size"];
36
36
  secondaryButtonWidth?: import("../../Button").ButtonProps["width"];
37
37
  shape?: import("@itcase/types-ui").ShapeProps;
38
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
39
38
  svgFill?: import("@itcase/types-ui").SvgFillProps;
40
39
  SvgImage?: import("react").ComponentType<import("react").SVGProps<SVGSVGElement>> | import("../../Icon").IconProps["SvgImage"];
41
40
  svgPathFill?: import("@itcase/types-ui").SvgFillProps;
@@ -35,7 +35,6 @@ declare const meta: {
35
35
  secondaryButtonSize?: import("../../Button").ButtonProps["size"];
36
36
  secondaryButtonWidth?: import("../../Button").ButtonProps["width"];
37
37
  shape?: import("@itcase/types-ui").ShapeProps;
38
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
39
38
  svgFill?: import("@itcase/types-ui").SvgFillProps;
40
39
  SvgImage?: import("react").ComponentType<import("react").SVGProps<SVGSVGElement>> | import("../../Icon").IconProps["SvgImage"];
41
40
  svgPathFill?: import("@itcase/types-ui").SvgFillProps;
@@ -35,7 +35,6 @@ declare const meta: {
35
35
  secondaryButtonSize?: import("../../Button").ButtonProps["size"];
36
36
  secondaryButtonWidth?: import("../../Button").ButtonProps["width"];
37
37
  shape?: import("@itcase/types-ui").ShapeProps;
38
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
39
38
  svgFill?: import("@itcase/types-ui").SvgFillProps;
40
39
  SvgImage?: import("react").ComponentType<import("react").SVGProps<SVGSVGElement>> | import("../../Icon").IconProps["SvgImage"];
41
40
  svgPathFill?: import("@itcase/types-ui").SvgFillProps;
@@ -35,7 +35,6 @@ declare const meta: {
35
35
  secondaryButtonSize?: import("../../Button").ButtonProps["size"];
36
36
  secondaryButtonWidth?: import("../../Button").ButtonProps["width"];
37
37
  shape?: import("@itcase/types-ui").ShapeProps;
38
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
39
38
  svgFill?: import("@itcase/types-ui").SvgFillProps;
40
39
  SvgImage?: import("react").ComponentType<import("react").SVGProps<SVGSVGElement>> | import("../../Icon").IconProps["SvgImage"];
41
40
  svgPathFill?: import("@itcase/types-ui").SvgFillProps;
@@ -35,7 +35,6 @@ declare const meta: {
35
35
  secondaryButtonSize?: import("../../Button").ButtonProps["size"];
36
36
  secondaryButtonWidth?: import("../../Button").ButtonProps["width"];
37
37
  shape?: import("@itcase/types-ui").ShapeProps;
38
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
39
38
  svgFill?: import("@itcase/types-ui").SvgFillProps;
40
39
  SvgImage?: import("react").ComponentType<import("react").SVGProps<SVGSVGElement>> | import("../../Icon").IconProps["SvgImage"];
41
40
  svgPathFill?: import("@itcase/types-ui").SvgFillProps;
@@ -35,7 +35,6 @@ declare const meta: {
35
35
  secondaryButtonSize?: import("../../Button").ButtonProps["size"];
36
36
  secondaryButtonWidth?: import("../../Button").ButtonProps["width"];
37
37
  shape?: import("@itcase/types-ui").ShapeProps;
38
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
39
38
  svgFill?: import("@itcase/types-ui").SvgFillProps;
40
39
  SvgImage?: import("react").ComponentType<import("react").SVGProps<SVGSVGElement>> | import("../../Icon").IconProps["SvgImage"];
41
40
  svgPathFill?: import("@itcase/types-ui").SvgFillProps;
@@ -35,7 +35,6 @@ declare const meta: {
35
35
  secondaryButtonSize?: import("../../Button").ButtonProps["size"];
36
36
  secondaryButtonWidth?: import("../../Button").ButtonProps["width"];
37
37
  shape?: import("@itcase/types-ui").ShapeProps;
38
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
39
38
  svgFill?: import("@itcase/types-ui").SvgFillProps;
40
39
  SvgImage?: import("react").ComponentType<import("react").SVGProps<SVGSVGElement>> | import("../../Icon").IconProps["SvgImage"];
41
40
  svgPathFill?: import("@itcase/types-ui").SvgFillProps;
@@ -35,7 +35,6 @@ declare const meta: {
35
35
  secondaryButtonSize?: import("../../Button").ButtonProps["size"];
36
36
  secondaryButtonWidth?: import("../../Button").ButtonProps["width"];
37
37
  shape?: import("@itcase/types-ui").ShapeProps;
38
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
39
38
  svgFill?: import("@itcase/types-ui").SvgFillProps;
40
39
  SvgImage?: import("react").ComponentType<import("react").SVGProps<SVGSVGElement>> | import("../../Icon").IconProps["SvgImage"];
41
40
  svgPathFill?: import("@itcase/types-ui").SvgFillProps;
@@ -35,7 +35,6 @@ declare const meta: {
35
35
  secondaryButtonSize?: import("../../Button").ButtonProps["size"];
36
36
  secondaryButtonWidth?: import("../../Button").ButtonProps["width"];
37
37
  shape?: import("@itcase/types-ui").ShapeProps;
38
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
39
38
  svgFill?: import("@itcase/types-ui").SvgFillProps;
40
39
  SvgImage?: import("react").ComponentType<import("react").SVGProps<SVGSVGElement>> | import("../../Icon").IconProps["SvgImage"];
41
40
  svgPathFill?: import("@itcase/types-ui").SvgFillProps;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
- import { AppearanceConfig, AppearanceKeysState, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceStateDefault, FillProps, ShapeProps, ShapeStrengthProps, SizeProps, TextWeightProps, WidthProps } from '@itcase/types-ui';
2
+ import { AppearanceConfig, AppearanceKeysState, BorderColorHoverProps, BorderColorProps, BorderTypeProps, BorderWidthProps, CompositeAppearanceStateDefault, FillProps, ShapeProps, SizeProps, TextWeightProps, WidthProps } from '@itcase/types-ui';
3
3
  import { StyleAttributes } from '@itcase/ui-core/hooks';
4
4
  import { IconProps } from 'src/components/Icon/Icon.interface';
5
5
  import { TextProps } from '../Text/Text.interface';
@@ -32,7 +32,6 @@ type SearchAppearanceProps = {
32
32
  placeholderTextStyle?: TextProps['textStyle'];
33
33
  placeholderTextWeight?: TextProps['textWeight'];
34
34
  shape?: ShapeProps;
35
- shapeStrength?: ShapeStrengthProps;
36
35
  size?: SizeProps;
37
36
  width?: WidthProps;
38
37
  };
@@ -57,7 +56,6 @@ type SearchProps = SearchAppearanceProps & StyleAttributes & {
57
56
  type SearchResultAppearanceProps = {
58
57
  fill?: FillProps;
59
58
  shape?: ShapeProps;
60
- shapeStrength?: ShapeStrengthProps;
61
59
  };
62
60
  type SearchResultProps = SearchResultAppearanceProps & StyleAttributes & {
63
61
  after?: ReactNode;
@@ -30,7 +30,6 @@ declare const SearchInput: React.ForwardRefExoticComponent<{
30
30
  placeholderTextStyle?: import("src/components/Text").TextProps["textStyle"];
31
31
  placeholderTextWeight?: import("src/components/Text").TextProps["textWeight"];
32
32
  shape?: import("@itcase/types-ui").ShapeProps;
33
- shapeStrength?: import("@itcase/types-ui").ShapeStrengthProps;
34
33
  size?: import("@itcase/types-ui").SizeProps;
35
34
  width?: import("@itcase/types-ui").WidthProps;
36
35
  } & import("@itcase/ui-core/hooks").StyleAttributes & {