@itcase/ui 1.4.5 → 1.4.7

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 (255) hide show
  1. package/dist/{Badge-C68XnlcL.js → Badge-BxT2_kz_.js} +1 -1
  2. package/dist/{Badge-C6SNRExV.js → Badge-DnWTbwXq.js} +1 -1
  3. package/dist/{Button-WZZpsxTk.js → Button-BiJZz4Bx.js} +9 -9
  4. package/dist/{Button-Bsrw4D7p.js → Button-xYLCmT3D.js} +9 -9
  5. package/dist/{DropdownItem-BiiEhR49.js → DropdownItem-NllzSt5M.js} +3 -3
  6. package/dist/{DropdownItem-g5jWbyJy.js → DropdownItem-mr__S8vt.js} +3 -3
  7. package/dist/{Group-DiMnEfge.js → Group-BICb8bYQ.js} +4 -6
  8. package/dist/{Group-Chtnas-J.js → Group-qq4Iisll.js} +4 -6
  9. package/dist/{Icon-GVGrUu_Z.js → Icon-BcBOnVKH.js} +4 -4
  10. package/dist/{Icon-htF_V35Y.js → Icon-OJ_3E3eM.js} +4 -4
  11. package/dist/{Input-COFdaiTe.js → Input-DHJIVk1z.js} +2 -2
  12. package/dist/{Input-Dwvk-poq.js → Input-DiFnIFT7.js} +2 -2
  13. package/dist/{Label-DF2a2Mlx.js → Label-D-LcvthP.js} +1 -1
  14. package/dist/{Label-I9WNpCXa.js → Label-y2hx5Q81.js} +1 -1
  15. package/dist/{Link-B38Hn4G2.js → Link-BnqN6ysn.js} +2 -2
  16. package/dist/{Link-BhJ5BdyS.js → Link-DaKqf1pb.js} +2 -2
  17. package/dist/{Loader-DpYaDhe9.js → Loader-DdKHrLnw.js} +3 -3
  18. package/dist/{Loader-D4_r7LML.js → Loader-VK3q7PBN.js} +3 -3
  19. package/dist/{Overlay-BKh07Vb2.js → Overlay-CZixnXZ6.js} +2 -2
  20. package/dist/{Overlay-DiCjwUv4.js → Overlay-Myen2mqz.js} +2 -2
  21. package/dist/Title-BLGDdlnX.js +55 -0
  22. package/dist/Title-Byi9vhDt.js +51 -0
  23. package/dist/{Tooltip-BYgzNVYI.js → Tooltip-5lQyt5-Y.js} +1 -1
  24. package/dist/{Tooltip-DpBQQoNo.js → Tooltip-DRta8lK_.js} +1 -1
  25. package/dist/cjs/components/Accordion.js +8 -8
  26. package/dist/cjs/components/Avatar.js +4 -4
  27. package/dist/cjs/components/Badge.js +5 -5
  28. package/dist/cjs/components/Breadcrumbs.js +4 -4
  29. package/dist/cjs/components/Button.js +7 -7
  30. package/dist/cjs/components/Cell.js +5 -5
  31. package/dist/cjs/components/Chips.js +60 -19
  32. package/dist/cjs/components/Choice.js +7 -7
  33. package/dist/cjs/components/Code.js +2 -2
  34. package/dist/cjs/components/CookiesWarning.js +8 -8
  35. package/dist/cjs/components/DadataHintField.js +1 -1
  36. package/dist/cjs/components/DatePicker.js +36 -11
  37. package/dist/cjs/components/Drawer.js +2 -2
  38. package/dist/cjs/components/Dropdown.js +2 -2
  39. package/dist/cjs/components/Group.js +1 -1
  40. package/dist/cjs/components/HeroTitle.js +2 -2
  41. package/dist/cjs/components/Icon.js +4 -4
  42. package/dist/cjs/components/Input.js +1 -1
  43. package/dist/cjs/components/InputMask.js +2 -2
  44. package/dist/cjs/components/InputPassword.js +6 -6
  45. package/dist/cjs/components/Label.js +3 -3
  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 +3 -3
  51. package/dist/cjs/components/Modal.js +22 -14
  52. package/dist/cjs/components/Notification.js +2 -2
  53. package/dist/cjs/components/Overlay.js +1 -1
  54. package/dist/cjs/components/Pagination.js +7 -7
  55. package/dist/cjs/components/Panel.js +3 -3
  56. package/dist/cjs/components/Radio.js +2 -2
  57. package/dist/cjs/components/Response.js +7 -7
  58. package/dist/cjs/components/Search.js +6 -6
  59. package/dist/cjs/components/Segmented.js +13 -3
  60. package/dist/cjs/components/Select.js +8 -8
  61. package/dist/cjs/components/Swiper.js +1 -1
  62. package/dist/cjs/components/Switch.js +2 -2
  63. package/dist/cjs/components/Tab.js +5 -5
  64. package/dist/cjs/components/Textarea.js +2 -2
  65. package/dist/cjs/components/Tile.js +5 -5
  66. package/dist/cjs/components/Title.js +2 -2
  67. package/dist/cjs/components/Tooltip.js +2 -2
  68. package/dist/cjs/components/Video.js +5 -5
  69. package/dist/components/Accordion.js +8 -8
  70. package/dist/components/Avatar.js +4 -4
  71. package/dist/components/Badge.js +5 -5
  72. package/dist/components/Breadcrumbs.js +4 -4
  73. package/dist/components/Button.js +7 -7
  74. package/dist/components/Cell.js +5 -5
  75. package/dist/components/Chips.js +60 -19
  76. package/dist/components/Choice.js +7 -7
  77. package/dist/components/Code.js +2 -2
  78. package/dist/components/CookiesWarning.js +8 -8
  79. package/dist/components/DadataHintField.js +1 -1
  80. package/dist/components/DatePicker.js +36 -11
  81. package/dist/components/Drawer.js +2 -2
  82. package/dist/components/Dropdown.js +2 -2
  83. package/dist/components/Group.js +1 -1
  84. package/dist/components/HeroTitle.js +2 -2
  85. package/dist/components/Icon.js +4 -4
  86. package/dist/components/Input.js +1 -1
  87. package/dist/components/InputMask.js +2 -2
  88. package/dist/components/InputPassword.js +6 -6
  89. package/dist/components/Label.js +3 -3
  90. package/dist/components/Link.js +1 -1
  91. package/dist/components/List.js +1 -1
  92. package/dist/components/Loader.js +1 -1
  93. package/dist/components/Logo.js +1 -1
  94. package/dist/components/MenuItem.js +3 -3
  95. package/dist/components/Modal.js +22 -14
  96. package/dist/components/Notification.js +2 -2
  97. package/dist/components/Overlay.js +1 -1
  98. package/dist/components/Pagination.js +7 -7
  99. package/dist/components/Panel.js +3 -3
  100. package/dist/components/Radio.js +2 -2
  101. package/dist/components/Response.js +7 -7
  102. package/dist/components/Search.js +6 -6
  103. package/dist/components/Segmented.js +13 -3
  104. package/dist/components/Select.js +8 -8
  105. package/dist/components/Swiper.js +1 -1
  106. package/dist/components/Switch.js +2 -2
  107. package/dist/components/Tab.js +5 -5
  108. package/dist/components/Textarea.js +2 -2
  109. package/dist/components/Tile.js +5 -5
  110. package/dist/components/Title.js +2 -2
  111. package/dist/components/Tooltip.js +2 -2
  112. package/dist/components/Video.js +5 -5
  113. package/dist/css/components/Cell/Cell.css +14 -34
  114. package/dist/css/components/HeroTitle/HeroTitle.css +11 -13
  115. package/dist/css/components/Image/Image.css +11 -13
  116. package/dist/css/components/Loader/Loader.css +19 -0
  117. package/dist/css/components/Title/Title.css +11 -13
  118. package/dist/css/components/Tooltip/Tooltip.css +4 -4
  119. package/dist/css/styles/fill/fill.css +6 -6
  120. package/dist/css/styles/fill/fill_active.css +1 -1
  121. package/dist/css/styles/fill/fill_active_hover.css +4 -4
  122. package/dist/css/styles/fill/fill_disabled.css +8 -0
  123. package/dist/css/styles/text-color/text-color.css +4 -4
  124. package/dist/css/styles/text-color/text-color_disabled.css +13 -0
  125. package/dist/stories/Accordion.mdx +1 -1
  126. package/dist/stories/AccordionItem.mdx +1 -1
  127. package/dist/stories/Avatar.mdx +1 -1
  128. package/dist/stories/Badge.mdx +13 -0
  129. package/dist/stories/Button.mdx +12 -0
  130. package/dist/stories/Checkbox.mdx +12 -0
  131. package/dist/stories/Checkmark.mdx +10 -0
  132. package/dist/stories/Chips.mdx +37 -0
  133. package/dist/stories/Dev.mdx +3 -3
  134. package/dist/stories/{elevation.mdx → Elevation.mdx} +3 -3
  135. package/dist/stories/Label.mdx +11 -0
  136. package/dist/stories/Loader.mdx +11 -0
  137. package/dist/stories/Logo.mdx +10 -5
  138. package/dist/stories/Modal.mdx +15 -0
  139. package/dist/stories/Response.mdx +11 -0
  140. package/dist/stories/Tab.mdx +27 -0
  141. package/dist/stories/Tile.mdx +4 -12
  142. package/dist/stories/Title.mdx +1 -1
  143. package/dist/types/appearance/default/defaultAccent.d.ts +33 -0
  144. package/dist/types/appearance/default/defaultDanger.d.ts +33 -0
  145. package/dist/types/appearance/default/defaultDisabled.d.ts +33 -0
  146. package/dist/types/appearance/default/defaultError.d.ts +33 -0
  147. package/dist/types/appearance/default/defaultInfo.d.ts +33 -0
  148. package/dist/types/appearance/default/defaultPrimary.d.ts +33 -0
  149. package/dist/types/appearance/default/defaultSecondary.d.ts +33 -0
  150. package/dist/types/appearance/default/defaultSuccess.d.ts +33 -0
  151. package/dist/types/appearance/default/defaultSurface.d.ts +33 -0
  152. package/dist/types/appearance/default/defaultWarning.d.ts +33 -0
  153. package/dist/types/appearance/index.d.ts +11 -2
  154. package/dist/types/components/Avatar/Avatar.interface.d.ts +1 -1
  155. package/dist/types/components/Button/appearance/buttonInfo.d.ts +2 -2
  156. package/dist/types/components/Chips/appearance/chipsAccent.d.ts +9 -0
  157. package/dist/types/components/Chips/appearance/chipsDanger.d.ts +2 -0
  158. package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +9 -0
  159. package/dist/types/components/Chips/appearance/chipsError.d.ts +2 -0
  160. package/dist/types/components/Chips/appearance/chipsInfo.d.ts +2 -0
  161. package/dist/types/components/Chips/appearance/chipsPrimary.d.ts +8 -0
  162. package/dist/types/components/Chips/appearance/chipsSecondary.d.ts +9 -0
  163. package/dist/types/components/Chips/appearance/chipsSize.d.ts +2 -0
  164. package/dist/types/components/Chips/appearance/chipsStyle.d.ts +2 -0
  165. package/dist/types/components/Chips/appearance/chipsSuccess.d.ts +2 -0
  166. package/dist/types/components/Chips/appearance/chipsSurface.d.ts +21 -0
  167. package/dist/types/components/Chips/appearance/chipsWarning.d.ts +2 -0
  168. package/dist/types/components/Grid/stories/args.d.ts +5 -5
  169. package/dist/types/components/Group/stories/args.d.ts +5 -5
  170. package/dist/types/components/Modal/Modal.appearance.d.ts +2 -2
  171. package/dist/types/components/Modal/Modal.interface.d.ts +3 -3
  172. package/dist/types/components/Modal/appearance/modalSurface.d.ts +7 -0
  173. package/dist/types/components/Tab/stories/args.d.ts +17 -17
  174. package/dist/types/types/componentProps/align.d.ts +1 -1
  175. package/dist/types/types/componentProps/alignDirection.d.ts +1 -1
  176. package/dist/types/types/componentProps/alignment.d.ts +1 -1
  177. package/dist/types/types/componentProps/borderColor.d.ts +1 -1
  178. package/dist/types/types/componentProps/borderColorHover.d.ts +1 -1
  179. package/dist/types/types/componentProps/borderType.d.ts +1 -1
  180. package/dist/types/types/componentProps/borderWidth.d.ts +1 -1
  181. package/dist/types/types/componentProps/direction.d.ts +1 -1
  182. package/dist/types/types/componentProps/elevation.d.ts +1 -1
  183. package/dist/types/types/componentProps/fill.d.ts +1 -1
  184. package/dist/types/types/componentProps/fillGradient.d.ts +1 -1
  185. package/dist/types/types/componentProps/fillHover.d.ts +1 -1
  186. package/dist/types/types/componentProps/fillType.d.ts +1 -1
  187. package/dist/types/types/componentProps/flexAlign.d.ts +1 -1
  188. package/dist/types/types/componentProps/flexGrow.d.ts +1 -1
  189. package/dist/types/types/componentProps/flexJustifyContent.d.ts +1 -1
  190. package/dist/types/types/componentProps/flexWrap.d.ts +1 -1
  191. package/dist/types/types/componentProps/gridAlign.d.ts +1 -1
  192. package/dist/types/types/componentProps/gridAlignSelf.d.ts +1 -1
  193. package/dist/types/types/componentProps/gridJustifyItems.d.ts +1 -1
  194. package/dist/types/types/componentProps/gridJustifySelf.d.ts +1 -1
  195. package/dist/types/types/componentProps/height.d.ts +1 -1
  196. package/dist/types/types/componentProps/horizontalResizeMode.d.ts +1 -1
  197. package/dist/types/types/componentProps/iconFillSize.d.ts +1 -1
  198. package/dist/types/types/componentProps/iconSize.d.ts +1 -1
  199. package/dist/types/types/componentProps/itemColor.d.ts +1 -1
  200. package/dist/types/types/componentProps/justifyContent.d.ts +1 -1
  201. package/dist/types/types/componentProps/overflow.d.ts +1 -1
  202. package/dist/types/types/componentProps/position.d.ts +1 -1
  203. package/dist/types/types/componentProps/resizeMode.d.ts +1 -1
  204. package/dist/types/types/componentProps/shape.d.ts +1 -1
  205. package/dist/types/types/componentProps/size.d.ts +1 -1
  206. package/dist/types/types/componentProps/sizeOption.d.ts +1 -1
  207. package/dist/types/types/componentProps/sizePX.d.ts +1 -1
  208. package/dist/types/types/componentProps/state.d.ts +1 -1
  209. package/dist/types/types/componentProps/svgFill.d.ts +1 -1
  210. package/dist/types/types/componentProps/textAlign.d.ts +1 -1
  211. package/dist/types/types/componentProps/textColor.d.ts +1 -1
  212. package/dist/types/types/componentProps/textColorActive.d.ts +1 -1
  213. package/dist/types/types/componentProps/textColorHover.d.ts +1 -1
  214. package/dist/types/types/componentProps/textGradient.d.ts +1 -1
  215. package/dist/types/types/componentProps/textSize.d.ts +1 -1
  216. package/dist/types/types/componentProps/textStyle.d.ts +1 -1
  217. package/dist/types/types/componentProps/textTag.d.ts +1 -1
  218. package/dist/types/types/componentProps/textWeight.d.ts +1 -1
  219. package/dist/types/types/componentProps/textWrap.d.ts +1 -1
  220. package/dist/types/types/componentProps/titleSize.d.ts +2 -2
  221. package/dist/types/types/componentProps/type.d.ts +1 -1
  222. package/dist/types/types/componentProps/underline.d.ts +1 -1
  223. package/dist/types/types/componentProps/verticalContentAlign.d.ts +1 -1
  224. package/dist/types/types/componentProps/verticalResizeMode.d.ts +1 -1
  225. package/dist/types/types/componentProps/width.d.ts +1 -1
  226. package/dist/types/types/componentProps/wrap.d.ts +1 -1
  227. package/package.json +17 -12
  228. package/dist/Title-BWWyRwLY.js +0 -52
  229. package/dist/Title-Dck3eHNM.js +0 -48
  230. package/dist/cjs/components/Card.js +0 -28
  231. package/dist/components/Card.js +0 -26
  232. package/dist/css/components/Card/Card.css +0 -18
  233. package/dist/css/tokens/colors.css +0 -126
  234. package/dist/css/tokens/elevation.css +0 -10
  235. package/dist/css/tokens/settings.css +0 -31
  236. package/dist/css/tokens/typography.css +0 -130
  237. package/dist/stories/Appearance.mdx +0 -35
  238. package/dist/stories/Group.mdx +0 -9
  239. package/dist/stories/Size.mdx +0 -35
  240. package/dist/stories/Skeleton.mdx +0 -9
  241. package/dist/stories/State.mdx +0 -19
  242. package/dist/types/components/Card/Card.d.ts +0 -3
  243. package/dist/types/components/Card/Card.interface.d.ts +0 -30
  244. package/dist/types/components/Card/index.d.ts +0 -1
  245. package/dist/types/components/Flex/stories/args.d.ts +0 -80
  246. /package/dist/stories/{colors.mdx → Colors.mdx} +0 -0
  247. /package/dist/stories/{mixin_animation.mdx → MixinAnimation.mdx} +0 -0
  248. /package/dist/stories/{mixin_dark-light.mdx → MixinDarkLight.mdx} +0 -0
  249. /package/dist/stories/{mixin_elevation.mdx → MixinElevation.mdx} +0 -0
  250. /package/dist/stories/{mixin_fill-gradient.mdx → MixinFillGradient.mdx} +0 -0
  251. /package/dist/stories/{mixin_typography.mdx → MixinTypography.mdx} +0 -0
  252. /package/dist/stories/{mixin_utils.mdx → MixinUtils.mdx} +0 -0
  253. /package/dist/stories/{settings.mdx → Settings.mdx} +0 -0
  254. /package/dist/stories/{typography.mdx → Typography.mdx} +0 -0
  255. /package/dist/types/appearance/{defaultAppearance.d.ts → default/defaultAppearance.d.ts} +0 -0
