@cloudwick/astral-ui 5.1.0 → 6.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 +6 -3
- package/dist/components/accordion/accordion.d.ts +45 -0
- package/dist/components/accordion/accordionVariants.d.ts +10 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/adpIcon/adpIcon.d.ts +62 -0
- package/dist/components/adpIcon/adpIconVariants.d.ts +15 -0
- package/dist/components/adpIcon/index.d.ts +3 -0
- package/dist/components/adpIcon/svgObjects.d.ts +268 -0
- package/dist/components/avatar/avatar.d.ts +20 -0
- package/dist/components/avatar/avatarVariants.d.ts +5 -0
- package/dist/components/avatar/{index.js → index.d.ts} +1 -2
- package/dist/components/avatarGroup/avatarGroup.d.ts +33 -0
- package/dist/components/avatarGroup/avatarGroupVariants.d.ts +3 -0
- package/dist/components/avatarGroup/index.d.ts +2 -0
- package/dist/components/badge/badge.d.ts +22 -0
- package/dist/components/badge/badgeVariants.d.ts +5 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumbItem.d.ts +26 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +31 -0
- package/dist/components/breadcrumbs/breadcrumbsVariants.d.ts +10 -0
- package/dist/components/breadcrumbs/{index.js → index.d.ts} +3 -3
- package/dist/components/button/button.d.ts +80 -0
- package/dist/components/button/buttonVariants.d.ts +6 -0
- package/dist/components/button/{index.js → index.d.ts} +1 -2
- package/dist/components/card/card.d.ts +74 -0
- package/dist/components/card/cardVariants.d.ts +4 -0
- package/dist/components/card/{index.js → index.d.ts} +1 -2
- package/dist/components/checkbox/checkbox.d.ts +29 -0
- package/dist/components/checkbox/checkboxVariants.d.ts +9 -0
- package/dist/components/checkbox/{index.js → index.d.ts} +1 -2
- package/dist/components/checkboxGroup/checkboxGroup.d.ts +47 -0
- package/dist/components/checkboxGroup/checkboxGroupVariants.d.ts +7 -0
- package/dist/components/checkboxGroup/{index.js → index.d.ts} +1 -2
- package/dist/components/ctaGroup/ctaGroup.d.ts +32 -0
- package/dist/components/ctaGroup/ctaGroupVariants.d.ts +5 -0
- package/dist/components/ctaGroup/{index.js → index.d.ts} +1 -2
- package/dist/components/dataTable/DataTableColumnSettings.d.ts +7 -0
- package/dist/components/dataTable/advancedFilters.d.ts +10 -0
- package/dist/components/dataTable/dataTable.d.ts +143 -0
- package/dist/components/dataTable/dataTableVariants.d.ts +22 -0
- package/dist/components/dataTable/{index.js → index.d.ts} +2 -5
- package/dist/components/dataTable/pageSizeModal.d.ts +9 -0
- package/dist/components/dataTable/selectedFilterList.d.ts +17 -0
- package/dist/components/dataTable/table.d.ts +41 -0
- package/dist/components/dataTable/types.d.ts +60 -0
- package/dist/components/datePicker/datePicker.d.ts +39 -0
- package/dist/components/datePicker/datePickerVariants.d.ts +43 -0
- package/dist/components/datePicker/{index.js → index.d.ts} +1 -2
- package/dist/components/distributionSlider/distributionSlider.d.ts +81 -0
- package/dist/components/distributionSlider/distributionSliderVariants.d.ts +27 -0
- package/dist/components/distributionSlider/index.d.ts +2 -0
- package/dist/components/dropdown/dropdown.d.ts +50 -0
- package/dist/components/dropdown/dropdownItem.d.ts +40 -0
- package/dist/components/dropdown/dropdownToggle.d.ts +12 -0
- package/dist/components/dropdown/dropdownVariants.d.ts +11 -0
- package/dist/components/dropdown/index.d.ts +10 -0
- package/dist/components/emptyState/emptyState.d.ts +43 -0
- package/dist/components/emptyState/emptyStateContent.d.ts +11 -0
- package/dist/components/emptyState/emptyStateCta.d.ts +9 -0
- package/dist/components/emptyState/emptyStateVariants.d.ts +5 -0
- package/dist/components/emptyState/index.d.ts +4 -0
- package/dist/components/fileUpload/fileUpload.d.ts +33 -0
- package/dist/components/fileUpload/fileUploadVariants.d.ts +4 -0
- package/dist/components/fileUpload/index.d.ts +2 -0
- package/dist/components/fileUpload/statusCard.d.ts +18 -0
- package/dist/components/fileUpload/statusCardVariants.d.ts +3 -0
- package/dist/components/loader/index.d.ts +2 -0
- package/dist/components/loader/loader.d.ts +24 -0
- package/dist/components/loader/loaderVariants.d.ts +7 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/modal.d.ts +98 -0
- package/dist/components/modal/modalVariants.d.ts +4 -0
- package/dist/components/otp/{index.js → index.d.ts} +0 -1
- package/dist/components/otp/input.d.ts +36 -0
- package/dist/components/otp/otp.d.ts +58 -0
- package/dist/components/otp/otpVariants.d.ts +3 -0
- package/dist/components/pagination/{index.js → index.d.ts} +1 -3
- package/dist/components/pagination/pagination.d.ts +42 -0
- package/dist/components/pagination/paginationVariants.d.ts +10 -0
- package/dist/components/panel/index.d.ts +13 -0
- package/dist/components/panel/panel.d.ts +61 -0
- package/dist/components/panel/panelBody.d.ts +12 -0
- package/dist/components/panel/panelFooter.d.ts +12 -0
- package/dist/components/panel/panelHeader.d.ts +38 -0
- package/dist/components/panel/panelVariants.d.ts +50 -0
- package/dist/components/panelGroup/{index.js → index.d.ts} +0 -1
- package/dist/components/panelGroup/panelGroup.d.ts +22 -0
- package/dist/components/panelGroup/panelGroupVariants.d.ts +8 -0
- package/dist/components/passwordField/index.d.ts +1 -0
- package/dist/components/passwordField/passwordField.d.ts +10 -0
- package/dist/components/progress/{index.js → index.d.ts} +1 -2
- package/dist/components/progress/progress.d.ts +67 -0
- package/dist/components/progress/progressVariants.d.ts +24 -0
- package/dist/components/radio/{index.js → index.d.ts} +1 -2
- package/dist/components/radio/radio.d.ts +19 -0
- package/dist/components/radio/radioVariants.d.ts +7 -0
- package/dist/components/radioGroup/{index.js → index.d.ts} +1 -2
- package/dist/components/radioGroup/radioGroup.d.ts +53 -0
- package/dist/components/radioGroup/radioGroupVariants.d.ts +12 -0
- package/dist/components/scrollbar/{index.js → index.d.ts} +1 -2
- package/dist/components/scrollbar/scrollbar.d.ts +43 -0
- package/dist/components/scrollbar/scrollbarVariants.d.ts +26 -0
- package/dist/components/scrollbar/utils.d.ts +16 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/select.d.ts +48 -0
- package/dist/components/select/selectVariants.d.ts +9 -0
- package/dist/components/select/types.d.ts +20 -0
- package/dist/components/select/utils.d.ts +3 -0
- package/dist/components/tabs/{index.js → index.d.ts} +1 -2
- package/dist/components/tabs/tabs.d.ts +119 -0
- package/dist/components/tabs/tabsVariants.d.ts +12 -0
- package/dist/components/textCopy/{index.js → index.d.ts} +1 -1
- package/dist/components/textCopy/textCopy.d.ts +31 -0
- package/dist/components/textCopy/textCopyVariants.d.ts +3 -0
- package/dist/components/textField/index.d.ts +2 -0
- package/dist/components/textField/textField.d.ts +48 -0
- package/dist/components/textField/textFieldVariants.d.ts +15 -0
- package/dist/components/textarea/{index.js → index.d.ts} +1 -2
- package/dist/components/textarea/textarea.d.ts +30 -0
- package/dist/components/textarea/textareaVariants.d.ts +9 -0
- package/dist/components/toast/{index.js → index.d.ts} +1 -1
- package/dist/components/toast/toast.d.ts +42 -0
- package/dist/components/toast/toastVariants.d.ts +10 -0
- package/dist/components/toggle/{index.js → index.d.ts} +1 -2
- package/dist/components/toggle/toggle.d.ts +46 -0
- package/dist/components/toggle/toggleVariants.d.ts +12 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/tooltip.d.ts +31 -0
- package/dist/components/tooltip/tooltipVariants.d.ts +3 -0
- package/dist/components/truncate/index.d.ts +2 -0
- package/dist/components/truncate/truncate.d.ts +33 -0
- package/dist/components/truncate/truncateVariants.d.ts +3 -0
- package/dist/css/index.min.css +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useWindowSize.d.ts +6 -0
- package/dist/index.cjs.js +7 -5
- package/dist/{index.js → index.d.ts} +1 -1
- package/dist/index.esm.js +7 -5
- package/dist/utils/{cn.js → cn.d.ts} +2 -6
- package/dist/utils/debounce.d.ts +15 -0
- package/dist/utils/findParentAttribute.d.ts +9 -0
- package/dist/utils/{index.js → index.d.ts} +0 -2
- package/dist/utils/numberUtils/index.d.ts +12 -0
- package/dist/utils/stringUtils/{fileSize.js → fileSize.d.ts} +1 -5
- package/dist/utils/stringUtils/{index.js → index.d.ts} +1 -2
- package/dist/utils/stringUtils/isRegexSafe.d.ts +13 -0
- package/dist/utils/stringUtils/placeholderText.d.ts +10 -0
- package/package.json +5 -4
- package/tsconfig.eslint.json +3 -2
- package/tsconfig.test.json +2 -1
- package/dist/components/accordion/accordion.js +0 -63
- package/dist/components/accordion/accordion.js.map +0 -1
- package/dist/components/accordion/accordionVariants.js +0 -52
- package/dist/components/accordion/accordionVariants.js.map +0 -1
- package/dist/components/accordion/index.js +0 -3
- package/dist/components/accordion/index.js.map +0 -1
- package/dist/components/adpIcon/adpIcon.js +0 -39
- package/dist/components/adpIcon/adpIcon.js.map +0 -1
- package/dist/components/adpIcon/adpIconVariants.js +0 -35
- package/dist/components/adpIcon/adpIconVariants.js.map +0 -1
- package/dist/components/adpIcon/index.js +0 -3
- package/dist/components/adpIcon/index.js.map +0 -1
- package/dist/components/adpIcon/svgObjects.js +0 -1528
- package/dist/components/adpIcon/svgObjects.js.map +0 -1
- package/dist/components/avatar/avatar.js +0 -39
- package/dist/components/avatar/avatar.js.map +0 -1
- package/dist/components/avatar/avatarVariants.js +0 -20
- package/dist/components/avatar/avatarVariants.js.map +0 -1
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/avatarGroup/avatarGroup.js +0 -57
- package/dist/components/avatarGroup/avatarGroup.js.map +0 -1
- package/dist/components/avatarGroup/avatarGroupVariants.js +0 -13
- package/dist/components/avatarGroup/avatarGroupVariants.js.map +0 -1
- package/dist/components/avatarGroup/index.js +0 -3
- package/dist/components/avatarGroup/index.js.map +0 -1
- package/dist/components/badge/badge.js +0 -24
- package/dist/components/badge/badge.js.map +0 -1
- package/dist/components/badge/badgeVariants.js +0 -136
- package/dist/components/badge/badgeVariants.js.map +0 -1
- package/dist/components/badge/index.js +0 -3
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/breadcrumbs/breadcrumbItem.js +0 -26
- package/dist/components/breadcrumbs/breadcrumbItem.js.map +0 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +0 -74
- package/dist/components/breadcrumbs/breadcrumbs.js.map +0 -1
- package/dist/components/breadcrumbs/breadcrumbsVariants.js +0 -40
- package/dist/components/breadcrumbs/breadcrumbsVariants.js.map +0 -1
- package/dist/components/breadcrumbs/index.js.map +0 -1
- package/dist/components/button/button.js +0 -69
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button/buttonVariants.js +0 -288
- package/dist/components/button/buttonVariants.js.map +0 -1
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/card/card.js +0 -86
- package/dist/components/card/card.js.map +0 -1
- package/dist/components/card/cardVariants.js +0 -18
- package/dist/components/card/cardVariants.js.map +0 -1
- package/dist/components/card/index.js.map +0 -1
- package/dist/components/checkbox/checkbox.js +0 -30
- package/dist/components/checkbox/checkbox.js.map +0 -1
- package/dist/components/checkbox/checkboxVariants.js +0 -96
- package/dist/components/checkbox/checkboxVariants.js.map +0 -1
- package/dist/components/checkbox/index.js.map +0 -1
- package/dist/components/checkboxGroup/checkboxGroup.js +0 -52
- package/dist/components/checkboxGroup/checkboxGroup.js.map +0 -1
- package/dist/components/checkboxGroup/checkboxGroupVariants.js +0 -31
- package/dist/components/checkboxGroup/checkboxGroupVariants.js.map +0 -1
- package/dist/components/checkboxGroup/index.js.map +0 -1
- package/dist/components/ctaGroup/ctaGroup.js +0 -51
- package/dist/components/ctaGroup/ctaGroup.js.map +0 -1
- package/dist/components/ctaGroup/ctaGroupVariants.js +0 -9
- package/dist/components/ctaGroup/ctaGroupVariants.js.map +0 -1
- package/dist/components/ctaGroup/index.js.map +0 -1
- package/dist/components/dataTable/DataTableColumnSettings.js +0 -99
- package/dist/components/dataTable/DataTableColumnSettings.js.map +0 -1
- package/dist/components/dataTable/advancedFilters.js +0 -102
- package/dist/components/dataTable/advancedFilters.js.map +0 -1
- package/dist/components/dataTable/dataTable.js +0 -216
- package/dist/components/dataTable/dataTable.js.map +0 -1
- package/dist/components/dataTable/dataTableStoryHelpers.js +0 -2075
- package/dist/components/dataTable/dataTableStoryHelpers.js.map +0 -1
- package/dist/components/dataTable/dataTableVariants.js +0 -51
- package/dist/components/dataTable/dataTableVariants.js.map +0 -1
- package/dist/components/dataTable/index.js.map +0 -1
- package/dist/components/dataTable/pageSizeModal.js +0 -26
- package/dist/components/dataTable/pageSizeModal.js.map +0 -1
- package/dist/components/dataTable/selectedFilterList.js +0 -40
- package/dist/components/dataTable/selectedFilterList.js.map +0 -1
- package/dist/components/dataTable/table.js +0 -108
- package/dist/components/dataTable/table.js.map +0 -1
- package/dist/components/dataTable/types.js +0 -2
- package/dist/components/dataTable/types.js.map +0 -1
- package/dist/components/datePicker/datePicker.js +0 -274
- package/dist/components/datePicker/datePicker.js.map +0 -1
- package/dist/components/datePicker/datePickerVariants.js +0 -80
- package/dist/components/datePicker/datePickerVariants.js.map +0 -1
- package/dist/components/datePicker/index.js.map +0 -1
- package/dist/components/dropdown/dropdown.js +0 -95
- package/dist/components/dropdown/dropdown.js.map +0 -1
- package/dist/components/dropdown/dropdownItem.js +0 -53
- package/dist/components/dropdown/dropdownItem.js.map +0 -1
- package/dist/components/dropdown/dropdownToggle.js +0 -20
- package/dist/components/dropdown/dropdownToggle.js.map +0 -1
- package/dist/components/dropdown/dropdownVariants.js +0 -48
- package/dist/components/dropdown/dropdownVariants.js.map +0 -1
- package/dist/components/dropdown/index.js +0 -8
- package/dist/components/dropdown/index.js.map +0 -1
- package/dist/components/emptyState/emptyState.js +0 -119
- package/dist/components/emptyState/emptyState.js.map +0 -1
- package/dist/components/emptyState/emptyStateContent.js +0 -25
- package/dist/components/emptyState/emptyStateContent.js.map +0 -1
- package/dist/components/emptyState/emptyStateCta.js +0 -25
- package/dist/components/emptyState/emptyStateCta.js.map +0 -1
- package/dist/components/emptyState/emptyStateVariants.js +0 -7
- package/dist/components/emptyState/emptyStateVariants.js.map +0 -1
- package/dist/components/emptyState/index.js +0 -5
- package/dist/components/emptyState/index.js.map +0 -1
- package/dist/components/fileUpload/fileUpload.js +0 -150
- package/dist/components/fileUpload/fileUpload.js.map +0 -1
- package/dist/components/fileUpload/fileUploadVariants.js +0 -21
- package/dist/components/fileUpload/fileUploadVariants.js.map +0 -1
- package/dist/components/fileUpload/index.js +0 -3
- package/dist/components/fileUpload/index.js.map +0 -1
- package/dist/components/fileUpload/statusCard.js +0 -80
- package/dist/components/fileUpload/statusCard.js.map +0 -1
- package/dist/components/fileUpload/statusCardVariants.js +0 -19
- package/dist/components/fileUpload/statusCardVariants.js.map +0 -1
- package/dist/components/fileUpload/storyUtil.js +0 -52
- package/dist/components/fileUpload/storyUtil.js.map +0 -1
- package/dist/components/loader/index.js +0 -3
- package/dist/components/loader/index.js.map +0 -1
- package/dist/components/loader/loader.js +0 -39
- package/dist/components/loader/loader.js.map +0 -1
- package/dist/components/loader/loaderVariants.js +0 -31
- package/dist/components/loader/loaderVariants.js.map +0 -1
- package/dist/components/modal/index.js +0 -3
- package/dist/components/modal/index.js.map +0 -1
- package/dist/components/modal/modal.js +0 -95
- package/dist/components/modal/modal.js.map +0 -1
- package/dist/components/modal/modalVariants.js +0 -14
- package/dist/components/modal/modalVariants.js.map +0 -1
- package/dist/components/otp/index.js.map +0 -1
- package/dist/components/otp/input.js +0 -18
- package/dist/components/otp/input.js.map +0 -1
- package/dist/components/otp/otp.js +0 -131
- package/dist/components/otp/otp.js.map +0 -1
- package/dist/components/otp/otpVariants.js +0 -13
- package/dist/components/otp/otpVariants.js.map +0 -1
- package/dist/components/pagination/index.js.map +0 -1
- package/dist/components/pagination/pagination.js +0 -83
- package/dist/components/pagination/pagination.js.map +0 -1
- package/dist/components/pagination/paginationVariants.js +0 -44
- package/dist/components/pagination/paginationVariants.js.map +0 -1
- package/dist/components/panel/index.js +0 -11
- package/dist/components/panel/index.js.map +0 -1
- package/dist/components/panel/panel.js +0 -82
- package/dist/components/panel/panel.js.map +0 -1
- package/dist/components/panel/panelBody.js +0 -21
- package/dist/components/panel/panelBody.js.map +0 -1
- package/dist/components/panel/panelFooter.js +0 -21
- package/dist/components/panel/panelFooter.js.map +0 -1
- package/dist/components/panel/panelHeader.js +0 -24
- package/dist/components/panel/panelHeader.js.map +0 -1
- package/dist/components/panel/panelVariants.js +0 -122
- package/dist/components/panel/panelVariants.js.map +0 -1
- package/dist/components/panelGroup/index.js.map +0 -1
- package/dist/components/panelGroup/panelGroup.js +0 -38
- package/dist/components/panelGroup/panelGroup.js.map +0 -1
- package/dist/components/panelGroup/panelGroupVariants.js +0 -34
- package/dist/components/panelGroup/panelGroupVariants.js.map +0 -1
- package/dist/components/passwordField/index.js +0 -2
- package/dist/components/passwordField/index.js.map +0 -1
- package/dist/components/passwordField/passwordField.js +0 -29
- package/dist/components/passwordField/passwordField.js.map +0 -1
- package/dist/components/progress/index.js.map +0 -1
- package/dist/components/progress/progress.js +0 -62
- package/dist/components/progress/progress.js.map +0 -1
- package/dist/components/progress/progressVariants.js +0 -103
- package/dist/components/progress/progressVariants.js.map +0 -1
- package/dist/components/radio/index.js.map +0 -1
- package/dist/components/radio/radio.js +0 -26
- package/dist/components/radio/radio.js.map +0 -1
- package/dist/components/radio/radioVariants.js +0 -46
- package/dist/components/radio/radioVariants.js.map +0 -1
- package/dist/components/radioGroup/index.js.map +0 -1
- package/dist/components/radioGroup/radioGroup.js +0 -48
- package/dist/components/radioGroup/radioGroup.js.map +0 -1
- package/dist/components/radioGroup/radioGroupVariants.js +0 -53
- package/dist/components/radioGroup/radioGroupVariants.js.map +0 -1
- package/dist/components/scrollbar/index.js.map +0 -1
- package/dist/components/scrollbar/scrollbar.js +0 -361
- package/dist/components/scrollbar/scrollbar.js.map +0 -1
- package/dist/components/scrollbar/scrollbarVariants.js +0 -100
- package/dist/components/scrollbar/scrollbarVariants.js.map +0 -1
- package/dist/components/scrollbar/utils.js +0 -28
- package/dist/components/scrollbar/utils.js.map +0 -1
- package/dist/components/select/index.js +0 -3
- package/dist/components/select/index.js.map +0 -1
- package/dist/components/select/select.js +0 -134
- package/dist/components/select/select.js.map +0 -1
- package/dist/components/select/selectVariants.js +0 -35
- package/dist/components/select/selectVariants.js.map +0 -1
- package/dist/components/select/types.js +0 -9
- package/dist/components/select/types.js.map +0 -1
- package/dist/components/select/utils.js +0 -118
- package/dist/components/select/utils.js.map +0 -1
- package/dist/components/tabs/index.js.map +0 -1
- package/dist/components/tabs/tabs.js +0 -141
- package/dist/components/tabs/tabs.js.map +0 -1
- package/dist/components/tabs/tabsVariants.js +0 -138
- package/dist/components/tabs/tabsVariants.js.map +0 -1
- package/dist/components/textCopy/index.js.map +0 -1
- package/dist/components/textCopy/textCopy.js +0 -36
- package/dist/components/textCopy/textCopy.js.map +0 -1
- package/dist/components/textCopy/textCopyVariants.js +0 -12
- package/dist/components/textCopy/textCopyVariants.js.map +0 -1
- package/dist/components/textField/index.js +0 -3
- package/dist/components/textField/index.js.map +0 -1
- package/dist/components/textField/textField.js +0 -37
- package/dist/components/textField/textField.js.map +0 -1
- package/dist/components/textField/textFieldVariants.js +0 -84
- package/dist/components/textField/textFieldVariants.js.map +0 -1
- package/dist/components/textarea/index.js.map +0 -1
- package/dist/components/textarea/textarea.js +0 -29
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/textarea/textareaVariants.js +0 -37
- package/dist/components/textarea/textareaVariants.js.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/components/toast/toast.js +0 -51
- package/dist/components/toast/toast.js.map +0 -1
- package/dist/components/toast/toastVariants.js +0 -45
- package/dist/components/toast/toastVariants.js.map +0 -1
- package/dist/components/toggle/index.js.map +0 -1
- package/dist/components/toggle/toggle.js +0 -34
- package/dist/components/toggle/toggle.js.map +0 -1
- package/dist/components/toggle/toggleVariants.js +0 -40
- package/dist/components/toggle/toggleVariants.js.map +0 -1
- package/dist/components/tooltip/index.js +0 -3
- package/dist/components/tooltip/index.js.map +0 -1
- package/dist/components/tooltip/tooltip.js +0 -100
- package/dist/components/tooltip/tooltip.js.map +0 -1
- package/dist/components/tooltip/tooltipVariants.js +0 -13
- package/dist/components/tooltip/tooltipVariants.js.map +0 -1
- package/dist/components/truncate/index.js +0 -3
- package/dist/components/truncate/index.js.map +0 -1
- package/dist/components/truncate/truncate.js +0 -36
- package/dist/components/truncate/truncate.js.map +0 -1
- package/dist/components/truncate/truncateVariants.js +0 -13
- package/dist/components/truncate/truncateVariants.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/tailwindThemeConfig.js +0 -194
- package/dist/tailwindThemeConfig.js.map +0 -1
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/debounce.js +0 -30
- package/dist/utils/debounce.js.map +0 -1
- package/dist/utils/findParentAttribute.js +0 -23
- package/dist/utils/findParentAttribute.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/numberUtils/index.js +0 -41
- package/dist/utils/numberUtils/index.js.map +0 -1
- package/dist/utils/stringUtils/fileSize.js.map +0 -1
- package/dist/utils/stringUtils/index.js.map +0 -1
- package/dist/utils/stringUtils/placeholderText.js +0 -77
- package/dist/utils/stringUtils/placeholderText.js.map +0 -1
- package/dist/utils/useWindowSize.js +0 -25
- package/dist/utils/useWindowSize.js.map +0 -1
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type TIconType } from "../adpIcon";
|
|
3
|
+
import type { Placement } from "@floating-ui/react";
|
|
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 ESizes {
|
|
7
|
+
XS = "xs",
|
|
8
|
+
SM = "sm",
|
|
9
|
+
MD = "md",
|
|
10
|
+
LG = "lg",
|
|
11
|
+
XL = "xl"
|
|
12
|
+
}
|
|
13
|
+
export type TColor = (typeof colors)[number];
|
|
14
|
+
export type TVariant = (typeof variants)[number];
|
|
15
|
+
export type TSize = `${ESizes}`;
|
|
16
|
+
/**
|
|
17
|
+
* Button component from Astral UI
|
|
18
|
+
*/
|
|
19
|
+
export interface IButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "css"> {
|
|
20
|
+
/**
|
|
21
|
+
* Size of the button.
|
|
22
|
+
* @default md
|
|
23
|
+
*/
|
|
24
|
+
size?: TSize;
|
|
25
|
+
/**
|
|
26
|
+
* Color of the button.
|
|
27
|
+
* @default primary
|
|
28
|
+
*/
|
|
29
|
+
color?: TColor;
|
|
30
|
+
/**
|
|
31
|
+
* Variant of the button.
|
|
32
|
+
* @default filled
|
|
33
|
+
*/
|
|
34
|
+
variant?: TVariant;
|
|
35
|
+
/**
|
|
36
|
+
* Shows loading animation instead of the button content
|
|
37
|
+
*/
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Icon to be displayed before the button's content.
|
|
41
|
+
* @description
|
|
42
|
+
* This prop accepts either an IconType (string) or a ReactNode.
|
|
43
|
+
* - If an IconType is provided, it will render an ADPIcon component.
|
|
44
|
+
* - If a ReactNode is provided, it will be rendered as-is.
|
|
45
|
+
*/
|
|
46
|
+
prefixIcon?: TIconType | React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* Icon to be displayed after the button's content.
|
|
49
|
+
* @description
|
|
50
|
+
* This prop accepts either an IconType (string) or a ReactNode.
|
|
51
|
+
* - If an IconType is provided, it will render an ADPIcon component.
|
|
52
|
+
* - If a ReactNode is provided, it will be rendered as-is.
|
|
53
|
+
*/
|
|
54
|
+
suffixIcon?: TIconType | React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Tooltip to be displayed on hover of the button.
|
|
57
|
+
* @description
|
|
58
|
+
* This prop accepts a ReactNode, if this is passed then the button will render
|
|
59
|
+
* tooltip on hover of the button.
|
|
60
|
+
* This tooltip is only on hover and not on click.
|
|
61
|
+
*/
|
|
62
|
+
tooltip?: React.ReactNode;
|
|
63
|
+
/**
|
|
64
|
+
* Placement of the tooltip
|
|
65
|
+
* @default "bottom-end"
|
|
66
|
+
*/
|
|
67
|
+
tooltipPlacement?: Placement;
|
|
68
|
+
}
|
|
69
|
+
export declare const ButtonSizeToSpinnerMap: Record<TSize, "xxs" | "xs" | "sm" | "md" | "lg" | "xl">;
|
|
70
|
+
/**
|
|
71
|
+
* Button component with multiple variants, colors, and sizes.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```tsx
|
|
75
|
+
* <Button variant="filled" color="primary" size="md">
|
|
76
|
+
* Click me
|
|
77
|
+
* </Button>
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export declare const Button: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const buttonVariants: (props?: ({
|
|
2
|
+
variant?: "text" | "filled" | "outline" | "shade" | null | undefined;
|
|
3
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
|
|
4
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
|
+
hasChildren?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { Button, ESizes, colors, variants, ButtonSizeToSpinnerMap } from "./button";
|
|
1
|
+
export { Button, ESizes, colors, variants, ButtonSizeToSpinnerMap, type IButtonProps, type TColor, type TVariant, type TSize } from "./button";
|
|
2
2
|
export { buttonVariants } from "./buttonVariants";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ICTAGroupProps } from "../ctaGroup";
|
|
3
|
+
/**
|
|
4
|
+
* Card component for displaying content in a container with optional header and footer
|
|
5
|
+
*/
|
|
6
|
+
export type TCardProps = React.HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
/**
|
|
8
|
+
* Card component with optional header, body, and footer
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Card>
|
|
13
|
+
* <Card.Header title="Card Title" />
|
|
14
|
+
* <Card.Body>Card content goes here</Card.Body>
|
|
15
|
+
* <Card.Footer>Footer content</Card.Footer>
|
|
16
|
+
* </Card>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare const CardComponent: React.ForwardRefExoticComponent<TCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
/**
|
|
21
|
+
* Card header props
|
|
22
|
+
*/
|
|
23
|
+
export interface ICardHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
24
|
+
/**
|
|
25
|
+
* Title of the card
|
|
26
|
+
*/
|
|
27
|
+
title?: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Props for the CTAGroup component. Pass an object with the props for the CTAGroup.
|
|
30
|
+
*/
|
|
31
|
+
ctaGroupProps?: ICTAGroupProps;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Card header component
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <Card.Header title="Card Title" />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
declare const CardHeader: React.ForwardRefExoticComponent<ICardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* Card body props
|
|
44
|
+
*/
|
|
45
|
+
export type TCardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
46
|
+
/**
|
|
47
|
+
* Card body component
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* <Card.Body>Card content goes here</Card.Body>
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
declare const CardBody: React.ForwardRefExoticComponent<TCardBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
/**
|
|
56
|
+
* Card footer props
|
|
57
|
+
*/
|
|
58
|
+
export type TCardFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
59
|
+
/**
|
|
60
|
+
* Card footer component
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```tsx
|
|
64
|
+
* <Card.Footer>Footer content</Card.Footer>
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
declare const CardFooter: React.ForwardRefExoticComponent<TCardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
68
|
+
type TCardCompoundComponent = typeof CardComponent & {
|
|
69
|
+
Header: typeof CardHeader;
|
|
70
|
+
Body: typeof CardBody;
|
|
71
|
+
Footer: typeof CardFooter;
|
|
72
|
+
};
|
|
73
|
+
declare const Card: TCardCompoundComponent;
|
|
74
|
+
export { Card, CardHeader, CardBody, CardFooter };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const cardVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
2
|
+
export declare const cardHeaderVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
3
|
+
export declare const cardBodyVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const cardFooterVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { Card, CardHeader, CardBody, CardFooter } from "./card";
|
|
1
|
+
export { Card, CardHeader, CardBody, CardFooter, type ICardHeaderProps } from "./card";
|
|
2
2
|
export { cardVariants, cardHeaderVariants, cardBodyVariants, cardFooterVariants } from "./cardVariants";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type RefObject } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* A standard checkbox component with multiple size and style variants.
|
|
5
|
+
*/
|
|
6
|
+
export interface ICheckboxProps extends Omit<React.HTMLProps<HTMLInputElement>, "label" | "size"> {
|
|
7
|
+
/**
|
|
8
|
+
* Optional label to display next to the checkbox
|
|
9
|
+
*/
|
|
10
|
+
label?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Size of the Checkbox
|
|
13
|
+
* @default md
|
|
14
|
+
*/
|
|
15
|
+
size?: "sm" | "md" | "lg";
|
|
16
|
+
/**
|
|
17
|
+
* Variant of the Checkbox
|
|
18
|
+
* @default filled
|
|
19
|
+
*/
|
|
20
|
+
variant?: "filled" | "outline" | "filled-circle" | "outline-circle";
|
|
21
|
+
/**
|
|
22
|
+
* Pass a ref to the inner input element
|
|
23
|
+
*/
|
|
24
|
+
ref?: RefObject<HTMLInputElement>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A standard checkbox component with multiple size and style variants.
|
|
28
|
+
*/
|
|
29
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<Omit<ICheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const checkboxVariants: (props?: ({
|
|
2
|
+
variant?: "filled" | "outline" | "filled-circle" | "outline-circle" | null | undefined;
|
|
3
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
|
+
export declare const checkboxLabelVariants: (props?: ({
|
|
6
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
disabled?: boolean | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export declare const checkmarkClipPath = "polygon(\n 15% 50%,\n 40.1% 75.4%,\n 41.1% 75.7%,\n 42.1% 75.4%,\n 88% 4%,\n 90% 3.5%,\n 92% 4%,\n 94% 5%,\n 97% 7%,\n 97.5% 7.5%,\n 99% 10%,\n 100% 14%,\n 100% 17%,\n 99% 20%,\n 46% 99%,\n 45% 99.5%,\n 44% 100%,\n 43% 100%,\n 41% 100%,\n 40% 100%,\n 37% 97%,\n 5% 65%,\n 4% 62%,\n 4% 59%,\n 4.2% 57.6%,\n 4.8% 55%,\n 6.5% 52.2%,\n 9% 50.5%,\n 11.9% 49.7%\n)";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ICheckboxProps } from "../checkbox";
|
|
3
|
+
/**
|
|
4
|
+
* Type for CheckboxGroup size
|
|
5
|
+
*/
|
|
6
|
+
export type TCheckboxGroupSize = "sm" | "md" | "lg";
|
|
7
|
+
/**
|
|
8
|
+
* CheckboxGroup component props
|
|
9
|
+
*/
|
|
10
|
+
export interface ICheckboxGroupProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
|
|
11
|
+
/**
|
|
12
|
+
* Size of the Checkbox group.
|
|
13
|
+
* @default md
|
|
14
|
+
*/
|
|
15
|
+
size?: TCheckboxGroupSize;
|
|
16
|
+
/**
|
|
17
|
+
* Pass space separated class names to override the CheckboxGroup styling
|
|
18
|
+
*/
|
|
19
|
+
className?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Pass boolean value to disable the component.
|
|
22
|
+
* @default false
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Selected values
|
|
27
|
+
*/
|
|
28
|
+
selectedValues?: unknown[];
|
|
29
|
+
/**
|
|
30
|
+
* An array of objects of checkbox props type
|
|
31
|
+
*/
|
|
32
|
+
options?: ICheckboxProps[];
|
|
33
|
+
/**
|
|
34
|
+
* Callback function that is called when the checkbox group selection changes.
|
|
35
|
+
* An array of selected values is passed as an argument to the function.
|
|
36
|
+
*/
|
|
37
|
+
onChange?: (arg: unknown[]) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Placement of the checkbox
|
|
40
|
+
* @default "end"
|
|
41
|
+
*/
|
|
42
|
+
checkboxPlacement?: "start" | "end";
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* CheckboxGroup component for displaying a group of related checkboxes
|
|
46
|
+
*/
|
|
47
|
+
export declare const CheckboxGroup: React.ForwardRefExoticComponent<ICheckboxGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const checkboxGroupVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const checkboxGroupItemVariants: (props?: ({
|
|
3
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
|
+
checked?: boolean | null | undefined;
|
|
5
|
+
disabled?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare const checkboxGroupLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { CheckboxGroup } from "./checkboxGroup";
|
|
1
|
+
export { CheckboxGroup, type ICheckboxGroupProps, type TCheckboxGroupSize } from "./checkboxGroup";
|
|
2
2
|
export { checkboxGroupVariants, checkboxGroupItemVariants, checkboxGroupLabelVariants } from "./checkboxGroupVariants";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface ICTAGroupProps {
|
|
3
|
+
/**
|
|
4
|
+
* List of CTAs which render as icons or as dropdown items in case of mobile view
|
|
5
|
+
*/
|
|
6
|
+
ctaList: {
|
|
7
|
+
/** Callback to execute when the CTA is clicked */
|
|
8
|
+
callback: () => void;
|
|
9
|
+
/** Icon to render inside the CTA */
|
|
10
|
+
icon: React.ReactNode;
|
|
11
|
+
/** Label for the CTA. Also shown as tooltip when shrink is false. */
|
|
12
|
+
label: React.ReactNode;
|
|
13
|
+
/** Determines whether the CTA should be disabled */
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}[];
|
|
16
|
+
/** Determines whether to show the CTAGroup as a dropdown */
|
|
17
|
+
shrink?: boolean;
|
|
18
|
+
/** Overwrite CTAGroup container styles */
|
|
19
|
+
className?: string;
|
|
20
|
+
/** Reference element for rendering dropdown */
|
|
21
|
+
dropdownPortalTarget?: Element;
|
|
22
|
+
/** Threshold for moving extra CTAs into dropdown */
|
|
23
|
+
threshold?: number;
|
|
24
|
+
/** If true, labels are always shown next to icons */
|
|
25
|
+
showLabels?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Variant of the CTAGroup.
|
|
28
|
+
* @default icon
|
|
29
|
+
*/
|
|
30
|
+
variant?: "icon" | "button";
|
|
31
|
+
}
|
|
32
|
+
export declare const CTAGroup: React.ForwardRefExoticComponent<ICTAGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ctaGroupVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const ctaVariants: (props?: ({
|
|
3
|
+
variant?: "icon" | "button" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
|
+
export declare const ctaDropdownItemVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TColumn } from "./types";
|
|
2
|
+
export declare const DataTableColumnSettings: ({ columns, setColumns, isOpen, onClose }: {
|
|
3
|
+
columns: TColumn[];
|
|
4
|
+
setColumns: (columns: TColumn[]) => void;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TAdvancedFilterItem, TFilterItem } from "./types";
|
|
2
|
+
interface IAdvancedFilterProps {
|
|
3
|
+
advancedFilters?: TAdvancedFilterItem[];
|
|
4
|
+
basicFilters?: TFilterItem[];
|
|
5
|
+
selectedFilters: Record<string, any>;
|
|
6
|
+
setSelectedFilters: (filters: Record<string, any>) => void;
|
|
7
|
+
handleClearFilter: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const AdvancedFilters: ({ advancedFilters, basicFilters, selectedFilters, setSelectedFilters, handleClearFilter }: IAdvancedFilterProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type SortingState, type OnChangeFn } from "@tanstack/react-table";
|
|
4
|
+
import type { TColumn, TFilterItem, TAdvancedFilterItem, TFilters } from "./types";
|
|
5
|
+
interface ISearchProps {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
hidden?: boolean;
|
|
8
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
value?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Props to control the onSearch function debounceTime
|
|
12
|
+
*/
|
|
13
|
+
debounceTime?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Attach the debounced search function
|
|
16
|
+
*/
|
|
17
|
+
onSearch?: (value: string) => void;
|
|
18
|
+
}
|
|
19
|
+
interface IPaginationProps {
|
|
20
|
+
onPageSizeChange?: (args: number) => void;
|
|
21
|
+
onPageChange?: (args: number) => void;
|
|
22
|
+
totalRecords?: number;
|
|
23
|
+
offset?: number;
|
|
24
|
+
pageSize?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface IDataTableProps<T> {
|
|
27
|
+
/**
|
|
28
|
+
* Defines the column structure for the Data Table, including column headers,
|
|
29
|
+
* accessors, and any additional configurations.
|
|
30
|
+
*/
|
|
31
|
+
columns: TColumn[];
|
|
32
|
+
/**
|
|
33
|
+
* The array of data objects that will populate the rows of the Data Table.
|
|
34
|
+
*/
|
|
35
|
+
data: T[];
|
|
36
|
+
/**
|
|
37
|
+
* Optional: Provide custom class names as a space-separated
|
|
38
|
+
* string to override the default Data Table styling.
|
|
39
|
+
*/
|
|
40
|
+
className?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Configuration for applying advanced filters to the Data Table.
|
|
43
|
+
* Allows complex filtering logic and customization.
|
|
44
|
+
*/
|
|
45
|
+
advancedFilters?: TAdvancedFilterItem[];
|
|
46
|
+
/**
|
|
47
|
+
* Configuration for applying basic filters to the Data Table.
|
|
48
|
+
* Enables simple filtering by key-value pairs.
|
|
49
|
+
* Showing maximum 3 basic filters in the table.
|
|
50
|
+
*/
|
|
51
|
+
basicFilters?: TFilterItem[];
|
|
52
|
+
/**
|
|
53
|
+
* Allows to set filters by key-value pairs.
|
|
54
|
+
*/
|
|
55
|
+
filters?: TFilters;
|
|
56
|
+
/**
|
|
57
|
+
* A callback function used to update the list of applied filters.
|
|
58
|
+
*/
|
|
59
|
+
setFilters?: (filters: TFilters) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Boolean value to display a loading state in the Data Table,
|
|
62
|
+
* typically while loading or processing data.
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
loading?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* A callback function triggered to refresh the Data Table,
|
|
68
|
+
* typically re-fetching or updating the data.
|
|
69
|
+
*/
|
|
70
|
+
onRefresh?: () => void;
|
|
71
|
+
/**
|
|
72
|
+
* To adjust the width of the columns
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
resizable?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* To adding virtualization for column in the data table
|
|
78
|
+
* @default true
|
|
79
|
+
*/
|
|
80
|
+
columnVirtualization?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* To adding virtualization for row in the data table
|
|
83
|
+
* @default true
|
|
84
|
+
*/
|
|
85
|
+
rowVirtualization?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* To pin the first columns of the data table
|
|
88
|
+
* @default true
|
|
89
|
+
*/
|
|
90
|
+
pinnedFirstColumn?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* To make the row selectable by showing checkboxes
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
selectable?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Callback function triggered on row selection.
|
|
98
|
+
* @param selectedRows - Index List of the selected rows
|
|
99
|
+
*/
|
|
100
|
+
onRowSelection?: (selectedRows: object) => void;
|
|
101
|
+
/**
|
|
102
|
+
* Allows to set sort by using key-value pair.
|
|
103
|
+
*/
|
|
104
|
+
sorting?: SortingState;
|
|
105
|
+
/**
|
|
106
|
+
* Callback function triggered on row sorting.
|
|
107
|
+
* @param sortState - Index List of the selected rows
|
|
108
|
+
*/
|
|
109
|
+
setSorting?: OnChangeFn<SortingState> | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Allows to set pagination props.
|
|
112
|
+
*/
|
|
113
|
+
paginationProps?: IPaginationProps;
|
|
114
|
+
/**
|
|
115
|
+
* To Adjust the height of the table.
|
|
116
|
+
* @default 100%
|
|
117
|
+
*/
|
|
118
|
+
height?: string;
|
|
119
|
+
/**
|
|
120
|
+
* To set the page size option
|
|
121
|
+
* @default PAGE_SIZE_OPTIONS
|
|
122
|
+
*/
|
|
123
|
+
pageSizeOptions?: number[];
|
|
124
|
+
/**
|
|
125
|
+
* To add the custom CTAs
|
|
126
|
+
*/
|
|
127
|
+
customCTAs?: ReactNode;
|
|
128
|
+
/**
|
|
129
|
+
* Callback function triggered on change of Column Preferences.
|
|
130
|
+
* @param columns - columns array with updated order and selected key value
|
|
131
|
+
*/
|
|
132
|
+
setColumns: (columns: TColumn[]) => void;
|
|
133
|
+
/**
|
|
134
|
+
* Allows to set search textfield props.
|
|
135
|
+
*/
|
|
136
|
+
searchProps?: ISearchProps;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* DataTable is a powerful component that displays tabular data with advanced features
|
|
140
|
+
* like filtering, sorting, pagination, and row selection.
|
|
141
|
+
*/
|
|
142
|
+
export declare const DataTable: <T extends object>({ advancedFilters, basicFilters, className, columns, data, filters, loading, paginationProps, resizable, selectable, pinnedFirstColumn, rowVirtualization, columnVirtualization, sorting, height, customCTAs, searchProps, pageSizeOptions, setFilters, setSorting, onRefresh, onRowSelection, setColumns }: IDataTableProps<T>) => ReactNode;
|
|
143
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const dataTableContainerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const dataTableVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
3
|
+
export declare const dataTableCellVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
4
|
+
export declare const dataTableHeaderCellVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
5
|
+
export declare const dataTableHeadVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
6
|
+
export declare const dataTableSelectableVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
7
|
+
export declare const dataTablePaginationVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
8
|
+
export declare const dataTableFiltersVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
9
|
+
export declare const dataTableFilterSearchVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
10
|
+
export declare const dataTableFilterSelectVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
11
|
+
export declare const dataTableAdvancedFilterButtonVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
12
|
+
export declare const dataTableResizerVariants: (props?: ({
|
|
13
|
+
direction?: "ltr" | "rtl" | null | undefined;
|
|
14
|
+
isResizing?: boolean | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
|
+
export declare const dataTableContainerInnerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
17
|
+
export declare const dataTableEmptyStateVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
18
|
+
export declare const dataTableSelectedFilterVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
19
|
+
export declare const dataTableSelectedFilterContainerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
20
|
+
export declare const dataTableSelectedFilterLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
21
|
+
export declare const dataTableRecordsInfoVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
22
|
+
export declare const dataTableColumnSettingsVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export {} from "./types";
|
|
1
|
+
export { DataTable, type IDataTableProps } from "./dataTable";
|
|
2
|
+
export { type TColumn, type TFilterItem, type TAdvancedFilterItem, type TFilters } from "./types";
|
|
4
3
|
export { AdvancedFilters } from "./advancedFilters";
|
|
5
4
|
export { DataTableColumnSettings } from "./DataTableColumnSettings";
|
|
6
5
|
export { PageSizeModal } from "./pageSizeModal";
|
|
7
|
-
// Export the variants
|
|
8
6
|
export { dataTableContainerVariants, dataTableVariants, dataTableHeadVariants, dataTableHeaderCellVariants, dataTableCellVariants, dataTableSelectableVariants, dataTablePaginationVariants, dataTableFiltersVariants, dataTableFilterSearchVariants, dataTableFilterSelectVariants, dataTableResizerVariants, dataTableContainerInnerVariants, dataTableEmptyStateVariants, dataTableSelectedFilterVariants, dataTableSelectedFilterContainerVariants, dataTableSelectedFilterLabelVariants, dataTableRecordsInfoVariants, dataTableColumnSettingsVariants, dataTableAdvancedFilterButtonVariants } from "./dataTableVariants";
|
|
9
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IPageSizeModalProps {
|
|
2
|
+
show: boolean;
|
|
3
|
+
toggleVisibility: () => void;
|
|
4
|
+
onPageSizeChange?: (args: number) => void;
|
|
5
|
+
onPageChange?: (args: number) => void;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
pageSizeOptions?: number[];
|
|
8
|
+
}
|
|
9
|
+
export declare const PageSizeModal: ({ show, pageSize, pageSizeOptions, toggleVisibility, onPageSizeChange: setPageSize, onPageChange }: IPageSizeModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TFilterItem, TAdvancedFilterItem } from "./types";
|
|
2
|
+
interface IFilterOption {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
interface ISelectedFilters {
|
|
7
|
+
[key: string]: IFilterOption[] | IFilterOption;
|
|
8
|
+
}
|
|
9
|
+
interface ISelectedFilterListProps {
|
|
10
|
+
advancedFilters: TAdvancedFilterItem[];
|
|
11
|
+
selectedFilters: ISelectedFilters;
|
|
12
|
+
basicFilters: TFilterItem[];
|
|
13
|
+
handleRemoveFilter: (filterId: string, index?: number) => void;
|
|
14
|
+
handleClearAllSelectedFilters: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const SelectedFilterList: ({ advancedFilters, selectedFilters, basicFilters, handleRemoveFilter, handleClearAllSelectedFilters }: ISelectedFilterListProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
export default SelectedFilterList;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type Table as TableType } from "@tanstack/react-table";
|
|
2
|
+
export type TTableProps<T> = {
|
|
3
|
+
table: TableType<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
|
+
export declare const Table: <T extends object>({ table, columnVirtualization, rowVirtualization, selectable, resizable, loading, height, isRtl }: TTableProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export default Table;
|