@alfalab/core-components-tabs 8.0.4 → 8.0.6

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 (125) hide show
  1. package/Component-8b2c2707.d.ts +1 -1
  2. package/{Component-5e1b8383.d.ts → Component-dd8ca091.d.ts} +1 -1
  3. package/collapsible.js +2 -2
  4. package/components/primary-tablist/Component.collapsible.desktop.js +1 -1
  5. package/components/primary-tablist/Component.collapsible.mobile.js +2 -2
  6. package/components/primary-tablist/Component.collapsible.responsive.js +2 -2
  7. package/components/primary-tablist/Component.desktop.js +1 -1
  8. package/components/primary-tablist/Component.mobile.js +2 -2
  9. package/components/primary-tablist/Component.responsive.js +2 -2
  10. package/components/primary-tablist/index.css +29 -29
  11. package/components/primary-tablist/mobile.css +32 -32
  12. package/components/scrollable-container/Component.js +2 -4
  13. package/components/scrollable-container/index.css +5 -5
  14. package/components/secondary-tablist/Component.desktop.js +1 -1
  15. package/components/secondary-tablist/Component.mobile.js +2 -2
  16. package/components/secondary-tablist/Component.responsive.js +1 -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.collabsible.desktop.js +1 -1
  22. package/components/tabs/Component.collapsible.mobile.js +2 -2
  23. package/components/tabs/Component.collapsible.responsive.js +2 -2
  24. package/components/tabs/Component.desktop.js +2 -2
  25. package/components/tabs/Component.mobile.js +3 -3
  26. package/components/tabs/Component.responsive.js +3 -3
  27. package/cssm/Component-8b2c2707.d.ts +1 -1
  28. package/cssm/{Component-5e1b8383.d.ts → Component-dd8ca091.d.ts} +1 -1
  29. package/cssm/components/scrollable-container/Component.js +1 -3
  30. package/{esm/hook-9ea9e32c.d.ts → cssm/hook-8abfea97.d.ts} +28 -13
  31. package/cssm/shared-4cd3936b.d.ts +6 -6
  32. package/{esm/typings-5e1b8383.d.ts → cssm/typings-dd8ca091.d.ts} +23 -1
  33. package/{modern/utils-5e1b8383.d.ts → cssm/utils-dd8ca091.d.ts} +6 -3
  34. package/desktop.js +2 -2
  35. package/esm/Component-8b2c2707.d.ts +1 -1
  36. package/{modern/Component-5e1b8383.d.ts → esm/Component-dd8ca091.d.ts} +1 -1
  37. package/esm/collapsible.js +2 -2
  38. package/esm/components/primary-tablist/Component.collapsible.desktop.js +1 -1
  39. package/esm/components/primary-tablist/Component.collapsible.mobile.js +2 -2
  40. package/esm/components/primary-tablist/Component.collapsible.responsive.js +2 -2
  41. package/esm/components/primary-tablist/Component.desktop.js +1 -1
  42. package/esm/components/primary-tablist/Component.mobile.js +2 -2
  43. package/esm/components/primary-tablist/Component.responsive.js +2 -2
  44. package/esm/components/primary-tablist/index.css +29 -29
  45. package/esm/components/primary-tablist/mobile.css +32 -32
  46. package/esm/components/scrollable-container/Component.js +2 -4
  47. package/esm/components/scrollable-container/index.css +5 -5
  48. package/esm/components/secondary-tablist/Component.desktop.js +1 -1
  49. package/esm/components/secondary-tablist/Component.mobile.js +2 -2
  50. package/esm/components/secondary-tablist/Component.responsive.js +1 -1
  51. package/esm/components/secondary-tablist/index.css +11 -11
  52. package/esm/components/secondary-tablist/mobile.css +13 -13
  53. package/esm/components/tab/Component.js +1 -1
  54. package/esm/components/tab/index.css +3 -3
  55. package/esm/components/tabs/Component.collabsible.desktop.js +1 -1
  56. package/esm/components/tabs/Component.collapsible.mobile.js +2 -2
  57. package/esm/components/tabs/Component.collapsible.responsive.js +2 -2
  58. package/esm/components/tabs/Component.desktop.js +2 -2
  59. package/esm/components/tabs/Component.mobile.js +3 -3
  60. package/esm/components/tabs/Component.responsive.js +3 -3
  61. package/esm/desktop.js +2 -2
  62. package/{hook-9ea9e32c.d.ts → esm/hook-8abfea97.d.ts} +28 -13
  63. package/esm/index.js +3 -3
  64. package/esm/index.module-0d6aac07.js +4 -0
  65. package/esm/index.module-dab47194.js +4 -0
  66. package/esm/mobile.js +3 -3
  67. package/esm/mobile.module-9b70a4fc.js +4 -0
  68. package/esm/shared-4cd3936b.d.ts +6 -6
  69. package/{modern/typings-5e1b8383.d.ts → esm/typings-dd8ca091.d.ts} +23 -1
  70. package/esm/{utils-5e1b8383.d.ts → utils-dd8ca091.d.ts} +6 -3
  71. package/{cssm/hook-9ea9e32c.d.ts → hook-8abfea97.d.ts} +28 -13
  72. package/index.js +3 -3
  73. package/index.module-1176452c.js +6 -0
  74. package/index.module-6fac1a11.js +6 -0
  75. package/mobile.js +3 -3
  76. package/{mobile.module-6c98e36e.js → mobile.module-6b11e45e.js} +1 -1
  77. package/modern/Component-8b2c2707.d.ts +1 -1
  78. package/{esm/Component-5e1b8383.d.ts → modern/Component-dd8ca091.d.ts} +1 -1
  79. package/modern/collapsible.js +2 -2
  80. package/modern/components/primary-tablist/Component.collapsible.desktop.js +1 -1
  81. package/modern/components/primary-tablist/Component.collapsible.mobile.js +2 -2
  82. package/modern/components/primary-tablist/Component.collapsible.responsive.js +2 -2
  83. package/modern/components/primary-tablist/Component.desktop.js +1 -1
  84. package/modern/components/primary-tablist/Component.mobile.js +2 -2
  85. package/modern/components/primary-tablist/Component.responsive.js +2 -2
  86. package/modern/components/primary-tablist/index.css +29 -29
  87. package/modern/components/primary-tablist/mobile.css +32 -32
  88. package/modern/components/scrollable-container/Component.js +2 -4
  89. package/modern/components/scrollable-container/index.css +5 -5
  90. package/modern/components/secondary-tablist/Component.desktop.js +1 -1
  91. package/modern/components/secondary-tablist/Component.mobile.js +2 -2
  92. package/modern/components/secondary-tablist/Component.responsive.js +1 -1
  93. package/modern/components/secondary-tablist/index.css +11 -11
  94. package/modern/components/secondary-tablist/mobile.css +13 -13
  95. package/modern/components/tab/Component.js +1 -1
  96. package/modern/components/tab/index.css +3 -3
  97. package/modern/components/tabs/Component.collabsible.desktop.js +1 -1
  98. package/modern/components/tabs/Component.collapsible.mobile.js +2 -2
  99. package/modern/components/tabs/Component.collapsible.responsive.js +2 -2
  100. package/modern/components/tabs/Component.desktop.js +2 -2
  101. package/modern/components/tabs/Component.mobile.js +3 -3
  102. package/modern/components/tabs/Component.responsive.js +3 -3
  103. package/modern/desktop.js +2 -2
  104. package/modern/{hook-9ea9e32c.d.ts → hook-8abfea97.d.ts} +28 -13
  105. package/modern/index.js +3 -3
  106. package/modern/index.module-2f2bbaf5.js +4 -0
  107. package/modern/index.module-9e23227a.js +4 -0
  108. package/modern/mobile.js +3 -3
  109. package/modern/mobile.module-a0b368a1.js +4 -0
  110. package/modern/shared-4cd3936b.d.ts +6 -6
  111. package/{typings-5e1b8383.d.ts → modern/typings-dd8ca091.d.ts} +23 -1
  112. package/{utils-5e1b8383.d.ts → modern/utils-dd8ca091.d.ts} +6 -3
  113. package/package.json +3 -3
  114. package/shared-4cd3936b.d.ts +6 -6
  115. package/src/components/scrollable-container/Component.tsx +1 -2
  116. package/{cssm/typings-5e1b8383.d.ts → typings-dd8ca091.d.ts} +23 -1
  117. package/{cssm/utils-5e1b8383.d.ts → utils-dd8ca091.d.ts} +6 -3
  118. package/esm/index.module-8dec482b.js +0 -4
  119. package/esm/index.module-966b3998.js +0 -4
  120. package/esm/mobile.module-39766406.js +0 -4
  121. package/index.module-07185e4d.js +0 -6
  122. package/index.module-56e66dc4.js +0 -6
  123. package/modern/index.module-9e555350.js +0 -4
  124. package/modern/index.module-d7578f28.js +0 -4
  125. package/modern/mobile.module-90edca62.js +0 -4
