@alfalab/core-components-picker-button 11.2.0 → 11.3.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 (121) hide show
  1. package/Component-0816e61d.d.ts +5 -0
  2. package/Component-72dda473.d.ts +53 -0
  3. package/Component-c44170fe.d.ts +281 -0
  4. package/Component.desktop-785df74d.d.ts +1 -1
  5. package/Component.desktop.d.ts +1 -1
  6. package/Component.desktop.js +3 -2
  7. package/Component.mobile-d7e9f69d.d.ts +1 -1
  8. package/Component.mobile.d.ts +3 -3
  9. package/Component.responsive.d.ts +5 -7
  10. package/Component.responsive.js +1 -0
  11. package/consts-f777ba1a.d.ts +2 -0
  12. package/cssm/Component-0816e61d.d.ts +5 -0
  13. package/cssm/Component-72dda473.d.ts +53 -0
  14. package/cssm/Component-c44170fe.d.ts +281 -0
  15. package/cssm/Component.desktop-785df74d.d.ts +1 -1
  16. package/cssm/Component.desktop.d.ts +1 -1
  17. package/cssm/Component.desktop.js +2 -1
  18. package/cssm/Component.mobile-d7e9f69d.d.ts +1 -1
  19. package/cssm/Component.mobile.d.ts +3 -3
  20. package/cssm/Component.responsive.d.ts +5 -7
  21. package/cssm/Component.responsive.js +1 -0
  22. package/cssm/consts-f777ba1a.d.ts +2 -0
  23. package/cssm/desktop/index.js +1 -0
  24. package/cssm/field/Component.d.ts +3 -837
  25. package/cssm/field/index.module.css +2 -2
  26. package/cssm/{index-5cb54b98.d.ts → index-081223cb.d.ts} +8 -2
  27. package/cssm/index-785df74d.d.ts +2 -0
  28. package/{esm/Component.responsive-3109f463.d.ts → cssm/index-c44170fe.d.ts} +2 -10
  29. package/cssm/index-d7e9f69d.d.ts +2 -0
  30. package/cssm/index-ebda875c.d.ts +80 -0
  31. package/cssm/index.js +1 -0
  32. package/cssm/types-1b036d4b.d.ts +13 -0
  33. package/cssm/types-1c79e231.d.ts +113 -0
  34. package/cssm/typings-0816e61d.d.ts +1320 -0
  35. package/cssm/useSkeleton-1b036d4b.d.ts +40 -0
  36. package/cssm/utils-d2597f31.d.ts +41 -0
  37. package/desktop/index.js +1 -0
  38. package/esm/Component-0816e61d.d.ts +5 -0
  39. package/esm/Component-72dda473.d.ts +53 -0
  40. package/esm/Component-c44170fe.d.ts +281 -0
  41. package/esm/Component.desktop-785df74d.d.ts +1 -1
  42. package/esm/Component.desktop.d.ts +1 -1
  43. package/esm/Component.desktop.js +3 -2
  44. package/esm/Component.mobile-d7e9f69d.d.ts +1 -1
  45. package/esm/Component.mobile.d.ts +3 -3
  46. package/esm/Component.responsive.d.ts +5 -7
  47. package/esm/Component.responsive.js +1 -0
  48. package/esm/consts-f777ba1a.d.ts +2 -0
  49. package/esm/desktop/index.js +1 -0
  50. package/esm/field/Component.d.ts +3 -837
  51. package/esm/field/Component.js +1 -1
  52. package/esm/field/index.css +8 -8
  53. package/esm/{index-5cb54b98.d.ts → index-081223cb.d.ts} +8 -2
  54. package/esm/index-785df74d.d.ts +2 -0
  55. package/{Component.responsive-3109f463.d.ts → esm/index-c44170fe.d.ts} +2 -10
  56. package/esm/index-d7e9f69d.d.ts +2 -0
  57. package/esm/index-ebda875c.d.ts +80 -0
  58. package/esm/index.css +5 -5
  59. package/esm/index.js +1 -0
  60. package/esm/option/Component.js +1 -1
  61. package/esm/option/index.css +4 -4
  62. package/esm/types-1b036d4b.d.ts +13 -0
  63. package/esm/types-1c79e231.d.ts +113 -0
  64. package/esm/typings-0816e61d.d.ts +1320 -0
  65. package/esm/useSkeleton-1b036d4b.d.ts +40 -0
  66. package/esm/utils-d2597f31.d.ts +41 -0
  67. package/field/Component.d.ts +3 -837
  68. package/field/Component.js +1 -1
  69. package/field/index.css +8 -8
  70. package/{index-5cb54b98.d.ts → index-081223cb.d.ts} +8 -2
  71. package/index-785df74d.d.ts +2 -0
  72. package/{modern/Component.responsive-3109f463.d.ts → index-c44170fe.d.ts} +2 -10
  73. package/index-d7e9f69d.d.ts +2 -0
  74. package/index-ebda875c.d.ts +80 -0
  75. package/index.css +5 -5
  76. package/index.js +1 -0
  77. package/modern/Component-0816e61d.d.ts +5 -0
  78. package/modern/Component-72dda473.d.ts +53 -0
  79. package/modern/Component-c44170fe.d.ts +281 -0
  80. package/modern/Component.desktop-785df74d.d.ts +1 -1
  81. package/modern/Component.desktop.d.ts +1 -1
  82. package/modern/Component.desktop.js +3 -2
  83. package/modern/Component.mobile-d7e9f69d.d.ts +1 -1
  84. package/modern/Component.mobile.d.ts +3 -3
  85. package/modern/Component.responsive.d.ts +5 -7
  86. package/modern/Component.responsive.js +1 -0
  87. package/modern/consts-f777ba1a.d.ts +2 -0
  88. package/modern/desktop/index.js +1 -0
  89. package/modern/field/Component.d.ts +3 -837
  90. package/modern/field/Component.js +1 -1
  91. package/modern/field/index.css +8 -8
  92. package/modern/{index-5cb54b98.d.ts → index-081223cb.d.ts} +8 -2
  93. package/modern/index-785df74d.d.ts +2 -0
  94. package/{cssm/Component.responsive-3109f463.d.ts → modern/index-c44170fe.d.ts} +2 -10
  95. package/modern/index-d7e9f69d.d.ts +2 -0
  96. package/modern/index-ebda875c.d.ts +80 -0
  97. package/modern/index.css +5 -5
  98. package/modern/index.js +1 -0
  99. package/modern/option/Component.js +1 -1
  100. package/modern/option/index.css +4 -4
  101. package/modern/types-1b036d4b.d.ts +13 -0
  102. package/modern/types-1c79e231.d.ts +113 -0
  103. package/modern/typings-0816e61d.d.ts +1320 -0
  104. package/modern/useSkeleton-1b036d4b.d.ts +40 -0
  105. package/modern/utils-d2597f31.d.ts +41 -0
  106. package/option/Component.js +1 -1
  107. package/option/index.css +4 -4
  108. package/package.json +4 -3
  109. package/src/Component.desktop.tsx +3 -0
  110. package/src/Component.mobile.tsx +3 -1
  111. package/src/Component.responsive.tsx +6 -6
  112. package/src/field/index.module.css +1 -1
  113. package/types-1b036d4b.d.ts +13 -0
  114. package/types-1c79e231.d.ts +113 -0
  115. package/typings-0816e61d.d.ts +1320 -0
  116. package/useSkeleton-1b036d4b.d.ts +40 -0
  117. package/utils-d2597f31.d.ts +41 -0
  118. /package/{Component-5cb54b98.d.ts → Component-081223cb.d.ts} +0 -0
  119. /package/cssm/{Component-5cb54b98.d.ts → Component-081223cb.d.ts} +0 -0
  120. /package/esm/{Component-5cb54b98.d.ts → Component-081223cb.d.ts} +0 -0
  121. /package/modern/{Component-5cb54b98.d.ts → Component-081223cb.d.ts} +0 -0
