@trackunit/react-components 1.15.12 → 1.15.14
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/index.cjs.js
CHANGED
|
@@ -912,6 +912,7 @@ const cvaAlert = cssClassVarianceUtilities.cvaMerge(["flex", "flex-col", "gap-3"
|
|
|
912
912
|
warning: ["bg-warning-100"],
|
|
913
913
|
success: ["bg-success-100"],
|
|
914
914
|
info: ["bg-info-100"],
|
|
915
|
+
neutral: ["bg-neutral-100"],
|
|
915
916
|
},
|
|
916
917
|
actionsInline: {
|
|
917
918
|
true: ["flex-row", "items-center", "gap-2"],
|
|
@@ -1086,6 +1087,8 @@ const getIconName = (color) => {
|
|
|
1086
1087
|
return "CheckCircle";
|
|
1087
1088
|
case "info":
|
|
1088
1089
|
return "InformationCircle";
|
|
1090
|
+
case "neutral":
|
|
1091
|
+
return "InformationCircle";
|
|
1089
1092
|
default: {
|
|
1090
1093
|
throw new Error(`${color} is not known`);
|
|
1091
1094
|
}
|
package/index.esm.js
CHANGED
|
@@ -910,6 +910,7 @@ const cvaAlert = cvaMerge(["flex", "flex-col", "gap-3", "relative", "p-3", "roun
|
|
|
910
910
|
warning: ["bg-warning-100"],
|
|
911
911
|
success: ["bg-success-100"],
|
|
912
912
|
info: ["bg-info-100"],
|
|
913
|
+
neutral: ["bg-neutral-100"],
|
|
913
914
|
},
|
|
914
915
|
actionsInline: {
|
|
915
916
|
true: ["flex-row", "items-center", "gap-2"],
|
|
@@ -1084,6 +1085,8 @@ const getIconName = (color) => {
|
|
|
1084
1085
|
return "CheckCircle";
|
|
1085
1086
|
case "info":
|
|
1086
1087
|
return "InformationCircle";
|
|
1088
|
+
case "neutral":
|
|
1089
|
+
return "InformationCircle";
|
|
1087
1090
|
default: {
|
|
1088
1091
|
throw new Error(`${color} is not known`);
|
|
1089
1092
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.14",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"string-ts": "^2.0.0",
|
|
16
16
|
"tailwind-merge": "^2.0.0",
|
|
17
17
|
"@trackunit/ui-design-tokens": "1.11.12",
|
|
18
|
-
"@trackunit/css-class-variance-utilities": "1.11.
|
|
19
|
-
"@trackunit/shared-utils": "1.13.
|
|
18
|
+
"@trackunit/css-class-variance-utilities": "1.11.12",
|
|
19
|
+
"@trackunit/shared-utils": "1.13.12",
|
|
20
20
|
"@trackunit/ui-icons": "1.11.11",
|
|
21
21
|
"@tanstack/react-router": "1.114.29",
|
|
22
22
|
"es-toolkit": "^1.39.10",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IntentColors } from "@trackunit/ui-design-tokens";
|
|
2
1
|
import { ReactElement, ReactNode } from "react";
|
|
3
2
|
import { CommonProps } from "../../common/CommonProps";
|
|
3
|
+
export type AlertColors = "info" | "success" | "warning" | "danger" | "neutral";
|
|
4
4
|
export type AlertActionType = "primary" | "secondary";
|
|
5
5
|
export type AlertAction = {
|
|
6
6
|
label: string;
|
|
@@ -16,7 +16,7 @@ export interface AlertProps extends CommonProps {
|
|
|
16
16
|
* Color of the alert component.
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
color?:
|
|
19
|
+
color?: AlertColors;
|
|
20
20
|
/**
|
|
21
21
|
* Title of the alert component.
|
|
22
22
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const cvaAlert: (props?: ({
|
|
2
|
-
color?: "danger" | "warning" | "success" | "info" | null | undefined;
|
|
2
|
+
color?: "danger" | "warning" | "success" | "info" | "neutral" | null | undefined;
|
|
3
3
|
actionsInline?: boolean | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
5
|
export declare const cvaAlertActionsContainer: (props?: ({
|