@@ -1,4 +1,4 @@
1
- /* hash: gfrn8 */
1
+ /* hash: 1xj0f */
2
2
  :root {
3
3
  }/* deprecated */:root {
4
4
  --color-light-border-accent: #ef3124;
@@ -90,11 +90,11 @@
90
90
  /* size l */
91
91
 
92
92
  /* size xl */
93
- }.tabs__component_u0ax3 {
93
+ }.tabs__component_d0xly {
94
94
  position: relative;
95
95
  display: inline-flex;
96
96
  min-width: 100%
97
- }.tabs__component_u0ax3:before {
97
+ }.tabs__component_d0xly: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_u0ax3 {
105
+ }.tabs__fullWidthScroll_d0xly {
106
106
  min-width: calc(100% - 2 * var(--gap-m));
107
107
  margin: 0 var(--gap-m);
108
- }.tabs__container_u0ax3 {
108
+ }.tabs__container_d0xly {
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_u0ax3 {
115
+ }.tabs__title_d0xly {
116
116
  display: flex;
117
117
  align-items: center;
118
118
  height: 100%;
@@ -129,76 +129,76 @@
129
129
  user-select: none;
130
130
  cursor: pointer;
131
131
  outline: none
132
- }.tabs__title_u0ax3:not(.tabs__disabled_u0ax3):hover {
132
+ }.tabs__title_d0xly:not(.tabs__disabled_d0xly):hover {
133
133
  color: var(--primary-tablist-hover-color);
134
- }.tabs__focused_u0ax3 {
134
+ }.tabs__focused_d0xly {
135
135
  outline: 2px solid var(--focus-color);
136
136
  outline-offset: 2px;
137
- }.tabs__collapsed_u0ax3 {
137
+ }.tabs__collapsed_d0xly {
138
138
  order: 99;
139
139
  visibility: collapse;
140
- }.tabs__selected_u0ax3 {
140
+ }.tabs__selected_d0xly {
141
141
  cursor: default;
142
142
  color: var(--primary-tablist-selected-color);
143
- }.tabs__disabled_u0ax3 {
143
+ }.tabs__disabled_d0xly {
144
144
  cursor: var(--disabled-cursor);
145
145
  color: var(--primary-tablist-disabled-color);
146
- }.tabs__line_u0ax3 {
146
+ }.tabs__line_d0xly {
147
147
  position: absolute;
148
148
  height: 3px;
149
149
  bottom: 0;
150
150
  left: 0;
151
151
  background-color: var(--primary-tablist-line-color);
152
152
  transition: transform 0.2s ease, width 0.2s ease;
153
- }/* sizes */.tabs__s_u0ax3 .tabs__title_u0ax3, .tabs__xs_u0ax3 .tabs__title_u0ax3, .tabs__xxs_u0ax3 .tabs__title_u0ax3 {
153
+ }/* sizes */.tabs__s_d0xly .tabs__title_d0xly, .tabs__xs_d0xly .tabs__title_d0xly, .tabs__xxs_d0xly .tabs__title_d0xly {
154
154
  padding: var(--primary-tablist-s-padding);
155
155
  font-size: var(--primary-tablist-s-font-size);
156
156
  font-weight: var(--primary-tablist-s-font-weight);
157
157
  font-family: var(--primary-tablist-s-font-family);
158
158
  line-height: 24px;
159
- }.tabs__s_u0ax3 .tabs__title_u0ax3 + .tabs__title_u0ax3, .tabs__xs_u0ax3 .tabs__title_u0ax3 + .tabs__title_u0ax3, .tabs__xxs_u0ax3 .tabs__title_u0ax3 + .tabs__title_u0ax3 {
159
+ }.tabs__s_d0xly .tabs__title_d0xly + .tabs__title_d0xly, .tabs__xs_d0xly .tabs__title_d0xly + .tabs__title_d0xly, .tabs__xxs_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
160
160
  margin-left: var(--primary-tablist-s-gaps);
161
- }.tabs__s_u0ax3 .tabs__pickerWrapper_u0ax3, .tabs__xs_u0ax3 .tabs__pickerWrapper_u0ax3, .tabs__xxs_u0ax3 .tabs__pickerWrapper_u0ax3 {
161
+ }.tabs__s_d0xly .tabs__pickerWrapper_d0xly, .tabs__xs_d0xly .tabs__pickerWrapper_d0xly, .tabs__xxs_d0xly .tabs__pickerWrapper_d0xly {
162
162
  margin-left: var(--primary-tablist-s-gaps);
163
- }.tabs__s_u0ax3 .tabs__option_u0ax3, .tabs__xs_u0ax3 .tabs__option_u0ax3, .tabs__xxs_u0ax3 .tabs__option_u0ax3 {
163
+ }.tabs__s_d0xly .tabs__option_d0xly, .tabs__xs_d0xly .tabs__option_d0xly, .tabs__xxs_d0xly .tabs__option_d0xly {
164
164
  padding: 0;
165
- }.tabs__m_u0ax3 .tabs__title_u0ax3 {
165
+ }.tabs__m_d0xly .tabs__title_d0xly {
166
166
  padding: var(--primary-tablist-m-padding);
167
167
  font-size: var(--primary-tablist-m-font-size);
168
168
  font-weight: var(--primary-tablist-m-font-weight);
169
169
  font-family: var(--primary-tablist-m-font-family);
170
170
  line-height: 24px;
171
- }.tabs__m_u0ax3 .tabs__title_u0ax3 + .tabs__title_u0ax3 {
171
+ }.tabs__m_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
172
172
  margin-left: var(--primary-tablist-m-gaps);
