@alfalab/core-components-calendar-input 9.0.0 → 9.0.2
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/{Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
- package/Component-8b5756fe.d.ts +9 -1
- package/components/calendar-input/Component.js +1 -1
- package/components/calendar-input/index.css +11 -11
- package/cssm/{Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
- package/cssm/Component-8b5756fe.d.ts +9 -1
- package/cssm/index-50136800.d.ts +16 -0
- package/esm/{Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
- package/esm/Component-8b5756fe.d.ts +9 -1
- package/esm/components/calendar-input/Component.js +1 -1
- package/esm/components/calendar-input/index.css +11 -11
- package/esm/index-50136800.d.ts +16 -0
- package/index-50136800.d.ts +16 -0
- package/modern/{Component-89a3cf4c.d.ts → Component-50136800.d.ts} +1 -1
- package/modern/Component-8b5756fe.d.ts +9 -1
- package/modern/components/calendar-input/Component.js +1 -1
- package/modern/components/calendar-input/index.css +11 -11
- package/modern/index-50136800.d.ts +16 -0
- package/package.json +4 -3
- package/cssm/index-89a3cf4c.d.ts +0 -3
- package/esm/index-89a3cf4c.d.ts +0 -3
- package/index-89a3cf4c.d.ts +0 -3
- package/modern/index-89a3cf4c.d.ts +0 -3
- /package/cssm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/esm/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/modern/{types-ebda875c.d.ts → types-83e2bd9e.d.ts} +0 -0
- /package/{types-ebda875c.d.ts → types-83e2bd9e.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-83e2bd9e";
|
|
4
4
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export * from "./Component-63dec22f";
|
|
6
6
|
export { NavigationBar };
|
package/Component-8b5756fe.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ 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-
|
|
7
|
+
import { NavigationBarProps } from "./types-83e2bd9e";
|
|
8
8
|
import { CalendarDesktopProps } from "./Component.desktop-8b5756fe";
|
|
9
9
|
type BackdropProps = Partial<TransitionProps> & {
|
|
10
10
|
/**
|
|
@@ -116,6 +116,14 @@ type BaseModalProps = {
|
|
|
116
116
|
* Дополнительный класс
|
|
117
117
|
*/
|
|
118
118
|
contentClassName?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Дополнительные пропсы на обертку контента
|
|
121
|
+
*/
|
|
122
|
+
contentProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
123
|
+
/**
|
|
124
|
+
* Дополнительные пропсы на компонентную обертку контента
|
|
125
|
+
*/
|
|
126
|
+
componentDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
119
127
|
/**
|
|
120
128
|
* Дополнительный класс для обертки (Modal)
|
|
121
129
|
*/
|
|
@@ -21,7 +21,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
|
21
21
|
var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
|
|
22
22
|
var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
|
|
23
23
|
|
|
24
|
-
var styles = {"component":"calendar-
|
|
24
|
+
var styles = {"component":"calendar-input__component_1qxbs","block":"calendar-input__block_1qxbs","calendarContainer":"calendar-input__calendarContainer_1qxbs","calendarResponsive":"calendar-input__calendarResponsive_1qxbs","calendarIcon":"calendar-input__calendarIcon_1qxbs","nativeInput":"calendar-input__nativeInput_1qxbs"};
|
|
25
25
|
require('./index.css')
|
|
26
26
|
|
|
27
27
|
var CalendarInput = React.forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 96sjp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb;
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
} :root {
|
|
44
44
|
--calendar-input-icon-color: var(--color-light-graphic-primary);
|
|
45
45
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
46
|
-
} .calendar-
|
|
46
|
+
} .calendar-input__component_1qxbs {
|
|
47
47
|
display: inline-block;
|
|
48
48
|
outline: none;
|
|
49
49
|
position: relative;
|
|
50
|
-
} .calendar-
|
|
50
|
+
} .calendar-input__block_1qxbs {
|
|
51
51
|
width: 100%;
|
|
52
|
-
} .calendar-
|
|
52
|
+
} .calendar-input__calendarContainer_1qxbs {
|
|
53
53
|
display: inline-block;
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
56
56
|
border: 1px solid var(--color-light-border-secondary)
|
|
57
|
-
} @media (max-width: 374px) { .calendar-
|
|
57
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_1qxbs {
|
|
58
58
|
width: 100%;
|
|
59
59
|
min-width: 288px
|
|
60
60
|
}
|
|
61
|
-
} .calendar-
|
|
61
|
+
} .calendar-input__calendarResponsive_1qxbs {
|
|
62
62
|
width: var(--calendar-width);
|
|
63
|
-
} .calendar-
|
|
63
|
+
} .calendar-input__calendarIcon_1qxbs {
|
|
64
64
|
width: 24px;
|
|
65
65
|
height: 24px;
|
|
66
66
|
display: block;
|
|
67
67
|
color: var(--calendar-input-icon-color)
|
|
68
|
-
} .calendar-
|
|
68
|
+
} .calendar-input__calendarIcon_1qxbs:not(:only-child) {
|
|
69
69
|
margin-right: var(--gap-2xs);
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__nativeInput_1qxbs {
|
|
71
71
|
opacity: 0;
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0;
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
height: 100%;
|
|
77
77
|
appearance: none;
|
|
78
78
|
z-index: 1
|
|
79
|
-
} .calendar-
|
|
79
|
+
} .calendar-input__nativeInput_1qxbs::-webkit-calendar-picker-indicator {
|
|
80
80
|
display: none;
|
|
81
|
-
} .calendar-
|
|
81
|
+
} .calendar-input__nativeInput_1qxbs::-webkit-inner-spin-button {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
@@ -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-83e2bd9e";
|
|
4
4
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export * from "./Component-63dec22f";
|
|
6
6
|
export { NavigationBar };
|
|
@@ -4,7 +4,7 @@ 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-
|
|
7
|
+
import { NavigationBarProps } from "./types-83e2bd9e";
|
|
8
8
|
import { CalendarDesktopProps } from "./Component.desktop-8b5756fe";
|
|
9
9
|
type BackdropProps = Partial<TransitionProps> & {
|
|
10
10
|
/**
|
|
@@ -116,6 +116,14 @@ type BaseModalProps = {
|
|
|
116
116
|
* Дополнительный класс
|
|
117
117
|
*/
|
|
118
118
|
contentClassName?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Дополнительные пропсы на обертку контента
|
|
121
|
+
*/
|
|
122
|
+
contentProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
123
|
+
/**
|
|
124
|
+
* Дополнительные пропсы на компонентную обертку контента
|
|
125
|
+
*/
|
|
126
|
+
componentDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
119
127
|
/**
|
|
120
128
|
* Дополнительный класс для обертки (Modal)
|
|
121
129
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const isClient: () => boolean;
|
|
4
|
+
declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
|
|
5
|
+
type PaddingType = number | string | {
|
|
6
|
+
top?: number;
|
|
7
|
+
right?: number;
|
|
8
|
+
bottom?: number;
|
|
9
|
+
left?: number;
|
|
10
|
+
};
|
|
11
|
+
declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
|
|
12
|
+
declare function easeInOutQuad(x: number): number;
|
|
13
|
+
declare const easingFns: {
|
|
14
|
+
easeInOutQuad: typeof easeInOutQuad;
|
|
15
|
+
};
|
|
16
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns };
|
|
@@ -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-83e2bd9e";
|
|
4
4
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export * from "./Component-63dec22f";
|
|
6
6
|
export { NavigationBar };
|
|
@@ -4,7 +4,7 @@ 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-
|
|
7
|
+
import { NavigationBarProps } from "./types-83e2bd9e";
|
|
8
8
|
import { CalendarDesktopProps } from "./Component.desktop-8b5756fe";
|
|
9
9
|
type BackdropProps = Partial<TransitionProps> & {
|
|
10
10
|
/**
|
|
@@ -116,6 +116,14 @@ type BaseModalProps = {
|
|
|
116
116
|
* Дополнительный класс
|
|
117
117
|
*/
|
|
118
118
|
contentClassName?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Дополнительные пропсы на обертку контента
|
|
121
|
+
*/
|
|
122
|
+
contentProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
123
|
+
/**
|
|
124
|
+
* Дополнительные пропсы на компонентную обертку контента
|
|
125
|
+
*/
|
|
126
|
+
componentDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
119
127
|
/**
|
|
120
128
|
* Дополнительный класс для обертки (Modal)
|
|
121
129
|
*/
|
|
@@ -11,7 +11,7 @@ import 'date-fns/format';
|
|
|
11
11
|
import 'date-fns/isSameDay';
|
|
12
12
|
import 'date-fns/parse';
|
|
13
13
|
|
|
14
|
-
var styles = {"component":"calendar-
|
|
14
|
+
var styles = {"component":"calendar-input__component_1qxbs","block":"calendar-input__block_1qxbs","calendarContainer":"calendar-input__calendarContainer_1qxbs","calendarResponsive":"calendar-input__calendarResponsive_1qxbs","calendarIcon":"calendar-input__calendarIcon_1qxbs","nativeInput":"calendar-input__nativeInput_1qxbs"};
|
|
15
15
|
require('./index.css')
|
|
16
16
|
|
|
17
17
|
var CalendarInput = forwardRef(function (_a, ref) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 96sjp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb;
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
} :root {
|
|
44
44
|
--calendar-input-icon-color: var(--color-light-graphic-primary);
|
|
45
45
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
46
|
-
} .calendar-
|
|
46
|
+
} .calendar-input__component_1qxbs {
|
|
47
47
|
display: inline-block;
|
|
48
48
|
outline: none;
|
|
49
49
|
position: relative;
|
|
50
|
-
} .calendar-
|
|
50
|
+
} .calendar-input__block_1qxbs {
|
|
51
51
|
width: 100%;
|
|
52
|
-
} .calendar-
|
|
52
|
+
} .calendar-input__calendarContainer_1qxbs {
|
|
53
53
|
display: inline-block;
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
56
56
|
border: 1px solid var(--color-light-border-secondary)
|
|
57
|
-
} @media (max-width: 374px) { .calendar-
|
|
57
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_1qxbs {
|
|
58
58
|
width: 100%;
|
|
59
59
|
min-width: 288px
|
|
60
60
|
}
|
|
61
|
-
} .calendar-
|
|
61
|
+
} .calendar-input__calendarResponsive_1qxbs {
|
|
62
62
|
width: var(--calendar-width);
|
|
63
|
-
} .calendar-
|
|
63
|
+
} .calendar-input__calendarIcon_1qxbs {
|
|
64
64
|
width: 24px;
|
|
65
65
|
height: 24px;
|
|
66
66
|
display: block;
|
|
67
67
|
color: var(--calendar-input-icon-color)
|
|
68
|
-
} .calendar-
|
|
68
|
+
} .calendar-input__calendarIcon_1qxbs:not(:only-child) {
|
|
69
69
|
margin-right: var(--gap-2xs);
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__nativeInput_1qxbs {
|
|
71
71
|
opacity: 0;
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0;
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
height: 100%;
|
|
77
77
|
appearance: none;
|
|
78
78
|
z-index: 1
|
|
79
|
-
} .calendar-
|
|
79
|
+
} .calendar-input__nativeInput_1qxbs::-webkit-calendar-picker-indicator {
|
|
80
80
|
display: none;
|
|
81
|
-
} .calendar-
|
|
81
|
+
} .calendar-input__nativeInput_1qxbs::-webkit-inner-spin-button {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const isClient: () => boolean;
|
|
4
|
+
declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
|
|
5
|
+
type PaddingType = number | string | {
|
|
6
|
+
top?: number;
|
|
7
|
+
right?: number;
|
|
8
|
+
bottom?: number;
|
|
9
|
+
left?: number;
|
|
10
|
+
};
|
|
11
|
+
declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
|
|
12
|
+
declare function easeInOutQuad(x: number): number;
|
|
13
|
+
declare const easingFns: {
|
|
14
|
+
easeInOutQuad: typeof easeInOutQuad;
|
|
15
|
+
};
|
|
16
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const isClient: () => boolean;
|
|
4
|
+
declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
|
|
5
|
+
type PaddingType = number | string | {
|
|
6
|
+
top?: number;
|
|
7
|
+
right?: number;
|
|
8
|
+
bottom?: number;
|
|
9
|
+
left?: number;
|
|
10
|
+
};
|
|
11
|
+
declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
|
|
12
|
+
declare function easeInOutQuad(x: number): number;
|
|
13
|
+
declare const easingFns: {
|
|
14
|
+
easeInOutQuad: typeof easeInOutQuad;
|
|
15
|
+
};
|
|
16
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns };
|
|
@@ -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-83e2bd9e";
|
|
4
4
|
declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export * from "./Component-63dec22f";
|
|
6
6
|
export { NavigationBar };
|
|
@@ -4,7 +4,7 @@ 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-
|
|
7
|
+
import { NavigationBarProps } from "./types-83e2bd9e";
|
|
8
8
|
import { CalendarDesktopProps } from "./Component.desktop-8b5756fe";
|
|
9
9
|
type BackdropProps = Partial<TransitionProps> & {
|
|
10
10
|
/**
|
|
@@ -116,6 +116,14 @@ type BaseModalProps = {
|
|
|
116
116
|
* Дополнительный класс
|
|
117
117
|
*/
|
|
118
118
|
contentClassName?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Дополнительные пропсы на обертку контента
|
|
121
|
+
*/
|
|
122
|
+
contentProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
123
|
+
/**
|
|
124
|
+
* Дополнительные пропсы на компонентную обертку контента
|
|
125
|
+
*/
|
|
126
|
+
componentDivProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
|
|
119
127
|
/**
|
|
120
128
|
* Дополнительный класс для обертки (Modal)
|
|
121
129
|
*/
|
|
@@ -10,7 +10,7 @@ import 'date-fns/format';
|
|
|
10
10
|
import 'date-fns/isSameDay';
|
|
11
11
|
import 'date-fns/parse';
|
|
12
12
|
|
|
13
|
-
const styles = {"component":"calendar-
|
|
13
|
+
const styles = {"component":"calendar-input__component_1qxbs","block":"calendar-input__block_1qxbs","calendarContainer":"calendar-input__calendarContainer_1qxbs","calendarResponsive":"calendar-input__calendarResponsive_1qxbs","calendarIcon":"calendar-input__calendarIcon_1qxbs","nativeInput":"calendar-input__nativeInput_1qxbs"};
|
|
14
14
|
require('./index.css')
|
|
15
15
|
|
|
16
16
|
const CalendarInput = forwardRef(({ block = false, className, inputClassName, popoverClassName, defaultOpen = false, defaultMonth, defaultValue = '', calendarPosition = 'popover', value, dataTestId, calendarProps = {}, minDate = calendarProps.minDate, maxDate = calendarProps.maxDate, offDays = calendarProps.offDays || [], events = calendarProps.events || [], preventFlip, mobileMode = 'popover', wrapperRef = null, disabled, onChange = () => null, onInputChange, onCalendarChange, onCalendarOpen, onCalendarClose, onKeyDown, readOnly, disableUserInput = false, Calendar, popoverPosition = 'bottom-start', zIndexPopover, useAnchorWidth, rightAddons, error, view = 'desktop', ...restProps }, ref) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: 96sjp */
|
|
2
2
|
:root {
|
|
3
3
|
} /* deprecated */ :root {
|
|
4
4
|
--color-light-border-secondary: #e9e9eb;
|
|
@@ -43,31 +43,31 @@
|
|
|
43
43
|
} :root {
|
|
44
44
|
--calendar-input-icon-color: var(--color-light-graphic-primary);
|
|
45
45
|
--calendar-input-popover-border-radius: var(--border-radius-m);
|
|
46
|
-
} .calendar-
|
|
46
|
+
} .calendar-input__component_1qxbs {
|
|
47
47
|
display: inline-block;
|
|
48
48
|
outline: none;
|
|
49
49
|
position: relative;
|
|
50
|
-
} .calendar-
|
|
50
|
+
} .calendar-input__block_1qxbs {
|
|
51
51
|
width: 100%;
|
|
52
|
-
} .calendar-
|
|
52
|
+
} .calendar-input__calendarContainer_1qxbs {
|
|
53
53
|
display: inline-block;
|
|
54
54
|
box-sizing: border-box;
|
|
55
55
|
border-radius: var(--calendar-input-popover-border-radius);
|
|
56
56
|
border: 1px solid var(--color-light-border-secondary)
|
|
57
|
-
} @media (max-width: 374px) { .calendar-
|
|
57
|
+
} @media (max-width: 374px) { .calendar-input__calendarContainer_1qxbs {
|
|
58
58
|
width: 100%;
|
|
59
59
|
min-width: 288px
|
|
60
60
|
}
|
|
61
|
-
} .calendar-
|
|
61
|
+
} .calendar-input__calendarResponsive_1qxbs {
|
|
62
62
|
width: var(--calendar-width);
|
|
63
|
-
} .calendar-
|
|
63
|
+
} .calendar-input__calendarIcon_1qxbs {
|
|
64
64
|
width: 24px;
|
|
65
65
|
height: 24px;
|
|
66
66
|
display: block;
|
|
67
67
|
color: var(--calendar-input-icon-color)
|
|
68
|
-
} .calendar-
|
|
68
|
+
} .calendar-input__calendarIcon_1qxbs:not(:only-child) {
|
|
69
69
|
margin-right: var(--gap-2xs);
|
|
70
|
-
} .calendar-
|
|
70
|
+
} .calendar-input__nativeInput_1qxbs {
|
|
71
71
|
opacity: 0;
|
|
72
72
|
position: absolute;
|
|
73
73
|
top: 0;
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
height: 100%;
|
|
77
77
|
appearance: none;
|
|
78
78
|
z-index: 1
|
|
79
|
-
} .calendar-
|
|
79
|
+
} .calendar-input__nativeInput_1qxbs::-webkit-calendar-picker-indicator {
|
|
80
80
|
display: none;
|
|
81
|
-
} .calendar-
|
|
81
|
+
} .calendar-input__nativeInput_1qxbs::-webkit-inner-spin-button {
|
|
82
82
|
display: none;
|
|
83
83
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare const isClient: () => boolean;
|
|
4
|
+
declare const getDataTestId: (dataTestId?: string, element?: string) => string | undefined;
|
|
5
|
+
type PaddingType = number | string | {
|
|
6
|
+
top?: number;
|
|
7
|
+
right?: number;
|
|
8
|
+
bottom?: number;
|
|
9
|
+
left?: number;
|
|
10
|
+
};
|
|
11
|
+
declare function createPaddingStyle(padding?: PaddingType): undefined | React.CSSProperties;
|
|
12
|
+
declare function easeInOutQuad(x: number): number;
|
|
13
|
+
declare const easingFns: {
|
|
14
|
+
easeInOutQuad: typeof easeInOutQuad;
|
|
15
|
+
};
|
|
16
|
+
export { isClient, getDataTestId, createPaddingStyle, easingFns };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-calendar-input",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"description": "Calendar input component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,10 +39,11 @@
|
|
|
39
39
|
"react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@alfalab/core-components-calendar": "^7.0.
|
|
43
|
-
"@alfalab/core-components-date-input": "^4.3.
|
|
42
|
+
"@alfalab/core-components-calendar": "^7.0.2",
|
|
43
|
+
"@alfalab/core-components-date-input": "^4.3.2",
|
|
44
44
|
"@alfalab/core-components-popover": "^6.1.0",
|
|
45
45
|
"@alfalab/hooks": "^1.13.0",
|
|
46
|
+
"@alfalab/icons-glyph": "^2.108.0",
|
|
46
47
|
"classnames": "^2.3.1",
|
|
47
48
|
"date-fns": "^2.16.1",
|
|
48
49
|
"react-merge-refs": "^1.1.0",
|
package/cssm/index-89a3cf4c.d.ts
DELETED
package/esm/index-89a3cf4c.d.ts
DELETED
package/index-89a3cf4c.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|