@@ -1,12 +1,13 @@
1
+ import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
1
2
  import { jsxs, jsx } from 'react/jsx-runtime';
2
3
  import React, { useState, useRef, useCallback, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
3
4
  import clsx from 'clsx';
4
5
  import ReactDOM from 'react-dom';
5
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { O as Overlay } from '../Overlay-BKh07Vb2.js';
8
- import { L as Loader } from '../Loader-D4_r7LML.js';
9
- import '../tslib.es6-5FtW-kfi.js';
8
+ import { O as Overlay } from '../Overlay-CZixnXZ6.js';
9
+ import { T as Title } from '../Title-Byi9vhDt.js';
10
+ import { L as Loader } from '../Loader-VK3q7PBN.js';
10
11
  import 'lodash/camelCase';
11
12
  import 'lodash/castArray';
12
13
  import 'lodash/upperFirst';
@@ -18,14 +19,19 @@ import 'lodash/maxBy';
18
19
  import '../hooks/useStyles/styleAttributes.js';
19
20
  import '../Text-C6NSmetx.js';
20
21
 
21
- var modalAppearance = {
22
- dev: {},
22
+ var modalAppearanceSurface = {
23
+ surfacePrimary: {
24
+ fill: 'surfacePrimary',
25
+ fillHover: 'surfacePrimaryHover',
26
+ },
23
27
  };
24
28
 
29
+ var modalAppearance = __assign({}, modalAppearanceSurface);
30
+
25
31
  var modalConfig = {
26
32
  appearance: modalAppearance,
27
- setAppearance: function (newComponent) {
28
- modalConfig.appearance = newComponent;
33
+ setAppearance: function (appearanceConfig) {
34
+ modalConfig.appearance = appearanceConfig;
29
35
  },
30
36
  };
31
37
  var getOrCreateModalElement = function (modalQuerySelector, className) {
@@ -50,7 +56,7 @@ var getOrCreateModalElement = function (modalQuerySelector, className) {
50
56
  };
51
57
  // Modal component that is an abstraction around the portal API.
52
58
  var Modal = React.forwardRef(function Modal(props, ref) {
53
- var id = props.id, children = props.children, _a = props.isCloseOnBlur, isCloseOnBlur = _a === void 0 ? true : _a, _b = props.isOpen, initialIsOpen = _b === void 0 ? false : _b, _c = props.isOverlay, isOverlay = _c === void 0 ? true : _c, _d = props.isScrollOnOpen, isScrollOnOpen = _d === void 0 ? true : _d, _e = props.isSetFocusOnOpen, isSetFocusOnOpen = _e === void 0 ? true : _e, appearance = props.appearance, className = props.className, closeButton = props.closeButton, contentClassName = props.contentClassName, _f = props.modalQuerySelector, modalQuerySelector = _f === void 0 ? '#modal-global' : _f, overlayClassName = props.overlayClassName, overlayFill = props.overlayFill, overlayFillGradient = props.overlayFillGradient, overlayOpacity = props.overlayOpacity, dataTestId = props.dataTestId, dataTour = props.dataTour, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal;
59
+ var id = props.id, className = props.className, appearance = props.appearance, title = props.title, contentClassName = props.contentClassName, dataTestId = props.dataTestId, dataTour = props.dataTour, _a = props.modalQuerySelector, modalQuerySelector = _a === void 0 ? '#modal-global' : _a, overlayClassName = props.overlayClassName, closeButton = props.closeButton, _b = props.isCloseOnBlur, isCloseOnBlur = _b === void 0 ? true : _b, _c = props.isOpen, initialIsOpen = _c === void 0 ? false : _c, _d = props.isOverlay, isOverlay = _d === void 0 ? true : _d, _e = props.isScrollOnOpen, isScrollOnOpen = _e === void 0 ? true : _e, _f = props.isSetFocusOnOpen, isSetFocusOnOpen = _f === void 0 ? true : _f, isSkeleton = props.isSkeleton, onClickOverlay = props.onClickOverlay, onCloseModal = props.onCloseModal, onOpenModal = props.onOpenModal, children = props.children;
54
60
  // Query DOM element
55
61
  var _g = useState(null), modalElement = _g[0], setModalElement = _g[1];
56
62
  var _h = useState(initialIsOpen), isOpen = _h[0], setIsOpen = _h[1];
@@ -131,20 +137,22 @@ var Modal = React.forwardRef(function Modal(props, ref) {
131
137
  }
132
138
  }, []);
133
139
  // Save ref things
134
- useImperativeHandle(ref, function () { return ({ isOpen: isOpen, closeModal: closeModal, modalElement: modalElement, openModal: openModal }); }, [isOpen, openModal, closeModal, modalElement]);
135
- // @ts-expect-error
136
- var appearanceConfig = modalConfig.appearance && modalConfig.appearance[appearance];
140
+ useImperativeHandle(ref, function () { return ({ modalElement: modalElement, openModal: openModal, closeModal: closeModal, isOpen: isOpen }); }, [isOpen, openModal, closeModal, modalElement]);
141
+ var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultAppearance, appearance) {
142
+ var _a;
143
+ return (__assign(__assign({}, resultAppearance), (_a = modalConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
144
+ }, {});
137
145
  var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
138
- var borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, fillClass = propsGenerator.fillClass, shapeClass = propsGenerator.shapeClass;
146
+ var fillClass = propsGenerator.fillClass, titleTextColor = propsGenerator.titleTextColor, titleTextColorHover = propsGenerator.titleTextColorHover, titleTextSize = propsGenerator.titleTextSize, titleTextTruncate = propsGenerator.titleTextTruncate, titleTextWeight = propsGenerator.titleTextWeight, titleTextWidth = propsGenerator.titleTextWidth, titleTextWrap = propsGenerator.titleTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, elevationClass = propsGenerator.elevationClass, overlayFill = propsGenerator.overlayFill, overlayFillGradient = propsGenerator.overlayFillGradient, overlayOpacity = propsGenerator.overlayOpacity, shapeClass = propsGenerator.shapeClass;
139
147
  // @ts-expect-error
140
148
  var modalStyles = useStyles(props).styles;
141
149
  // Use a portal to render the children into the element
142
150
  return (modalElement &&
143
151
  ReactDOM.createPortal(
144
152
  // Any valid React child: JSX, strings, arrays, etc.
145
- isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { className: clsx('modal-content', contentClassName, fillClass && "fill_".concat(fillClass), shapeClass && "modal-shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass)), "data-testid": dataTestId, "data-tour": dataTour, ref: modalContentRef, id: id, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [closeButton && (jsx("div", { className: "modal-content__close", onClick: closeModal, children: closeButton })), jsx("div", { className: "modal-content__wrapper", children: children })] }), jsx(Overlay, { className: clsx('modal__overlay', 'overlay_type_modal', overlayClassName),
153
+ isOpen ? (jsxs(React.Fragment, { children: [jsxs("div", { id: id, className: clsx('modal-content', contentClassName, fillClass && "fill_".concat(fillClass), shapeClass && "modal-shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), elevationClass && "elevation_".concat(elevationClass), isSkeleton && 'modal_skeleton'), "data-testid": dataTestId, "data-tour": dataTour, ref: modalContentRef, style: modalStyles, tabIndex: 0, onBlur: isCloseOnBlur ? closeModal : undefined, children: [title && (jsx(Title, { className: "modal-content__title", width: titleTextWidth, size: titleTextSize, textColor: titleTextColor, textColorHover: titleTextColorHover, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title })), closeButton && (jsx("div", { className: "modal-content__close", onClick: closeModal, children: closeButton })), jsx("div", { className: "modal-content__wrapper", children: children })] }), jsx(Overlay, { className: clsx('modal__overlay', 'overlay_type_modal', overlayClassName),
146
154
  // ref={modalOverlayRef}
147
- fill: overlayFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.overlayFill), opacity: overlayOpacity || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.overlayOpacity), fillGradient: overlayFillGradient || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.overlayFillGradient), isOverlay: isOverlay || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.isOverlay), onClick: onClickOverlay })] })) : null,
155
+ fill: overlayFill, fillGradient: overlayFillGradient, opacity: overlayOpacity, isOverlay: isOverlay, onClick: onClickOverlay })] })) : null,
148
156
  // A DOM element
149
157
  modalElement));