173
- }.tabs__m_u0ax3 .tabs__pickerWrapper_u0ax3 {
173
+ }.tabs__m_d0xly .tabs__pickerWrapper_d0xly {
174
174
  margin-left: var(--primary-tablist-m-gaps);
175
- }.tabs__m_u0ax3 .tabs__option_u0ax3 {
175
+ }.tabs__m_d0xly .tabs__option_d0xly {
176
176
  padding: 0;
177
- }.tabs__l_u0ax3 .tabs__title_u0ax3 {
177
+ }.tabs__l_d0xly .tabs__title_d0xly {
178
178
  padding: var(--primary-tablist-l-padding);
179
179
  font-size: var(--primary-tablist-l-font-size);
180
180
  font-weight: var(--primary-tablist-l-font-weight);
181
181
  font-family: var(--primary-tablist-l-font-family);
182
182
  line-height: 24px;
183
- }.tabs__l_u0ax3 .tabs__title_u0ax3 + .tabs__title_u0ax3 {
183
+ }.tabs__l_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
184
184
  margin-left: var(--primary-tablist-l-gaps);
185
- }.tabs__l_u0ax3 .tabs__pickerWrapper_u0ax3 {
185
+ }.tabs__l_d0xly .tabs__pickerWrapper_d0xly {
186
186
  margin-left: var(--primary-tablist-l-gaps);
187
- }.tabs__l_u0ax3 .tabs__option_u0ax3 {
187
+ }.tabs__l_d0xly .tabs__option_d0xly {
188
188
  padding: 0;
189
- }.tabs__xl_u0ax3 .tabs__title_u0ax3 {
189
+ }.tabs__xl_d0xly .tabs__title_d0xly {
190
190
  padding: var(--primary-tablist-xl-padding);
191
191
  font-size: var(--primary-tablist-xl-font-size);
192
192
  font-weight: var(--primary-tablist-xl-font-weight);
193
193
  font-family: var(--primary-tablist-xl-font-family);
194
194
  line-height: 32px;
195
- }.tabs__xl_u0ax3 .tabs__title_u0ax3 + .tabs__title_u0ax3 {
195
+ }.tabs__xl_d0xly .tabs__title_d0xly + .tabs__title_d0xly {
196
196
  margin-left: var(--primary-tablist-xl-gaps);
197
- }.tabs__xl_u0ax3 .tabs__pickerWrapper_u0ax3 {
197
+ }.tabs__xl_d0xly .tabs__pickerWrapper_d0xly {
198
198
  margin-left: var(--primary-tablist-xl-gaps);
199
- }.tabs__xl_u0ax3 .tabs__option_u0ax3 {
199
+ }.tabs__xl_d0xly .tabs__option_d0xly {
200
200
  padding: 0;
201
- }.tabs__rightAddons_u0ax3 {
201
+ }.tabs__rightAddons_d0xly {
202
202
  display: flex;
203
203
  justify-content: center;
204
204
  align-items: center;
@@ -1106,13 +1106,13 @@
1106
1106
 
1107
1107
  /* size xl */
1108
1108
  --secondary-tablist-xl-gaps: var(--gap-m);
1109
- } .tabs__title_1p8jd {
1110
- } .tabs__mobile_1p8jd .tabs__title_1p8jd {
1109
+ } .tabs__title_1wlys {
1110
+ } .tabs__mobile_1wlys .tabs__title_1wlys {
1111
1111
  padding: var(--primary-tablist-mobile-padding);
1112
1112
  font-size: var(--primary-tablist-mobile-font-size);
1113
1113
  font-weight: var(--primary-tablist-mobile-font-weight);
1114
1114
  font-family: var(--primary-tablist-mobile-font-family);
1115
1115
  line-height: var(--primary-tablist-mobile-line-height)
1116
- } .tabs__mobile_1p8jd .tabs__title_1p8jd + .tabs__title_1p8jd {
1116
+ } .tabs__mobile_1wlys .tabs__title_1wlys + .tabs__title_1wlys {
1117
1117
  margin-left: var(--primary-tablist-mobile-gaps);
1118
1118
  }
