@alfalab/core-components-tabs 7.1.1 → 7.1.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 (148) hide show
  1. package/components/primary-tablist/Component.d.ts +2 -4
  2. package/components/primary-tablist/Component.desktop.js +4 -4
  3. package/components/primary-tablist/Component.js +3 -3
  4. package/components/primary-tablist/Component.mobile.d.ts +1 -1
  5. package/components/primary-tablist/Component.mobile.js +5 -5
  6. package/components/primary-tablist/Component.responsive.js +4 -4
  7. package/components/primary-tablist/index.css +22 -22
  8. package/components/primary-tablist/mobile.css +77 -69
  9. package/components/scrollable-container/Component.d.ts +1 -1
  10. package/components/scrollable-container/Component.js +1 -1
  11. package/components/scrollable-container/index.css +5 -5
  12. package/components/secondary-tablist/Component.d.ts +2 -6
  13. package/components/secondary-tablist/Component.desktop.d.ts +1 -1
  14. package/components/secondary-tablist/Component.desktop.js +3 -3
  15. package/components/secondary-tablist/Component.js +2 -2
  16. package/components/secondary-tablist/Component.mobile.d.ts +1 -1
  17. package/components/secondary-tablist/Component.mobile.js +4 -4
  18. package/components/secondary-tablist/Component.responsive.js +3 -3
  19. package/components/secondary-tablist/index.css +11 -11
  20. package/components/secondary-tablist/mobile.css +65 -57
  21. package/components/tab/Component.js +1 -1
  22. package/components/tab/index.css +3 -3
  23. package/components/tabs/Component.d.ts +1 -1
  24. package/components/tabs/Component.desktop.d.ts +1 -1
  25. package/components/tabs/Component.desktop.js +5 -5
  26. package/components/tabs/Component.mobile.d.ts +1 -1
  27. package/components/tabs/Component.mobile.js +5 -5
  28. package/components/tabs/Component.responsive.d.ts +1 -1
  29. package/components/tabs/Component.responsive.js +5 -5
  30. package/cssm/components/primary-tablist/Component.d.ts +2 -4
  31. package/cssm/components/primary-tablist/Component.desktop.js +3 -3
  32. package/cssm/components/primary-tablist/Component.js +3 -3
  33. package/cssm/components/primary-tablist/Component.mobile.d.ts +1 -1
  34. package/cssm/components/primary-tablist/Component.mobile.js +3 -3
  35. package/cssm/components/primary-tablist/Component.responsive.js +3 -3
  36. package/cssm/components/primary-tablist/index.module.css +2 -2
  37. package/cssm/components/scrollable-container/Component.d.ts +1 -1
  38. package/cssm/components/secondary-tablist/Component.d.ts +2 -6
  39. package/cssm/components/secondary-tablist/Component.desktop.d.ts +1 -1
  40. package/cssm/components/secondary-tablist/Component.desktop.js +2 -2
  41. package/cssm/components/secondary-tablist/Component.js +2 -2
  42. package/cssm/components/secondary-tablist/Component.mobile.d.ts +1 -1
  43. package/cssm/components/secondary-tablist/Component.mobile.js +2 -2
  44. package/cssm/components/secondary-tablist/Component.responsive.js +2 -2
  45. package/cssm/components/tabs/Component.d.ts +1 -1
  46. package/cssm/components/tabs/Component.desktop.d.ts +1 -1
  47. package/cssm/components/tabs/Component.desktop.js +3 -3
  48. package/cssm/components/tabs/Component.mobile.d.ts +1 -1
  49. package/cssm/components/tabs/Component.mobile.js +3 -3
  50. package/cssm/components/tabs/Component.responsive.d.ts +1 -1
  51. package/cssm/components/tabs/Component.responsive.js +3 -3
  52. package/cssm/desktop.js +4 -4
  53. package/cssm/index.js +4 -4
  54. package/cssm/mobile.js +4 -4
  55. package/cssm/responsive.js +4 -4
  56. package/cssm/{tslib.es6-ce870b46.d.ts → tslib.es6-9682e485.d.ts} +8 -4
  57. package/{tslib.es6-fcb75541.js → cssm/tslib.es6-9682e485.js} +1 -1
  58. package/cssm/typings.d.ts +1 -1
  59. package/desktop.js +6 -6
  60. package/esm/components/primary-tablist/Component.d.ts +2 -4
  61. package/esm/components/primary-tablist/Component.desktop.js +4 -4
  62. package/esm/components/primary-tablist/Component.js +3 -3
  63. package/esm/components/primary-tablist/Component.mobile.d.ts +1 -1
  64. package/esm/components/primary-tablist/Component.mobile.js +5 -5
  65. package/esm/components/primary-tablist/Component.responsive.js +4 -4
  66. package/esm/components/primary-tablist/index.css +22 -22
  67. package/esm/components/primary-tablist/mobile.css +77 -69
  68. package/esm/components/scrollable-container/Component.d.ts +1 -1
  69. package/esm/components/scrollable-container/Component.js +1 -1
  70. package/esm/components/scrollable-container/index.css +5 -5
  71. package/esm/components/secondary-tablist/Component.d.ts +2 -6
  72. package/esm/components/secondary-tablist/Component.desktop.d.ts +1 -1
  73. package/esm/components/secondary-tablist/Component.desktop.js +3 -3
  74. package/esm/components/secondary-tablist/Component.js +2 -2
  75. package/esm/components/secondary-tablist/Component.mobile.d.ts +1 -1
  76. package/esm/components/secondary-tablist/Component.mobile.js +4 -4
  77. package/esm/components/secondary-tablist/Component.responsive.js +3 -3
  78. package/esm/components/secondary-tablist/index.css +11 -11
  79. package/esm/components/secondary-tablist/mobile.css +65 -57
  80. package/esm/components/tab/Component.js +1 -1
  81. package/esm/components/tab/index.css +3 -3
  82. package/esm/components/tabs/Component.d.ts +1 -1
  83. package/esm/components/tabs/Component.desktop.d.ts +1 -1
  84. package/esm/components/tabs/Component.desktop.js +5 -5
  85. package/esm/components/tabs/Component.mobile.d.ts +1 -1
  86. package/esm/components/tabs/Component.mobile.js +5 -5
  87. package/esm/components/tabs/Component.responsive.d.ts +1 -1
  88. package/esm/components/tabs/Component.responsive.js +5 -5
  89. package/esm/desktop.js +5 -5
  90. package/esm/index.js +5 -5
  91. package/esm/index.module-7ca9e703.js +4 -0
  92. package/esm/index.module-e51ae308.js +4 -0
  93. package/esm/mobile.js +5 -5
  94. package/esm/responsive.js +5 -5
  95. package/{tslib.es6-fcb75541.d.ts → esm/tslib.es6-954a2f25.d.ts} +8 -4
  96. package/esm/{tslib.es6-444ae64e.js → tslib.es6-954a2f25.js} +1 -1
  97. package/esm/typings.d.ts +1 -1
  98. package/index.js +6 -6
  99. package/index.module-7a6d77c2.js +6 -0
  100. package/index.module-d59767dd.js +6 -0
  101. package/mobile.js +6 -6
  102. package/modern/components/primary-tablist/Component.d.ts +2 -4
  103. package/modern/components/primary-tablist/Component.desktop.js +4 -4
  104. package/modern/components/primary-tablist/Component.js +4 -4
  105. package/modern/components/primary-tablist/Component.mobile.d.ts +1 -1
  106. package/modern/components/primary-tablist/Component.mobile.js +5 -5
  107. package/modern/components/primary-tablist/Component.responsive.js +4 -4
  108. package/modern/components/primary-tablist/index.css +22 -22
  109. package/modern/components/primary-tablist/mobile.css +77 -69
  110. package/modern/components/scrollable-container/Component.d.ts +1 -1
  111. package/modern/components/scrollable-container/Component.js +1 -1
  112. package/modern/components/scrollable-container/index.css +5 -5
  113. package/modern/components/secondary-tablist/Component.d.ts +2 -6
  114. package/modern/components/secondary-tablist/Component.desktop.d.ts +1 -1
  115. package/modern/components/secondary-tablist/Component.desktop.js +3 -3
  116. package/modern/components/secondary-tablist/Component.js +2 -2
  117. package/modern/components/secondary-tablist/Component.mobile.d.ts +1 -1
  118. package/modern/components/secondary-tablist/Component.mobile.js +4 -4
  119. package/modern/components/secondary-tablist/Component.responsive.js +3 -3
  120. package/modern/components/secondary-tablist/index.css +11 -11
  121. package/modern/components/secondary-tablist/mobile.css +65 -57
  122. package/modern/components/tab/Component.js +1 -1
  123. package/modern/components/tab/index.css +3 -3
  124. package/modern/components/tabs/Component.d.ts +1 -1
  125. package/modern/components/tabs/Component.desktop.d.ts +1 -1
  126. package/modern/components/tabs/Component.desktop.js +5 -5
  127. package/modern/components/tabs/Component.mobile.d.ts +1 -1
  128. package/modern/components/tabs/Component.mobile.js +5 -5
  129. package/modern/components/tabs/Component.responsive.d.ts +1 -1
  130. package/modern/components/tabs/Component.responsive.js +5 -5
  131. package/modern/desktop.js +4 -4
  132. package/modern/index.js +4 -4
  133. package/modern/index.module-7ca9e703.js +4 -0
  134. package/modern/index.module-e51ae308.js +4 -0
  135. package/modern/mobile.js +4 -4
  136. package/modern/responsive.js +4 -4
  137. package/modern/typings.d.ts +1 -1
  138. package/package.json +3 -3
  139. package/responsive.js +6 -6
  140. package/{esm/tslib.es6-444ae64e.d.ts → tslib.es6-3a2676d6.d.ts} +8 -4
  141. package/{cssm/tslib.es6-ce870b46.js → tslib.es6-3a2676d6.js} +1 -1
  142. package/typings.d.ts +1 -1
  143. package/esm/index.module-17321b1b.js +0 -4
  144. package/esm/index.module-198d371d.js +0 -4
  145. package/index.module-3530e300.js +0 -6
  146. package/index.module-c424649c.js +0 -6
  147. package/modern/index.module-17321b1b.js +0 -4
  148. package/modern/index.module-198d371d.js +0 -4
