@alfalab/core-components-tabs 8.0.3 → 8.0.5

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 (138) hide show
  1. package/Component-8b2c2707.d.ts +1 -1
  2. package/{Component-5e1b8383.d.ts → Component-dd8ca091.d.ts} +1 -1
  3. package/Component.mobile-ebda875c.d.ts +1 -1
  4. package/collapsible.js +2 -2
  5. package/components/primary-tablist/Component.collapsible.desktop.js +1 -1
  6. package/components/primary-tablist/Component.collapsible.js +1 -1
  7. package/components/primary-tablist/Component.collapsible.mobile.js +2 -2
  8. package/components/primary-tablist/Component.collapsible.responsive.js +3 -3
  9. package/components/primary-tablist/Component.desktop.js +1 -1
  10. package/components/primary-tablist/Component.mobile.js +2 -2
  11. package/components/primary-tablist/Component.responsive.js +3 -3
  12. package/components/primary-tablist/index.css +29 -29
  13. package/components/primary-tablist/mobile.css +32 -32
  14. package/components/scrollable-container/Component.js +1 -1
  15. package/components/scrollable-container/index.css +5 -5
  16. package/components/secondary-tablist/Component.desktop.js +1 -1
  17. package/components/secondary-tablist/Component.mobile.js +2 -2
  18. package/components/secondary-tablist/Component.responsive.js +2 -2
  19. package/components/secondary-tablist/index.css +11 -11
  20. package/components/secondary-tablist/mobile.css +13 -13
  21. package/components/tab/Component.js +1 -1
  22. package/components/tab/index.css +3 -3
  23. package/components/tabs/Component.collabsible.desktop.js +1 -1
  24. package/components/tabs/Component.collapsible.mobile.js +2 -2
  25. package/components/tabs/Component.collapsible.responsive.js +2 -2
  26. package/components/tabs/Component.desktop.js +2 -2
  27. package/components/tabs/Component.mobile.js +3 -3
  28. package/components/tabs/Component.responsive.js +3 -3
  29. package/cssm/Component-8b2c2707.d.ts +1 -1
  30. package/cssm/{Component-5e1b8383.d.ts → Component-dd8ca091.d.ts} +1 -1
  31. package/cssm/Component.mobile-ebda875c.d.ts +1 -1
  32. package/cssm/components/primary-tablist/Component.collapsible.js +1 -1
  33. package/cssm/components/primary-tablist/Component.collapsible.responsive.js +1 -1
  34. package/cssm/components/primary-tablist/Component.responsive.js +1 -1
  35. package/cssm/components/secondary-tablist/Component.responsive.js +1 -1
  36. package/{esm/hook-9ea9e32c.d.ts → cssm/hook-8abfea97.d.ts} +28 -13
  37. package/cssm/shared-4cd3936b.d.ts +6 -6
  38. package/{esm/typings-5e1b8383.d.ts → cssm/typings-dd8ca091.d.ts} +23 -1
  39. package/{modern/utils-5e1b8383.d.ts → cssm/utils-dd8ca091.d.ts} +6 -3
  40. package/desktop.js +2 -2
  41. package/esm/Component-8b2c2707.d.ts +1 -1
  42. package/{modern/Component-5e1b8383.d.ts → esm/Component-dd8ca091.d.ts} +1 -1
  43. package/esm/Component.mobile-ebda875c.d.ts +1 -1
  44. package/esm/collapsible.js +2 -2
  45. package/esm/components/primary-tablist/Component.collapsible.desktop.js +1 -1
  46. package/esm/components/primary-tablist/Component.collapsible.js +1 -1
  47. package/esm/components/primary-tablist/Component.collapsible.mobile.js +2 -2
  48. package/esm/components/primary-tablist/Component.collapsible.responsive.js +3 -3
  49. package/esm/components/primary-tablist/Component.desktop.js +1 -1
  50. package/esm/components/primary-tablist/Component.mobile.js +2 -2
  51. package/esm/components/primary-tablist/Component.responsive.js +3 -3
  52. package/esm/components/primary-tablist/index.css +29 -29
  53. package/esm/components/primary-tablist/mobile.css +32 -32
  54. package/esm/components/scrollable-container/Component.js +1 -1
  55. package/esm/components/scrollable-container/index.css +5 -5
  56. package/esm/components/secondary-tablist/Component.desktop.js +1 -1
  57. package/esm/components/secondary-tablist/Component.mobile.js +2 -2
  58. package/esm/components/secondary-tablist/Component.responsive.js +2 -2
  59. package/esm/components/secondary-tablist/index.css +11 -11
  60. package/esm/components/secondary-tablist/mobile.css +13 -13
  61. package/esm/components/tab/Component.js +1 -1
  62. package/esm/components/tab/index.css +3 -3
  63. package/esm/components/tabs/Component.collabsible.desktop.js +1 -1
  64. package/esm/components/tabs/Component.collapsible.mobile.js +2 -2
  65. package/esm/components/tabs/Component.collapsible.responsive.js +2 -2
  66. package/esm/components/tabs/Component.desktop.js +2 -2
  67. package/esm/components/tabs/Component.mobile.js +3 -3
  68. package/esm/components/tabs/Component.responsive.js +3 -3
  69. package/esm/desktop.js +2 -2
  70. package/{hook-9ea9e32c.d.ts → esm/hook-8abfea97.d.ts} +28 -13
  71. package/esm/index.js +3 -3
  72. package/esm/index.module-44241c72.js +4 -0
  73. package/esm/index.module-5693d6aa.js +4 -0
  74. package/esm/mobile.js +3 -3
  75. package/esm/mobile.module-fcb33bf4.js +4 -0
  76. package/esm/shared-4cd3936b.d.ts +6 -6
  77. package/{modern/typings-5e1b8383.d.ts → esm/typings-dd8ca091.d.ts} +23 -1
  78. package/esm/{utils-5e1b8383.d.ts → utils-dd8ca091.d.ts} +6 -3
  79. package/{cssm/hook-9ea9e32c.d.ts → hook-8abfea97.d.ts} +28 -13
  80. package/index.js +3 -3
  81. package/index.module-90a9d1ab.js +6 -0
  82. package/index.module-e664b0d7.js +6 -0
  83. package/mobile.js +3 -3
  84. package/{mobile.module-7042b3c1.js → mobile.module-2d465819.js} +1 -1
  85. package/modern/Component-8b2c2707.d.ts +1 -1
  86. package/{esm/Component-5e1b8383.d.ts → modern/Component-dd8ca091.d.ts} +1 -1
  87. package/modern/Component.mobile-ebda875c.d.ts +1 -1
  88. package/modern/collapsible.js +2 -2
  89. package/modern/components/primary-tablist/Component.collapsible.desktop.js +1 -1
  90. package/modern/components/primary-tablist/Component.collapsible.js +1 -1
  91. package/modern/components/primary-tablist/Component.collapsible.mobile.js +2 -2
  92. package/modern/components/primary-tablist/Component.collapsible.responsive.js +3 -3
  93. package/modern/components/primary-tablist/Component.desktop.js +1 -1
  94. package/modern/components/primary-tablist/Component.mobile.js +2 -2
  95. package/modern/components/primary-tablist/Component.responsive.js +3 -3
  96. package/modern/components/primary-tablist/index.css +29 -29
  97. package/modern/components/primary-tablist/mobile.css +32 -32
  98. package/modern/components/scrollable-container/Component.js +1 -1
  99. package/modern/components/scrollable-container/index.css +5 -5
  100. package/modern/components/secondary-tablist/Component.desktop.js +1 -1
  101. package/modern/components/secondary-tablist/Component.mobile.js +2 -2
  102. package/modern/components/secondary-tablist/Component.responsive.js +2 -2
  103. package/modern/components/secondary-tablist/index.css +11 -11
  104. package/modern/components/secondary-tablist/mobile.css +13 -13
  105. package/modern/components/tab/Component.js +1 -1
  106. package/modern/components/tab/index.css +3 -3
  107. package/modern/components/tabs/Component.collabsible.desktop.js +1 -1
  108. package/modern/components/tabs/Component.collapsible.mobile.js +2 -2
  109. package/modern/components/tabs/Component.collapsible.responsive.js +2 -2
  110. package/modern/components/tabs/Component.desktop.js +2 -2
  111. package/modern/components/tabs/Component.mobile.js +3 -3
  112. package/modern/components/tabs/Component.responsive.js +3 -3
  113. package/modern/desktop.js +2 -2
  114. package/modern/{hook-9ea9e32c.d.ts → hook-8abfea97.d.ts} +28 -13
  115. package/modern/index.js +3 -3
  116. package/modern/index.module-23183c4b.js +4 -0
  117. package/modern/index.module-d2ba19bc.js +4 -0
  118. package/modern/mobile.js +3 -3
  119. package/modern/mobile.module-f26b8228.js +4 -0
  120. package/modern/shared-4cd3936b.d.ts +6 -6
  121. package/{typings-5e1b8383.d.ts → modern/typings-dd8ca091.d.ts} +23 -1
  122. package/{utils-5e1b8383.d.ts → modern/utils-dd8ca091.d.ts} +6 -3
  123. package/package.json +4 -4
  124. package/shared-4cd3936b.d.ts +6 -6
  125. package/src/components/primary-tablist/Component.collapsible.responsive.tsx +1 -1
  126. package/src/components/primary-tablist/Component.collapsible.tsx +1 -1
  127. package/src/components/primary-tablist/Component.responsive.tsx +1 -1
  128. package/src/components/secondary-tablist/Component.responsive.tsx +1 -1
  129. package/{cssm/typings-5e1b8383.d.ts → typings-dd8ca091.d.ts} +23 -1
  130. package/{cssm/utils-5e1b8383.d.ts → utils-dd8ca091.d.ts} +6 -3
  131. package/esm/index.module-0be8bd7d.js +0 -4
  132. package/esm/index.module-1827f95c.js +0 -4
  133. package/esm/mobile.module-ae866e14.js +0 -4
  134. package/index.module-8a17d41d.js +0 -6
  135. package/index.module-c9e2f520.js +0 -6
  136. package/modern/index.module-5d3d89d6.js +0 -4
  137. package/modern/index.module-785bafbf.js +0 -4
  138. package/modern/mobile.module-00cdb277.js +0 -4
