kwant-ui 3.44.0-dev.0 → 3.45.0-dev.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.
- package/README.md +73 -73
- package/dist/GlobalStyles/index.d.ts +5 -5
- package/dist/GlobalStyles/types.d.ts +17 -17
- package/dist/GlobalStyles/typography.d.ts +20 -20
- package/dist/HOC/HoverHOC/HoverHOC.d.ts +4 -4
- package/dist/HOC/HoverHOC/HoverHOCStyled.d.ts +2 -2
- package/dist/HOC/HoverHOC/index.d.ts +2 -2
- package/dist/HOC/HoverHOC/types.d.ts +20 -20
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/Alert/AlertStyled.d.ts +6 -6
- package/dist/components/Alert/AlertTypes.d.ts +24 -24
- package/dist/components/Alert/AlertUtils.d.ts +23 -23
- package/dist/components/Alert/index.d.ts +2 -2
- package/dist/components/Avatar/Avatar.d.ts +3 -3
- package/dist/components/Avatar/Avatar.types.d.ts +40 -40
- package/dist/components/Avatar/AvatarStyled.d.ts +6 -6
- package/dist/components/Avatar/AvatarUtils.d.ts +2 -2
- package/dist/components/Avatar/index.d.ts +2 -2
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +3 -3
- package/dist/components/AvatarGroup/AvatarGroupStyled.d.ts +3 -3
- package/dist/components/AvatarGroup/AvatarGroupTypes.d.ts +20 -20
- package/dist/components/AvatarGroup/AvatarGroupUtils.d.ts +1 -1
- package/dist/components/AvatarGroup/index.d.ts +2 -2
- package/dist/components/Badge/Badge.d.ts +3 -3
- package/dist/components/Badge/Badge.styled.d.ts +1 -1
- package/dist/components/Badge/types.d.ts +6 -6
- package/dist/components/BaseDrawer/BaseDrawer.d.ts +3 -3
- package/dist/components/BaseDrawer/BaseDrawer.styled.d.ts +3 -3
- package/dist/components/BaseDrawer/BaseDrawer.types.d.ts +19 -19
- package/dist/components/BaseDrawer/BaseDrawer.utils.d.ts +12 -12
- package/dist/components/BaseDrawer/index.d.ts +2 -2
- package/dist/components/BaseDropdown/BaseDropdown.d.ts +3 -3
- package/dist/components/BaseDropdown/BaseDropdownStyled.d.ts +2 -2
- package/dist/components/BaseDropdown/BaseDropdownTypes.d.ts +20 -20
- package/dist/components/BaseDropdown/index.d.ts +2 -2
- package/dist/components/Battery/Battery.d.ts +3 -3
- package/dist/components/Battery/Battery.styled.d.ts +1 -1
- package/dist/components/Battery/types.d.ts +3 -3
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +12 -12
- package/dist/components/Breadcrumb/Breadcrumb.styled.d.ts +5 -5
- package/dist/components/Breadcrumb/BreadcrumbUtils.d.ts +7 -7
- package/dist/components/Breadcrumb/Crumb.d.ts +9 -9
- package/dist/components/Breadcrumb/index.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.styled.d.ts +3 -3
- package/dist/components/Button/buttonColors.d.ts +3 -3
- package/dist/components/Button/helper.d.ts +4 -4
- package/dist/components/Button/types.d.ts +79 -79
- package/dist/components/Calendar/Calendar.d.ts +3 -3
- package/dist/components/Calendar/CalendarComponents.d.ts +11 -11
- package/dist/components/Calendar/CalendarStyled.d.ts +42 -44
- package/dist/components/Calendar/CalendarTypes.d.ts +76 -77
- package/dist/components/Calendar/CalendarUtils.d.ts +41 -44
- package/dist/components/Calendar/icons.d.ts +6 -6
- package/dist/components/Calendar/index.d.ts +2 -2
- package/dist/components/Charts/AreaChart/AreaChart.d.ts +3 -3
- package/dist/components/Charts/AreaChart/AreaChartData.d.ts +43 -43
- package/dist/components/Charts/AreaChart/AreaChartStyled.d.ts +22 -22
- package/dist/components/Charts/AreaChart/AreaChartTypes.d.ts +73 -73
- package/dist/components/Charts/AreaChart/AreaChartUtils.d.ts +28 -28
- package/dist/components/Charts/AreaChart/index.d.ts +2 -2
- package/dist/components/Charts/GaugeChart/GaugeChart.d.ts +3 -3
- package/dist/components/Charts/GaugeChart/GaugeChartStyled.d.ts +5 -5
- package/dist/components/Charts/GaugeChart/GaugeChartTypes.d.ts +26 -26
- package/dist/components/Charts/GaugeChart/index.d.ts +2 -2
- package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChart.d.ts +3 -3
- package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartData.d.ts +19 -19
- package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartStyled.d.ts +24 -24
- package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartTypes.d.ts +60 -60
- package/dist/components/Charts/HorizontalStackedBarChart/HorizontalStackedBarChartUtils.d.ts +10 -10
- package/dist/components/Charts/HorizontalStackedBarChart/index.d.ts +2 -2
- package/dist/components/Charts/LineChart/LineChart.d.ts +3 -3
- package/dist/components/Charts/LineChart/LineChartData.d.ts +32 -32
- package/dist/components/Charts/LineChart/LineChartStyled.d.ts +19 -19
- package/dist/components/Charts/LineChart/LineChartTypes.d.ts +60 -60
- package/dist/components/Charts/LineChart/LineChartUtils.d.ts +21 -21
- package/dist/components/Charts/LineChart/index.d.ts +2 -2
- package/dist/components/Charts/ProgressChart/ProgressChart.d.ts +3 -3
- package/dist/components/Charts/ProgressChart/ProgressChartStyled.d.ts +1 -1
- package/dist/components/Charts/ProgressChart/ProgressChartTypes.d.ts +13 -13
- package/dist/components/Charts/ProgressChart/index.d.ts +2 -2
- package/dist/components/Charts/StackedBarChart/StackedBarChart.d.ts +3 -3
- package/dist/components/Charts/StackedBarChart/StackedBarChartData.d.ts +25 -25
- package/dist/components/Charts/StackedBarChart/StackedBarChartStyled.d.ts +19 -19
- package/dist/components/Charts/StackedBarChart/StackedBarChartTypes.d.ts +62 -62
- package/dist/components/Charts/StackedBarChart/StackedBarChartUtils.d.ts +25 -25
- package/dist/components/Charts/StackedBarChart/index.d.ts +2 -2
- package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChart.d.ts +3 -3
- package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartData.d.ts +13 -13
- package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartTypes.d.ts +38 -38
- package/dist/components/Charts/WeekwiseBarChart/WeekwiseBarChartUtils.d.ts +14 -14
- package/dist/components/Charts/WeekwiseBarChart/index.d.ts +2 -2
- package/dist/components/Charts/WorkerTimeChart/WorkTimeChartComponents.d.ts +14 -14
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChart.d.ts +3 -3
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartData.d.ts +9 -9
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartTypes.d.ts +51 -51
- package/dist/components/Charts/WorkerTimeChart/WorkerTimeChartUtils.d.ts +20 -20
- package/dist/components/Charts/WorkerTimeChart/index.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +4 -4
- package/dist/components/Checkbox/CheckboxStyled.d.ts +12 -12
- package/dist/components/Checkbox/types.d.ts +26 -26
- package/dist/components/ConfirmationScreen/ConfirmationIcons.d.ts +3 -3
- package/dist/components/ConfirmationScreen/ConfirmationScreen.d.ts +3 -3
- package/dist/components/ConfirmationScreen/ConfirmationScreenStyled.d.ts +1 -1
- package/dist/components/ConfirmationScreen/types.d.ts +10 -10
- package/dist/components/CountryCodeInput/CountryCodeInput.styled.d.ts +5 -5
- package/dist/components/CountryCodeInput/countryCodes.d.ts +6 -6
- package/dist/components/CountryCodeInput/index.d.ts +3 -3
- package/dist/components/CountryCodeInput/types.d.ts +24 -24
- package/dist/components/Datepicker/Datepicker.d.ts +4 -4
- package/dist/components/Datepicker/DatepickerStyled.d.ts +6 -7
- package/dist/components/Datepicker/components/icons.d.ts +6 -6
- package/dist/components/Datepicker/index.d.ts +2 -2
- package/dist/components/Datepicker/types.d.ts +50 -56
- package/dist/components/Datepicker/utils/index.d.ts +35 -35
- package/dist/components/Dialog/Dialog.d.ts +3 -3
- package/dist/components/Dialog/DialogStyled.d.ts +9 -9
- package/dist/components/Dialog/DialogTypes.d.ts +17 -17
- package/dist/components/Dialog/DialogUtils.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +2 -2
- package/dist/components/DocumentCard/DocumentCard.d.ts +3 -3
- package/dist/components/DocumentCard/DocumentCard.styled.d.ts +1 -1
- package/dist/components/DocumentCard/types.d.ts +10 -10
- package/dist/components/Drawer/Drawer.d.ts +3 -3
- package/dist/components/Drawer/Drawer.styled.d.ts +13 -13
- package/dist/components/Drawer/Drawer.types.d.ts +18 -18
- package/dist/components/Drawer/Drawer.utils.d.ts +1 -1
- package/dist/components/Drawer/DrawerLayout.d.ts +3 -3
- package/dist/components/Drawer/index.d.ts +2 -2
- package/dist/components/Dropdown/Dropdown.d.ts +3 -3
- package/dist/components/Dropdown/DropdownStyled.d.ts +20 -20
- package/dist/components/Dropdown/DropdownTypes.d.ts +34 -34
- package/dist/components/Dropdown/DropdownUtils.d.ts +5 -5
- package/dist/components/Dropdown/index.d.ts +2 -2
- package/dist/components/DropdownCalendar/DropdownCalendar.d.ts +10 -10
- package/dist/components/DropdownCalendar/index.d.ts +2 -2
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +3 -3
- package/dist/components/DropdownSelect/DropdownSelect.styled.d.ts +13 -13
- package/dist/components/DropdownSelect/DropdownSelect.types.d.ts +10 -10
- package/dist/components/DropdownSelect/DropdownSelect.utils.d.ts +4 -4
- package/dist/components/DropdownSelect/index.d.ts +2 -2
- package/dist/components/FilterTag/FilterTag.d.ts +3 -3
- package/dist/components/FilterTag/FilterTag.styled.d.ts +1 -1
- package/dist/components/FilterTag/types.d.ts +11 -11
- package/dist/components/Grid/Col.d.ts +3 -3
- package/dist/components/Grid/Col.styled.d.ts +1 -1
- package/dist/components/Grid/Row.d.ts +3 -3
- package/dist/components/Grid/Row.styled.d.ts +10 -10
- package/dist/components/Grid/index.d.ts +3 -3
- package/dist/components/Grid/types.d.ts +22 -22
- package/dist/components/HorizontalStepper/HorizontalStepper.styled.d.ts +10 -10
- package/dist/components/HorizontalStepper/index.d.ts +13 -13
- package/dist/components/HoverCalendar/HoverCalendar.d.ts +3 -3
- package/dist/components/HoverCalendar/HoverCalendarStyled.d.ts +1 -1
- package/dist/components/HoverCalendar/types.d.ts +15 -15
- package/dist/components/HoverInput/HoverInput.d.ts +3 -3
- package/dist/components/HoverInput/HoverInputStyled.d.ts +1 -1
- package/dist/components/HoverInput/types.d.ts +5 -5
- package/dist/components/HoverSelect/HoverSelect.d.ts +3 -3
- package/dist/components/HoverSelect/HoverSelectStyled.d.ts +1 -1
- package/dist/components/HoverSelect/types.d.ts +19 -19
- package/dist/components/Icon/Icon.d.ts +15 -15
- package/dist/components/Icon/IconUtils.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/IconLabel/InfoAccordion/InfoAccordion.d.ts +3 -3
- package/dist/components/IconLabel/InfoAccordion/InfoAccordionStyled.d.ts +1 -1
- package/dist/components/IconLabel/InfoAccordion/types.d.ts +13 -13
- package/dist/components/IconLabel/iconlabel.styled.d.ts +1 -1
- package/dist/components/IconLabel/index.d.ts +3 -3
- package/dist/components/IconLabel/types.d.ts +10 -10
- package/dist/components/InfoAccordion/InfoAccordion.d.ts +3 -3
- package/dist/components/InfoAccordion/InfoAccordionStyled.d.ts +1 -1
- package/dist/components/InfoAccordion/types.d.ts +14 -14
- package/dist/components/Input/index.d.ts +27 -27
- package/dist/components/Input/inputStyled.d.ts +9 -9
- package/dist/components/Input/types.d.ts +53 -53
- package/dist/components/Input/utils.d.ts +4 -4
- package/dist/components/Label/LabelStyled.d.ts +4 -4
- package/dist/components/Label/index.d.ts +2 -2
- package/dist/components/Label/types.d.ts +6 -6
- package/dist/components/Loader/FullScreenLoader.d.ts +3 -3
- package/dist/components/Loader/FullScreenLoaderStyled.d.ts +2 -2
- package/dist/components/Loader/Loader.d.ts +6 -6
- package/dist/components/Loader/Loader.styled.d.ts +4 -4
- package/dist/components/Loader/SimpleLoader.d.ts +7 -7
- package/dist/components/Loader/SimpleLoader.styled.d.ts +2 -2
- package/dist/components/Loader/index.d.ts +4 -4
- package/dist/components/Loader/types.d.ts +4 -4
- package/dist/components/MultiSelect/MultiSelect.d.ts +3 -3
- package/dist/components/MultiSelect/MultiSelectStyled.d.ts +2 -2
- package/dist/components/MultiSelect/types.d.ts +22 -22
- package/dist/components/MultiSelect/utils.d.ts +24 -24
- package/dist/components/Navigation/CollapsibleNavItem/NavItemStyled.d.ts +10 -10
- package/dist/components/Navigation/CollapsibleNavItem/index.d.ts +4 -4
- package/dist/components/Navigation/NavItem/NavItemStyled.d.ts +12 -12
- package/dist/components/Navigation/NavItem/index.d.ts +6 -6
- package/dist/components/Navigation/NavigationStyled.d.ts +8 -8
- package/dist/components/Navigation/data.d.ts +3 -3
- package/dist/components/Navigation/index.d.ts +4 -4
- package/dist/components/Navigation/types.d.ts +36 -36
- package/dist/components/OTPInput/OTPInput.constants.d.ts +10 -10
- package/dist/components/OTPInput/OTPInput.d.ts +3 -3
- package/dist/components/OTPInput/OTPInput.styled.d.ts +18 -18
- package/dist/components/OTPInput/OTPInput.utils.d.ts +9 -9
- package/dist/components/OTPInput/index.d.ts +2 -2
- package/dist/components/Overlay/Overlay.d.ts +9 -9
- package/dist/components/Overlay/index.d.ts +2 -2
- package/dist/components/Pagination/Pagination.components.d.ts +3 -3
- package/dist/components/Pagination/Pagination.d.ts +3 -3
- package/dist/components/Pagination/Pagination.styled.d.ts +13 -13
- package/dist/components/Pagination/Pagination.types.d.ts +48 -48
- package/dist/components/Pagination/Pagination.utils.d.ts +6 -6
- package/dist/components/Pagination/index.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +3 -3
- package/dist/components/Radio/RadioStyled.d.ts +8 -8
- package/dist/components/Radio/RadioType.d.ts +19 -19
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/Select/Select.d.ts +4 -4
- package/dist/components/Select/Select.styled.d.ts +8 -8
- package/dist/components/Select/Select.types.d.ts +22 -22
- package/dist/components/Select/Select.utils.d.ts +5 -5
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/Selector/Selector.d.ts +3 -3
- package/dist/components/Selector/Selector.styled.d.ts +5 -5
- package/dist/components/Selector/index.d.ts +2 -2
- package/dist/components/Selector/types.d.ts +17 -17
- package/dist/components/Skeleton/Skeleton.styled.d.ts +7 -7
- package/dist/components/Skeleton/index.d.ts +7 -7
- package/dist/components/Slider/Slider.d.ts +15 -15
- package/dist/components/Slider/Slider.styled.d.ts +6 -6
- package/dist/components/Slider/index.d.ts +3 -3
- package/dist/components/Slider/types.d.ts +10 -10
- package/dist/components/Spinner/Spinner.d.ts +5 -5
- package/dist/components/Spinner/Spinner.styled.d.ts +1 -1
- package/dist/components/Spinner/index.d.ts +2 -2
- package/dist/components/StepperDrawerLayout/StepperDrawerLayout.d.ts +3 -3
- package/dist/components/StepperDrawerLayout/StepperDrawerLayout.types.d.ts +8 -8
- package/dist/components/StepperDrawerLayout/StepperDrawerLayout.utils.d.ts +1 -1
- package/dist/components/StepperDrawerLayout/StepperDrawerLayoutStyled.d.ts +5 -5
- package/dist/components/StepperDrawerLayout/index.d.ts +2 -2
- package/dist/components/Switch/Switch.d.ts +3 -3
- package/dist/components/Switch/Switch.styled.d.ts +2 -2
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/Switch/types.d.ts +23 -23
- package/dist/components/Tabs/Tabs.d.ts +3 -3
- package/dist/components/Tabs/TabsStyled.d.ts +14 -14
- package/dist/components/Tabs/TabsTypes.d.ts +22 -22
- package/dist/components/Tabs/TabsUtils.d.ts +2 -2
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +3 -3
- package/dist/components/Tag/Tag.styled.d.ts +2 -2
- package/dist/components/Tag/types.d.ts +17 -17
- package/dist/components/Text/TextStyled.d.ts +3 -3
- package/dist/components/Text/index.d.ts +3 -3
- package/dist/components/Text/types.d.ts +19 -19
- package/dist/components/Text/typography.d.ts +19 -19
- package/dist/components/Text/utils.d.ts +4 -4
- package/dist/components/Toast/Toast.d.ts +3 -3
- package/dist/components/Toast/Toast.styled.d.ts +7 -7
- package/dist/components/Toast/Toast.types.d.ts +49 -49
- package/dist/components/Toast/Toast.utils.d.ts +8 -8
- package/dist/components/Toast/ToastContext.d.ts +4 -4
- package/dist/components/Toast/ToastProvider.d.ts +3 -3
- package/dist/components/Toast/index.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.d.ts +3 -3
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/Tooltip/tooltip.styled.d.ts +2 -2
- package/dist/components/Tooltip/types.d.ts +34 -34
- package/dist/components/TrendPercentage/TrendPercentage.d.ts +15 -15
- package/dist/components/TrendPercentage/TrendPercentageStyled.d.ts +5 -5
- package/dist/components/TrendPercentage/index.d.ts +2 -2
- package/dist/components/UploadAvatar/UploadAvatar.d.ts +3 -3
- package/dist/components/UploadAvatar/UploadAvatarStyled.d.ts +1 -1
- package/dist/components/UploadAvatar/types.d.ts +9 -9
- package/dist/components/stepper/StepperStyled.d.ts +26 -26
- package/dist/components/stepper/StepperTypes.d.ts +28 -28
- package/dist/components/stepper/StepperUtils.d.ts +10 -10
- package/dist/components/stepper/index.d.ts +3 -3
- package/dist/globals.d.ts +7 -7
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/useDebouncedValue.d.ts +2 -2
- package/dist/hooks/useDynamicImport.d.ts +8 -8
- package/dist/hooks/useFullScreenFeature.d.ts +5 -5
- package/dist/hooks/useOutsideClick.d.ts +6 -6
- package/dist/hooks/useTimeBar.d.ts +29 -29
- package/dist/hooks/useToast.d.ts +10 -10
- package/dist/hooks/useToggle.d.ts +8 -8
- package/dist/index.d.ts +68 -68
- package/dist/index.es.js +130 -155
- package/dist/index.js +130 -155
- package/dist/package.json +89 -89
- package/dist/public/assets/icons/doc-alert.svg +5 -5
- package/dist/public/assets/icons/doc-expired-closed.svg +6 -6
- package/dist/public/assets/icons/no-entry-man.svg +4 -4
- package/dist/public/assets/icons/unsafe.svg +23 -23
- package/dist/themes/colors.d.ts +3 -3
- package/dist/themes/colors.ts +222 -222
- package/dist/themes/index.d.ts +3 -3
- package/dist/themes/types.d.ts +229 -229
- package/dist/types/IconTypes.d.ts +1 -1
- package/dist/utils/formatDate.d.ts +2 -2
- package/dist/utils/index.d.ts +12 -13
- package/dist/utils/index.ts +86 -100
- package/dist/utils/truncate.d.ts +2 -2
- package/package.json +89 -89
- package/themes/colors.ts +222 -222
- package/themes/index.ts +8 -8
- package/themes/types.ts +250 -250
- package/utils/formatDate.ts +13 -13
- package/utils/generateTypesForIcons.js +37 -37
- package/utils/index.ts +86 -100
- package/utils/truncate.ts +7 -7
- package/dist/public/assets/icons/Compare.svg +0 -1
- package/dist/public/assets/icons/Notifications.svg +0 -1
- package/dist/public/assets/icons/Search.svg +0 -1
|
@@ -1,77 +1,76 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import dayjs from 'dayjs';
|
|
3
|
-
import { CalendarProps, DateObject } from 'react-multi-date-picker';
|
|
4
|
-
export type RangeDomainUnit = 'd' | 'w' | 'm' | 'y';
|
|
5
|
-
export type RangeDomain = `${number}${RangeDomainUnit}`;
|
|
6
|
-
export declare namespace ICalendar {
|
|
7
|
-
type Props = CalendarProps & {
|
|
8
|
-
range?: boolean;
|
|
9
|
-
numberOfMonths?: number;
|
|
10
|
-
calenderRef?: any;
|
|
11
|
-
labels?: string;
|
|
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;
|
|
30
|
-
sidebarOptions?: Omit<SidebarOptionProps, 'onClick'>[];
|
|
31
|
-
projectDuration?: ProjectDuration;
|
|
32
|
-
disableFutureDatesOnCustomRange?: boolean;
|
|
33
|
-
selectedSidebarOption?: string;
|
|
34
|
-
rangeDomain?: RangeDomain;
|
|
35
|
-
onSidebarOptionSelect?: (value: string) => void;
|
|
36
|
-
onChange?: (date: DateObject | DateObject[], selectedOption?: string) => void;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
type
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
type
|
|
53
|
-
type
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
import { CalendarProps, DateObject } from 'react-multi-date-picker';
|
|
4
|
+
export type RangeDomainUnit = 'd' | 'w' | 'm' | 'y';
|
|
5
|
+
export type RangeDomain = `${number}${RangeDomainUnit}`;
|
|
6
|
+
export declare namespace ICalendar {
|
|
7
|
+
type Props = CalendarProps & {
|
|
8
|
+
range?: boolean;
|
|
9
|
+
numberOfMonths?: number;
|
|
10
|
+
calenderRef?: any;
|
|
11
|
+
labels?: string;
|
|
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;
|
|
30
|
+
sidebarOptions?: Omit<SidebarOptionProps, 'onClick'>[];
|
|
31
|
+
projectDuration?: ProjectDuration;
|
|
32
|
+
disableFutureDatesOnCustomRange?: boolean;
|
|
33
|
+
selectedSidebarOption?: string;
|
|
34
|
+
rangeDomain?: RangeDomain;
|
|
35
|
+
onSidebarOptionSelect?: (value: string) => void;
|
|
36
|
+
onChange?: (date: DateObject | DateObject[], selectedOption?: string) => void;
|
|
37
|
+
};
|
|
38
|
+
type ClockType = 'am' | 'pm';
|
|
39
|
+
type CalendarTimeBarProps = {
|
|
40
|
+
times: string[];
|
|
41
|
+
onTimeChange: (index: number, value: string) => void;
|
|
42
|
+
};
|
|
43
|
+
enum DatpickerNavigationDirectionEnum {
|
|
44
|
+
right = "right",
|
|
45
|
+
left = "left"
|
|
46
|
+
}
|
|
47
|
+
type ProjectDuration = {
|
|
48
|
+
startDate: string;
|
|
49
|
+
endDate: string;
|
|
50
|
+
};
|
|
51
|
+
type InputChangeEvent = React.ChangeEvent<HTMLInputElement>;
|
|
52
|
+
type DatpickerNavigationDirection = keyof typeof DatpickerNavigationDirectionEnum;
|
|
53
|
+
type SidebarOptionProps = {
|
|
54
|
+
title: string;
|
|
55
|
+
selected?: boolean;
|
|
56
|
+
value?: (() => DateObject[]) | (() => dayjs.Dayjs[]);
|
|
57
|
+
onClick?: () => void;
|
|
58
|
+
};
|
|
59
|
+
type Time = {
|
|
60
|
+
key: string;
|
|
61
|
+
label: string;
|
|
62
|
+
timeHour: string;
|
|
63
|
+
timeMinute: string;
|
|
64
|
+
clockType: string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export type CalendarTimeBarProps = {
|
|
68
|
+
label?: string;
|
|
69
|
+
timeHour?: string;
|
|
70
|
+
timeMinute?: string;
|
|
71
|
+
clockType?: ICalendar.ClockType | string;
|
|
72
|
+
disabled?: boolean;
|
|
73
|
+
onHourChange: (key: string, value: string) => void;
|
|
74
|
+
onMinuteChange: (key: string, value: string) => void;
|
|
75
|
+
onClockTypeChange: (key: string, value: string) => void;
|
|
76
|
+
};
|
|
@@ -1,44 +1,41 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
import { DateObject, Value } from 'react-multi-date-picker';
|
|
3
|
-
import { ICalendar, RangeDomain } from './CalendarTypes';
|
|
4
|
-
export declare const isRangeWithNumberOfMonths: (range: boolean, numberOfMonths: number) => boolean;
|
|
5
|
-
declare const regexInputValidate: (event: ICalendar.InputChangeEvent, onChange: (event: ICalendar.InputChangeEvent) => void) => void;
|
|
6
|
-
declare const weeks: string[];
|
|
7
|
-
declare const fullMonthsText: any;
|
|
8
|
-
export declare const selectorContent: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
clockType: ICalendar.ClockType;
|
|
11
|
-
}[];
|
|
12
|
-
export declare const getDateObjectForCalendarConstants: (date: string | Date, amount: number, unit: dayjs.ManipulateType, end: 'startOf' | 'endOf') => DateObject;
|
|
13
|
-
export declare const CALENDAR_CONSTANTS: {
|
|
14
|
-
TODAY: DateObject[];
|
|
15
|
-
CURRENT_WEEK: DateObject[];
|
|
16
|
-
LAST_7_DAYS: DateObject[];
|
|
17
|
-
LAST_WEEK: DateObject[];
|
|
18
|
-
LAST_2_WEEKS: DateObject[];
|
|
19
|
-
LAST_3_WEEKS: DateObject[];
|
|
20
|
-
LAST_4_WEEKS: DateObject[];
|
|
21
|
-
LAST_30_DAYS: DateObject[];
|
|
22
|
-
THIS_MONTH: DateObject[];
|
|
23
|
-
PAST_MONTH: DateObject[];
|
|
24
|
-
CUSTOM_RANGE: DateObject[];
|
|
25
|
-
NOW: DateObject[];
|
|
26
|
-
LAST_HOUR: DateObject[];
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}[];
|
|
43
|
-
declare const addPadStart: (value: string) => string;
|
|
44
|
-
export { fullMonthsText, regexInputValidate, weeks, getDateOffset, isNotInCurrentMonth, timeSet, addPadStart, };
|
|
1
|
+
import dayjs from 'dayjs';
|
|
2
|
+
import { DateObject, Value } from 'react-multi-date-picker';
|
|
3
|
+
import { ICalendar, RangeDomain } from './CalendarTypes';
|
|
4
|
+
export declare const isRangeWithNumberOfMonths: (range: boolean, numberOfMonths: number) => boolean;
|
|
5
|
+
declare const regexInputValidate: (event: ICalendar.InputChangeEvent, onChange: (event: ICalendar.InputChangeEvent) => void) => void;
|
|
6
|
+
declare const weeks: string[];
|
|
7
|
+
declare const fullMonthsText: any;
|
|
8
|
+
export declare const selectorContent: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
clockType: ICalendar.ClockType;
|
|
11
|
+
}[];
|
|
12
|
+
export declare const getDateObjectForCalendarConstants: (date: string | Date, amount: number, unit: dayjs.ManipulateType, end: 'startOf' | 'endOf') => DateObject;
|
|
13
|
+
export declare const CALENDAR_CONSTANTS: {
|
|
14
|
+
TODAY: DateObject[];
|
|
15
|
+
CURRENT_WEEK: DateObject[];
|
|
16
|
+
LAST_7_DAYS: DateObject[];
|
|
17
|
+
LAST_WEEK: DateObject[];
|
|
18
|
+
LAST_2_WEEKS: DateObject[];
|
|
19
|
+
LAST_3_WEEKS: DateObject[];
|
|
20
|
+
LAST_4_WEEKS: DateObject[];
|
|
21
|
+
LAST_30_DAYS: DateObject[];
|
|
22
|
+
THIS_MONTH: DateObject[];
|
|
23
|
+
PAST_MONTH: DateObject[];
|
|
24
|
+
CUSTOM_RANGE: DateObject[];
|
|
25
|
+
NOW: DateObject[];
|
|
26
|
+
LAST_HOUR: DateObject[];
|
|
27
|
+
YESTERDAY: DateObject[];
|
|
28
|
+
CUSTOM_RANGE_LOCATION_PLAN: DateObject[];
|
|
29
|
+
};
|
|
30
|
+
export declare const getSidebarOptions: (projectDuration?: ICalendar.ProjectDuration) => {
|
|
31
|
+
title: string;
|
|
32
|
+
value: () => DateObject[];
|
|
33
|
+
}[];
|
|
34
|
+
declare const getDateOffset: (valueArr: Value, domain: RangeDomain) => DateObject[];
|
|
35
|
+
declare const isNotInCurrentMonth: (date: string | DateObject) => boolean;
|
|
36
|
+
declare const timeSet: {
|
|
37
|
+
key: string;
|
|
38
|
+
label: string;
|
|
39
|
+
}[];
|
|
40
|
+
declare const addPadStart: (value: string) => string;
|
|
41
|
+
export { fullMonthsText, regexInputValidate, weeks, getDateOffset, isNotInCurrentMonth, timeSet, addPadStart, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const icons: {
|
|
2
|
-
chevronLeft: import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
chevronRight: import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
calendar: import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
};
|
|
6
|
-
export { icons };
|
|
1
|
+
declare const icons: {
|
|
2
|
+
chevronLeft: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
chevronRight: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
calendar: import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export { icons };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Calendar } from './Calendar';
|
|
2
|
-
export { Calendar };
|
|
1
|
+
import { Calendar } from './Calendar';
|
|
2
|
+
export { Calendar };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IAreaChart } from './AreaChartTypes';
|
|
2
|
-
declare const AreaChart: (props: IAreaChart.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default AreaChart;
|
|
1
|
+
import { IAreaChart } from './AreaChartTypes';
|
|
2
|
+
declare const AreaChart: (props: IAreaChart.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default AreaChart;
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { YAxisProps } from 'recharts';
|
|
2
|
-
import { Props as AreaProps } from 'recharts/types/cartesian/Area';
|
|
3
|
-
export declare const data: {
|
|
4
|
-
actualWorkforce: number;
|
|
5
|
-
budgetedWorkforce: number;
|
|
6
|
-
date: string;
|
|
7
|
-
day: string;
|
|
8
|
-
workerConsistency: number;
|
|
9
|
-
}[];
|
|
10
|
-
export declare const areaChartArea: ({
|
|
11
|
-
dataKey: string;
|
|
12
|
-
color: string;
|
|
13
|
-
stroke: string;
|
|
14
|
-
fillOpacity: number;
|
|
15
|
-
name: string;
|
|
16
|
-
legendType?: undefined;
|
|
17
|
-
} | {
|
|
18
|
-
dataKey: string;
|
|
19
|
-
color: string;
|
|
20
|
-
stroke: string;
|
|
21
|
-
fillOpacity: number;
|
|
22
|
-
name: string;
|
|
23
|
-
legendType: string;
|
|
24
|
-
})[];
|
|
25
|
-
export declare const areasYAxisRight: {
|
|
26
|
-
dataKey: string;
|
|
27
|
-
color: string;
|
|
28
|
-
fill: string;
|
|
29
|
-
fillOpacity: number;
|
|
30
|
-
stroke: string;
|
|
31
|
-
yAxisId: string;
|
|
32
|
-
name: string;
|
|
33
|
-
}[];
|
|
34
|
-
export declare const xAxisTickDefaultConfig: {
|
|
35
|
-
fill: string;
|
|
36
|
-
fontFamily: string;
|
|
37
|
-
fontSize: number;
|
|
38
|
-
textAnchor: string;
|
|
39
|
-
x: number;
|
|
40
|
-
y: number;
|
|
41
|
-
};
|
|
42
|
-
export declare const yAxisStaticProps: YAxisProps;
|
|
43
|
-
export declare const areaStaticProps: Omit<Partial<AreaProps>, 'ref'>;
|
|
1
|
+
import { YAxisProps } from 'recharts';
|
|
2
|
+
import { Props as AreaProps } from 'recharts/types/cartesian/Area';
|
|
3
|
+
export declare const data: {
|
|
4
|
+
actualWorkforce: number;
|
|
5
|
+
budgetedWorkforce: number;
|
|
6
|
+
date: string;
|
|
7
|
+
day: string;
|
|
8
|
+
workerConsistency: number;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const areaChartArea: ({
|
|
11
|
+
dataKey: string;
|
|
12
|
+
color: string;
|
|
13
|
+
stroke: string;
|
|
14
|
+
fillOpacity: number;
|
|
15
|
+
name: string;
|
|
16
|
+
legendType?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
dataKey: string;
|
|
19
|
+
color: string;
|
|
20
|
+
stroke: string;
|
|
21
|
+
fillOpacity: number;
|
|
22
|
+
name: string;
|
|
23
|
+
legendType: string;
|
|
24
|
+
})[];
|
|
25
|
+
export declare const areasYAxisRight: {
|
|
26
|
+
dataKey: string;
|
|
27
|
+
color: string;
|
|
28
|
+
fill: string;
|
|
29
|
+
fillOpacity: number;
|
|
30
|
+
stroke: string;
|
|
31
|
+
yAxisId: string;
|
|
32
|
+
name: string;
|
|
33
|
+
}[];
|
|
34
|
+
export declare const xAxisTickDefaultConfig: {
|
|
35
|
+
fill: string;
|
|
36
|
+
fontFamily: string;
|
|
37
|
+
fontSize: number;
|
|
38
|
+
textAnchor: string;
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
};
|
|
42
|
+
export declare const yAxisStaticProps: YAxisProps;
|
|
43
|
+
export declare const areaStaticProps: Omit<Partial<AreaProps>, 'ref'>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export declare const LegendsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const Legend: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const LegendColorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const LegendColor: import("styled-components").StyledComponent<"div", any, {
|
|
5
|
-
color: string;
|
|
6
|
-
}, never>;
|
|
7
|
-
export declare const LegendLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const CustomTickStyled: import("styled-components").StyledComponent<"g", any, {}, never>;
|
|
9
|
-
export declare const TickDay: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
10
|
-
export declare const TickDate: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
11
|
-
export declare const TooltipStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
export declare const TooltipTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const TooltipItemContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
-
export declare const TooltipItemLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
-
export declare const TooltipItemColor: import("styled-components").StyledComponent<"div", any, {
|
|
16
|
-
color: string;
|
|
17
|
-
}, never>;
|
|
18
|
-
export declare const TooltipItemLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
19
|
-
export declare const TooltipItemRight: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
20
|
-
export declare const FullScreenIconContainer: import("styled-components").StyledComponent<"div", any, {
|
|
21
|
-
fullScreen: boolean;
|
|
22
|
-
}, never>;
|
|
1
|
+
export declare const LegendsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const Legend: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const LegendColorContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const LegendColor: import("styled-components").StyledComponent<"div", any, {
|
|
5
|
+
color: string;
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const LegendLabel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const CustomTickStyled: import("styled-components").StyledComponent<"g", any, {}, never>;
|
|
9
|
+
export declare const TickDay: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
10
|
+
export declare const TickDate: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
11
|
+
export declare const TooltipStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const TooltipTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const TooltipItemContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const TooltipItemLeft: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export declare const TooltipItemColor: import("styled-components").StyledComponent<"div", any, {
|
|
16
|
+
color: string;
|
|
17
|
+
}, never>;
|
|
18
|
+
export declare const TooltipItemLabel: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
19
|
+
export declare const TooltipItemRight: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
20
|
+
export declare const FullScreenIconContainer: import("styled-components").StyledComponent<"div", any, {
|
|
21
|
+
fullScreen: boolean;
|
|
22
|
+
}, never>;
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { XAxisProps, YAxisProps } from 'recharts';
|
|
3
|
-
import { Props as AreaProps } from 'recharts/types/cartesian/Area';
|
|
4
|
-
import { Props as CartesianGridProps } from 'recharts/types/cartesian/CartesianGrid';
|
|
5
|
-
import { Payload } from 'recharts/types/component/DefaultLegendContent';
|
|
6
|
-
import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
|
|
7
|
-
import { Props as LegendProps } from 'recharts/types/component/Legend';
|
|
8
|
-
import { ContentType, TooltipProps } from 'recharts/types/component/Tooltip';
|
|
9
|
-
export declare namespace IAreaChart {
|
|
10
|
-
type Props = {
|
|
11
|
-
width?: string | number;
|
|
12
|
-
hideYAxis?: boolean;
|
|
13
|
-
hideXAxis?: boolean;
|
|
14
|
-
hideCartesianGrid?: boolean;
|
|
15
|
-
height?: string | number;
|
|
16
|
-
margin?: {
|
|
17
|
-
top?: number;
|
|
18
|
-
right?: number;
|
|
19
|
-
bottom?: number;
|
|
20
|
-
left?: number;
|
|
21
|
-
};
|
|
22
|
-
data?: any[];
|
|
23
|
-
areas?: Area[];
|
|
24
|
-
areasYAxisRight?: Area[];
|
|
25
|
-
xAxisDataKey?: string;
|
|
26
|
-
showTooltip?: boolean;
|
|
27
|
-
showAverageLine?: boolean;
|
|
28
|
-
averageLineValue?: number;
|
|
29
|
-
averageLineColor?: string;
|
|
30
|
-
xAxisLabel?: string;
|
|
31
|
-
fillColor?: string;
|
|
32
|
-
gradientColor?: string;
|
|
33
|
-
isGradient?: boolean;
|
|
34
|
-
isFilled?: boolean;
|
|
35
|
-
gradientStart?: number;
|
|
36
|
-
gradientStop?: number;
|
|
37
|
-
yAxisLeftLabel?: string;
|
|
38
|
-
yAxisRightLabel?: string;
|
|
39
|
-
showRightYAxis?: boolean;
|
|
40
|
-
showLegends?: boolean;
|
|
41
|
-
customTooltip?: ContentType<ValueType, NameType>;
|
|
42
|
-
gradient?: string;
|
|
43
|
-
tooltipProps?: TooltipProps<ValueType, NameType>;
|
|
44
|
-
cartesianGridProps?: Omit<CartesianGridProps, 'ref'>;
|
|
45
|
-
legendProps?: Omit<LegendProps, 'ref'>;
|
|
46
|
-
xAxisProps?: XAxisProps;
|
|
47
|
-
yAxisProps?: YAxisProps;
|
|
48
|
-
yAxisRightProps?: YAxisProps;
|
|
49
|
-
areaProps?: AreaProps;
|
|
50
|
-
areaYAxisRightProps?: AreaProps;
|
|
51
|
-
customTooltipLabelFormatter?: (label: any) => string;
|
|
52
|
-
fullScreenFeature?: boolean;
|
|
53
|
-
dateFormat?: string;
|
|
54
|
-
};
|
|
55
|
-
type Area = {
|
|
56
|
-
dataKey: string;
|
|
57
|
-
name: string;
|
|
58
|
-
stroke?: any;
|
|
59
|
-
fill?: any;
|
|
60
|
-
fillOpacity?: number;
|
|
61
|
-
color?: string;
|
|
62
|
-
gradientId?: string;
|
|
63
|
-
[key: string]: any;
|
|
64
|
-
};
|
|
65
|
-
type CustomLegend = {
|
|
66
|
-
payload?: (Payload & {
|
|
67
|
-
shape?: React.ReactNode;
|
|
68
|
-
payload: Payload['payload'] & {
|
|
69
|
-
fill: string;
|
|
70
|
-
};
|
|
71
|
-
})[];
|
|
72
|
-
};
|
|
73
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { XAxisProps, YAxisProps } from 'recharts';
|
|
3
|
+
import { Props as AreaProps } from 'recharts/types/cartesian/Area';
|
|
4
|
+
import { Props as CartesianGridProps } from 'recharts/types/cartesian/CartesianGrid';
|
|
5
|
+
import { Payload } from 'recharts/types/component/DefaultLegendContent';
|
|
6
|
+
import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
|
|
7
|
+
import { Props as LegendProps } from 'recharts/types/component/Legend';
|
|
8
|
+
import { ContentType, TooltipProps } from 'recharts/types/component/Tooltip';
|
|
9
|
+
export declare namespace IAreaChart {
|
|
10
|
+
type Props = {
|
|
11
|
+
width?: string | number;
|
|
12
|
+
hideYAxis?: boolean;
|
|
13
|
+
hideXAxis?: boolean;
|
|
14
|
+
hideCartesianGrid?: boolean;
|
|
15
|
+
height?: string | number;
|
|
16
|
+
margin?: {
|
|
17
|
+
top?: number;
|
|
18
|
+
right?: number;
|
|
19
|
+
bottom?: number;
|
|
20
|
+
left?: number;
|
|
21
|
+
};
|
|
22
|
+
data?: any[];
|
|
23
|
+
areas?: Area[];
|
|
24
|
+
areasYAxisRight?: Area[];
|
|
25
|
+
xAxisDataKey?: string;
|
|
26
|
+
showTooltip?: boolean;
|
|
27
|
+
showAverageLine?: boolean;
|
|
28
|
+
averageLineValue?: number;
|
|
29
|
+
averageLineColor?: string;
|
|
30
|
+
xAxisLabel?: string;
|
|
31
|
+
fillColor?: string;
|
|
32
|
+
gradientColor?: string;
|
|
33
|
+
isGradient?: boolean;
|
|
34
|
+
isFilled?: boolean;
|
|
35
|
+
gradientStart?: number;
|
|
36
|
+
gradientStop?: number;
|
|
37
|
+
yAxisLeftLabel?: string;
|
|
38
|
+
yAxisRightLabel?: string;
|
|
39
|
+
showRightYAxis?: boolean;
|
|
40
|
+
showLegends?: boolean;
|
|
41
|
+
customTooltip?: ContentType<ValueType, NameType>;
|
|
42
|
+
gradient?: string;
|
|
43
|
+
tooltipProps?: TooltipProps<ValueType, NameType>;
|
|
44
|
+
cartesianGridProps?: Omit<CartesianGridProps, 'ref'>;
|
|
45
|
+
legendProps?: Omit<LegendProps, 'ref'>;
|
|
46
|
+
xAxisProps?: XAxisProps;
|
|
47
|
+
yAxisProps?: YAxisProps;
|
|
48
|
+
yAxisRightProps?: YAxisProps;
|
|
49
|
+
areaProps?: AreaProps;
|
|
50
|
+
areaYAxisRightProps?: AreaProps;
|
|
51
|
+
customTooltipLabelFormatter?: (label: any) => string;
|
|
52
|
+
fullScreenFeature?: boolean;
|
|
53
|
+
dateFormat?: string;
|
|
54
|
+
};
|
|
55
|
+
type Area = {
|
|
56
|
+
dataKey: string;
|
|
57
|
+
name: string;
|
|
58
|
+
stroke?: any;
|
|
59
|
+
fill?: any;
|
|
60
|
+
fillOpacity?: number;
|
|
61
|
+
color?: string;
|
|
62
|
+
gradientId?: string;
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
};
|
|
65
|
+
type CustomLegend = {
|
|
66
|
+
payload?: (Payload & {
|
|
67
|
+
shape?: React.ReactNode;
|
|
68
|
+
payload: Payload['payload'] & {
|
|
69
|
+
fill: string;
|
|
70
|
+
};
|
|
71
|
+
})[];
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { TooltipProps } from 'recharts';
|
|
3
|
-
import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
|
|
4
|
-
import { IAreaChart } from './AreaChartTypes';
|
|
5
|
-
export declare const CustomLegend: (props: IAreaChart.CustomLegend) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const Tick: (props: {
|
|
7
|
-
value: any;
|
|
8
|
-
dy: any;
|
|
9
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare const TickX: (props: {
|
|
11
|
-
x?: number;
|
|
12
|
-
y?: number;
|
|
13
|
-
payload?: any;
|
|
14
|
-
dateFormat: string;
|
|
15
|
-
rotate?: number;
|
|
16
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare const tooltipLabelFormatter: (label: string, dateFormat: string) => string;
|
|
18
|
-
export declare const TooltipItemRow: ({ color, name, value, shape, }: {
|
|
19
|
-
color?: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
value?: string;
|
|
22
|
-
shape?: ReactNode;
|
|
23
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
interface CustomTooltipProps extends TooltipProps<ValueType, NameType> {
|
|
25
|
-
dateFormat?: string;
|
|
26
|
-
}
|
|
27
|
-
export declare const CustomTooltip: (props: CustomTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export {};
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TooltipProps } from 'recharts';
|
|
3
|
+
import { NameType, ValueType } from 'recharts/types/component/DefaultTooltipContent';
|
|
4
|
+
import { IAreaChart } from './AreaChartTypes';
|
|
5
|
+
export declare const CustomLegend: (props: IAreaChart.CustomLegend) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const Tick: (props: {
|
|
7
|
+
value: any;
|
|
8
|
+
dy: any;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const TickX: (props: {
|
|
11
|
+
x?: number;
|
|
12
|
+
y?: number;
|
|
13
|
+
payload?: any;
|
|
14
|
+
dateFormat: string;
|
|
15
|
+
rotate?: number;
|
|
16
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const tooltipLabelFormatter: (label: string, dateFormat: string) => string;
|
|
18
|
+
export declare const TooltipItemRow: ({ color, name, value, shape, }: {
|
|
19
|
+
color?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
value?: string;
|
|
22
|
+
shape?: ReactNode;
|
|
23
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
interface CustomTooltipProps extends TooltipProps<ValueType, NameType> {
|
|
25
|
+
dateFormat?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const CustomTooltip: (props: CustomTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import AreaChart from './AreaChart';
|
|
2
|
-
export { AreaChart };
|
|
1
|
+
import AreaChart from './AreaChart';
|
|
2
|
+
export { AreaChart };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IGaugeChart } from './GaugeChartTypes';
|
|
2
|
-
declare const GaugeChart: (props: IGaugeChart.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default GaugeChart;
|
|
1
|
+
import { IGaugeChart } from './GaugeChartTypes';
|
|
2
|
+
declare const GaugeChart: (props: IGaugeChart.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default GaugeChart;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const Gauge: import("styled-components").StyledComponent<"svg", any, {}, never>;
|
|
2
|
-
declare const Label: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
3
|
-
declare const LowLabel: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
4
|
-
declare const HighLabel: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
5
|
-
export { Gauge, Label, LowLabel, HighLabel };
|
|
1
|
+
declare const Gauge: import("styled-components").StyledComponent<"svg", any, {}, never>;
|
|
2
|
+
declare const Label: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
3
|
+
declare const LowLabel: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
4
|
+
declare const HighLabel: import("styled-components").StyledComponent<"text", any, {}, never>;
|
|
5
|
+
export { Gauge, Label, LowLabel, HighLabel };
|