@@ -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_1oy30","fullWidthScroll":"tabs__fullWidthScroll_1oy30"};
5
+ var styles = {"container":"tabs__container_8y8ix","fullWidthScroll":"tabs__fullWidthScroll_8y8ix"};
6
6
  require('./index.css')
7
7
 
8
8
  /**
@@ -20,10 +20,8 @@ var ScrollableContainer = function (_a) {
20
20
  inline: 'nearest',
21
21
  });
22
22
  // TODO: animate?
23
- actions.forEach(function (_a, index) {
23
+ actions.forEach(function (_a) {
24
24
  var el = _a.el, left = _a.left;
25
- if (index === 0)
26
- return;
27
25
  // eslint-disable-next-line no-param-reassign
28
26
  el.scrollLeft =
29
27
  el.scrollLeft > left
@@ -1,4 +1,4 @@
1
- /* hash: d984n */
1
+ /* hash: 1h304 */
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,7 +42,7 @@
42
42
  /* size l */
43
43
 
44
44
  /* size xl */
45
- } .tabs__container_1oy30 {
45
+ } .tabs__container_8y8ix {
46
46
  position: relative;
47
47
  overflow-x: auto;
48
48
  overflow-y: hidden;
@@ -52,10 +52,10 @@
52
52
  /* focus-outline fix */
53
53
  margin: var(--gap-2xs-neg) 0 var(--gap-2xs-neg) var(--gap-2xs-neg);
54
54
  padding: var(--gap-2xs) 0 var(--gap-2xs) var(--gap-2xs)
55
- } .tabs__container_1oy30::-webkit-scrollbar {
55
+ } .tabs__container_8y8ix::-webkit-scrollbar {
56
56
  display: none;
57
- } .tabs__container_1oy30 > * {
57
+ } .tabs__container_8y8ix > * {
58
58
  flex-shrink: 0;
59
- } .tabs__fullWidthScroll_1oy30 {
59
+ } .tabs__fullWidthScroll_8y8ix {
60
60
  margin: 0 var(--gap-m-neg);
61
61
  }
