@alfalab/core-components-tabs 8.5.0 → 8.5.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 (144) hide show
  1. package/collapsible/index.js +2 -1
  2. package/components/primary-tablist/Component.collapsible.js +6 -4
  3. package/components/primary-tablist/Component.desktop.js +2 -1
  4. package/components/primary-tablist/Component.js +2 -1
  5. package/components/primary-tablist/Component.mobile.js +3 -2
  6. package/components/primary-tablist/Component.responsive.js +2 -1
  7. package/components/primary-tablist/index.css +30 -30
  8. package/components/primary-tablist/mobile.css +33 -33
  9. package/components/scroll-controls/Component.js +1 -1
  10. package/components/scroll-controls/index.css +14 -14
  11. package/components/scrollable-container/Component.js +1 -1
  12. package/components/scrollable-container/index.css +6 -6
  13. package/components/secondary-tablist/Component.desktop.js +2 -1
  14. package/components/secondary-tablist/Component.js +1 -0
  15. package/components/secondary-tablist/Component.mobile.js +3 -2
  16. package/components/secondary-tablist/Component.responsive.js +2 -1
  17. package/components/secondary-tablist/index.css +11 -11
  18. package/components/secondary-tablist/mobile.css +13 -13
  19. package/components/tab/Component.js +1 -1
  20. package/components/tab/index.css +3 -3
  21. package/components/tabs/Component.collapsible.js +2 -1
  22. package/components/tabs/Component.desktop.js +3 -2
  23. package/components/tabs/Component.js +2 -1
  24. package/components/tabs/Component.mobile.js +3 -2
  25. package/components/tabs/Component.responsive.js +3 -2
  26. package/cssm/collapsible/index.js +1 -0
  27. package/cssm/components/primary-tablist/Component.collapsible.js +5 -3
  28. package/cssm/components/primary-tablist/Component.desktop.js +1 -0
  29. package/cssm/components/primary-tablist/Component.js +2 -1
  30. package/cssm/components/primary-tablist/Component.mobile.js +1 -0
  31. package/cssm/components/primary-tablist/Component.responsive.js +1 -0
  32. package/cssm/components/secondary-tablist/Component.desktop.js +1 -0
  33. package/cssm/components/secondary-tablist/Component.js +1 -0
  34. package/cssm/components/secondary-tablist/Component.mobile.js +1 -0
  35. package/cssm/components/secondary-tablist/Component.responsive.js +1 -0
  36. package/cssm/components/tabs/Component.collapsible.js +1 -0
  37. package/cssm/components/tabs/Component.desktop.js +1 -0
  38. package/cssm/components/tabs/Component.js +2 -1
  39. package/cssm/components/tabs/Component.mobile.js +1 -0
  40. package/cssm/components/tabs/Component.responsive.js +1 -0
  41. package/cssm/desktop/index.js +1 -0
  42. package/cssm/hooks/use-tablist-titles.d.ts +2 -1
  43. package/cssm/hooks/use-tablist-titles.js +1 -0
  44. package/cssm/hooks/use-tabs.d.ts +2 -1
  45. package/cssm/hooks/use-tabs.js +17 -6
  46. package/cssm/index.js +1 -0
  47. package/cssm/mobile/index.js +1 -0
  48. package/cssm/shared/index.js +1 -0
  49. package/cssm/typings.d.ts +6 -1
  50. package/desktop/index.js +3 -2
  51. package/esm/collapsible/index.js +2 -1
  52. package/esm/components/primary-tablist/Component.collapsible.js +7 -5
  53. package/esm/components/primary-tablist/Component.desktop.js +2 -1
  54. package/esm/components/primary-tablist/Component.js +2 -1
  55. package/esm/components/primary-tablist/Component.mobile.js +3 -2
  56. package/esm/components/primary-tablist/Component.responsive.js +2 -1
  57. package/esm/components/primary-tablist/index.css +30 -30
  58. package/esm/components/primary-tablist/mobile.css +33 -33
  59. package/esm/components/scroll-controls/Component.js +1 -1
  60. package/esm/components/scroll-controls/index.css +14 -14
  61. package/esm/components/scrollable-container/Component.js +1 -1
  62. package/esm/components/scrollable-container/index.css +6 -6
  63. package/esm/components/secondary-tablist/Component.desktop.js +2 -1
  64. package/esm/components/secondary-tablist/Component.js +1 -0
  65. package/esm/components/secondary-tablist/Component.mobile.js +3 -2
  66. package/esm/components/secondary-tablist/Component.responsive.js +2 -1
  67. package/esm/components/secondary-tablist/index.css +11 -11
  68. package/esm/components/secondary-tablist/mobile.css +13 -13
  69. package/esm/components/tab/Component.js +1 -1
  70. package/esm/components/tab/index.css +3 -3
  71. package/esm/components/tabs/Component.collapsible.js +2 -1
  72. package/esm/components/tabs/Component.desktop.js +3 -2
  73. package/esm/components/tabs/Component.js +2 -1
  74. package/esm/components/tabs/Component.mobile.js +3 -2
  75. package/esm/components/tabs/Component.responsive.js +3 -2
  76. package/esm/desktop/index.js +3 -2
  77. package/esm/hooks/use-tablist-titles.d.ts +2 -1
  78. package/esm/hooks/use-tablist-titles.js +1 -0
  79. package/esm/hooks/use-tabs.d.ts +2 -1
  80. package/esm/hooks/use-tabs.js +13 -6
  81. package/esm/index.js +3 -2
  82. package/esm/index.module-1e961bec.js +4 -0
  83. package/esm/index.module-b07a0a20.js +4 -0
  84. package/esm/mobile/index.js +3 -2
  85. package/esm/shared/index.js +1 -0
  86. package/esm/typings.d.ts +6 -1
  87. package/hooks/use-tablist-titles.d.ts +2 -1
  88. package/hooks/use-tablist-titles.js +1 -0
  89. package/hooks/use-tabs.d.ts +2 -1
  90. package/hooks/use-tabs.js +17 -6
  91. package/index.js +3 -2
  92. package/index.module-6c875fed.js +6 -0
  93. package/index.module-dcd338c3.js +6 -0
  94. package/mobile/index.js +3 -2
  95. package/modern/collapsible/index.js +2 -1
  96. package/modern/components/primary-tablist/Component.collapsible.js +5 -4
  97. package/modern/components/primary-tablist/Component.desktop.js +2 -1
  98. package/modern/components/primary-tablist/Component.js +2 -1
  99. package/modern/components/primary-tablist/Component.mobile.js +3 -2
  100. package/modern/components/primary-tablist/Component.responsive.js +2 -1
  101. package/modern/components/primary-tablist/index.css +30 -30
  102. package/modern/components/primary-tablist/mobile.css +33 -33
  103. package/modern/components/scroll-controls/Component.js +1 -1
  104. package/modern/components/scroll-controls/index.css +14 -14
  105. package/modern/components/scrollable-container/Component.js +1 -1
  106. package/modern/components/scrollable-container/index.css +6 -6
  107. package/modern/components/secondary-tablist/Component.desktop.js +2 -1
  108. package/modern/components/secondary-tablist/Component.js +1 -0
  109. package/modern/components/secondary-tablist/Component.mobile.js +3 -2
  110. package/modern/components/secondary-tablist/Component.responsive.js +2 -1
  111. package/modern/components/secondary-tablist/index.css +11 -11
  112. package/modern/components/secondary-tablist/mobile.css +13 -13
  113. package/modern/components/tab/Component.js +1 -1
  114. package/modern/components/tab/index.css +3 -3
  115. package/modern/components/tabs/Component.collapsible.js +2 -1
  116. package/modern/components/tabs/Component.desktop.js +3 -2
  117. package/modern/components/tabs/Component.js +2 -1
  118. package/modern/components/tabs/Component.mobile.js +3 -2
  119. package/modern/components/tabs/Component.responsive.js +3 -2
  120. package/modern/desktop/index.js +3 -2
  121. package/modern/hooks/use-tablist-titles.d.ts +2 -1
  122. package/modern/hooks/use-tablist-titles.js +1 -0
  123. package/modern/hooks/use-tabs.d.ts +2 -1
  124. package/modern/hooks/use-tabs.js +13 -6
  125. package/modern/index.js +3 -2
  126. package/modern/index.module-11a3c51b.js +4 -0
  127. package/modern/index.module-b0eb0617.js +4 -0
  128. package/modern/mobile/index.js +3 -2
  129. package/modern/shared/index.js +1 -0
  130. package/modern/typings.d.ts +6 -1
  131. package/package.json +5 -5
  132. package/shared/index.js +1 -0
  133. package/src/components/primary-tablist/Component.collapsible.tsx +22 -12
  134. package/src/components/primary-tablist/Component.tsx +1 -1
  135. package/src/components/tabs/Component.tsx +2 -0
  136. package/src/hooks/use-tabs.tsx +23 -6
  137. package/src/typings.ts +7 -1
  138. package/typings.d.ts +6 -1
  139. package/esm/index.module-77f20a83.js +0 -4
  140. package/esm/index.module-b2867cef.js +0 -4
  141. package/index.module-269f7642.js +0 -6
  142. package/index.module-3e51b518.js +0 -6
  143. package/modern/index.module-2ee1459e.js +0 -4
  144. package/modern/index.module-5572b7e8.js +0 -4
