@trackunit/react-widgets 2.2.62 → 2.2.64
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-widgets",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.64",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -8,14 +8,13 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"react": "19.0.0",
|
|
11
|
-
"@trackunit/react-components": "1.
|
|
12
|
-
"@trackunit/iris-app-runtime-core": "1.8.
|
|
13
|
-
"@trackunit/css-class-variance-utilities": "1.7.
|
|
14
|
-
"@trackunit/ui-design-tokens": "1.7.
|
|
15
|
-
"@trackunit/ui-icons": "1.7.
|
|
16
|
-
"@trackunit/
|
|
17
|
-
"@trackunit/
|
|
18
|
-
"@trackunit/react-test-setup": "1.4.40"
|
|
11
|
+
"@trackunit/react-components": "1.10.0",
|
|
12
|
+
"@trackunit/iris-app-runtime-core": "1.8.45",
|
|
13
|
+
"@trackunit/css-class-variance-utilities": "1.7.42",
|
|
14
|
+
"@trackunit/ui-design-tokens": "1.7.42",
|
|
15
|
+
"@trackunit/ui-icons": "1.7.43",
|
|
16
|
+
"@trackunit/i18n-library-translation": "1.7.49",
|
|
17
|
+
"@trackunit/react-test-setup": "1.4.42"
|
|
19
18
|
},
|
|
20
19
|
"module": "./index.esm.js",
|
|
21
20
|
"main": "./index.cjs.js",
|
|
@@ -1,13 +1,37 @@
|
|
|
1
1
|
import { VariantProps } from "@trackunit/css-class-variance-utilities";
|
|
2
2
|
import { CommonProps } from "@trackunit/react-components";
|
|
3
|
-
import { MappedOmit } from "@trackunit/shared-utils";
|
|
4
3
|
import { ReactElement, ReactNode } from "react";
|
|
5
4
|
import { cvaWidgetContent } from "./WidgetContent.variants";
|
|
6
|
-
export
|
|
5
|
+
export type WidgetContentVariants = NonNullable<VariantProps<typeof cvaWidgetContent>>;
|
|
6
|
+
export interface WidgetContentProps extends CommonProps {
|
|
7
7
|
/**
|
|
8
8
|
* Child elements to render in the body
|
|
9
9
|
*/
|
|
10
10
|
children: ReactNode | null;
|
|
11
|
+
/**
|
|
12
|
+
* Grid layout structure: 'none' for basic stacking, 'top-fill' for fixed header with flexible content, 'fill-bottom' for flexible content with fixed footer, 'top-fill-bottom' for header and footer with flexible middle
|
|
13
|
+
*
|
|
14
|
+
* @default 'none'
|
|
15
|
+
*/
|
|
16
|
+
layout: NonNullable<WidgetContentVariants["layout"]>;
|
|
17
|
+
/**
|
|
18
|
+
* Internal padding: 'none' for no padding, 'responsive' for consistent padding around content
|
|
19
|
+
*
|
|
20
|
+
* @default 'none'
|
|
21
|
+
*/
|
|
22
|
+
padding: NonNullable<WidgetContentVariants["padding"]>;
|
|
23
|
+
/**
|
|
24
|
+
* Spacing between child elements: 'none' for no gaps, 'responsive' for consistent spacing between items
|
|
25
|
+
*
|
|
26
|
+
* @default 'none'
|
|
27
|
+
*/
|
|
28
|
+
gap: NonNullable<WidgetContentVariants["gap"]>;
|
|
29
|
+
/**
|
|
30
|
+
* Content alignment: 'none' for a standard layout, 'centered' to center content within the layout
|
|
31
|
+
*
|
|
32
|
+
* @default 'none'
|
|
33
|
+
*/
|
|
34
|
+
centering: NonNullable<WidgetContentVariants["centering"]>;
|
|
11
35
|
}
|
|
12
36
|
/**
|
|
13
37
|
* The WidgetContent component should be used to inform the user of important information.
|