@payfit/unity-components 2.64.6 → 2.65.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.
|
@@ -5,9 +5,16 @@ export declare const dialog: import('tailwind-variants').TVReturnType<{
|
|
|
5
5
|
size: {
|
|
6
6
|
sm: {
|
|
7
7
|
wrapper: string;
|
|
8
|
+
content: string[];
|
|
8
9
|
};
|
|
9
10
|
md: {
|
|
10
11
|
wrapper: string;
|
|
12
|
+
content: string[];
|
|
13
|
+
};
|
|
14
|
+
lg: {
|
|
15
|
+
wrapper: string;
|
|
16
|
+
content: string[];
|
|
17
|
+
dismissIcon: string;
|
|
11
18
|
};
|
|
12
19
|
};
|
|
13
20
|
}, {
|
|
@@ -19,9 +26,16 @@ export declare const dialog: import('tailwind-variants').TVReturnType<{
|
|
|
19
26
|
size: {
|
|
20
27
|
sm: {
|
|
21
28
|
wrapper: string;
|
|
29
|
+
content: string[];
|
|
22
30
|
};
|
|
23
31
|
md: {
|
|
24
32
|
wrapper: string;
|
|
33
|
+
content: string[];
|
|
34
|
+
};
|
|
35
|
+
lg: {
|
|
36
|
+
wrapper: string;
|
|
37
|
+
content: string[];
|
|
38
|
+
dismissIcon: string;
|
|
25
39
|
};
|
|
26
40
|
};
|
|
27
41
|
}, {
|
|
@@ -33,9 +47,16 @@ export declare const dialog: import('tailwind-variants').TVReturnType<{
|
|
|
33
47
|
size: {
|
|
34
48
|
sm: {
|
|
35
49
|
wrapper: string;
|
|
50
|
+
content: string[];
|
|
36
51
|
};
|
|
37
52
|
md: {
|
|
38
53
|
wrapper: string;
|
|
54
|
+
content: string[];
|
|
55
|
+
};
|
|
56
|
+
lg: {
|
|
57
|
+
wrapper: string;
|
|
58
|
+
content: string[];
|
|
59
|
+
dismissIcon: string;
|
|
39
60
|
};
|
|
40
61
|
};
|
|
41
62
|
}, {
|
|
@@ -71,7 +92,7 @@ export interface DialogProps extends PropsWithChildren<VariantProps<typeof dialo
|
|
|
71
92
|
* @param props.isOpen - Controls the open state in controlled mode
|
|
72
93
|
* @param props.onOpenChange - Callback fired when open state changes
|
|
73
94
|
* @param props.isDismissable - Whether the dialog can be dismissed by clicking outside or pressing Escape
|
|
74
|
-
* @param props.size - The size variant of the dialog (sm, md)
|
|
95
|
+
* @param props.size - The size variant of the dialog (sm, md, lg)
|
|
75
96
|
* @param props.aria-label - Accessible label when DialogTitle is not provided
|
|
76
97
|
* @see {@link DialogProps} for all available props
|
|
77
98
|
* @example
|
|
@@ -31,14 +31,27 @@ var h = a({
|
|
|
31
31
|
],
|
|
32
32
|
content: [
|
|
33
33
|
"uy:group/dialog",
|
|
34
|
-
"uy:grid
|
|
34
|
+
"uy:grid",
|
|
35
|
+
"uy:grid-rows-[auto_minmax(0,1fr)_auto]",
|
|
36
|
+
"uy:min-h-0 uy:max-h-[calc(95dvh-var(--uy-spacing-400)-var(--uy-spacing-300))]",
|
|
35
37
|
"uy:outline-none"
|
|
36
38
|
],
|
|
37
39
|
dismissIcon: ["uy:absolute uy:right-200 uy:top-200 uy:z-20"]
|
|
38
40
|
},
|
|
39
41
|
variants: { size: {
|
|
40
|
-
sm: {
|
|
41
|
-
|
|
42
|
+
sm: {
|
|
43
|
+
wrapper: "uy:md:w-4/12 uy:md:max-w-62.5",
|
|
44
|
+
content: ["uy:md:max-h-[calc(82dvh-(var(--uy-spacing-400)*2))]"]
|
|
45
|
+
},
|
|
46
|
+
md: {
|
|
47
|
+
wrapper: "uy:md:w-5/12 uy:md:max-w-80",
|
|
48
|
+
content: ["uy:md:max-h-[calc(82dvh-(var(--uy-spacing-400)*2))]"]
|
|
49
|
+
},
|
|
50
|
+
lg: {
|
|
51
|
+
wrapper: "uy:md:w-11/12 uy:md:max-w-[1000px] uy:md:rounded-300 uy:md:pt-9 uy:md:px-500 uy:md:pb-400",
|
|
52
|
+
content: ["uy:md:max-h-[calc(82dvh-(var(--uy-spacing)*9)-var(--uy-spacing-400))]"],
|
|
53
|
+
dismissIcon: "uy:md:right-300 uy:md:top-300"
|
|
54
|
+
}
|
|
42
55
|
} },
|
|
43
56
|
defaultVariants: { size: "md" }
|
|
44
57
|
}), g = (e) => {
|
|
@@ -2,7 +2,11 @@ import { uyTv as e } from "@payfit/unity-themes";
|
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { Heading as n } from "react-aria-components/Heading";
|
|
4
4
|
//#region src/components/dialog/parts/DialogTitle.tsx
|
|
5
|
-
var r = e({ base: [
|
|
5
|
+
var r = e({ base: [
|
|
6
|
+
"uy:typography-h2 uy:md:typography-h3",
|
|
7
|
+
"uy:md:group-data-[unity-size=lg]/dialog:typography-h1",
|
|
8
|
+
"uy:mb-200"
|
|
9
|
+
] }), i = ({ children: e }) => /* @__PURE__ */ t(n, {
|
|
6
10
|
slot: "title",
|
|
7
11
|
className: r(),
|
|
8
12
|
"data-dd-privacy": "allow",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.65.0",
|
|
4
4
|
"module": "./dist/esm/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"tailwind-variants": "3.3.1",
|
|
97
97
|
"usehooks-ts": "3.1.1",
|
|
98
98
|
"zod": "4.4.3",
|
|
99
|
-
"@payfit/unity-illustrations": "2.
|
|
99
|
+
"@payfit/unity-illustrations": "2.65.0"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"@hookform/devtools": "^4",
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
"react-hook-form": "^7",
|
|
109
109
|
"react-router-dom": "^5",
|
|
110
110
|
"zod": "^3 || ^4",
|
|
111
|
-
"@payfit/unity-icons": "2.
|
|
112
|
-
"@payfit/unity-themes": "2.
|
|
111
|
+
"@payfit/unity-icons": "2.65.0",
|
|
112
|
+
"@payfit/unity-themes": "2.65.0"
|
|
113
113
|
},
|
|
114
114
|
"devDependencies": {
|
|
115
115
|
"@figma/code-connect": "1.5.2",
|
|
@@ -155,14 +155,14 @@
|
|
|
155
155
|
"vite": "8.1.4",
|
|
156
156
|
"vite-plugin-node-polyfills": "0.28.0",
|
|
157
157
|
"vitest": "4.1.10",
|
|
158
|
+
"@payfit/hr-app-eslint": "0.0.0-use.local",
|
|
158
159
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
159
160
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
160
161
|
"@payfit/storybook-config": "0.0.0-use.local",
|
|
161
|
-
"@payfit/
|
|
162
|
-
"@payfit/unity-
|
|
163
|
-
"@payfit/
|
|
164
|
-
"@payfit/unity-
|
|
165
|
-
"@payfit/vite-configs": "0.0.0-use.local"
|
|
162
|
+
"@payfit/unity-illustrations": "2.65.0",
|
|
163
|
+
"@payfit/unity-themes": "2.65.0",
|
|
164
|
+
"@payfit/vite-configs": "0.0.0-use.local",
|
|
165
|
+
"@payfit/unity-icons": "2.65.0"
|
|
166
166
|
},
|
|
167
167
|
"peerDependenciesMeta": {
|
|
168
168
|
"@hookform/devtools": {
|