@alfalab/core-components-tabs 8.5.2 → 8.6.1

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 (184) hide show
  1. package/collapsible/index.js +0 -19
  2. package/components/primary-tablist/Component.collapsible.d.ts +1 -1
  3. package/components/primary-tablist/Component.collapsible.js +5 -12
  4. package/components/primary-tablist/Component.d.ts +1 -1
  5. package/components/primary-tablist/Component.desktop.js +1 -16
  6. package/components/primary-tablist/Component.js +4 -11
  7. package/components/primary-tablist/Component.mobile.d.ts +1 -1
  8. package/components/primary-tablist/Component.mobile.js +3 -22
  9. package/components/primary-tablist/Component.responsive.js +0 -17
  10. package/components/primary-tablist/index.css +288 -30
  11. package/components/primary-tablist/mobile.css +499 -33
  12. package/components/scroll-controls/Component.d.ts +1 -0
  13. package/components/scroll-controls/Component.js +7 -7
  14. package/components/scroll-controls/index.css +23 -26
  15. package/components/scroll-controls/index.js +0 -8
  16. package/components/scrollable-container/Component.d.ts +5 -1
  17. package/components/scrollable-container/Component.js +3 -9
  18. package/components/scrollable-container/index.css +6 -6
  19. package/components/scrollable-container/index.js +0 -10
  20. package/components/secondary-tablist/Component.desktop.js +1 -13
  21. package/components/secondary-tablist/Component.js +0 -9
  22. package/components/secondary-tablist/Component.mobile.js +2 -13
  23. package/components/secondary-tablist/Component.responsive.js +0 -16
  24. package/components/secondary-tablist/index.css +11 -11
  25. package/components/secondary-tablist/mobile.css +13 -13
  26. package/components/tab/Component.js +1 -1
  27. package/components/tab/index.css +3 -3
  28. package/components/tab/index.js +0 -2
  29. package/components/tabs/Component.collapsible.js +0 -15
  30. package/components/tabs/Component.d.ts +1 -1
  31. package/components/tabs/Component.desktop.js +0 -20
  32. package/components/tabs/Component.js +2 -2
  33. package/components/tabs/Component.mobile.js +0 -20
  34. package/components/tabs/Component.responsive.js +0 -26
  35. package/components/title/index.js +0 -3
  36. package/cssm/collapsible/index.js +0 -20
  37. package/cssm/components/primary-tablist/Component.collapsible.d.ts +1 -1
  38. package/cssm/components/primary-tablist/Component.collapsible.js +4 -11
  39. package/cssm/components/primary-tablist/Component.d.ts +1 -1
  40. package/cssm/components/primary-tablist/Component.desktop.js +0 -17
  41. package/cssm/components/primary-tablist/Component.js +4 -13
  42. package/cssm/components/primary-tablist/Component.mobile.d.ts +1 -1
  43. package/cssm/components/primary-tablist/Component.mobile.js +1 -22
  44. package/cssm/components/primary-tablist/Component.responsive.js +0 -20
  45. package/cssm/components/primary-tablist/index.module.css +259 -1
  46. package/cssm/components/primary-tablist/mobile.module.css +210 -0
  47. package/cssm/components/primary-tablist/text-styles.module.css +16 -0
  48. package/cssm/components/scroll-controls/Component.d.ts +1 -0
  49. package/cssm/components/scroll-controls/Component.js +6 -6
  50. package/cssm/components/scroll-controls/index.js +0 -9
  51. package/cssm/components/scroll-controls/index.module.css +12 -15
  52. package/cssm/components/scrollable-container/Component.d.ts +5 -1
  53. package/cssm/components/scrollable-container/Component.js +2 -9
  54. package/cssm/components/scrollable-container/index.js +0 -12
  55. package/cssm/components/secondary-tablist/Component.desktop.js +0 -14
  56. package/cssm/components/secondary-tablist/Component.js +0 -11
  57. package/cssm/components/secondary-tablist/Component.mobile.js +0 -13
  58. package/cssm/components/secondary-tablist/Component.responsive.js +0 -19
  59. package/cssm/components/tab/index.js +0 -3
  60. package/cssm/components/tabs/Component.collapsible.js +0 -15
  61. package/cssm/components/tabs/Component.d.ts +1 -1
  62. package/cssm/components/tabs/Component.desktop.js +0 -22
  63. package/cssm/components/tabs/Component.js +2 -2
  64. package/cssm/components/tabs/Component.mobile.js +0 -24
  65. package/cssm/components/tabs/Component.responsive.js +0 -30
  66. package/cssm/components/title/index.js +0 -3
  67. package/cssm/desktop/index.js +0 -26
  68. package/cssm/hooks/use-tablist-titles.js +0 -4
  69. package/cssm/index.js +0 -34
  70. package/cssm/mobile/index.js +0 -28
  71. package/cssm/shared/index.js +0 -16
  72. package/cssm/typings.d.ts +5 -1
  73. package/desktop/index.js +0 -23
  74. package/esm/collapsible/index.js +0 -19
  75. package/esm/components/primary-tablist/Component.collapsible.d.ts +1 -1
  76. package/esm/components/primary-tablist/Component.collapsible.js +5 -12
  77. package/esm/components/primary-tablist/Component.d.ts +1 -1
  78. package/esm/components/primary-tablist/Component.desktop.js +1 -16
  79. package/esm/components/primary-tablist/Component.js +4 -11
  80. package/esm/components/primary-tablist/Component.mobile.d.ts +1 -1
  81. package/esm/components/primary-tablist/Component.mobile.js +4 -22
  82. package/esm/components/primary-tablist/Component.responsive.js +0 -17
  83. package/esm/components/primary-tablist/index.css +288 -30
  84. package/esm/components/primary-tablist/mobile.css +499 -33
  85. package/esm/components/scroll-controls/Component.d.ts +1 -0
  86. package/esm/components/scroll-controls/Component.js +7 -7
  87. package/esm/components/scroll-controls/index.css +23 -26
  88. package/esm/components/scroll-controls/index.js +0 -8
  89. package/esm/components/scrollable-container/Component.d.ts +5 -1
  90. package/esm/components/scrollable-container/Component.js +3 -9
  91. package/esm/components/scrollable-container/index.css +6 -6
  92. package/esm/components/scrollable-container/index.js +0 -10
  93. package/esm/components/secondary-tablist/Component.desktop.js +1 -13
  94. package/esm/components/secondary-tablist/Component.js +0 -9
  95. package/esm/components/secondary-tablist/Component.mobile.js +2 -13
  96. package/esm/components/secondary-tablist/Component.responsive.js +0 -16
  97. package/esm/components/secondary-tablist/index.css +11 -11
  98. package/esm/components/secondary-tablist/mobile.css +13 -13
  99. package/esm/components/tab/Component.js +1 -1
  100. package/esm/components/tab/index.css +3 -3
  101. package/esm/components/tab/index.js +0 -2
  102. package/esm/components/tabs/Component.collapsible.js +0 -15
  103. package/esm/components/tabs/Component.d.ts +1 -1
  104. package/esm/components/tabs/Component.desktop.js +0 -20
  105. package/esm/components/tabs/Component.js +2 -2
  106. package/esm/components/tabs/Component.mobile.js +0 -20
  107. package/esm/components/tabs/Component.responsive.js +0 -26
  108. package/esm/components/title/index.js +0 -3
  109. package/esm/desktop/index.js +0 -23
  110. package/esm/hooks/use-tablist-titles.js +0 -4
  111. package/esm/index.js +0 -29
  112. package/esm/index.module-329bd113.js +4 -0
  113. package/esm/index.module-c2b4a565.js +4 -0
  114. package/esm/mobile/index.js +0 -23
  115. package/esm/shared/index.js +0 -14
  116. package/esm/typings.d.ts +5 -1
  117. package/hooks/use-tablist-titles.js +0 -4
  118. package/index.js +0 -29
  119. package/index.module-52123f08.js +6 -0
  120. package/index.module-b92170ea.js +6 -0
  121. package/mobile/index.js +0 -23
  122. package/modern/collapsible/index.js +0 -18
  123. package/modern/components/primary-tablist/Component.collapsible.d.ts +1 -1
  124. package/modern/components/primary-tablist/Component.collapsible.js +5 -12
  125. package/modern/components/primary-tablist/Component.d.ts +1 -1
  126. package/modern/components/primary-tablist/Component.desktop.js +1 -16
  127. package/modern/components/primary-tablist/Component.js +4 -11
  128. package/modern/components/primary-tablist/Component.mobile.d.ts +1 -1
  129. package/modern/components/primary-tablist/Component.mobile.js +3 -18
  130. package/modern/components/primary-tablist/Component.responsive.js +0 -17
  131. package/modern/components/primary-tablist/index.css +288 -30
  132. package/modern/components/primary-tablist/mobile.css +499 -33
  133. package/modern/components/scroll-controls/Component.d.ts +1 -0
  134. package/modern/components/scroll-controls/Component.js +7 -7
  135. package/modern/components/scroll-controls/index.css +23 -26
  136. package/modern/components/scroll-controls/index.js +0 -7
  137. package/modern/components/scrollable-container/Component.d.ts +5 -1
  138. package/modern/components/scrollable-container/Component.js +3 -8
  139. package/modern/components/scrollable-container/index.css +6 -6
  140. package/modern/components/scrollable-container/index.js +0 -9
  141. package/modern/components/secondary-tablist/Component.desktop.js +1 -13
  142. package/modern/components/secondary-tablist/Component.js +0 -9
  143. package/modern/components/secondary-tablist/Component.mobile.js +2 -13
  144. package/modern/components/secondary-tablist/Component.responsive.js +0 -16
  145. package/modern/components/secondary-tablist/index.css +11 -11
  146. package/modern/components/secondary-tablist/mobile.css +13 -13
  147. package/modern/components/tab/Component.js +1 -1
  148. package/modern/components/tab/index.css +3 -3
  149. package/modern/components/tab/index.js +0 -2
  150. package/modern/components/tabs/Component.collapsible.js +0 -15
  151. package/modern/components/tabs/Component.d.ts +1 -1
  152. package/modern/components/tabs/Component.desktop.js +0 -20
  153. package/modern/components/tabs/Component.js +2 -2
  154. package/modern/components/tabs/Component.mobile.js +0 -20
  155. package/modern/components/tabs/Component.responsive.js +0 -26
  156. package/modern/components/title/index.js +0 -2
  157. package/modern/desktop/index.js +0 -22
  158. package/modern/hooks/use-tablist-titles.js +0 -4
  159. package/modern/index.js +0 -28
  160. package/modern/index.module-45e29a3d.js +4 -0
  161. package/modern/index.module-e47d16c1.js +4 -0
  162. package/modern/mobile/index.js +0 -22
  163. package/modern/shared/index.js +0 -13
  164. package/modern/typings.d.ts +5 -1
  165. package/package.json +4 -4
  166. package/shared/index.js +0 -14
  167. package/src/components/primary-tablist/Component.collapsible.tsx +12 -3
  168. package/src/components/primary-tablist/Component.mobile.tsx +2 -8
  169. package/src/components/primary-tablist/Component.tsx +10 -3
  170. package/src/components/primary-tablist/index.module.css +6 -0
  171. package/src/components/primary-tablist/mobile.module.css +4 -0
  172. package/src/components/primary-tablist/text-styles.module.css +228 -0
  173. package/src/components/scroll-controls/Component.tsx +15 -8
  174. package/src/components/scroll-controls/index.module.css +12 -19
  175. package/src/components/scrollable-container/Component.tsx +7 -0
  176. package/src/components/tabs/Component.tsx +2 -0
  177. package/src/typings.ts +25 -0
  178. package/typings.d.ts +5 -1
  179. package/esm/index.module-1e961bec.js +0 -4
  180. package/esm/index.module-b07a0a20.js +0 -4
  181. package/index.module-6c875fed.js +0 -6
  182. package/index.module-dcd338c3.js +0 -6
  183. package/modern/index.module-11a3c51b.js +0 -4
  184. package/modern/index.module-b0eb0617.js +0 -4
