kwant-ui 3.37.1-stable.3 → 3.37.1-stable.5

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.
@@ -1,11 +1,11 @@
1
- import { DateObject } from 'react-multi-date-picker';
2
1
  import { CalendarTimeBarProps, ICalendar } from './CalendarTypes';
3
2
  export type SidebarOptionProps = ICalendar.SidebarOptionProps;
4
3
  export declare const SidebarOption: ({ title, selected, onClick }: SidebarOptionProps) => import("react/jsx-runtime").JSX.Element;
5
- export declare const CalendarSidebar: ({ options, selectedOption, onOptionClick, }: {
4
+ export declare const CalendarSidebar: ({ options, selectedOption, onOptionClick, order, }: {
6
5
  options?: Pick<SidebarOptionProps, 'title' | 'selected' | 'value'>[];
7
6
  selectedOption: string;
8
- onOptionClick?: (value: () => DateObject[], option?: Pick<SidebarOptionProps, 'title' | 'selected' | 'value'>) => void;
7
+ onOptionClick?: (value: SidebarOptionProps['value'], option?: Pick<SidebarOptionProps, 'title' | 'selected' | 'value'>) => void;
8
+ order?: number;
9
9
  }) => import("react/jsx-runtime").JSX.Element;
10
10
  export declare const CalendarTimeBar: ({ label, timeHour, timeMinute, clockType, disabled, onClockTypeChange, onHourChange, onMinuteChange, }: CalendarTimeBarProps) => import("react/jsx-runtime").JSX.Element;
11
11
  export declare const renderDatepickerNavigationButton: (direction: ICalendar.DatpickerNavigationDirection, handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export declare const CalendarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const CalendarSidebarStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
3
+ export declare const CalendarSidebarStyled: import("styled-components").StyledComponent<"div", any, {
4
+ order?: number;
5
+ }, never>;
4
6
  export declare const CalendarSidebarOptions: import("styled-components").StyledComponent<"button", any, {
5
7
  selected?: boolean;
6
8
  }, never>;
@@ -34,6 +34,7 @@ export declare namespace ICalendar {
34
34
  rangeDomain?: RangeDomain;
35
35
  onSidebarOptionSelect?: (value: string) => void;
36
36
  onChange?: (date: DateObject | DateObject[], selectedOption?: string) => void;
37
+ onChangeDateTime?: (date: dayjs.Dayjs | dayjs.Dayjs[], selectedOption?: string) => void;
37
38
  };
38
39
  type ClockType = 'am' | 'pm';
39
40
  type CalendarTimeBarProps = {
@@ -53,7 +54,7 @@ export declare namespace ICalendar {
53
54
  type SidebarOptionProps = {
54
55
  title: string;
55
56
  selected?: boolean;
56
- value?: (() => DateObject[]) | (() => dayjs.Dayjs[]);
57
+ value?: (() => DateObject[]) | (() => dayjs.Dayjs[]) | string;
57
58
  onClick?: () => void;
58
59
  };
59
60
  type Time = {
@@ -24,6 +24,9 @@ export declare const CALENDAR_CONSTANTS: {
24
24
  CUSTOM_RANGE: DateObject[];
25
25
  NOW: DateObject[];
26
26
  LAST_HOUR: DateObject[];
27
+ LAST_HALF_AN_HOUR: DateObject[];
28
+ LAST_10_MINUTES: DateObject[];
29
+ LAST_5_MINUTES: DateObject[];
27
30
  YESTERDAY: DateObject[];
28
31
  CUSTOM_RANGE_LOCATION_PLAN: DateObject[];
29
32
  };
@@ -1,5 +1,6 @@
1
1
  declare const DatepickerWrapper: import("styled-components").StyledComponent<"div", any, {
2
2
  showTime?: boolean;
3
+ disableTimeRange?: boolean;
3
4
  }, never>;
4
5
  declare const DatepickerNavigationButton: import("styled-components").StyledComponent<"button", any, {}, never>;
5
6
  declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { CalendarProps, DatePickerProps } from 'react-multi-date-picker';
3
3
  import { InputComponent } from '../Input/types';
4
+ import { SidebarOptionProps } from '../Calendar/CalendarComponents';
4
5
  export declare namespace IDatepicker {
5
6
  type ClockType = 'am' | 'pm';
6
7
  enum ClockTypeEnum {
@@ -19,7 +20,12 @@ export declare namespace IDatepicker {
19
20
  dateFormat?: string;
20
21
  showTime?: boolean;
21
22
  dateTimeRange?: DateRangeType;
22
- onChangeDateTime?: (time: DateRangeType) => void;
23
+ onChangeDateTime?: (time: DateRangeType, option: string) => void;
24
+ projectDuration?: DateRangeType;
25
+ showSideBar?: boolean;
26
+ sidebarOptions?: Omit<SidebarOptionProps, 'onClick'>[];
27
+ selectedSidebarOption?: string;
28
+ timezone?: string;
23
29
  };
24
30
  enum DatpickerNavigationDirectionEnum {
25
31
  right = "right",