@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
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
UI Library for Cloudwick
|
|
4
4
|
|
|
5
|
-
Version -
|
|
5
|
+
Version - 6.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,10 @@
|
|
|
1
|
+
export declare const accordionVariants: (props?: ({
|
|
2
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const accordionHeaderVariants: (props?: ({
|
|
5
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare const accordionContentVariants: (props?: ({
|
|
8
|
+
expanded?: boolean | null | undefined;
|
|
9
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -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,15 @@
|
|
|
1
|
+
export declare const adpIconVariants: (props?: ({
|
|
2
|
+
variant?: "default" | null | undefined;
|
|
3
|
+
fixedWidth?: boolean | null | undefined;
|
|
4
|
+
padded?: boolean | null | undefined;
|
|
5
|
+
spin?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare const iconSizeProportions: {
|
|
8
|
+
xxs: number;
|
|
9
|
+
xs: number;
|
|
10
|
+
sm: number;
|
|
11
|
+
md: number;
|
|
12
|
+
lg: number;
|
|
13
|
+
xl: number;
|
|
14
|
+
"2xl": number;
|
|
15
|
+
};
|
|
@@ -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,5 @@
|
|
|
1
|
+
export declare const avatarVariants: (props?: ({
|
|
2
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const avatarImageVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
5
|
+
export declare const avatarFallbackVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
@@ -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,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,5 @@
|
|
|
1
1
|
export declare const badgeVariants: (props?: ({
|
|
2
2
|
variant?: "text" | "filled" | "outline" | "ghost" | null | undefined;
|
|
3
3
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
|
-
color?: "
|
|
4
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -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,10 @@
|
|
|
1
|
+
export declare const breadcrumbsVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
2
|
+
export declare const breadcrumbsListVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
3
|
+
export declare const breadcrumbsSeparatorVariants: (props?: ({
|
|
4
|
+
separatorType?: "arrow" | "dot" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
export declare const breadcrumbsSvgIconVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare const breadcrumbsDotSeparatorVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
export declare const breadcrumbsItemVariants: (props?: ({
|
|
9
|
+
active?: boolean | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Breadcrumbs } from "./breadcrumbs";
|
|
2
|
-
import { BreadcrumbItem } from "./breadcrumbItem";
|
|
1
|
+
import { Breadcrumbs, type IBreadcrumbsProps } from "./breadcrumbs";
|
|
2
|
+
import { BreadcrumbItem, type IBreadcrumbItemProps } from "./breadcrumbItem";
|
|
3
3
|
import { breadcrumbsVariants, breadcrumbsListVariants, breadcrumbsSeparatorVariants, breadcrumbsSvgIconVariants, breadcrumbsDotSeparatorVariants, breadcrumbsItemVariants } from "./breadcrumbsVariants";
|
|
4
4
|
export { Breadcrumbs, BreadcrumbItem, breadcrumbsVariants, breadcrumbsListVariants, breadcrumbsSeparatorVariants, breadcrumbsSvgIconVariants, breadcrumbsDotSeparatorVariants, breadcrumbsItemVariants };
|
|
5
|
-
|
|
5
|
+
export type { IBreadcrumbsProps, IBreadcrumbItemProps };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type TIconType } from "../adpIcon";
|
|
3
|
+
import type { Placement } from "@floating-ui/react";
|
|
4
|
+
export declare const colors: readonly ["primary", "secondary", "success", "warning", "error"];
|
|
5
|
+
export declare const variants: readonly ["filled", "outline", "shade", "text"];
|
|
6
|
+
export declare enum ESizes {
|
|
7
|
+
XS = "xs",
|
|
8
|
+
SM = "sm",
|
|
9
|
+
MD = "md",
|
|
10
|
+
LG = "lg",
|
|
11
|
+
XL = "xl"
|
|
12
|
+
}
|
|
13
|
+
export type TColor = (typeof colors)[number];
|
|
14
|
+
export type TVariant = (typeof variants)[number];
|
|
15
|
+
export type TSize = `${ESizes}`;
|
|
16
|
+
/**
|
|
17
|
+
* Button component from Astral UI
|
|
18
|
+
*/
|
|
19
|
+
export interface IButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "css"> {
|
|
20
|
+
/**
|
|
21
|
+
* Size of the button.
|
|
22
|
+
* @default md
|
|
23
|
+
*/
|
|
24
|
+
size?: TSize;
|
|
25
|
+
/**
|
|
26
|
+
* Color of the button.
|
|
27
|
+
* @default primary
|
|
28
|
+
*/
|
|
29
|
+
color?: TColor;
|
|
30
|
+
/**
|
|
31
|
+
* Variant of the button.
|
|
32
|
+
* @default filled
|
|
33
|
+
*/
|
|
34
|
+
variant?: TVariant;
|
|
35
|
+
/**
|
|
36
|
+
* Shows loading animation instead of the button content
|
|
37
|
+
*/
|
|
38
|
+
loading?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Icon to be displayed before the button's content.
|
|
41
|
+
* @description
|
|
42
|
+
* This prop accepts either an IconType (string) or a ReactNode.
|
|
43
|
+
* - If an IconType is provided, it will render an ADPIcon component.
|
|
44
|
+
* - If a ReactNode is provided, it will be rendered as-is.
|
|
45
|
+
*/
|
|
46
|
+
prefixIcon?: TIconType | React.ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* Icon to be displayed after the button's content.
|
|
49
|
+
* @description
|
|
50
|
+
* This prop accepts either an IconType (string) or a ReactNode.
|
|
51
|
+
* - If an IconType is provided, it will render an ADPIcon component.
|
|
52
|
+
* - If a ReactNode is provided, it will be rendered as-is.
|
|
53
|
+
*/
|
|
54
|
+
suffixIcon?: TIconType | React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Tooltip to be displayed on hover of the button.
|
|
57
|
+
* @description
|
|
58
|
+
* This prop accepts a ReactNode, if this is passed then the button will render
|
|
59
|
+
* tooltip on hover of the button.
|
|
60
|
+
* This tooltip is only on hover and not on click.
|
|
61
|
+
*/
|
|
62
|
+
tooltip?: React.ReactNode;
|
|
63
|
+
/**
|
|
64
|
+
* Placement of the tooltip
|
|
65
|
+
* @default "bottom-end"
|
|
66
|
+
*/
|
|
67
|
+
tooltipPlacement?: Placement;
|
|
68
|
+
}
|
|
69
|
+
export declare const ButtonSizeToSpinnerMap: Record<TSize, "xxs" | "xs" | "sm" | "md" | "lg" | "xl">;
|
|
70
|
+
/**
|
|
71
|
+
* Button component with multiple variants, colors, and sizes.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```tsx
|
|
75
|
+
* <Button variant="filled" color="primary" size="md">
|
|
76
|
+
* Click me
|
|
77
|
+
* </Button>
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export declare const Button: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const buttonVariants: (props?: ({
|
|
2
2
|
variant?: "text" | "filled" | "outline" | "shade" | null | undefined;
|
|
3
|
-
color?: "
|
|
3
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
|
|
4
4
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
5
5
|
hasChildren?: boolean | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { Button, ESizes, colors, variants, ButtonSizeToSpinnerMap } from "./button";
|
|
1
|
+
export { Button, ESizes, colors, variants, ButtonSizeToSpinnerMap, type IButtonProps, type TColor, type TVariant, type TSize } from "./button";
|
|
2
2
|
export { buttonVariants } from "./buttonVariants";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ICTAGroupProps } from "../ctaGroup";
|
|
3
|
+
/**
|
|
4
|
+
* Card component for displaying content in a container with optional header and footer
|
|
5
|
+
*/
|
|
6
|
+
export type TCardProps = React.HTMLAttributes<HTMLDivElement>;
|
|
7
|
+
/**
|
|
8
|
+
* Card component with optional header, body, and footer
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* <Card>
|
|
13
|
+
* <Card.Header title="Card Title" />
|
|
14
|
+
* <Card.Body>Card content goes here</Card.Body>
|
|
15
|
+
* <Card.Footer>Footer content</Card.Footer>
|
|
16
|
+
* </Card>
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
declare const CardComponent: React.ForwardRefExoticComponent<TCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
/**
|
|
21
|
+
* Card header props
|
|
22
|
+
*/
|
|
23
|
+
export interface ICardHeaderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
24
|
+
/**
|
|
25
|
+
* Title of the card
|
|
26
|
+
*/
|
|
27
|
+
title?: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Props for the CTAGroup component. Pass an object with the props for the CTAGroup.
|
|
30
|
+
*/
|
|
31
|
+
ctaGroupProps?: ICTAGroupProps;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Card header component
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <Card.Header title="Card Title" />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
declare const CardHeader: React.ForwardRefExoticComponent<ICardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
42
|
+
/**
|
|
43
|
+
* Card body props
|
|
44
|
+
*/
|
|
45
|
+
export type TCardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
46
|
+
/**
|
|
47
|
+
* Card body component
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```tsx
|
|
51
|
+
* <Card.Body>Card content goes here</Card.Body>
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
declare const CardBody: React.ForwardRefExoticComponent<TCardBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
/**
|
|
56
|
+
* Card footer props
|
|
57
|
+
*/
|
|
58
|
+
export type TCardFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
59
|
+
/**
|
|
60
|
+
* Card footer component
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```tsx
|
|
64
|
+
* <Card.Footer>Footer content</Card.Footer>
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
declare const CardFooter: React.ForwardRefExoticComponent<TCardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
68
|
+
type TCardCompoundComponent = typeof CardComponent & {
|
|
69
|
+
Header: typeof CardHeader;
|
|
70
|
+
Body: typeof CardBody;
|
|
71
|
+
Footer: typeof CardFooter;
|
|
72
|
+
};
|
|
73
|
+
declare const Card: TCardCompoundComponent;
|
|
74
|
+
export { Card, CardHeader, CardBody, CardFooter };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const cardVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
2
|
+
export declare const cardHeaderVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
3
|
+
export declare const cardBodyVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const cardFooterVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { Card, CardHeader, CardBody, CardFooter } from "./card";
|
|
1
|
+
export { Card, CardHeader, CardBody, CardFooter, type ICardHeaderProps } from "./card";
|
|
2
2
|
export { cardVariants, cardHeaderVariants, cardBodyVariants, cardFooterVariants } from "./cardVariants";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const checkboxVariants: (props?: ({
|
|
2
|
+
variant?: "filled" | "outline" | "filled-circle" | "outline-circle" | null | undefined;
|
|
3
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
|
+
export declare const checkboxLabelVariants: (props?: ({
|
|
6
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
disabled?: boolean | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export declare const checkmarkClipPath = "polygon(\n 15% 50%,\n 40.1% 75.4%,\n 41.1% 75.7%,\n 42.1% 75.4%,\n 88% 4%,\n 90% 3.5%,\n 92% 4%,\n 94% 5%,\n 97% 7%,\n 97.5% 7.5%,\n 99% 10%,\n 100% 14%,\n 100% 17%,\n 99% 20%,\n 46% 99%,\n 45% 99.5%,\n 44% 100%,\n 43% 100%,\n 41% 100%,\n 40% 100%,\n 37% 97%,\n 5% 65%,\n 4% 62%,\n 4% 59%,\n 4.2% 57.6%,\n 4.8% 55%,\n 6.5% 52.2%,\n 9% 50.5%,\n 11.9% 49.7%\n)";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const checkboxGroupVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const checkboxGroupItemVariants: (props?: ({
|
|
3
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
4
|
+
checked?: boolean | null | undefined;
|
|
5
|
+
disabled?: boolean | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare const checkboxGroupLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { CheckboxGroup } from "./checkboxGroup";
|
|
1
|
+
export { CheckboxGroup, type ICheckboxGroupProps, type TCheckboxGroupSize } from "./checkboxGroup";
|
|
2
2
|
export { checkboxGroupVariants, checkboxGroupItemVariants, checkboxGroupLabelVariants } from "./checkboxGroupVariants";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TColumn } from "./types";
|
|
2
|
+
export declare const DataTableColumnSettings: ({ columns, setColumns, isOpen, onClose }: {
|
|
3
|
+
columns: TColumn[];
|
|
4
|
+
setColumns: (columns: TColumn[]) => void;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TAdvancedFilterItem, TFilterItem } from "./types";
|
|
2
|
+
interface IAdvancedFilterProps {
|
|
3
|
+
advancedFilters?: TAdvancedFilterItem[];
|
|
4
|
+
basicFilters?: TFilterItem[];
|
|
5
|
+
selectedFilters: Record<string, any>;
|
|
6
|
+
setSelectedFilters: (filters: Record<string, any>) => void;
|
|
7
|
+
handleClearFilter: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const AdvancedFilters: ({ advancedFilters, basicFilters, selectedFilters, setSelectedFilters, handleClearFilter }: IAdvancedFilterProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
3
|
import { type SortingState, type OnChangeFn } from "@tanstack/react-table";
|
|
4
|
-
import type {
|
|
4
|
+
import type { TColumn, TFilterItem, TAdvancedFilterItem, TFilters } from "./types";
|
|
5
5
|
interface ISearchProps {
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
hidden?: boolean;
|
|
@@ -28,7 +28,7 @@ export interface IDataTableProps<T> {
|
|
|
28
28
|
* Defines the column structure for the Data Table, including column headers,
|
|
29
29
|
* accessors, and any additional configurations.
|
|
30
30
|
*/
|
|
31
|
-
columns:
|
|
31
|
+
columns: TColumn[];
|
|
32
32
|
/**
|
|
33
33
|
* The array of data objects that will populate the rows of the Data Table.
|
|
34
34
|
*/
|
|
@@ -129,7 +129,7 @@ export interface IDataTableProps<T> {
|
|
|
129
129
|
* Callback function triggered on change of Column Preferences.
|
|
130
130
|
* @param columns - columns array with updated order and selected key value
|
|
131
131
|
*/
|
|
132
|
-
setColumns: (columns:
|
|
132
|
+
setColumns: (columns: TColumn[]) => void;
|
|
133
133
|
/**
|
|
134
134
|
* Allows to set search textfield props.
|
|
135
135
|
*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const dataTableContainerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const dataTableVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
3
|
+
export declare const dataTableCellVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
4
|
+
export declare const dataTableHeaderCellVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
5
|
+
export declare const dataTableHeadVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
6
|
+
export declare const dataTableSelectableVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
7
|
+
export declare const dataTablePaginationVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
8
|
+
export declare const dataTableFiltersVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
9
|
+
export declare const dataTableFilterSearchVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
10
|
+
export declare const dataTableFilterSelectVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
11
|
+
export declare const dataTableAdvancedFilterButtonVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
12
|
+
export declare const dataTableResizerVariants: (props?: ({
|
|
13
|
+
direction?: "ltr" | "rtl" | null | undefined;
|
|
14
|
+
isResizing?: boolean | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
|
+
export declare const dataTableContainerInnerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
17
|
+
export declare const dataTableEmptyStateVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
18
|
+
export declare const dataTableSelectedFilterVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
19
|
+
export declare const dataTableSelectedFilterContainerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
20
|
+
export declare const dataTableSelectedFilterLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
21
|
+
export declare const dataTableRecordsInfoVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
22
|
+
export declare const dataTableColumnSettingsVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export {} from "./types";
|
|
1
|
+
export { DataTable, type IDataTableProps } from "./dataTable";
|
|
2
|
+
export { type TColumn, type TFilterItem, type TAdvancedFilterItem, type TFilters } from "./types";
|
|
4
3
|
export { AdvancedFilters } from "./advancedFilters";
|
|
5
4
|
export { DataTableColumnSettings } from "./DataTableColumnSettings";
|
|
6
5
|
export { PageSizeModal } from "./pageSizeModal";
|
|
7
|
-
// Export the variants
|
|
8
6
|
export { dataTableContainerVariants, dataTableVariants, dataTableHeadVariants, dataTableHeaderCellVariants, dataTableCellVariants, dataTableSelectableVariants, dataTablePaginationVariants, dataTableFiltersVariants, dataTableFilterSearchVariants, dataTableFilterSelectVariants, dataTableResizerVariants, dataTableContainerInnerVariants, dataTableEmptyStateVariants, dataTableSelectedFilterVariants, dataTableSelectedFilterContainerVariants, dataTableSelectedFilterLabelVariants, dataTableRecordsInfoVariants, dataTableColumnSettingsVariants, dataTableAdvancedFilterButtonVariants } from "./dataTableVariants";
|
|
9
|
-
//# sourceMappingURL=index.js.map
|