@acuteinfo/common-base 1.2.87 → 1.2.89
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.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/theme/utils/colorUtils.d.ts +8 -0
- package/dist/theme/utils/paperFormDnD.d.ts +13 -0
- package/package.json +2 -1
|
@@ -68,3 +68,11 @@ export declare const adaptBrandColorForLight: (hex: string, deltaL?: number) =>
|
|
|
68
68
|
* and capping saturation at 20% for a soft off-white result.
|
|
69
69
|
*/
|
|
70
70
|
export declare const adaptToLightBg: (color: string) => string;
|
|
71
|
+
/**
|
|
72
|
+
* Lightens a hex color by a specified percentage toward white (#ffffff).
|
|
73
|
+
*
|
|
74
|
+
* @param hex - The hex color string (e.g., "#fcd34d")
|
|
75
|
+
* @param percentage - Percentage to lighten (0 = original color, 100 = full white)
|
|
76
|
+
* @returns The lightened hex color string in uppercase
|
|
77
|
+
*/
|
|
78
|
+
export declare function lightenColor(hex: string, percentage: number): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PaperProps } from "@mui/material";
|
|
2
|
+
interface IPaperFormDnDProps extends PaperProps {
|
|
3
|
+
top?: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const getMutationError: (...sources: any[]) => any;
|
|
6
|
+
export declare const PaperFormDnD: ({ top, ...props }: IPaperFormDnDProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const CommonMutationError: ({ errors }: {
|
|
8
|
+
errors: any[];
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export declare function replaceOldRowUniqueId(obj: any, encValue?: string): any;
|
|
11
|
+
export declare const floatedValue: (keys: any, data: any) => any;
|
|
12
|
+
export declare const renderErrorAlert: (errors: Array<any>) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acuteinfo/common-base",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.89",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"platform": "^1.3.6",
|
|
49
49
|
"react-dnd": "^16.0.1",
|
|
50
50
|
"react-dnd-html5-backend": "^16.0.1",
|
|
51
|
+
"react-draggable": "^4.4.5",
|
|
51
52
|
"react-i18next": "^12.3.1",
|
|
52
53
|
"react-imask": "^6.0.5",
|
|
53
54
|
"react-is": "^18.2.0",
|