Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update snapshots #459

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions packages/react/src/components/DropdownSelector/index.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,39 @@ export const Basic: StoryObj<typeof DropdownSelector> = {
),
}

export const LongNames: StoryObj<typeof DropdownSelector> = {
render: function Render(args) {
const [selected, setSelected] = useState('10')
return (
<div
style={{
width: 288,
}}
>
<DropdownSelector
{...args}
onChange={(value) => {
setSelected(value)
}}
value={selected}
label="label"
>
<DropdownMenuItem value={'10'}>
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
</DropdownMenuItem>
<DropdownMenuItem value={'20'}>
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</DropdownMenuItem>
<DropdownMenuItem value={'30'}>
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
nisi ut aliquip ex ea commodo consequat.
</DropdownMenuItem>
</DropdownSelector>
</div>
)
},
}

const DummyBox = styled.div`
border: solid 1px ${({ theme }) => theme.border.default.color};
display: flex;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storyshots LoadingSpinnerIcon Icon 1`] = `
.c0 {
width: 1em;
height: 1em;
border-radius: 1em;
background-color: currentColor;
-webkit-animation: cNZOgq 1s both ease-out;
animation: cNZOgq 1s both ease-out;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}

.c0[data-reset-animation] {
-webkit-animation: none;
animation: none;
}

<div
data-dark={false}
>
<div
className="c0"
role="presentation"
/>
</div>
`;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Storyshots LoadingSpinner Basic 1`] = `
exports[`Storyshots LoadingSpinner Default 1`] = `
.c0 {
box-sizing: content-box;
margin: auto;
Expand Down Expand Up @@ -45,37 +45,3 @@ exports[`Storyshots LoadingSpinner Basic 1`] = `
</div>
</div>
`;

exports[`Storyshots LoadingSpinner Icon 1`] = `
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it has been moved to LoadingSpinnerIcon.story.tsx

.c0 {
width: 1em;
height: 1em;
border-radius: 1em;
background-color: currentColor;
-webkit-animation: cNZOgq 1s both ease-out;
animation: cNZOgq 1s both ease-out;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}

.c0[data-reset-animation] {
-webkit-animation: none;
animation: none;
}

<div
data-dark={false}
>
<div
css="
font-size: 12px;
color: #B1CC29;
"
>
<div
className="c0"
role="presentation"
/>
</div>
</div>
`;
Loading