Skip to content

Commit b9fd1c0

Browse files
authored
Merge pull request #310 from eccenca/feature/tourComponent-CMEM-6790
Visual tour component
2 parents fd4e22c + 72e027e commit b9fd1c0

10 files changed

Lines changed: 630 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ This is a major release, and it might be not compatible with your current usage
1919
- the `data` object provides `markerAppearance` to set and remove the edge arrows
2020
- `<EdgeNew />`
2121
- component for React Flow v12, displaying new connection lines
22+
- `<VisualTour />`
23+
- component to display a visual tour multi-step tour of the current view
2224

2325
### Removed
2426

src/components/Dialog/Modal.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface ModalProps extends TestableComponent, BlueprintOverlayProps {
2121
/**
2222
* Size of the modal.
2323
*/
24-
size?: "tiny" | "small" | "regular" | "large" | "xlarge" | "fullscreen";
24+
size?: ModalSize;
2525
/**
2626
* Prevents that a backdrop area is displayed behind the modal elements.
2727
*/
@@ -45,6 +45,8 @@ export interface ModalProps extends TestableComponent, BlueprintOverlayProps {
4545
forceTopPosition?: boolean;
4646
}
4747

48+
export type ModalSize = "tiny" | "small" | "regular" | "large" | "xlarge" | "fullscreen"
49+
4850
/**
4951
* Displays contents on top of other elements, used to create dialogs.
5052
* For most situations the usage of `SimpleDialog` and `AlertDialog` should be sufficient.

src/components/Icon/IconButton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ import Button, { ButtonProps } from "../Button/Button";
66
import { ValidIconName } from "./canonicalIconNames";
77
import Icon, { IconProps } from "./Icon";
88
import { TestIconProps } from "./TestIcon";
9+
import {TestableComponent} from "../interfaces";
910

1011
interface ExtendedButtonProps
11-
extends Omit<ButtonProps, "name" | "icon" | "rightIcon" | "text" | "minimal" | "tooltip"> {
12+
extends Omit<ButtonProps, "name" | "icon" | "rightIcon" | "text" | "minimal" | "tooltip">, TestableComponent {
1213
/**
1314
* Canonical icon name, or an array of strings.
1415
* In case of the array the first valid icon name is used.

src/components/Tooltip/Tooltip.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface TooltipProps extends Omit<BlueprintTooltipProps, "position"> {
1919
/**
2020
* The size specifies the dimension the tooltip overlay element can maximal grow.
2121
*/
22-
size?: "small" | "medium" | "large";
22+
size?: TooltipSize;
2323
/**
2424
* The tooltip will be attached to this element when it is hovered.
2525
*/
@@ -50,6 +50,8 @@ export interface TooltipProps extends Omit<BlueprintTooltipProps, "position"> {
5050
swapPlaceholderDelay?: number;
5151
}
5252

53+
export type TooltipSize = "small" | "medium" | "large"
54+
5355
export const Tooltip = ({
5456
children,
5557
content,

0 commit comments

Comments
 (0)