Skip to content

Commit

Permalink
Support new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed Mar 28, 2022
1 parent 7897fb4 commit 52fb663
Show file tree
Hide file tree
Showing 31 changed files with 7 additions and 43 deletions.
12 changes: 3 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{
"name": "react-atomic-molecule",
"version": "3.0.5",
"version": "4.0.0",
"description": "Atomic design in React (molecules)",
"main": "./build/cjs/src/index.js",
"module": "./build/es/src/index.js",
"repository": "react-atomic/react-atomic-molecule",
"keywords": [
"reactjs"
],
"keywords": ["reactjs"],
"author": "Hill <[email protected]>",
"license": "MIT",
"dependencies": {
Expand Down Expand Up @@ -61,9 +59,5 @@
"test": "npm run build && npm run mocha",
"prepublishOnly": "npm run format && npm run test"
},
"files": [
"build",
"package.json",
"README.md"
]
"files": ["build", "package.json", "README.md"]
}
2 changes: 1 addition & 1 deletion ui/molecules/Button.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect } from "react";
import { useEffect } from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import Icon from "../molecules/Icon";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Card.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Circular.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Column.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";

Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Content.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";

Expand Down
2 changes: 0 additions & 2 deletions ui/molecules/Description.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* jshint esnext: true */
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";

Expand Down
2 changes: 0 additions & 2 deletions ui/molecules/Dimmer.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* jshint esnext: true */
import React from "react";
import { mixClass } from "class-lib";
import Content from "../molecules/Content";
import SemanticUI from "../molecules/SemanticUI";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Divider.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/DividingHeader.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
3 changes: 1 addition & 2 deletions ui/molecules/Field.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* jshint esnext: true */
import React, { cloneElement } from "react";
import { cloneElement } from "react";
import { mixClass } from "class-lib";
import get from "get-object-value";
import SemanticUI from "../molecules/SemanticUI";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Form.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Icon.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";

Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Image.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/InputBox.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import Button from "../molecules/Button";
Expand Down
2 changes: 0 additions & 2 deletions ui/molecules/Item.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* jshint esnext: true */
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Label.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
2 changes: 1 addition & 1 deletion ui/molecules/List.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Children, cloneElement } from "react";
import { Children, cloneElement } from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Menu.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Message.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import Header from "../molecules/Header";
import SemanticUI from "../molecules/SemanticUI";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Meta.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";

Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Progress.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import Label from "../molecules/Label";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Rail.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Ribbon.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import Label from "../molecules/Label";

Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Row.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";

Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Segment.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";
import useCSS from "../../src/useCSS";
Expand Down
2 changes: 1 addition & 1 deletion ui/molecules/SemanticUI.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { createElement } from "react";
import { createElement } from "react";
import * as Atoms from "react-atomic-atom";
import get from "get-object-value";
import ucfirst from "ucfirst-js";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Title.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import SemanticUI from "../molecules/SemanticUI";

Expand Down
1 change: 0 additions & 1 deletion ui/molecules/Unsafe.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { mixClass } from "class-lib";
import callfunc from "call-func";
import SemanticUI from "../molecules/SemanticUI";
Expand Down
1 change: 0 additions & 1 deletion ui/molecules/__tests__/ImageTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ describe("Test Image", () => {
});
it("img embedded in div not set loading", () => {
const wrapper = mount(<Image atom="div" loading={null} />);
console.log(wrapper.html());
expect(wrapper.html()).to.not.have.string(`loading="lazy"`);
});
});

0 comments on commit 52fb663

Please sign in to comment.