Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Add onClick to Tourpoint type (#211)
Browse files Browse the repository at this point in the history
* Add onClick to Tourpoint type

* 0.137.1
  • Loading branch information
juliewongbandue authored Nov 29, 2022
1 parent e560c76 commit a50de72
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start": "next start"
},
"dependencies": {
"@vimeo/iris": "^0.137.0",
"@vimeo/iris": "^0.137.1",
"next": "12.0.3",
"polished": "^4.1.3",
"react": "17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@vimeo/iris",
"homepage": "https://github.com/vimeo/iris/tree/main",
"bugs": "https://github.com/vimeo/iris/issues",
"version": "0.137.0",
"version": "0.137.1",
"private": false,
"license": "MIT",
"description": "Vimeo Design System",
Expand Down
1 change: 1 addition & 0 deletions src/components/TourPoint/TourPoint.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ const Template: Story<Props> = (args) => {
step={1}
title="A Fresh New Look"
content="All the leaves are brown and the sky is grey, I've been for a walk on a winters day."
onClick={() => console.log('tourpoint clicked')}
>
<Card>1</Card>
</TourPoint>
Expand Down
1 change: 1 addition & 0 deletions src/components/TourPoint/TourPoint.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface Props {
confirmation?: ReactNode;
content?: ReactNode;
dismission?: ReactNode;
onClick?: (event: MouseEvent) => void;
onClose?: (event: MouseEvent, step: StepEvent) => void;
/**
* The address or URL of the a media resource that is to be considered.
Expand Down
2 changes: 1 addition & 1 deletion src/utils/HOCs/withIris.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from 'react';
import { ThemeContext } from 'styled-components';

const version = '0.137.0';
const version = '0.137.1';

type IrisMeta =
| true
Expand Down

0 comments on commit a50de72

Please sign in to comment.