kwant-ui 3.37.0-alpha.0 → 3.37.0

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.
Files changed (43) hide show
  1. package/dist/components/Alert/AlertTypes.d.ts +1 -1
  2. package/dist/components/Alert/AlertUtils.d.ts +1 -0
  3. package/dist/components/Calendar/CalendarComponents.d.ts +5 -4
  4. package/dist/components/Calendar/CalendarStyled.d.ts +37 -1
  5. package/dist/components/Calendar/CalendarTypes.d.ts +44 -1
  6. package/dist/components/Calendar/CalendarUtils.d.ts +17 -1
  7. package/dist/components/Checkbox/types.d.ts +0 -1
  8. package/dist/components/Datepicker/DatepickerStyled.d.ts +5 -1
  9. package/dist/components/Datepicker/types.d.ts +34 -0
  10. package/dist/components/Datepicker/utils/index.d.ts +29 -1
  11. package/dist/components/Dropdown/DropdownStyled.d.ts +6 -2
  12. package/dist/components/DropdownSelect/DropdownSelect.styled.d.ts +3 -1
  13. package/dist/components/DropdownSelect/DropdownSelect.types.d.ts +1 -0
  14. package/dist/components/HorizontalStepper/index.d.ts +3 -1
  15. package/dist/components/Input/index.d.ts +1 -0
  16. package/dist/components/Input/types.d.ts +1 -0
  17. package/dist/components/MultiSelect/MultiSelect.d.ts +1 -1
  18. package/dist/components/MultiSelect/types.d.ts +1 -0
  19. package/dist/components/MultiSelect/utils.d.ts +1 -1
  20. package/dist/components/Select/Select.styled.d.ts +1 -0
  21. package/dist/components/Select/Select.types.d.ts +1 -0
  22. package/dist/components/Selector/Selector.d.ts +1 -1
  23. package/dist/components/Selector/types.d.ts +10 -1
  24. package/dist/components/Tag/types.d.ts +1 -1
  25. package/dist/components/Toast/Toast.types.d.ts +2 -1
  26. package/dist/hooks/index.d.ts +1 -0
  27. package/dist/hooks/useTimeBar.d.ts +29 -0
  28. package/dist/hooks/useToast.d.ts +1 -0
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.es.js +355 -247
  31. package/dist/index.js +355 -247
  32. package/dist/package.json +1 -1
  33. package/dist/public/assets/icons/US.svg +1 -1
  34. package/dist/public/assets/icons/unsafe.svg +23 -0
  35. package/dist/themes/colors.ts +18 -11
  36. package/dist/themes/types.d.ts +2 -0
  37. package/dist/types/IconTypes.d.ts +1 -1
  38. package/dist/utils/index.d.ts +2 -1
  39. package/dist/utils/index.ts +14 -0
  40. package/package.json +1 -1
  41. package/themes/colors.ts +15 -9
  42. package/themes/types.ts +1 -0
  43. package/utils/index.ts +14 -0
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  export declare namespace IAlert {
3
- type AlertType = 'success' | 'error' | 'warning' | 'info' | 'promise';
3
+ type AlertType = 'success' | 'error' | 'warning' | 'info' | 'promise' | 'alert';
4
4
  interface AlertStyled {
5
5
  type: AlertType;
6
6
  width?: string;
@@ -15,6 +15,7 @@ export declare const alertIcons: {
15
15
  error: import("react/jsx-runtime").JSX.Element;
16
16
  warning: import("react/jsx-runtime").JSX.Element;
17
17
  promise: import("react/jsx-runtime").JSX.Element;
18
+ alert: import("react/jsx-runtime").JSX.Element;
18
19
  };
19
20
  export declare const switchStyles: (type: IAlert.AlertType, theme: any) => {
20
21
  background: any;
@@ -1,10 +1,11 @@
1
- import { DateObject } from 'react-multi-date-picker';
2
- import { ICalendar } from './CalendarTypes';
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
+ export declare const CalendarTimeBar: ({ label, timeHour, timeMinute, clockType, disabled, onClockTypeChange, onHourChange, onMinuteChange, }: CalendarTimeBarProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export declare const renderDatepickerNavigationButton: (direction: ICalendar.DatpickerNavigationDirection, handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,44 @@
1
+ /// <reference types="react" />
1
2
  export declare const CalendarWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- 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>;
3
6
  export declare const CalendarSidebarOptions: import("styled-components").StyledComponent<"button", any, {
4
7
  selected?: boolean;
5
8
  }, never>;
9
+ export declare const CalendarTimebar: import("styled-components").StyledComponent<"div", any, {}, never>;
10
+ export declare const StyledInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & {
11
+ onClick?: (event: import("react").MouseEvent<HTMLInputElement, MouseEvent>) => void;
12
+ onChange?: (event: import("react").ChangeEvent<HTMLInputElement>) => void;
13
+ disabled?: boolean;
14
+ value?: string | number;
15
+ name?: string;
16
+ type?: string;
17
+ required?: boolean;
18
+ readOnly?: boolean;
19
+ label?: string;
20
+ errorMessage?: string;
21
+ error?: boolean;
22
+ id?: string;
23
+ helperText?: string;
24
+ onBlur?: (e: import("react").FocusEvent<HTMLInputElement, Element>) => void;
25
+ onFocus?: (e: import("react").FocusEvent<HTMLInputElement, Element>) => void;
26
+ rightSection?: import("react").ReactNode;
27
+ leftSection?: import("react").ReactNode;
28
+ width?: number;
29
+ variant?: import("../Input/types").InputComponent.InputVariant;
30
+ tooltipContent?: string;
31
+ tooltipPosition?: import("../Tooltip/types").TooltipComponent.Position;
32
+ decimal?: boolean;
33
+ } & import("react").RefAttributes<HTMLInputElement>>, any, {}, never>;
34
+ export declare const Colon: import("styled-components").StyledComponent<"div", any, {}, never>;
35
+ export declare const InputGroup: import("styled-components").StyledComponent<"div", any, {}, never>;
36
+ 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>;
37
+ export declare const TimeBarContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
38
+ export declare const TopLabel: import("styled-components").StyledComponent<"label", any, import("../Label/types").LabelComponent.Label, never>;
39
+ export declare const TimeBarStyled: import("styled-components").StyledComponent<"div", any, {
40
+ showTime?: boolean;
41
+ }, never>;
6
42
  declare const DatepickerNavigationButton: import("styled-components").StyledComponent<"button", any, {}, never>;
7
43
  declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
8
44
  export { DatepickerNavigationButton, IconWrapper };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import dayjs from 'dayjs';
2
3
  import { CalendarProps, DateObject } from 'react-multi-date-picker';
3
4
  export type RangeDomainUnit = 'd' | 'w' | 'm' | 'y';
4
5
  export type RangeDomain = `${number}${RangeDomainUnit}`;
@@ -7,13 +8,38 @@ export declare namespace ICalendar {
7
8
  range?: boolean;
8
9
  numberOfMonths?: number;
9
10
  calenderRef?: any;
11
+ labels?: string;
10
12
  showSidebar?: boolean;
13
+ showTime?: boolean;
14
+ disableTime?: boolean;
15
+ time?: {
16
+ from: {
17
+ hour: string;
18
+ minute: string;
19
+ clockType: ClockType;
20
+ };
21
+ to: {
22
+ hour: string;
23
+ minute: string;
24
+ clockType: ClockType;
25
+ };
26
+ };
27
+ onHourChange?: (key: string, value: string) => void;
28
+ onMinuteChange?: (key: string, value: string) => void;
29
+ onClockTypeChange?: (key: string, value: string) => void;
11
30
  sidebarOptions?: Omit<SidebarOptionProps, 'onClick'>[];
12
31
  projectDuration?: ProjectDuration;
13
32
  disableFutureDatesOnCustomRange?: boolean;
14
33
  selectedSidebarOption?: string;
15
34
  rangeDomain?: RangeDomain;
35
+ onSidebarOptionSelect?: (value: string) => void;
16
36
  onChange?: (date: DateObject | DateObject[], selectedOption?: string) => void;
37
+ onChangeDateTime?: (date: dayjs.Dayjs | dayjs.Dayjs[], selectedOption?: string) => void;
38
+ };
39
+ type ClockType = 'am' | 'pm';
40
+ type CalendarTimeBarProps = {
41
+ times: string[];
42
+ onTimeChange: (index: number, value: string) => void;
17
43
  };
18
44
  enum DatpickerNavigationDirectionEnum {
19
45
  right = "right",
@@ -28,7 +54,24 @@ export declare namespace ICalendar {
28
54
  type SidebarOptionProps = {
29
55
  title: string;
30
56
  selected?: boolean;
31
- value?: () => DateObject[];
57
+ value?: (() => DateObject[]) | (() => dayjs.Dayjs[]) | string;
32
58
  onClick?: () => void;
33
59
  };
60
+ type Time = {
61
+ key: string;
62
+ label: string;
63
+ timeHour: string;
64
+ timeMinute: string;
65
+ clockType: string;
66
+ };
34
67
  }
68
+ export type CalendarTimeBarProps = {
69
+ label?: string;
70
+ timeHour?: string;
71
+ timeMinute?: string;
72
+ clockType?: ICalendar.ClockType | string;
73
+ disabled?: boolean;
74
+ onHourChange: (key: string, value: string) => void;
75
+ onMinuteChange: (key: string, value: string) => void;
76
+ onClockTypeChange: (key: string, value: string) => void;
77
+ };
@@ -5,6 +5,10 @@ export declare const isRangeWithNumberOfMonths: (range: boolean, numberOfMonths:
5
5
  declare const regexInputValidate: (event: ICalendar.InputChangeEvent, onChange: (event: ICalendar.InputChangeEvent) => void) => void;
6
6
  declare const weeks: string[];
7
7
  declare const fullMonthsText: any;
8
+ export declare const selectorContent: {
9
+ [key: string]: string;
10
+ clockType: ICalendar.ClockType;
11
+ }[];
8
12
  export declare const getDateObjectForCalendarConstants: (date: string | Date, amount: number, unit: dayjs.ManipulateType, end: 'startOf' | 'endOf') => DateObject;
9
13
  export declare const CALENDAR_CONSTANTS: {
10
14
  TODAY: DateObject[];
@@ -18,6 +22,13 @@ export declare const CALENDAR_CONSTANTS: {
18
22
  THIS_MONTH: DateObject[];
19
23
  PAST_MONTH: DateObject[];
20
24
  CUSTOM_RANGE: DateObject[];
25
+ NOW: DateObject[];
26
+ LAST_HOUR: DateObject[];
27
+ LAST_HALF_AN_HOUR: DateObject[];
28
+ LAST_10_MINUTES: DateObject[];
29
+ LAST_5_MINUTES: DateObject[];
30
+ YESTERDAY: DateObject[];
31
+ CUSTOM_RANGE_LOCATION_PLAN: DateObject[];
21
32
  };
22
33
  export declare const getSidebarOptions: (projectDuration?: ICalendar.ProjectDuration) => {
23
34
  title: string;
@@ -25,4 +36,9 @@ export declare const getSidebarOptions: (projectDuration?: ICalendar.ProjectDura
25
36
  }[];
26
37
  declare const getDateOffset: (valueArr: Value, domain: RangeDomain) => DateObject[];
27
38
  declare const isNotInCurrentMonth: (date: string | DateObject) => boolean;
28
- export { fullMonthsText, regexInputValidate, weeks, getDateOffset, isNotInCurrentMonth };
39
+ declare const timeSet: {
40
+ key: string;
41
+ label: string;
42
+ }[];
43
+ declare const addPadStart: (value: string) => string;
44
+ export { fullMonthsText, regexInputValidate, weeks, getDateOffset, isNotInCurrentMonth, timeSet, addPadStart, };
@@ -7,7 +7,6 @@ export declare namespace Checkbox {
7
7
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
8
8
  color?: string;
9
9
  disabled?: boolean;
10
- defaultChecked?: boolean;
11
10
  checked?: boolean;
12
11
  variant?: CheckboxVariant;
13
12
  checkBoxColor?: string;
@@ -1,3 +1,7 @@
1
+ declare const DatepickerWrapper: import("styled-components").StyledComponent<"div", any, {
2
+ showTime?: boolean;
3
+ disableTimeRange?: boolean;
4
+ }, never>;
1
5
  declare const DatepickerNavigationButton: import("styled-components").StyledComponent<"button", any, {}, never>;
2
6
  declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export { DatepickerNavigationButton, IconWrapper };
7
+ export { DatepickerNavigationButton, IconWrapper, DatepickerWrapper };
@@ -1,7 +1,13 @@
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 {
6
+ type ClockType = 'am' | 'pm';
7
+ enum ClockTypeEnum {
8
+ am = "am",
9
+ pm = "pm"
10
+ }
5
11
  type Props = CalendarProps & DatePickerProps & {
6
12
  range?: boolean;
7
13
  numberOfMonths?: number;
@@ -12,6 +18,14 @@ export declare namespace IDatepicker {
12
18
  calendarRef?: any;
13
19
  inputProps?: InputComponent.Props;
14
20
  dateFormat?: string;
21
+ showTime?: boolean;
22
+ dateTimeRange?: DateRangeType;
23
+ onChangeDateTime?: (time: DateRangeType, option: string) => void;
24
+ projectDuration?: DateRangeType;
25
+ showSideBar?: boolean;
26
+ sidebarOptions?: Omit<SidebarOptionProps, 'onClick'>[];
27
+ selectedSidebarOption?: string;
28
+ timezone?: string;
15
29
  };
16
30
  enum DatpickerNavigationDirectionEnum {
17
31
  right = "right",
@@ -19,4 +33,24 @@ export declare namespace IDatepicker {
19
33
  }
20
34
  type InputChangeEvent = React.ChangeEvent<HTMLInputElement>;
21
35
  type DatpickerNavigationDirection = keyof typeof DatpickerNavigationDirectionEnum;
36
+ type DateRangeType = {
37
+ startDate: string;
38
+ endDate: string;
39
+ };
40
+ type TimeRangeType = {
41
+ from: {
42
+ hour: string;
43
+ minute: string;
44
+ clockType: ClockType;
45
+ };
46
+ to: {
47
+ hour: string;
48
+ minute: string;
49
+ clockType: ClockType;
50
+ };
51
+ };
52
+ type DateTimeRangeType = {
53
+ dateRange: DateRangeType;
54
+ timeRange: TimeRangeType;
55
+ };
22
56
  }
@@ -1,7 +1,35 @@
1
+ import { DateObject } from 'react-multi-date-picker';
1
2
  import { IDatepicker } from '../types';
2
3
  declare const renderDatepickerNavigationButton: (direction: IDatepicker.DatpickerNavigationDirection, handleClick: (event: React.MouseEvent<HTMLButtonElement>) => void) => import("react/jsx-runtime").JSX.Element;
3
4
  declare const regexInputValidate: (event: IDatepicker.InputChangeEvent, onChange: (event: IDatepicker.InputChangeEvent) => void) => void;
4
5
  declare const months: string[];
5
6
  declare const weeks: string[];
6
7
  declare const fullMonthsText: any;
7
- export { renderDatepickerNavigationButton, regexInputValidate, months, weeks, fullMonthsText };
8
+ declare const createDateTimeRangeParams: (dateTimeRange?: IDatepicker.DateTimeRangeType) => {
9
+ startDate: string;
10
+ endDate: string;
11
+ };
12
+ declare const getDateRange: (dates: DateObject[] | DateObject | null) => string;
13
+ declare const extractTimeFromDate: (dateTimeRange: IDatepicker.DateRangeType) => {
14
+ startDateOnly: string;
15
+ endDateOnly: string;
16
+ time: {
17
+ from: {
18
+ hour: string;
19
+ minute: string;
20
+ clockType: IDatepicker.ClockTypeEnum;
21
+ };
22
+ to: {
23
+ hour: string;
24
+ minute: string;
25
+ clockType: IDatepicker.ClockTypeEnum;
26
+ };
27
+ };
28
+ };
29
+ declare const formatDateTime: (date: string | Date, format: string, timeRange: {
30
+ hour: string;
31
+ minute: string;
32
+ clockType: string;
33
+ }) => string;
34
+ declare const getFormattedDateTime: (dateTimeRange?: IDatepicker.DateRangeType, dateFormat?: string) => string;
35
+ export { renderDatepickerNavigationButton, regexInputValidate, months, weeks, fullMonthsText, createDateTimeRangeParams, getDateRange, extractTimeFromDate, formatDateTime, getFormattedDateTime, };
@@ -6,8 +6,12 @@ export declare const OptionsContainer: import("styled-components").StyledCompone
6
6
  separator?: boolean;
7
7
  showScrollbar?: boolean;
8
8
  }, never>;
9
- export declare const Option: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const CustomOption: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const Option: import("styled-components").StyledComponent<"div", any, {
10
+ isSelected?: boolean;
11
+ }, never>;
12
+ export declare const CustomOption: import("styled-components").StyledComponent<"div", any, {
13
+ isSelected?: boolean;
14
+ }, never>;
11
15
  export declare const EmptyResultContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
12
16
  export declare const AddOptionContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
13
17
  export declare const CustomImageOption: import("styled-components").StyledComponent<"div", any, {
@@ -1,4 +1,6 @@
1
- export declare const Root: import("styled-components").StyledComponent<"div", any, {}, never>;
1
+ export declare const Root: import("styled-components").StyledComponent<"div", any, {
2
+ disabled?: boolean;
3
+ }, never>;
2
4
  export declare const ChildrenWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
5
  export declare const Container: import("styled-components").StyledComponent<"div", any, {
4
6
  expandedHeight: number | string;
@@ -6,5 +6,6 @@ export declare namespace IDropdownSelect {
6
6
  children: React.ReactNode;
7
7
  toggleOnTargetClick?: boolean;
8
8
  withInput?: boolean;
9
+ disabled?: boolean;
9
10
  };
10
11
  }
@@ -6,6 +6,8 @@ type HorizontalStepperType = {
6
6
  steps?: any;
7
7
  activeStep?: any;
8
8
  setActiveStep?: any;
9
+ navigateOnStepClick?: boolean;
10
+ onStepChange?: (value: any) => void;
9
11
  };
10
- declare const HorizontalStepper: ({ activeStep, setActiveStep, ...props }: HorizontalStepperType) => import("react/jsx-runtime").JSX.Element;
12
+ declare const HorizontalStepper: ({ activeStep, setActiveStep, navigateOnStepClick, onStepChange, ...props }: HorizontalStepperType) => import("react/jsx-runtime").JSX.Element;
11
13
  export { HorizontalStepper };
@@ -22,5 +22,6 @@ declare const Input: import("react").ForwardRefExoticComponent<import("react").I
22
22
  variant?: InputComponent.InputVariant;
23
23
  tooltipContent?: string;
24
24
  tooltipPosition?: import("../Tooltip/types").TooltipComponent.Position;
25
+ decimal?: boolean;
25
26
  } & import("react").RefAttributes<HTMLInputElement>>;
26
27
  export { Input };
@@ -25,6 +25,7 @@ export declare namespace InputComponent {
25
25
  variant?: InputVariant;
26
26
  tooltipContent?: string;
27
27
  tooltipPosition?: TooltipComponent.Position;
28
+ decimal?: boolean;
28
29
  };
29
30
  type Astrik = {
30
31
  disabled: boolean;
@@ -1,3 +1,3 @@
1
1
  import { MSTypes } from './types';
2
- declare const MultiSelect: ({ width, options, activeOptions, setActiveOptions, placeholder, label, variant, dropdownSelectProps, avatarProps, tooltipContent, tooltipPosition, }: MSTypes) => import("react/jsx-runtime").JSX.Element;
2
+ declare const MultiSelect: ({ width, options, activeOptions, setActiveOptions, placeholder, label, variant, dropdownSelectProps, avatarProps, tooltipContent, tooltipPosition, labelTrimCount, }: MSTypes) => import("react/jsx-runtime").JSX.Element;
3
3
  export { MultiSelect };
@@ -14,6 +14,7 @@ export type MSTypes = {
14
14
  avatarProps?: AvatarDeclarations.Props;
15
15
  tooltipContent?: string;
16
16
  tooltipPosition?: TooltipComponent.Position;
17
+ labelTrimCount?: number;
17
18
  };
18
19
  export type MSStyleTypes = {
19
20
  width?: any;
@@ -17,7 +17,7 @@ export declare const MultiSelectOption: ({ option, isSelected: isChecked, varian
17
17
  hasImage?: boolean;
18
18
  avatarProps?: MSTypes['avatarProps'];
19
19
  }) => import("react/jsx-runtime").JSX.Element;
20
- export declare const trimTagLabel: (label: string) => string;
20
+ export declare const trimTagLabel: (label: string, labelTrimCount: number) => string;
21
21
  export declare const ActiveTag: ({ filterLabel, onChipClose, }: {
22
22
  filterLabel: string;
23
23
  onChipClose: () => void;
@@ -1,6 +1,7 @@
1
1
  export declare const SelectContainer: import("styled-components").StyledComponent<"div", any, {
2
2
  width?: string;
3
3
  allowInput?: boolean;
4
+ disabled?: boolean;
4
5
  }, never>;
5
6
  export declare const ChevronDown: import("styled-components").StyledComponent<"div", any, {
6
7
  isOpened?: boolean;
@@ -16,6 +16,7 @@ export declare namespace ISelect {
16
16
  inputProps?: InputComponent.Props;
17
17
  onClear?: () => void;
18
18
  onSelect?: (option: ISelect.Option, index?: number) => void;
19
+ disabled?: boolean;
19
20
  }
20
21
  interface Option extends IDropdownSelect.Option {
21
22
  }
@@ -1,3 +1,3 @@
1
1
  import { SelectorComponent } from './types';
2
- declare const Selector: ({ content, activeKey, onClick, height }: 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;
@@ -1,8 +1,17 @@
1
1
  export declare namespace SelectorComponent {
2
2
  type Props = {
3
3
  content: any;
4
- activeKey?: string;
4
+ activeKey?: string | string[];
5
5
  onClick?: any;
6
6
  height?: string;
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;
7
16
  };
8
17
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  export type TGTypes = {
3
- type: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'orange' | 'grey';
3
+ type: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'orange' | 'grey' | 'insight';
4
4
  size?: 'small' | 'default';
5
5
  avatar?: any;
6
6
  icon?: any;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- export type GeneralToastType = 'success' | 'error' | 'warning' | 'info';
2
+ export type GeneralToastType = 'success' | 'error' | 'warning' | 'info' | 'alert';
3
3
  export type ToastType = GeneralToastType | 'promise';
4
4
  export type XAlign = 'left' | 'center' | 'right';
5
5
  export type YAlign = 'top' | 'bottom';
@@ -39,6 +39,7 @@ export interface IToastContext {
39
39
  warning: GeneralToastFn;
40
40
  info: GeneralToastFn;
41
41
  promise: PromiseToastFn;
42
+ alert: GeneralToastFn;
42
43
  };
43
44
  removeToast: (id: string) => void;
44
45
  setConfig: (config: Omit<IToastProviderConfig, 'children'>) => void;
@@ -2,3 +2,4 @@ export * from './useToast';
2
2
  export * from './useOutsideClick';
3
3
  export * from './useDebouncedValue';
4
4
  export * from './useToggle';
5
+ export * from './useTimeBar';
@@ -0,0 +1,29 @@
1
+ /// <reference types="react" />
2
+ import { IDatepicker } from '../components/Datepicker/types';
3
+ declare const useTimeBar: () => {
4
+ time: {
5
+ from: {
6
+ hour: string;
7
+ minute: string;
8
+ clockType: IDatepicker.ClockType;
9
+ };
10
+ to: {
11
+ hour: string;
12
+ minute: string;
13
+ clockType: IDatepicker.ClockType;
14
+ };
15
+ };
16
+ setTime: import("react").Dispatch<import("react").SetStateAction<{
17
+ from: {
18
+ hour: string;
19
+ minute: string;
20
+ clockType: IDatepicker.ClockType;
21
+ };
22
+ to: {
23
+ hour: string;
24
+ minute: string;
25
+ clockType: IDatepicker.ClockType;
26
+ };
27
+ }>>;
28
+ };
29
+ export { useTimeBar };
@@ -6,5 +6,6 @@ declare const useToast: (hookConfig?: Omit<IToastProviderConfig, 'children'>) =>
6
6
  warning: import("../components/Toast/Toast.types").GeneralToastFn;
7
7
  info: import("../components/Toast/Toast.types").GeneralToastFn;
8
8
  promise: import("../components/Toast/Toast.types").PromiseToastFn;
9
+ alert: import("../components/Toast/Toast.types").GeneralToastFn;
9
10
  };
10
11
  export { useToast };
package/dist/index.d.ts CHANGED
@@ -65,3 +65,4 @@ export { CALENDAR_CONSTANTS, getDateObjectForCalendarConstants, } from './compon
65
65
  export * from './components/TrendPercentage';
66
66
  export * from './components/Charts/WorkerTimeChart';
67
67
  export { processDataForWorkerTimeChart } from './components/Charts/WorkerTimeChart/WorkerTimeChartData';
68
+ export { extractTimeFromDate, createDateTimeRangeParams, formatDateTime, getFormattedDateTime, } from './components/Datepicker/utils';