bmj-ui 1.0.0 → 1.0.2

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/README.md ADDED
@@ -0,0 +1,7 @@
1
+ #Installation
2
+
3
+ Install the library and its peer dependencies via your preferred package manager.
4
+
5
+ `npm install bmj-ui lucide-react motion recharts`
6
+
7
+ Ensure you have tailwindcss and typescript configured in your project.
package/dist/index.d.ts CHANGED
@@ -13,6 +13,19 @@ declare function AppSidebar({ items, onItemClick, activeItem, }: {
13
13
  activeItem?: string;
14
14
  }): react_jsx_runtime.JSX.Element;
15
15
 
16
+ interface ChartCardProps {
17
+ title: string;
18
+ description?: string;
19
+ data: any[];
20
+ dataKey: string;
21
+ categoryKey: string;
22
+ color?: string;
23
+ className?: string;
24
+ loading?: boolean;
25
+ type?: "area" | "bar" | "line" | "scatter";
26
+ }
27
+ declare function ChartCard({ title, description, data, dataKey, categoryKey, color, className, loading, type, }: ChartCardProps): react_jsx_runtime.JSX.Element;
28
+
16
29
  interface DashboardLayoutProps {
17
30
  children: React.ReactNode;
18
31
  sidebarItems?: SidebarItem[];
@@ -35,19 +48,6 @@ interface StatCardProps {
35
48
  }
36
49
  declare function StatCard({ title, value, description, trend, icon: Icon, className, loading, }: StatCardProps): react_jsx_runtime.JSX.Element;
37
50
 
38
- interface ChartCardProps {
39
- title: string;
40
- description?: string;
41
- data: any[];
42
- dataKey: string;
43
- categoryKey: string;
44
- color?: string;
45
- className?: string;
46
- loading?: boolean;
47
- type?: "area" | "bar" | "line" | "scatter";
48
- }
49
- declare function ChartCard({ title, description, data, dataKey, categoryKey, color, className, loading, type, }: ChartCardProps): react_jsx_runtime.JSX.Element;
50
-
51
51
  declare function Topbar(): react_jsx_runtime.JSX.Element;
52
52
 
53
53
  export { AppSidebar, ChartCard, DashboardLayout, StatCard, Topbar };
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Topbar=exports.StatCard=exports.DashboardLayout=exports.ChartCard=exports.AppSidebar=void 0;const e=require("./components/bmj-ui");Object.defineProperty(exports,"AppSidebar",{enumerable:!0,get:function(){return e.AppSidebar}});const r=require("./components/bmj-ui");Object.defineProperty(exports,"ChartCard",{enumerable:!0,get:function(){return r.ChartCard}});const t=require("./components/bmj-ui");Object.defineProperty(exports,"DashboardLayout",{enumerable:!0,get:function(){return t.DashboardLayout}});const o=require("./components/bmj-ui");Object.defineProperty(exports,"StatCard",{enumerable:!0,get:function(){return o.StatCard}});const n=require("./components/bmj-ui");Object.defineProperty(exports,"Topbar",{enumerable:!0,get:function(){return n.Topbar}});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Topbar=exports.StatCard=exports.DashboardLayout=exports.ChartCard=exports.AppSidebar=void 0;const e=require("./components/bmj-ui/AppSidebar");Object.defineProperty(exports,"AppSidebar",{enumerable:!0,get:function(){return e.AppSidebar}});const r=require("./components/bmj-ui/ChartCard");Object.defineProperty(exports,"ChartCard",{enumerable:!0,get:function(){return r.ChartCard}});const t=require("./components/bmj-ui/DashboardLayout");Object.defineProperty(exports,"DashboardLayout",{enumerable:!0,get:function(){return t.DashboardLayout}});const o=require("./components/bmj-ui/StatCard");Object.defineProperty(exports,"StatCard",{enumerable:!0,get:function(){return o.StatCard}});const a=require("./components/bmj-ui/Topbar");Object.defineProperty(exports,"Topbar",{enumerable:!0,get:function(){return a.Topbar}});
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["import { AppSidebar } from \"./components/bmj-ui\";\nimport { ChartCard } from \"./components/bmj-ui\";\nimport { DashboardLayout } from \"./components/bmj-ui\";\nimport { StatCard } from \"./components/bmj-ui\";\nimport { Topbar } from \"./components/bmj-ui\";\n\nexport { AppSidebar, ChartCard, DashboardLayout, StatCard, Topbar };\n"],"names":["bmj_ui_1","require","Object","defineProperty","exports","enumerable","get","bmj_ui_2","bmj_ui_3","bmj_ui_4","bmj_ui_5"],"mappings":"wKAAA,MAAAA,EAAAC,QAAA,uBAMSC,OAAAC,eAAAC,QAAA,aAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OANAN,YAAU,IACnB,MAAAO,EAAAN,QAAA,uBAKqBC,OAAAC,eAAAC,QAAA,YAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OALZC,WAAS,IAClB,MAAAC,EAAAP,QAAA,uBAIgCC,OAAAC,eAAAC,QAAA,kBAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAJvBE,iBAAe,IACxB,MAAAC,EAAAR,QAAA,uBAGiDC,OAAAC,eAAAC,QAAA,WAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAHxCG,UAAQ,IACjB,MAAAC,EAAAT,QAAA,uBAE2DC,OAAAC,eAAAC,QAAA,SAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAFlDI,QAAM"}
1
+ {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { AppSidebar } from \"./components/bmj-ui/AppSidebar\";\nimport { ChartCard } from \"./components/bmj-ui/ChartCard\";\nimport { DashboardLayout } from \"./components/bmj-ui/DashboardLayout\";\nimport { StatCard } from \"./components/bmj-ui/StatCard\";\nimport { Topbar } from \"./components/bmj-ui/Topbar\";\n\nexport { AppSidebar, ChartCard, DashboardLayout, StatCard, Topbar };\n"],"names":["AppSidebar_1","require","Object","defineProperty","exports","enumerable","get","ChartCard_1","DashboardLayout_1","StatCard_1","Topbar_1"],"mappings":"wKAAA,MAAAA,EAAAC,QAAA,kCAMSC,OAAAC,eAAAC,QAAA,aAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OANAN,YAAU,IACnB,MAAAO,EAAAN,QAAA,iCAKqBC,OAAAC,eAAAC,QAAA,YAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OALZC,WAAS,IAClB,MAAAC,EAAAP,QAAA,uCAIgCC,OAAAC,eAAAC,QAAA,kBAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAJvBE,iBAAe,IACxB,MAAAC,EAAAR,QAAA,gCAGiDC,OAAAC,eAAAC,QAAA,WAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAHxCG,UAAQ,IACjB,MAAAC,EAAAT,QAAA,8BAE2DC,OAAAC,eAAAC,QAAA,SAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAFlDI,QAAM"}
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.Topbar=exports.StatCard=exports.DashboardLayout=exports.ChartCard=exports.AppSidebar=void 0;const e=require("./components/bmj-ui");Object.defineProperty(exports,"AppSidebar",{enumerable:!0,get:function(){return e.AppSidebar}});const r=require("./components/bmj-ui");Object.defineProperty(exports,"ChartCard",{enumerable:!0,get:function(){return r.ChartCard}});const t=require("./components/bmj-ui");Object.defineProperty(exports,"DashboardLayout",{enumerable:!0,get:function(){return t.DashboardLayout}});const o=require("./components/bmj-ui");Object.defineProperty(exports,"StatCard",{enumerable:!0,get:function(){return o.StatCard}});const n=require("./components/bmj-ui");Object.defineProperty(exports,"Topbar",{enumerable:!0,get:function(){return n.Topbar}});
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.Topbar=exports.StatCard=exports.DashboardLayout=exports.ChartCard=exports.AppSidebar=void 0;const e=require("./components/bmj-ui/AppSidebar");Object.defineProperty(exports,"AppSidebar",{enumerable:!0,get:function(){return e.AppSidebar}});const r=require("./components/bmj-ui/ChartCard");Object.defineProperty(exports,"ChartCard",{enumerable:!0,get:function(){return r.ChartCard}});const t=require("./components/bmj-ui/DashboardLayout");Object.defineProperty(exports,"DashboardLayout",{enumerable:!0,get:function(){return t.DashboardLayout}});const o=require("./components/bmj-ui/StatCard");Object.defineProperty(exports,"StatCard",{enumerable:!0,get:function(){return o.StatCard}});const a=require("./components/bmj-ui/Topbar");Object.defineProperty(exports,"Topbar",{enumerable:!0,get:function(){return a.Topbar}});
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { AppSidebar } from \"./components/bmj-ui\";\nimport { ChartCard } from \"./components/bmj-ui\";\nimport { DashboardLayout } from \"./components/bmj-ui\";\nimport { StatCard } from \"./components/bmj-ui\";\nimport { Topbar } from \"./components/bmj-ui\";\n\nexport { AppSidebar, ChartCard, DashboardLayout, StatCard, Topbar };\n"],"names":["bmj_ui_1","require","Object","defineProperty","exports","enumerable","get","bmj_ui_2","bmj_ui_3","bmj_ui_4","bmj_ui_5"],"mappings":"2JAAA,MAAAA,EAAAC,QAAA,uBAMSC,OAAAC,eAAAC,QAAA,aAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OANAN,YAAU,IACnB,MAAAO,EAAAN,QAAA,uBAKqBC,OAAAC,eAAAC,QAAA,YAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OALZC,WAAS,IAClB,MAAAC,EAAAP,QAAA,uBAIgCC,OAAAC,eAAAC,QAAA,kBAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAJvBE,iBAAe,IACxB,MAAAC,EAAAR,QAAA,uBAGiDC,OAAAC,eAAAC,QAAA,WAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAHxCG,UAAQ,IACjB,MAAAC,EAAAT,QAAA,uBAE2DC,OAAAC,eAAAC,QAAA,SAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAFlDI,QAAM"}
1
+ {"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["import { AppSidebar } from \"./components/bmj-ui/AppSidebar\";\nimport { ChartCard } from \"./components/bmj-ui/ChartCard\";\nimport { DashboardLayout } from \"./components/bmj-ui/DashboardLayout\";\nimport { StatCard } from \"./components/bmj-ui/StatCard\";\nimport { Topbar } from \"./components/bmj-ui/Topbar\";\n\nexport { AppSidebar, ChartCard, DashboardLayout, StatCard, Topbar };\n"],"names":["AppSidebar_1","require","Object","defineProperty","exports","enumerable","get","ChartCard_1","DashboardLayout_1","StatCard_1","Topbar_1"],"mappings":"2JAAA,MAAAA,EAAAC,QAAA,kCAMSC,OAAAC,eAAAC,QAAA,aAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OANAN,YAAU,IACnB,MAAAO,EAAAN,QAAA,iCAKqBC,OAAAC,eAAAC,QAAA,YAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OALZC,WAAS,IAClB,MAAAC,EAAAP,QAAA,uCAIgCC,OAAAC,eAAAC,QAAA,kBAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAJvBE,iBAAe,IACxB,MAAAC,EAAAR,QAAA,gCAGiDC,OAAAC,eAAAC,QAAA,WAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAHxCG,UAAQ,IACjB,MAAAC,EAAAT,QAAA,8BAE2DC,OAAAC,eAAAC,QAAA,SAAA,CAAAC,YAAA,EAAAC,IAAA,WAAA,OAFlDI,QAAM"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bmj-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
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": "",
@@ -38,6 +38,7 @@
38
38
  "lucide-react": "^1.8.0",
