@cloudwick/astral-ui 5.2.0 → 7.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 +97 -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 +49 -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 +58 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatarGroup/avatarGroup.d.ts +33 -0
- package/dist/components/avatarGroup/avatarGroupVariants.d.ts +16 -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 +58 -5
- 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 +55 -0
- package/dist/components/breadcrumbs/index.d.ts +3 -0
- package/dist/components/button/button.d.ts +80 -0
- package/dist/components/button/buttonVariants.d.ts +73 -6
- 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 +43 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/checkbox/checkbox.d.ts +1 -0
- package/dist/components/checkbox/checkboxVariants.d.ts +112 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkboxGroup/checkboxGroupVariants.d.ts +79 -0
- package/dist/components/checkboxGroup/index.d.ts +2 -0
- package/dist/components/ctaGroup/ctaGroupVariants.d.ts +40 -5
- package/dist/components/ctaGroup/index.d.ts +2 -0
- 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 +103 -0
- package/dist/components/dataTable/index.d.ts +6 -0
- 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 +2 -2
- package/dist/components/datePicker/index.d.ts +2 -0
- package/dist/components/distributionSlider/distributionSlider.d.ts +81 -0
- package/dist/components/distributionSlider/distributionSliderVariants.d.ts +166 -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 +109 -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 +49 -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 +106 -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 +127 -3
- 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 +67 -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 +28 -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 +16 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/paginationVariants.d.ts +61 -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 +248 -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 +109 -0
- package/dist/components/passwordField/index.d.ts +1 -0
- package/dist/components/passwordField/passwordField.d.ts +10 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/progressVariants.d.ts +220 -24
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/radioVariants.d.ts +70 -0
- package/dist/components/radioGroup/index.d.ts +2 -0
- package/dist/components/radioGroup/radioGroupVariants.d.ts +112 -0
- package/dist/components/scrollbar/index.d.ts +2 -0
- package/dist/components/scrollbar/scrollbar.d.ts +2 -2
- package/dist/components/scrollbar/scrollbarVariants.d.ts +100 -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 +40 -0
- package/dist/components/select/types.d.ts +20 -0
- package/dist/components/select/utils.d.ts +3 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabsVariants.d.ts +133 -12
- 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 +13 -0
- package/dist/components/textField/index.d.ts +2 -0
- package/dist/components/textField/textFieldVariants.d.ts +121 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textareaVariants.d.ts +67 -9
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/toast.d.ts +42 -0
- package/dist/components/toast/toastVariants.d.ts +94 -10
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/toggleVariants.d.ts +103 -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 +73 -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 +16 -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/debounce.d.ts +15 -0
- package/dist/utils/findParentAttribute.d.ts +9 -0
- package/dist/utils/{index.js → index.d.ts} +0 -3
- 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 +7 -7
- package/tsconfig.eslint.json +6 -3
- 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 +0 -3
- 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 +0 -5
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -9
- 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 +0 -4
- 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 +0 -5
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -3
- 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 +0 -13
- 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,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>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type DatePickerProps } from "react-datepicker";
|
|
3
|
-
import "react-datepicker/dist/react-datepicker.css";
|
|
4
3
|
import { type ITextFieldProps } from "../textField";
|
|
5
|
-
import "
|
|
4
|
+
import "react-datepicker/dist/react-datepicker.css";
|
|
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,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,166 @@
|
|
|
1
|
+
export declare const distributionSliderVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
md: {
|
|
4
|
+
segmentLabel: string;
|
|
5
|
+
segmentName: string;
|
|
6
|
+
segmentValue: string;
|
|
7
|
+
sliderTrack: string;
|
|
8
|
+
};
|
|
9
|
+
lg: {
|
|
10
|
+
segmentLabel: string;
|
|
11
|
+
segmentName: string;
|
|
12
|
+
segmentValue: string;
|
|
13
|
+
sliderTrack: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
disabled: {
|
|
17
|
+
true: {
|
|
18
|
+
sliderTrack: string;
|
|
19
|
+
segmentDivider: string;
|
|
20
|
+
};
|
|
21
|
+
false: {};
|
|
22
|
+
};
|
|
23
|
+
error: {
|
|
24
|
+
true: {
|
|
25
|
+
sliderTrack: string;
|
|
26
|
+
helperText: string;
|
|
27
|
+
};
|
|
28
|
+
false: {
|
|
29
|
+
helperText: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
dragging: {
|
|
33
|
+
true: {
|
|
34
|
+
segmentDivider: string;
|
|
35
|
+
};
|
|
36
|
+
false: {};
|
|
37
|
+
};
|
|
38
|
+
focused: {
|
|
39
|
+
true: {
|
|
40
|
+
segmentDivider: string;
|
|
41
|
+
};
|
|
42
|
+
false: {};
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
container: string;
|
|
46
|
+
label: string;
|
|
47
|
+
sliderWrapper: string;
|
|
48
|
+
segmentLabels: string;
|
|
49
|
+
segmentLabel: string;
|
|
50
|
+
segmentName: string;
|
|
51
|
+
segmentValue: string;
|
|
52
|
+
sliderTrack: string[];
|
|
53
|
+
segmentBackground: string;
|
|
54
|
+
segmentDivider: string[];
|
|
55
|
+
helperText: string;
|
|
56
|
+
}, undefined, {
|
|
57
|
+
size: {
|
|
58
|
+
md: {
|
|
59
|
+
segmentLabel: string;
|
|
60
|
+
segmentName: string;
|
|
61
|
+
segmentValue: string;
|
|
62
|
+
sliderTrack: string;
|
|
63
|
+
};
|
|
64
|
+
lg: {
|
|
65
|
+
segmentLabel: string;
|
|
66
|
+
segmentName: string;
|
|
67
|
+
segmentValue: string;
|
|
68
|
+
sliderTrack: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
disabled: {
|
|
72
|
+
true: {
|
|
73
|
+
sliderTrack: string;
|
|
74
|
+
segmentDivider: string;
|
|
75
|
+
};
|
|
76
|
+
false: {};
|
|
77
|
+
};
|
|
78
|
+
error: {
|
|
79
|
+
true: {
|
|
80
|
+
sliderTrack: string;
|
|
81
|
+
helperText: string;
|
|
82
|
+
};
|
|
83
|
+
false: {
|
|
84
|
+
helperText: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
dragging: {
|
|
88
|
+
true: {
|
|
89
|
+
segmentDivider: string;
|
|
90
|
+
};
|
|
91
|
+
false: {};
|
|
92
|
+
};
|
|
93
|
+
focused: {
|
|
94
|
+
true: {
|
|
95
|
+
segmentDivider: string;
|
|
96
|
+
};
|
|
97
|
+
false: {};
|
|
98
|
+
};
|
|
99
|
+
}, {
|
|
100
|
+
container: string;
|
|
101
|
+
label: string;
|
|
102
|
+
sliderWrapper: string;
|
|
103
|
+
segmentLabels: string;
|
|
104
|
+
segmentLabel: string;
|
|
105
|
+
segmentName: string;
|
|
106
|
+
segmentValue: string;
|
|
107
|
+
sliderTrack: string[];
|
|
108
|
+
segmentBackground: string;
|
|
109
|
+
segmentDivider: string[];
|
|
110
|
+
helperText: string;
|
|
111
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
112
|
+
size: {
|
|
113
|
+
md: {
|
|
114
|
+
segmentLabel: string;
|
|
115
|
+
segmentName: string;
|
|
116
|
+
segmentValue: string;
|
|
117
|
+
sliderTrack: string;
|
|
118
|
+
};
|
|
119
|
+
lg: {
|
|
120
|
+
segmentLabel: string;
|
|
121
|
+
segmentName: string;
|
|
122
|
+
segmentValue: string;
|
|
123
|
+
sliderTrack: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
disabled: {
|
|
127
|
+
true: {
|
|
128
|
+
sliderTrack: string;
|
|
129
|
+
segmentDivider: string;
|
|
130
|
+
};
|
|
131
|
+
false: {};
|
|
132
|
+
};
|
|
133
|
+
error: {
|
|
134
|
+
true: {
|
|
135
|
+
sliderTrack: string;
|
|
136
|
+
helperText: string;
|
|
137
|
+
};
|
|
138
|
+
false: {
|
|
139
|
+
helperText: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
dragging: {
|
|
143
|
+
true: {
|
|
144
|
+
segmentDivider: string;
|
|
145
|
+
};
|
|
146
|
+
false: {};
|
|
147
|
+
};
|
|
148
|
+
focused: {
|
|
149
|
+
true: {
|
|
150
|
+
segmentDivider: string;
|
|
151
|
+
};
|
|
152
|
+
false: {};
|
|
153
|
+
};
|
|
154
|
+
}, {
|
|
155
|
+
container: string;
|
|
156
|
+
label: string;
|
|
157
|
+
sliderWrapper: string;
|
|
158
|
+
segmentLabels: string;
|
|
159
|
+
segmentLabel: string;
|
|
160
|
+
segmentName: string;
|
|
161
|
+
segmentValue: string;
|
|
162
|
+
sliderTrack: string[];
|
|
163
|
+
segmentBackground: string;
|
|
164
|
+
segmentDivider: string[];
|
|
165
|
+
helperText: string;
|
|
166
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -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,109 @@
|
|
|
1
|
+
export declare const dropdownVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
md: {
|
|
4
|
+
item: string;
|
|
5
|
+
};
|
|
6
|
+
lg: {
|
|
7
|
+
item: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
headerType: {
|
|
11
|
+
text: {
|
|
12
|
+
header: string;
|
|
13
|
+
};
|
|
14
|
+
custom: {
|
|
15
|
+
header: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
true: {
|
|
20
|
+
item: string;
|
|
21
|
+
};
|
|
22
|
+
false: {};
|
|
23
|
+
};
|
|
24
|
+
position: {
|
|
25
|
+
first: {
|
|
26
|
+
item: string;
|
|
27
|
+
};
|
|
28
|
+
last: {
|
|
29
|
+
item: string;
|
|
30
|
+
};
|
|
31
|
+
middle: {};
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
menu: string;
|
|
35
|
+
header: string;
|
|
36
|
+
item: string;
|
|
37
|
+
}, undefined, {
|
|
38
|
+
size: {
|
|
39
|
+
md: {
|
|
40
|
+
item: string;
|
|
41
|
+
};
|
|
42
|
+
lg: {
|
|
43
|
+
item: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
headerType: {
|
|
47
|
+
text: {
|
|
48
|
+
header: string;
|
|
49
|
+
};
|
|
50
|
+
custom: {
|
|
51
|
+
header: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
disabled: {
|
|
55
|
+
true: {
|
|
56
|
+
item: string;
|
|
57
|
+
};
|
|
58
|
+
false: {};
|
|
59
|
+
};
|
|
60
|
+
position: {
|
|
61
|
+
first: {
|
|
62
|
+
item: string;
|
|
63
|
+
};
|
|
64
|
+
last: {
|
|
65
|
+
item: string;
|
|
66
|
+
};
|
|
67
|
+
middle: {};
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
menu: string;
|
|
71
|
+
header: string;
|
|
72
|
+
item: string;
|
|
73
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
74
|
+
size: {
|
|
75
|
+
md: {
|
|
76
|
+
item: string;
|
|
77
|
+
};
|
|
78
|
+
lg: {
|
|
79
|
+
item: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
headerType: {
|
|
83
|
+
text: {
|
|
84
|
+
header: string;
|
|
85
|
+
};
|
|
86
|
+
custom: {
|
|
87
|
+
header: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
disabled: {
|
|
91
|
+
true: {
|
|
92
|
+
item: string;
|
|
93
|
+
};
|
|
94
|
+
false: {};
|
|
95
|
+
};
|
|
96
|
+
position: {
|
|
97
|
+
first: {
|
|
98
|
+
item: string;
|
|
99
|
+
};
|
|
100
|
+
last: {
|
|
101
|
+
item: string;
|
|
102
|
+
};
|
|
103
|
+
middle: {};
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
menu: string;
|
|
107
|
+
header: string;
|
|
108
|
+
item: string;
|
|
109
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -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 } from "./dropdownVariants";
|
|
5
|
+
type TDropdownCompoundComponent = typeof DropdownComponent & {
|
|
6
|
+
Item: typeof DropdownItem;
|
|
7
|
+
};
|
|
8
|
+
declare const Dropdown: TDropdownCompoundComponent;
|
|
9
|
+
export { Dropdown, DropdownItem, DropdownToggle, dropdownVariants };
|
|
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;
|