@cloudwick/astral-ui 5.2.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -3
- package/dist/components/accordion/accordion.d.ts +45 -0
- package/dist/components/accordion/accordionVariants.d.ts +97 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/adpIcon/adpIcon.d.ts +2 -4
- package/dist/components/adpIcon/adpIconVariants.d.ts +49 -0
- package/dist/components/adpIcon/index.d.ts +3 -0
- package/dist/components/avatar/avatar.d.ts +20 -0
- package/dist/components/avatar/avatarVariants.d.ts +58 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatarGroup/avatarGroup.d.ts +33 -0
- package/dist/components/avatarGroup/avatarGroupVariants.d.ts +16 -0
- package/dist/components/avatarGroup/index.d.ts +2 -0
- package/dist/components/badge/badge.d.ts +22 -0
- package/dist/components/badge/badgeVariants.d.ts +58 -5
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/breadcrumbs/breadcrumbItem.d.ts +26 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +31 -0
- package/dist/components/breadcrumbs/breadcrumbsVariants.d.ts +55 -0
- package/dist/components/breadcrumbs/index.d.ts +3 -0
- package/dist/components/button/button.d.ts +80 -0
- package/dist/components/button/buttonVariants.d.ts +73 -6
- package/dist/components/button/{index.js → index.d.ts} +1 -2
- package/dist/components/card/card.d.ts +74 -0
- package/dist/components/card/cardVariants.d.ts +43 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/checkbox/checkbox.d.ts +1 -0
- package/dist/components/checkbox/checkboxVariants.d.ts +112 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkboxGroup/checkboxGroupVariants.d.ts +79 -0
- package/dist/components/checkboxGroup/index.d.ts +2 -0
- package/dist/components/ctaGroup/ctaGroupVariants.d.ts +40 -5
- package/dist/components/ctaGroup/index.d.ts +2 -0
- package/dist/components/dataTable/DataTableColumnSettings.d.ts +7 -0
- package/dist/components/dataTable/advancedFilters.d.ts +10 -0
- package/dist/components/dataTable/dataTable.d.ts +3 -3
- package/dist/components/dataTable/dataTableVariants.d.ts +103 -0
- package/dist/components/dataTable/index.d.ts +6 -0
- package/dist/components/dataTable/pageSizeModal.d.ts +9 -0
- package/dist/components/dataTable/selectedFilterList.d.ts +17 -0
- package/dist/components/dataTable/table.d.ts +41 -0
- package/dist/components/dataTable/types.d.ts +60 -0
- package/dist/components/datePicker/datePicker.d.ts +2 -2
- package/dist/components/datePicker/index.d.ts +2 -0
- package/dist/components/distributionSlider/distributionSlider.d.ts +81 -0
- package/dist/components/distributionSlider/distributionSliderVariants.d.ts +166 -0
- package/dist/components/distributionSlider/index.d.ts +2 -0
- package/dist/components/dropdown/dropdown.d.ts +50 -0
- package/dist/components/dropdown/dropdownItem.d.ts +40 -0
- package/dist/components/dropdown/dropdownToggle.d.ts +12 -0
- package/dist/components/dropdown/dropdownVariants.d.ts +109 -0
- package/dist/components/dropdown/index.d.ts +10 -0
- package/dist/components/emptyState/emptyState.d.ts +43 -0
- package/dist/components/emptyState/emptyStateContent.d.ts +11 -0
- package/dist/components/emptyState/emptyStateCta.d.ts +9 -0
- package/dist/components/emptyState/emptyStateVariants.d.ts +49 -0
- package/dist/components/emptyState/index.d.ts +4 -0
- package/dist/components/fileUpload/fileUpload.d.ts +33 -0
- package/dist/components/fileUpload/fileUploadVariants.d.ts +106 -0
- package/dist/components/fileUpload/index.d.ts +2 -0
- package/dist/components/fileUpload/statusCard.d.ts +18 -0
- package/dist/components/fileUpload/statusCardVariants.d.ts +127 -3
- package/dist/components/loader/index.d.ts +2 -0
- package/dist/components/loader/loader.d.ts +24 -0
- package/dist/components/loader/loaderVariants.d.ts +67 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/modal.d.ts +98 -0
- package/dist/components/modal/modalVariants.d.ts +28 -0
- package/dist/components/otp/{index.js → index.d.ts} +0 -1
- package/dist/components/otp/input.d.ts +36 -0
- package/dist/components/otp/otp.d.ts +58 -0
- package/dist/components/otp/otpVariants.d.ts +16 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/paginationVariants.d.ts +61 -0
- package/dist/components/panel/index.d.ts +13 -0
- package/dist/components/panel/panel.d.ts +10 -3
- package/dist/components/panel/panelBody.d.ts +12 -0
- package/dist/components/panel/panelFooter.d.ts +12 -0
- package/dist/components/panel/panelVariants.d.ts +248 -0
- package/dist/components/panelGroup/{index.js → index.d.ts} +0 -1
- package/dist/components/panelGroup/panelGroup.d.ts +22 -0
- package/dist/components/panelGroup/panelGroupVariants.d.ts +109 -0
- package/dist/components/passwordField/index.d.ts +1 -0
- package/dist/components/passwordField/passwordField.d.ts +10 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/progressVariants.d.ts +220 -24
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/radioVariants.d.ts +70 -0
- package/dist/components/radioGroup/index.d.ts +2 -0
- package/dist/components/radioGroup/radioGroupVariants.d.ts +112 -0
- package/dist/components/scrollbar/index.d.ts +2 -0
- package/dist/components/scrollbar/scrollbar.d.ts +2 -2
- package/dist/components/scrollbar/scrollbarVariants.d.ts +100 -0
- package/dist/components/scrollbar/utils.d.ts +16 -0
- package/dist/components/select/index.d.ts +3 -0
- package/dist/components/select/select.d.ts +48 -0
- package/dist/components/select/selectVariants.d.ts +40 -0
- package/dist/components/select/types.d.ts +20 -0
- package/dist/components/select/utils.d.ts +3 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabsVariants.d.ts +133 -12
- package/dist/components/textCopy/{index.js → index.d.ts} +1 -1
- package/dist/components/textCopy/textCopy.d.ts +31 -0
- package/dist/components/textCopy/textCopyVariants.d.ts +13 -0
- package/dist/components/textField/index.d.ts +2 -0
- package/dist/components/textField/textFieldVariants.d.ts +121 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/textareaVariants.d.ts +67 -9
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/toast.d.ts +42 -0
- package/dist/components/toast/toastVariants.d.ts +94 -10
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/toggleVariants.d.ts +103 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/tooltip.d.ts +31 -0
- package/dist/components/tooltip/tooltipVariants.d.ts +73 -0
- package/dist/components/truncate/index.d.ts +2 -0
- package/dist/components/truncate/truncate.d.ts +33 -0
- package/dist/components/truncate/truncateVariants.d.ts +16 -0
- package/dist/css/index.min.css +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useWindowSize.d.ts +6 -0
- package/dist/index.cjs.js +7 -5
- package/dist/{index.js → index.d.ts} +1 -1
- package/dist/index.esm.js +7 -5
- package/dist/utils/debounce.d.ts +15 -0
- package/dist/utils/findParentAttribute.d.ts +9 -0
- package/dist/utils/{index.js → index.d.ts} +0 -3
- package/dist/utils/numberUtils/index.d.ts +12 -0
- package/dist/utils/stringUtils/{fileSize.js → fileSize.d.ts} +1 -5
- package/dist/utils/stringUtils/{index.js → index.d.ts} +1 -2
- package/dist/utils/stringUtils/isRegexSafe.d.ts +13 -0
- package/dist/utils/stringUtils/placeholderText.d.ts +10 -0
- package/package.json +7 -7
- package/tsconfig.eslint.json +6 -3
- package/tsconfig.test.json +2 -1
- package/dist/components/accordion/accordion.js +0 -63
- package/dist/components/accordion/accordion.js.map +0 -1
- package/dist/components/accordion/accordionVariants.js +0 -52
- package/dist/components/accordion/accordionVariants.js.map +0 -1
- package/dist/components/accordion/index.js +0 -3
- package/dist/components/accordion/index.js.map +0 -1
- package/dist/components/adpIcon/adpIcon.js +0 -39
- package/dist/components/adpIcon/adpIcon.js.map +0 -1
- package/dist/components/adpIcon/adpIconVariants.js +0 -35
- package/dist/components/adpIcon/adpIconVariants.js.map +0 -1
- package/dist/components/adpIcon/index.js +0 -3
- package/dist/components/adpIcon/index.js.map +0 -1
- package/dist/components/adpIcon/svgObjects.js +0 -1534
- package/dist/components/adpIcon/svgObjects.js.map +0 -1
- package/dist/components/avatar/avatar.js +0 -39
- package/dist/components/avatar/avatar.js.map +0 -1
- package/dist/components/avatar/avatarVariants.js +0 -20
- package/dist/components/avatar/avatarVariants.js.map +0 -1
- package/dist/components/avatar/index.js +0 -3
- package/dist/components/avatar/index.js.map +0 -1
- package/dist/components/avatarGroup/avatarGroup.js +0 -57
- package/dist/components/avatarGroup/avatarGroup.js.map +0 -1
- package/dist/components/avatarGroup/avatarGroupVariants.js +0 -13
- package/dist/components/avatarGroup/avatarGroupVariants.js.map +0 -1
- package/dist/components/avatarGroup/index.js +0 -3
- package/dist/components/avatarGroup/index.js.map +0 -1
- package/dist/components/badge/badge.js +0 -24
- package/dist/components/badge/badge.js.map +0 -1
- package/dist/components/badge/badgeVariants.js +0 -136
- package/dist/components/badge/badgeVariants.js.map +0 -1
- package/dist/components/badge/index.js +0 -3
- package/dist/components/badge/index.js.map +0 -1
- package/dist/components/breadcrumbs/breadcrumbItem.js +0 -26
- package/dist/components/breadcrumbs/breadcrumbItem.js.map +0 -1
- package/dist/components/breadcrumbs/breadcrumbs.js +0 -74
- package/dist/components/breadcrumbs/breadcrumbs.js.map +0 -1
- package/dist/components/breadcrumbs/breadcrumbsVariants.js +0 -40
- package/dist/components/breadcrumbs/breadcrumbsVariants.js.map +0 -1
- package/dist/components/breadcrumbs/index.js +0 -5
- package/dist/components/breadcrumbs/index.js.map +0 -1
- package/dist/components/button/button.js +0 -69
- package/dist/components/button/button.js.map +0 -1
- package/dist/components/button/buttonVariants.js +0 -288
- package/dist/components/button/buttonVariants.js.map +0 -1
- package/dist/components/button/index.js.map +0 -1
- package/dist/components/card/card.js +0 -86
- package/dist/components/card/card.js.map +0 -1
- package/dist/components/card/cardVariants.js +0 -18
- package/dist/components/card/cardVariants.js.map +0 -1
- package/dist/components/card/index.js +0 -3
- package/dist/components/card/index.js.map +0 -1
- package/dist/components/checkbox/checkbox.js +0 -30
- package/dist/components/checkbox/checkbox.js.map +0 -1
- package/dist/components/checkbox/checkboxVariants.js +0 -96
- package/dist/components/checkbox/checkboxVariants.js.map +0 -1
- package/dist/components/checkbox/index.js +0 -3
- package/dist/components/checkbox/index.js.map +0 -1
- package/dist/components/checkboxGroup/checkboxGroup.js +0 -52
- package/dist/components/checkboxGroup/checkboxGroup.js.map +0 -1
- package/dist/components/checkboxGroup/checkboxGroupVariants.js +0 -31
- package/dist/components/checkboxGroup/checkboxGroupVariants.js.map +0 -1
- package/dist/components/checkboxGroup/index.js +0 -3
- package/dist/components/checkboxGroup/index.js.map +0 -1
- package/dist/components/ctaGroup/ctaGroup.js +0 -51
- package/dist/components/ctaGroup/ctaGroup.js.map +0 -1
- package/dist/components/ctaGroup/ctaGroupVariants.js +0 -26
- package/dist/components/ctaGroup/ctaGroupVariants.js.map +0 -1
- package/dist/components/ctaGroup/index.js +0 -3
- package/dist/components/ctaGroup/index.js.map +0 -1
- package/dist/components/dataTable/DataTableColumnSettings.js +0 -99
- package/dist/components/dataTable/DataTableColumnSettings.js.map +0 -1
- package/dist/components/dataTable/advancedFilters.js +0 -102
- package/dist/components/dataTable/advancedFilters.js.map +0 -1
- package/dist/components/dataTable/dataTable.js +0 -216
- package/dist/components/dataTable/dataTable.js.map +0 -1
- package/dist/components/dataTable/dataTableStoryHelpers.js +0 -2075
- package/dist/components/dataTable/dataTableStoryHelpers.js.map +0 -1
- package/dist/components/dataTable/dataTableVariants.js +0 -51
- package/dist/components/dataTable/dataTableVariants.js.map +0 -1
- package/dist/components/dataTable/index.js +0 -9
- package/dist/components/dataTable/index.js.map +0 -1
- package/dist/components/dataTable/pageSizeModal.js +0 -26
- package/dist/components/dataTable/pageSizeModal.js.map +0 -1
- package/dist/components/dataTable/selectedFilterList.js +0 -40
- package/dist/components/dataTable/selectedFilterList.js.map +0 -1
- package/dist/components/dataTable/table.js +0 -108
- package/dist/components/dataTable/table.js.map +0 -1
- package/dist/components/dataTable/types.js +0 -2
- package/dist/components/dataTable/types.js.map +0 -1
- package/dist/components/datePicker/datePicker.js +0 -274
- package/dist/components/datePicker/datePicker.js.map +0 -1
- package/dist/components/datePicker/datePickerVariants.js +0 -80
- package/dist/components/datePicker/datePickerVariants.js.map +0 -1
- package/dist/components/datePicker/index.js +0 -4
- package/dist/components/datePicker/index.js.map +0 -1
- package/dist/components/dropdown/dropdown.js +0 -95
- package/dist/components/dropdown/dropdown.js.map +0 -1
- package/dist/components/dropdown/dropdownItem.js +0 -53
- package/dist/components/dropdown/dropdownItem.js.map +0 -1
- package/dist/components/dropdown/dropdownToggle.js +0 -20
- package/dist/components/dropdown/dropdownToggle.js.map +0 -1
- package/dist/components/dropdown/dropdownVariants.js +0 -48
- package/dist/components/dropdown/dropdownVariants.js.map +0 -1
- package/dist/components/dropdown/index.js +0 -8
- package/dist/components/dropdown/index.js.map +0 -1
- package/dist/components/emptyState/emptyState.js +0 -119
- package/dist/components/emptyState/emptyState.js.map +0 -1
- package/dist/components/emptyState/emptyStateContent.js +0 -25
- package/dist/components/emptyState/emptyStateContent.js.map +0 -1
- package/dist/components/emptyState/emptyStateCta.js +0 -25
- package/dist/components/emptyState/emptyStateCta.js.map +0 -1
- package/dist/components/emptyState/emptyStateVariants.js +0 -7
- package/dist/components/emptyState/emptyStateVariants.js.map +0 -1
- package/dist/components/emptyState/index.js +0 -5
- package/dist/components/emptyState/index.js.map +0 -1
- package/dist/components/fileUpload/fileUpload.js +0 -150
- package/dist/components/fileUpload/fileUpload.js.map +0 -1
- package/dist/components/fileUpload/fileUploadVariants.js +0 -21
- package/dist/components/fileUpload/fileUploadVariants.js.map +0 -1
- package/dist/components/fileUpload/index.js +0 -3
- package/dist/components/fileUpload/index.js.map +0 -1
- package/dist/components/fileUpload/statusCard.js +0 -80
- package/dist/components/fileUpload/statusCard.js.map +0 -1
- package/dist/components/fileUpload/statusCardVariants.js +0 -19
- package/dist/components/fileUpload/statusCardVariants.js.map +0 -1
- package/dist/components/fileUpload/storyUtil.js +0 -52
- package/dist/components/fileUpload/storyUtil.js.map +0 -1
- package/dist/components/loader/index.js +0 -3
- package/dist/components/loader/index.js.map +0 -1
- package/dist/components/loader/loader.js +0 -39
- package/dist/components/loader/loader.js.map +0 -1
- package/dist/components/loader/loaderVariants.js +0 -31
- package/dist/components/loader/loaderVariants.js.map +0 -1
- package/dist/components/modal/index.js +0 -3
- package/dist/components/modal/index.js.map +0 -1
- package/dist/components/modal/modal.js +0 -95
- package/dist/components/modal/modal.js.map +0 -1
- package/dist/components/modal/modalVariants.js +0 -14
- package/dist/components/modal/modalVariants.js.map +0 -1
- package/dist/components/otp/index.js.map +0 -1
- package/dist/components/otp/input.js +0 -18
- package/dist/components/otp/input.js.map +0 -1
- package/dist/components/otp/otp.js +0 -131
- package/dist/components/otp/otp.js.map +0 -1
- package/dist/components/otp/otpVariants.js +0 -13
- package/dist/components/otp/otpVariants.js.map +0 -1
- package/dist/components/pagination/index.js +0 -5
- package/dist/components/pagination/index.js.map +0 -1
- package/dist/components/pagination/pagination.js +0 -83
- package/dist/components/pagination/pagination.js.map +0 -1
- package/dist/components/pagination/paginationVariants.js +0 -44
- package/dist/components/pagination/paginationVariants.js.map +0 -1
- package/dist/components/panel/index.js +0 -11
- package/dist/components/panel/index.js.map +0 -1
- package/dist/components/panel/panel.js +0 -82
- package/dist/components/panel/panel.js.map +0 -1
- package/dist/components/panel/panelBody.js +0 -21
- package/dist/components/panel/panelBody.js.map +0 -1
- package/dist/components/panel/panelFooter.js +0 -21
- package/dist/components/panel/panelFooter.js.map +0 -1
- package/dist/components/panel/panelHeader.js +0 -24
- package/dist/components/panel/panelHeader.js.map +0 -1
- package/dist/components/panel/panelVariants.js +0 -122
- package/dist/components/panel/panelVariants.js.map +0 -1
- package/dist/components/panelGroup/index.js.map +0 -1
- package/dist/components/panelGroup/panelGroup.js +0 -38
- package/dist/components/panelGroup/panelGroup.js.map +0 -1
- package/dist/components/panelGroup/panelGroupVariants.js +0 -34
- package/dist/components/panelGroup/panelGroupVariants.js.map +0 -1
- package/dist/components/passwordField/index.js +0 -2
- package/dist/components/passwordField/index.js.map +0 -1
- package/dist/components/passwordField/passwordField.js +0 -29
- package/dist/components/passwordField/passwordField.js.map +0 -1
- package/dist/components/progress/index.js +0 -3
- package/dist/components/progress/index.js.map +0 -1
- package/dist/components/progress/progress.js +0 -62
- package/dist/components/progress/progress.js.map +0 -1
- package/dist/components/progress/progressVariants.js +0 -103
- package/dist/components/progress/progressVariants.js.map +0 -1
- package/dist/components/radio/index.js +0 -3
- package/dist/components/radio/index.js.map +0 -1
- package/dist/components/radio/radio.js +0 -26
- package/dist/components/radio/radio.js.map +0 -1
- package/dist/components/radio/radioVariants.js +0 -46
- package/dist/components/radio/radioVariants.js.map +0 -1
- package/dist/components/radioGroup/index.js +0 -3
- package/dist/components/radioGroup/index.js.map +0 -1
- package/dist/components/radioGroup/radioGroup.js +0 -48
- package/dist/components/radioGroup/radioGroup.js.map +0 -1
- package/dist/components/radioGroup/radioGroupVariants.js +0 -53
- package/dist/components/radioGroup/radioGroupVariants.js.map +0 -1
- package/dist/components/scrollbar/index.js +0 -3
- package/dist/components/scrollbar/index.js.map +0 -1
- package/dist/components/scrollbar/scrollbar.js +0 -361
- package/dist/components/scrollbar/scrollbar.js.map +0 -1
- package/dist/components/scrollbar/scrollbarVariants.js +0 -100
- package/dist/components/scrollbar/scrollbarVariants.js.map +0 -1
- package/dist/components/scrollbar/utils.js +0 -28
- package/dist/components/scrollbar/utils.js.map +0 -1
- package/dist/components/select/index.js +0 -3
- package/dist/components/select/index.js.map +0 -1
- package/dist/components/select/select.js +0 -134
- package/dist/components/select/select.js.map +0 -1
- package/dist/components/select/selectVariants.js +0 -35
- package/dist/components/select/selectVariants.js.map +0 -1
- package/dist/components/select/types.js +0 -9
- package/dist/components/select/types.js.map +0 -1
- package/dist/components/select/utils.js +0 -118
- package/dist/components/select/utils.js.map +0 -1
- package/dist/components/tabs/index.js +0 -3
- package/dist/components/tabs/index.js.map +0 -1
- package/dist/components/tabs/tabs.js +0 -141
- package/dist/components/tabs/tabs.js.map +0 -1
- package/dist/components/tabs/tabsVariants.js +0 -183
- package/dist/components/tabs/tabsVariants.js.map +0 -1
- package/dist/components/textCopy/index.js.map +0 -1
- package/dist/components/textCopy/textCopy.js +0 -36
- package/dist/components/textCopy/textCopy.js.map +0 -1
- package/dist/components/textCopy/textCopyVariants.js +0 -12
- package/dist/components/textCopy/textCopyVariants.js.map +0 -1
- package/dist/components/textField/index.js +0 -3
- package/dist/components/textField/index.js.map +0 -1
- package/dist/components/textField/textField.js +0 -37
- package/dist/components/textField/textField.js.map +0 -1
- package/dist/components/textField/textFieldVariants.js +0 -84
- package/dist/components/textField/textFieldVariants.js.map +0 -1
- package/dist/components/textarea/index.js +0 -3
- package/dist/components/textarea/index.js.map +0 -1
- package/dist/components/textarea/textarea.js +0 -29
- package/dist/components/textarea/textarea.js.map +0 -1
- package/dist/components/textarea/textareaVariants.js +0 -37
- package/dist/components/textarea/textareaVariants.js.map +0 -1
- package/dist/components/toast/index.js +0 -3
- package/dist/components/toast/index.js.map +0 -1
- package/dist/components/toast/toast.js +0 -51
- package/dist/components/toast/toast.js.map +0 -1
- package/dist/components/toast/toastVariants.js +0 -45
- package/dist/components/toast/toastVariants.js.map +0 -1
- package/dist/components/toggle/index.js +0 -3
- package/dist/components/toggle/index.js.map +0 -1
- package/dist/components/toggle/toggle.js +0 -34
- package/dist/components/toggle/toggle.js.map +0 -1
- package/dist/components/toggle/toggleVariants.js +0 -40
- package/dist/components/toggle/toggleVariants.js.map +0 -1
- package/dist/components/tooltip/index.js +0 -3
- package/dist/components/tooltip/index.js.map +0 -1
- package/dist/components/tooltip/tooltip.js +0 -100
- package/dist/components/tooltip/tooltip.js.map +0 -1
- package/dist/components/tooltip/tooltipVariants.js +0 -13
- package/dist/components/tooltip/tooltipVariants.js.map +0 -1
- package/dist/components/truncate/index.js +0 -3
- package/dist/components/truncate/index.js.map +0 -1
- package/dist/components/truncate/truncate.js +0 -36
- package/dist/components/truncate/truncate.js.map +0 -1
- package/dist/components/truncate/truncateVariants.js +0 -13
- package/dist/components/truncate/truncateVariants.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/tailwindThemeConfig.js +0 -194
- package/dist/tailwindThemeConfig.js.map +0 -1
- package/dist/utils/cn.js +0 -13
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/debounce.js +0 -30
- package/dist/utils/debounce.js.map +0 -1
- package/dist/utils/findParentAttribute.js +0 -23
- package/dist/utils/findParentAttribute.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/numberUtils/index.js +0 -41
- package/dist/utils/numberUtils/index.js.map +0 -1
- package/dist/utils/stringUtils/fileSize.js.map +0 -1
- package/dist/utils/stringUtils/index.js.map +0 -1
- package/dist/utils/stringUtils/placeholderText.js +0 -77
- package/dist/utils/stringUtils/placeholderText.js.map +0 -1
- package/dist/utils/useWindowSize.js +0 -25
- package/dist/utils/useWindowSize.js.map +0 -1
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
import { forwardRef, useRef, useId } from "react";
|
|
15
|
-
import { cn } from "@utils";
|
|
16
|
-
import { ADPIcon } from "../adpIcon";
|
|
17
|
-
import { toggleWrapperVariants, toggleContainerVariants, toggleButtonVariants, toggleIconVariants, toggleLabelVariants } from "./toggleVariants";
|
|
18
|
-
/**
|
|
19
|
-
* Toggle component for toggling boolean states
|
|
20
|
-
*/
|
|
21
|
-
export const Toggle = forwardRef((_a, ref) => {
|
|
22
|
-
var { id, className, size = "md", label, toggled, toggledIcon, untoggledIcon, disabled } = _a, restProps = __rest(_a, ["id", "className", "size", "label", "toggled", "toggledIcon", "untoggledIcon", "disabled"]);
|
|
23
|
-
const inputId = useRef(useId());
|
|
24
|
-
const icon = toggled ? toggledIcon : untoggledIcon;
|
|
25
|
-
return (_jsxs("label", { className: cn(toggleWrapperVariants(), className), children: [_jsx("input", Object.assign({}, restProps, { type: "checkbox", id: id || inputId.current, className: "absolute invisible w-0 h-0 outline-none", checked: toggled, disabled: disabled, ref: ref })), _jsx("div", { className: cn(toggleContainerVariants({ size }), toggled && "bg-success-500 dark:bg-success-400", disabled && "bg-gray-200 dark:bg-secondary-600 cursor-not-allowed", toggled && disabled && "bg-success-500/50 dark:bg-success-400/50", !toggled && !disabled && [
|
|
26
|
-
"focus-within:shadow-success-2px",
|
|
27
|
-
"focus-within:ring-1",
|
|
28
|
-
"focus-within:ring-success-100",
|
|
29
|
-
"focus-within:transition-all",
|
|
30
|
-
"focus-within:duration-300"
|
|
31
|
-
], toggled && !disabled && "focus-within:shadow-success-2px"), children: _jsx("span", { className: cn(toggleButtonVariants({ size }), toggled && "translate-x-full -translate-y-1/2 rtl:-translate-x-full", disabled && "bg-secondary-50 dark:bg-gray-900"), children: icon && (_jsx(ADPIcon, { className: cn(toggleIconVariants()), icon: icon, height: 10, width: 10 })) }) }), typeof label !== "undefined" && (_jsx("span", { className: cn(toggleLabelVariants({ size, disabled })), children: label }))] }));
|
|
32
|
-
});
|
|
33
|
-
Toggle.displayName = "Toggle";
|
|
34
|
-
//# sourceMappingURL=toggle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js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AO,IAAI,CAAC,QAAQ,IAAI;oBACvB,iCAAiC;oBACjC,qBAAqB;oBACrB,+BAA+B;oBAC/B,6BAA6B;oBAC7B,2BAA2B;iBAC5B,EACD,OAAO,IAAI,CAAC,QAAQ,IAAI,iCAAiC,CAC1D,YAED,eACE,SAAS,EAAE,EAAE,CACX,oBAAoB,CAAC,EAAE,IAAI,EAAE,CAAC,EAC9B,OAAO,IAAI,yDAAyD,EACpE,QAAQ,IAAI,kCAAkC,CAC/C,YAEA,IAAI,IAAI,CACP,KAAC,OAAO,IACN,SAAS,EAAE,EAAE,CAAE,kBAAkB,EAAE,CAAC,EACpC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,EAAE,EACV,KAAK,EAAE,EAAE,GACT,CACH,GACI,GACH,EACL,OAAO,KAAK,KAAK,WAAW,IAAI,CAC/B,eACE,SAAS,EAAE,EAAE,CACX,mBAAmB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CACxC,YAEA,KAAK,GACD,CACR,IACK,CACT,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { cva } from "class-variance-authority";
|
|
2
|
-
export const toggleWrapperVariants = cva("inline-flex items-center gap-3 text-secondary-500");
|
|
3
|
-
export const toggleContainerVariants = cva("relative bg-gray-200 rounded-full duration-300 ease-in-out dark:bg-secondary-600 cursor-pointer", {
|
|
4
|
-
variants: {
|
|
5
|
-
size: {
|
|
6
|
-
sm: "w-[36px] h-5",
|
|
7
|
-
md: "w-[44px] h-6"
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
defaultVariants: {
|
|
11
|
-
size: "md"
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
export const toggleButtonVariants = cva("absolute top-1/2 start-0.5 -translate-y-1/2 bg-white rounded-full duration-300 ease-in-out", {
|
|
15
|
-
variants: {
|
|
16
|
-
size: {
|
|
17
|
-
sm: "w-4 h-4",
|
|
18
|
-
md: "w-5 h-5"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
defaultVariants: {
|
|
22
|
-
size: "md"
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
export const toggleIconVariants = cva("absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-secondary-800");
|
|
26
|
-
export const toggleLabelVariants = cva("text-inherit dark:text-secondary-100", {
|
|
27
|
-
variants: {
|
|
28
|
-
size: {
|
|
29
|
-
sm: "text-base",
|
|
30
|
-
md: "text-md"
|
|
31
|
-
},
|
|
32
|
-
disabled: {
|
|
33
|
-
true: "text-secondary-300 dark:text-secondary-500 cursor-not-allowed"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
defaultVariants: {
|
|
37
|
-
size: "md"
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
//# sourceMappingURL=toggleVariants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggleVariants.js","sourceRoot":"","sources":["../../../src/components/toggle/toggleVariants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CACtC,mDAAmD,CACpD,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,CACxC,iGAAiG,EACjG;IACE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE,cAAc;YAClB,EAAE,EAAE,cAAc;SACnB;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,IAAI;KACX;CACF,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,4FAA4F,EAC5F;IACE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;SACd;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,IAAI;KACX;CACF,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,CACnC,gFAAgF,CACjF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC,sCAAsC,EACtC;IACE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE,WAAW;YACf,EAAE,EAAE,SAAS;SACd;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,+DAA+D;SACtE;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,IAAI;KACX;CACF,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/tooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAsB,MAAM,WAAW,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
import { FloatingPortal, arrow as arrowMiddleware, offset, flip, shift, useClick, useDismiss, useFloating, useFocus, useHover, useInteractions, useRole, autoUpdate } from "@floating-ui/react";
|
|
15
|
-
import { cn } from "@utils";
|
|
16
|
-
import { tooltipVariants } from "./tooltipVariants";
|
|
17
|
-
export const Tooltip = React.forwardRef((_a, ref) => {
|
|
18
|
-
var { title, children, trigger, size = "md", placement = "bottom-end", clickable = false, className, triggerElementClassName, onTriggerClick, renderOutsidePortal = false, triggerAriaLabel, disabled = false } = _a, props = __rest(_a, ["title", "children", "trigger", "size", "placement", "clickable", "className", "triggerElementClassName", "onTriggerClick", "renderOutsidePortal", "triggerAriaLabel", "disabled"]);
|
|
19
|
-
const [open, setOpen] = React.useState(false);
|
|
20
|
-
const arrowRef = React.useRef(null);
|
|
21
|
-
const { x, y, refs, strategy, context, middlewareData: { arrow: { x: arrowX, y: arrowY } = {} }, placement: hookPlacement } = useFloating({
|
|
22
|
-
open,
|
|
23
|
-
onOpenChange: setOpen,
|
|
24
|
-
placement,
|
|
25
|
-
whileElementsMounted: autoUpdate,
|
|
26
|
-
middleware: [offset(10), flip(), shift(), arrowMiddleware({ element: arrowRef, padding: 14 })]
|
|
27
|
-
});
|
|
28
|
-
const hover = useHover(context, { move: false, enabled: !clickable, delay: 200 });
|
|
29
|
-
const focus = useFocus(context);
|
|
30
|
-
const click = useClick(context, { enabled: clickable && !disabled });
|
|
31
|
-
const dismiss = useDismiss(context);
|
|
32
|
-
const role = useRole(context, { role: "tooltip" });
|
|
33
|
-
const { getReferenceProps, getFloatingProps } = useInteractions([
|
|
34
|
-
hover,
|
|
35
|
-
focus,
|
|
36
|
-
click,
|
|
37
|
-
dismiss,
|
|
38
|
-
role
|
|
39
|
-
]);
|
|
40
|
-
const invalidTrigger = isNodeInvalid(trigger);
|
|
41
|
-
const invalidChild = isNodeInvalid(children);
|
|
42
|
-
const referenceProps = getReferenceProps({
|
|
43
|
-
onClick: () => {
|
|
44
|
-
if (!disabled) {
|
|
45
|
-
onTriggerClick === null || onTriggerClick === void 0 ? void 0 : onTriggerClick();
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
const popupContent = (_jsxs("div", Object.assign({ role: "tooltip", ref: (node) => {
|
|
50
|
-
refs.setFloating(node);
|
|
51
|
-
if (ref && typeof ref === "function") {
|
|
52
|
-
ref(node);
|
|
53
|
-
}
|
|
54
|
-
else if (ref && "current" in ref) {
|
|
55
|
-
ref.current = node;
|
|
56
|
-
}
|
|
57
|
-
}, style: { position: strategy, top: y !== null && y !== void 0 ? y : 0, left: x !== null && x !== void 0 ? x : 0 }, className: cn(tooltipVariants({ size }), open ? "visible" : "invisible", className) }, getFloatingProps(), props, { children: [_jsxs("div", { "data-testid": "tooltip-content", className: cn("flex flex-col gap-1 relative z-10 break-words dark:text-secondary-50", size === "sm"
|
|
58
|
-
? "text-xs text-secondary-300"
|
|
59
|
-
: "text-sm text-secondary-300"), children: [title && (_jsx("h1", { className: cn(size === "sm" ? "text-xs" : "text-base", "font-medium text-black dark:text-white"), children: title })), !invalidChild && children] }), _jsx("div", { ref: arrowRef, style: { left: arrowX, top: arrowY, [getCSSPropertyForPlacement(hookPlacement)]: "-9px" }, className: cn("absolute aspect-square w-4 h-4 rounded-tl-sm bg-inherit border-1.5 border-r-0 border-b-0 border-gray-100 dark:border-secondary-500", getArrowPlacementClass(hookPlacement)) })] })));
|
|
60
|
-
if (invalidTrigger) {
|
|
61
|
-
return null;
|
|
62
|
-
}
|
|
63
|
-
return (_jsxs(_Fragment, { children: [_jsx("span", Object.assign({ "data-testid": "tooltip-trigger", role: "button", ref: refs.setReference, tabIndex: 0, "aria-label": triggerAriaLabel, className: cn("relative text-secondary-400 dark:text-secondary-50 max-w-max", disabled && "!text-secondary-200 cursor-not-allowed", triggerElementClassName) }, referenceProps, { children: trigger })), open && (renderOutsidePortal ? popupContent : _jsx(FloatingPortal, { children: popupContent }))] }));
|
|
64
|
-
});
|
|
65
|
-
Tooltip.displayName = "Tooltip";
|
|
66
|
-
/**
|
|
67
|
-
* Determines the CSS property for positioning the arrow based on placement
|
|
68
|
-
*/
|
|
69
|
-
const getCSSPropertyForPlacement = (placementSide) => {
|
|
70
|
-
const [staticPosition] = placementSide.split("-");
|
|
71
|
-
const mapping = {
|
|
72
|
-
top: "bottom",
|
|
73
|
-
right: "left",
|
|
74
|
-
bottom: "top",
|
|
75
|
-
left: "right"
|
|
76
|
-
};
|
|
77
|
-
return mapping[staticPosition];
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Checks if the node is an invalid ReactNode (empty object)
|
|
81
|
-
*/
|
|
82
|
-
const isNodeInvalid = (node) => typeof node === "object" && !Array.isArray(node) && Object.keys(node).length === 0;
|
|
83
|
-
/**
|
|
84
|
-
* Returns the rotation class for the arrow based on placement
|
|
85
|
-
*/
|
|
86
|
-
function getArrowPlacementClass(placementSide) {
|
|
87
|
-
const [staticPosition] = placementSide.split("-");
|
|
88
|
-
switch (staticPosition) {
|
|
89
|
-
case "top":
|
|
90
|
-
return "-rotate-[135deg]";
|
|
91
|
-
case "right":
|
|
92
|
-
return "-rotate-45";
|
|
93
|
-
case "left":
|
|
94
|
-
return "rotate-[135deg]";
|
|
95
|
-
case "bottom":
|
|
96
|
-
default:
|
|
97
|
-
return "rotate-45";
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
//# sourceMappingURL=tooltip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,cAAc,EAGd,KAAK,IAAI,eAAe,EACxB,MAAM,EACN,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,UAAU,EACV,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,OAAO,EACP,UAAU,EACX,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AA+BpD,MAAM,CAAC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AC;AAEhC;;GAEG;AACH,MAAM,0BAA0B,GAAG,CAAE,aAAwB,EAAS,EAAE;IACtE,MAAM,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC,KAAK,CAAE,GAAG,CAAE,CAAC;IACpD,MAAM,OAAO,GAAyB;QACpC,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,OAAO;KACd,CAAC;IACF,OAAO,OAAO,CAAC,cAAc,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,aAAa,GAAG,CAAE,IAAS,EAAY,EAAE,CAC7C,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAE,IAAI,CAAE,IAAI,MAAM,CAAC,IAAI,CAAE,IAAI,CAAE,CAAC,MAAM,KAAK,CAAC,CAAC;AAEzF;;GAEG;AACH,SAAS,sBAAsB,CAAE,aAAwB;IACvD,MAAM,CAAC,cAAc,CAAC,GAAG,aAAa,CAAC,KAAK,CAAE,GAAG,CAAE,CAAC;IACpD,QAAS,cAAc,EAAG,CAAC;QACzB,KAAK,KAAK;YACR,OAAO,kBAAkB,CAAC;QAC5B,KAAK,OAAO;YACV,OAAO,YAAY,CAAC;QACtB,KAAK,MAAM;YACT,OAAO,iBAAiB,CAAC;QAC3B,KAAK,QAAQ,CAAC;QACd;YACE,OAAO,WAAW,CAAC;IACvB,CAAC;AACH,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { cva } from "class-variance-authority";
|
|
2
|
-
export const tooltipVariants = cva("border border-gray-100 bg-white rounded shadow-xl max-w-[308px] z-[2040] dark:bg-secondary-800 dark:border-secondary-500 w-auto", {
|
|
3
|
-
variants: {
|
|
4
|
-
size: {
|
|
5
|
-
sm: "p-2",
|
|
6
|
-
md: "p-3"
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
defaultVariants: {
|
|
10
|
-
size: "md"
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=tooltipVariants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltipVariants.js","sourceRoot":"","sources":["../../../src/components/tooltip/tooltipVariants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAChC,iIAAiI,EACjI;IACE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE,KAAK;YACT,EAAE,EAAE,KAAK;SACV;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,IAAI;KACX;CACF,CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/truncate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAuB,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
import { cn } from "@utils";
|
|
15
|
-
import { truncateVariants } from "./truncateVariants";
|
|
16
|
-
import { Button } from "../button";
|
|
17
|
-
import { Modal } from "../modal";
|
|
18
|
-
import { ModalBody } from "../modal/modal";
|
|
19
|
-
/**
|
|
20
|
-
* Truncate component for displaying limited text with a "Show more" button
|
|
21
|
-
*/
|
|
22
|
-
export const Truncate = React.forwardRef((_a, ref) => {
|
|
23
|
-
var { as = "div", children, limit = 100, className } = _a, props = __rest(_a, ["as", "children", "limit", "className"]);
|
|
24
|
-
const [showModal, setShowModal] = React.useState(false);
|
|
25
|
-
// Convert the HTML tag string to an ElementType
|
|
26
|
-
const Tag = as;
|
|
27
|
-
// Check if truncation is needed
|
|
28
|
-
const isTruncated = typeof children === "string" && limit > 0 && children.length > limit;
|
|
29
|
-
// If children is not a string or limit is invalid, return null
|
|
30
|
-
if (typeof children !== "string" || limit <= 0) {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
return isTruncated ? (_jsxs(_Fragment, { children: [_jsxs(Tag, Object.assign({ ref: ref, className: cn(truncateVariants({ truncated: true }), className) }, props, { children: [children.substring(0, limit), "...", " ", _jsx(Button, { variant: "text", onClick: () => setShowModal(true), className: "inline-block text-inherit", style: { fontSize: "inherit" }, children: "Show more" })] })), showModal && (_jsx(Modal, { showModal: showModal, onHide: () => setShowModal(false), children: _jsx(ModalBody, { className: "max-w-3xl", children: children }) }))] })) : (_jsx(Tag, Object.assign({ ref: ref, className: cn(truncateVariants({ truncated: false }), className) }, props, { children: children })));
|
|
34
|
-
});
|
|
35
|
-
Truncate.displayName = "Truncate";
|
|
36
|
-
//# sourceMappingURL=truncate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"truncate.js","sourceRoot":"","sources":["../../../src/components/truncate/truncate.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,M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AAE,0BAGvB,KACL,EACL,SAAS,IAAI,CACZ,KAAC,KAAK,IAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,YAAY,CAAE,KAAK,CAAE,YAC9D,KAAC,SAAS,IAAC,SAAS,EAAC,WAAW,YAAE,QAAQ,GAAa,GACjD,CACT,IACA,CACJ,CAAC,CAAC,CAAC,CACF,KAAC,GAAG,kBACF,GAAG,EAAE,GAAU,EACf,SAAS,EAAE,EAAE,CAAE,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,CAAE,IAC9D,KAAK,cAER,QAAQ,IACL,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { cva } from "class-variance-authority";
|
|
2
|
-
export const truncateVariants = cva("relative", {
|
|
3
|
-
variants: {
|
|
4
|
-
truncated: {
|
|
5
|
-
true: "text-secondary-500 dark:text-secondary-50",
|
|
6
|
-
false: ""
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
defaultVariants: {
|
|
10
|
-
truncated: false
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
//# sourceMappingURL=truncateVariants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"truncateVariants.js","sourceRoot":"","sources":["../../../src/components/truncate/truncateVariants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CACjC,UAAU,EACV;IACE,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,IAAI,EAAE,2CAA2C;YACjD,KAAK,EAAE,EAAE;SACV;KACF;IACD,eAAe,EAAE;QACf,SAAS,EAAE,KAAK;KACjB;CACF,CACF,CAAC"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
export const tailwindThemeConfig = {
|
|
2
|
-
extend: {
|
|
3
|
-
animation: {
|
|
4
|
-
stripes: "stripes 20s linear infinite",
|
|
5
|
-
"spin-2s": "spin 2s linear infinite"
|
|
6
|
-
},
|
|
7
|
-
keyframes: {
|
|
8
|
-
stripes: {
|
|
9
|
-
"100%": { backgroundPosition: "100% 100%" }
|
|
10
|
-
},
|
|
11
|
-
spin: {
|
|
12
|
-
"0%": { transform: "rotate(0deg)" },
|
|
13
|
-
"100%": { transform: "rotate(359deg)" }
|
|
14
|
-
},
|
|
15
|
-
"panel-appear": {
|
|
16
|
-
"from": { opacity: "0" },
|
|
17
|
-
"to": { opacity: "1" }
|
|
18
|
-
},
|
|
19
|
-
"panel-disappear": {
|
|
20
|
-
"from": { opacity: "1" },
|
|
21
|
-
"to": { opacity: "0" }
|
|
22
|
-
},
|
|
23
|
-
"panel-slide-in": {
|
|
24
|
-
"from": { right: "-110vw" },
|
|
25
|
-
"to": { right: "0" }
|
|
26
|
-
},
|
|
27
|
-
"panel-slide-in-rtl": {
|
|
28
|
-
"from": { left: "-110vw" },
|
|
29
|
-
"to": { left: "0" }
|
|
30
|
-
},
|
|
31
|
-
"panel-slide-out": {
|
|
32
|
-
"from": { right: "0" },
|
|
33
|
-
"to": { right: "-110vw" }
|
|
34
|
-
},
|
|
35
|
-
"panel-slide-out-rtl": {
|
|
36
|
-
"from": { left: "0" },
|
|
37
|
-
"to": { left: "-110vw" }
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
colors: {
|
|
41
|
-
iridium: "rgb(var(--iridium))",
|
|
42
|
-
frostBlue: "rgb(var(--frost-blue))",
|
|
43
|
-
primary: {
|
|
44
|
-
50: "rgb(var(--primary-50))",
|
|
45
|
-
100: "rgb(var(--primary-100))",
|
|
46
|
-
200: "rgb(var(--primary-200))",
|
|
47
|
-
300: "rgb(var(--primary-300))",
|
|
48
|
-
400: "rgb(var(--primary-400))",
|
|
49
|
-
500: "rgb(var(--primary-500))",
|
|
50
|
-
600: "rgb(var(--primary-600))",
|
|
51
|
-
700: "rgb(var(--primary-700))",
|
|
52
|
-
800: "rgb(var(--primary-800))",
|
|
53
|
-
900: "rgb(var(--primary-900))"
|
|
54
|
-
},
|
|
55
|
-
secondary: {
|
|
56
|
-
50: "rgb(var(--secondary-50))",
|
|
57
|
-
100: "rgb(var(--secondary-100))",
|
|
58
|
-
200: "rgb(var(--secondary-200))",
|
|
59
|
-
300: "rgb(var(--secondary-300))",
|
|
60
|
-
400: "rgb(var(--secondary-400))",
|
|
61
|
-
500: "rgb(var(--secondary-500))",
|
|
62
|
-
600: "rgb(var(--secondary-600))",
|
|
63
|
-
700: "rgb(var(--secondary-700))",
|
|
64
|
-
800: "rgb(var(--secondary-800))",
|
|
65
|
-
900: "rgb(var(--secondary-900))"
|
|
66
|
-
},
|
|
67
|
-
gray: {
|
|
68
|
-
50: "rgb(var(--gray-50))",
|
|
69
|
-
100: "rgb(var(--gray-100))",
|
|
70
|
-
200: "rgb(var(--gray-200))",
|
|
71
|
-
300: "rgb(var(--gray-300))",
|
|
72
|
-
400: "rgb(var(--gray-400))",
|
|
73
|
-
500: "rgb(var(--gray-500))",
|
|
74
|
-
600: "rgb(var(--gray-600))",
|
|
75
|
-
700: "rgb(var(--gray-700))",
|
|
76
|
-
800: "rgb(var(--gray-800))",
|
|
77
|
-
900: "rgb(var(--gray-900))"
|
|
78
|
-
},
|
|
79
|
-
error: {
|
|
80
|
-
50: "rgb(var(--error-50))",
|
|
81
|
-
100: "rgb(var(--error-100))",
|
|
82
|
-
200: "rgb(var(--error-200))",
|
|
83
|
-
300: "rgb(var(--error-300))",
|
|
84
|
-
400: "rgb(var(--error-400))",
|
|
85
|
-
500: "rgb(var(--error-500))",
|
|
86
|
-
600: "rgb(var(--error-600))",
|
|
87
|
-
700: "rgb(var(--error-700))",
|
|
88
|
-
800: "rgb(var(--error-800))",
|
|
89
|
-
900: "rgb(var(--error-900))"
|
|
90
|
-
},
|
|
91
|
-
success: {
|
|
92
|
-
50: "rgb(var(--success-50))",
|
|
93
|
-
100: "rgb(var(--success-100))",
|
|
94
|
-
200: "rgb(var(--success-200))",
|
|
95
|
-
300: "rgb(var(--success-300))",
|
|
96
|
-
400: "rgb(var(--success-400))",
|
|
97
|
-
500: "rgb(var(--success-500))",
|
|
98
|
-
600: "rgb(var(--success-600))",
|
|
99
|
-
700: "rgb(var(--success-700))",
|
|
100
|
-
800: "rgb(var(--success-800))",
|
|
101
|
-
900: "rgb(var(--success-900))"
|
|
102
|
-
},
|
|
103
|
-
warning: {
|
|
104
|
-
50: "rgb(var(--warning-50))",
|
|
105
|
-
100: "rgb(var(--warning-100))",
|
|
106
|
-
200: "rgb(var(--warning-200))",
|
|
107
|
-
300: "rgb(var(--warning-300))",
|
|
108
|
-
400: "rgb(var(--warning-400))",
|
|
109
|
-
500: "rgb(var(--warning-500))",
|
|
110
|
-
600: "rgb(var(--warning-600))",
|
|
111
|
-
700: "rgb(var(--warning-700))",
|
|
112
|
-
800: "rgb(var(--warning-800))",
|
|
113
|
-
900: "rgb(var(--warning-900))"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
fontFamily: {
|
|
117
|
-
"regular": ["inter-regular", "sans-serif"],
|
|
118
|
-
"italic": ["inter-italic", "sans-serif"],
|
|
119
|
-
"medium": ["inter-medium", "sans-serif"],
|
|
120
|
-
"medium-italic": ["inter-medium-italic", "sans-serif"],
|
|
121
|
-
"semibold": ["inter-semibold", "sans-serif"],
|
|
122
|
-
"semibold-italic": ["inter-semibold-italic", "sans-serif"],
|
|
123
|
-
"bold": ["inter-bold", "sans-serif"],
|
|
124
|
-
"bold-italic": ["inter-bold-italic", "sans-serif"]
|
|
125
|
-
},
|
|
126
|
-
fontSize: {
|
|
127
|
-
xxs: ["0.625rem", { lineHeight: "100%" }], // font-size: 10px
|
|
128
|
-
xs: ["0.75rem", { lineHeight: "130%" }], // font-size: 12px
|
|
129
|
-
"xs-fit": ["0.75rem", { lineHeight: "100%" }], // font-size: 12px
|
|
130
|
-
base: ["0.875rem", { lineHeight: "145%" }], // font-size: 14px
|
|
131
|
-
"base-fit": ["0.875rem", { lineHeight: "115%" }], // font-size: 14px
|
|
132
|
-
md: ["1rem", { lineHeight: "150%" }], // font-size: 16px
|
|
133
|
-
lg: ["1.125rem", { lineHeight: "155%" }], // font-size: 18px
|
|
134
|
-
xl: ["1.25rem", { lineHeight: "140%" }], // font-size: 20px
|
|
135
|
-
"xl-fit": ["1.25rem", { lineHeight: "120%" }], // font-size: 20px
|
|
136
|
-
"heading-xs": ["1.5rem", { lineHeight: "135%" }], // font-size: 24px
|
|
137
|
-
"heading-sm": ["1.75rem", { lineHeight: "135%" }], // font-size: 28px
|
|
138
|
-
"heading-md": ["2rem", { lineHeight: "125%" }], // font-size: 32px
|
|
139
|
-
"heading-lg": ["2.25rem", { lineHeight: "122%" }], // font-size: 36px
|
|
140
|
-
"heading-xl": ["2.5rem", { lineHeight: "120%" }], // font-size: 40px
|
|
141
|
-
"heading-2xl": ["3rem", { lineHeight: "125%" }], // font-size: 48px
|
|
142
|
-
"display-lg": ["3.75rem", { lineHeight: "120%" }], // font-size: 60px
|
|
143
|
-
"display-xl": ["4.5rem", { lineHeight: "120%" }] // font-size: 72px
|
|
144
|
-
},
|
|
145
|
-
spacing: {
|
|
146
|
-
1: "0.25rem",
|
|
147
|
-
2: "0.5rem",
|
|
148
|
-
3: "0.75rem",
|
|
149
|
-
4: "1rem",
|
|
150
|
-
5: "1.25rem",
|
|
151
|
-
6: "1.5rem",
|
|
152
|
-
7: "2rem",
|
|
153
|
-
8: "2.5rem",
|
|
154
|
-
9: "3rem",
|
|
155
|
-
10: "3.5rem",
|
|
156
|
-
11: "4rem",
|
|
157
|
-
12: "4.5rem",
|
|
158
|
-
13: "5rem",
|
|
159
|
-
14: "5.5rem",
|
|
160
|
-
15: "6rem"
|
|
161
|
-
},
|
|
162
|
-
borderRadius: {
|
|
163
|
-
"sm": "0.25rem",
|
|
164
|
-
DEFAULT: "0.5rem",
|
|
165
|
-
"md": "0.75rem",
|
|
166
|
-
"lg": "1rem",
|
|
167
|
-
"xl": "1.25rem",
|
|
168
|
-
"2xl": "1.5rem",
|
|
169
|
-
"3xl": "2rem"
|
|
170
|
-
},
|
|
171
|
-
boxShadow: {
|
|
172
|
-
xxs: "0 1px 2x rgba(27, 37, 51, 0.12)",
|
|
173
|
-
xs: "0 4px 16px -2px rgba(27, 37, 51, 0.06)",
|
|
174
|
-
sm: "0 4px 32px -2px rgba(27, 37, 51, 0.06)",
|
|
175
|
-
md: "0 16px 48px -4px rgba(27, 37, 51, 0.06)",
|
|
176
|
-
xl: "0 32px 80px -4px rgba(27, 37, 51, 0.12)",
|
|
177
|
-
xxl: "0 64px 80px -4px rgba(27, 37, 51, 0.12)",
|
|
178
|
-
"primary-2px": "0px 0px 2px 2px rgba(153, 203, 250, 1)",
|
|
179
|
-
"secondary-2px": "0px 0px 2px 2px rgba(214, 218, 225, 1)",
|
|
180
|
-
"success-2px": "0px 0px 2px 2px rgba(163, 214, 201, 1)",
|
|
181
|
-
"warning-2px": "0px 0px 2px 2px rgba(251, 210, 156, 1)",
|
|
182
|
-
"error-2px": "0px 0px 2px 2px rgba(241, 174, 157, 1)",
|
|
183
|
-
"primary-4px": "0px 0px 0px 4px rgba(204, 229, 253, 1)",
|
|
184
|
-
"secondary-4px": "0px 0px 0px 4px rgba(214, 218, 225, 1)",
|
|
185
|
-
"success-4px": "0px 0px 0px 4px rgba(163, 214, 201, 1)",
|
|
186
|
-
"warning-4px": "0px 0px 0px 4px rgba(251, 210, 156, 1)",
|
|
187
|
-
"error-4px": "0px 0px 0px 4px rgba(248, 214, 206, 1)"
|
|
188
|
-
},
|
|
189
|
-
borderWidth: {
|
|
190
|
-
"1.5": "1.5px"
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
//# sourceMappingURL=tailwindThemeConfig.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindThemeConfig.js","sourceRoot":"","sources":["../src/tailwindThemeConfig.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MA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Merges multiple class values into a single className string
|
|
5
|
-
* Uses clsx for conditional classes and twMerge to handle Tailwind conflicts
|
|
6
|
-
* @param inputs - Class values to merge
|
|
7
|
-
* @returns Merged className string
|
|
8
|
-
* @example cn("text-red-500", "bg-blue-500", isActive && "font-bold")
|
|
9
|
-
*/
|
|
10
|
-
export function cn(...inputs) {
|
|
11
|
-
return twMerge(clsx(inputs));
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=cn.js.map
|
package/dist/utils/cn.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cn.js","sourceRoot":"","sources":["../../src/utils/cn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,UAAU,EAAE,CAAE,GAAG,MAAoB;IACzC,OAAO,OAAO,CAAE,IAAI,CAAE,MAAM,CAAE,CAAC,CAAC;AAClC,CAAC"}
|
package/dist/utils/debounce.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// eslint disabled on entire file because we don't want to enforce prop types
|
|
2
|
-
// this is a utility function that should be used in a component that already has prop types
|
|
3
|
-
// and we don't want to force prop types on this utility function
|
|
4
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
|
-
/**
|
|
6
|
-
* Debounce a function, making it only callable after a certain amount of time has passed.
|
|
7
|
-
* @param func The function to debounce.
|
|
8
|
-
* @param timeout The amount of time to wait before calling the function.
|
|
9
|
-
* @returns A debounced version of the function.
|
|
10
|
-
* @template Params The parameters of the function.
|
|
11
|
-
* @example
|
|
12
|
-
* ```tsx
|
|
13
|
-
* const debouncedFunction = debounce((...args) => {
|
|
14
|
-
* console.log(args);
|
|
15
|
-
* }, 1000);
|
|
16
|
-
* debouncedFunction(1);
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export function debounce(func, timeout) {
|
|
20
|
-
let timer;
|
|
21
|
-
return (...args) => {
|
|
22
|
-
if (timer) {
|
|
23
|
-
clearTimeout(timer);
|
|
24
|
-
}
|
|
25
|
-
timer = setTimeout(() => {
|
|
26
|
-
func(...args);
|
|
27
|
-
}, timeout);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=debounce.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../src/utils/debounce.tsx"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,4FAA4F;AAC5F,iEAAiE;AACjE,uDAAuD;AAEvD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,QAAQ,CACtB,IAAgC,EAChC,OAAe;IAEf,IAAI,KAAqB,CAAC;IAC1B,OAAO,CAAE,GAAG,IAAY,EAAG,EAAE;QAC3B,IAAK,KAAK,EAAG,CAAC;YACZ,YAAY,CAAE,KAAK,CAAE,CAAC;QACxB,CAAC;QACD,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;YACtB,IAAI,CAAE,GAAG,IAAI,CAAE,CAAC;QAClB,CAAC,EAAE,OAAO,CAAE,CAAC;IACf,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Finds the closest parent element of the given element that has the specified attribute set,
|
|
3
|
-
* and returns the value of that attribute.
|
|
4
|
-
*
|
|
5
|
-
* @param {HTMLElement} element - The starting element to search from.
|
|
6
|
-
* @param {string} attribute - The attribute to search for.
|
|
7
|
-
* @returns {string | null} The value of the specified attribute on the closest parent element that has it set, or null if no such parent element is found.
|
|
8
|
-
*/
|
|
9
|
-
export const findParentAttribute = (element, attribute) => {
|
|
10
|
-
if (!element) {
|
|
11
|
-
return null;
|
|
12
|
-
}
|
|
13
|
-
let { parentElement } = element;
|
|
14
|
-
while (parentElement) {
|
|
15
|
-
const dir = parentElement.getAttribute(attribute);
|
|
16
|
-
if (dir) {
|
|
17
|
-
return dir;
|
|
18
|
-
}
|
|
19
|
-
parentElement = parentElement === null || parentElement === void 0 ? void 0 : parentElement.parentElement;
|
|
20
|
-
}
|
|
21
|
-
return null;
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=findParentAttribute.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findParentAttribute.js","sourceRoot":"","sources":["../../src/utils/findParentAttribute.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAE,OAAoB,EAAE,SAAgB,EAAkB,EAAE;IAC7F,IAAK,CAAC,OAAO,EAAG,CAAC;QACf,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAChC,OAAQ,aAAa,EAAG,CAAC;QACvB,MAAM,GAAG,GAAG,aAAa,CAAC,YAAY,CAAE,SAAS,CAAE,CAAC;QACpD,IAAK,GAAG,EAAG,CAAC;YACV,OAAO,GAAG,CAAC;QACb,CAAC;QACD,aAAa,GAAG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,aAAa,CAAC;IAC/C,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
package/dist/utils/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC"}
|