@alfalab/core-components 44.5.0-beta.1 → 44.5.0-beta.2

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 (213) hide show
  1. package/confirmation/component.responsive.js +1 -1
  2. package/confirmation/components/base-confirmation/component.js +1 -1
  3. package/confirmation/components/base-confirmation/index.js +1 -1
  4. package/confirmation/components/index.js +1 -1
  5. package/confirmation/components/screens/index.js +1 -1
  6. package/confirmation/components/screens/initial/component.js +1 -1
  7. package/confirmation/components/screens/initial/countdown-section.js +1 -1
  8. package/confirmation/components/screens/initial/index.js +1 -1
  9. package/confirmation/desktop/component.desktop.js +1 -1
  10. package/confirmation/desktop/index.js +1 -1
  11. package/confirmation/esm/component.responsive.js +1 -1
  12. package/confirmation/esm/components/base-confirmation/component.js +1 -1
  13. package/confirmation/esm/components/base-confirmation/index.js +1 -1
  14. package/confirmation/esm/components/index.js +1 -1
  15. package/confirmation/esm/components/screens/index.js +1 -1
  16. package/confirmation/esm/components/screens/initial/component.js +1 -1
  17. package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
  18. package/confirmation/esm/components/screens/initial/index.js +1 -1
  19. package/confirmation/esm/desktop/component.desktop.js +1 -1
  20. package/confirmation/esm/desktop/index.js +1 -1
  21. package/confirmation/esm/index.js +1 -1
  22. package/confirmation/esm/mobile/component.mobile.js +1 -1
  23. package/confirmation/esm/mobile/index.js +1 -1
  24. package/confirmation/esm/shared/index.js +1 -1
  25. package/confirmation/index.js +1 -1
  26. package/confirmation/mobile/component.mobile.js +1 -1
  27. package/confirmation/mobile/index.js +1 -1
  28. package/confirmation/modern/component.responsive.js +1 -1
  29. package/confirmation/modern/components/base-confirmation/component.js +1 -1
  30. package/confirmation/modern/components/base-confirmation/index.js +1 -1
  31. package/confirmation/modern/components/index.js +1 -1
  32. package/confirmation/modern/components/screens/index.js +1 -1
  33. package/confirmation/modern/components/screens/initial/component.js +1 -1
  34. package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
  35. package/confirmation/modern/components/screens/initial/index.js +1 -1
  36. package/confirmation/modern/desktop/component.desktop.js +1 -1
  37. package/confirmation/modern/desktop/index.js +1 -1
  38. package/confirmation/modern/index.js +1 -1
  39. package/confirmation/modern/mobile/component.mobile.js +1 -1
  40. package/confirmation/modern/mobile/index.js +1 -1
  41. package/confirmation/modern/shared/index.js +1 -1
  42. package/confirmation/shared/index.js +1 -1
  43. package/package.json +1 -1
  44. package/pure-cell/component.js +1 -1
  45. package/pure-cell/components/content/component.js +1 -1
  46. package/pure-cell/components/content/index.d.ts +1 -1
  47. package/pure-cell/components/content/index.js +1 -1
  48. package/pure-cell/components/main/component.js +1 -1
  49. package/pure-cell/components/main/index.d.ts +1 -1
  50. package/pure-cell/components/main/index.js +1 -1
  51. package/pure-cell/components/text/component.js +1 -1
  52. package/pure-cell/components/text/index.d.ts +1 -1
  53. package/pure-cell/components/text/index.js +1 -1
  54. package/pure-cell/esm/component.js +1 -1
  55. package/pure-cell/esm/components/content/component.js +1 -1
  56. package/pure-cell/esm/components/content/index.d.ts +1 -1
  57. package/pure-cell/esm/components/content/index.js +1 -1
  58. package/pure-cell/esm/components/main/component.js +1 -1
  59. package/pure-cell/esm/components/main/index.d.ts +1 -1
  60. package/pure-cell/esm/components/main/index.js +1 -1
  61. package/pure-cell/esm/components/text/component.js +1 -1
  62. package/pure-cell/esm/components/text/index.d.ts +1 -1
  63. package/pure-cell/esm/components/text/index.js +1 -1
  64. package/pure-cell/esm/index.js +1 -1
  65. package/pure-cell/index.js +1 -1
  66. package/pure-cell/modern/component.js +1 -1
  67. package/pure-cell/modern/components/content/component.js +1 -1
  68. package/pure-cell/modern/components/content/index.d.ts +1 -1
  69. package/pure-cell/modern/components/content/index.js +1 -1
  70. package/pure-cell/modern/components/main/component.js +1 -1
  71. package/pure-cell/modern/components/main/index.d.ts +1 -1
  72. package/pure-cell/modern/components/main/index.js +1 -1
  73. package/pure-cell/modern/components/text/component.js +1 -1
  74. package/pure-cell/modern/components/text/index.d.ts +1 -1
  75. package/pure-cell/modern/components/text/index.js +1 -1
  76. package/pure-cell/modern/index.js +1 -1
  77. package/select/Component.responsive.js +1 -1
  78. package/select/esm/Component.responsive.js +1 -1
  79. package/select/esm/index.js +1 -1
  80. package/select/esm/mobile/Component.mobile.js +1 -1
  81. package/select/esm/mobile/Component.modal.mobile.js +1 -1
  82. package/select/esm/mobile/index.js +1 -1
  83. package/select/esm/presets/index.js +1 -1
  84. package/select/esm/presets/useSelectWithApply/hook.js +1 -1
  85. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  86. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  87. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  88. package/select/esm/shared/index.js +1 -1
  89. package/select/index.js +1 -1
  90. package/select/mobile/Component.mobile.js +1 -1
  91. package/select/mobile/Component.modal.mobile.js +1 -1
  92. package/select/mobile/index.js +1 -1
  93. package/select/modern/Component.responsive.js +1 -1
  94. package/select/modern/index.js +1 -1
  95. package/select/modern/mobile/Component.mobile.js +1 -1
  96. package/select/modern/mobile/Component.modal.mobile.js +1 -1
  97. package/select/modern/mobile/index.js +1 -1
  98. package/select/modern/presets/index.js +1 -1
  99. package/select/modern/presets/useSelectWithApply/hook.js +1 -1
  100. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  101. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  102. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  103. package/select/modern/shared/index.js +1 -1
  104. package/select/presets/index.js +1 -1
  105. package/select/presets/useSelectWithApply/hook.js +1 -1
  106. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  107. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  108. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  109. package/select/shared/index.js +1 -1
  110. package/tabs/collapsible/index.js +1 -1
  111. package/tabs/components/primary-tablist/Component.collapsible.js +4 -4
  112. package/tabs/components/primary-tablist/Component.desktop.js +1 -1
  113. package/tabs/components/primary-tablist/Component.js +1 -1
  114. package/tabs/components/primary-tablist/Component.mobile.js +1 -1
  115. package/tabs/components/primary-tablist/Component.responsive.js +1 -1
  116. package/tabs/components/secondary-tablist/Component.desktop.js +1 -1
  117. package/tabs/components/secondary-tablist/Component.mobile.js +1 -1
  118. package/tabs/components/secondary-tablist/Component.responsive.js +1 -1
  119. package/tabs/components/tab/Component.d.ts +1 -1
  120. package/tabs/components/tab/Component.js +3 -3
  121. package/tabs/components/tabs/Component.collapsible.js +1 -1
  122. package/tabs/components/tabs/Component.desktop.js +2 -2
  123. package/tabs/components/tabs/Component.js +2 -2
  124. package/tabs/components/tabs/Component.mobile.js +2 -2
  125. package/tabs/components/tabs/Component.responsive.js +2 -2
  126. package/tabs/components/title/Component.d.ts +4 -6
  127. package/tabs/cssm/components/primary-tablist/Component.collapsible.js +3 -3
  128. package/tabs/cssm/components/primary-tablist/Component.js +1 -1
  129. package/tabs/cssm/components/tab/Component.d.ts +1 -1
  130. package/tabs/cssm/components/tab/Component.js +3 -3
  131. package/tabs/cssm/components/tabs/Component.js +2 -2
  132. package/tabs/cssm/components/title/Component.d.ts +4 -6
  133. package/tabs/cssm/hooks/use-tablist-titles.d.ts +1 -1
  134. package/tabs/cssm/hooks/use-tabs.js +2 -2
  135. package/tabs/cssm/typings.d.ts +5 -5
  136. package/tabs/desktop/index.js +2 -2
  137. package/tabs/esm/collapsible/index.js +1 -1
  138. package/tabs/esm/components/primary-tablist/Component.collapsible.js +4 -4
  139. package/tabs/esm/components/primary-tablist/Component.desktop.js +1 -1
  140. package/tabs/esm/components/primary-tablist/Component.js +1 -1
  141. package/tabs/esm/components/primary-tablist/Component.mobile.js +1 -1
  142. package/tabs/esm/components/primary-tablist/Component.responsive.js +1 -1
  143. package/tabs/esm/components/secondary-tablist/Component.desktop.js +1 -1
  144. package/tabs/esm/components/secondary-tablist/Component.mobile.js +1 -1
  145. package/tabs/esm/components/secondary-tablist/Component.responsive.js +1 -1
  146. package/tabs/esm/components/tab/Component.d.ts +1 -1
  147. package/tabs/esm/components/tab/Component.js +4 -4
  148. package/tabs/esm/components/tabs/Component.collapsible.js +1 -1
  149. package/tabs/esm/components/tabs/Component.desktop.js +2 -2
  150. package/tabs/esm/components/tabs/Component.js +2 -2
  151. package/tabs/esm/components/tabs/Component.mobile.js +2 -2
  152. package/tabs/esm/components/tabs/Component.responsive.js +2 -2
  153. package/tabs/esm/components/title/Component.d.ts +4 -6
  154. package/tabs/esm/desktop/index.js +2 -2
  155. package/tabs/esm/hooks/use-tablist-titles.d.ts +1 -1
  156. package/tabs/esm/hooks/use-tabs.js +2 -2
  157. package/tabs/esm/index.js +2 -2
  158. package/tabs/esm/mobile/index.js +2 -2
  159. package/tabs/esm/typings.d.ts +5 -5
  160. package/tabs/hooks/use-tablist-titles.d.ts +1 -1
  161. package/tabs/hooks/use-tabs.js +2 -2
  162. package/tabs/index.js +2 -2
  163. package/tabs/mobile/index.js +2 -2
  164. package/tabs/modern/collapsible/index.js +1 -1
  165. package/tabs/modern/components/primary-tablist/Component.collapsible.js +4 -4
  166. package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
  167. package/tabs/modern/components/primary-tablist/Component.js +1 -1
  168. package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
  169. package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
  170. package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
  171. package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
  172. package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
  173. package/tabs/modern/components/tab/Component.d.ts +1 -1
  174. package/tabs/modern/components/tab/Component.js +3 -3
  175. package/tabs/modern/components/tabs/Component.collapsible.js +1 -1
  176. package/tabs/modern/components/tabs/Component.desktop.js +2 -2
  177. package/tabs/modern/components/tabs/Component.js +2 -2
  178. package/tabs/modern/components/tabs/Component.mobile.js +2 -2
  179. package/tabs/modern/components/tabs/Component.responsive.js +2 -2
  180. package/tabs/modern/components/title/Component.d.ts +4 -6
  181. package/tabs/modern/desktop/index.js +2 -2
  182. package/tabs/modern/hooks/use-tablist-titles.d.ts +1 -1
  183. package/tabs/modern/hooks/use-tabs.js +2 -2
  184. package/tabs/modern/index.js +2 -2
  185. package/tabs/modern/mobile/index.js +2 -2
  186. package/tabs/modern/typings.d.ts +5 -5
  187. package/tabs/typings.d.ts +5 -5
  188. package/themes/compiled/mobile-dark-bluetint.css +27 -27
  189. package/themes/dist/compiled/mobile-dark-bluetint.css +106 -106
  190. /package/confirmation/{countdown-section-62123575.d.ts → countdown-section-fcedf50a.d.ts} +0 -0
  191. /package/confirmation/{countdown-section-62123575.js → countdown-section-fcedf50a.js} +0 -0
  192. /package/confirmation/esm/{countdown-section-1c60196c.d.ts → countdown-section-a4b62979.d.ts} +0 -0
  193. /package/confirmation/esm/{countdown-section-1c60196c.js → countdown-section-a4b62979.js} +0 -0
  194. /package/confirmation/modern/{countdown-section-5a30ab8e.d.ts → countdown-section-3c0f612c.d.ts} +0 -0
  195. /package/confirmation/modern/{countdown-section-5a30ab8e.js → countdown-section-3c0f612c.js} +0 -0
  196. /package/pure-cell/{component-b6918aec.d.ts → component-8706ad6e.d.ts} +0 -0
  197. /package/pure-cell/{component-b6918aec.js → component-8706ad6e.js} +0 -0
  198. /package/pure-cell/esm/{component-9a54b1ed.d.ts → component-7c9120a5.d.ts} +0 -0
  199. /package/pure-cell/esm/{component-9a54b1ed.js → component-7c9120a5.js} +0 -0
  200. /package/pure-cell/modern/{component-77a33c62.d.ts → component-657583a6.d.ts} +0 -0
  201. /package/pure-cell/modern/{component-77a33c62.js → component-657583a6.js} +0 -0
  202. /package/select/esm/{hook-4ab5f585.d.ts → hook-b9d559da.d.ts} +0 -0
  203. /package/select/esm/{hook-4ab5f585.js → hook-b9d559da.js} +0 -0
  204. /package/select/{hook-72c8ef01.d.ts → hook-8a723404.d.ts} +0 -0
  205. /package/select/{hook-72c8ef01.js → hook-8a723404.js} +0 -0
  206. /package/select/modern/{hook-4adee35c.d.ts → hook-d1a0d491.d.ts} +0 -0
  207. /package/select/modern/{hook-4adee35c.js → hook-d1a0d491.js} +0 -0
  208. /package/tabs/esm/{index.module-1e961bec.js → index.module-2e6bbad0.js} +0 -0
  209. /package/tabs/esm/{index.module-b07a0a20.js → index.module-f4522cbb.js} +0 -0
  210. /package/tabs/{index.module-dcd338c3.js → index.module-6317ca6b.js} +0 -0
  211. /package/tabs/{index.module-6c875fed.js → index.module-915cefb2.js} +0 -0
  212. /package/tabs/modern/{index.module-11a3c51b.js → index.module-461a89ca.js} +0 -0
  213. /package/tabs/modern/{index.module-b0eb0617.js → index.module-9b682de1.js} +0 -0
