@itcase/ui 1.8.123 → 1.8.124

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 (240) hide show
  1. package/dist/Avatar_cjs_mojzcWRL.js +161 -0
  2. package/dist/Avatar_es_BFom0nAS.js +157 -0
  3. package/dist/{Button_cjs_Ce97psFT.js → Button_cjs_CZz8OjWi.js} +39 -27
  4. package/dist/{Button_es_CZss7cXh.js → Button_es_Cn3wtv3M.js} +39 -27
  5. package/dist/ChipsGroup_cjs_Dgskkc1e.js +344 -0
  6. package/dist/{ChipsGroup_es_ayPPUwQ7.js → ChipsGroup_es_BVQ7_n0k.js} +48 -35
  7. package/dist/DatePicker_cjs_Lzrr9Amf.js +182 -0
  8. package/dist/DatePicker_es_D1LvY5RT.js +178 -0
  9. package/dist/Divider_cjs_DrmV2ezS.js +105 -0
  10. package/dist/Divider_es_BiYozVBS.js +101 -0
  11. package/dist/DropdownItem_cjs_rKLdFxSj.js +211 -0
  12. package/dist/DropdownItem_es_B-1qtEa7.js +206 -0
  13. package/dist/Group_cjs_DmfeUcFI.js +59 -0
  14. package/dist/Group_es_BU5k8f5S.js +55 -0
  15. package/dist/{Icon_cjs_Cz6IyOkb.js → Icon_cjs_DpFxIFv5.js} +170 -121
  16. package/dist/{Icon_es_BrwLifge.js → Icon_es_D5eiycFI.js} +170 -121
  17. package/dist/Image_cjs_CBDMUzv_.js +29 -0
  18. package/dist/Image_es_BHec4iVN.js +27 -0
  19. package/dist/{Input_cjs_DRPK_RHK.js → Input_cjs_DDi5JVAV.js} +27 -19
  20. package/dist/{Input_es_Cv5nEb_n.js → Input_es_BnCXATnh.js} +27 -19
  21. package/dist/{Label_cjs_DMoaOoHi.js → Label_cjs_C-x9blCL.js} +45 -33
  22. package/dist/{Label_es_SULlg9bL.js → Label_es_DCqpSw_F.js} +45 -33
  23. package/dist/{Link_cjs_C5UsZUiF.js → Link_cjs_qKXVfU8e.js} +43 -30
  24. package/dist/{Link_es_XiqbdwLp.js → Link_es_P2b6ya7P.js} +43 -30
  25. package/dist/Loader_cjs_DIDsIq3J.js +143 -0
  26. package/dist/Loader_es_CmSggwbR.js +139 -0
  27. package/dist/Overlay_cjs_tGA2fU43.js +42 -0
  28. package/dist/Overlay_es_BS7OTFoy.js +38 -0
  29. package/dist/{Scrollbar_cjs_DcKOfcNp.js → Scrollbar_cjs_Cp-7v2Mt.js} +1 -1
  30. package/dist/{Scrollbar_es_CThJeCLF.js → Scrollbar_es_CcMgNvGi.js} +1 -1
  31. package/dist/Text_cjs_BDTjOTVB.js +69 -0
  32. package/dist/Text_es_CnymlElo.js +65 -0
  33. package/dist/cjs/components/Accordion.js +37 -34
  34. package/dist/cjs/components/Avatar.js +5 -6
  35. package/dist/cjs/components/AvatarStack/stories/__mock__.js +1 -1
  36. package/dist/cjs/components/AvatarStack.js +17 -16
  37. package/dist/cjs/components/Badge.js +3 -4
  38. package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +1 -1
  39. package/dist/cjs/components/Breadcrumbs.js +27 -23
  40. package/dist/cjs/components/Button.js +5 -6
  41. package/dist/cjs/components/Cell/stories/__mock__.js +1 -1
  42. package/dist/cjs/components/Cell.js +28 -25
  43. package/dist/cjs/components/Checkbox.js +33 -26
  44. package/dist/cjs/components/Checkmark.js +28 -23
  45. package/dist/cjs/components/Chips/stories/__mock__.js +1 -1
  46. package/dist/cjs/components/Chips.js +4 -5
  47. package/dist/cjs/components/Choice/stories/__mock__.js +2 -2
  48. package/dist/cjs/components/Choice.js +46 -40
  49. package/dist/cjs/components/Code.js +34 -26
  50. package/dist/cjs/components/CookiesWarning.js +23 -23
  51. package/dist/cjs/components/Dadata.js +14 -9
  52. package/dist/cjs/components/DatePeriod.js +32 -30
  53. package/dist/cjs/components/DatePicker.js +8 -9
  54. package/dist/cjs/components/Divider.js +1 -2
  55. package/dist/cjs/components/Dot.js +5 -6
  56. package/dist/cjs/components/Drawer.js +23 -21
  57. package/dist/cjs/components/Dropdown/stories/__mock__.js +6 -6
  58. package/dist/cjs/components/Dropdown.js +5 -6
  59. package/dist/cjs/components/Flex.js +11 -12
  60. package/dist/cjs/components/Grid.js +15 -16
  61. package/dist/cjs/components/Group.js +1 -2
  62. package/dist/cjs/components/HTMLContent.js +5 -6
  63. package/dist/cjs/components/HeroTitle.js +17 -16
  64. package/dist/cjs/components/Icon.js +3 -4
  65. package/dist/cjs/components/Image.js +1 -2
  66. package/dist/cjs/components/Input.js +1 -2
  67. package/dist/cjs/components/InputPassword.js +34 -26
  68. package/dist/cjs/components/Label.js +4 -5
  69. package/dist/cjs/components/Link.js +1 -2
  70. package/dist/cjs/components/List.js +39 -28
  71. package/dist/cjs/components/Loader.js +2 -3
  72. package/dist/cjs/components/Logo.js +10 -11
  73. package/dist/cjs/components/MenuItem.js +36 -33
  74. package/dist/cjs/components/Modal.js +40 -38
  75. package/dist/cjs/components/ModalSheetBottom.js +17 -18
  76. package/dist/cjs/components/Notification/stories/__mock__.js +1 -1
  77. package/dist/cjs/components/Notification.js +31 -24
  78. package/dist/cjs/components/Overlay.js +1 -2
  79. package/dist/cjs/components/Pagination.js +43 -41
  80. package/dist/cjs/components/Radio.js +34 -26
  81. package/dist/cjs/components/RangeSlider.js +8 -9
  82. package/dist/cjs/components/Response/img.js +1 -1
  83. package/dist/cjs/components/Response.js +45 -34
  84. package/dist/cjs/components/SVGContent.js +6 -7
  85. package/dist/cjs/components/ScrollOnDrag/stories/__mock__.js +2 -2
  86. package/dist/cjs/components/ScrollOnDrag.js +7 -8
  87. package/dist/cjs/components/ScrollToView.js +8 -9
  88. package/dist/cjs/components/Scrollbar/stories/__mock__.js +1 -1
  89. package/dist/cjs/components/Scrollbar.js +1 -1
  90. package/dist/cjs/components/Search.js +39 -31
  91. package/dist/cjs/components/Segmented/stories/__mock__.js +23 -10
  92. package/dist/cjs/components/Segmented.js +46 -41
  93. package/dist/cjs/components/Select.js +118 -113
  94. package/dist/cjs/components/Swiper/stories/__mock__.js +3 -3
  95. package/dist/cjs/components/Swiper.js +27 -29
  96. package/dist/cjs/components/Switch.js +33 -26
  97. package/dist/cjs/components/Tab/stories/__mock__.js +1 -1
  98. package/dist/cjs/components/Tab.js +33 -27
  99. package/dist/cjs/components/Text.js +1 -2
  100. package/dist/cjs/components/Textarea.js +26 -18
  101. package/dist/cjs/components/Tile.js +21 -17
  102. package/dist/cjs/components/Title.js +3 -4
  103. package/dist/cjs/components/Tooltip.js +3 -4
  104. package/dist/cjs/components/Video/stories/__mocks__.js +1 -1
  105. package/dist/cjs/components/Video.js +3 -4
  106. package/dist/cjs/components/Warning.js +26 -20
  107. package/dist/cjs/context/Notifications.js +38 -42
  108. package/dist/cjs/context/UIContext.js +19 -17
  109. package/dist/cjs/context/UrlAssetPrefix.js +3 -3
  110. package/dist/cjs/hoc/urlWithAssetPrefix.js +13 -16
  111. package/dist/cjs/hooks/useActiveClasses/useActiveClasses.helpers.js +13 -40
  112. package/dist/cjs/hooks/useActiveClasses/useActiveClasses.interface.js +1 -1
  113. package/dist/cjs/hooks/useActiveClasses/useActiveClasses.js +25 -29
  114. package/dist/cjs/hooks/useAppearanceConfig/useAppearanceConfig.js +13 -15
  115. package/dist/cjs/hooks/useAppearanceConfig.js +0 -1
  116. package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +21 -28
  117. package/dist/cjs/hooks/useDevicePropsGenerator.js +0 -1
  118. package/dist/cjs/hooks/useDeviceTargetClass.js +0 -1
  119. package/dist/cjs/hooks/useStyles/styleAttributes.js +1 -1
  120. package/dist/cjs/hooks/useStyles/useStyles.js +0 -1
  121. package/dist/cjs/hooks/useStyles.js +0 -1
  122. package/dist/cjs/hooks/useViewportFix.js +5 -5
  123. package/dist/cjs/hooks.js +1 -1
  124. package/dist/cjs/utils/setViewportProperty.js +3 -3
  125. package/dist/components/Accordion.js +37 -34
  126. package/dist/components/Avatar.js +5 -6
  127. package/dist/components/AvatarStack/stories/__mock__.js +1 -1
  128. package/dist/components/AvatarStack.js +17 -16
  129. package/dist/components/Badge.js +3 -4
  130. package/dist/components/Breadcrumbs/stories/__mock__.js +1 -1
  131. package/dist/components/Breadcrumbs.js +27 -23
  132. package/dist/components/Button.js +5 -6
  133. package/dist/components/Cell/stories/__mock__.js +1 -1
  134. package/dist/components/Cell.js +28 -25
  135. package/dist/components/Checkbox.js +33 -26
  136. package/dist/components/Checkmark.js +28 -23
  137. package/dist/components/Chips/stories/__mock__.js +1 -1
  138. package/dist/components/Chips.js +4 -5
  139. package/dist/components/Choice/stories/__mock__.js +2 -2
  140. package/dist/components/Choice.js +46 -40
  141. package/dist/components/Code.js +34 -26
  142. package/dist/components/CookiesWarning.js +23 -23
  143. package/dist/components/Dadata.js +14 -9
  144. package/dist/components/DatePeriod.js +32 -30
  145. package/dist/components/DatePicker.js +8 -9
  146. package/dist/components/Divider.js +1 -2
  147. package/dist/components/Dot.js +5 -6
  148. package/dist/components/Drawer.js +23 -21
  149. package/dist/components/Dropdown/stories/__mock__.js +6 -6
  150. package/dist/components/Dropdown.js +5 -6
  151. package/dist/components/Flex.js +11 -12
  152. package/dist/components/Grid.js +15 -16
  153. package/dist/components/Group.js +1 -2
  154. package/dist/components/HTMLContent.js +5 -6
  155. package/dist/components/HeroTitle.js +17 -16
  156. package/dist/components/Icon.js +3 -4
  157. package/dist/components/Image.js +1 -2
  158. package/dist/components/Input.js +1 -2
  159. package/dist/components/InputPassword.js +34 -26
  160. package/dist/components/Label.js +4 -5
  161. package/dist/components/Link.js +1 -2
  162. package/dist/components/List.js +39 -28
  163. package/dist/components/Loader.js +2 -3
  164. package/dist/components/Logo.js +10 -11
  165. package/dist/components/MenuItem.js +36 -33
  166. package/dist/components/Modal.js +40 -38
  167. package/dist/components/ModalSheetBottom.js +17 -18
  168. package/dist/components/Notification/stories/__mock__.js +1 -1
  169. package/dist/components/Notification.js +31 -24
  170. package/dist/components/Overlay.js +1 -2
  171. package/dist/components/Pagination.js +43 -41
  172. package/dist/components/Radio.js +34 -26
  173. package/dist/components/RangeSlider.js +8 -9
  174. package/dist/components/Response/img.js +1 -1
  175. package/dist/components/Response.js +45 -34
  176. package/dist/components/SVGContent.js +6 -7
  177. package/dist/components/ScrollOnDrag/stories/__mock__.js +2 -2
  178. package/dist/components/ScrollOnDrag.js +7 -8
  179. package/dist/components/ScrollToView.js +8 -9
  180. package/dist/components/Scrollbar/stories/__mock__.js +1 -1
  181. package/dist/components/Scrollbar.js +1 -1
  182. package/dist/components/Search.js +39 -31
  183. package/dist/components/Segmented/stories/__mock__.js +23 -10
  184. package/dist/components/Segmented.js +46 -41
  185. package/dist/components/Select.js +118 -113
  186. package/dist/components/Swiper/stories/__mock__.js +3 -3
  187. package/dist/components/Swiper.js +27 -29
  188. package/dist/components/Switch.js +33 -26
  189. package/dist/components/Tab/stories/__mock__.js +1 -1
  190. package/dist/components/Tab.js +33 -27
  191. package/dist/components/Text.js +1 -2
  192. package/dist/components/Textarea.js +26 -18
  193. package/dist/components/Tile.js +21 -17
  194. package/dist/components/Title.js +3 -4
  195. package/dist/components/Tooltip.js +3 -4
  196. package/dist/components/Video/stories/__mocks__.js +1 -1
  197. package/dist/components/Video.js +3 -4
  198. package/dist/components/Warning.js +26 -20
  199. package/dist/context/Notifications.js +38 -42
  200. package/dist/context/UIContext.js +19 -17
  201. package/dist/context/UrlAssetPrefix.js +3 -3
  202. package/dist/css/components/Tile/Tile.css +3 -3
  203. package/dist/hoc/urlWithAssetPrefix.js +13 -16
  204. package/dist/hooks/useActiveClasses/useActiveClasses.helpers.js +13 -40
  205. package/dist/hooks/useActiveClasses/useActiveClasses.interface.js +1 -1
  206. package/dist/hooks/useActiveClasses/useActiveClasses.js +25 -29
  207. package/dist/hooks/useAppearanceConfig/useAppearanceConfig.js +13 -15
  208. package/dist/hooks/useAppearanceConfig.js +0 -1
  209. package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +21 -28
  210. package/dist/hooks/useDevicePropsGenerator.js +0 -1
  211. package/dist/hooks/useDeviceTargetClass.js +0 -1
  212. package/dist/hooks/useStyles/styleAttributes.js +1 -1
  213. package/dist/hooks/useStyles/useStyles.js +0 -1
  214. package/dist/hooks/useStyles.js +0 -1
  215. package/dist/hooks/useViewportFix.js +5 -5
  216. package/dist/hooks.js +1 -1
  217. package/dist/types/components/Select/SelectContainer.d.ts +1 -1
  218. package/dist/utils/setViewportProperty.js +3 -3
  219. package/package.json +3 -3
  220. package/dist/Avatar_cjs_CLJnKU39.js +0 -157
  221. package/dist/Avatar_es_BgN-fbOj.js +0 -153
  222. package/dist/ChipsGroup_cjs_C8L3ZeD_.js +0 -331
  223. package/dist/DatePicker_cjs_BzEtDAb8.js +0 -183
  224. package/dist/DatePicker_es_DRyCMO0I.js +0 -179
  225. package/dist/Divider_cjs_DUYtmwn2.js +0 -97
  226. package/dist/Divider_es_CCLBFIx6.js +0 -93
  227. package/dist/DropdownItem_cjs_Bhss6lyM.js +0 -207
  228. package/dist/DropdownItem_es_BXl6lPJx.js +0 -202
  229. package/dist/Group_cjs_CsJ6ICKK.js +0 -59
  230. package/dist/Group_es_DRqIIM9m.js +0 -55
  231. package/dist/Image_cjs_DRhhc66R.js +0 -29
  232. package/dist/Image_es_BpMidmve.js +0 -27
  233. package/dist/Loader_cjs_D3lnxPlI.js +0 -132
  234. package/dist/Loader_es_BUSqFrCd.js +0 -128
  235. package/dist/Overlay_cjs_CcfJYN5o.js +0 -41
  236. package/dist/Overlay_es_DF3DAdxS.js +0 -37
  237. package/dist/Text_cjs_0EINiUq4.js +0 -68
  238. package/dist/Text_es_CwV9rjFD.js +0 -64
  239. package/dist/tslib.es6_cjs_CCZ3TN_7.js +0 -59
  240. package/dist/tslib.es6_es_Bwu1Cn-t.js +0 -56
