react-pop-cards 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Card", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _Card.default;
10
+ }
11
+ });
12
+ var _react = _interopRequireDefault(require("react"));
13
+ var _client = _interopRequireDefault(require("react-dom/client"));
14
+ require("./index.css");
15
+ var _Card = _interopRequireDefault(require("./components/Card"));
16
+ var _Sandbox = _interopRequireDefault(require("./Sandbox"));
17
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
+ const array = ["Un", "Deux", "Trois", "Quatre"];
19
+ _client.default.createRoot(document.getElementById('root')).render( /*#__PURE__*/_react.default.createElement(_react.default.StrictMode, null, /*#__PURE__*/_react.default.createElement(_Card.default, {
20
+ data: array
21
+ })));
@@ -0,0 +1,79 @@
1
+ .flex{
2
+ display: flex;
3
+ }
4
+
5
+ .flex-col{
6
+ flex-direction: column;
7
+ }
8
+
9
+ .flex-row{
10
+ flex-direction: row;
11
+ }
12
+
13
+ .flex-col-reverse{
14
+ flex-direction: column-reverse;
15
+ }
16
+
17
+ .flex-row-reverse{
18
+ flex-direction: row-reverse;
19
+ }
20
+
21
+ .justify-center{
22
+ justify-content: center;
23
+ }
24
+
25
+ .justify-start{
26
+ justify-content: flex-start;
27
+ }
28
+
29
+ .items-start{
30
+ align-items: flex-start;
31
+ }
32
+
33
+ .items-center{
34
+ align-items: center;
35
+ }
36
+
37
+ .justify-end{
38
+ justify-content: flex-end;
39
+ }
40
+
41
+ .items-end{
42
+ align-items: flex-end;
43
+ }
44
+
45
+ .grid {
46
+ display: grid;
47
+ }
48
+
49
+ .grid-cols-2{
50
+ grid-template-columns: repeat(2, minmax(0, 1fr));
51
+ }
52
+
53
+ .grid-cols-5{
54
+ grid-template-columns: repeat(5, minmax(0, 1fr));
55
+ }
56
+
57
+ .h-screen{
58
+ height: 100vh;
59
+ }
60
+
61
+ .col-span-3{
62
+ grid-column: span 3 / span 3;
63
+ }
64
+
65
+ .col-span-2{
66
+ grid-column: span 2 / span 2;
67
+ }
68
+
69
+ .rounded-2xl{
70
+ border-radius: 1rem;
71
+ }
72
+
73
+ .order-1{
74
+ order: 1;
75
+ }
76
+
77
+ .order-2{
78
+ order: 2;
79
+ }
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "react-pop-cards",
3
+ "version": "0.2.0",
4
+ "main": "dist/index.js",
5
+ "module": "dist/index.js",
6
+ "keywords": [
7
+ "card",
8
+ "react",
9
+ "useSpring",
10
+ "tailwindcss"
11
+ ],
12
+ "files": [
13
+ "dist",
14
+ "README.md"
15
+ ],
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/thony32/test-card.git"
19
+ },
20
+ "dependencies": {
21
+ "-": "^0.0.1",
22
+ "@react-spring/web": "^9.7.3",
23
+ "@testing-library/jest-dom": "^6.2.0",
24
+ "@testing-library/react": "^14.1.2",
25
+ "@testing-library/user-event": "^14.5.2",
26
+ "prop-types": "^15.8.1",
27
+ "react": "^18.2.0",
28
+ "react-dom": "^18.2.0",
29
+ "react-responsive": "^9.0.2",
30
+ "react-scripts": "5.0.1",
31
+ "web-vitals": "^3.5.1"
32
+ },
33
+ "scripts": {
34
+ "start": "react-scripts start",
35
+ "build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files && postcss src/index.css -o dist/index.css",
36
+ "test": "react-scripts test",
37
+ "eject": "react-scripts eject"
38
+ },
39
+ "eslintConfig": {
40
+ "extends": [
41
+ "react-app",
42
+ "react-app/jest"
43
+ ]
44
+ },
45
+ "browserslist": {
46
+ "production": [
47
+ ">0.2%",
48
+ "not dead",
49
+ "not op_mini all"
50
+ ],
51
+ "development": [
52
+ "last 1 chrome version",
53
+ "last 1 firefox version",
54
+ "last 1 safari version"
55
+ ]
56
+ },
57
+ "devDependencies": {
58
+ "@babel/cli": "^7.23.4",
59
+ "@babel/core": "^7.23.7",
60
+ "@babel/preset-env": "^7.23.8",
61
+ "@babel/preset-react": "^7.23.3",
62
+ "autoprefixer": "^10.4.17",
63
+ "daisyui": "^4.6.0",
64
+ "postcss-cli": "^11.0.0",
65
+ "tailwindcss": "^3.4.1"
66
+ }
67
+ }