@@ -8,7 +8,7 @@ import '@alfalab/icons-glyph/ChevronDownMIcon';
8
8
  import '@alfalab/icons-glyph/MoreMIcon';
9
9
  import '@alfalab/icons-glyph/MoreSIcon';
10
10
 
11
- var styles = {"iconContainer":"picker-button__iconContainer_12l54","addonsContainer":"picker-button__addonsContainer_12l54","showControlIcon":"picker-button__showControlIcon_12l54","open":"picker-button__open_12l54","linkOpen":"picker-button__linkOpen_12l54"};
11
+ var styles = {"iconContainer":"picker-button__iconContainer_1c5yv","addonsContainer":"picker-button__addonsContainer_1c5yv","showControlIcon":"picker-button__showControlIcon_1c5yv","open":"picker-button__open_1c5yv","linkOpen":"picker-button__linkOpen_1c5yv"};
12
12
  require('./index.css')
13
13
 
14
14
  var Field = function (_a) {
@@ -1,7 +1,7 @@
1
- /* hash: 12s27 */
1
+ /* hash: 1w27n */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
- --color-light-specialbg-secondary-transparent: rgba(11, 31, 53, 0.05); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* 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
+ --color-light-neutral-translucent-100: 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 */
5
5
  } :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 */
6
6
  } :root {
7
7
  } :root {
@@ -17,15 +17,15 @@
17
17
  } :root {
18
18
  } :root {
19
19
  --arrow-transform: rotate(180deg);
20
- } .picker-button__iconContainer_12l54 {
20
+ } .picker-button__iconContainer_1c5yv {
21
21
  display: flex;
22
22
  transition: transform 0.15s ease-in-out;
23
- } .picker-button__addonsContainer_12l54 {
23
+ } .picker-button__addonsContainer_1c5yv {
24
24
  display: flex
25
- } .picker-button__addonsContainer_12l54.picker-button__showControlIcon_12l54 {
25
+ } .picker-button__addonsContainer_1c5yv.picker-button__showControlIcon_1c5yv {
26
26
  margin-right: var(--gap-2xs);
27
- } .picker-button__open_12l54 {
27
+ } .picker-button__open_1c5yv {
28
28
  transform: var(--arrow-transform);
29
- } .picker-button__linkOpen_12l54:not(:hover) {
30
- background-color: var(--color-light-specialbg-secondary-transparent);
29
+ } .picker-button__linkOpen_1c5yv:not(:hover) {
30
+ background-color: var(--color-light-neutral-translucent-100);
31
31
  }