@@ -2,7 +2,7 @@ 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-966b3998.js';
5
+ import { c as commonStyles } from '../../index.module-0d6aac07.js';
6
6
  import 'classnames';
7
7
  import '../../hooks/use-tabs.js';
8
8
  import '@alfalab/core-components-shared/esm';
@@ -3,13 +3,13 @@ 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-966b3998.js';
6
+ import { c as commonStyles } from '../../index.module-0d6aac07.js';
7
7
  import '../../hooks/use-tabs.js';
8
8
  import '@alfalab/core-components-shared/esm';
9
9
  import '../scrollable-container/Component.js';
10
10
  import 'compute-scroll-into-view';
11
11
 
12
- var mobileStyles = {"title":"tabs__title_4ytlm tabs__title_1067v","mobile":"tabs__mobile_4ytlm"};
12
+ var mobileStyles = {"title":"tabs__title_16zbq tabs__title_17jna","mobile":"tabs__mobile_16zbq"};
13
13
  require('./mobile.css')
14
14
 
15
15
  var styles = __assign(__assign({}, commonStyles), mobileStyles);
@@ -10,7 +10,7 @@ import '../../hooks/use-tabs.js';
10
10
  import '@alfalab/core-components-shared/esm';
11
11
  import '../scrollable-container/Component.js';
12
12
  import 'compute-scroll-into-view';
13
- import '../../index.module-966b3998.js';
13
+ import '../../index.module-0d6aac07.js';
14
14
  import '@alfalab/core-components-tag/esm/mobile';
15
15
 
16
16
  var SecondaryTabListResponsive = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1a0ki */
