omui-lib 1.0.16 → 1.0.18

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.
@@ -0,0 +1,116 @@
1
+ // src/components/NotificationCard/NotificationCard.jsx
2
+ import React from "react";
3
+ var NotificationCard = ({
4
+ icon = "\u{1F514}",
5
+ title = "New Notification",
6
+ message = "You have received a new notification. Check your dashboard for more details.",
7
+ time = "2 minutes ago",
8
+ type = "info",
9
+ color,
10
+ onClose
11
+ }) => {
12
+ const colors = {
13
+ info: "#6366f1",
14
+ success: "#22c55e",
15
+ warning: "#f59e0b",
16
+ error: "#ef4444"
17
+ };
18
+ const activeColor = color || colors[type] || colors.info;
19
+ return /* @__PURE__ */ React.createElement(
20
+ "div",
21
+ {
22
+ style: {
23
+ width: "340px",
24
+ padding: "18px",
25
+ display: "flex",
26
+ alignItems: "flex-start",
27
+ gap: "14px",
28
+ borderRadius: "16px",
29
+ background: "rgba(255,255,255,0.08)",
30
+ border: "1px solid rgba(255,255,255,0.12)",
31
+ backdropFilter: "blur(12px)",
32
+ WebkitBackdropFilter: "blur(12px)",
33
+ color: "#fff",
34
+ boxShadow: "0 10px 30px rgba(0,0,0,0.2)"
35
+ }
36
+ },
37
+ /* @__PURE__ */ React.createElement(
38
+ "div",
39
+ {
40
+ style: {
41
+ minWidth: "44px",
42
+ width: "44px",
43
+ height: "44px",
44
+ display: "flex",
45
+ justifyContent: "center",
46
+ alignItems: "center",
47
+ borderRadius: "12px",
48
+ background: `${activeColor}20`,
49
+ fontSize: "20px"
50
+ }
51
+ },
52
+ icon
53
+ ),
54
+ /* @__PURE__ */ React.createElement(
55
+ "div",
56
+ {
57
+ style: {
58
+ flex: 1
59
+ }
60
+ },
61
+ /* @__PURE__ */ React.createElement(
62
+ "h3",
63
+ {
64
+ style: {
65
+ margin: "0 0 6px",
66
+ fontSize: "15px",
67
+ fontWeight: "600"
68
+ }
69
+ },
70
+ title
71
+ ),
72
+ /* @__PURE__ */ React.createElement(
73
+ "p",
74
+ {
75
+ style: {
76
+ margin: "0 0 8px",
77
+ fontSize: "13px",
78
+ lineHeight: "1.5",
79
+ color: "rgba(255,255,255,0.6)"
80
+ }
81
+ },
82
+ message
83
+ ),
84
+ /* @__PURE__ */ React.createElement(
85
+ "span",
86
+ {
87
+ style: {
88
+ fontSize: "11px",
89
+ color: "rgba(255,255,255,0.4)"
90
+ }
91
+ },
92
+ time
93
+ )
94
+ ),
95
+ /* @__PURE__ */ React.createElement(
96
+ "button",
97
+ {
98
+ onClick: onClose,
99
+ style: {
100
+ border: "none",
101
+ background: "transparent",
102
+ color: "rgba(255,255,255,0.5)",
103
+ fontSize: "18px",
104
+ cursor: "pointer",
105
+ padding: "0",
106
+ lineHeight: "1"
107
+ }
108
+ },
109
+ "\xD7"
110
+ )
111
+ );
112
+ };
113
+
114
+ export {
115
+ NotificationCard
116
+ };
@@ -0,0 +1,149 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/components/NotificationCard/NotificationCard.jsx
30
+ var NotificationCard_exports = {};
31
+ __export(NotificationCard_exports, {
32
+ NotificationCard: () => NotificationCard
33
+ });
34
+ module.exports = __toCommonJS(NotificationCard_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var NotificationCard = ({
37
+ icon = "\u{1F514}",
38
+ title = "New Notification",
39
+ message = "You have received a new notification. Check your dashboard for more details.",
40
+ time = "2 minutes ago",
41
+ type = "info",
42
+ color,
43
+ onClose
44
+ }) => {
45
+ const colors = {
46
+ info: "#6366f1",
47
+ success: "#22c55e",
48
+ warning: "#f59e0b",
49
+ error: "#ef4444"
50
+ };
51
+ const activeColor = color || colors[type] || colors.info;
52
+ return /* @__PURE__ */ import_react.default.createElement(
53
+ "div",
54
+ {
55
+ style: {
56
+ width: "340px",
57
+ padding: "18px",
58
+ display: "flex",
59
+ alignItems: "flex-start",
60
+ gap: "14px",
61
+ borderRadius: "16px",
62
+ background: "rgba(255,255,255,0.08)",
63
+ border: "1px solid rgba(255,255,255,0.12)",
64
+ backdropFilter: "blur(12px)",
65
+ WebkitBackdropFilter: "blur(12px)",
66
+ color: "#fff",
67
+ boxShadow: "0 10px 30px rgba(0,0,0,0.2)"
68
+ }
69
+ },
70
+ /* @__PURE__ */ import_react.default.createElement(
71
+ "div",
72
+ {
73
+ style: {
74
+ minWidth: "44px",
75
+ width: "44px",
76
+ height: "44px",
77
+ display: "flex",
78
+ justifyContent: "center",
79
+ alignItems: "center",
80
+ borderRadius: "12px",
81
+ background: `${activeColor}20`,
82
+ fontSize: "20px"
83
+ }
84
+ },
85
+ icon
86
+ ),
87
+ /* @__PURE__ */ import_react.default.createElement(
88
+ "div",
89
+ {
90
+ style: {
91
+ flex: 1
92
+ }
93
+ },
94
+ /* @__PURE__ */ import_react.default.createElement(
95
+ "h3",
96
+ {
97
+ style: {
98
+ margin: "0 0 6px",
99
+ fontSize: "15px",
100
+ fontWeight: "600"
101
+ }
102
+ },
103
+ title
104
+ ),
105
+ /* @__PURE__ */ import_react.default.createElement(
106
+ "p",
107
+ {
108
+ style: {
109
+ margin: "0 0 8px",
110
+ fontSize: "13px",
111
+ lineHeight: "1.5",
112
+ color: "rgba(255,255,255,0.6)"
113
+ }
114
+ },
115
+ message
116
+ ),
117
+ /* @__PURE__ */ import_react.default.createElement(
118
+ "span",
119
+ {
120
+ style: {
121
+ fontSize: "11px",
122
+ color: "rgba(255,255,255,0.4)"
123
+ }
124
+ },
125
+ time
126
+ )
127
+ ),
128
+ /* @__PURE__ */ import_react.default.createElement(
129
+ "button",
130
+ {
131
+ onClick: onClose,
132
+ style: {
133
+ border: "none",
134
+ background: "transparent",
135
+ color: "rgba(255,255,255,0.5)",
136
+ fontSize: "18px",
137
+ cursor: "pointer",
138
+ padding: "0",
139
+ lineHeight: "1"
140
+ }
141
+ },
142
+ "\xD7"
143
+ )
144
+ );
145
+ };
146
+ // Annotate the CommonJS export names for ESM import in node:
147
+ 0 && (module.exports = {
148
+ NotificationCard
149
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ NotificationCard
3
+ } from "../../chunk-QOVSRTLJ.mjs";
4
+ export {
5
+ NotificationCard
6
+ };
package/dist/index.js CHANGED
@@ -37,6 +37,7 @@ __export(index_exports, {
37
37
  Graph: () => Graph,
38
38
  HoverCard: () => HoverCard,
39
39
  Loader: () => Loader,
40
+ NotificationCard: () => NotificationCard,
40
41
  PricingCard: () => PricingCard,
41
42
  ProductCard: () => ProductCard,
42
43
  ProfileCard: () => ProfileCard,
@@ -1566,6 +1567,119 @@ var FeatureCard = ({
1566
1567
  )
1567
1568
  );
1568
1569
  };
1570
+
1571
+ // src/components/NotificationCard/NotificationCard.jsx
1572
+ var import_react17 = __toESM(require("react"));
1573
+ var NotificationCard = ({
1574
+ icon = "\u{1F514}",
1575
+ title = "New Notification",
1576
+ message = "You have received a new notification. Check your dashboard for more details.",
1577
+ time = "2 minutes ago",
1578
+ type = "info",
1579
+ color,
1580
+ onClose
1581
+ }) => {
1582
+ const colors = {
1583
+ info: "#6366f1",
1584
+ success: "#22c55e",
1585
+ warning: "#f59e0b",
1586
+ error: "#ef4444"
1587
+ };
1588
+ const activeColor = color || colors[type] || colors.info;
1589
+ return /* @__PURE__ */ import_react17.default.createElement(
1590
+ "div",
1591
+ {
1592
+ style: {
1593
+ width: "340px",
1594
+ padding: "18px",
1595
+ display: "flex",
1596
+ alignItems: "flex-start",
1597
+ gap: "14px",
1598
+ borderRadius: "16px",
1599
+ background: "rgba(255,255,255,0.08)",
1600
+ border: "1px solid rgba(255,255,255,0.12)",
1601
+ backdropFilter: "blur(12px)",
1602
+ WebkitBackdropFilter: "blur(12px)",
1603
+ color: "#fff",
1604
+ boxShadow: "0 10px 30px rgba(0,0,0,0.2)"
1605
+ }
1606
+ },
1607
+ /* @__PURE__ */ import_react17.default.createElement(
1608
+ "div",
1609
+ {
1610
+ style: {
1611
+ minWidth: "44px",
1612
+ width: "44px",
1613
+ height: "44px",
1614
+ display: "flex",
1615
+ justifyContent: "center",
1616
+ alignItems: "center",
1617
+ borderRadius: "12px",
1618
+ background: `${activeColor}20`,
1619
+ fontSize: "20px"
1620
+ }
1621
+ },
1622
+ icon
1623
+ ),
1624
+ /* @__PURE__ */ import_react17.default.createElement(
1625
+ "div",
1626
+ {
1627
+ style: {
1628
+ flex: 1
1629
+ }
1630
+ },
1631
+ /* @__PURE__ */ import_react17.default.createElement(
1632
+ "h3",
1633
+ {
1634
+ style: {
1635
+ margin: "0 0 6px",
1636
+ fontSize: "15px",
1637
+ fontWeight: "600"
1638
+ }
1639
+ },
1640
+ title
1641
+ ),
1642
+ /* @__PURE__ */ import_react17.default.createElement(
1643
+ "p",
1644
+ {
1645
+ style: {
1646
+ margin: "0 0 8px",
1647
+ fontSize: "13px",
1648
+ lineHeight: "1.5",
1649
+ color: "rgba(255,255,255,0.6)"
1650
+ }
1651
+ },
1652
+ message
1653
+ ),
1654
+ /* @__PURE__ */ import_react17.default.createElement(
1655
+ "span",
1656
+ {
1657
+ style: {
1658
+ fontSize: "11px",
1659
+ color: "rgba(255,255,255,0.4)"
1660
+ }
1661
+ },
1662
+ time
1663
+ )
1664
+ ),
1665
+ /* @__PURE__ */ import_react17.default.createElement(
1666
+ "button",
1667
+ {
1668
+ onClick: onClose,
1669
+ style: {
1670
+ border: "none",
1671
+ background: "transparent",
1672
+ color: "rgba(255,255,255,0.5)",
1673
+ fontSize: "18px",
1674
+ cursor: "pointer",
1675
+ padding: "0",
1676
+ lineHeight: "1"
1677
+ }
1678
+ },
1679
+ "\xD7"
1680
+ )
1681
+ );
1682
+ };
1569
1683
  // Annotate the CommonJS export names for ESM import in node:
1570
1684
  0 && (module.exports = {
1571
1685
  AnimatedProgressBar,
@@ -1576,6 +1690,7 @@ var FeatureCard = ({
1576
1690
  Graph,
1577
1691
  HoverCard,
1578
1692
  Loader,
1693
+ NotificationCard,
1579
1694
  PricingCard,
1580
1695
  ProductCard,
1581
1696
  ProfileCard,
package/dist/index.mjs CHANGED
@@ -1,9 +1,15 @@
1
+ import {
2
+ TestimonialCard
3
+ } from "./chunk-M2MU6Y4N.mjs";
1
4
  import {
2
5
  ThumbnailCard
3
6
  } from "./chunk-57QJO5RD.mjs";
4
7
  import {
5
8
  Loader
6
9
  } from "./chunk-XGVKPI3O.mjs";
10
+ import {
11
+ NotificationCard
12
+ } from "./chunk-QOVSRTLJ.mjs";
7
13
  import {
8
14
  PricingCard
9
15
  } from "./chunk-FGTNFYFJ.mjs";
@@ -22,9 +28,6 @@ import {
22
28
  import {
23
29
  SwipeCard
24
30
  } from "./chunk-XD6E2QQI.mjs";
25
- import {
26
- TestimonialCard
27
- } from "./chunk-M2MU6Y4N.mjs";
28
31
  import {
29
32
  AnimatedProgressBar
30
33
  } from "./chunk-VA6HDMVP.mjs";
@@ -55,6 +58,7 @@ export {
55
58
  Graph,
56
59
  HoverCard,
57
60
  Loader,
61
+ NotificationCard,
58
62
  PricingCard,
59
63
  ProductCard,
60
64
  ProfileCard,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omui-lib",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "omUI react component library",
5
5
  "license": "ISC",
6
6
  "author": "Om Mohanty",