@@ -4,9 +4,15 @@ import { PaddingType } from "./index-72dda473";
4
4
  /* eslint-disable no-plusplus, no-param-reassign */
5
5
  import { MaskitoPlugin, MaskitoPostprocessor, MaskitoPreprocessor } from "@maskito/core";
6
6
  import { useCustomWebkitScrollbar } from "./useCustomWebkitScrollbar-a216f694";
7
- declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
8
7
  declare const isClient: () => boolean;
8
+ declare function isApplePlatform(): boolean;
9
+ declare function isIOS(): boolean;
10
+ declare const os: {
11
+ isIOS: typeof isIOS;
12
+ isApplePlatform: typeof isApplePlatform;
13
+ };
9
14
  declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
15
+ declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
10
16
  declare function easeInOutQuad(x: number): number;
11
17
  declare const easingFns: {
12
18
  easeInOutQuad: typeof easeInOutQuad;
@@ -51,5 +57,5 @@ declare const maskUtils: {
51
57
  declare const hooks: {
52
58
  useCustomWebkitScrollbar: typeof useCustomWebkitScrollbar;
53
59
  };
54
- export { createPaddingStyle, isClient, getDataTestId, easingFns, fnUtils, maskUtils, hooks };
60
+ export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks };
55
61
  export * from "./browser-a216f694";
@@ -0,0 +1,2 @@
1
+ export * from "./Component.desktop-785df74d";
2
+ export {};
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import React from 'react';
3
- type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
2
+ import React from "react";
3
+ type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
4
4
  /**
5
5
  * Контрольная точка, с нее начинается desktop версия
6
6
  * @default 1024
@@ -12,15 +12,7 @@ type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
12
12
  defaultMatchMediaValue?: boolean | (() => boolean);
13
13
  };
14
14
  declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
15
- /**
16
- * Контрольная точка, с нее начинается desktop версия
17
- * @default 1024
18
- */
19
15
  breakpoint?: number | undefined;
20
- /**
21
- * Значение по-умолчанию для хука useMatchMedia
22
- */
23
16
  defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
24
17
  } & React.RefAttributes<HTMLDivElement>>;
25
- export * from "./Component-5cb54b98";
26
18
  export { FormControlProps, FormControl };
