@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,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { NavigationBarProps } from "./types-
|
|
3
|
+
import { NavigationBarProps } from "./types-1c79e231";
|
|
4
4
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export * from "./Component-
|
|
5
|
+
export * from "./Component-69921c40";
|
|
6
6
|
export { NavigationBar };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
import { CommonButtonProps, PrivateButtonProps } from "./typings-89f0cb07";
|
|
5
|
+
type SpinnerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Управление видимостью компонента
|
|
8
|
+
*/
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Размер компонента
|
|
12
|
+
*/
|
|
13
|
+
size?: "xs" | "s" | "m";
|
|
14
|
+
/**
|
|
15
|
+
* Дополнительный класс
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Идентификатор компонента в DOM
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
24
|
+
*/
|
|
25
|
+
dataTestId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Палитра, в контексте которой используется спиннер
|
|
28
|
+
*/
|
|
29
|
+
colors?: "default" | "inverted";
|
|
30
|
+
};
|
|
31
|
+
declare const Spinner: FC<SpinnerProps>;
|
|
32
|
+
/**
|
|
33
|
+
* Минимальное время отображения лоадера - 500мс,
|
|
34
|
+
* чтобы при быстрых ответах от сервера кнопка не «моргала».
|
|
35
|
+
*/
|
|
36
|
+
declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
|
|
37
|
+
declare const BaseButton: React.ForwardRefExoticComponent<(CommonButtonProps & PrivateButtonProps) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
38
|
+
export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
|
|
@@ -4,8 +4,8 @@ import React from "react";
|
|
|
4
4
|
import { ReactNode, FC, KeyboardEvent, MouseEvent, MutableRefObject, Ref, RefObject } from "react";
|
|
5
5
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
6
6
|
import { CSSTransitionClassNames } from "react-transition-group/CSSTransition";
|
|
7
|
-
import { NavigationBarProps } from "./types-
|
|
8
|
-
import { CalendarDesktopProps } from "./Component.desktop-
|
|
7
|
+
import { NavigationBarProps } from "./types-1c79e231";
|
|
8
|
+
import { CalendarDesktopProps } from "./Component.desktop-b5b4c59f";
|
|
9
9
|
type BackdropProps = Partial<TransitionProps> & {
|
|
10
10
|
/**
|
|
11
11
|
* Прозрачный бэкдроп
|
|
@@ -383,6 +383,7 @@ declare const CalendarMobile: React.ForwardRefExoticComponent<CalendarDesktopPro
|
|
|
383
383
|
*/
|
|
384
384
|
allowSelectionFromEmptyRange?: boolean | undefined;
|
|
385
385
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
386
|
-
export
|
|
386
|
+
export { ButtonMobile } from "./Component.mobile-16b1285a";
|
|
387
|
+
export type { CommonButtonProps as ButtonMobileProps } from "./typings-89f0cb07";
|
|
387
388
|
export { ModalMobile, ModalMobileProps, Content, ResponsiveContext, Modal, ModalContext, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore, CalendarMobileProps, CalendarMobile };
|
|
388
389
|
export type { SavedStyle };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CommonButtonProps } from "./typings-89f0cb07";
|
|
4
|
+
declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
|
+
export { ButtonDesktop };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlDesktopProps, FormControlDesktop };
|
|
@@ -16,6 +16,10 @@ type HeaderProps = {
|
|
|
16
16
|
* Дочерние элементы.
|
|
17
17
|
*/
|
|
18
18
|
children?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Дополнительный класс
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
19
23
|
};
|
|
20
24
|
declare const Header: FC<HeaderProps>;
|
|
21
25
|
type MonthYearHeaderProps = {
|
|
@@ -79,10 +83,6 @@ type YearsTableProps = {
|
|
|
79
83
|
* Доп. пропсы для переданного года
|
|
80
84
|
*/
|
|
81
85
|
getYearProps: (year: Date) => Record<string, unknown>;
|
|
82
|
-
/**
|
|
83
|
-
* Обработчик скролла
|
|
84
|
-
*/
|
|
85
|
-
onScroll: (scrollTop: number) => void;
|
|
86
86
|
/**
|
|
87
87
|
* Должен ли календарь подстраиваться под ширину родителя.
|
|
88
88
|
*/
|
|
@@ -94,6 +94,14 @@ type CalendarDesktopProps = {
|
|
|
94
94
|
* Дополнительный класс
|
|
95
95
|
*/
|
|
96
96
|
className?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Дополнительный класс шапки десктопного календаря
|
|
99
|
+
*/
|
|
100
|
+
headerClassName?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Дополнительный класс контента десктопного календаря
|
|
103
|
+
*/
|
|
104
|
+
contentClassName?: string;
|
|
97
105
|
/**
|
|
98
106
|
* Вид по умолчанию (выбор дней, месяцев, лет)
|
|
99
107
|
*/
|
|
@@ -194,4 +202,4 @@ type CalendarDesktopProps = {
|
|
|
194
202
|
};
|
|
195
203
|
declare const CalendarDesktop: React.ForwardRefExoticComponent<CalendarDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
196
204
|
export { HeaderProps, Header, MonthYearHeaderProps, MonthYearHeader, MonthsTableProps, MonthsTable, formatPeriod, getYearSelectorValue, shiftValues, YearsTableProps, YearsTable, CalendarDesktopProps, CalendarDesktop };
|
|
197
|
-
export * from "./Component-
|
|
205
|
+
export * from "./Component-69921c40";
|
package/Component.desktop.js
CHANGED
|
@@ -9,8 +9,8 @@ var desktop = require('@alfalab/core-components-input/desktop');
|
|
|
9
9
|
var components_dateRangeInput_Component = require('./components/date-range-input/Component.js');
|
|
10
10
|
require('react-merge-refs');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('date-fns');
|
|
13
12
|
require('date-fns/isValid');
|
|
13
|
+
require('date-fns/startOfMonth');
|
|
14
14
|
require('@alfalab/core-components-calendar/shared');
|
|
15
15
|
require('@alfalab/core-components-icon-button');
|
|
16
16
|
require('@alfalab/core-components-popover');
|
|
@@ -0,0 +1,5 @@
|
|
|
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 };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlMobileProps, FormControlMobile };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
type
|
|
5
|
-
declare const
|
|
6
|
-
export
|
|
3
|
+
import { BaseInputProps } from "./index-ebda875c";
|
|
4
|
+
type InputMobileProps = Omit<BaseInputProps, 'FormControlComponent' | 'colorStyles'>;
|
|
5
|
+
declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export * from "./Component.mobile-d7e9f69d";
|
|
7
|
+
export { InputMobileProps, InputMobile };
|
package/Component.mobile.js
CHANGED
|
@@ -9,8 +9,8 @@ var mobile = require('@alfalab/core-components-input/mobile');
|
|
|
9
9
|
var components_dateRangeInput_Component = require('./components/date-range-input/Component.js');
|
|
10
10
|
require('react-merge-refs');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('date-fns');
|
|
13
12
|
require('date-fns/isValid');
|
|
13
|
+
require('date-fns/startOfMonth');
|
|
14
14
|
require('@alfalab/core-components-calendar/shared');
|
|
15
15
|
require('@alfalab/core-components-icon-button');
|
|
16
16
|
require('@alfalab/core-components-popover');
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
+
* @default 1024
|
|
8
|
+
*/
|
|
9
|
+
breakpoint?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
12
|
+
*/
|
|
13
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
14
|
+
};
|
|
15
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
16
|
+
/**
|
|
17
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
18
|
+
* @default 1024
|
|
19
|
+
*/
|
|
20
|
+
breakpoint?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
23
|
+
*/
|
|
24
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export { FormControlProps, FormControl };
|
package/Component.responsive.js
CHANGED
|
@@ -12,8 +12,8 @@ require('@alfalab/core-components-input/desktop');
|
|
|
12
12
|
require('./components/date-range-input/Component.js');
|
|
13
13
|
require('react-merge-refs');
|
|
14
14
|
require('classnames');
|
|
15
|
-
require('date-fns');
|
|
16
15
|
require('date-fns/isValid');
|
|
16
|
+
require('date-fns/startOfMonth');
|
|
17
17
|
require('@alfalab/core-components-calendar/shared');
|
|
18
18
|
require('@alfalab/core-components-icon-button');
|
|
19
19
|
require('@alfalab/core-components-popover');
|
|
@@ -6,8 +6,8 @@ var tslib = require('tslib');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var mergeRefs = require('react-merge-refs');
|
|
8
8
|
var cn = require('classnames');
|
|
9
|
-
var dateFns = require('date-fns');
|
|
10
9
|
var dateFnsIsValid = require('date-fns/isValid');
|
|
10
|
+
var startOfMonth = require('date-fns/startOfMonth');
|
|
11
11
|
var shared = require('@alfalab/core-components-calendar/shared');
|
|
12
12
|
var coreComponentsIconButton = require('@alfalab/core-components-icon-button');
|
|
13
13
|
var coreComponentsPopover = require('@alfalab/core-components-popover');
|
|
@@ -22,8 +22,9 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
22
22
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
23
23
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
24
24
|
var dateFnsIsValid__default = /*#__PURE__*/_interopDefaultCompat(dateFnsIsValid);
|
|
25
|
+
var startOfMonth__default = /*#__PURE__*/_interopDefaultCompat(startOfMonth);
|
|
25
26
|
|
|
26
|
-
var styles = {"component":"date-range-
|
|
27
|
+
var styles = {"component":"date-range-input__component_1hqhh","calendarContainer":"date-range-input__calendarContainer_1hqhh","calendarResponsive":"date-range-input__calendarResponsive_1hqhh","block":"date-range-input__block_1hqhh","calendarIcon":"date-range-input__calendarIcon_1hqhh"};
|
|
27
28
|
require('./index.css')
|
|
28
29
|
|
|
29
30
|
var DateRangeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
@@ -204,8 +205,8 @@ var DateRangeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
|
204
205
|
}
|
|
205
206
|
};
|
|
206
207
|
var renderCalendar = function () {
|
|
207
|
-
var activeMonth = (selectedTo &&
|
|
208
|
-
(selectedFrom &&
|
|
208
|
+
var activeMonth = (selectedTo && startOfMonth__default.default(selectedTo)) ||
|
|
209
|
+
(selectedFrom && startOfMonth__default.default(selectedFrom));
|
|
209
210
|
return Calendar ? (
|
|
210
211
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
211
212
|
React__default.default.createElement("div", { onMouseDown: handleCalendarWrapperMouseDown },
|
|
@@ -214,12 +215,13 @@ var DateRangeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
|
214
215
|
return (React__default.default.createElement("div", { className: cn__default.default(styles.component, className, (_b = {},
|
|
215
216
|
_b[styles.block] = block,
|
|
216
217
|
_b)), onFocus: inputDisabled ? undefined : handleInputWrapperFocus, onBlur: handleBlur },
|
|
217
|
-
InputComponent ? (React__default.default.createElement(InputComponent, tslib.__assign({}, restProps, { block: block, ref: mergeRefs__default.default([ref, inputRef]), value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, className: inputClassName, onClear: handleClear, disableUserInput: disableUserInput, rightAddons: React__default.default.createElement(React__default.default.Fragment, null,
|
|
218
|
+
InputComponent ? (React__default.default.createElement(InputComponent, tslib.__assign({ autoComplete: picker ? 'off' : undefined }, restProps, { block: block, ref: mergeRefs__default.default([ref, inputRef]), value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, className: inputClassName, onClear: handleClear, disableUserInput: disableUserInput, rightAddons: React__default.default.createElement(React__default.default.Fragment, null,
|
|
218
219
|
rightAddons,
|
|
219
220
|
picker && (React__default.default.createElement(coreComponentsIconButton.IconButton, { className: styles.calendarIcon, ref: iconRef, onClick: inputDisabled ? undefined : handleIconButtonClick, icon: CalendarMIcon.CalendarMIcon, size: 's' }))) }))) : null,
|
|
220
|
-
picker &&
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
picker &&
|
|
222
|
+
(view === 'desktop' ? (React__default.default.createElement(coreComponentsPopover.Popover, { open: open, useAnchorWidth: useAnchorWidth, anchorElement: inputRef.current, popperClassName: cn__default.default(styles.calendarContainer, (_c = {},
|
|
223
|
+
_c[styles.calendarResponsive] = calendarResponsive,
|
|
224
|
+
_c)), className: popoverClassName, position: popoverPosition, offset: [0, 8], withTransition: false, preventFlip: preventFlip, zIndex: zIndexPopover }, renderCalendar())) : (renderCalendar()))));
|
|
223
225
|
});
|
|
224
226
|
|
|
225
227
|
exports.DateRangeInput = DateRangeInput;
|
|
@@ -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
|
}
|
|
@@ -7,8 +7,8 @@ require('tslib');
|
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-merge-refs');
|
|
9
9
|
require('classnames');
|
|
10
|
-
require('date-fns');
|
|
11
10
|
require('date-fns/isValid');
|
|
11
|
+
require('date-fns/startOfMonth');
|
|
12
12
|
require('@alfalab/core-components-calendar/shared');
|
|
13
13
|
require('@alfalab/core-components-icon-button');
|
|
14
14
|
require('@alfalab/core-components-popover');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { NavigationBarProps } from "./types-
|
|
3
|
+
import { NavigationBarProps } from "./types-1c79e231";
|
|
4
4
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export * from "./Component-
|
|
5
|
+
export * from "./Component-69921c40";
|
|
6
6
|
export { NavigationBar };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { FC } from "react";
|
|
4
|
+
import { CommonButtonProps, PrivateButtonProps } from "./typings-89f0cb07";
|
|
5
|
+
type SpinnerProps = {
|
|
6
|
+
/**
|
|
7
|
+
* Управление видимостью компонента
|
|
8
|
+
*/
|
|
9
|
+
visible?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Размер компонента
|
|
12
|
+
*/
|
|
13
|
+
size?: "xs" | "s" | "m";
|
|
14
|
+
/**
|
|
15
|
+
* Дополнительный класс
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Идентификатор компонента в DOM
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Идентификатор для систем автоматизированного тестирования
|
|
24
|
+
*/
|
|
25
|
+
dataTestId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Палитра, в контексте которой используется спиннер
|
|
28
|
+
*/
|
|
29
|
+
colors?: "default" | "inverted";
|
|
30
|
+
};
|
|
31
|
+
declare const Spinner: FC<SpinnerProps>;
|
|
32
|
+
/**
|
|
33
|
+
* Минимальное время отображения лоадера - 500мс,
|
|
34
|
+
* чтобы при быстрых ответах от сервера кнопка не «моргала».
|
|
35
|
+
*/
|
|
36
|
+
declare const LOADER_MIN_DISPLAY_INTERVAL = 500;
|
|
37
|
+
declare const BaseButton: React.ForwardRefExoticComponent<(CommonButtonProps & PrivateButtonProps) & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
38
|
+
export { SpinnerProps, Spinner, LOADER_MIN_DISPLAY_INTERVAL, BaseButton };
|
|
@@ -4,8 +4,8 @@ import React from "react";
|
|
|
4
4
|
import { ReactNode, FC, KeyboardEvent, MouseEvent, MutableRefObject, Ref, RefObject } from "react";
|
|
5
5
|
import { TransitionProps } from "react-transition-group/Transition";
|
|
6
6
|
import { CSSTransitionClassNames } from "react-transition-group/CSSTransition";
|
|
7
|
-
import { NavigationBarProps } from "./types-
|
|
8
|
-
import { CalendarDesktopProps } from "./Component.desktop-
|
|
7
|
+
import { NavigationBarProps } from "./types-1c79e231";
|
|
8
|
+
import { CalendarDesktopProps } from "./Component.desktop-b5b4c59f";
|
|
9
9
|
type BackdropProps = Partial<TransitionProps> & {
|
|
10
10
|
/**
|
|
11
11
|
* Прозрачный бэкдроп
|
|
@@ -383,6 +383,7 @@ declare const CalendarMobile: React.ForwardRefExoticComponent<CalendarDesktopPro
|
|
|
383
383
|
*/
|
|
384
384
|
allowSelectionFromEmptyRange?: boolean | undefined;
|
|
385
385
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
386
|
-
export
|
|
386
|
+
export { ButtonMobile } from "./Component.mobile-16b1285a";
|
|
387
|
+
export type { CommonButtonProps as ButtonMobileProps } from "./typings-89f0cb07";
|
|
387
388
|
export { ModalMobile, ModalMobileProps, Content, ResponsiveContext, Modal, ModalContext, stackingOrder, StackingContext, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore, CalendarMobileProps, CalendarMobile };
|
|
388
389
|
export type { SavedStyle };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CommonButtonProps } from "./typings-89f0cb07";
|
|
4
|
+
declare const ButtonDesktop: React.ForwardRefExoticComponent<CommonButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
5
|
+
export { ButtonDesktop };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlDesktopProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlDesktop: React.ForwardRefExoticComponent<FormControlDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlDesktopProps, FormControlDesktop };
|
|
@@ -16,6 +16,10 @@ type HeaderProps = {
|
|
|
16
16
|
* Дочерние элементы.
|
|
17
17
|
*/
|
|
18
18
|
children?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* Дополнительный класс
|
|
21
|
+
*/
|
|
22
|
+
className?: string;
|
|
19
23
|
};
|
|
20
24
|
declare const Header: FC<HeaderProps>;
|
|
21
25
|
type MonthYearHeaderProps = {
|
|
@@ -79,10 +83,6 @@ type YearsTableProps = {
|
|
|
79
83
|
* Доп. пропсы для переданного года
|
|
80
84
|
*/
|
|
81
85
|
getYearProps: (year: Date) => Record<string, unknown>;
|
|
82
|
-
/**
|
|
83
|
-
* Обработчик скролла
|
|
84
|
-
*/
|
|
85
|
-
onScroll: (scrollTop: number) => void;
|
|
86
86
|
/**
|
|
87
87
|
* Должен ли календарь подстраиваться под ширину родителя.
|
|
88
88
|
*/
|
|
@@ -94,6 +94,14 @@ type CalendarDesktopProps = {
|
|
|
94
94
|
* Дополнительный класс
|
|
95
95
|
*/
|
|
96
96
|
className?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Дополнительный класс шапки десктопного календаря
|
|
99
|
+
*/
|
|
100
|
+
headerClassName?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Дополнительный класс контента десктопного календаря
|
|
103
|
+
*/
|
|
104
|
+
contentClassName?: string;
|
|
97
105
|
/**
|
|
98
106
|
* Вид по умолчанию (выбор дней, месяцев, лет)
|
|
99
107
|
*/
|
|
@@ -194,4 +202,4 @@ type CalendarDesktopProps = {
|
|
|
194
202
|
};
|
|
195
203
|
declare const CalendarDesktop: React.ForwardRefExoticComponent<CalendarDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
196
204
|
export { HeaderProps, Header, MonthYearHeaderProps, MonthYearHeader, MonthsTableProps, MonthsTable, formatPeriod, getYearSelectorValue, shiftValues, YearsTableProps, YearsTable, CalendarDesktopProps, CalendarDesktop };
|
|
197
|
-
export * from "./Component-
|
|
205
|
+
export * from "./Component-69921c40";
|
|
@@ -9,8 +9,8 @@ var desktop = require('@alfalab/core-components-input/cssm/desktop');
|
|
|
9
9
|
var components_dateRangeInput_Component = require('./components/date-range-input/Component.js');
|
|
10
10
|
require('react-merge-refs');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('date-fns');
|
|
13
12
|
require('date-fns/isValid');
|
|
13
|
+
require('date-fns/startOfMonth');
|
|
14
14
|
require('@alfalab/core-components-calendar/cssm/shared');
|
|
15
15
|
require('@alfalab/core-components-icon-button/cssm');
|
|
16
16
|
require('@alfalab/core-components-popover/cssm');
|
|
@@ -0,0 +1,5 @@
|
|
|
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 };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlMobileProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'>;
|
|
5
|
+
declare const FormControlMobile: React.ForwardRefExoticComponent<FormControlMobileProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { FormControlMobileProps, FormControlMobile };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
type
|
|
5
|
-
declare const
|
|
6
|
-
export
|
|
3
|
+
import { BaseInputProps } from "./index-ebda875c";
|
|
4
|
+
type InputMobileProps = Omit<BaseInputProps, 'FormControlComponent' | 'colorStyles'>;
|
|
5
|
+
declare const InputMobile: React.ForwardRefExoticComponent<InputMobileProps & React.RefAttributes<HTMLInputElement>>;
|
|
6
|
+
export * from "./Component.mobile-d7e9f69d";
|
|
7
|
+
export { InputMobileProps, InputMobile };
|
package/cssm/Component.mobile.js
CHANGED
|
@@ -9,8 +9,8 @@ var mobile = require('@alfalab/core-components-input/cssm/mobile');
|
|
|
9
9
|
var components_dateRangeInput_Component = require('./components/date-range-input/Component.js');
|
|
10
10
|
require('react-merge-refs');
|
|
11
11
|
require('classnames');
|
|
12
|
-
require('date-fns');
|
|
13
12
|
require('date-fns/isValid');
|
|
13
|
+
require('date-fns/startOfMonth');
|
|
14
14
|
require('@alfalab/core-components-calendar/cssm/shared');
|
|
15
15
|
require('@alfalab/core-components-icon-button/cssm');
|
|
16
16
|
require('@alfalab/core-components-popover/cssm');
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseFormControlProps } from "./index-ebda875c";
|
|
4
|
+
type FormControlProps = Omit<BaseFormControlProps, 'styles' | 'colorStyles'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
7
|
+
* @default 1024
|
|
8
|
+
*/
|
|
9
|
+
breakpoint?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
12
|
+
*/
|
|
13
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
14
|
+
};
|
|
15
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<BaseFormControlProps, "styles" | "colorStyles"> & {
|
|
16
|
+
/**
|
|
17
|
+
* Контрольная точка, с нее начинается desktop версия
|
|
18
|
+
* @default 1024
|
|
19
|
+
*/
|
|
20
|
+
breakpoint?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Значение по-умолчанию для хука useMatchMedia
|
|
23
|
+
*/
|
|
24
|
+
defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
|
|
25
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export { FormControlProps, FormControl };
|
|
@@ -12,8 +12,8 @@ require('@alfalab/core-components-input/cssm/desktop');
|
|
|
12
12
|
require('./components/date-range-input/Component.js');
|
|
13
13
|
require('react-merge-refs');
|
|
14
14
|
require('classnames');
|
|
15
|
-
require('date-fns');
|
|
16
15
|
require('date-fns/isValid');
|
|
16
|
+
require('date-fns/startOfMonth');
|
|
17
17
|
require('@alfalab/core-components-calendar/cssm/shared');
|
|
18
18
|
require('@alfalab/core-components-icon-button/cssm');
|
|
19
19
|
require('@alfalab/core-components-popover/cssm');
|
|
@@ -6,8 +6,8 @@ var tslib = require('tslib');
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var mergeRefs = require('react-merge-refs');
|
|
8
8
|
var cn = require('classnames');
|
|
9
|
-
var dateFns = require('date-fns');
|
|
10
9
|
var dateFnsIsValid = require('date-fns/isValid');
|
|
10
|
+
var startOfMonth = require('date-fns/startOfMonth');
|
|
11
11
|
var shared = require('@alfalab/core-components-calendar/cssm/shared');
|
|
12
12
|
var coreComponentsIconButton = require('@alfalab/core-components-icon-button/cssm');
|
|
13
13
|
var coreComponentsPopover = require('@alfalab/core-components-popover/cssm');
|
|
@@ -23,6 +23,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
23
23
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
24
24
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
25
25
|
var dateFnsIsValid__default = /*#__PURE__*/_interopDefaultCompat(dateFnsIsValid);
|
|
26
|
+
var startOfMonth__default = /*#__PURE__*/_interopDefaultCompat(startOfMonth);
|
|
26
27
|
var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
|
|
27
28
|
|
|
28
29
|
var DateRangeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
@@ -203,8 +204,8 @@ var DateRangeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
|
203
204
|
}
|
|
204
205
|
};
|
|
205
206
|
var renderCalendar = function () {
|
|
206
|
-
var activeMonth = (selectedTo &&
|
|
207
|
-
(selectedFrom &&
|
|
207
|
+
var activeMonth = (selectedTo && startOfMonth__default.default(selectedTo)) ||
|
|
208
|
+
(selectedFrom && startOfMonth__default.default(selectedFrom));
|
|
208
209
|
return Calendar ? (
|
|
209
210
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
210
211
|
React__default.default.createElement("div", { onMouseDown: handleCalendarWrapperMouseDown },
|
|
@@ -213,12 +214,13 @@ var DateRangeInput = React__default.default.forwardRef(function (_a, ref) {
|
|
|
213
214
|
return (React__default.default.createElement("div", { className: cn__default.default(styles__default.default.component, className, (_b = {},
|
|
214
215
|
_b[styles__default.default.block] = block,
|
|
215
216
|
_b)), onFocus: inputDisabled ? undefined : handleInputWrapperFocus, onBlur: handleBlur },
|
|
216
|
-
InputComponent ? (React__default.default.createElement(InputComponent, tslib.__assign({}, restProps, { block: block, ref: mergeRefs__default.default([ref, inputRef]), value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, className: inputClassName, onClear: handleClear, disableUserInput: disableUserInput, rightAddons: React__default.default.createElement(React__default.default.Fragment, null,
|
|
217
|
+
InputComponent ? (React__default.default.createElement(InputComponent, tslib.__assign({ autoComplete: picker ? 'off' : undefined }, restProps, { block: block, ref: mergeRefs__default.default([ref, inputRef]), value: value, onChange: handleChange, disabled: disabled, readOnly: readOnly, className: inputClassName, onClear: handleClear, disableUserInput: disableUserInput, rightAddons: React__default.default.createElement(React__default.default.Fragment, null,
|
|
217
218
|
rightAddons,
|
|
218
219
|
picker && (React__default.default.createElement(coreComponentsIconButton.IconButton, { className: styles__default.default.calendarIcon, ref: iconRef, onClick: inputDisabled ? undefined : handleIconButtonClick, icon: CalendarMIcon.CalendarMIcon, size: 's' }))) }))) : null,
|
|
219
|
-
picker &&
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
picker &&
|
|
221
|
+
(view === 'desktop' ? (React__default.default.createElement(coreComponentsPopover.Popover, { open: open, useAnchorWidth: useAnchorWidth, anchorElement: inputRef.current, popperClassName: cn__default.default(styles__default.default.calendarContainer, (_c = {},
|
|
222
|
+
_c[styles__default.default.calendarResponsive] = calendarResponsive,
|
|
223
|
+
_c)), className: popoverClassName, position: popoverPosition, offset: [0, 8], withTransition: false, preventFlip: preventFlip, zIndex: zIndexPopover }, renderCalendar())) : (renderCalendar()))));
|
|
222
224
|
});
|
|
223
225
|
|
|
224
226
|
exports.DateRangeInput = DateRangeInput;
|
|
@@ -7,8 +7,8 @@ require('tslib');
|
|
|
7
7
|
require('react');
|
|
8
8
|
require('react-merge-refs');
|
|
9
9
|
require('classnames');
|
|
10
|
-
require('date-fns');
|
|
11
10
|
require('date-fns/isValid');
|
|
11
|
+
require('date-fns/startOfMonth');
|
|
12
12
|
require('@alfalab/core-components-calendar/cssm/shared');
|
|
13
13
|
require('@alfalab/core-components-icon-button/cssm');
|
|
14
14
|
require('@alfalab/core-components-popover/cssm');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./Component.desktop-
|
|
1
|
+
export * from "./Component.desktop-b5b4c59f";
|
|
2
2
|
export {};
|