@cloudwick/astral-ui 5.1.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 +62 -0
- package/dist/components/adpIcon/adpIconVariants.d.ts +15 -0
- package/dist/components/adpIcon/index.d.ts +3 -0
- package/dist/components/adpIcon/svgObjects.d.ts +268 -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 +5 -0
- 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 +6 -0
- 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/checkbox.d.ts +29 -0
- package/dist/components/checkbox/checkboxVariants.d.ts +9 -0
- package/dist/components/checkbox/{index.js → index.d.ts} +1 -2
- package/dist/components/checkboxGroup/checkboxGroup.d.ts +47 -0
- package/dist/components/checkboxGroup/checkboxGroupVariants.d.ts +7 -0
- package/dist/components/checkboxGroup/{index.js → index.d.ts} +1 -2
- package/dist/components/ctaGroup/ctaGroup.d.ts +32 -0
- package/dist/components/ctaGroup/ctaGroupVariants.d.ts +5 -0
- 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 +143 -0
- 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 +39 -0
- 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 +3 -0
- 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/pagination.d.ts +42 -0
- 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 +61 -0
- package/dist/components/panel/panelBody.d.ts +12 -0
- package/dist/components/panel/panelFooter.d.ts +12 -0
- package/dist/components/panel/panelHeader.d.ts +38 -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/progress.d.ts +67 -0
- package/dist/components/progress/progressVariants.d.ts +24 -0
- package/dist/components/radio/{index.js → index.d.ts} +1 -2
- package/dist/components/radio/radio.d.ts +19 -0
- package/dist/components/radio/radioVariants.d.ts +7 -0
- package/dist/components/radioGroup/{index.js → index.d.ts} +1 -2
- package/dist/components/radioGroup/radioGroup.d.ts +53 -0
- 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 +43 -0
- 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/tabs/tabs.d.ts +119 -0
- package/dist/components/tabs/tabsVariants.d.ts +12 -0
- 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/textField.d.ts +48 -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/textarea.d.ts +30 -0
- package/dist/components/textarea/textareaVariants.d.ts +9 -0
- 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 +10 -0
- package/dist/components/toggle/{index.js → index.d.ts} +1 -2
- package/dist/components/toggle/toggle.d.ts +46 -0
- 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 -1528
- 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 -9
- 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 -138
- package/dist/components/tabs/tabsVariants.js.map +0 -1
- package/dist/components/textCopy/index.js.map +0 -1
- package/dist/components/textCopy/textCopy.js +0 -36
- package/dist/components/textCopy/textCopy.js.map +0 -1
- package/dist/components/textCopy/textCopyVariants.js +0 -12
- package/dist/components/textCopy/textCopyVariants.js.map +0 -1
- package/dist/components/textField/index.js +0 -3
- package/dist/components/textField/index.js.map +0 -1
- package/dist/components/textField/textField.js +0 -37
- package/dist/components/textField/textField.js.map +0 -1
- package/dist/components/textField/textFieldVariants.js +0 -84
- package/dist/components/textField/textFieldVariants.js.map +0 -1
- package/dist/components/textarea/index.js.map +0 -1
- package/dist/components/textarea/textarea.js +0 -29
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/textarea/textareaVariants.js +0 -37
- package/dist/components/textarea/textareaVariants.js.map +0 -1
- package/dist/components/toast/index.js.map +0 -1
- package/dist/components/toast/toast.js +0 -51
- package/dist/components/toast/toast.js.map +0 -1
- package/dist/components/toast/toastVariants.js +0 -45
- package/dist/components/toast/toastVariants.js.map +0 -1
- package/dist/components/toggle/index.js.map +0 -1
- package/dist/components/toggle/toggle.js +0 -34
- package/dist/components/toggle/toggle.js.map +0 -1
- package/dist/components/toggle/toggleVariants.js +0 -40
- package/dist/components/toggle/toggleVariants.js.map +0 -1
- package/dist/components/tooltip/index.js +0 -3
- package/dist/components/tooltip/index.js.map +0 -1
- package/dist/components/tooltip/tooltip.js +0 -100
- package/dist/components/tooltip/tooltip.js.map +0 -1
- package/dist/components/tooltip/tooltipVariants.js +0 -13
- package/dist/components/tooltip/tooltipVariants.js.map +0 -1
- package/dist/components/truncate/index.js +0 -3
- package/dist/components/truncate/index.js.map +0 -1
- package/dist/components/truncate/truncate.js +0 -36
- package/dist/components/truncate/truncate.js.map +0 -1
- package/dist/components/truncate/truncateVariants.js +0 -13
- package/dist/components/truncate/truncateVariants.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/tailwindThemeConfig.js +0 -194
- package/dist/tailwindThemeConfig.js.map +0 -1
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/debounce.js +0 -30
- package/dist/utils/debounce.js.map +0 -1
- package/dist/utils/findParentAttribute.js +0 -23
- package/dist/utils/findParentAttribute.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/numberUtils/index.js +0 -41
- package/dist/utils/numberUtils/index.js.map +0 -1
- package/dist/utils/stringUtils/fileSize.js.map +0 -1
- package/dist/utils/stringUtils/index.js.map +0 -1
- package/dist/utils/stringUtils/placeholderText.js +0 -77
- package/dist/utils/stringUtils/placeholderText.js.map +0 -1
- package/dist/utils/useWindowSize.js +0 -25
- package/dist/utils/useWindowSize.js.map +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ReactElement } from "react";
|
|
3
|
+
import { type IRadioProps } from "../radio";
|
|
4
|
+
export type TRadioGroupSize = "sm" | "md" | "lg";
|
|
5
|
+
/**
|
|
6
|
+
* RadioGroup component props
|
|
7
|
+
*/
|
|
8
|
+
export interface IRadioGroupProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange"> {
|
|
9
|
+
/**
|
|
10
|
+
* Size of the Radio group.
|
|
11
|
+
* @default md
|
|
12
|
+
*/
|
|
13
|
+
size?: TRadioGroupSize;
|
|
14
|
+
/**
|
|
15
|
+
* Pass space separated class names to override the RadioGroup styling
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Pass boolean value to disable the component.
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Selected value
|
|
25
|
+
*/
|
|
26
|
+
selectedValue?: string;
|
|
27
|
+
/**
|
|
28
|
+
* An array of objects of radio props type
|
|
29
|
+
*/
|
|
30
|
+
options: IRadioProps[];
|
|
31
|
+
/**
|
|
32
|
+
* Callback function that is called when the radio group selection changes.
|
|
33
|
+
* A selected value is passed as an argument to the function.
|
|
34
|
+
*/
|
|
35
|
+
onChange?: (arg: string) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Placement of the radio
|
|
38
|
+
* @default "start"
|
|
39
|
+
*/
|
|
40
|
+
radioPlacement?: "start" | "end";
|
|
41
|
+
/**
|
|
42
|
+
* Variant of the RadioGroup
|
|
43
|
+
* @default outline
|
|
44
|
+
*/
|
|
45
|
+
variant?: "outline" | "text";
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* RadioGroup component for grouping radio button options
|
|
49
|
+
*/
|
|
50
|
+
export declare const RadioGroup: {
|
|
51
|
+
({ size, options, onChange, className, selectedValue, disabled, radioPlacement, variant }: IRadioGroupProps): ReactElement;
|
|
52
|
+
displayName: string;
|
|
53
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const radioGroupVariants: (props?: ({
|
|
2
|
+
variant?: "text" | "outline" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const radioGroupItemVariants: (props?: ({
|
|
5
|
+
variant?: "text" | "outline" | null | undefined;
|
|
6
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
|
+
checked?: boolean | null | undefined;
|
|
8
|
+
disabled?: boolean | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
|
+
export declare const radioGroupItemLabelVariants: (props?: ({
|
|
11
|
+
disabled?: boolean | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { Scrollbar } from "./scrollbar";
|
|
1
|
+
export { Scrollbar, type IScrollbarProps } from "./scrollbar";
|
|
2
2
|
export { scrollbarVariants, scrollbarContentVariants, scrollbarYContainerVariants, scrollbarTrackYVariants, scrollbarThumbYVariants, scrollbarXContainerVariants, scrollbarTrackXVariants, scrollbarThumbXVariants } from "./scrollbarVariants";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type TVoidElements = "area" | "base" | "br" | "col" | "embed" | "hr" | "img" | "input" | "link" | "meta" | "param" | "source" | "track" | "wbr" | "audio" | "video" | "canvas" | "iframe" | "embed" | "object" | "param" | "picture" | "portal" | "svg" | "math" | "svg";
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Scrollbar component
|
|
5
|
+
*/
|
|
6
|
+
export interface IScrollbarProps extends Omit<React.HTMLAttributes<HTMLElement>, "as"> {
|
|
7
|
+
/**
|
|
8
|
+
* children to render inside the scroll container
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* The type of tag to render for the scroll container, the default value is "div".
|
|
13
|
+
* @default div
|
|
14
|
+
*/
|
|
15
|
+
as?: keyof Omit<JSX.IntrinsicElements, TVoidElements>;
|
|
16
|
+
/**
|
|
17
|
+
* Overwrite the children container styles by passing space separated class names.
|
|
18
|
+
* @optional
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Pass a boolean value to set the visibility of the scroller, by default the scrollbar will be visible on content hover.
|
|
23
|
+
* @optional
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
alwaysVisible?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Set it to true if you want to directly scroll to the click position,
|
|
29
|
+
* by default the scroller will move in the direction of the click
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
scrollToClickPosition?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Optional ID for the scrollbar container
|
|
35
|
+
*/
|
|
36
|
+
id?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Scrollbar component provides a custom scrollbar with support for both vertical and horizontal scrolling.
|
|
40
|
+
* It includes features like custom styling, touch support, RTL support, and keyboard navigation.
|
|
41
|
+
*/
|
|
42
|
+
export declare const Scrollbar: React.ForwardRefExoticComponent<IScrollbarProps & React.RefAttributes<HTMLElement>>;
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const scrollbarVariants: (props?: ({
|
|
2
|
+
visibility?: "default" | "alwaysVisible" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const scrollbarContentVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
5
|
+
export declare const scrollbarYContainerVariants: (props?: ({
|
|
6
|
+
visibility?: "default" | "alwaysVisible" | null | undefined;
|
|
7
|
+
active?: boolean | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export declare const scrollbarTrackYVariants: (props?: ({
|
|
10
|
+
visibility?: "default" | "alwaysVisible" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
12
|
+
export declare const scrollbarThumbYVariants: (props?: ({
|
|
13
|
+
visibility?: "default" | "alwaysVisible" | null | undefined;
|
|
14
|
+
active?: boolean | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
|
+
export declare const scrollbarXContainerVariants: (props?: ({
|
|
17
|
+
visibility?: "default" | "alwaysVisible" | null | undefined;
|
|
18
|
+
active?: boolean | null | undefined;
|
|
19
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
20
|
+
export declare const scrollbarTrackXVariants: (props?: ({
|
|
21
|
+
visibility?: "default" | "alwaysVisible" | null | undefined;
|
|
22
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
23
|
+
export declare const scrollbarThumbXVariants: (props?: ({
|
|
24
|
+
visibility?: "default" | "alwaysVisible" | null | undefined;
|
|
25
|
+
active?: boolean | null | undefined;
|
|
26
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Updates the cursor style to grabbing and disables text selection
|
|
3
|
+
*/
|
|
4
|
+
export declare const updateCursor: () => void;
|
|
5
|
+
/**
|
|
6
|
+
* Resets the cursor style and text selection
|
|
7
|
+
*/
|
|
8
|
+
export declare const resetCursor: () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Scrolls an HTML element smoothly to a specified offset along the top or left axis.
|
|
11
|
+
*
|
|
12
|
+
* @param element - The HTML element to scroll.
|
|
13
|
+
* @param scrollToOffset - The offset to scroll to along the specified axis.
|
|
14
|
+
* @param scrollProp - The axis to scroll along, either "top" or "left".
|
|
15
|
+
*/
|
|
16
|
+
export declare const handleScrollToHelper: (element: HTMLDivElement, scrollToOffset: number, scrollProp: "top" | "left") => void;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ReactNode, type ReactElement } from "react";
|
|
2
|
+
import { type Props as ReactSelectProps, type GroupBase } from "react-select";
|
|
3
|
+
import { type TIconType } from "../adpIcon";
|
|
4
|
+
import { type TSelectSize, type IOption } from "./types";
|
|
5
|
+
/**
|
|
6
|
+
* Props for the Select component
|
|
7
|
+
*/
|
|
8
|
+
export interface ISelectProps<IsMulti extends boolean = false, Group extends GroupBase<IOption> = GroupBase<IOption>> extends Omit<ReactSelectProps<IOption, IsMulti, Group>, "options" | "value" | "className"> {
|
|
9
|
+
/** Unique id for the select input */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** Custom className for wrapper */
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Label displayed above select */
|
|
14
|
+
label?: ReactNode;
|
|
15
|
+
/** Select size variant */
|
|
16
|
+
size?: TSelectSize;
|
|
17
|
+
/** Options or groups to render */
|
|
18
|
+
options?: ReactSelectProps<IOption, IsMulti, Group>["options"];
|
|
19
|
+
/** Current value of the select */
|
|
20
|
+
value?: ReactSelectProps<IOption, IsMulti, Group>["value"];
|
|
21
|
+
/** Helper text displayed below */
|
|
22
|
+
helperText?: ReactNode;
|
|
23
|
+
/** Display error styling */
|
|
24
|
+
error?: boolean;
|
|
25
|
+
/** Disable the select */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** Enable creatable select */
|
|
28
|
+
creatable?: boolean;
|
|
29
|
+
/** Field touched state */
|
|
30
|
+
touched?: boolean;
|
|
31
|
+
/** Max number of visible values in multi */
|
|
32
|
+
maxVisibleValues?: number;
|
|
33
|
+
/** Label for truncated values */
|
|
34
|
+
maxVisibleValuesMsg?: string;
|
|
35
|
+
/** Custom footer in menu */
|
|
36
|
+
menuFooter?: ReactNode;
|
|
37
|
+
/** Prefix icon for the control */
|
|
38
|
+
prefixIcon?: TIconType | ReactNode;
|
|
39
|
+
/** Suffix icon for the control */
|
|
40
|
+
suffixIcon?: TIconType | ReactNode;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Select component for single or multi selection
|
|
44
|
+
*/
|
|
45
|
+
export declare function Select<IsMulti extends boolean = false, Group extends GroupBase<IOption> = GroupBase<IOption>>(selectProps: ISelectProps<IsMulti, Group>): ReactElement;
|
|
46
|
+
export declare namespace Select {
|
|
47
|
+
var displayName: string;
|
|
48
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const selectVariants: (props?: ({
|
|
2
|
+
size?: "md" | "lg" | null | undefined;
|
|
3
|
+
error?: boolean | null | undefined;
|
|
4
|
+
disabled?: boolean | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
export declare const selectLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
7
|
+
export declare const selectHelperTextVariants: (props?: ({
|
|
8
|
+
error?: boolean | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Available sizes for the Select component
|
|
4
|
+
*/
|
|
5
|
+
export declare enum ESelectSizes {
|
|
6
|
+
MD = "md",
|
|
7
|
+
LG = "lg"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Size type derived from available sizes
|
|
11
|
+
*/
|
|
12
|
+
export type TSelectSize = `${ESelectSizes}`;
|
|
13
|
+
/**
|
|
14
|
+
* Option type for Select component
|
|
15
|
+
*/
|
|
16
|
+
export interface IOption {
|
|
17
|
+
label: ReactNode;
|
|
18
|
+
value: any;
|
|
19
|
+
isFixed?: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type StylesConfig, type GroupBase } from "react-select";
|
|
2
|
+
import { type TSelectSize, type IOption } from "./types";
|
|
3
|
+
export declare const reactSelectCustomStyles: <IsMulti extends boolean, Group extends GroupBase<IOption>>(error: boolean, size: TSelectSize, multiSelect: boolean) => StylesConfig<IOption, IsMulti, Group>;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ReactElement } from "react";
|
|
3
|
+
export declare enum ETabSizes {
|
|
4
|
+
XS = "xs",
|
|
5
|
+
SM = "sm",
|
|
6
|
+
MD = "md",
|
|
7
|
+
LG = "lg"
|
|
8
|
+
}
|
|
9
|
+
export type TTabSize = `${ETabSizes}`;
|
|
10
|
+
/**
|
|
11
|
+
* Props for the Tab component.
|
|
12
|
+
*/
|
|
13
|
+
export interface ITabProps {
|
|
14
|
+
/**
|
|
15
|
+
* Id of the tab.
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Name of the tab.
|
|
20
|
+
*/
|
|
21
|
+
title: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Function to call when the tab is displayed.
|
|
24
|
+
*/
|
|
25
|
+
onEnter?: () => void;
|
|
26
|
+
/**
|
|
27
|
+
* Function to call when the tab is exited.
|
|
28
|
+
*/
|
|
29
|
+
onExit?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Dynamically updates the className applied to the component.
|
|
32
|
+
*/
|
|
33
|
+
className?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Content to be displayed within the tab.
|
|
36
|
+
*/
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Indicates whether the tab is disabled.
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Icon to be displayed before the title of the Tab.
|
|
44
|
+
* @description
|
|
45
|
+
* This prop accepts either an IconType (string) or a ReactNode.
|
|
46
|
+
* - If an IconType is provided, it will be rendered as-is.
|
|
47
|
+
* - If a ReactNode is provided, it will be rendered as-is.
|
|
48
|
+
*/
|
|
49
|
+
prefixIcon?: React.ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Icon to be displayed after the title of the Tab.
|
|
52
|
+
* @description
|
|
53
|
+
* This prop accepts either an IconType (string) or a ReactNode.
|
|
54
|
+
* - If an IconType is provided, it will be rendered as-is.
|
|
55
|
+
* - If a ReactNode is provided, it will be rendered as-is.
|
|
56
|
+
*/
|
|
57
|
+
suffixIcon?: React.ReactNode;
|
|
58
|
+
}
|
|
59
|
+
export declare const Tab: React.ForwardRefExoticComponent<ITabProps & React.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* Props for the Tabs component.
|
|
62
|
+
*/
|
|
63
|
+
export interface ITabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
64
|
+
/**
|
|
65
|
+
* Active tab index. Tab index starts from 0.
|
|
66
|
+
*/
|
|
67
|
+
activeIndex?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Default active tab index, to be used with the uncontrolled version of the Tabs component.
|
|
70
|
+
* @default 0
|
|
71
|
+
*/
|
|
72
|
+
defaultActiveIndex?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Dynamically updates the className applied to the component.
|
|
75
|
+
*/
|
|
76
|
+
className?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Renders all the tabs at once and switches between them using CSS.
|
|
79
|
+
* @default false
|
|
80
|
+
*/
|
|
81
|
+
switchUsingCss?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Called on click of a tab header.
|
|
84
|
+
* @param selectedTabIndex {number} Selected tab index.
|
|
85
|
+
*/
|
|
86
|
+
onSelect?: (selectedTabIndex: number) => void;
|
|
87
|
+
/**
|
|
88
|
+
* Array of items to be displayed in the Tabs,
|
|
89
|
+
* each item should be wrapped in Tabs.Tab component
|
|
90
|
+
* @required
|
|
91
|
+
* @example
|
|
92
|
+
* ```tsx
|
|
93
|
+
* <Tabs>
|
|
94
|
+
* <Tabs.Tab title="Tab 1">Content of Tab 1</Tabs.Tab>
|
|
95
|
+
* </Tabs>
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
children: ReactElement<ITabProps> | Array<ReactElement<ITabProps> | boolean> | boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Size of the tab.
|
|
101
|
+
* @default md
|
|
102
|
+
*/
|
|
103
|
+
size?: TTabSize;
|
|
104
|
+
/**
|
|
105
|
+
* Variant of the tab.
|
|
106
|
+
* @default text
|
|
107
|
+
*/
|
|
108
|
+
variant?: "filled" | "text" | "brick";
|
|
109
|
+
/**
|
|
110
|
+
* Color of the tab. Only applicable for filled variant.
|
|
111
|
+
*/
|
|
112
|
+
color?: "primary" | "secondary";
|
|
113
|
+
}
|
|
114
|
+
declare const TabsComponent: React.ForwardRefExoticComponent<ITabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
115
|
+
type TTabsType = typeof TabsComponent & {
|
|
116
|
+
Tab: typeof Tab;
|
|
117
|
+
};
|
|
118
|
+
declare const Tabs: TTabsType;
|
|
119
|
+
export { Tabs };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const tabsVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const tabsListVariants: (props?: ({
|
|
3
|
+
variant?: "text" | "filled" | "brick" | null | undefined;
|
|
4
|
+
color?: "primary" | "secondary" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
export declare const tabsListItemVariants: (props?: ({
|
|
7
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
8
|
+
variant?: "text" | "filled" | "brick" | null | undefined;
|
|
9
|
+
color?: "primary" | "secondary" | null | undefined;
|
|
10
|
+
active?: boolean | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
12
|
+
export declare const tabsContentVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* TextCopy component for copying text to clipboard
|
|
4
|
+
*/
|
|
5
|
+
export interface ITextCopyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Pass the text prop if you want to copy something other than children string
|
|
8
|
+
*/
|
|
9
|
+
text?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Pass the children to display the text or element to be copied.
|
|
12
|
+
* When passing children as non-string, make sure to pass text prop as well
|
|
13
|
+
*/
|
|
14
|
+
children?: React.ReactElement | string;
|
|
15
|
+
/**
|
|
16
|
+
* To display icon on hover of the text
|
|
17
|
+
*/
|
|
18
|
+
displayOnHover?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Title for the copy button
|
|
21
|
+
*/
|
|
22
|
+
copyButtonTitle?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Confirmation message to be shown after the text gets copied
|
|
25
|
+
*/
|
|
26
|
+
confirmationMessage?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* TextCopy component for copying text to clipboard with visual confirmation
|
|
30
|
+
*/
|
|
31
|
+
export declare const TextCopy: React.ForwardRefExoticComponent<ITextCopyProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type TIconType } from "../adpIcon";
|
|
4
|
+
type TSize = "md" | "lg";
|
|
5
|
+
export interface ITextFieldProps extends Omit<React.ComponentPropsWithoutRef<"input">, "css" | "size"> {
|
|
6
|
+
/**
|
|
7
|
+
* Regular static label.
|
|
8
|
+
*/
|
|
9
|
+
label?: string | ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Size of the Textfield.
|
|
12
|
+
* @default md
|
|
13
|
+
*/
|
|
14
|
+
size?: TSize;
|
|
15
|
+
/**
|
|
16
|
+
* Pass a ref to the inner input element
|
|
17
|
+
*/
|
|
18
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
19
|
+
/**
|
|
20
|
+
* Additional information or guidance displayed below the text field.
|
|
21
|
+
*/
|
|
22
|
+
helperText?: ReactNode;
|
|
23
|
+
/**
|
|
24
|
+
* Pass a boolean value to indicate if the text field is in an error state.
|
|
25
|
+
*/
|
|
26
|
+
error?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Icon to be displayed before the input.
|
|
29
|
+
* @description
|
|
30
|
+
* This prop accepts either an IconType (string) or a ReactNode.
|
|
31
|
+
* - If an IconType is provided, it will render an ADPIcon component.
|
|
32
|
+
* - If a ReactNode is provided, it will be rendered as-is.
|
|
33
|
+
*/
|
|
34
|
+
prefixIcon?: TIconType | ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Icon to be displayed after the input.
|
|
37
|
+
* @description
|
|
38
|
+
* This prop accepts either an IconType (string) or a ReactNode.
|
|
39
|
+
* - If an IconType is provided, it will render an ADPIcon component.
|
|
40
|
+
* - If a ReactNode is provided, it will be rendered as-is.
|
|
41
|
+
*/
|
|
42
|
+
suffixIcon?: TIconType | ReactNode;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* TextField component for collecting text input from users.
|
|
46
|
+
*/
|
|
47
|
+
export declare const TextField: React.ForwardRefExoticComponent<Omit<ITextFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const textFieldContainerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const textFieldLabelVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
3
|
+
export declare const textFieldVariants: (props?: ({
|
|
4
|
+
size?: "md" | "lg" | null | undefined;
|
|
5
|
+
error?: boolean | null | undefined;
|
|
6
|
+
withPrefix?: boolean | null | undefined;
|
|
7
|
+
withSuffix?: boolean | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export declare const textFieldIconVariants: (props?: ({
|
|
10
|
+
size?: "md" | "lg" | null | undefined;
|
|
11
|
+
position?: "prefix" | "suffix" | null | undefined;
|
|
12
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
13
|
+
export declare const textFieldHelperTextVariants: (props?: ({
|
|
14
|
+
error?: boolean | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Textarea component for multiline text input fields.
|
|
4
|
+
*/
|
|
5
|
+
export interface ITextareaProps extends Omit<React.ComponentPropsWithoutRef<"textarea">, "label"> {
|
|
6
|
+
/**
|
|
7
|
+
* Regular static label.
|
|
8
|
+
*/
|
|
9
|
+
label?: React.ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* Pass a ref to the inner input element
|
|
12
|
+
*/
|
|
13
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
14
|
+
/**
|
|
15
|
+
* Additional information or guidance displayed below the textarea.
|
|
16
|
+
*/
|
|
17
|
+
helperText?: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Additional information shown inside the textarea.
|
|
20
|
+
*/
|
|
21
|
+
infoText?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Pass a boolean value to indicate if the textarea is in an error state.
|
|
24
|
+
*/
|
|
25
|
+
error?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Textarea component for multiline text input fields.
|
|
29
|
+
*/
|
|
30
|
+
export declare const Textarea: React.ForwardRefExoticComponent<Omit<ITextareaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const textareaVariants: (props?: ({
|
|
2
|
+
state?: "default" | "disabled" | "error" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const containerVariants: (props?: ({
|
|
5
|
+
state?: "default" | "disabled" | "error" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export declare const helperTextVariants: (props?: ({
|
|
8
|
+
state?: "default" | "error" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Toast component for displaying notifications or alerts.
|
|
4
|
+
*/
|
|
5
|
+
export interface IToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Accepts a variant value
|
|
8
|
+
* @default info
|
|
9
|
+
*/
|
|
10
|
+
variant?: "success" | "info" | "warning" | "error";
|
|
11
|
+
/**
|
|
12
|
+
* Show/hide the toast component
|
|
13
|
+
* @default true
|
|
14
|
+
*/
|
|
15
|
+
display?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Accepts children of ReactNode type
|
|
18
|
+
*/
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Hide the Toast components automatically in x milliseconds
|
|
22
|
+
*/
|
|
23
|
+
autoHideDelay?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Hide the close button on the toast
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
hideCloseButton?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* A callback that is fired once the Toast closes
|
|
31
|
+
*/
|
|
32
|
+
onClose?: () => void;
|
|
33
|
+
/**
|
|
34
|
+
* Show a condensed form of the Toast
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
condensed?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Toast component for displaying notifications or alerts.
|
|
41
|
+
*/
|
|
42
|
+
export declare const Toast: React.ForwardRefExoticComponent<IToastProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const toastVariants: (props?: ({
|
|
2
|
+
variant?: "info" | "success" | "warning" | "error" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const toastIconVariants: (props?: ({
|
|
5
|
+
variant?: "info" | "success" | "warning" | "error" | null | undefined;
|
|
6
|
+
condensed?: boolean | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
export declare const toastContentWrapperVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export declare const toastContentVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
|
+
export declare const toastCloseButtonVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { Toggle } from "./toggle";
|
|
1
|
+
export { Toggle, type IToggleProps } from "./toggle";
|
|
2
2
|
export { toggleWrapperVariants, toggleContainerVariants, toggleButtonVariants, toggleIconVariants, toggleLabelVariants } from "./toggleVariants";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|