@@ -1,4 +1,4 @@
1
- /* hash: 19g6z */
1
+ /* hash: qsk1n */
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_1g8vi {
54
+ }.tabs__component_1nch2 {
55
55
  position: relative;
56
56
  display: inline-flex;
57
- }.tabs__fullWidthScroll_1g8vi {
57
+ }.tabs__fullWidthScroll_1nch2 {
58
58
  margin: 0 var(--gap-m);
59
- }.tabs__container_1g8vi {
59
+ }.tabs__container_1nch2 {
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_1g8vi {
65
+ }.tabs__title_1nch2 {
66
66
  white-space: nowrap;
67
- }/* sizes */.tabs__xxs_1g8vi .tabs__title_1g8vi + .tabs__title_1g8vi {
67
+ }/* sizes */.tabs__xxs_1nch2 .tabs__title_1nch2 + .tabs__title_1nch2 {
68
68
  margin-left: var(--secondary-tablist-xxs-gaps);
69
- }.tabs__xs_1g8vi .tabs__title_1g8vi + .tabs__title_1g8vi {
69
+ }.tabs__xs_1nch2 .tabs__title_1nch2 + .tabs__title_1nch2 {
70
70
  margin-left: var(--secondary-tablist-xs-gaps);
71
- }.tabs__s_1g8vi .tabs__title_1g8vi + .tabs__title_1g8vi {
71
+ }.tabs__s_1nch2 .tabs__title_1nch2 + .tabs__title_1nch2 {
72
72
  margin-left: var(--secondary-tablist-s-gaps);
73
- }.tabs__m_1g8vi .tabs__title_1g8vi + .tabs__title_1g8vi {
73
+ }.tabs__m_1nch2 .tabs__title_1nch2 + .tabs__title_1nch2 {
74
74
  margin-left: var(--secondary-tablist-m-gaps);
75
- }.tabs__l_1g8vi .tabs__title_1g8vi + .tabs__title_1g8vi {
75
+ }.tabs__l_1nch2 .tabs__title_1nch2 + .tabs__title_1nch2 {
76
76
  margin-left: var(--secondary-tablist-l-gaps);
77
- }.tabs__xl_1g8vi .tabs__title_1g8vi + .tabs__title_1g8vi {
77
+ }.tabs__xl_1nch2 .tabs__title_1nch2 + .tabs__title_1nch2 {
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_xqbx7 {
983
- } .tabs__mobile_xqbx7 .tabs__title_xqbx7 + .tabs__title_xqbx7 {
982
+ } .tabs__title_e7tf5 {
983
+ } .tabs__mobile_e7tf5 .tabs__title_e7tf5 + .tabs__title_e7tf5 {
984
984
  margin-left: var(--secondary-tablist-mobile-gaps);
985
985
  }
@@ -10,7 +10,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
10
10
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
11
11
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
12
12
 
13
- var styles = {"component":"tabs__component_1cywt","hidden":"tabs__hidden_1cywt"};
13
+ var styles = {"component":"tabs__component_1a20n","hidden":"tabs__hidden_1a20n"};
14
14
  require('./index.css')
15
15
 
16
16
  var Tab = function (_a) {
@@ -1,8 +1,8 @@
1
- /* hash: bf4x3 */
2
- .tabs__component_1cywt {
1
+ /* hash: doaw0 */
2
+ .tabs__component_1a20n {
3
3
  outline: none;
4
4
  }
5
5
 
6
- .tabs__hidden_1cywt {
6
+ .tabs__hidden_1a20n {
7
7
  display: none;
8
8
  }
@@ -20,7 +20,7 @@ require('../../hooks/use-tabs.js');
20
20
  require('@alfalab/core-components-shared');
21
21
  require('../../synthetic-events.js');
22
22
  require('../title/Component.js');
23
- require('../../index.module-8a17d41d.js');
23
+ require('../../index.module-90a9d1ab.js');
24
24
 
25
25
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
26
26
 
@@ -20,8 +20,8 @@ require('../../hooks/use-tabs.js');
20
20
  require('@alfalab/core-components-shared');
21
21
  require('../../synthetic-events.js');
22
22
  require('../title/Component.js');
23
- require('../../index.module-8a17d41d.js');
24
- require('../../mobile.module-7042b3c1.js');
23
+ require('../../index.module-90a9d1ab.js');
24
+ require('../../mobile.module-2d465819.js');
25
25
 
26
26
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
27
27
 
@@ -21,9 +21,9 @@ require('../../hooks/use-tabs.js');
21
21
  require('@alfalab/core-components-shared');
22
22
  require('../../synthetic-events.js');
23
23
  require('../title/Component.js');
24
- require('../../index.module-8a17d41d.js');
24
+ require('../../index.module-90a9d1ab.js');
25
25
  require('../primary-tablist/Component.collapsible.mobile.js');
26
- require('../../mobile.module-7042b3c1.js');
26
+ require('../../mobile.module-2d465819.js');
27
27
 
28
28
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
29
29
 
@@ -15,10 +15,10 @@ require('@alfalab/core-components-shared');
15
15
  require('../scrollable-container/Component.js');
16
16
  require('compute-scroll-into-view');
17
17
  require('../title/Component.js');
18
- require('../../index.module-8a17d41d.js');
18
+ require('../../index.module-90a9d1ab.js');
19
19
  require('@alfalab/core-components-tag/desktop');
20
20
  require('../secondary-tablist/Component.js');
21
- require('../../index.module-c9e2f520.js');
21
+ require('../../index.module-e664b0d7.js');
22
22
 
23
23
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
24
24
 
@@ -15,11 +15,11 @@ require('@alfalab/core-components-shared');
15
15
  require('../scrollable-container/Component.js');
16
16
  require('compute-scroll-into-view');
17
17
  require('../title/Component.js');
18
- require('../../index.module-8a17d41d.js');
19
- require('../../mobile.module-7042b3c1.js');
18
+ require('../../index.module-90a9d1ab.js');
19
+ require('../../mobile.module-2d465819.js');
20
20
  require('@alfalab/core-components-tag/mobile');
21
21
  require('../secondary-tablist/Component.js');
22
- require('../../index.module-c9e2f520.js');
22
+ require('../../index.module-e664b0d7.js');
23
23
 
24
24
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
25
25
 
@@ -17,13 +17,13 @@ require('@alfalab/core-components-shared');
17
17
  require('../scrollable-container/Component.js');
18
18
  require('compute-scroll-into-view');
19
19
  require('../title/Component.js');
20
- require('../../index.module-8a17d41d.js');
20
+ require('../../index.module-90a9d1ab.js');
21
21
  require('../primary-tablist/Component.mobile.js');
22
- require('../../mobile.module-7042b3c1.js');
22
+ require('../../mobile.module-2d465819.js');
23
23
  require('../secondary-tablist/Component.desktop.js');
24
24
  require('@alfalab/core-components-tag/desktop');
25
25
  require('../secondary-tablist/Component.js');
26
- require('../../index.module-c9e2f520.js');
26
+ require('../../index.module-e664b0d7.js');
27
27
  require('../secondary-tablist/Component.mobile.js');
28
28
  require('@alfalab/core-components-tag/mobile');
29
29
 
@@ -3,7 +3,7 @@ import React from "react";
3
3
  import { FC, SVGProps } from "react";
4
4
  import { PickerButtonSize, PickerButtonVariant } from "./types-4480ac4f";
5
5
  import { ButtonProps } from "./index-8b2c2707";
6
- import { FieldProps as BaseFieldProps } from "./typings-5e1b8383";
6
+ import { FieldProps as BaseFieldProps } from "./typings-dd8ca091";
7
7
  declare const getIcon: (variant: PickerButtonVariant, size: PickerButtonSize) => FC<SVGProps<SVGSVGElement>>;
8
8
  type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
9
9
  buttonSize?: PickerButtonSize;
@@ -3,7 +3,7 @@ import React from "react";
3
3
  import { FC, ReactNode } from "react";
4
4
  import { ModalMobileProps, ContentProps } from "./typings-bdb4c6b9";
5
5
  import { BottomSheetProps } from "./index-f12ee135";
6
- import { BaseSelectProps } from "./typings-5e1b8383";
6
+ import { BaseSelectProps } from "./typings-dd8ca091";
7
7
  type FooterProps = {
8
8
  /**
9
9
  * Контент футера
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { BaseTagProps } from "./index-ebda875c";
4
- type TagMobileProps = Omit<BaseTagProps, 'styles'>;
4
+ type TagMobileProps = Omit<BaseTagProps, 'styles' | 'colorStylesMap'>;
5
5
  declare const TagMobile: React.ForwardRefExoticComponent<TagMobileProps & React.RefAttributes<HTMLButtonElement>>;
6
6
  export { TagMobileProps, TagMobile };
@@ -25,7 +25,7 @@ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
25
25
 
26
26
  var DEFAULT_STYLES = {};
27
27
  var CollapsiblePrimaryTabList = function (_a) {
28
- var size = _a.size, className = _a.className, containerClassName = _a.containerClassName, _b = _a.titles, titles = _b === void 0 ? [] : _b, _c = _a.styles, styles = _c === void 0 ? DEFAULT_STYLES : _c, _d = _a.selectedId, selectedId = _d === void 0 ? titles.length ? titles[0].id : undefined : _d, collapsedTabsIds = _a.collapsedTabsIds, fullWidthScroll = _a.fullWidthScroll, onChange = _a.onChange, dataTestId = _a.dataTestId, _e = _a.breakpoint, breakpoint = _e === void 0 ? 768 : _e, defaultMatchMediaValue = _a.defaultMatchMediaValue;
28
+ var size = _a.size, className = _a.className, containerClassName = _a.containerClassName, _b = _a.titles, titles = _b === void 0 ? [] : _b, _c = _a.styles, styles = _c === void 0 ? DEFAULT_STYLES : _c, _d = _a.selectedId, selectedId = _d === void 0 ? titles.length ? titles[0].id : undefined : _d, collapsedTabsIds = _a.collapsedTabsIds, fullWidthScroll = _a.fullWidthScroll, onChange = _a.onChange, dataTestId = _a.dataTestId, _e = _a.breakpoint, breakpoint = _e === void 0 ? 1024 : _e, defaultMatchMediaValue = _a.defaultMatchMediaValue;
29
29
  var lineRef = React.useRef(null);
30
30
  var _f = hooks_useTablistTitles.useTablistTitles({
31
31
  titles: titles,
@@ -28,7 +28,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
28
28
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
29
29
 
30
30
  var CollapsiblePrimaryTabListResponsive = function (_a) {
31
- var size = _a.size, fullWidthScroll = _a.fullWidthScroll, _b = _a.breakpoint, breakpoint = _b === void 0 ? 768 : _b, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = tslib.__rest(_a, ["size", "fullWidthScroll", "breakpoint", "defaultMatchMediaValue"]);
31
+ var size = _a.size, fullWidthScroll = _a.fullWidthScroll, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = tslib.__rest(_a, ["size", "fullWidthScroll", "breakpoint", "defaultMatchMediaValue"]);
32
32
  var isDesktop = coreComponentsMq.useMatchMedia("(min-width: ".concat(breakpoint, "px)"), defaultMatchMediaValue)[0];
33
33
  return isDesktop ? (React__default.default.createElement(components_primaryTablist_Component_collapsible_desktop.CollapsiblePrimaryTabListDesktop, tslib.__assign({ size: size, defaultMatchMediaValue: defaultMatchMediaValue, breakpoint: breakpoint }, restProps))) : (React__default.default.createElement(components_primaryTablist_Component_collapsible_mobile.CollapsiblePrimaryTabListMobile, tslib.__assign({ fullWidthScroll: fullWidthScroll, defaultMatchMediaValue: defaultMatchMediaValue, breakpoint: breakpoint }, restProps)));
34
34
  };
@@ -24,7 +24,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
24
24
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
25
25
 
26
26
  var PrimaryTabListResponsive = function (_a) {
27
- var size = _a.size, _b = _a.breakpoint, breakpoint = _b === void 0 ? 768 : _b, fullWidthScroll = _a.fullWidthScroll, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = tslib.__rest(_a, ["size", "breakpoint", "fullWidthScroll", "defaultMatchMediaValue"]);
27
+ var size = _a.size, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, fullWidthScroll = _a.fullWidthScroll, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = tslib.__rest(_a, ["size", "breakpoint", "fullWidthScroll", "defaultMatchMediaValue"]);
28
28
  var isDesktop = coreComponentsMq.useMatchMedia("(min-width: ".concat(breakpoint, "px)"), defaultMatchMediaValue)[0];
29
29
  return isDesktop ? (React__default.default.createElement(components_primaryTablist_Component_desktop.PrimaryTabListDesktop, tslib.__assign({ breakpoint: breakpoint, size: size, defaultMatchMediaValue: defaultMatchMediaValue }, restProps))) : (React__default.default.createElement(components_primaryTablist_Component_mobile.PrimaryTabListMobile, tslib.__assign({ breakpoint: breakpoint, defaultMatchMediaValue: defaultMatchMediaValue, fullWidthScroll: fullWidthScroll }, restProps)));
30
30
  };
@@ -24,7 +24,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
24
24
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
25
25
 
26
26
  var SecondaryTabListResponsive = function (_a) {
27
- var size = _a.size, defaultMatchMediaValue = _a.defaultMatchMediaValue, fullWidthScroll = _a.fullWidthScroll, _b = _a.breakpoint, breakpoint = _b === void 0 ? 768 : _b, restProps = tslib.__rest(_a, ["size", "defaultMatchMediaValue", "fullWidthScroll", "breakpoint"]);
27
+ var size = _a.size, defaultMatchMediaValue = _a.defaultMatchMediaValue, fullWidthScroll = _a.fullWidthScroll, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, restProps = tslib.__rest(_a, ["size", "defaultMatchMediaValue", "fullWidthScroll", "breakpoint"]);
28
28
  var isDesktop = coreComponentsMq.useMatchMedia("(min-width: ".concat(breakpoint, "px)"), defaultMatchMediaValue)[0];
29
29
  return isDesktop ? (React__default.default.createElement(components_secondaryTablist_Component_desktop.SecondaryTabListDesktop, tslib.__assign({ size: size }, restProps))) : (React__default.default.createElement(components_secondaryTablist_Component_mobile.SecondaryTabListMobile, tslib.__assign({ fullWidthScroll: fullWidthScroll }, restProps)));
30
30
  };
@@ -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 };
@@ -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";
@@ -210,6 +210,23 @@ type BaseSelectProps = {
210
210
  * Компонент пункта меню
211
211
  */
212
212
  Option?: FC<OptionProps>;
213
+ /**
214
+ * Включает отображение поиска
215
+ */
216
+ showSearch?: boolean;
217
+ /**
218
+ * Компонент поиска
219
+ */
220
+ Search?: FC<SearchProps & RefAttributes<HTMLInputElement>>;
221
+ /**
222
+ * Настройки поиска
223
+ */
224
+ searchProps?: {
225
+ componentProps?: SearchProps;
226
+ accessor?: (option: OptionShape) => string;
227
+ value?: string;
228
+ onChange?: (value: string) => void;
229
+ };
213
230
  /**
214
231
  * Обработчик выбора
215
232
  */
@@ -345,6 +362,10 @@ type OptionsListProps = {
345
362
  * Дополнительный класс для компонента группы пунктов
346
363
  */
347
364
  optionGroupClassName?: string;
365
+ /**
366
+ * Дополнительный класс для скроллбара
367
+ */
368
+ scrollbarClassName?: string;
348
369
  /**
349
370
  * Размер компонента
350
371
  */
@@ -547,4 +568,5 @@ type CheckmarkProps = {
547
568
  */
548
569
  icon?: FC<SVGProps<SVGSVGElement>>;
549
570
  };
550
- export { AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps };
571
+ type SearchProps = InputProps;
572
+ export { AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps };
@@ -1,12 +1,13 @@
1
1
  import { ReactNode, RefObject } from 'react';
2
- import { BaseSelectProps, GroupShape, OptionShape } from "./typings-5e1b8383";
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-dd8ca091";
3
3
  declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
4
  declare const isOptionShape: (item: OptionShape | string | null) => item is OptionShape;
5
5
  declare const joinOptions: ({ selected, selectedMultiple, }: {
6
6
  selected?: OptionShape | undefined;
7
7
  selectedMultiple?: OptionShape[] | undefined;
8
8
  }) => ReactNode[] | null;
9
- declare function processOptions(options: BaseSelectProps['options'], selected?: BaseSelectProps['selected']): {
9
+ declare function processOptions(options: BaseSelectProps['options'], selected?: BaseSelectProps['selected'], filterFn?: (option: OptionShape) => boolean): {
10
+ filteredOptions: (OptionShape | GroupShape)[];
10
11
  flatOptions: OptionShape[];
11
12
  selectedOptions: OptionShape[];
12
13
  };
@@ -33,6 +34,8 @@ type useVisibleOptionsArgs = {
33
34
  invalidate?: unknown;
34
35
  };
35
36
  declare function useVisibleOptions({ visibleOptions, listRef, styleTargetRef, open, invalidate, }: useVisibleOptionsArgs): void;
37
+ declare function defaultFilterFn(optionText: string, search: string): boolean;
38
+ declare function defaultAccessor(option: OptionShape): string;
36
39
  declare function usePrevious<T>(value: T): T | undefined;
37
40
  declare const lastIndexOf: <T>(array: T[], predicate: (item: T) => boolean) => number;
38
- export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, usePrevious, lastIndexOf };
41
+ export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, defaultFilterFn, defaultAccessor, usePrevious, lastIndexOf };
package/desktop.js CHANGED
@@ -16,10 +16,10 @@ require('@alfalab/core-components-shared');
16
16
  require('./components/scrollable-container/Component.js');
17
17
  require('compute-scroll-into-view');
18
18
  require('./components/title/Component.js');
19
- require('./index.module-8a17d41d.js');
19
+ require('./index.module-90a9d1ab.js');
20
20
  require('@alfalab/core-components-tag/desktop');
21
21
  require('./components/secondary-tablist/Component.js');
22
- require('./index.module-c9e2f520.js');
22
+ require('./index.module-e664b0d7.js');
23
23
  require('./components/tabs/Component.js');
24
24
 
25
25
 
@@ -3,7 +3,7 @@ import React from "react";
3
3
  import { FC, SVGProps } from "react";
4
4
  import { PickerButtonSize, PickerButtonVariant } from "./types-4480ac4f";
5
5
  import { ButtonProps } from "./index-8b2c2707";
6
- import { FieldProps as BaseFieldProps } from "./typings-5e1b8383";
6
+ import { FieldProps as BaseFieldProps } from "./typings-dd8ca091";
7
7
  declare const getIcon: (variant: PickerButtonVariant, size: PickerButtonSize) => FC<SVGProps<SVGSVGElement>>;
8
8
  type FieldProps = Omit<BaseFieldProps, 'size' | 'hint' | 'success' | 'error' | 'placeholder'> & ButtonProps & {
9
9
  buttonSize?: PickerButtonSize;
@@ -3,7 +3,7 @@ import React from "react";
3
3
  import { FC, ReactNode } from "react";
4
4
  import { ModalMobileProps, ContentProps } from "./typings-bdb4c6b9";
5
5
  import { BottomSheetProps } from "./index-f12ee135";
6
- import { BaseSelectProps } from "./typings-5e1b8383";
6
+ import { BaseSelectProps } from "./typings-dd8ca091";
7
7
  type FooterProps = {
8
8
  /**
9
9
  * Контент футера
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  import { BaseTagProps } from "./index-ebda875c";
4
- type TagMobileProps = Omit<BaseTagProps, 'styles'>;
4
+ type TagMobileProps = Omit<BaseTagProps, 'styles' | 'colorStylesMap'>;
5
5
  declare const TagMobile: React.ForwardRefExoticComponent<TagMobileProps & React.RefAttributes<HTMLButtonElement>>;
6
6
  export { TagMobileProps, TagMobile };
@@ -22,5 +22,5 @@ import './hooks/use-tabs.js';
22
22
  import '@alfalab/core-components-shared/esm';
23
23
  import './synthetic-events.js';
24
24
  import './components/title/Component.js';
25
- import './index.module-1827f95c.js';
26
- import './mobile.module-ae866e14.js';
25
+ import './index.module-5693d6aa.js';
26
+ import './mobile.module-fcb33bf4.js';
@@ -1,7 +1,7 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { CollapsiblePrimaryTabList } from './Component.collapsible.js';
4
- import { c as commonStyles } from '../../index.module-1827f95c.js';
4
+ import { c as commonStyles } from '../../index.module-5693d6aa.js';
5
5
  import 'classnames';
6
6
  import '@alfalab/core-components-badge/esm';
7
7
  import '@alfalab/core-components-keyboard-focusable/esm';
@@ -16,7 +16,7 @@ import '@alfalab/core-components-shared/esm';
16
16
 
17
17
  var DEFAULT_STYLES = {};
18
18
  var CollapsiblePrimaryTabList = function (_a) {
19
- var size = _a.size, className = _a.className, containerClassName = _a.containerClassName, _b = _a.titles, titles = _b === void 0 ? [] : _b, _c = _a.styles, styles = _c === void 0 ? DEFAULT_STYLES : _c, _d = _a.selectedId, selectedId = _d === void 0 ? titles.length ? titles[0].id : undefined : _d, collapsedTabsIds = _a.collapsedTabsIds, fullWidthScroll = _a.fullWidthScroll, onChange = _a.onChange, dataTestId = _a.dataTestId, _e = _a.breakpoint, breakpoint = _e === void 0 ? 768 : _e, defaultMatchMediaValue = _a.defaultMatchMediaValue;
19
+ var size = _a.size, className = _a.className, containerClassName = _a.containerClassName, _b = _a.titles, titles = _b === void 0 ? [] : _b, _c = _a.styles, styles = _c === void 0 ? DEFAULT_STYLES : _c, _d = _a.selectedId, selectedId = _d === void 0 ? titles.length ? titles[0].id : undefined : _d, collapsedTabsIds = _a.collapsedTabsIds, fullWidthScroll = _a.fullWidthScroll, onChange = _a.onChange, dataTestId = _a.dataTestId, _e = _a.breakpoint, breakpoint = _e === void 0 ? 1024 : _e, defaultMatchMediaValue = _a.defaultMatchMediaValue;
20
20
  var lineRef = useRef(null);
21
21
  var _f = useTablistTitles({
22
22
  titles: titles,
@@ -2,8 +2,8 @@ import { __assign, __rest } from 'tslib';
2
2
  import React from 'react';
3
3
  import cn from 'classnames';
4
4
  import { CollapsiblePrimaryTabList } from './Component.collapsible.js';
5
- import { c as commonStyles } from '../../index.module-1827f95c.js';
6
- import { m as mobileStyles } from '../../mobile.module-ae866e14.js';
5
+ import { c as commonStyles } from '../../index.module-5693d6aa.js';
6
+ import { m as mobileStyles } from '../../mobile.module-fcb33bf4.js';
7
7
  import '@alfalab/core-components-badge/esm';
8
8
  import '@alfalab/core-components-keyboard-focusable/esm';
9
9
  import '@alfalab/core-components-picker-button/esm/desktop';
@@ -16,11 +16,11 @@ 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-1827f95c.js';
20
- import '../../mobile.module-ae866e14.js';
19
+ import '../../index.module-5693d6aa.js';
20
+ import '../../mobile.module-fcb33bf4.js';
21
21
 
22
22
  var CollapsiblePrimaryTabListResponsive = function (_a) {
23
- var size = _a.size, fullWidthScroll = _a.fullWidthScroll, _b = _a.breakpoint, breakpoint = _b === void 0 ? 768 : _b, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = __rest(_a, ["size", "fullWidthScroll", "breakpoint", "defaultMatchMediaValue"]);
23
+ var size = _a.size, fullWidthScroll = _a.fullWidthScroll, _b = _a.breakpoint, breakpoint = _b === void 0 ? 1024 : _b, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = __rest(_a, ["size", "fullWidthScroll", "breakpoint", "defaultMatchMediaValue"]);
24
24
  var isDesktop = useMatchMedia("(min-width: ".concat(breakpoint, "px)"), defaultMatchMediaValue)[0];
25
25
  return isDesktop ? (React.createElement(CollapsiblePrimaryTabListDesktop, __assign({ size: size, defaultMatchMediaValue: defaultMatchMediaValue, breakpoint: breakpoint }, restProps))) : (React.createElement(CollapsiblePrimaryTabListMobile, __assign({ fullWidthScroll: fullWidthScroll, defaultMatchMediaValue: defaultMatchMediaValue, breakpoint: breakpoint }, restProps)));
26
26
  };
@@ -1,7 +1,7 @@
1
1
  import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { PrimaryTabList } from './Component.js';
4
- import { c as commonStyles } from '../../index.module-1827f95c.js';
4
+ import { c as commonStyles } from '../../index.module-5693d6aa.js';
5
5
  import 'classnames';
6
6
  import '@alfalab/core-components-keyboard-focusable/esm';
7
7
  import '../../hooks/use-tabs.js';
@@ -2,8 +2,8 @@ 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 { c as commonStyles } from '../../index.module-1827f95c.js';
6
- import { m as mobileStyles } from '../../mobile.module-ae866e14.js';
5
+ import { c as commonStyles } from '../../index.module-5693d6aa.js';
6
+ import { m as mobileStyles } from '../../mobile.module-fcb33bf4.js';
7
7
  import '@alfalab/core-components-keyboard-focusable/esm';
8
8
  import '../../hooks/use-tabs.js';
9
9
  import '@alfalab/core-components-shared/esm';
@@ -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-1827f95c.js';
15
- import '../../mobile.module-ae866e14.js';
14
+ import '../../index.module-5693d6aa.js';
15
+ import '../../mobile.module-fcb33bf4.js';
16
16
 
17
17
  var PrimaryTabListResponsive = function (_a) {
18
- var size = _a.size, _b = _a.breakpoint, breakpoint = _b === void 0 ? 768 : _b, fullWidthScroll = _a.fullWidthScroll, defaultMatchMediaValue = _a.defaultMatchMediaValue, restProps = __rest(_a, ["size", "breakpoint", "fullWidthScroll", "defaultMatchMediaValue"]);
18
+ 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"]);
19
19
  var isDesktop = useMatchMedia("(min-width: ".concat(breakpoint, "px)"), defaultMatchMediaValue)[0];
20
20
  return isDesktop ? (React.createElement(PrimaryTabListDesktop, __assign({ breakpoint: breakpoint, size: size, defaultMatchMediaValue: defaultMatchMediaValue }, restProps))) : (React.createElement(PrimaryTabListMobile, __assign({ breakpoint: breakpoint, defaultMatchMediaValue: defaultMatchMediaValue, fullWidthScroll: fullWidthScroll }, restProps)));
21
21
  };