@cloudwick/astral-ui 3.0.7 → 4.0.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 +90 -6
- package/dist/components/accordion/accordion.js +62 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/accordion/accordionVariants.js +52 -0
- package/dist/components/accordion/accordionVariants.js.map +1 -0
- package/dist/components/accordion/index.js +3 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/adpIcon/adpIcon.js +39 -0
- package/dist/components/adpIcon/adpIcon.js.map +1 -0
- package/dist/components/adpIcon/adpIconVariants.js +35 -0
- package/dist/components/adpIcon/adpIconVariants.js.map +1 -0
- package/dist/components/adpIcon/index.js +3 -0
- package/dist/components/adpIcon/index.js.map +1 -0
- package/dist/components/adpIcon/svgObjects.js +1525 -0
- package/dist/components/adpIcon/svgObjects.js.map +1 -0
- package/dist/components/avatar/avatar.js +39 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/avatarVariants.js +20 -0
- package/dist/components/avatar/avatarVariants.js.map +1 -0
- package/dist/components/avatar/index.js +3 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/avatarGroup/avatarGroup.js +66 -0
- package/dist/components/avatarGroup/avatarGroup.js.map +1 -0
- package/dist/components/avatarGroup/avatarGroupVariants.js +13 -0
- package/dist/components/avatarGroup/avatarGroupVariants.js.map +1 -0
- package/dist/components/avatarGroup/index.js +3 -0
- package/dist/components/avatarGroup/index.js.map +1 -0
- package/dist/components/badge/badge.js +24 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/badgeVariants.js +136 -0
- package/dist/components/badge/badgeVariants.js.map +1 -0
- package/dist/components/badge/index.js +3 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbItem.js +26 -0
- package/dist/components/breadcrumbs/breadcrumbItem.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +72 -0
- package/dist/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbsVariants.js +40 -0
- package/dist/components/breadcrumbs/breadcrumbsVariants.js.map +1 -0
- package/dist/components/breadcrumbs/index.js +5 -0
- package/dist/components/breadcrumbs/index.js.map +1 -0
- package/dist/components/button/button.js +69 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/buttonVariants.js +138 -0
- package/dist/components/button/buttonVariants.js.map +1 -0
- package/dist/components/button/index.js +3 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/card/card.js +79 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/card/cardVariants.js +18 -0
- package/dist/components/card/cardVariants.js.map +1 -0
- package/dist/components/card/index.js +3 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/checkbox/checkbox.js +29 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkboxVariants.js +96 -0
- package/dist/components/checkbox/checkboxVariants.js.map +1 -0
- package/dist/components/checkbox/index.js +3 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/checkboxGroup/checkboxGroup.js +51 -0
- package/dist/components/checkboxGroup/checkboxGroup.js.map +1 -0
- package/dist/components/checkboxGroup/checkboxGroupVariants.js +31 -0
- package/dist/components/checkboxGroup/checkboxGroupVariants.js.map +1 -0
- package/dist/components/checkboxGroup/index.js +3 -0
- package/dist/components/checkboxGroup/index.js.map +1 -0
- package/dist/components/ctaGroup/ctaGroup.js +51 -0
- package/dist/components/ctaGroup/ctaGroup.js.map +1 -0
- package/dist/components/ctaGroup/ctaGroupVariants.js +9 -0
- package/dist/components/ctaGroup/ctaGroupVariants.js.map +1 -0
- package/dist/components/ctaGroup/index.js +3 -0
- package/dist/components/ctaGroup/index.js.map +1 -0
- package/dist/components/dataTable/DataTableColumnSettings.js +98 -0
- package/dist/components/dataTable/DataTableColumnSettings.js.map +1 -0
- package/dist/components/dataTable/advancedFilters.js +102 -0
- package/dist/components/dataTable/advancedFilters.js.map +1 -0
- package/dist/components/dataTable/dataTable.js +236 -0
- package/dist/components/dataTable/dataTable.js.map +1 -0
- package/dist/components/dataTable/dataTableStoryHelpers.js +1967 -0
- package/dist/components/dataTable/dataTableStoryHelpers.js.map +1 -0
- package/dist/components/dataTable/dataTableVariants.js +51 -0
- package/dist/components/dataTable/dataTableVariants.js.map +1 -0
- package/dist/components/dataTable/index.js +8 -0
- package/dist/components/dataTable/index.js.map +1 -0
- package/dist/components/dataTable/pageSizeModal.js +25 -0
- package/dist/components/dataTable/pageSizeModal.js.map +1 -0
- package/dist/components/dataTable/selectedFilterList.js +39 -0
- package/dist/components/dataTable/selectedFilterList.js.map +1 -0
- package/dist/components/dataTable/table.js +108 -0
- package/dist/components/dataTable/table.js.map +1 -0
- package/dist/components/datePicker/datePicker.js +271 -0
- package/dist/components/datePicker/datePicker.js.map +1 -0
- package/dist/components/datePicker/datePickerVariants.js +80 -0
- package/dist/components/datePicker/datePickerVariants.js.map +1 -0
- package/dist/components/datePicker/index.js +4 -0
- package/dist/components/datePicker/index.js.map +1 -0
- package/dist/components/dropdown/dropdown.js +94 -0
- package/dist/components/dropdown/dropdown.js.map +1 -0
- package/dist/components/dropdown/dropdownItem.js +54 -0
- package/dist/components/dropdown/dropdownItem.js.map +1 -0
- package/dist/components/dropdown/dropdownToggle.js +20 -0
- package/dist/components/dropdown/dropdownToggle.js.map +1 -0
- package/dist/components/dropdown/dropdownVariants.js +48 -0
- package/dist/components/dropdown/dropdownVariants.js.map +1 -0
- package/dist/components/dropdown/index.js +8 -0
- package/dist/components/dropdown/index.js.map +1 -0
- package/dist/components/emptyState/emptyState.js +61 -0
- package/dist/components/emptyState/emptyState.js.map +1 -0
- package/dist/components/emptyState/emptyStateContent.js +25 -0
- package/dist/components/emptyState/emptyStateContent.js.map +1 -0
- package/dist/components/emptyState/emptyStateCta.js +25 -0
- package/dist/components/emptyState/emptyStateCta.js.map +1 -0
- package/dist/components/emptyState/emptyStateVariants.js +7 -0
- package/dist/components/emptyState/emptyStateVariants.js.map +1 -0
- package/dist/components/emptyState/index.js +5 -0
- package/dist/components/emptyState/index.js.map +1 -0
- package/dist/components/fileUpload/fileUpload.js +150 -0
- package/dist/components/fileUpload/fileUpload.js.map +1 -0
- package/dist/components/fileUpload/fileUploadVariants.js +21 -0
- package/dist/components/fileUpload/fileUploadVariants.js.map +1 -0
- package/dist/components/fileUpload/index.js +3 -0
- package/dist/components/fileUpload/index.js.map +1 -0
- package/dist/components/fileUpload/statusCard.js +80 -0
- package/dist/components/fileUpload/statusCard.js.map +1 -0
- package/dist/components/fileUpload/statusCardVariants.js +19 -0
- package/dist/components/fileUpload/statusCardVariants.js.map +1 -0
- package/dist/components/fileUpload/storyUtil.js +51 -0
- package/dist/components/fileUpload/storyUtil.js.map +1 -0
- package/dist/components/loader/index.js +3 -0
- package/dist/components/loader/index.js.map +1 -0
- package/dist/components/loader/loader.js +39 -0
- package/dist/components/loader/loader.js.map +1 -0
- package/dist/components/loader/loaderVariants.js +31 -0
- package/dist/components/loader/loaderVariants.js.map +1 -0
- package/dist/components/modal/index.js +3 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/modal.js +89 -0
- package/dist/components/modal/modal.js.map +1 -0
- package/dist/components/modal/modalVariants.js +14 -0
- package/dist/components/modal/modalVariants.js.map +1 -0
- package/dist/components/otp/index.js +3 -0
- package/dist/components/otp/index.js.map +1 -0
- package/dist/components/otp/input.js +18 -0
- package/dist/components/otp/input.js.map +1 -0
- package/dist/components/otp/otp.js +142 -0
- package/dist/components/otp/otp.js.map +1 -0
- package/dist/components/otp/otpVariants.js +13 -0
- package/dist/components/otp/otpVariants.js.map +1 -0
- package/dist/components/pagination/index.js +5 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/pagination/pagination.js +82 -0
- package/dist/components/pagination/pagination.js.map +1 -0
- package/dist/components/pagination/paginationVariants.js +44 -0
- package/dist/components/pagination/paginationVariants.js.map +1 -0
- package/dist/components/panel/index.js +11 -0
- package/dist/components/panel/index.js.map +1 -0
- package/dist/components/panel/panel.js +83 -0
- package/dist/components/panel/panel.js.map +1 -0
- package/dist/components/panel/panelBody.js +21 -0
- package/dist/components/panel/panelBody.js.map +1 -0
- package/dist/components/panel/panelFooter.js +21 -0
- package/dist/components/panel/panelFooter.js.map +1 -0
- package/dist/components/panel/panelHeader.js +25 -0
- package/dist/components/panel/panelHeader.js.map +1 -0
- package/dist/components/panel/panelVariants.js +122 -0
- package/dist/components/panel/panelVariants.js.map +1 -0
- package/dist/components/panelGroup/index.js +3 -0
- package/dist/components/panelGroup/index.js.map +1 -0
- package/dist/components/panelGroup/panelGroup.js +38 -0
- package/dist/components/panelGroup/panelGroup.js.map +1 -0
- package/dist/components/panelGroup/panelGroupVariants.js +34 -0
- package/dist/components/panelGroup/panelGroupVariants.js.map +1 -0
- package/dist/components/passwordField/index.js +2 -0
- package/dist/components/passwordField/index.js.map +1 -0
- package/dist/components/passwordField/passwordField.js +28 -0
- package/dist/components/passwordField/passwordField.js.map +1 -0
- package/dist/components/progress/index.js +3 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.js +62 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/progress/progressVariants.js +100 -0
- package/dist/components/progress/progressVariants.js.map +1 -0
- package/dist/components/radio/index.js +3 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/radio/radio.js +25 -0
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/radio/radioVariants.js +46 -0
- package/dist/components/radio/radioVariants.js.map +1 -0
- package/dist/components/radioGroup/index.js +3 -0
- package/dist/components/radioGroup/index.js.map +1 -0
- package/dist/components/radioGroup/radioGroup.js +47 -0
- package/dist/components/radioGroup/radioGroup.js.map +1 -0
- package/dist/components/radioGroup/radioGroupVariants.js +53 -0
- package/dist/components/radioGroup/radioGroupVariants.js.map +1 -0
- package/dist/components/scrollbar/index.js +3 -0
- package/dist/components/scrollbar/index.js.map +1 -0
- package/dist/components/scrollbar/scrollbar.js +360 -0
- package/dist/components/scrollbar/scrollbar.js.map +1 -0
- package/dist/components/scrollbar/scrollbarVariants.js +100 -0
- package/dist/components/scrollbar/scrollbarVariants.js.map +1 -0
- package/dist/components/scrollbar/utils.js +50 -0
- package/dist/components/scrollbar/utils.js.map +1 -0
- package/dist/components/select/index.js +3 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.js +139 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/selectVariants.js +35 -0
- package/dist/components/select/selectVariants.js.map +1 -0
- package/dist/components/select/utils.js +116 -0
- package/dist/components/select/utils.js.map +1 -0
- package/dist/components/tabs/index.js +3 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs.js +140 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tabs/tabsVariants.js +138 -0
- package/dist/components/tabs/tabsVariants.js.map +1 -0
- package/dist/components/textCopy/index.js +3 -0
- package/dist/components/textCopy/index.js.map +1 -0
- package/dist/components/textCopy/textCopy.js +36 -0
- package/dist/components/textCopy/textCopy.js.map +1 -0
- package/dist/components/textCopy/textCopyVariants.js +12 -0
- package/dist/components/textCopy/textCopyVariants.js.map +1 -0
- package/dist/components/textField/index.js +3 -0
- package/dist/components/textField/index.js.map +1 -0
- package/dist/components/textField/textField.js +36 -0
- package/dist/components/textField/textField.js.map +1 -0
- package/dist/components/textField/textFieldVariants.js +84 -0
- package/dist/components/textField/textFieldVariants.js.map +1 -0
- package/dist/components/textarea/index.js +3 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.js +28 -0
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/textarea/textareaVariants.js +37 -0
- package/dist/components/textarea/textareaVariants.js.map +1 -0
- package/dist/components/toast/index.js +3 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toast/toast.js +52 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toast/toastVariants.js +45 -0
- package/dist/components/toast/toastVariants.js.map +1 -0
- package/dist/components/toggle/index.js +3 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/components/toggle/toggle.js +33 -0
- package/dist/components/toggle/toggle.js.map +1 -0
- package/dist/components/toggle/toggleVariants.js +40 -0
- package/dist/components/toggle/toggleVariants.js.map +1 -0
- package/dist/components/tooltip/index.js +3 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.js +100 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltipVariants.js +13 -0
- package/dist/components/tooltip/tooltipVariants.js.map +1 -0
- package/dist/components/truncate/index.js +3 -0
- package/dist/components/truncate/index.js.map +1 -0
- package/dist/components/truncate/truncate.js +36 -0
- package/dist/components/truncate/truncate.js.map +1 -0
- package/dist/components/truncate/truncateVariants.js +13 -0
- package/dist/components/truncate/truncateVariants.js.map +1 -0
- package/dist/css/index.min.css +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.esm.js +4 -14
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/tailwindThemeConfig.js +155 -0
- package/dist/tailwindThemeConfig.js.map +1 -0
- package/dist/utils/cn.js +13 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/debounce.js +30 -0
- package/dist/utils/debounce.js.map +1 -0
- package/dist/utils/findParentAttribute.js +23 -0
- package/dist/utils/findParentAttribute.js.map +1 -0
- package/dist/utils/getElementType.js +32 -0
- package/dist/utils/getElementType.js.map +1 -0
- package/dist/utils/index.js +8 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/numberUtils/index.js +41 -0
- package/dist/utils/numberUtils/index.js.map +1 -0
- package/dist/utils/stringUtils/fileSize.js +13 -0
- package/dist/utils/stringUtils/fileSize.js.map +1 -0
- package/dist/utils/stringUtils/getInitials.js +19 -0
- package/dist/utils/stringUtils/getInitials.js.map +1 -0
- package/dist/utils/stringUtils/index.js +5 -0
- package/dist/utils/stringUtils/index.js.map +1 -0
- package/dist/utils/stringUtils/placeholderText.js +75 -0
- package/dist/utils/stringUtils/placeholderText.js.map +1 -0
- package/dist/utils/stringUtils/regexSearch.js +25 -0
- package/dist/utils/stringUtils/regexSearch.js.map +1 -0
- package/dist/utils/useOnScreen.js +16 -0
- package/dist/utils/useOnScreen.js.map +1 -0
- package/dist/utils/useWindowSize.js +25 -0
- package/dist/utils/useWindowSize.js.map +1 -0
- package/package.json +37 -15
- package/CONTRIBUTING.md +0 -57
- package/dist/components/accordion/accordionBody.d.ts +0 -9
- package/dist/components/accordion/accordionHeader.d.ts +0 -9
- package/dist/components/accordion/index.d.ts +0 -37
- package/dist/components/adpIcon/index.d.ts +0 -61
- package/dist/components/adpIcon/svgObjects.d.ts +0 -267
- package/dist/components/avatar/index.d.ts +0 -27
- package/dist/components/avatarGroup/index.d.ts +0 -32
- package/dist/components/badge/index.d.ts +0 -46
- package/dist/components/breadcrumbs/breadcrumbItem.d.ts +0 -28
- package/dist/components/breadcrumbs/index.d.ts +0 -27
- package/dist/components/button/index.d.ts +0 -86
- package/dist/components/card/cardBody.d.ts +0 -13
- package/dist/components/card/cardFooter.d.ts +0 -13
- package/dist/components/card/cardHeader.d.ts +0 -22
- package/dist/components/card/index.d.ts +0 -23
- package/dist/components/checkbox/index.d.ts +0 -19
- package/dist/components/checkboxGroup/index.d.ts +0 -43
- package/dist/components/ctaGroup/index.d.ts +0 -46
- package/dist/components/dataTable/advancedFilters.d.ts +0 -10
- package/dist/components/dataTable/dataTableStoryHelpers.d.ts +0 -1101
- package/dist/components/dataTable/index.d.ts +0 -193
- package/dist/components/dataTable/pageSizeModal.d.ts +0 -10
- package/dist/components/dataTable/selectedFilterList.d.ts +0 -20
- package/dist/components/dataTable/settings.d.ts +0 -6
- package/dist/components/dataTable/table.d.ts +0 -41
- package/dist/components/dataTable/utils.d.ts +0 -3
- package/dist/components/datePicker/index.d.ts +0 -10
- package/dist/components/dropdown/dropdownItem.d.ts +0 -11
- package/dist/components/dropdown/dropdownToggle.d.ts +0 -9
- package/dist/components/dropdown/index.d.ts +0 -35
- package/dist/components/emptyState/emptyStateContent.d.ts +0 -11
- package/dist/components/emptyState/emptyStateCta.d.ts +0 -11
- package/dist/components/emptyState/index.d.ts +0 -34
- package/dist/components/fileUpload/index.d.ts +0 -58
- package/dist/components/fileUpload/statusCard.d.ts +0 -18
- package/dist/components/fileUpload/storyUtil.d.ts +0 -1
- package/dist/components/loader/index.d.ts +0 -28
- package/dist/components/modal/index.d.ts +0 -49
- package/dist/components/modal/modalBody.d.ts +0 -13
- package/dist/components/modal/modalHeader.d.ts +0 -13
- package/dist/components/otp/index.d.ts +0 -41
- package/dist/components/otp/input.d.ts +0 -12
- package/dist/components/pagination/index.d.ts +0 -32
- package/dist/components/panel/index.d.ts +0 -47
- package/dist/components/panel/panelBody.d.ts +0 -13
- package/dist/components/panel/panelFooter.d.ts +0 -13
- package/dist/components/panel/panelHeader.d.ts +0 -39
- package/dist/components/panel/panelStoryHelpers.d.ts +0 -7
- package/dist/components/panelGroup/index.d.ts +0 -22
- package/dist/components/passwordField/index.d.ts +0 -4
- package/dist/components/progress/index.d.ts +0 -61
- package/dist/components/radio/index.d.ts +0 -15
- package/dist/components/radioGroup/index.d.ts +0 -48
- package/dist/components/scrollbar/index.d.ts +0 -34
- package/dist/components/scrollbar/storyUtils.d.ts +0 -8
- package/dist/components/select/index.d.ts +0 -99
- package/dist/components/select/utils.d.ts +0 -3
- package/dist/components/tabs/index.d.ts +0 -69
- package/dist/components/tabs/tab.d.ts +0 -53
- package/dist/components/textCopy/index.d.ts +0 -29
- package/dist/components/textField/index.d.ts +0 -47
- package/dist/components/textarea/index.d.ts +0 -24
- package/dist/components/toast/index.d.ts +0 -43
- package/dist/components/toggle/index.d.ts +0 -39
- package/dist/components/tooltip/index.d.ts +0 -59
- package/dist/components/truncate/index.d.ts +0 -22
- package/dist/index.d.ts +0 -38
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import { CellContext, OnChangeFn, type SortingState, type SortingFnOption } from "@tanstack/react-table";
|
|
3
|
-
import { Props as ITextFieldProps } from "../textField";
|
|
4
|
-
import { type Props as ISelectProps } from "../select";
|
|
5
|
-
import { type IconType } from "../adpIcon";
|
|
6
|
-
export type IColumn = {
|
|
7
|
-
id?: string;
|
|
8
|
-
key: string;
|
|
9
|
-
header?: any;
|
|
10
|
-
cell?: (row: CellContext<any, any>) => ReactNode;
|
|
11
|
-
/**
|
|
12
|
-
* A fixed column -
|
|
13
|
-
* * Cannot be re-ordered or hidden using the Column Preference panel
|
|
14
|
-
* * The column will always be placed on the left side of the table irrespective of the index of the column configuration in IColumn[]
|
|
15
|
-
*
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
fixed?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Handle the visibility of the column
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
selected?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* To make the column sortable
|
|
26
|
-
* @default true
|
|
27
|
-
*/
|
|
28
|
-
enableSorting?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* To make the column resizable
|
|
31
|
-
* @default true
|
|
32
|
-
*/
|
|
33
|
-
enableResizing?: boolean;
|
|
34
|
-
sortingFn?: SortingFnOption<any>;
|
|
35
|
-
/**
|
|
36
|
-
* To adjust the width of the column
|
|
37
|
-
*/
|
|
38
|
-
size?: number;
|
|
39
|
-
/**
|
|
40
|
-
* Hides the column from the Column Preference panel
|
|
41
|
-
* @default false
|
|
42
|
-
*/
|
|
43
|
-
hideColPreference?: boolean;
|
|
44
|
-
};
|
|
45
|
-
export interface FilterItem extends ISelectProps {
|
|
46
|
-
selectedValue?: any;
|
|
47
|
-
icon?: IconType;
|
|
48
|
-
title: string;
|
|
49
|
-
placeholder?: string;
|
|
50
|
-
onChange?: () => void;
|
|
51
|
-
}
|
|
52
|
-
interface AdvancedFilterItem extends FilterItem {
|
|
53
|
-
setSelectedValue?: (val: any) => void;
|
|
54
|
-
subTitle?: string;
|
|
55
|
-
}
|
|
56
|
-
interface ISearchProps extends Pick<ITextFieldProps, "placeholder" | "hidden" | "onChange" | "value"> {
|
|
57
|
-
/**
|
|
58
|
-
* Props to control the onSearch function debounceTime
|
|
59
|
-
*/
|
|
60
|
-
debounceTime?: number;
|
|
61
|
-
/**
|
|
62
|
-
* Attach the debounced search function
|
|
63
|
-
*/
|
|
64
|
-
onSearch?: (value: string) => void;
|
|
65
|
-
}
|
|
66
|
-
interface IPaginationProps {
|
|
67
|
-
onPageSizeChange?: (args: number) => void;
|
|
68
|
-
onPageChange?: (args: number) => void;
|
|
69
|
-
totalRecords?: number;
|
|
70
|
-
offset?: number;
|
|
71
|
-
pageSize?: number;
|
|
72
|
-
}
|
|
73
|
-
type FilterOption = {
|
|
74
|
-
label: string;
|
|
75
|
-
value: string;
|
|
76
|
-
};
|
|
77
|
-
type Filters = {
|
|
78
|
-
[key: string]: FilterOption | FilterOption[];
|
|
79
|
-
};
|
|
80
|
-
interface ITableProps<T> {
|
|
81
|
-
/**
|
|
82
|
-
* Defines the column structure for the Data Table, including column headers,
|
|
83
|
-
* accessors, and any additional configurations.
|
|
84
|
-
*/
|
|
85
|
-
columns: IColumn[];
|
|
86
|
-
/**
|
|
87
|
-
* The array of data objects that will populate the rows of the Data Table.
|
|
88
|
-
*/
|
|
89
|
-
data: T[];
|
|
90
|
-
/**
|
|
91
|
-
* Optional: Provide custom class names as a space-separated
|
|
92
|
-
* string to override the default Data Table styling.
|
|
93
|
-
*/
|
|
94
|
-
className?: string;
|
|
95
|
-
/**
|
|
96
|
-
* Configuration for applying advanced filters to the Data Table.
|
|
97
|
-
* Allows complex filtering logic and customization.
|
|
98
|
-
*/
|
|
99
|
-
advancedFilters?: AdvancedFilterItem[];
|
|
100
|
-
/**
|
|
101
|
-
* Configuration for applying basic filters to the Data Table.
|
|
102
|
-
* Enables simple filtering by key-value pairs.
|
|
103
|
-
* Showing maximum 3 basic filters in the table.
|
|
104
|
-
*/
|
|
105
|
-
basicFilters?: FilterItem[];
|
|
106
|
-
/**
|
|
107
|
-
* Allows to set filters by key-value pairs.
|
|
108
|
-
*/
|
|
109
|
-
filters?: Filters;
|
|
110
|
-
/**
|
|
111
|
-
* A callback function used to update the list of applied filters.
|
|
112
|
-
*/
|
|
113
|
-
setFilters?: (filters: Filters) => void;
|
|
114
|
-
/**
|
|
115
|
-
* Boolean value to display a loading state in the Data Table,
|
|
116
|
-
* typically while loading or processing data.
|
|
117
|
-
* @default false
|
|
118
|
-
*/
|
|
119
|
-
loading?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* A callback function triggered to refresh the Data Table,
|
|
122
|
-
* typically re-fetching or updating the data.
|
|
123
|
-
*/
|
|
124
|
-
onRefresh?: () => void;
|
|
125
|
-
/**
|
|
126
|
-
* To adjust the width of the columns
|
|
127
|
-
* @default false
|
|
128
|
-
*/
|
|
129
|
-
resizable?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* To adding virtualization for column in the data table
|
|
132
|
-
* @default true
|
|
133
|
-
*/
|
|
134
|
-
columnVirtualization?: boolean;
|
|
135
|
-
/**
|
|
136
|
-
* To adding virtualization for row in the data table
|
|
137
|
-
* @default true
|
|
138
|
-
*/
|
|
139
|
-
rowVirtualization?: boolean;
|
|
140
|
-
/**
|
|
141
|
-
* To pin the first columns of the data table
|
|
142
|
-
* @default true
|
|
143
|
-
*/
|
|
144
|
-
pinnedFirstColumn?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* To make the row selectable by showing checkboxes
|
|
147
|
-
* @default false
|
|
148
|
-
*/
|
|
149
|
-
selectable?: boolean;
|
|
150
|
-
/**
|
|
151
|
-
* Callback function triggered on row selection.
|
|
152
|
-
* @param selectedRows - Index List of the selected rows
|
|
153
|
-
*/
|
|
154
|
-
onRowSelection?: (selectedRows: object) => void;
|
|
155
|
-
/**
|
|
156
|
-
* Allows to set sort by using key-value pair.
|
|
157
|
-
*/
|
|
158
|
-
sorting?: SortingState;
|
|
159
|
-
/**
|
|
160
|
-
* Callback function triggered on row sorting.
|
|
161
|
-
* @param sortState - Index List of the selected rows
|
|
162
|
-
*/
|
|
163
|
-
setSorting?: OnChangeFn<SortingState> | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* Allows to set pagination props.
|
|
166
|
-
*/
|
|
167
|
-
paginationProps?: IPaginationProps;
|
|
168
|
-
/**
|
|
169
|
-
* To Adjust the height of the table.
|
|
170
|
-
* @default 100%
|
|
171
|
-
*/
|
|
172
|
-
height?: string;
|
|
173
|
-
/**
|
|
174
|
-
* To set the page size option
|
|
175
|
-
* @default PAGE_SIZE_OPTIONS
|
|
176
|
-
*/
|
|
177
|
-
pageSizeOptions?: number[];
|
|
178
|
-
/**
|
|
179
|
-
* To add the custom CTAs
|
|
180
|
-
*/
|
|
181
|
-
customCTAs?: ReactNode;
|
|
182
|
-
/**
|
|
183
|
-
* Callback function triggered on change of Column Preferences.
|
|
184
|
-
* @param columns - columns array with updated order and selected key value
|
|
185
|
-
*/
|
|
186
|
-
setColumns: (columns: IColumn[]) => void;
|
|
187
|
-
/**
|
|
188
|
-
* Allows to set search textfield props.
|
|
189
|
-
*/
|
|
190
|
-
searchProps?: ISearchProps;
|
|
191
|
-
}
|
|
192
|
-
export declare const DataTable: <T extends object>({ advancedFilters, basicFilters, className, columns, data, filters, loading, paginationProps, resizable, selectable, sorting, columnVirtualization, rowVirtualization, height, pageSizeOptions, customCTAs, searchProps, setFilters, setSorting, onRefresh, onRowSelection, setColumns }: ITableProps<T>) => ReactNode;
|
|
193
|
-
export default DataTable;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type IRecordsChangeModal = {
|
|
2
|
-
show: boolean;
|
|
3
|
-
toggleVisibility: () => void;
|
|
4
|
-
onPageSizeChange?: (args: number) => void;
|
|
5
|
-
onPageChange?: (args: number) => void;
|
|
6
|
-
pageSize: number;
|
|
7
|
-
pageSizeOptions?: number[];
|
|
8
|
-
};
|
|
9
|
-
declare const PageSizeModal: ({ show, pageSize, pageSizeOptions, toggleVisibility, onPageSizeChange: setPageSize, onPageChange }: IRecordsChangeModal) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default PageSizeModal;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type FilterItem } from ".";
|
|
2
|
-
interface FilterOption {
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}
|
|
6
|
-
interface SelectedFilters {
|
|
7
|
-
[key: string]: FilterOption[] | {
|
|
8
|
-
label: string;
|
|
9
|
-
value: string;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
interface SelectedFilterListProps {
|
|
13
|
-
advancedFilters?: FilterItem[];
|
|
14
|
-
selectedFilters: SelectedFilters;
|
|
15
|
-
basicFilters?: FilterItem[];
|
|
16
|
-
handleRemoveFilter: (filterId: string, index: number) => void;
|
|
17
|
-
handleClearAllSelectedFilters: () => void;
|
|
18
|
-
}
|
|
19
|
-
declare const SelectedFilterList: ({ advancedFilters, selectedFilters, basicFilters, handleRemoveFilter, handleClearAllSelectedFilters }: SelectedFilterListProps) => false | import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export default SelectedFilterList;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type Table } from "@tanstack/react-table";
|
|
2
|
-
export type ITable<T> = {
|
|
3
|
-
table: Table<T>;
|
|
4
|
-
/**
|
|
5
|
-
* Enable column virtualization
|
|
6
|
-
* @default false
|
|
7
|
-
*/
|
|
8
|
-
columnVirtualization?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Enable row virtualization
|
|
11
|
-
* @default false
|
|
12
|
-
*/
|
|
13
|
-
rowVirtualization?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Make the columns selectable
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
selectable?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Loading state of the table
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
loading?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Enable column resizing
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
resizable?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Height of the table
|
|
31
|
-
* @default "auto"
|
|
32
|
-
*/
|
|
33
|
-
height?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Enable RTL mode
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
isRtl?: boolean;
|
|
39
|
-
};
|
|
40
|
-
declare const Table: <T extends object>({ table, columnVirtualization, rowVirtualization, selectable, resizable, loading, height, isRtl }: ITable<T>) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
export default Table;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ColumnHelper } from "@tanstack/react-table";
|
|
2
|
-
import { IColumn } from ".";
|
|
3
|
-
export declare const deriveConfiguredColumns: (rawColumns: IColumn[], selectable: boolean, columnHelper: ColumnHelper<any>) => import("@tanstack/react-table").AccessorKeyColumnDef<any, any>[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DatePickerProps } from "react-datepicker";
|
|
2
|
-
import { Props as TextFieldProps } from "../textField";
|
|
3
|
-
export type Props = (DatePickerProps & {
|
|
4
|
-
inline?: false;
|
|
5
|
-
textFieldProps?: Omit<TextFieldProps, "ref" | "onBlur" | "onFocus" | "disabled">;
|
|
6
|
-
}) | (DatePickerProps & {
|
|
7
|
-
inline?: true;
|
|
8
|
-
textFieldProps?: never;
|
|
9
|
-
});
|
|
10
|
-
export declare function DatePicker({ inline, selected, showTimeSelect, textFieldProps, ...restProps }: Props): JSX.Element | null;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type DropDownItemProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
dropdownShow?: boolean;
|
|
5
|
-
index?: number;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
setShowDropdown?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
-
onClickHandler?: (e?: React.SyntheticEvent) => void;
|
|
9
|
-
className?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const DropdownItem: ({ children, dropdownShow, index, className, disabled, setShowDropdown, onClickHandler }: DropDownItemProps) => JSX.Element | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type DropDownTogglerProps = {
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
onClick?: (e: React.SyntheticEvent) => void;
|
|
5
|
-
ref?: React.MutableRefObject<HTMLButtonElement | null>;
|
|
6
|
-
ctaClassName?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare const Toggler: React.ForwardRefExoticComponent<Omit<DropDownTogglerProps, "ref"> & React.RefAttributes<HTMLButtonElement | null>>;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement, ReactNode } from "react";
|
|
2
|
-
import { DropDownItemProps } from "./dropdownItem";
|
|
3
|
-
export declare enum DropdownSizes {
|
|
4
|
-
MD = "md",
|
|
5
|
-
LG = "lg"
|
|
6
|
-
}
|
|
7
|
-
export type DropdownSize = `${DropdownSizes}`;
|
|
8
|
-
export type Props = {
|
|
9
|
-
/**
|
|
10
|
-
* Size of the dropdown.
|
|
11
|
-
* @default md
|
|
12
|
-
*/
|
|
13
|
-
size?: DropdownSize;
|
|
14
|
-
/**
|
|
15
|
-
* Use to show the title or header
|
|
16
|
-
*/
|
|
17
|
-
header?: ReactNode | string;
|
|
18
|
-
children?: React.ReactNode;
|
|
19
|
-
/** JSX to be rendered inside of dropdown button */
|
|
20
|
-
ctaContent?: React.ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Pass a reference to the element where the dropdown needs to be rendered
|
|
23
|
-
*/
|
|
24
|
-
portalTarget?: Element;
|
|
25
|
-
/** Pass space separated class names to style the CTA */
|
|
26
|
-
ctaClassName?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Determines whether the CTA should be disabled or not
|
|
29
|
-
*/
|
|
30
|
-
disabled?: boolean;
|
|
31
|
-
};
|
|
32
|
-
export declare const Dropdown: {
|
|
33
|
-
({ size, children, header, ctaContent, portalTarget, disabled, ctaClassName }: Props): ReactElement | null;
|
|
34
|
-
Item: ({ children, dropdownShow, index, className, disabled, setShowDropdown, onClickHandler }: DropDownItemProps) => JSX.Element | null;
|
|
35
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
export interface EmptyStateContentProps {
|
|
3
|
-
/**
|
|
4
|
-
* Provide custom classes for the component
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
|
-
title?: string;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
export declare const EmptyStateContent: ({ className, title, children }: EmptyStateContentProps) => ReactElement | null;
|
|
11
|
-
export default EmptyStateContent;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { Props as ButtonProps } from "../button";
|
|
3
|
-
export interface EmptyStateCTAProps {
|
|
4
|
-
/**
|
|
5
|
-
* Provide custom classes for the component
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
children?: ReactElement<ButtonProps> | Array<ReactElement<ButtonProps>>;
|
|
9
|
-
}
|
|
10
|
-
export declare const EmptyStateCTA: ({ className, children }: EmptyStateCTAProps) => ReactElement | null;
|
|
11
|
-
export default EmptyStateCTA;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { EmptyStateContentProps } from "./emptyStateContent";
|
|
3
|
-
import { EmptyStateCTAProps } from "./emptyStateCta";
|
|
4
|
-
export declare const imageVariants: readonly ["notifications", "no-access", "forgot-password", "otp", "login", "analytics", "file-upload", "searching", "dashboard", "workspaces", "favorite", "empty-data", "data-upload", "no-connection", "no-files", "datapipeline", "empty-data-2", "empty-data-3", "empty-data-4", "waiting", "check-list"];
|
|
5
|
-
type ImageVariantType = typeof imageVariants[number];
|
|
6
|
-
export interface EmptyStateProps {
|
|
7
|
-
/**
|
|
8
|
-
* Set a supported Empty State Image variant
|
|
9
|
-
*/
|
|
10
|
-
imageVariant?: ImageVariantType;
|
|
11
|
-
/**
|
|
12
|
-
* The alt text for the EmptyState component image.
|
|
13
|
-
* The alt text will on be applied if there is no EmptyStateContent.
|
|
14
|
-
* @default ""
|
|
15
|
-
*/
|
|
16
|
-
imageAltText?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Pass a custom image to the EmptyState component,
|
|
19
|
-
* must be a valid HTML image element
|
|
20
|
-
* @default null
|
|
21
|
-
*/
|
|
22
|
-
customImage?: ReactElement<HTMLImageElement>;
|
|
23
|
-
/**
|
|
24
|
-
* Override the default classes by providing a custom class
|
|
25
|
-
*/
|
|
26
|
-
className?: string;
|
|
27
|
-
children?: ReactElement<EmptyStateContentProps> | ReactElement<EmptyStateCTAProps> | [ReactElement<EmptyStateContentProps>, ReactElement<EmptyStateCTAProps>];
|
|
28
|
-
}
|
|
29
|
-
export declare const EmptyState: {
|
|
30
|
-
({ className, imageVariant, imageAltText, customImage, children }: EmptyStateProps): ReactElement | null;
|
|
31
|
-
Content: ({ className, title, children }: EmptyStateContentProps) => ReactElement | null;
|
|
32
|
-
CTA: ({ className, children }: EmptyStateCTAProps) => ReactElement | null;
|
|
33
|
-
};
|
|
34
|
-
export default EmptyState;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface FileUploadProps {
|
|
3
|
-
/**
|
|
4
|
-
* Array of accepted file extensions
|
|
5
|
-
* @example [".json", ".csv"]
|
|
6
|
-
* @default []
|
|
7
|
-
*/
|
|
8
|
-
acceptedExtensions: string[];
|
|
9
|
-
/**
|
|
10
|
-
* Custom message displayed in the drop area
|
|
11
|
-
*/
|
|
12
|
-
dropAreaCustomMessage?: React.ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* State tracking the upload progress and error messages for each file.
|
|
15
|
-
* @default null
|
|
16
|
-
*/
|
|
17
|
-
uploadState: Record<string, {
|
|
18
|
-
error: boolean;
|
|
19
|
-
helperText?: React.ReactNode;
|
|
20
|
-
progress: number;
|
|
21
|
-
}> | null;
|
|
22
|
-
/**
|
|
23
|
-
* Determines if multiple file uploads are allowed.
|
|
24
|
-
* When `false`, only one file can be selected or dropped at a time.
|
|
25
|
-
* @default true
|
|
26
|
-
*/
|
|
27
|
-
multiple?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Disables the upload functionality.
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
disabled?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Additional informational text to display about file requirements or upload instructions.
|
|
35
|
-
* @default null
|
|
36
|
-
*/
|
|
37
|
-
infoText?: React.ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
* Maximum allowed file size in bytes.
|
|
40
|
-
* @example 5 * 1024 * 1024 (5 MB)
|
|
41
|
-
*/
|
|
42
|
-
maxFileSize?: number;
|
|
43
|
-
/**
|
|
44
|
-
* Function to retry uploading files that failed during the initial upload attempt.
|
|
45
|
-
* Called when user wants to retry uploading files that encountered errors.
|
|
46
|
-
*/
|
|
47
|
-
retryFailedUpload?: () => void;
|
|
48
|
-
/**
|
|
49
|
-
* Function to reset the upload state.
|
|
50
|
-
*/
|
|
51
|
-
resetUploadState: () => void;
|
|
52
|
-
/**
|
|
53
|
-
* Function triggered after file validation to handle the upload logic.
|
|
54
|
-
* Receives either a single file or an array of files based on the `multiple` prop.
|
|
55
|
-
*/
|
|
56
|
-
handleUpload: (file: File | File[]) => void;
|
|
57
|
-
}
|
|
58
|
-
export declare const FileUpload: ({ acceptedExtensions, dropAreaCustomMessage, resetUploadState, handleUpload, uploadState, multiple, disabled, infoText, maxFileSize, retryFailedUpload }: FileUploadProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface StatusCardProps {
|
|
3
|
-
fileEntry: {
|
|
4
|
-
file: File;
|
|
5
|
-
state: string;
|
|
6
|
-
};
|
|
7
|
-
uploadState: Record<string, {
|
|
8
|
-
error: boolean;
|
|
9
|
-
helperText?: React.ReactNode;
|
|
10
|
-
progress: number;
|
|
11
|
-
}> | null;
|
|
12
|
-
maxFileSize?: number;
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
acceptedExtensions: string[];
|
|
15
|
-
removeFile: (fileName: string) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare const StatusCard: ({ fileEntry, uploadState, maxFileSize, disabled, acceptedExtensions, removeFile }: StatusCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const AllStateStory: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ReactElement, ReactNode } from "react";
|
|
2
|
-
export declare enum LoaderSizes {
|
|
3
|
-
SM = "sm",
|
|
4
|
-
MD = "md",
|
|
5
|
-
LG = "lg"
|
|
6
|
-
}
|
|
7
|
-
export type LoaderSize = `${LoaderSizes}`;
|
|
8
|
-
export interface Props {
|
|
9
|
-
/**
|
|
10
|
-
* Variant of the Loader.
|
|
11
|
-
* @default filled
|
|
12
|
-
*/
|
|
13
|
-
variant?: "filled" | "stroked";
|
|
14
|
-
/**
|
|
15
|
-
* Size of the Loader.
|
|
16
|
-
* @default md
|
|
17
|
-
*/
|
|
18
|
-
size?: LoaderSize;
|
|
19
|
-
/**
|
|
20
|
-
* Regular static label.
|
|
21
|
-
*/
|
|
22
|
-
label?: ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* Overwrite the styles for the SVG by passing space separated class names.
|
|
25
|
-
*/
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const Loader: ({ variant, label, size, className }: Props) => ReactElement;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ReactElement, RefObject } from "react";
|
|
2
|
-
import { ModalHeaderProps } from "./modalHeader";
|
|
3
|
-
import { ModalBodyProps } from "./modalBody";
|
|
4
|
-
export interface Props {
|
|
5
|
-
/**
|
|
6
|
-
* Control modal’s visibility
|
|
7
|
-
*/
|
|
8
|
-
showModal: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Modal content
|
|
11
|
-
*/
|
|
12
|
-
children: ReactElement<ModalBodyProps> | [ReactElement<ModalHeaderProps>, ReactElement<ModalBodyProps>];
|
|
13
|
-
/**
|
|
14
|
-
* Overwrite the Modal styles by passing space separated class names
|
|
15
|
-
*/
|
|
16
|
-
className?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Sets the modal content to right-to-left
|
|
19
|
-
*/
|
|
20
|
-
rtl?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Hide the modal on esc key press
|
|
23
|
-
* @default true
|
|
24
|
-
*/
|
|
25
|
-
escKeyClose?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Show/hide the close button within the modal
|
|
28
|
-
* @default true
|
|
29
|
-
*/
|
|
30
|
-
closeButton?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Pass a reference to the element where the Modal needs to be rendered
|
|
33
|
-
* @default document.body
|
|
34
|
-
*/
|
|
35
|
-
portalTarget?: HTMLElement;
|
|
36
|
-
/**
|
|
37
|
-
* A list of Refs to be considered as a part of the Lock. The html elements in the list will be accessible while the Modal is open.
|
|
38
|
-
*/
|
|
39
|
-
shards?: (HTMLElement | RefObject<any>)[];
|
|
40
|
-
/**
|
|
41
|
-
* Callback function for onHide
|
|
42
|
-
*/
|
|
43
|
-
onHide?: () => void;
|
|
44
|
-
}
|
|
45
|
-
export declare function Modal({ className, rtl, children, showModal, escKeyClose, closeButton, portalTarget, shards, onHide }: Props): ReactElement | null;
|
|
46
|
-
export declare namespace Modal {
|
|
47
|
-
var Header: ({ children, className }: ModalHeaderProps) => ReactElement | null;
|
|
48
|
-
var Body: ({ className, children }: ModalBodyProps) => ReactElement | null;
|
|
49
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
export interface ModalBodyProps {
|
|
3
|
-
/**
|
|
4
|
-
* Modal Body
|
|
5
|
-
*/
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Dynamically updates the classes applied to the component
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const ModalBody: ({ className, children }: ModalBodyProps) => ReactElement | null;
|
|
13
|
-
export default ModalBody;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
export interface ModalHeaderProps {
|
|
3
|
-
/**
|
|
4
|
-
* Header of the Modal
|
|
5
|
-
*/
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Dynamically updates the classes applied to the component
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const ModalHeader: ({ children, className }: ModalHeaderProps) => ReactElement | null;
|
|
13
|
-
export default ModalHeader;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
export interface Props {
|
|
3
|
-
/**
|
|
4
|
-
* Value of the OTP input.
|
|
5
|
-
*/
|
|
6
|
-
initialValue?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Pass a regex to restrict what can be entered in the OTP input.
|
|
9
|
-
*/
|
|
10
|
-
regexValidation?: string;
|
|
11
|
-
/**
|
|
12
|
-
* Callback triggered when the OTP input value changes.
|
|
13
|
-
*/
|
|
14
|
-
onChange?: (val: string) => void;
|
|
15
|
-
onBlur?: React.FocusEventHandler<HTMLDivElement>;
|
|
16
|
-
onFocus?: React.FocusEventHandler<HTMLDivElement>;
|
|
17
|
-
/**
|
|
18
|
-
* Regular static label.
|
|
19
|
-
*/
|
|
20
|
-
label?: ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* Pass OTP length.
|
|
23
|
-
* @default 6
|
|
24
|
-
*/
|
|
25
|
-
otpLength?: number;
|
|
26
|
-
/**
|
|
27
|
-
* Overwrite the style by passing space separated class names.
|
|
28
|
-
*/
|
|
29
|
-
className?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Additional information or guidance displayed below the OTP input.
|
|
32
|
-
*/
|
|
33
|
-
helperText?: ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Pass a boolean value to indicate if the OTP input is in an error state.
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
error?: boolean;
|
|
39
|
-
disabled?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export declare const OtpInput: ({ initialValue, regexValidation, onChange, onBlur, onFocus, label, helperText, error, otpLength, className, disabled }: Props) => JSX.Element | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { KeyboardEventHandler, ChangeEventHandler } from "react";
|
|
2
|
-
interface Props {
|
|
3
|
-
value: string;
|
|
4
|
-
handleChange: ChangeEventHandler<HTMLInputElement>;
|
|
5
|
-
handleKeyDown: KeyboardEventHandler<HTMLInputElement>;
|
|
6
|
-
focused: boolean;
|
|
7
|
-
index: number;
|
|
8
|
-
id: string;
|
|
9
|
-
error: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const Input: ({ value, focused, handleChange, handleKeyDown, index, id, error }: Props) => JSX.Element;
|
|
12
|
-
export {};
|