@@ -0,0 +1,2 @@
1
+ export * from "./Component.mobile-d7e9f69d";
2
+ export {};
@@ -0,0 +1,80 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { ButtonHTMLAttributes, ElementType, FC, AnchorHTMLAttributes, ReactElement } from "react";
4
+ import { ButtonProps } from "@alfalab/core-components-button";
5
+ interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
+ /**
7
+ * Вид компонента
8
+ */
9
+ view: "desktop" | "mobile";
10
+ /**
11
+ * Дополнительный класс
12
+ */
13
+ className?: string;
14
+ /**
15
+ * Позиция крестика
16
+ */
17
+ align?: "left" | "right";
18
+ /**
19
+ * Фиксирует крестик
20
+ */
21
+ sticky?: boolean;
22
+ /**
23
+ * Иконка
24
+ */
25
+ icon?: ElementType;
26
+ /**
27
+ * Идентификатор для систем автоматизированного тестирования
28
+ */
29
+ dataTestId?: string;
30
+ /**
31
+ * Коллбэк закрытия.
32
+ */
33
+ onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
34
+ }
35
+ declare const Closer: FC<CloserProps>;
36
+ type IconButtonProps = {
37
+ /**
38
+ * Компонент иконки
39
+ */
40
+ icon: ElementType<{
41
+ className?: string;
42
+ }> | ReactElement;
43
+ /**
44
+ * Тип кнопки
45
+ */
46
+ view?: "primary" | "secondary" | "transparent" | "tertiary" | "negative";
47
+ /**
48
+ * Размер компонента
49
+ */
50
+ size?: "xxs" | "xs" | "s";
51
+ /**
52
+ * Дополнительный класс
53
+ */
54
+ className?: string;
55
+ /**
56
+ * Выравнивание иконки
57
+ * @default 'center'
58
+ */
59
+ alignIcon?: "left" | "center" | "right";
60
+ /**
61
+ * Идентификатор для систем автоматизированного тестирования
62
+ */
63
+ dataTestId?: string;
64
+ /**
65
+ * Набор цветов для компонента
66
+ */
67
+ colors?: "default" | "inverted";
68
+ } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "Component" | "href" | "loading" | "breakpoint"> & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "target" | "download">;
69
+ declare const IconButton: React.ForwardRefExoticComponent<{
70
+ icon: ElementType<{
71
+ className?: string;
72
+ }> | ReactElement;
73
+ view?: "primary" | "secondary" | "tertiary" | "negative" | "transparent" | undefined;
74
+ size?: "s" | "xs" | "xxs" | undefined;
75
+ className?: string | undefined;
76
+ alignIcon?: "center" | "left" | "right" | undefined;
77
+ dataTestId?: string | undefined;
78
+ colors?: "default" | "inverted" | undefined;
79
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "size"> & Pick<ButtonProps, "href" | "Component" | "loading" | "breakpoint"> & Pick<React.AnchorHTMLAttributes<HTMLAnchorElement>, "download" | "target"> & React.RefAttributes<HTMLButtonElement>>;
80
+ export { CloserProps, Closer, IconButtonProps, IconButton };
package/esm/index.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 393qh */
1
+ /* hash: nx5b1 */
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 */
@@ -16,13 +16,13 @@
16
16
  --gap-m: 16px;
17
17
  } :root {
18
18
  } :root {
19
- } .picker-button__container_19ryi {
19
+ } .picker-button__container_1074s {
20
20
  min-width: auto;
21
- } .cc-picker-button.picker-button__optionsPopover_19ryi.picker-button__sideGap_19ryi {
21
+ } .cc-picker-button.picker-button__optionsPopover_1074s.picker-button__sideGap_1074s {
22
22
  padding: 0 var(--gap-xs);
23
- } .cc-picker-button .picker-button__option_19ryi {
23
+ } .cc-picker-button .picker-button__option_1074s {
24
24
  padding: 0 var(--gap-m)
25
- } .cc-picker-button .picker-button__option_19ryi:before {
25
+ } .cc-picker-button .picker-button__option_1074s:before {
26
26
  /* Удаляем разделители у опций выпадающего списка. */
27
27
  display: none;
28
28
  }
package/esm/index.js CHANGED
@@ -4,6 +4,7 @@ import 'react';
4
4
  import '@alfalab/hooks';
5
5
  import './Component.desktop.js';
6
6
  import 'classnames';
7
+ import '@alfalab/core-components-popover/esm';
7
8
  import '@alfalab/core-components-select/esm/shared';
8
9
  import './field/Component.js';
9
10
  import '@alfalab/core-components-button/esm';
@@ -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_17ijm","icon":"picker-button__icon_17ijm","content":"picker-button__content_17ijm"};
5
+ var styles = {"container":"picker-button__container_xxpve","icon":"picker-button__icon_xxpve","content":"picker-button__content_xxpve"};
6
6
  require('./index.css')
7
7
 
8
8
  var Option = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1e4ss */
1
+ /* hash: 1dusi */
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 */
@@ -15,13 +15,13 @@
15
15
  --gap-s: 12px;
