@alfalab/core-components-picker-button 11.9.1 → 11.11.0

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 (107) hide show
  1. package/@alfalab/core-components-shared/package.json +23 -0
  2. package/Component.responsive.js +2 -1
  3. package/cssm/Component.responsive.js +2 -1
  4. package/cssm/index-11f20b2e.d.ts +6 -2
  5. package/cssm/mobile/Component.mobile.js +2 -1
  6. package/cssm/typings-7d83ec1e.d.ts +332 -11
  7. package/desktop/Component.desktop.js +1 -1
  8. package/esm/Component.responsive.js +2 -1
  9. package/esm/desktop/Component.desktop.js +1 -1
  10. package/esm/field/Component.js +1 -1
  11. package/esm/field/index.css +6 -6
  12. package/esm/index-11f20b2e.d.ts +6 -2
  13. package/esm/index.css +5 -5
  14. package/esm/mobile/Component.mobile.js +2 -1
  15. package/esm/option/Component.js +1 -1
  16. package/esm/option/index.css +4 -4
  17. package/esm/typings-7d83ec1e.d.ts +332 -11
  18. package/field/Component.js +1 -1
  19. package/field/index.css +6 -6
  20. package/index-11f20b2e.d.ts +6 -2
  21. package/index.css +5 -5
  22. package/mobile/Component.mobile.js +2 -1
  23. package/modern/Component.responsive.js +2 -1
  24. package/modern/desktop/Component.desktop.js +1 -1
  25. package/modern/field/Component.js +1 -1
  26. package/modern/field/index.css +6 -6
  27. package/modern/index-11f20b2e.d.ts +6 -2
  28. package/modern/index.css +5 -5
  29. package/modern/mobile/Component.mobile.js +2 -1
  30. package/modern/option/Component.js +1 -1
  31. package/modern/option/index.css +4 -4
  32. package/modern/typings-7d83ec1e.d.ts +332 -11
  33. package/moderncssm/Component.responsive.js +2 -1
  34. package/moderncssm/index-11f20b2e.d.ts +6 -2
  35. package/moderncssm/mobile/Component.mobile.js +2 -1
  36. package/moderncssm/typings-7d83ec1e.d.ts +332 -11
  37. package/option/Component.js +1 -1
  38. package/option/index.css +4 -4
  39. package/package.json +7 -6
  40. package/src/Component.responsive.tsx +2 -1
  41. package/src/mobile/Component.mobile.tsx +2 -1
  42. package/typings-7d83ec1e.d.ts +332 -11
  43. package/Component-2f466837.d.ts +0 -171
  44. package/Context-c2e6f1b2.d.ts +0 -4
  45. package/browser-a216f694.d.ts +0 -6
  46. package/cssm/Component-2f466837.d.ts +0 -171
  47. package/cssm/Context-c2e6f1b2.d.ts +0 -4
  48. package/cssm/browser-a216f694.d.ts +0 -6
  49. package/cssm/fnUtils-e793ac44.d.ts +0 -15
  50. package/cssm/index-064acd29.d.ts +0 -13
  51. package/cssm/index-2f466837.d.ts +0 -62
  52. package/cssm/transformSize-ebda875c.d.ts +0 -3
  53. package/cssm/types-a870d1f8.d.ts +0 -117
  54. package/cssm/use-visualviewport-size-2f466837.d.ts +0 -3
  55. package/cssm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  56. package/cssm/useIsMounted-e793ac44.d.ts +0 -3
  57. package/cssm/usePortalContainer-2f466837.d.ts +0 -2
  58. package/cssm/utils-ed29dc0e.d.ts +0 -5
  59. package/esm/Component-2f466837.d.ts +0 -171
  60. package/esm/Context-c2e6f1b2.d.ts +0 -4
  61. package/esm/browser-a216f694.d.ts +0 -6
  62. package/esm/fnUtils-e793ac44.d.ts +0 -15
  63. package/esm/index-064acd29.d.ts +0 -13
  64. package/esm/index-2f466837.d.ts +0 -62
  65. package/esm/transformSize-ebda875c.d.ts +0 -3
  66. package/esm/types-a870d1f8.d.ts +0 -117
  67. package/esm/use-visualviewport-size-2f466837.d.ts +0 -3
  68. package/esm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  69. package/esm/useIsMounted-e793ac44.d.ts +0 -3
  70. package/esm/usePortalContainer-2f466837.d.ts +0 -2
  71. package/esm/utils-ed29dc0e.d.ts +0 -5
  72. package/fnUtils-e793ac44.d.ts +0 -15
  73. package/index-064acd29.d.ts +0 -13
  74. package/index-2f466837.d.ts +0 -62
  75. package/modern/Component-2f466837.d.ts +0 -171
  76. package/modern/Context-c2e6f1b2.d.ts +0 -4
  77. package/modern/browser-a216f694.d.ts +0 -6
  78. package/modern/fnUtils-e793ac44.d.ts +0 -15
  79. package/modern/index-064acd29.d.ts +0 -13
  80. package/modern/index-2f466837.d.ts +0 -62
  81. package/modern/transformSize-ebda875c.d.ts +0 -3
  82. package/modern/types-a870d1f8.d.ts +0 -117
  83. package/modern/use-visualviewport-size-2f466837.d.ts +0 -3
  84. package/modern/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  85. package/modern/useIsMounted-e793ac44.d.ts +0 -3
  86. package/modern/usePortalContainer-2f466837.d.ts +0 -2
  87. package/modern/utils-ed29dc0e.d.ts +0 -5
  88. package/moderncssm/Component-2f466837.d.ts +0 -171
  89. package/moderncssm/Context-c2e6f1b2.d.ts +0 -4
  90. package/moderncssm/browser-a216f694.d.ts +0 -6
  91. package/moderncssm/fnUtils-e793ac44.d.ts +0 -15
  92. package/moderncssm/index-064acd29.d.ts +0 -13
  93. package/moderncssm/index-2f466837.d.ts +0 -62
  94. package/moderncssm/transformSize-ebda875c.d.ts +0 -3
  95. package/moderncssm/types-a870d1f8.d.ts +0 -117
  96. package/moderncssm/use-visualviewport-size-2f466837.d.ts +0 -3
  97. package/moderncssm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  98. package/moderncssm/useIsMounted-e793ac44.d.ts +0 -3
  99. package/moderncssm/usePortalContainer-2f466837.d.ts +0 -2
  100. package/moderncssm/utils-ed29dc0e.d.ts +0 -5
  101. package/transformSize-ebda875c.d.ts +0 -3
  102. package/types-a870d1f8.d.ts +0 -117
  103. package/use-visualviewport-size-2f466837.d.ts +0 -3
  104. package/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  105. package/useIsMounted-e793ac44.d.ts +0 -3
  106. package/usePortalContainer-2f466837.d.ts +0 -2
  107. package/utils-ed29dc0e.d.ts +0 -5
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: eewem */
1
+ /* hash: 1q5v7 */
2
2
  :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 */ /* 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 */
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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -23,13 +23,13 @@
23
23
  --gap-16: var(--gap-m);
