-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
68 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
packages/components/src/Clickable/__snapshots__/Clickable.spec.tsx.snap
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
packages/components/src/ClickableStyleWrapper/ClickableStyleWrapper.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { generateSnapshots } from "@chanzuckerberg/story-utils"; | ||
import * as ClickableStyleWrapperStoryFile from "./ClickableStyleWrapper.stories"; | ||
|
||
describe("<ClickableStyleWrapper />", () => { | ||
generateSnapshots(ClickableStyleWrapperStoryFile); | ||
}); |
21 changes: 21 additions & 0 deletions
21
packages/components/src/ClickableStyleWrapper/ClickableStyleWrapper.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Story } from "@storybook/react/types-6-0"; | ||
import React from "react"; | ||
import ClickableStyleWrapper from "./ClickableStyleWrapper"; | ||
|
||
export default { | ||
title: "ClickableStyleWrapper", | ||
component: ClickableStyleWrapper, | ||
}; | ||
|
||
type Args = React.ComponentProps<typeof ClickableStyleWrapper>; | ||
|
||
const Template: Story<Args> = (args) => <ClickableStyleWrapper {...args} />; | ||
|
||
export const ClickableStyleWrapperAsAnATag = Template.bind(null); | ||
ClickableStyleWrapperAsAnATag.args = { | ||
as: "a", | ||
color: "brand", | ||
variant: "flat", | ||
size: "medium", | ||
children: "ClickableStyleWrapper As An A Tag", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...es/components/src/ClickableStyleWrapper/__snapshots__/ClickableStyleWrapper.spec.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<ClickableStyleWrapper /> ClickableStyleWrapperAsAnATag story renders snapshot 1`] = ` | ||
<a | ||
class="button sizeMedium variantFlat colorBrand" | ||
> | ||
| ||
ClickableStyleWrapper As An A Tag | ||
</a> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from "./ClickableStyleWrapper"; | ||
export type { ClickableStyleWrapperProps } from "./ClickableStyleWrapper"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters