kwant-ui 3.40.4-dev.6 → 3.40.5-dev.6
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 +41 -41
- package/dist/components/Calendar/CalendarTypes.d.ts +76 -76
- package/dist/components/Calendar/CalendarUtils.d.ts +41 -41
- 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 -6
- 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 -50
- 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 +26 -26
- package/dist/components/Input/inputStyled.d.ts +9 -9
- package/dist/components/Input/types.d.ts +52 -52
- 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 +2 -2
- package/dist/index.js +2 -2
- package/dist/package.json +89 -89
- package/dist/public/assets/icons/Compare.svg +1 -0
- package/dist/public/assets/icons/Notifications.svg +1 -0
- package/dist/public/assets/icons/Search.svg +1 -0
- 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/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 -12
- package/dist/utils/index.ts +86 -86
- 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 -86
- package/utils/truncate.ts +7 -7
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export type DataProps = {
|
|
2
|
-
titleText: string;
|
|
3
|
-
description: string;
|
|
4
|
-
};
|
|
5
|
-
export type SliderProps = {
|
|
6
|
-
autoPlay: boolean;
|
|
7
|
-
content?: DataProps[];
|
|
8
|
-
interval: number;
|
|
9
|
-
contentWidth?: number;
|
|
10
|
-
dotsAlignment?: string;
|
|
11
|
-
dotsActiveColor?: string;
|
|
12
|
-
dotsBackgroundColor?: string;
|
|
13
|
-
};
|
|
14
|
-
declare const Slider: (props: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export { Slider };
|
|
1
|
+
export type DataProps = {
|
|
2
|
+
titleText: string;
|
|
3
|
+
description: string;
|
|
4
|
+
};
|
|
5
|
+
export type SliderProps = {
|
|
6
|
+
autoPlay: boolean;
|
|
7
|
+
content?: DataProps[];
|
|
8
|
+
interval: number;
|
|
9
|
+
contentWidth?: number;
|
|
10
|
+
dotsAlignment?: string;
|
|
11
|
+
dotsActiveColor?: string;
|
|
12
|
+
dotsBackgroundColor?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const Slider: (props: SliderProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Slider };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SliderComponent } from "./types";
|
|
2
|
-
export declare const SliderText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const SliderDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const SliderContainer: import("styled-components").StyledComponent<"div", any, SliderComponent.ContentWidth, never>;
|
|
5
|
-
export declare const SliderDots: import("styled-components").StyledComponent<"div", any, SliderComponent.SliderDotWrapper, never>;
|
|
6
|
-
export declare const TextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
1
|
+
import { SliderComponent } from "./types";
|
|
2
|
+
export declare const SliderText: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const SliderDiv: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const SliderContainer: import("styled-components").StyledComponent<"div", any, SliderComponent.ContentWidth, never>;
|
|
5
|
+
export declare const SliderDots: import("styled-components").StyledComponent<"div", any, SliderComponent.SliderDotWrapper, never>;
|
|
6
|
+
export declare const TextWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Slider, SliderProps, DataProps } from './Slider';
|
|
2
|
-
export { Slider };
|
|
3
|
-
export type { SliderProps, DataProps };
|
|
1
|
+
import { Slider, SliderProps, DataProps } from './Slider';
|
|
2
|
+
export { Slider };
|
|
3
|
+
export type { SliderProps, DataProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare namespace SliderComponent {
|
|
2
|
-
type ContentWidth = {
|
|
3
|
-
contentWidth: number;
|
|
4
|
-
};
|
|
5
|
-
type SliderDotWrapper = {
|
|
6
|
-
dotsAlignment: string;
|
|
7
|
-
dotsActiveColor?: string;
|
|
8
|
-
dotsBackgroundColor: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
1
|
+
export declare namespace SliderComponent {
|
|
2
|
+
type ContentWidth = {
|
|
3
|
+
contentWidth: number;
|
|
4
|
+
};
|
|
5
|
+
type SliderDotWrapper = {
|
|
6
|
+
dotsAlignment: string;
|
|
7
|
+
dotsActiveColor?: string;
|
|
8
|
+
dotsBackgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
type SpinnerPropTypes = {
|
|
2
|
-
size?: 'large' | 'medium' | 'small' | 'xsmall';
|
|
3
|
-
};
|
|
4
|
-
declare function Spinner({ size }: SpinnerPropTypes): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export { Spinner };
|
|
1
|
+
type SpinnerPropTypes = {
|
|
2
|
+
size?: 'large' | 'medium' | 'small' | 'xsmall';
|
|
3
|
+
};
|
|
4
|
+
declare function Spinner({ size }: SpinnerPropTypes): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { Spinner };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SpinnerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
1
|
+
export declare const SpinnerWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Spinner } from './Spinner';
|
|
2
|
-
export { Spinner };
|
|
1
|
+
import { Spinner } from './Spinner';
|
|
2
|
+
export { Spinner };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StepperDrawerDeclarations } from './StepperDrawerLayout.types';
|
|
2
|
-
declare const StepperDrawerLayout: (props: StepperDrawerDeclarations.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { StepperDrawerLayout };
|
|
1
|
+
import { StepperDrawerDeclarations } from './StepperDrawerLayout.types';
|
|
2
|
+
declare const StepperDrawerLayout: (props: StepperDrawerDeclarations.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { StepperDrawerLayout };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DrawerDeclarations } from '../Drawer/Drawer.types';
|
|
3
|
-
export declare namespace StepperDrawerDeclarations {
|
|
4
|
-
interface Props extends DrawerDeclarations.Props {
|
|
5
|
-
drawerSidebar?: React.ReactNode;
|
|
6
|
-
sidebarBorder?: boolean;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { DrawerDeclarations } from '../Drawer/Drawer.types';
|
|
3
|
+
export declare namespace StepperDrawerDeclarations {
|
|
4
|
+
interface Props extends DrawerDeclarations.Props {
|
|
5
|
+
drawerSidebar?: React.ReactNode;
|
|
6
|
+
sidebarBorder?: boolean;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const formatGridTemplate: (str: string) => string;
|
|
1
|
+
export declare const formatGridTemplate: (str: string) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DrawerDeclarations } from '../Drawer/Drawer.types';
|
|
2
|
-
export declare const StepperDrawerContentRoot: import("styled-components").StyledComponent<"div", any, DrawerDeclarations.DrawerContentStyled, never>;
|
|
3
|
-
export declare const StepperDrawerSidebar: import("styled-components").StyledComponent<"aside", any, {
|
|
4
|
-
sidebarBorder?: boolean;
|
|
5
|
-
}, never>;
|
|
1
|
+
import { DrawerDeclarations } from '../Drawer/Drawer.types';
|
|
2
|
+
export declare const StepperDrawerContentRoot: import("styled-components").StyledComponent<"div", any, DrawerDeclarations.DrawerContentStyled, never>;
|
|
3
|
+
export declare const StepperDrawerSidebar: import("styled-components").StyledComponent<"aside", any, {
|
|
4
|
+
sidebarBorder?: boolean;
|
|
5
|
+
}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StepperDrawerLayout } from './StepperDrawerLayout';
|
|
2
|
-
export { StepperDrawerLayout };
|
|
1
|
+
import { StepperDrawerLayout } from './StepperDrawerLayout';
|
|
2
|
+
export { StepperDrawerLayout };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SWType } from './types';
|
|
2
|
-
declare function Switch({ disabled, onClick, onChange, name, id, checked, color, size, mode }: SWType): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { Switch };
|
|
1
|
+
import { SWType } from './types';
|
|
2
|
+
declare function Switch({ disabled, onClick, onChange, name, id, checked, color, size, mode }: SWType): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { Switch };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SwitchContainerTypes } from './types';
|
|
2
|
-
export declare const SwitchWrapper: import("styled-components").StyledComponent<"div", any, SwitchContainerTypes, never>;
|
|
1
|
+
import { SwitchContainerTypes } from './types';
|
|
2
|
+
export declare const SwitchWrapper: import("styled-components").StyledComponent<"div", any, SwitchContainerTypes, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Switch';
|
|
1
|
+
export * from './Switch';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export type SWType = {
|
|
2
|
-
disabled?: boolean;
|
|
3
|
-
onClick?: any;
|
|
4
|
-
onChange?: any;
|
|
5
|
-
name?: string;
|
|
6
|
-
id?: string;
|
|
7
|
-
checked?: boolean;
|
|
8
|
-
color?: string;
|
|
9
|
-
size?: 'small' | 'medium' | 'large';
|
|
10
|
-
mode?: 'default' | 'labelMode' | 'iconMode';
|
|
11
|
-
};
|
|
12
|
-
export type SwitchContainerTypes = {
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
onClick?: any;
|
|
15
|
-
onChange?: any;
|
|
16
|
-
name?: string;
|
|
17
|
-
id?: string;
|
|
18
|
-
checked?: boolean;
|
|
19
|
-
color?: string;
|
|
20
|
-
size?: 'small' | 'medium' | 'large';
|
|
21
|
-
labelMode?: boolean;
|
|
22
|
-
iconMode?: boolean;
|
|
23
|
-
};
|
|
1
|
+
export type SWType = {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
onClick?: any;
|
|
4
|
+
onChange?: any;
|
|
5
|
+
name?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
color?: string;
|
|
9
|
+
size?: 'small' | 'medium' | 'large';
|
|
10
|
+
mode?: 'default' | 'labelMode' | 'iconMode';
|
|
11
|
+
};
|
|
12
|
+
export type SwitchContainerTypes = {
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onClick?: any;
|
|
15
|
+
onChange?: any;
|
|
16
|
+
name?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
checked?: boolean;
|
|
19
|
+
color?: string;
|
|
20
|
+
size?: 'small' | 'medium' | 'large';
|
|
21
|
+
labelMode?: boolean;
|
|
22
|
+
iconMode?: boolean;
|
|
23
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ITabs } from './TabsTypes';
|
|
2
|
-
declare const Tabs: ({ activeTab, tabs, tabHeight, fullWidth, showNeutralBorder, onTabChange, onTabClick, onLeftIconClick, onRightIconClick, onUnreadCountClick, }: ITabs.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { Tabs };
|
|
1
|
+
import { ITabs } from './TabsTypes';
|
|
2
|
+
declare const Tabs: ({ activeTab, tabs, tabHeight, fullWidth, showNeutralBorder, onTabChange, onTabClick, onLeftIconClick, onRightIconClick, onUnreadCountClick, }: ITabs.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { Tabs };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare const TabStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const TabsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const Tab: import("styled-components").StyledComponent<"div", any, {
|
|
4
|
-
isActive?: boolean;
|
|
5
|
-
tabHeight?: string;
|
|
6
|
-
fullWidth?: boolean;
|
|
7
|
-
}, never>;
|
|
8
|
-
export declare const TabBar: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
-
showNeutralBorder?: boolean;
|
|
10
|
-
}, never>;
|
|
11
|
-
export declare const TabBarHighlight: import("styled-components").StyledComponent<"div", any, {
|
|
12
|
-
width?: string;
|
|
13
|
-
left: string;
|
|
14
|
-
}, never>;
|
|
1
|
+
export declare const TabStyled: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const TabsContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Tab: import("styled-components").StyledComponent<"div", any, {
|
|
4
|
+
isActive?: boolean;
|
|
5
|
+
tabHeight?: string;
|
|
6
|
+
fullWidth?: boolean;
|
|
7
|
+
}, never>;
|
|
8
|
+
export declare const TabBar: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
showNeutralBorder?: boolean;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const TabBarHighlight: import("styled-components").StyledComponent<"div", any, {
|
|
12
|
+
width?: string;
|
|
13
|
+
left: string;
|
|
14
|
+
}, never>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare namespace ITabs {
|
|
3
|
-
interface Props {
|
|
4
|
-
activeTab?: string;
|
|
5
|
-
tabs: Tab[];
|
|
6
|
-
tabHeight?: string;
|
|
7
|
-
fullWidth?: boolean;
|
|
8
|
-
showNeutralBorder?: boolean;
|
|
9
|
-
onTabChange?: (tab: Tab) => void;
|
|
10
|
-
onTabClick?: (tab: Tab, event?: React.MouseEvent) => void;
|
|
11
|
-
onLeftIconClick?: (tab: Tab, event?: React.MouseEvent) => void;
|
|
12
|
-
onRightIconClick?: (tab: Tab, event?: React.MouseEvent) => void;
|
|
13
|
-
onUnreadCountClick?: (tab: Tab, event?: React.MouseEvent) => void;
|
|
14
|
-
}
|
|
15
|
-
interface Tab {
|
|
16
|
-
id?: string;
|
|
17
|
-
title: string;
|
|
18
|
-
leftIcon?: React.ReactNode;
|
|
19
|
-
rightIcon?: React.ReactNode;
|
|
20
|
-
unreadCount?: number;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare namespace ITabs {
|
|
3
|
+
interface Props {
|
|
4
|
+
activeTab?: string;
|
|
5
|
+
tabs: Tab[];
|
|
6
|
+
tabHeight?: string;
|
|
7
|
+
fullWidth?: boolean;
|
|
8
|
+
showNeutralBorder?: boolean;
|
|
9
|
+
onTabChange?: (tab: Tab) => void;
|
|
10
|
+
onTabClick?: (tab: Tab, event?: React.MouseEvent) => void;
|
|
11
|
+
onLeftIconClick?: (tab: Tab, event?: React.MouseEvent) => void;
|
|
12
|
+
onRightIconClick?: (tab: Tab, event?: React.MouseEvent) => void;
|
|
13
|
+
onUnreadCountClick?: (tab: Tab, event?: React.MouseEvent) => void;
|
|
14
|
+
}
|
|
15
|
+
interface Tab {
|
|
16
|
+
id?: string;
|
|
17
|
+
title: string;
|
|
18
|
+
leftIcon?: React.ReactNode;
|
|
19
|
+
rightIcon?: React.ReactNode;
|
|
20
|
+
unreadCount?: number;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getTabWidth: (element: HTMLElement) => number;
|
|
2
|
-
export declare const getTabLeft: (elements: HTMLElement[]) => number;
|
|
1
|
+
export declare const getTabWidth: (element: HTMLElement) => number;
|
|
2
|
+
export declare const getTabLeft: (elements: HTMLElement[]) => number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Tabs } from './Tabs';
|
|
2
|
-
export { Tabs };
|
|
1
|
+
import { Tabs } from './Tabs';
|
|
2
|
+
export { Tabs };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TGTypes } from './types';
|
|
2
|
-
declare function Tag(props: TGTypes): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { Tag };
|
|
1
|
+
import { TGTypes } from './types';
|
|
2
|
+
declare function Tag(props: TGTypes): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { Tag };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TGStyleTypes } from './types';
|
|
2
|
-
export declare const TagWrapper: import("styled-components").StyledComponent<"div", any, TGStyleTypes, never>;
|
|
1
|
+
import { TGStyleTypes } from './types';
|
|
2
|
+
export declare const TagWrapper: import("styled-components").StyledComponent<"div", any, TGStyleTypes, never>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type TGTypes = {
|
|
3
|
-
type: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'orange' | 'grey' | 'insight';
|
|
4
|
-
size?: 'small' | 'default';
|
|
5
|
-
avatar?: any;
|
|
6
|
-
icon?: any;
|
|
7
|
-
label?: string;
|
|
8
|
-
showActionButton?: any;
|
|
9
|
-
onClose?: any;
|
|
10
|
-
onClick?: any;
|
|
11
|
-
inverted?: boolean;
|
|
12
|
-
disable?: boolean;
|
|
13
|
-
children?: JSX.Element | JSX.Element[];
|
|
14
|
-
};
|
|
15
|
-
export type TGStyleTypes = {
|
|
16
|
-
disableAction?: boolean;
|
|
17
|
-
};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type TGTypes = {
|
|
3
|
+
type: 'primary' | 'secondary' | 'success' | 'error' | 'warning' | 'orange' | 'grey' | 'insight';
|
|
4
|
+
size?: 'small' | 'default';
|
|
5
|
+
avatar?: any;
|
|
6
|
+
icon?: any;
|
|
7
|
+
label?: string;
|
|
8
|
+
showActionButton?: any;
|
|
9
|
+
onClose?: any;
|
|
10
|
+
onClick?: any;
|
|
11
|
+
inverted?: boolean;
|
|
12
|
+
disable?: boolean;
|
|
13
|
+
children?: JSX.Element | JSX.Element[];
|
|
14
|
+
};
|
|
15
|
+
export type TGStyleTypes = {
|
|
16
|
+
disableAction?: boolean;
|
|
17
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TextComponent } from './types';
|
|
2
|
-
declare const Paragraph: import("styled-components").StyledComponent<"p", any, TextComponent.ParagraphTypes & import("styled-components").ThemeProps<HTMLParagraphElement>, never>;
|
|
3
|
-
export { Paragraph };
|
|
1
|
+
import { TextComponent } from './types';
|
|
2
|
+
declare const Paragraph: import("styled-components").StyledComponent<"p", any, TextComponent.ParagraphTypes & import("styled-components").ThemeProps<HTMLParagraphElement>, never>;
|
|
3
|
+
export { Paragraph };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TextComponent } from './types';
|
|
2
|
-
declare const Text: (props: TextComponent.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { Text };
|
|
1
|
+
import { TextComponent } from './types';
|
|
2
|
+
declare const Text: (props: TextComponent.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { Text };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare namespace TextComponent {
|
|
3
|
-
type Props = Omit<ParagraphTypes, 'weight'> & {
|
|
4
|
-
onClick?: (event: React.MouseEvent<HTMLParagraphElement, MouseEvent>) => void;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
type?: Type;
|
|
7
|
-
weight?: Weight;
|
|
8
|
-
className?: string;
|
|
9
|
-
};
|
|
10
|
-
type Category = 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'link' | 'title';
|
|
11
|
-
type Weight = 'regular' | 'medium' | 'semiBold';
|
|
12
|
-
type Type = 'error' | 'success';
|
|
13
|
-
type ParagraphTypes = {
|
|
14
|
-
category?: Category;
|
|
15
|
-
weight: Weight;
|
|
16
|
-
color?: string;
|
|
17
|
-
type?: Type;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare namespace TextComponent {
|
|
3
|
+
type Props = Omit<ParagraphTypes, 'weight'> & {
|
|
4
|
+
onClick?: (event: React.MouseEvent<HTMLParagraphElement, MouseEvent>) => void;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
type?: Type;
|
|
7
|
+
weight?: Weight;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
type Category = 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'link' | 'title';
|
|
11
|
+
type Weight = 'regular' | 'medium' | 'semiBold';
|
|
12
|
+
type Type = 'error' | 'success';
|
|
13
|
+
type ParagraphTypes = {
|
|
14
|
+
category?: Category;
|
|
15
|
+
weight: Weight;
|
|
16
|
+
color?: string;
|
|
17
|
+
type?: Type;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { TextComponent } from './types';
|
|
2
|
-
type Typography = {
|
|
3
|
-
subtitle1: string;
|
|
4
|
-
subtitle2: string;
|
|
5
|
-
body1: string;
|
|
6
|
-
body2: string;
|
|
7
|
-
prefix: string;
|
|
8
|
-
caption: string;
|
|
9
|
-
link: string;
|
|
10
|
-
};
|
|
11
|
-
declare const FONT_WEIGHT: {
|
|
12
|
-
regular: number;
|
|
13
|
-
medium: number;
|
|
14
|
-
semiBold: number;
|
|
15
|
-
};
|
|
16
|
-
declare const typography: Typography;
|
|
17
|
-
/** switch typography on provided category */
|
|
18
|
-
declare const switchTypography: (props: TextComponent.ParagraphTypes) => string;
|
|
19
|
-
export { switchTypography, typography, FONT_WEIGHT };
|
|
1
|
+
import { TextComponent } from './types';
|
|
2
|
+
type Typography = {
|
|
3
|
+
subtitle1: string;
|
|
4
|
+
subtitle2: string;
|
|
5
|
+
body1: string;
|
|
6
|
+
body2: string;
|
|
7
|
+
prefix: string;
|
|
8
|
+
caption: string;
|
|
9
|
+
link: string;
|
|
10
|
+
};
|
|
11
|
+
declare const FONT_WEIGHT: {
|
|
12
|
+
regular: number;
|
|
13
|
+
medium: number;
|
|
14
|
+
semiBold: number;
|
|
15
|
+
};
|
|
16
|
+
declare const typography: Typography;
|
|
17
|
+
/** switch typography on provided category */
|
|
18
|
+
declare const switchTypography: (props: TextComponent.ParagraphTypes) => string;
|
|
19
|
+
export { switchTypography, typography, FONT_WEIGHT };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color } from "../../themes/types";
|
|
2
|
-
import { TextComponent } from "./types";
|
|
3
|
-
declare const changeColor: (theme: Color, type?: TextComponent.Type, color?: string) => string;
|
|
4
|
-
export { changeColor };
|
|
1
|
+
import { Color } from "../../themes/types";
|
|
2
|
+
import { TextComponent } from "./types";
|
|
3
|
+
declare const changeColor: (theme: Color, type?: TextComponent.Type, color?: string) => string;
|
|
4
|
+
export { changeColor };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IToast } from './Toast.types';
|
|
2
|
-
declare const Toast: ({ message, type, id, config }: IToast) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export default Toast;
|
|
1
|
+
import { IToast } from './Toast.types';
|
|
2
|
+
declare const Toast: ({ message, type, id, config }: IToast) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Toast;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ToastPosition } from './Toast.types';
|
|
2
|
-
export declare const ToastListStyled: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
-
position: ToastPosition;
|
|
4
|
-
offsetX?: number;
|
|
5
|
-
offsetY?: number;
|
|
6
|
-
}, never>;
|
|
7
|
-
export declare const ToastWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
1
|
+
import { ToastPosition } from './Toast.types';
|
|
2
|
+
export declare const ToastListStyled: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
position: ToastPosition;
|
|
4
|
+
offsetX?: number;
|
|
5
|
+
offsetY?: number;
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const ToastWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type GeneralToastType = 'success' | 'error' | 'warning' | 'info';
|
|
3
|
-
export type ToastType = GeneralToastType | 'promise';
|
|
4
|
-
export type XAlign = 'left' | 'center' | 'right';
|
|
5
|
-
export type YAlign = 'top' | 'bottom';
|
|
6
|
-
export type ToastPosition = `${YAlign}-${XAlign}`;
|
|
7
|
-
export type IToastProviderConfig = {
|
|
8
|
-
timeout?: number;
|
|
9
|
-
position?: ToastPosition;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
offsetX?: number;
|
|
12
|
-
offsetY?: number;
|
|
13
|
-
};
|
|
14
|
-
export interface IToast {
|
|
15
|
-
id: string;
|
|
16
|
-
message: string | ReactNode;
|
|
17
|
-
type: ToastType;
|
|
18
|
-
config?: {
|
|
19
|
-
timeout?: number;
|
|
20
|
-
showActionBtn?: boolean;
|
|
21
|
-
actionBtnLabel?: string;
|
|
22
|
-
onActionBtnClick?: () => void;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export type PromiseFnOptions = {
|
|
26
|
-
successMessage?: string;
|
|
27
|
-
errorMessage?: string;
|
|
28
|
-
pendingMessage: string;
|
|
29
|
-
onSuccess?: (response: unknown) => void;
|
|
30
|
-
onError?: (error: any) => void;
|
|
31
|
-
onFinally?: () => void;
|
|
32
|
-
};
|
|
33
|
-
export type GeneralToastFn = (message: IToast['message'], config?: IToast['config']) => string;
|
|
34
|
-
export type PromiseToastFn = (promise: Promise<unknown>, options: PromiseFnOptions) => string;
|
|
35
|
-
export interface IToastContext {
|
|
36
|
-
toast: {
|
|
37
|
-
success: GeneralToastFn;
|
|
38
|
-
error: GeneralToastFn;
|
|
39
|
-
warning: GeneralToastFn;
|
|
40
|
-
info: GeneralToastFn;
|
|
41
|
-
promise: PromiseToastFn;
|
|
42
|
-
};
|
|
43
|
-
removeToast: (id: string) => void;
|
|
44
|
-
setConfig: (config: Omit<IToastProviderConfig, 'children'>) => void;
|
|
45
|
-
}
|
|
46
|
-
export type ColorFamily = {
|
|
47
|
-
class: string;
|
|
48
|
-
member: string;
|
|
49
|
-
};
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type GeneralToastType = 'success' | 'error' | 'warning' | 'info';
|
|
3
|
+
export type ToastType = GeneralToastType | 'promise';
|
|
4
|
+
export type XAlign = 'left' | 'center' | 'right';
|
|
5
|
+
export type YAlign = 'top' | 'bottom';
|
|
6
|
+
export type ToastPosition = `${YAlign}-${XAlign}`;
|
|
7
|
+
export type IToastProviderConfig = {
|
|
8
|
+
timeout?: number;
|
|
9
|
+
position?: ToastPosition;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
offsetX?: number;
|
|
12
|
+
offsetY?: number;
|
|
13
|
+
};
|
|
14
|
+
export interface IToast {
|
|
15
|
+
id: string;
|
|
16
|
+
message: string | ReactNode;
|
|
17
|
+
type: ToastType;
|
|
18
|
+
config?: {
|
|
19
|
+
timeout?: number;
|
|
20
|
+
showActionBtn?: boolean;
|
|
21
|
+
actionBtnLabel?: string;
|
|
22
|
+
onActionBtnClick?: () => void;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export type PromiseFnOptions = {
|
|
26
|
+
successMessage?: string;
|
|
27
|
+
errorMessage?: string;
|
|
28
|
+
pendingMessage: string;
|
|
29
|
+
onSuccess?: (response: unknown) => void;
|
|
30
|
+
onError?: (error: any) => void;
|
|
31
|
+
onFinally?: () => void;
|
|
32
|
+
};
|
|
33
|
+
export type GeneralToastFn = (message: IToast['message'], config?: IToast['config']) => string;
|
|
34
|
+
export type PromiseToastFn = (promise: Promise<unknown>, options: PromiseFnOptions) => string;
|
|
35
|
+
export interface IToastContext {
|
|
36
|
+
toast: {
|
|
37
|
+
success: GeneralToastFn;
|
|
38
|
+
error: GeneralToastFn;
|
|
39
|
+
warning: GeneralToastFn;
|
|
40
|
+
info: GeneralToastFn;
|
|
41
|
+
promise: PromiseToastFn;
|
|
42
|
+
};
|
|
43
|
+
removeToast: (id: string) => void;
|
|
44
|
+
setConfig: (config: Omit<IToastProviderConfig, 'children'>) => void;
|
|
45
|
+
}
|
|
46
|
+
export type ColorFamily = {
|
|
47
|
+
class: string;
|
|
48
|
+
member: string;
|
|
49
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ToastPosition } from './Toast.types';
|
|
2
|
-
export declare const PositionCoordinates: Record<ToastPosition, {
|
|
3
|
-
top?: string | number;
|
|
4
|
-
left?: string | number;
|
|
5
|
-
transform?: string;
|
|
6
|
-
bottom?: string | number;
|
|
7
|
-
right?: string | number;
|
|
8
|
-
}>;
|
|
1
|
+
import { ToastPosition } from './Toast.types';
|
|
2
|
+
export declare const PositionCoordinates: Record<ToastPosition, {
|
|
3
|
+
top?: string | number;
|
|
4
|
+
left?: string | number;
|
|
5
|
+
transform?: string;
|
|
6
|
+
bottom?: string | number;
|
|
7
|
+
right?: string | number;
|
|
8
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IToastContext } from './Toast.types';
|
|
3
|
-
declare const ToastContext: import("react").Context<IToastContext>;
|
|
4
|
-
export { ToastContext };
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IToastContext } from './Toast.types';
|
|
3
|
+
declare const ToastContext: import("react").Context<IToastContext>;
|
|
4
|
+
export { ToastContext };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IToastProviderConfig } from './Toast.types';
|
|
2
|
-
declare const ToastProvider: ({ children, position, timeout, offsetX, offsetY }: IToastProviderConfig) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export { ToastProvider };
|
|
1
|
+
import { IToastProviderConfig } from './Toast.types';
|
|
2
|
+
declare const ToastProvider: ({ children, position, timeout, offsetX, offsetY }: IToastProviderConfig) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { ToastProvider };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Toast from "./Toast";
|
|
2
|
-
export default Toast;
|
|
1
|
+
import Toast from "./Toast";
|
|
2
|
+
export default Toast;
|