-
Notifications
You must be signed in to change notification settings - Fork 2
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 #466 from searchspring/testing-snap-preact
Testing snap preact
- v0.62.0
- v0.61.5
- v0.61.4
- v0.61.3
- v0.61.2
- v0.61.1
- v0.61.0
- v0.60.4
- v0.60.3
- v0.60.2
- v0.60.1
- v0.60.0
- v0.59.0
- v0.58.3
- v0.58.2
- v0.58.1
- v0.58.0
- v0.57.0
- v0.56.6
- v0.56.5
- v0.56.4
- v0.56.3
- v0.56.2
- v0.56.1
- v0.56.0
- v0.55.0
- v0.54.0
- v0.53.4
- v0.53.3
- v0.53.2
- v0.53.1
- v0.53.0
- v0.52.2
- v0.52.1
- v0.52.0
- v0.51.2
- v0.51.1
- v0.51.0
- v0.50.0
- v0.49.1
- v0.49.0
- v0.48.0
- v0.47.0
- v0.46.0
- v0.45.1
- v0.45.0
- v0.44.3
- v0.44.2
- v0.44.1
- v0.44.0
- v0.43.1
- v0.43.0
- v0.42.3
- v0.42.2
- v0.42.1
- v0.42.0
- v0.41.2
- v0.41.1
- v0.41.0
- v0.40.0
- v0.39.3
- v0.39.2
- v0.39.1
- v0.39.0
- v0.38.1
- v0.38.0
- v0.37.1
- v0.37.0
- v0.36.0
- v0.35.0
- v0.34.7
- v0.34.6
- v0.34.5
- v0.34.4
- v0.34.3
- v0.34.2
- v0.34.1
- v0.34.0
- v0.33.0
- v0.32.0
- v0.31.0
- v0.30.2
- v0.30.1
- v0.30.0
- v0.29.0
- v0.28.0
- v0.27.8
- v0.27.7
- v0.27.6
- v0.27.5
- v0.27.4
- v0.27.3
- v0.27.2
- v0.27.1
- v0.27.0
Showing
42 changed files
with
4,070 additions
and
760 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
126 changes: 126 additions & 0 deletions
126
...snap-preact-components/src/components/Organisms/BranchOverride/BranchOverride.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,126 @@ | ||
import { h, Fragment } from 'preact'; | ||
|
||
import { ArgsTable, PRIMARY_STORY } from '@storybook/addon-docs/blocks'; | ||
|
||
import { BranchOverride } from './BranchOverride'; | ||
import { componentArgs } from '../../../utilities'; | ||
import Readme from '../BranchOverride/readme.md'; | ||
|
||
export default { | ||
title: `Organisms/BranchOverride`, | ||
component: BranchOverride, | ||
parameters: { | ||
docs: { | ||
page: () => ( | ||
<div> | ||
<Readme /> | ||
<ArgsTable story={PRIMARY_STORY} /> | ||
</div> | ||
), | ||
}, | ||
}, | ||
decorators: [ | ||
(Story) => ( | ||
<div | ||
style={{ | ||
maxWidth: '900px', | ||
position: 'relative', | ||
}} | ||
> | ||
<Story /> | ||
</div> | ||
), | ||
], | ||
argTypes: { | ||
name: { | ||
description: 'bundle branch name', | ||
type: { required: true }, | ||
table: { | ||
type: { | ||
summary: 'string', | ||
}, | ||
}, | ||
control: { type: 'text' }, | ||
}, | ||
details: { | ||
description: 'Object containing details for branch override', | ||
type: { required: false }, | ||
table: { | ||
type: { | ||
summary: '{ url: string; lastModified: string }', | ||
}, | ||
}, | ||
control: { type: 'object' }, | ||
}, | ||
error: { | ||
description: 'Object containing error message and description', | ||
type: { required: false }, | ||
table: { | ||
type: { | ||
summary: '{ message: string; description: string }', | ||
}, | ||
}, | ||
control: { type: 'object' }, | ||
}, | ||
onRemoveClick: { | ||
description: 'optional function to run on remove button click', | ||
table: { | ||
type: { | ||
summary: '(e: Event, name: string) => void', | ||
}, | ||
}, | ||
action: 'onRemoveClick', | ||
}, | ||
darkMode: { | ||
description: 'force dark darkMode', | ||
type: { required: false }, | ||
table: { | ||
type: { | ||
summary: 'boolean', | ||
}, | ||
}, | ||
control: { type: 'boolean' }, | ||
}, | ||
...componentArgs, | ||
}, | ||
}; | ||
|
||
const Template = (args) => <BranchOverride {...args} />; | ||
|
||
export const Auto = Template.bind({}); | ||
Auto.args = { | ||
name: 'next', | ||
details: { | ||
url: 'https://snapui.searchspring.io/y56s6x/next/bundle.js', | ||
lastModified: '1 Feb 2022 1:02:03 GMT', | ||
}, | ||
}; | ||
|
||
export const Dark = Template.bind({}); | ||
Dark.args = { | ||
name: 'next', | ||
details: { | ||
url: 'https://snapui.searchspring.io/y56s6x/next/bundle.js', | ||
lastModified: '1 Feb 2022 1:02:03 GMT', | ||
}, | ||
darkMode: true, | ||
}; | ||
|
||
export const Error = Template.bind({}); | ||
Error.args = { | ||
name: 'testing', | ||
error: { | ||
message: 'Branch not found!', | ||
description: 'Incorrect branch name or branch no longer exists.', | ||
}, | ||
}; | ||
|
||
export const Light = Template.bind({}); | ||
Light.args = { | ||
name: 'next', | ||
details: { | ||
url: 'https://snapui.searchspring.io/y56s6x/next/bundle.js', | ||
lastModified: '1 Feb 2022 1:02:03 GMT', | ||
}, | ||
darkMode: false, | ||
}; |
Oops, something went wrong.