@apexcura/ui-components 0.0.11-Beta111 → 0.0.11-Beta113
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.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +14 -1
- package/dist/index.mjs +14 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
2
|
|
|
3
3
|
type ElementType = {
|
|
4
|
+
[x: string]: any;
|
|
4
5
|
selectedStyle: boolean;
|
|
5
6
|
style: boolean;
|
|
6
7
|
className: string | undefined;
|
|
@@ -36,6 +37,9 @@ type ElementType = {
|
|
|
36
37
|
primaryText?: string;
|
|
37
38
|
secondaryText?: string;
|
|
38
39
|
count?: number;
|
|
40
|
+
icon?: React.JSX.Element;
|
|
41
|
+
placement?: string;
|
|
42
|
+
profileImage?: string;
|
|
39
43
|
};
|
|
40
44
|
|
|
41
45
|
interface ElementExecuterProps$3 extends ElementType {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React$1 from 'react';
|
|
2
2
|
|
|
3
3
|
type ElementType = {
|
|
4
|
+
[x: string]: any;
|
|
4
5
|
selectedStyle: boolean;
|
|
5
6
|
style: boolean;
|
|
6
7
|
className: string | undefined;
|
|
@@ -36,6 +37,9 @@ type ElementType = {
|
|
|
36
37
|
primaryText?: string;
|
|
37
38
|
secondaryText?: string;
|
|
38
39
|
count?: number;
|
|
40
|
+
icon?: React.JSX.Element;
|
|
41
|
+
placement?: string;
|
|
42
|
+
profileImage?: string;
|
|
39
43
|
};
|
|
40
44
|
|
|
41
45
|
interface ElementExecuterProps$3 extends ElementType {
|
package/dist/index.js
CHANGED
|
@@ -541,9 +541,22 @@ var Sidebar = (props) => {
|
|
|
541
541
|
};
|
|
542
542
|
|
|
543
543
|
// src/Components/Navbar.tsx
|
|
544
|
+
var import_react17 = __toESM(require("react"));
|
|
545
|
+
|
|
546
|
+
// src/Components/Notofication.tsx
|
|
544
547
|
var import_react15 = __toESM(require("react"));
|
|
548
|
+
var import_antd12 = require("antd");
|
|
549
|
+
var Notification = (props) => /* @__PURE__ */ import_react15.default.createElement(import_antd12.Popover, { content: props.items?.map((eachItem) => {
|
|
550
|
+
return /* @__PURE__ */ import_react15.default.createElement("div", null, /* @__PURE__ */ import_react15.default.createElement("p", null, eachItem.text), /* @__PURE__ */ import_react15.default.createElement("p", null, eachItem.time));
|
|
551
|
+
}), trigger: "focus", placement: "bottomRight" }, /* @__PURE__ */ import_react15.default.createElement(import_antd12.Button, null, /* @__PURE__ */ import_react15.default.createElement("div", null, /* @__PURE__ */ import_react15.default.createElement("span", null, props.icon), /* @__PURE__ */ import_react15.default.createElement("span", null, props.count))));
|
|
552
|
+
|
|
553
|
+
// src/Components/Profile.tsx
|
|
554
|
+
var import_react16 = __toESM(require("react"));
|
|
555
|
+
var Profile = (props) => /* @__PURE__ */ import_react16.default.createElement("div", null, /* @__PURE__ */ import_react16.default.createElement("img", { src: props.profileImage }), /* @__PURE__ */ import_react16.default.createElement("div", null, /* @__PURE__ */ import_react16.default.createElement("span", null, props.primaryText), /* @__PURE__ */ import_react16.default.createElement("span", null, props.secondaryText)));
|
|
556
|
+
|
|
557
|
+
// src/Components/Navbar.tsx
|
|
545
558
|
var Navbar = (props) => {
|
|
546
|
-
return /* @__PURE__ */
|
|
559
|
+
return /* @__PURE__ */ import_react17.default.createElement("div", { className: props.className }, /* @__PURE__ */ import_react17.default.createElement("span", { className: props.className }, props.dashboard.label), /* @__PURE__ */ import_react17.default.createElement("div", null, /* @__PURE__ */ import_react17.default.createElement(Notification, { ...props })), /* @__PURE__ */ import_react17.default.createElement("div", null, /* @__PURE__ */ import_react17.default.createElement(Profile, { ...props })));
|
|
547
560
|
};
|
|
548
561
|
// Annotate the CommonJS export names for ESM import in node:
|
|
549
562
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -492,9 +492,22 @@ var Sidebar = (props) => {
|
|
|
492
492
|
};
|
|
493
493
|
|
|
494
494
|
// src/Components/Navbar.tsx
|
|
495
|
+
import React16 from "react";
|
|
496
|
+
|
|
497
|
+
// src/Components/Notofication.tsx
|
|
495
498
|
import React14 from "react";
|
|
499
|
+
import { Button as Button4, Popover } from "antd";
|
|
500
|
+
var Notification = (props) => /* @__PURE__ */ React14.createElement(Popover, { content: props.items?.map((eachItem) => {
|
|
501
|
+
return /* @__PURE__ */ React14.createElement("div", null, /* @__PURE__ */ React14.createElement("p", null, eachItem.text), /* @__PURE__ */ React14.createElement("p", null, eachItem.time));
|
|
502
|
+
}), trigger: "focus", placement: "bottomRight" }, /* @__PURE__ */ React14.createElement(Button4, null, /* @__PURE__ */ React14.createElement("div", null, /* @__PURE__ */ React14.createElement("span", null, props.icon), /* @__PURE__ */ React14.createElement("span", null, props.count))));
|
|
503
|
+
|
|
504
|
+
// src/Components/Profile.tsx
|
|
505
|
+
import React15 from "react";
|
|
506
|
+
var Profile = (props) => /* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement("img", { src: props.profileImage }), /* @__PURE__ */ React15.createElement("div", null, /* @__PURE__ */ React15.createElement("span", null, props.primaryText), /* @__PURE__ */ React15.createElement("span", null, props.secondaryText)));
|
|
507
|
+
|
|
508
|
+
// src/Components/Navbar.tsx
|
|
496
509
|
var Navbar = (props) => {
|
|
497
|
-
return /* @__PURE__ */
|
|
510
|
+
return /* @__PURE__ */ React16.createElement("div", { className: props.className }, /* @__PURE__ */ React16.createElement("span", { className: props.className }, props.dashboard.label), /* @__PURE__ */ React16.createElement("div", null, /* @__PURE__ */ React16.createElement(Notification, { ...props })), /* @__PURE__ */ React16.createElement("div", null, /* @__PURE__ */ React16.createElement(Profile, { ...props })));
|
|
498
511
|
};
|
|
499
512
|
export {
|
|
500
513
|
AddMoreTable,
|