39
39
  "motion": "^12.38.0",
40
40
  "recharts": "^3.8.1",
41
- "sonner": "^2.0.7"
41
+ "sonner": "^2.0.7",
42
+ "tailwind-merge": "^3.5.0"
42
43
  }
43
44
  }
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { AppSidebar } from "./components/bmj-ui";
2
- import { ChartCard } from "./components/bmj-ui";
3
- import { DashboardLayout } from "./components/bmj-ui";
4
- import { StatCard } from "./components/bmj-ui";
5
- import { Topbar } from "./components/bmj-ui";
1
+ import { AppSidebar } from "./components/bmj-ui/AppSidebar";
2
+ import { ChartCard } from "./components/bmj-ui/ChartCard";
3
+ import { DashboardLayout } from "./components/bmj-ui/DashboardLayout";
4
+ import { StatCard } from "./components/bmj-ui/StatCard";
5
+ import { Topbar } from "./components/bmj-ui/Topbar";
6
6
 
7
7
  export { AppSidebar, ChartCard, DashboardLayout, StatCard, Topbar };
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "rootDir": "./src",
3
+ "rootDir": ".",
4
4
  "outDir": "./dist",
5
5
  "target": "es6",
6
6
  "lib": ["DOM", "DOM.Iterable", "ESNext"],