-
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.
- Loading branch information
1 parent
b74158e
commit e26f847
Showing
90 changed files
with
1,171 additions
and
661 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
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.
25 changes: 25 additions & 0 deletions
25
packages/docs/src/components/react/components/JsonViewer.jsx
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,25 @@ | ||
import React from "react"; | ||
|
||
import loadable from "@loadable/component"; | ||
const ReactJson = loadable(() => import("react-json-view")); | ||
|
||
function JsonViewer(props) { | ||
const { json } = props; | ||
return ( | ||
<div className="m-4"> | ||
<ReactJson | ||
src={json} | ||
theme={"twilight"} | ||
displayDataTypes={false} | ||
enableClipboard={false} | ||
enableAdd={false} | ||
enableEdit={false} | ||
displayObjectSize={false} | ||
iconStyle={"circle"} | ||
indentWidth={5} | ||
/> | ||
</div> | ||
); | ||
} | ||
|
||
export default JsonViewer; |
8 changes: 7 additions & 1 deletion
8
packages/docs/src/components/react/components/styles.module.css
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,8 +1,14 @@ | ||
.widget { | ||
background-color: red; | ||
background-color: #b39cd0; | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
color: black; | ||
align-items: center; | ||
text-align: center; | ||
padding: 10px; | ||
} | ||
|
||
:global(.grid-stack) { | ||
background-color: #fbeaff; | ||
} |
Oops, something went wrong.