24
24
  } :root {
25
25
  } :root {
26
- } /* сбрасывает синюю подсветку при нажатии */ .picker-button__container_z2vvc {
26
+ } /* сбрасывает синюю подсветку при нажатии */ .picker-button__container_1i43i {
27
27
  min-width: auto;
28
- } .cc-picker-button.picker-button__optionsPopover_z2vvc.picker-button__sideGap_z2vvc {
28
+ } .cc-picker-button.picker-button__optionsPopover_1i43i.picker-button__sideGap_1i43i {
29
29
  padding: var(--gap-0) var(--gap-8);
30
- } .cc-picker-button .picker-button__option_z2vvc {
30
+ } .cc-picker-button .picker-button__option_1i43i {
31
31
  padding: var(--gap-0) var(--gap-16)
32
- } .cc-picker-button .picker-button__option_z2vvc:before {
32
+ } .cc-picker-button .picker-button__option_1i43i:before {
33
33
  /* Удаляем разделители у опций выпадающего списка. */
34
34
  display: none;
35
35
  }
@@ -2,11 +2,12 @@ import { __rest, __assign } from 'tslib';
2
2
  import React, { forwardRef } from 'react';
3
3
  import { SelectMobile } from '@alfalab/core-components-select/esm/mobile';
4
4
  import { Optgroup } from '@alfalab/core-components-select/esm/shared';
