@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
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
UI Library for Cloudwick
|
|
4
4
|
|
|
5
|
-
Version -
|
|
5
|
+
Version - 7.0.0
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -39,6 +39,7 @@ Astral UI provides the following components:
|
|
|
39
39
|
- CTAGroup
|
|
40
40
|
- DataTable
|
|
41
41
|
- DatePicker
|
|
42
|
+
- DistributionSlider
|
|
42
43
|
- Dropdown
|
|
43
44
|
- EmptyState
|
|
44
45
|
- FileUpload
|
|
@@ -74,8 +75,10 @@ import { tailwindThemeConfig } from '@cloudwick/astral-ui';
|
|
|
74
75
|
export default {
|
|
75
76
|
// Your existing config
|
|
76
77
|
theme: {
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
extend: {
|
|
79
|
+
// Add Astral UI theme
|
|
80
|
+
...tailwindThemeConfig
|
|
81
|
+
}
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
```
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ReactElement } from "react";
|
|
3
|
+
export type TAccordionSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
+
export interface IAccordionHeaderProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* Overwrite the styles for AccordionHeader by passing space separated class names
|
|
8
|
+
*/
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const AccordionHeader: React.ForwardRefExoticComponent<IAccordionHeaderProps & React.RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
export interface IAccordionBodyProps {
|
|
13
|
+
children: React.ReactNode | React.ReactElement;
|
|
14
|
+
/**
|
|
15
|
+
* Overwrite the styles for AccordionBody by passing space separated class names
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const AccordionBody: React.ForwardRefExoticComponent<IAccordionBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export interface IAccordionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
children?: Array<ReactElement<IAccordionBodyProps | IAccordionHeaderProps>>;
|
|
22
|
+
/**
|
|
23
|
+
* Expand or collapse the Accordion
|
|
24
|
+
*/
|
|
25
|
+
expand?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Set it to false if you want the Accordion to Expand or Collapse only on click of the arrow
|
|
28
|
+
*/
|
|
29
|
+
clickableHeader?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Size of the Accordion Header (Text and Spacing)
|
|
32
|
+
* @default sm
|
|
33
|
+
*/
|
|
34
|
+
size?: TAccordionSize;
|
|
35
|
+
/**
|
|
36
|
+
* Overwrite the styles for Accordion by passing space separated class names
|
|
37
|
+
*/
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IAccordionType extends React.ForwardRefExoticComponent<IAccordionProps & React.RefAttributes<HTMLDivElement>> {
|
|
41
|
+
Header: typeof AccordionHeader;
|
|
42
|
+
Body: typeof AccordionBody;
|
|
43
|
+
}
|
|
44
|
+
export declare const Accordion: IAccordionType;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export declare const accordionVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
xs: {
|
|
4
|
+
header: string;
|
|
5
|
+
content: string;
|
|
6
|
+
};
|
|
7
|
+
sm: {
|
|
8
|
+
header: string;
|
|
9
|
+
content: string;
|
|
10
|
+
};
|
|
11
|
+
md: {
|
|
12
|
+
header: string;
|
|
13
|
+
content: string;
|
|
14
|
+
};
|
|
15
|
+
lg: {
|
|
16
|
+
header: string;
|
|
17
|
+
content: string;
|
|
18
|
+
};
|
|
19
|
+
xl: {
|
|
20
|
+
header: string;
|
|
21
|
+
content: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
expanded: {
|
|
25
|
+
true: {
|
|
26
|
+
content: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
base: string[];
|
|
31
|
+
header: string;
|
|
32
|
+
content: string;
|
|
33
|
+
}, undefined, {
|
|
34
|
+
size: {
|
|
35
|
+
xs: {
|
|
36
|
+
header: string;
|
|
37
|
+
content: string;
|
|
38
|
+
};
|
|
39
|
+
sm: {
|
|
40
|
+
header: string;
|
|
41
|
+
content: string;
|
|
42
|
+
};
|
|
43
|
+
md: {
|
|
44
|
+
header: string;
|
|
45
|
+
content: string;
|
|
46
|
+
};
|
|
47
|
+
lg: {
|
|
48
|
+
header: string;
|
|
49
|
+
content: string;
|
|
50
|
+
};
|
|
51
|
+
xl: {
|
|
52
|
+
header: string;
|
|
53
|
+
content: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
expanded: {
|
|
57
|
+
true: {
|
|
58
|
+
content: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
base: string[];
|
|
63
|
+
header: string;
|
|
64
|
+
content: string;
|
|
65
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
66
|
+
size: {
|
|
67
|
+
xs: {
|
|
68
|
+
header: string;
|
|
69
|
+
content: string;
|
|
70
|
+
};
|
|
71
|
+
sm: {
|
|
72
|
+
header: string;
|
|
73
|
+
content: string;
|
|
74
|
+
};
|
|
75
|
+
md: {
|
|
76
|
+
header: string;
|
|
77
|
+
content: string;
|
|
78
|
+
};
|
|
79
|
+
lg: {
|
|
80
|
+
header: string;
|
|
81
|
+
content: string;
|
|
82
|
+
};
|
|
83
|
+
xl: {
|
|
84
|
+
header: string;
|
|
85
|
+
content: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
expanded: {
|
|
89
|
+
true: {
|
|
90
|
+
content: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
base: string[];
|
|
95
|
+
header: string;
|
|
96
|
+
content: string;
|
|
97
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -12,10 +12,9 @@ export { iconList };
|
|
|
12
12
|
export interface IADPIconProps extends Omit<React.SVGAttributes<SVGSVGElement>, "size"> {
|
|
13
13
|
/**
|
|
14
14
|
* Icon name from the list of available icons
|
|
15
|
-
*
|
|
16
|
-
* @default "custom-icon"
|
|
15
|
+
* @default undefined
|
|
17
16
|
*/
|
|
18
|
-
icon
|
|
17
|
+
icon?: TIconType;
|
|
19
18
|
/**
|
|
20
19
|
* Size of the icon. The size is proportional to the initial size of the icon.
|
|
21
20
|
* @default "sm"
|
|
@@ -45,7 +44,6 @@ export interface IADPIconProps extends Omit<React.SVGAttributes<SVGSVGElement>,
|
|
|
45
44
|
fixedWidth?: boolean;
|
|
46
45
|
/**
|
|
47
46
|
* Custom SVG object to be used instead of one of the default icons.
|
|
48
|
-
* Use "custom-icon" as the icon prop to bypass the required icon prop.
|
|
49
47
|
* The custom SVG object should have the following properties:
|
|
50
48
|
* - SVGPath: ReactElement (required) (SVG path element)
|
|
51
49
|
* - xOffset: number (optional)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const adpIconVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
default: string;
|
|
4
|
+
};
|
|
5
|
+
fixedWidth: {
|
|
6
|
+
true: string;
|
|
7
|
+
};
|
|
8
|
+
padded: {
|
|
9
|
+
true: string;
|
|
10
|
+
};
|
|
11
|
+
spin: {
|
|
12
|
+
true: string;
|
|
13
|
+
};
|
|
14
|
+
}, undefined, "fill-current", {
|
|
15
|
+
variant: {
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
fixedWidth: {
|
|
19
|
+
true: string;
|
|
20
|
+
};
|
|
21
|
+
padded: {
|
|
22
|
+
true: string;
|
|
23
|
+
};
|
|
24
|
+
spin: {
|
|
25
|
+
true: string;
|
|
26
|
+
};
|
|
27
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
28
|
+
variant: {
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
fixedWidth: {
|
|
32
|
+
true: string;
|
|
33
|
+
};
|
|
34
|
+
padded: {
|
|
35
|
+
true: string;
|
|
36
|
+
};
|
|
37
|
+
spin: {
|
|
38
|
+
true: string;
|
|
39
|
+
};
|
|
40
|
+
}, undefined, "fill-current", unknown, unknown, undefined>>;
|
|
41
|
+
export declare const iconSizeProportions: {
|
|
42
|
+
xxs: number;
|
|
43
|
+
xs: number;
|
|
44
|
+
sm: number;
|
|
45
|
+
md: number;
|
|
46
|
+
lg: number;
|
|
47
|
+
xl: number;
|
|
48
|
+
"2xl": number;
|
|
49
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Avatar component for displaying user profile images with fallback support
|
|
4
|
+
*/
|
|
5
|
+
export interface IAvatarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** The image source URL */
|
|
7
|
+
img?: string;
|
|
8
|
+
/** The label/name to display as fallback */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** The size of the avatar */
|
|
11
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
12
|
+
/** Alt text for the avatar image */
|
|
13
|
+
alt?: string;
|
|
14
|
+
/** If true, the label will be abbreviated to its initials */
|
|
15
|
+
abbreviate?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Avatar component for displaying user profile images with fallback support
|
|
19
|
+
*/
|
|
20
|
+
export declare const Avatar: React.ForwardRefExoticComponent<IAvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const avatarVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
size: {
|
|
3
|
+
sm: {
|
|
4
|
+
base: string;
|
|
5
|
+
};
|
|
6
|
+
md: {
|
|
7
|
+
base: string;
|
|
8
|
+
};
|
|
9
|
+
lg: {
|
|
10
|
+
base: string;
|
|
11
|
+
};
|
|
12
|
+
xl: {
|
|
13
|
+
base: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
base: string[];
|
|
18
|
+
image: string;
|
|
19
|
+
fallback: string;
|
|
20
|
+
}, undefined, {
|
|
21
|
+
size: {
|
|
22
|
+
sm: {
|
|
23
|
+
base: string;
|
|
24
|
+
};
|
|
25
|
+
md: {
|
|
26
|
+
base: string;
|
|
27
|
+
};
|
|
28
|
+
lg: {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
xl: {
|
|
32
|
+
base: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
base: string[];
|
|
37
|
+
image: string;
|
|
38
|
+
fallback: string;
|
|
39
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
40
|
+
size: {
|
|
41
|
+
sm: {
|
|
42
|
+
base: string;
|
|
43
|
+
};
|
|
44
|
+
md: {
|
|
45
|
+
base: string;
|
|
46
|
+
};
|
|
47
|
+
lg: {
|
|
48
|
+
base: string;
|
|
49
|
+
};
|
|
50
|
+
xl: {
|
|
51
|
+
base: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
base: string[];
|
|
56
|
+
image: string;
|
|
57
|
+
fallback: string;
|
|
58
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type IAvatarProps } from "../avatar";
|
|
3
|
+
/**
|
|
4
|
+
* AvatarGroup component for displaying a group of avatars with overflow handling
|
|
5
|
+
*/
|
|
6
|
+
export interface IAvatarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
/**
|
|
8
|
+
* Accept children
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactElement<IAvatarProps> | Array<React.ReactElement<IAvatarProps>>;
|
|
11
|
+
/**
|
|
12
|
+
* Callback to be called when the AvatarGroup is clicked
|
|
13
|
+
*/
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Maximum items to display in the group before the custom avatar is shown
|
|
17
|
+
* @default 4
|
|
18
|
+
*/
|
|
19
|
+
maxItems?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Size of the Avatars
|
|
22
|
+
* @default md
|
|
23
|
+
*/
|
|
24
|
+
size?: IAvatarProps["size"];
|
|
25
|
+
/**
|
|
26
|
+
* Overwrite the styles for the AvatarGroup by passing space separated class names
|
|
27
|
+
*/
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* AvatarGroup component for displaying a group of avatars with overflow handling
|
|
32
|
+
*/
|
|
33
|
+
export declare const AvatarGroup: React.ForwardRefExoticComponent<IAvatarGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const avatarGroupVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
clickable: {
|
|
3
|
+
true: string;
|
|
4
|
+
false: string;
|
|
5
|
+
};
|
|
6
|
+
}, undefined, "inline-flex items-center flex-wrap -space-x-3", {
|
|
7
|
+
clickable: {
|
|
8
|
+
true: string;
|
|
9
|
+
false: string;
|
|
10
|
+
};
|
|
11
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
12
|
+
clickable: {
|
|
13
|
+
true: string;
|
|
14
|
+
false: string;
|
|
15
|
+
};
|
|
16
|
+
}, undefined, "inline-flex items-center flex-wrap -space-x-3", unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Badge component for displaying small counts, labels, or statuses
|
|
4
|
+
*/
|
|
5
|
+
export interface IBadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/** Text to be displayed inside the badge */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** Icon to be displayed before the label */
|
|
9
|
+
prefixIcon?: React.ReactNode;
|
|
10
|
+
/** Icon to be displayed after the label */
|
|
11
|
+
suffixIcon?: React.ReactNode;
|
|
12
|
+
/** Badge appearance style */
|
|
13
|
+
variant?: "filled" | "ghost" | "outline" | "text";
|
|
14
|
+
/** Badge size */
|
|
15
|
+
size?: "sm" | "md" | "lg";
|
|
16
|
+
/** Badge color scheme */
|
|
17
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error";
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Badge component for displaying small counts, labels, or statuses
|
|
21
|
+
*/
|
|
22
|
+
export declare const Badge: React.ForwardRefExoticComponent<IBadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,58 @@
|
|
|
1
|
-
export declare const badgeVariants: (
|
|
2
|
-
variant
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export declare const badgeVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
filled: string;
|
|
4
|
+
ghost: string;
|
|
5
|
+
outline: string;
|
|
6
|
+
text: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
sm: string;
|
|
10
|
+
md: string;
|
|
11
|
+
lg: string;
|
|
12
|
+
};
|
|
13
|
+
color: {
|
|
14
|
+
primary: string;
|
|
15
|
+
secondary: string;
|
|
16
|
+
success: string;
|
|
17
|
+
warning: string;
|
|
18
|
+
error: string;
|
|
19
|
+
};
|
|
20
|
+
}, undefined, "inline-flex justify-center items-center gap-1 rounded-full font-medium ease-in-out duration-300 bg-transparent", {
|
|
21
|
+
variant: {
|
|
22
|
+
filled: string;
|
|
23
|
+
ghost: string;
|
|
24
|
+
outline: string;
|
|
25
|
+
text: string;
|
|
26
|
+
};
|
|
27
|
+
size: {
|
|
28
|
+
sm: string;
|
|
29
|
+
md: string;
|
|
30
|
+
lg: string;
|
|
31
|
+
};
|
|
32
|
+
color: {
|
|
33
|
+
primary: string;
|
|
34
|
+
secondary: string;
|
|
35
|
+
success: string;
|
|
36
|
+
warning: string;
|
|
37
|
+
error: string;
|
|
38
|
+
};
|
|
39
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
40
|
+
variant: {
|
|
41
|
+
filled: string;
|
|
42
|
+
ghost: string;
|
|
43
|
+
outline: string;
|
|
44
|
+
text: string;
|
|
45
|
+
};
|
|
46
|
+
size: {
|
|
47
|
+
sm: string;
|
|
48
|
+
md: string;
|
|
49
|
+
lg: string;
|
|
50
|
+
};
|
|
51
|
+
color: {
|
|
52
|
+
primary: string;
|
|
53
|
+
secondary: string;
|
|
54
|
+
success: string;
|
|
55
|
+
warning: string;
|
|
56
|
+
error: string;
|
|
57
|
+
};
|
|
58
|
+
}, undefined, "inline-flex justify-center items-center gap-1 rounded-full font-medium ease-in-out duration-300 bg-transparent", unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Props for the BreadcrumbItem component
|
|
4
|
+
*/
|
|
5
|
+
export interface IBreadcrumbItemProps extends React.HTMLAttributes<HTMLLIElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Location href for the breadcrumbs item anchor element
|
|
8
|
+
*/
|
|
9
|
+
href?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Target property for the breadcrumbs item anchor element.
|
|
12
|
+
*/
|
|
13
|
+
target?: "_blank" | "_self";
|
|
14
|
+
/**
|
|
15
|
+
* When set to true the user can pass any custom link component as children instead of using the default <a> tag.
|
|
16
|
+
*/
|
|
17
|
+
customLink?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Make the current breadcrumbs item as active
|
|
20
|
+
*/
|
|
21
|
+
active?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Individual item in a breadcrumb trail
|
|
25
|
+
*/
|
|
26
|
+
export declare const BreadcrumbItem: React.ForwardRefExoticComponent<IBreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { BreadcrumbItem, type IBreadcrumbItemProps } from "./breadcrumbItem";
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Breadcrumbs component
|
|
5
|
+
*/
|
|
6
|
+
export interface IBreadcrumbsProps extends React.HTMLAttributes<HTMLElement> {
|
|
7
|
+
/**
|
|
8
|
+
* The maximum number of items to display in the breadcrumbs
|
|
9
|
+
* @default 10
|
|
10
|
+
* @range 2 - maxItems
|
|
11
|
+
*/
|
|
12
|
+
maxItems?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Accepts Breadcrumbs.Item[]
|
|
15
|
+
*/
|
|
16
|
+
children?: React.ReactElement<IBreadcrumbItemProps> | Array<React.ReactElement<IBreadcrumbItemProps>>;
|
|
17
|
+
/**
|
|
18
|
+
* Determines the separator type: "arrow" for ">", "dot" for "."
|
|
19
|
+
* @default "arrow"
|
|
20
|
+
*/
|
|
21
|
+
separatorType?: "arrow" | "dot";
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Breadcrumbs component for navigation
|
|
25
|
+
*/
|
|
26
|
+
declare const BreadcrumbsComponent: React.ForwardRefExoticComponent<IBreadcrumbsProps & React.RefAttributes<HTMLElement>>;
|
|
27
|
+
type TBreadcrumbsCompoundComponent = typeof BreadcrumbsComponent & {
|
|
28
|
+
Item: typeof BreadcrumbItem;
|
|
29
|
+
};
|
|
30
|
+
declare const Breadcrumbs: TBreadcrumbsCompoundComponent;
|
|
31
|
+
export { Breadcrumbs, BreadcrumbItem };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export declare const breadcrumbsVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
separatorType: {
|
|
3
|
+
arrow: {};
|
|
4
|
+
dot: {};
|
|
5
|
+
};
|
|
6
|
+
active: {
|
|
7
|
+
true: {
|
|
8
|
+
item: string;
|
|
9
|
+
};
|
|
10
|
+
false: {};
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
root: string;
|
|
14
|
+
list: string;
|
|
15
|
+
separator: string;
|
|
16
|
+
svgIcon: string;
|
|
17
|
+
dotSeparator: string;
|
|
18
|
+
item: string;
|
|
19
|
+
}, undefined, {
|
|
20
|
+
separatorType: {
|
|
21
|
+
arrow: {};
|
|
22
|
+
dot: {};
|
|
23
|
+
};
|
|
24
|
+
active: {
|
|
25
|
+
true: {
|
|
26
|
+
item: string;
|
|
27
|
+
};
|
|
28
|
+
false: {};
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
root: string;
|
|
32
|
+
list: string;
|
|
33
|
+
separator: string;
|
|
34
|
+
svgIcon: string;
|
|
35
|
+
dotSeparator: string;
|
|
36
|
+
item: string;
|
|
37
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
38
|
+
separatorType: {
|
|
39
|
+
arrow: {};
|
|
40
|
+
dot: {};
|
|
41
|
+
};
|
|
42
|
+
active: {
|
|
43
|
+
true: {
|
|
44
|
+
item: string;
|
|
45
|
+
};
|
|
46
|
+
false: {};
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
root: string;
|
|
50
|
+
list: string;
|
|
51
|
+
separator: string;
|
|
52
|
+
svgIcon: string;
|
|
53
|
+
dotSeparator: string;
|
|
54
|
+
item: string;
|
|
55
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Placement } from "@floating-ui/react";
|
|
3
|
+
import { type TIconType } from "../adpIcon";
|
|
4
|
+
export declare const colors: readonly ["primary", "secondary", "success", "warning", "error"];
|
|
5
|
+
export declare const variants: readonly ["filled", "outline", "shade", "text"];
|
|
6
|
+
export declare enum ESizes {
|
|
7
|
+
XS = "xs",
|
|
8
|
+
SM = "sm",
|
|
9
|
+
MD = "md",
|
|
10
|
+
LG = "lg",
|
|
11
|
+
XL = "xl"
|
|
12
|
+
}
|
|
13
|
+
export type TColor = (typeof colors)[number];
|
|
14
|
+
export type TVariant = (typeof variants)[number];
|
|
15
|
+
export type TSize = `${ESizes}`;
|
|
16
|
+
/**
|
|
17
|
+
* Button component from Astral UI
|
|
18
|
+
*/
|
|
19
|
+
export interface IButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "css"> {
|
|
20
|
+
/**
|
|
21
|
+
* Size of the button.
|
|
22
|
+
* @default md
|
|
23
|
+
*/
|
|
24
|
+
size?: TSize;
|
|
25
|
+
/**
|
|
26
|
+
* Color of the button.
|
|
27
|
+
* @default primary
|
|
28
|
+
*/
|
|
29
|
+
color?: TColor;
|
|
30
|
+
/**
|
|
31
|
+
* Variant of the button.
|
|
32
|
+
* @default filled
|
|
33
|
+
*/
|
|
34
|
+
variant?: TVariant;
|
|
35
|
+
/**
|
|
36
|
+
* Shows loading animation instead of the button content
|
|
37
|
+
*/
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Icon to be displayed before the button's content.
|
|
41
|
+
* @description
|
|
42
|
+
* This prop accepts either an IconType (string) or a ReactNode.
|
|
43
|
+
* - If an IconType is provided, it will render an ADPIcon component.
|
|
44
|
+
* - If a ReactNode is provided, it will be rendered as-is.
|
|
45
|
+
*/
|
|
46
|
+
prefixIcon?: TIconType | React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* Icon to be displayed after the button's content.
|
|
49
|
+
* @description
|
|
50
|
+
* This prop accepts either an IconType (string) or a ReactNode.
|
|
51
|
+
* - If an IconType is provided, it will render an ADPIcon component.
|
|
52
|
+
* - If a ReactNode is provided, it will be rendered as-is.
|
|
53
|
+
*/
|
|
54
|
+
suffixIcon?: TIconType | React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Tooltip to be displayed on hover of the button.
|
|
57
|
+
* @description
|
|
58
|
+
* This prop accepts a ReactNode, if this is passed then the button will render
|
|
59
|
+
* tooltip on hover of the button.
|
|
60
|
+
* This tooltip is only on hover and not on click.
|
|
61
|
+
*/
|
|
62
|
+
tooltip?: React.ReactNode;
|
|
63
|
+
/**
|
|
64
|
+
* Placement of the tooltip
|
|
65
|
+
* @default "bottom-end"
|
|
66
|
+
*/
|
|
67
|
+
tooltipPlacement?: Placement;
|
|
68
|
+
}
|
|
69
|
+
export declare const ButtonSizeToSpinnerMap: Record<TSize, "xxs" | "xs" | "sm" | "md" | "lg" | "xl">;
|
|
70
|
+
/**
|
|
71
|
+
* Button component with multiple variants, colors, and sizes.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```tsx
|
|
75
|
+
* <Button variant="filled" color="primary" size="md">
|
|
76
|
+
* Click me
|
|
77
|
+
* </Button>
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export declare const Button: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>>;
|