@apexcura/ui-components 0.0.15-Beta26 → 0.0.15-Beta28
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -2
- package/dist/index.mjs +5 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -79,7 +79,8 @@ type ElementType = {
|
|
|
79
79
|
weekrange?: boolean;
|
|
80
80
|
message?: string;
|
|
81
81
|
description?: string;
|
|
82
|
-
notificationType?:
|
|
82
|
+
notificationType?: "success" | "info" | "warning" | "error";
|
|
83
|
+
showProgress?: boolean;
|
|
83
84
|
};
|
|
84
85
|
|
|
85
86
|
declare const TextElement: (props: ElementType) => React$1.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -79,7 +79,8 @@ type ElementType = {
|
|
|
79
79
|
weekrange?: boolean;
|
|
80
80
|
message?: string;
|
|
81
81
|
description?: string;
|
|
82
|
-
notificationType?:
|
|
82
|
+
notificationType?: "success" | "info" | "warning" | "error";
|
|
83
|
+
showProgress?: boolean;
|
|
83
84
|
};
|
|
84
85
|
|
|
85
86
|
declare const TextElement: (props: ElementType) => React$1.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -1628,7 +1628,8 @@ var NotificationAlert = (props) => {
|
|
|
1628
1628
|
message: props.message,
|
|
1629
1629
|
description: props.description,
|
|
1630
1630
|
duration: 4.5,
|
|
1631
|
-
pauseOnHover
|
|
1631
|
+
pauseOnHover,
|
|
1632
|
+
showProgress: props.showProgress
|
|
1632
1633
|
});
|
|
1633
1634
|
};
|
|
1634
1635
|
const openNotification = (pauseOnHover) => {
|
|
@@ -1636,6 +1637,7 @@ var NotificationAlert = (props) => {
|
|
|
1636
1637
|
message: props.message,
|
|
1637
1638
|
description: props.description,
|
|
1638
1639
|
duration: 4.5,
|
|
1640
|
+
showProgress: props.showProgress,
|
|
1639
1641
|
pauseOnHover
|
|
1640
1642
|
});
|
|
1641
1643
|
};
|
|
@@ -1643,7 +1645,7 @@ var NotificationAlert = (props) => {
|
|
|
1643
1645
|
const notificationType = props.notificationType || "info";
|
|
1644
1646
|
props.notificationType ? openNotificationType(true, notificationType) : openNotification(true);
|
|
1645
1647
|
};
|
|
1646
|
-
return /* @__PURE__ */ import_react38.default.createElement("div", { className: props.containerClassName }, contextHolder, /* @__PURE__ */ import_react38.default.createElement(
|
|
1648
|
+
return /* @__PURE__ */ import_react38.default.createElement("div", { className: props.containerClassName }, contextHolder, /* @__PURE__ */ import_react38.default.createElement(ButtonElement, { ...props, onClick: handleClick }));
|
|
1647
1649
|
};
|
|
1648
1650
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1649
1651
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -1575,7 +1575,7 @@ var ColorPickerElement = (props) => {
|
|
|
1575
1575
|
|
|
1576
1576
|
// src/Components/NotificationAlert.tsx
|
|
1577
1577
|
import React38 from "react";
|
|
1578
|
-
import {
|
|
1578
|
+
import { notification } from "antd";
|
|
1579
1579
|
var NotificationAlert = (props) => {
|
|
1580
1580
|
const [api, contextHolder] = notification.useNotification();
|
|
1581
1581
|
const openNotificationType = (pauseOnHover, type) => {
|
|
@@ -1583,7 +1583,8 @@ var NotificationAlert = (props) => {
|
|
|
1583
1583
|
message: props.message,
|
|
1584
1584
|
description: props.description,
|
|
1585
1585
|
duration: 4.5,
|
|
1586
|
-
pauseOnHover
|
|
1586
|
+
pauseOnHover,
|
|
1587
|
+
showProgress: props.showProgress
|
|
1587
1588
|
});
|
|
1588
1589
|
};
|
|
1589
1590
|
const openNotification = (pauseOnHover) => {
|
|
@@ -1591,6 +1592,7 @@ var NotificationAlert = (props) => {
|
|
|
1591
1592
|
message: props.message,
|
|
1592
1593
|
description: props.description,
|
|
1593
1594
|
duration: 4.5,
|
|
1595
|
+
showProgress: props.showProgress,
|
|
1594
1596
|
pauseOnHover
|
|
1595
1597
|
});
|
|
1596
1598
|
};
|
|
@@ -1598,7 +1600,7 @@ var NotificationAlert = (props) => {
|
|
|
1598
1600
|
const notificationType = props.notificationType || "info";
|
|
1599
1601
|
props.notificationType ? openNotificationType(true, notificationType) : openNotification(true);
|
|
1600
1602
|
};
|
|
1601
|
-
return /* @__PURE__ */ React38.createElement("div", { className: props.containerClassName }, contextHolder, /* @__PURE__ */ React38.createElement(
|
|
1603
|
+
return /* @__PURE__ */ React38.createElement("div", { className: props.containerClassName }, contextHolder, /* @__PURE__ */ React38.createElement(ButtonElement, { ...props, onClick: handleClick }));
|
|
1602
1604
|
};
|
|
1603
1605
|
export {
|
|
1604
1606
|
AddMoreTable,
|