@@ -2,14 +2,14 @@ import React, { forwardRef, useState, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import _debounce from 'lodash.debounce';
4
4
  import { IconButton } from '@alfalab/core-components-icon-button/modern';
5
- import { ChevronLeftMIcon } from '@alfalab/icons-glyph/ChevronLeftMIcon';
6
- import { ChevronRightMIcon } from '@alfalab/icons-glyph/ChevronRightMIcon';
5
+ import { ChevronLeftCompactSIcon } from '@alfalab/icons-glyph/ChevronLeftCompactSIcon';
6
+ import { ChevronRightCompactSIcon } from '@alfalab/icons-glyph/ChevronRightCompactSIcon';
7
7
  import { getDisabledState, scrollIntoFirstTab, scrollIntoLastTab } from './utils.js';
8
8
 
9
- const styles = {"component":"tabs__component_uh8ir","borderVisible":"tabs__borderVisible_uh8ir","primary":"tabs__primary_uh8ir","button":"tabs__button_uh8ir","xl":"tabs__xl_uh8ir","secondary":"tabs__secondary_uh8ir","xs":"tabs__xs_uh8ir"};
9
+ const styles = {"component":"tabs__component_12cok","primary":"tabs__primary_12cok","button":"tabs__button_12cok","xl":"tabs__xl_12cok","secondary":"tabs__secondary_12cok","xs":"tabs__xs_12cok","borderVisible":"tabs__borderVisible_12cok"};
10
10
  require('./index.css')
11
11
 
12
- const ScrollControls = forwardRef(({ containerRef, view, size: sizeProp }, ref) => {
12
+ const ScrollControls = forwardRef(({ containerRef, view, size: sizeProp, className }, ref) => {
13
13
  const container = containerRef.current;
14
14
  const [disabledState, updateDisabledState] = useState(() => getDisabledState(container));
15
15
  useEffect(() => {
@@ -30,11 +30,11 @@ const ScrollControls = forwardRef(({ containerRef, view, size: sizeProp }, ref)
30
30
  size: getSize(),
31
31
  view: 'secondary',
32
32
  };
33
- return (React.createElement("div", { ref: ref, className: cn(styles.component, styles[view], sizeProp && styles[sizeProp], {
33
+ return (React.createElement("div", { ref: ref, className: cn(styles.component, styles[view], sizeProp && styles[sizeProp], className, {
34
34
  [styles.borderVisible]: !disabledState.toRight,
35
35
  }) },
36
- React.createElement(IconButton, { ...commonButtonProps, icon: ChevronLeftMIcon, disabled: disabledState.toLeft, onClick: handleScrollLeft }),
37
- React.createElement(IconButton, { ...commonButtonProps, icon: ChevronRightMIcon, disabled: disabledState.toRight, onClick: handleScrollRight })));
36
+ React.createElement(IconButton, { ...commonButtonProps, icon: ChevronLeftCompactSIcon, disabled: disabledState.toLeft, onClick: handleScrollLeft }),
37
+ React.createElement(IconButton, { ...commonButtonProps, icon: ChevronRightCompactSIcon, disabled: disabledState.toRight, onClick: handleScrollRight })));
38
38
  });
39
39
 
40
40
  export { ScrollControls };
@@ -1,4 +1,4 @@
1
- /* hash: 12art */
1
+ /* hash: hq9h6 */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
@@ -44,25 +44,14 @@
44
44
  /* size l */
45
45
 
46
46
  /* size xl */
47
- } .tabs__component_uh8ir {
47
+ } .tabs__component_12cok {
48
48
  position: relative;
49
49
  display: flex;
50
- flex-shrink: 0
51
- } .tabs__component_uh8ir:before {
52
- content: '';
53
- display: block;
54
- position: absolute;
55
- top: 0;
56
- left: 0;
57
- width: 1px;
58
- background-color: transparent;
59
- transition: background-color 0.3s ease;
60
- } .tabs__borderVisible_uh8ir:before {
61
- background-color: var(--color-light-neutral-translucent-300);
62
- } .tabs__primary_uh8ir {
50
+ flex-shrink: 0;
51
+ } .tabs__primary_12cok {
63
52
  align-items: flex-start;
64
53
  justify-content: flex-end
65
- } .tabs__primary_uh8ir:after {
54
+ } .tabs__primary_12cok:after {
66
55
  content: '';
67
56
  display: block;
68
57
  position: absolute;
@@ -70,25 +59,33 @@
70
59
  height: 1px;
71
60
  width: 100%;
72
61
  background-color: var(--primary-tablist-bottom-border-color);
73
- } .tabs__primary_uh8ir:before {
74
- bottom: 2px;
75
- } .tabs__primary_uh8ir {
62
+ } .tabs__primary_12cok {
76
63
 
77
- .tabs__button_uh8ir:first-child {
64
+ .tabs__button_12cok:first-child {
78
65
  padding-left: var(--gap-xs);
79
66
  margin-right: var(--gap-xs);
80
67
  }
81
- } .tabs__primary_uh8ir.tabs__xl_uh8ir .tabs__button_uh8ir:first-child {
68
+ } .tabs__primary_12cok.tabs__xl_12cok .tabs__button_12cok:first-child {
82
69
  margin-right: var(--gap-2xs);
83
- } .tabs__secondary_uh8ir {
70
+ } .tabs__secondary_12cok {
84
71
  align-items: center;
85
72
  justify-content: center
86
- } .tabs__secondary_uh8ir:before {
73
+ } .tabs__secondary_12cok:before {
74
+ content: '';
75
+ display: block;
76
+ position: absolute;
77
+ top: 0;
78
+ left: 0;
79
+ width: 1px;
80
+ background-color: transparent;
81
+ transition: background-color 0.3s ease;
87
82
  bottom: 0;
88
- } .tabs__secondary_uh8ir.tabs__xs_uh8ir {
83
+ } .tabs__secondary_12cok.tabs__xs_12cok {
89
84
  width: 76px;
90
85
 
91
- .tabs__button_uh8ir:first-child {
86
+ .tabs__button_12cok:first-child {
92
87
  margin-right: var(--gap-2xs);
93
88
  }
94
- }
89
+ } .tabs__borderVisible_12cok:before {
90
+ background-color: var(--color-light-neutral-translucent-300);
91
+ }
@@ -1,8 +1 @@
1
1
  export { ScrollControls } from './Component.js';
2
- import 'react';
3
- import 'classnames';
4
- import 'lodash.debounce';
5
- import '@alfalab/core-components-icon-button/modern';
6
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
7
- import '@alfalab/icons-glyph/ChevronRightMIcon';
8
- import './utils.js';
@@ -11,6 +11,10 @@ type ScrollableContainerProps = {
11
11
  * Дополнительный класс контейнера
12
12
  */
13
13
  containerClassName?: string;
14
+ /**
15
+ * Дополнительный класс кнопок прокрутки
16
+ */
17
+ scrollControlsClassName?: string;
14
18
  /**
15
19
  * Дочерние компоненты
16
20
  */
@@ -28,5 +32,5 @@ type ScrollableContainerProps = {
28
32
  */
29
33
  size: TabsProps['size'];
30
34
  };
31
- declare const ScrollableContainer: ({ containerWrapperClassName, containerClassName, children, activeChild, fullWidthScroll, view, size, platform, }: ScrollableContainerProps & Pick<TabsProps, 'fullWidthScroll'> & PlatformProps) => React.JSX.Element;
35
+ declare const ScrollableContainer: ({ containerWrapperClassName, containerClassName, scrollControlsClassName, children, activeChild, fullWidthScroll, view, size, platform, }: ScrollableContainerProps & Pick<TabsProps, 'fullWidthScroll'> & PlatformProps) => React.JSX.Element;
32
36
  export { ScrollableContainerProps, ScrollableContainer };
@@ -2,13 +2,8 @@ import React, { useRef, useState, useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import { compute } from 'compute-scroll-into-view';
4
4
  import { ScrollControls } from '../scroll-controls/Component.js';
5
- import 'lodash.debounce';
6
- import '@alfalab/core-components-icon-button/modern';
7
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
8
- import '@alfalab/icons-glyph/ChevronRightMIcon';
9
- import '../scroll-controls/utils.js';
10
5
 
11
- const styles = {"scrollableContainerWrapper":"tabs__scrollableContainerWrapper_14qf1","container":"tabs__container_14qf1","fullWidthScroll":"tabs__fullWidthScroll_14qf1"};
6
+ const styles = {"scrollableContainerWrapper":"tabs__scrollableContainerWrapper_umnae","container":"tabs__container_umnae","fullWidthScroll":"tabs__fullWidthScroll_umnae"};
12
7
  require('./index.css')
13
8
 
14
9
  /**
@@ -19,7 +14,7 @@ const isOverflown = ({ clientWidth, scrollWidth }, controlsNode) => {
19
14
  const controlsWidth = controlsNode?.offsetWidth || 0;
20
15
  return scrollWidth > clientWidth + controlsWidth;
21
16
  };
22
- const ScrollableContainer = ({ containerWrapperClassName, containerClassName, children, activeChild, fullWidthScroll, view, size, platform, }) => {
17
+ const ScrollableContainer = ({ containerWrapperClassName, containerClassName, scrollControlsClassName, children, activeChild, fullWidthScroll, view, size, platform, }) => {
23
18
  const containerRef = useRef(null);
24
19
  const controlsRef = useRef(null);
25
20
  const [overflown, setOverflown] = useState(false);
@@ -64,7 +59,7 @@ const ScrollableContainer = ({ containerWrapperClassName, containerClassName, ch
64
59
  React.createElement("div", { ref: containerRef, className: cn(styles.container, containerClassName, {
65
60
  [styles.fullWidthScroll]: fullWidthScroll,
66
61
  }) }, children),
67
- overflown && platform === 'desktop' ? (React.createElement(ScrollControls, { ref: controlsRef, containerRef: containerRef, view: view, size: size })) : null));
62
+ overflown && platform === 'desktop' ? (React.createElement(ScrollControls, { className: scrollControlsClassName, ref: controlsRef, containerRef: containerRef, view: view, size: size })) : null));
68
63
  };
69
64
 
70
65
  export { ScrollableContainer };
@@ -1,4 +1,4 @@
1
- /* hash: 14rxa */
1
+ /* hash: h49bt */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -42,9 +42,9 @@
42
42
  /* size l */
43
43
 
44
44
  /* size xl */
45
- } .tabs__scrollableContainerWrapper_14qf1 {
45
+ } .tabs__scrollableContainerWrapper_umnae {
46
46
  display: flex;
47
- } .tabs__container_14qf1 {
47
+ } .tabs__container_umnae {
48
48
  position: relative;
49
49
  overflow-x: auto;
50
50
  overflow-y: hidden;
@@ -55,11 +55,11 @@
55
55
  /* focus-outline fix */
56
56
  margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
57
57
  padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs)
58
- } .tabs__container_14qf1::-webkit-scrollbar {
58
+ } .tabs__container_umnae::-webkit-scrollbar {
59
59
  display: none;
60
- } .tabs__container_14qf1 > * {
60
+ } .tabs__container_umnae > * {
61
61
  flex-shrink: 0;
62
- } .tabs__fullWidthScroll_14qf1 {
62
+ } .tabs__fullWidthScroll_umnae {
63
63
  padding-left: 0;
64
64
  margin: var(--gap-2xs-neg) var(--gap-m-neg);
65
65
  }
@@ -1,10 +1 @@
1
1
  export { ScrollableContainer } from './Component.js';
2
- import 'react';
3
- import 'classnames';
4
- import 'compute-scroll-into-view';
5
- import '../scroll-controls/Component.js';
6
- import 'lodash.debounce';
7
- import '@alfalab/core-components-icon-button/modern';
8
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
9
- import '@alfalab/icons-glyph/ChevronRightMIcon';
10
- import '../scroll-controls/utils.js';
@@ -1,19 +1,7 @@
1
1
  import React from 'react';
2
2
  import { TagDesktop } from '@alfalab/core-components-tag/modern/desktop';
3
3
  import { SecondaryTabList } from './Component.js';
4
- import { c as commonStyles } from '../../index.module-11a3c51b.js';
5
- import 'classnames';
6
- import '../../hooks/use-tabs.js';
7
- import 'react-merge-refs';
8
- import '@alfalab/core-components-shared/modern';
9
- import '../scrollable-container/Component.js';
10
- import 'compute-scroll-into-view';
11
- import '../scroll-controls/Component.js';
12
- import 'lodash.debounce';
13
- import '@alfalab/core-components-icon-button/modern';
14
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
15
- import '@alfalab/icons-glyph/ChevronRightMIcon';
16
- import '../scroll-controls/utils.js';
4
+ import { c as commonStyles } from '../../index.module-e47d16c1.js';
17
5
 
18
6
  const SecondaryTabListDesktop = ({ size = 's', ...restProps }) => (React.createElement(SecondaryTabList, { ...restProps, TagComponent: TagDesktop, size: size, styles: commonStyles, tagSize: size, platform: 'desktop' }));
19
7
 
@@ -2,15 +2,6 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { useTabs } from '../../hooks/use-tabs.js';
4
4
  import { ScrollableContainer } from '../scrollable-container/Component.js';
5
- import 'react-merge-refs';
6
- import '@alfalab/core-components-shared/modern';
7
- import 'compute-scroll-into-view';
8
- import '../scroll-controls/Component.js';
9
- import 'lodash.debounce';
10
- import '@alfalab/core-components-icon-button/modern';
11
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
12
- import '@alfalab/icons-glyph/ChevronRightMIcon';
13
- import '../scroll-controls/utils.js';
14
5
 
15
6
  const SecondaryTabList = ({ styles = {}, className, containerClassName, size, titles = [], selectedId = titles.length ? titles[0].id : undefined, scrollable = true, fullWidthScroll, tagSize = 'xs', onChange, dataTestId, TagComponent, platform, tagShape, tagView, }) => {
16
7
  const { focusedTab, selectedTab, getTabListItemProps } = useTabs({
@@ -2,20 +2,9 @@ import React from 'react';
2
2
  import cn from 'classnames';
3
3
  import { TagMobile } from '@alfalab/core-components-tag/modern/mobile';
4
4
  import { SecondaryTabList } from './Component.js';
5
- import { c as commonStyles } from '../../index.module-11a3c51b.js';
6
- import '../../hooks/use-tabs.js';
7
- import 'react-merge-refs';
8
- import '@alfalab/core-components-shared/modern';
9
- import '../scrollable-container/Component.js';
10
- import 'compute-scroll-into-view';
11
- import '../scroll-controls/Component.js';
12
- import 'lodash.debounce';
13
- import '@alfalab/core-components-icon-button/modern';
14
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
15
- import '@alfalab/icons-glyph/ChevronRightMIcon';
16
- import '../scroll-controls/utils.js';
5
+ import { c as commonStyles } from '../../index.module-e47d16c1.js';
17
6
 
18
- const mobileStyles = {"title":"tabs__title_1kd50 tabs__title_1du2s","mobile":"tabs__mobile_1kd50"};
7
+ const mobileStyles = {"title":"tabs__title_17q83 tabs__title_tu2e9","mobile":"tabs__mobile_17q83"};
19
8
  require('./mobile.css')
20
9
 
21
10
  const styles = {
@@ -2,22 +2,6 @@ import React from 'react';
2
2
  import { useMatchMedia } from '@alfalab/core-components-mq/modern';
3
3
  import { SecondaryTabListDesktop } from './Component.desktop.js';
4
4
  import { SecondaryTabListMobile } from './Component.mobile.js';
5
- import '@alfalab/core-components-tag/modern/desktop';
6
- import './Component.js';
7
- import 'classnames';
8
- import '../../hooks/use-tabs.js';
9
- import 'react-merge-refs';
10
- import '@alfalab/core-components-shared/modern';
11
- import '../scrollable-container/Component.js';
12
- import 'compute-scroll-into-view';
13
- import '../scroll-controls/Component.js';
14
- import 'lodash.debounce';
15
- import '@alfalab/core-components-icon-button/modern';
16
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
17
- import '@alfalab/icons-glyph/ChevronRightMIcon';
18
- import '../scroll-controls/utils.js';
19
- import '../../index.module-11a3c51b.js';
20
- import '@alfalab/core-components-tag/modern/mobile';
21
5
 
22
6
  const SecondaryTabListResponsive = ({ defaultMatchMediaValue, fullWidthScroll, breakpoint = 1024, ...restProps }) => {
23
7
  const [isDesktop] = useMatchMedia(`(min-width: ${breakpoint}px)`, defaultMatchMediaValue);
@@ -1,4 +1,4 @@
1
- /* hash: qf899 */
1
+ /* hash: 8y8a1 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -50,29 +50,29 @@
50
50
 
51
51
  /* size xl */
52
52
  --secondary-tablist-xl-gaps: var(--gap-m);
53
- } .tabs__component_1du2s {
53
+ } .tabs__component_tu2e9 {
54
54
  position: relative;
55
55
  display: inline-flex;
56
- } .tabs__fullWidthScroll_1du2s {
56
+ } .tabs__fullWidthScroll_tu2e9 {
57
57
  margin: 0 var(--gap-m);
58
- } .tabs__container_1du2s {
58
+ } .tabs__container_tu2e9 {
59
59
  overflow: hidden;
60
60
 
61
61
  /* focus-outline fix */
62
62
  margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
63
63
  padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
64
- } .tabs__title_1du2s {
64
+ } .tabs__title_tu2e9 {
65
65
  white-space: nowrap;
66
- } /* sizes */ .tabs__xxs_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
66
+ } /* sizes */ .tabs__xxs_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
67
67
  margin-left: var(--secondary-tablist-xxs-gaps);
68
- } .tabs__xs_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
68
+ } .tabs__xs_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
69
69
  margin-left: var(--secondary-tablist-xs-gaps);
70
- } .tabs__s_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
70
+ } .tabs__s_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
71
71
  margin-left: var(--secondary-tablist-s-gaps);
72
- } .tabs__m_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
72
+ } .tabs__m_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
73
73
  margin-left: var(--secondary-tablist-m-gaps);
74
- } .tabs__l_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
74
+ } .tabs__l_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
75
75
  margin-left: var(--secondary-tablist-l-gaps);
76
- } .tabs__xl_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
76
+ } .tabs__xl_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
77
77
  margin-left: var(--secondary-tablist-xl-gaps);
78
78
  }