@@ -1,4 +1,4 @@
1
- import { __assign, __rest } from 'tslib';
1
+ import { __rest, __assign } from 'tslib';
2
2
  import React, { useRef, useEffect, useMemo } from 'react';
3
3
  import cn from 'classnames';
4
4
  import { Badge } from '@alfalab/core-components-badge/esm';
@@ -7,12 +7,13 @@ import { PickerButtonDesktop } from '@alfalab/core-components-picker-button/esm/
7
7
  import { useTablistTitles } from '../../hooks/use-tablist-titles.js';
8
8
  import { createSyntheticMouseEvent } from '../../synthetic-events.js';
9
9
  import { Title } from '../title/Component.js';
10
- import { s as styles } from '../../index.module-b2867cef.js';
10
+ import { s as styles } from '../../index.module-1e961bec.js';
11
11
  import '@alfalab/core-components-mq/esm';
12
12
  import '../../hooks/use-collapsible-elements.js';
13
13
  import '@juggle/resize-observer';
14
14
  import '@alfalab/hooks';
15
15
  import '../../hooks/use-tabs.js';
16
+ import 'react-merge-refs';
16
17
  import '@alfalab/core-components-shared/esm';
17
18
 
18
19
  var CollapsiblePrimaryTabList = function (_a) {
@@ -33,12 +34,13 @@ var CollapsiblePrimaryTabList = function (_a) {
33
34
  }
34
35
  }, [selectedTab, tablistTitles]);
