@payfit/unity-components 2.40.0 → 2.42.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.
|
@@ -24,7 +24,7 @@ const _ = c({
|
|
|
24
24
|
"uy:has-data-[hovered]:border-border-form-hover uy:has-data-[hovered]:bg-surface-form-hover",
|
|
25
25
|
"uy:has-data-[pressed]:border-border-form-pressed uy:has-data-[pressed]:bg-surface-form-pressed",
|
|
26
26
|
"uy:aria-[disabled=true]:border-border-form-disabled uy:aria-[disabled=true]:bg-surface-form-disabled uy:aria-[disabled=true]:text-content-form-disabled",
|
|
27
|
-
"uy:data-[status=active]:text-content-
|
|
27
|
+
"uy:data-[status=active]:text-content-form-selected",
|
|
28
28
|
"uy:focus-within:outline-2 uy:focus-within:outline-offset-2 uy:focus-within:outline-utility-focus-ring",
|
|
29
29
|
'uy:[&:not(:has([data-unity-slot="dismiss"]))]:pr-1.5'
|
|
30
30
|
]
|
|
@@ -2,7 +2,7 @@ import { jsxs as u, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { Icon as l } from "@payfit/unity-icons";
|
|
3
3
|
import { uyTv as s } from "@payfit/unity-themes";
|
|
4
4
|
import { Actionable as p } from "../../actionable/Actionable.js";
|
|
5
|
-
const
|
|
5
|
+
const c = s({
|
|
6
6
|
slots: {
|
|
7
7
|
button: [
|
|
8
8
|
"uy:flex uy:gap-0.5 uy:items-center",
|
|
@@ -15,7 +15,7 @@ const y = s({
|
|
|
15
15
|
prefix: [
|
|
16
16
|
"uy:p-0.25",
|
|
17
17
|
"uy:text-content-neutral-low",
|
|
18
|
-
"uy:group-data-[status=active]:text-content-
|
|
18
|
+
"uy:group-data-[status=active]:text-content-form-selected",
|
|
19
19
|
"uy:group-aria-[disabled=true]:text-content-neutral-disabled"
|
|
20
20
|
]
|
|
21
21
|
}
|
|
@@ -26,7 +26,7 @@ function x({
|
|
|
26
26
|
isDisabled: r,
|
|
27
27
|
children: a
|
|
28
28
|
}) {
|
|
29
|
-
const { button: i, prefix: n } =
|
|
29
|
+
const { button: i, prefix: n } = c();
|
|
30
30
|
return /* @__PURE__ */ u(
|
|
31
31
|
p,
|
|
32
32
|
{
|
|
@@ -51,5 +51,5 @@ function x({
|
|
|
51
51
|
}
|
|
52
52
|
export {
|
|
53
53
|
x as FilterButton,
|
|
54
|
-
|
|
54
|
+
c as filterButton
|
|
55
55
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
-
import { uyTv as
|
|
3
|
-
import { Dialog as
|
|
4
|
-
import { Popover as
|
|
5
|
-
import { Separator as
|
|
2
|
+
import { uyTv as c, useUnityTheme as g } from "@payfit/unity-themes";
|
|
3
|
+
import { Dialog as f } from "react-aria-components/Dialog";
|
|
4
|
+
import { Popover as x } from "react-aria-components/Popover";
|
|
5
|
+
import { Separator as h } from "react-aria-components/Separator";
|
|
6
6
|
import { FormattedMessage as e } from "react-intl";
|
|
7
7
|
import { Button as r } from "../../button/Button.js";
|
|
8
|
-
const
|
|
8
|
+
const b = c({
|
|
9
9
|
slots: {
|
|
10
10
|
popover: [
|
|
11
11
|
"uy:border uy:border-solid uy:border-border-neutral uy:bg-surface-neutral uy:rounded-sm uy:shadow-300 uy:min-w-[320px] uy:max-w-[800px] uy:relative uy:isolate uy:overflow-hidden",
|
|
@@ -27,16 +27,16 @@ const x = p({
|
|
|
27
27
|
actions: ["uy:flex uy:justify-between uy:gap-100"]
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function T({
|
|
31
31
|
children: n,
|
|
32
32
|
onConfirm: o,
|
|
33
33
|
onClear: l
|
|
34
34
|
}) {
|
|
35
|
-
const { popover: i, dialog: u, content: y, footer: s, separator: d, actions: m } =
|
|
36
|
-
return /* @__PURE__ */ t(
|
|
35
|
+
const { popover: i, dialog: u, content: y, footer: s, separator: d, actions: m } = b(), p = g();
|
|
36
|
+
return /* @__PURE__ */ t(x, { className: i(), placement: "bottom left", children: /* @__PURE__ */ a(f, { className: u(), children: [
|
|
37
37
|
/* @__PURE__ */ t("div", { className: y(), children: n }),
|
|
38
38
|
/* @__PURE__ */ a("footer", { className: s(), children: [
|
|
39
|
-
/* @__PURE__ */ t(
|
|
39
|
+
/* @__PURE__ */ t(h, { className: d() }),
|
|
40
40
|
/* @__PURE__ */ a("div", { className: m(), children: [
|
|
41
41
|
/* @__PURE__ */ t(
|
|
42
42
|
r,
|
|
@@ -58,7 +58,7 @@ function z({
|
|
|
58
58
|
/* @__PURE__ */ t(
|
|
59
59
|
r,
|
|
60
60
|
{
|
|
61
|
-
variant: "ghost",
|
|
61
|
+
variant: p.theme === "legacy" ? "ghost" : "primary",
|
|
62
62
|
color: "primary",
|
|
63
63
|
size: "full",
|
|
64
64
|
onPress: o,
|
|
@@ -76,6 +76,6 @@ function z({
|
|
|
76
76
|
] }) });
|
|
77
77
|
}
|
|
78
78
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
T as FilterPopover,
|
|
80
|
+
b as filterPopover
|
|
81
81
|
};
|
|
@@ -3,29 +3,30 @@ import { Header as h, ListBox as p, Collection as u } from "react-aria-component
|
|
|
3
3
|
import { SelectListOption as f } from "./SelectListOption.js";
|
|
4
4
|
function S({
|
|
5
5
|
items: r,
|
|
6
|
-
selectedKeys:
|
|
6
|
+
selectedKeys: i,
|
|
7
7
|
onSelectionChange: n,
|
|
8
|
-
selectionMode:
|
|
9
|
-
selectionBehavior:
|
|
10
|
-
label:
|
|
8
|
+
selectionMode: c,
|
|
9
|
+
selectionBehavior: t,
|
|
10
|
+
label: l,
|
|
11
11
|
className: d,
|
|
12
12
|
...s
|
|
13
13
|
}) {
|
|
14
14
|
return r.length === 0 ? null : /* @__PURE__ */ a("div", { children: [
|
|
15
|
-
/* @__PURE__ */ e(h, { className: "uy:sr-only", children:
|
|
15
|
+
/* @__PURE__ */ e(h, { className: "uy:sr-only", children: l }),
|
|
16
16
|
/* @__PURE__ */ e(
|
|
17
17
|
p,
|
|
18
18
|
{
|
|
19
|
+
"aria-label": l,
|
|
19
20
|
className: d,
|
|
20
21
|
items: r,
|
|
21
|
-
selectedKeys:
|
|
22
|
+
selectedKeys: i,
|
|
22
23
|
onSelectionChange: n,
|
|
23
|
-
selectionMode:
|
|
24
|
-
selectionBehavior:
|
|
24
|
+
selectionMode: c,
|
|
25
|
+
selectionBehavior: t,
|
|
25
26
|
escapeKeyBehavior: "none",
|
|
26
27
|
shouldFocusWrap: !1,
|
|
27
28
|
...s,
|
|
28
|
-
children: /* @__PURE__ */ e(u, { items: r, children: (
|
|
29
|
+
children: /* @__PURE__ */ e(u, { items: r, children: (o) => /* @__PURE__ */ e(f, { id: o.id, children: o.label }) })
|
|
29
30
|
}
|
|
30
31
|
)
|
|
31
32
|
] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.42.0",
|
|
4
4
|
"module": "./dist/esm/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@hookform/devtools": "4.4.0",
|
|
44
44
|
"@hookform/resolvers": "5.2.1",
|
|
45
45
|
"@internationalized/date": "3.12.1",
|
|
46
|
-
"@payfit/unity-illustrations": "2.
|
|
46
|
+
"@payfit/unity-illustrations": "2.42.0",
|
|
47
47
|
"@radix-ui/react-avatar": "1.1.11",
|
|
48
48
|
"@radix-ui/react-slot": "1.2.4",
|
|
49
49
|
"@react-aria/interactions": "3.28.0",
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@hookform/devtools": "^4",
|
|
78
|
-
"@payfit/unity-icons": "2.
|
|
79
|
-
"@payfit/unity-themes": "2.
|
|
78
|
+
"@payfit/unity-icons": "2.42.0",
|
|
79
|
+
"@payfit/unity-themes": "2.42.0",
|
|
80
80
|
"@storybook/react-vite": "^10.3.2",
|
|
81
81
|
"@tanstack/react-query": "^5",
|
|
82
82
|
"@tanstack/react-router": "^1.131",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"@github-ui/storybook-addon-performance-panel": "1.1.4",
|
|
92
92
|
"@hookform/devtools": "4.4.0",
|
|
93
93
|
"@internationalized/date": "3.12.1",
|
|
94
|
-
"@payfit/unity-icons": "2.
|
|
95
|
-
"@payfit/unity-illustrations": "2.
|
|
96
|
-
"@payfit/unity-themes": "2.
|
|
94
|
+
"@payfit/unity-icons": "2.42.0",
|
|
95
|
+
"@payfit/unity-illustrations": "2.42.0",
|
|
96
|
+
"@payfit/unity-themes": "2.42.0",
|
|
97
97
|
"@storybook/addon-a11y": "10.4.0",
|
|
98
98
|
"@storybook/addon-designs": "11.1.3",
|
|
99
99
|
"@storybook/addon-docs": "10.4.0",
|
|
@@ -133,10 +133,10 @@
|
|
|
133
133
|
"vite-plugin-node-polyfills": "0.24.0",
|
|
134
134
|
"vitest": "4.1.0",
|
|
135
135
|
"@payfit/code-pushup-tools": "0.0.0-use.local",
|
|
136
|
-
"@payfit/hr-app-eslint": "0.0.0-use.local",
|
|
137
136
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
138
137
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
139
138
|
"@payfit/storybook-config": "0.0.0-use.local",
|
|
139
|
+
"@payfit/hr-app-eslint": "0.0.0-use.local",
|
|
140
140
|
"@payfit/vite-configs": "0.0.0-use.local"
|
|
141
141
|
},
|
|
142
142
|
"peerDependenciesMeta": {
|