@payfit/unity-components 2.25.0 → 2.25.1
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.
|
@@ -3,7 +3,7 @@ import { forwardRef as u, useContext as y } from "react";
|
|
|
3
3
|
import { uyTv as d } from "@payfit/unity-themes";
|
|
4
4
|
import { OverlayTriggerStateContext as p, Heading as f } from "react-aria-components";
|
|
5
5
|
import { useIntl as g } from "react-intl";
|
|
6
|
-
import {
|
|
6
|
+
import { CircularIconButton as h } from "../../icon-button/CircularIconButton.js";
|
|
7
7
|
const v = d({
|
|
8
8
|
slots: {
|
|
9
9
|
base: "uy:flex uy:justify-between",
|
|
@@ -16,43 +16,44 @@ const v = d({
|
|
|
16
16
|
heading: "uy:sr-only"
|
|
17
17
|
},
|
|
18
18
|
false: {
|
|
19
|
-
base: "uy:mb-
|
|
20
|
-
heading: "uy:typography-
|
|
19
|
+
base: "uy:mb-200",
|
|
20
|
+
heading: "uy:typography-h4 uy:min-h-400 uy:align-center"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
}),
|
|
25
|
-
({ title: o, isTitleSrOnly: t, displayCloseButton: n },
|
|
26
|
-
const
|
|
24
|
+
}), x = u(
|
|
25
|
+
({ title: o, isTitleSrOnly: t, displayCloseButton: n }, r) => {
|
|
26
|
+
const s = y(p), a = g(), { base: l, heading: i, iconButton: c } = v({ isTitleSrOnly: t });
|
|
27
27
|
return /* @__PURE__ */ m("div", { className: l(), children: [
|
|
28
28
|
/* @__PURE__ */ e(
|
|
29
29
|
f,
|
|
30
30
|
{
|
|
31
|
-
ref:
|
|
31
|
+
ref: r,
|
|
32
32
|
slot: "title",
|
|
33
33
|
className: i(),
|
|
34
34
|
"data-dd-privacy": "allow",
|
|
35
|
+
level: 4,
|
|
35
36
|
children: o
|
|
36
37
|
}
|
|
37
38
|
),
|
|
38
39
|
n && /* @__PURE__ */ e(
|
|
39
40
|
h,
|
|
40
41
|
{
|
|
41
|
-
variant: "ghost",
|
|
42
|
-
color: "neutral",
|
|
43
42
|
className: c(),
|
|
44
|
-
|
|
43
|
+
title: a.formatMessage({
|
|
45
44
|
id: "unity:component:common:close:label",
|
|
46
45
|
defaultMessage: "Close"
|
|
47
46
|
}),
|
|
47
|
+
color: "content.neutral.low",
|
|
48
48
|
icon: "CloseOutlined",
|
|
49
|
-
|
|
49
|
+
onPress: () => s?.close(),
|
|
50
|
+
size: "large"
|
|
50
51
|
}
|
|
51
52
|
)
|
|
52
53
|
] });
|
|
53
54
|
}
|
|
54
55
|
);
|
|
55
|
-
|
|
56
|
+
x.displayName = "PopoverTitle";
|
|
56
57
|
export {
|
|
57
|
-
|
|
58
|
+
x as PopoverHeader
|
|
58
59
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.25.
|
|
3
|
+
"version": "2.25.1",
|
|
4
4
|
"module": "./dist/esm/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@hookform/devtools": "4.4.0",
|
|
43
43
|
"@hookform/resolvers": "5.2.1",
|
|
44
44
|
"@internationalized/date": "3.12.0",
|
|
45
|
-
"@payfit/unity-illustrations": "2.25.
|
|
45
|
+
"@payfit/unity-illustrations": "2.25.1",
|
|
46
46
|
"@radix-ui/react-avatar": "1.1.11",
|
|
47
47
|
"@radix-ui/react-slot": "1.2.4",
|
|
48
48
|
"@react-aria/interactions": "3.27.1",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@hookform/devtools": "^4",
|
|
77
|
-
"@payfit/unity-icons": "2.25.
|
|
78
|
-
"@payfit/unity-themes": "2.25.
|
|
77
|
+
"@payfit/unity-icons": "2.25.1",
|
|
78
|
+
"@payfit/unity-themes": "2.25.1",
|
|
79
79
|
"@storybook/react-vite": "^10.3.2",
|
|
80
80
|
"@tanstack/react-query": "^5",
|
|
81
81
|
"@tanstack/react-router": "^1.131",
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
96
96
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
97
97
|
"@payfit/storybook-config": "0.0.0-use.local",
|
|
98
|
-
"@payfit/unity-icons": "2.25.
|
|
99
|
-
"@payfit/unity-illustrations": "2.25.
|
|
100
|
-
"@payfit/unity-themes": "2.25.
|
|
98
|
+
"@payfit/unity-icons": "2.25.1",
|
|
99
|
+
"@payfit/unity-illustrations": "2.25.1",
|
|
100
|
+
"@payfit/unity-themes": "2.25.1",
|
|
101
101
|
"@payfit/vite-configs": "0.0.0-use.local",
|
|
102
102
|
"@storybook/addon-a11y": "10.3.5",
|
|
103
103
|
"@storybook/addon-designs": "11.1.3",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
export type PopoverContentProps = PropsWithChildren<object>;
|
|
3
|
-
declare const PopoverContent: import('react').ForwardRefExoticComponent<object & {
|
|
4
|
-
children?: import('react').ReactNode | undefined;
|
|
5
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { PopoverContent };
|