150
158
  });
@@ -53,8 +53,8 @@ var notificationItemAppearance = {
53
53
 
54
54
  var notificationItemConfig = {
55
55
  appearance: notificationItemAppearance,
56
- setAppearance: function (newComponent) {
57
- notificationItemConfig.appearance = newComponent;
56
+ setAppearance: function (appearanceConfig) {
57
+ notificationItemConfig.appearance = appearanceConfig;
58
58
  },
59
59
  };
60
60
  function NotificationItem(props) {
@@ -1,4 +1,4 @@
1
- export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../Overlay-BKh07Vb2.js';
1
+ export { O as Overlay, a as overlayAppearance, o as overlayConfig } from '../Overlay-CZixnXZ6.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'clsx';
4
4
  import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
@@ -4,8 +4,8 @@ import clsx from 'clsx';
4
4
  import ceil from 'lodash/ceil';
5
5
  import ReactPaginate from 'react-paginate';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
- import { D as Dropdown, a as DropdownItem } from '../DropdownItem-g5jWbyJy.js';
8
- import { I as Icon } from '../Icon-htF_V35Y.js';
7
+ import { D as Dropdown, a as DropdownItem } from '../DropdownItem-mr__S8vt.js';
8
+ import { I as Icon } from '../Icon-OJ_3E3eM.js';
9
9
  import { T as Text } from '../Text-C6NSmetx.js';
10
10
  import '../tslib.es6-5FtW-kfi.js';
11
11
  import 'lodash/camelCase';
@@ -19,10 +19,10 @@ import '../hooks/useStyles/useStyles.js';
19
19
  import 'lodash/maxBy';
20
20
  import '../hooks/useStyles/styleAttributes.js';
21
21
  import '../Divider-BQcBkzt1.js';
22
- import '../Link-BhJ5BdyS.js';
22
+ import '../Link-DaKqf1pb.js';
23
23
  import 'react-inlinesvg';
24
- import '../Tooltip-BYgzNVYI.js';
25
- import '../Title-Dck3eHNM.js';
24
+ import '../Tooltip-5lQyt5-Y.js';
25
+ import '../Title-Byi9vhDt.js';
26
26
 
27
27
  var paginationAppearance = {
28
28
  default: {
@@ -61,8 +61,8 @@ var paginationAppearance = {
61
61
 
62
62
  var paginationConfig = {
63
63
  appearance: paginationAppearance,
64
- setAppearance: function (newComponent) {
65
- paginationConfig.appearance = newComponent;
64
+ setAppearance: function (appearanceConfig) {
65
+ paginationConfig.appearance = appearanceConfig;
66
66
  },
67
67
  };
68
68
  function Pagination(props) {
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { G as Group } from '../Group-DiMnEfge.js';
6
+ import { G as Group } from '../Group-BICb8bYQ.js';
7
7
  import { T as Text } from '../Text-C6NSmetx.js';
8
8
  import '../tslib.es6-5FtW-kfi.js';
9
9
  import 'lodash/camelCase';
@@ -18,8 +18,8 @@ import '../hooks/useStyles/styleAttributes.js';
18
18
 
19
19
  var panelConfig = {
20
20
  appearance: undefined,
21
- setAppearance: function (newComponent) {
22
- panelConfig.appearance = newComponent;
21
+ setAppearance: function (appearanceConfig) {
22
+ panelConfig.appearance = appearanceConfig;
23
23
  },
24
24
  };
25
25
  var Panel = React.forwardRef(function Panel(props, ref) {
@@ -36,8 +36,8 @@ var radioState = {
36
36
 
37
37
  var radioConfig = {
38
38
  appearance: radioAppearance,
39
- setAppearance: function (newComponent) {
40
- radioConfig.appearance = newComponent;
39
+ setAppearance: function (appearanceConfig) {
40
+ radioConfig.appearance = appearanceConfig;
41
41
  },
42
42
  state: radioState,
43
43
  // eslint-disable-next-line perfectionist/sort-objects
@@ -5,8 +5,8 @@ import clsx from 'clsx';
5
5
  import SVG from 'react-inlinesvg';
6
6
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
7
7
  import { useStyles } from '../hooks/useStyles/useStyles.js';
8
- import { B as Button } from '../Button-Bsrw4D7p.js';
9
- import { G as Group } from '../Group-DiMnEfge.js';
8
+ import { B as Button } from '../Button-xYLCmT3D.js';
9
+ import { G as Group } from '../Group-BICb8bYQ.js';
10
10
  import { T as Text } from '../Text-C6NSmetx.js';
11
11
  import 'lodash/camelCase';
12
12
  import 'lodash/castArray';
@@ -17,11 +17,11 @@ import 'react-responsive';
17
17
  import '../utils/setViewportProperty.js';
18
18
  import 'lodash/maxBy';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../Icon-htF_V35Y.js';
21
- import '../Link-BhJ5BdyS.js';
22
- import '../Tooltip-BYgzNVYI.js';
23
- import '../Title-Dck3eHNM.js';
24
- import '../Loader-D4_r7LML.js';
20
+ import '../Icon-OJ_3E3eM.js';
21
+ import '../Link-DaKqf1pb.js';
22
+ import '../Tooltip-5lQyt5-Y.js';
23
+ import '../Title-Byi9vhDt.js';
24
+ import '../Loader-VK3q7PBN.js';
25
25
 
26
26
  var img$6 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M93.2275 101.842H84.0659C83.8263 99.1898 83.976 96.839 84.515 94.7895C85.1138 92.74 86.2216 90.8111 87.8383 89.0027C89.515 87.1341 91.7904 85.2051 94.6647 83.2159C96.5808 81.8898 97.9581 80.5637 98.7964 79.2375C99.6946 77.9114 100.144 76.4345 100.144 74.807C100.144 72.2753 99.2156 70.1957 97.3593 68.5682C95.503 66.9406 93.0778 66.1269 90.0838 66.1269C87.3892 66.1269 84.7246 66.9105 82.0898 68.4777C79.4551 69.9847 77.0299 72.3959 74.8144 75.7112L67 67.9352C70.0539 64.0774 73.5868 61.1237 77.5988 59.0742C81.6707 57.0247 85.9521 56 90.4431 56C94.5749 56 98.2575 56.8439 101.491 58.5317C104.725 60.1592 107.269 62.3896 109.126 65.2227C111.042 67.9955 112 71.1601 112 74.7166C112 78.0922 111.042 81.1062 109.126 83.7584C107.269 86.4107 104.455 88.8821 100.683 91.1727C97.7485 92.8605 95.7725 94.4881 94.7545 96.0553C93.7365 97.6226 93.2275 99.5515 93.2275 101.842ZM96.1916 115.767C96.1916 117.756 95.4731 119.474 94.0359 120.92C92.5988 122.307 90.8323 123 88.7365 123C86.6407 123 84.8743 122.307 83.4371 120.92C82 119.474 81.2814 117.756 81.2814 115.767C81.2814 113.717 82 111.999 83.4371 110.613C84.8743 109.166 86.6407 108.443 88.7365 108.443C90.8323 108.443 92.5988 109.166 94.0359 110.613C95.4731 111.999 96.1916 113.717 96.1916 115.767Z' fill='%23747474'/%3e%3c/svg%3e";
27
27
 
@@ -3,7 +3,7 @@ import React, { useCallback } from 'react';
3
3
  import clsx from 'clsx';
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-htF_V35Y.js';
6
+ import { I as Icon } from '../Icon-OJ_3E3eM.js';
7
7
  import { T as Text } from '../Text-C6NSmetx.js';
8
8
  import { S as Scrollbar } from '../Scrollbar-Bo7z7ELm.js';
9
9
  import '../tslib.es6-5FtW-kfi.js';
@@ -17,9 +17,9 @@ import '../utils/setViewportProperty.js';
17
17
  import 'lodash/maxBy';
18
18
  import '../hooks/useStyles/styleAttributes.js';
19
19
  import 'react-inlinesvg';
20
- import '../Link-BhJ5BdyS.js';
21
- import '../Tooltip-BYgzNVYI.js';
22
- import '../Title-Dck3eHNM.js';
20
+ import '../Link-DaKqf1pb.js';
21
+ import '../Tooltip-5lQyt5-Y.js';
22
+ import '../Title-Byi9vhDt.js';
23
23
  import 'react-scrollbars-custom';
24
24
 
25
25
  var searchAppearance = {
@@ -34,8 +34,8 @@ var searchAppearance = {
34
34
 
35
35
  var searchInputConfig = {
36
36
  appearance: searchAppearance,
37
- setAppearance: function (newComponent) {
38
- searchInputConfig.appearance = newComponent;
37
+ setAppearance: function (appearanceConfig) {
38
+ searchInputConfig.appearance = appearanceConfig;
39
39
  },
40
40
  };
41
41
  var SearchInput = React.forwardRef(function SearchInput(props, ref) {
@@ -16,22 +16,32 @@ import 'lodash/maxBy';
16
16
  import '../hooks/useStyles/styleAttributes.js';
17
17
 
18
18
  var segmentedAppearance = {
19
+ default: {
20
+ size: 's',
21
+ fill: 'surfacePrimary',
22
+ fillHover: 'surfaceSecondary',
23
+ labelTextActiveColor: 'accentTextPrimary',
24
+ labelTextColor: 'surfaceTextPrimary',
25
+ labelTextSize: 's',
26
+ indicatorFill: 'accentPrimary',
27
+ shape: 'rounded',
28
+ },
19
29
  dev: {
20
30
  width: 'fill',
21
31
  fill: 'surfaceSecondary',
22
32
  fillHover: 'surfacePrimaryHover',
23
- indicatorFill: 'accentPrimary',
24
33
  labelTextActiveColor: 'accentTextPrimary',
25
34
  labelTextColor: 'surfaceTextPrimary',
26
35
  labelTextSize: 'm',
36
+ indicatorFill: 'accentPrimary',
27
37
  shape: 'rounded',
28
38
  },
29
39
  };
30
40
 
31
41
  var segmentedConfig = {
32
42
  appearance: segmentedAppearance,
33
- setAppearance: function (newComponent) {
34
- segmentedConfig.appearance = newComponent;
43
+ setAppearance: function (appearanceConfig) {
44
+ segmentedConfig.appearance = appearanceConfig;
35
45
  },
36
46
  };
37
47
  var Segmented = React.forwardRef(function (props, ref) {
@@ -1,14 +1,14 @@
1
1
  import { _ as __assign } from '../tslib.es6-5FtW-kfi.js';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import Select, { components } from 'react-select';
4
- import { I as Icon } from '../Icon-htF_V35Y.js';
4
+ import { I as Icon } from '../Icon-OJ_3E3eM.js';
5
5
  import React, { useRef, useCallback, useEffect, useMemo } from 'react';
6
6
  import clsx from 'clsx';
7
7
  import CreatableSelect from 'react-select/creatable';
8
8
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
9
9
  import { T as Text } from '../Text-C6NSmetx.js';
10
- import { B as Badge } from '../Badge-C68XnlcL.js';
11
- import { G as Group } from '../Group-DiMnEfge.js';
10
+ import { B as Badge } from '../Badge-BxT2_kz_.js';
11
+ import { G as Group } from '../Group-BICb8bYQ.js';
12
12
  import { D as Divider } from '../Divider-BQcBkzt1.js';
13
13
  import 'react-inlinesvg';
14
14
  import '../hooks/useStyles/useStyles.js';
@@ -20,9 +20,9 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
20
20
  import 'react-responsive';
21
21
  import '../utils/setViewportProperty.js';
22
22
  import '../hooks/useStyles/styleAttributes.js';
23
- import '../Link-BhJ5BdyS.js';
24
- import '../Tooltip-BYgzNVYI.js';
25
- import '../Title-Dck3eHNM.js';
23
+ import '../Link-DaKqf1pb.js';
24
+ import '../Tooltip-5lQyt5-Y.js';
25
+ import '../Title-Byi9vhDt.js';
26
26
  import 'lodash/castArray';
27
27
 
28
28
  // interface ClearIndicatorProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>>
@@ -148,8 +148,8 @@ var SelectValueContainer = function (props) {
148
148
 
149
149
  var selectConfig = {
150
150
  appearance: selectAppearance,
151
- setAppearance: function (newComponent) {
152
- selectConfig.appearance = newComponent;
151
+ setAppearance: function (appearanceConfig) {
152
+ selectConfig.appearance = appearanceConfig;
153
153
  },
154
154
  };
155
155
  var SelectContainer = React.forwardRef(function SelectContainer(props, ref) {
@@ -4,7 +4,7 @@ import clsx from 'clsx';
4
4
  import { Swiper as Swiper$1, SwiperSlide } from 'swiper/react';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { T as Title } from '../Title-Dck3eHNM.js';
7
+ import { T as Title } from '../Title-Byi9vhDt.js';
8
8
  import '../tslib.es6-5FtW-kfi.js';
9
9
  import 'lodash/camelCase';
10
10
  import 'lodash/castArray';
@@ -8,8 +8,8 @@ var switchAppearance = {
8
8
 
9
9
  var switchConfig = {
10
10
  appearance: switchAppearance,
11
- setAppearance: function (newComponent) {
12
- switchConfig.appearance = newComponent;
11
+ setAppearance: function (appearanceConfig) {
12
+ switchConfig.appearance = appearanceConfig;
13
13
  },
14
14
  };
15
15
  var Switch = React.forwardRef(function Switch(props, ref) {
@@ -4,9 +4,9 @@ import React from 'react';
4
4
  import clsx from 'clsx';
5
5
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
6
6
  import { useStyles } from '../hooks/useStyles/useStyles.js';
7
- import { B as Badge } from '../Badge-C68XnlcL.js';
7
+ import { B as Badge } from '../Badge-BxT2_kz_.js';
8
8
  import { D as Divider } from '../Divider-BQcBkzt1.js';
9
- import { a as Link } from '../Link-BhJ5BdyS.js';
9
+ import { a as Link } from '../Link-DaKqf1pb.js';
10
10
  import { T as Text } from '../Text-C6NSmetx.js';
11
11
  import 'lodash/camelCase';
12
12
  import 'lodash/castArray';
@@ -17,10 +17,10 @@ import 'react-responsive';
17
17
  import '../utils/setViewportProperty.js';
18
18
  import 'lodash/maxBy';
19
19
  import '../hooks/useStyles/styleAttributes.js';
20
- import '../Icon-htF_V35Y.js';
20
+ import '../Icon-OJ_3E3eM.js';
21
21
  import 'react-inlinesvg';
22
- import '../Tooltip-BYgzNVYI.js';
23
- import '../Title-Dck3eHNM.js';
22
+ import '../Tooltip-5lQyt5-Y.js';
23
+ import '../Title-Byi9vhDt.js';
24
24
 
25
25
  var tabAppearance = {
26
26
  accent: {
@@ -69,8 +69,8 @@ var textareaState = {
69
69
  var textareaConfig = {
70
70
  appearance: textareaAppearance,
71
71
  state: textareaState,
72
- setAppearance: function (newComponent) {
73
- textareaConfig.appearance = newComponent;
72
+ setAppearance: function (appearanceConfig) {
73
+ textareaConfig.appearance = appearanceConfig;
74
74
  },
75
75
  setState: function (newComponent) {
76
76
  textareaConfig.state = newComponent;
@@ -3,9 +3,9 @@ import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import clsx from 'clsx';
4
4
  import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
5
5
  import { useStyles } from '../hooks/useStyles/useStyles.js';
6
- import { B as Badge } from '../Badge-C68XnlcL.js';
6
+ import { B as Badge } from '../Badge-BxT2_kz_.js';
7
7
  import { T as Text } from '../Text-C6NSmetx.js';
8
- import { T as Title } from '../Title-Dck3eHNM.js';
8
+ import { T as Title } from '../Title-Byi9vhDt.js';
9
9
  import 'react';
10
10
  import 'lodash/camelCase';
11
11
  import 'lodash/castArray';
@@ -16,10 +16,10 @@ import 'react-responsive';
16
16
  import '../utils/setViewportProperty.js';
17
17
  import 'lodash/maxBy';
18
18
  import '../hooks/useStyles/styleAttributes.js';
19
- import '../Icon-htF_V35Y.js';
19
+ import '../Icon-OJ_3E3eM.js';
20
20
  import 'react-inlinesvg';
21
- import '../Link-BhJ5BdyS.js';
22
- import '../Tooltip-BYgzNVYI.js';
21
+ import '../Link-DaKqf1pb.js';
22
+ import '../Tooltip-5lQyt5-Y.js';
23
23
 
24
24
  var tileAppearance = {
25
25
  dev: {},
@@ -1,9 +1,9 @@
1
- export { T as Title, a as titleAppearance, t as titleConfig } from '../Title-Dck3eHNM.js';
1
+ export { T as Title, a as titleAppearance, t as titleConfig } from '../Title-Byi9vhDt.js';
2
+ import '../tslib.es6-5FtW-kfi.js';
2
3
  import 'react/jsx-runtime';
3
4
  import 'react';
4
5
  import 'clsx';
5
6
  import '../context/UIContext.js';
6
- import '../tslib.es6-5FtW-kfi.js';
7
7
  import 'lodash/camelCase';
8
8
  import '../hooks/useMediaQueries/useMediaQueries.js';
9
9
  import 'react-responsive';
@@ -1,4 +1,4 @@
1
- export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-BYgzNVYI.js';
1
+ export { T as Tooltip, a as tooltipAppearance, t as tooltipConfig } from '../Tooltip-5lQyt5-Y.js';
2
2
  import '../tslib.es6-5FtW-kfi.js';
3
3
  import 'react/jsx-runtime';
4
4
  import 'react';
@@ -15,4 +15,4 @@ import '../hooks/useStyles/useStyles.js';
15
15
  import 'lodash/maxBy';
16
16
  import '../hooks/useStyles/styleAttributes.js';
17
17
  import '../Text-C6NSmetx.js';
18
- import '../Title-Dck3eHNM.js';
18
+ import '../Title-Byi9vhDt.js';
@@ -13,16 +13,16 @@ import '../utils/setViewportProperty.js';
13
13
  import '../hooks/useStyles/styleAttributes.js';
14
14
 
15
15
  function Video(props) {
16
- var id = props.id, children = props.children, position = props.position, className = props.className, mp4 = props.mp4, ogv = props.ogv, poster = props.poster, type = props.type, webm = props.webm;
16
+ var id = props.id, className = props.className, type = props.type, position = props.position, mp4 = props.mp4, ogv = props.ogv, poster = props.poster, webm = props.webm, children = props.children;
17
17
  // @ts-expect-error
18
18
  var videoStyles = useStyles(props).styles;
19
- return (jsxs("div", { className: clsx('video', className, type && "video_type_".concat(type), position && "video_position_".concat(position)), id: id, style: videoStyles, children: [jsxs("video", { className: "video__wrapper", autoPlay: true, loop: true, muted: true, playsInline: false, poster: poster, children: [webm && (jsx("source", {
19
+ return (jsxs("div", { id: id, className: clsx('video', className, type && "video_type_".concat(type), position && "video_position_".concat(position)), style: videoStyles, children: [jsxs("video", { className: "video__wrapper", autoPlay: true, loop: true, muted: true, playsInline: false, poster: poster, children: [webm && (jsx("source", { type: "video/webm", src: webm,
20
20
  // @ts-expect-error
21
- codecs: "vp8, vorbis", src: webm, type: "video/webm" })), ogv && (jsx("source", {
21
+ codecs: "vp8, vorbis" })), ogv && (jsx("source", { type: "video/ogg", src: ogv,
22
22
  // @ts-expect-error
23
- codecs: "theora, vorbis", src: ogv, type: "video/ogg" })), mp4 && (jsx("source", {
23
+ codecs: "theora, vorbis" })), mp4 && (jsx("source", { type: "video/mp4", src: mp4,
24
24
  // @ts-expect-error
25
- codecs: "avc1.42E01E, mp4a.40.2", src: mp4, type: "video/mp4" }))] }), children] }));
25
+ codecs: "avc1.42E01E, mp4a.40.2" }))] }), children] }));
26
26
  }
27
27
 
28
28
  export { Video };
@@ -57,24 +57,6 @@
57
57
  }
58
58
  }
59
59
  }
60
- .cell {
61
- &_set {
62
- &_horizontal {
63
- display: flex;
64
- flex-direction: row;
65
- justify-content: center;
66
- align-items: center;
67
- }
68
- }
69
- }
70
- .cell {
71
- &_set {
72
- &_vertical {
73
- display: flex;
74
- flex-direction: column;
75
- }
76
- }
77
- }
78
60
  .cell {
79
61
  &&_state {
80
62
  &_active {
@@ -116,22 +98,20 @@
116
98
  }
117
99
  }
118
100
  .cell {
119
- &&_mode {
120
- &_skeleton {
121
- ^^&__data {
122
- ^^^&__title,
123
- ^^^&__value {
124
- color: transparent;
125
- background-image: linear-gradient(
126
- 90deg,
127
- var(--color-surface-secondary),
128
- var(--color-surface-tertiary),
129
- var(--color-surface-secondary)
130
- );
131
- background-size: 200%;
132
- border-radius: 6px;
133
- animation: cellSkeleton 3s infinite linear;
134
- }
101
+ &_skeleton {
102
+ ^&__data {
103
+ ^^&__title,
104
+ ^^&__value {
105
+ color: transparent;
106
+ background-image: linear-gradient(
107
+ 90deg,
108
+ var(--color-surface-secondary),
109
+ var(--color-surface-tertiary),
110
+ var(--color-surface-secondary)
111
+ );
112
+ background-size: 200%;
113
+ border-radius: 6px;
114
+ animation: cellSkeleton 3s infinite linear;
135
115
  }
136
116
  }
137
117
  }
@@ -4,19 +4,17 @@
4
4
  }
5
5
  }
6
6
  .hero-title {
7
- &&_mode {
8
- &_skeleton {
9
- color: transparent;
10
- background-image: linear-gradient(
11
- 90deg,
12
- var(--color-surface-secondary),
13
- var(--color-surface-tertiary),
14
- var(--color-surface-secondary)
15
- );
16
- background-size: 200%;
17
- border-radius: 6px;
18
- animation: heroTitleSkeleton 3s infinite linear;
19
- }
7
+ &_skeleton {
8
+ color: transparent;
9
+ background-image: linear-gradient(
10
+ 90deg,
11
+ var(--color-surface-secondary),
12
+ var(--color-surface-tertiary),
13
+ var(--color-surface-secondary)
14
+ );
15
+ background-size: 200%;
16
+ border-radius: 6px;
17
+ animation: heroTitleSkeleton 3s infinite linear;
20
18
  }
21
19
  }
22
20
  @keyframes heroTitleSkeleton {
@@ -32,19 +32,17 @@
32
32
  }
33
33
  }
34
34
  .image {
35
- &&_mode {
36
- &_skeleton {
37
- background-image: linear-gradient(
38
- 90deg,
39
- var(--color-surface-secondary),
40
- var(--color-surface-tertiary),
41
- var(--color-surface-secondary)
42
- );
43
- background-size: 200%;
44
- animation: imageSkeleton 3s infinite linear;
45
- ^^&__item {
46
- opacity: 0%;
47
- }
35
+ &_skeleton {
36
+ background-image: linear-gradient(
37
+ 90deg,
38
+ x var(--color-surface-secondary),
39
+ var(--color-surface-tertiary),
40
+ var(--color-surface-secondary)
41
+ );
42
+ background-size: 200%;
43
+ animation: imageSkeleton 3s infinite linear;
44
+ ^^&__item {
45
+ opacity: 0%;
48
46
  }
49
47
  }
50
48
  }
@@ -70,6 +70,25 @@
70
70
  }
71
71
  }
72
72
  }
73
+ .loader {
74
+ &_shape {
75
+ &_rounded {
76
+ border-radius: var(--loader-shape-rounded-default, 6px);
77
+ @each $size in xxl, xl, l, m, s, xs, xxs {
78
+ &^^&_size_$(size) {
79
+ ^^^&__item {
80
+ border-radius: var(--loader-$(size)-shape-rounded, 6px);
81
+ }
82
+ }
83
+ }
84
+ }
85
+ &_circular {
86
+ ^^&__item {
87
+ border-radius: 50%;
88
+ }
89
+ }
90
+ }
91
+ }
73
92
  :root {
74
93
  --loader-l-min-width: 112px;
75
94
  --loader-l-min-height: 56px;
@@ -4,19 +4,17 @@
4
4
  }
5
5
  }
6
6
  .title {
7
- &&_mode {
8
- &_skeleton {
9
- color: transparent;
10
- background-image: linear-gradient(
11
- 90deg,
12
- var(--color-surface-secondary),
13
- var(--color-surface-tertiary),
14
- var(--color-surface-secondary)
15
- );
16
- background-size: 200%;
17
- border-radius: 6px;
18
- animation: titleSkeleton 3s infinite linear;
19
- }
7
+ &_skeleton {
8
+ color: transparent;
9
+ background-image: linear-gradient(
10
+ 90deg,
11
+ var(--color-surface-secondary),
12
+ var(--color-surface-tertiary),
13
+ var(--color-surface-secondary)
14
+ );
15
+ background-size: 200%;
16
+ border-radius: 6px;
17
+ animation: titleSkeleton 3s infinite linear;
20
18
  }
21
19
  }
22
20
  @keyframes titleSkeleton {