-
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.
feat: normalize style and update docs
- Loading branch information
1 parent
924faab
commit 57c454b
Showing
16 changed files
with
11,788 additions
and
292 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projects": { | ||
"default": "react-click-to-edit" | ||
} | ||
} |
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,11 +1,13 @@ | ||
.DS_Store | ||
|
||
*.log | ||
*.swp | ||
|
||
node_modules/ | ||
dist/ | ||
.docz/ | ||
.firebase/ | ||
|
||
|
||
*.css.json/ | ||
|
||
*.swp | ||
|
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.wrapper { | ||
padding: 0 0.5ch; | ||
} | ||
|
||
.text { | ||
color: #4682b4; | ||
text-decoration: underline; | ||
} | ||
|
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,53 @@ | ||
--- | ||
name: Examples | ||
--- | ||
import { Playground } from "docz" | ||
import "./examples.css" | ||
import CTE from "../dist/index.cjs.js" | ||
|
||
## Article | ||
|
||
### Give it a try | ||
|
||
<div> | ||
Lorem ipsum | ||
<CTE | ||
wrapperClass="wrapper" | ||
inputClass="input" | ||
textClass="text" | ||
initialValue={"click"} | ||
/> | ||
dolor sit amet, consectetur adipiscing elit. Quisque vestibulum ultricies massa, vel pulvinar metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris eget malesuada nunc. Maecenas non ultricies neque, ut tempor ligula. Quisque non nisi quis nisl accumsan venenatis vitae vitae est. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla dignissim nibh turpis, id sodales arcu accumsan luctus. | ||
<CTE | ||
wrapperClass="wrapper" | ||
inputClass="input" | ||
textClass="text" | ||
initialValue={"click"} | ||
/> | ||
In pulvinar accumsan euismod. Curabitur sodales rhoncus auctor. Donec urna massa, luctus sed libero id, sollicitudin efficitur lectus. Sed ullamcorper, nulla eu aliquet venenatis, mauris tortor fermentum nunc, ac. | ||
</div> | ||
|
||
### Source Code | ||
|
||
```css | ||
/* styles.css */ | ||
.wrapper { | ||
padding: 0 0.5ch; | ||
} | ||
|
||
.text { | ||
color: #4682b4; | ||
text-decoration: underline; | ||
} | ||
``` | ||
|
||
```js | ||
import CTE from "react-click-to-edit" | ||
|
||
<CTE | ||
wrapperClass="wrapper" | ||
textClass="text" | ||
initialValue={"click"} | ||
/> | ||
``` | ||
|
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,4 @@ | ||
export default { | ||
ignore: ["CHANGELOG.md"], | ||
menu: [{ name: "Readme", menu: ["General Usage"] }, "Examples"] | ||
}; |
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,16 @@ | ||
{ | ||
"hosting": { | ||
"public": ".docz/dist", | ||
"ignore": [ | ||
"firebase.json", | ||
"**/.*", | ||
"**/node_modules/**" | ||
], | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
] | ||
} | ||
} |
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
Oops, something went wrong.