@cloudwick/astral-ui 5.2.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 +2 -4
- package/dist/components/adpIcon/adpIconVariants.d.ts +15 -0
- package/dist/components/adpIcon/index.d.ts +3 -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 +1 -1
- 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 +1 -1
- 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/checkboxVariants.d.ts +9 -0
- package/dist/components/checkbox/{index.js → index.d.ts} +1 -2
- package/dist/components/checkboxGroup/checkboxGroupVariants.d.ts +7 -0
- package/dist/components/checkboxGroup/{index.js → index.d.ts} +1 -2
- 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 +3 -3
- 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 +1 -1
- 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 +1 -1
- 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/paginationVariants.d.ts +10 -0
- package/dist/components/panel/index.d.ts +13 -0
- package/dist/components/panel/panel.d.ts +10 -3
- package/dist/components/panel/panelBody.d.ts +12 -0
- package/dist/components/panel/panelFooter.d.ts +12 -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/progressVariants.d.ts +4 -4
- package/dist/components/radio/{index.js → index.d.ts} +1 -2
- package/dist/components/radio/radioVariants.d.ts +7 -0
- package/dist/components/radioGroup/{index.js → index.d.ts} +1 -2
- 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 +2 -2
- 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/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/textFieldVariants.d.ts +15 -0
- package/dist/components/textarea/{index.js → index.d.ts} +1 -2
- package/dist/components/textarea/textareaVariants.d.ts +2 -2
- 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 +2 -2
- package/dist/components/toggle/{index.js → index.d.ts} +1 -2
- 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 -1534
- 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 -26
- 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 -183
- 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,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;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { CellContext, SortingFnOption } from "@tanstack/react-table";
|
|
3
|
+
import type { TIconType } from "../adpIcon";
|
|
4
|
+
import type { IOption } from "../select";
|
|
5
|
+
/**
|
|
6
|
+
* Column configuration for DataTable
|
|
7
|
+
*/
|
|
8
|
+
export type TColumn = {
|
|
9
|
+
id?: string;
|
|
10
|
+
key: string;
|
|
11
|
+
header?: any;
|
|
12
|
+
cell?: (row: CellContext<any, any>) => ReactNode;
|
|
13
|
+
/** Cannot be reordered or hidden in preferences */
|
|
14
|
+
fixed?: boolean;
|
|
15
|
+
/** Visibility state of the column */
|
|
16
|
+
selected?: boolean;
|
|
17
|
+
/** Enable sorting */
|
|
18
|
+
enableSorting?: boolean;
|
|
19
|
+
/** Enable resizing */
|
|
20
|
+
enableResizing?: boolean;
|
|
21
|
+
/** Custom sorting function */
|
|
22
|
+
sortingFn?: SortingFnOption<any>;
|
|
23
|
+
/** Column width */
|
|
24
|
+
size?: number;
|
|
25
|
+
/** Hide from column preference panel */
|
|
26
|
+
hideColPreference?: boolean;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Basic filter item for DataTable
|
|
30
|
+
*/
|
|
31
|
+
export type TFilterItem = {
|
|
32
|
+
id?: string;
|
|
33
|
+
selectedValue?: any;
|
|
34
|
+
icon?: TIconType;
|
|
35
|
+
title: string;
|
|
36
|
+
placeholder?: string;
|
|
37
|
+
onChange?: () => void;
|
|
38
|
+
options: IOption[];
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Advanced filter item for DataTable
|
|
43
|
+
*/
|
|
44
|
+
export type TAdvancedFilterItem = {
|
|
45
|
+
id: string;
|
|
46
|
+
title: string;
|
|
47
|
+
subTitle?: string;
|
|
48
|
+
selectedValue?: any;
|
|
49
|
+
setSelectedValue?: (value: any) => void;
|
|
50
|
+
filterComponent?: ReactNode;
|
|
51
|
+
icon?: TIconType;
|
|
52
|
+
isMulti?: boolean;
|
|
53
|
+
options?: IOption[];
|
|
54
|
+
render?: ReactNode | (() => ReactNode);
|
|
55
|
+
onChange?: () => void;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Filters record type
|
|
59
|
+
*/
|
|
60
|
+
export type TFilters = Record<string, any>;
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
import { type DatePickerProps } from "react-datepicker";
|
|
3
3
|
import "react-datepicker/dist/react-datepicker.css";
|
|
4
4
|
import { type ITextFieldProps } from "../textField";
|
|
5
|
-
import "
|
|
5
|
+
import "./datePicker.styles.css";
|
|
6
6
|
export type TDatePickerCombinedProps = (DatePickerProps & {
|
|
7
7
|
inline?: false;
|
|
8
8
|
textFieldProps?: Omit<ITextFieldProps, "ref" | "onBlur" | "onFocus" | "disabled">;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const datePickerVariants: (props?: ({
|
|
2
|
+
variant?: "default" | null | undefined;
|
|
3
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
|
+
export declare const datePickerCalendarVariants: (props?: ({
|
|
6
|
+
variant?: "default" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
export declare const calendarStyles: {
|
|
9
|
+
calendar: string;
|
|
10
|
+
header: string;
|
|
11
|
+
timeHeader: string;
|
|
12
|
+
currentMonth: string;
|
|
13
|
+
navigationIcon: string;
|
|
14
|
+
navigationPrevious: string;
|
|
15
|
+
navigationNext: string;
|
|
16
|
+
navigationNextWithTime: string;
|
|
17
|
+
month: string;
|
|
18
|
+
monthWrapper: string;
|
|
19
|
+
monthContainer: string;
|
|
20
|
+
monthText: string;
|
|
21
|
+
monthTextKeyboardSelected: string;
|
|
22
|
+
monthTextSelected: string;
|
|
23
|
+
week: string;
|
|
24
|
+
day: string;
|
|
25
|
+
dayNames: string;
|
|
26
|
+
dayName: string;
|
|
27
|
+
daySelected: string;
|
|
28
|
+
dayInRange: string;
|
|
29
|
+
dayRangeStartEnd: string;
|
|
30
|
+
dayOutsideMonth: string;
|
|
31
|
+
dayDisabled: string;
|
|
32
|
+
year: string;
|
|
33
|
+
yearWrapper: string;
|
|
34
|
+
yearText: string;
|
|
35
|
+
yearTextSelected: string;
|
|
36
|
+
yearTextKeyboardSelected: string;
|
|
37
|
+
yearHeader: string;
|
|
38
|
+
time: string;
|
|
39
|
+
timeList: string;
|
|
40
|
+
timeContainer: string;
|
|
41
|
+
timeListItem: string;
|
|
42
|
+
timeListItemSelected: string;
|
|
43
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
export interface IDistributionSegment {
|
|
4
|
+
name: string;
|
|
5
|
+
value: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface IDistributionSliderProps {
|
|
9
|
+
/**
|
|
10
|
+
* Label for the distribution slider
|
|
11
|
+
*/
|
|
12
|
+
label?: string | ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Array of segments with names and values
|
|
15
|
+
*/
|
|
16
|
+
segments: IDistributionSegment[];
|
|
17
|
+
/**
|
|
18
|
+
* Callback function called when segments change
|
|
19
|
+
*/
|
|
20
|
+
onChange?: (segments: IDistributionSegment[]) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Mode of the distribution slider
|
|
23
|
+
* - 'percentage': Values sum to 100, displayed as percentages (e.g., 33%)
|
|
24
|
+
* - 'absolute': Values sum to targetTotal, displayed as raw numbers (e.g., 40)
|
|
25
|
+
* @default 'percentage'
|
|
26
|
+
*/
|
|
27
|
+
mode?: "percentage" | "absolute";
|
|
28
|
+
/**
|
|
29
|
+
* Target total value for absolute mode (ignored in percentage mode)
|
|
30
|
+
* @default 100
|
|
31
|
+
*/
|
|
32
|
+
targetTotal?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Prefix to display before values in absolute mode
|
|
35
|
+
* Ignored in percentage mode
|
|
36
|
+
*/
|
|
37
|
+
valuePrefix?: ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Additional information or guidance displayed below the slider
|
|
40
|
+
*/
|
|
41
|
+
helperText?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Pass a boolean value to indicate if the component is in an error state
|
|
44
|
+
*/
|
|
45
|
+
error?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Whether the component is disabled
|
|
48
|
+
*/
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Pass space separated class names to override the DistributionSlider styles
|
|
52
|
+
*/
|
|
53
|
+
className?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Size of the slider
|
|
56
|
+
* @default 'md'
|
|
57
|
+
*/
|
|
58
|
+
size?: "md" | "lg";
|
|
59
|
+
/**
|
|
60
|
+
* Step size for keyboard navigation (percentage of target total)
|
|
61
|
+
* @default 1
|
|
62
|
+
*/
|
|
63
|
+
keyboardStep?: number;
|
|
64
|
+
}
|
|
65
|
+
export declare const DEFAULT_SEGMENT_COLORS: readonly ["rgb(6 118 215)", "rgb(61 180 115)", "rgb(245 154 32)", "rgb(231 73 58)", "rgb(89 100 121)", "rgb(152 162 179)"];
|
|
66
|
+
/**
|
|
67
|
+
* DistributionSlider component for adjusting proportional values across multiple segments.
|
|
68
|
+
* Supports drag-and-drop interaction and keyboard navigation to redistribute values while maintaining total.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* // Basic usage with level distribution
|
|
72
|
+
* <DistributionSlider
|
|
73
|
+
* segments={[
|
|
74
|
+
* {name: 'Easy', value: 33},
|
|
75
|
+
* {name: 'Medium', value: 34},
|
|
76
|
+
* {name: 'Hard', value: 33}
|
|
77
|
+
* ]}
|
|
78
|
+
* onChange={setSegments}
|
|
79
|
+
* />
|
|
80
|
+
*/
|
|
81
|
+
export declare const DistributionSlider: React.ForwardRefExoticComponent<IDistributionSliderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const distributionContainerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const distributionLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
3
|
+
export declare const sliderWrapperVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
4
|
+
export declare const segmentLabelsVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
5
|
+
export declare const segmentLabelVariants: (props?: ({
|
|
6
|
+
size?: "md" | "lg" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
export declare const segmentNameVariants: (props?: ({
|
|
9
|
+
size?: "md" | "lg" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
11
|
+
export declare const segmentValueVariants: (props?: ({
|
|
12
|
+
size?: "md" | "lg" | null | undefined;
|
|
13
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
14
|
+
export declare const sliderTrackVariants: (props?: ({
|
|
15
|
+
size?: "md" | "lg" | null | undefined;
|
|
16
|
+
disabled?: boolean | null | undefined;
|
|
17
|
+
error?: boolean | null | undefined;
|
|
18
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
19
|
+
export declare const segmentBackgroundVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
20
|
+
export declare const segmentDividerVariants: (props?: ({
|
|
21
|
+
dragging?: boolean | null | undefined;
|
|
22
|
+
focused?: boolean | null | undefined;
|
|
23
|
+
disabled?: boolean | null | undefined;
|
|
24
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
25
|
+
export declare const distributionHelperTextVariants: (props?: ({
|
|
26
|
+
error?: boolean | null | undefined;
|
|
27
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { DistributionSlider, DEFAULT_SEGMENT_COLORS, type IDistributionSliderProps, type IDistributionSegment } from "./distributionSlider";
|
|
2
|
+
export { distributionContainerVariants, distributionLabelVariants, sliderWrapperVariants, segmentLabelsVariants, segmentLabelVariants, segmentNameVariants, segmentValueVariants, sliderTrackVariants, segmentBackgroundVariants, segmentDividerVariants, distributionHelperTextVariants } from "./distributionSliderVariants";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface IDropdownProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Size of the dropdown.
|
|
5
|
+
* @default md
|
|
6
|
+
*/
|
|
7
|
+
size?: "md" | "lg";
|
|
8
|
+
/**
|
|
9
|
+
* Use to show the title or header
|
|
10
|
+
*/
|
|
11
|
+
header?: React.ReactNode | string;
|
|
12
|
+
/**
|
|
13
|
+
* Child elements of the dropdown (typically DropdownItem components)
|
|
14
|
+
*/
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* JSX to be rendered inside of dropdown button
|
|
18
|
+
*/
|
|
19
|
+
ctaContent?: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Pass a reference to the element where the dropdown needs to be rendered
|
|
22
|
+
*/
|
|
23
|
+
portalTarget?: Element;
|
|
24
|
+
/**
|
|
25
|
+
* Pass space separated class names to style the CTA
|
|
26
|
+
*/
|
|
27
|
+
ctaClassName?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Determines whether the CTA should be disabled or not
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Controls whether the dropdown should close when an item is clicked
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
36
|
+
shouldCloseOnItemClick?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Controls the open state of the dropdown (controlled component)
|
|
39
|
+
*/
|
|
40
|
+
open?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Callback function called when the dropdown should be closed
|
|
43
|
+
*/
|
|
44
|
+
onClose?: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Callback function called when the dropdown toggle (CTA) is clicked (used in controlled mode)
|
|
47
|
+
*/
|
|
48
|
+
onToggle?: () => void;
|
|
49
|
+
}
|
|
50
|
+
export declare const Dropdown: React.ForwardRefExoticComponent<IDropdownProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IDropdownItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the dropdown item
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the dropdown is currently shown
|
|
9
|
+
*/
|
|
10
|
+
dropdownShow?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The index of the item in the dropdown
|
|
13
|
+
*/
|
|
14
|
+
index?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the dropdown item is disabled
|
|
17
|
+
*/
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Function to set the dropdown's visibility
|
|
21
|
+
*/
|
|
22
|
+
setShowDropdown?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
23
|
+
/**
|
|
24
|
+
* Handler function when the dropdown item is clicked
|
|
25
|
+
*/
|
|
26
|
+
onClickHandler?: (e?: React.SyntheticEvent) => void;
|
|
27
|
+
/**
|
|
28
|
+
* The size of the dropdown item
|
|
29
|
+
*/
|
|
30
|
+
size?: "md" | "lg";
|
|
31
|
+
/**
|
|
32
|
+
* The position of the item in the dropdown (for styling first/last items)
|
|
33
|
+
*/
|
|
34
|
+
position?: "first" | "middle" | "last";
|
|
35
|
+
/**
|
|
36
|
+
* Controls whether the dropdown should close when this item is clicked
|
|
37
|
+
*/
|
|
38
|
+
shouldCloseOnItemClick?: boolean;
|
|
39
|
+
}
|
|
40
|
+
export declare const DropdownItem: React.ForwardRefExoticComponent<IDropdownItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IDropdownToggleProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
/**
|
|
4
|
+
* The content of the toggle button
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Additional class name for the toggle button
|
|
9
|
+
*/
|
|
10
|
+
ctaClassName?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const DropdownToggle: React.ForwardRefExoticComponent<IDropdownToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const dropdownVariants: (props?: ({
|
|
2
|
+
size?: "md" | "lg" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const dropdownHeaderVariants: (props?: ({
|
|
5
|
+
type?: "text" | "custom" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare const dropdownItemVariants: (props?: ({
|
|
8
|
+
size?: "md" | "lg" | null | undefined;
|
|
9
|
+
disabled?: boolean | null | undefined;
|
|
10
|
+
position?: "middle" | "first" | "last" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Dropdown as DropdownComponent, type IDropdownProps } from "./dropdown";
|
|
2
|
+
import { DropdownItem, type IDropdownItemProps } from "./dropdownItem";
|
|
3
|
+
import { DropdownToggle, type IDropdownToggleProps } from "./dropdownToggle";
|
|
4
|
+
import { dropdownVariants, dropdownHeaderVariants, dropdownItemVariants } from "./dropdownVariants";
|
|
5
|
+
type TDropdownCompoundComponent = typeof DropdownComponent & {
|
|
6
|
+
Item: typeof DropdownItem;
|
|
7
|
+
};
|
|
8
|
+
declare const Dropdown: TDropdownCompoundComponent;
|
|
9
|
+
export { Dropdown, DropdownItem, DropdownToggle, dropdownVariants, dropdownHeaderVariants, dropdownItemVariants };
|
|
10
|
+
export type { IDropdownProps, IDropdownItemProps, IDropdownToggleProps };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { EmptyStateContent, type IEmptyStateContentProps } from "./emptyStateContent";
|
|
3
|
+
import { EmptyStateCTA, type IEmptyStateCTAProps } from "./emptyStateCta";
|
|
4
|
+
declare const lightSvgs: {
|
|
5
|
+
analytics: string;
|
|
6
|
+
dashboard: string;
|
|
7
|
+
"data-upload": string;
|
|
8
|
+
workspaces: string;
|
|
9
|
+
waiting: string;
|
|
10
|
+
otp: string;
|
|
11
|
+
searching: string;
|
|
12
|
+
notification: string;
|
|
13
|
+
"no-files": string;
|
|
14
|
+
"no-access": string;
|
|
15
|
+
"no-connections": string;
|
|
16
|
+
"forgot-password": string;
|
|
17
|
+
favorite: string;
|
|
18
|
+
login: string;
|
|
19
|
+
"file-upload": string;
|
|
20
|
+
"empty-data": string;
|
|
21
|
+
"empty-data-2": string;
|
|
22
|
+
"empty-data-3": string;
|
|
23
|
+
"empty-data-4": string;
|
|
24
|
+
datapipeline: string;
|
|
25
|
+
};
|
|
26
|
+
export interface IEmptyStateProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
/** Set a supported Empty State image variant */
|
|
28
|
+
imageVariant?: keyof typeof lightSvgs;
|
|
29
|
+
/** Alt text for the image (used only when there is no content) */
|
|
30
|
+
imageAltText?: string;
|
|
31
|
+
/** Custom image element, if provided it will override the variant images */
|
|
32
|
+
customImage?: React.ReactElement<HTMLImageElement>;
|
|
33
|
+
/** Override container styles */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Provide content and/or CTA children */
|
|
36
|
+
children?: React.ReactElement<IEmptyStateContentProps> | React.ReactElement<IEmptyStateCTAProps> | [React.ReactElement<IEmptyStateContentProps>, React.ReactElement<IEmptyStateCTAProps>];
|
|
37
|
+
}
|
|
38
|
+
type TEmptyStateComponent = React.ForwardRefExoticComponent<IEmptyStateProps & React.RefAttributes<HTMLDivElement>> & {
|
|
39
|
+
Content: typeof EmptyStateContent;
|
|
40
|
+
CTA: typeof EmptyStateCTA;
|
|
41
|
+
};
|
|
42
|
+
export declare const EmptyState: TEmptyStateComponent;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IEmptyStateContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** Provide custom classes for the component */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** Content title */
|
|
6
|
+
title?: string;
|
|
7
|
+
/** Content children */
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export declare const EmptyStateContent: React.ForwardRefExoticComponent<IEmptyStateContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default EmptyStateContent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IEmptyStateCTAProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/** Provide custom classes for the component */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** CTA children (e.g., buttons) */
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const EmptyStateCTA: React.ForwardRefExoticComponent<IEmptyStateCTAProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export default EmptyStateCTA;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const emptyStateVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const contentWrapperVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
3
|
+
export declare const contentVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
4
|
+
export declare const titleVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
5
|
+
export declare const emptyStateCtaVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { EmptyState, type IEmptyStateProps } from "./emptyState";
|
|
2
|
+
export { EmptyStateContent, type IEmptyStateContentProps } from "./emptyStateContent";
|
|
3
|
+
export { EmptyStateCTA, type IEmptyStateCTAProps } from "./emptyStateCta";
|
|
4
|
+
export { emptyStateVariants, contentWrapperVariants, contentVariants, titleVariants, emptyStateCtaVariants } from "./emptyStateVariants";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* FileUpload component allows drag & drop or click-to-upload files with custom handling
|
|
4
|
+
* and displays upload progress and errors.
|
|
5
|
+
*/
|
|
6
|
+
export interface IFileUploadProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
/** Array of accepted file extensions */
|
|
8
|
+
acceptedExtensions: string[];
|
|
9
|
+
/** Custom message displayed in the drop area */
|
|
10
|
+
dropAreaCustomMessage?: React.ReactNode;
|
|
11
|
+
/** State tracking the upload progress and error messages for each file */
|
|
12
|
+
uploadState: Record<string, {
|
|
13
|
+
error: boolean;
|
|
14
|
+
helperText?: React.ReactNode;
|
|
15
|
+
progress: number;
|
|
16
|
+
uploading: boolean;
|
|
17
|
+
}> | null;
|
|
18
|
+
/** Determines if multiple file uploads are allowed */
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
/** Disables the upload functionality */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Additional informational text to display about file requirements or upload instructions */
|
|
23
|
+
infoText?: React.ReactNode;
|
|
24
|
+
/** Maximum allowed file size in bytes */
|
|
25
|
+
maxFileSize?: number;
|
|
26
|
+
/** Function to retry uploading files that failed */
|
|
27
|
+
retryFailedUpload?: () => void;
|
|
28
|
+
/** Function to reset the upload state */
|
|
29
|
+
resetUploadState: () => void;
|
|
30
|
+
/** Function triggered after file validation to handle the upload logic */
|
|
31
|
+
handleUpload: (file: File | File[]) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const FileUpload: React.ForwardRefExoticComponent<IFileUploadProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IStatusCardProps {
|
|
3
|
+
fileEntry: {
|
|
4
|
+
file: File;
|
|
5
|
+
state: string;
|
|
6
|
+
};
|
|
7
|
+
uploadState: Record<string, {
|
|
8
|
+
error: boolean;
|
|
9
|
+
helperText?: React.ReactNode;
|
|
10
|
+
progress: number;
|
|
11
|
+
uploading: boolean;
|
|
12
|
+
}> | null;
|
|
13
|
+
maxFileSize?: number;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
acceptedExtensions: string[];
|
|
16
|
+
removeFile: (fileName: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const StatusCard: React.ForwardRefExoticComponent<IStatusCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const statusCardVariants: (props?: ({
|
|
2
|
-
state?: "default" | "
|
|
2
|
+
state?: "default" | "success" | "warning" | "error" | null | undefined;
|
|
3
3
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Loader component for showing loading states.
|
|
4
|
+
*/
|
|
5
|
+
export interface ILoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Variant of the Loader.
|
|
8
|
+
* @default filled
|
|
9
|
+
*/
|
|
10
|
+
variant?: "filled" | "stroked";
|
|
11
|
+
/**
|
|
12
|
+
* Size of the Loader.
|
|
13
|
+
* @default md
|
|
14
|
+
*/
|
|
15
|
+
size?: "sm" | "md" | "lg";
|
|
16
|
+
/**
|
|
17
|
+
* Regular static label.
|
|
18
|
+
*/
|
|
19
|
+
label?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Loader component for showing loading states.
|
|
23
|
+
*/
|
|
24
|
+
export declare const Loader: React.ForwardRefExoticComponent<ILoaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const loaderVariants: (props?: ({
|
|
2
|
+
variant?: "filled" | "stroked" | null | undefined;
|
|
3
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
|
+
export declare const labelVariants: (props?: ({
|
|
6
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|