@alfalab/core-components-tabs 8.1.6 → 8.2.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.
- package/collapsible/index.d.ts +2 -0
- package/{collapsible.js → collapsible/index.js} +10 -10
- package/collapsible/package.json +3 -0
- package/components/primary-tablist/Component.collapsible.js +9 -9
- package/components/primary-tablist/Component.desktop.js +2 -2
- package/components/primary-tablist/Component.mobile.js +3 -3
- package/components/primary-tablist/Component.responsive.js +1 -1
- package/components/primary-tablist/index.css +30 -30
- package/components/primary-tablist/mobile.css +33 -33
- package/components/scroll-controls/Component.js +1 -1
- package/components/scroll-controls/index.css +14 -14
- package/components/scrollable-container/Component.js +1 -1
- package/components/scrollable-container/index.css +6 -6
- package/components/secondary-tablist/Component.desktop.js +1 -1
- package/components/secondary-tablist/Component.mobile.js +2 -2
- package/components/secondary-tablist/Component.responsive.js +1 -1
- package/components/secondary-tablist/index.css +11 -11
- package/components/secondary-tablist/mobile.css +13 -13
- package/components/tab/Component.js +1 -1
- package/components/tab/index.css +3 -3
- package/components/tabs/Component.collapsible.js +1 -1
- package/components/tabs/Component.desktop.js +2 -2
- package/components/tabs/Component.mobile.js +2 -2
- package/components/tabs/Component.responsive.js +2 -2
- package/cssm/collapsible/index.d.ts +2 -0
- package/cssm/{collapsible.js → collapsible/index.js} +11 -11
- package/cssm/desktop/index.d.ts +4 -0
- package/cssm/desktop/index.js +40 -0
- package/cssm/mobile/index.d.ts +4 -0
- package/cssm/mobile/index.js +42 -0
- package/cssm/shared/index.d.ts +4 -0
- package/cssm/{shared.js → shared/index.js} +7 -7
- package/desktop/index.d.ts +4 -0
- package/desktop/index.js +37 -0
- package/desktop/package.json +3 -0
- package/esm/collapsible/index.d.ts +2 -0
- package/esm/collapsible/index.js +20 -0
- package/esm/components/primary-tablist/Component.collapsible.js +9 -9
- package/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/esm/components/primary-tablist/Component.mobile.js +3 -3
- package/esm/components/primary-tablist/Component.responsive.js +1 -1
- package/esm/components/primary-tablist/index.css +30 -30
- package/esm/components/primary-tablist/mobile.css +33 -33
- package/esm/components/scroll-controls/Component.js +1 -1
- package/esm/components/scroll-controls/index.css +14 -14
- package/esm/components/scrollable-container/Component.js +1 -1
- package/esm/components/scrollable-container/index.css +6 -6
- package/esm/components/secondary-tablist/Component.desktop.js +1 -1
- package/esm/components/secondary-tablist/Component.mobile.js +2 -2
- package/esm/components/secondary-tablist/Component.responsive.js +1 -1
- package/esm/components/secondary-tablist/index.css +11 -11
- package/esm/components/secondary-tablist/mobile.css +13 -13
- package/esm/components/tab/Component.js +1 -1
- package/esm/components/tab/index.css +3 -3
- package/esm/components/tabs/Component.collapsible.js +1 -1
- package/esm/components/tabs/Component.desktop.js +2 -2
- package/esm/components/tabs/Component.mobile.js +2 -2
- package/esm/components/tabs/Component.responsive.js +2 -2
- package/esm/desktop/index.d.ts +4 -0
- package/esm/desktop/index.js +26 -0
- package/esm/index.js +2 -2
- package/esm/index.module-0eaed9a1.js +4 -0
- package/esm/index.module-9c24fafb.js +4 -0
- package/esm/mobile/index.d.ts +4 -0
- package/esm/mobile/index.js +26 -0
- package/esm/shared/index.d.ts +4 -0
- package/esm/{shared.js → shared/index.js} +5 -5
- package/index.js +2 -2
- package/index.module-177df2c1.js +6 -0
- package/index.module-2f940b9f.js +6 -0
- package/mobile/index.d.ts +4 -0
- package/mobile/index.js +37 -0
- package/mobile/package.json +3 -0
- package/modern/collapsible/index.d.ts +2 -0
- package/modern/collapsible/index.js +19 -0
- package/modern/components/primary-tablist/Component.collapsible.js +9 -9
- package/modern/components/primary-tablist/Component.desktop.js +2 -2
- package/modern/components/primary-tablist/Component.mobile.js +3 -3
- package/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/modern/components/primary-tablist/index.css +30 -30
- package/modern/components/primary-tablist/mobile.css +33 -33
- package/modern/components/scroll-controls/Component.js +1 -1
- package/modern/components/scroll-controls/index.css +14 -14
- package/modern/components/scrollable-container/Component.js +1 -1
- package/modern/components/scrollable-container/index.css +6 -6
- package/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/modern/components/secondary-tablist/Component.mobile.js +2 -2
- package/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/modern/components/secondary-tablist/index.css +11 -11
- package/modern/components/secondary-tablist/mobile.css +13 -13
- package/modern/components/tab/Component.js +1 -1
- package/modern/components/tab/index.css +3 -3
- package/modern/components/tabs/Component.collapsible.js +1 -1
- package/modern/components/tabs/Component.desktop.js +2 -2
- package/modern/components/tabs/Component.mobile.js +2 -2
- package/modern/components/tabs/Component.responsive.js +2 -2
- package/modern/desktop/index.d.ts +4 -0
- package/modern/desktop/index.js +25 -0
- package/modern/index.js +2 -2
- package/modern/index.module-4070c7f9.js +4 -0
- package/modern/index.module-a791a93d.js +4 -0
- package/modern/mobile/index.d.ts +4 -0
- package/modern/mobile/index.js +25 -0
- package/modern/shared/index.d.ts +4 -0
- package/modern/{shared.js → shared/index.js} +5 -5
- package/package.json +5 -5
- package/shared/index.d.ts +4 -0
- package/{shared.js → shared/index.js} +5 -5
- package/shared/package.json +3 -0
- package/src/collapsible/index.ts +2 -0
- package/src/collapsible/package.json +3 -0
- package/src/desktop/index.ts +4 -0
- package/src/desktop/package.json +3 -0
- package/src/mobile/index.ts +4 -0
- package/src/mobile/package.json +3 -0
- package/src/shared/index.ts +4 -0
- package/src/shared/package.json +3 -0
- package/Component-0f4b9bed.d.ts +0 -100
- package/Component-4cd3936b.d.ts +0 -12
- package/Component-69921c40.d.ts +0 -184
- package/Component-89f0cb07.d.ts +0 -38
- package/Component-8b2c2707.d.ts +0 -14
- package/Component-bdb4c6b9.d.ts +0 -12
- package/Component-c76d6398.d.ts +0 -5
- package/Component-ebda875c.d.ts +0 -12
- package/Component.desktop-0aa4e915.d.ts +0 -5
- package/Component.desktop-785df74d.d.ts +0 -6
- package/Component.mobile-16b1285a.d.ts +0 -5
- package/Component.mobile-d7e9f69d.d.ts +0 -6
- package/Component.mobile-ebda875c.d.ts +0 -6
- package/Context-bdb4c6b9.d.ts +0 -4
- package/ResponsiveContext-baf4875b.d.ts +0 -5
- package/collapsible.d.ts +0 -2
- package/consts-f777ba1a.d.ts +0 -2
- package/cssm/Component-0f4b9bed.d.ts +0 -100
- package/cssm/Component-4cd3936b.d.ts +0 -12
- package/cssm/Component-69921c40.d.ts +0 -184
- package/cssm/Component-89f0cb07.d.ts +0 -38
- package/cssm/Component-8b2c2707.d.ts +0 -14
- package/cssm/Component-bdb4c6b9.d.ts +0 -12
- package/cssm/Component-c76d6398.d.ts +0 -5
- package/cssm/Component-ebda875c.d.ts +0 -12
- package/cssm/Component.desktop-0aa4e915.d.ts +0 -5
- package/cssm/Component.desktop-785df74d.d.ts +0 -6
- package/cssm/Component.mobile-16b1285a.d.ts +0 -5
- package/cssm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/cssm/Component.mobile-ebda875c.d.ts +0 -6
- package/cssm/Context-bdb4c6b9.d.ts +0 -4
- package/cssm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/cssm/collapsible.d.ts +0 -2
- package/cssm/consts-f777ba1a.d.ts +0 -2
- package/cssm/desktop-89f0cb07.d.ts +0 -2
- package/cssm/desktop.d.ts +0 -4
- package/cssm/desktop.js +0 -40
- package/cssm/hook-8abfea97.d.ts +0 -90
- package/cssm/index-136acbb1.d.ts +0 -28
- package/cssm/index-8b2c2707.d.ts +0 -6
- package/cssm/index-bdb4c6b9.d.ts +0 -2
- package/cssm/index-c44170fe.d.ts +0 -131
- package/cssm/index-c76d6398.d.ts +0 -140
- package/cssm/index-ebda875c.d.ts +0 -40
- package/cssm/index-f12ee135.d.ts +0 -324
- package/cssm/mobile-89f0cb07.d.ts +0 -2
- package/cssm/mobile-d7e9f69d.d.ts +0 -2
- package/cssm/mobile.d.ts +0 -4
- package/cssm/mobile.js +0 -42
- package/cssm/shared-4cd3936b.d.ts +0 -107
- package/cssm/shared.d.ts +0 -4
- package/cssm/types-1b036d4b.d.ts +0 -13
- package/cssm/types-4480ac4f.d.ts +0 -3
- package/cssm/typings-0f4b9bed.d.ts +0 -576
- package/cssm/typings-89f0cb07.d.ts +0 -93
- package/cssm/typings-bdb4c6b9.d.ts +0 -52
- package/cssm/useSkeleton-ebda875c.d.ts +0 -12
- package/cssm/utils-0f4b9bed.d.ts +0 -41
- package/cssm/utils-1574ad8b.d.ts +0 -29
- package/desktop-89f0cb07.d.ts +0 -2
- package/desktop.d.ts +0 -4
- package/desktop.js +0 -37
- package/esm/Component-0f4b9bed.d.ts +0 -100
- package/esm/Component-4cd3936b.d.ts +0 -12
- package/esm/Component-69921c40.d.ts +0 -184
- package/esm/Component-89f0cb07.d.ts +0 -38
- package/esm/Component-8b2c2707.d.ts +0 -14
- package/esm/Component-bdb4c6b9.d.ts +0 -12
- package/esm/Component-c76d6398.d.ts +0 -5
- package/esm/Component-ebda875c.d.ts +0 -12
- package/esm/Component.desktop-0aa4e915.d.ts +0 -5
- package/esm/Component.desktop-785df74d.d.ts +0 -6
- package/esm/Component.mobile-16b1285a.d.ts +0 -5
- package/esm/Component.mobile-d7e9f69d.d.ts +0 -6
- package/esm/Component.mobile-ebda875c.d.ts +0 -6
- package/esm/Context-bdb4c6b9.d.ts +0 -4
- package/esm/ResponsiveContext-baf4875b.d.ts +0 -5
- package/esm/collapsible.d.ts +0 -2
- package/esm/collapsible.js +0 -20
- package/esm/consts-f777ba1a.d.ts +0 -2
- package/esm/desktop-89f0cb07.d.ts +0 -2
- package/esm/desktop.d.ts +0 -4
- package/esm/desktop.js +0 -26
- package/esm/hook-8abfea97.d.ts +0 -90
- package/esm/index-136acbb1.d.ts +0 -28
- package/esm/index-8b2c2707.d.ts +0 -6
- package/esm/index-bdb4c6b9.d.ts +0 -2
- package/esm/index-c44170fe.d.ts +0 -131
- package/esm/index-c76d6398.d.ts +0 -140
- package/esm/index-ebda875c.d.ts +0 -105
- package/esm/index-f12ee135.d.ts +0 -324
- package/esm/index.module-072f7a03.js +0 -4
- package/esm/index.module-64994e8d.js +0 -4
- package/esm/mobile-89f0cb07.d.ts +0 -2
- package/esm/mobile-d7e9f69d.d.ts +0 -2
- package/esm/mobile.d.ts +0 -4
- package/esm/mobile.js +0 -26
- package/esm/shared-4cd3936b.d.ts +0 -107
- package/esm/shared.d.ts +0 -4
- package/esm/types-1b036d4b.d.ts +0 -13
- package/esm/types-4480ac4f.d.ts +0 -3
- package/esm/typings-0f4b9bed.d.ts +0 -576
- package/esm/typings-89f0cb07.d.ts +0 -93
- package/esm/typings-bdb4c6b9.d.ts +0 -52
- package/esm/useSkeleton-ebda875c.d.ts +0 -12
- package/esm/utils-0f4b9bed.d.ts +0 -41
- package/esm/utils-1574ad8b.d.ts +0 -29
- package/hook-8abfea97.d.ts +0 -90
- package/index-136acbb1.d.ts +0 -28
- package/index-8b2c2707.d.ts +0 -6
- package/index-bdb4c6b9.d.ts +0 -2
- package/index-c44170fe.d.ts +0 -131
- package/index-c76d6398.d.ts +0 -140
- package/index-ebda875c.d.ts +0 -40
- package/index-f12ee135.d.ts +0 -324
- package/index.module-5f6b14c2.js +0 -6
- package/index.module-e4f107c7.js +0 -6
- package/mobile-89f0cb07.d.ts +0 -2
- package/mobile-d7e9f69d.d.ts +0 -2
- package/mobile.d.ts +0 -4
- package/mobile.js +0 -37
- package/modern/Component-0f4b9bed.d.ts +0 -100
- package/modern/Component-4cd3936b.d.ts +0 -12
- package/modern/Component-69921c40.d.ts +0 -184
- package/modern/Component-89f0cb07.d.ts +0 -38
- package/modern/Component-8b2c2707.d.ts +0 -14
- package/modern/Component-bdb4c6b9.d.ts +0 -12
- package/modern/Component-c76d6398.d.ts +0 -5
- package/modern/Component-ebda875c.d.ts +0 -12
- package/modern/Component.desktop-0aa4e915.d.ts +0 -5
- package/modern/Component.desktop-785df74d.d.ts +0 -6
- package/modern/Component.mobile-16b1285a.d.ts +0 -5
- package/modern/Component.mobile-d7e9f69d.d.ts +0 -6
- package/modern/Component.mobile-ebda875c.d.ts +0 -6
- package/modern/Context-bdb4c6b9.d.ts +0 -4
- package/modern/ResponsiveContext-baf4875b.d.ts +0 -5
- package/modern/collapsible.d.ts +0 -2
- package/modern/collapsible.js +0 -19
- package/modern/consts-f777ba1a.d.ts +0 -2
- package/modern/desktop-89f0cb07.d.ts +0 -2
- package/modern/desktop.d.ts +0 -4
- package/modern/desktop.js +0 -25
- package/modern/hook-8abfea97.d.ts +0 -90
- package/modern/index-136acbb1.d.ts +0 -28
- package/modern/index-8b2c2707.d.ts +0 -6
- package/modern/index-bdb4c6b9.d.ts +0 -2
- package/modern/index-c44170fe.d.ts +0 -131
- package/modern/index-c76d6398.d.ts +0 -140
- package/modern/index-ebda875c.d.ts +0 -105
- package/modern/index-f12ee135.d.ts +0 -324
- package/modern/index.module-5e57388f.js +0 -4
- package/modern/index.module-633b90f6.js +0 -4
- package/modern/mobile-89f0cb07.d.ts +0 -2
- package/modern/mobile-d7e9f69d.d.ts +0 -2
- package/modern/mobile.d.ts +0 -4
- package/modern/mobile.js +0 -25
- package/modern/shared-4cd3936b.d.ts +0 -107
- package/modern/shared.d.ts +0 -4
- package/modern/types-1b036d4b.d.ts +0 -13
- package/modern/types-4480ac4f.d.ts +0 -3
- package/modern/typings-0f4b9bed.d.ts +0 -576
- package/modern/typings-89f0cb07.d.ts +0 -93
- package/modern/typings-bdb4c6b9.d.ts +0 -52
- package/modern/useSkeleton-ebda875c.d.ts +0 -12
- package/modern/utils-0f4b9bed.d.ts +0 -41
- package/modern/utils-1574ad8b.d.ts +0 -29
- package/shared-4cd3936b.d.ts +0 -107
- package/shared.d.ts +0 -4
- package/src/collapsible.ts +0 -2
- package/src/desktop.ts +0 -4
- package/src/mobile.ts +0 -4
- package/src/shared.ts +0 -4
- package/types-1b036d4b.d.ts +0 -13
- package/types-4480ac4f.d.ts +0 -3
- package/typings-0f4b9bed.d.ts +0 -576
- package/typings-89f0cb07.d.ts +0 -93
- package/typings-bdb4c6b9.d.ts +0 -52
- package/useSkeleton-ebda875c.d.ts +0 -12
- package/utils-0f4b9bed.d.ts +0 -41
- package/utils-1574ad8b.d.ts +0 -29
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./index-c44170fe";
|
|
4
|
-
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
-
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { FormControlDesktopProps, FormControlDesktop };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { CommonButtonProps } from "./typings-89f0cb07";
|
|
4
|
-
declare const ButtonMobile: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
|
-
export { ButtonMobile };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { BaseFormControlProps } from "./index-c44170fe";
|
|
4
|
-
type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
-
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { FormControlMobileProps, FormControlMobile };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { BaseTagProps } from "./index-ebda875c";
|
|
4
|
-
type TagMobileProps = Omit<BaseTagProps, 'styles' | 'colorStylesMap'>;
|
|
5
|
-
declare const TagMobile: React.ForwardRefExoticComponent<TagMobileProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
export { TagMobileProps, TagMobile };
|
package/esm/collapsible.d.ts
DELETED
package/esm/collapsible.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export { TabsCollapsible } from './components/tabs/Component.collapsible.js';
|
|
2
|
-
export { Tab } from './components/tab/Component.js';
|
|
3
|
-
import 'tslib';
|
|
4
|
-
import 'react';
|
|
5
|
-
import './components/primary-tablist/Component.collapsible.js';
|
|
6
|
-
import 'classnames';
|
|
7
|
-
import '@alfalab/core-components-badge/esm';
|
|
8
|
-
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
9
|
-
import '@alfalab/core-components-picker-button/esm/desktop';
|
|
10
|
-
import './hooks/use-tablist-titles.js';
|
|
11
|
-
import '@alfalab/core-components-mq/esm';
|
|
12
|
-
import './hooks/use-collapsible-elements.js';
|
|
13
|
-
import '@juggle/resize-observer';
|
|
14
|
-
import '@alfalab/hooks';
|
|
15
|
-
import './hooks/use-tabs.js';
|
|
16
|
-
import '@alfalab/core-components-shared/esm';
|
|
17
|
-
import './synthetic-events.js';
|
|
18
|
-
import './components/title/Component.js';
|
|
19
|
-
import './index.module-072f7a03.js';
|
|
20
|
-
import './components/tabs/Component.js';
|
package/esm/consts-f777ba1a.d.ts
DELETED
package/esm/desktop.d.ts
DELETED
package/esm/desktop.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export { PrimaryTabListDesktop } from './components/primary-tablist/Component.desktop.js';
|
|
2
|
-
export { SecondaryTabListDesktop } from './components/secondary-tablist/Component.desktop.js';
|
|
3
|
-
export { Tab } from './components/tab/Component.js';
|
|
4
|
-
export { TabsDesktop } from './components/tabs/Component.desktop.js';
|
|
5
|
-
import 'tslib';
|
|
6
|
-
import 'react';
|
|
7
|
-
import './components/primary-tablist/Component.js';
|
|
8
|
-
import '@juggle/resize-observer';
|
|
9
|
-
import 'classnames';
|
|
10
|
-
import '@alfalab/core-components-keyboard-focusable/esm';
|
|
11
|
-
import '@alfalab/core-components-shared/esm';
|
|
12
|
-
import './hooks/use-tabs.js';
|
|
13
|
-
import './components/scrollable-container/Component.js';
|
|
14
|
-
import 'compute-scroll-into-view';
|
|
15
|
-
import './components/scroll-controls/Component.js';
|
|
16
|
-
import 'lodash.debounce';
|
|
17
|
-
import '@alfalab/core-components-icon-button/esm';
|
|
18
|
-
import '@alfalab/icons-glyph/ChevronLeftMIcon';
|
|
19
|
-
import '@alfalab/icons-glyph/ChevronRightMIcon';
|
|
20
|
-
import './components/scroll-controls/utils.js';
|
|
21
|
-
import './components/title/Component.js';
|
|
22
|
-
import './index.module-072f7a03.js';
|
|
23
|
-
import '@alfalab/core-components-tag/esm/desktop';
|
|
24
|
-
import './components/secondary-tablist/Component.js';
|
|
25
|
-
import './index.module-64994e8d.js';
|
|
26
|
-
import './components/tabs/Component.js';
|
package/esm/hook-8abfea97.d.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { BaseSelectProps, OptionShape } from "./typings-0f4b9bed";
|
|
3
|
-
type UseSelectWithApplyProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Список выбранных пунктов
|
|
6
|
-
*/
|
|
7
|
-
selected: BaseSelectProps['selected'];
|
|
8
|
-
/**
|
|
9
|
-
* Список вариантов выбора
|
|
10
|
-
*/
|
|
11
|
-
options: BaseSelectProps['options'];
|
|
12
|
-
/**
|
|
13
|
-
* Обработчик выбора
|
|
14
|
-
*/
|
|
15
|
-
onChange: BaseSelectProps['onChange'];
|
|
16
|
-
/**
|
|
17
|
-
* Компонент выпадающего меню
|
|
18
|
-
*/
|
|
19
|
-
OptionsList?: BaseSelectProps['OptionsList'];
|
|
20
|
-
/**
|
|
21
|
-
* Пропсы, которые будут прокинуты в компонент списка
|
|
22
|
-
*/
|
|
23
|
-
optionsListProps?: BaseSelectProps['optionsListProps'];
|
|
24
|
-
/**
|
|
25
|
-
* Включает отображение поиска
|
|
26
|
-
*/
|
|
27
|
-
showSearch?: BaseSelectProps['showSearch'];
|
|
28
|
-
/**
|
|
29
|
-
* Настройки поиска
|
|
30
|
-
*/
|
|
31
|
-
searchProps?: BaseSelectProps['searchProps'];
|
|
32
|
-
/**
|
|
33
|
-
* Показывать кнопку очистки
|
|
34
|
-
*/
|
|
35
|
-
showClear?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Показывать пункт "Выбрать все"
|
|
38
|
-
*/
|
|
39
|
-
showSelectAll?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Показывать пункт "Выбрать все" в заголовке списка
|
|
42
|
-
*/
|
|
43
|
-
showHeaderWithSelectAll?: boolean;
|
|
44
|
-
};
|
|
45
|
-
declare const SELECT_ALL_KEY = "select_all";
|
|
46
|
-
declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
|
|
47
|
-
OptionsList: import("react").ForwardRefExoticComponent<import("./typings-0f4b9bed").OptionsListProps & {
|
|
48
|
-
showClear?: boolean | undefined;
|
|
49
|
-
onClose?: (() => void) | undefined; /**
|
|
50
|
-
* Компонент выпадающего меню
|
|
51
|
-
*/
|
|
52
|
-
selectedDraft?: OptionShape[] | undefined;
|
|
53
|
-
OptionsList?: import("react").FC<import("./typings-0f4b9bed").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
54
|
-
Footer?: import("react").FC<import("./Component-0f4b9bed").FooterProps> | undefined;
|
|
55
|
-
Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
|
|
56
|
-
headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
|
|
57
|
-
showHeaderWithSelectAll?: boolean | undefined;
|
|
58
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
59
|
-
optionsListProps: {
|
|
60
|
-
OptionsList: import("react").FC<import("./typings-0f4b9bed").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
|
|
61
|
-
showClear: boolean;
|
|
62
|
-
onClear: () => void;
|
|
63
|
-
onApply: () => void;
|
|
64
|
-
onClose: () => void;
|
|
65
|
-
selectedDraft: OptionShape[];
|
|
66
|
-
showHeaderWithSelectAll: boolean;
|
|
67
|
-
headerProps: {
|
|
68
|
-
indeterminate: boolean;
|
|
69
|
-
checked: boolean;
|
|
70
|
-
onChange: () => void;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
allowUnselect: boolean;
|
|
74
|
-
multiple: boolean;
|
|
75
|
-
options: (OptionShape | import("./typings-0f4b9bed").GroupShape | {
|
|
76
|
-
key: string;
|
|
77
|
-
content: string;
|
|
78
|
-
})[];
|
|
79
|
-
onChange: (payload: import("./typings-0f4b9bed").BaseSelectChangePayload) => void;
|
|
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;
|
|
88
|
-
};
|
|
89
|
-
export * from "./Component-0f4b9bed";
|
|
90
|
-
export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
|
package/esm/index-136acbb1.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FC, ReactNode } from "react";
|
|
3
|
-
/**
|
|
4
|
-
* Набор констант для z-index соответствующих классов компонентов.
|
|
5
|
-
* Значения выбраны по приоритету.
|
|
6
|
-
*/
|
|
7
|
-
declare const stackingOrder: {
|
|
8
|
-
FOCUSED: number;
|
|
9
|
-
DEFAULT: number;
|
|
10
|
-
POPOVER: number;
|
|
11
|
-
MODAL: number;
|
|
12
|
-
TOAST: number;
|
|
13
|
-
};
|
|
14
|
-
declare const StackingContext: import("react").Context<number>;
|
|
15
|
-
type StackProps = {
|
|
16
|
-
/**
|
|
17
|
-
* Render prop, в который передается функция.
|
|
18
|
-
* Функция принимает аргумент со значением z-index из текущего контекста.
|
|
19
|
-
*/
|
|
20
|
-
children: (value: number) => ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Исходное значение для z-index.
|
|
23
|
-
* @default 5
|
|
24
|
-
*/
|
|
25
|
-
value?: number;
|
|
26
|
-
};
|
|
27
|
-
declare const Stack: FC<StackProps>;
|
|
28
|
-
export { stackingOrder, StackingContext, StackProps, Stack };
|
package/esm/index-8b2c2707.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { ButtonProps } from "./typings-89f0cb07";
|
|
4
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
|
-
export { Button };
|
|
6
|
-
export type { ButtonProps } from "./typings-89f0cb07";
|
package/esm/index-bdb4c6b9.d.ts
DELETED
package/esm/index-c44170fe.d.ts
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { HTMLAttributes, ReactNode } from "react";
|
|
4
|
-
type StyleColors = {
|
|
5
|
-
default: {
|
|
6
|
-
[key: string]: string;
|
|
7
|
-
};
|
|
8
|
-
inverted: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
type BaseFormControlProps = HTMLAttributes<HTMLDivElement> & {
|
|
13
|
-
/**
|
|
14
|
-
* Растягивает компонент на ширину контейнера
|
|
15
|
-
*/
|
|
16
|
-
block?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Размер компонента
|
|
19
|
-
*/
|
|
20
|
-
size?: "s" | "m" | "l" | "xl";
|
|
21
|
-
/**
|
|
22
|
-
* Набор цветов для компонента
|
|
23
|
-
*/
|
|
24
|
-
colors?: "default" | "inverted";
|
|
25
|
-
/**
|
|
26
|
-
* Заблокированное состояние
|
|
27
|
-
*/
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Cостояние только для чтения
|
|
31
|
-
*/
|
|
32
|
-
readOnly?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Заполненное состояние
|
|
35
|
-
*/
|
|
36
|
-
filled?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Выбранное (фокус) состояние
|
|
39
|
-
*/
|
|
40
|
-
focused?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Отображение ошибки
|
|
43
|
-
*/
|
|
44
|
-
error?: ReactNode | boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Текст подсказки
|
|
47
|
-
*/
|
|
48
|
-
hint?: ReactNode;
|
|
49
|
-
/**
|
|
50
|
-
* Лейбл компонента
|
|
51
|
-
*/
|
|
52
|
-
label?: ReactNode;
|
|
53
|
-
/**
|
|
54
|
-
* Вид лейбла внутри / снаружи
|
|
55
|
-
*/
|
|
56
|
-
labelView?: "inner" | "outer";
|
|
57
|
-
/**
|
|
58
|
-
* Слот слева
|
|
59
|
-
*/
|
|
60
|
-
leftAddons?: ReactNode;
|
|
61
|
-
/**
|
|
62
|
-
* Слот справа
|
|
63
|
-
*/
|
|
64
|
-
rightAddons?: ReactNode;
|
|
65
|
-
/**
|
|
66
|
-
* Слот под полем
|
|
67
|
-
*/
|
|
68
|
-
bottomAddons?: ReactNode;
|
|
69
|
-
/**
|
|
70
|
-
* Дополнительный класс
|
|
71
|
-
*/
|
|
72
|
-
className?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Дополнительный класс для поля
|
|
75
|
-
*/
|
|
76
|
-
fieldClassName?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Дополнительный класс для поля
|
|
79
|
-
*/
|
|
80
|
-
inputWrapperClassName?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Дополнительный класс для лейбла
|
|
83
|
-
*/
|
|
84
|
-
labelClassName?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Дополнительный класс для аддонов
|
|
87
|
-
*/
|
|
88
|
-
addonsClassName?: string;
|
|
89
|
-
/**
|
|
90
|
-
* Свойства для обертки левых аддонов
|
|
91
|
-
*/
|
|
92
|
-
leftAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
93
|
-
/**
|
|
94
|
-
* Свойства для обертки правых аддонов
|
|
95
|
-
*/
|
|
96
|
-
rightAddonsProps?: HTMLAttributes<HTMLDivElement>;
|
|
97
|
-
/**
|
|
98
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
99
|
-
*/
|
|
100
|
-
dataTestId?: string;
|
|
101
|
-
/**
|
|
102
|
-
* Компонент поля (инпут, textarea и пр.)
|
|
103
|
-
*/
|
|
104
|
-
children?: ReactNode;
|
|
105
|
-
/**
|
|
106
|
-
* Основные стили компонента.
|
|
107
|
-
*/
|
|
108
|
-
styles: {
|
|
109
|
-
[key: string]: string;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Стили компонента для default и inverted режима.
|
|
113
|
-
*/
|
|
114
|
-
colorStyles?: StyleColors;
|
|
115
|
-
};
|
|
116
|
-
type FormControlProps = Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
117
|
-
/**
|
|
118
|
-
* Контрольная точка, с нее начинается desktop версия
|
|
119
|
-
* @default 1024
|
|
120
|
-
*/
|
|
121
|
-
breakpoint?: number;
|
|
122
|
-
/**
|
|
123
|
-
* Значение по-умолчанию для хука useMatchMedia
|
|
124
|
-
*/
|
|
125
|
-
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
126
|
-
};
|
|
127
|
-
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
128
|
-
breakpoint?: number | undefined;
|
|
129
|
-
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
130
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
131
|
-
export { FormControlProps, FormControl };
|
package/esm/index-c76d6398.d.ts
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/* eslint-disable complexity */
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { ReactNode, ButtonHTMLAttributes, ElementType } from "react";
|
|
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
|
-
type NavigationBarProps = {
|
|
36
|
-
/**
|
|
37
|
-
* Контент шапки
|
|
38
|
-
*/
|
|
39
|
-
children?: ReactNode;
|
|
40
|
-
/**
|
|
41
|
-
* Заголовок шапки
|
|
42
|
-
*/
|
|
43
|
-
title?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Подзаголовок (доступен только в мобильной версии)
|
|
46
|
-
*/
|
|
47
|
-
subtitle?: ReactNode;
|
|
48
|
-
/**
|
|
49
|
-
* Размер заголовка (compact доступен только в мобильной версии)
|
|
50
|
-
*/
|
|
51
|
-
titleSize?: "default" | "compact";
|
|
52
|
-
/**
|
|
53
|
-
* Доп. класс для аддонов
|
|
54
|
-
*/
|
|
55
|
-
addonClassName?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Слот слева
|
|
58
|
-
*/
|
|
59
|
-
leftAddons?: ReactNode;
|
|
60
|
-
/**
|
|
61
|
-
* Слот справа
|
|
62
|
-
*/
|
|
63
|
-
rightAddons?: ReactNode;
|
|
64
|
-
/**
|
|
65
|
-
* Дополнительный класс для closer
|
|
66
|
-
*/
|
|
67
|
-
closerClassName?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Слот снизу
|
|
70
|
-
*/
|
|
71
|
-
bottomAddons?: ReactNode;
|
|
72
|
-
/**
|
|
73
|
-
* Наличие компонента крестика
|
|
74
|
-
*/
|
|
75
|
-
hasCloser?: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Наличие кнопки "Назад"
|
|
78
|
-
*/
|
|
79
|
-
hasBackButton?: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Дополнительный класс для правого аддона
|
|
82
|
-
*/
|
|
83
|
-
backButtonClassName?: string;
|
|
84
|
-
/**
|
|
85
|
-
* Дополнительный класс
|
|
86
|
-
*/
|
|
87
|
-
className?: string;
|
|
88
|
-
/**
|
|
89
|
-
* Дополнительный класс для контента
|
|
90
|
-
*/
|
|
91
|
-
contentClassName?: string;
|
|
92
|
-
/**
|
|
93
|
-
* Дополнительный класс для нижнего аддона
|
|
94
|
-
*/
|
|
95
|
-
bottomAddonsClassName?: string;
|
|
96
|
-
/**
|
|
97
|
-
* Выравнивание заголовка
|
|
98
|
-
*/
|
|
99
|
-
align?: "left" | "center";
|
|
100
|
-
/**
|
|
101
|
-
* Обрезать ли заголовок
|
|
102
|
-
*/
|
|
103
|
-
trim?: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* Фиксирует шапку
|
|
106
|
-
*/
|
|
107
|
-
sticky?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
110
|
-
*/
|
|
111
|
-
dataTestId?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Фоновое изображение
|
|
114
|
-
*/
|
|
115
|
-
imageUrl?: string;
|
|
116
|
-
/**
|
|
117
|
-
* Иконка closer.
|
|
118
|
-
*/
|
|
119
|
-
closerIcon?: React.ElementType;
|
|
120
|
-
/**
|
|
121
|
-
* Обработчик закрытия
|
|
122
|
-
*/
|
|
123
|
-
onClose?: CloserProps["onClose"];
|
|
124
|
-
/**
|
|
125
|
-
* обработчик клика по кнопке "назад"
|
|
126
|
-
*/
|
|
127
|
-
onBack?: () => void;
|
|
128
|
-
/**
|
|
129
|
-
* Вид шапки - мобильный или десктоп
|
|
130
|
-
*/
|
|
131
|
-
view: "desktop" | "mobile";
|
|
132
|
-
/**
|
|
133
|
-
* Ссылка на родительскую ноду overflow: auto
|
|
134
|
-
*/
|
|
135
|
-
scrollableParentRef?: React.RefObject<HTMLDivElement>;
|
|
136
|
-
};
|
|
137
|
-
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
138
|
-
export { NavigationBar };
|
|
139
|
-
export * from "./Component-69921c40";
|
|
140
|
-
export type { NavigationBarProps };
|
package/esm/index-ebda875c.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react-transition-group" />
|
|
3
|
-
import React from "react";
|
|
4
|
-
import { ButtonHTMLAttributes, ReactNode, RefObject } from "react";
|
|
5
|
-
type StyleColors = {
|
|
6
|
-
default: {
|
|
7
|
-
[key: string]: string;
|
|
8
|
-
};
|
|
9
|
-
inverted: {
|
|
10
|
-
[key: string]: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
type NativeProps = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
14
|
-
type BaseTagProps = Omit<NativeProps, "onClick"> & {
|
|
15
|
-
/**
|
|
16
|
-
* Отображение кнопки в отмеченном (зажатом) состоянии
|
|
17
|
-
*/
|
|
18
|
-
checked?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Размер компонента
|
|
21
|
-
*/
|
|
22
|
-
size?: "xxs" | "xs" | "s" | "m" | "l" | "xl";
|
|
23
|
-
/**
|
|
24
|
-
* Дочерние элементы.
|
|
25
|
-
*/
|
|
26
|
-
children?: ReactNode;
|
|
27
|
-
/**
|
|
28
|
-
* Дополнительный класс для обёртки children
|
|
29
|
-
*/
|
|
30
|
-
childrenClassName?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Слот слева
|
|
33
|
-
*/
|
|
34
|
-
leftAddons?: ReactNode;
|
|
35
|
-
/**
|
|
36
|
-
* Слот справа
|
|
37
|
-
*/
|
|
38
|
-
rightAddons?: ReactNode;
|
|
39
|
-
/**
|
|
40
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
41
|
-
*/
|
|
42
|
-
dataTestId?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Обработчик нажатия
|
|
45
|
-
*/
|
|
46
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>, payload: {
|
|
47
|
-
checked: boolean;
|
|
48
|
-
name?: string;
|
|
49
|
-
}) => void;
|
|
50
|
-
/**
|
|
51
|
-
* ref на children
|
|
52
|
-
*/
|
|
53
|
-
childrenRef?: RefObject<HTMLSpanElement>;
|
|
54
|
-
/**
|
|
55
|
-
* Набор цветов для компонента
|
|
56
|
-
*/
|
|
57
|
-
colors?: "default" | "inverted";
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated данный проп больше не используется, временно оставлен для обратной совместимости
|
|
60
|
-
* Используйте props shape и view
|
|
61
|
-
* Вариант тега
|
|
62
|
-
*/
|
|
63
|
-
variant?: "default" | "alt";
|
|
64
|
-
/**
|
|
65
|
-
* Форма тега
|
|
66
|
-
*/
|
|
67
|
-
shape?: "rounded" | "rectangular";
|
|
68
|
-
/**
|
|
69
|
-
* Стиль тега
|
|
70
|
-
*/
|
|
71
|
-
view?: "outlined" | "filled";
|
|
72
|
-
/**
|
|
73
|
-
* Основные стили компонента.
|
|
74
|
-
*/
|
|
75
|
-
styles?: {
|
|
76
|
-
[key: string]: string;
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Стили компонента для default и inverted режима.
|
|
80
|
-
*/
|
|
81
|
-
colorStylesMap?: StyleColors;
|
|
82
|
-
};
|
|
83
|
-
declare const BaseTag: React.ForwardRefExoticComponent<Omit<NativeProps, "onClick"> & {
|
|
84
|
-
checked?: boolean | undefined;
|
|
85
|
-
size?: "s" | "xxs" | "xs" | "m" | "l" | "xl" | undefined;
|
|
86
|
-
children?: ReactNode;
|
|
87
|
-
childrenClassName?: string | undefined;
|
|
88
|
-
leftAddons?: ReactNode;
|
|
89
|
-
rightAddons?: ReactNode;
|
|
90
|
-
dataTestId?: string | undefined;
|
|
91
|
-
onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>, payload: {
|
|
92
|
-
checked: boolean;
|
|
93
|
-
name?: string;
|
|
94
|
-
}) => void) | undefined;
|
|
95
|
-
childrenRef?: React.RefObject<HTMLSpanElement> | undefined;
|
|
96
|
-
colors?: "default" | "inverted" | undefined;
|
|
97
|
-
variant?: "default" | "alt" | undefined;
|
|
98
|
-
shape?: "rounded" | "rectangular" | undefined;
|
|
99
|
-
view?: "outlined" | "filled" | undefined;
|
|
100
|
-
styles?: {
|
|
101
|
-
[key: string]: string;
|
|
102
|
-
} | undefined;
|
|
103
|
-
colorStylesMap?: StyleColors | undefined;
|
|
104
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
105
|
-
export { StyleColors, NativeProps, BaseTagProps, BaseTag };
|