@@ -6,7 +6,7 @@ import { PickerButtonDesktop } from '../../../../picker-button/modern/desktop';
6
6
  import { useTablistTitles } from '../../hooks/use-tablist-titles.js';
7
7
  import { createSyntheticMouseEvent } from '../../synthetic-events.js';
8
8
  import { Title } from '../title/Component.js';
9
- import { s as styles } from '../../index.module-b0eb0617.js';
9
+ import { s as styles } from '../../index.module-9b682de1.js';
10
10
  import '../../../../mq/modern';
11
11
  import '@juggle/resize-observer';
12
12
  import '@alfalab/hooks';
@@ -31,12 +31,12 @@ const CollapsiblePrimaryTabList = ({ size = 'm', className, containerClassName,
31
31
  lineRef.current.style.transform = `translateX(${selectedTab.offsetLeft}px)`;
32
32
  }
33
33
  }, [selectedTab, tablistTitles]);
34
- const collapsedOptions = useMemo(() => tablistTitles.reduce((options, { ref, ...title }) => {
34
+ const collapsedOptions = useMemo(() => tablistTitles.reduce((options, { toggleRef, ...title }) => {
35
35
  if (title.collapsed) {
36
36
  options.push({
37
37
  key: title.title,
38
38
  value: title.id,
39
- content: (React.createElement(Title, { ...title, ref: ref, styles: styles, isOption: true })),
39
+ content: (React.createElement(Title, { ...title, ref: toggleRef, styles: styles, isOption: true })),
40
40
  });
41
41
  }
42
42
  return options;
@@ -52,7 +52,7 @@ const CollapsiblePrimaryTabList = ({ size = 'm', className, containerClassName,
52
52
  const renderContent = () => (React.createElement("div", { role: 'tablist', "data-test-id": dataTestId, className: cn(styles.component, className, size && styles[size], {
53
53
  [styles.fullWidthScroll]: fullWidthScroll,
54
54
  }) },
55
- tablistTitles.map(({ dataTestId: _, ref: __, ...restTitleProps }, index) => (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, (ref, focused) => (React.createElement(Title, { ...getTabListItemProps(index, ref), ...restTitleProps, focused: focused, styles: styles }))))),
55
+ tablistTitles.map(({ dataTestId: _, toggleRef: __, ...restTitleProps }, index) => (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, (ref, focused) => (React.createElement(Title, { ...getTabListItemProps(index, ref), ...restTitleProps, focused: focused, styles: styles }))))),
56
56
  collapsedOptions.length ? (React.createElement("span", { ref: addonRef, role: 'menu', className: styles.pickerWrapper },
57
57
  React.createElement(PickerButtonDesktop, { fieldClassName: styles.title, optionClassName: cn(styles.pickerOption, size && styles[size]), options: collapsedOptions, onChange: handleOptionsChange, rightAddons: collapsedAddonsLength ? (React.createElement(Badge, { view: 'count', content: collapsedAddonsLength })) : null, size: 'm', view: 'ghost', label: '\u0415\u0449\u0451', popoverPosition: 'bottom-end' }))) : null,
58
58
  React.createElement("div", { className: styles.line, ref: lineRef })));
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PrimaryTabList } from './Component.js';
3
- import { s as styles } from '../../index.module-b0eb0617.js';
3
+ import { s as styles } from '../../index.module-9b682de1.js';
4
4
  import '@juggle/resize-observer';
5
5
  import 'classnames';
6
6
  import '../../../../keyboard-focusable/modern';
@@ -40,7 +40,7 @@ const PrimaryTabList = ({ size, styles = {}, className, containerClassName, titl
40
40
  const renderContent = () => (React.createElement("div", { role: 'tablist', "data-test-id": dataTestId, className: cn(styles.component, className, size && styles[size], {
41
41
  [styles.fullWidthScroll]: fullWidthScroll,
42
42
  }) },
43
- titles.map(({ dataTestId: _, ref: __, ...restTitleProps }, index) => (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, (ref, focused) => (React.createElement(Title, { ...getTabListItemProps(index, ref), ...restTitleProps, focused: focused, styles: styles }))))),
43
+ titles.map(({ dataTestId: _, toggleRef: __, ...restTitleProps }, index) => (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, (ref, focused) => (React.createElement(Title, { ...getTabListItemProps(index, ref), ...restTitleProps, focused: focused, styles: styles }))))),
44
44
  React.createElement("div", { className: styles.line, ref: lineRef })));
45
45
  return scrollable ? (React.createElement(ScrollableContainer, { activeChild: focusedTab || selectedTab, containerClassName: containerClassName, fullWidthScroll: fullWidthScroll, view: 'primary', size: size, platform: platform }, renderContent())) : (React.createElement("div", { className: cn(styles.container, containerClassName) }, renderContent()));
46
46
  };
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { PrimaryTabList } from './Component.js';
4
- import { s as styles$1 } from '../../index.module-b0eb0617.js';
4
+ import { s as styles$1 } from '../../index.module-9b682de1.js';
5
5
  import '@juggle/resize-observer';
6
6
  import '../../../../keyboard-focusable/modern';
7
7
  import '../../../../shared/modern';
@@ -15,7 +15,7 @@ import 'lodash.debounce';
15
15
  import '../../../../icon-button/modern';
16
16
  import '@alfalab/icons-glyph/ChevronLeftMIcon';
17
17
  import '@alfalab/icons-glyph/ChevronRightMIcon';
18
- import '../../index.module-b0eb0617.js';
18
+ import '../../index.module-9b682de1.js';
19
19
  import './Component.js';
20
20
  import '../../hooks/use-tabs.js';
21
21
  import '../scroll-controls/utils.js';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TagDesktop } from '../../../../tag/modern/desktop';
3
3
  import { SecondaryTabList } from './Component.js';
4
- import { c as commonStyles } from '../../index.module-11a3c51b.js';
4
+ import { c as commonStyles } from '../../index.module-461a89ca.js';
5
5
  import 'classnames';
6
6
  import 'react-merge-refs';
7
7
  import '../../../../shared/modern';
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { TagMobile } from '../../../../tag/modern/mobile';
4
4
  import { SecondaryTabList } from './Component.js';
5
- import { c as commonStyles } from '../../index.module-11a3c51b.js';
5
+ import { c as commonStyles } from '../../index.module-461a89ca.js';
6
6
  import 'react-merge-refs';
7
7
  import '../../../../shared/modern';
8
8
  import '../scrollable-container/Component.js';
@@ -13,7 +13,7 @@ import 'lodash.debounce';
13
13
  import '../../../../icon-button/modern';
14
14
  import '@alfalab/icons-glyph/ChevronLeftMIcon';
15
15
  import '@alfalab/icons-glyph/ChevronRightMIcon';
16
- import '../../index.module-11a3c51b.js';
16
+ import '../../index.module-461a89ca.js';
17
17
  import '../../../../tag/modern/mobile';
18
18
  import './Component.js';
19
19
  import '../../hooks/use-tabs.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { TabProps } from "../../typings";
4
- declare const Tab: React.ForwardRefExoticComponent<Omit<TabProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ declare const Tab: ({ children, hidden, className, disabled, dataTestId }: TabProps) => React.JSX.Element | null;
5
5
  export { Tab };
@@ -1,11 +1,11 @@
1
- import React, { forwardRef } from 'react';
1
+ import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
4
  const styles = {"component":"tabs__component_fie4e","hidden":"tabs__hidden_fie4e"};
5
5
  require('./index.css');
6
6
 
7
- const Tab = forwardRef(({ children, hidden, className, disabled, dataTestId }, ref) => children ? (React.createElement("div", { ref: ref, className: cn(styles.component, {
7
+ const Tab = ({ children, hidden, className, disabled, dataTestId }) => children ? (React.createElement("div", { className: cn(styles.component, {
8
8
  [styles.hidden]: hidden,
9
- }, className), hidden: hidden, role: 'tabpanel', tabIndex: disabled ? -1 : 0, "data-test-id": dataTestId }, children)) : null);
9
+ }, className), hidden: hidden, role: 'tabpanel', tabIndex: disabled ? -1 : 0, "data-test-id": dataTestId }, children)) : null;
10
10
 
11
11
  export { Tab };
@@ -11,7 +11,7 @@ import '@alfalab/hooks';
11
11
  import 'react-merge-refs';
12
12
  import '../../../../shared/modern';
13
13
  import '../title/Component.js';
14
- import '../../index.module-b0eb0617.js';
14
+ import '../../index.module-9b682de1.js';
15
15
  import '../../hooks/use-tablist-titles.js';
16
16
  import '../../hooks/use-collapsible-elements.js';
17
17
  import '../../hooks/use-tabs.js';
@@ -15,9 +15,9 @@ import 'lodash.debounce';
15
15
  import '../../../../icon-button/modern';
16
16
  import '@alfalab/icons-glyph/ChevronLeftMIcon';
17
17
  import '@alfalab/icons-glyph/ChevronRightMIcon';
18
- import '../../index.module-b0eb0617.js';
18
+ import '../../index.module-9b682de1.js';
19
19
  import '../../../../tag/modern/desktop';
20
- import '../../index.module-11a3c51b.js';
20
+ import '../../index.module-461a89ca.js';
21
21
  import '../primary-tablist/Component.js';
22
22
  import '../../hooks/use-tabs.js';
23
23
  import '../scroll-controls/utils.js';
@@ -2,7 +2,7 @@ import React, { cloneElement } from 'react';
2
2
 
3
3
  const Tabs = ({ TabList, className, containerClassName, size, defaultMatchMediaValue, children, selectedId, scrollable, collapsedTabsIds, fullWidthScroll = false, keepMounted = false, dataTestId, onChange, breakpoint = 1024, tagShape, tagView, }) => {
4
4
  const tabsArray = React.Children.toArray(children);
5
- const titles = tabsArray.map(({ props: { title, id, rightAddons, disabled, hidden, toggleClassName, dataTestId: toggleTestId, }, ref, }) => ({
5
+ const titles = tabsArray.map(({ props: { title, id, rightAddons, disabled, hidden, toggleClassName, dataTestId: toggleTestId, toggleRef, }, }) => ({
6
6
  title,
7
7
  id,
8
8
  disabled,
@@ -10,7 +10,7 @@ const Tabs = ({ TabList, className, containerClassName, size, defaultMatchMediaV
10
10
  hidden,
11
11
  toggleClassName,
12
12
  dataTestId: toggleTestId,
13
- ref,
13
+ toggleRef,
14
14
  }));
15
15
  const tabs = tabsArray.filter((tab) => tab.props.id === selectedId || tab.props.keepMounted || keepMounted);
16
16
  return (React.createElement("div", { className: className },
@@ -15,9 +15,9 @@ import 'lodash.debounce';
15
15
  import '../../../../icon-button/modern';
16
16
  import '@alfalab/icons-glyph/ChevronLeftMIcon';
17
17
  import '@alfalab/icons-glyph/ChevronRightMIcon';
18
- import '../../index.module-b0eb0617.js';
18
+ import '../../index.module-9b682de1.js';
19
19
  import '../../../../tag/modern/mobile';
20
- import '../../index.module-11a3c51b.js';
20
+ import '../../index.module-461a89ca.js';
21
21
  import '../primary-tablist/Component.js';
22
22
  import '../../hooks/use-tabs.js';
23
23
  import '../scroll-controls/utils.js';
@@ -16,10 +16,10 @@ import 'lodash.debounce';
16
16
  import '../../../../icon-button/modern';
17
17
  import '@alfalab/icons-glyph/ChevronLeftMIcon';
18
18
  import '@alfalab/icons-glyph/ChevronRightMIcon';
19
- import '../../index.module-b0eb0617.js';
19
+ import '../../index.module-9b682de1.js';
20
20
  import '../primary-tablist/Component.mobile.js';
21
21
  import '../../../../tag/modern/desktop';
22
- import '../../index.module-11a3c51b.js';
22
+ import '../../index.module-461a89ca.js';
23
23
  import '../secondary-tablist/Component.mobile.js';
24
24
  import '../../../../tag/modern/mobile';
25
25
  import '../primary-tablist/Component.desktop.js';
@@ -1,10 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
- import { ButtonHTMLAttributes } from "react";
4
3
  import { Styles, TabListTitle } from "../../typings";
5
- type Props = TabListTitle & Styles & Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'id'> & {
6
- focused?: boolean;
7
- isOption?: boolean;
8
- };
9
- declare const Title: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ declare const Title: React.ForwardRefExoticComponent<TabListTitle & Styles & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "id"> & {
5
+ focused?: boolean | undefined;
6
+ isOption?: boolean | undefined;
7
+ } & React.RefAttributes<HTMLButtonElement>>;
10
8
  export { Title };
@@ -16,9 +16,9 @@ import 'lodash.debounce';
16
16
  import '../../../icon-button/modern';
17
17
  import '@alfalab/icons-glyph/ChevronLeftMIcon';
18
18
  import '@alfalab/icons-glyph/ChevronRightMIcon';
19
- import '../index.module-b0eb0617.js';
19
+ import '../index.module-9b682de1.js';
20
20
  import '../../../tag/modern/desktop';
21
- import '../index.module-11a3c51b.js';
21
+ import '../index.module-461a89ca.js';
22
22
  import '../components/primary-tablist/Component.js';
23
23
  import '../hooks/use-tabs.js';
24
24
  import '../components/scroll-controls/utils.js';
@@ -13,7 +13,7 @@ declare const useTablistTitles: ({ titles, selectedId, collapsedTabsIds, breakpo
13
13
  hidden?: boolean | undefined;
14
14
  toggleClassName?: string | undefined;
15
15
  dataTestId?: string | undefined;
16
- ref?: import("react").Ref<HTMLDivElement> | undefined;
16
+ toggleRef?: import("react").Ref<HTMLDivElement> | undefined;
17
17
  }[];
18
18
  selectedTab: HTMLButtonElement | null;
19
19
  focusedTab: HTMLButtonElement | null;
@@ -78,8 +78,8 @@ function useTabs({ titles = [], selectedId, onChange }) {
78
78
  handleItemRef(node, item, index);
79
79
  },
80
80
  ];
81
- if (item.ref) {
82
- refs.push(item.ref);
81
+ if (item.toggleRef) {
82
+ refs.push(item.toggleRef);
83
83
  }
84
84
  return {
85
85
  role: 'tab',
@@ -17,10 +17,10 @@ import 'lodash.debounce';
17
17
  import '../../icon-button/modern';
18
18
  import '@alfalab/icons-glyph/ChevronLeftMIcon';
19
19
  import '@alfalab/icons-glyph/ChevronRightMIcon';
20
- import './index.module-b0eb0617.js';
20
+ import './index.module-9b682de1.js';
21
21
  import './components/primary-tablist/Component.mobile.js';
22
22
  import '../../tag/modern/desktop';
23
- import './index.module-11a3c51b.js';
23
+ import './index.module-461a89ca.js';
24
24
  import './components/secondary-tablist/Component.mobile.js';
25
25
  import '../../tag/modern/mobile';
26
26
  import './components/primary-tablist/Component.desktop.js';
@@ -16,9 +16,9 @@ import 'lodash.debounce';
16
16
  import '../../../icon-button/modern';
17
17
  import '@alfalab/icons-glyph/ChevronLeftMIcon';
18
18
  import '@alfalab/icons-glyph/ChevronRightMIcon';
19
- import '../index.module-b0eb0617.js';
19
+ import '../index.module-9b682de1.js';
20
20
  import '../../../tag/modern/mobile';
21
- import '../index.module-11a3c51b.js';
21
+ import '../index.module-461a89ca.js';
22
22
  import '../components/primary-tablist/Component.js';
23
23
  import '../hooks/use-tabs.js';
24
24
  import '../components/scroll-controls/utils.js';
@@ -1,4 +1,4 @@
1
- import { FC, FunctionComponentElement, MouseEvent, ReactNode, Ref } from 'react';
1
+ import { FC, MouseEvent, ReactElement, ReactNode, Ref } from 'react';
2
2
  import { TagProps } from "../../tag";
3
3
  type SelectedId = string | number;
4
4
  type TabsProps = {
@@ -49,7 +49,7 @@ type TabsProps = {
49
49
  /**
50
50
  * Компоненты табов
51
51
  */
52
- children: Array<FunctionComponentElement<TabProps>>;
52
+ children: Array<ReactElement<TabProps>>;
53
53
  /**
54
54
  * Компонент заголовков табов
55
55
  */
@@ -120,9 +120,9 @@ type TabProps = {
120
120
  */
121
121
  dataTestId?: string;
122
122
  /**
123
- * Реф на компонент таба
123
+ * Реф для кнопки переключения таба
124
124
  */
125
- ref?: Ref<HTMLDivElement>;
125
+ toggleRef?: Ref<HTMLDivElement>;
126
126
  };
127
127
  type TabListTitle = {
128
128
  title: string;
@@ -134,7 +134,7 @@ type TabListTitle = {
134
134
  selected?: boolean;
135
135
  collapsed?: boolean;
136
136
  dataTestId?: string;
137
- ref?: Ref<HTMLDivElement>;
137
+ toggleRef?: Ref<HTMLDivElement>;
138
138
  };
139
139
  type TabListProps = Pick<TabsProps, 'className' | 'containerClassName' | 'size' | 'defaultMatchMediaValue' | 'selectedId' | 'scrollable' | 'collapsedTabsIds' | 'onChange' | 'dataTestId' | 'fullWidthScroll' | 'tagShape' | 'tagView'> & {
140
140
  /**
package/tabs/typings.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FC, FunctionComponentElement, MouseEvent, ReactNode, Ref } from 'react';
1
+ import { FC, MouseEvent, ReactElement, ReactNode, Ref } from 'react';
2
2
  import { TagProps } from "../tag";
3
3
  type SelectedId = string | number;
4
4
  type TabsProps = {
@@ -49,7 +49,7 @@ type TabsProps = {
49
49
  /**
50
50
  * Компоненты табов
51
51
  */
52
- children: Array<FunctionComponentElement<TabProps>>;
52
+ children: Array<ReactElement<TabProps>>;
53
53
  /**
54
54
  * Компонент заголовков табов
55
55
  */
@@ -120,9 +120,9 @@ type TabProps = {
120
120
  */
121
121
  dataTestId?: string;
122
122
  /**
123
- * Реф на компонент таба
123
+ * Реф для кнопки переключения таба
124
124
  */
125
- ref?: Ref<HTMLDivElement>;
125
+ toggleRef?: Ref<HTMLDivElement>;
126
126
  };
127
127
  type TabListTitle = {
128
128
  title: string;
@@ -134,7 +134,7 @@ type TabListTitle = {
134
134
  selected?: boolean;
135
135
  collapsed?: boolean;
136
136
  dataTestId?: string;
137
- ref?: Ref<HTMLDivElement>;
137
+ toggleRef?: Ref<HTMLDivElement>;
138
138
  };
139
139
  type TabListProps = Pick<TabsProps, 'className' | 'containerClassName' | 'size' | 'defaultMatchMediaValue' | 'selectedId' | 'scrollable' | 'collapsedTabsIds' | 'onChange' | 'dataTestId' | 'fullWidthScroll' | 'tagShape' | 'tagView'> & {
140
140
  /**
@@ -1,4 +1,8 @@
1
- .badge__component_p8duf.badge__background-accent_p8duf {
1
+ .card-image__cardImage_1k8yn {
2
+ background: #e7e8ea;
3
+ } .card-image__loaded_1k8yn {
4
+ background: transparent
5
+ }.badge__component_p8duf.badge__background-accent_p8duf {
2
6
  background-color: #f83a2a;
3
7
  color: #fff;
4
8
  } .badge__component_p8duf.badge__background-specialbg-secondary-transparent_p8duf {
@@ -58,10 +62,6 @@
58
62
  background-color: #fff;
59
63
  } .badge__dot_p8duf.badge__outlineCount_p8duf {
60
64
  border: 1px solid #0e0e0e;
61
- }.card-image__cardImage_1k8yn {
62
- background: #e7e8ea;
63
- } .card-image__loaded_1k8yn {
64
- background: transparent
65
65
  }.backdrop__backdrop_14bwb {
66
66
  -webkit-tap-highlight-color: transparent;
67
67
  } .backdrop__appear_14bwb,
@@ -168,15 +168,7 @@
168
168
  background: #fff;
169
169
  } .hatching-progress-bar__accent_1wgx6 {
170
170
  background: #f83a2a;
171
- }.icon-view__component_177z0 {
172
- color: rgba(238, 238, 251, 0.55)
173
- } .icon-view__bg_177z0 {
174
- fill: #1c1c1e;
175
- } .icon-view__border_177z0 {
176
- stroke: rgba(225, 225, 248, 0.09);
177
- fill: transparent;
178
- } .icon-view__children_177z0 {
179
- }.indicator__component_1s4fn {
171
+ }.indicator__component_1s4fn {
180
172
  color: #fff;
181
173
  background-color: #f83a2a;
182
174
  } .indicator__red_1s4fn {
@@ -194,7 +186,15 @@
194
186
  color: #fff
195
187
  } .indicator__grey_1s4fn.indicator__border_1s4fn {
196
188
  outline: 2px solid #0e0e0e;
197
- }@keyframes loader__blink_19mvr {
189
+ }.icon-view__component_177z0 {
190
+ color: rgba(238, 238, 251, 0.55)
191
+ } .icon-view__bg_177z0 {
192
+ fill: #1c1c1e;
193
+ } .icon-view__border_177z0 {
194
+ stroke: rgba(225, 225, 248, 0.09);
195
+ fill: transparent;
196
+ } .icon-view__children_177z0 {
197
+ }@keyframes loader__blink_19mvr {
198
198
  }.link__primary_1gtu8 {
199
199
  color: #fff;
200
200
  border-bottom-color: #fff
@@ -264,7 +264,17 @@
264
264
  background: #fff;
265
265
  } .progress-bar__filled_uf3eh.progress-bar__accent_uf3eh {
266
266
  background: #f83a2a;
267
- }.skeleton__component_j6u5v {
267
+ }.scrollbar__component_1cqd8 .scrollbar:before {
268
+ background-color: rgba(228, 228, 251, 0.28);
269
+ } .scrollbar__component_1cqd8.dragging .track .scrollbar.visible:before {
270
+ background-color: rgba(238, 238, 254, 0.46);
271
+ }
272
+
273
+ .scrollbar__component_vrncm .scrollbar:before {
274
+ background-color: rgba(9, 12, 37, 0.28);
275
+ } .scrollbar__component_vrncm.dragging .track .scrollbar.visible:before {
276
+ background-color: rgba(4, 4, 21, 0.47);
277
+ }.skeleton__component_j6u5v {
268
278
  color: transparent;
269
279
  background: rgba(214, 214, 229, 0.07);
270
280
  } .skeleton__component_j6u5v:before {
@@ -286,17 +296,7 @@
286
296
  100% {
287
297
  background: rgb(198, 205, 214);
288
298
  }
289
- }.scrollbar__component_1cqd8 .scrollbar:before {
290
- background-color: rgba(228, 228, 251, 0.28);
291
- } .scrollbar__component_1cqd8.dragging .track .scrollbar.visible:before {
292
- background-color: rgba(238, 238, 254, 0.46);
293
- }
294
-
295
- .scrollbar__component_vrncm .scrollbar:before {
296
- background-color: rgba(9, 12, 37, 0.28);
297
- } .scrollbar__component_vrncm.dragging .track .scrollbar.visible:before {
298
- background-color: rgba(4, 4, 21, 0.47);
299
- }.segmented-control__wrapper_1kily {
299
+ }.segmented-control__wrapper_1kily {
300
300
  background-color: rgba(225, 225, 248, 0.09);
301
301
  } .segmented-control__segment_1kily.segmented-control__selected_1kily {
302
302
  color: #fff;