16
16
  } :root {
17
17
  } :root {
18
- } .picker-button__container_17ijm {
18
+ } .picker-button__container_xxpve {
19
19
  display: flex;
20
20
  align-items: center;
21
- } .picker-button__icon_17ijm {
21
+ } .picker-button__icon_xxpve {
22
22
  display: flex;
23
23
  margin-right: var(--gap-s);
24
- } .picker-button__content_17ijm {
24
+ } .picker-button__content_xxpve {
25
25
  overflow: hidden;
26
26
  flex: 1;
27
27
  text-overflow: ellipsis;
@@ -0,0 +1,13 @@
1
+ type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
2
+ type WidthUnit = number | string;
3
+ type TextSkeletonProps = {
4
+ /**
5
+ * Кол-во строк текста
6
+ */
7
+ rows?: number;
8
+ /**
9
+ * Ширина строки
10
+ */
11
+ width?: WidthUnit | WidthUnit[];
12
+ };
13
+ export { TextElementType, TextSkeletonProps };
@@ -0,0 +1,113 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { ReactNode } from "react";
4
+ import { CloserProps } from "./index-ebda875c";
5
+ type NavigationBarProps = {
6
+ /**
7
+ * Контент шапки
8
+ */
9
+ children?: ReactNode;
10
+ /**
11
+ * Заголовок шапки
12
+ */
13
+ title?: string;
14
+ /**
15
+ * Подзаголовок (доступен только в мобильной версии)
16
+ */
17
+ subtitle?: ReactNode;
18
+ /**
19
+ * Размер заголовка (compact доступен только в мобильной версии)
20
+ */
21
+ titleSize?: 'default' | 'compact';
22
+ /**
23
+ * Доп. класс для аддонов
24
+ */
25
+ addonClassName?: string;
26
+ /**
27
+ * Слот слева
28
+ */
29
+ leftAddons?: ReactNode;
30
+ /**
31
+ * Слот справа
32
+ */
33
+ rightAddons?: ReactNode;
34
+ /**
35
+ * Дополнительный класс для closer
36
+ */
37
+ closerClassName?: string;
38
+ /**
39
+ * Слот снизу
40
+ */
41
+ bottomAddons?: ReactNode;
42
+ /**
43
+ * Наличие компонента крестика
44
+ */
45
+ hasCloser?: boolean;
46
+ /**
47
+ * Наличие кнопки "Назад"
48
+ */
49
+ hasBackButton?: boolean;
50
+ /**
51
+ * Дополнительный класс для правого аддона
52
+ */
53
+ backButtonClassName?: string;
54
+ /**
55
+ * Дополнительный класс
56
+ */
57
+ className?: string;
58
+ /**
59
+ * Дополнительный класс для контента
60
+ */
61
+ contentClassName?: string;
62
+ /**
63
+ * Дополнительный класс для нижнего аддона
64
+ */
65
+ bottomAddonsClassName?: string;
66
+ /**
67
+ * Выравнивание заголовка
68
+ */
69
+ align?: 'left' | 'center';
70
+ /**
71
+ * Обрезать ли заголовок
72
+ */
73
+ trim?: boolean;
74
+ /**
75
+ * Фиксирует шапку
76
+ */
77
+ sticky?: boolean;
78
+ /**
79
+ * Идентификатор для систем автоматизированного тестирования
80
+ */
81
+ dataTestId?: string;
82
+ /**
83
+ * Фоновое изображение
84
+ */
85
+ imageUrl?: string;
86
+ /**
87
+ * Иконка closer.
88
+ */
89
+ closerIcon?: React.ElementType;
90
+ /**
91
+ * Обработчик закрытия
92
+ */
93
+ onClose?: CloserProps['onClose'];
94
+ /**
95
+ * обработчик клика по кнопке "назад"
96
+ */
97
+ onBack?: () => void;
98
+ /**
99
+ * Вид шапки - мобильный или десктоп
100
+ */
101
+ view: 'desktop' | 'mobile';
102
+ /**
103
+ * Ссылка на родительскую ноду overflow: auto
104
+ */
105
+ scrollableParentRef?: React.RefObject<HTMLDivElement>;
106
+ };
107
+ type ContentParams = {
108
+ extraClassName?: string;
109
+ wrapperRef?: React.RefObject<HTMLDivElement>;
110
+ style?: React.CSSProperties;
111
+ hidden?: boolean;
112
+ };
113
+ export { NavigationBarProps, ContentParams };