Skip to content

Commit

Permalink
fix(CodeEditor): export CodeEditor component (#3834)
Browse files Browse the repository at this point in the history
* fix(codeeditor): export codeeditor component

* chore(snapshots): snapshots update
  • Loading branch information
cgirani authored Dec 15, 2023
1 parent 226e247 commit 9bd3e41
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/react/.storybook/__snapshots__/Welcome.story.storyshot
Original file line number Diff line number Diff line change
Expand Up @@ -3879,6 +3879,21 @@ exports[`Storybook Snapshot tests and console checks Storyshots 0 - Overview/Get
CardCodeEditor
</div>
</div>
<div
className="bx--structured-list-row"
role="row"
>
<div
className="bx--structured-list-td"
role="cell"
/>
<div
className="bx--structured-list-td"
role="cell"
>
CodeEditor
</div>
</div>
<div
className="bx--structured-list-row"
role="row"
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export { default as Button } from './components/Button';
export { default as Breadcrumb, BreadcrumbItem, BreadcrumbSkeleton } from './components/Breadcrumb';
export { default as ComposedModal } from './components/ComposedModal';
export { default as CardCodeEditor } from './components/CardCodeEditor/CardCodeEditor';
export { default as CodeEditor } from './components/CodeEditor/CodeEditor';
export { default as EmptyTable } from './components/Table/EmptyTable/EmptyTable';
export { default as Table } from './components/Table';
export { default as TableHead } from './components/Table/TableHead/TableHead';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,76 @@ Map {
},
},
},
"CodeEditor" => Object {
"defaultProps": Object {
"accept": Array [
".css",
],
"disabled": false,
"hasUpload": false,
"i18n": Object {
"copyBtnDescription": "Copy content",
"copyBtnFeedBack": "Copied",
"uploadBtnDescription": "Upload your file",
},
"initialValue": null,
"language": "css",
"light": false,
"onCodeEditorChange": null,
"onCopy": null,
"testId": "code-editor",
},
"propTypes": Object {
"accept": Object {
"args": Array [
Object {
"type": "string",
},
],
"type": "arrayOf",
},
"disabled": Object {
"type": "bool",
},
"hasUpload": Object {
"type": "bool",
},
"i18n": Object {
"args": Array [
Object {
"copyBtnDescription": Object {
"type": "string",
},
"copyBtnFeedBack": Object {
"type": "string",
},
"uploadBtnDescription": Object {
"type": "string",
},
},
],
"type": "shape",
},
"initialValue": Object {
"type": "string",
},
"language": Object {
"type": "string",
},
"light": Object {
"type": "bool",
},
"onCodeEditorChange": Object {
"type": "func",
},
"onCopy": Object {
"type": "func",
},
"testId": Object {
"type": "string",
},
},
},
"EmptyTable" => Object {
"defaultProps": Object {
"id": "EmptyTable",
Expand Down

0 comments on commit 9bd3e41

Please sign in to comment.