@nucleux/alert 0.1.0
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/LICENSE +21 -0
- package/dist/index.cjs +73 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nucleux
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var lucideReact = require('lucide-react');
|
|
6
|
+
var utils = require('@nucleux/utils');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n.default = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
28
|
+
|
|
29
|
+
// src/index.tsx
|
|
30
|
+
var alertVariants = {
|
|
31
|
+
default: "border-border bg-card text-foreground [&_[data-alert-icon]]:text-muted-foreground",
|
|
32
|
+
info: "border-info/30 bg-info/5 text-foreground [&_[data-alert-icon]]:text-info",
|
|
33
|
+
success: "border-success/30 bg-success/5 text-foreground [&_[data-alert-icon]]:text-success",
|
|
34
|
+
warning: "border-warning/40 bg-warning/10 text-foreground [&_[data-alert-icon]]:text-warning",
|
|
35
|
+
destructive: "border-destructive/30 bg-destructive/5 text-foreground [&_[data-alert-icon]]:text-destructive"
|
|
36
|
+
};
|
|
37
|
+
var defaultIcon = {
|
|
38
|
+
default: lucideReact.Info,
|
|
39
|
+
info: lucideReact.Info,
|
|
40
|
+
success: lucideReact.CheckCircle2,
|
|
41
|
+
warning: lucideReact.TriangleAlert,
|
|
42
|
+
destructive: lucideReact.CircleAlert
|
|
43
|
+
};
|
|
44
|
+
var Alert = React__namespace.forwardRef(
|
|
45
|
+
({ variant = "default", title, icon, hideIcon = false, className, children, ...props }, ref) => {
|
|
46
|
+
const Icon = defaultIcon[variant];
|
|
47
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
ref,
|
|
51
|
+
role: "alert",
|
|
52
|
+
className: utils.cn(
|
|
53
|
+
"flex items-start gap-3 rounded-lg border p-4 text-sm",
|
|
54
|
+
alertVariants[variant],
|
|
55
|
+
className
|
|
56
|
+
),
|
|
57
|
+
...props,
|
|
58
|
+
children: [
|
|
59
|
+
!hideIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { "data-alert-icon": true, className: "mt-0.5 shrink-0 [&_svg]:size-4", children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(Icon, {}) }),
|
|
60
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1 space-y-1", children: [
|
|
61
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium leading-none", children: title }),
|
|
62
|
+
children && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "leading-relaxed text-muted-foreground", children })
|
|
63
|
+
] })
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
Alert.displayName = "Alert";
|
|
70
|
+
|
|
71
|
+
exports.Alert = Alert;
|
|
72
|
+
//# sourceMappingURL=index.cjs.map
|
|
73
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.tsx"],"names":["Info","CheckCircle2","TriangleAlert","CircleAlert","React","jsxs","cn","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAM,aAAA,GAA8C;AAAA,EAClD,OAAA,EAAS,mFAAA;AAAA,EACT,IAAA,EAAM,0EAAA;AAAA,EACN,OAAA,EAAS,mFAAA;AAAA,EACT,OAAA,EAAS,oFAAA;AAAA,EACT,WAAA,EACE;AACJ,CAAA;AAEA,IAAM,WAAA,GAAiF;AAAA,EACrF,OAAA,EAASA,gBAAA;AAAA,EACT,IAAA,EAAMA,gBAAA;AAAA,EACN,OAAA,EAASC,wBAAA;AAAA,EACT,OAAA,EAASC,yBAAA;AAAA,EACT,WAAA,EAAaC;AACf,CAAA;AAaO,IAAM,KAAA,GAAcC,gBAAA,CAAA,UAAA;AAAA,EACzB,CAAC,EAAE,OAAA,GAAU,SAAA,EAAW,KAAA,EAAO,IAAA,EAAM,QAAA,GAAW,KAAA,EAAO,SAAA,EAAW,QAAA,EAAU,GAAG,KAAA,IAAS,GAAA,KAAQ;AAC9F,IAAA,MAAM,IAAA,GAAO,YAAY,OAAO,CAAA;AAChC,IAAA,uBACEC,eAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,IAAA,EAAK,OAAA;AAAA,QACL,SAAA,EAAWC,QAAA;AAAA,UACT,sDAAA;AAAA,UACA,cAAc,OAAO,CAAA;AAAA,UACrB;AAAA,SACF;AAAA,QACC,GAAG,KAAA;AAAA,QAEH,QAAA,EAAA;AAAA,UAAA,CAAC,QAAA,oBACAC,cAAA,CAAC,MAAA,EAAA,EAAK,iBAAA,EAAe,IAAA,EAAC,WAAU,gCAAA,EAC7B,QAAA,EAAA,IAAA,oBAAQA,cAAA,CAAC,IAAA,EAAA,EAAK,CAAA,EACjB,CAAA;AAAA,0BAEFF,eAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,0BAAA,EACZ,QAAA,EAAA;AAAA,YAAA,KAAA,oBAASE,cAAA,CAAC,GAAA,EAAA,EAAE,SAAA,EAAU,0BAAA,EAA4B,QAAA,EAAA,KAAA,EAAM,CAAA;AAAA,YACxD,QAAA,oBAAYA,cAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,yCAAyC,QAAA,EAAS;AAAA,WAAA,EAChF;AAAA;AAAA;AAAA,KACF;AAAA,EAEJ;AACF;AACA,KAAA,CAAM,WAAA,GAAc,OAAA","file":"index.cjs","sourcesContent":["import * as React from \"react\";\nimport { CheckCircle2, CircleAlert, Info, TriangleAlert } from \"lucide-react\";\nimport { cn } from \"@nucleux/utils\";\n\nexport type AlertVariant = \"default\" | \"info\" | \"success\" | \"warning\" | \"destructive\";\n\nconst alertVariants: Record<AlertVariant, string> = {\n default: \"border-border bg-card text-foreground [&_[data-alert-icon]]:text-muted-foreground\",\n info: \"border-info/30 bg-info/5 text-foreground [&_[data-alert-icon]]:text-info\",\n success: \"border-success/30 bg-success/5 text-foreground [&_[data-alert-icon]]:text-success\",\n warning: \"border-warning/40 bg-warning/10 text-foreground [&_[data-alert-icon]]:text-warning\",\n destructive:\n \"border-destructive/30 bg-destructive/5 text-foreground [&_[data-alert-icon]]:text-destructive\",\n};\n\nconst defaultIcon: Record<AlertVariant, React.ComponentType<{ className?: string }>> = {\n default: Info,\n info: Info,\n success: CheckCircle2,\n warning: TriangleAlert,\n destructive: CircleAlert,\n};\n\nexport interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> {\n variant?: AlertVariant;\n /** Optional bold title above the body. */\n title?: React.ReactNode;\n /** Custom icon; defaults to a variant-appropriate one. */\n icon?: React.ReactNode;\n /** Hide the leading icon entirely. */\n hideIcon?: boolean;\n}\n\n/** Contextual message banner — info, success, warning, or error. */\nexport const Alert = React.forwardRef<HTMLDivElement, AlertProps>(\n ({ variant = \"default\", title, icon, hideIcon = false, className, children, ...props }, ref) => {\n const Icon = defaultIcon[variant];\n return (\n <div\n ref={ref}\n role=\"alert\"\n className={cn(\n \"flex items-start gap-3 rounded-lg border p-4 text-sm\",\n alertVariants[variant],\n className,\n )}\n {...props}\n >\n {!hideIcon && (\n <span data-alert-icon className=\"mt-0.5 shrink-0 [&_svg]:size-4\">\n {icon ?? <Icon />}\n </span>\n )}\n <div className=\"min-w-0 flex-1 space-y-1\">\n {title && <p className=\"font-medium leading-none\">{title}</p>}\n {children && <div className=\"leading-relaxed text-muted-foreground\">{children}</div>}\n </div>\n </div>\n );\n },\n);\nAlert.displayName = \"Alert\";\n"]}
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type AlertVariant = "default" | "info" | "success" | "warning" | "destructive";
|
|
4
|
+
interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
5
|
+
variant?: AlertVariant;
|
|
6
|
+
/** Optional bold title above the body. */
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
/** Custom icon; defaults to a variant-appropriate one. */
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
/** Hide the leading icon entirely. */
|
|
11
|
+
hideIcon?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Contextual message banner — info, success, warning, or error. */
|
|
14
|
+
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
|
|
16
|
+
export { Alert, type AlertProps, type AlertVariant };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type AlertVariant = "default" | "info" | "success" | "warning" | "destructive";
|
|
4
|
+
interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
5
|
+
variant?: AlertVariant;
|
|
6
|
+
/** Optional bold title above the body. */
|
|
7
|
+
title?: React.ReactNode;
|
|
8
|
+
/** Custom icon; defaults to a variant-appropriate one. */
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
/** Hide the leading icon entirely. */
|
|
11
|
+
hideIcon?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** Contextual message banner — info, success, warning, or error. */
|
|
14
|
+
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
|
|
16
|
+
export { Alert, type AlertProps, type AlertVariant };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { CircleAlert, TriangleAlert, CheckCircle2, Info } from 'lucide-react';
|
|
4
|
+
import { cn } from '@nucleux/utils';
|
|
5
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
// src/index.tsx
|
|
8
|
+
var alertVariants = {
|
|
9
|
+
default: "border-border bg-card text-foreground [&_[data-alert-icon]]:text-muted-foreground",
|
|
10
|
+
info: "border-info/30 bg-info/5 text-foreground [&_[data-alert-icon]]:text-info",
|
|
11
|
+
success: "border-success/30 bg-success/5 text-foreground [&_[data-alert-icon]]:text-success",
|
|
12
|
+
warning: "border-warning/40 bg-warning/10 text-foreground [&_[data-alert-icon]]:text-warning",
|
|
13
|
+
destructive: "border-destructive/30 bg-destructive/5 text-foreground [&_[data-alert-icon]]:text-destructive"
|
|
14
|
+
};
|
|
15
|
+
var defaultIcon = {
|
|
16
|
+
default: Info,
|
|
17
|
+
info: Info,
|
|
18
|
+
success: CheckCircle2,
|
|
19
|
+
warning: TriangleAlert,
|
|
20
|
+
destructive: CircleAlert
|
|
21
|
+
};
|
|
22
|
+
var Alert = React.forwardRef(
|
|
23
|
+
({ variant = "default", title, icon, hideIcon = false, className, children, ...props }, ref) => {
|
|
24
|
+
const Icon = defaultIcon[variant];
|
|
25
|
+
return /* @__PURE__ */ jsxs(
|
|
26
|
+
"div",
|
|
27
|
+
{
|
|
28
|
+
ref,
|
|
29
|
+
role: "alert",
|
|
30
|
+
className: cn(
|
|
31
|
+
"flex items-start gap-3 rounded-lg border p-4 text-sm",
|
|
32
|
+
alertVariants[variant],
|
|
33
|
+
className
|
|
34
|
+
),
|
|
35
|
+
...props,
|
|
36
|
+
children: [
|
|
37
|
+
!hideIcon && /* @__PURE__ */ jsx("span", { "data-alert-icon": true, className: "mt-0.5 shrink-0 [&_svg]:size-4", children: icon ?? /* @__PURE__ */ jsx(Icon, {}) }),
|
|
38
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1 space-y-1", children: [
|
|
39
|
+
title && /* @__PURE__ */ jsx("p", { className: "font-medium leading-none", children: title }),
|
|
40
|
+
children && /* @__PURE__ */ jsx("div", { className: "leading-relaxed text-muted-foreground", children })
|
|
41
|
+
] })
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
Alert.displayName = "Alert";
|
|
48
|
+
|
|
49
|
+
export { Alert };
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
51
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;AAMA,IAAM,aAAA,GAA8C;AAAA,EAClD,OAAA,EAAS,mFAAA;AAAA,EACT,IAAA,EAAM,0EAAA;AAAA,EACN,OAAA,EAAS,mFAAA;AAAA,EACT,OAAA,EAAS,oFAAA;AAAA,EACT,WAAA,EACE;AACJ,CAAA;AAEA,IAAM,WAAA,GAAiF;AAAA,EACrF,OAAA,EAAS,IAAA;AAAA,EACT,IAAA,EAAM,IAAA;AAAA,EACN,OAAA,EAAS,YAAA;AAAA,EACT,OAAA,EAAS,aAAA;AAAA,EACT,WAAA,EAAa;AACf,CAAA;AAaO,IAAM,KAAA,GAAc,KAAA,CAAA,UAAA;AAAA,EACzB,CAAC,EAAE,OAAA,GAAU,SAAA,EAAW,KAAA,EAAO,IAAA,EAAM,QAAA,GAAW,KAAA,EAAO,SAAA,EAAW,QAAA,EAAU,GAAG,KAAA,IAAS,GAAA,KAAQ;AAC9F,IAAA,MAAM,IAAA,GAAO,YAAY,OAAO,CAAA;AAChC,IAAA,uBACE,IAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACA,IAAA,EAAK,OAAA;AAAA,QACL,SAAA,EAAW,EAAA;AAAA,UACT,sDAAA;AAAA,UACA,cAAc,OAAO,CAAA;AAAA,UACrB;AAAA,SACF;AAAA,QACC,GAAG,KAAA;AAAA,QAEH,QAAA,EAAA;AAAA,UAAA,CAAC,QAAA,oBACA,GAAA,CAAC,MAAA,EAAA,EAAK,iBAAA,EAAe,IAAA,EAAC,WAAU,gCAAA,EAC7B,QAAA,EAAA,IAAA,oBAAQ,GAAA,CAAC,IAAA,EAAA,EAAK,CAAA,EACjB,CAAA;AAAA,0BAEF,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,0BAAA,EACZ,QAAA,EAAA;AAAA,YAAA,KAAA,oBAAS,GAAA,CAAC,GAAA,EAAA,EAAE,SAAA,EAAU,0BAAA,EAA4B,QAAA,EAAA,KAAA,EAAM,CAAA;AAAA,YACxD,QAAA,oBAAY,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,yCAAyC,QAAA,EAAS;AAAA,WAAA,EAChF;AAAA;AAAA;AAAA,KACF;AAAA,EAEJ;AACF;AACA,KAAA,CAAM,WAAA,GAAc,OAAA","file":"index.js","sourcesContent":["import * as React from \"react\";\nimport { CheckCircle2, CircleAlert, Info, TriangleAlert } from \"lucide-react\";\nimport { cn } from \"@nucleux/utils\";\n\nexport type AlertVariant = \"default\" | \"info\" | \"success\" | \"warning\" | \"destructive\";\n\nconst alertVariants: Record<AlertVariant, string> = {\n default: \"border-border bg-card text-foreground [&_[data-alert-icon]]:text-muted-foreground\",\n info: \"border-info/30 bg-info/5 text-foreground [&_[data-alert-icon]]:text-info\",\n success: \"border-success/30 bg-success/5 text-foreground [&_[data-alert-icon]]:text-success\",\n warning: \"border-warning/40 bg-warning/10 text-foreground [&_[data-alert-icon]]:text-warning\",\n destructive:\n \"border-destructive/30 bg-destructive/5 text-foreground [&_[data-alert-icon]]:text-destructive\",\n};\n\nconst defaultIcon: Record<AlertVariant, React.ComponentType<{ className?: string }>> = {\n default: Info,\n info: Info,\n success: CheckCircle2,\n warning: TriangleAlert,\n destructive: CircleAlert,\n};\n\nexport interface AlertProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> {\n variant?: AlertVariant;\n /** Optional bold title above the body. */\n title?: React.ReactNode;\n /** Custom icon; defaults to a variant-appropriate one. */\n icon?: React.ReactNode;\n /** Hide the leading icon entirely. */\n hideIcon?: boolean;\n}\n\n/** Contextual message banner — info, success, warning, or error. */\nexport const Alert = React.forwardRef<HTMLDivElement, AlertProps>(\n ({ variant = \"default\", title, icon, hideIcon = false, className, children, ...props }, ref) => {\n const Icon = defaultIcon[variant];\n return (\n <div\n ref={ref}\n role=\"alert\"\n className={cn(\n \"flex items-start gap-3 rounded-lg border p-4 text-sm\",\n alertVariants[variant],\n className,\n )}\n {...props}\n >\n {!hideIcon && (\n <span data-alert-icon className=\"mt-0.5 shrink-0 [&_svg]:size-4\">\n {icon ?? <Icon />}\n </span>\n )}\n <div className=\"min-w-0 flex-1 space-y-1\">\n {title && <p className=\"font-medium leading-none\">{title}</p>}\n {children && <div className=\"leading-relaxed text-muted-foreground\">{children}</div>}\n </div>\n </div>\n );\n },\n);\nAlert.displayName = \"Alert\";\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nucleux/alert",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"react": ">=18",
|
|
21
|
+
"react-dom": ">=18"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"lucide-react": "^0.469.0",
|
|
25
|
+
"@nucleux/utils": "0.1.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"tsup": "^8.3.5",
|
|
29
|
+
"typescript": "^5.7.2",
|
|
30
|
+
"@types/react": "^18.3.18",
|
|
31
|
+
"react": "^18.3.1"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"license": "MIT",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/intelligaia-open-labs/nucleux.git",
|
|
40
|
+
"directory": "packages/alert"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/intelligaia-open-labs/nucleux#readme",
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsup"
|
|
45
|
+
}
|
|
46
|
+
}
|