@digital-ai/dot-components 2.19.1 → 2.20.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 +1 -2
- package/index.esm.d.ts +1 -0
- package/index.esm.js +1193 -1481
- package/package.json +7 -7
- package/{index.d.ts → src/index.d.ts} +7 -7
- package/src/lib/components/AccessibilityProps.d.ts +1 -0
- package/{lib → src/lib}/components/BaseButtonProps.d.ts +26 -26
- package/{lib → src/lib}/components/CommonProps.d.ts +11 -11
- package/{lib → src/lib}/components/accordion/Accordion.d.ts +28 -28
- package/{lib → src/lib}/components/accordion/Accordion.styles.d.ts +4 -4
- package/{lib → src/lib}/components/action-toolbar/ActionToolbar.d.ts +10 -10
- package/{lib → src/lib}/components/action-toolbar/ActionToolbar.styles.d.ts +2 -2
- package/{lib → src/lib}/components/alert-banner/AlertBanner.d.ts +19 -19
- package/{lib → src/lib}/components/alert-banner/AlertBanner.styles.d.ts +4 -4
- package/{lib → src/lib}/components/app-logo/AppLogo.d.ts +11 -11
- package/{lib → src/lib}/components/app-switcher/AppSwitcher.d.ts +29 -29
- package/{lib → src/lib}/components/app-switcher/AppSwitcher.styles.d.ts +2 -2
- package/{lib → src/lib}/components/app-switcher/utils/helpers.d.ts +26 -26
- package/{lib → src/lib}/components/app-toolbar/AppToolbar.d.ts +49 -49
- package/{lib → src/lib}/components/app-toolbar/AppToolbar.data.d.ts +8 -8
- package/{lib → src/lib}/components/app-toolbar/AppToolbar.styles.d.ts +4 -4
- package/{lib → src/lib}/components/auto-complete/AutoComplete.d.ts +89 -89
- package/{lib → src/lib}/components/auto-complete/AutoComplete.styles.d.ts +5 -5
- package/{lib → src/lib}/components/auto-complete/index.d.ts +4 -4
- package/{lib → src/lib}/components/auto-complete/utils/helpers.d.ts +13 -13
- package/{lib → src/lib}/components/auto-complete/utils/interface.d.ts +17 -17
- package/{lib → src/lib}/components/avatar/Avatar.d.ts +37 -37
- package/{lib → src/lib}/components/avatar/Avatar.styles.d.ts +3 -3
- package/{lib → src/lib}/components/avatar-group/AvatarGroup.d.ts +12 -12
- package/{lib → src/lib}/components/avatar-group/AvatarGroup.styles.d.ts +3 -3
- package/{lib → src/lib}/components/badge/Badge.d.ts +20 -20
- package/{lib → src/lib}/components/badge/Badge.styles.d.ts +6 -6
- package/{lib → src/lib}/components/badge/index.d.ts +1 -1
- package/{lib → src/lib}/components/breadcrumbs/Breadcrumbs.d.ts +25 -25
- package/{lib → src/lib}/components/breadcrumbs/Breadcrumbs.data.d.ts +5 -5
- package/{lib → src/lib}/components/breadcrumbs/Breadcrumbs.styles.d.ts +4 -4
- package/{lib → src/lib}/components/breadcrumbs/utils/helpers.d.ts +25 -25
- package/{lib → src/lib}/components/breadcrumbs/utils/useBreadcrumbsObserver.d.ts +9 -9
- package/{lib → src/lib}/components/breadcrumbs/utils/useBreadcrumbsResizer.d.ts +18 -18
- package/{lib → src/lib}/components/button/Button.d.ts +13 -13
- package/{lib → src/lib}/components/button/Button.styles.d.ts +2 -2
- package/{lib → src/lib}/components/button/CopyButton.d.ts +14 -14
- package/{lib → src/lib}/components/button/CopyButton.styles.d.ts +2 -2
- package/{lib → src/lib}/components/button/IconButton.d.ts +29 -29
- package/{lib → src/lib}/components/button/IconButton.styles.d.ts +2 -2
- package/{lib → src/lib}/components/button/index.d.ts +6 -6
- package/{lib → src/lib}/components/button-toggle/ButtonToggle.d.ts +24 -24
- package/{lib → src/lib}/components/button-toggle/ButtonToggle.styles.d.ts +3 -3
- package/{lib → src/lib}/components/button-toggle/index.d.ts +3 -3
- package/src/lib/components/button-toggle/utils/models.d.ts +13 -0
- package/{lib → src/lib}/components/card/Card.d.ts +7 -7
- package/{lib → src/lib}/components/card/CardContent.d.ts +7 -7
- package/{lib → src/lib}/components/card/CardFooter.d.ts +7 -7
- package/{lib → src/lib}/components/card/CardFooter.styles.d.ts +2 -2
- package/{lib → src/lib}/components/card/CardHeader.d.ts +19 -19
- package/{lib → src/lib}/components/carousel/Carousel.d.ts +31 -31
- package/{lib → src/lib}/components/carousel/Carousel.styles.d.ts +6 -6
- package/{lib → src/lib}/components/checkbox/Checkbox.d.ts +12 -12
- package/{lib → src/lib}/components/checkbox/Checkbox.styles.d.ts +3 -3
- package/{lib → src/lib}/components/checkbox/CheckboxGroup.d.ts +16 -16
- package/{lib → src/lib}/components/checkbox/CheckboxGroup.styles.d.ts +5 -5
- package/{lib → src/lib}/components/chip/Chip.d.ts +29 -29
- package/{lib → src/lib}/components/chip/Chip.styles.d.ts +2 -2
- package/{lib → src/lib}/components/click-away-listener/ClickAwayListener.d.ts +10 -10
- package/{lib → src/lib}/components/click-away-listener/index.d.ts +2 -2
- package/{lib → src/lib}/components/compareSize.d.ts +1 -1
- package/{lib → src/lib}/components/confirmation-dialog/ConfirmationDialog.d.ts +20 -20
- package/{lib → src/lib}/components/core-api/CancelablePromise.d.ts +7 -7
- package/{lib → src/lib}/components/core-api/CoreApiProvider.d.ts +23 -23
- package/{lib → src/lib}/components/core-api/openapi/core/ApiError.d.ts +8 -8
- package/{lib → src/lib}/components/core-api/openapi/core/ApiRequestOptions.d.ts +12 -12
- package/{lib → src/lib}/components/core-api/openapi/core/ApiResult.d.ts +7 -7
- package/{lib → src/lib}/components/core-api/openapi/core/OpenAPI.d.ts +15 -15
- package/{lib → src/lib}/components/core-api/openapi/core/request.d.ts +9 -9
- package/{lib → src/lib}/components/core-api/openapi/index.d.ts +12 -12
- package/{lib → src/lib}/components/core-api/openapi/models/AccountModel.d.ts +50 -50
- package/{lib → src/lib}/components/core-api/openapi/models/AccountModelWrapper.d.ts +4 -4
- package/{lib → src/lib}/components/core-api/openapi/models/AccountModelsWrapper.d.ts +6 -6
- package/{lib → src/lib}/components/core-api/openapi/models/ApplicationInstanceStates.d.ts +4 -4
- package/{lib → src/lib}/components/core-api/openapi/models/ApplicationModel.d.ts +67 -67
- package/{lib → src/lib}/components/core-api/openapi/models/ApplicationModelWrapper.d.ts +4 -4
- package/{lib → src/lib}/components/core-api/openapi/models/ApplicationModelsWrapper.d.ts +6 -6
- package/{lib → src/lib}/components/core-api/openapi/models/PaginationModel.d.ts +22 -22
- package/{lib → src/lib}/components/core-api/openapi/services/AccountsService.d.ts +25 -25
- package/{lib → src/lib}/components/core-api/openapi/services/ApplicationsService.d.ts +38 -38
- package/{lib → src/lib}/components/createUUID.d.ts +1 -1
- package/{lib → src/lib}/components/css-grid/CssCell.d.ts +42 -42
- package/{lib → src/lib}/components/css-grid/CssGrid.d.ts +37 -37
- package/{lib → src/lib}/components/css-grid/CssGridDebug.d.ts +4 -4
- package/{lib → src/lib}/components/date-picker/DatePicker.d.ts +83 -83
- package/{lib → src/lib}/components/date-picker/DatePicker.styles.d.ts +11 -11
- package/{lib → src/lib}/components/date-picker/index.d.ts +5 -5
- package/{lib → src/lib}/components/date-picker/utils/helpers.d.ts +5 -5
- package/{lib → src/lib}/components/date-picker/utils/models.d.ts +43 -43
- package/{lib → src/lib}/components/dialog/Dialog.d.ts +42 -42
- package/{lib → src/lib}/components/dialog/Dialog.styles.d.ts +3 -3
- package/{lib → src/lib}/components/divider/Divider.d.ts +16 -16
- package/{lib → src/lib}/components/divider/Divider.styles.d.ts +2 -2
- package/{lib → src/lib}/components/divider/index.d.ts +1 -1
- package/{lib → src/lib}/components/draggable-list/DraggableList.d.ts +23 -23
- package/{lib → src/lib}/components/draggable-list/DraggableList.styles.d.ts +8 -8
- package/{lib → src/lib}/components/draggable-list/index.d.ts +2 -2
- package/{lib → src/lib}/components/draggable-list/utils/helpers.d.ts +5 -5
- package/{lib → src/lib}/components/draggable-list/utils/models.d.ts +5 -5
- package/{lib → src/lib}/components/drawer/Drawer.d.ts +45 -45
- package/{lib → src/lib}/components/drawer/Drawer.styles.d.ts +4 -4
- package/{lib → src/lib}/components/drawer/DrawerBody.d.ts +9 -9
- package/{lib → src/lib}/components/drawer/DrawerBody.styles.d.ts +2 -2
- package/{lib → src/lib}/components/drawer/DrawerFooter.d.ts +6 -6
- package/{lib → src/lib}/components/drawer/DrawerFooter.styles.d.ts +2 -2
- package/{lib → src/lib}/components/drawer/DrawerHeader.d.ts +8 -8
- package/{lib → src/lib}/components/drawer/DrawerHeader.styles.d.ts +2 -2
- package/{lib → src/lib}/components/dynamic-form/DynamicForm.d.ts +10 -10
- package/{lib → src/lib}/components/dynamic-form/DynamicForm.styles.d.ts +2 -2
- package/{lib → src/lib}/components/dynamic-form/constants.d.ts +4 -4
- package/{lib → src/lib}/components/dynamic-form/models.d.ts +81 -81
- package/{lib → src/lib}/components/dynamic-form/sample.spec.data.d.ts +22 -22
- package/{lib → src/lib}/components/dynamic-form/utils/formHelpers.d.ts +38 -38
- package/{lib → src/lib}/components/dynamic-form/utils/helpers.d.ts +6 -6
- package/{lib → src/lib}/components/dynamic-form/utils/validation.d.ts +25 -25
- package/{lib → src/lib}/components/empty-state/EmptyState.d.ts +15 -15
- package/{lib → src/lib}/components/empty-state/EmptyState.styles.d.ts +2 -2
- package/{lib → src/lib}/components/file-upload/FileListItem.d.ts +17 -17
- package/src/lib/components/file-upload/FileListItem.styles.d.ts +13 -0
- package/{lib → src/lib}/components/file-upload/FileUpload.d.ts +37 -37
- package/{lib → src/lib}/components/file-upload/FileUpload.styles.d.ts +6 -6
- package/{lib → src/lib}/components/file-upload/index.d.ts +6 -6
- package/src/lib/components/file-upload/uploadHelpers.d.ts +12 -0
- package/{lib → src/lib}/components/file-upload/utils/helpers.d.ts +25 -25
- package/{lib → src/lib}/components/file-upload/utils/models.d.ts +35 -35
- package/{lib → src/lib}/components/form/Form.d.ts +9 -9
- package/{lib → src/lib}/components/form/Form.styles.d.ts +2 -2
- package/{lib → src/lib}/components/form-controls/FormControl.styles.d.ts +6 -6
- package/{lib → src/lib}/components/form-controls/FormControlLabel.styles.d.ts +3 -3
- package/{lib → src/lib}/components/form-group/FormGroup.d.ts +9 -9
- package/{lib → src/lib}/components/form-group/FormGroup.styles.d.ts +3 -3
- package/{lib → src/lib}/components/helpers.d.ts +13 -13
- package/{lib → src/lib}/components/icon/Icon.d.ts +11 -11
- package/{lib → src/lib}/components/icon/Icon.styles.d.ts +5 -5
- package/{lib → src/lib}/components/index.d.ts +109 -106
- package/{lib → src/lib}/components/inline-edit/InlineEdit.d.ts +39 -39
- package/{lib → src/lib}/components/inline-edit/InlineEdit.styles.d.ts +13 -13
- package/{lib → src/lib}/components/inline-edit/index.d.ts +3 -3
- package/{lib → src/lib}/components/inline-edit/utils/helpers.d.ts +6 -6
- package/{lib → src/lib}/components/inline-edit/utils/models.d.ts +13 -13
- package/{lib → src/lib}/components/input-form-fields/InputFormFields.propTypes.d.ts +67 -67
- package/{lib → src/lib}/components/input-form-fields/InputFormFields.styles.d.ts +14 -14
- package/{lib → src/lib}/components/input-form-fields/InputLabel.d.ts +17 -17
- package/{lib → src/lib}/components/input-form-fields/InputSelect.d.ts +15 -15
- package/{lib → src/lib}/components/input-form-fields/InputText.d.ts +34 -34
- package/{lib → src/lib}/components/input-form-fields/common.styles.d.ts +5 -5
- package/{lib → src/lib}/components/linear-progress/LinearProgress.d.ts +14 -14
- package/{lib → src/lib}/components/linear-progress/LinearProgress.styles.d.ts +3 -3
- package/{lib → src/lib}/components/linear-progress/index.d.ts +2 -2
- package/{lib → src/lib}/components/link/Link.d.ts +30 -30
- package/{lib → src/lib}/components/link/Link.styles.d.ts +2 -2
- package/{lib → src/lib}/components/list/List.d.ts +2 -2
- package/{lib → src/lib}/components/list/List.styles.d.ts +5 -5
- package/{lib → src/lib}/components/list/ListDivider.d.ts +7 -7
- package/{lib → src/lib}/components/list/ListItem.d.ts +2 -2
- package/{lib → src/lib}/components/list/ListItem.styles.d.ts +6 -6
- package/{lib → src/lib}/components/list/NestedList.d.ts +2 -2
- package/{lib → src/lib}/components/list/NestedList.styles.d.ts +1 -1
- package/{lib → src/lib}/components/list/index.d.ts +2 -2
- package/{lib → src/lib}/components/list/utils/helpers.d.ts +3 -3
- package/{lib → src/lib}/components/list/utils/models.d.ts +88 -88
- package/{lib → src/lib}/components/menu/Menu.d.ts +50 -50
- package/{lib → src/lib}/components/menu/Menu.styles.d.ts +18 -18
- package/{lib → src/lib}/components/menu/MenuList.d.ts +26 -26
- package/{lib → src/lib}/components/menu/MenuList.styles.d.ts +4 -4
- package/{lib → src/lib}/components/menu/utils/constants.d.ts +3 -3
- package/{lib → src/lib}/components/menu/utils/helpers.d.ts +16 -16
- package/{lib → src/lib}/components/navigation-rail/NavigationRail.d.ts +25 -25
- package/{lib → src/lib}/components/navigation-rail/NavigationRail.styles.d.ts +6 -6
- package/{lib → src/lib}/components/navigation-rail/index.d.ts +2 -2
- package/{lib → src/lib}/components/pill/Pill.d.ts +24 -24
- package/{lib → src/lib}/components/pill/Pill.styles.d.ts +3 -3
- package/{lib → src/lib}/components/popper/Popper.d.ts +33 -33
- package/{lib → src/lib}/components/popper/Popper.data.d.ts +7 -7
- package/{lib → src/lib}/components/popper/Popper.styles.d.ts +12 -12
- package/{lib → src/lib}/components/popper/index.d.ts +2 -2
- package/{lib → src/lib}/components/progress/Progress.d.ts +18 -18
- package/{lib → src/lib}/components/progress/Progress.styles.d.ts +3 -3
- package/{lib → src/lib}/components/progress/index.d.ts +2 -2
- package/{lib → src/lib}/components/progress-button/ProgressButton.d.ts +8 -8
- package/{lib → src/lib}/components/progress-button/ProgressButton.styles.d.ts +3 -3
- package/{lib → src/lib}/components/radio/RadioButton.d.ts +31 -31
- package/{lib → src/lib}/components/radio/RadioButton.styles.d.ts +3 -3
- package/{lib → src/lib}/components/radio/RadioGroup.d.ts +29 -29
- package/{lib → src/lib}/components/radio/RadioGroup.styles.d.ts +6 -6
- package/{lib → src/lib}/components/search-input/SearchInput.d.ts +11 -11
- package/{lib → src/lib}/components/search-input/SearchInput.styles.d.ts +2 -2
- package/{lib → src/lib}/components/sidebar/Sidebar.d.ts +49 -49
- package/{lib → src/lib}/components/sidebar/Sidebar.styles.d.ts +2 -2
- package/{lib → src/lib}/components/skeleton/Skeleton.d.ts +14 -14
- package/{lib → src/lib}/components/skeleton/Skeleton.styles.d.ts +2 -2
- package/{lib → src/lib}/components/snackbar/Snackbar.d.ts +21 -21
- package/{lib → src/lib}/components/snackbar/Snackbar.styles.d.ts +8 -8
- package/{lib → src/lib}/components/snackbar/SnackbarContainer.styles.d.ts +2 -2
- package/{lib → src/lib}/components/snackbar/SnackbarHelper.d.ts +2 -2
- package/{lib → src/lib}/components/snackbar/SnackbarProvider.d.ts +21 -21
- package/{lib → src/lib}/components/snackbar/index.d.ts +4 -4
- package/{lib → src/lib}/components/split-button/SplitButton.d.ts +15 -15
- package/{lib → src/lib}/components/split-button/SplitButton.styles.d.ts +3 -3
- package/{lib → src/lib}/components/split-button/utils/helpers.d.ts +2 -2
- package/{lib → src/lib}/components/stepper/Stepper.d.ts +64 -64
- package/{lib → src/lib}/components/stepper/Stepper.styles.d.ts +15 -15
- package/{lib → src/lib}/components/switch/Switch.d.ts +26 -26
- package/{lib → src/lib}/components/switch/Switch.styles.d.ts +3 -3
- package/{lib → src/lib}/components/switch/index.d.ts +2 -2
- package/{lib → src/lib}/components/table/Table.d.ts +10 -10
- package/{lib → src/lib}/components/table/Table.data.d.ts +42 -42
- package/{lib → src/lib}/components/table/Table.styles.d.ts +4 -4
- package/{lib → src/lib}/components/table/TableAction.d.ts +12 -12
- package/{lib → src/lib}/components/table/TableActions.d.ts +7 -7
- package/{lib → src/lib}/components/table/TableActions.styles.d.ts +3 -3
- package/{lib → src/lib}/components/table/TableBody.d.ts +29 -29
- package/{lib → src/lib}/components/table/TableBody.styles.d.ts +2 -2
- package/{lib → src/lib}/components/table/TableBodyCheckboxCell.d.ts +8 -8
- package/{lib → src/lib}/components/table/TableBodyCheckboxCell.styles.d.ts +3 -3
- package/{lib → src/lib}/components/table/TableCell.d.ts +19 -19
- package/{lib → src/lib}/components/table/TableCell.styles.d.ts +3 -3
- package/{lib → src/lib}/components/table/TableDataWithPagination.d.ts +11 -11
- package/{lib → src/lib}/components/table/TableHeader.d.ts +6 -6
- package/{lib → src/lib}/components/table/TableHeaderCell.d.ts +36 -36
- package/{lib → src/lib}/components/table/TableHeaderCell.styles.d.ts +3 -3
- package/{lib → src/lib}/components/table/TableHeaderCheckboxCell.d.ts +8 -8
- package/{lib → src/lib}/components/table/TableHeaderCheckboxCell.styles.d.ts +3 -3
- package/{lib → src/lib}/components/table/TablePagination.d.ts +25 -25
- package/{lib → src/lib}/components/table/TablePagination.styles.d.ts +7 -7
- package/{lib → src/lib}/components/table/TableRow.d.ts +30 -30
- package/{lib → src/lib}/components/table/TableRow.styles.d.ts +2 -2
- package/{lib → src/lib}/components/table/TableRowEmpty.d.ts +7 -7
- package/{lib → src/lib}/components/table/TableSelectionToolbar.d.ts +8 -8
- package/{lib → src/lib}/components/table/TableSelectionToolbar.styles.d.ts +2 -2
- package/{lib → src/lib}/components/table/collapsible-table/CollapsibleTable.d.ts +2 -2
- package/{lib → src/lib}/components/table/collapsible-table/CollapsibleTable.styles.d.ts +2 -2
- package/{lib → src/lib}/components/table/collapsible-table/CollapsibleTableBody.d.ts +2 -2
- package/{lib → src/lib}/components/table/collapsible-table/ExpandCollapseCell.d.ts +3 -3
- package/{lib → src/lib}/components/table/collapsible-table/ExpandCollapseCell.styles.d.ts +3 -3
- package/{lib → src/lib}/components/table/collapsible-table/index.d.ts +4 -4
- package/{lib → src/lib}/components/table/collapsible-table/interfaces.d.ts +43 -43
- package/{lib → src/lib}/components/table/index.d.ts +13 -13
- package/{lib → src/lib}/components/table/utils/helpers.d.ts +9 -9
- package/{lib → src/lib}/components/table/utils/interfaces.d.ts +87 -87
- package/{lib → src/lib}/components/table/utils/models.d.ts +25 -25
- package/{lib → src/lib}/components/tabs/Tabs.d.ts +31 -31
- package/{lib → src/lib}/components/tabs/Tabs.styles.d.ts +2 -2
- package/{lib → src/lib}/components/time-picker/TimePicker.d.ts +63 -63
- package/{lib → src/lib}/components/time-picker/TimePicker.styles.d.ts +7 -7
- package/{lib → src/lib}/components/time-picker/index.d.ts +3 -3
- package/{lib → src/lib}/components/time-picker/utils/helpers.d.ts +18 -18
- package/{lib → src/lib}/components/time-picker/utils/models.d.ts +4 -4
- package/{lib → src/lib}/components/tooltip/Tooltip.d.ts +14 -14
- package/{lib → src/lib}/components/truncate-with-tooltip/TruncateWithTooltip.d.ts +9 -9
- package/{lib → src/lib}/components/truncate-with-tooltip/TruncateWithTooltip.styles.d.ts +3 -3
- package/{lib → src/lib}/components/truncate-with-tooltip/index.d.ts +2 -2
- package/{lib → src/lib}/components/truncate-with-tooltip/utils/helpers.d.ts +3 -3
- package/{lib → src/lib}/components/typography/Typography.d.ts +18 -18
- package/{lib → src/lib}/components/useStylesWithRootClass.d.ts +1 -1
- package/{lib → src/lib}/fonts/fonts.d.ts +1 -1
- package/{lib → src/lib}/theme-provider/ThemeProvider.d.ts +32 -32
- package/{lib → src/lib}/theme-provider/colors/agility-dark-theme-colors.d.ts +9 -9
- package/{lib → src/lib}/theme-provider/colors/agility-light-theme-colors.d.ts +11 -11
- package/{lib → src/lib}/theme-provider/colors/figma-colors.d.ts +3 -3
- package/{lib → src/lib}/theme-provider/colors/light-theme-colors.d.ts +104 -104
- package/{lib → src/lib}/theme-provider/common/variables.d.ts +6 -6
- package/{lib → src/lib}/theme-provider/interfaces.d.ts +198 -198
- package/index.umd.js +0 -12351
- package/lib/components/AccessibilityProps.d.ts +0 -1
- package/lib/components/button-toggle/utils/models.d.ts +0 -13
- package/lib/components/file-upload/FileListItem.styles.d.ts +0 -42
- package/lib/components/file-upload/uploadHelpers.d.ts +0 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digital-ai/dot-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.20.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "SEE LICENSE IN <LICENSE.md>",
|
|
6
6
|
"contributors": [
|
|
@@ -11,9 +11,8 @@
|
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "git://github.com/digital-ai/dot-components.git"
|
|
13
13
|
},
|
|
14
|
-
"main": "./index.
|
|
15
|
-
"
|
|
16
|
-
"typings": "./index.d.ts",
|
|
14
|
+
"main": "./index.esm.js",
|
|
15
|
+
"typings": "./index.esm.d.ts",
|
|
17
16
|
"description": "A component library the follows the Dot Design System",
|
|
18
17
|
"bugs": {
|
|
19
18
|
"url": "https://github.com/digital-ai/dot-components/issues"
|
|
@@ -51,7 +50,8 @@
|
|
|
51
50
|
"styled-components": "^5.2.1"
|
|
52
51
|
},
|
|
53
52
|
"peerDependencies": {
|
|
54
|
-
"react": "^17.0.2 || ^18.0.0"
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
"react": "^17.0.2 || ^18.0.0"
|
|
54
|
+
},
|
|
55
|
+
"module": "./index.esm.js",
|
|
56
|
+
"type": "module"
|
|
57
57
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './lib/components';
|
|
2
|
-
export * as lightColors from './lib/theme-provider/colors/light-theme-colors';
|
|
3
|
-
export * from './lib/theme-provider/colors/figma-colors';
|
|
4
|
-
export * as themeVariables from './lib/theme-provider/common/variables';
|
|
5
|
-
export type { ThemeProviderProps } from './lib/theme-provider/ThemeProvider';
|
|
6
|
-
export { avatarColors, DotThemeProvider, typographyOptions, } from './lib/theme-provider/ThemeProvider';
|
|
7
|
-
export * from './lib/theme-provider/interfaces';
|
|
1
|
+
export * from './lib/components';
|
|
2
|
+
export * as lightColors from './lib/theme-provider/colors/light-theme-colors';
|
|
3
|
+
export * from './lib/theme-provider/colors/figma-colors';
|
|
4
|
+
export * as themeVariables from './lib/theme-provider/common/variables';
|
|
5
|
+
export type { ThemeProviderProps } from './lib/theme-provider/ThemeProvider';
|
|
6
|
+
export { avatarColors, DotThemeProvider, typographyOptions, } from './lib/theme-provider/ThemeProvider';
|
|
7
|
+
export * from './lib/theme-provider/interfaces';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AriaRoles = 'alert' | 'alertdialog' | 'application' | 'article' | 'banner' | 'button' | 'cell' | 'checkbox' | 'columnheader' | 'combobox' | 'complementary' | 'contentinfo' | 'definition' | 'dialog' | 'directory' | 'document' | 'feed' | 'figure' | 'form' | 'grid' | 'gridcell' | 'group' | 'heading' | 'img' | 'input' | 'link' | 'list' | 'listbox' | 'listitem' | 'log' | 'main' | 'marquee' | 'math' | 'menu' | 'menubar' | 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'navigation' | 'note' | 'option' | 'presentation' | 'progressbar' | 'radio' | 'radiogroup' | 'region' | 'row' | 'rowgroup' | 'rowheader' | 'scrollbar' | 'search' | 'searchbox' | 'separator' | 'slider' | 'spinbutton' | 'status' | 'switch' | 'tab' | 'table' | 'tablist' | 'tabpanel' | 'term' | 'textbox' | 'timer' | 'toolbar' | 'tooltip' | 'tree' | 'treegrid' | 'treeitem';
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { MouseEvent, KeyboardEvent } from 'react';
|
|
2
|
-
import { CommonProps } from './CommonProps';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export interface BaseButtonProps extends CommonProps {
|
|
6
|
-
/** If true, the button will be focused **/
|
|
7
|
-
autoFocus?: boolean;
|
|
8
|
-
/** If true, the ripple effect will be disabled. */
|
|
9
|
-
disableRipple?: boolean;
|
|
10
|
-
/** If true, the button will be disabled. */
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
/** If true, the button will take up the full width of its container. */
|
|
13
|
-
fullWidth?: boolean;
|
|
14
|
-
/** Is this a submit button */
|
|
15
|
-
isSubmit?: boolean;
|
|
16
|
-
/** Event callback */
|
|
17
|
-
onClick?: (event: MouseEvent<Element> | KeyboardEvent<Element>) => void;
|
|
18
|
-
/** The size of the button */
|
|
19
|
-
size?: ButtonSize;
|
|
20
|
-
/** Tab order for the button. */
|
|
21
|
-
tabIndex?: number;
|
|
22
|
-
/** Help text to be displayed on hover */
|
|
23
|
-
tooltip?: string;
|
|
24
|
-
/** The type of button */
|
|
25
|
-
type?: ButtonType;
|
|
26
|
-
}
|
|
1
|
+
import { MouseEvent, KeyboardEvent } from 'react';
|
|
2
|
+
import { CommonProps } from './CommonProps';
|
|
3
|
+
export type ButtonType = 'destructive' | 'primary' | 'outlined' | 'text';
|
|
4
|
+
export type ButtonSize = 'small' | 'medium' | 'large';
|
|
5
|
+
export interface BaseButtonProps extends CommonProps {
|
|
6
|
+
/** If true, the button will be focused **/
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
/** If true, the ripple effect will be disabled. */
|
|
9
|
+
disableRipple?: boolean;
|
|
10
|
+
/** If true, the button will be disabled. */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** If true, the button will take up the full width of its container. */
|
|
13
|
+
fullWidth?: boolean;
|
|
14
|
+
/** Is this a submit button */
|
|
15
|
+
isSubmit?: boolean;
|
|
16
|
+
/** Event callback */
|
|
17
|
+
onClick?: (event: MouseEvent<Element> | KeyboardEvent<Element>) => void;
|
|
18
|
+
/** The size of the button */
|
|
19
|
+
size?: ButtonSize;
|
|
20
|
+
/** Tab order for the button. */
|
|
21
|
+
tabIndex?: number;
|
|
22
|
+
/** Help text to be displayed on hover */
|
|
23
|
+
tooltip?: string;
|
|
24
|
+
/** The type of button */
|
|
25
|
+
type?: ButtonType;
|
|
26
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AriaRoles } from './AccessibilityProps';
|
|
2
|
-
export interface CommonProps {
|
|
3
|
-
/** Defines a string value that labels the current element **/
|
|
4
|
-
ariaLabel?: string;
|
|
5
|
-
/** The ARIA role attribute of the element **/
|
|
6
|
-
ariaRole?: AriaRoles;
|
|
7
|
-
/** classes to be attributed to the root of the component */
|
|
8
|
-
className?: string;
|
|
9
|
-
/** data attribute passed through for testing purposes ONLY */
|
|
10
|
-
'data-testid'?: string;
|
|
11
|
-
}
|
|
1
|
+
import { AriaRoles } from './AccessibilityProps';
|
|
2
|
+
export interface CommonProps {
|
|
3
|
+
/** Defines a string value that labels the current element **/
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
/** The ARIA role attribute of the element **/
|
|
6
|
+
ariaRole?: AriaRoles;
|
|
7
|
+
/** classes to be attributed to the root of the component */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** data attribute passed through for testing purposes ONLY */
|
|
10
|
+
'data-testid'?: string;
|
|
11
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ChangeEvent, ReactNode } from 'react';
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
export interface AccordionProps extends CommonProps {
|
|
4
|
-
/** actionable components (ex: checkbox, button) that can be nested within the expanded Accordion component */
|
|
5
|
-
actions?: ReactNode;
|
|
6
|
-
/** The content for the Accordion.*/
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
/** If true, the accordion will be displayed in a disabled state. */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
/** If true, the accordion is expanded. */
|
|
11
|
-
expanded?: boolean;
|
|
12
|
-
/** If true, the Accordion will have elevation. */
|
|
13
|
-
hasElevation?: boolean;
|
|
14
|
-
/** If true, the text will wrap and not be truncated */
|
|
15
|
-
noWrap?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
Callback fired when the expand/collapse state is changed.
|
|
18
|
-
If provided, the accordion will be a controlled component and it will be the responsibility of the consumer to manage the 'expanded' state.
|
|
19
|
-
*/
|
|
20
|
-
onChange?: (event: ChangeEvent, expanded: boolean) => void;
|
|
21
|
-
/** If true, rounded corners are disabled. */
|
|
22
|
-
square?: boolean;
|
|
23
|
-
/** Icon placed before the children. */
|
|
24
|
-
startIcon?: ReactNode;
|
|
25
|
-
/** The text within the expanded Accordion */
|
|
26
|
-
summary: ReactNode | string;
|
|
27
|
-
}
|
|
28
|
-
export declare const DotAccordion: ({ actions, ariaLabel, children, className, "data-testid": dataTestId, disabled, expanded, hasElevation, onChange, square, startIcon, summary, noWrap, }: AccordionProps) => JSX.Element;
|
|
1
|
+
import { ChangeEvent, ReactNode } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export interface AccordionProps extends CommonProps {
|
|
4
|
+
/** actionable components (ex: checkbox, button) that can be nested within the expanded Accordion component */
|
|
5
|
+
actions?: ReactNode;
|
|
6
|
+
/** The content for the Accordion.*/
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** If true, the accordion will be displayed in a disabled state. */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** If true, the accordion is expanded. */
|
|
11
|
+
expanded?: boolean;
|
|
12
|
+
/** If true, the Accordion will have elevation. */
|
|
13
|
+
hasElevation?: boolean;
|
|
14
|
+
/** If true, the text will wrap and not be truncated */
|
|
15
|
+
noWrap?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
Callback fired when the expand/collapse state is changed.
|
|
18
|
+
If provided, the accordion will be a controlled component and it will be the responsibility of the consumer to manage the 'expanded' state.
|
|
19
|
+
*/
|
|
20
|
+
onChange?: (event: ChangeEvent, expanded: boolean) => void;
|
|
21
|
+
/** If true, rounded corners are disabled. */
|
|
22
|
+
square?: boolean;
|
|
23
|
+
/** Icon placed before the children. */
|
|
24
|
+
startIcon?: ReactNode;
|
|
25
|
+
/** The text within the expanded Accordion */
|
|
26
|
+
summary: ReactNode | string;
|
|
27
|
+
}
|
|
28
|
+
export declare const DotAccordion: ({ actions, ariaLabel, children, className, "data-testid": dataTestId, disabled, expanded, hasElevation, onChange, square, startIcon, summary, noWrap, }: AccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const rootClassName = "dot-accordion";
|
|
2
|
-
export declare const summaryClassName = "dot-accordion-summary";
|
|
3
|
-
export declare const detailClassName = "dot-accordion-details";
|
|
4
|
-
export declare const StyledAccordion: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").AccordionTypeMap<{}, "div">>, any, {}, never>;
|
|
1
|
+
export declare const rootClassName = "dot-accordion";
|
|
2
|
+
export declare const summaryClassName = "dot-accordion-summary";
|
|
3
|
+
export declare const detailClassName = "dot-accordion-details";
|
|
4
|
+
export declare const StyledAccordion: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").AccordionTypeMap<{}, "div">>, any, {}, never>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
export
|
|
4
|
-
export interface DotActionBarProps extends CommonProps {
|
|
5
|
-
/** string or JSX element that is displayed inside the toolbar */
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
/** DotActionBarVarient dense and regular for toolbar height */
|
|
8
|
-
variant?: DotActionBarVarient;
|
|
9
|
-
}
|
|
10
|
-
export declare const DotActionToolbar: ({ ariaLabel, children, className, "data-testid": dataTestId, variant, }: DotActionBarProps) => JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export type DotActionBarVarient = 'regular' | 'dense';
|
|
4
|
+
export interface DotActionBarProps extends CommonProps {
|
|
5
|
+
/** string or JSX element that is displayed inside the toolbar */
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/** DotActionBarVarient dense and regular for toolbar height */
|
|
8
|
+
variant?: DotActionBarVarient;
|
|
9
|
+
}
|
|
10
|
+
export declare const DotActionToolbar: ({ ariaLabel, children, className, "data-testid": dataTestId, variant, }: DotActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const rootClassName = "dot-action-toolbar";
|
|
2
|
-
export declare const StyledToolbar: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ToolbarTypeMap<{}, "div">>, any, {}, never>;
|
|
1
|
+
export declare const rootClassName = "dot-action-toolbar";
|
|
2
|
+
export declare const StyledToolbar: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").ToolbarTypeMap<{}, "div">>, any, {}, never>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
import { TypographyVariant } from '../typography/Typography';
|
|
4
|
-
export
|
|
5
|
-
export interface AlertBannerProps extends CommonProps {
|
|
6
|
-
/** The action to display. It renders after the message, at the end of the alert */
|
|
7
|
-
action?: ReactNode;
|
|
8
|
-
/** The content of the component */
|
|
9
|
-
children: ReactNode | string;
|
|
10
|
-
/** callback which is triggered when alert banner is closed */
|
|
11
|
-
onClose?: (event: MouseEvent) => void;
|
|
12
|
-
/** If true, the alert banner will have rounded corners */
|
|
13
|
-
roundedCorners?: boolean;
|
|
14
|
-
/** will determine color and icon being used */
|
|
15
|
-
severity: AlertBannerSeverity;
|
|
16
|
-
/** when specified, will control the text that is used inside the alert banner */
|
|
17
|
-
textVariant?: TypographyVariant;
|
|
18
|
-
}
|
|
19
|
-
export declare const DotAlertBanner: ({ action, ariaLabel, children, className, "data-testid": dataTestId, onClose, roundedCorners, severity, textVariant, }: AlertBannerProps) => JSX.Element;
|
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
import { TypographyVariant } from '../typography/Typography';
|
|
4
|
+
export type AlertBannerSeverity = 'error' | 'info' | 'success' | 'warning';
|
|
5
|
+
export interface AlertBannerProps extends CommonProps {
|
|
6
|
+
/** The action to display. It renders after the message, at the end of the alert */
|
|
7
|
+
action?: ReactNode;
|
|
8
|
+
/** The content of the component */
|
|
9
|
+
children: ReactNode | string;
|
|
10
|
+
/** callback which is triggered when alert banner is closed */
|
|
11
|
+
onClose?: (event: MouseEvent) => void;
|
|
12
|
+
/** If true, the alert banner will have rounded corners */
|
|
13
|
+
roundedCorners?: boolean;
|
|
14
|
+
/** will determine color and icon being used */
|
|
15
|
+
severity: AlertBannerSeverity;
|
|
16
|
+
/** when specified, will control the text that is used inside the alert banner */
|
|
17
|
+
textVariant?: TypographyVariant;
|
|
18
|
+
}
|
|
19
|
+
export declare const DotAlertBanner: ({ action, ariaLabel, children, className, "data-testid": dataTestId, onClose, roundedCorners, severity, textVariant, }: AlertBannerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Alert } from '@mui/material';
|
|
2
|
-
import { AlertBannerProps } from './AlertBanner';
|
|
3
|
-
export declare const rootClassName = "dot-alert-banner";
|
|
4
|
-
export declare const StyledAlertBanner: import("styled-components").StyledComponent<typeof Alert, any, AlertBannerProps, never>;
|
|
1
|
+
import { Alert } from '@mui/material';
|
|
2
|
+
import { AlertBannerProps } from './AlertBanner';
|
|
3
|
+
export declare const rootClassName = "dot-alert-banner";
|
|
4
|
+
export declare const StyledAlertBanner: import("styled-components").StyledComponent<typeof Alert, any, AlertBannerProps, never>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
export interface AppLogoProps extends CommonProps {
|
|
4
|
-
/** If provided will display application logo */
|
|
5
|
-
appLogo?: ReactNode;
|
|
6
|
-
/** If provided will display application logo */
|
|
7
|
-
appLogoSmall?: ReactNode;
|
|
8
|
-
/** If true will force the small logo only */
|
|
9
|
-
smallOnly?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const DotAppLogo: ({ appLogo, appLogoSmall, ariaLabel, className, "data-testid": dataTestId, smallOnly, }: AppLogoProps) => JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export interface AppLogoProps extends CommonProps {
|
|
4
|
+
/** If provided will display application logo */
|
|
5
|
+
appLogo?: ReactNode;
|
|
6
|
+
/** If provided will display application logo */
|
|
7
|
+
appLogoSmall?: ReactNode;
|
|
8
|
+
/** If true will force the small logo only */
|
|
9
|
+
smallOnly?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const DotAppLogo: ({ appLogo, appLogoSmall, ariaLabel, className, "data-testid": dataTestId, smallOnly, }: AppLogoProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
2
|
-
import { ApplicationModel } from '../core-api/openapi';
|
|
3
|
-
import { CommonProps } from '../CommonProps';
|
|
4
|
-
interface ActiveAppInfo {
|
|
5
|
-
name: string;
|
|
6
|
-
product?: 'Release' | 'Deploy' | 'Agility' | 'Continuous Testing' | 'Intelligence' | 'Application Protection';
|
|
7
|
-
}
|
|
8
|
-
interface CommonAppSwitcherProps extends CommonProps {
|
|
9
|
-
activeApp: ActiveAppInfo;
|
|
10
|
-
maxRecentInstances?: number;
|
|
11
|
-
noAppTypeLabel?: string;
|
|
12
|
-
onClose?: (event: MouseEvent | KeyboardEvent) => void;
|
|
13
|
-
searchInstancesThreshold?: number;
|
|
14
|
-
yOffset?: number;
|
|
15
|
-
zIndex?: number;
|
|
16
|
-
}
|
|
17
|
-
interface AppSwitcherViewProps extends CommonAppSwitcherProps {
|
|
18
|
-
apps: Partial<ApplicationModel>[];
|
|
19
|
-
open: boolean;
|
|
20
|
-
platformConsoleUrl?: string;
|
|
21
|
-
selectedAppType: string;
|
|
22
|
-
}
|
|
23
|
-
export declare const DotAppSwitcherView: ({ activeApp, apps, className, maxRecentInstances, noAppTypeLabel, platformConsoleUrl, onClose, open, searchInstancesThreshold, selectedAppType, yOffset, zIndex, }: AppSwitcherViewProps) => JSX.Element;
|
|
24
|
-
export interface AppSwitcherProps extends CommonAppSwitcherProps {
|
|
25
|
-
accountId?: string;
|
|
26
|
-
includePlatformConsole?: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare const DotAppSwitcher: ({ accountId, includePlatformConsole, onClose, ...commonProps }: AppSwitcherProps) => JSX.Element;
|
|
29
|
-
export {};
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
2
|
+
import { ApplicationModel } from '../core-api/openapi';
|
|
3
|
+
import { CommonProps } from '../CommonProps';
|
|
4
|
+
interface ActiveAppInfo {
|
|
5
|
+
name: string;
|
|
6
|
+
product?: 'Release' | 'Deploy' | 'Agility' | 'Continuous Testing' | 'Intelligence' | 'Application Protection';
|
|
7
|
+
}
|
|
8
|
+
interface CommonAppSwitcherProps extends CommonProps {
|
|
9
|
+
activeApp: ActiveAppInfo;
|
|
10
|
+
maxRecentInstances?: number;
|
|
11
|
+
noAppTypeLabel?: string;
|
|
12
|
+
onClose?: (event: MouseEvent | KeyboardEvent) => void;
|
|
13
|
+
searchInstancesThreshold?: number;
|
|
14
|
+
yOffset?: number;
|
|
15
|
+
zIndex?: number;
|
|
16
|
+
}
|
|
17
|
+
interface AppSwitcherViewProps extends CommonAppSwitcherProps {
|
|
18
|
+
apps: Partial<ApplicationModel>[];
|
|
19
|
+
open: boolean;
|
|
20
|
+
platformConsoleUrl?: string;
|
|
21
|
+
selectedAppType: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const DotAppSwitcherView: ({ activeApp, apps, className, maxRecentInstances, noAppTypeLabel, platformConsoleUrl, onClose, open, searchInstancesThreshold, selectedAppType, yOffset, zIndex, }: AppSwitcherViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export interface AppSwitcherProps extends CommonAppSwitcherProps {
|
|
25
|
+
accountId?: string;
|
|
26
|
+
includePlatformConsole?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const DotAppSwitcher: ({ accountId, includePlatformConsole, onClose, ...commonProps }: AppSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const rootClassName = "dot-app-switcher";
|
|
2
|
-
export declare const StyledAppSwitcher: import("styled-components").StyledComponent<({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => JSX.Element, any, {}, never>;
|
|
1
|
+
export declare const rootClassName = "dot-app-switcher";
|
|
2
|
+
export declare const StyledAppSwitcher: import("styled-components").StyledComponent<({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { PointerEvent, ReactElement } from 'react';
|
|
2
|
-
import { MenuItemProps } from '../../menu/Menu';
|
|
3
|
-
import { ApplicationModel } from '../../core-api/openapi';
|
|
4
|
-
export
|
|
5
|
-
application: Partial<ApplicationModel>;
|
|
6
|
-
lastAccess: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const getLogoForAppType: (appType: string) => string;
|
|
9
|
-
export declare const daiAppsHeaderMenuItem: (count?: number) => {
|
|
10
|
-
children: JSX.Element;
|
|
11
|
-
key: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const sectionHeaderMenuItem: (title: string, count: number, showEmpty?: boolean, showCount?: boolean) => {
|
|
14
|
-
children: JSX.Element;
|
|
15
|
-
key: string;
|
|
16
|
-
};
|
|
17
|
-
export declare const createMenuItem: (url: string, title: string, subtitle: string, onClick: (event: PointerEvent<Element>) => void) => ReactElement;
|
|
18
|
-
export declare const createTopLevelMenuItem: (url: string, logo: string, title: string, openNewTab?: boolean) => ReactElement;
|
|
19
|
-
export declare const createAppTypeLabel: (appTypeName: string, logo: string, appProps: MenuItemProps[]) => JSX.Element;
|
|
20
|
-
export declare const getInstanceStateText: (application: {
|
|
21
|
-
instance_state?: number;
|
|
22
|
-
}) => "Production" | "Non-production";
|
|
23
|
-
export declare const sortRecentAppInstancesFn: (a: RecentAppInstance, b: RecentAppInstance) => number;
|
|
24
|
-
export declare const sortAppInstancesFn: (a: Partial<ApplicationModel>, b: Partial<ApplicationModel>) => number;
|
|
25
|
-
export declare const RECENT_INSTANCES_KEY = "dot-app-switcher-recent-app-instances";
|
|
26
|
-
export declare const recentAppInstancesSetter: (latestInstance: Partial<ApplicationModel>, maxRecentItems: number) => (orig: RecentAppInstance[]) => RecentAppInstance[];
|
|
1
|
+
import { PointerEvent, ReactElement } from 'react';
|
|
2
|
+
import { MenuItemProps } from '../../menu/Menu';
|
|
3
|
+
import { ApplicationModel } from '../../core-api/openapi';
|
|
4
|
+
export type RecentAppInstance = {
|
|
5
|
+
application: Partial<ApplicationModel>;
|
|
6
|
+
lastAccess: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const getLogoForAppType: (appType: string) => string;
|
|
9
|
+
export declare const daiAppsHeaderMenuItem: (count?: number) => {
|
|
10
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
key: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const sectionHeaderMenuItem: (title: string, count: number, showEmpty?: boolean, showCount?: boolean) => {
|
|
14
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
key: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const createMenuItem: (url: string, title: string, subtitle: string, onClick: (event: PointerEvent<Element>) => void) => ReactElement;
|
|
18
|
+
export declare const createTopLevelMenuItem: (url: string, logo: string, title: string, openNewTab?: boolean) => ReactElement;
|
|
19
|
+
export declare const createAppTypeLabel: (appTypeName: string, logo: string, appProps: MenuItemProps[]) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare const getInstanceStateText: (application: {
|
|
21
|
+
instance_state?: number;
|
|
22
|
+
}) => "Production" | "Non-production";
|
|
23
|
+
export declare const sortRecentAppInstancesFn: (a: RecentAppInstance, b: RecentAppInstance) => number;
|
|
24
|
+
export declare const sortAppInstancesFn: (a: Partial<ApplicationModel>, b: Partial<ApplicationModel>) => number;
|
|
25
|
+
export declare const RECENT_INSTANCES_KEY = "dot-app-switcher-recent-app-instances";
|
|
26
|
+
export declare const recentAppInstancesSetter: (latestInstance: Partial<ApplicationModel>, maxRecentItems: number) => (orig: RecentAppInstance[]) => RecentAppInstance[];
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { ReactNode, MouseEvent } from 'react';
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
import { IconButtonProps } from '../button/IconButton';
|
|
4
|
-
import { ListItemProps } from '../list';
|
|
5
|
-
import { BadgeVariant } from '../badge/Badge';
|
|
6
|
-
export interface AppToolbarIconButtons extends IconButtonProps {
|
|
7
|
-
/** custom color code for the badge */
|
|
8
|
-
badgeColor?: string;
|
|
9
|
-
/** the number rendered within the badge */
|
|
10
|
-
badgeContent?: number;
|
|
11
|
-
badgeVariant?: BadgeVariant;
|
|
12
|
-
/** if true, the badge will be displayed, else it will be hidden*/
|
|
13
|
-
displayBadge?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface AppToolbarProps extends CommonProps {
|
|
16
|
-
/** If provided will display application logo */
|
|
17
|
-
appLogo?: ReactNode;
|
|
18
|
-
/** URL of the page the application logo link will go to */
|
|
19
|
-
appLogoHref?: string;
|
|
20
|
-
/** If provided will display application logo */
|
|
21
|
-
appLogoSmall?: ReactNode;
|
|
22
|
-
/** User avatar component */
|
|
23
|
-
avatar?: ReactNode;
|
|
24
|
-
/** Control the bottom border of the toolbar, accepts any valid */
|
|
25
|
-
borderColor?: string;
|
|
26
|
-
/** JSX Element that is displayed between the logo and right nav */
|
|
27
|
-
children?: ReactNode;
|
|
28
|
-
/** If true, main menu will close when item is clicked, if false it will prevent menu closing */
|
|
29
|
-
closeMenuOnItemClick?: boolean;
|
|
30
|
-
/** Allow displaying custom logo */
|
|
31
|
-
customLogo?: ReactNode;
|
|
32
|
-
/** If true, the spacing and height will be shorter */
|
|
33
|
-
dense?: boolean;
|
|
34
|
-
/** If provided will overwrite `mainMenuItems` and display within the main menu drawer */
|
|
35
|
-
mainMenu?: ReactNode;
|
|
36
|
-
/** If provided will display the menu items within the main menu drawer */
|
|
37
|
-
mainMenuItems?: Array<ListItemProps>;
|
|
38
|
-
/** Width of main menu drawer if mainMenu provided, defaults to 240px */
|
|
39
|
-
mainMenuWidth?: number;
|
|
40
|
-
/** If true, the main menu will close if click detected off app toolbar children*/
|
|
41
|
-
menuCloseOnClickAway?: boolean;
|
|
42
|
-
/** Array of nav items to be displayed on the right side */
|
|
43
|
-
navItems?: Array<AppToolbarIconButtons>;
|
|
44
|
-
/** Event callback when leaving menu via tab or clicking away */
|
|
45
|
-
onClickAway?: (event: KeyboardEvent | MouseEvent) => void;
|
|
46
|
-
/** URL of the page the primary logo link will go to */
|
|
47
|
-
primaryLogoHref?: string;
|
|
48
|
-
}
|
|
49
|
-
export declare const DotAppToolbar: ({ ariaLabel, appLogo, appLogoHref, appLogoSmall, avatar, borderColor, children, className, closeMenuOnItemClick, customLogo, "data-testid": dataTestId, dense, mainMenu, mainMenuItems, mainMenuWidth, menuCloseOnClickAway, navItems, onClickAway, primaryLogoHref, }: AppToolbarProps) => JSX.Element;
|
|
1
|
+
import { ReactNode, MouseEvent } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
import { IconButtonProps } from '../button/IconButton';
|
|
4
|
+
import { ListItemProps } from '../list';
|
|
5
|
+
import { BadgeVariant } from '../badge/Badge';
|
|
6
|
+
export interface AppToolbarIconButtons extends IconButtonProps {
|
|
7
|
+
/** custom color code for the badge */
|
|
8
|
+
badgeColor?: string;
|
|
9
|
+
/** the number rendered within the badge */
|
|
10
|
+
badgeContent?: number;
|
|
11
|
+
badgeVariant?: BadgeVariant;
|
|
12
|
+
/** if true, the badge will be displayed, else it will be hidden*/
|
|
13
|
+
displayBadge?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface AppToolbarProps extends CommonProps {
|
|
16
|
+
/** If provided will display application logo */
|
|
17
|
+
appLogo?: ReactNode;
|
|
18
|
+
/** URL of the page the application logo link will go to */
|
|
19
|
+
appLogoHref?: string;
|
|
20
|
+
/** If provided will display application logo */
|
|
21
|
+
appLogoSmall?: ReactNode;
|
|
22
|
+
/** User avatar component */
|
|
23
|
+
avatar?: ReactNode;
|
|
24
|
+
/** Control the bottom border of the toolbar, accepts any valid */
|
|
25
|
+
borderColor?: string;
|
|
26
|
+
/** JSX Element that is displayed between the logo and right nav */
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
/** If true, main menu will close when item is clicked, if false it will prevent menu closing */
|
|
29
|
+
closeMenuOnItemClick?: boolean;
|
|
30
|
+
/** Allow displaying custom logo */
|
|
31
|
+
customLogo?: ReactNode;
|
|
32
|
+
/** If true, the spacing and height will be shorter */
|
|
33
|
+
dense?: boolean;
|
|
34
|
+
/** If provided will overwrite `mainMenuItems` and display within the main menu drawer */
|
|
35
|
+
mainMenu?: ReactNode;
|
|
36
|
+
/** If provided will display the menu items within the main menu drawer */
|
|
37
|
+
mainMenuItems?: Array<ListItemProps>;
|
|
38
|
+
/** Width of main menu drawer if mainMenu provided, defaults to 240px */
|
|
39
|
+
mainMenuWidth?: number;
|
|
40
|
+
/** If true, the main menu will close if click detected off app toolbar children*/
|
|
41
|
+
menuCloseOnClickAway?: boolean;
|
|
42
|
+
/** Array of nav items to be displayed on the right side */
|
|
43
|
+
navItems?: Array<AppToolbarIconButtons>;
|
|
44
|
+
/** Event callback when leaving menu via tab or clicking away */
|
|
45
|
+
onClickAway?: (event: KeyboardEvent | MouseEvent) => void;
|
|
46
|
+
/** URL of the page the primary logo link will go to */
|
|
47
|
+
primaryLogoHref?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const DotAppToolbar: ({ ariaLabel, appLogo, appLogoHref, appLogoSmall, avatar, borderColor, children, className, closeMenuOnItemClick, customLogo, "data-testid": dataTestId, dense, mainMenu, mainMenuItems, mainMenuWidth, menuCloseOnClickAway, navItems, onClickAway, primaryLogoHref, }: AppToolbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import { ListItemProps } from '../list';
|
|
3
|
-
export interface AppToolbarWrapperProps {
|
|
4
|
-
mainMenuItems?: Array<ListItemProps>;
|
|
5
|
-
menuCloseOnClickAway?: boolean;
|
|
6
|
-
onClickAway?: (event: globalThis.KeyboardEvent | React.MouseEvent<Element, globalThis.MouseEvent>) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const AppToolbarTestWrapper: (props: AppToolbarWrapperProps) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListItemProps } from '../list';
|
|
3
|
+
export interface AppToolbarWrapperProps {
|
|
4
|
+
mainMenuItems?: Array<ListItemProps>;
|
|
5
|
+
menuCloseOnClickAway?: boolean;
|
|
6
|
+
onClickAway?: (event: globalThis.KeyboardEvent | React.MouseEvent<Element, globalThis.MouseEvent>) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const AppToolbarTestWrapper: (props: AppToolbarWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const rootClassName = "dot-app-toolbar";
|
|
2
|
-
export declare const denseClassName = "dense";
|
|
3
|
-
export declare const StyledMainMenu: import("styled-components").StyledComponent<({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => JSX.Element, any, {}, never>;
|
|
4
|
-
export declare const StyledAppToolbar: import("styled-components").StyledComponent<"header", any, {}, never>;
|
|
1
|
+
export declare const rootClassName = "dot-app-toolbar";
|
|
2
|
+
export declare const denseClassName = "dense";
|
|
3
|
+
export declare const StyledMainMenu: import("styled-components").StyledComponent<({ anchor, ariaLabel, ariaRole, className, children, "data-testid": dataTestId, drawerBodyProps, drawerFooterProps, drawerHeaderProps, height, ModalProps, onClose, open, PaperProps, variant, width, }: import("../drawer/Drawer").DrawerProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
|
|
4
|
+
export declare const StyledAppToolbar: import("styled-components").StyledComponent<"header", any, {}, never>;
|