1
+ /* hash: s2p84 */
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_1067v {
53
+ } .tabs__component_17jna {
54
54
  position: relative;
55
55
  display: inline-flex;
56
- } .tabs__fullWidthScroll_1067v {
56
+ } .tabs__fullWidthScroll_17jna {
57
57
  margin: 0 var(--gap-m);
58
- } .tabs__container_1067v {
58
+ } .tabs__container_17jna {
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_1067v {
64
+ } .tabs__title_17jna {
65
65
  white-space: nowrap;
66
- } /* sizes */ .tabs__xxs_1067v .tabs__title_1067v + .tabs__title_1067v {
66
+ } /* sizes */ .tabs__xxs_17jna .tabs__title_17jna + .tabs__title_17jna {
67
67
  margin-left: var(--secondary-tablist-xxs-gaps);
68
- } .tabs__xs_1067v .tabs__title_1067v + .tabs__title_1067v {
68
+ } .tabs__xs_17jna .tabs__title_17jna + .tabs__title_17jna {
69
69
  margin-left: var(--secondary-tablist-xs-gaps);
70
- } .tabs__s_1067v .tabs__title_1067v + .tabs__title_1067v {
70
+ } .tabs__s_17jna .tabs__title_17jna + .tabs__title_17jna {
71
71
  margin-left: var(--secondary-tablist-s-gaps);
72
- } .tabs__m_1067v .tabs__title_1067v + .tabs__title_1067v {
72
+ } .tabs__m_17jna .tabs__title_17jna + .tabs__title_17jna {
73
73
  margin-left: var(--secondary-tablist-m-gaps);
74
- } .tabs__l_1067v .tabs__title_1067v + .tabs__title_1067v {
74
+ } .tabs__l_17jna .tabs__title_17jna + .tabs__title_17jna {
75
75
  margin-left: var(--secondary-tablist-l-gaps);
76
- } .tabs__xl_1067v .tabs__title_1067v + .tabs__title_1067v {
76
+ } .tabs__xl_17jna .tabs__title_17jna + .tabs__title_17jna {
77
77
  margin-left: var(--secondary-tablist-xl-gaps);
78
78
  }
@@ -1,4 +1,4 @@
1
- /* hash: bly95 */
1
+ /* hash: 1ffq8 */
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_1067v {
54
+ }.tabs__component_17jna {
55
55
  position: relative;
56
56
  display: inline-flex;
57
- }.tabs__fullWidthScroll_1067v {
57
+ }.tabs__fullWidthScroll_17jna {
58
58
  margin: 0 var(--gap-m);
59
- }.tabs__container_1067v {
59
+ }.tabs__container_17jna {
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_1067v {
65
+ }.tabs__title_17jna {
66
66
  white-space: nowrap;
67
- }/* sizes */.tabs__xxs_1067v .tabs__title_1067v + .tabs__title_1067v {
67
+ }/* sizes */.tabs__xxs_17jna .tabs__title_17jna + .tabs__title_17jna {
68
68
  margin-left: var(--secondary-tablist-xxs-gaps);
69
- }.tabs__xs_1067v .tabs__title_1067v + .tabs__title_1067v {
69
+ }.tabs__xs_17jna .tabs__title_17jna + .tabs__title_17jna {
70
70
  margin-left: var(--secondary-tablist-xs-gaps);
71
- }.tabs__s_1067v .tabs__title_1067v + .tabs__title_1067v {
71
+ }.tabs__s_17jna .tabs__title_17jna + .tabs__title_17jna {
72
72
  margin-left: var(--secondary-tablist-s-gaps);
73
- }.tabs__m_1067v .tabs__title_1067v + .tabs__title_1067v {
73
+ }.tabs__m_17jna .tabs__title_17jna + .tabs__title_17jna {
74
74
  margin-left: var(--secondary-tablist-m-gaps);
75
- }.tabs__l_1067v .tabs__title_1067v + .tabs__title_1067v {
75
+ }.tabs__l_17jna .tabs__title_17jna + .tabs__title_17jna {
76
76
  margin-left: var(--secondary-tablist-l-gaps);
77
- }.tabs__xl_1067v .tabs__title_1067v + .tabs__title_1067v {
77
+ }.tabs__xl_17jna .tabs__title_17jna + .tabs__title_17jna {
78
78
  margin-left: var(--secondary-tablist-xl-gaps);
79
79
  } :root {
80
80
  --color-dark-indigo: #0b1f35;
@@ -979,7 +979,7 @@
979
979
 
980
980
  /* size xl */
981
981
  --secondary-tablist-xl-gaps: var(--gap-m);
982
- } .tabs__title_4ytlm {
983
- } .tabs__mobile_4ytlm .tabs__title_4ytlm + .tabs__title_4ytlm {
982
+ } .tabs__title_16zbq {
983
+ } .tabs__mobile_16zbq .tabs__title_16zbq + .tabs__title_16zbq {
984
984
  margin-left: var(--secondary-tablist-mobile-gaps);
985
985
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- var styles = {"component":"tabs__component_154wx","hidden":"tabs__hidden_154wx"};
4
+ var styles = {"component":"tabs__component_1hw0j","hidden":"tabs__hidden_1hw0j"};
5
5
  require('./index.css')
6
6
 
7
7
  var Tab = function (_a) {
@@ -1,8 +1,8 @@
1
- /* hash: 309jb */
2
- .tabs__component_154wx {
1
+ /* hash: ht4mq */
2
+ .tabs__component_1hw0j {
3
3
  outline: none;
4
4
  }
5
5
 
6
- .tabs__hidden_154wx {
6
+ .tabs__hidden_1hw0j {
7
7
  display: none;
8
8
  }
@@ -16,7 +16,7 @@ import '../../hooks/use-tabs.js';
16
16
  import '@alfalab/core-components-shared/esm';
17
17
  import '../../synthetic-events.js';
18
18
  import '../title/Component.js';
19
- import '../../index.module-8dec482b.js';
19
+ import '../../index.module-dab47194.js';
20
20
 
21
21
  var TabsCollapsibleDesktop = function (_a) {
22
22
  var restProps = __rest(_a, []);
@@ -16,8 +16,8 @@ import '../../hooks/use-tabs.js';
16
16
  import '@alfalab/core-components-shared/esm';
17
17
  import '../../synthetic-events.js';
18
18
  import '../title/Component.js';
19
- import '../../index.module-8dec482b.js';
20
- import '../../mobile.module-39766406.js';
19
+ import '../../index.module-dab47194.js';
20
+ import '../../mobile.module-9b70a4fc.js';
21
21
 
22
22
  var TabsCollapsibleMobile = function (_a) {
23
23
  var restProps = __rest(_a, []);
@@ -17,9 +17,9 @@ import '../../hooks/use-tabs.js';
17
17
  import '@alfalab/core-components-shared/esm';
18
18
  import '../../synthetic-events.js';
19
19
  import '../title/Component.js';
20
- import '../../index.module-8dec482b.js';
20
+ import '../../index.module-dab47194.js';
21
21
  import '../primary-tablist/Component.collapsible.mobile.js';
22
- import '../../mobile.module-39766406.js';
22
+ import '../../mobile.module-9b70a4fc.js';
23
23
 
24
24
  var TabsCollapsibleResponsive = function (_a) {
25
25
  var restProps = __rest(_a, []);
@@ -11,10 +11,10 @@ import '@alfalab/core-components-shared/esm';
11
11
  import '../scrollable-container/Component.js';
12
12
  import 'compute-scroll-into-view';
13
13
  import '../title/Component.js';
14
- import '../../index.module-8dec482b.js';
14
+ import '../../index.module-dab47194.js';
15
15
  import '@alfalab/core-components-tag/esm/desktop';
16
16
  import '../secondary-tablist/Component.js';
17
- import '../../index.module-966b3998.js';
17
+ import '../../index.module-0d6aac07.js';
18
18
 
19
19
  var views = {
20
20
  primary: PrimaryTabListDesktop,
@@ -11,11 +11,11 @@ import '@alfalab/core-components-shared/esm';
11
11
  import '../scrollable-container/Component.js';
12
12
  import 'compute-scroll-into-view';
13
13
  import '../title/Component.js';
14
- import '../../index.module-8dec482b.js';
15
- import '../../mobile.module-39766406.js';
14
+ import '../../index.module-dab47194.js';
15
+ import '../../mobile.module-9b70a4fc.js';
16
16
  import '@alfalab/core-components-tag/esm/mobile';
17
17
  import '../secondary-tablist/Component.js';
18
- import '../../index.module-966b3998.js';
18
+ import '../../index.module-0d6aac07.js';
19
19
 
20
20
  var views = {
21
21
  primary: PrimaryTabListMobile,
@@ -13,13 +13,13 @@ import '@alfalab/core-components-shared/esm';
13
13
  import '../scrollable-container/Component.js';
14
14
  import 'compute-scroll-into-view';
15
15
  import '../title/Component.js';
16
- import '../../index.module-8dec482b.js';
16
+ import '../../index.module-dab47194.js';
17
17
  import '../primary-tablist/Component.mobile.js';
18
- import '../../mobile.module-39766406.js';
18
+ import '../../mobile.module-9b70a4fc.js';
19
19
  import '../secondary-tablist/Component.desktop.js';
20
20
  import '@alfalab/core-components-tag/esm/desktop';
21
21
  import '../secondary-tablist/Component.js';
22
- import '../../index.module-966b3998.js';
22
+ import '../../index.module-0d6aac07.js';
23
23
  import '../secondary-tablist/Component.mobile.js';
24
24
  import '@alfalab/core-components-tag/esm/mobile';
25
25
 
package/esm/desktop.js CHANGED
@@ -12,8 +12,8 @@ import '@alfalab/core-components-shared/esm';
12
12
  import './components/scrollable-container/Component.js';
13
13
  import 'compute-scroll-into-view';
14
14
  import './components/title/Component.js';
15
- import './index.module-8dec482b.js';
15
+ import './index.module-dab47194.js';
16
16
  import '@alfalab/core-components-tag/esm/desktop';
17
17
  import './components/secondary-tablist/Component.js';
18
- import './index.module-966b3998.js';
18
+ import './index.module-0d6aac07.js';
19
19
  import './components/tabs/Component.js';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BaseSelectProps, OptionShape } from "./typings-5e1b8383";
2
+ import { BaseSelectProps, OptionShape } from "./typings-dd8ca091";
3
3
  type UseSelectWithApplyProps = {
4
4
  /**
5
5
  * Список выбранных пунктов
@@ -21,6 +21,14 @@ type UseSelectWithApplyProps = {
21
21
  * Пропсы, которые будут прокинуты в компонент списка
22
22
  */
23
23
  optionsListProps?: BaseSelectProps['optionsListProps'];
24
+ /**
25
+ * Включает отображение поиска
26
+ */
27
+ showSearch?: BaseSelectProps['showSearch'];
28
+ /**
29
+ * Настройки поиска
30
+ */
31
+ searchProps?: BaseSelectProps['searchProps'];
24
32
  /**
25
33
  * Показывать кнопку очистки
26
34
  */
@@ -35,21 +43,21 @@ type UseSelectWithApplyProps = {
35
43
  showHeaderWithSelectAll?: boolean;
36
44
  };
37
45
  declare const SELECT_ALL_KEY = "select_all";
38
- declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, }: UseSelectWithApplyProps): {
39
- OptionsList: import("react").ForwardRefExoticComponent<import("./typings-5e1b8383").OptionsListProps & {
46
+ declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
47
+ OptionsList: import("react").ForwardRefExoticComponent<import("./typings-dd8ca091").OptionsListProps & {
40
48
  showClear?: boolean | undefined;
41
- onClose?: (() => void) | undefined;
49
+ onClose?: (() => void) | undefined; /**
50
+ * Компонент выпадающего меню
51
+ */
42
52
  selectedDraft?: OptionShape[] | undefined;
43
- OptionsList?: import("react").FC<import("./typings-5e1b8383").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
44
- Footer?: import("react").FC<import("./Component-5e1b8383").FooterProps> | undefined;
53
+ OptionsList?: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
54
+ Footer?: import("react").FC<import("./Component-dd8ca091").FooterProps> | undefined;
45
55
  Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
46
- headerProps?: import("./Component-ebda875c").HeaderProps | undefined; /**
47
- * Показывать кнопку очистки
48
- */
56
+ headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
49
57
  showHeaderWithSelectAll?: boolean | undefined;
50
58
  } & import("react").RefAttributes<HTMLDivElement>>;
51
59
  optionsListProps: {
52
- OptionsList: import("react").FC<import("./typings-5e1b8383").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
60
+ OptionsList: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
53
61
  showClear: boolean;
54
62
  onClear: () => void;
55
63
  onApply: () => void;
@@ -64,12 +72,19 @@ declare function useSelectWithApply({ options, selected, onChange, OptionsList,
64
72
  };
65
73
  allowUnselect: boolean;
66
74
  multiple: boolean;
67
- options: (OptionShape | import("./typings-5e1b8383").GroupShape | {
75
+ options: (OptionShape | import("./typings-dd8ca091").GroupShape | {
68
76
  key: string;
69
77
  content: string;
70
78
  })[];
71
- onChange: (payload: import("./typings-5e1b8383").BaseSelectChangePayload) => void;
79
+ onChange: (payload: import("./typings-dd8ca091").BaseSelectChangePayload) => void;
72
80
  selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
81
+ showSearch: boolean | undefined;
82
+ searchProps: {
83
+ value: string;
84
+ onChange: import("react").Dispatch<import("react").SetStateAction<string>>;
85
+ componentProps?: import("./index-c44170fe").InputProps | undefined;
86
+ accessor?: ((option: OptionShape) => string) | undefined;
87
+ } | undefined;
73
88
  };
74
- export * from "./Component-5e1b8383";
89
+ export * from "./Component-dd8ca091";
75
90
  export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
package/esm/index.js CHANGED
@@ -14,13 +14,13 @@ import '@alfalab/core-components-shared/esm';
14
14
  import './components/scrollable-container/Component.js';
15
15
  import 'compute-scroll-into-view';
16
16
  import './components/title/Component.js';
17
- import './index.module-8dec482b.js';
17
+ import './index.module-dab47194.js';
18
18
  import './components/primary-tablist/Component.mobile.js';
19
- import './mobile.module-39766406.js';
19
+ import './mobile.module-9b70a4fc.js';
20
20
  import './components/secondary-tablist/Component.desktop.js';
21
21
  import '@alfalab/core-components-tag/esm/desktop';
22
22
  import './components/secondary-tablist/Component.js';
23
- import './index.module-966b3998.js';
23
+ import './index.module-0d6aac07.js';
24
24
  import './components/secondary-tablist/Component.mobile.js';
25
25
  import '@alfalab/core-components-tag/esm/mobile';
26
26
  import './components/tabs/Component.js';
@@ -0,0 +1,4 @@
1
+ var commonStyles = {"component":"tabs__component_17jna","fullWidthScroll":"tabs__fullWidthScroll_17jna","container":"tabs__container_17jna","title":"tabs__title_17jna","xxs":"tabs__xxs_17jna","xs":"tabs__xs_17jna","s":"tabs__s_17jna","m":"tabs__m_17jna","l":"tabs__l_17jna","xl":"tabs__xl_17jna"};
2
+ require('./components/secondary-tablist/index.css')
3
+
4
+ export { commonStyles as c };
@@ -0,0 +1,4 @@
1
+ var commonStyles = {"component":"tabs__component_d0xly","fullWidthScroll":"tabs__fullWidthScroll_d0xly","container":"tabs__container_d0xly","title":"tabs__title_d0xly","disabled":"tabs__disabled_d0xly","focused":"tabs__focused_d0xly","collapsed":"tabs__collapsed_d0xly","selected":"tabs__selected_d0xly","line":"tabs__line_d0xly","s":"tabs__s_d0xly","xs":"tabs__xs_d0xly","xxs":"tabs__xxs_d0xly","pickerWrapper":"tabs__pickerWrapper_d0xly","option":"tabs__option_d0xly","m":"tabs__m_d0xly","l":"tabs__l_d0xly","xl":"tabs__xl_d0xly","rightAddons":"tabs__rightAddons_d0xly"};
2
+ require('./components/primary-tablist/index.css')
3
+
4
+ export { commonStyles as c };
package/esm/mobile.js CHANGED
@@ -12,9 +12,9 @@ import '@alfalab/core-components-shared/esm';
12
12
  import './components/scrollable-container/Component.js';
13
13
  import 'compute-scroll-into-view';
14
14
  import './components/title/Component.js';
15
- import './index.module-8dec482b.js';
16
- import './mobile.module-39766406.js';
15
+ import './index.module-dab47194.js';
16
+ import './mobile.module-9b70a4fc.js';
17
17
  import '@alfalab/core-components-tag/esm/mobile';
18
18
  import './components/secondary-tablist/Component.js';
19
- import './index.module-966b3998.js';
19
+ import './index.module-0d6aac07.js';
20
20
  import './components/tabs/Component.js';
@@ -0,0 +1,4 @@
1
+ var mobileStyles = {"title":"tabs__title_1wlys tabs__title_d0xly","mobile":"tabs__mobile_1wlys"};
2
+ require('./components/primary-tablist/mobile.css')
3
+
4
+ export { mobileStyles as m };
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import React from "react";
3
3
  import { ReactNode } from "react";
4
- import { BaseSelectProps, OptionProps, OptionShape } from "./typings-5e1b8383";
4
+ import { BaseSelectProps, OptionProps, OptionShape } from "./typings-dd8ca091";
5
5
  import { BottomSheetProps } from "./index-f12ee135";
6
- import { UseSelectWithApplyProps } from "./hook-9ea9e32c";
6
+ import { UseSelectWithApplyProps } from "./hook-8abfea97";
7
7
  // eslint-disable-next-line @typescript-eslint/naming-convention
8
8
  type useSelectWithLoadingProps = {
9
9
  loading?: boolean;
@@ -100,8 +100,8 @@ type FooterProps = {
100
100
  };
101
101
  declare const Footer: ({ handleApply, handleClear, showClear }: FooterProps) => React.JSX.Element;
102
102
  export * from "./index-ebda875c";
103
- export * from "./Component-5e1b8383";
103
+ export * from "./Component-dd8ca091";
104
104
  export { useSelectWithLoading, useLazyLoading, AdditionalMobileProps, SelectMobileProps, SelectMobile, FooterProps, Footer };
105
- export * from "./hook-9ea9e32c";
106
- export * from "./typings-5e1b8383";
107
- export * from "./utils-5e1b8383";
105
+ export * from "./hook-8abfea97";
106
+ export * from "./typings-dd8ca091";
107
+ export * from "./utils-dd8ca091";