@cloudwick/astral-ui 5.2.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/components/accordion/accordion.d.ts +45 -0
- package/dist/components/accordion/accordionVariants.d.ts +97 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/adpIcon/adpIcon.d.ts +2 -4
- package/dist/components/adpIcon/adpIconVariants.d.ts +49 -0
- package/dist/components/adpIcon/index.d.ts +3 -0
- package/dist/components/avatar/avatar.d.ts +20 -0
- package/dist/components/avatar/avatarVariants.d.ts +58 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatarGroup/avatarGroup.d.ts +33 -0
- package/dist/components/avatarGroup/avatarGroupVariants.d.ts +16 -0
- package/dist/components/avatarGroup/index.d.ts +2 -0
- package/dist/components/badge/badge.d.ts +22 -0
- package/dist/components/badge/badgeVariants.d.ts +58 -5
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumbItem.d.ts +26 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +31 -0
- package/dist/components/breadcrumbs/breadcrumbsVariants.d.ts +55 -0
- package/dist/components/breadcrumbs/index.d.ts +3 -0
- package/dist/components/button/button.d.ts +80 -0
- package/dist/components/button/buttonVariants.d.ts +73 -6
- package/dist/components/button/{index.js → index.d.ts} +1 -2
- package/dist/components/card/card.d.ts +74 -0
- package/dist/components/card/cardVariants.d.ts +43 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/checkbox/checkbox.d.ts +1 -0
- package/dist/components/checkbox/checkboxVariants.d.ts +112 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkboxGroup/checkboxGroupVariants.d.ts +79 -0
- package/dist/components/checkboxGroup/index.d.ts +2 -0
- package/dist/components/ctaGroup/ctaGroupVariants.d.ts +40 -5
- package/dist/components/ctaGroup/index.d.ts +2 -0
- package/dist/components/dataTable/DataTableColumnSettings.d.ts +7 -0
- package/dist/components/dataTable/advancedFilters.d.ts +10 -0
- package/dist/components/dataTable/dataTable.d.ts +3 -3
- package/dist/components/dataTable/dataTableVariants.d.ts +103 -0
- package/dist/components/dataTable/index.d.ts +6 -0
- package/dist/components/dataTable/pageSizeModal.d.ts +9 -0
- package/dist/components/dataTable/selectedFilterList.d.ts +17 -0
- package/dist/components/dataTable/table.d.ts +41 -0
- package/dist/components/dataTable/types.d.ts +60 -0
- package/dist/components/datePicker/datePicker.d.ts +2 -2
- package/dist/components/datePicker/index.d.ts +2 -0
- package/dist/components/distributionSlider/distributionSlider.d.ts +81 -0
- package/dist/components/distributionSlider/distributionSliderVariants.d.ts +166 -0
- package/dist/components/distributionSlider/index.d.ts +2 -0
- package/dist/components/dropdown/dropdown.d.ts +50 -0
- package/dist/components/dropdown/dropdownItem.d.ts +40 -0
- package/dist/components/dropdown/dropdownToggle.d.ts +12 -0
- package/dist/components/dropdown/dropdownVariants.d.ts +109 -0
- package/dist/components/dropdown/index.d.ts +10 -0
- package/dist/components/emptyState/emptyState.d.ts +43 -0
- package/dist/components/emptyState/emptyStateContent.d.ts +11 -0
- package/dist/components/emptyState/emptyStateCta.d.ts +9 -0
- package/dist/components/emptyState/emptyStateVariants.d.ts +49 -0
- package/dist/components/emptyState/index.d.ts +4 -0
- package/dist/components/fileUpload/fileUpload.d.ts +33 -0
- package/dist/components/fileUpload/fileUploadVariants.d.ts +106 -0
- package/dist/components/fileUpload/index.d.ts +2 -0
- package/dist/components/fileUpload/statusCard.d.ts +18 -0
- package/dist/components/fileUpload/statusCardVariants.d.ts +127 -3
- package/dist/components/loader/index.d.ts +2 -0
- package/dist/components/loader/loader.d.ts +24 -0
- package/dist/components/loader/loaderVariants.d.ts +67 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/modal.d.ts +98 -0
- package/dist/components/modal/modalVariants.d.ts +28 -0
- package/dist/components/otp/{index.js → index.d.ts} +0 -1
- package/dist/components/otp/input.d.ts +36 -0
- package/dist/components/otp/otp.d.ts +58 -0
- package/dist/components/otp/otpVariants.d.ts +16 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/paginationVariants.d.ts +61 -0
- package/dist/components/panel/index.d.ts +13 -0
- package/dist/components/panel/panel.d.ts +10 -3
- package/dist/components/panel/panelBody.d.ts +12 -0
- package/dist/components/panel/panelFooter.d.ts +12 -0
- package/dist/components/panel/panelVariants.d.ts +248 -0
- package/dist/components/panelGroup/{index.js → index.d.ts} +0 -1
- package/dist/components/panelGroup/panelGroup.d.ts +22 -0
- package/dist/components/panelGroup/panelGroupVariants.d.ts +109 -0
- package/dist/components/passwordField/index.d.ts +1 -0
- package/dist/components/passwordField/passwordField.d.ts +10 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/progressVariants.d.ts +220 -24
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/radioVariants.d.ts +70 -0
- package/dist/components/radioGroup/index.d.ts +2 -0
- package/dist/components/radioGroup/radioGroupVariants.d.ts +112 -0
- package/dist/components/scrollbar/index.d.ts +2 -0
- package/dist/components/scrollbar/scrollbar.d.ts +2 -2
- package/dist/components/scrollbar/scrollbarVariants.d.ts +100 -0
- package/dist/components/scrollbar/utils.d.ts +16 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/select.d.ts +48 -0
- package/dist/components/select/selectVariants.d.ts +40 -0
- package/dist/components/select/types.d.ts +20 -0
- package/dist/components/select/utils.d.ts +3 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabsVariants.d.ts +133 -12
- package/dist/components/textCopy/{index.js → index.d.ts} +1 -1
- package/dist/components/textCopy/textCopy.d.ts +31 -0
- package/dist/components/textCopy/textCopyVariants.d.ts +13 -0
- package/dist/components/textField/index.d.ts +2 -0
- package/dist/components/textField/textFieldVariants.d.ts +121 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textareaVariants.d.ts +67 -9
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/toast.d.ts +42 -0
- package/dist/components/toast/toastVariants.d.ts +94 -10
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/toggleVariants.d.ts +103 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/tooltip.d.ts +31 -0
- package/dist/components/tooltip/tooltipVariants.d.ts +73 -0
- package/dist/components/truncate/index.d.ts +2 -0
- package/dist/components/truncate/truncate.d.ts +33 -0
- package/dist/components/truncate/truncateVariants.d.ts +16 -0
- package/dist/css/index.min.css +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useWindowSize.d.ts +6 -0
- package/dist/index.cjs.js +7 -5
- package/dist/{index.js → index.d.ts} +1 -1
- package/dist/index.esm.js +7 -5
- package/dist/utils/debounce.d.ts +15 -0
- package/dist/utils/findParentAttribute.d.ts +9 -0
- package/dist/utils/{index.js → index.d.ts} +0 -3
- package/dist/utils/numberUtils/index.d.ts +12 -0
- package/dist/utils/stringUtils/{fileSize.js → fileSize.d.ts} +1 -5
- package/dist/utils/stringUtils/{index.js → index.d.ts} +1 -2
- package/dist/utils/stringUtils/isRegexSafe.d.ts +13 -0
- package/dist/utils/stringUtils/placeholderText.d.ts +10 -0
- package/package.json +7 -7
- package/tsconfig.eslint.json +6 -3
- package/tsconfig.test.json +2 -1
- package/dist/components/accordion/accordion.js +0 -63
- package/dist/components/accordion/accordion.js.map +0 -1
- package/dist/components/accordion/accordionVariants.js +0 -52
- package/dist/components/accordion/accordionVariants.js.map +0 -1
- package/dist/components/accordion/index.js +0 -3
- package/dist/components/accordion/index.js.map +0 -1
- package/dist/components/adpIcon/adpIcon.js +0 -39
- package/dist/components/adpIcon/adpIcon.js.map +0 -1
- package/dist/components/adpIcon/adpIconVariants.js +0 -35
- package/dist/components/adpIcon/adpIconVariants.js.map +0 -1
- package/dist/components/adpIcon/index.js +0 -3
- package/dist/components/adpIcon/index.js.map +0 -1
- package/dist/components/adpIcon/svgObjects.js +0 -1534
- package/dist/components/adpIcon/svgObjects.js.map +0 -1
- package/dist/components/avatar/avatar.js +0 -39
- package/dist/components/avatar/avatar.js.map +0 -1
- package/dist/components/avatar/avatarVariants.js +0 -20
- package/dist/components/avatar/avatarVariants.js.map +0 -1
- package/dist/components/avatar/index.js +0 -3
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/avatarGroup/avatarGroup.js +0 -57
- package/dist/components/avatarGroup/avatarGroup.js.map +0 -1
- package/dist/components/avatarGroup/avatarGroupVariants.js +0 -13
- package/dist/components/avatarGroup/avatarGroupVariants.js.map +0 -1
- package/dist/components/avatarGroup/index.js +0 -3
- package/dist/components/avatarGroup/index.js.map +0 -1
- package/dist/components/badge/badge.js +0 -24
- package/dist/components/badge/badge.js.map +0 -1
- package/dist/components/badge/badgeVariants.js +0 -136
- package/dist/components/badge/badgeVariants.js.map +0 -1
- package/dist/components/badge/index.js +0 -3
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/breadcrumbs/breadcrumbItem.js +0 -26
- package/dist/components/breadcrumbs/breadcrumbItem.js.map +0 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +0 -74
- package/dist/components/breadcrumbs/breadcrumbs.js.map +0 -1
- package/dist/components/breadcrumbs/breadcrumbsVariants.js +0 -40
- package/dist/components/breadcrumbs/breadcrumbsVariants.js.map +0 -1
- package/dist/components/breadcrumbs/index.js +0 -5
- package/dist/components/breadcrumbs/index.js.map +0 -1
- package/dist/components/button/button.js +0 -69
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button/buttonVariants.js +0 -288
- package/dist/components/button/buttonVariants.js.map +0 -1
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/card/card.js +0 -86
- package/dist/components/card/card.js.map +0 -1
- package/dist/components/card/cardVariants.js +0 -18
- package/dist/components/card/cardVariants.js.map +0 -1
- package/dist/components/card/index.js +0 -3
- package/dist/components/card/index.js.map +0 -1
- package/dist/components/checkbox/checkbox.js +0 -30
- package/dist/components/checkbox/checkbox.js.map +0 -1
- package/dist/components/checkbox/checkboxVariants.js +0 -96
- package/dist/components/checkbox/checkboxVariants.js.map +0 -1
- package/dist/components/checkbox/index.js +0 -3
- package/dist/components/checkbox/index.js.map +0 -1
- package/dist/components/checkboxGroup/checkboxGroup.js +0 -52
- package/dist/components/checkboxGroup/checkboxGroup.js.map +0 -1
- package/dist/components/checkboxGroup/checkboxGroupVariants.js +0 -31
- package/dist/components/checkboxGroup/checkboxGroupVariants.js.map +0 -1
- package/dist/components/checkboxGroup/index.js +0 -3
- package/dist/components/checkboxGroup/index.js.map +0 -1
- package/dist/components/ctaGroup/ctaGroup.js +0 -51
- package/dist/components/ctaGroup/ctaGroup.js.map +0 -1
- package/dist/components/ctaGroup/ctaGroupVariants.js +0 -26
- package/dist/components/ctaGroup/ctaGroupVariants.js.map +0 -1
- package/dist/components/ctaGroup/index.js +0 -3
- package/dist/components/ctaGroup/index.js.map +0 -1
- package/dist/components/dataTable/DataTableColumnSettings.js +0 -99
- package/dist/components/dataTable/DataTableColumnSettings.js.map +0 -1
- package/dist/components/dataTable/advancedFilters.js +0 -102
- package/dist/components/dataTable/advancedFilters.js.map +0 -1
- package/dist/components/dataTable/dataTable.js +0 -216
- package/dist/components/dataTable/dataTable.js.map +0 -1
- package/dist/components/dataTable/dataTableStoryHelpers.js +0 -2075
- package/dist/components/dataTable/dataTableStoryHelpers.js.map +0 -1
- package/dist/components/dataTable/dataTableVariants.js +0 -51
- package/dist/components/dataTable/dataTableVariants.js.map +0 -1
- package/dist/components/dataTable/index.js +0 -9
- package/dist/components/dataTable/index.js.map +0 -1
- package/dist/components/dataTable/pageSizeModal.js +0 -26
- package/dist/components/dataTable/pageSizeModal.js.map +0 -1
- package/dist/components/dataTable/selectedFilterList.js +0 -40
- package/dist/components/dataTable/selectedFilterList.js.map +0 -1
- package/dist/components/dataTable/table.js +0 -108
- package/dist/components/dataTable/table.js.map +0 -1
- package/dist/components/dataTable/types.js +0 -2
- package/dist/components/dataTable/types.js.map +0 -1
- package/dist/components/datePicker/datePicker.js +0 -274
- package/dist/components/datePicker/datePicker.js.map +0 -1
- package/dist/components/datePicker/datePickerVariants.js +0 -80
- package/dist/components/datePicker/datePickerVariants.js.map +0 -1
- package/dist/components/datePicker/index.js +0 -4
- package/dist/components/datePicker/index.js.map +0 -1
- package/dist/components/dropdown/dropdown.js +0 -95
- package/dist/components/dropdown/dropdown.js.map +0 -1
- package/dist/components/dropdown/dropdownItem.js +0 -53
- package/dist/components/dropdown/dropdownItem.js.map +0 -1
- package/dist/components/dropdown/dropdownToggle.js +0 -20
- package/dist/components/dropdown/dropdownToggle.js.map +0 -1
- package/dist/components/dropdown/dropdownVariants.js +0 -48
- package/dist/components/dropdown/dropdownVariants.js.map +0 -1
- package/dist/components/dropdown/index.js +0 -8
- package/dist/components/dropdown/index.js.map +0 -1
- package/dist/components/emptyState/emptyState.js +0 -119
- package/dist/components/emptyState/emptyState.js.map +0 -1
- package/dist/components/emptyState/emptyStateContent.js +0 -25
- package/dist/components/emptyState/emptyStateContent.js.map +0 -1
- package/dist/components/emptyState/emptyStateCta.js +0 -25
- package/dist/components/emptyState/emptyStateCta.js.map +0 -1
- package/dist/components/emptyState/emptyStateVariants.js +0 -7
- package/dist/components/emptyState/emptyStateVariants.js.map +0 -1
- package/dist/components/emptyState/index.js +0 -5
- package/dist/components/emptyState/index.js.map +0 -1
- package/dist/components/fileUpload/fileUpload.js +0 -150
- package/dist/components/fileUpload/fileUpload.js.map +0 -1
- package/dist/components/fileUpload/fileUploadVariants.js +0 -21
- package/dist/components/fileUpload/fileUploadVariants.js.map +0 -1
- package/dist/components/fileUpload/index.js +0 -3
- package/dist/components/fileUpload/index.js.map +0 -1
- package/dist/components/fileUpload/statusCard.js +0 -80
- package/dist/components/fileUpload/statusCard.js.map +0 -1
- package/dist/components/fileUpload/statusCardVariants.js +0 -19
- package/dist/components/fileUpload/statusCardVariants.js.map +0 -1
- package/dist/components/fileUpload/storyUtil.js +0 -52
- package/dist/components/fileUpload/storyUtil.js.map +0 -1
- package/dist/components/loader/index.js +0 -3
- package/dist/components/loader/index.js.map +0 -1
- package/dist/components/loader/loader.js +0 -39
- package/dist/components/loader/loader.js.map +0 -1
- package/dist/components/loader/loaderVariants.js +0 -31
- package/dist/components/loader/loaderVariants.js.map +0 -1
- package/dist/components/modal/index.js +0 -3
- package/dist/components/modal/index.js.map +0 -1
- package/dist/components/modal/modal.js +0 -95
- package/dist/components/modal/modal.js.map +0 -1
- package/dist/components/modal/modalVariants.js +0 -14
- package/dist/components/modal/modalVariants.js.map +0 -1
- package/dist/components/otp/index.js.map +0 -1
- package/dist/components/otp/input.js +0 -18
- package/dist/components/otp/input.js.map +0 -1
- package/dist/components/otp/otp.js +0 -131
- package/dist/components/otp/otp.js.map +0 -1
- package/dist/components/otp/otpVariants.js +0 -13
- package/dist/components/otp/otpVariants.js.map +0 -1
- package/dist/components/pagination/index.js +0 -5
- package/dist/components/pagination/index.js.map +0 -1
- package/dist/components/pagination/pagination.js +0 -83
- package/dist/components/pagination/pagination.js.map +0 -1
- package/dist/components/pagination/paginationVariants.js +0 -44
- package/dist/components/pagination/paginationVariants.js.map +0 -1
- package/dist/components/panel/index.js +0 -11
- package/dist/components/panel/index.js.map +0 -1
- package/dist/components/panel/panel.js +0 -82
- package/dist/components/panel/panel.js.map +0 -1
- package/dist/components/panel/panelBody.js +0 -21
- package/dist/components/panel/panelBody.js.map +0 -1
- package/dist/components/panel/panelFooter.js +0 -21
- package/dist/components/panel/panelFooter.js.map +0 -1
- package/dist/components/panel/panelHeader.js +0 -24
- package/dist/components/panel/panelHeader.js.map +0 -1
- package/dist/components/panel/panelVariants.js +0 -122
- package/dist/components/panel/panelVariants.js.map +0 -1
- package/dist/components/panelGroup/index.js.map +0 -1
- package/dist/components/panelGroup/panelGroup.js +0 -38
- package/dist/components/panelGroup/panelGroup.js.map +0 -1
- package/dist/components/panelGroup/panelGroupVariants.js +0 -34
- package/dist/components/panelGroup/panelGroupVariants.js.map +0 -1
- package/dist/components/passwordField/index.js +0 -2
- package/dist/components/passwordField/index.js.map +0 -1
- package/dist/components/passwordField/passwordField.js +0 -29
- package/dist/components/passwordField/passwordField.js.map +0 -1
- package/dist/components/progress/index.js +0 -3
- package/dist/components/progress/index.js.map +0 -1
- package/dist/components/progress/progress.js +0 -62
- package/dist/components/progress/progress.js.map +0 -1
- package/dist/components/progress/progressVariants.js +0 -103
- package/dist/components/progress/progressVariants.js.map +0 -1
- package/dist/components/radio/index.js +0 -3
- package/dist/components/radio/index.js.map +0 -1
- package/dist/components/radio/radio.js +0 -26
- package/dist/components/radio/radio.js.map +0 -1
- package/dist/components/radio/radioVariants.js +0 -46
- package/dist/components/radio/radioVariants.js.map +0 -1
- package/dist/components/radioGroup/index.js +0 -3
- package/dist/components/radioGroup/index.js.map +0 -1
- package/dist/components/radioGroup/radioGroup.js +0 -48
- package/dist/components/radioGroup/radioGroup.js.map +0 -1
- package/dist/components/radioGroup/radioGroupVariants.js +0 -53
- package/dist/components/radioGroup/radioGroupVariants.js.map +0 -1
- package/dist/components/scrollbar/index.js +0 -3
- package/dist/components/scrollbar/index.js.map +0 -1
- package/dist/components/scrollbar/scrollbar.js +0 -361
- package/dist/components/scrollbar/scrollbar.js.map +0 -1
- package/dist/components/scrollbar/scrollbarVariants.js +0 -100
- package/dist/components/scrollbar/scrollbarVariants.js.map +0 -1
- package/dist/components/scrollbar/utils.js +0 -28
- package/dist/components/scrollbar/utils.js.map +0 -1
- package/dist/components/select/index.js +0 -3
- package/dist/components/select/index.js.map +0 -1
- package/dist/components/select/select.js +0 -134
- package/dist/components/select/select.js.map +0 -1
- package/dist/components/select/selectVariants.js +0 -35
- package/dist/components/select/selectVariants.js.map +0 -1
- package/dist/components/select/types.js +0 -9
- package/dist/components/select/types.js.map +0 -1
- package/dist/components/select/utils.js +0 -118
- package/dist/components/select/utils.js.map +0 -1
- package/dist/components/tabs/index.js +0 -3
- package/dist/components/tabs/index.js.map +0 -1
- package/dist/components/tabs/tabs.js +0 -141
- package/dist/components/tabs/tabs.js.map +0 -1
- package/dist/components/tabs/tabsVariants.js +0 -183
- package/dist/components/tabs/tabsVariants.js.map +0 -1
- package/dist/components/textCopy/index.js.map +0 -1
- package/dist/components/textCopy/textCopy.js +0 -36
- package/dist/components/textCopy/textCopy.js.map +0 -1
- package/dist/components/textCopy/textCopyVariants.js +0 -12
- package/dist/components/textCopy/textCopyVariants.js.map +0 -1
- package/dist/components/textField/index.js +0 -3
- package/dist/components/textField/index.js.map +0 -1
- package/dist/components/textField/textField.js +0 -37
- package/dist/components/textField/textField.js.map +0 -1
- package/dist/components/textField/textFieldVariants.js +0 -84
- package/dist/components/textField/textFieldVariants.js.map +0 -1
- package/dist/components/textarea/index.js +0 -3
- package/dist/components/textarea/index.js.map +0 -1
- package/dist/components/textarea/textarea.js +0 -29
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/textarea/textareaVariants.js +0 -37
- package/dist/components/textarea/textareaVariants.js.map +0 -1
- package/dist/components/toast/index.js +0 -3
- package/dist/components/toast/index.js.map +0 -1
- package/dist/components/toast/toast.js +0 -51
- package/dist/components/toast/toast.js.map +0 -1
- package/dist/components/toast/toastVariants.js +0 -45
- package/dist/components/toast/toastVariants.js.map +0 -1
- package/dist/components/toggle/index.js +0 -3
- package/dist/components/toggle/index.js.map +0 -1
- package/dist/components/toggle/toggle.js +0 -34
- package/dist/components/toggle/toggle.js.map +0 -1
- package/dist/components/toggle/toggleVariants.js +0 -40
- package/dist/components/toggle/toggleVariants.js.map +0 -1
- package/dist/components/tooltip/index.js +0 -3
- package/dist/components/tooltip/index.js.map +0 -1
- package/dist/components/tooltip/tooltip.js +0 -100
- package/dist/components/tooltip/tooltip.js.map +0 -1
- package/dist/components/tooltip/tooltipVariants.js +0 -13
- package/dist/components/tooltip/tooltipVariants.js.map +0 -1
- package/dist/components/truncate/index.js +0 -3
- package/dist/components/truncate/index.js.map +0 -1
- package/dist/components/truncate/truncate.js +0 -36
- package/dist/components/truncate/truncate.js.map +0 -1
- package/dist/components/truncate/truncateVariants.js +0 -13
- package/dist/components/truncate/truncateVariants.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/tailwindThemeConfig.js +0 -194
- package/dist/tailwindThemeConfig.js.map +0 -1
- package/dist/utils/cn.js +0 -13
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/debounce.js +0 -30
- package/dist/utils/debounce.js.map +0 -1
- package/dist/utils/findParentAttribute.js +0 -23
- package/dist/utils/findParentAttribute.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/numberUtils/index.js +0 -41
- package/dist/utils/numberUtils/index.js.map +0 -1
- package/dist/utils/stringUtils/fileSize.js.map +0 -1
- package/dist/utils/stringUtils/index.js.map +0 -1
- package/dist/utils/stringUtils/placeholderText.js +0 -77
- package/dist/utils/stringUtils/placeholderText.js.map +0 -1
- package/dist/utils/useWindowSize.js +0 -25
- package/dist/utils/useWindowSize.js.map +0 -1
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const emptyStateVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
[key: string]: {
|
|
3
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
4
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
5
|
+
content?: import("tailwind-merge").ClassNameValue;
|
|
6
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
7
|
+
cta?: import("tailwind-merge").ClassNameValue;
|
|
8
|
+
contentWrapper?: import("tailwind-merge").ClassNameValue;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
} | {
|
|
12
|
+
[x: string]: {
|
|
13
|
+
[x: string]: import("tailwind-merge").ClassNameValue | {
|
|
14
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
15
|
+
content?: import("tailwind-merge").ClassNameValue;
|
|
16
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
17
|
+
cta?: import("tailwind-merge").ClassNameValue;
|
|
18
|
+
contentWrapper?: import("tailwind-merge").ClassNameValue;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
} | {}, {
|
|
22
|
+
base: string;
|
|
23
|
+
contentWrapper: string;
|
|
24
|
+
content: string;
|
|
25
|
+
title: string;
|
|
26
|
+
cta: string;
|
|
27
|
+
}, undefined, {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
[key: string]: import("tailwind-merge").ClassNameValue | {
|
|
30
|
+
title?: import("tailwind-merge").ClassNameValue;
|
|
31
|
+
content?: import("tailwind-merge").ClassNameValue;
|
|
32
|
+
base?: import("tailwind-merge").ClassNameValue;
|
|
33
|
+
cta?: import("tailwind-merge").ClassNameValue;
|
|
34
|
+
contentWrapper?: import("tailwind-merge").ClassNameValue;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
} | {}, {
|
|
38
|
+
base: string;
|
|
39
|
+
contentWrapper: string;
|
|
40
|
+
content: string;
|
|
41
|
+
title: string;
|
|
42
|
+
cta: string;
|
|
43
|
+
}, import("tailwind-variants").TVReturnType<unknown, {
|
|
44
|
+
base: string;
|
|
45
|
+
contentWrapper: string;
|
|
46
|
+
content: string;
|
|
47
|
+
title: string;
|
|
48
|
+
cta: string;
|
|
49
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { EmptyState, type IEmptyStateProps } from "./emptyState";
|
|
2
|
+
export { EmptyStateContent, type IEmptyStateContentProps } from "./emptyStateContent";
|
|
3
|
+
export { EmptyStateCTA, type IEmptyStateCTAProps } from "./emptyStateCta";
|
|
4
|
+
export { emptyStateVariants } from "./emptyStateVariants";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* FileUpload component allows drag & drop or click-to-upload files with custom handling
|
|
4
|
+
* and displays upload progress and errors.
|
|
5
|
+
*/
|
|
6
|
+
export interface IFileUploadProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
+
/** Array of accepted file extensions */
|
|
8
|
+
acceptedExtensions: string[];
|
|
9
|
+
/** Custom message displayed in the drop area */
|
|
10
|
+
dropAreaCustomMessage?: React.ReactNode;
|
|
11
|
+
/** State tracking the upload progress and error messages for each file */
|
|
12
|
+
uploadState: Record<string, {
|
|
13
|
+
error: boolean;
|
|
14
|
+
helperText?: React.ReactNode;
|
|
15
|
+
progress: number;
|
|
16
|
+
uploading: boolean;
|
|
17
|
+
}> | null;
|
|
18
|
+
/** Determines if multiple file uploads are allowed */
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
/** Disables the upload functionality */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Additional informational text to display about file requirements or upload instructions */
|
|
23
|
+
infoText?: React.ReactNode;
|
|
24
|
+
/** Maximum allowed file size in bytes */
|
|
25
|
+
maxFileSize?: number;
|
|
26
|
+
/** Function to retry uploading files that failed */
|
|
27
|
+
retryFailedUpload?: () => void;
|
|
28
|
+
/** Function to reset the upload state */
|
|
29
|
+
resetUploadState: () => void;
|
|
30
|
+
/** Function triggered after file validation to handle the upload logic */
|
|
31
|
+
handleUpload: (file: File | File[]) => void;
|
|
32
|
+
}
|
|
33
|
+
export declare const FileUpload: React.ForwardRefExoticComponent<IFileUploadProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export declare const fileUploadVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
state: {
|
|
3
|
+
default: {
|
|
4
|
+
iconWrapper: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
};
|
|
7
|
+
success: {
|
|
8
|
+
iconWrapper: string;
|
|
9
|
+
icon: string;
|
|
10
|
+
};
|
|
11
|
+
warning: {
|
|
12
|
+
iconWrapper: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
};
|
|
15
|
+
error: {
|
|
16
|
+
iconWrapper: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
dragging: {
|
|
21
|
+
true: {
|
|
22
|
+
dropArea: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
disabled: {
|
|
26
|
+
true: {
|
|
27
|
+
dropArea: string;
|
|
28
|
+
iconWrapper: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
dropArea: string[];
|
|
34
|
+
iconWrapper: string;
|
|
35
|
+
icon: string;
|
|
36
|
+
}, undefined, {
|
|
37
|
+
state: {
|
|
38
|
+
default: {
|
|
39
|
+
iconWrapper: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
};
|
|
42
|
+
success: {
|
|
43
|
+
iconWrapper: string;
|
|
44
|
+
icon: string;
|
|
45
|
+
};
|
|
46
|
+
warning: {
|
|
47
|
+
iconWrapper: string;
|
|
48
|
+
icon: string;
|
|
49
|
+
};
|
|
50
|
+
error: {
|
|
51
|
+
iconWrapper: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
dragging: {
|
|
56
|
+
true: {
|
|
57
|
+
dropArea: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
disabled: {
|
|
61
|
+
true: {
|
|
62
|
+
dropArea: string;
|
|
63
|
+
iconWrapper: string;
|
|
64
|
+
icon: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
dropArea: string[];
|
|
69
|
+
iconWrapper: string;
|
|
70
|
+
icon: string;
|
|
71
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
72
|
+
state: {
|
|
73
|
+
default: {
|
|
74
|
+
iconWrapper: string;
|
|
75
|
+
icon: string;
|
|
76
|
+
};
|
|
77
|
+
success: {
|
|
78
|
+
iconWrapper: string;
|
|
79
|
+
icon: string;
|
|
80
|
+
};
|
|
81
|
+
warning: {
|
|
82
|
+
iconWrapper: string;
|
|
83
|
+
icon: string;
|
|
84
|
+
};
|
|
85
|
+
error: {
|
|
86
|
+
iconWrapper: string;
|
|
87
|
+
icon: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
dragging: {
|
|
91
|
+
true: {
|
|
92
|
+
dropArea: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
disabled: {
|
|
96
|
+
true: {
|
|
97
|
+
dropArea: string;
|
|
98
|
+
iconWrapper: string;
|
|
99
|
+
icon: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}, {
|
|
103
|
+
dropArea: string[];
|
|
104
|
+
iconWrapper: string;
|
|
105
|
+
icon: string;
|
|
106
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IStatusCardProps {
|
|
3
|
+
fileEntry: {
|
|
4
|
+
file: File;
|
|
5
|
+
state: string;
|
|
6
|
+
};
|
|
7
|
+
uploadState: Record<string, {
|
|
8
|
+
error: boolean;
|
|
9
|
+
helperText?: React.ReactNode;
|
|
10
|
+
progress: number;
|
|
11
|
+
uploading: boolean;
|
|
12
|
+
}> | null;
|
|
13
|
+
maxFileSize?: number;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
acceptedExtensions: string[];
|
|
16
|
+
removeFile: (fileName: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const StatusCard: React.ForwardRefExoticComponent<IStatusCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,127 @@
|
|
|
1
|
-
export declare const statusCardVariants: (
|
|
2
|
-
state
|
|
3
|
-
|
|
1
|
+
export declare const statusCardVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
state: {
|
|
3
|
+
default: {
|
|
4
|
+
card: string;
|
|
5
|
+
};
|
|
6
|
+
success: {
|
|
7
|
+
card: string;
|
|
8
|
+
};
|
|
9
|
+
error: {
|
|
10
|
+
card: string;
|
|
11
|
+
};
|
|
12
|
+
warning: {
|
|
13
|
+
card: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
fileState: {
|
|
17
|
+
primary: {
|
|
18
|
+
iconWrapper: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
};
|
|
21
|
+
success: {
|
|
22
|
+
iconWrapper: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
};
|
|
25
|
+
error: {
|
|
26
|
+
iconWrapper: string;
|
|
27
|
+
icon: string;
|
|
28
|
+
};
|
|
29
|
+
warning: {
|
|
30
|
+
iconWrapper: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
true: {
|
|
36
|
+
icon: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
card: string[];
|
|
41
|
+
iconWrapper: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
}, undefined, {
|
|
44
|
+
state: {
|
|
45
|
+
default: {
|
|
46
|
+
card: string;
|
|
47
|
+
};
|
|
48
|
+
success: {
|
|
49
|
+
card: string;
|
|
50
|
+
};
|
|
51
|
+
error: {
|
|
52
|
+
card: string;
|
|
53
|
+
};
|
|
54
|
+
warning: {
|
|
55
|
+
card: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
fileState: {
|
|
59
|
+
primary: {
|
|
60
|
+
iconWrapper: string;
|
|
61
|
+
icon: string;
|
|
62
|
+
};
|
|
63
|
+
success: {
|
|
64
|
+
iconWrapper: string;
|
|
65
|
+
icon: string;
|
|
66
|
+
};
|
|
67
|
+
error: {
|
|
68
|
+
iconWrapper: string;
|
|
69
|
+
icon: string;
|
|
70
|
+
};
|
|
71
|
+
warning: {
|
|
72
|
+
iconWrapper: string;
|
|
73
|
+
icon: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
disabled: {
|
|
77
|
+
true: {
|
|
78
|
+
icon: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
card: string[];
|
|
83
|
+
iconWrapper: string;
|
|
84
|
+
icon: string;
|
|
85
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
86
|
+
state: {
|
|
87
|
+
default: {
|
|
88
|
+
card: string;
|
|
89
|
+
};
|
|
90
|
+
success: {
|
|
91
|
+
card: string;
|
|
92
|
+
};
|
|
93
|
+
error: {
|
|
94
|
+
card: string;
|
|
95
|
+
};
|
|
96
|
+
warning: {
|
|
97
|
+
card: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
fileState: {
|
|
101
|
+
primary: {
|
|
102
|
+
iconWrapper: string;
|
|
103
|
+
icon: string;
|
|
104
|
+
};
|
|
105
|
+
success: {
|
|
106
|
+
iconWrapper: string;
|
|
107
|
+
icon: string;
|
|
108
|
+
};
|
|
109
|
+
error: {
|
|
110
|
+
iconWrapper: string;
|
|
111
|
+
icon: string;
|
|
112
|
+
};
|
|
113
|
+
warning: {
|
|
114
|
+
iconWrapper: string;
|
|
115
|
+
icon: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
disabled: {
|
|
119
|
+
true: {
|
|
120
|
+
icon: string;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
}, {
|
|
124
|
+
card: string[];
|
|
125
|
+
iconWrapper: string;
|
|
126
|
+
icon: string;
|
|
127
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Loader component for showing loading states.
|
|
4
|
+
*/
|
|
5
|
+
export interface ILoaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Variant of the Loader.
|
|
8
|
+
* @default filled
|
|
9
|
+
*/
|
|
10
|
+
variant?: "filled" | "stroked";
|
|
11
|
+
/**
|
|
12
|
+
* Size of the Loader.
|
|
13
|
+
* @default md
|
|
14
|
+
*/
|
|
15
|
+
size?: "sm" | "md" | "lg";
|
|
16
|
+
/**
|
|
17
|
+
* Regular static label.
|
|
18
|
+
*/
|
|
19
|
+
label?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Loader component for showing loading states.
|
|
23
|
+
*/
|
|
24
|
+
export declare const Loader: React.ForwardRefExoticComponent<ILoaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare const loaderVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
variant: {
|
|
3
|
+
filled: {};
|
|
4
|
+
stroked: {};
|
|
5
|
+
};
|
|
6
|
+
size: {
|
|
7
|
+
sm: {
|
|
8
|
+
base: string;
|
|
9
|
+
label: string;
|
|
10
|
+
};
|
|
11
|
+
md: {
|
|
12
|
+
base: string;
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
lg: {
|
|
16
|
+
base: string;
|
|
17
|
+
label: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
base: string;
|
|
22
|
+
label: string;
|
|
23
|
+
}, undefined, {
|
|
24
|
+
variant: {
|
|
25
|
+
filled: {};
|
|
26
|
+
stroked: {};
|
|
27
|
+
};
|
|
28
|
+
size: {
|
|
29
|
+
sm: {
|
|
30
|
+
base: string;
|
|
31
|
+
label: string;
|
|
32
|
+
};
|
|
33
|
+
md: {
|
|
34
|
+
base: string;
|
|
35
|
+
label: string;
|
|
36
|
+
};
|
|
37
|
+
lg: {
|
|
38
|
+
base: string;
|
|
39
|
+
label: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}, {
|
|
43
|
+
base: string;
|
|
44
|
+
label: string;
|
|
45
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
46
|
+
variant: {
|
|
47
|
+
filled: {};
|
|
48
|
+
stroked: {};
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
sm: {
|
|
52
|
+
base: string;
|
|
53
|
+
label: string;
|
|
54
|
+
};
|
|
55
|
+
md: {
|
|
56
|
+
base: string;
|
|
57
|
+
label: string;
|
|
58
|
+
};
|
|
59
|
+
lg: {
|
|
60
|
+
base: string;
|
|
61
|
+
label: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
base: string;
|
|
66
|
+
label: string;
|
|
67
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IModalProps {
|
|
3
|
+
/**
|
|
4
|
+
* Control modal's visibility
|
|
5
|
+
*/
|
|
6
|
+
showModal: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Modal content
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactElement<IModalHeaderProps> | [React.ReactElement<IModalHeaderProps>, React.ReactElement<IModalBodyProps>];
|
|
11
|
+
/**
|
|
12
|
+
* Overwrite the Modal styles by passing space separated class names
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the modal content to right-to-left
|
|
17
|
+
*/
|
|
18
|
+
rtl?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Hide the modal on esc key press
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
escKeyClose?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Show/hide the close button within the modal
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
closeButton?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Pass a reference to the element where the Modal needs to be rendered
|
|
31
|
+
* @default document.body
|
|
32
|
+
*/
|
|
33
|
+
portalTarget?: HTMLElement;
|
|
34
|
+
/**
|
|
35
|
+
* A list of Refs to be considered as a part of the Lock. The html elements in the list will be accessible while the Modal is open.
|
|
36
|
+
*/
|
|
37
|
+
shards?: (HTMLElement | React.RefObject<any>)[];
|
|
38
|
+
/**
|
|
39
|
+
* Callback function for onHide
|
|
40
|
+
*/
|
|
41
|
+
onHide?: () => void;
|
|
42
|
+
}
|
|
43
|
+
export interface IModalHeaderProps {
|
|
44
|
+
/**
|
|
45
|
+
* Header of the Modal
|
|
46
|
+
*/
|
|
47
|
+
children?: React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Dynamically updates the classes applied to the component
|
|
50
|
+
*/
|
|
51
|
+
className?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface IModalBodyProps {
|
|
54
|
+
/**
|
|
55
|
+
* Modal Body
|
|
56
|
+
*/
|
|
57
|
+
children?: React.ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* Dynamically updates the classes applied to the component
|
|
60
|
+
*/
|
|
61
|
+
className?: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Modal component for displaying content in an overlay with optional header and close button.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```tsx
|
|
68
|
+
* <Modal showModal={modalVisible} onHide={() => setModalVisible(false)}>
|
|
69
|
+
* <Modal.Header>Modal Title</Modal.Header>
|
|
70
|
+
* <Modal.Body>Modal content goes here</Modal.Body>
|
|
71
|
+
* </Modal>
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
declare const ModalComponent: React.ForwardRefExoticComponent<IModalProps & React.RefAttributes<HTMLDivElement>>;
|
|
75
|
+
/**
|
|
76
|
+
* Modal header component for rendering the title in the Modal.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```tsx
|
|
80
|
+
* <Modal.Header>Modal Title</Modal.Header>
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
declare const ModalHeader: React.ForwardRefExoticComponent<IModalHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
84
|
+
/**
|
|
85
|
+
* Modal body component for rendering content inside the Modal.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```tsx
|
|
89
|
+
* <Modal.Body>Modal content goes here</Modal.Body>
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
declare const ModalBody: React.ForwardRefExoticComponent<IModalBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
93
|
+
type TModalCompoundComponent = typeof ModalComponent & {
|
|
94
|
+
Header: typeof ModalHeader;
|
|
95
|
+
Body: typeof ModalBody;
|
|
96
|
+
};
|
|
97
|
+
declare const Modal: TModalCompoundComponent;
|
|
98
|
+
export { Modal, ModalHeader, ModalBody };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const modalVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
headerless: {
|
|
3
|
+
true: {
|
|
4
|
+
modal: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
container: string[];
|
|
9
|
+
modal: string[];
|
|
10
|
+
}, undefined, {
|
|
11
|
+
headerless: {
|
|
12
|
+
true: {
|
|
13
|
+
modal: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
container: string[];
|
|
18
|
+
modal: string[];
|
|
19
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
20
|
+
headerless: {
|
|
21
|
+
true: {
|
|
22
|
+
modal: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
container: string[];
|
|
27
|
+
modal: string[];
|
|
28
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface IInputProps {
|
|
3
|
+
/**
|
|
4
|
+
* The value of the input
|
|
5
|
+
*/
|
|
6
|
+
value: string;
|
|
7
|
+
/**
|
|
8
|
+
* Handler for input changes
|
|
9
|
+
*/
|
|
10
|
+
handleChange: React.ChangeEventHandler<HTMLInputElement>;
|
|
11
|
+
/**
|
|
12
|
+
* Handler for keyboard events
|
|
13
|
+
*/
|
|
14
|
+
handleKeyDown: React.KeyboardEventHandler<HTMLInputElement>;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the input is focused
|
|
17
|
+
*/
|
|
18
|
+
focused: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The index of the input
|
|
21
|
+
*/
|
|
22
|
+
index: number;
|
|
23
|
+
/**
|
|
24
|
+
* The ID of the input
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the input is in an error state
|
|
29
|
+
*/
|
|
30
|
+
error: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Input component for OTP field
|
|
34
|
+
*/
|
|
35
|
+
export declare const Input: React.FC<IInputProps>;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* OTP component for one-time password input with multiple fields
|
|
5
|
+
*/
|
|
6
|
+
export interface IOtpProps extends Omit<React.HTMLAttributes<HTMLFieldSetElement>, "onFocus" | "onBlur" | "onChange"> {
|
|
7
|
+
/**
|
|
8
|
+
* Value of the OTP input.
|
|
9
|
+
*/
|
|
10
|
+
initialValue?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Pass a regex to restrict what can be entered in the OTP input.
|
|
13
|
+
*/
|
|
14
|
+
regexValidation?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Callback triggered when the OTP input value changes.
|
|
17
|
+
*/
|
|
18
|
+
onChange?: (val: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Callback triggered when the OTP input loses focus.
|
|
21
|
+
*/
|
|
22
|
+
onBlur?: React.FocusEventHandler<HTMLDivElement>;
|
|
23
|
+
/**
|
|
24
|
+
* Callback triggered when the OTP input gains focus.
|
|
25
|
+
*/
|
|
26
|
+
onFocus?: React.FocusEventHandler<HTMLDivElement>;
|
|
27
|
+
/**
|
|
28
|
+
* Regular static label.
|
|
29
|
+
*/
|
|
30
|
+
label?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Pass OTP length.
|
|
33
|
+
* @default 6
|
|
34
|
+
*/
|
|
35
|
+
otpLength?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Overwrite the style by passing space separated class names.
|
|
38
|
+
*/
|
|
39
|
+
className?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Additional information or guidance displayed below the OTP input.
|
|
42
|
+
*/
|
|
43
|
+
helperText?: ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Pass a boolean value to indicate if the OTP input is in an error state.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
error?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the OTP input is disabled.
|
|
51
|
+
* @default false
|
|
52
|
+
*/
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* OTP input component for one-time password entry
|
|
57
|
+
*/
|
|
58
|
+
export declare const OtpInput: React.ForwardRefExoticComponent<IOtpProps & React.RefAttributes<HTMLFieldSetElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const otpTextVariants: import("tailwind-variants").TVReturnType<{
|
|
2
|
+
error: {
|
|
3
|
+
true: string;
|
|
4
|
+
false: string;
|
|
5
|
+
};
|
|
6
|
+
}, undefined, "text-xs font-normal", {
|
|
7
|
+
error: {
|
|
8
|
+
true: string;
|
|
9
|
+
false: string;
|
|
10
|
+
};
|
|
11
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
12
|
+
error: {
|
|
13
|
+
true: string;
|
|
14
|
+
false: string;
|
|
15
|
+
};
|
|
16
|
+
}, undefined, "text-xs font-normal", unknown, unknown, undefined>>;
|