@@ -1,4 +1,4 @@
1
- /* hash: 19flh */
1
+ /* hash: 1hg1x */
2
2
  :root {
3
3
  }/* deprecated */:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  }:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -51,30 +51,30 @@
51
51
 
52
52
  /* size xl */
53
53
  --secondary-tablist-xl-gaps: var(--gap-m);
54
- }.tabs__component_1du2s {
54
+ }.tabs__component_tu2e9 {
55
55
  position: relative;
56
56
  display: inline-flex;
57
- }.tabs__fullWidthScroll_1du2s {
57
+ }.tabs__fullWidthScroll_tu2e9 {
58
58
  margin: 0 var(--gap-m);
59
- }.tabs__container_1du2s {
59
+ }.tabs__container_tu2e9 {
60
60
  overflow: hidden;
61
61
 
62
62
  /* focus-outline fix */
63
63
  margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
64
64
  padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
65
- }.tabs__title_1du2s {
65
+ }.tabs__title_tu2e9 {
66
66
  white-space: nowrap;
67
- }/* sizes */.tabs__xxs_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
67
+ }/* sizes */.tabs__xxs_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
68
68
  margin-left: var(--secondary-tablist-xxs-gaps);
69
- }.tabs__xs_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
69
+ }.tabs__xs_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
70
70
  margin-left: var(--secondary-tablist-xs-gaps);