@@ -1,5 +1,4 @@
1
- export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Icon_es_BrwLifge.js';
2
- import '../tslib.es6_es_Bwu1Cn-t.js';
1
+ export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Icon_es_D5eiycFI.js';
3
2
  import 'react/jsx-runtime';
4
3
  import 'react';
5
4
  import 'clsx';
@@ -22,5 +21,5 @@ import '../hooks.js';
22
21
  import '../hooks/useStyles/styleAttributes.js';
23
22
  import '../hooks/useStyles/useStyles.js';
24
23
  import 'lodash/maxBy';
25
- import '../Link_es_XiqbdwLp.js';
26
- import '../Text_es_CwV9rjFD.js';
24
+ import '../Link_es_P2b6ya7P.js';
25
+ import '../Text_es_CnymlElo.js';
@@ -1,4 +1,4 @@
1
- var breadcrumbsListMock = [
1
+ const breadcrumbsListMock = [
2
2
  {
3
3
  id: '1',
4
4
  key: 1,
@@ -4,10 +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 { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
7
- import { I as Icon } from '../Icon_es_BrwLifge.js';
8
- import { a as LinkWrapper } from '../Link_es_XiqbdwLp.js';
9
- import { T as Text } from '../Text_es_CwV9rjFD.js';
10
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
7
+ import { I as Icon } from '../Icon_es_D5eiycFI.js';
8
+ import { a as LinkWrapper } from '../Link_es_P2b6ya7P.js';
9
+ import { T as Text } from '../Text_es_CnymlElo.js';
11
10
  import { icons12, icons14, icons16, icons20, icons24 } from '@itcase/icons/default';
12
11
  import 'lodash/camelCase';
13
12
  import 'lodash/castArray';
@@ -26,7 +25,7 @@ import 'react-inlinesvg';
26
25
  import '../hoc/urlWithAssetPrefix.js';
27
26
  import '../context/UrlAssetPrefix.js';
28
27
 
29
- var breadcrumbsAppearanceAccent = {
28
+ const breadcrumbsAppearanceAccent = {
30
29
  accentPrimary: {
31
30
  fill: 'accentPrimary',
32
31
  labelTextColor: 'accentTextPrimary',
@@ -35,7 +34,7 @@ var breadcrumbsAppearanceAccent = {
35
34
  },
36
35
  };
37
36
 
38
- var breadcrumbsAppearanceSize = {
37
+ const breadcrumbsAppearanceSize = {
39
38
  sizeXXL: {
40
39
  size: 'xxl',
41
40
  labelTextSize: 'xxl',
@@ -73,7 +72,7 @@ var breadcrumbsAppearanceSize = {
73
72
  },
74
73
  };
75
74
 
76
- var breadcrumbsAppearanceStyle = {
75
+ const breadcrumbsAppearanceStyle = {
77
76
  solid: {
78
77
  borderColor: 'none',
79
78
  },
@@ -87,7 +86,7 @@ var breadcrumbsAppearanceStyle = {
87
86
  },
88
87
  };
89
88
 
90
- var breadcrumbsAppearanceSurface = {
89
+ const breadcrumbsAppearanceSurface = {
91
90
  surfacePrimary: {
92
91
  fill: 'surfacePrimary',
93
92
  labelTextColor: 'surfaceTextPrimary',
@@ -114,35 +113,40 @@ var breadcrumbsAppearanceSurface = {
114
113
  },
115
114
  };
116
115
 
117
- var breadcrumbsAppearance = __assign(__assign(__assign(__assign({}, breadcrumbsAppearanceSize), breadcrumbsAppearanceStyle), breadcrumbsAppearanceAccent), breadcrumbsAppearanceSurface);
116
+ const breadcrumbsAppearance = {
117
+ ...breadcrumbsAppearanceSize,
118
+ ...breadcrumbsAppearanceStyle,
119
+ ...breadcrumbsAppearanceAccent,
120
+ ...breadcrumbsAppearanceSurface,
121
+ };
118
122
 
119
- var breadcrumbsConfig = {
123
+ const breadcrumbsConfig = {
120
124
  appearance: breadcrumbsAppearance};
121
125
  function BreadcrumbsItem(props) {
122
- var className = props.className, appearance = props.appearance, href = props.href, isActive = props.isActive, isSkeleton = props.isSkeleton, onClick = props.onClick, children = props.children;
123
- var appearanceConfig = useAppearanceConfig(appearance, breadcrumbsConfig);
124
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
125
- var fillClass = propsGenerator.fillClass, labelTextColor = propsGenerator.labelTextColor, labelTextColorHover = propsGenerator.labelTextColorHover, labelTextSize = propsGenerator.labelTextSize, borderColorClass = propsGenerator.borderColorClass, text = propsGenerator.text, cursor = propsGenerator.cursor, icon = propsGenerator.icon, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, underlineClass = propsGenerator.underlineClass;
126
+ const { className, appearance, href, isActive, isSkeleton, onClick, children, } = props;
127
+ const appearanceConfig = useAppearanceConfig(appearance, breadcrumbsConfig);
128
+ const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
129
+ const { fillClass, labelTextColor, labelTextColorHover, labelTextSize, borderColorClass, text, cursor, icon, iconFill, iconFillIcon, iconFillSize, iconShape, iconSize, iconSrc, shapeClass, sizeClass, underlineClass, } = propsGenerator;
126
130
  // @ts-expect-error
127
- var itemStyles = useStyles(props).styles;
128
- return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', borderColorClass && "border-color_".concat(borderColorClass), isActive && 'breadcrumbs__item_current', sizeClass && "breadcrumbs__item_size_".concat(sizeClass), shapeClass && "breadcrumbs__item_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), underlineClass && "text-decoration_".concat(underlineClass), isSkeleton && "breadcrumbs__item_skeleton", onClick && (cursor || 'cursor_type_pointer')), href: href, LinkComponent: "div", style: itemStyles, onClick: onClick, children: [jsx(Text, { className: "breadcrumbs__item-text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, children: text || children }), !isActive && (icon || iconSrc) && (jsx(Icon, { className: clsx('breadcrumbs__item-icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }));
131
+ const { styles: itemStyles } = useStyles(props);
132
+ return (jsxs(LinkWrapper, { className: clsx(className, 'breadcrumbs__item', borderColorClass && `border-color_${borderColorClass}`, isActive && 'breadcrumbs__item_current', sizeClass && `breadcrumbs__item_size_${sizeClass}`, shapeClass && `breadcrumbs__item_shape_${shapeClass}`, fillClass && `fill_${fillClass}`, underlineClass && `text-decoration_${underlineClass}`, isSkeleton && `breadcrumbs__item_skeleton`, onClick && (cursor || 'cursor_type_pointer')), href: href, LinkComponent: "div", style: itemStyles, onClick: onClick, children: [jsx(Text, { className: "breadcrumbs__item-text", size: labelTextSize, textColor: labelTextColor, textColorHover: labelTextColorHover, children: text || children }), !isActive && (icon || iconSrc) && (jsx(Icon, { className: clsx('breadcrumbs__item-icon'), fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon }))] }));
129
133
  }
130
134
 
131
135
  function Breadcrumbs(props) {
132
- var className = props.className, appearance = props.appearance, breadcrumbsList = props.breadcrumbsList, isSkeleton = props.isSkeleton, children = props.children;
133
- var propsGenerator = useDevicePropsGenerator(props);
134
- var _a = propsGenerator.directionClass, directionClass = _a === void 0 ? 'horizontal' : _a, widthClass = propsGenerator.widthClass;
135
- var breadcrumbsItemsList = useMemo(function () {
136
+ const { className, appearance, breadcrumbsList, isSkeleton, children } = props;
137
+ const propsGenerator = useDevicePropsGenerator(props);
138
+ const { directionClass = 'horizontal', widthClass } = propsGenerator;
139
+ const breadcrumbsItemsList = useMemo(() => {
136
140
  if (breadcrumbsList) {
137
- return breadcrumbsList.map(function (item, i) { return (jsx(BreadcrumbsItem, { appearance: appearance, text: item.text, icon: item.icon, iconSrc: item.icon, isActive: i + 1 === breadcrumbsList.length && true, isSkeleton: isSkeleton }, "breadcrumbsItem_".concat(item.key || item.id || item.text))); });
141
+ return breadcrumbsList.map((item, i) => (jsx(BreadcrumbsItem, { appearance: appearance, text: item.text, icon: item.icon, iconSrc: item.icon, isActive: i + 1 === breadcrumbsList.length && true, isSkeleton: isSkeleton }, `breadcrumbsItem_${item.key || item.id || item.text}`)));
138
142
  }
139
143
  if (children) {
140
144
  return children;
141
145
  }
142
146
  return [];
143
147
  }, [children, breadcrumbsList, appearance]);
144
- var breadcrumbsStyles = useStyles(props).styles;
145
- return (jsx("div", { className: clsx(className, 'breadcrumbs', widthClass && "width_".concat(widthClass), directionClass && "direction_".concat(directionClass)), style: breadcrumbsStyles, children: breadcrumbsItemsList }));
148
+ const { styles: breadcrumbsStyles } = useStyles(props);
149
+ return (jsx("div", { className: clsx(className, 'breadcrumbs', widthClass && `width_${widthClass}`, directionClass && `direction_${directionClass}`), style: breadcrumbsStyles, children: breadcrumbsItemsList }));
146
150
  }
147
151
 
148
152
  export { Breadcrumbs, BreadcrumbsItem, breadcrumbsAppearance };
@@ -1,9 +1,8 @@
1
- export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_CZss7cXh.js';
1
+ export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_Cn3wtv3M.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import 'clsx';
5
- import '../Icon_es_BrwLifge.js';
6
- import '../tslib.es6_es_Bwu1Cn-t.js';
5
+ import '../Icon_es_D5eiycFI.js';
7
6
  import 'react-inlinesvg';
8
7
  import '../hoc/urlWithAssetPrefix.js';
9
8
  import '@itcase/common';
@@ -23,6 +22,6 @@ import '../hooks.js';
23
22
  import '../hooks/useStyles/styleAttributes.js';
24
23
  import '../hooks/useStyles/useStyles.js';
25
24
  import 'lodash/maxBy';
26
- import '../Link_es_XiqbdwLp.js';
27
- import '../Text_es_CwV9rjFD.js';
28
- import '../Loader_es_BUSqFrCd.js';
25
+ import '../Link_es_P2b6ya7P.js';
26
+ import '../Text_es_CnymlElo.js';
27
+ import '../Loader_es_CmSggwbR.js';
@@ -1,6 +1,6 @@
1
1
  // "Placeholder" is removed from @itcase/icons.
2
2
  // Use url to ".storybook/assets/icons/placeholder.svg"
3
- var cellMock = {
3
+ const cellMock = {
4
4
  title: 'Title',
5
5
  // titleIcon: icons16.Placeholder,
6
6
  titleLabel: 'Label',
@@ -3,10 +3,9 @@ import clsx from 'clsx';
3
3
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { I as Icon } from '../Icon_es_BrwLifge.js';
7
- import { L as Label } from '../Label_es_SULlg9bL.js';
8
- import { T as Text } from '../Text_es_CwV9rjFD.js';
9
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
6
+ import { I as Icon } from '../Icon_es_D5eiycFI.js';
7
+ import { L as Label } from '../Label_es_DCqpSw_F.js';
8
+ import { T as Text } from '../Text_es_CnymlElo.js';
10
9
  import 'react';
11
10
  import 'lodash/camelCase';
12
11
  import 'lodash/castArray';
@@ -24,9 +23,9 @@ import 'lodash/maxBy';
24
23
  import 'react-inlinesvg';
25
24
  import '../hoc/urlWithAssetPrefix.js';
26
25
  import '../context/UrlAssetPrefix.js';
27
- import '../Link_es_XiqbdwLp.js';
26
+ import '../Link_es_P2b6ya7P.js';
28
27
 
29
- var cellAppearanceSize = {
28
+ const cellAppearanceSize = {
30
29
  sizeXL: {
31
30
  size: 'xl',
32
31
  titleLabelAppearanceSize: 'sizeXS',
@@ -85,7 +84,7 @@ var cellAppearanceSize = {
85
84
  },
86
85
  };
87
86
 
88
- var cellAppearanceStyle = {
87
+ const cellAppearanceStyle = {
89
88
  solid: {
90
89
  borderColor: 'none',
91
90
  },
@@ -99,7 +98,7 @@ var cellAppearanceStyle = {
99
98
  },
100
99
  };
101
100
 
102
- var cellAppearanceSurface = {
101
+ const cellAppearanceSurface = {
103
102
  surfacePrimary: {
104
103
  fill: 'surfacePrimary',
105
104
  fillHover: 'surfacePrimaryHover',
@@ -154,33 +153,37 @@ var cellAppearanceSurface = {
154
153
  },
155
154
  };
156
155
 
157
- var cellAppearance = __assign(__assign(__assign({}, cellAppearanceSize), cellAppearanceStyle), cellAppearanceSurface);
156
+ const cellAppearance = {
157
+ ...cellAppearanceSize,
158
+ ...cellAppearanceStyle,
159
+ ...cellAppearanceSurface,
160
+ };
158
161
 
159
- var cellConfig = {
162
+ const cellConfig = {
160
163
  appearance: cellAppearance,
161
- setAppearance: function (appearanceConfig) {
164
+ setAppearance: (appearanceConfig) => {
162
165
  cellConfig.appearance = appearanceConfig;
163
166
  },
164
167
  };
165
168
  function Cell(props) {
166
- var className = props.className, appearance = props.appearance, title = props.title, titleIcon = props.titleIcon, titleLabel = props.titleLabel, titleTag = props.titleTag, showTitleLabel = props.showTitleLabel, showValueLabel = props.showValueLabel, value = props.value, valueIcon = props.valueIcon, valueTag = props.valueTag, before = props.before, after = props.after, isActive = props.isActive, isEqual = props.isEqual, isSameWidth = props.isSameWidth, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
167
- var appearanceConfig = useAppearanceConfig(appearance, cellConfig);
168
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
169
- var directionClass = propsGenerator.directionClass, fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleIconFill = propsGenerator.titleIconFill, titleIconFillHover = propsGenerator.titleIconFillHover, titleIconFillSize = propsGenerator.titleIconFillSize, titleIconItemFill = propsGenerator.titleIconItemFill, titleIconShape = propsGenerator.titleIconShape, titleIconSrc = propsGenerator.titleIconSrc, titleLabelAppearance = propsGenerator.titleLabelAppearance, titleLabelAppearanceSize = propsGenerator.titleLabelAppearanceSize, titleLabelShape = propsGenerator.titleLabelShape, titleLabelSize = propsGenerator.titleLabelSize, titleLabelTextSize = propsGenerator.titleLabelTextSize, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWrap = propsGenerator.titleTextWrap, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, reverseClass = propsGenerator.reverseClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, valueIconFill = propsGenerator.valueIconFill, valueIconFillHover = propsGenerator.valueIconFillHover, valueIconFillSize = propsGenerator.valueIconFillSize, valueIconItemFill = propsGenerator.valueIconItemFill, valueIconShape = propsGenerator.valueIconShape, valueIconSrc = propsGenerator.valueIconSrc, valueLabel = propsGenerator.valueLabel, valueLabelAppearance = propsGenerator.valueLabelAppearance, valueLabelAppearanceSize = propsGenerator.valueLabelAppearanceSize, valueLabelShape = propsGenerator.valueLabelShape, valueLabelSize = propsGenerator.valueLabelSize, valueLabelTextSize = propsGenerator.valueLabelTextSize, valueTextAlign = propsGenerator.valueTextAlign, valueTextColor = propsGenerator.valueTextColor, valueTextSize = propsGenerator.valueTextSize, valueTextTruncate = propsGenerator.valueTextTruncate, valueTextWeight = propsGenerator.valueTextWeight, valueTextWrap = propsGenerator.valueTextWrap, widthClass = propsGenerator.widthClass, zeroGap = propsGenerator.zeroGap, zeroPadding = propsGenerator.zeroPadding;
169
+ const { className, appearance, title, titleIcon, titleLabel, titleTag, showTitleLabel, showValueLabel, value, valueIcon, valueTag, before, after, isActive, isEqual, isSameWidth, onClick, onMouseEnter, } = props;
170
+ const appearanceConfig = useAppearanceConfig(appearance, cellConfig);
171
+ const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
172
+ const { directionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, titleIconFill, titleIconFillHover, titleIconFillSize, titleIconItemFill, titleIconShape, titleIconSrc, titleLabelAppearance, titleLabelAppearanceSize, titleLabelShape, titleLabelSize, titleLabelTextSize, titleTextColor, titleTextSize, titleTextTruncate, titleTextWeight, titleTextWrap, borderColorActiveClass, borderColorActiveHoverClass, borderColorClass, borderColorHoverClass, reverseClass, shapeClass, sizeClass, valueIconFill, valueIconFillHover, valueIconFillSize, valueIconItemFill, valueIconShape, valueIconSrc, valueLabel, valueLabelAppearance, valueLabelAppearanceSize, valueLabelShape, valueLabelSize, valueLabelTextSize, valueTextAlign, valueTextColor, valueTextSize, valueTextTruncate, valueTextWeight, valueTextWrap, widthClass, zeroGap, zeroPadding, } = propsGenerator;
170
173
  // @ts-expect-error
171
- var _a = useStyles(props), dataStyles = _a.data, cellStyles = _a.styles;
172
- return (jsxs("div", { className: clsx(className, 'cell', sizeClass && "cell_size_".concat(sizeClass), !isActive
173
- ? fillClass && "fill_".concat(fillClass)
174
- : fillActiveClass && "fill_active_".concat(fillActiveClass), !isActive
175
- ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
176
- : fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), !isActive
177
- ? borderColorClass && "border-color_".concat(borderColorClass)
174
+ const { data: dataStyles, styles: cellStyles } = useStyles(props);
175
+ return (jsxs("div", { className: clsx(className, 'cell', sizeClass && `cell_size_${sizeClass}`, !isActive
176
+ ? fillClass && `fill_${fillClass}`
177
+ : fillActiveClass && `fill_active_${fillActiveClass}`, !isActive
178
+ ? fillHoverClass && `fill_hover_${fillHoverClass}`
179
+ : fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, !isActive
180
+ ? borderColorClass && `border-color_${borderColorClass}`
178
181
  : borderColorActiveClass &&
179
- "border-color_active_".concat(borderColorActiveClass), !isActive
182
+ `border-color_active_${borderColorActiveClass}`, !isActive
180
183
  ? borderColorHoverClass &&
181
- "border-color_hover_".concat(borderColorHoverClass)
184
+ `border-color_hover_${borderColorHoverClass}`
182
185
  : borderColorActiveHoverClass &&
183
- "border-color_active_hover_".concat(borderColorActiveHoverClass), reverseClass && "cell_reverse_".concat(reverseClass), shapeClass && "cell_shape_".concat(shapeClass), widthClass && "width_".concat(widthClass), zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && "cell__wrapper_direction_".concat(directionClass), isEqual && 'cell__wrapper-equal', isSameWidth && 'cell__wrapper-same-width'), children: [title && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__title", size: titleTextSize, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, tag: titleTag, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__title-icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), (showTitleLabel || titleLabel) && (jsx(Label, { className: "cell__title-label", appearance: "".concat(titleLabelAppearance, " ").concat(titleLabelAppearanceSize), size: titleLabelSize, label: titleLabel, labelTextSize: titleLabelTextSize, shape: titleLabelShape }))] })), value && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__value", size: valueTextSize, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, tag: valueTag, children: value }), (valueIcon || valueIconSrc) && (jsx(Icon, { className: "cell__value-icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), (showValueLabel || valueLabel) && (jsx(Label, { className: "cell__value-label", appearance: "".concat(valueLabelAppearance, " ").concat(valueLabelAppearanceSize), size: valueLabelSize, label: valueLabel, labelTextSize: valueLabelTextSize, shape: valueLabelShape }))] }))] }), after && jsx("div", { className: "cell__after", children: after })] }));
186
+ `border-color_active_hover_${borderColorActiveHoverClass}`, reverseClass && `cell_reverse_${reverseClass}`, shapeClass && `cell_shape_${shapeClass}`, widthClass && `width_${widthClass}`, zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap'), style: cellStyles, onClick: onClick, onMouseEnter: onMouseEnter, children: [before && jsx("div", { className: "cell__before", children: before }), jsxs("div", { className: clsx('cell__wrapper', directionClass && `cell__wrapper_direction_${directionClass}`, isEqual && 'cell__wrapper-equal', isSameWidth && 'cell__wrapper-same-width'), children: [title && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__title", size: titleTextSize, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, tag: titleTag, children: title }), (titleIcon || titleIconSrc) && (jsx(Icon, { className: "cell__title-icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), (showTitleLabel || titleLabel) && (jsx(Label, { className: "cell__title-label", appearance: `${titleLabelAppearance} ${titleLabelAppearanceSize}`, size: titleLabelSize, label: titleLabel, labelTextSize: titleLabelTextSize, shape: titleLabelShape }))] })), value && (jsxs("div", { className: "cell__data", style: dataStyles, children: [jsx(Text, { className: "cell__value", size: valueTextSize, textAlign: valueTextAlign, textColor: valueTextColor, textTruncate: valueTextTruncate, textWeight: valueTextWeight, textWrap: valueTextWrap, tag: valueTag, children: value }), (valueIcon || valueIconSrc) && (jsx(Icon, { className: "cell__value-icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), (showValueLabel || valueLabel) && (jsx(Label, { className: "cell__value-label", appearance: `${valueLabelAppearance} ${valueLabelAppearanceSize}`, size: valueLabelSize, label: valueLabel, labelTextSize: valueLabelTextSize, shape: valueLabelShape }))] }))] }), after && jsx("div", { className: "cell__after", children: after })] }));
184
187
  }
185
188
 
186
189
  export { Cell, cellAppearance, cellConfig };
@@ -2,8 +2,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import clsx from 'clsx';
3
3
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
- import { T as Text } from '../Text_es_CwV9rjFD.js';
6
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
5
+ import { T as Text } from '../Text_es_CnymlElo.js';
7
6
  import 'react';
8
7
  import 'lodash/camelCase';
9
8
  import 'lodash/castArray';
@@ -20,7 +19,7 @@ import '../hooks/useStyles/styleAttributes.js';
20
19
  import '../hooks/useStyles/useStyles.js';
21
20
  import 'lodash/maxBy';
22
21
 
23
- var checkboxAppearanceDefault = {
22
+ const checkboxAppearanceDefault = {
24
23
  defaultPrimary: {
25
24
  fillCheckbox: 'surfaceSecondary',
26
25
  fillCheckboxActive: 'surfaceSecondary',
@@ -36,7 +35,7 @@ var checkboxAppearanceDefault = {
36
35
  },
37
36
  };
38
37
 
39
- var checkboxAppearanceDisabled = {
38
+ const checkboxAppearanceDisabled = {
40
39
  disabledPrimary: {
41
40
  fill: 'surfaceFillDisabled',
42
41
  borderColor: 'errorBorderQuaternary',
@@ -56,7 +55,7 @@ var checkboxAppearanceDisabled = {
56
55
  },
57
56
  };
58
57
 
59
- var checkboxAppearanceError = {
58
+ const checkboxAppearanceError = {
60
59
  errorPrimary: {
61
60
  fill: 'errorTertiary',
62
61
  fillCheckbox: 'errorPrimary',
@@ -81,7 +80,7 @@ var checkboxAppearanceError = {
81
80
  },
82
81
  };
83
82
 
84
- var checkboxAppearanceRequire = {
83
+ const checkboxAppearanceRequire = {
85
84
  requirePrimary: {
86
85
  fillCheckbox: 'warningTertiary',
87
86
  fillCheckboxActive: 'warningPrimary',
@@ -105,7 +104,7 @@ var checkboxAppearanceRequire = {
105
104
  },
106
105
  };
107
106
 
108
- var checkboxAppearanceSize = {
107
+ const checkboxAppearanceSize = {
109
108
  sizeXL: {
110
109
  size: 'xl',
111
110
  labelTextSize: 'm',
@@ -128,7 +127,7 @@ var checkboxAppearanceSize = {
128
127
  },
129
128
  };
130
129
 
131
- var checkboxAppearanceStyle = {
130
+ const checkboxAppearanceStyle = {
132
131
  solid: {
133
132
  borderColorCheckbox: 'none',
134
133
  borderColorCheckboxActive: 'none',
@@ -150,7 +149,7 @@ var checkboxAppearanceStyle = {
150
149
  },
151
150
  };
152
151
 
153
- var checkboxAppearanceSuccess = {
152
+ const checkboxAppearanceSuccess = {
154
153
  successPrimary: {
155
154
  fillCheckbox: 'successPrimary',
156
155
  fillCheckboxActive: 'successPrimary',
@@ -174,39 +173,47 @@ var checkboxAppearanceSuccess = {
174
173
  },
175
174
  };
176
175
 
177
- var checkboxAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, checkboxAppearanceDefault), checkboxAppearanceError), checkboxAppearanceSuccess), checkboxAppearanceRequire), checkboxAppearanceDisabled), checkboxAppearanceSize), checkboxAppearanceStyle);
176
+ const checkboxAppearance = {
177
+ ...checkboxAppearanceDefault,
178
+ ...checkboxAppearanceError,
179
+ ...checkboxAppearanceSuccess,
180
+ ...checkboxAppearanceRequire,
181
+ ...checkboxAppearanceDisabled,
182
+ ...checkboxAppearanceSize,
183
+ ...checkboxAppearanceStyle,
184
+ };
178
185
 
179
- var checkboxConfig = {
186
+ const checkboxConfig = {
180
187
  appearance: checkboxAppearance,
181
- setAppearance: function (appearanceConfig) {
188
+ setAppearance: (appearanceConfig) => {
182
189
  checkboxConfig.appearance = appearanceConfig;
183
190
  },
184
191
  };
185
192
  function Checkbox(props) {
186
- var id = props.id, className = props.className, appearance = props.appearance, label = props.label, desc = props.desc, disabled = props.disabled, isDisabled = props.isDisabled, checked = props.checked, indeterminate = props.indeterminate, _a = props.Tag, Tag = _a === void 0 ? 'label' : _a, value = props.value, before = props.before, after = props.after, isActive = props.isActive, isChecked = props.isChecked, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
187
- var appearanceConfig = useAppearanceConfig(appearance, checkboxConfig, isDisabled);
188
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
189
- var fillCheckboxActiveClass = propsGenerator.fillCheckboxActiveClass, fillCheckboxActiveHoverClass = propsGenerator.fillCheckboxActiveHoverClass, fillCheckboxClass = propsGenerator.fillCheckboxClass, fillCheckboxHoverClass = propsGenerator.fillCheckboxHoverClass, fillCheckmarkClass = propsGenerator.fillCheckmarkClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorCheckboxActiveClass = propsGenerator.borderColorCheckboxActiveClass, borderColorCheckboxActiveHoverClass = propsGenerator.borderColorCheckboxActiveHoverClass, borderColorCheckboxClass = propsGenerator.borderColorCheckboxClass, borderColorCheckboxHoverClass = propsGenerator.borderColorCheckboxHoverClass, shapeClass = propsGenerator.shapeClass, shapeStrengthClass = propsGenerator.shapeStrengthClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
190
- return (jsxs(Tag, { className: clsx(className, 'checkbox', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_".concat(fillHoverClass), sizeClass && "checkbox_size_".concat(sizeClass), !checked
191
- ? fillCheckboxClass && "checkbox_fill_".concat(fillCheckboxClass)
193
+ const { id, className, appearance, label, desc, disabled, isDisabled, checked, indeterminate, Tag = 'label', value, before, after, isActive, isChecked, isSkeleton, onBlur, onChange, onFocus, } = props;
194
+ const appearanceConfig = useAppearanceConfig(appearance, checkboxConfig, isDisabled);
195
+ const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
196
+ const { fillCheckboxActiveClass, fillCheckboxActiveHoverClass, fillCheckboxClass, fillCheckboxHoverClass, fillCheckmarkClass, fillClass, fillHoverClass, labelTextColor, labelTextSize, labelTextWeight, descTextColor, descTextSize, descTextWeight, borderColorCheckboxActiveClass, borderColorCheckboxActiveHoverClass, borderColorCheckboxClass, borderColorCheckboxHoverClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
197
+ return (jsxs(Tag, { className: clsx(className, 'checkbox', fillClass && `fill_${fillClass}`, fillHoverClass && `fill_${fillHoverClass}`, sizeClass && `checkbox_size_${sizeClass}`, !checked
198
+ ? fillCheckboxClass && `checkbox_fill_${fillCheckboxClass}`
192
199
  : fillCheckboxActiveClass &&
193
- "checkbox_fill_active_".concat(fillCheckboxActiveClass), !checked
200
+ `checkbox_fill_active_${fillCheckboxActiveClass}`, !checked
194
201
  ? fillCheckboxHoverClass &&
195
- "checkbox_fill_hover_".concat(fillCheckboxHoverClass)
202
+ `checkbox_fill_hover_${fillCheckboxHoverClass}`
196
203
  : fillCheckboxActiveHoverClass &&
197
- "checkbox_fill_active_hover_".concat(fillCheckboxActiveHoverClass), !checked
204
+ `checkbox_fill_active_hover_${fillCheckboxActiveHoverClass}`, !checked
198
205
  ? borderColorCheckboxClass &&
199
- "checkbox_border-color_".concat(borderColorCheckboxClass)
206
+ `checkbox_border-color_${borderColorCheckboxClass}`
200
207
  : borderColorCheckboxActiveClass &&
201
- "checkbox_border-color_active_".concat(borderColorCheckboxActiveClass), !checked
208
+ `checkbox_border-color_active_${borderColorCheckboxActiveClass}`, !checked
202
209
  ? borderColorCheckboxHoverClass &&
203
- "checkbox_border-color_hover_".concat(borderColorCheckboxHoverClass)
210
+ `checkbox_border-color_hover_${borderColorCheckboxHoverClass}`
204
211
  : borderColorCheckboxActiveHoverClass &&
205
- "checkbox_border-color_active_hover_".concat(borderColorCheckboxActiveHoverClass), widthClass && "width_".concat(widthClass), isSkeleton && "checkbox_skeleton"), htmlFor: Tag === 'label' && id, children: [before, jsxs("div", { className: "checkbox__item", children: [jsx("input", { id: id, className: "checkbox__input", type: "checkbox", disabled: (isDisabled || disabled) && 'disabled', checked: (isActive || isChecked || checked) && 'checked', value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus }), jsx("div", { className: clsx('checkbox__state', shapeClass && "shape_".concat(shapeClass), shapeStrengthClass && "shape-strength_".concat(shapeStrengthClass)), children: "\u00A0" }), jsx("div", { className: clsx(!indeterminate
212
+ `checkbox_border-color_active_hover_${borderColorCheckboxActiveHoverClass}`, widthClass && `width_${widthClass}`, isSkeleton && `checkbox_skeleton`), htmlFor: Tag === 'label' && id, children: [before, jsxs("div", { className: "checkbox__item", children: [jsx("input", { id: id, className: "checkbox__input", type: "checkbox", disabled: (isDisabled || disabled) && 'disabled', checked: (isActive || isChecked || checked) && 'checked', value: value, onBlur: onBlur, onChange: onChange, onFocus: onFocus }), jsx("div", { className: clsx('checkbox__state', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`), children: "\u00A0" }), jsx("div", { className: clsx(!indeterminate
206
213
  ? 'checkbox__state-checkmark'
207
214
  : 'checkbox__state-indeterminate', (checked || indeterminate) &&
208
215
  fillCheckmarkClass &&
209
- "fill_".concat(fillCheckmarkClass)), children: "\u00A0" })] }), label && (jsx(Text, { className: "checkbox__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "checkbox__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc })), after && jsx("div", { className: "checkbox__after", children: after })] }));
216
+ `fill_${fillCheckmarkClass}`), children: "\u00A0" })] }), label && (jsx(Text, { className: "checkbox__label", size: labelTextSize, textColor: labelTextColor, textWeight: labelTextWeight, children: label })), desc && (jsx(Text, { className: "checkbox__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc })), after && jsx("div", { className: "checkbox__after", children: after })] }));
210
217
  }
211
218
 
212
219
  export { Checkbox, checkboxAppearance, checkboxConfig };
@@ -3,7 +3,6 @@ import clsx from 'clsx';
3
3
  import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
7
6
  import 'react';
8
7
  import 'lodash/camelCase';
9
8
  import 'lodash/castArray';
@@ -19,7 +18,7 @@ import '../hooks.js';
19
18
  import '../hooks/useStyles/styleAttributes.js';
20
19
  import 'lodash/maxBy';
21
20
 
22
- var checkmarkAppearanceAccent = {
21
+ const checkmarkAppearanceAccent = {
23
22
  accentPrimary: {
24
23
  fill: 'accentPrimary',
25
24
  fillActive: 'accentPrimary',
@@ -29,7 +28,7 @@ var checkmarkAppearanceAccent = {
29
28
  },
30
29
  };
31
30
 
32
- var checkmarkAppearanceDisabled = {
31
+ const checkmarkAppearanceDisabled = {
33
32
  disabled: {
34
33
  fill: 'surfaceDisabled',
35
34
  fillActive: 'surfaceDisabled',
@@ -40,7 +39,7 @@ var checkmarkAppearanceDisabled = {
40
39
  },
41
40
  };
42
41
 
43
- var checkmarkAppearanceSize = {
42
+ const checkmarkAppearanceSize = {
44
43
  sizeXXL: {
45
44
  size: 'xxl',
46
45
  },
@@ -64,7 +63,7 @@ var checkmarkAppearanceSize = {
64
63
  },
65
64
  };
66
65
 
67
- var checkmarkAppearanceStyle = {
66
+ const checkmarkAppearanceStyle = {
68
67
  solid: {
69
68
  borderColor: 'none',
70
69
  },
@@ -78,7 +77,7 @@ var checkmarkAppearanceStyle = {
78
77
  },
79
78
  };
80
79
 
81
- var checkmarkAppearanceSurface = {
80
+ const checkmarkAppearanceSurface = {
82
81
  surfacePrimary: {
83
82
  fill: 'surfacePrimary',
84
83
  fillActive: 'surfacePrimary',
@@ -99,33 +98,39 @@ var checkmarkAppearanceSurface = {
99
98
  },
100
99
  };
101
100
 
102
- var checkmarkAppearance = __assign(__assign(__assign(__assign(__assign({}, checkmarkAppearanceAccent), checkmarkAppearanceDisabled), checkmarkAppearanceStyle), checkmarkAppearanceSurface), checkmarkAppearanceSize);
101
+ const checkmarkAppearance = {
102
+ ...checkmarkAppearanceAccent,
103
+ ...checkmarkAppearanceDisabled,
104
+ ...checkmarkAppearanceStyle,
105
+ ...checkmarkAppearanceSurface,
106
+ ...checkmarkAppearanceSize,
107
+ };
103
108
 
104
- var checkmarkConfig = {
109
+ const checkmarkConfig = {
105
110
  appearance: checkmarkAppearance,
106
- setAppearance: function (appearanceConfig) {
111
+ setAppearance: (appearanceConfig) => {
107
112
  checkmarkConfig.appearance = appearanceConfig;
108
113
  },
109
114
  };
110
115
  function Checkmark(props) {
111
- var className = props.className, appearance = props.appearance, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, isActive = props.isActive, isChecked = props.isChecked, onClick = props.onClick;
112
- var appearanceConfig = useAppearanceConfig(appearance, checkmarkConfig);
113
- var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
114
- var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorActiveClass = propsGenerator.borderColorActiveClass, borderColorActiveHoverClass = propsGenerator.borderColorActiveHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, checkmarkFillClass = propsGenerator.checkmarkFillClass, sizeClass = propsGenerator.sizeClass;
116
+ const { className, appearance, isDisabled = false, isActive, isChecked, onClick, } = props;
117
+ const appearanceConfig = useAppearanceConfig(appearance, checkmarkConfig);
118
+ const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
119
+ const { fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, borderColorActiveClass, borderColorActiveHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, checkmarkFillClass, sizeClass, } = propsGenerator;
115
120
  // @ts-expect-error
116
- var checkmarkStyles = useStyles(props).styles;
117
- return (jsx("div", { className: clsx(className, 'checkmark', sizeClass && "checkmark_size_".concat(sizeClass), !isChecked || !isActive
118
- ? fillClass && "fill_".concat(fillClass)
119
- : fillActiveClass && "fill_active_".concat(fillActiveClass), !isChecked || !isActive
120
- ? fillHoverClass && "fill_hover_".concat(fillHoverClass)
121
- : fillActiveHoverClass && "fill_active_hover_".concat(fillActiveHoverClass), !isChecked || !isActive
122
- ? borderColorClass && "border-color_".concat(borderColorClass)
121
+ const { styles: checkmarkStyles } = useStyles(props);
122
+ return (jsx("div", { className: clsx(className, 'checkmark', sizeClass && `checkmark_size_${sizeClass}`, !isChecked || !isActive
123
+ ? fillClass && `fill_${fillClass}`
124
+ : fillActiveClass && `fill_active_${fillActiveClass}`, !isChecked || !isActive
125
+ ? fillHoverClass && `fill_hover_${fillHoverClass}`
126
+ : fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, !isChecked || !isActive
127
+ ? borderColorClass && `border-color_${borderColorClass}`
123
128
  : borderColorActiveClass &&
124
- "border-color_active_".concat(borderColorActiveClass), !isChecked || !isActive
129
+ `border-color_active_${borderColorActiveClass}`, !isChecked || !isActive
125
130
  ? borderColorHoverClass &&
126
- "border-color_hover_".concat(borderColorHoverClass)
131
+ `border-color_hover_${borderColorHoverClass}`
127
132
  : borderColorActiveHoverClass &&
128
- "border-color_active_hover_".concat(borderColorActiveHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), isDisabled), style: checkmarkStyles, onClick: onClick, children: (isChecked || isActive) && (jsx("div", { className: clsx('checkmark__icon', "svg_path_fill_".concat(checkmarkFillClass)), children: jsx("svg", { width: "32", height: "24", fill: "none", viewBox: "0 0 32 24", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { fill: checkmarkFillClass, d: "M28.0896 0.706312L11.4967 18.1772L3.9104 10.1895C3.01576 9.24775 1.56549 9.24775 0.670845 10.1895C-0.223615 11.1315 -0.223615 12.6585 0.670845 13.6005L9.87695 23.2936C10.3243 23.7644 10.9105 24 11.4967 24C12.083 24 12.6692 23.7644 13.1165 23.2936L31.3292 4.11744C32.2236 3.17547 32.2236 1.64848 31.3292 0.706504C30.4345 -0.235469 28.9841 -0.235469 28.0896 0.706312Z" }) }) })) }));
133
+ `border-color_active_hover_${borderColorActiveHoverClass}`, borderWidthClass && `border-width_${borderWidthClass}`, isDisabled), style: checkmarkStyles, onClick: onClick, children: (isChecked || isActive) && (jsx("div", { className: clsx('checkmark__icon', `svg_path_fill_${checkmarkFillClass}`), children: jsx("svg", { width: "32", height: "24", fill: "none", viewBox: "0 0 32 24", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { fill: checkmarkFillClass, d: "M28.0896 0.706312L11.4967 18.1772L3.9104 10.1895C3.01576 9.24775 1.56549 9.24775 0.670845 10.1895C-0.223615 11.1315 -0.223615 12.6585 0.670845 13.6005L9.87695 23.2936C10.3243 23.7644 10.9105 24 11.4967 24C12.083 24 12.6692 23.7644 13.1165 23.2936L31.3292 4.11744C32.2236 3.17547 32.2236 1.64848 31.3292 0.706504C30.4345 -0.235469 28.9841 -0.235469 28.0896 0.706312Z" }) }) })) }));
129
134
  }
130
135
 
131
136
  export { Checkmark, checkmarkAppearance, checkmarkConfig };
@@ -1,6 +1,6 @@
1
1
  import { icons20 } from '@itcase/icons/default';
2
2
 
3
- var chipsListMock = {
3
+ const chipsListMock = {
4
4
  chipsList: [
5
5
  {
6
6
  id: 1,
@@ -1,8 +1,7 @@
1
- export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_ayPPUwQ7.js';
1
+ export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_BVQ7_n0k.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useAppearanceConfig/useAppearanceConfig.js';
5
- import '../tslib.es6_es_Bwu1Cn-t.js';
6
5
  import 'react';
7
6
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
8
7
  import 'lodash/camelCase';
@@ -19,9 +18,9 @@ import '../hooks.js';
19
18
  import '../hooks/useStyles/styleAttributes.js';
20
19
  import '../hooks/useStyles/useStyles.js';
21
20
  import 'lodash/maxBy';
22
- import '../Icon_es_BrwLifge.js';
21
+ import '../Icon_es_D5eiycFI.js';
23
22
  import 'react-inlinesvg';
24
23
  import '../hoc/urlWithAssetPrefix.js';
25
24
  import '../context/UrlAssetPrefix.js';
26
- import '../Link_es_XiqbdwLp.js';
27
- import '../Text_es_CwV9rjFD.js';
25
+ import '../Link_es_P2b6ya7P.js';
26
+ import '../Text_es_CnymlElo.js';
@@ -1,6 +1,6 @@
1
1
  import { icons24 } from '@itcase/icons/default';
2
2
 
3
- var choiceListMock = {
3
+ const choiceListMock = {
4
4
  active: {
5
5
  value: 1,
6
6
  },
@@ -37,7 +37,7 @@ var choiceListMock = {
37
37
  },
38
38
  ],
39
39
  };
40
- var choiceListIconMock = {
40
+ const choiceListIconMock = {
41
41
  active: {
42
42
  value: 1,
43
43
  },