@cloudwick/astral-ui 3.0.7 → 5.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 +1966 -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.d.ts +2 -61
- 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 +140 -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 +36 -14
- 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/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,28 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
export interface BreadcrumbItemProps {
|
|
3
|
-
/**
|
|
4
|
-
* Location href for the breadcrumbs item anchor element
|
|
5
|
-
*/
|
|
6
|
-
href?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Target property for the breadcrumbs item anchor element.
|
|
9
|
-
*/
|
|
10
|
-
target?: "_blank" | "_self";
|
|
11
|
-
/**
|
|
12
|
-
* When set to true the user can pass any custom link component as children instead of using the default <a> tag.
|
|
13
|
-
*/
|
|
14
|
-
customLink?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Make the current breadcrumbs item as active
|
|
17
|
-
*/
|
|
18
|
-
active?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Accepts space separated className names to override the styles
|
|
21
|
-
*/
|
|
22
|
-
className?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Accepts React.ReactNode as children
|
|
25
|
-
*/
|
|
26
|
-
children: React.ReactNode;
|
|
27
|
-
}
|
|
28
|
-
export declare const BreadcrumbItem: ({ href, active, target, customLink, className, children }: BreadcrumbItemProps) => ReactElement | null;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { BreadcrumbItemProps } from "./breadcrumbItem";
|
|
3
|
-
export interface Props {
|
|
4
|
-
/**
|
|
5
|
-
* Accepts space-separated className names to override the styles
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* The maximum number of items to display in the breadcrumbs
|
|
10
|
-
* @default 10
|
|
11
|
-
* @range 2 - maxItems
|
|
12
|
-
*/
|
|
13
|
-
maxItems?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Accepts Breadcrumbs.Item[]
|
|
16
|
-
*/
|
|
17
|
-
children?: ReactElement<BreadcrumbItemProps> | Array<ReactElement<BreadcrumbItemProps>>;
|
|
18
|
-
/**
|
|
19
|
-
* Determines the separator type: "arrow" for ">", "dot" for "."
|
|
20
|
-
* @default "arrow"
|
|
21
|
-
*/
|
|
22
|
-
separatorType?: "arrow" | "dot";
|
|
23
|
-
}
|
|
24
|
-
export declare const Breadcrumbs: {
|
|
25
|
-
({ maxItems, className, children, separatorType }: Props): ReactElement | null;
|
|
26
|
-
Item: ({ href, active, target, customLink, className, children }: BreadcrumbItemProps) => ReactElement | null;
|
|
27
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import type { Placement } from "@floating-ui/react";
|
|
3
|
-
import { type IconType } from "../adpIcon";
|
|
4
|
-
export declare const colors: readonly ["primary", "secondary", "success", "warning", "error"];
|
|
5
|
-
export declare const variants: readonly ["filled", "outline", "shade", "text"];
|
|
6
|
-
export declare enum Sizes {
|
|
7
|
-
XS = "xs",
|
|
8
|
-
SM = "sm",
|
|
9
|
-
MD = "md",
|
|
10
|
-
LG = "lg",
|
|
11
|
-
XL = "xl"
|
|
12
|
-
}
|
|
13
|
-
type Color = (typeof colors)[number];
|
|
14
|
-
type Variant = (typeof variants)[number];
|
|
15
|
-
type Size = `${Sizes}`;
|
|
16
|
-
export interface Props extends Omit<React.ComponentPropsWithoutRef<"button">, "css"> {
|
|
17
|
-
/**
|
|
18
|
-
* Size of the button.
|
|
19
|
-
* @default md
|
|
20
|
-
*/
|
|
21
|
-
size?: Size;
|
|
22
|
-
/**
|
|
23
|
-
* Color of the button.
|
|
24
|
-
* @default primary
|
|
25
|
-
*/
|
|
26
|
-
color?: Color;
|
|
27
|
-
/**
|
|
28
|
-
* Variant of the button.
|
|
29
|
-
* @default filled
|
|
30
|
-
*/
|
|
31
|
-
variant?: Variant;
|
|
32
|
-
children?: React.ReactNode;
|
|
33
|
-
/**
|
|
34
|
-
* Shows loading animation instead of the button content
|
|
35
|
-
*/
|
|
36
|
-
loading?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Type of the button
|
|
39
|
-
*/
|
|
40
|
-
type?: "button" | "submit" | "reset";
|
|
41
|
-
/**
|
|
42
|
-
* Prop to disable the Button
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
disabled?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Pass space separated class names to override the Button styling
|
|
48
|
-
*/
|
|
49
|
-
className?: string;
|
|
50
|
-
/**
|
|
51
|
-
* Icon to be displayed before the button's content.
|
|
52
|
-
* @description
|
|
53
|
-
* This prop accepts either an IconType (string) or a ReactNode.
|
|
54
|
-
* - If an IconType is provided, it will render an ADPIcon component.
|
|
55
|
-
* - If a ReactNode is provided, it will be rendered as-is.
|
|
56
|
-
*/
|
|
57
|
-
prefixIcon?: IconType | ReactNode;
|
|
58
|
-
/**
|
|
59
|
-
* Icon to be displayed after the button's content.
|
|
60
|
-
* @description
|
|
61
|
-
* This prop accepts either an IconType (string) or a ReactNode.
|
|
62
|
-
* - If an IconType is provided, it will render an ADPIcon component.
|
|
63
|
-
* - If a ReactNode is provided, it will be rendered as-is.
|
|
64
|
-
*/
|
|
65
|
-
suffixIcon?: IconType | ReactNode;
|
|
66
|
-
/**
|
|
67
|
-
* Tooltip to be displayed on hover of the button.
|
|
68
|
-
* @description
|
|
69
|
-
* This prop accepts a ReactNode, if this is passed then the button will render
|
|
70
|
-
* tooltip on hover of the button.
|
|
71
|
-
* This tooltip is only on hover and not on click.
|
|
72
|
-
*/
|
|
73
|
-
tooltip?: ReactNode;
|
|
74
|
-
/**
|
|
75
|
-
* Placement of the tooltip
|
|
76
|
-
* @default "bottom-end"
|
|
77
|
-
*/
|
|
78
|
-
tooltipPlacement?: Placement;
|
|
79
|
-
/**
|
|
80
|
-
* Callback function to be called when the button is clicked
|
|
81
|
-
*/
|
|
82
|
-
onClick?: (event?: React.MouseEvent<HTMLButtonElement>) => void;
|
|
83
|
-
}
|
|
84
|
-
export declare const ButtonSizeToSpinnerMap: Record<Size, "xxs" | "xs" | "sm" | "md" | "lg" | "xl">;
|
|
85
|
-
export declare const Button: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement>>;
|
|
86
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { type ReactElement } from "react";
|
|
2
|
-
export interface CardBodyProps {
|
|
3
|
-
/**
|
|
4
|
-
* Override the styles for the Card.Body by passing space separated class names
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Accepts children of ReactNode type
|
|
9
|
-
*/
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare const CardBody: ({ className, children }: CardBodyProps) => ReactElement | null;
|
|
13
|
-
export default CardBody;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { type ReactElement } from "react";
|
|
2
|
-
export interface CardFooterProps {
|
|
3
|
-
/**
|
|
4
|
-
* Override the styles for the Card.Footer by passing space separated class names
|
|
5
|
-
*/
|
|
6
|
-
className?: string;
|
|
7
|
-
/**
|
|
8
|
-
* Accepts children of ReactNode type
|
|
9
|
-
*/
|
|
10
|
-
children?: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare const CardFooter: ({ className, children }: CardFooterProps) => ReactElement | null;
|
|
13
|
-
export default CardFooter;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
-
import { CTAGroupProps } from "../ctaGroup";
|
|
3
|
-
export interface CardHeaderProps {
|
|
4
|
-
/**
|
|
5
|
-
* Override the styles for the Card.Header by passing space separated class names
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Title of the card
|
|
10
|
-
*/
|
|
11
|
-
title?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Custom content that can be shown between the Card title and the CTAGroup
|
|
14
|
-
*/
|
|
15
|
-
children?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Props for the CTAGroup component. Pass an object with the props for the CTAGroup.
|
|
18
|
-
*/
|
|
19
|
-
ctaGroupProps?: CTAGroupProps;
|
|
20
|
-
}
|
|
21
|
-
export declare const CardHeader: ({ className, title, children, ctaGroupProps }: CardHeaderProps) => ReactElement | null;
|
|
22
|
-
export default CardHeader;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type ReactElement } from "react";
|
|
2
|
-
import { CardHeader, type CardHeaderProps } from "./cardHeader";
|
|
3
|
-
import { CardBody, type CardBodyProps } from "./cardBody";
|
|
4
|
-
import { CardFooter, type CardFooterProps } from "./cardFooter";
|
|
5
|
-
export interface Props {
|
|
6
|
-
/**
|
|
7
|
-
* Pass space separated class names to override the Card styling
|
|
8
|
-
*/
|
|
9
|
-
className?: string;
|
|
10
|
-
/**
|
|
11
|
-
* Accepts Card.Body or [Card.Header, Card.Body]
|
|
12
|
-
* or [Card.Header, Card.Body, Card.Footer]
|
|
13
|
-
* or [Card.Body, Card.Footer]
|
|
14
|
-
*/
|
|
15
|
-
children: ReactElement<CardBodyProps, typeof CardBody> | [ReactElement<CardHeaderProps, typeof CardHeader>, ReactElement<CardBodyProps, typeof CardBody>] | [ReactElement<CardHeaderProps, typeof CardHeader>, ReactElement<CardBodyProps, typeof CardBody>, ReactElement<CardFooterProps, typeof CardFooter>] | [ReactElement<CardBodyProps, typeof CardBody>, ReactElement<CardFooterProps>];
|
|
16
|
-
}
|
|
17
|
-
export declare const Card: {
|
|
18
|
-
({ className, children }: Props): ReactElement | null;
|
|
19
|
-
Header: ({ className, title, children, ctaGroupProps }: CardHeaderProps) => ReactElement | null;
|
|
20
|
-
Body: ({ className, children }: CardBodyProps) => ReactElement | null;
|
|
21
|
-
Footer: ({ className, children }: CardFooterProps) => ReactElement | null;
|
|
22
|
-
};
|
|
23
|
-
export default Card;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React, { RefObject } from "react";
|
|
2
|
-
export interface CheckboxProps extends Omit<React.HTMLProps<HTMLInputElement>, "label" | "size"> {
|
|
3
|
-
label?: React.ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Size of the Checkbox
|
|
6
|
-
* @default md
|
|
7
|
-
*/
|
|
8
|
-
size?: "sm" | "md" | "lg";
|
|
9
|
-
/**
|
|
10
|
-
* Variant of the Checkbox
|
|
11
|
-
* @default filled
|
|
12
|
-
*/
|
|
13
|
-
variant?: "filled" | "outline" | "filled-circle" | "outline-circle";
|
|
14
|
-
/**
|
|
15
|
-
* Pass a ref to the inner input element
|
|
16
|
-
*/
|
|
17
|
-
ref?: RefObject<HTMLInputElement>;
|
|
18
|
-
}
|
|
19
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
import { CheckboxProps } from "../checkbox";
|
|
3
|
-
export declare enum CheckboxGroupSizes {
|
|
4
|
-
SM = "sm",
|
|
5
|
-
MD = "md",
|
|
6
|
-
LG = "lg"
|
|
7
|
-
}
|
|
8
|
-
export type CheckboxGroupSize = `${CheckboxGroupSizes}`;
|
|
9
|
-
export interface Props extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
|
|
10
|
-
/**
|
|
11
|
-
* Size of the Checkbox group.
|
|
12
|
-
* @default md
|
|
13
|
-
*/
|
|
14
|
-
size?: CheckboxGroupSize;
|
|
15
|
-
/**
|
|
16
|
-
* Pass space separated class names to override the CheckboxGroup styling
|
|
17
|
-
*/
|
|
18
|
-
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Pass boolean value to disable the component.
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Selected values
|
|
26
|
-
*/
|
|
27
|
-
selectedValues?: unknown[];
|
|
28
|
-
/**
|
|
29
|
-
* An array of objects of checkbox props type
|
|
30
|
-
*/
|
|
31
|
-
options?: CheckboxProps[];
|
|
32
|
-
/**
|
|
33
|
-
* Callback function that is called when the checkbox group selection changes.
|
|
34
|
-
* An array of selected values is passed as an argument to the function.
|
|
35
|
-
*/
|
|
36
|
-
onChange?: (arg: unknown[]) => void;
|
|
37
|
-
/**
|
|
38
|
-
* Placement of the checkbox
|
|
39
|
-
* @default "end"
|
|
40
|
-
*/
|
|
41
|
-
checkboxPlacement?: "start" | "end";
|
|
42
|
-
}
|
|
43
|
-
export declare const CheckboxGroup: ({ size, options, onChange, className, selectedValues, disabled, checkboxPlacement }: Props) => ReactElement;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface CTAGroupProps {
|
|
3
|
-
/**
|
|
4
|
-
* List of CTAs which render as icons or as dropdown items in case of mobile view
|
|
5
|
-
*/
|
|
6
|
-
ctaList: {
|
|
7
|
-
/**
|
|
8
|
-
* Callback to execute when the CTA is clicked
|
|
9
|
-
*/
|
|
10
|
-
callback: () => void;
|
|
11
|
-
/**
|
|
12
|
-
* Icon to render inside the CTA
|
|
13
|
-
*/
|
|
14
|
-
icon: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Label for the CTA. The label is also displayed as a tooltip when shrink is set to false.
|
|
17
|
-
*/
|
|
18
|
-
label: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* Determines whether the CTA should be disabled or not
|
|
21
|
-
*/
|
|
22
|
-
disabled?: boolean;
|
|
23
|
-
}[];
|
|
24
|
-
/**
|
|
25
|
-
* Determines whether to show the CTAGroup as a dropdown
|
|
26
|
-
*/
|
|
27
|
-
shrink?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Overwrite the CTAGroup styles by passing space separated class names
|
|
30
|
-
*/
|
|
31
|
-
className?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Pass a reference to the element where the dropdown needs to be rendered
|
|
34
|
-
*/
|
|
35
|
-
dropdownPortalTarget?: Element;
|
|
36
|
-
/**
|
|
37
|
-
* If the number of CTAs is greater than the threshold, then the extra CTAs are rendered in a dropdown
|
|
38
|
-
*/
|
|
39
|
-
threshold?: number;
|
|
40
|
-
/**
|
|
41
|
-
* If true, the label will always be shown next to the icon
|
|
42
|
-
* @default false
|
|
43
|
-
*/
|
|
44
|
-
showLabels?: boolean;
|
|
45
|
-
}
|
|
46
|
-
export declare const CTAGroup: ({ ctaList, shrink, className, dropdownPortalTarget, threshold, showLabels }: CTAGroupProps) => JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type FilterItem } from ".";
|
|
2
|
-
interface AdvancedFilterProps {
|
|
3
|
-
advancedFilters?: FilterItem[];
|
|
4
|
-
basicFilters?: FilterItem[];
|
|
5
|
-
selectedFilters: any;
|
|
6
|
-
setSelectedFilters: (filters: any) => void;
|
|
7
|
-
handleClearFilter: () => void;
|
|
8
|
-
}
|
|
9
|
-
declare const AdvancedFilters: ({ advancedFilters, basicFilters, selectedFilters, setSelectedFilters, handleClearFilter }: AdvancedFilterProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
-
export default AdvancedFilters;
|