@digital-ai/dot-components 2.19.0 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/index.esm.d.ts +1 -0
- package/index.esm.js +1595 -1540
- package/package.json +7 -7
- package/{index.d.ts → src/index.d.ts} +7 -6
- 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 -87
- 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 -31
- 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/src/lib/theme-provider/colors/figma-colors.d.ts +3 -0
- 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/src/lib/theme-provider/interfaces.d.ts +198 -0
- package/index.umd.js +0 -12006
- package/lib/components/AccessibilityProps.d.ts +0 -1
- package/lib/components/button-toggle/utils/models.d.ts +0 -13
- package/lib/components/file-upload/FileListItem.styles.d.ts +0 -42
- package/lib/components/file-upload/uploadHelpers.d.ts +0 -12
- package/lib/theme-provider/interfaces.d.ts +0 -56
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ReactNode, KeyboardEvent } from 'react';
|
|
2
|
-
import { TypographyVariant } from './typography/Typography';
|
|
3
|
-
import { AvatarColor } from './avatar/Avatar';
|
|
4
|
-
export declare const calculateNumberFromText: (text: string) => number;
|
|
5
|
-
export declare const calculateWidth: (width: number | string) => string | undefined;
|
|
6
|
-
export declare const getAvatarColorForInputText: (value: string) => AvatarColor;
|
|
7
|
-
export declare const isString: (str: unknown) => boolean;
|
|
8
|
-
export declare const isLowerCase: (str: string) => boolean;
|
|
9
|
-
export declare const isNumber: (num: unknown) => boolean;
|
|
10
|
-
export declare const renderNodeOrTypography: (content: string | ReactNode, typographyVariant?: TypographyVariant) => ReactNode;
|
|
11
|
-
export declare const searchString: (needle: string, haystack: string) => boolean;
|
|
12
|
-
export declare const checkIfArrowUpPressed: (event: KeyboardEvent) => boolean;
|
|
13
|
-
export declare const checkIfArrowDownPressed: (event: KeyboardEvent) => boolean;
|
|
1
|
+
import { ReactNode, KeyboardEvent } from 'react';
|
|
2
|
+
import { TypographyVariant } from './typography/Typography';
|
|
3
|
+
import { AvatarColor } from './avatar/Avatar';
|
|
4
|
+
export declare const calculateNumberFromText: (text: string) => number;
|
|
5
|
+
export declare const calculateWidth: (width: number | string) => string | undefined;
|
|
6
|
+
export declare const getAvatarColorForInputText: (value: string) => AvatarColor;
|
|
7
|
+
export declare const isString: (str: unknown) => boolean;
|
|
8
|
+
export declare const isLowerCase: (str: string) => boolean;
|
|
9
|
+
export declare const isNumber: (num: unknown) => boolean;
|
|
10
|
+
export declare const renderNodeOrTypography: (content: string | ReactNode, typographyVariant?: TypographyVariant) => ReactNode;
|
|
11
|
+
export declare const searchString: (needle: string, haystack: string) => boolean;
|
|
12
|
+
export declare const checkIfArrowUpPressed: (event: KeyboardEvent) => boolean;
|
|
13
|
+
export declare const checkIfArrowDownPressed: (event: KeyboardEvent) => boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { CommonProps } from '../CommonProps';
|
|
2
|
-
export
|
|
3
|
-
export interface IconProps extends CommonProps {
|
|
4
|
-
/** Determines the size of the icon and spacing around it */
|
|
5
|
-
fontSize?: IconFontSize;
|
|
6
|
-
/** The ID of the icon to display on the button */
|
|
7
|
-
iconId: string;
|
|
8
|
-
/** Tooltip text displayed on hover */
|
|
9
|
-
tooltip?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const DotIcon: ({ ariaLabel, ariaRole, className, "data-testid": dataTestId, fontSize, iconId, tooltip, }: IconProps) => JSX.Element;
|
|
1
|
+
import { CommonProps } from '../CommonProps';
|
|
2
|
+
export type IconFontSize = 'small' | 'medium';
|
|
3
|
+
export interface IconProps extends CommonProps {
|
|
4
|
+
/** Determines the size of the icon and spacing around it */
|
|
5
|
+
fontSize?: IconFontSize;
|
|
6
|
+
/** The ID of the icon to display on the button */
|
|
7
|
+
iconId: string;
|
|
8
|
+
/** Tooltip text displayed on hover */
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const DotIcon: ({ ariaLabel, ariaRole, className, "data-testid": dataTestId, fontSize, iconId, tooltip, }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import '@digital-ai/dot-icons';
|
|
2
|
-
export declare const rootClassName = "dot-icon";
|
|
3
|
-
export declare const StyledIcon: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").IconTypeMap<{}, "span">> & {
|
|
4
|
-
muiName: string;
|
|
5
|
-
}, any, {}, never>;
|
|
1
|
+
import '@digital-ai/dot-icons';
|
|
2
|
+
export declare const rootClassName = "dot-icon";
|
|
3
|
+
export declare const StyledIcon: import("styled-components").StyledComponent<import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").IconTypeMap<{}, "span">> & {
|
|
4
|
+
muiName: string;
|
|
5
|
+
}, any, {}, never>;
|
|
@@ -1,106 +1,109 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
5
|
-
export type {
|
|
6
|
-
export type {
|
|
7
|
-
export type {
|
|
8
|
-
export type {
|
|
9
|
-
export type {
|
|
10
|
-
export type {
|
|
11
|
-
export type {
|
|
12
|
-
export type {
|
|
13
|
-
export type {
|
|
14
|
-
export type {
|
|
15
|
-
export type {
|
|
16
|
-
export type {
|
|
17
|
-
export type {
|
|
18
|
-
export type {
|
|
19
|
-
export type {
|
|
20
|
-
export type {
|
|
21
|
-
export type {
|
|
22
|
-
export type {
|
|
23
|
-
export type {
|
|
24
|
-
export type {
|
|
25
|
-
export type {
|
|
26
|
-
export type {
|
|
27
|
-
export type {
|
|
28
|
-
export type {
|
|
29
|
-
export type {
|
|
30
|
-
export type {
|
|
31
|
-
export type {
|
|
32
|
-
export type {
|
|
33
|
-
export type {
|
|
34
|
-
export type {
|
|
35
|
-
export type {
|
|
36
|
-
export type {
|
|
37
|
-
export type {
|
|
38
|
-
export type {
|
|
39
|
-
export type {
|
|
40
|
-
export type {
|
|
41
|
-
export type {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
51
|
-
export {
|
|
52
|
-
export {
|
|
53
|
-
export {
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export {
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
export {
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
67
|
-
export {
|
|
68
|
-
export {
|
|
69
|
-
export {
|
|
70
|
-
export {
|
|
71
|
-
export {
|
|
72
|
-
export {
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
77
|
-
export {
|
|
78
|
-
export {
|
|
79
|
-
export {
|
|
80
|
-
export {
|
|
81
|
-
export {
|
|
82
|
-
export {
|
|
83
|
-
export {
|
|
84
|
-
export {
|
|
85
|
-
export {
|
|
86
|
-
export {
|
|
87
|
-
export {
|
|
88
|
-
export {
|
|
89
|
-
export {
|
|
90
|
-
export {
|
|
91
|
-
export {
|
|
92
|
-
export {
|
|
93
|
-
export {
|
|
94
|
-
export {
|
|
95
|
-
export {
|
|
96
|
-
export {
|
|
97
|
-
export {
|
|
98
|
-
export {
|
|
99
|
-
export {
|
|
100
|
-
export {
|
|
101
|
-
export {
|
|
102
|
-
export {
|
|
103
|
-
export {
|
|
104
|
-
export {
|
|
105
|
-
export {
|
|
106
|
-
export {
|
|
1
|
+
export * from './CommonProps';
|
|
2
|
+
export { ApiError } from './core-api/openapi/core/ApiError';
|
|
3
|
+
export type { AppToolbarProps } from './app-toolbar/AppToolbar';
|
|
4
|
+
export type { AutoCompleteOption, AutoCompleteProps, AutoCompleteValue, AutocompleteRenderOptionState, FilterOptionsState, } from './auto-complete';
|
|
5
|
+
export type { AvatarProps } from './avatar/Avatar';
|
|
6
|
+
export type { BreadcrumbItem } from './breadcrumbs/Breadcrumbs';
|
|
7
|
+
export type { ButtonProps, CopyButtonProps, IconButtonProps, IconButtonColor, IconButtonSize, } from './button';
|
|
8
|
+
export type { ButtonToggleProps, ButtonToggleValue, ButtonToggleOption, ButtonToggleOrientation, ButtonToggleSingleValue, ButtonToggleSize, } from './button-toggle';
|
|
9
|
+
export type { CheckboxProps } from './checkbox/Checkbox';
|
|
10
|
+
export type { CheckboxGroupProps } from './checkbox/CheckboxGroup';
|
|
11
|
+
export type { DialogButtonProps, SubmitButtonProps } from './dialog/Dialog';
|
|
12
|
+
export type { DrawerAnchor } from './drawer/Drawer';
|
|
13
|
+
export type { DynamicFormProps } from './dynamic-form/DynamicForm';
|
|
14
|
+
export type { ConditionFunction, ControlClickHandler, DisabledConditionFunction, DisabledControlCondition, DynamicFormConfig, DynamicFormControl, DynamicFormControlProps, DynamicFormControlType, DynamicFormOutputData, DynamicFormSectionProps, DynamicFormState, DynamicFormStateItem, FieldValidation, } from './dynamic-form/models';
|
|
15
|
+
export type { InputTextProps } from './input-form-fields/InputText';
|
|
16
|
+
export type { InputSelectProps, InputSelectOption, OptionType, } from './input-form-fields/InputSelect';
|
|
17
|
+
export type { LinkUnderline } from './link/Link';
|
|
18
|
+
export type { ListItemProps } from './list';
|
|
19
|
+
export type { MenuItemProps } from './menu/Menu';
|
|
20
|
+
export type { RailItem, RailItemsPosition } from './navigation-rail';
|
|
21
|
+
export type { RadioButtonProps } from './radio/RadioButton';
|
|
22
|
+
export type { RadioGroupProps } from './radio/RadioGroup';
|
|
23
|
+
export type { BackItemProps, SidebarProps } from './sidebar/Sidebar';
|
|
24
|
+
export type { SwitchProps, SwitchColor, SwitchSize, SwitchLabelPlacement, } from './switch';
|
|
25
|
+
export type { CollapsibleTableOptions } from './table/collapsible-table';
|
|
26
|
+
export type { DotColumnHeader, MultiSelect, Order, RowSelectionChangeHandler, RowsPerPageOption, TableActionProps, TableActionsProps, TableDataWithPagination, TableRowProps, TableRowSelectChangeHandler, TextAlignment, SortDirection, } from './table';
|
|
27
|
+
export type { TabProps } from './tabs/Tabs';
|
|
28
|
+
export type { TypographyVariant } from './typography/Typography';
|
|
29
|
+
export type { ProgressButtonProps } from './progress-button/ProgressButton';
|
|
30
|
+
export type { PopperPlacementType } from './popper';
|
|
31
|
+
export type { DividerOrientation, DividerProps, DividerVariant, } from './divider';
|
|
32
|
+
export type { BadgeProps, BadgeOverlap, BadgeVariant } from './badge';
|
|
33
|
+
export type { TruncateWithTooltipProps } from './truncate-with-tooltip';
|
|
34
|
+
export type { DraggableItem, DraggableListChangeHandler, } from './draggable-list';
|
|
35
|
+
export type { SnackbarProps, SnackbarSeverity, SnackbarOrigin, } from './snackbar';
|
|
36
|
+
export type { CharactersLimit, InlineEditProps } from './inline-edit';
|
|
37
|
+
export type { progressColorOptions, progressVariantOptions, ProgressProps, } from './progress';
|
|
38
|
+
export type { FileItemProps, FileUploadError, FileUploadProps, ListItemFile, MappedFile, MappedListItemFile, } from './file-upload';
|
|
39
|
+
export type { LinearProgressColor, LinearProgressProps, LinearProgressVariant, } from './linear-progress';
|
|
40
|
+
export type { DatePickerLocale, DatePickerProps, FieldChangeHandlerContext, } from './date-picker';
|
|
41
|
+
export type { TimePickerProps } from './time-picker';
|
|
42
|
+
export type { ClickAwayListenerProps } from './click-away-listener';
|
|
43
|
+
export type { StepProps } from './stepper/Stepper';
|
|
44
|
+
export type { CarouselAnimationVariant, CarouselNavigationButtonDisplayOption, CarouselProps, } from './carousel/Carousel';
|
|
45
|
+
export { DotAccordion } from './accordion/Accordion';
|
|
46
|
+
export { DotActionToolbar } from './action-toolbar/ActionToolbar';
|
|
47
|
+
export { DotAlertBanner } from './alert-banner/AlertBanner';
|
|
48
|
+
export { DotAppLogo } from './app-logo/AppLogo';
|
|
49
|
+
export { DotAppSwitcher } from './app-switcher/AppSwitcher';
|
|
50
|
+
export { DotAppToolbar } from './app-toolbar/AppToolbar';
|
|
51
|
+
export { DotAutoComplete, parseAutoCompleteValue } from './auto-complete';
|
|
52
|
+
export { DotAvatar } from './avatar/Avatar';
|
|
53
|
+
export { DotAvatarGroup } from './avatar-group/AvatarGroup';
|
|
54
|
+
export { DotBadge } from './badge';
|
|
55
|
+
export { DotBreadcrumbs } from './breadcrumbs/Breadcrumbs';
|
|
56
|
+
export { DotButton, DotCopyButton, DotIconButton } from './button';
|
|
57
|
+
export { DotButtonToggle } from './button-toggle';
|
|
58
|
+
export { DotCard } from './card/Card';
|
|
59
|
+
export { DotCardContent } from './card/CardContent';
|
|
60
|
+
export { DotCardFooter } from './card/CardFooter';
|
|
61
|
+
export { DotCardHeader } from './card/CardHeader';
|
|
62
|
+
export { DotCheckbox } from './checkbox/Checkbox';
|
|
63
|
+
export { DotCheckboxGroup } from './checkbox/CheckboxGroup';
|
|
64
|
+
export { DotChip } from './chip/Chip';
|
|
65
|
+
export { DotConfirmationDialog } from './confirmation-dialog/ConfirmationDialog';
|
|
66
|
+
export { DotCoreApiProvider, useDotCoreApiContext, } from './core-api/CoreApiProvider';
|
|
67
|
+
export { Cell, CssCell } from './css-grid/CssCell';
|
|
68
|
+
export { CssGrid } from './css-grid/CssGrid';
|
|
69
|
+
export { CssGridDebug } from './css-grid/CssGridDebug';
|
|
70
|
+
export { DotDialog } from './dialog/Dialog';
|
|
71
|
+
export { DotDrawer } from './drawer/Drawer';
|
|
72
|
+
export { DotEmptyState } from './empty-state/EmptyState';
|
|
73
|
+
export { DotForm } from './form/Form';
|
|
74
|
+
export { DotFormGroup } from './form-group/FormGroup';
|
|
75
|
+
export { DotDynamicForm } from './dynamic-form/DynamicForm';
|
|
76
|
+
export { DotIcon } from './icon/Icon';
|
|
77
|
+
export { DotInlineEdit } from './inline-edit';
|
|
78
|
+
export { DotInputText } from './input-form-fields/InputText';
|
|
79
|
+
export { DotInputSelect } from './input-form-fields/InputSelect';
|
|
80
|
+
export { DotLink } from './link/Link';
|
|
81
|
+
export { DotList } from './list';
|
|
82
|
+
export { DotMenu } from './menu/Menu';
|
|
83
|
+
export { DotNavigationRail } from './navigation-rail';
|
|
84
|
+
export { DotPill } from './pill/Pill';
|
|
85
|
+
export { DotProgress } from './progress';
|
|
86
|
+
export { DotRadioButton } from './radio/RadioButton';
|
|
87
|
+
export { DotRadioGroup } from './radio/RadioGroup';
|
|
88
|
+
export { DotSidebar } from './sidebar/Sidebar';
|
|
89
|
+
export { DotSkeleton } from './skeleton/Skeleton';
|
|
90
|
+
export { DotSnackbar, DotSnackbarContainer, DotSnackbarProvider, useDotSnackbarContext, } from './snackbar';
|
|
91
|
+
export { DotSplitButton } from './split-button/SplitButton';
|
|
92
|
+
export { DotStepper } from './stepper/Stepper';
|
|
93
|
+
export { DotProgressButton } from './progress-button/ProgressButton';
|
|
94
|
+
export { DotSwitch } from './switch';
|
|
95
|
+
export { DotHeaderRow, DotTable, DotTablePagination, DotTableActions, DotTableAction, } from './table';
|
|
96
|
+
export { DotTooltip } from './tooltip/Tooltip';
|
|
97
|
+
export { DotTabs } from './tabs/Tabs';
|
|
98
|
+
export { DotTypography } from './typography/Typography';
|
|
99
|
+
export { DotFileUpload, DotFileListItem } from './file-upload';
|
|
100
|
+
export { DotDivider } from './divider';
|
|
101
|
+
export { DotPopper } from './popper';
|
|
102
|
+
export { DotTruncateWithTooltip } from './truncate-with-tooltip';
|
|
103
|
+
export { DotDraggableList } from './draggable-list';
|
|
104
|
+
export { DotLinearProgress } from './linear-progress';
|
|
105
|
+
export { DatePickerKeydownContext, DotDatePicker, checkIfValidDate, } from './date-picker';
|
|
106
|
+
export { Daytime, DotTimePicker, mockScrollIntoView } from './time-picker';
|
|
107
|
+
export { DotClickAwayListener } from './click-away-listener';
|
|
108
|
+
export { DotCarousel } from './carousel/Carousel';
|
|
109
|
+
export { CreateUUID } from './createUUID';
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { CommonProps } from '../CommonProps';
|
|
2
|
-
import { TypographyVariant } from '../typography/Typography';
|
|
3
|
-
import { CharactersLimit, InlineEditBinding } from './utils/models';
|
|
4
|
-
export interface InlineEditProps extends CommonProps {
|
|
5
|
-
/** Optional array of bindings, used to replace targeted string in edit mode with the corresponding value in view mode */
|
|
6
|
-
bindings?: InlineEditBinding[];
|
|
7
|
-
/** Characters limit configuration object */
|
|
8
|
-
charactersLimit?: CharactersLimit;
|
|
9
|
-
/** If true, the input will take up the full width of its container */
|
|
10
|
-
fullWidth?: boolean;
|
|
11
|
-
/** If true, `Cancel` and `Save` buttons will be hidden */
|
|
12
|
-
hideActionButtons?: boolean;
|
|
13
|
-
/** The name of input element */
|
|
14
|
-
name: string;
|
|
15
|
-
/** An async function which should be executed when the value of the input changes */
|
|
16
|
-
onChange?: (value: string) => Promise<boolean>;
|
|
17
|
-
/** A function that informs the parent of current editing state */
|
|
18
|
-
onEditStateChange?: (editing: boolean) => void;
|
|
19
|
-
/** If provided will display placeholder text when field is empty */
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
/** If true, component will behave like a regular text (editing functionality will be disabled). */
|
|
22
|
-
readOnly?: boolean;
|
|
23
|
-
/** If true, when starting edit it will select all text in the input */
|
|
24
|
-
selectTextOnEdit?: boolean;
|
|
25
|
-
/** If true and readOnly is false when component loads, start as editable */
|
|
26
|
-
startEditable?: boolean;
|
|
27
|
-
/** tab order for the inline edit */
|
|
28
|
-
tabIndex?: number;
|
|
29
|
-
/** Tooltip text displayed on hover */
|
|
30
|
-
tooltip?: string;
|
|
31
|
-
/** Typography variant to be used */
|
|
32
|
-
typography?: TypographyVariant;
|
|
33
|
-
/** default value that is displayed on load */
|
|
34
|
-
value?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @experimental This component is still in development
|
|
38
|
-
*/
|
|
39
|
-
export declare const DotInlineEdit: ({ ariaLabel, ariaRole, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, placeholder, readOnly, selectTextOnEdit, startEditable, tabIndex, tooltip, typography, value, }: InlineEditProps) => JSX.Element;
|
|
1
|
+
import { CommonProps } from '../CommonProps';
|
|
2
|
+
import { TypographyVariant } from '../typography/Typography';
|
|
3
|
+
import { CharactersLimit, InlineEditBinding } from './utils/models';
|
|
4
|
+
export interface InlineEditProps extends CommonProps {
|
|
5
|
+
/** Optional array of bindings, used to replace targeted string in edit mode with the corresponding value in view mode */
|
|
6
|
+
bindings?: InlineEditBinding[];
|
|
7
|
+
/** Characters limit configuration object */
|
|
8
|
+
charactersLimit?: CharactersLimit;
|
|
9
|
+
/** If true, the input will take up the full width of its container */
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
/** If true, `Cancel` and `Save` buttons will be hidden */
|
|
12
|
+
hideActionButtons?: boolean;
|
|
13
|
+
/** The name of input element */
|
|
14
|
+
name: string;
|
|
15
|
+
/** An async function which should be executed when the value of the input changes */
|
|
16
|
+
onChange?: (value: string) => Promise<boolean>;
|
|
17
|
+
/** A function that informs the parent of current editing state */
|
|
18
|
+
onEditStateChange?: (editing: boolean) => void;
|
|
19
|
+
/** If provided will display placeholder text when field is empty */
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
/** If true, component will behave like a regular text (editing functionality will be disabled). */
|
|
22
|
+
readOnly?: boolean;
|
|
23
|
+
/** If true, when starting edit it will select all text in the input */
|
|
24
|
+
selectTextOnEdit?: boolean;
|
|
25
|
+
/** If true and readOnly is false when component loads, start as editable */
|
|
26
|
+
startEditable?: boolean;
|
|
27
|
+
/** tab order for the inline edit */
|
|
28
|
+
tabIndex?: number;
|
|
29
|
+
/** Tooltip text displayed on hover */
|
|
30
|
+
tooltip?: string;
|
|
31
|
+
/** Typography variant to be used */
|
|
32
|
+
typography?: TypographyVariant;
|
|
33
|
+
/** default value that is displayed on load */
|
|
34
|
+
value?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @experimental This component is still in development
|
|
38
|
+
*/
|
|
39
|
+
export declare const DotInlineEdit: ({ ariaLabel, ariaRole, bindings, charactersLimit, className, "data-testid": dataTestId, fullWidth, hideActionButtons, name, onChange, onEditStateChange, placeholder, readOnly, selectTextOnEdit, startEditable, tabIndex, tooltip, typography, value, }: InlineEditProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TypographyVariant } from '../typography/Typography';
|
|
2
|
-
export declare const rootClassName = "dot-inline-edit";
|
|
3
|
-
export declare const editModeClassName = "dot-edit-mode";
|
|
4
|
-
export declare const viewModeClassName = "dot-view-mode";
|
|
5
|
-
export declare const placeholderClassName = "dot-placeholder";
|
|
6
|
-
export declare const readOnlyClassName = "dot-read-only";
|
|
7
|
-
export declare const editActionsClassName = "dot-edit-actions";
|
|
8
|
-
export declare const editTextFieldClassName = "dot-edit-text-field";
|
|
9
|
-
export interface StyledInlineEditProps {
|
|
10
|
-
fullWidth: boolean;
|
|
11
|
-
typography?: TypographyVariant;
|
|
12
|
-
}
|
|
13
|
-
export declare const StyledInlineEdit: import("styled-components").StyledComponent<"div", any, StyledInlineEditProps, never>;
|
|
1
|
+
import { TypographyVariant } from '../typography/Typography';
|
|
2
|
+
export declare const rootClassName = "dot-inline-edit";
|
|
3
|
+
export declare const editModeClassName = "dot-edit-mode";
|
|
4
|
+
export declare const viewModeClassName = "dot-view-mode";
|
|
5
|
+
export declare const placeholderClassName = "dot-placeholder";
|
|
6
|
+
export declare const readOnlyClassName = "dot-read-only";
|
|
7
|
+
export declare const editActionsClassName = "dot-edit-actions";
|
|
8
|
+
export declare const editTextFieldClassName = "dot-edit-text-field";
|
|
9
|
+
export interface StyledInlineEditProps {
|
|
10
|
+
fullWidth: boolean;
|
|
11
|
+
typography?: TypographyVariant;
|
|
12
|
+
}
|
|
13
|
+
export declare const StyledInlineEdit: import("styled-components").StyledComponent<"div", any, StyledInlineEditProps, never>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { InlineEditProps } from './InlineEdit';
|
|
2
|
-
export type { CharactersLimit } from './utils/models';
|
|
3
|
-
export { DotInlineEdit } from './InlineEdit';
|
|
1
|
+
export type { InlineEditProps } from './InlineEdit';
|
|
2
|
+
export type { CharactersLimit } from './utils/models';
|
|
3
|
+
export { DotInlineEdit } from './InlineEdit';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { InlineEditBinding } from './models';
|
|
3
|
-
export declare const getCounterAdornment: (currentLength: number, maxLength: number, dataTestId?: string) => ReactNode | undefined;
|
|
4
|
-
export declare const getWarningAdornment: () => JSX.Element;
|
|
5
|
-
export declare const applyBindings: (bindings: InlineEditBinding[], inlineEditText: string) => ReactNode;
|
|
6
|
-
export declare const checkIfEmptyValue: (inputValue: string) => boolean;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { InlineEditBinding } from './models';
|
|
3
|
+
export declare const getCounterAdornment: (currentLength: number, maxLength: number, dataTestId?: string) => ReactNode | undefined;
|
|
4
|
+
export declare const getWarningAdornment: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const applyBindings: (bindings: InlineEditBinding[], inlineEditText: string) => ReactNode;
|
|
6
|
+
export declare const checkIfEmptyValue: (inputValue: string) => boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export interface CharactersLimit {
|
|
2
|
-
/** If true, character limiter will be hidden. It is displayed by default. */
|
|
3
|
-
hideCounter?: boolean;
|
|
4
|
-
maxLength: number;
|
|
5
|
-
}
|
|
6
|
-
export interface InlineEditBinding {
|
|
7
|
-
/** String, written in edit mode, which will be bound to the actual value in view mode */
|
|
8
|
-
binding: string;
|
|
9
|
-
/** Optional prop used to define custom CSS for the value when in view mode */
|
|
10
|
-
className?: string;
|
|
11
|
-
/** Value which will be displayed in view mode */
|
|
12
|
-
value: string;
|
|
13
|
-
}
|
|
1
|
+
export interface CharactersLimit {
|
|
2
|
+
/** If true, character limiter will be hidden. It is displayed by default. */
|
|
3
|
+
hideCounter?: boolean;
|
|
4
|
+
maxLength: number;
|
|
5
|
+
}
|
|
6
|
+
export interface InlineEditBinding {
|
|
7
|
+
/** String, written in edit mode, which will be bound to the actual value in view mode */
|
|
8
|
+
binding: string;
|
|
9
|
+
/** Optional prop used to define custom CSS for the value when in view mode */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** Value which will be displayed in view mode */
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { ChangeEvent, KeyboardEvent, MouseEvent, ReactNode, Ref } from 'react';
|
|
2
|
-
import { CommonProps } from '../CommonProps';
|
|
3
|
-
export
|
|
4
|
-
export interface InputProps extends CommonProps {
|
|
5
|
-
/** This prop helps users to fill forms faster */
|
|
6
|
-
autoFocus?: boolean;
|
|
7
|
-
/** default value of the input element */
|
|
8
|
-
defaultValue?: string;
|
|
9
|
-
/** If true, the input will be disabled. DOES NOT WORK WITH SCREEN READERS, we recommend using `readOnly` instead. */
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
/** Icon placed after the children. */
|
|
12
|
-
endIcon?: ReactNode;
|
|
13
|
-
/** Text placed after the children, only displayed if there is no: endIcon, success or error */
|
|
14
|
-
endText?: string;
|
|
15
|
-
/** If true, the label will be displayed in an error state. */
|
|
16
|
-
error?: boolean;
|
|
17
|
-
/** If true, the input will take up the full width of its container */
|
|
18
|
-
fullWidth?: boolean;
|
|
19
|
-
/** The helper text content. */
|
|
20
|
-
helperText?: ReactNode;
|
|
21
|
-
/**
|
|
22
|
-
* id to identify the element, also used to create label "for" and helper text id attribute
|
|
23
|
-
* values while it's optional, it is considered required for accessiblity best practice.
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
/** pass a ref to the input element */
|
|
27
|
-
inputRef?: Ref<HTMLInputElement>;
|
|
28
|
-
/** The label content. */
|
|
29
|
-
label?: string;
|
|
30
|
-
max?: number | string;
|
|
31
|
-
min?: number | string;
|
|
32
|
-
/** The name of input element */
|
|
33
|
-
name: string;
|
|
34
|
-
/** A function that should be executed when the input loses focus */
|
|
35
|
-
onBlur?: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
36
|
-
/** A function that should be executed when the value of the input changes */
|
|
37
|
-
onChange?: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
38
|
-
/** A function that should be executed when the input gains focus */
|
|
39
|
-
onFocus?: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
40
|
-
/** A function that should be executed when key is pressed */
|
|
41
|
-
onKeyDown?: (event: KeyboardEvent) => void;
|
|
42
|
-
/** A function that executes when a user releases a mouse button over an element. */
|
|
43
|
-
onMouseUp?: (event: MouseEvent) => void;
|
|
44
|
-
/** If true, the label will be persistently displayed outside of the field */
|
|
45
|
-
persistentLabel?: boolean;
|
|
46
|
-
/** If true, the input will be read-only. */
|
|
47
|
-
readOnly?: boolean;
|
|
48
|
-
/** If true, the label is displayed as required and the input element` will be required. */
|
|
49
|
-
required?: boolean;
|
|
50
|
-
/** If specified, the label being shrunk/unshrunk must be controlled by the consumer */
|
|
51
|
-
shrink?: boolean;
|
|
52
|
-
/** Size of the input */
|
|
53
|
-
size?: inputSizeOptions;
|
|
54
|
-
/** Icon placed before the children. */
|
|
55
|
-
startIcon?: ReactNode;
|
|
56
|
-
/** If true, the label and field will be displayed in a success state */
|
|
57
|
-
success?: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Type of input should be a valid HTML 5 input type
|
|
60
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
|
|
61
|
-
*/
|
|
62
|
-
type?: string;
|
|
63
|
-
/** value of input field */
|
|
64
|
-
value?: string;
|
|
65
|
-
/** If true, the label will be displayed in an warning state. */
|
|
66
|
-
warning?: boolean;
|
|
67
|
-
}
|
|
1
|
+
import { ChangeEvent, KeyboardEvent, MouseEvent, ReactNode, Ref } from 'react';
|
|
2
|
+
import { CommonProps } from '../CommonProps';
|
|
3
|
+
export type inputSizeOptions = 'small' | 'medium';
|
|
4
|
+
export interface InputProps extends CommonProps {
|
|
5
|
+
/** This prop helps users to fill forms faster */
|
|
6
|
+
autoFocus?: boolean;
|
|
7
|
+
/** default value of the input element */
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
/** If true, the input will be disabled. DOES NOT WORK WITH SCREEN READERS, we recommend using `readOnly` instead. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Icon placed after the children. */
|
|
12
|
+
endIcon?: ReactNode;
|
|
13
|
+
/** Text placed after the children, only displayed if there is no: endIcon, success or error */
|
|
14
|
+
endText?: string;
|
|
15
|
+
/** If true, the label will be displayed in an error state. */
|
|
16
|
+
error?: boolean;
|
|
17
|
+
/** If true, the input will take up the full width of its container */
|
|
18
|
+
fullWidth?: boolean;
|
|
19
|
+
/** The helper text content. */
|
|
20
|
+
helperText?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* id to identify the element, also used to create label "for" and helper text id attribute
|
|
23
|
+
* values while it's optional, it is considered required for accessiblity best practice.
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
/** pass a ref to the input element */
|
|
27
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
28
|
+
/** The label content. */
|
|
29
|
+
label?: string;
|
|
30
|
+
max?: number | string;
|
|
31
|
+
min?: number | string;
|
|
32
|
+
/** The name of input element */
|
|
33
|
+
name: string;
|
|
34
|
+
/** A function that should be executed when the input loses focus */
|
|
35
|
+
onBlur?: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
36
|
+
/** A function that should be executed when the value of the input changes */
|
|
37
|
+
onChange?: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
38
|
+
/** A function that should be executed when the input gains focus */
|
|
39
|
+
onFocus?: (event: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
|
|
40
|
+
/** A function that should be executed when key is pressed */
|
|
41
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
42
|
+
/** A function that executes when a user releases a mouse button over an element. */
|
|
43
|
+
onMouseUp?: (event: MouseEvent) => void;
|
|
44
|
+
/** If true, the label will be persistently displayed outside of the field */
|
|
45
|
+
persistentLabel?: boolean;
|
|
46
|
+
/** If true, the input will be read-only. */
|
|
47
|
+
readOnly?: boolean;
|
|
48
|
+
/** If true, the label is displayed as required and the input element` will be required. */
|
|
49
|
+
required?: boolean;
|
|
50
|
+
/** If specified, the label being shrunk/unshrunk must be controlled by the consumer */
|
|
51
|
+
shrink?: boolean;
|
|
52
|
+
/** Size of the input */
|
|
53
|
+
size?: inputSizeOptions;
|
|
54
|
+
/** Icon placed before the children. */
|
|
55
|
+
startIcon?: ReactNode;
|
|
56
|
+
/** If true, the label and field will be displayed in a success state */
|
|
57
|
+
success?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Type of input should be a valid HTML 5 input type
|
|
60
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
|
|
61
|
+
*/
|
|
62
|
+
type?: string;
|
|
63
|
+
/** value of input field */
|
|
64
|
+
value?: string;
|
|
65
|
+
/** If true, the label will be displayed in an warning state. */
|
|
66
|
+
warning?: boolean;
|
|
67
|
+
}
|