-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1660 from isomerpages/release/0.57.0
0.57.0
- Loading branch information
Showing
42 changed files
with
1,731 additions
and
653 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export const BxErrorSolid = ( | ||
props: React.SVGProps<SVGSVGElement> | ||
): JSX.Element => { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
{...props} | ||
> | ||
<path | ||
d="M8.58939 1.68808C8.35872 1.25208 7.64139 1.25208 7.41072 1.68808L1.41072 13.0214C1.35671 13.123 1.32993 13.2368 1.333 13.3518C1.33607 13.4668 1.36887 13.5791 1.42822 13.6777C1.48757 13.7762 1.57144 13.8577 1.67165 13.9142C1.77187 13.9707 1.88501 14.0003 2.00005 14.0001H14.0001C14.115 14.0003 14.2281 13.9708 14.3282 13.9143C14.4284 13.8578 14.5122 13.7764 14.5715 13.6779C14.6308 13.5794 14.6635 13.4672 14.6665 13.3522C14.6696 13.2373 14.6427 13.1236 14.5887 13.0221L8.58939 1.68808ZM8.66672 12.0001H7.33339V10.6667H8.66672V12.0001ZM7.33339 9.33342V6.00008H8.66672L8.66739 9.33342H7.33339Z" | ||
fill="#272D41" | ||
/> | ||
</svg> | ||
) | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export const MAX_UPLOAD_SIZE_MB = 5 | ||
export const MAX_NUM_UPLOADS = 5 |
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,91 @@ | ||
import type { Meta, StoryFn } from "@storybook/react" | ||
import { MemoryRouter, Route } from "react-router-dom" | ||
|
||
import { Breadcrumbs } from "./Breadcrumbs" | ||
|
||
const breakcrumbsMeta = { | ||
title: "Components/Breadcrumbs", | ||
component: Breadcrumbs, | ||
decorators: [ | ||
(Story) => { | ||
return ( | ||
<MemoryRouter | ||
initialEntries={[ | ||
"/sites/storybook/media/images/mediaDirectory/images", | ||
]} | ||
> | ||
<Route path="/sites/:siteName/media/:mediaRoom/mediaDirectory/:mediaDirectoryName"> | ||
<Story /> | ||
</Route> | ||
</MemoryRouter> | ||
) | ||
}, | ||
], | ||
} as Meta<typeof Breadcrumbs> | ||
|
||
const breadcrumbsTemplate: StoryFn<typeof Breadcrumbs> = (props) => { | ||
return <Breadcrumbs {...props} /> | ||
} | ||
|
||
export const Default = breadcrumbsTemplate.bind({}) | ||
|
||
Default.args = { | ||
items: [ | ||
{ title: "images", url: "#" }, | ||
{ | ||
title: "nested-album", | ||
url: "#", | ||
}, | ||
{ | ||
title: "level-3", | ||
url: "#", | ||
}, | ||
], | ||
} | ||
|
||
export const Truncated = breadcrumbsTemplate.bind({}) | ||
|
||
Truncated.args = { | ||
items: [ | ||
{ title: "images", url: "#" }, | ||
{ | ||
title: "nested-album", | ||
url: "#", | ||
}, | ||
{ | ||
title: "level-3", | ||
url: "#", | ||
}, | ||
{ | ||
title: "level-4", | ||
url: "#", | ||
}, | ||
], | ||
} | ||
|
||
export const NotLinked = breadcrumbsTemplate.bind({}) | ||
|
||
NotLinked.args = { | ||
items: [ | ||
{ title: "images", url: "#" }, | ||
{ | ||
title: "nested-album", | ||
url: "#", | ||
}, | ||
{ | ||
title: "level-3", | ||
url: "#", | ||
}, | ||
{ | ||
title: "level-4", | ||
url: "#", | ||
}, | ||
], | ||
maxBreadcrumbsLength: 4, | ||
spacing: "0rem", | ||
textStyle: "body-2", | ||
isLinked: false, | ||
isLastChildUnderlined: true, | ||
} | ||
|
||
export default breakcrumbsMeta |
Oops, something went wrong.