bmj-ui 1.0.14 → 1.0.15

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/package.json CHANGED
@@ -1,12 +1,20 @@
1
1
  {
2
2
  "name": "bmj-ui",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "Headless component library meticulously crafted for rapid dashboard development. Professional, polished, and ready for production.",
5
5
  "license": "ISC",
6
6
  "author": "",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.mjs",
9
9
  "types": "dist/index.d.ts",
10
+ "files": [
11
+ "dist",
12
+ "src"
13
+ ],
14
+ "exports": {
15
+ ".": "./dist/index.js",
16
+ "./src": "./src/index.ts"
17
+ },
10
18
  "scripts": {
11
19
  "test": "echo \"Error: no test specified\" && exit 1",
12
20
  "rollup": "rollup -c --bundleConfigAsCjs"
package/rollup.config.js DELETED
@@ -1,42 +0,0 @@
1
- import resolve from "@rollup/plugin-node-resolve";
2
- import commonjs from "@rollup/plugin-commonjs";
3
- import typescript from "@rollup/plugin-typescript";
4
- import dts from "rollup-plugin-dts";
5
- import terser from "@rollup/plugin-terser";
6
- import peerDepsExternal from "rollup-plugin-peer-deps-external";
7
- import postcss from "rollup-plugin-postcss";
8
-
9
- const packageJson = require("./package.json");
10
-
11
- export default [
12
- {
13
- input: "src/index.ts",
14
- output: [
15
- {
16
- file: packageJson.main,
17
- format: "cjs",
18
- sourcemap: true,
19
- },
20
- {
21
- file: packageJson.module,
22
- format: "esm",
23
- sourcemap: true,
24
- },
25
- ],
26
- plugins: [
27
- peerDepsExternal(),
28
- resolve(),
29
- commonjs(),
30
- typescript({ tsconfig: "./tsconfig.json" }),
31
- terser(),
32
- postcss(),
33
- ],
34
- external: ["react", "react-dom"],
35
- },
36
- {
37
- input: "src/index.ts",
38
- output: [{ file: packageJson.types }],
39
- plugins: [dts.default()],
40
- external: [/\.css/],
41
- },
42
- ];
@@ -1,5 +0,0 @@
1
- export { default as DashboardLayout } from "./DashboardLayout";
2
- export { default as StatCard } from "./StatCard";
3
- export { default as ChartCard } from "./ChartCard";
4
- export { default as AppSidebar } from "./AppSidebar";
5
- export { default as Topbar } from "./Topbar";
@@ -1,18 +0,0 @@
1
- import {
2
- DashboardLayout,
3
- StatCard,
4
- ChartCard,
5
- AppSidebar,
6
- Topbar,
7
- } from "./bmj-ui/indexssss";
8
-
9
- import * as baseComponents from "./ui/indexsssss";
10
-
11
- export {
12
- DashboardLayout,
13
- StatCard,
14
- ChartCard,
15
- AppSidebar,
16
- Topbar,
17
- baseComponents,
18
- };
package/tsconfig.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "rootDir": "./src",
4
- "outDir": "dist",
5
- "target": "es5",
6
- "lib": ["dom", "dom.iterable", "esnext"],
7
- "allowJs": true,
8
- "skipLibCheck": true,
9
- "esModuleInterop": true,
10
- "allowSyntheticDefaultImports": true,
11
- "strict": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "noFallthroughCasesInSwitch": true,
14
- "module": "esnext",
15
- "moduleResolution": "node",
16
- "resolveJsonModule": true,
17
- "isolatedModules": true,
18
- "noEmit": true,
19
- "jsx": "react-jsx",
20
- "ignoreDeprecations": "6.0"
21
- },
22
- "include": ["src"],
23
- "exclude": ["node_modules", "dist", "rollup.config.js"]
24
- }