@cloudwick/astral-ui 3.0.7 → 5.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 +90 -6
- package/dist/components/accordion/accordion.js +62 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/accordion/accordionVariants.js +52 -0
- package/dist/components/accordion/accordionVariants.js.map +1 -0
- package/dist/components/accordion/index.js +3 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/adpIcon/adpIcon.js +39 -0
- package/dist/components/adpIcon/adpIcon.js.map +1 -0
- package/dist/components/adpIcon/adpIconVariants.js +35 -0
- package/dist/components/adpIcon/adpIconVariants.js.map +1 -0
- package/dist/components/adpIcon/index.js +3 -0
- package/dist/components/adpIcon/index.js.map +1 -0
- package/dist/components/adpIcon/svgObjects.js +1525 -0
- package/dist/components/adpIcon/svgObjects.js.map +1 -0
- package/dist/components/avatar/avatar.js +39 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/avatarVariants.js +20 -0
- package/dist/components/avatar/avatarVariants.js.map +1 -0
- package/dist/components/avatar/index.js +3 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/avatarGroup/avatarGroup.js +66 -0
- package/dist/components/avatarGroup/avatarGroup.js.map +1 -0
- package/dist/components/avatarGroup/avatarGroupVariants.js +13 -0
- package/dist/components/avatarGroup/avatarGroupVariants.js.map +1 -0
- package/dist/components/avatarGroup/index.js +3 -0
- package/dist/components/avatarGroup/index.js.map +1 -0
- package/dist/components/badge/badge.js +24 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/badgeVariants.js +136 -0
- package/dist/components/badge/badgeVariants.js.map +1 -0
- package/dist/components/badge/index.js +3 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbItem.js +26 -0
- package/dist/components/breadcrumbs/breadcrumbItem.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +72 -0
- package/dist/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbsVariants.js +40 -0
- package/dist/components/breadcrumbs/breadcrumbsVariants.js.map +1 -0
- package/dist/components/breadcrumbs/index.js +5 -0
- package/dist/components/breadcrumbs/index.js.map +1 -0
- package/dist/components/button/button.js +69 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/buttonVariants.js +138 -0
- package/dist/components/button/buttonVariants.js.map +1 -0
- package/dist/components/button/index.js +3 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/card/card.js +79 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/card/cardVariants.js +18 -0
- package/dist/components/card/cardVariants.js.map +1 -0
- package/dist/components/card/index.js +3 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/checkbox/checkbox.js +29 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/checkboxVariants.js +96 -0
- package/dist/components/checkbox/checkboxVariants.js.map +1 -0
- package/dist/components/checkbox/index.js +3 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/checkboxGroup/checkboxGroup.js +51 -0
- package/dist/components/checkboxGroup/checkboxGroup.js.map +1 -0
- package/dist/components/checkboxGroup/checkboxGroupVariants.js +31 -0
- package/dist/components/checkboxGroup/checkboxGroupVariants.js.map +1 -0
- package/dist/components/checkboxGroup/index.js +3 -0
- package/dist/components/checkboxGroup/index.js.map +1 -0
- package/dist/components/ctaGroup/ctaGroup.js +51 -0
- package/dist/components/ctaGroup/ctaGroup.js.map +1 -0
- package/dist/components/ctaGroup/ctaGroupVariants.js +9 -0
- package/dist/components/ctaGroup/ctaGroupVariants.js.map +1 -0
- package/dist/components/ctaGroup/index.js +3 -0
- package/dist/components/ctaGroup/index.js.map +1 -0
- package/dist/components/dataTable/DataTableColumnSettings.js +98 -0
- package/dist/components/dataTable/DataTableColumnSettings.js.map +1 -0
- package/dist/components/dataTable/advancedFilters.js +102 -0
- package/dist/components/dataTable/advancedFilters.js.map +1 -0
- package/dist/components/dataTable/dataTable.js +236 -0
- package/dist/components/dataTable/dataTable.js.map +1 -0
- package/dist/components/dataTable/dataTableStoryHelpers.js +1966 -0
- package/dist/components/dataTable/dataTableStoryHelpers.js.map +1 -0
- package/dist/components/dataTable/dataTableVariants.js +51 -0
- package/dist/components/dataTable/dataTableVariants.js.map +1 -0
- package/dist/components/dataTable/index.js +8 -0
- package/dist/components/dataTable/index.js.map +1 -0
- package/dist/components/dataTable/pageSizeModal.js +25 -0
- package/dist/components/dataTable/pageSizeModal.js.map +1 -0
- package/dist/components/dataTable/selectedFilterList.js +39 -0
- package/dist/components/dataTable/selectedFilterList.js.map +1 -0
- package/dist/components/dataTable/table.js +108 -0
- package/dist/components/dataTable/table.js.map +1 -0
- package/dist/components/datePicker/datePicker.js +271 -0
- package/dist/components/datePicker/datePicker.js.map +1 -0
- package/dist/components/datePicker/datePickerVariants.js +80 -0
- package/dist/components/datePicker/datePickerVariants.js.map +1 -0
- package/dist/components/datePicker/index.js +4 -0
- package/dist/components/datePicker/index.js.map +1 -0
- package/dist/components/dropdown/dropdown.js +94 -0
- package/dist/components/dropdown/dropdown.js.map +1 -0
- package/dist/components/dropdown/dropdownItem.js +54 -0
- package/dist/components/dropdown/dropdownItem.js.map +1 -0
- package/dist/components/dropdown/dropdownToggle.js +20 -0
- package/dist/components/dropdown/dropdownToggle.js.map +1 -0
- package/dist/components/dropdown/dropdownVariants.js +48 -0
- package/dist/components/dropdown/dropdownVariants.js.map +1 -0
- package/dist/components/dropdown/index.js +8 -0
- package/dist/components/dropdown/index.js.map +1 -0
- package/dist/components/emptyState/emptyState.js +61 -0
- package/dist/components/emptyState/emptyState.js.map +1 -0
- package/dist/components/emptyState/emptyStateContent.js +25 -0
- package/dist/components/emptyState/emptyStateContent.js.map +1 -0
- package/dist/components/emptyState/emptyStateCta.js +25 -0
- package/dist/components/emptyState/emptyStateCta.js.map +1 -0
- package/dist/components/emptyState/emptyStateVariants.js +7 -0
- package/dist/components/emptyState/emptyStateVariants.js.map +1 -0
- package/dist/components/emptyState/index.js +5 -0
- package/dist/components/emptyState/index.js.map +1 -0
- package/dist/components/fileUpload/fileUpload.js +150 -0
- package/dist/components/fileUpload/fileUpload.js.map +1 -0
- package/dist/components/fileUpload/fileUploadVariants.js +21 -0
- package/dist/components/fileUpload/fileUploadVariants.js.map +1 -0
- package/dist/components/fileUpload/index.js +3 -0
- package/dist/components/fileUpload/index.js.map +1 -0
- package/dist/components/fileUpload/statusCard.js +80 -0
- package/dist/components/fileUpload/statusCard.js.map +1 -0
- package/dist/components/fileUpload/statusCardVariants.js +19 -0
- package/dist/components/fileUpload/statusCardVariants.js.map +1 -0
- package/dist/components/fileUpload/storyUtil.js +51 -0
- package/dist/components/fileUpload/storyUtil.js.map +1 -0
- package/dist/components/loader/index.js +3 -0
- package/dist/components/loader/index.js.map +1 -0
- package/dist/components/loader/loader.js +39 -0
- package/dist/components/loader/loader.js.map +1 -0
- package/dist/components/loader/loaderVariants.js +31 -0
- package/dist/components/loader/loaderVariants.js.map +1 -0
- package/dist/components/modal/index.js +3 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/modal/modal.js +89 -0
- package/dist/components/modal/modal.js.map +1 -0
- package/dist/components/modal/modalVariants.js +14 -0
- package/dist/components/modal/modalVariants.js.map +1 -0
- package/dist/components/otp/index.js +3 -0
- package/dist/components/otp/index.js.map +1 -0
- package/dist/components/otp/input.js +18 -0
- package/dist/components/otp/input.js.map +1 -0
- package/dist/components/otp/otp.js +142 -0
- package/dist/components/otp/otp.js.map +1 -0
- package/dist/components/otp/otpVariants.js +13 -0
- package/dist/components/otp/otpVariants.js.map +1 -0
- package/dist/components/pagination/index.js +5 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/pagination/pagination.js +82 -0
- package/dist/components/pagination/pagination.js.map +1 -0
- package/dist/components/pagination/paginationVariants.js +44 -0
- package/dist/components/pagination/paginationVariants.js.map +1 -0
- package/dist/components/panel/index.js +11 -0
- package/dist/components/panel/index.js.map +1 -0
- package/dist/components/panel/panel.js +83 -0
- package/dist/components/panel/panel.js.map +1 -0
- package/dist/components/panel/panelBody.js +21 -0
- package/dist/components/panel/panelBody.js.map +1 -0
- package/dist/components/panel/panelFooter.js +21 -0
- package/dist/components/panel/panelFooter.js.map +1 -0
- package/dist/components/panel/panelHeader.js +25 -0
- package/dist/components/panel/panelHeader.js.map +1 -0
- package/dist/components/panel/panelVariants.js +122 -0
- package/dist/components/panel/panelVariants.js.map +1 -0
- package/dist/components/panelGroup/index.js +3 -0
- package/dist/components/panelGroup/index.js.map +1 -0
- package/dist/components/panelGroup/panelGroup.js +38 -0
- package/dist/components/panelGroup/panelGroup.js.map +1 -0
- package/dist/components/panelGroup/panelGroupVariants.js +34 -0
- package/dist/components/panelGroup/panelGroupVariants.js.map +1 -0
- package/dist/components/passwordField/index.js +2 -0
- package/dist/components/passwordField/index.js.map +1 -0
- package/dist/components/passwordField/passwordField.js +28 -0
- package/dist/components/passwordField/passwordField.js.map +1 -0
- package/dist/components/progress/index.d.ts +2 -61
- package/dist/components/progress/index.js +3 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.js +62 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/progress/progressVariants.js +100 -0
- package/dist/components/progress/progressVariants.js.map +1 -0
- package/dist/components/radio/index.js +3 -0
- package/dist/components/radio/index.js.map +1 -0
- package/dist/components/radio/radio.js +25 -0
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/radio/radioVariants.js +46 -0
- package/dist/components/radio/radioVariants.js.map +1 -0
- package/dist/components/radioGroup/index.js +3 -0
- package/dist/components/radioGroup/index.js.map +1 -0
- package/dist/components/radioGroup/radioGroup.js +47 -0
- package/dist/components/radioGroup/radioGroup.js.map +1 -0
- package/dist/components/radioGroup/radioGroupVariants.js +53 -0
- package/dist/components/radioGroup/radioGroupVariants.js.map +1 -0
- package/dist/components/scrollbar/index.js +3 -0
- package/dist/components/scrollbar/index.js.map +1 -0
- package/dist/components/scrollbar/scrollbar.js +360 -0
- package/dist/components/scrollbar/scrollbar.js.map +1 -0
- package/dist/components/scrollbar/scrollbarVariants.js +100 -0
- package/dist/components/scrollbar/scrollbarVariants.js.map +1 -0
- package/dist/components/scrollbar/utils.js +50 -0
- package/dist/components/scrollbar/utils.js.map +1 -0
- package/dist/components/select/index.js +3 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.js +140 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/select/selectVariants.js +35 -0
- package/dist/components/select/selectVariants.js.map +1 -0
- package/dist/components/select/utils.js +116 -0
- package/dist/components/select/utils.js.map +1 -0
- package/dist/components/tabs/index.js +3 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs.js +140 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tabs/tabsVariants.js +138 -0
- package/dist/components/tabs/tabsVariants.js.map +1 -0
- package/dist/components/textCopy/index.js +3 -0
- package/dist/components/textCopy/index.js.map +1 -0
- package/dist/components/textCopy/textCopy.js +36 -0
- package/dist/components/textCopy/textCopy.js.map +1 -0
- package/dist/components/textCopy/textCopyVariants.js +12 -0
- package/dist/components/textCopy/textCopyVariants.js.map +1 -0
- package/dist/components/textField/index.js +3 -0
- package/dist/components/textField/index.js.map +1 -0
- package/dist/components/textField/textField.js +36 -0
- package/dist/components/textField/textField.js.map +1 -0
- package/dist/components/textField/textFieldVariants.js +84 -0
- package/dist/components/textField/textFieldVariants.js.map +1 -0
- package/dist/components/textarea/index.js +3 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.js +28 -0
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/textarea/textareaVariants.js +37 -0
- package/dist/components/textarea/textareaVariants.js.map +1 -0
- package/dist/components/toast/index.js +3 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toast/toast.js +52 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toast/toastVariants.js +45 -0
- package/dist/components/toast/toastVariants.js.map +1 -0
- package/dist/components/toggle/index.js +3 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/components/toggle/toggle.js +33 -0
- package/dist/components/toggle/toggle.js.map +1 -0
- package/dist/components/toggle/toggleVariants.js +40 -0
- package/dist/components/toggle/toggleVariants.js.map +1 -0
- package/dist/components/tooltip/index.js +3 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.js +100 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/tooltip/tooltipVariants.js +13 -0
- package/dist/components/tooltip/tooltipVariants.js.map +1 -0
- package/dist/components/truncate/index.js +3 -0
- package/dist/components/truncate/index.js.map +1 -0
- package/dist/components/truncate/truncate.js +36 -0
- package/dist/components/truncate/truncate.js.map +1 -0
- package/dist/components/truncate/truncateVariants.js +13 -0
- package/dist/components/truncate/truncateVariants.js.map +1 -0
- package/dist/css/index.min.css +1 -1
- package/dist/index.cjs.js +4 -4
- package/dist/index.esm.js +4 -14
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/tailwindThemeConfig.js +155 -0
- package/dist/tailwindThemeConfig.js.map +1 -0
- package/dist/utils/cn.js +13 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/debounce.js +30 -0
- package/dist/utils/debounce.js.map +1 -0
- package/dist/utils/findParentAttribute.js +23 -0
- package/dist/utils/findParentAttribute.js.map +1 -0
- package/dist/utils/getElementType.js +32 -0
- package/dist/utils/getElementType.js.map +1 -0
- package/dist/utils/index.js +8 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/numberUtils/index.js +41 -0
- package/dist/utils/numberUtils/index.js.map +1 -0
- package/dist/utils/stringUtils/fileSize.js +13 -0
- package/dist/utils/stringUtils/fileSize.js.map +1 -0
- package/dist/utils/stringUtils/getInitials.js +19 -0
- package/dist/utils/stringUtils/getInitials.js.map +1 -0
- package/dist/utils/stringUtils/index.js +5 -0
- package/dist/utils/stringUtils/index.js.map +1 -0
- package/dist/utils/stringUtils/placeholderText.js +75 -0
- package/dist/utils/stringUtils/placeholderText.js.map +1 -0
- package/dist/utils/stringUtils/regexSearch.js +25 -0
- package/dist/utils/stringUtils/regexSearch.js.map +1 -0
- package/dist/utils/useOnScreen.js +16 -0
- package/dist/utils/useOnScreen.js.map +1 -0
- package/dist/utils/useWindowSize.js +25 -0
- package/dist/utils/useWindowSize.js.map +1 -0
- package/package.json +36 -14
- package/CONTRIBUTING.md +0 -57
- package/dist/components/accordion/accordionBody.d.ts +0 -9
- package/dist/components/accordion/accordionHeader.d.ts +0 -9
- package/dist/components/accordion/index.d.ts +0 -37
- package/dist/components/adpIcon/index.d.ts +0 -61
- package/dist/components/adpIcon/svgObjects.d.ts +0 -267
- package/dist/components/avatar/index.d.ts +0 -27
- package/dist/components/avatarGroup/index.d.ts +0 -32
- package/dist/components/badge/index.d.ts +0 -46
- package/dist/components/breadcrumbs/breadcrumbItem.d.ts +0 -28
- package/dist/components/breadcrumbs/index.d.ts +0 -27
- package/dist/components/button/index.d.ts +0 -86
- package/dist/components/card/cardBody.d.ts +0 -13
- package/dist/components/card/cardFooter.d.ts +0 -13
- package/dist/components/card/cardHeader.d.ts +0 -22
- package/dist/components/card/index.d.ts +0 -23
- package/dist/components/checkbox/index.d.ts +0 -19
- package/dist/components/checkboxGroup/index.d.ts +0 -43
- package/dist/components/ctaGroup/index.d.ts +0 -46
- package/dist/components/dataTable/advancedFilters.d.ts +0 -10
- package/dist/components/dataTable/dataTableStoryHelpers.d.ts +0 -1101
- package/dist/components/dataTable/index.d.ts +0 -193
- package/dist/components/dataTable/pageSizeModal.d.ts +0 -10
- package/dist/components/dataTable/selectedFilterList.d.ts +0 -20
- package/dist/components/dataTable/settings.d.ts +0 -6
- package/dist/components/dataTable/table.d.ts +0 -41
- package/dist/components/dataTable/utils.d.ts +0 -3
- package/dist/components/datePicker/index.d.ts +0 -10
- package/dist/components/dropdown/dropdownItem.d.ts +0 -11
- package/dist/components/dropdown/dropdownToggle.d.ts +0 -9
- package/dist/components/dropdown/index.d.ts +0 -35
- package/dist/components/emptyState/emptyStateContent.d.ts +0 -11
- package/dist/components/emptyState/emptyStateCta.d.ts +0 -11
- package/dist/components/emptyState/index.d.ts +0 -34
- package/dist/components/fileUpload/index.d.ts +0 -58
- package/dist/components/fileUpload/statusCard.d.ts +0 -18
- package/dist/components/fileUpload/storyUtil.d.ts +0 -1
- package/dist/components/loader/index.d.ts +0 -28
- package/dist/components/modal/index.d.ts +0 -49
- package/dist/components/modal/modalBody.d.ts +0 -13
- package/dist/components/modal/modalHeader.d.ts +0 -13
- package/dist/components/otp/index.d.ts +0 -41
- package/dist/components/otp/input.d.ts +0 -12
- package/dist/components/pagination/index.d.ts +0 -32
- package/dist/components/panel/index.d.ts +0 -47
- package/dist/components/panel/panelBody.d.ts +0 -13
- package/dist/components/panel/panelFooter.d.ts +0 -13
- package/dist/components/panel/panelHeader.d.ts +0 -39
- package/dist/components/panel/panelStoryHelpers.d.ts +0 -7
- package/dist/components/panelGroup/index.d.ts +0 -22
- package/dist/components/passwordField/index.d.ts +0 -4
- package/dist/components/radio/index.d.ts +0 -15
- package/dist/components/radioGroup/index.d.ts +0 -48
- package/dist/components/scrollbar/index.d.ts +0 -34
- package/dist/components/scrollbar/storyUtils.d.ts +0 -8
- package/dist/components/select/index.d.ts +0 -99
- package/dist/components/select/utils.d.ts +0 -3
- package/dist/components/tabs/index.d.ts +0 -69
- package/dist/components/tabs/tab.d.ts +0 -53
- package/dist/components/textCopy/index.d.ts +0 -29
- package/dist/components/textField/index.d.ts +0 -47
- package/dist/components/textarea/index.d.ts +0 -24
- package/dist/components/toast/index.d.ts +0 -43
- package/dist/components/toggle/index.d.ts +0 -39
- package/dist/components/tooltip/index.d.ts +0 -59
- package/dist/components/truncate/index.d.ts +0 -22
- package/dist/index.d.ts +0 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudwick/astral-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "UI Library for Cloudwick",
|
|
5
5
|
"homepage": "https://www.astral-ui.amorphic.link/",
|
|
6
6
|
"main": "./dist/index.cjs.js",
|
|
@@ -12,16 +12,21 @@
|
|
|
12
12
|
"*.css"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "yarn
|
|
15
|
+
"build": "yarn update-registry && yarn clean && yarn rollup && yarn build-types && node scripts/sync-templates.js",
|
|
16
|
+
"clean": "yarn dlx -p rimraf rimraf dist",
|
|
17
|
+
"rollup": "rollup --config rollup.config.js",
|
|
16
18
|
"build-types": "yarn tsc",
|
|
17
19
|
"relink": "yarn build && yarn link",
|
|
18
20
|
"storybook": "cross-env NODE_ENV=development storybook dev -p 6006",
|
|
19
21
|
"build-storybook": "storybook build",
|
|
20
|
-
"lint": "
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
22
|
+
"lint:js": "eslint \"src/**\"",
|
|
23
|
+
"lint:style": "stylelint \"src/**/*.{css,scss}\"",
|
|
24
|
+
"lint": "yarn lint:js && yarn lint:style",
|
|
25
|
+
"fix-lint": "eslint \"src/**\" --fix",
|
|
26
|
+
"test": "BABEL_ENV=test jest src --passWithNoTests",
|
|
27
|
+
"test-file": "BABEL_ENV=test jest --passWithNoTests",
|
|
28
|
+
"build-scripts": "tsc -p scripts/tsconfig.json",
|
|
29
|
+
"update-registry": "yarn build-scripts && node scripts/dist/generate-registry.js"
|
|
25
30
|
},
|
|
26
31
|
"devDependencies": {
|
|
27
32
|
"@babel/core": "^7.26.0",
|
|
@@ -30,6 +35,7 @@
|
|
|
30
35
|
"@babel/preset-typescript": "^7.26.0",
|
|
31
36
|
"@chromatic-com/storybook": "^1",
|
|
32
37
|
"@eslint/js": "^9.14.0",
|
|
38
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
33
39
|
"@rollup/plugin-babel": "^6.0.4",
|
|
34
40
|
"@rollup/plugin-commonjs": "^20.0.0",
|
|
35
41
|
"@rollup/plugin-image": "^2.1.0",
|
|
@@ -37,13 +43,14 @@
|
|
|
37
43
|
"@rollup/plugin-terser": "^0.4.4",
|
|
38
44
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
39
45
|
"@storybook/addon-a11y": "^8.2.8",
|
|
46
|
+
"@storybook/addon-docs": "8.6.12",
|
|
40
47
|
"@storybook/addon-essentials": "^8.2.8",
|
|
41
48
|
"@storybook/addon-links": "^8.2.8",
|
|
42
49
|
"@storybook/addon-styling-webpack": "^1.0.0",
|
|
43
50
|
"@storybook/addon-themes": "^8.2.9",
|
|
44
51
|
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
|
|
45
52
|
"@storybook/manager-api": "^8.2.8",
|
|
46
|
-
"@storybook/react": "^8.
|
|
53
|
+
"@storybook/react": "^8.6.12",
|
|
47
54
|
"@storybook/react-webpack5": "^8.2.8",
|
|
48
55
|
"@storybook/theming": "^8.2.8",
|
|
49
56
|
"@stylistic/eslint-plugin": "^2.10.1",
|
|
@@ -52,6 +59,7 @@
|
|
|
52
59
|
"@testing-library/react": "^16.0.1",
|
|
53
60
|
"@testing-library/user-event": "^13.2.1",
|
|
54
61
|
"@types/jest": "^26.0.23",
|
|
62
|
+
"@types/node": "^22.15.17",
|
|
55
63
|
"@types/postcss-url": "^10",
|
|
56
64
|
"@types/react": "^18.3.5",
|
|
57
65
|
"@types/react-dom": "^18.3.0",
|
|
@@ -63,6 +71,7 @@
|
|
|
63
71
|
"eslint-plugin-react": "^7.37.2",
|
|
64
72
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
65
73
|
"eslint-plugin-storybook": "^0.11.0",
|
|
74
|
+
"glob": "^10.3.10",
|
|
66
75
|
"globals": "^15.12.0",
|
|
67
76
|
"husky": "^6.0.0",
|
|
68
77
|
"jest": "^29.7.0",
|
|
@@ -84,7 +93,8 @@
|
|
|
84
93
|
"style-loader": "^2.0.0",
|
|
85
94
|
"stylelint": "^14.0.1",
|
|
86
95
|
"stylelint-config-standard": "^23.0.0",
|
|
87
|
-
"tailwindcss": "^3.4.
|
|
96
|
+
"tailwindcss": "^3.4.17",
|
|
97
|
+
"ts-node": "^10.9.2",
|
|
88
98
|
"typescript": "^5.0.0",
|
|
89
99
|
"typescript-eslint": "^8.13.0",
|
|
90
100
|
"webpack": "^5.0.0"
|
|
@@ -93,11 +103,14 @@
|
|
|
93
103
|
"@floating-ui/react": "^0.26.28",
|
|
94
104
|
"@tanstack/react-table": "^8.20.5",
|
|
95
105
|
"@tanstack/react-virtual": "^3.10.9",
|
|
96
|
-
"
|
|
106
|
+
"class-variance-authority": "^0.7.1",
|
|
107
|
+
"clsx": "^1.2.1",
|
|
108
|
+
"global": "^4.4.0",
|
|
97
109
|
"react-datepicker": "^7.5.0",
|
|
98
110
|
"react-focus-on": "^3.9.4",
|
|
99
111
|
"react-merge-refs": "^1.1.0",
|
|
100
|
-
"react-select": "^5.8.0"
|
|
112
|
+
"react-select": "^5.8.0",
|
|
113
|
+
"tailwind-merge": "^3.2.0"
|
|
101
114
|
},
|
|
102
115
|
"peerDependencies": {
|
|
103
116
|
"react": "^18.3.1",
|
|
@@ -116,12 +129,21 @@
|
|
|
116
129
|
],
|
|
117
130
|
"moduleNameMapper": {
|
|
118
131
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
|
|
119
|
-
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js"
|
|
132
|
+
"\\.(css|less)$": "<rootDir>/__mocks__/styleMock.js",
|
|
133
|
+
"^@utils$": "<rootDir>/src/utils",
|
|
134
|
+
"^@utils/(.*)$": "<rootDir>/src/utils/$1",
|
|
135
|
+
"^@components/(.*)$": "<rootDir>/src/components/$1",
|
|
136
|
+
"^@constants$": "<rootDir>/src/constants",
|
|
137
|
+
"^@constants/(.*)$": "<rootDir>/src/constants/$1"
|
|
120
138
|
},
|
|
121
|
-
"testEnvironment": "jsdom"
|
|
139
|
+
"testEnvironment": "jsdom",
|
|
140
|
+
"setupFilesAfterEnv": [
|
|
141
|
+
"<rootDir>/src/setupTests.js"
|
|
142
|
+
]
|
|
122
143
|
},
|
|
123
144
|
"engines": {
|
|
124
145
|
"node": "^20.16.0"
|
|
125
146
|
},
|
|
126
|
-
"packageManager": "yarn@4.4.1"
|
|
147
|
+
"packageManager": "yarn@4.4.1",
|
|
148
|
+
"type": "module"
|
|
127
149
|
}
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# Contribution guidelines -
|
|
2
|
-
|
|
3
|
-
Preferably use vscode as your editor. Install all the plugins recommended by vscode.
|
|
4
|
-
|
|
5
|
-
## Setup instructions
|
|
6
|
-
|
|
7
|
-
- Clone the repo to your local using SSH - git clone git@bitbucket.org:cloudwick-labs/astral-ui.git
|
|
8
|
-
- Install Yarn if you don't have it already
|
|
9
|
-
- Create a feature branch from 'develop'
|
|
10
|
-
- Run `yarn` from the root directory to install all the dependencies
|
|
11
|
-
- Start the App using - `yarn storybook`
|
|
12
|
-
|
|
13
|
-
## Common scripts
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
yarn build
|
|
17
|
-
|
|
18
|
-
- Generates a production build
|
|
19
|
-
|
|
20
|
-
yarn build-types
|
|
21
|
-
|
|
22
|
-
- Generates the type definition files
|
|
23
|
-
|
|
24
|
-
yarn link
|
|
25
|
-
|
|
26
|
-
- Generates symlink so that you don't have to publish the package each time you want to consume the updated package
|
|
27
|
-
|
|
28
|
-
yarn publish
|
|
29
|
-
|
|
30
|
-
- Publish the package to npmjs
|
|
31
|
-
|
|
32
|
-
yarn storybook
|
|
33
|
-
|
|
34
|
-
- Starts storybook on your local
|
|
35
|
-
|
|
36
|
-
yarn build-storybook
|
|
37
|
-
|
|
38
|
-
- Build storybook if you want to host it
|
|
39
|
-
|
|
40
|
-
yarn lint
|
|
41
|
-
|
|
42
|
-
- lints the codebase using eslint and stylelint
|
|
43
|
-
|
|
44
|
-
yarn fix-lint
|
|
45
|
-
|
|
46
|
-
- lints the codebase using eslint and stylelint and fixes auto-fixable issues
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Creating a new component
|
|
50
|
-
|
|
51
|
-
Follow the following guidelines while developing a new component -
|
|
52
|
-
|
|
53
|
-
- All components go under ./src/components
|
|
54
|
-
- Tests need to written using the exported stories [Unit testing with Storybook](https://storybook.js.org/docs/react/workflows/unit-testing)
|
|
55
|
-
- All files need to use typescript and proper types need to be defined for each file [Everyday types](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html)
|
|
56
|
-
- Use JSDoc to document your props so that we can support vscode intellisense [JSDoc](https://jsdoc.app/tags-param.html)
|
|
57
|
-
- Anything that needs to be exported from astral-ui should be exported from `./src/index.ts`
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface AccordionBodyProps {
|
|
3
|
-
children: React.ReactNode | React.ReactElement;
|
|
4
|
-
/**
|
|
5
|
-
* Overwrite the styles for AccordionBody by passing space separated class names
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const AccordionBody: ({ children, className }: AccordionBodyProps) => JSX.Element | null;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface AccordionHeaderProps {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Overwrite the styles for AccordionHeader by passing space separated class names
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const AccordionHeader: ({ children, className }: AccordionHeaderProps) => JSX.Element | null;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { AccordionHeaderProps } from "./accordionHeader";
|
|
3
|
-
import { AccordionBodyProps } from "./accordionBody";
|
|
4
|
-
export declare enum AccordionSizes {
|
|
5
|
-
XS = "xs",
|
|
6
|
-
SM = "sm",
|
|
7
|
-
MD = "md",
|
|
8
|
-
LG = "lg",
|
|
9
|
-
XL = "xl"
|
|
10
|
-
}
|
|
11
|
-
export type AccordionSize = `${AccordionSizes}`;
|
|
12
|
-
export interface AccordionProps {
|
|
13
|
-
children?: Array<ReactElement<AccordionBodyProps | AccordionHeaderProps>>;
|
|
14
|
-
/**
|
|
15
|
-
* Expand or collapse the Accordion
|
|
16
|
-
*/
|
|
17
|
-
expand?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Set it to false if you want the Accordion to Expand or Collapse only on click of the arrow
|
|
20
|
-
*/
|
|
21
|
-
clickableHeader?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Size of the Accordion Header (Text and Spacing)
|
|
24
|
-
* @default sm
|
|
25
|
-
*/
|
|
26
|
-
size?: AccordionSize;
|
|
27
|
-
/**
|
|
28
|
-
* Overwrite the styles for Accordion by passing space separated class names
|
|
29
|
-
*/
|
|
30
|
-
className?: string;
|
|
31
|
-
}
|
|
32
|
-
export declare const Accordion: {
|
|
33
|
-
({ children, expand, clickableHeader, className, size }: AccordionProps): JSX.Element | null;
|
|
34
|
-
Header: ({ children, className }: AccordionHeaderProps) => JSX.Element | null;
|
|
35
|
-
Body: ({ children, className }: AccordionBodyProps) => JSX.Element | null;
|
|
36
|
-
};
|
|
37
|
-
export default Accordion;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from "react";
|
|
2
|
-
import { IIconDetails, IconType, iconList } from "./svgObjects";
|
|
3
|
-
export { iconList };
|
|
4
|
-
export type { IconType };
|
|
5
|
-
export interface IADPIconProps extends Omit<React.HTMLProps<SVGSVGElement>, "size"> {
|
|
6
|
-
/**
|
|
7
|
-
* Icon name from the list of available icons
|
|
8
|
-
* use "custom-icon" to pass a custom SVG object
|
|
9
|
-
* @default "custom-icon"
|
|
10
|
-
*/
|
|
11
|
-
icon: IconType;
|
|
12
|
-
/**
|
|
13
|
-
* Size of the icon. The size is proportional to the initial size of the icon.
|
|
14
|
-
* @default "sm"
|
|
15
|
-
*/
|
|
16
|
-
size?: "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
17
|
-
/**
|
|
18
|
-
* Adds a spinning animation to the icon
|
|
19
|
-
*/
|
|
20
|
-
spin?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* adds padding and rounded corners to the icon
|
|
23
|
-
*/
|
|
24
|
-
padded?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Title attribute for the icon element
|
|
27
|
-
* @default undefined
|
|
28
|
-
*/
|
|
29
|
-
title?: string;
|
|
30
|
-
/**
|
|
31
|
-
* Data attribute for icon-name, override the icon name attribute
|
|
32
|
-
*/
|
|
33
|
-
data_icon_name?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Makes the icon of fixed width and center aligned
|
|
36
|
-
* @default false
|
|
37
|
-
*/
|
|
38
|
-
fixedWidth?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* Custom SVG object to be used instead of one of the default icons.
|
|
41
|
-
* Use "custom-icon" as the icon prop to bypass the required icon prop.
|
|
42
|
-
* The custom SVG object should have the following properties:
|
|
43
|
-
* - SVGPath: ReactElement (required) (SVG path element)
|
|
44
|
-
* - xOffset: number (optional)
|
|
45
|
-
* - yOffset: number (optional)
|
|
46
|
-
* - initialHeight: number (optional)
|
|
47
|
-
* - initialWidth: number (optional)
|
|
48
|
-
* @default undefined
|
|
49
|
-
*/
|
|
50
|
-
customSVG?: IIconDetails;
|
|
51
|
-
}
|
|
52
|
-
export declare const iconSizeProportions: {
|
|
53
|
-
xxs: number;
|
|
54
|
-
xs: number;
|
|
55
|
-
sm: number;
|
|
56
|
-
md: number;
|
|
57
|
-
lg: number;
|
|
58
|
-
xl: number;
|
|
59
|
-
"2xl": number;
|
|
60
|
-
};
|
|
61
|
-
export declare const ADPIcon: ({ icon, size, spin, padded, title, data_icon_name, fixedWidth, customSVG, ...restProps }: IADPIconProps) => ReactElement | null;
|
|
@@ -1,267 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
export interface IIconDetails {
|
|
3
|
-
initialWidth?: number;
|
|
4
|
-
initialHeight?: number;
|
|
5
|
-
xOffset?: number;
|
|
6
|
-
yOffset?: number;
|
|
7
|
-
SVGPath: ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare const iconList: {
|
|
10
|
-
readonly accessGrantReport: "access-grant-report";
|
|
11
|
-
readonly accessRequest: "access-request";
|
|
12
|
-
readonly add: "add";
|
|
13
|
-
readonly addCircle: "add-circle";
|
|
14
|
-
readonly addTerminal: "add-terminal";
|
|
15
|
-
readonly addUser: "add-user";
|
|
16
|
-
readonly admin: "admin";
|
|
17
|
-
readonly agent: "agent";
|
|
18
|
-
readonly agreement: "agreement";
|
|
19
|
-
readonly ai: "ai";
|
|
20
|
-
readonly alert: "alert";
|
|
21
|
-
readonly alertFilled: "alert-filled";
|
|
22
|
-
readonly amorphicConnect: "amorphic-connect";
|
|
23
|
-
readonly api: "api";
|
|
24
|
-
readonly app: "app";
|
|
25
|
-
readonly appAccessService: "app-access-service";
|
|
26
|
-
readonly appDatabase: "app-database";
|
|
27
|
-
readonly appFlow: "app-flow";
|
|
28
|
-
readonly appManagement: "app-management";
|
|
29
|
-
readonly appNavigator: "app-navigator";
|
|
30
|
-
readonly checkMark: "check-mark";
|
|
31
|
-
readonly apps: "apps";
|
|
32
|
-
readonly arrowTurnLeft: "arrow-turn-left";
|
|
33
|
-
readonly attachment: "attachment";
|
|
34
|
-
readonly aura: "aura";
|
|
35
|
-
readonly authorisedGroups: "authorised-groups";
|
|
36
|
-
readonly authorisedUsers: "authorised-users";
|
|
37
|
-
readonly awsAthena: "aws-athena";
|
|
38
|
-
readonly awsAurora: "aws-aurora";
|
|
39
|
-
readonly awsComprehend: "aws-comprehend";
|
|
40
|
-
readonly awsDynamoDb: "aws-dynamoDB";
|
|
41
|
-
readonly awsLakeformation: "aws-lakeformation";
|
|
42
|
-
readonly awsLambda: "aws-lambda";
|
|
43
|
-
readonly awsMedicalComprehend: "aws-medical-comprehend";
|
|
44
|
-
readonly awsMedicalTranscribe: "aws-medical-transcribe";
|
|
45
|
-
readonly awsRedshift: "aws-redshift";
|
|
46
|
-
readonly awsRekognition: "aws-rekognition";
|
|
47
|
-
readonly awsRole: "aws-role";
|
|
48
|
-
readonly awsS3: "aws-s3";
|
|
49
|
-
readonly awsS3Sync: "aws-s3sync";
|
|
50
|
-
readonly awsTextract: "aws-textract";
|
|
51
|
-
readonly awsTranscribe: "aws-transcribe";
|
|
52
|
-
readonly back: "back";
|
|
53
|
-
readonly bell: "bell";
|
|
54
|
-
readonly beta: "beta";
|
|
55
|
-
readonly bolt: "bolt";
|
|
56
|
-
readonly book: "book";
|
|
57
|
-
readonly bookmark: "bookmark";
|
|
58
|
-
readonly bookmarkRemove: "bookmark-remove";
|
|
59
|
-
readonly bug: "bug";
|
|
60
|
-
readonly bulkManagement: "bulk-management";
|
|
61
|
-
readonly bullHorn: "bull-horn";
|
|
62
|
-
readonly calendar: "calendar";
|
|
63
|
-
readonly chatBot: "chat-bot";
|
|
64
|
-
readonly checkCircle: "check-circle";
|
|
65
|
-
readonly checkCircleFilled: "check-circle-filled";
|
|
66
|
-
readonly circle: "circle";
|
|
67
|
-
readonly circleFilled: "circle-filled";
|
|
68
|
-
readonly clone: "clone";
|
|
69
|
-
readonly code: "code";
|
|
70
|
-
readonly codeCog: "code-cog";
|
|
71
|
-
readonly command: "command";
|
|
72
|
-
readonly connect: "connect";
|
|
73
|
-
readonly connection: "connection";
|
|
74
|
-
readonly conversation: "conversation";
|
|
75
|
-
readonly copy: "copy";
|
|
76
|
-
readonly cross: "cross";
|
|
77
|
-
readonly currentBalance: "current-balance";
|
|
78
|
-
readonly customIcon: "custom-icon";
|
|
79
|
-
readonly customModel: "custom-model";
|
|
80
|
-
readonly danger: "danger";
|
|
81
|
-
readonly dashboard: "dashboard";
|
|
82
|
-
readonly database: "database";
|
|
83
|
-
readonly databaseMaintenance: "database-maintenance";
|
|
84
|
-
readonly dataClassifications: "data-classifications";
|
|
85
|
-
readonly dataLake: "data-lake";
|
|
86
|
-
readonly dataPipeline: "data-pipeline";
|
|
87
|
-
readonly dataset: "dataset";
|
|
88
|
-
readonly dataView: "data-view";
|
|
89
|
-
readonly dataWarehouse: "data-warehouse";
|
|
90
|
-
readonly delete: "delete";
|
|
91
|
-
readonly deleteUser: "delete-user";
|
|
92
|
-
readonly disable: "disable";
|
|
93
|
-
readonly disableMFA: "disable-mfa";
|
|
94
|
-
readonly disconnect: "disconnect";
|
|
95
|
-
readonly documentUpload: "document-upload";
|
|
96
|
-
readonly domains: "domains";
|
|
97
|
-
readonly doubleCheck: "double-check";
|
|
98
|
-
readonly downArrow: "down-arrow";
|
|
99
|
-
readonly downArrowLong: "down-arrow-long";
|
|
100
|
-
readonly download: "download";
|
|
101
|
-
readonly drag: "drag";
|
|
102
|
-
readonly edit: "edit";
|
|
103
|
-
readonly editFilled: "edit-filled";
|
|
104
|
-
readonly editLayout: "edit-layout";
|
|
105
|
-
readonly email: "email";
|
|
106
|
-
readonly entityRecognizer: "entity-recognizer";
|
|
107
|
-
readonly etl: "etl";
|
|
108
|
-
readonly etlJobSetting: "etl-job-setting";
|
|
109
|
-
readonly etlLibrary: "etl-library";
|
|
110
|
-
readonly exclamationCircle: "exclamation-circle";
|
|
111
|
-
readonly execute: "execute";
|
|
112
|
-
readonly executeComplex: "execute-complex";
|
|
113
|
-
readonly executions: "executions";
|
|
114
|
-
readonly expand: "expand";
|
|
115
|
-
readonly expand2: "expand-2";
|
|
116
|
-
readonly externalLink: "external-link";
|
|
117
|
-
readonly extraResources: "extra-resources";
|
|
118
|
-
readonly favorite: "favourite";
|
|
119
|
-
readonly file: "file";
|
|
120
|
-
readonly fileCode: "file-code";
|
|
121
|
-
readonly fileDownload: "file-download";
|
|
122
|
-
readonly fileEdit: "file-edit";
|
|
123
|
-
readonly fileInfo: "file-info";
|
|
124
|
-
readonly fileloadValidate: "fileload-validate";
|
|
125
|
-
readonly fileLog: "file-log";
|
|
126
|
-
readonly fileSearch: "file-search";
|
|
127
|
-
readonly fileSuccess: "file-success";
|
|
128
|
-
readonly fileSync: "file-sync";
|
|
129
|
-
readonly fileVerified: "file-verified";
|
|
130
|
-
readonly fileWarning: "file-warning";
|
|
131
|
-
readonly filter: "filter";
|
|
132
|
-
readonly filterFunnel: "filter-funnel";
|
|
133
|
-
readonly flag: "flag";
|
|
134
|
-
readonly flagFilled: "flag-filled";
|
|
135
|
-
readonly forecast: "forecast";
|
|
136
|
-
readonly forward: "forward";
|
|
137
|
-
readonly globe: "globe";
|
|
138
|
-
readonly glossaries: "glossaries";
|
|
139
|
-
readonly gridView: "grid-view";
|
|
140
|
-
readonly grip: "grip";
|
|
141
|
-
readonly group: "group";
|
|
142
|
-
readonly healthImaging: "health-imaging";
|
|
143
|
-
readonly help: "help";
|
|
144
|
-
readonly hidePassword: "hide-password";
|
|
145
|
-
readonly highCost: "high-cost";
|
|
146
|
-
readonly history: "history";
|
|
147
|
-
readonly ibmDb2: "ibm-db2";
|
|
148
|
-
readonly info: "info";
|
|
149
|
-
readonly infoFilled: "info-filled";
|
|
150
|
-
readonly infraManagement: "infra-management";
|
|
151
|
-
readonly ingestion: "ingestion";
|
|
152
|
-
readonly insights: "insights";
|
|
153
|
-
readonly key: "key";
|
|
154
|
-
readonly leftArrow: "left-arrow";
|
|
155
|
-
readonly leftArrowLong: "left-arrow-long";
|
|
156
|
-
readonly licenseInfo: "license-info";
|
|
157
|
-
readonly lineage: "lineage";
|
|
158
|
-
readonly link: "link";
|
|
159
|
-
readonly listSearch: "list-search";
|
|
160
|
-
readonly listView: "list-view";
|
|
161
|
-
readonly lock: "lock";
|
|
162
|
-
readonly logout: "logout";
|
|
163
|
-
readonly mailOpen: "mail-open";
|
|
164
|
-
readonly mailServer: "mail-server";
|
|
165
|
-
readonly management: "management";
|
|
166
|
-
readonly managementRole: "management-role";
|
|
167
|
-
readonly manager: "manager";
|
|
168
|
-
readonly media: "media";
|
|
169
|
-
readonly menu: "menu";
|
|
170
|
-
readonly metadata: "metadata";
|
|
171
|
-
readonly minus: "minus";
|
|
172
|
-
readonly minusCircle: "minus-circle";
|
|
173
|
-
readonly mlModel: "ml-model";
|
|
174
|
-
readonly monthlyUsagePattern: "monthly-usage-pattern";
|
|
175
|
-
readonly msg: "msg";
|
|
176
|
-
readonly mysql: "mysql";
|
|
177
|
-
readonly notebook: "notebook";
|
|
178
|
-
readonly notebookConfig: "notebook-config";
|
|
179
|
-
readonly notification: "notification";
|
|
180
|
-
readonly notificationSettings: "notification-settings";
|
|
181
|
-
readonly omicsAnalytics: "omics-analytics";
|
|
182
|
-
readonly omicsStorage: "omics-storage";
|
|
183
|
-
readonly omicsWorkflows: "omics-workflows";
|
|
184
|
-
readonly oracle: "oracle";
|
|
185
|
-
readonly overview: "overview";
|
|
186
|
-
readonly parametersStore: "parameters-store";
|
|
187
|
-
readonly password: "password";
|
|
188
|
-
readonly pause: "pause";
|
|
189
|
-
readonly pauseFilled: "pause-filled";
|
|
190
|
-
readonly payload: "payload";
|
|
191
|
-
readonly pencil: "pencil";
|
|
192
|
-
readonly pipeline: "pipeline";
|
|
193
|
-
readonly play: "play";
|
|
194
|
-
readonly playFilled: "play-filled";
|
|
195
|
-
readonly postgres: "postgres";
|
|
196
|
-
readonly qrCode: "qr-code";
|
|
197
|
-
readonly queryEngine: "query-engine";
|
|
198
|
-
readonly reload: "reload";
|
|
199
|
-
readonly removeUser: "remove-user";
|
|
200
|
-
readonly repair: "repair";
|
|
201
|
-
readonly restart: "restart";
|
|
202
|
-
readonly rightArrow: "right-arrow";
|
|
203
|
-
readonly rightArrowLong: "right-arrow-long";
|
|
204
|
-
readonly runs: "runs";
|
|
205
|
-
readonly save: "save";
|
|
206
|
-
readonly scheduled: "scheduled";
|
|
207
|
-
readonly scheduledDelete: "scheduled-delete";
|
|
208
|
-
readonly search: "search";
|
|
209
|
-
readonly searchDatasets: "search-datasets";
|
|
210
|
-
readonly searchEngine: "search-engine-core";
|
|
211
|
-
readonly secure: "secure";
|
|
212
|
-
readonly send: "send";
|
|
213
|
-
readonly server: "server";
|
|
214
|
-
readonly settings: "settings";
|
|
215
|
-
readonly share: "share";
|
|
216
|
-
readonly shield: "shield";
|
|
217
|
-
readonly showPassword: "show-password";
|
|
218
|
-
readonly signature: "signature";
|
|
219
|
-
readonly slideLeft: "slide-left";
|
|
220
|
-
readonly slideRight: "slide-right";
|
|
221
|
-
readonly smtp: "smtp";
|
|
222
|
-
readonly sort: "sort";
|
|
223
|
-
readonly sortAsc: "sort-ascending";
|
|
224
|
-
readonly sortDesc: "sort-descending";
|
|
225
|
-
readonly sparkles: "sparkles";
|
|
226
|
-
readonly spinner: "spinner";
|
|
227
|
-
readonly sqlServer: "sql-server";
|
|
228
|
-
readonly statistic: "statistic";
|
|
229
|
-
readonly stop: "stop";
|
|
230
|
-
readonly stopFilled: "stop-filled";
|
|
231
|
-
readonly stream: "stream";
|
|
232
|
-
readonly switchRole: "switch-role";
|
|
233
|
-
readonly sync: "sync";
|
|
234
|
-
readonly table: "table";
|
|
235
|
-
readonly tableLayout: "table-layout";
|
|
236
|
-
readonly tablePivot: "table-pivot";
|
|
237
|
-
readonly tag: "tag";
|
|
238
|
-
readonly tags: "tags";
|
|
239
|
-
readonly tagsAdd: "tags-add";
|
|
240
|
-
readonly tagsRemove: "tags-remove";
|
|
241
|
-
readonly task: "task";
|
|
242
|
-
readonly tenant: "tenant";
|
|
243
|
-
readonly terminal: "terminal";
|
|
244
|
-
readonly time: "time";
|
|
245
|
-
readonly timesCircle: "times-circle";
|
|
246
|
-
readonly timesCircleFilled: "times-circle-filled";
|
|
247
|
-
readonly translate: "translate";
|
|
248
|
-
readonly tree: "tree";
|
|
249
|
-
readonly upArrow: "up-arrow";
|
|
250
|
-
readonly upArrowLong: "up-arrow-long";
|
|
251
|
-
readonly upload: "upload";
|
|
252
|
-
readonly usageByService: "usage-by-service";
|
|
253
|
-
readonly user: "user";
|
|
254
|
-
readonly userAgreements: "user-agreements";
|
|
255
|
-
readonly username: "username";
|
|
256
|
-
readonly video: "video";
|
|
257
|
-
readonly vMenu: "v-menu";
|
|
258
|
-
readonly vMenuFilled: "v-menu-filled";
|
|
259
|
-
readonly widgetGroup: "widget-group";
|
|
260
|
-
readonly workflow: "workflow";
|
|
261
|
-
readonly zoomIn: "zoom-in";
|
|
262
|
-
readonly zoomOut: "zoom-out";
|
|
263
|
-
};
|
|
264
|
-
export type IconType = (typeof iconList)[keyof typeof iconList];
|
|
265
|
-
export declare const icons: {
|
|
266
|
-
[key in IconType]: IIconDetails;
|
|
267
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
export type AvatarSize = "sm" | "md" | "lg" | "xl";
|
|
3
|
-
export type AvatarProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Label for the Avatar
|
|
6
|
-
*/
|
|
7
|
-
label: string;
|
|
8
|
-
/**
|
|
9
|
-
* If true, the label will be abbreviated to its initials
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
abbreviate?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* If defined, an image is displayed instead of the label.
|
|
15
|
-
*/
|
|
16
|
-
img?: string;
|
|
17
|
-
/**
|
|
18
|
-
* Size of the Avatar
|
|
19
|
-
* @default md
|
|
20
|
-
*/
|
|
21
|
-
size?: AvatarSize;
|
|
22
|
-
/**
|
|
23
|
-
* Overwrite the styles for the Avatar by passing space separated class names
|
|
24
|
-
*/
|
|
25
|
-
className?: string;
|
|
26
|
-
};
|
|
27
|
-
export declare const Avatar: ({ label, abbreviate, img, size, className }: AvatarProps) => ReactElement | null;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { AvatarProps as AvatarCompProps } from "../avatar";
|
|
3
|
-
type AvatarProps = Omit<AvatarCompProps, "size">;
|
|
4
|
-
export interface AvatarGroupProps {
|
|
5
|
-
/**
|
|
6
|
-
* Accept children
|
|
7
|
-
*/
|
|
8
|
-
children: ReactElement<AvatarProps> | Array<ReactElement<AvatarProps>>;
|
|
9
|
-
/**
|
|
10
|
-
* Callback to be called when the AvatarGroup is clicked
|
|
11
|
-
*/
|
|
12
|
-
onClick?: () => void;
|
|
13
|
-
/**
|
|
14
|
-
* Maximum items to display in the group before the custom avatar is shown
|
|
15
|
-
* @default 4
|
|
16
|
-
*/
|
|
17
|
-
maxItems?: number;
|
|
18
|
-
/**
|
|
19
|
-
* Size of the Avatars
|
|
20
|
-
* @default md
|
|
21
|
-
*/
|
|
22
|
-
size?: AvatarCompProps["size"];
|
|
23
|
-
/**
|
|
24
|
-
* Overwrite the styles for the AvatarGroup by passing space separated class names
|
|
25
|
-
*/
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
export declare const AvatarGroup: {
|
|
29
|
-
({ size, maxItems, className, children, onClick }: AvatarGroupProps): ReactElement | null;
|
|
30
|
-
Item: ({ label, abbreviate, img, size, className }: AvatarCompProps) => ReactElement | null;
|
|
31
|
-
};
|
|
32
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes, ReactElement, ReactNode } from "react";
|
|
2
|
-
import { type IconType } from "../adpIcon";
|
|
3
|
-
type IBadgeSize = "sm" | "md" | "lg";
|
|
4
|
-
export interface IBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
/**
|
|
6
|
-
* Size of the badge
|
|
7
|
-
* @default md
|
|
8
|
-
*/
|
|
9
|
-
size?: IBadgeSize;
|
|
10
|
-
/**
|
|
11
|
-
* Variants for the badge
|
|
12
|
-
* @default filled
|
|
13
|
-
*/
|
|
14
|
-
variant?: "filled" | "outline" | "text" | "ghost";
|
|
15
|
-
/**
|
|
16
|
-
* Color of the Badge to be rendered
|
|
17
|
-
* @default primary
|
|
18
|
-
*/
|
|
19
|
-
color?: "primary" | "secondary" | "success" | "warning" | "error";
|
|
20
|
-
/**
|
|
21
|
-
* Accepts children of ReactNode type
|
|
22
|
-
*/
|
|
23
|
-
label?: ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
* Pass space separated class names to override the Badge styling
|
|
26
|
-
*/
|
|
27
|
-
className?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Icon to be displayed before the Badge's content.
|
|
30
|
-
* @description
|
|
31
|
-
* This prop accepts either an IconType (string) or a ReactNode.
|
|
32
|
-
* - If an IconType is provided, it will render an ADPIcon component.
|
|
33
|
-
* - If a ReactNode is provided, it will be rendered as-is.
|
|
34
|
-
*/
|
|
35
|
-
prefixIcon?: IconType | ReactNode;
|
|
36
|
-
/**
|
|
37
|
-
* Icon to be displayed after the Badge's content.
|
|
38
|
-
* @description
|
|
39
|
-
* This prop accepts either an IconType (string) or a ReactNode.
|
|
40
|
-
* - If an IconType is provided, it will render an ADPIcon component.
|
|
41
|
-
* - If a ReactNode is provided, it will be rendered as-is.
|
|
42
|
-
*/
|
|
43
|
-
suffixIcon?: IconType | ReactNode;
|
|
44
|
-
}
|
|
45
|
-
export declare const Badge: ({ size, variant, color, label, className, prefixIcon, suffixIcon, ...restProps }: IBadgeProps) => ReactElement | null;
|
|
46
|
-
export {};
|