@digital-ai/dot-components 2.19.1 → 2.20.1
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
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
import { ChangeEvent, FocusEvent, HTMLAttributes, JSXElementConstructor, ReactNode, Ref } from 'react';
|
|
2
|
-
import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState, FilterOptionsState } from '@mui/material';
|
|
3
|
-
import { CommonProps } from '../CommonProps';
|
|
4
|
-
import { inputSizeOptions } from '../input-form-fields/InputFormFields.propTypes';
|
|
5
|
-
import { ActionItem, AutoCompleteOption, AutoCompleteValue } from './utils/interface';
|
|
6
|
-
export declare const DEFAULT_ACTION_ITEM_TEXT = "Add new item";
|
|
7
|
-
/**
|
|
8
|
-
* AutoCompleteOption can be extended for the use case when customizing
|
|
9
|
-
* autocomplete option rendering by using `renderOption` prop.
|
|
10
|
-
*/
|
|
11
|
-
export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOption> extends CommonProps {
|
|
12
|
-
/** The component used to render the listbox. **/
|
|
13
|
-
ListboxComponent?: JSXElementConstructor<HTMLAttributes<HTMLElement>>;
|
|
14
|
-
/** Action button as the last element on the menu **/
|
|
15
|
-
actionItem?: ActionItem;
|
|
16
|
-
/** This prop helps users to fill forms faster */
|
|
17
|
-
autoFocus?: boolean;
|
|
18
|
-
/** Used to determine the disabled state for a given option. */
|
|
19
|
-
checkIfOptionDisabled?: (option: T) => boolean;
|
|
20
|
-
/** default option that is selected */
|
|
21
|
-
defaultValue?: AutoCompleteValue;
|
|
22
|
-
/** Controls size of chip spacing within the autocomplete **/
|
|
23
|
-
dense?: boolean;
|
|
24
|
-
/** Disable the portal behavior. If true, children stay within parent DOM hierarchy. */
|
|
25
|
-
disablePortal?: boolean;
|
|
26
|
-
/** If true, the input will be disabled. */
|
|
27
|
-
disabled?: boolean;
|
|
28
|
-
endAdornmentTooltip?: string;
|
|
29
|
-
/** If true, the input will be displayed in an error state. */
|
|
30
|
-
error?: boolean;
|
|
31
|
-
/** A function that determines the filtered options to be rendered on search. */
|
|
32
|
-
filterOptions?: (options: T[], state: FilterOptionsState<T>) => T[];
|
|
33
|
-
/** If `true`, hide the selected options from the list box. */
|
|
34
|
-
filterSelectedOptions?: boolean;
|
|
35
|
-
/** If true, any arbitrary value can be typed in the field */
|
|
36
|
-
freesolo?: boolean;
|
|
37
|
-
/** If true, options will be grouped by category */
|
|
38
|
-
group?: boolean;
|
|
39
|
-
/** The helper text content. */
|
|
40
|
-
helperText?: string;
|
|
41
|
-
/** The id for the input field. */
|
|
42
|
-
inputId: string;
|
|
43
|
-
/** pass a ref to the input element */
|
|
44
|
-
inputRef?: Ref<HTMLInputElement>;
|
|
45
|
-
/** The value of the input field. */
|
|
46
|
-
inputValue?: string;
|
|
47
|
-
isOptionEqualToValue?: (option: T, value: T) => boolean;
|
|
48
|
-
/** Label displayed above the input field */
|
|
49
|
-
label?: string;
|
|
50
|
-
/** If true, the component will be in a loading state. */
|
|
51
|
-
loading?: boolean;
|
|
52
|
-
/** Maximum height of Popper's <ul> element */
|
|
53
|
-
maxHeight?: number | string;
|
|
54
|
-
/** If true, will allow the user to select multiple options */
|
|
55
|
-
multiple?: boolean;
|
|
56
|
-
/** Callback function which will be executed upon blur event */
|
|
57
|
-
onBlur?: (event: FocusEvent<HTMLElement>) => void;
|
|
58
|
-
/** A function that should be executed when the autocomplete value changes */
|
|
59
|
-
onChange?: (event: ChangeEvent<unknown>, value: AutoCompleteValue, reason: string) => void;
|
|
60
|
-
/** Callback fired when the popup requests to be closed. Use in controlled mode. */
|
|
61
|
-
onClose?: (event: ChangeEvent, reason: AutocompleteCloseReason) => void;
|
|
62
|
-
/** A function that should be executed each time when the input value changes */
|
|
63
|
-
onInputChange?: (event: ChangeEvent<unknown>, value: string, reason: string) => void;
|
|
64
|
-
/** Callback fired when the popup requests to be opened. Use in controlled mode. */
|
|
65
|
-
onOpen?: (event: ChangeEvent) => void;
|
|
66
|
-
/** Controls the popup's open state. */
|
|
67
|
-
open?: boolean;
|
|
68
|
-
/** pre-defined options available to the user */
|
|
69
|
-
options?: Array<T>;
|
|
70
|
-
/** If true, the label will be persistently displayed outside of the field */
|
|
71
|
-
persistentLabel?: boolean;
|
|
72
|
-
/** Placeholder text always displayed inside the input field */
|
|
73
|
-
placeholder?: string;
|
|
74
|
-
/** If true: popper cannot be opened, TextField is in read only mode, change is not allowed */
|
|
75
|
-
readOnly?: boolean;
|
|
76
|
-
/** Render the option, use `getOptionLabel` by default. */
|
|
77
|
-
renderOption?: (props: HTMLAttributes<HTMLLIElement>, option: T, state: AutocompleteRenderOptionState) => ReactNode;
|
|
78
|
-
/** Render the selected value. */
|
|
79
|
-
renderTags?: (value: T[], getTagProps: AutocompleteGetTagProps) => ReactNode;
|
|
80
|
-
/** If true, the input will be required and label will display accordingly */
|
|
81
|
-
required?: boolean;
|
|
82
|
-
/** Determines the padding within the input field 'medium' or 'small' */
|
|
83
|
-
size?: inputSizeOptions;
|
|
84
|
-
/** value if this is a controlled component */
|
|
85
|
-
value?: AutoCompleteValue;
|
|
86
|
-
/** If true, the label will be displayed in a warning state. */
|
|
87
|
-
warning?: boolean;
|
|
88
|
-
}
|
|
89
|
-
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => JSX.Element;
|
|
1
|
+
import { ChangeEvent, FocusEvent, HTMLAttributes, JSXElementConstructor, ReactNode, Ref } from 'react';
|
|
2
|
+
import { AutocompleteCloseReason, AutocompleteGetTagProps, AutocompleteRenderOptionState, FilterOptionsState } from '@mui/material';
|
|
3
|
+
import { CommonProps } from '../CommonProps';
|
|
4
|
+
import { inputSizeOptions } from '../input-form-fields/InputFormFields.propTypes';
|
|
5
|
+
import { ActionItem, AutoCompleteOption, AutoCompleteValue } from './utils/interface';
|
|
6
|
+
export declare const DEFAULT_ACTION_ITEM_TEXT = "Add new item";
|
|
7
|
+
/**
|
|
8
|
+
* AutoCompleteOption can be extended for the use case when customizing
|
|
9
|
+
* autocomplete option rendering by using `renderOption` prop.
|
|
10
|
+
*/
|
|
11
|
+
export interface AutoCompleteProps<T extends AutoCompleteOption = AutoCompleteOption> extends CommonProps {
|
|
12
|
+
/** The component used to render the listbox. **/
|
|
13
|
+
ListboxComponent?: JSXElementConstructor<HTMLAttributes<HTMLElement>>;
|
|
14
|
+
/** Action button as the last element on the menu **/
|
|
15
|
+
actionItem?: ActionItem;
|
|
16
|
+
/** This prop helps users to fill forms faster */
|
|
17
|
+
autoFocus?: boolean;
|
|
18
|
+
/** Used to determine the disabled state for a given option. */
|
|
19
|
+
checkIfOptionDisabled?: (option: T) => boolean;
|
|
20
|
+
/** default option that is selected */
|
|
21
|
+
defaultValue?: AutoCompleteValue;
|
|
22
|
+
/** Controls size of chip spacing within the autocomplete **/
|
|
23
|
+
dense?: boolean;
|
|
24
|
+
/** Disable the portal behavior. If true, children stay within parent DOM hierarchy. */
|
|
25
|
+
disablePortal?: boolean;
|
|
26
|
+
/** If true, the input will be disabled. */
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
endAdornmentTooltip?: string;
|
|
29
|
+
/** If true, the input will be displayed in an error state. */
|
|
30
|
+
error?: boolean;
|
|
31
|
+
/** A function that determines the filtered options to be rendered on search. */
|
|
32
|
+
filterOptions?: (options: T[], state: FilterOptionsState<T>) => T[];
|
|
33
|
+
/** If `true`, hide the selected options from the list box. */
|
|
34
|
+
filterSelectedOptions?: boolean;
|
|
35
|
+
/** If true, any arbitrary value can be typed in the field */
|
|
36
|
+
freesolo?: boolean;
|
|
37
|
+
/** If true, options will be grouped by category */
|
|
38
|
+
group?: boolean;
|
|
39
|
+
/** The helper text content. */
|
|
40
|
+
helperText?: string;
|
|
41
|
+
/** The id for the input field. */
|
|
42
|
+
inputId: string;
|
|
43
|
+
/** pass a ref to the input element */
|
|
44
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
45
|
+
/** The value of the input field. */
|
|
46
|
+
inputValue?: string;
|
|
47
|
+
isOptionEqualToValue?: (option: T, value: T) => boolean;
|
|
48
|
+
/** Label displayed above the input field */
|
|
49
|
+
label?: string;
|
|
50
|
+
/** If true, the component will be in a loading state. */
|
|
51
|
+
loading?: boolean;
|
|
52
|
+
/** Maximum height of Popper's <ul> element */
|
|
53
|
+
maxHeight?: number | string;
|
|
54
|
+
/** If true, will allow the user to select multiple options */
|
|
55
|
+
multiple?: boolean;
|
|
56
|
+
/** Callback function which will be executed upon blur event */
|
|
57
|
+
onBlur?: (event: FocusEvent<HTMLElement>) => void;
|
|
58
|
+
/** A function that should be executed when the autocomplete value changes */
|
|
59
|
+
onChange?: (event: ChangeEvent<unknown>, value: AutoCompleteValue, reason: string) => void;
|
|
60
|
+
/** Callback fired when the popup requests to be closed. Use in controlled mode. */
|
|
61
|
+
onClose?: (event: ChangeEvent, reason: AutocompleteCloseReason) => void;
|
|
62
|
+
/** A function that should be executed each time when the input value changes */
|
|
63
|
+
onInputChange?: (event: ChangeEvent<unknown>, value: string, reason: string) => void;
|
|
64
|
+
/** Callback fired when the popup requests to be opened. Use in controlled mode. */
|
|
65
|
+
onOpen?: (event: ChangeEvent) => void;
|
|
66
|
+
/** Controls the popup's open state. */
|
|
67
|
+
open?: boolean;
|
|
68
|
+
/** pre-defined options available to the user */
|
|
69
|
+
options?: Array<T>;
|
|
70
|
+
/** If true, the label will be persistently displayed outside of the field */
|
|
71
|
+
persistentLabel?: boolean;
|
|
72
|
+
/** Placeholder text always displayed inside the input field */
|
|
73
|
+
placeholder?: string;
|
|
74
|
+
/** If true: popper cannot be opened, TextField is in read only mode, change is not allowed */
|
|
75
|
+
readOnly?: boolean;
|
|
76
|
+
/** Render the option, use `getOptionLabel` by default. */
|
|
77
|
+
renderOption?: (props: HTMLAttributes<HTMLLIElement>, option: T, state: AutocompleteRenderOptionState) => ReactNode;
|
|
78
|
+
/** Render the selected value. */
|
|
79
|
+
renderTags?: (value: T[], getTagProps: AutocompleteGetTagProps) => ReactNode;
|
|
80
|
+
/** If true, the input will be required and label will display accordingly */
|
|
81
|
+
required?: boolean;
|
|
82
|
+
/** Determines the padding within the input field 'medium' or 'small' */
|
|
83
|
+
size?: inputSizeOptions;
|
|
84
|
+
/** value if this is a controlled component */
|
|
85
|
+
value?: AutoCompleteValue;
|
|
86
|
+
/** If true, the label will be displayed in a warning state. */
|
|
87
|
+
warning?: boolean;
|
|
88
|
+
}
|
|
89
|
+
export declare const DotAutoComplete: <T extends AutoCompleteOption>({ ListboxComponent, actionItem, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, dense, disabled, disablePortal, endAdornmentTooltip, error, filterOptions, filterSelectedOptions, freesolo, checkIfOptionDisabled, group, helperText, inputId, inputRef, inputValue, isOptionEqualToValue, label, loading, maxHeight, multiple, onBlur, onChange, onClose, onInputChange, onOpen, open, options, persistentLabel, placeholder, readOnly, renderOption, renderTags, required, size, value, warning, }: AutoCompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Autocomplete } from '@mui/material';
|
|
2
|
-
export declare const rootClassName = "dot-autocomplete";
|
|
3
|
-
export declare const inputRootClassName = "dot-input-root";
|
|
4
|
-
export declare const inputMediumClassName = "dot-input-medium";
|
|
5
|
-
export declare const StyledAutocomplete: import("styled-components").StyledComponent<typeof Autocomplete, any, {}, never>;
|
|
1
|
+
import { Autocomplete } from '@mui/material';
|
|
2
|
+
export declare const rootClassName = "dot-autocomplete";
|
|
3
|
+
export declare const inputRootClassName = "dot-input-root";
|
|
4
|
+
export declare const inputMediumClassName = "dot-input-medium";
|
|
5
|
+
export declare const StyledAutocomplete: import("styled-components").StyledComponent<typeof Autocomplete, any, {}, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { AutocompleteRenderOptionState, FilterOptionsState, } from '@mui/material';
|
|
2
|
-
export * from './AutoComplete';
|
|
3
|
-
export * from './utils/interface';
|
|
4
|
-
export { parseAutoCompleteValue } from './utils/helpers';
|
|
1
|
+
export type { AutocompleteRenderOptionState, FilterOptionsState, } from '@mui/material';
|
|
2
|
+
export * from './AutoComplete';
|
|
3
|
+
export * from './utils/interface';
|
|
4
|
+
export { parseAutoCompleteValue } from './utils/helpers';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AutocompleteGetTagProps } from '@mui/material';
|
|
2
|
-
import { ChipSize } from '../../chip/Chip';
|
|
3
|
-
import { AutoCompleteOption, AutoCompleteValue } from './interface';
|
|
4
|
-
export declare const parseAutoCompleteValue: (value: AutoCompleteValue) => string;
|
|
5
|
-
export interface GetChipsFromAutocompleteProps {
|
|
6
|
-
chipSize?: ChipSize;
|
|
7
|
-
getTagProps: AutocompleteGetTagProps;
|
|
8
|
-
isReadOnly?: boolean;
|
|
9
|
-
values: Array<AutoCompleteOption | string>;
|
|
10
|
-
}
|
|
11
|
-
export declare const getChipsFromAutocomplete: ({ chipSize, getTagProps, isReadOnly, values, }: GetChipsFromAutocompleteProps) => JSX.Element[];
|
|
12
|
-
export declare const checkIfDuplicateItem: (itemText: string, autocompleteOptions: AutoCompleteOption[]) => boolean;
|
|
13
|
-
export declare const isEmptyValue: (value: AutoCompleteValue) => boolean;
|
|
1
|
+
import { AutocompleteGetTagProps } from '@mui/material';
|
|
2
|
+
import { ChipSize } from '../../chip/Chip';
|
|
3
|
+
import { AutoCompleteOption, AutoCompleteValue } from './interface';
|
|
4
|
+
export declare const parseAutoCompleteValue: (value: AutoCompleteValue) => string;
|
|
5
|
+
export interface GetChipsFromAutocompleteProps {
|
|
6
|
+
chipSize?: ChipSize;
|
|
7
|
+
getTagProps: AutocompleteGetTagProps;
|
|
8
|
+
isReadOnly?: boolean;
|
|
9
|
+
values: Array<AutoCompleteOption | string>;
|
|
10
|
+
}
|
|
11
|
+
export declare const getChipsFromAutocomplete: ({ chipSize, getTagProps, isReadOnly, values, }: GetChipsFromAutocompleteProps) => import("react/jsx-runtime").JSX.Element[];
|
|
12
|
+
export declare const checkIfDuplicateItem: (itemText: string, autocompleteOptions: AutoCompleteOption[]) => boolean;
|
|
13
|
+
export declare const isEmptyValue: (value: AutoCompleteValue) => boolean;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface ActionItem {
|
|
3
|
-
/** The icon to display on the button */
|
|
4
|
-
iconId?: string;
|
|
5
|
-
/** Event callback */
|
|
6
|
-
onClick: (inputText?: string) => void;
|
|
7
|
-
/** If set to true, it will prevent duplicate item insertion */
|
|
8
|
-
preventDuplicateInsertion?: boolean;
|
|
9
|
-
/** Text/Node displayed */
|
|
10
|
-
text?: string | ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export
|
|
13
|
-
export interface AutoCompleteOption {
|
|
14
|
-
error?: boolean;
|
|
15
|
-
group?: string;
|
|
16
|
-
title: string;
|
|
17
|
-
}
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ActionItem {
|
|
3
|
+
/** The icon to display on the button */
|
|
4
|
+
iconId?: string;
|
|
5
|
+
/** Event callback */
|
|
6
|
+
onClick: (inputText?: string) => void;
|
|
7
|
+
/** If set to true, it will prevent duplicate item insertion */
|
|
8
|
+
preventDuplicateInsertion?: boolean;
|
|
9
|
+
/** Text/Node displayed */
|
|
10
|
+
text?: string | ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export type AutoCompleteValue = string | string[] | AutoCompleteOption | AutoCompleteOption[] | null;
|
|
13
|
+
export interface AutoCompleteOption {
|
|
14
|
+
error?: boolean;
|
|
15
|
+
group?: string;
|
|
16
|
+
title: string;
|
|
17
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { MouseEvent, CSSProperties } from 'react';
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export interface AvatarProps extends CommonProps {
|
|
8
|
-
/** Text displayed on hover */
|
|
9
|
-
alt: string;
|
|
10
|
-
/** Color for avatar */
|
|
11
|
-
color?: AvatarColor;
|
|
12
|
-
/** Used for the root node; button is used when onClick is passed. */
|
|
13
|
-
component?: string;
|
|
14
|
-
/** The ID of the icon to display on the avatar */
|
|
15
|
-
iconId?: string;
|
|
16
|
-
/** Source for the image used for the avatar */
|
|
17
|
-
imageSrc?: string;
|
|
18
|
-
/** The number to be displayed. Only the first 2 digits will be displayed */
|
|
19
|
-
number?: number;
|
|
20
|
-
/** Event callback */
|
|
21
|
-
onClick?: (event: MouseEvent) => void;
|
|
22
|
-
/** Size of avatar displayed */
|
|
23
|
-
size?: AvatarSize;
|
|
24
|
-
/** To be used to override styles inline */
|
|
25
|
-
style?: CSSProperties;
|
|
26
|
-
/** tab order for the avatar */
|
|
27
|
-
tabIndex?: number;
|
|
28
|
-
/** The text to be displayed. Only the first 2 letters will be displayed. */
|
|
29
|
-
text?: string;
|
|
30
|
-
/** Tooltip for avatar */
|
|
31
|
-
tooltip?: string;
|
|
32
|
-
/** The type of the avatar */
|
|
33
|
-
type?: AvatarType;
|
|
34
|
-
/** The shape of the avatar */
|
|
35
|
-
variant?: AvatarVariant;
|
|
36
|
-
}
|
|
37
|
-
export declare const DotAvatar: ({ alt, ariaLabel, ariaRole, className, component, color, "data-testid": dataTestId, iconId, imageSrc, onClick, number, size, tabIndex, text, type, tooltip, variant, style, }: AvatarProps) => JSX.Element;
|
|
1
|
+
import { MouseEvent, CSSProperties } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export type AvatarSize = 'small' | 'medium' | 'large';
|
|
4
|
+
export type AvatarType = 'image' | 'text' | 'icon';
|
|
5
|
+
export type AvatarVariant = 'circular' | 'square';
|
|
6
|
+
export type AvatarColor = 'default' | 'inherit' | 'green' | 'blue' | 'orange' | 'purple' | 'yellow' | 'red' | 'darkGrey' | 'lightGrey' | 'transparent' | 'white';
|
|
7
|
+
export interface AvatarProps extends CommonProps {
|
|
8
|
+
/** Text displayed on hover */
|
|
9
|
+
alt: string;
|
|
10
|
+
/** Color for avatar */
|
|
11
|
+
color?: AvatarColor;
|
|
12
|
+
/** Used for the root node; button is used when onClick is passed. */
|
|
13
|
+
component?: string;
|
|
14
|
+
/** The ID of the icon to display on the avatar */
|
|
15
|
+
iconId?: string;
|
|
16
|
+
/** Source for the image used for the avatar */
|
|
17
|
+
imageSrc?: string;
|
|
18
|
+
/** The number to be displayed. Only the first 2 digits will be displayed */
|
|
19
|
+
number?: number;
|
|
20
|
+
/** Event callback */
|
|
21
|
+
onClick?: (event: MouseEvent) => void;
|
|
22
|
+
/** Size of avatar displayed */
|
|
23
|
+
size?: AvatarSize;
|
|
24
|
+
/** To be used to override styles inline */
|
|
25
|
+
style?: CSSProperties;
|
|
26
|
+
/** tab order for the avatar */
|
|
27
|
+
tabIndex?: number;
|
|
28
|
+
/** The text to be displayed. Only the first 2 letters will be displayed. */
|
|
29
|
+
text?: string;
|
|
30
|
+
/** Tooltip for avatar */
|
|
31
|
+
tooltip?: string;
|
|
32
|
+
/** The type of the avatar */
|
|
33
|
+
type?: AvatarType;
|
|
34
|
+
/** The shape of the avatar */
|
|
35
|
+
variant?: AvatarVariant;
|
|
36
|
+
}
|
|
37
|
+
export declare const DotAvatar: ({ alt, ariaLabel, ariaRole, className, component, color, "data-testid": dataTestId, iconId, imageSrc, onClick, number, size, tabIndex, text, type, tooltip, variant, style, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AvatarProps } from './Avatar';
|
|
2
|
-
export declare const rootClassName = "dot-avatar";
|
|
3
|
-
export declare const StyledAvatar: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").AvatarTypeMap<{}, "div">>, any, AvatarProps, never>;
|
|
1
|
+
import { AvatarProps } from './Avatar';
|
|
2
|
+
export declare const rootClassName = "dot-avatar";
|
|
3
|
+
export declare const StyledAvatar: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").AvatarTypeMap<{}, "div">>, any, AvatarProps, never>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CommonProps } from '../CommonProps';
|
|
2
|
-
import { AvatarProps } from '../avatar/Avatar';
|
|
3
|
-
export
|
|
4
|
-
export interface AvatarGroupProps extends CommonProps {
|
|
5
|
-
/** Array of avatars displayed inside the group */
|
|
6
|
-
avatars: Array<AvatarProps>;
|
|
7
|
-
/** Max avatars to show before +x */
|
|
8
|
-
max?: number;
|
|
9
|
-
/** Spacing between avatars */
|
|
10
|
-
spacing?: AvatarGroupSpacing;
|
|
11
|
-
}
|
|
12
|
-
export declare const DotAvatarGroup: ({ ariaLabel, avatars, className, "data-testid": dataTestId, max, spacing, }: AvatarGroupProps) => JSX.Element;
|
|
1
|
+
import { CommonProps } from '../CommonProps';
|
|
2
|
+
import { AvatarProps } from '../avatar/Avatar';
|
|
3
|
+
export type AvatarGroupSpacing = 'medium' | 'small' | number;
|
|
4
|
+
export interface AvatarGroupProps extends CommonProps {
|
|
5
|
+
/** Array of avatars displayed inside the group */
|
|
6
|
+
avatars: Array<AvatarProps>;
|
|
7
|
+
/** Max avatars to show before +x */
|
|
8
|
+
max?: number;
|
|
9
|
+
/** Spacing between avatars */
|
|
10
|
+
spacing?: AvatarGroupSpacing;
|
|
11
|
+
}
|
|
12
|
+
export declare const DotAvatarGroup: ({ ariaLabel, avatars, className, "data-testid": dataTestId, max, spacing, }: AvatarGroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AvatarGroup } from '@mui/material';
|
|
2
|
-
export declare const rootClassName = "dot-avatar-group";
|
|
3
|
-
export declare const StyledAvatarGroup: import("styled-components").StyledComponent<typeof AvatarGroup, any, {}, never>;
|
|
1
|
+
import { AvatarGroup } from '@mui/material';
|
|
2
|
+
export declare const rootClassName = "dot-avatar-group";
|
|
3
|
+
export declare const StyledAvatarGroup: import("styled-components").StyledComponent<typeof AvatarGroup, any, {}, never>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export interface BadgeProps extends CommonProps {
|
|
6
|
-
/** custom color code for the badge */
|
|
7
|
-
badgeColor?: string;
|
|
8
|
-
/** the number rendered within the badge */
|
|
9
|
-
badgeContent?: number;
|
|
10
|
-
/** component which will be wrapped with the badge */
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
/** if true, the badge will be completely hidden*/
|
|
13
|
-
invisible?: boolean;
|
|
14
|
-
/** max count to show */
|
|
15
|
-
max?: number;
|
|
16
|
-
/** outline shape of the child component */
|
|
17
|
-
overlap?: BadgeOverlap;
|
|
18
|
-
variant?: BadgeVariant;
|
|
19
|
-
}
|
|
20
|
-
export declare const DotBadge: ({ ariaLabel, badgeColor, badgeContent, children, className, "data-testid": dataTestId, invisible, max, overlap, variant, }: BadgeProps) => JSX.Element;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export type BadgeOverlap = 'circular' | 'rectangular';
|
|
4
|
+
export type BadgeVariant = 'standard' | 'dot';
|
|
5
|
+
export interface BadgeProps extends CommonProps {
|
|
6
|
+
/** custom color code for the badge */
|
|
7
|
+
badgeColor?: string;
|
|
8
|
+
/** the number rendered within the badge */
|
|
9
|
+
badgeContent?: number;
|
|
10
|
+
/** component which will be wrapped with the badge */
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/** if true, the badge will be completely hidden*/
|
|
13
|
+
invisible?: boolean;
|
|
14
|
+
/** max count to show */
|
|
15
|
+
max?: number;
|
|
16
|
+
/** outline shape of the child component */
|
|
17
|
+
overlap?: BadgeOverlap;
|
|
18
|
+
variant?: BadgeVariant;
|
|
19
|
+
}
|
|
20
|
+
export declare const DotBadge: ({ ariaLabel, badgeColor, badgeContent, children, className, "data-testid": dataTestId, invisible, max, overlap, variant, }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const rootClassName = "dot-badge";
|
|
2
|
-
interface StyledBadgeProps {
|
|
3
|
-
$badgeColor?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const StyledBadge: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BadgeTypeMap<"span", {}>>, any, StyledBadgeProps, never>;
|
|
6
|
-
export {};
|
|
1
|
+
export declare const rootClassName = "dot-badge";
|
|
2
|
+
interface StyledBadgeProps {
|
|
3
|
+
$badgeColor?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const StyledBadge: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BadgeTypeMap<"span", {}>>, any, StyledBadgeProps, never>;
|
|
6
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './Badge';
|
|
1
|
+
export * from './Badge';
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
import { LinkUnderline } from '../link/Link';
|
|
4
|
-
export
|
|
5
|
-
/** Defines a string value that labels the current element **/
|
|
6
|
-
ariaLabel?: string;
|
|
7
|
-
/** If the number of characters is exceeded then an ellipsis should be used to truncate the text */
|
|
8
|
-
characterLimit?: number;
|
|
9
|
-
/** link the breadcrumb goes to */
|
|
10
|
-
href?: string;
|
|
11
|
-
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
12
|
-
/** text displayed */
|
|
13
|
-
text: string;
|
|
14
|
-
/** determines if and when the underline will be shown */
|
|
15
|
-
underline?: LinkUnderline;
|
|
16
|
-
};
|
|
17
|
-
export interface BreadcrumbProps extends CommonProps {
|
|
18
|
-
/** determines if the menu expands on click */
|
|
19
|
-
expansionMenu?: boolean;
|
|
20
|
-
/** array of breadcrumb items to display */
|
|
21
|
-
items: Array<BreadcrumbItem>;
|
|
22
|
-
/** determines the maximum number of items to display */
|
|
23
|
-
maxItems?: number;
|
|
24
|
-
}
|
|
25
|
-
export declare const DotBreadcrumbs: ({ className, "data-testid": dataTestId, expansionMenu, items, maxItems, }: BreadcrumbProps) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
import { LinkUnderline } from '../link/Link';
|
|
4
|
+
export type BreadcrumbItem = {
|
|
5
|
+
/** Defines a string value that labels the current element **/
|
|
6
|
+
ariaLabel?: string;
|
|
7
|
+
/** If the number of characters is exceeded then an ellipsis should be used to truncate the text */
|
|
8
|
+
characterLimit?: number;
|
|
9
|
+
/** link the breadcrumb goes to */
|
|
10
|
+
href?: string;
|
|
11
|
+
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
12
|
+
/** text displayed */
|
|
13
|
+
text: string;
|
|
14
|
+
/** determines if and when the underline will be shown */
|
|
15
|
+
underline?: LinkUnderline;
|
|
16
|
+
};
|
|
17
|
+
export interface BreadcrumbProps extends CommonProps {
|
|
18
|
+
/** determines if the menu expands on click */
|
|
19
|
+
expansionMenu?: boolean;
|
|
20
|
+
/** array of breadcrumb items to display */
|
|
21
|
+
items: Array<BreadcrumbItem>;
|
|
22
|
+
/** determines the maximum number of items to display */
|
|
23
|
+
maxItems?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare const DotBreadcrumbs: ({ className, "data-testid": dataTestId, expansionMenu, items, maxItems, }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BreadcrumbItem } from '../breadcrumbs/Breadcrumbs';
|
|
2
|
-
export declare const defaultStorybookItems: BreadcrumbItem[];
|
|
3
|
-
export declare const characterLimitBreadcrumbItems: BreadcrumbItem[];
|
|
4
|
-
export declare const mockBreadcrumbItems: BreadcrumbItem[];
|
|
5
|
-
export declare const mockLongBreadcrumbItems: BreadcrumbItem[];
|
|
1
|
+
import { BreadcrumbItem } from '../breadcrumbs/Breadcrumbs';
|
|
2
|
+
export declare const defaultStorybookItems: BreadcrumbItem[];
|
|
3
|
+
export declare const characterLimitBreadcrumbItems: BreadcrumbItem[];
|
|
4
|
+
export declare const mockBreadcrumbItems: BreadcrumbItem[];
|
|
5
|
+
export declare const mockLongBreadcrumbItems: BreadcrumbItem[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const rootClassName = "dot-breadcrumbs";
|
|
2
|
-
export declare const breadcrumbsWrapperClass = "dot-breadcrumbs-wrapper";
|
|
3
|
-
export declare const StyledBreadcrumbsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const StyledBreadcrumbs: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BreadcrumbsTypeMap<{}, "nav">>, any, {}, never>;
|
|
1
|
+
export declare const rootClassName = "dot-breadcrumbs";
|
|
2
|
+
export declare const breadcrumbsWrapperClass = "dot-breadcrumbs-wrapper";
|
|
3
|
+
export declare const StyledBreadcrumbsWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const StyledBreadcrumbs: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").BreadcrumbsTypeMap<{}, "nav">>, any, {}, never>;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { MutableRefObject, ReactElement } from 'react';
|
|
2
|
-
import { BreadcrumbItem } from '../Breadcrumbs';
|
|
3
|
-
export interface BreadcrumbItemRefs {
|
|
4
|
-
firstItemRef: MutableRefObject<HTMLDivElement>;
|
|
5
|
-
lastItemRef: MutableRefObject<HTMLSpanElement>;
|
|
6
|
-
}
|
|
7
|
-
export interface BreadcrumbItemsConfig {
|
|
8
|
-
isLastItemFullyVisible: boolean;
|
|
9
|
-
itemsAfterCollapse: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const getItemsAfterCollapse: (adjustMaxItems: boolean, visibleItemsNumber: number, maxItems?: number) => number | undefined;
|
|
12
|
-
export declare const getMaxItems: (adjustMaxItems: boolean, visibleItemsNumber: number, maxItems?: number) => number | undefined;
|
|
13
|
-
export declare const getWidthFromRef: <T extends HTMLElement>(ref: MutableRefObject<T>) => number | undefined;
|
|
14
|
-
export declare const checkIfFirstItemAfterCollapse: (currentIndex: number, items: BreadcrumbItem[], itemsAfterCollapse: number) => boolean;
|
|
15
|
-
export declare const getExpandElement: (breadcrumbElement: HTMLElement) => Element;
|
|
16
|
-
export declare const getInitialMaxVisibleItems: (items: BreadcrumbItem[], maxItems?: number) => number;
|
|
17
|
-
export declare const getMenuItems: (items: BreadcrumbItem[], itemsAfterCollapse: number) => {
|
|
18
|
-
children: JSX.Element;
|
|
19
|
-
key: string;
|
|
20
|
-
}[];
|
|
21
|
-
export declare const addListenersToMenu: (expandElement: Element, eventListener: EventListener) => void;
|
|
22
|
-
export declare const removeListenersFromMenu: (expandElement: Element, eventListener: EventListener) => void;
|
|
23
|
-
export declare const getLastItemElement: ({ ariaLabel, text }: BreadcrumbItem, lastItemRef: MutableRefObject<HTMLSpanElement>, index?: number) => ReactElement;
|
|
24
|
-
export declare const mapBreadcrumbItems: (items: BreadcrumbItem[], refs: BreadcrumbItemRefs, { isLastItemFullyVisible, itemsAfterCollapse }: BreadcrumbItemsConfig) => JSX.Element[];
|
|
25
|
-
export declare const checkIfLastItemFullyVisible: (breadcrumbRef: MutableRefObject<HTMLElement>, lastItemRef: MutableRefObject<HTMLSpanElement>) => boolean;
|
|
1
|
+
import { MutableRefObject, ReactElement } from 'react';
|
|
2
|
+
import { BreadcrumbItem } from '../Breadcrumbs';
|
|
3
|
+
export interface BreadcrumbItemRefs {
|
|
4
|
+
firstItemRef: MutableRefObject<HTMLDivElement>;
|
|
5
|
+
lastItemRef: MutableRefObject<HTMLSpanElement>;
|
|
6
|
+
}
|
|
7
|
+
export interface BreadcrumbItemsConfig {
|
|
8
|
+
isLastItemFullyVisible: boolean;
|
|
9
|
+
itemsAfterCollapse: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const getItemsAfterCollapse: (adjustMaxItems: boolean, visibleItemsNumber: number, maxItems?: number) => number | undefined;
|
|
12
|
+
export declare const getMaxItems: (adjustMaxItems: boolean, visibleItemsNumber: number, maxItems?: number) => number | undefined;
|
|
13
|
+
export declare const getWidthFromRef: <T extends HTMLElement>(ref: MutableRefObject<T>) => number | undefined;
|
|
14
|
+
export declare const checkIfFirstItemAfterCollapse: (currentIndex: number, items: BreadcrumbItem[], itemsAfterCollapse: number) => boolean;
|
|
15
|
+
export declare const getExpandElement: (breadcrumbElement: HTMLElement) => Element;
|
|
16
|
+
export declare const getInitialMaxVisibleItems: (items: BreadcrumbItem[], maxItems?: number) => number;
|
|
17
|
+
export declare const getMenuItems: (items: BreadcrumbItem[], itemsAfterCollapse: number) => {
|
|
18
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
key: string;
|
|
20
|
+
}[];
|
|
21
|
+
export declare const addListenersToMenu: (expandElement: Element, eventListener: EventListener) => void;
|
|
22
|
+
export declare const removeListenersFromMenu: (expandElement: Element, eventListener: EventListener) => void;
|
|
23
|
+
export declare const getLastItemElement: ({ ariaLabel, text }: BreadcrumbItem, lastItemRef: MutableRefObject<HTMLSpanElement>, index?: number) => ReactElement;
|
|
24
|
+
export declare const mapBreadcrumbItems: (items: BreadcrumbItem[], refs: BreadcrumbItemRefs, { isLastItemFullyVisible, itemsAfterCollapse }: BreadcrumbItemsConfig) => import("react/jsx-runtime").JSX.Element[];
|
|
25
|
+
export declare const checkIfLastItemFullyVisible: (breadcrumbRef: MutableRefObject<HTMLElement>, lastItemRef: MutableRefObject<HTMLSpanElement>) => boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { MutableRefObject } from 'react';
|
|
2
|
-
import { BreadcrumbItem } from '../Breadcrumbs';
|
|
3
|
-
interface BreadcrumbsObserverRefs {
|
|
4
|
-
breadcrumbRef: MutableRefObject<HTMLElement>;
|
|
5
|
-
firstItemRef: MutableRefObject<HTMLDivElement>;
|
|
6
|
-
lastItemRef: MutableRefObject<HTMLSpanElement>;
|
|
7
|
-
}
|
|
8
|
-
export declare const useBreadcrumbsObserver: (items: Array<BreadcrumbItem>, maxItems?: number) => [BreadcrumbsObserverRefs, number];
|
|
9
|
-
export {};
|
|
1
|
+
import { MutableRefObject } from 'react';
|
|
2
|
+
import { BreadcrumbItem } from '../Breadcrumbs';
|
|
3
|
+
interface BreadcrumbsObserverRefs {
|
|
4
|
+
breadcrumbRef: MutableRefObject<HTMLElement>;
|
|
5
|
+
firstItemRef: MutableRefObject<HTMLDivElement>;
|
|
6
|
+
lastItemRef: MutableRefObject<HTMLSpanElement>;
|
|
7
|
+
}
|
|
8
|
+
export declare const useBreadcrumbsObserver: (items: Array<BreadcrumbItem>, maxItems?: number) => [BreadcrumbsObserverRefs, number];
|
|
9
|
+
export {};
|