@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,87 +1,87 @@
|
|
|
1
|
-
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { CommonProps } from '../../CommonProps';
|
|
3
|
-
import { TypographyVariant } from '../../typography/Typography';
|
|
4
|
-
import { PopperPlacement } from '../../menu/Menu';
|
|
5
|
-
import { CollapsibleTableOptions } from '../collapsible-table/interfaces';
|
|
6
|
-
import { MultiSelect, MultiSelectHeader, Order } from './models';
|
|
7
|
-
import { TextAlignment } from '../TableCell';
|
|
8
|
-
import { RowsPerPageOption } from '../TablePagination';
|
|
9
|
-
export interface TableRowProps extends CommonProps {
|
|
10
|
-
/** row identifier that will be passed to onRowClick callback */
|
|
11
|
-
id?: string;
|
|
12
|
-
/** row data where keys map to column ids and values to cell values */
|
|
13
|
-
rowData: any;
|
|
14
|
-
/** if the row is selected */
|
|
15
|
-
selected?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface TableProps extends CommonProps {
|
|
18
|
-
/** The popper placement for the actions menu **/
|
|
19
|
-
actionsMenuPlacement?: PopperPlacement;
|
|
20
|
-
/** Typography variant which will be used for table body cell values **/
|
|
21
|
-
bodyTypography?: TypographyVariant;
|
|
22
|
-
/** Optional collapsible-table object **/
|
|
23
|
-
collapsibleTableOptions?: CollapsibleTableOptions;
|
|
24
|
-
/** The table header columns */
|
|
25
|
-
columns: Array<DotColumnHeader>;
|
|
26
|
-
/** Total number of items for paginated table.
|
|
27
|
-
Prop is ignored for non-paginated tables (no rowsPerPage)
|
|
28
|
-
and for tables with internally managed sorting (no onUpdateData). */
|
|
29
|
-
count?: number;
|
|
30
|
-
/** The table body row data.
|
|
31
|
-
If paging/sorting are managed by consumer (onUpdateData callback provided) this is the data for the current page.
|
|
32
|
-
If paging/sorting are managed internally (no onUpdateData callback) this is all the data. */
|
|
33
|
-
data: Array<TableRowProps>;
|
|
34
|
-
/** Message that is shown if data is empty */
|
|
35
|
-
emptyMessage?: string;
|
|
36
|
-
/** Typography variant which will be used for table pagination **/
|
|
37
|
-
footerTypography?: TypographyVariant;
|
|
38
|
-
/** Typography variant which will be used for table header cell values **/
|
|
39
|
-
headerTypography?: TypographyVariant;
|
|
40
|
-
/** Customize the rows per page label. Default is 'Rows per page:' */
|
|
41
|
-
labelRowsPerPage?: ReactNode;
|
|
42
|
-
/** Table is loading */
|
|
43
|
-
loading?: boolean;
|
|
44
|
-
/** Maximum height of table container */
|
|
45
|
-
maxHeight?: string;
|
|
46
|
-
/** Optional multi-select checkbox object **/
|
|
47
|
-
multiSelect?: MultiSelect;
|
|
48
|
-
/** Row click event callback */
|
|
49
|
-
onRowClick?: (event: MouseEvent, id: string) => void;
|
|
50
|
-
/** Update data callback if data is managed by consumer */
|
|
51
|
-
onUpdateData?: (order: Order, orderBy: string, page: number, rowsPerPage: number) => void;
|
|
52
|
-
/** The sort order of table data 'asc', 'desc' */
|
|
53
|
-
order?: Order;
|
|
54
|
-
/** The ID of the column that you are sorting by */
|
|
55
|
-
orderBy?: string;
|
|
56
|
-
/** The zero-based index of the current page for paginated table */
|
|
57
|
-
page?: number;
|
|
58
|
-
/** Rows per page for paginated table */
|
|
59
|
-
rowsPerPage?: RowsPerPageOption;
|
|
60
|
-
/** Customizes the options of the rows per page select field. Default: [10, 25, 50, 100, 150, 200] */
|
|
61
|
-
rowsPerPageOptions?: number[];
|
|
62
|
-
/** Table is sortable */
|
|
63
|
-
sortable?: boolean;
|
|
64
|
-
/** Table header is sticky */
|
|
65
|
-
stickyHeader?: boolean;
|
|
66
|
-
/** Toolbar displayed above column headers */
|
|
67
|
-
toolbar?: ReactNode;
|
|
68
|
-
}
|
|
69
|
-
export interface DotColumnHeader {
|
|
70
|
-
align?: TextAlignment;
|
|
71
|
-
id: string;
|
|
72
|
-
label?: string;
|
|
73
|
-
sortable?: boolean;
|
|
74
|
-
truncate?: boolean;
|
|
75
|
-
width?: string;
|
|
76
|
-
}
|
|
77
|
-
export interface HeaderProps {
|
|
78
|
-
collapsibleTableOptions?: CollapsibleTableOptions;
|
|
79
|
-
columns: Array<DotColumnHeader>;
|
|
80
|
-
multiSelectHeader?: MultiSelectHeader;
|
|
81
|
-
onRequestSort: (property: string) => void;
|
|
82
|
-
order?: Order;
|
|
83
|
-
/** The ID of the column that you are sorting by */
|
|
84
|
-
orderBy?: string;
|
|
85
|
-
sortable: boolean;
|
|
86
|
-
typography: TypographyVariant;
|
|
87
|
-
}
|
|
1
|
+
import { MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { CommonProps } from '../../CommonProps';
|
|
3
|
+
import { TypographyVariant } from '../../typography/Typography';
|
|
4
|
+
import { PopperPlacement } from '../../menu/Menu';
|
|
5
|
+
import { CollapsibleTableOptions } from '../collapsible-table/interfaces';
|
|
6
|
+
import { MultiSelect, MultiSelectHeader, Order } from './models';
|
|
7
|
+
import { TextAlignment } from '../TableCell';
|
|
8
|
+
import { RowsPerPageOption } from '../TablePagination';
|
|
9
|
+
export interface TableRowProps extends CommonProps {
|
|
10
|
+
/** row identifier that will be passed to onRowClick callback */
|
|
11
|
+
id?: string;
|
|
12
|
+
/** row data where keys map to column ids and values to cell values */
|
|
13
|
+
rowData: any;
|
|
14
|
+
/** if the row is selected */
|
|
15
|
+
selected?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface TableProps extends CommonProps {
|
|
18
|
+
/** The popper placement for the actions menu **/
|
|
19
|
+
actionsMenuPlacement?: PopperPlacement;
|
|
20
|
+
/** Typography variant which will be used for table body cell values **/
|
|
21
|
+
bodyTypography?: TypographyVariant;
|
|
22
|
+
/** Optional collapsible-table object **/
|
|
23
|
+
collapsibleTableOptions?: CollapsibleTableOptions;
|
|
24
|
+
/** The table header columns */
|
|
25
|
+
columns: Array<DotColumnHeader>;
|
|
26
|
+
/** Total number of items for paginated table.
|
|
27
|
+
Prop is ignored for non-paginated tables (no rowsPerPage)
|
|
28
|
+
and for tables with internally managed sorting (no onUpdateData). */
|
|
29
|
+
count?: number;
|
|
30
|
+
/** The table body row data.
|
|
31
|
+
If paging/sorting are managed by consumer (onUpdateData callback provided) this is the data for the current page.
|
|
32
|
+
If paging/sorting are managed internally (no onUpdateData callback) this is all the data. */
|
|
33
|
+
data: Array<TableRowProps>;
|
|
34
|
+
/** Message that is shown if data is empty */
|
|
35
|
+
emptyMessage?: string;
|
|
36
|
+
/** Typography variant which will be used for table pagination **/
|
|
37
|
+
footerTypography?: TypographyVariant;
|
|
38
|
+
/** Typography variant which will be used for table header cell values **/
|
|
39
|
+
headerTypography?: TypographyVariant;
|
|
40
|
+
/** Customize the rows per page label. Default is 'Rows per page:' */
|
|
41
|
+
labelRowsPerPage?: ReactNode;
|
|
42
|
+
/** Table is loading */
|
|
43
|
+
loading?: boolean;
|
|
44
|
+
/** Maximum height of table container */
|
|
45
|
+
maxHeight?: string;
|
|
46
|
+
/** Optional multi-select checkbox object **/
|
|
47
|
+
multiSelect?: MultiSelect;
|
|
48
|
+
/** Row click event callback */
|
|
49
|
+
onRowClick?: (event: MouseEvent, id: string) => void;
|
|
50
|
+
/** Update data callback if data is managed by consumer */
|
|
51
|
+
onUpdateData?: (order: Order, orderBy: string, page: number, rowsPerPage: number) => void;
|
|
52
|
+
/** The sort order of table data 'asc', 'desc' */
|
|
53
|
+
order?: Order;
|
|
54
|
+
/** The ID of the column that you are sorting by */
|
|
55
|
+
orderBy?: string;
|
|
56
|
+
/** The zero-based index of the current page for paginated table */
|
|
57
|
+
page?: number;
|
|
58
|
+
/** Rows per page for paginated table */
|
|
59
|
+
rowsPerPage?: RowsPerPageOption;
|
|
60
|
+
/** Customizes the options of the rows per page select field. Default: [10, 25, 50, 100, 150, 200] */
|
|
61
|
+
rowsPerPageOptions?: number[];
|
|
62
|
+
/** Table is sortable */
|
|
63
|
+
sortable?: boolean;
|
|
64
|
+
/** Table header is sticky */
|
|
65
|
+
stickyHeader?: boolean;
|
|
66
|
+
/** Toolbar displayed above column headers */
|
|
67
|
+
toolbar?: ReactNode;
|
|
68
|
+
}
|
|
69
|
+
export interface DotColumnHeader {
|
|
70
|
+
align?: TextAlignment;
|
|
71
|
+
id: string;
|
|
72
|
+
label?: string;
|
|
73
|
+
sortable?: boolean;
|
|
74
|
+
truncate?: boolean;
|
|
75
|
+
width?: string;
|
|
76
|
+
}
|
|
77
|
+
export interface HeaderProps {
|
|
78
|
+
collapsibleTableOptions?: CollapsibleTableOptions;
|
|
79
|
+
columns: Array<DotColumnHeader>;
|
|
80
|
+
multiSelectHeader?: MultiSelectHeader;
|
|
81
|
+
onRequestSort: (property: string) => void;
|
|
82
|
+
order?: Order;
|
|
83
|
+
/** The ID of the column that you are sorting by */
|
|
84
|
+
orderBy?: string;
|
|
85
|
+
sortable: boolean;
|
|
86
|
+
typography: TypographyVariant;
|
|
87
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { TableRowProps } from './interfaces';
|
|
3
|
-
export declare const TABLE_TYPOGRAPHY_VARIANT = "body1";
|
|
4
|
-
export declare const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export interface MultiSelect {
|
|
10
|
-
bulkActions?: ReactNode;
|
|
11
|
-
onCheckAllChange?: TableRowSelectChangeHandler;
|
|
12
|
-
onCheckRowChange?: TableRowSelectChangeHandler;
|
|
13
|
-
onClearAllChange?: TableRowSelectChangeHandler;
|
|
14
|
-
}
|
|
15
|
-
interface MultiSelectTableBase {
|
|
16
|
-
selectedTableRowIds: string[];
|
|
17
|
-
}
|
|
18
|
-
export interface MultiSelectHeader extends MultiSelectTableBase {
|
|
19
|
-
onCheckAllChange: TableRowSelectChangeHandler;
|
|
20
|
-
pageData: TableRowProps[];
|
|
21
|
-
}
|
|
22
|
-
export interface MultiSelectBody extends MultiSelectTableBase {
|
|
23
|
-
onCheckIndividualChange?: RowSelectionChangeHandler;
|
|
24
|
-
}
|
|
25
|
-
export {};
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TableRowProps } from './interfaces';
|
|
3
|
+
export declare const TABLE_TYPOGRAPHY_VARIANT = "body1";
|
|
4
|
+
export declare const TABLE_DEFAULT_SKELETON_ROWS = 4;
|
|
5
|
+
export type Order = 'asc' | 'desc';
|
|
6
|
+
export type MultiSelectState = 'unchecked' | 'checked' | 'indeterminate';
|
|
7
|
+
export type RowSelectionChangeHandler = (isChecked: boolean, rowId: string) => void;
|
|
8
|
+
export type TableRowSelectChangeHandler = (isChecked: boolean, selectedTableRowIds: string[]) => void;
|
|
9
|
+
export interface MultiSelect {
|
|
10
|
+
bulkActions?: ReactNode;
|
|
11
|
+
onCheckAllChange?: TableRowSelectChangeHandler;
|
|
12
|
+
onCheckRowChange?: TableRowSelectChangeHandler;
|
|
13
|
+
onClearAllChange?: TableRowSelectChangeHandler;
|
|
14
|
+
}
|
|
15
|
+
interface MultiSelectTableBase {
|
|
16
|
+
selectedTableRowIds: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface MultiSelectHeader extends MultiSelectTableBase {
|
|
19
|
+
onCheckAllChange: TableRowSelectChangeHandler;
|
|
20
|
+
pageData: TableRowProps[];
|
|
21
|
+
}
|
|
22
|
+
export interface MultiSelectBody extends MultiSelectTableBase {
|
|
23
|
+
onCheckIndividualChange?: RowSelectionChangeHandler;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { CommonProps } from '../CommonProps';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export interface TabProps extends CommonProps {
|
|
6
|
-
/** If true, the tab will be disabled. */
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
/** The ID of the icon to display on the tab */
|
|
9
|
-
iconId?: string;
|
|
10
|
-
/** The text to display on the tab */
|
|
11
|
-
label: string;
|
|
12
|
-
/** The value of the Tab (defaults to tab index) */
|
|
13
|
-
value?: any;
|
|
14
|
-
}
|
|
15
|
-
export interface TabsProps extends CommonProps {
|
|
16
|
-
/** Center the tabs */
|
|
17
|
-
centered?: boolean;
|
|
18
|
-
/** The color of the tabs */
|
|
19
|
-
color?: TabsColor;
|
|
20
|
-
/** The value of the initially selected tab */
|
|
21
|
-
initialValue?: any;
|
|
22
|
-
/** Tab change callback */
|
|
23
|
-
onChange?: (value: any) => void;
|
|
24
|
-
/** Determines behavior of scroll buttons when tabs are scrollable (variant="scrollable") */
|
|
25
|
-
scrollButtons?: TabsScrollButtons;
|
|
26
|
-
/** Array of tabs to be displayed */
|
|
27
|
-
tabs: Array<TabProps>;
|
|
28
|
-
/** Determines additional display behavior of the tabs */
|
|
29
|
-
variant?: TabsVariant;
|
|
30
|
-
}
|
|
31
|
-
export declare const DotTabs: ({ centered, className, color, "data-testid": dataTestId, initialValue, onChange, scrollButtons, tabs, variant, }: TabsProps) => JSX.Element;
|
|
1
|
+
import { CommonProps } from '../CommonProps';
|
|
2
|
+
export type TabsColor = 'primary' | 'secondary';
|
|
3
|
+
export type TabsScrollButtons = 'auto' | boolean;
|
|
4
|
+
export type TabsVariant = 'fullWidth' | 'scrollable' | 'standard';
|
|
5
|
+
export interface TabProps extends CommonProps {
|
|
6
|
+
/** If true, the tab will be disabled. */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** The ID of the icon to display on the tab */
|
|
9
|
+
iconId?: string;
|
|
10
|
+
/** The text to display on the tab */
|
|
11
|
+
label: string;
|
|
12
|
+
/** The value of the Tab (defaults to tab index) */
|
|
13
|
+
value?: any;
|
|
14
|
+
}
|
|
15
|
+
export interface TabsProps extends CommonProps {
|
|
16
|
+
/** Center the tabs */
|
|
17
|
+
centered?: boolean;
|
|
18
|
+
/** The color of the tabs */
|
|
19
|
+
color?: TabsColor;
|
|
20
|
+
/** The value of the initially selected tab */
|
|
21
|
+
initialValue?: any;
|
|
22
|
+
/** Tab change callback */
|
|
23
|
+
onChange?: (value: any) => void;
|
|
24
|
+
/** Determines behavior of scroll buttons when tabs are scrollable (variant="scrollable") */
|
|
25
|
+
scrollButtons?: TabsScrollButtons;
|
|
26
|
+
/** Array of tabs to be displayed */
|
|
27
|
+
tabs: Array<TabProps>;
|
|
28
|
+
/** Determines additional display behavior of the tabs */
|
|
29
|
+
variant?: TabsVariant;
|
|
30
|
+
}
|
|
31
|
+
export declare const DotTabs: ({ centered, className, color, "data-testid": dataTestId, initialValue, onChange, scrollButtons, tabs, variant, }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const rootClassName = "dot-tabs";
|
|
2
|
-
export declare const StyledTabs: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TabsTypeMap<{},
|
|
1
|
+
export declare const rootClassName = "dot-tabs";
|
|
2
|
+
export declare const StyledTabs: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").TabsTypeMap<{}, "div">>, any, {}, never>;
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { FocusEvent, KeyboardEvent, ReactNode } from 'react';
|
|
2
|
-
import { FieldChangeHandlerContext } from '@mui/x-date-pickers/internals';
|
|
3
|
-
import { CommonProps } from '../CommonProps';
|
|
4
|
-
import { DatePickerKeydownContext } from '../date-picker';
|
|
5
|
-
export interface TimePickerProps extends CommonProps {
|
|
6
|
-
/** 12h/24h view for hour selection clock. Default is `true`. */
|
|
7
|
-
ampm?: boolean;
|
|
8
|
-
/** If `true`, the `input` element is focused during the first mount. */
|
|
9
|
-
autoFocus?: boolean;
|
|
10
|
-
/** The default value. Use when the component is not controlled. */
|
|
11
|
-
defaultValue?: string;
|
|
12
|
-
/** If `true`, popper's paper will not be wrapped with ClickAwayListener. */
|
|
13
|
-
disableClickAwayListener?: boolean;
|
|
14
|
-
/** If `true`, the open picker button will not be rendered (renders only the field). */
|
|
15
|
-
disableOpenPicker?: boolean;
|
|
16
|
-
/** If `true`, the picker and text field are disabled. DOES NOT WORK WITH SCREEN READERS, we recommend using `readOnly` instead. */
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/** If true, the label will be displayed in an error state. */
|
|
19
|
-
error?: boolean;
|
|
20
|
-
/** Format of the time when rendered in the input(s). Defaults to localized format based on the used `views`. */
|
|
21
|
-
format?: string;
|
|
22
|
-
/** If true, the input will take up the full width of its container */
|
|
23
|
-
fullWidth?: boolean;
|
|
24
|
-
/** The helper text content. */
|
|
25
|
-
helperText?: ReactNode;
|
|
26
|
-
hideActionButtons?: boolean;
|
|
27
|
-
/** Identifies the input element and also used to create label "for" and helper text id attribute */
|
|
28
|
-
inputId: string;
|
|
29
|
-
/** The name of input element */
|
|
30
|
-
inputName?: string;
|
|
31
|
-
/** The label content. */
|
|
32
|
-
label?: string;
|
|
33
|
-
/** Callback fired when the value is changed from the popper. */
|
|
34
|
-
onAccept?: (value: string) => void;
|
|
35
|
-
/** A function that should be executed when the input loses focus */
|
|
36
|
-
onBlur?: (event: FocusEvent<HTMLInputElement | HTMLTextAreaElement, Element>) => void;
|
|
37
|
-
/** Callback fired when the `Cancel` button is clicked. */
|
|
38
|
-
onCancel?: () => void;
|
|
39
|
-
/** Callback fired when the value changes. */
|
|
40
|
-
onChange?: (value: string, context: FieldChangeHandlerContext<string>) => void;
|
|
41
|
-
/** Callback fired when the popup requests to be closed. Use in controlled mode (see `open`). */
|
|
42
|
-
onClose?: () => void;
|
|
43
|
-
/** A function that should be executed when key is pressed from input or popper */
|
|
44
|
-
onKeyDown?: (e: KeyboardEvent<HTMLElement>, contextEnum: DatePickerKeydownContext) => void;
|
|
45
|
-
/** Callback fired when the popup requests to be opened. Use in controlled mode (see `open`). */
|
|
46
|
-
onOpen?: () => void;
|
|
47
|
-
/** Callback fired when the time value on the opened popper changes. */
|
|
48
|
-
onPopperTimeChange?: (value: string) => void;
|
|
49
|
-
/** Control the popup or dialog open state. */
|
|
50
|
-
open?: boolean;
|
|
51
|
-
/** If true, the label will be persistently displayed outside the field */
|
|
52
|
-
persistentLabel?: boolean;
|
|
53
|
-
/** If true, the input will be read-only. */
|
|
54
|
-
readOnly?: boolean;
|
|
55
|
-
/** If true, the label is displayed as required and the input element will be required. */
|
|
56
|
-
required?: boolean;
|
|
57
|
-
/** The selected value. Used when the component is controlled. Time in ISO 8601 format, ie: HH:mm */
|
|
58
|
-
value?: string;
|
|
59
|
-
}
|
|
60
|
-
export declare const DEFAULT_PICKER_TIME_FORMAT = "HH:mm";
|
|
61
|
-
export declare const DEFAULT_TIME_FORMAT = "HH:mm";
|
|
62
|
-
export declare const DEFAULT_TIME = "01:00";
|
|
63
|
-
export declare const DotTimePicker: ({ ampm, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disableOpenPicker, disableClickAwayListener, disabled, error, format, fullWidth, helperText, hideActionButtons, inputId, inputName, label, onAccept, onBlur, onCancel, onChange, onClose, onKeyDown, onOpen, onPopperTimeChange, open, persistentLabel, readOnly, required, value, }: TimePickerProps) => JSX.Element;
|
|
1
|
+
import { FocusEvent, KeyboardEvent, ReactNode } from 'react';
|
|
2
|
+
import { FieldChangeHandlerContext } from '@mui/x-date-pickers/internals';
|
|
3
|
+
import { CommonProps } from '../CommonProps';
|
|
4
|
+
import { DatePickerKeydownContext } from '../date-picker';
|
|
5
|
+
export interface TimePickerProps extends CommonProps {
|
|
6
|
+
/** 12h/24h view for hour selection clock. Default is `true`. */
|
|
7
|
+
ampm?: boolean;
|
|
8
|
+
/** If `true`, the `input` element is focused during the first mount. */
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
/** The default value. Use when the component is not controlled. */
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
/** If `true`, popper's paper will not be wrapped with ClickAwayListener. */
|
|
13
|
+
disableClickAwayListener?: boolean;
|
|
14
|
+
/** If `true`, the open picker button will not be rendered (renders only the field). */
|
|
15
|
+
disableOpenPicker?: boolean;
|
|
16
|
+
/** If `true`, the picker and text field are disabled. DOES NOT WORK WITH SCREEN READERS, we recommend using `readOnly` instead. */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** If true, the label will be displayed in an error state. */
|
|
19
|
+
error?: boolean;
|
|
20
|
+
/** Format of the time when rendered in the input(s). Defaults to localized format based on the used `views`. */
|
|
21
|
+
format?: string;
|
|
22
|
+
/** If true, the input will take up the full width of its container */
|
|
23
|
+
fullWidth?: boolean;
|
|
24
|
+
/** The helper text content. */
|
|
25
|
+
helperText?: ReactNode;
|
|
26
|
+
hideActionButtons?: boolean;
|
|
27
|
+
/** Identifies the input element and also used to create label "for" and helper text id attribute */
|
|
28
|
+
inputId: string;
|
|
29
|
+
/** The name of input element */
|
|
30
|
+
inputName?: string;
|
|
31
|
+
/** The label content. */
|
|
32
|
+
label?: string;
|
|
33
|
+
/** Callback fired when the value is changed from the popper. */
|
|
34
|
+
onAccept?: (value: string) => void;
|
|
35
|
+
/** A function that should be executed when the input loses focus */
|
|
36
|
+
onBlur?: (event: FocusEvent<HTMLInputElement | HTMLTextAreaElement, Element>) => void;
|
|
37
|
+
/** Callback fired when the `Cancel` button is clicked. */
|
|
38
|
+
onCancel?: () => void;
|
|
39
|
+
/** Callback fired when the value changes. */
|
|
40
|
+
onChange?: (value: string, context: FieldChangeHandlerContext<string>) => void;
|
|
41
|
+
/** Callback fired when the popup requests to be closed. Use in controlled mode (see `open`). */
|
|
42
|
+
onClose?: () => void;
|
|
43
|
+
/** A function that should be executed when key is pressed from input or popper */
|
|
44
|
+
onKeyDown?: (e: KeyboardEvent<HTMLElement>, contextEnum: DatePickerKeydownContext) => void;
|
|
45
|
+
/** Callback fired when the popup requests to be opened. Use in controlled mode (see `open`). */
|
|
46
|
+
onOpen?: () => void;
|
|
47
|
+
/** Callback fired when the time value on the opened popper changes. */
|
|
48
|
+
onPopperTimeChange?: (value: string) => void;
|
|
49
|
+
/** Control the popup or dialog open state. */
|
|
50
|
+
open?: boolean;
|
|
51
|
+
/** If true, the label will be persistently displayed outside the field */
|
|
52
|
+
persistentLabel?: boolean;
|
|
53
|
+
/** If true, the input will be read-only. */
|
|
54
|
+
readOnly?: boolean;
|
|
55
|
+
/** If true, the label is displayed as required and the input element will be required. */
|
|
56
|
+
required?: boolean;
|
|
57
|
+
/** The selected value. Used when the component is controlled. Time in ISO 8601 format, ie: HH:mm */
|
|
58
|
+
value?: string;
|
|
59
|
+
}
|
|
60
|
+
export declare const DEFAULT_PICKER_TIME_FORMAT = "HH:mm";
|
|
61
|
+
export declare const DEFAULT_TIME_FORMAT = "HH:mm";
|
|
62
|
+
export declare const DEFAULT_TIME = "01:00";
|
|
63
|
+
export declare const DotTimePicker: ({ ampm, ariaLabel, autoFocus, className, "data-testid": dataTestId, defaultValue, disableOpenPicker, disableClickAwayListener, disabled, error, format, fullWidth, helperText, hideActionButtons, inputId, inputName, label, onAccept, onBlur, onCancel, onChange, onClose, onKeyDown, onOpen, onPopperTimeChange, open, persistentLabel, readOnly, required, value, }: TimePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const rootClassName = "dot-time-picker";
|
|
3
|
-
export declare const containerClassName = "dot-time-picker-container";
|
|
4
|
-
export declare const StyledTimePickerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
-
export declare const StyledTimePicker: import("styled-components").StyledComponent<(<TDate>(props: import("@mui/x-date-pickers").TimePickerProps<TDate> & import("react").RefAttributes<HTMLDivElement>) => JSX.Element) & {
|
|
6
|
-
propTypes?: any;
|
|
7
|
-
}, any, {}, never>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const rootClassName = "dot-time-picker";
|
|
3
|
+
export declare const containerClassName = "dot-time-picker-container";
|
|
4
|
+
export declare const StyledTimePickerContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
|
+
export declare const StyledTimePicker: import("styled-components").StyledComponent<(<TDate>(props: import("@mui/x-date-pickers").TimePickerProps<TDate> & import("react").RefAttributes<HTMLDivElement>) => import("react").JSX.Element) & {
|
|
6
|
+
propTypes?: any;
|
|
7
|
+
}, any, {}, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Daytime } from './utils/models';
|
|
2
|
-
export { mockScrollIntoView } from '../../testing-utils/scroll-into-view-mock';
|
|
3
|
-
export * from './TimePicker';
|
|
1
|
+
export { Daytime } from './utils/models';
|
|
2
|
+
export { mockScrollIntoView } from '../../testing-utils/scroll-into-view-mock';
|
|
3
|
+
export * from './TimePicker';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import dayjs, { Dayjs } from 'dayjs';
|
|
2
|
-
import { Daytime } from './models';
|
|
3
|
-
import { ButtonType } from '../../BaseButtonProps';
|
|
4
|
-
export declare const getDayjsUtcDate: (value: string, timeFormat?: string) => dayjs.Dayjs;
|
|
5
|
-
export declare const createNumbersArray: (length: number, offset?: number) => number[];
|
|
6
|
-
export declare const getHoursForTimePicker: (hasDaytimeSelection: boolean) => number[];
|
|
7
|
-
export declare const getMinutesForTimePicker: () => number[];
|
|
8
|
-
export declare const checkIfAm: (currentTime: Dayjs) => boolean;
|
|
9
|
-
export declare const calculateTimeForHourSelection: (is12hourFormat: boolean, selectedHour: number, currentTime: Dayjs) => Dayjs;
|
|
10
|
-
export declare const calculateTimeForDaytimeSelection: (currentTime: Dayjs, selectedDaytime: Daytime) => Dayjs;
|
|
11
|
-
export declare const calculateHourBasedOnTimeFormat: (time: Dayjs, is12hourFormat: boolean) => number;
|
|
12
|
-
export declare const getSelectedHourButtonIndex: (selectedHour: number, is12HourFormat: boolean) => number;
|
|
13
|
-
export declare const getPopperButtonTabIndex: (index: number, isSelected: boolean, selectedValue?: number) => number | undefined;
|
|
14
|
-
export declare const getDaytimeButtonTabIndex: (currentDaytime: Daytime, selectedDaytime?: string) => number | undefined;
|
|
15
|
-
export declare const getSelectedDaytime: (dateTime?: Dayjs) => string;
|
|
16
|
-
export declare const getTimePickerButtonType: (selectedDaytime: string) => ButtonType;
|
|
17
|
-
export declare const checkIfOpenPropDefined: (open: boolean | null | undefined) => boolean;
|
|
18
|
-
export declare const getDaytimeButtonType: (daytimeSelected: string) => "primary" | "text";
|
|
1
|
+
import dayjs, { Dayjs } from 'dayjs';
|
|
2
|
+
import { Daytime } from './models';
|
|
3
|
+
import { ButtonType } from '../../BaseButtonProps';
|
|
4
|
+
export declare const getDayjsUtcDate: (value: string, timeFormat?: string) => dayjs.Dayjs;
|
|
5
|
+
export declare const createNumbersArray: (length: number, offset?: number) => number[];
|
|
6
|
+
export declare const getHoursForTimePicker: (hasDaytimeSelection: boolean) => number[];
|
|
7
|
+
export declare const getMinutesForTimePicker: () => number[];
|
|
8
|
+
export declare const checkIfAm: (currentTime: Dayjs) => boolean;
|
|
9
|
+
export declare const calculateTimeForHourSelection: (is12hourFormat: boolean, selectedHour: number, currentTime: Dayjs) => Dayjs;
|
|
10
|
+
export declare const calculateTimeForDaytimeSelection: (currentTime: Dayjs, selectedDaytime: Daytime) => Dayjs;
|
|
11
|
+
export declare const calculateHourBasedOnTimeFormat: (time: Dayjs, is12hourFormat: boolean) => number;
|
|
12
|
+
export declare const getSelectedHourButtonIndex: (selectedHour: number, is12HourFormat: boolean) => number;
|
|
13
|
+
export declare const getPopperButtonTabIndex: (index: number, isSelected: boolean, selectedValue?: number) => number | undefined;
|
|
14
|
+
export declare const getDaytimeButtonTabIndex: (currentDaytime: Daytime, selectedDaytime?: string) => number | undefined;
|
|
15
|
+
export declare const getSelectedDaytime: (dateTime?: Dayjs) => string;
|
|
16
|
+
export declare const getTimePickerButtonType: (selectedDaytime: string) => ButtonType;
|
|
17
|
+
export declare const checkIfOpenPropDefined: (open: boolean | null | undefined) => boolean;
|
|
18
|
+
export declare const getDaytimeButtonType: (daytimeSelected: string) => "primary" | "text";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum Daytime {
|
|
2
|
-
AM = "AM",
|
|
3
|
-
PM = "PM"
|
|
4
|
-
}
|
|
1
|
+
export declare enum Daytime {
|
|
2
|
+
AM = "AM",
|
|
3
|
+
PM = "PM"
|
|
4
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ReactNode, ReactElement, ChangeEvent } from 'react';
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
export
|
|
4
|
-
export interface TooltipProps extends CommonProps {
|
|
5
|
-
/** If true, adds an arrow to the tooltip indicating which element it refers to. */
|
|
6
|
-
arrow?: boolean;
|
|
7
|
-
children: ReactElement;
|
|
8
|
-
leaveDelay?: number;
|
|
9
|
-
onClose?: (event: ChangeEvent) => void;
|
|
10
|
-
open?: boolean;
|
|
11
|
-
placement?: tooltipPlacement;
|
|
12
|
-
title?: ReactNode | string | number;
|
|
13
|
-
}
|
|
14
|
-
export declare const DotTooltip: ({ ariaLabel, ariaRole, arrow, children, className, "data-testid": dataTestId, leaveDelay, onClose, open, placement, title, }: TooltipProps) => JSX.Element;
|
|
1
|
+
import { ReactNode, ReactElement, ChangeEvent } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export type tooltipPlacement = 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
4
|
+
export interface TooltipProps extends CommonProps {
|
|
5
|
+
/** If true, adds an arrow to the tooltip indicating which element it refers to. */
|
|
6
|
+
arrow?: boolean;
|
|
7
|
+
children: ReactElement;
|
|
8
|
+
leaveDelay?: number;
|
|
9
|
+
onClose?: (event: ChangeEvent) => void;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
placement?: tooltipPlacement;
|
|
12
|
+
title?: ReactNode | string | number;
|
|
13
|
+
}
|
|
14
|
+
export declare const DotTooltip: ({ ariaLabel, ariaRole, arrow, children, className, "data-testid": dataTestId, leaveDelay, onClose, open, placement, title, }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CommonProps } from '../CommonProps';
|
|
2
|
-
export interface TruncateWithTooltipProps extends CommonProps {
|
|
3
|
-
/** If true, adds an arrow to the tooltip indicating which element it refers to. */
|
|
4
|
-
arrow?: boolean;
|
|
5
|
-
charactersLimit?: number;
|
|
6
|
-
label: string;
|
|
7
|
-
width?: number | string;
|
|
8
|
-
}
|
|
9
|
-
export declare const DotTruncateWithTooltip: ({ ariaLabel, arrow, charactersLimit, className, "data-testid": dataTestId, label, width, }: TruncateWithTooltipProps) => JSX.Element;
|
|
1
|
+
import { CommonProps } from '../CommonProps';
|
|
2
|
+
export interface TruncateWithTooltipProps extends CommonProps {
|
|
3
|
+
/** If true, adds an arrow to the tooltip indicating which element it refers to. */
|
|
4
|
+
arrow?: boolean;
|
|
5
|
+
charactersLimit?: number;
|
|
6
|
+
label: string;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
}
|
|
9
|
+
export declare const DotTruncateWithTooltip: ({ ariaLabel, arrow, charactersLimit, className, "data-testid": dataTestId, label, width, }: TruncateWithTooltipProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Tooltip } from '@mui/material';
|
|
2
|
-
export declare const rootClassName = "dot-truncate-with-tooltip";
|
|
3
|
-
export declare const StyledTruncateWithTooltip: import("styled-components").StyledComponent<typeof Tooltip, any, {}, never>;
|
|
1
|
+
import { Tooltip } from '@mui/material';
|
|
2
|
+
export declare const rootClassName = "dot-truncate-with-tooltip";
|
|
3
|
+
export declare const StyledTruncateWithTooltip: import("styled-components").StyledComponent<typeof Tooltip, any, {}, never>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { TruncateWithTooltipProps } from './TruncateWithTooltip';
|
|
2
|
-
export { DotTruncateWithTooltip } from './TruncateWithTooltip';
|
|
1
|
+
export type { TruncateWithTooltipProps } from './TruncateWithTooltip';
|
|
2
|
+
export { DotTruncateWithTooltip } from './TruncateWithTooltip';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare const getTruncatedLabel: (label: string, charactersLimit?: number) => ReactNode;
|
|
3
|
-
export declare const getTooltipLabel: (label: string, charactersLimit?: number) => ReactNode;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const getTruncatedLabel: (label: string, charactersLimit?: number) => ReactNode;
|
|
3
|
+
export declare const getTooltipLabel: (label: string, charactersLimit?: number) => ReactNode;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from 'react';
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
export
|
|
4
|
-
export interface TypographyProps extends CommonProps {
|
|
5
|
-
/** When `ariaRole` is `heading` then set a level */
|
|
6
|
-
ariaLevel?: number;
|
|
7
|
-
/** The content of the component. */
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
/** The component used for the root node. Either a string to use a HTML element or a component. */
|
|
10
|
-
component?: ElementType;
|
|
11
|
-
/** DEPRECATED: If true, the typography will not have a bottom margin set */
|
|
12
|
-
noMarginBottom?: boolean;
|
|
13
|
-
/** If true, the text will wrap and not be truncated */
|
|
14
|
-
noWrap?: boolean;
|
|
15
|
-
/** Applies the theme typography styles. */
|
|
16
|
-
variant?: TypographyVariant;
|
|
17
|
-
}
|
|
18
|
-
export declare const DotTypography: ({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: TypographyProps) => JSX.Element;
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'button' | 'overline' | 'inherit';
|
|
4
|
+
export interface TypographyProps extends CommonProps {
|
|
5
|
+
/** When `ariaRole` is `heading` then set a level */
|
|
6
|
+
ariaLevel?: number;
|
|
7
|
+
/** The content of the component. */
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** The component used for the root node. Either a string to use a HTML element or a component. */
|
|
10
|
+
component?: ElementType;
|
|
11
|
+
/** DEPRECATED: If true, the typography will not have a bottom margin set */
|
|
12
|
+
noMarginBottom?: boolean;
|
|
13
|
+
/** If true, the text will wrap and not be truncated */
|
|
14
|
+
noWrap?: boolean;
|
|
15
|
+
/** Applies the theme typography styles. */
|
|
16
|
+
variant?: TypographyVariant;
|
|
17
|
+
}
|
|
18
|
+
export declare const DotTypography: ({ ariaLabel, ariaLevel, ariaRole, className, "data-testid": dataTestId, children, component, noMarginBottom, noWrap, variant, }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useStylesWithRootClass(name: string, className?: string, ...args: string[]): string;
|
|
1
|
+
export declare function useStylesWithRootClass(name: string, className?: string, ...args: string[]): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const GlobalFonts: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
1
|
+
export declare const GlobalFonts: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|