5
+ import { getComponentBreakpoint } from '@alfalab/core-components-shared/esm';
5
6
  import { Field } from '../field/Component.js';
6
7
  import { Option } from '../option/Component.js';
7
8
 
8
9
  var PickerButtonMobile = forwardRef(function (_a, ref) {
9
- var options = _a.options, label = _a.label, _b = _a.Option, Option$1 = _b === void 0 ? Option : _b, _c = _a.Optgroup, Optgroup$1 = _c === void 0 ? Optgroup : _c, view = _a.view, loading = _a.loading, _d = _a.variant, variant = _d === void 0 ? 'default' : _d, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, size = _a.size, bottomSheetProps = _a.bottomSheetProps, showArrow = _a.showArrow, _e = _a.Field, Field$1 = _e === void 0 ? Field : _e, _f = _a.fieldProps, fieldProps = _f === void 0 ? {} : _f, icon = _a.icon, _g = _a.breakpoint, breakpoint = _g === void 0 ? 1024 : _g, restProps = __rest(_a, ["options", "label", "Option", "Optgroup", "view", "loading", "variant", "leftAddons", "rightAddons", "size", "bottomSheetProps", "showArrow", "Field", "fieldProps", "icon", "breakpoint"]);
10
+ var options = _a.options, label = _a.label, _b = _a.Option, Option$1 = _b === void 0 ? Option : _b, _c = _a.Optgroup, Optgroup$1 = _c === void 0 ? Optgroup : _c, view = _a.view, loading = _a.loading, _d = _a.variant, variant = _d === void 0 ? 'default' : _d, leftAddons = _a.leftAddons, rightAddons = _a.rightAddons, size = _a.size, bottomSheetProps = _a.bottomSheetProps, showArrow = _a.showArrow, _e = _a.Field, Field$1 = _e === void 0 ? Field : _e, _f = _a.fieldProps, fieldProps = _f === void 0 ? {} : _f, icon = _a.icon, _g = _a.breakpoint, breakpoint = _g === void 0 ? getComponentBreakpoint() : _g, restProps = __rest(_a, ["options", "label", "Option", "Optgroup", "view", "loading", "variant", "leftAddons", "rightAddons", "size", "bottomSheetProps", "showArrow", "Field", "fieldProps", "icon", "breakpoint"]);
10
11
  var fieldDefaultProps = {
11
12
  view: view,
12
13
  loading: loading,
@@ -2,7 +2,7 @@ import { __rest, __assign } from 'tslib';
2
2
  import React from 'react';
3
3
  import { Option as Option$1 } from '@alfalab/core-components-select/esm/shared';
4
4
 
5
- var styles = {"container":"picker-button__container_1ylx0","icon":"picker-button__icon_1ylx0","content":"picker-button__content_1ylx0"};
5
+ var styles = {"container":"picker-button__container_1e1yh","icon":"picker-button__icon_1e1yh","content":"picker-button__content_1e1yh"};
6
6
  require('./index.css')
7
7
 
8
8
  var Option = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1v1bd */
1
+ /* hash: rfsid */
2
2
  :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 */ /* 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 */
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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -20,13 +20,13 @@
20
20
  --gap-12: var(--gap-s);
21
21
  } :root {
22
22
  } :root {
23
- } /* сбрасывает синюю подсветку при нажатии */ .picker-button__container_1ylx0 {
23
+ } /* сбрасывает синюю подсветку при нажатии */ .picker-button__container_1e1yh {
24
24
  display: flex;
25
25
  align-items: center;
26
- } .picker-button__icon_1ylx0 {
26
+ } .picker-button__icon_1e1yh {
27
27
  display: flex;
28
28
  margin-right: var(--gap-12);
29
- } .picker-button__content_1ylx0 {
29
+ } .picker-button__content_1e1yh {
30
30
  overflow: hidden;
31
31
  flex: 1;
32
32
  text-overflow: ellipsis;
@@ -1,19 +1,182 @@
1
- /// <reference types="react-transition-group" />
2
1
  /// <reference types="react" />
2
+ /// <reference types="react-transition-group" />
3
3
  import React from "react";
4
- import { HTMLAttributes, ReactElement, ReactNode, RefObject, FC, AriaAttributes, ComponentType, FocusEvent, MouseEvent, RefAttributes, SVGProps } from "react";
4
+ import { HTMLAttributes, ReactElement, ReactNode, RefObject, ButtonHTMLAttributes, ElementType, FC, ForwardRefExoticComponent, RefAttributes, AnchorHTMLAttributes, AriaAttributes, ComponentType, FocusEvent, MouseEvent, SVGProps } from "react";
5
5
  import { HandledEvents } from "react-swipeable/es/types";
6
6
  import { TransitionProps } from "react-transition-group/Transition";
7
- import { BaseModalProps } from "./index-11f20b2e";
8
- import { NavigationBarPrivateProps } from "./types-a870d1f8";
9
- import { NavigationBarPrivateProps as NavigationBarProps } from "./types-a870d1f8";
10
- import { BackgroundColorType } from "./index-064acd29";
7
+ import { BaseModalProps, BaseModalContext } from "./index-11f20b2e";
11
8
  import { BaseInputProps, BackdropProps } from "./index-ebda875c";
12
9
  import { SwipeableHandlers, SwipeDirections } from "react-swipeable";
13
- import { FormControlProps } from "./index-c44170fe";
10
+ import { Color } from "./colors-facf1d2a";
11
+ import { TextElementType, TextSkeletonProps } from "./types-1328ead9";
12
+ import { TitleProps } from "./index-03d088c4";
13
+ import { TitleMobileProps } from "./index-281accb7";
14
+ import { ButtonProps } from "@alfalab/core-components-button";
15
+ import { ContentProps } from "./typings-d6bfd5b7";
14
16
  import { ModalResponsiveProps as ModalProps } from "./typings-d6bfd5b7";
17
+ import { FormControlProps } from "./index-c44170fe";
15
18
  import { PopoverProps } from "@alfalab/core-components-popover";
16
19
  import { UseSelectWithApplyProps } from "./field/Component";
20
+ interface BackArrowAddonProps extends React.HTMLAttributes<HTMLButtonElement> {
21
+ /**
22
+ * Текст после иконки
23
+ */
24
+ text?: string | null;
25
+ /**
26
+ * Дополнительный класс
27
+ */
28
+ className?: string;
29
+ /**
30
+ * Вид компонента
31
+ */
32
+ view: "mobile" | "desktop";
33
+ /**
34
+ * Прозрачность текста
35
+ */
36
+ textOpacity?: number;
37
+ /**
38
+ * Обработчик клика
39
+ */
40
+ onClick?: () => void;
41
+ }
42
+ interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
43
+ /**
44
+ * Вид компонента
45
+ */
46
+ view: "desktop" | "mobile";
47
+ /**
48
+ * Дополнительный класс
49
+ */
50
+ className?: string;
51
+ /**
52
+ * Позиция крестика
53
+ */
54
+ align?: "left" | "right";
55
+ /**
56
+ * Фиксирует крестик
57
+ */
58
+ sticky?: boolean;
59
+ /**
60
+ * Иконка
61
+ */
62
+ icon?: ElementType;
63
+ /**
64
+ * Идентификатор для систем автоматизированного тестирования
65
+ */
66
+ dataTestId?: string;
67
+ /**
68
+ * Коллбэк закрытия.
69
+ */
70
+ onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
71
+ }
72
+ type NavigationBarPrivateProps = {
73
+ /**
74
+ * Контент шапки
75
+ */
76
+ children?: ReactNode;
77
+ /**
78
+ * Заголовок шапки
79
+ */
80
+ title?: string;
81
+ /**
82
+ * Подзаголовок (доступен только в мобильной версии)
83
+ */
84
+ subtitle?: ReactNode;
85
+ /**
86
+ * Размер заголовка (compact доступен только в мобильной версии)
87
+ */
88
+ titleSize?: "default" | "compact";
89
+ /**
90
+ * Доп. класс для аддонов
91
+ */
92
+ addonClassName?: string;
93
+ /**
94
+ * Слот слева
95
+ */
96
+ leftAddons?: ReactNode;
97
+ /**
98
+ * Слот справа
99
+ */
100
+ rightAddons?: ReactNode;
101
+ /**
102
+ * Дополнительный класс для closer
103
+ */
104
+ closerClassName?: string;
105
+ /**
106
+ * Слот снизу
107
+ */
108
+ bottomAddons?: ReactNode;
109
+ /**
110
+ * Наличие компонента крестика
111
+ */
112
+ hasCloser?: boolean;
113
+ /**
114
+ * Наличие кнопки "Назад"
115
+ */
116
+ hasBackButton?: boolean;
117
+ /**
118
+ * Дополнительный класс для правого аддона
119
+ */
120
+ backButtonClassName?: string;
121
+ /**
122
+ * Дополнительные пропсы для кнопки "Назад"
123
+ */
124
+ backButtonProps?: Omit<BackArrowAddonProps, "view" | "textOpacity" | "onClick">;
125
+ /**
126
+ * Дополнительный класс
127
+ */
128
+ className?: string;
129
+ /**
130
+ * Дополнительный класс для контента
131
+ */
132
+ contentClassName?: string;
133
+ /**
134
+ * Дополнительный класс для нижнего аддона
135
+ */
136
+ bottomAddonsClassName?: string;
137
+ /**
138
+ * Выравнивание заголовка
139
+ */
140
+ align?: "left" | "center";
141
+ /**
142
+ * Обрезать ли заголовок
143
+ */
144
+ trim?: boolean;
145
+ /**
146
+ * Фиксирует шапку
147
+ */
148
+ sticky?: boolean;
149
+ /**
150
+ * Идентификатор для систем автоматизированного тестирования
151
+ */
152
+ dataTestId?: string;
153
+ /**
154
+ * Фоновое изображение
155
+ */
156
+ imageUrl?: string;
157
+ /**
158
+ * Иконка closer.
159
+ */
160
+ closerIcon?: React.ElementType;
161
+ /**
162
+ * Обработчик закрытия
163
+ */
164
+ onClose?: CloserProps["onClose"];
165
+ /**
166
+ * обработчик клика по кнопке "назад"
167
+ */
168
+ onBack?: () => void;
169
+ /**
170
+ * Вид шапки - мобильный или десктоп
171
+ */
172
+ view: "desktop" | "mobile";
173
+ /**
174
+ * Ссылка на родительскую ноду overflow: auto
175
+ */
176
+ scrollableParentRef?: React.RefObject<HTMLDivElement>;
177
+ };
178
+ type NavigationBarProps = NavigationBarPrivateProps;
179
+ type BackgroundColorType = "accent" | "info" | "attention-muted" | "positive-muted" | "negative-muted" | "primary" | "primary-inverted" | "secondary" | "secondary-inverted" | "tertiary" | "tertiary-inverted" | "quaternary" | "quaternary-inverted" | "specialbg-component" | "specialbg-component-inverted" | "specialbg-primary-grouped" | "specialbg-secondary-grouped" | "specialbg-tertiary-grouped" | "specialbg-secondary-transparent" | "specialbg-secondary-transparent-inverted" | "specialbg-tertiary-transparent" | "specialbg-tertiary-transparent-inverted";
17
180
  type BottomSheetTitleAlign = "center" | "left";
18
181
  type BottomSheetProps = {
19
182
  /**
@@ -336,6 +499,30 @@ type FooterProps = {
336
499
  */
337
500
  gap?: 16 | 24 | 32;
338
501
  };
502
+ interface ControlsProps {
503
+ /**
504
+ * Основной слот
505
+ */
506
+ primary?: ReactNode;
507
+ /**
508
+ * Дополнительный слот
509
+ */
510
+ secondary?: ReactNode;
511
+ /**
512
+ * Выравнивание элементов футера
513
+ * @default start
514
+ */
515
+ layout?: "start" | "center" | "space-between" | "column";
516
+ /**
517
+ * Выравнивание элементов футера (мобильный view)
518
+ * @default start
519
+ */
520
+ mobileLayout?: "start" | "center" | "space-between" | "column";
521
+ /**
522
+ * Отступы между элементами футера
523
+ */
524
+ gap?: 16 | 24 | 32;
525
+ }
339
526
  declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-11f20b2e").BaseModalProps & {
340
527
  size?: "s" | "m" | "l" | "xl" | 500 | "fullscreen" | 600 | 800 | 1140 | undefined;
341
528
  fullscreen?: boolean | undefined;
@@ -351,6 +538,7 @@ declare const ModalResponsive: React.ForwardRefExoticComponent<import("./index-1
351
538
  Footer: React.FC<FooterProps>;
352
539
  Controls: React.FC<ControlsProps>;
353
540
  };
541
+ declare const ModalContext: import("react").Context<BaseModalContext>;
354
542
  declare function getModalTestIds(dataTestId: string): {
355
543
  modal: string;
356
544
  content: string;
@@ -410,12 +598,145 @@ type ShouldSkipSwipingParams = {
410
598
  event: HandledEvents;
411
599
  dir: SwipeDirections;
412
600
  };
601
+ type VisualViewportSize = Pick<VisualViewport, "height" | "offsetTop">;
602
+ declare function useVisibleViewportSize(enabled?: boolean): VisualViewportSize | null;
603
+ type NativeProps = HTMLAttributes<HTMLSpanElement>;
604
+ type TextBaseProps = {
605
+ /**
606
+ * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
607
+ */
608
+ view?: "primary-large" | "primary-medium" | "primary-small" | "secondary-large" | "secondary-medium" | "secondary-small" | "component" | "component-primary" | "component-secondary" | "caps" | "tagline";
609
+ /**
610
+ * Цвет текста
611
+ */
612
+ color?: Color;
613
+ /**
614
+ * Толщина шрифта
615
+ */
616
+ weight?: "regular" | "medium" | "bold";
617
+ /**
618
+ * Делает цифры моноширинными
619
+ */
620
+ monospaceNumbers?: boolean;
621
+ /**
622
+ * HTML тег
623
+ */
624
+ tag?: "span" | "div";
625
+ /**
626
+ * Css-класс для стилизации (native prop)
627
+ */
628
+ className?: string;
629
+ /**
630
+ * Id компонента для тестов
631
+ */
632
+ dataTestId?: string;
633
+ /**
634
+ * Контент (native prop)
635
+ */
636
+ children?: React.ReactNode;
637
+ /**
638
+ * Добавляет отступы к тэгу 'p'
639
+ */
640
+ defaultMargins?: never;
641
+ /**
642
+ * Количество строк
643
+ */
644
+ rowLimit?: 1 | 2 | 3;
645
+ /**
646
+ * Показать скелетон
647
+ */
648
+ showSkeleton?: boolean;
649
+ /**
650
+ * Пропы для скелетона
651
+ */
652
+ skeletonProps?: TextSkeletonProps;
653
+ };
654
+ type TextPTagProps = Omit<TextBaseProps, "tag" | "defaultMargins"> & {
655
+ tag?: "p";
656
+ defaultMargins?: boolean;
657
+ };
658
+ type TextProps = Omit<NativeProps, "color"> & (TextBaseProps | TextPTagProps);
659
+ declare const Typography: {
660
+ Title: FC<TitleProps>;
661
+ Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
662
+ TitleResponsive: FC<TitleResponsiveProps>;
663
+ TitleMobile: FC<TitleMobileProps>;
664
+ };
665
+ declare const typographyPresets: {
666
+ mobile: {
667
+ list: {
668
+ text: {
669
+ primary: {
670
+ tag: string;
671
+ view: string;
672
+ };
673
+ secondary: {
674
+ tag: string;
675
+ color: string;
676
+ view: string;
677
+ };
678
+ };
679
+ };
680
+ };
681
+ };
682
+ type IconButtonProps = {
683
+ /**
684
+ * Компонент иконки
685
+ */
686
+ icon: ElementType<{
687
+ className?: string;
688
+ }> | ReactElement;
689
+ /**
690
+ * Тип кнопки
691
+ */
692
+ view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
693
+ /**
694
+ * Размер компонента
695
+ * @description xxs, xs, s deprecated, используйте вместо них 24, 32, 40 соответственно
696
+ */
697
+ size?: "xxs" | "xs" | "s" | 24 | 32 | 40 | 48 | 56;
698
+ /**
699
+ * Дополнительный класс
700
+ */
701
+ className?: string;
702
+ /**
703
+ * Включает прозрачный фон
704
+ * @default false
705
+ */
706
+ transparentBg?: boolean;
707
+ /**
708
+ * Выравнивание иконки
709
+ * @default 'center'
710
+ */
711
+ alignIcon?: "left" | "center" | "right";
712
+ /**
713
+ * Идентификатор для систем автоматизированного тестирования
714
+ */
715
+ dataTestId?: string;
716
+ /**
717
+ * Набор цветов для компонента
718
+ */
719
+ colors?: "default" | "inverted";
720
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "Component" | "href" | "loading" | "breakpoint"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
721
+ declare const IconButton: React.ForwardRefExoticComponent<{
722
+ icon: ElementType<{
723
+ className?: string;
724
+ }> | ReactElement;
725
+ view?: "transparent" | "primary" | "secondary" | "tertiary" | "negative" | undefined;
726
+ size?: "s" | "xs" | 24 | 48 | "xxs" | 32 | 40 | 56 | undefined;
727
+ className?: string | undefined;
728
+ transparentBg?: boolean | undefined;
729
+ alignIcon?: "center" | "left" | "right" | undefined;
730
+ dataTestId?: string | undefined;
731
+ colors?: "default" | "inverted" | undefined;
732
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "Component" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
413
733
  declare enum SwipeDirection {
414
734
  Left = "Left",
415
735
  Right = "Right",
416
736
  Up = "Up",
417
737
  Down = "Down"
418
738
  }
739
+ declare const Content: FC<ContentProps>;
419
740
  type AnyObject = Record<string, any>;
420
741
  type OptionShape = {
421
742
  /**
@@ -1150,11 +1471,11 @@ type ClearButtonProps = {
1150
1471
  */
1151
1472
  dataTestId?: string;
1152
1473
  };
1153
- export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, InputProps, Input, ModalResponsive as Modal, getModalTestIds, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, horizontalDirections, ShouldSkipSwipingParams, SwipeDirection, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps, ClearButtonProps };
1154
- export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps };
1474
+ export { BottomSheet, CLOSE_OFFSET, HEADER_OFFSET, InputProps, Input, ModalResponsive as Modal, ModalContext, getModalTestIds, FooterProps$0 as FooterProps, Footer$0 as Footer, HeaderProps$0 as HeaderProps, Header$0 as Header, SwipeableBackdropProps, SwipeableBackdrop, horizontalDirections, ShouldSkipSwipingParams, useVisibleViewportSize, Typography, typographyPresets, IconButtonProps, IconButton, SwipeDirection, Content, AnyObject, OptionShape, GroupShape, BaseSelectChangePayload, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps, SearchProps, SelectFieldProps, AdditionalMobileProps, BottomSheetSelectMobileProps, ModalSelectMobileProps, SelectModalMobileProps, SelectMobileProps, SelectDesktopProps, SelectProps, ClearButtonProps };
1475
+ export type { BottomSheetProps, BottomSheetTitleAlign, HeaderProps as ModalHeaderProps, FooterProps as ModalFooterProps, TextProps };
1155
1476
  export { ModalResponsiveProps as ModalProps } from "./typings-d6bfd5b7";
1156
- export { ModalContext } from "./Context-c2e6f1b2";
1157
1477
  export type { ContentProps as ModalContentProps } from "./typings-d6bfd5b7";
1158
- export { useVisibleViewportSize } from "./use-visualviewport-size-2f466837";
1478
+ export type { TitleProps } from "./index-03d088c4";
1479
+ export type { Color } from "./colors-facf1d2a";
1159
1480
  export * from "./Component.desktop-63dec22f";
1160
1481
  export * from "./Component.mobile-96988a65";
@@ -13,7 +13,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"iconContainer":"picker-button__iconContainer_aupdv","addonsContainer":"picker-button__addonsContainer_aupdv","showControlIcon":"picker-button__showControlIcon_aupdv","open":"picker-button__open_aupdv","linkOpen":"picker-button__linkOpen_aupdv"};
16
+ var styles = {"iconContainer":"picker-button__iconContainer_13y2b","addonsContainer":"picker-button__addonsContainer_13y2b","showControlIcon":"picker-button__showControlIcon_13y2b","open":"picker-button__open_13y2b","linkOpen":"picker-button__linkOpen_13y2b"};
17
17
  require('./index.css')
18
18
 
19
19
  var SIZE_TO_CLASSNAME_MAP = {
package/field/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: oujfb */
1
+ /* hash: etyqn */
2
2
  :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 */ /* 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 */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-transparent-default-hover: rgba(38, 55, 88, 0.06); /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */ /* 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 */
@@ -22,15 +22,15 @@
22
22
  } :root {
23
23
  } :root {
24
24
  --arrow-transform: rotate(180deg);
25
- } /* сбрасывает синюю подсветку при нажатии */ .picker-button__iconContainer_aupdv {
25
+ } /* сбрасывает синюю подсветку при нажатии */ .picker-button__iconContainer_13y2b {
26
26
  display: flex;
27
27
  transition: transform 0.15s ease-in-out;
28
- } .picker-button__addonsContainer_aupdv {
28
+ } .picker-button__addonsContainer_13y2b {
29
29
  display: flex
30
- } .picker-button__addonsContainer_aupdv.picker-button__showControlIcon_aupdv {
30
+ } .picker-button__addonsContainer_13y2b.picker-button__showControlIcon_13y2b {
31
31
  margin-right: var(--gap-4);
32
- } .picker-button__open_aupdv {
32
+ } .picker-button__open_13y2b {
33
33
  transform: var(--arrow-transform);
34
- } .picker-button__linkOpen_aupdv:not(:hover) {
34
+ } .picker-button__linkOpen_13y2b:not(:hover) {
35
35
  background-color: var(--color-light-transparent-default-hover);
36
36
  }
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react-transition-group" />
3
3
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4
4
  import React from "react";
5
- import { ComponentType, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref, FC } from "react";
5
+ import { ComponentType, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref, FC, RefObject } from "react";
6
6
  import { TransitionProps } from "react-transition-group/Transition";
7
7
  import { BackdropProps } from "./index-ebda875c";
8
8
  type PortalProps = {
@@ -190,6 +190,10 @@ type StackProps = {
190
190
  value?: number;
191
191
  };
192
192
  declare const Stack: FC<StackProps>;
193
+ declare const usePortalContainer: () => () => Element | null;
194
+ declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
195
+ declare const getDefaultPortalContainer: () => Element;
196
+ declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
193
197
  type SavedStyle = {
194
198
  value: string;
195
199
  key: string;
@@ -211,5 +215,5 @@ declare class GlobalStore {
211
215
  constructor();
212
216
  getModalStore: () => ModalStore;
213
217
  }
214
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, lockScroll, unlockScroll, syncHeight, StackProps, Stack, getModalStore, GlobalStore };
218
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, lockScroll, unlockScroll, syncHeight, StackProps, Stack, usePortalContainer, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
215
219
  export type { SavedStyle };