react-pop-cards 0.2.7 → 0.2.8

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { ReactNode, ReactElement, CSSProperties } from 'react';
2
2
  interface CardDataItem {
3
3
  title: string;
4
4
  description: string;
@@ -8,7 +8,7 @@ interface CardDataItem {
8
8
  interface CardProps {
9
9
  data: CardDataItem[];
10
10
  bgColor?: string;
11
- disposition?: string;
11
+ disposition?: 'LeftRight' | 'RightLeft' | 'TopBottom' | 'BottomTop';
12
12
  isRounded?: boolean;
13
13
  tension?: number;
14
14
  friction?: number;
package/dist/index.js CHANGED
@@ -3,7 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = void 0;
6
+ Object.defineProperty(exports, "Card", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _Card.default;
10
+ }
11
+ });
7
12
  var _react = _interopRequireDefault(require("react"));
8
13
  var _client = _interopRequireDefault(require("react-dom/client"));
9
14
  require("./index.css");
@@ -35,7 +40,4 @@ _client.default.createRoot(document.getElementById("root")).render( /*#__PURE__*
35
40
  tension: 120,
36
41
  friction: 10,
37
42
  bgColor: "#e5e7eb"
38
- })));
39
- var _default = exports.default = {
40
- Card: _Card.default
41
- };
43
+ })));
package/package.json CHANGED
@@ -1,13 +1,8 @@
1
1
  {
2
2
  "name": "react-pop-cards",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
4
4
  "main": "dist/index.js",
5
- "exports": {
6
- ".": {
7
- "types": "./dist/index.d.ts",
8
- "default": "./dist/index.js"
9
- }
10
- },
5
+ "types": "dist/index.d.ts",
11
6
  "module": "dist/index.js",
12
7
  "keywords": [
13
8
  "card",
@@ -17,6 +12,7 @@
17
12
  ],
18
13
  "files": [
19
14
  "dist",
15
+ "index.d.ts",
20
16
  "README.md"
21
17
  ],
22
18
  "repository": {
@@ -29,7 +25,6 @@
29
25
  "@testing-library/jest-dom": "^6.2.0",
30
26
  "@testing-library/react": "^14.1.2",
31
27
  "@testing-library/user-event": "^14.5.2",
32
- "chroma-js": "^2.4.2",
33
28
  "core-js": "^3.35.1",
34
29
  "prop-types": "^15.8.1",
35
30
  "react": "^18.2.0",
@@ -37,12 +32,13 @@
37
32
  "react-color": "^2.19.3",
38
33
  "react-dom": "^18.2.0",
39
34
  "react-responsive": "^9.0.2",
35
+ "chroma-js": "^2.4.2",
40
36
  "react-scripts": "5.0.1",
41
37
  "web-vitals": "^3.5.1"
42
38
  },
43
39
  "scripts": {
44
40
  "dev": "react-scripts start",
45
- "build": "rm -rf dist && NODE_ENV=production babel src/index.js --out-dir dist --copy-files && babel src/components/Card.js --out-dir dist/components --copy-files && postcss src/index.css -o dist/index.css tsc",
41
+ "build": "rm -rf dist && NODE_ENV=production babel src/index.js --out-dir dist --copy-files && babel src/components/Card.js --out-dir dist/components --copy-files && postcss src/index.css -o dist/index.css",
46
42
  "build:vercel": "react-scripts build",
47
43
  "test": "react-scripts test",
48
44
  "eject": "react-scripts eject"
@@ -75,7 +71,6 @@
75
71
  "daisyui": "^4.6.0",
76
72
  "postcss-cli": "^11.0.0",
77
73
  "react-typed": "^2.0.12",
78
- "tailwindcss": "^3.4.1",
79
- "typescript": "^5.3.3"
74
+ "tailwindcss": "^3.4.1"
80
75
  }
81
- }
76
+ }