35
36
  var collapsedOptions = useMemo(function () {
36
- return tablistTitles.reduce(function (options, title) {
37
+ return tablistTitles.reduce(function (options, _a) {
38
+ var toggleRef = _a.toggleRef, title = __rest(_a, ["toggleRef"]);
37
39
  if (title.collapsed) {
38
40
  options.push({
39
41
  key: title.title,
40
42
  value: title.id,
41
- content: React.createElement(Title, __assign({}, title, { styles: styles, isOption: true })),
43
+ content: (React.createElement(Title, __assign({}, title, { ref: toggleRef, styles: styles, isOption: true }))),
42
44
  });
43
45
  }
44
46
  return options;
@@ -59,7 +61,7 @@ var CollapsiblePrimaryTabList = function (_a) {
59
61
  _a[styles.fullWidthScroll] = fullWidthScroll,
60
62
  _a)) },
61
63
  tablistTitles.map(function (_a, index) {
62
- _a.dataTestId; var restTitleProps = __rest(_a, ["dataTestId"]);
64
+ _a.dataTestId; _a.toggleRef; var restTitleProps = __rest(_a, ["dataTestId", "toggleRef"]);
63
65
  return (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, function (ref, focused) { return (React.createElement(Title, __assign({}, getTabListItemProps(index, ref), restTitleProps, { focused: focused, styles: styles }))); }));
64
66
  }),
65
67
  collapsedOptions.length ? (React.createElement("span", { ref: addonRef, role: 'menu', className: styles.pickerWrapper },
@@ -1,12 +1,13 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { PrimaryTabList } from './Component.js';
4
- import { s as styles } from '../../index.module-b2867cef.js';
4
+ import { s as styles } from '../../index.module-1e961bec.js';
5
5
  import '@juggle/resize-observer';
6
6
  import 'classnames';
7
7
  import '@alfalab/core-components-keyboard-focusable/esm';
8
8
  import '@alfalab/core-components-shared/esm';
9
9
  import '../../hooks/use-tabs.js';
10
+ import 'react-merge-refs';
10
11
  import '../scrollable-container/Component.js';
11
12
  import 'compute-scroll-into-view';
12
13
  import '../scroll-controls/Component.js';
@@ -7,6 +7,7 @@ import { fnUtils } from '@alfalab/core-components-shared/esm';
7
7
  import { useTabs } from '../../hooks/use-tabs.js';
8
8
  import { ScrollableContainer } from '../scrollable-container/Component.js';
9
9
  import { Title } from '../title/Component.js';
10
+ import 'react-merge-refs';
10
11
  import 'compute-scroll-into-view';
11
12
  import '../scroll-controls/Component.js';
12
13
  import 'lodash.debounce';
@@ -44,7 +45,7 @@ var PrimaryTabList = function (_a) {
44
45
  _a[styles.fullWidthScroll] = fullWidthScroll,
45
46
  _a)) },
46
47
  titles.map(function (_a, index) {
47
- _a.dataTestId; var restTitleProps = __rest(_a, ["dataTestId"]);
48
+ _a.dataTestId; _a.toggleRef; var restTitleProps = __rest(_a, ["dataTestId", "toggleRef"]);
48
49
  return (React.createElement(KeyboardFocusable, { key: restTitleProps.id }, function (ref, focused) { return (React.createElement(Title, __assign({}, getTabListItemProps(index, ref), restTitleProps, { focused: focused, styles: styles }))); }));
49
50
  }),
50
51
  React.createElement("div", { className: styles.line, ref: lineRef })));
@@ -2,11 +2,12 @@ import { __assign, __rest } from 'tslib';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import { PrimaryTabList } from './Component.js';
5
- import { s as styles$1 } from '../../index.module-b2867cef.js';
5
+ import { s as styles$1 } from '../../index.module-1e961bec.js';
6
6
  import '@juggle/resize-observer';
7
7
  import '@alfalab/core-components-keyboard-focusable/esm';
8
8
  import '@alfalab/core-components-shared/esm';
9
9
  import '../../hooks/use-tabs.js';
10
+ import 'react-merge-refs';
10
11
  import '../scrollable-container/Component.js';
11
12
  import 'compute-scroll-into-view';
12
13
  import '../scroll-controls/Component.js';
@@ -17,7 +18,7 @@ import '@alfalab/icons-glyph/ChevronRightMIcon';
17
18
  import '../scroll-controls/utils.js';
18
19
  import '../title/Component.js';
19
20
 
20
- var mobileStyles = {"title":"tabs__title_1twjd tabs__title_fqd0f","mobile":"tabs__mobile_1twjd"};
21
+ var mobileStyles = {"title":"tabs__title_qg5kt tabs__title_18t44","mobile":"tabs__mobile_qg5kt"};
21
22
  require('./mobile.css')
22
23
 
23
24
  var styles = __assign(__assign({}, styles$1), mobileStyles);
@@ -9,6 +9,7 @@ import 'classnames';
9
9
  import '@alfalab/core-components-keyboard-focusable/esm';
10
10
  import '@alfalab/core-components-shared/esm';
11
11
  import '../../hooks/use-tabs.js';
12
+ import 'react-merge-refs';
12
13
  import '../scrollable-container/Component.js';
13
14
  import 'compute-scroll-into-view';
14
15
  import '../scroll-controls/Component.js';
@@ -18,7 +19,7 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
18
19
  import '@alfalab/icons-glyph/ChevronRightMIcon';
19
20
  import '../scroll-controls/utils.js';
20
21
  import '../title/Component.js';
21
- import '../../index.module-b2867cef.js';
22
+ import '../../index.module-1e961bec.js';
22
23
 
23
24
  var PrimaryTabListResponsive = function (_a) {
24
25
  var size = _a.size, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, fullWidthScroll = _a.fullWidthScroll, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = __rest(_a, ["size", "breakpoint", "fullWidthScroll", "defaultMatchMediaValue"]);
@@ -1,4 +1,4 @@
1
- /* hash: 1dsxe */
1
+ /* hash: pjzth */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-accent-primary: #ef3124;
@@ -83,11 +83,11 @@
83
83
  /* size l */
84
84
 
85
85
  /* size xl */
86
- } .tabs__component_fqd0f {
86
+ } .tabs__component_18t44 {
87
87
  position: relative;
88
88
  display: inline-flex;
89
89
  min-width: 100%
90
- } .tabs__component_fqd0f:before {
90
+ } .tabs__component_18t44:before {
91
91
  content: '';
92
92
  display: block;
93
93
  position: absolute;
@@ -95,17 +95,17 @@
95
95
  height: 1px;
96
96
  width: 100%;
97
97
  background-color: var(--primary-tablist-bottom-border-color);
98
- } .tabs__fullWidthScroll_fqd0f {
98
+ } .tabs__fullWidthScroll_18t44 {
99
99
  min-width: calc(100% - 2 * var(--gap-m));
100
100
  margin: 0 var(--gap-m);
101
- } .tabs__container_fqd0f {
101
+ } .tabs__container_18t44 {
102
102
  position: relative;
103
103
  overflow: hidden;
104
104
 
105
105
  /* focus-outline fix */
106
106
  margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
107
107
  padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
108
- } .tabs__title_fqd0f {
108
+ } .tabs__title_18t44 {
109
109
  display: flex;
110
110
  align-items: center;
111
111
  height: 100%;
@@ -121,78 +121,78 @@
121
121
  -webkit-user-select: none;
122
122
  user-select: none;
123
123
  outline: none
124
- } .tabs__title_fqd0f:not(.tabs__disabled_fqd0f):hover {
124
+ } .tabs__title_18t44:not(.tabs__disabled_18t44):hover {
125
125
  color: var(--primary-tablist-hover-color);
126
- } .tabs__focused_fqd0f {
126
+ } .tabs__focused_18t44 {
127
127
  outline: 2px solid var(--focus-color);
128
128
  outline-offset: 2px;
129
- } .tabs__collapsed_fqd0f {
129
+ } .tabs__collapsed_18t44 {
130
130
  order: 99;
131
131
  visibility: collapse;
132
- } .tabs__selected_fqd0f {
132
+ } .tabs__selected_18t44 {
133
133
  cursor: default;
134
134
  color: var(--primary-tablist-selected-color);
135
- } .tabs__disabled_fqd0f {
135
+ } .tabs__disabled_18t44 {
136
136
  cursor: var(--disabled-cursor);
137
137
  color: var(--primary-tablist-disabled-color);
138
- } .tabs__line_fqd0f {
138
+ } .tabs__line_18t44 {
139
139
  position: absolute;
140
140
  height: 3px;
141
141
  bottom: 0;
142
142
  left: 0;
143
143
  background-color: var(--primary-tablist-line-color);
144
144
  transition: transform 0.2s ease, width 0.2s ease;
145
- } .tabs__option_fqd0f {
145
+ } .tabs__option_18t44 {
146
146
  color: var(--color-light-text-primary);
147
- } /* sizes */ .tabs__s_fqd0f .tabs__title_fqd0f, .tabs__xs_fqd0f .tabs__title_fqd0f, .tabs__xxs_fqd0f .tabs__title_fqd0f {
147
+ } /* sizes */ .tabs__s_18t44 .tabs__title_18t44, .tabs__xs_18t44 .tabs__title_18t44, .tabs__xxs_18t44 .tabs__title_18t44 {
148
148
  padding: var(--primary-tablist-s-padding);
149
149
  font-size: var(--primary-tablist-s-font-size);
150
150
  font-weight: var(--primary-tablist-s-font-weight);
151
151
  font-family: var(--primary-tablist-s-font-family);
152
152
  line-height: 24px;
153
- } .tabs__s_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f, .tabs__xs_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f, .tabs__xxs_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f {
153
+ } .tabs__s_18t44 .tabs__title_18t44 + .tabs__title_18t44, .tabs__xs_18t44 .tabs__title_18t44 + .tabs__title_18t44, .tabs__xxs_18t44 .tabs__title_18t44 + .tabs__title_18t44 {
154
154
  margin-left: var(--primary-tablist-s-gaps);
155
- } .tabs__s_fqd0f .tabs__pickerWrapper_fqd0f, .tabs__xs_fqd0f .tabs__pickerWrapper_fqd0f, .tabs__xxs_fqd0f .tabs__pickerWrapper_fqd0f {
155
+ } .tabs__s_18t44 .tabs__pickerWrapper_18t44, .tabs__xs_18t44 .tabs__pickerWrapper_18t44, .tabs__xxs_18t44 .tabs__pickerWrapper_18t44 {
156
156
  margin-left: var(--primary-tablist-s-gaps);
157
- } .tabs__s_fqd0f .tabs__option_fqd0f, .tabs__xs_fqd0f .tabs__option_fqd0f, .tabs__xxs_fqd0f .tabs__option_fqd0f {
157
+ } .tabs__s_18t44 .tabs__option_18t44, .tabs__xs_18t44 .tabs__option_18t44, .tabs__xxs_18t44 .tabs__option_18t44 {
158
158
  padding: 0;
159
- } .tabs__m_fqd0f .tabs__title_fqd0f {
159
+ } .tabs__m_18t44 .tabs__title_18t44 {
160
160
  padding: var(--primary-tablist-m-padding);
161
161
  font-size: var(--primary-tablist-m-font-size);
162
162
  font-weight: var(--primary-tablist-m-font-weight);
163
163
  font-family: var(--primary-tablist-m-font-family);
164
164
  line-height: 24px;
165
- } .tabs__m_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f {
165
+ } .tabs__m_18t44 .tabs__title_18t44 + .tabs__title_18t44 {
166
166
  margin-left: var(--primary-tablist-m-gaps);
167
- } .tabs__m_fqd0f .tabs__pickerWrapper_fqd0f {
167
+ } .tabs__m_18t44 .tabs__pickerWrapper_18t44 {
168
168
  margin-left: var(--primary-tablist-m-gaps);
169
- } .tabs__m_fqd0f .tabs__option_fqd0f {
169
+ } .tabs__m_18t44 .tabs__option_18t44 {
170
170
  padding: 0;
171
- } .tabs__l_fqd0f .tabs__title_fqd0f {
171
+ } .tabs__l_18t44 .tabs__title_18t44 {
172
172
  padding: var(--primary-tablist-l-padding);
173
173
  font-size: var(--primary-tablist-l-font-size);
174
174
  font-weight: var(--primary-tablist-l-font-weight);
175
175
  font-family: var(--primary-tablist-l-font-family);
176
176
  line-height: 24px;
177
- } .tabs__l_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f {
177
+ } .tabs__l_18t44 .tabs__title_18t44 + .tabs__title_18t44 {
178
178
  margin-left: var(--primary-tablist-l-gaps);
179
- } .tabs__l_fqd0f .tabs__pickerWrapper_fqd0f {
179
+ } .tabs__l_18t44 .tabs__pickerWrapper_18t44 {
180
180
  margin-left: var(--primary-tablist-l-gaps);
181
- } .tabs__l_fqd0f .tabs__option_fqd0f {
181
+ } .tabs__l_18t44 .tabs__option_18t44 {
182
182
  padding: 0;
183
- } .tabs__xl_fqd0f .tabs__title_fqd0f {
183
+ } .tabs__xl_18t44 .tabs__title_18t44 {
184
184
  padding: var(--primary-tablist-xl-padding);
185
185
  font-size: var(--primary-tablist-xl-font-size);
186
186
  font-weight: var(--primary-tablist-xl-font-weight);
187
187
  font-family: var(--primary-tablist-xl-font-family);
188
188
  line-height: 32px;
189
- } .tabs__xl_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f {
189
+ } .tabs__xl_18t44 .tabs__title_18t44 + .tabs__title_18t44 {
190
190
  margin-left: var(--primary-tablist-xl-gaps);
191
- } .tabs__xl_fqd0f .tabs__pickerWrapper_fqd0f {
191
+ } .tabs__xl_18t44 .tabs__pickerWrapper_18t44 {
192
192
  margin-left: var(--primary-tablist-xl-gaps);
193
- } .tabs__xl_fqd0f .tabs__option_fqd0f {
193
+ } .tabs__xl_18t44 .tabs__option_18t44 {
194
194
  padding: 0;
195
- } .tabs__rightAddons_fqd0f {
195
+ } .tabs__rightAddons_18t44 {
196
196
  display: flex;
197
197
  justify-content: center;
198
198
  align-items: center;
@@ -1,4 +1,4 @@
1
- /* hash: z1wsb */
1
+ /* hash: 1vvjg */
2
2
  :root {
3
3
  }/* deprecated */:root {
4
4
  --color-light-accent-primary: #ef3124;
@@ -90,11 +90,11 @@
90
90
  /* size l */
91
91
 
92
92
  /* size xl */
93
- }.tabs__component_fqd0f {
93
+ }.tabs__component_18t44 {
94
94
  position: relative;
95
95
  display: inline-flex;
96
96
  min-width: 100%
97
- }.tabs__component_fqd0f:before {
97
+ }.tabs__component_18t44:before {
98
98
  content: '';
99
99
  display: block;
100
100
  position: absolute;
@@ -102,17 +102,17 @@
102
102
  height: 1px;
103
103
  width: 100%;
104
104
  background-color: var(--primary-tablist-bottom-border-color);
105
- }.tabs__fullWidthScroll_fqd0f {
105
+ }.tabs__fullWidthScroll_18t44 {
106
106
  min-width: calc(100% - 2 * var(--gap-m));
107
107
  margin: 0 var(--gap-m);
108
- }.tabs__container_fqd0f {
108
+ }.tabs__container_18t44 {
109
109
  position: relative;
110
110
  overflow: hidden;
111
111
 
112
112
  /* focus-outline fix */
113
113
  margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
114
114
  padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs);
115
- }.tabs__title_fqd0f {
115
+ }.tabs__title_18t44 {
116
116
  display: flex;
117
117
  align-items: center;
118
118
  height: 100%;
@@ -128,78 +128,78 @@
128
128
  -webkit-user-select: none;
129
129
  user-select: none;
130
130
  outline: none
131
- }.tabs__title_fqd0f:not(.tabs__disabled_fqd0f):hover {
131
+ }.tabs__title_18t44:not(.tabs__disabled_18t44):hover {
132
132
  color: var(--primary-tablist-hover-color);
133
- }.tabs__focused_fqd0f {
133
+ }.tabs__focused_18t44 {
134
134
  outline: 2px solid var(--focus-color);
135
135
  outline-offset: 2px;
136
- }.tabs__collapsed_fqd0f {
136
+ }.tabs__collapsed_18t44 {
137
137
  order: 99;
138
138
  visibility: collapse;
139
- }.tabs__selected_fqd0f {
139
+ }.tabs__selected_18t44 {
140
140
  cursor: default;
141
141
  color: var(--primary-tablist-selected-color);
142
- }.tabs__disabled_fqd0f {
142
+ }.tabs__disabled_18t44 {
143
143
  cursor: var(--disabled-cursor);
144
144
  color: var(--primary-tablist-disabled-color);
145
- }.tabs__line_fqd0f {
145
+ }.tabs__line_18t44 {
146
146
  position: absolute;
147
147
  height: 3px;
148
148
  bottom: 0;
149
149
  left: 0;
150
150
  background-color: var(--primary-tablist-line-color);
151
151
  transition: transform 0.2s ease, width 0.2s ease;
152
- }.tabs__option_fqd0f {
152
+ }.tabs__option_18t44 {
153
153
  color: var(--color-light-text-primary);
154
- }/* sizes */.tabs__s_fqd0f .tabs__title_fqd0f, .tabs__xs_fqd0f .tabs__title_fqd0f, .tabs__xxs_fqd0f .tabs__title_fqd0f {
154
+ }/* sizes */.tabs__s_18t44 .tabs__title_18t44, .tabs__xs_18t44 .tabs__title_18t44, .tabs__xxs_18t44 .tabs__title_18t44 {
155
155
  padding: var(--primary-tablist-s-padding);
156
156
  font-size: var(--primary-tablist-s-font-size);
157
157
  font-weight: var(--primary-tablist-s-font-weight);
158
158
  font-family: var(--primary-tablist-s-font-family);
159
159
  line-height: 24px;
160
- }.tabs__s_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f, .tabs__xs_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f, .tabs__xxs_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f {
160
+ }.tabs__s_18t44 .tabs__title_18t44 + .tabs__title_18t44, .tabs__xs_18t44 .tabs__title_18t44 + .tabs__title_18t44, .tabs__xxs_18t44 .tabs__title_18t44 + .tabs__title_18t44 {
161
161
  margin-left: var(--primary-tablist-s-gaps);
162
- }.tabs__s_fqd0f .tabs__pickerWrapper_fqd0f, .tabs__xs_fqd0f .tabs__pickerWrapper_fqd0f, .tabs__xxs_fqd0f .tabs__pickerWrapper_fqd0f {
162
+ }.tabs__s_18t44 .tabs__pickerWrapper_18t44, .tabs__xs_18t44 .tabs__pickerWrapper_18t44, .tabs__xxs_18t44 .tabs__pickerWrapper_18t44 {
163
163
  margin-left: var(--primary-tablist-s-gaps);
164
- }.tabs__s_fqd0f .tabs__option_fqd0f, .tabs__xs_fqd0f .tabs__option_fqd0f, .tabs__xxs_fqd0f .tabs__option_fqd0f {
164
+ }.tabs__s_18t44 .tabs__option_18t44, .tabs__xs_18t44 .tabs__option_18t44, .tabs__xxs_18t44 .tabs__option_18t44 {
165
165
  padding: 0;
166
- }.tabs__m_fqd0f .tabs__title_fqd0f {
166
+ }.tabs__m_18t44 .tabs__title_18t44 {
167
167
  padding: var(--primary-tablist-m-padding);
168
168
  font-size: var(--primary-tablist-m-font-size);
169
169
  font-weight: var(--primary-tablist-m-font-weight);
170
170
  font-family: var(--primary-tablist-m-font-family);
171
171
  line-height: 24px;
172
- }.tabs__m_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f {
172
+ }.tabs__m_18t44 .tabs__title_18t44 + .tabs__title_18t44 {
173
173
  margin-left: var(--primary-tablist-m-gaps);
174
- }.tabs__m_fqd0f .tabs__pickerWrapper_fqd0f {
174
+ }.tabs__m_18t44 .tabs__pickerWrapper_18t44 {
175
175
  margin-left: var(--primary-tablist-m-gaps);
176
- }.tabs__m_fqd0f .tabs__option_fqd0f {
176
+ }.tabs__m_18t44 .tabs__option_18t44 {
177
177
  padding: 0;
178
- }.tabs__l_fqd0f .tabs__title_fqd0f {
178
+ }.tabs__l_18t44 .tabs__title_18t44 {
179
179
  padding: var(--primary-tablist-l-padding);
180
180
  font-size: var(--primary-tablist-l-font-size);
181
181
  font-weight: var(--primary-tablist-l-font-weight);
182
182
  font-family: var(--primary-tablist-l-font-family);
183
183
  line-height: 24px;
184
- }.tabs__l_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f {
184
+ }.tabs__l_18t44 .tabs__title_18t44 + .tabs__title_18t44 {
185
185
  margin-left: var(--primary-tablist-l-gaps);
186
- }.tabs__l_fqd0f .tabs__pickerWrapper_fqd0f {
186
+ }.tabs__l_18t44 .tabs__pickerWrapper_18t44 {
187
187
  margin-left: var(--primary-tablist-l-gaps);
188
- }.tabs__l_fqd0f .tabs__option_fqd0f {
188
+ }.tabs__l_18t44 .tabs__option_18t44 {
189
189
  padding: 0;
190
- }.tabs__xl_fqd0f .tabs__title_fqd0f {
190
+ }.tabs__xl_18t44 .tabs__title_18t44 {
191
191
  padding: var(--primary-tablist-xl-padding);
192
192
  font-size: var(--primary-tablist-xl-font-size);
193
193
  font-weight: var(--primary-tablist-xl-font-weight);
194
194
  font-family: var(--primary-tablist-xl-font-family);
195
195
  line-height: 32px;
196
- }.tabs__xl_fqd0f .tabs__title_fqd0f + .tabs__title_fqd0f {
196
+ }.tabs__xl_18t44 .tabs__title_18t44 + .tabs__title_18t44 {
197
197
  margin-left: var(--primary-tablist-xl-gaps);
198
- }.tabs__xl_fqd0f .tabs__pickerWrapper_fqd0f {
198
+ }.tabs__xl_18t44 .tabs__pickerWrapper_18t44 {
199
199
  margin-left: var(--primary-tablist-xl-gaps);
200
- }.tabs__xl_fqd0f .tabs__option_fqd0f {
200
+ }.tabs__xl_18t44 .tabs__option_18t44 {
201
201
  padding: 0;
202
- }.tabs__rightAddons_fqd0f {
202
+ }.tabs__rightAddons_18t44 {
203
203
  display: flex;
204
204
  justify-content: center;
205
205
  align-items: center;
@@ -1765,13 +1765,13 @@
1765
1765
 
1766
1766
  /* size xl */
1767
1767
  --secondary-tablist-xl-gaps: var(--gap-m);
1768
- } .tabs__title_1twjd {
1769
- } .tabs__mobile_1twjd .tabs__title_1twjd {
1768
+ } .tabs__title_qg5kt {
1769
+ } .tabs__mobile_qg5kt .tabs__title_qg5kt {
1770
1770
  padding: var(--primary-tablist-mobile-padding);
1771
1771
  font-size: var(--primary-tablist-mobile-font-size);
1772
1772
  font-weight: var(--primary-tablist-mobile-font-weight);
1773
1773
  font-family: var(--primary-tablist-mobile-font-family);
1774
1774
  line-height: var(--primary-tablist-mobile-line-height)
1775
- } .tabs__mobile_1twjd .tabs__title_1twjd + .tabs__title_1twjd {
1775
+ } .tabs__mobile_qg5kt .tabs__title_qg5kt + .tabs__title_qg5kt {
1776
1776
  margin-left: var(--primary-tablist-mobile-gaps);
1777
1777
  }
@@ -7,7 +7,7 @@ import { ChevronLeftMIcon } from '@alfalab/icons-glyph/ChevronLeftMIcon';
7
7
  import { ChevronRightMIcon } from '@alfalab/icons-glyph/ChevronRightMIcon';
8
8
  import { getDisabledState, scrollIntoFirstTab, scrollIntoLastTab } from './utils.js';
9
9
 
10
- var styles = {"component":"tabs__component_u6hcr","borderVisible":"tabs__borderVisible_u6hcr","primary":"tabs__primary_u6hcr","button":"tabs__button_u6hcr","xl":"tabs__xl_u6hcr","secondary":"tabs__secondary_u6hcr","xs":"tabs__xs_u6hcr"};
10
+ var 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"};
11
11
  require('./index.css')
12
12
 
13
13
  var ScrollControls = forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: y953g */
1
+ /* hash: 12art */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-neutral-translucent-300: rgba(15, 25, 55, 0.1);
@@ -44,11 +44,11 @@
44
44
  /* size l */
45
45
 
46
46
  /* size xl */
47
- } .tabs__component_u6hcr {
47
+ } .tabs__component_uh8ir {
48
48
  position: relative;
49
49
  display: flex;
50
50
  flex-shrink: 0
51
- } .tabs__component_u6hcr:before {
51
+ } .tabs__component_uh8ir:before {
52
52
  content: '';
53
53
  display: block;
54
54
  position: absolute;
@@ -57,12 +57,12 @@
57
57
  width: 1px;
58
58
  background-color: transparent;
59
59
  transition: background-color 0.3s ease;
60
- } .tabs__borderVisible_u6hcr:before {
60
+ } .tabs__borderVisible_uh8ir:before {
61
61
  background-color: var(--color-light-neutral-translucent-300);
62
- } .tabs__primary_u6hcr {
62
+ } .tabs__primary_uh8ir {
63
63
  align-items: flex-start;
64
64
  justify-content: flex-end
65
- } .tabs__primary_u6hcr:after {
65
+ } .tabs__primary_uh8ir:after {
66
66
  content: '';
67
67
  display: block;
68
68
  position: absolute;
@@ -70,25 +70,25 @@
70
70
  height: 1px;
71
71
  width: 100%;
72
72
  background-color: var(--primary-tablist-bottom-border-color);
73
- } .tabs__primary_u6hcr:before {
73
+ } .tabs__primary_uh8ir:before {
74
74
  bottom: 2px;
75
- } .tabs__primary_u6hcr {
75
+ } .tabs__primary_uh8ir {
76
76
 
77
- .tabs__button_u6hcr:first-child {
77
+ .tabs__button_uh8ir:first-child {
78
78
  padding-left: var(--gap-xs);
79
79
  margin-right: var(--gap-xs);
80
80
  }
81
- } .tabs__primary_u6hcr.tabs__xl_u6hcr .tabs__button_u6hcr:first-child {
81
+ } .tabs__primary_uh8ir.tabs__xl_uh8ir .tabs__button_uh8ir:first-child {
82
82
  margin-right: var(--gap-2xs);
83
- } .tabs__secondary_u6hcr {
83
+ } .tabs__secondary_uh8ir {
84
84
  align-items: center;
85
85
  justify-content: center
86
- } .tabs__secondary_u6hcr:before {
86
+ } .tabs__secondary_uh8ir:before {
87
87
  bottom: 0;
88
- } .tabs__secondary_u6hcr.tabs__xs_u6hcr {
88
+ } .tabs__secondary_uh8ir.tabs__xs_uh8ir {
89
89
  width: 76px;
90
90
 
91
- .tabs__button_u6hcr:first-child {
91
+ .tabs__button_uh8ir:first-child {
92
92
  margin-right: var(--gap-2xs);
93
93
  }
94
94
  }
@@ -9,7 +9,7 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
9
9
  import '@alfalab/icons-glyph/ChevronRightMIcon';
10
10
  import '../scroll-controls/utils.js';
11
11
 
12
- var styles = {"scrollableContainerWrapper":"tabs__scrollableContainerWrapper_bnnxe","container":"tabs__container_bnnxe","fullWidthScroll":"tabs__fullWidthScroll_bnnxe"};
12
+ var styles = {"scrollableContainerWrapper":"tabs__scrollableContainerWrapper_14qf1","container":"tabs__container_14qf1","fullWidthScroll":"tabs__fullWidthScroll_14qf1"};
13
13
  require('./index.css')
14
14
 
15
15
  /**
@@ -1,4 +1,4 @@
1
- /* hash: gizp1 */
1
+ /* hash: 14rxa */
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_bnnxe {
45
+ } .tabs__scrollableContainerWrapper_14qf1 {
46
46
  display: flex;
47
- } .tabs__container_bnnxe {
47
+ } .tabs__container_14qf1 {
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_bnnxe::-webkit-scrollbar {
58
+ } .tabs__container_14qf1::-webkit-scrollbar {
59
59
  display: none;
60
- } .tabs__container_bnnxe > * {
60
+ } .tabs__container_14qf1 > * {
61
61
  flex-shrink: 0;
62
- } .tabs__fullWidthScroll_bnnxe {
62
+ } .tabs__fullWidthScroll_14qf1 {
63
63
  padding-left: 0;
64
64
  margin: var(--gap-2xs-neg) var(--gap-m-neg);
65
65
  }
@@ -2,9 +2,10 @@ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { TagDesktop } from '@alfalab/core-components-tag/esm/desktop';
4
4
  import { SecondaryTabList } from './Component.js';
5
- import { c as commonStyles } from '../../index.module-77f20a83.js';
5
+ import { c as commonStyles } from '../../index.module-b07a0a20.js';
6
6
  import 'classnames';
7
7
  import '../../hooks/use-tabs.js';
8
+ import 'react-merge-refs';
8
9
  import '@alfalab/core-components-shared/esm';
9
10
  import '../scrollable-container/Component.js';
10
11
  import 'compute-scroll-into-view';
@@ -3,6 +3,7 @@ import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import { useTabs } from '../../hooks/use-tabs.js';
5
5
  import { ScrollableContainer } from '../scrollable-container/Component.js';
6
+ import 'react-merge-refs';
6
7
  import '@alfalab/core-components-shared/esm';
7
8
  import 'compute-scroll-into-view';
8
9
  import '../scroll-controls/Component.js';
@@ -3,8 +3,9 @@ import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import { TagMobile } from '@alfalab/core-components-tag/esm/mobile';
5
5
  import { SecondaryTabList } from './Component.js';
6
- import { c as commonStyles } from '../../index.module-77f20a83.js';
6
+ import { c as commonStyles } from '../../index.module-b07a0a20.js';
7
7
  import '../../hooks/use-tabs.js';
8
+ import 'react-merge-refs';
8
9
  import '@alfalab/core-components-shared/esm';
9
10
  import '../scrollable-container/Component.js';
10
11
  import 'compute-scroll-into-view';
@@ -15,7 +16,7 @@ import '@alfalab/icons-glyph/ChevronLeftMIcon';
15
16
  import '@alfalab/icons-glyph/ChevronRightMIcon';
16
17
  import '../scroll-controls/utils.js';
17
18
 
18
- var mobileStyles = {"title":"tabs__title_19or5 tabs__title_14u7v","mobile":"tabs__mobile_19or5"};
19
+ var mobileStyles = {"title":"tabs__title_1kd50 tabs__title_1du2s","mobile":"tabs__mobile_1kd50"};
19
20
  require('./mobile.css')
20
21
 
21
22
  var styles = __assign(__assign({}, commonStyles), mobileStyles);
@@ -7,6 +7,7 @@ import '@alfalab/core-components-tag/esm/desktop';
7
7
  import './Component.js';
8
8
  import 'classnames';
9
9
  import '../../hooks/use-tabs.js';
10
+ import 'react-merge-refs';
10
11
  import '@alfalab/core-components-shared/esm';
11
12
  import '../scrollable-container/Component.js';
12
13
  import 'compute-scroll-into-view';
@@ -16,7 +17,7 @@ import '@alfalab/core-components-icon-button/esm';
16
17
  import '@alfalab/icons-glyph/ChevronLeftMIcon';
17
18
  import '@alfalab/icons-glyph/ChevronRightMIcon';
18
19
  import '../scroll-controls/utils.js';
19
- import '../../index.module-77f20a83.js';
20
+ import '../../index.module-b07a0a20.js';
20
21
  import '@alfalab/core-components-tag/esm/mobile';
21
22
 
22
23
  var SecondaryTabListResponsive = function (_a) {