kwant-ui 3.38.1-dev.12 → 3.38.1-dev.14
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/dist/components/Calendar/CalendarComponents.d.ts +2 -7
- package/dist/components/Calendar/CalendarStyled.d.ts +1 -1
- package/dist/components/Calendar/CalendarTypes.d.ts +27 -2
- package/dist/components/Calendar/CalendarUtils.d.ts +6 -1
- package/dist/components/Selector/Selector.d.ts +1 -1
- package/dist/components/Selector/types.d.ts +8 -0
- package/dist/index.es.js +102 -90
- package/dist/index.js +102 -90
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateObject } from 'react-multi-date-picker';
|
|
2
|
-
import { ICalendar } from './CalendarTypes';
|
|
2
|
+
import { CalendarTimeBarProps, ICalendar } from './CalendarTypes';
|
|
3
3
|
export type SidebarOptionProps = ICalendar.SidebarOptionProps;
|
|
4
4
|
export declare const SidebarOption: ({ title, selected, onClick }: SidebarOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare const CalendarSidebar: ({ options, selectedOption, onOptionClick, }: {
|
|
@@ -7,10 +7,5 @@ export declare const CalendarSidebar: ({ options, selectedOption, onOptionClick,
|
|
|
7
7
|
selectedOption: string;
|
|
8
8
|
onOptionClick?: (value: () => DateObject[], option?: Pick<SidebarOptionProps, 'title' | 'selected' | 'value'>) => void;
|
|
9
9
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare const CalendarTimeBar: ({ label, timeHour, timeMinute, clockType, }:
|
|
11
|
-
label?: string;
|
|
12
|
-
timeHour?: string;
|
|
13
|
-
timeMinute?: string;
|
|
14
|
-
clockType?: ICalendar.ClockType | string;
|
|
15
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const CalendarTimeBar: ({ label, timeHour, timeMinute, clockType, disabled, onClockTypeChange, onHourChange, onMinuteChange, }: CalendarTimeBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
11
|
export declare const renderDatepickerNavigationButton: (direction: ICalendar.DatpickerNavigationDirection, handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -30,7 +30,7 @@ export declare const StyledInput: import("styled-components").StyledComponent<im
|
|
|
30
30
|
} & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
|
|
31
31
|
export declare const Colon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
32
32
|
export declare const InputGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
33
|
-
export declare const SelectorStyled: import("styled-components").StyledComponent<({ content, activeKey, onClick, height, multiple }: import("../Selector/types").SelectorComponent.Props) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
33
|
+
export declare const SelectorStyled: import("styled-components").StyledComponent<({ content, activeKey, onClick, height, multiple, disabled, }: import("../Selector/types").SelectorComponent.Props) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
34
34
|
export declare const TimeBarContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
35
35
|
export declare const TopLabel: import("styled-components").StyledComponent<"label", any, import("../Label/types").LabelComponent.Label, never>;
|
|
36
36
|
export declare const TimeBarStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -6,17 +6,32 @@ export declare namespace ICalendar {
|
|
|
6
6
|
type Props = CalendarProps & {
|
|
7
7
|
range?: boolean;
|
|
8
8
|
numberOfMonths?: number;
|
|
9
|
-
timeHour?: number;
|
|
10
|
-
timeMinute?: number;
|
|
11
9
|
calenderRef?: any;
|
|
12
10
|
labels?: string;
|
|
13
11
|
showSidebar?: boolean;
|
|
14
12
|
showTime?: boolean;
|
|
13
|
+
disableTime?: boolean;
|
|
14
|
+
time?: {
|
|
15
|
+
from: {
|
|
16
|
+
hour: string;
|
|
17
|
+
minute: string;
|
|
18
|
+
clockType: ClockType;
|
|
19
|
+
};
|
|
20
|
+
to: {
|
|
21
|
+
hour: string;
|
|
22
|
+
minute: string;
|
|
23
|
+
clockType: ClockType;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
onHourChange?: (key: string, value: string) => void;
|
|
27
|
+
onMinuteChange?: (key: string, value: string) => void;
|
|
28
|
+
onClockTypeChange?: (key: string, value: string) => void;
|
|
15
29
|
sidebarOptions?: Omit<SidebarOptionProps, 'onClick'>[];
|
|
16
30
|
projectDuration?: ProjectDuration;
|
|
17
31
|
disableFutureDatesOnCustomRange?: boolean;
|
|
18
32
|
selectedSidebarOption?: string;
|
|
19
33
|
rangeDomain?: RangeDomain;
|
|
34
|
+
onSidebarOptionSelect?: (value: string) => void;
|
|
20
35
|
onChange?: (date: DateObject | DateObject[], selectedOption?: string) => void;
|
|
21
36
|
};
|
|
22
37
|
type ClockType = 'am' | 'pm';
|
|
@@ -41,3 +56,13 @@ export declare namespace ICalendar {
|
|
|
41
56
|
onClick?: () => void;
|
|
42
57
|
};
|
|
43
58
|
}
|
|
59
|
+
export type CalendarTimeBarProps = {
|
|
60
|
+
label?: string;
|
|
61
|
+
timeHour?: string;
|
|
62
|
+
timeMinute?: string;
|
|
63
|
+
clockType?: ICalendar.ClockType | string;
|
|
64
|
+
disabled?: boolean;
|
|
65
|
+
onHourChange: (key: string, value: string) => void;
|
|
66
|
+
onMinuteChange: (key: string, value: string) => void;
|
|
67
|
+
onClockTypeChange: (key: string, value: string) => void;
|
|
68
|
+
};
|
|
@@ -32,4 +32,9 @@ export declare const getSidebarOptions: (projectDuration?: ICalendar.ProjectDura
|
|
|
32
32
|
}[];
|
|
33
33
|
declare const getDateOffset: (valueArr: Value, domain: RangeDomain) => DateObject[];
|
|
34
34
|
declare const isNotInCurrentMonth: (date: string | DateObject) => boolean;
|
|
35
|
-
|
|
35
|
+
declare const timeSet: {
|
|
36
|
+
key: string;
|
|
37
|
+
label: string;
|
|
38
|
+
}[];
|
|
39
|
+
declare const addPadStart: (value: string) => string;
|
|
40
|
+
export { fullMonthsText, regexInputValidate, weeks, getDateOffset, isNotInCurrentMonth, timeSet, addPadStart, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SelectorComponent } from './types';
|
|
2
|
-
declare const Selector: ({ content, activeKey, onClick, height, multiple }: SelectorComponent.Props) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const Selector: ({ content, activeKey, onClick, height, multiple, disabled, }: SelectorComponent.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Selector;
|
|
@@ -5,5 +5,13 @@ export declare namespace SelectorComponent {
|
|
|
5
5
|
onClick?: any;
|
|
6
6
|
height?: string;
|
|
7
7
|
multiple?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type ClassOptions = {
|
|
11
|
+
isFirst?: boolean;
|
|
12
|
+
isLast?: boolean;
|
|
13
|
+
isSingle?: boolean;
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
isDisabled?: boolean;
|
|
8
16
|
};
|
|
9
17
|
}
|