@@ -1,9 +1,9 @@
1
1
  import React, { useRef, useEffect } from 'react';
2
- import { KeyboardFocusable } from '@alfalab/core-components-keyboard-focusable/modern';
3
2
  import cn from 'classnames';
3
+ import { KeyboardFocusable } from '@alfalab/core-components-keyboard-focusable/modern';
4
+ import { useTabs } from '../../useTabs.js';
4
5
  import 'compute-scroll-into-view';
5
6
  import { ScrollableContainer } from '../scrollable-container/Component.js';
6
- import { useTabs } from '../../useTabs.js';
7
7
 
8
8
  const PrimaryTabList = ({ size, styles = {}, className, containerClassName, titles = [], selectedId = titles.length ? titles[0].id : undefined, scrollable = true, fullWidthScroll, onChange, dataTestId, }) => {
9
9
  const lineRef = useRef(null);
@@ -24,10 +24,10 @@ const PrimaryTabList = ({ size, styles = {}, className, containerClassName, titl
24
24
  titles.map((item, index) => {
25
25
  if (item.hidden)
26
26
  return null;
27
- return (React.createElement(KeyboardFocusable, { key: item.id }, (ref, focused) => (React.createElement("button", Object.assign({}, getTabListItemProps(index, ref), { type: 'button', className: cn(styles.title, {
27
+ return (React.createElement(KeyboardFocusable, { key: item.id }, (ref, focused) => (React.createElement("button", { ...getTabListItemProps(index, ref), type: 'button', className: cn(styles.title, {
28
28
  [styles.selected]: item.id === selectedId,
29
29
  [styles.disabled]: item.disabled,
30
- }, item.toggleClassName) }),
30
+ }, item.toggleClassName) },
31
31
  React.createElement("span", { className: focused ? styles.focused : undefined }, item.title),
32
32
  item.rightAddons && (React.createElement("span", { className: styles.rightAddons }, item.rightAddons))))));
33
33
  }),
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { TabListProps } from "../../typings";
3
3
  type PrimaryTabListMobileProps = Omit<TabListProps, 'size'>;
4
- declare const PrimaryTabListMobile: ({ className, ...restProps }: Pick<TabListProps, "className" | "onChange" | "dataTestId" | "containerClassName" | "defaultMatch" | "selectedId" | "scrollable" | "fullWidthScroll" | "titles">) => JSX.Element;
4
+ declare const PrimaryTabListMobile: ({ className, ...restProps }: PrimaryTabListMobileProps) => JSX.Element;
5
5
  export { PrimaryTabListMobileProps, PrimaryTabListMobile };
@@ -1,19 +1,19 @@
1
1
  import React from 'react';
2
- import '@alfalab/core-components-keyboard-focusable/modern';
3
2
  import cn from 'classnames';
3
+ import '@alfalab/core-components-keyboard-focusable/modern';
4
+ import '../../useTabs.js';
4
5
  import 'compute-scroll-into-view';
5
6
  import '../scrollable-container/Component.js';
6
- import '../../useTabs.js';
7
7
  import { PrimaryTabList } from './Component.js';
8
- import { c as commonStyles } from '../../index.module-17321b1b.js';
8
+ import { c as commonStyles } from '../../index.module-7ca9e703.js';
9
9
 
10
- var mobileStyles = {"title":"tabs__title_fowyz tabs__title_1aith","mobile":"tabs__mobile_fowyz"};
10
+ var mobileStyles = {"title":"tabs__title_1d7bc tabs__title_8sfek","mobile":"tabs__mobile_1d7bc"};
11
11
  require('./mobile.css')
12
12
 
13
13
  const styles = {
14
14
  ...commonStyles,
15
15
  ...mobileStyles,
16
16
  };
17
- const PrimaryTabListMobile = ({ className, ...restProps }) => (React.createElement(PrimaryTabList, Object.assign({}, restProps, { styles: styles, className: cn(className, styles.mobile) })));
17
+ const PrimaryTabListMobile = ({ className, ...restProps }) => (React.createElement(PrimaryTabList, { ...restProps, styles: styles, className: cn(className, styles.mobile) }));
18
18
 
19
19
  export { PrimaryTabListMobile };
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
- import '@alfalab/core-components-keyboard-focusable/modern';
3
2
  import 'classnames';
3
+ import '@alfalab/core-components-keyboard-focusable/modern';
4
+ import '../../useTabs.js';
4
5
  import 'compute-scroll-into-view';
5
6
  import '../scrollable-container/Component.js';
6
- import '../../useTabs.js';
7
7
  import './Component.js';
8
- import '../../index.module-17321b1b.js';
8
+ import '../../index.module-7ca9e703.js';
9
9
  import { PrimaryTabListDesktop } from './Component.desktop.js';
10
10
  import { useMedia } from '@alfalab/hooks';
11
11
  import { PrimaryTabListMobile } from './Component.mobile.js';
@@ -15,7 +15,7 @@ const PrimaryTabListResponsive = ({ size, defaultMatch = 'desktop', fullWidthScr
15
15
  ['mobile', '(max-width: 767px)'],
16
16
  ['desktop', '(min-width: 768px)'],
17
17
  ], defaultMatch);
18
- return view === 'desktop' ? (React.createElement(PrimaryTabListDesktop, Object.assign({ size: size }, restProps))) : (React.createElement(PrimaryTabListMobile, Object.assign({ fullWidthScroll: fullWidthScroll }, restProps)));
18
+ return view === 'desktop' ? (React.createElement(PrimaryTabListDesktop, { size: size, ...restProps })) : (React.createElement(PrimaryTabListMobile, { fullWidthScroll: fullWidthScroll, ...restProps }));
19
19
  };
20
20
 
21
21
  export { PrimaryTabListResponsive };
@@ -1,11 +1,11 @@
1
- /* hash: skdkb */
1
+ /* hash: 141st */
2
2
  :root {
3
3
  --color-light-border-accent: #ef3124;
4
4
  --color-light-border-link: #007aff;
5
5
  --color-light-border-primary: #dbdee1;
6
6
  --color-light-text-primary: #0b1f35;
7
- --color-light-text-secondary: #546272;
8
- --color-light-text-tertiary: #b6bcc3;
7
+ --color-light-text-secondary: rgba(11, 31, 53, 0.7);
8
+ --color-light-text-tertiary: rgba(11, 31, 53, 0.3);
9
9
  }
10
10
  :root {
11
11
 
@@ -83,12 +83,12 @@
83
83
 
84
84
  /* size xl */
85
85
  }
86
- .tabs__component_1aith {
86
+ .tabs__component_8sfek {
87
87
  position: relative;
88
88
  display: inline-flex;
89
89
  min-width: 100%
90
90
  }
91
- .tabs__component_1aith:before {
91
+ .tabs__component_8sfek:before {
92
92
  content: '';
93
93
  display: block;
94
94
  position: absolute;
@@ -97,15 +97,15 @@
97
97
  width: 100%;
98
98
  background-color: var(--primary-tablist-bottom-border-color);
99
99
  }
100
- .tabs__fullWidthScroll_1aith {
100
+ .tabs__fullWidthScroll_8sfek {
101
101
  min-width: calc(100% - 2 * var(--gap-m));
102
102
  margin: 0 var(--gap-m);
103
103
  }
104
- .tabs__container_1aith {
104
+ .tabs__container_8sfek {
105
105
  position: relative;
106
106
  overflow: hidden;
107
107
  }
108
- .tabs__title_1aith {
108
+ .tabs__title_8sfek {
109
109
  display: flex;
110
110
  align-items: center;
111
111
  height: 100%;
@@ -123,22 +123,22 @@
123
123
  cursor: pointer;
124
124
  outline: none
125
125
  }
126
- .tabs__title_1aith:not(.tabs__disabled_1aith):hover {
126
+ .tabs__title_8sfek:not(.tabs__disabled_8sfek):hover {
127
127
  color: var(--primary-tablist-hover-color);
128
128
  }
129
- .tabs__focused_1aith {
129
+ .tabs__focused_8sfek {
130
130
  outline: 2px solid var(--focus-color);
131
131
  outline-offset: 2px;
132
132
  }
133
- .tabs__selected_1aith {
133
+ .tabs__selected_8sfek {
134
134
  cursor: default;
135
135
  color: var(--primary-tablist-selected-color);
136
136
  }
137
- .tabs__disabled_1aith {
137
+ .tabs__disabled_8sfek {
138
138
  cursor: var(--disabled-cursor);
139
139
  color: var(--primary-tablist-disabled-color);
140
140
  }
141
- .tabs__line_1aith {
141
+ .tabs__line_8sfek {
142
142
  position: absolute;
143
143
  height: 3px;
144
144
  bottom: 0;
@@ -147,46 +147,46 @@
147
147
  transition: transform 0.2s ease, width 0.2s ease;
148
148
  }
149
149
  /* sizes */
150
- .tabs__s_1aith .tabs__title_1aith, .tabs__xs_1aith .tabs__title_1aith, .tabs__xxs_1aith .tabs__title_1aith {
150
+ .tabs__s_8sfek .tabs__title_8sfek, .tabs__xs_8sfek .tabs__title_8sfek, .tabs__xxs_8sfek .tabs__title_8sfek {
151
151
  padding: var(--primary-tablist-s-padding);
152
152
  font-size: var(--primary-tablist-s-font-size);
153
153
  font-weight: var(--primary-tablist-s-font-weight);
154
154
  font-family: var(--primary-tablist-s-font-family);
155
155
  line-height: 24px;
156
156
  }
157
- .tabs__s_1aith .tabs__title_1aith + .tabs__title_1aith, .tabs__xs_1aith .tabs__title_1aith + .tabs__title_1aith, .tabs__xxs_1aith .tabs__title_1aith + .tabs__title_1aith {
157
+ .tabs__s_8sfek .tabs__title_8sfek + .tabs__title_8sfek, .tabs__xs_8sfek .tabs__title_8sfek + .tabs__title_8sfek, .tabs__xxs_8sfek .tabs__title_8sfek + .tabs__title_8sfek {
158
158
  margin-left: var(--primary-tablist-s-gaps);
159
159
  }
160
- .tabs__m_1aith .tabs__title_1aith {
160
+ .tabs__m_8sfek .tabs__title_8sfek {
161
161
  padding: var(--primary-tablist-m-padding);
162
162
  font-size: var(--primary-tablist-m-font-size);
163
163
  font-weight: var(--primary-tablist-m-font-weight);
164
164
  font-family: var(--primary-tablist-m-font-family);
165
165
  line-height: 24px;
166
166
  }
167
- .tabs__m_1aith .tabs__title_1aith + .tabs__title_1aith {
167
+ .tabs__m_8sfek .tabs__title_8sfek + .tabs__title_8sfek {
168
168
  margin-left: var(--primary-tablist-m-gaps);
169
169
  }
170
- .tabs__l_1aith .tabs__title_1aith {
170
+ .tabs__l_8sfek .tabs__title_8sfek {
171
171
  padding: var(--primary-tablist-l-padding);
172
172
  font-size: var(--primary-tablist-l-font-size);
173
173
  font-weight: var(--primary-tablist-l-font-weight);
174
174
  font-family: var(--primary-tablist-l-font-family);
175
175
  line-height: 24px;
176
176
  }
177
- .tabs__l_1aith .tabs__title_1aith + .tabs__title_1aith {
177
+ .tabs__l_8sfek .tabs__title_8sfek + .tabs__title_8sfek {
178
178
  margin-left: var(--primary-tablist-l-gaps);
179
179
  }
180
- .tabs__xl_1aith .tabs__title_1aith {
180
+ .tabs__xl_8sfek .tabs__title_8sfek {
181
181
  padding: var(--primary-tablist-xl-padding);
182
182
  font-size: var(--primary-tablist-xl-font-size);
183
183
  font-weight: var(--primary-tablist-xl-font-weight);
184
184
  font-family: var(--primary-tablist-xl-font-family);
185
185
  line-height: 32px;
186
186
  }
187
- .tabs__xl_1aith .tabs__title_1aith + .tabs__title_1aith {
187
+ .tabs__xl_8sfek .tabs__title_8sfek + .tabs__title_8sfek {
188
188
  margin-left: var(--primary-tablist-xl-gaps);
189
189
  }
190
- .tabs__rightAddons_1aith {
190
+ .tabs__rightAddons_8sfek {
191
191
  margin-left: var(--gap-xs);
192
192
  }
@@ -1,4 +1,4 @@
1
- /* hash: tyvld */
1
+ /* hash: 1ccv9 */
2
2
  :root {
3
3
  }:root {
4
4
  }:root {
@@ -6,8 +6,8 @@
6
6
  --color-light-border-link: #007aff;
7
7
  --color-light-border-primary: #dbdee1;
8
8
  --color-light-text-primary: #0b1f35;
9
- --color-light-text-secondary: #546272;
10
- --color-light-text-tertiary: #b6bcc3;
9
+ --color-light-text-secondary: rgba(11, 31, 53, 0.7);
10
+ --color-light-text-tertiary: rgba(11, 31, 53, 0.3);
11
11
  }:root {
12
12
  }:root {
13
13
 
@@ -88,11 +88,11 @@
88
88
  /* size l */
89
89
 
90
90
  /* size xl */
91
- }.tabs__component_1aith {
91
+ }.tabs__component_8sfek {
92
92
  position: relative;
93
93
  display: inline-flex;
94
94
  min-width: 100%
95
- }.tabs__component_1aith:before {
95
+ }.tabs__component_8sfek:before {
96
96
  content: '';
97
97
  display: block;
98
98
  position: absolute;
@@ -100,13 +100,13 @@
100
100
  height: 1px;
101
101
  width: 100%;
102
102
  background-color: var(--primary-tablist-bottom-border-color);
103
- }.tabs__fullWidthScroll_1aith {
103
+ }.tabs__fullWidthScroll_8sfek {
104
104
  min-width: calc(100% - 2 * var(--gap-m));
105
105
  margin: 0 var(--gap-m);
106
- }.tabs__container_1aith {
106
+ }.tabs__container_8sfek {
107
107
  position: relative;
108
108
  overflow: hidden;
109
- }.tabs__title_1aith {
109
+ }.tabs__title_8sfek {
110
110
  display: flex;
111
111
  align-items: center;
112
112
  height: 100%;
@@ -123,57 +123,57 @@
123
123
  user-select: none;
124
124
  cursor: pointer;
125
125
  outline: none
126
- }.tabs__title_1aith:not(.tabs__disabled_1aith):hover {
126
+ }.tabs__title_8sfek:not(.tabs__disabled_8sfek):hover {
127
127
  color: var(--primary-tablist-hover-color);
128
- }.tabs__focused_1aith {
128
+ }.tabs__focused_8sfek {
129
129
  outline: 2px solid var(--focus-color);
130
130
  outline-offset: 2px;
131
- }.tabs__selected_1aith {
131
+ }.tabs__selected_8sfek {
132
132
  cursor: default;
133
133
  color: var(--primary-tablist-selected-color);
134
- }.tabs__disabled_1aith {
134
+ }.tabs__disabled_8sfek {
135
135
  cursor: var(--disabled-cursor);
136
136
  color: var(--primary-tablist-disabled-color);
137
- }.tabs__line_1aith {
137
+ }.tabs__line_8sfek {
138
138
  position: absolute;
139
139
  height: 3px;
140
140
  bottom: 0;
141
141
  left: 0;
142
142
  background-color: var(--primary-tablist-line-color);
143
143
  transition: transform 0.2s ease, width 0.2s ease;
144
- }/* sizes */.tabs__s_1aith .tabs__title_1aith, .tabs__xs_1aith .tabs__title_1aith, .tabs__xxs_1aith .tabs__title_1aith {
144
+ }/* sizes */.tabs__s_8sfek .tabs__title_8sfek, .tabs__xs_8sfek .tabs__title_8sfek, .tabs__xxs_8sfek .tabs__title_8sfek {
145
145
  padding: var(--primary-tablist-s-padding);
146
146
  font-size: var(--primary-tablist-s-font-size);
147
147
  font-weight: var(--primary-tablist-s-font-weight);
148
148
  font-family: var(--primary-tablist-s-font-family);
149
149
  line-height: 24px;
150
- }.tabs__s_1aith .tabs__title_1aith + .tabs__title_1aith, .tabs__xs_1aith .tabs__title_1aith + .tabs__title_1aith, .tabs__xxs_1aith .tabs__title_1aith + .tabs__title_1aith {
150
+ }.tabs__s_8sfek .tabs__title_8sfek + .tabs__title_8sfek, .tabs__xs_8sfek .tabs__title_8sfek + .tabs__title_8sfek, .tabs__xxs_8sfek .tabs__title_8sfek + .tabs__title_8sfek {
151
151
  margin-left: var(--primary-tablist-s-gaps);
152
- }.tabs__m_1aith .tabs__title_1aith {
152
+ }.tabs__m_8sfek .tabs__title_8sfek {
153
153
  padding: var(--primary-tablist-m-padding);
154
154
  font-size: var(--primary-tablist-m-font-size);
155
155
  font-weight: var(--primary-tablist-m-font-weight);
156
156
  font-family: var(--primary-tablist-m-font-family);
157
157
  line-height: 24px;
158
- }.tabs__m_1aith .tabs__title_1aith + .tabs__title_1aith {
158
+ }.tabs__m_8sfek .tabs__title_8sfek + .tabs__title_8sfek {
159
159
  margin-left: var(--primary-tablist-m-gaps);
160
- }.tabs__l_1aith .tabs__title_1aith {
160
+ }.tabs__l_8sfek .tabs__title_8sfek {
161
161
  padding: var(--primary-tablist-l-padding);
162
162
  font-size: var(--primary-tablist-l-font-size);
163
163
  font-weight: var(--primary-tablist-l-font-weight);
164
164
  font-family: var(--primary-tablist-l-font-family);
165
165
  line-height: 24px;
166
- }.tabs__l_1aith .tabs__title_1aith + .tabs__title_1aith {
166
+ }.tabs__l_8sfek .tabs__title_8sfek + .tabs__title_8sfek {
167
167
  margin-left: var(--primary-tablist-l-gaps);
168
- }.tabs__xl_1aith .tabs__title_1aith {
168
+ }.tabs__xl_8sfek .tabs__title_8sfek {
169
169
  padding: var(--primary-tablist-xl-padding);
170
170
  font-size: var(--primary-tablist-xl-font-size);
171
171
  font-weight: var(--primary-tablist-xl-font-weight);
172
172
  font-family: var(--primary-tablist-xl-font-family);
173
173
  line-height: 32px;
174
- }.tabs__xl_1aith .tabs__title_1aith + .tabs__title_1aith {
174
+ }.tabs__xl_8sfek .tabs__title_8sfek + .tabs__title_8sfek {
175
175
  margin-left: var(--primary-tablist-xl-gaps);
176
- }.tabs__rightAddons_1aith {
176
+ }.tabs__rightAddons_8sfek {
177
177
  margin-left: var(--gap-xs);
178
178
  }
179
179
  :root {
@@ -392,26 +392,24 @@
392
392
  --color-dark-specialbg-overlay-fallback: #070707;
393
393
  --color-dark-specialbg-primary-grouped: #0b1f35;
394
394
  --color-dark-specialbg-secondary-grouped: #233549;
395
+ --color-dark-specialbg-secondary-transparent: rgba(255, 255, 255, 0.1);
396
+ --color-dark-specialbg-secondary-transparent-inverted: rgba(11, 31, 53, 0.05);
395
397
  --color-dark-specialbg-tertiary-grouped: #3c4c5d;
398
+ --color-dark-specialbg-tertiary-transparent: rgba(255, 255, 255, 0.2);
399
+ --color-dark-specialbg-tertiary-transparent-inverted: rgba(11, 31, 53, 0.1);
396
400
  --color-dark-text-accent: #ef3124;
397
401
  --color-dark-text-attention: #de6a00;
398
- --color-dark-text-disabled: #485767;
399
- --color-dark-text-disabled-inverted: #dbdee1;
400
- --color-dark-text-disabled-inverted-transparent: rgba(11, 31, 53, 0.15);
401
- --color-dark-text-disabled-transparent: rgba(255, 255, 255, 0.25);
402
+ --color-dark-text-disabled: rgba(255, 255, 255, 0.25);
403
+ --color-dark-text-disabled-inverted: rgba(11, 31, 53, 0.15);
402
404
  --color-dark-text-link: #007aff;
403
405
  --color-dark-text-negative: #d91d0b;
404
406
  --color-dark-text-positive: #13a463;
405
407
  --color-dark-text-primary: #fff;
406
408
  --color-dark-text-primary-inverted: #0b1f35;
407
- --color-dark-text-secondary: #b6bcc3;
408
- --color-dark-text-secondary-inverted: #546272;
409
- --color-dark-text-secondary-inverted-transparent: rgba(11, 31, 53, 0.7);
410
- --color-dark-text-secondary-transparent: rgba(255, 255, 255, 0.7);
411
- --color-dark-text-tertiary: #6d7986;
412
- --color-dark-text-tertiary-inverted: #b6bcc3;
413
- --color-dark-text-tertiary-inverted-transparent: rgba(11, 31, 53, 0.3);
414
- --color-dark-text-tertiary-transparent: rgba(255, 255, 255, 0.4);
409
+ --color-dark-text-secondary: rgba(255, 255, 255, 0.7);
410
+ --color-dark-text-secondary-inverted: rgba(11, 31, 53, 0.7);
411
+ --color-dark-text-tertiary: rgba(255, 255, 255, 0.4);
412
+ --color-dark-text-tertiary-inverted: rgba(11, 31, 53, 0.3);
415
413
  --color-light-bg-accent: #ef3124;
416
414
  --color-light-bg-attention-muted: #fff3e0;
417
415
  --color-light-bg-info: #d6e8fc;
@@ -458,26 +456,24 @@
458
456
  --color-light-specialbg-overlay-fallback: #5c5c5c;
459
457
  --color-light-specialbg-primary-grouped: #f3f4f5;
460
458
  --color-light-specialbg-secondary-grouped: #fff;
459
+ --color-light-specialbg-secondary-transparent: rgba(11, 31, 53, 0.05);
460
+ --color-light-specialbg-secondary-transparent-inverted: rgba(255, 255, 255, 0.1);
461
461
  --color-light-specialbg-tertiary-grouped: #f3f4f5;
462
+ --color-light-specialbg-tertiary-transparent: rgba(11, 31, 53, 0.1);
463
+ --color-light-specialbg-tertiary-transparent-inverted: rgba(255, 255, 255, 0.2);
462
464
  --color-light-text-accent: #ef3124;
463
465
  --color-light-text-attention: #de6a00;
464
- --color-light-text-disabled: #dbdee1;
465
- --color-light-text-disabled-inverted: #485767;
466
- --color-light-text-disabled-inverted-transparent: rgba(255, 255, 255, 0.25);
467
- --color-light-text-disabled-transparent: rgba(11, 31, 53, 0.15);
466
+ --color-light-text-disabled: rgba(11, 31, 53, 0.15);
467
+ --color-light-text-disabled-inverted: rgba(255, 255, 255, 0.25);
468
468
  --color-light-text-link: #007aff;
469
469
  --color-light-text-negative: #d91d0b;
470
470
  --color-light-text-positive: #13a463;
471
471
  --color-light-text-primary: #0b1f35;
472
472
  --color-light-text-primary-inverted: #fff;
473
- --color-light-text-secondary: #546272;
474
- --color-light-text-secondary-inverted: #b6bcc3;
475
- --color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
476
- --color-light-text-secondary-transparent: rgba(11, 31, 53, 0.7);
477
- --color-light-text-tertiary: #b6bcc3;
478
- --color-light-text-tertiary-inverted: #6d7986;
479
- --color-light-text-tertiary-inverted-transparent: rgba(255, 255, 255, 0.4);
480
- --color-light-text-tertiary-transparent: rgba(11, 31, 53, 0.3);
473
+ --color-light-text-secondary: rgba(11, 31, 53, 0.7);
474
+ --color-light-text-secondary-inverted: rgba(255, 255, 255, 0.7);
475
+ --color-light-text-tertiary: rgba(11, 31, 53, 0.3);
476
+ --color-light-text-tertiary-inverted: rgba(255, 255, 255, 0.4);
481
477
  --color-static-bg-accent: #ef3124;
482
478
  --color-static-bg-primary-dark: #0b1f35;
483
479
  --color-static-bg-primary-light: #fff;
@@ -494,14 +490,10 @@
494
490
  --color-static-text-accent: #ef3124;
495
491
  --color-static-text-primary-dark: #0b1f35;
496
492
  --color-static-text-primary-light: #fff;
497
- --color-static-text-secondary-dark: #6d7986;
498
- --color-static-text-secondary-dark-transparent: rgba(11, 31, 53, 0.6);
499
- --color-static-text-secondary-light: #b6bcc3;
500
- --color-static-text-secondary-light-transparent: rgba(255, 255, 255, 0.7);
501
- --color-static-text-tertiary-dark: #b6bcc3;
502
- --color-static-text-tertiary-dark-transparent: rgba(11, 31, 53, 0.3);
503
- --color-static-text-tertiary-light: #6d7986;
504
- --color-static-text-tertiary-light-transparent: rgba(255, 255, 255, 0.4);
493
+ --color-static-text-secondary-dark: rgba(11, 31, 53, 0.6);
494
+ --color-static-text-secondary-light: rgba(255, 255, 255, 0.7);
495
+ --color-static-text-tertiary-dark: rgba(11, 31, 53, 0.3);
496
+ --color-static-text-tertiary-light: rgba(255, 255, 255, 0.4);
505
497
  --color-dark-bg-accent-alpha-30: rgba(239, 49, 36, 0.3);
506
498
  --color-dark-bg-accent-shade-15: rgb(203, 42, 31);
507
499
  --color-dark-bg-accent-shade-20: rgb(191, 39, 29);
@@ -618,12 +610,18 @@
618
610
  --color-dark-specialbg-component-inverted-alpha-30: rgba(11, 31, 53, 0.3);
619
611
  --color-dark-specialbg-component-inverted-shade-15: rgba(9, 26, 45, 0.2095);
620
612
  --color-dark-specialbg-component-inverted-shade-20: rgba(9, 25, 42, 0.256);
613
+ --color-dark-specialbg-tertiary-transparent-tint-7: rgba(255, 255, 255, 0.256);
614
+ --color-dark-specialbg-tertiary-transparent-tint-15: rgba(255, 255, 255, 0.32);
615
+ --color-dark-specialbg-tertiary-transparent-inverted-shade-15: rgba(9, 26, 45, 0.235);
616
+ --color-dark-specialbg-tertiary-transparent-inverted-shade-20: rgba(9, 25, 42, 0.28);
621
617
  --color-dark-text-link-shade-30: rgb(0, 85, 179);
622
618
  --color-dark-text-link-shade-50: rgb(0, 61, 128);
623
619
  --color-dark-text-link-tint-20: rgb(51, 149, 255);
624
620
  --color-dark-text-link-tint-40: rgb(102, 175, 255);
625
621
  --color-dark-text-primary-alpha-30: rgba(255, 255, 255, 0.3);
622
+ --color-dark-text-primary-shade-24: rgb(194, 194, 194);
626
623
  --color-dark-text-primary-shade-30: rgb(179, 179, 179);
624
+ --color-dark-text-primary-shade-40: rgb(153, 153, 153);
627
625
  --color-dark-text-primary-shade-50: rgb(128, 128, 128);
628
626
  --color-dark-text-primary-tint-20: rgb(255, 255, 255);
629
627
  --color-dark-text-primary-tint-40: rgb(255, 255, 255);
@@ -633,14 +631,16 @@
633
631
  --color-dark-text-primary-inverted-shade-30: rgb(8, 22, 37);
634
632
  --color-dark-text-primary-inverted-tint-7: rgb(28, 47, 67);
635
633
  --color-dark-text-primary-inverted-tint-15: rgb(48, 65, 83);
634
+ --color-dark-text-primary-inverted-tint-24: rgb(70, 85, 101);
636
635
  --color-dark-text-primary-inverted-tint-30: rgb(84, 98, 114);
636
+ --color-dark-text-primary-inverted-tint-40: rgb(109, 121, 134);
637
637
  --color-dark-text-primary-inverted-tint-50: rgb(133, 143, 154);
638
- --color-dark-text-secondary-shade-20: rgb(146, 150, 156);
639
- --color-dark-text-secondary-shade-30: rgb(127, 132, 136);
640
- --color-dark-text-secondary-tint-20: rgb(197, 201, 207);
641
- --color-dark-text-secondary-tint-40: rgb(211, 215, 219);
642
- --color-dark-text-secondary-inverted-shade-20: rgb(67, 78, 91);
643
- --color-dark-text-secondary-inverted-shade-30: rgb(59, 69, 80);
638
+ --color-dark-text-secondary-shade-20: rgba(204, 204, 204, 0.76);
639
+ --color-dark-text-secondary-shade-30: rgba(179, 179, 179, 0.79);
640
+ --color-dark-text-secondary-tint-20: rgba(255, 255, 255, 0.76);
641
+ --color-dark-text-secondary-tint-40: rgba(255, 255, 255, 0.82);
642
+ --color-dark-text-secondary-inverted-shade-20: rgba(9, 25, 42, 0.76);
643
+ --color-dark-text-secondary-inverted-shade-30: rgba(8, 22, 37, 0.79);
644
644
  --color-light-bg-accent-alpha-30: rgba(239, 49, 36, 0.3);
645
645
  --color-light-bg-accent-tint-15: rgb(241, 80, 69);
646
646
  --color-light-bg-accent-tint-20: rgb(242, 90, 80);
@@ -757,12 +757,18 @@
757
757
  --color-light-specialbg-component-inverted-alpha-30: rgba(255, 255, 255, 0.3);
758
758
  --color-light-specialbg-component-inverted-tint-15: rgba(255, 255, 255, 0.2775);
759
759
  --color-light-specialbg-component-inverted-tint-20: rgba(255, 255, 255, 0.32);
760
+ --color-light-specialbg-tertiary-transparent-shade-7: rgba(10, 29, 49, 0.163);
761
+ --color-light-specialbg-tertiary-transparent-shade-15: rgba(9, 26, 45, 0.235);
762
+ --color-light-specialbg-tertiary-transparent-inverted-tint-15: rgba(255, 255, 255, 0.32);
763
+ --color-light-specialbg-tertiary-transparent-inverted-tint-20: rgba(255, 255, 255, 0.36);
760
764
  --color-light-text-link-tint-30: rgb(77, 162, 255);
761
765
  --color-light-text-link-tint-50: rgb(128, 189, 255);
762
766
  --color-light-text-link-shade-20: rgb(0, 98, 204);
763
767
  --color-light-text-link-shade-40: rgb(0, 73, 153);
764
768
  --color-light-text-primary-alpha-30: rgba(11, 31, 53, 0.3);
769
+ --color-light-text-primary-tint-24: rgb(70, 85, 101);
765
770
  --color-light-text-primary-tint-30: rgb(84, 98, 114);
771
+ --color-light-text-primary-tint-40: rgb(109, 121, 134);
766
772
  --color-light-text-primary-tint-50: rgb(133, 143, 154);
767
773
  --color-light-text-primary-shade-20: rgb(9, 25, 42);
768
774
  --color-light-text-primary-shade-40: rgb(7, 19, 32);
@@ -772,14 +778,16 @@
772
778
  --color-light-text-primary-inverted-tint-30: rgb(255, 255, 255);
773
779
  --color-light-text-primary-inverted-shade-7: rgb(237, 237, 237);
774
780
  --color-light-text-primary-inverted-shade-15: rgb(217, 217, 217);
781
+ --color-light-text-primary-inverted-shade-24: rgb(194, 194, 194);
775
782
  --color-light-text-primary-inverted-shade-30: rgb(179, 179, 179);
783
+ --color-light-text-primary-inverted-shade-40: rgb(153, 153, 153);
776
784
  --color-light-text-primary-inverted-shade-50: rgb(128, 128, 128);
777
- --color-light-text-secondary-tint-20: rgb(118, 129, 142);
778
- --color-light-text-secondary-tint-30: rgb(135, 145, 156);
779
- --color-light-text-secondary-shade-20: rgb(67, 78, 91);
780
- --color-light-text-secondary-shade-40: rgb(50, 59, 68);
781
- --color-light-text-secondary-inverted-tint-20: rgb(197, 201, 207);
782
- --color-light-text-secondary-inverted-tint-30: rgb(204, 208, 213);
785
+ --color-light-text-secondary-tint-20: rgba(60, 76, 93, 0.76);
786
+ --color-light-text-secondary-tint-30: rgba(84, 98, 114, 0.79);
787
+ --color-light-text-secondary-shade-20: rgba(9, 25, 42, 0.76);
788
+ --color-light-text-secondary-shade-40: rgba(7, 19, 32, 0.82);
789
+ --color-light-text-secondary-inverted-tint-20: rgba(255, 255, 255, 0.76);
790
+ --color-light-text-secondary-inverted-tint-30: rgba(255, 255, 255, 0.79);
783
791
  --color-static-bg-primary-dark-alpha-10: rgba(11, 31, 53, 0.1);
784
792
  --color-static-bg-primary-dark-alpha-20: rgba(11, 31, 53, 0.2);
785
793
  --color-static-text-primary-light-alpha-30: rgba(255, 255, 255, 0.3);
@@ -976,15 +984,15 @@
976
984
  /* size xl */
977
985
  --secondary-tablist-xl-gaps: var(--gap-m);
978
986
  }
979
- .tabs__title_fowyz {
987
+ .tabs__title_1d7bc {
980
988
  }
981
- .tabs__mobile_fowyz .tabs__title_fowyz {
989
+ .tabs__mobile_1d7bc .tabs__title_1d7bc {
982
990
  padding: var(--primary-tablist-mobile-padding);
983
991
  font-size: var(--primary-tablist-mobile-font-size);
984
992
  font-weight: var(--primary-tablist-mobile-font-weight);
985
993
  font-family: var(--primary-tablist-mobile-font-family);
986
994
  line-height: var(--primary-tablist-mobile-line-height)
987
995
  }
988
- .tabs__mobile_fowyz .tabs__title_fowyz + .tabs__title_fowyz {
996
+ .tabs__mobile_1d7bc .tabs__title_1d7bc + .tabs__title_1d7bc {
989
997
  margin-left: var(--primary-tablist-mobile-gaps);
990
998
  }
@@ -15,5 +15,5 @@ type ScrollableContainerProps = {
15
15
  */
16
16
  activeChild: HTMLElement | null;
17
17
  };
18
- declare const ScrollableContainer: ({ containerClassName, children, activeChild, fullWidthScroll, }: ScrollableContainerProps & Pick<TabsProps, "fullWidthScroll">) => JSX.Element;
18
+ declare const ScrollableContainer: ({ containerClassName, children, activeChild, fullWidthScroll, }: ScrollableContainerProps & Pick<TabsProps, 'fullWidthScroll'>) => JSX.Element;
19
19
  export { ScrollableContainerProps, ScrollableContainer };
@@ -2,7 +2,7 @@ import React, { useEffect } from 'react';
2
2
  import cn from 'classnames';
3
3
  import computeScrollIntoView from 'compute-scroll-into-view';
4
4
 
5
- var styles = {"container":"tabs__container_1fhnm","fullWidthScroll":"tabs__fullWidthScroll_1fhnm"};
5
+ var styles = {"container":"tabs__container_1f1bc","fullWidthScroll":"tabs__fullWidthScroll_1f1bc"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- /* hash: 15m7l */
1
+ /* hash: u4scu */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -36,19 +36,19 @@
36
36
 
37
37
  /* size xl */
38
38
  }
39
- .tabs__container_1fhnm {
39
+ .tabs__container_1f1bc {
40
40
  position: relative;
41
41
  overflow-x: auto;
42
42
  overflow-y: hidden;
43
43
  scroll-behavior: smooth;
44
44
  scrollbar-width: none
45
45
  }
46
- .tabs__container_1fhnm::-webkit-scrollbar {
46
+ .tabs__container_1f1bc::-webkit-scrollbar {
47
47
  display: none;
48
48
  }
49
- .tabs__container_1fhnm > * {
49
+ .tabs__container_1f1bc > * {
50
50
  flex-shrink: 0;
51
51
  }
52
- .tabs__fullWidthScroll_1fhnm {
52
+ .tabs__fullWidthScroll_1f1bc {
53
53
  margin: 0 var(--gap-m-neg);
54
54
  }
@@ -1,8 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { Styles } from "../../typings";
3
- declare const SecondaryTabList: ({ styles, className, containerClassName, size, titles, selectedId, scrollable, fullWidthScroll, tagSize, onChange, dataTestId, }: Pick<import("../../typings").TabsProps, "className" | "onChange" | "size" | "dataTestId" | "containerClassName" | "defaultMatch" | "selectedId" | "scrollable" | "fullWidthScroll"> & {
4
- titles?: import("../../typings").TabListTitle[] | undefined;
5
- } & {
6
- tagSize?: "xxs" | "xs" | "s" | "m" | "l" | "xl" | undefined;
7
- } & Styles) => JSX.Element;
2
+ import { SecondaryTabListProps, Styles } from "../../typings";
3
+ declare const SecondaryTabList: ({ styles, className, containerClassName, size, titles, selectedId, scrollable, fullWidthScroll, tagSize, onChange, dataTestId, }: SecondaryTabListProps & Styles) => JSX.Element;
8
4
  export { SecondaryTabList };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { SecondaryTabListProps } from "../../typings";
3
3
  type SecondaryTabListDesktopProps = Omit<SecondaryTabListProps, 'tagSize'>;
4
- declare const SecondaryTabListDesktop: ({ size, ...restProps }: Pick<SecondaryTabListProps, "className" | "onChange" | "size" | "dataTestId" | "containerClassName" | "defaultMatch" | "selectedId" | "scrollable" | "fullWidthScroll" | "titles">) => JSX.Element;
4
+ declare const SecondaryTabListDesktop: ({ size, ...restProps }: SecondaryTabListDesktopProps) => JSX.Element;
5
5
  export { SecondaryTabListDesktopProps, SecondaryTabListDesktop };
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import 'classnames';
3
+ import '../../useTabs.js';
3
4
  import 'compute-scroll-into-view';
4
5
  import '../scrollable-container/Component.js';
5
- import '../../useTabs.js';
6
6
  import '@alfalab/core-components-tag/modern';
7
7
  import { SecondaryTabList } from './Component.js';
8
- import { c as commonStyles } from '../../index.module-198d371d.js';
8
+ import { c as commonStyles } from '../../index.module-e51ae308.js';
9
9
 
10
- const SecondaryTabListDesktop = ({ size = 's', ...restProps }) => (React.createElement(SecondaryTabList, Object.assign({}, restProps, { size: size, styles: commonStyles, tagSize: size })));
10
+ const SecondaryTabListDesktop = ({ size = 's', ...restProps }) => (React.createElement(SecondaryTabList, { ...restProps, size: size, styles: commonStyles, tagSize: size }));
11
11
 
12
12
  export { SecondaryTabListDesktop };
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
+ import { useTabs } from '../../useTabs.js';
3
4
  import 'compute-scroll-into-view';
4
5
  import { ScrollableContainer } from '../scrollable-container/Component.js';
5
- import { useTabs } from '../../useTabs.js';
6
6
  import { Tag } from '@alfalab/core-components-tag/modern';
7
7
 
8
8
  const SecondaryTabList = ({ styles = {}, className, containerClassName, size, titles = [], selectedId = titles.length ? titles[0].id : undefined, scrollable = true, fullWidthScroll, tagSize = 'xs', onChange, dataTestId, }) => {
@@ -16,7 +16,7 @@ const SecondaryTabList = ({ styles = {}, className, containerClassName, size, ti
16
16
  }) }, titles.map((item, index) => {
17
17
  if (item.hidden)
18
18
  return null;
19
- return (React.createElement(Tag, Object.assign({}, getTabListItemProps(index), { key: item.id, className: cn(styles.title, item.toggleClassName), checked: item.id === selectedId, size: tagSize, rightAddons: item.rightAddons }), item.title));
19
+ return (React.createElement(Tag, { ...getTabListItemProps(index), key: item.id, className: cn(styles.title, item.toggleClassName), checked: item.id === selectedId, size: tagSize, rightAddons: item.rightAddons }, item.title));
20
20
  })));
21
21
  return scrollable ? (React.createElement(ScrollableContainer, { activeChild: focusedTab || selectedTab, containerClassName: containerClassName, fullWidthScroll: fullWidthScroll }, renderContent())) : (React.createElement("div", { className: cn(styles.container, containerClassName) }, renderContent()));
22
22
  };
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { SecondaryTabListProps } from "../../typings";
3
3
  type SecondaryTabListMobileProps = Omit<SecondaryTabListProps, 'size' | 'tagSize'>;
4
- declare const SecondaryTabListMobile: ({ className, ...restProps }: Pick<SecondaryTabListProps, "className" | "onChange" | "dataTestId" | "containerClassName" | "defaultMatch" | "selectedId" | "scrollable" | "fullWidthScroll" | "titles">) => JSX.Element;
4
+ declare const SecondaryTabListMobile: ({ className, ...restProps }: SecondaryTabListMobileProps) => JSX.Element;
5
5
  export { SecondaryTabListMobileProps, SecondaryTabListMobile };