-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FRNT-142] generate snapshot pages (#16)
- Loading branch information
1 parent
d605a66
commit e9a1262
Showing
25 changed files
with
332 additions
and
124 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
### Props | ||
|
||
| Name | Type | Default | Description | | ||
| ------- | ------------------------ | -------- | ---------------------------------------------------------- | ---------- | ----------------------- | | ||
| `text` | `React.ReactNode` | | Text appeared on the button | | ||
| `left` | `React.ReactNode` | `null` | Component to show on the left side of the text (ex.: Icon) | | ||
| `right` | `React.ReactNode` | `null` | Component on the right side of the text | | ||
| `type` | `'button' | 'submit' | 'reset'` | `'button'` | HTML type of the button | | ||
| `...` | `HTMLButtonElementProps` | `{}` | Other props is inherited from `HTMLButtonElement` | |
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,9 @@ | ||
### Props | ||
|
||
| Name | Type | Default | Description | | ||
| ------- | ------------------------ | -------- | ---------------------------------------------------------- | ---------- | ----------------------- | | ||
| `text` | `React.ReactNode` | | Text appeared on the button | | ||
| `left` | `React.ReactNode` | `null` | Component to show on the left side of the text (ex.: Icon) | | ||
| `right` | `React.ReactNode` | `null` | Component on the right side of the text | | ||
| `type` | `'button' | 'submit' | 'reset'` | `'button'` | HTML type of the button | | ||
| `...` | `HTMLButtonElementProps` | `{}` | Other props is inherited from `HTMLButtonElement` | |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
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,5 @@ | ||
import React from 'react'; | ||
|
||
const ButtonStateMap = () => <button>Test button</button>; | ||
|
||
export default ButtonStateMap; |
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 @@ | ||
import React from 'react'; | ||
|
||
const ButtonMap = () => ( | ||
<> | ||
<button>Button variant 1</button> | ||
<button>Button variant 2</button> | ||
</> | ||
); | ||
|
||
export default ButtonMap; |
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 @@ | ||
### Спецификация |
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,15 +1,9 @@ | ||
--- | ||
name: input | ||
category: atoms | ||
package: 'woly' | ||
--- | ||
|
||
### Props | ||
|
||
| Name | Type | Default | Description | | ||
| ------- | ------------------------------- | ---------- | ---------------------------------------------------------- | | ||
| `text` | `React.ReactNode` | | Text appeared on the button | | ||
| `left` | `React.ReactNode` | `null` | Component to show on the left side of the text (ex.: Icon) | | ||
| `right` | `React.ReactNode` | `null` | Component on the right side of the text | | ||
| `type` | `'button' | 'submit' | 'reset'` | `'button'` | HTML type of the button | | ||
| `...` | `HTMLButtonElementProps` | `{}` | Other props is inherited from `HTMLButtonElement` | | ||
| Name | Type | Default | Description | | ||
| ------- | ------------------------ | -------- | ---------------------------------------------------------- | ---------- | ----------------------- | | ||
| `text` | `React.ReactNode` | | Text appeared on the button | | ||
| `left` | `React.ReactNode` | `null` | Component to show on the left side of the text (ex.: Icon) | | ||
| `right` | `React.ReactNode` | `null` | Component on the right side of the text | | ||
| `type` | `'button' | 'submit' | 'reset'` | `'button'` | HTML type of the button | | ||
| `...` | `HTMLButtonElementProps` | `{}` | Other props is inherited from `HTMLButtonElement` | |
Empty file.
5 changes: 5 additions & 0 deletions
5
example/src/woly/molecules/input-password/__screenshot-test__/index.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,5 @@ | ||
import React from 'react'; | ||
|
||
const InpurPasswordStateMap = () => <input type="password" />; | ||
|
||
export default InpurPasswordStateMap; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
const paths = { | ||
componentUsage: ({ package: p, name }) => `/package/${p}/component/${name}`, | ||
componentPage: ({ package: p, category, name }) => | ||
`/${p}/${category}/${name}`, | ||
}; | ||
module.exports = { paths }; |
Oops, something went wrong.