@alfalab/core-components-date-range-input 3.0.10 → 3.0.12
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/{esm/Component-72308007.d.ts → Component-10db897e.d.ts} +2 -2
- package/Component-89f0cb07.d.ts +38 -0
- package/{cssm/Component-8b5756fe.d.ts → Component-b5b4c59f.d.ts} +4 -3
- package/Component.desktop-0aa4e915.d.ts +5 -0
- package/Component.desktop-785df74d.d.ts +6 -0
- package/{esm/Component.desktop-8b5756fe.d.ts → Component.desktop-b5b4c59f.d.ts} +13 -5
- package/Component.desktop.js +1 -1
- package/Component.mobile-16b1285a.d.ts +5 -0
- package/Component.mobile-d7e9f69d.d.ts +6 -0
- package/Component.mobile-ebda875c.d.ts +5 -4
- package/Component.mobile.js +1 -1
- package/Component.responsive-0aa4e915.d.ts +5 -0
- package/Component.responsive-785df74d.d.ts +26 -0
- package/Component.responsive.js +1 -1
- package/components/date-range-input/Component.js +10 -8
- package/components/date-range-input/index.css +7 -7
- package/components/date-range-input/index.js +1 -1
- package/{Component-72308007.d.ts → cssm/Component-10db897e.d.ts} +2 -2
- package/cssm/Component-89f0cb07.d.ts +38 -0
- package/{esm/Component-8b5756fe.d.ts → cssm/Component-b5b4c59f.d.ts} +4 -3
- package/cssm/Component.desktop-0aa4e915.d.ts +5 -0
- package/cssm/Component.desktop-785df74d.d.ts +6 -0
- package/{Component.desktop-8b5756fe.d.ts → cssm/Component.desktop-b5b4c59f.d.ts} +13 -5
- package/cssm/Component.desktop.js +1 -1
- package/cssm/Component.mobile-16b1285a.d.ts +5 -0
- package/cssm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/cssm/Component.mobile-ebda875c.d.ts +5 -4
- package/cssm/Component.mobile.js +1 -1
- package/cssm/Component.responsive-0aa4e915.d.ts +5 -0
- package/cssm/Component.responsive-785df74d.d.ts +26 -0
- package/cssm/Component.responsive.js +1 -1
- package/cssm/components/date-range-input/Component.js +9 -7
- package/cssm/components/date-range-input/index.js +1 -1
- package/cssm/desktop-63dec22f.d.ts +1 -1
- package/cssm/desktop-69921c40.d.ts +2 -0
- package/cssm/desktop.js +1 -1
- package/{esm/index-72308007.d.ts → cssm/index-10db897e.d.ts} +1 -5
- package/{Component.responsive-2e2b2125.d.ts → cssm/index-3109f463.d.ts} +1 -5
- package/cssm/index-89f0cb07.d.ts +2 -0
- package/cssm/index-f034f741.d.ts +1 -1
- package/cssm/index.js +1 -1
- package/cssm/mobile-c219f8ca.d.ts +1 -1
- package/cssm/mobile.js +1 -1
- package/{esm/types-83e2bd9e.d.ts → cssm/types-1c79e231.d.ts} +1 -1
- package/{modern/typings-9211a437.d.ts → cssm/typings-89f0cb07.d.ts} +5 -7
- package/desktop-63dec22f.d.ts +1 -1
- package/desktop-69921c40.d.ts +2 -0
- package/desktop.js +1 -1
- package/esm/Component-10db897e.d.ts +297 -0
- package/esm/Component-89f0cb07.d.ts +38 -0
- package/{Component-8b5756fe.d.ts → esm/Component-b5b4c59f.d.ts} +4 -3
- package/esm/Component.desktop-0aa4e915.d.ts +5 -0
- package/esm/Component.desktop-785df74d.d.ts +6 -0
- package/{cssm/Component.desktop-8b5756fe.d.ts → esm/Component.desktop-b5b4c59f.d.ts} +14 -13
- package/esm/Component.desktop.js +1 -1
- package/esm/Component.mobile-89f0cb07.d.ts +5 -0
- package/esm/Component.mobile-d7e9f69d.d.ts +6 -0
- package/esm/Component.mobile-ebda875c.d.ts +5 -4
- package/esm/Component.mobile.js +1 -1
- package/esm/Component.responsive-0aa4e915.d.ts +5 -0
- package/esm/Component.responsive-785df74d.d.ts +26 -0
- package/esm/Component.responsive.js +1 -1
- package/esm/components/date-range-input/Component.js +7 -6
- package/esm/components/date-range-input/index.css +7 -7
- package/esm/components/date-range-input/index.js +1 -1
- package/esm/desktop-63dec22f.d.ts +1 -1
- package/esm/desktop-69921c40.d.ts +2 -0
- package/esm/desktop.js +1 -1
- package/{index-72308007.d.ts → esm/index-10db897e.d.ts} +1 -5
- package/{cssm/Component.responsive-2e2b2125.d.ts → esm/index-3109f463.d.ts} +1 -5
- package/esm/index-89f0cb07.d.ts +2 -0
- package/esm/index-ebda875c.d.ts +1 -34
- package/esm/index-f034f741.d.ts +5 -2
- package/esm/index.js +1 -1
- package/esm/mobile-c219f8ca.d.ts +1 -1
- package/esm/mobile.js +1 -1
- package/{cssm/types-83e2bd9e.d.ts → esm/types-1c79e231.d.ts} +1 -1
- package/{typings-9211a437.d.ts → esm/typings-89f0cb07.d.ts} +5 -7
- package/{cssm/index-72308007.d.ts → index-10db897e.d.ts} +1 -5
- package/{modern/Component.responsive-2e2b2125.d.ts → index-3109f463.d.ts} +1 -5
- package/index-89f0cb07.d.ts +2 -0
- package/index-f034f741.d.ts +1 -1
- package/index.js +1 -1
- package/mobile-c219f8ca.d.ts +1 -1
- package/mobile.js +1 -1
- package/{cssm/Component-72308007.d.ts → modern/Component-10db897e.d.ts} +2 -2
- package/modern/Component-89f0cb07.d.ts +38 -0
- package/modern/{Component-8b5756fe.d.ts → Component-b5b4c59f.d.ts} +4 -3
- package/modern/Component.desktop-0aa4e915.d.ts +5 -0
- package/modern/Component.desktop-785df74d.d.ts +6 -0
- package/modern/{Component.desktop-8b5756fe.d.ts → Component.desktop-b5b4c59f.d.ts} +13 -5
- package/modern/Component.desktop.js +1 -1
- package/modern/Component.mobile-16b1285a.d.ts +5 -0
- package/modern/Component.mobile-d7e9f69d.d.ts +6 -0
- package/modern/Component.mobile-ebda875c.d.ts +5 -4
- package/modern/Component.mobile.js +1 -1
- package/modern/Component.responsive-0aa4e915.d.ts +5 -0
- package/modern/Component.responsive-785df74d.d.ts +26 -0
- package/modern/Component.responsive.js +1 -1
- package/modern/components/date-range-input/Component.js +7 -6
- package/modern/components/date-range-input/index.css +7 -7
- package/modern/components/date-range-input/index.js +1 -1
- package/modern/desktop-63dec22f.d.ts +1 -1
- package/modern/desktop-69921c40.d.ts +2 -0
- package/modern/desktop.js +1 -1
- package/modern/{index-72308007.d.ts → index-10db897e.d.ts} +1 -5
- package/{esm/Component.responsive-2e2b2125.d.ts → modern/index-3109f463.d.ts} +1 -5
- package/modern/index-89f0cb07.d.ts +2 -0
- package/modern/index-f034f741.d.ts +1 -1
- package/modern/index.js +1 -1
- package/modern/mobile-c219f8ca.d.ts +1 -1
- package/modern/mobile.js +1 -1
- package/modern/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
- package/{esm/typings-9211a437.d.ts → modern/typings-89f0cb07.d.ts} +5 -7
- package/package.json +4 -4
- package/src/components/date-range-input/Component.tsx +23 -19
- package/{types-83e2bd9e.d.ts → types-1c79e231.d.ts} +1 -1
- package/{cssm/typings-9211a437.d.ts → typings-89f0cb07.d.ts} +5 -7
- package/Component.desktop-2e2b2125.d.ts +0 -6
- package/Component.mobile-755fbaa3.d.ts +0 -6
- package/cssm/Component.desktop-2e2b2125.d.ts +0 -6
- package/cssm/Component.mobile-755fbaa3.d.ts +0 -6
- package/cssm/index-9211a437.d.ts +0 -2
- package/esm/Component.desktop-2e2b2125.d.ts +0 -6
- package/esm/Component.mobile-755fbaa3.d.ts +0 -6
- package/esm/index-9211a437.d.ts +0 -2
- package/index-9211a437.d.ts +0 -2
- package/modern/Component-72308007.d.ts +0 -6
- package/modern/Component.desktop-2e2b2125.d.ts +0 -6
- package/modern/Component.mobile-755fbaa3.d.ts +0 -6
- package/modern/index-9211a437.d.ts +0 -2
- /package/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/cssm/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/esm/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
- /package/modern/{Component-63dec22f.d.ts → Component-69921c40.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 1vwf3 */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
@@ -41,24 +41,24 @@
|
|
|
41
41
|
/* marker */
|
|
42
42
|
} :root {
|
|
43
43
|
--calendar-popover-border-radius: var(--border-radius-m);
|
|
44
|
-
} .date-range-
|
|
44
|
+
} .date-range-input__component_1hqhh {
|
|
45
45
|
display: inline-block;
|
|
46
46
|
outline: none;
|
|
47
47
|
position: relative;
|
|
48
|
-
} .date-range-
|
|
48
|
+
} .date-range-input__calendarContainer_1hqhh {
|
|
49
49
|
display: inline-block;
|
|
50
50
|
box-sizing: border-box;
|
|
51
51
|
border-radius: var(--calendar-popover-border-radius);
|
|
52
52
|
border: 1px solid var(--color-light-border-secondary)
|
|
53
|
-
} @media (max-width: 374px) { .date-range-
|
|
53
|
+
} @media (max-width: 374px) { .date-range-input__calendarContainer_1hqhh {
|
|
54
54
|
width: 100%;
|
|
55
55
|
min-width: 288px
|
|
56
56
|
}
|
|
57
|
-
} .date-range-
|
|
57
|
+
} .date-range-input__calendarResponsive_1hqhh {
|
|
58
58
|
width: var(--calendar-width);
|
|
59
|
-
} .date-range-
|
|
59
|
+
} .date-range-input__block_1hqhh {
|
|
60
60
|
width: 100%;
|
|
61
|
-
} .date-range-
|
|
61
|
+
} .date-range-input__calendarIcon_1hqhh {
|
|
62
62
|
margin-right: var(--gap-s-neg);
|
|
63
63
|
height: 100%;
|
|
64
64
|
}
|
|
@@ -2,8 +2,8 @@ export { DateRangeInput } from './Component.js';
|
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-merge-refs';
|
|
4
4
|
import 'classnames';
|
|
5
|
-
import 'date-fns';
|
|
6
5
|
import 'date-fns/isValid';
|
|
6
|
+
import 'date-fns/startOfMonth';
|
|
7
7
|
import '@alfalab/core-components-calendar/modern/shared';
|
|
8
8
|
import '@alfalab/core-components-icon-button/modern';
|
|
9
9
|
import '@alfalab/core-components-popover/modern';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Component.desktop-
|
|
1
|
+
export * from "./Component.desktop-b5b4c59f";
|
|
2
2
|
export {};
|
package/modern/desktop.js
CHANGED
|
@@ -5,8 +5,8 @@ import '@alfalab/core-components-input/modern/desktop';
|
|
|
5
5
|
import './components/date-range-input/Component.js';
|
|
6
6
|
import 'react-merge-refs';
|
|
7
7
|
import 'classnames';
|
|
8
|
-
import 'date-fns';
|
|
9
8
|
import 'date-fns/isValid';
|
|
9
|
+
import 'date-fns/startOfMonth';
|
|
10
10
|
import '@alfalab/core-components-calendar/modern/shared';
|
|
11
11
|
import '@alfalab/core-components-icon-button/modern';
|
|
12
12
|
import '@alfalab/core-components-popover/modern';
|
|
@@ -10,10 +10,6 @@ declare function easeInOutQuad(x: number): number;
|
|
|
10
10
|
declare const easingFns: {
|
|
11
11
|
easeInOutQuad: typeof easeInOutQuad;
|
|
12
12
|
};
|
|
13
|
-
declare function disableUserInput<T>(disabled: boolean | undefined, event: React.KeyboardEvent<T>): void;
|
|
14
|
-
declare const inputUtils: {
|
|
15
|
-
disableUserInput: typeof disableUserInput;
|
|
16
|
-
};
|
|
17
13
|
/**
|
|
18
14
|
* Возвращает true, если значение равно null или undefined
|
|
19
15
|
*/
|
|
@@ -51,4 +47,4 @@ declare const maskUtils: {
|
|
|
51
47
|
prefixPostprocessor: typeof prefixPostprocessor;
|
|
52
48
|
caretGuard: typeof caretGuard;
|
|
53
49
|
};
|
|
54
|
-
export { isClient, getDataTestId, createPaddingStyle, easingFns,
|
|
50
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from "react";
|
|
3
1
|
import { FC, ReactNode } from "react";
|
|
4
|
-
import { ButtonProps } from "./typings-9211a437";
|
|
5
2
|
type MqProps = {
|
|
6
3
|
/**
|
|
7
4
|
* Media выражение или кастомный запрос из `mq.json`, например `--mobile`.
|
|
@@ -62,5 +59,4 @@ declare const _exports: {
|
|
|
62
59
|
"--desktop-xl": string;
|
|
63
60
|
"--desktop": string;
|
|
64
61
|
};
|
|
65
|
-
|
|
66
|
-
export { _exports as default, MqProps, Mq, useMatchMedia, getMatchMedia, releaseMatchMedia, isPointerEventsSupported, isTouchSupported, Button };
|
|
62
|
+
export { _exports as default, MqProps, Mq, useMatchMedia, getMatchMedia, releaseMatchMedia, isPointerEventsSupported, isTouchSupported };
|
|
@@ -77,4 +77,4 @@ type PeriodSliderProps = {
|
|
|
77
77
|
};
|
|
78
78
|
declare const PeriodSlider: FC<PeriodSliderProps>;
|
|
79
79
|
export { PeriodType, PeriodSliderProps, PeriodSlider };
|
|
80
|
-
export { shiftValues } from "./Component.desktop-
|
|
80
|
+
export { shiftValues } from "./Component.desktop-b5b4c59f";
|
package/modern/index.js
CHANGED
|
@@ -7,8 +7,8 @@ import '@alfalab/core-components-input/modern/desktop';
|
|
|
7
7
|
import './components/date-range-input/Component.js';
|
|
8
8
|
import 'react-merge-refs';
|
|
9
9
|
import 'classnames';
|
|
10
|
-
import 'date-fns';
|
|
11
10
|
import 'date-fns/isValid';
|
|
11
|
+
import 'date-fns/startOfMonth';
|
|
12
12
|
import '@alfalab/core-components-calendar/modern/shared';
|
|
13
13
|
import '@alfalab/core-components-icon-button/modern';
|
|
14
14
|
import '@alfalab/core-components-popover/modern';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Component-
|
|
1
|
+
export * from "./Component-b5b4c59f";
|
package/modern/mobile.js
CHANGED
|
@@ -5,8 +5,8 @@ import '@alfalab/core-components-input/modern/mobile';
|
|
|
5
5
|
import './components/date-range-input/Component.js';
|
|
6
6
|
import 'react-merge-refs';
|
|
7
7
|
import 'classnames';
|
|
8
|
-
import 'date-fns';
|
|
9
8
|
import 'date-fns/isValid';
|
|
9
|
+
import 'date-fns/startOfMonth';
|
|
10
10
|
import '@alfalab/core-components-calendar/modern/shared';
|
|
11
11
|
import '@alfalab/core-components-icon-button/modern';
|
|
12
12
|
import '@alfalab/core-components-popover/modern';
|
|
@@ -69,6 +69,8 @@ type ComponentProps = {
|
|
|
69
69
|
* Дочерние элементы.
|
|
70
70
|
*/
|
|
71
71
|
children?: ReactNode;
|
|
72
|
+
};
|
|
73
|
+
type PrivateButtonProps = {
|
|
72
74
|
/**
|
|
73
75
|
* Основные стили компонента.
|
|
74
76
|
*/
|
|
@@ -80,16 +82,12 @@ type ComponentProps = {
|
|
|
80
82
|
*/
|
|
81
83
|
colorStylesMap: StyleColors;
|
|
82
84
|
};
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
|
|
86
|
-
type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
87
|
-
type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
88
|
-
type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
|
|
85
|
+
type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
86
|
+
type ButtonProps = CommonButtonProps & {
|
|
89
87
|
/**
|
|
90
88
|
* Контрольная точка, с нее начинается desktop версия
|
|
91
89
|
* @default 1024
|
|
92
90
|
*/
|
|
93
91
|
breakpoint?: number;
|
|
94
92
|
};
|
|
95
|
-
export { StyleColors, ComponentProps,
|
|
93
|
+
export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-date-range-input",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@alfalab/core-components-input": "^12.1
|
|
39
|
-
"@alfalab/core-components-icon-button": "^6.
|
|
40
|
-
"@alfalab/core-components-calendar": "^7.0.
|
|
38
|
+
"@alfalab/core-components-input": "^12.2.1",
|
|
39
|
+
"@alfalab/core-components-icon-button": "^6.3.1",
|
|
40
|
+
"@alfalab/core-components-calendar": "^7.0.9",
|
|
41
41
|
"@alfalab/core-components-popover": "^6.1.0",
|
|
42
42
|
"@alfalab/hooks": "^1.13.0",
|
|
43
43
|
"@alfalab/icons-glyph": "^2.108.0",
|
|
@@ -10,8 +10,8 @@ import React, {
|
|
|
10
10
|
} from 'react';
|
|
11
11
|
import mergeRefs from 'react-merge-refs';
|
|
12
12
|
import cn from 'classnames';
|
|
13
|
-
import { startOfMonth } from 'date-fns';
|
|
14
13
|
import dateFnsIsValid from 'date-fns/isValid';
|
|
14
|
+
import startOfMonth from 'date-fns/startOfMonth';
|
|
15
15
|
|
|
16
16
|
import type { CalendarDesktopProps } from '@alfalab/core-components-calendar/desktop';
|
|
17
17
|
import type { CalendarMobileProps } from '@alfalab/core-components-calendar/mobile';
|
|
@@ -458,6 +458,7 @@ export const DateRangeInput = React.forwardRef<HTMLInputElement, DateRangeInputP
|
|
|
458
458
|
>
|
|
459
459
|
{InputComponent ? (
|
|
460
460
|
<InputComponent
|
|
461
|
+
autoComplete={picker ? 'off' : undefined}
|
|
461
462
|
{...restProps}
|
|
462
463
|
block={block}
|
|
463
464
|
ref={mergeRefs([ref, inputRef])}
|
|
@@ -484,24 +485,27 @@ export const DateRangeInput = React.forwardRef<HTMLInputElement, DateRangeInputP
|
|
|
484
485
|
}
|
|
485
486
|
/>
|
|
486
487
|
) : null}
|
|
487
|
-
{picker &&
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
488
|
+
{picker &&
|
|
489
|
+
(view === 'desktop' ? (
|
|
490
|
+
<Popover
|
|
491
|
+
open={open}
|
|
492
|
+
useAnchorWidth={useAnchorWidth}
|
|
493
|
+
anchorElement={inputRef.current as HTMLElement}
|
|
494
|
+
popperClassName={cn(styles.calendarContainer, {
|
|
495
|
+
[styles.calendarResponsive]: calendarResponsive,
|
|
496
|
+
})}
|
|
497
|
+
className={popoverClassName}
|
|
498
|
+
position={popoverPosition}
|
|
499
|
+
offset={[0, 8]}
|
|
500
|
+
withTransition={false}
|
|
501
|
+
preventFlip={preventFlip}
|
|
502
|
+
zIndex={zIndexPopover}
|
|
503
|
+
>
|
|
504
|
+
{renderCalendar()}
|
|
505
|
+
</Popover>
|
|
506
|
+
) : (
|
|
507
|
+
renderCalendar()
|
|
508
|
+
))}
|
|
505
509
|
</div>
|
|
506
510
|
);
|
|
507
511
|
},
|
|
@@ -69,6 +69,8 @@ type ComponentProps = {
|
|
|
69
69
|
* Дочерние элементы.
|
|
70
70
|
*/
|
|
71
71
|
children?: ReactNode;
|
|
72
|
+
};
|
|
73
|
+
type PrivateButtonProps = {
|
|
72
74
|
/**
|
|
73
75
|
* Основные стили компонента.
|
|
74
76
|
*/
|
|
@@ -80,16 +82,12 @@ type ComponentProps = {
|
|
|
80
82
|
*/
|
|
81
83
|
colorStylesMap: StyleColors;
|
|
82
84
|
};
|
|
83
|
-
type
|
|
84
|
-
type
|
|
85
|
-
type BaseButtonProps = Partial<AnchorBaseButtonProps | NativeBaseButtonProps>;
|
|
86
|
-
type AnchorButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
87
|
-
type NativeButtonProps = Omit<BaseButtonProps, 'styles' | 'colorStylesMap'> & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
88
|
-
type ButtonProps = Partial<AnchorButtonProps | NativeButtonProps> & {
|
|
85
|
+
type CommonButtonProps = ComponentProps & Partial<AnchorHTMLAttributes<HTMLAnchorElement> | ButtonHTMLAttributes<HTMLButtonElement>>;
|
|
86
|
+
type ButtonProps = CommonButtonProps & {
|
|
89
87
|
/**
|
|
90
88
|
* Контрольная точка, с нее начинается desktop версия
|
|
91
89
|
* @default 1024
|
|
92
90
|
*/
|
|
93
91
|
breakpoint?: number;
|
|
94
92
|
};
|
|
95
|
-
export { StyleColors, ComponentProps,
|
|
93
|
+
export { StyleColors, ComponentProps, PrivateButtonProps, CommonButtonProps, ButtonProps };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonMobileProps, ButtonMobile };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonMobileProps, ButtonMobile };
|
package/cssm/index-9211a437.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonMobileProps, ButtonMobile };
|
package/esm/index-9211a437.d.ts
DELETED
package/index-9211a437.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { NavigationBarProps } from "./types-83e2bd9e";
|
|
4
|
-
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export * from "./Component-63dec22f";
|
|
6
|
-
export { NavigationBar };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonDesktopProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonDesktop: React.ForwardRefExoticComponent<ButtonDesktopProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonDesktopProps, ButtonDesktop };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { AnchorButtonProps, NativeButtonProps } from "./typings-9211a437";
|
|
4
|
-
type ButtonMobileProps = Partial<AnchorButtonProps | NativeButtonProps>;
|
|
5
|
-
declare const ButtonMobile: React.ForwardRefExoticComponent<ButtonMobileProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
6
|
-
export { ButtonMobileProps, ButtonMobile };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|