71
- }.tabs__s_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
71
+ }.tabs__s_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
72
72
  margin-left: var(--secondary-tablist-s-gaps);
73
- }.tabs__m_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
73
+ }.tabs__m_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
74
74
  margin-left: var(--secondary-tablist-m-gaps);
75
- }.tabs__l_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
75
+ }.tabs__l_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
76
76
  margin-left: var(--secondary-tablist-l-gaps);
77
- }.tabs__xl_1du2s .tabs__title_1du2s + .tabs__title_1du2s {
77
+ }.tabs__xl_tu2e9 .tabs__title_tu2e9 + .tabs__title_tu2e9 {
78
78
  margin-left: var(--secondary-tablist-xl-gaps);
79
79
  } :root {
80
80
  --color-dark-indigo: #0b1f35;
@@ -1637,7 +1637,7 @@
1637
1637
 
1638
1638
  /* size xl */
1639
1639
  --secondary-tablist-xl-gaps: var(--gap-m);
1640
- } .tabs__title_1kd50 {
1641
- } .tabs__mobile_1kd50 .tabs__title_1kd50 + .tabs__title_1kd50 {
1640
+ } .tabs__title_17q83 {
1641
+ } .tabs__mobile_17q83 .tabs__title_17q83 + .tabs__title_17q83 {
1642
1642
  margin-left: var(--secondary-tablist-mobile-gaps);
1643
1643
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- const styles = {"component":"tabs__component_fie4e","hidden":"tabs__hidden_fie4e"};
4
+ const styles = {"component":"tabs__component_9y627","hidden":"tabs__hidden_9y627"};
5
5
  require('./index.css')
6
6
 
7
7
  const Tab = ({ children, hidden, className, disabled, dataTestId }) => children ? (React.createElement("div", { className: cn(styles.component, {
@@ -1,8 +1,8 @@
1
- /* hash: 1rzgq */
2
- .tabs__component_fie4e {
1
+ /* hash: 1jz09 */
2
+ .tabs__component_9y627 {
3
3
  outline: none;
4
4
  }
5
5
 
6
- .tabs__hidden_fie4e {
6
+ .tabs__hidden_9y627 {
7
7
  display: none;
8
8
  }
@@ -1,3 +1 @@
1
1
  export { Tab } from './Component.js';
2
- import 'react';
3
- import 'classnames';
@@ -1,21 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CollapsiblePrimaryTabList } from '../primary-tablist/Component.collapsible.js';
3
3
  import { Tabs } from './Component.js';
4
- import 'classnames';
5
- import '@alfalab/core-components-badge/modern';
6
- import '@alfalab/core-components-keyboard-focusable/modern';
7
- import '@alfalab/core-components-picker-button/modern/desktop';
8
- import '../../hooks/use-tablist-titles.js';
9
- import '@alfalab/core-components-mq/modern';
10
- import '../../hooks/use-collapsible-elements.js';
11
- import '@juggle/resize-observer';
12
- import '@alfalab/hooks';
13
- import '../../hooks/use-tabs.js';
14
- import 'react-merge-refs';
15
- import '@alfalab/core-components-shared/modern';
16
- import '../../synthetic-events.js';
17
- import '../title/Component.js';
18
- import '../../index.module-b0eb0617.js';
19
4
 
20
5
  const TabsCollapsible = ({ ...restProps }) => (React.createElement(Tabs, { TabList: CollapsiblePrimaryTabList, ...restProps }));
21
6
 
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { TabsProps } from "../../typings";
4
- declare const Tabs: ({ TabList, className, containerClassName, size, defaultMatchMediaValue, children, selectedId, scrollable, collapsedTabsIds, fullWidthScroll, keepMounted, dataTestId, onChange, breakpoint, tagShape, tagView, }: Omit<TabsProps, 'view'>) => React.JSX.Element;
4
+ declare const Tabs: ({ TabList, className, containerClassName, size, defaultMatchMediaValue, children, selectedId, scrollable, collapsedTabsIds, fullWidthScroll, keepMounted, dataTestId, onChange, breakpoint, tagShape, tagView, textStyle, }: Omit<TabsProps, 'view'>) => React.JSX.Element;
5
5
  export { Tabs };
@@ -2,26 +2,6 @@ import React from 'react';
2
2
  import { PrimaryTabListDesktop } from '../primary-tablist/Component.desktop.js';
3
3
  import { SecondaryTabListDesktop } from '../secondary-tablist/Component.desktop.js';
4
4
  import { Tabs } from './Component.js';
5
- import '../primary-tablist/Component.js';
6
- import '@juggle/resize-observer';
7
- import 'classnames';
8
- import '@alfalab/core-components-keyboard-focusable/modern';
9
- import '@alfalab/core-components-shared/modern';
10
- import '../../hooks/use-tabs.js';
11
- import 'react-merge-refs';
12
- import '../scrollable-container/Component.js';
13
- import 'compute-scroll-into-view';
14
- import '../scroll-controls/Component.js';
15
- import 'lodash.debounce';
16
- import '@alfalab/core-components-icon-button/modern';
17
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
18
- import '@alfalab/icons-glyph/ChevronRightMIcon';
19
- import '../scroll-controls/utils.js';
20
- import '../title/Component.js';
21
- import '../../index.module-b0eb0617.js';
22
- import '@alfalab/core-components-tag/modern/desktop';
23
- import '../secondary-tablist/Component.js';
24
- import '../../index.module-11a3c51b.js';
25
5
 
26
6
  const views = {
27
7
  primary: PrimaryTabListDesktop,
@@ -1,6 +1,6 @@
1
1
  import React, { cloneElement } from 'react';
2
2
 
3
- const Tabs = ({ TabList, className, containerClassName, size, defaultMatchMediaValue, children, selectedId, scrollable, collapsedTabsIds, fullWidthScroll = false, keepMounted = false, dataTestId, onChange, breakpoint = 1024, tagShape, tagView, }) => {
3
+ const Tabs = ({ TabList, className, containerClassName, size, defaultMatchMediaValue, children, selectedId, scrollable, collapsedTabsIds, fullWidthScroll = false, keepMounted = false, dataTestId, onChange, breakpoint = 1024, tagShape, tagView, textStyle, }) => {
4
4
  const tabsArray = React.Children.toArray(children);
5
5
  const titles = tabsArray.map(({ props: { title, id, rightAddons, disabled, hidden, toggleClassName, dataTestId: toggleTestId, toggleRef, }, }) => ({
6
6
  title,
@@ -14,7 +14,7 @@ const Tabs = ({ TabList, className, containerClassName, size, defaultMatchMediaV
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 },
17
- React.createElement(TabList, { containerClassName: containerClassName, size: size, titles: titles, selectedId: selectedId, scrollable: scrollable, collapsedTabsIds: collapsedTabsIds, onChange: onChange, dataTestId: dataTestId, defaultMatchMediaValue: defaultMatchMediaValue, fullWidthScroll: fullWidthScroll, breakpoint: breakpoint, tagShape: tagShape, tagView: tagView }),
17
+ React.createElement(TabList, { containerClassName: containerClassName, size: size, titles: titles, selectedId: selectedId, scrollable: scrollable, collapsedTabsIds: collapsedTabsIds, onChange: onChange, dataTestId: dataTestId, defaultMatchMediaValue: defaultMatchMediaValue, fullWidthScroll: fullWidthScroll, breakpoint: breakpoint, tagShape: tagShape, tagView: tagView, textStyle: textStyle }),
18
18
  tabs.map((tab) => cloneElement(tab, { hidden: tab.props.id !== selectedId }))));
19
19
  };
20
20
 
@@ -2,26 +2,6 @@ import React from 'react';
2
2
  import { PrimaryTabListMobile } from '../primary-tablist/Component.mobile.js';
3
3
  import { SecondaryTabListMobile } from '../secondary-tablist/Component.mobile.js';
4
4
  import { Tabs } from './Component.js';
5
- import 'classnames';
6
- import '../primary-tablist/Component.js';
7
- import '@juggle/resize-observer';
8
- import '@alfalab/core-components-keyboard-focusable/modern';
9
- import '@alfalab/core-components-shared/modern';
10
- import '../../hooks/use-tabs.js';
11
- import 'react-merge-refs';
12
- import '../scrollable-container/Component.js';
13
- import 'compute-scroll-into-view';
14
- import '../scroll-controls/Component.js';
15
- import 'lodash.debounce';
16
- import '@alfalab/core-components-icon-button/modern';
17
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
18
- import '@alfalab/icons-glyph/ChevronRightMIcon';
19
- import '../scroll-controls/utils.js';
20
- import '../title/Component.js';
21
- import '../../index.module-b0eb0617.js';
22
- import '@alfalab/core-components-tag/modern/mobile';
23
- import '../secondary-tablist/Component.js';
24
- import '../../index.module-11a3c51b.js';
25
5
 
26
6
  const views = {
27
7
  primary: PrimaryTabListMobile,
@@ -2,32 +2,6 @@ import React from 'react';
2
2
  import { PrimaryTabListResponsive } from '../primary-tablist/Component.responsive.js';
3
3
  import { SecondaryTabListResponsive } from '../secondary-tablist/Component.responsive.js';
4
4
  import { Tabs } from './Component.js';
5
- import '@alfalab/core-components-mq/modern';
6
- import '../primary-tablist/Component.desktop.js';
7
- import '../primary-tablist/Component.js';
8
- import '@juggle/resize-observer';
9
- import 'classnames';
10
- import '@alfalab/core-components-keyboard-focusable/modern';
11
- import '@alfalab/core-components-shared/modern';
12
- import '../../hooks/use-tabs.js';
13
- import 'react-merge-refs';
14
- import '../scrollable-container/Component.js';
15
- import 'compute-scroll-into-view';
16
- import '../scroll-controls/Component.js';
17
- import 'lodash.debounce';
18
- import '@alfalab/core-components-icon-button/modern';
19
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
20
- import '@alfalab/icons-glyph/ChevronRightMIcon';
21
- import '../scroll-controls/utils.js';
22
- import '../title/Component.js';
23
- import '../../index.module-b0eb0617.js';
24
- import '../primary-tablist/Component.mobile.js';
25
- import '../secondary-tablist/Component.desktop.js';
26
- import '@alfalab/core-components-tag/modern/desktop';
27
- import '../secondary-tablist/Component.js';
28
- import '../../index.module-11a3c51b.js';
29
- import '../secondary-tablist/Component.mobile.js';
30
- import '@alfalab/core-components-tag/modern/mobile';
31
5
 
32
6
  const views = {
33
7
  primary: PrimaryTabListResponsive,
@@ -1,3 +1 @@
1
1
  export { Title } from './Component.js';
2
- import 'react';
3
- import 'classnames';
@@ -2,25 +2,3 @@ export { PrimaryTabListDesktop } from '../components/primary-tablist/Component.d
2
2
  export { SecondaryTabListDesktop } from '../components/secondary-tablist/Component.desktop.js';
3
3
  export { Tab } from '../components/tab/Component.js';
4
4
  export { TabsDesktop } from '../components/tabs/Component.desktop.js';
5
- import 'react';
6
- import '../components/primary-tablist/Component.js';
7
- import '@juggle/resize-observer';
8
- import 'classnames';
9
- import '@alfalab/core-components-keyboard-focusable/modern';
10
- import '@alfalab/core-components-shared/modern';
11
- import '../hooks/use-tabs.js';
12
- import 'react-merge-refs';
13
- import '../components/scrollable-container/Component.js';
14
- import 'compute-scroll-into-view';
15
- import '../components/scroll-controls/Component.js';
16
- import 'lodash.debounce';
17
- import '@alfalab/core-components-icon-button/modern';
18
- import '@alfalab/icons-glyph/ChevronLeftMIcon';
19
- import '@alfalab/icons-glyph/ChevronRightMIcon';
20
- import '../components/scroll-controls/utils.js';
21
- import '../components/title/Component.js';
22
- import '../index.module-b0eb0617.js';
23
- import '@alfalab/core-components-tag/modern/desktop';
24
- import '../components/secondary-tablist/Component.js';
25
- import '../index.module-11a3c51b.js';
26
- import '../components/tabs/Component.js';
@@ -2,10 +2,6 @@ import { useMemo } from 'react';
2
2
  import { useMatchMedia } from '@alfalab/core-components-mq/modern';
3
3
  import { useCollapsibleElements } from './use-collapsible-elements.js';
4
4
  import { useTabs } from './use-tabs.js';
5
- import '@juggle/resize-observer';
6
- import '@alfalab/hooks';
7
- import 'react-merge-refs';
8
- import '@alfalab/core-components-shared/modern';
9
5
 
10
6
  const useTablistTitles = ({ titles = [], selectedId, collapsedTabsIds, breakpoint, onChange, defaultMatchMediaValue, }) => {
11
7
  const { containerRef, addonRef, idsCollapsedElements } = useCollapsibleElements('[role=tab]', [titles, collapsedTabsIds]);