@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,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,4 @@
|
|
|
1
|
+
export declare const modalContainerVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
2
|
+
export declare const modalVariants: (props?: ({
|
|
3
|
+
headerless?: boolean | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -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>>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// Export component and type
|
|
2
1
|
export { Pagination } from "./pagination";
|
|
3
|
-
|
|
2
|
+
export type { IPaginationProps } from "./pagination";
|
|
4
3
|
export { paginationVariants, paginationPageContainerVariants, paginationPageButtonVariants, paginationEllipsisVariants, paginationTextVariants } from "./paginationVariants";
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Pagination component for navigating through multiple pages of content.
|
|
4
|
+
*/
|
|
5
|
+
export interface IPaginationProps {
|
|
6
|
+
/**
|
|
7
|
+
* The total number of pages.
|
|
8
|
+
*/
|
|
9
|
+
totalPages?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Use the prop to set the active page number. The value for activePageNo needs to start from 1.
|
|
12
|
+
*/
|
|
13
|
+
activePageNo?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Layout of the pagination.
|
|
16
|
+
* @default detailed
|
|
17
|
+
*/
|
|
18
|
+
layout?: "detailed" | "basic" | "minimal";
|
|
19
|
+
/**
|
|
20
|
+
* Pagination variant.
|
|
21
|
+
* @default filled
|
|
22
|
+
*/
|
|
23
|
+
variant?: "filled" | "outline";
|
|
24
|
+
/**
|
|
25
|
+
* Use the prop to hide the labels "Next" & "Previous"
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
showLabels?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Callback function triggered when the active page changes.
|
|
31
|
+
* @param activePageNo - The new page number that was selected
|
|
32
|
+
*/
|
|
33
|
+
onPageChange?: (activePageNo: number) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Optional CSS class name.
|
|
36
|
+
*/
|
|
37
|
+
className?: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Pagination component for navigating through multiple pages of content.
|
|
41
|
+
*/
|
|
42
|
+
export declare const Pagination: React.ForwardRefExoticComponent<IPaginationProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const paginationVariants: (props?: ({
|
|
2
|
+
layout?: "detailed" | "basic" | "minimal" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const paginationPageContainerVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
|
+
export declare const paginationPageButtonVariants: (props?: ({
|
|
6
|
+
variant?: "filled" | "outline" | null | undefined;
|
|
7
|
+
isActive?: boolean | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
+
export declare const paginationEllipsisVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
|
+
export declare const paginationTextVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Panel as PanelComponent, type IPanelProps } from "./panel";
|
|
2
|
+
import { PanelHeader, type IPanelHeaderProps } from "./panelHeader";
|
|
3
|
+
import { PanelBody, type IPanelBodyProps } from "./panelBody";
|
|
4
|
+
import { PanelFooter, type IPanelFooterProps } from "./panelFooter";
|
|
5
|
+
import { panelVariants, panelHeaderVariants, panelBodyVariants, panelFooterVariants, panelOverlayVariants, panelContainerVariants } from "./panelVariants";
|
|
6
|
+
type TPanelCompoundComponent = typeof PanelComponent & {
|
|
7
|
+
Header: typeof PanelHeader;
|
|
8
|
+
Body: typeof PanelBody;
|
|
9
|
+
Footer: typeof PanelFooter;
|
|
10
|
+
};
|
|
11
|
+
declare const Panel: TPanelCompoundComponent;
|
|
12
|
+
export { Panel, PanelHeader, PanelBody, PanelFooter, panelVariants, panelHeaderVariants, panelBodyVariants, panelFooterVariants, panelOverlayVariants, panelContainerVariants };
|
|
13
|
+
export type { IPanelProps, IPanelHeaderProps, IPanelBodyProps, IPanelFooterProps };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { PanelHeader } from "./panelHeader";
|
|
3
|
+
import { PanelBody } from "./panelBody";
|
|
4
|
+
import { PanelFooter } from "./panelFooter";
|
|
5
|
+
export interface IPanelProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "dir"> {
|
|
6
|
+
/**
|
|
7
|
+
* Variant of the Panel
|
|
8
|
+
* @default compact
|
|
9
|
+
*/
|
|
10
|
+
variant?: "extended" | "compact";
|
|
11
|
+
/**
|
|
12
|
+
* Prop to control the panel display
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
showPanel?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Toggle the visibility of the Panel without unmounting it
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
toggleVisibilityUsingCss?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Overwrite the Panel styles by passing space separated class names
|
|
23
|
+
*/
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Accepts children of ReactNode type
|
|
27
|
+
*/
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* Direction from which the panel slides in
|
|
31
|
+
* @default "right"
|
|
32
|
+
*/
|
|
33
|
+
slideDirection?: "left" | "right";
|
|
34
|
+
/**
|
|
35
|
+
* If true, indicates that the app is in RTL (right-to-left) mode
|
|
36
|
+
* When true in RTL mode, slideDirection="left" will make panel open from right
|
|
37
|
+
* @default false
|
|
38
|
+
*/
|
|
39
|
+
rtl?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Pass a reference to the element where the Panel needs to be rendered
|
|
42
|
+
* @default document.body
|
|
43
|
+
*/
|
|
44
|
+
portalTarget?: HTMLElement;
|
|
45
|
+
/**
|
|
46
|
+
* A list of Refs to be considered as a part of the Lock. The html elements in the list will be accessible while the Panel is open.
|
|
47
|
+
*/
|
|
48
|
+
shards?: (HTMLElement | React.RefObject<HTMLElement>)[];
|
|
49
|
+
/**
|
|
50
|
+
* Optional callback function to call when panel is closed
|
|
51
|
+
*/
|
|
52
|
+
onClose?: (e: React.MouseEvent<HTMLDivElement> | KeyboardEvent) => void;
|
|
53
|
+
}
|
|
54
|
+
declare const PanelComponent: React.ForwardRefExoticComponent<IPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
type TPanelCompoundComponent = typeof PanelComponent & {
|
|
56
|
+
Header: typeof PanelHeader;
|
|
57
|
+
Body: typeof PanelBody;
|
|
58
|
+
Footer: typeof PanelFooter;
|
|
59
|
+
};
|
|
60
|
+
export declare const Panel: TPanelCompoundComponent;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IPanelBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Panel Body
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Overwrite the Panel body styles by passing space separated class names
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const PanelBody: React.ForwardRefExoticComponent<IPanelBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IPanelFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Panel Footer
|
|
5
|
+
*/
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Overwrite the Panel footer styles by passing space separated class names
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const PanelFooter: React.ForwardRefExoticComponent<IPanelFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IPanelHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Overwrite the Panel Header styles by passing space separated class names
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Control panel's back button visibility
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
showBackButton?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Callback function for back button
|
|
14
|
+
*/
|
|
15
|
+
onBackHandler?: () => void;
|
|
16
|
+
/**
|
|
17
|
+
* Control panel's close button visibility
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
showCloseButton?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Callback function for close button
|
|
23
|
+
*/
|
|
24
|
+
onCloseHandler?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Header of Panel
|
|
27
|
+
*/
|
|
28
|
+
header?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Sub header of Panel
|
|
31
|
+
*/
|
|
32
|
+
subHeader?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Pass custom CTA that will appear close to header
|
|
35
|
+
*/
|
|
36
|
+
customCTA?: React.ReactNode;
|
|
37
|
+
}
|
|
38
|
+
export declare const PanelHeader: React.ForwardRefExoticComponent<IPanelHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const panelAnimations: {
|
|
2
|
+
appear: string;
|
|
3
|
+
disappear: string;
|
|
4
|
+
slideIn: string;
|
|
5
|
+
slideInRtl: string;
|
|
6
|
+
slideOut: string;
|
|
7
|
+
slideOutRtl: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const panelVariants: (props?: ({
|
|
10
|
+
variant?: "compact" | "extended" | null | undefined;
|
|
11
|
+
animation?: "none" | "slideInRight" | "slideOutRight" | "slideInLeft" | "slideOutLeft" | null | undefined;
|
|
12
|
+
visibility?: "hidden" | "visible" | null | undefined;
|
|
13
|
+
direction?: "right" | "left" | null | undefined;
|
|
14
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
15
|
+
export declare const panelOverlayVariants: (props?: ({
|
|
16
|
+
animation?: "none" | "appear" | "disappear" | null | undefined;
|
|
17
|
+
visibility?: "hidden" | "visible" | null | undefined;
|
|
18
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
19
|
+
export declare const panelContainerVariants: (props?: ({
|
|
20
|
+
toggleVisibility?: boolean | null | undefined;
|
|
21
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
22
|
+
export declare const panelHeaderVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
23
|
+
export declare const panelBodyVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
24
|
+
export declare const panelFooterVariants: (props?: ({} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
25
|
+
export declare const cssVisibilityVariants: {
|
|
26
|
+
container: string;
|
|
27
|
+
panel: {
|
|
28
|
+
base: {
|
|
29
|
+
right: string;
|
|
30
|
+
left: string;
|
|
31
|
+
};
|
|
32
|
+
compact: string;
|
|
33
|
+
extended: string;
|
|
34
|
+
extendedLeft: string;
|
|
35
|
+
show: {
|
|
36
|
+
right: {
|
|
37
|
+
extended: string;
|
|
38
|
+
compact: string;
|
|
39
|
+
};
|
|
40
|
+
left: {
|
|
41
|
+
extended: string;
|
|
42
|
+
compact: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
overlay: {
|
|
47
|
+
base: string;
|
|
48
|
+
show: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface IPanelGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Overwrite the styles for PanelGroup by passing space separated class names
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Pass one or more Panels as the children
|
|
9
|
+
*/
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Use the prop to set the active panel index. The value for the active index needs to start from 0.
|
|
13
|
+
* @default 0
|
|
14
|
+
*/
|
|
15
|
+
activeIndex?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Control PanelGroup's visibility
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
showPanels?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const PanelGroup: React.ForwardRefExoticComponent<IPanelGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const panelGroupVariants: (props?: ({
|
|
2
|
+
visibility?: "hidden" | "visible" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const panelGroupItemVariants: (props?: ({
|
|
5
|
+
position?: "previous" | "current" | "subsequent" | null | undefined;
|
|
6
|
+
animation?: "slideIn" | null | undefined;
|
|
7
|
+
spacing?: "default" | "withMargin" | null | undefined;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PasswordField, type TPasswordFieldProps } from "./passwordField";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type ITextFieldProps } from "../textField";
|
|
3
|
+
/**
|
|
4
|
+
* PasswordField component with show/hide password toggle functionality.
|
|
5
|
+
*/
|
|
6
|
+
export type TPasswordFieldProps = Omit<ITextFieldProps, "type">;
|
|
7
|
+
/**
|
|
8
|
+
* PasswordField component with show/hide password toggle functionality.
|
|
9
|
+
*/
|
|
10
|
+
export declare const PasswordField: React.ForwardRefExoticComponent<Omit<TPasswordFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { Progress, EColors, EValuePositions } from "./progress";
|
|
1
|
+
export { Progress, EColors, EValuePositions, type IProgressProps, type TColorType, type TValuePositionType } from "./progress";
|
|
2
2
|
export { progressTrackVariants, progressBarVariants, progressTextVariants, progressValueTextVariants, progressCircularVariants, progressCircularTrackVariants, progressCircularProgressVariants, progressCircularTextVariants } from "./progressVariants";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare enum EColors {
|
|
3
|
+
PRIMARY = "primary",
|
|
4
|
+
SECONDARY = "secondary",
|
|
5
|
+
SUCCESS = "success",
|
|
6
|
+
WARNING = "warning",
|
|
7
|
+
ERROR = "error"
|
|
8
|
+
}
|
|
9
|
+
export declare enum EValuePositions {
|
|
10
|
+
TOP = "top",
|
|
11
|
+
RIGHT = "right",
|
|
12
|
+
BOTTOM = "bottom",
|
|
13
|
+
INLINE = "inline"
|
|
14
|
+
}
|
|
15
|
+
export type TColorType = `${EColors}`;
|
|
16
|
+
export type TValuePositionType = `${EValuePositions}`;
|
|
17
|
+
/**
|
|
18
|
+
* Progress component for displaying progress bars in linear or circular variants.
|
|
19
|
+
*/
|
|
20
|
+
export interface IProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
/**
|
|
22
|
+
* Controls the colors of Progress
|
|
23
|
+
* Only For linear progress
|
|
24
|
+
* @default primary
|
|
25
|
+
*/
|
|
26
|
+
color?: TColorType;
|
|
27
|
+
/**
|
|
28
|
+
* Variant of the Progress
|
|
29
|
+
* @default linear
|
|
30
|
+
*/
|
|
31
|
+
variant?: "linear" | "circular";
|
|
32
|
+
/**
|
|
33
|
+
* Use the prop to change the size of the Circular Progress
|
|
34
|
+
* @default "md"
|
|
35
|
+
*/
|
|
36
|
+
size?: "md" | "lg";
|
|
37
|
+
/**
|
|
38
|
+
* Value is used to display the percentage of the progress
|
|
39
|
+
* @default 0
|
|
40
|
+
* @range 0 to 100
|
|
41
|
+
*/
|
|
42
|
+
value: number;
|
|
43
|
+
/**
|
|
44
|
+
* Prop controlling the position of the value of the Progress
|
|
45
|
+
* @default inline
|
|
46
|
+
*/
|
|
47
|
+
valuePosition?: TValuePositionType;
|
|
48
|
+
/**
|
|
49
|
+
* Set to true to display the percentage of progress.
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
showPercentage?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Prop to set striped background
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
striped?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Prop to set animated background, use in conjunction with striped property
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
animate?: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Progress component for displaying progress bars in linear or circular variants.
|
|
66
|
+
*/
|
|
67
|
+
export declare const Progress: React.ForwardRefExoticComponent<IProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const progressContainerVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
2
|
+
export declare const progressTrackVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
3
|
+
export declare const progressBarVariants: (props?: ({
|
|
4
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
|
|
5
|
+
striped?: boolean | null | undefined;
|
|
6
|
+
animate?: boolean | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
8
|
+
export declare const progressTextVariants: (props?: ({
|
|
9
|
+
position?: "inline" | "top" | "right" | "bottom" | null | undefined;
|
|
10
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
12
|
+
export declare const progressValueTextVariants: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
13
|
+
export declare const progressCircularVariants: (props?: ({
|
|
14
|
+
size?: "md" | "lg" | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
16
|
+
export declare const progressCircularTrackVariants: (props?: ({
|
|
17
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
|
|
18
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
19
|
+
export declare const progressCircularProgressVariants: (props?: ({
|
|
20
|
+
color?: "primary" | "secondary" | "success" | "warning" | "error" | null | undefined;
|
|
21
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
22
|
+
export declare const progressCircularTextVariants: (props?: ({
|
|
23
|
+
size?: "md" | "lg" | null | undefined;
|
|
24
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Radio component props
|
|
4
|
+
*/
|
|
5
|
+
export interface IRadioProps extends Omit<React.HTMLProps<HTMLInputElement>, "label" | "size"> {
|
|
6
|
+
/**
|
|
7
|
+
* Size of the Radio button
|
|
8
|
+
* @default sm
|
|
9
|
+
*/
|
|
10
|
+
size?: "sm" | "md" | "lg";
|
|
11
|
+
/**
|
|
12
|
+
* Label for the Radio button
|
|
13
|
+
*/
|
|
14
|
+
label?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Radio component for single-option selection within a group
|
|
18
|
+
*/
|
|
19
|
+
export declare const Radio: React.ForwardRefExoticComponent<Omit<IRadioProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const radioVariants: (props?: ({
|
|
2
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
4
|
+
export declare const radioLabelVariants: (props?: ({
|
|
5
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
6
|
+
disabled?: boolean | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { RadioGroup } from "./radioGroup";
|
|
1
|
+
export { RadioGroup, type IRadioGroupProps, type TRadioGroupSize } from "./radioGroup";
|
|
2
2
|
export { radioGroupVariants, radioGroupItemVariants, radioGroupItemLabelVariants } from "./radioGroupVariants";
|
|
3
|
-
//# sourceMappingURL=index.js.map
|