@payfit/unity-components 2.2.7 → 2.2.8
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.
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useLocation as f, useNavigate as
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useLocation as f, useNavigate as p, useChildMatches as I } from "@tanstack/react-router";
|
|
3
3
|
import { RouterProvider as v } from "react-aria-components";
|
|
4
4
|
import { Tabs as R } from "../../../../components/tabs/Tabs.js";
|
|
5
5
|
function S({
|
|
6
|
-
children:
|
|
7
|
-
selectedKey:
|
|
8
|
-
onSelectionChange:
|
|
9
|
-
routeMatch:
|
|
10
|
-
...
|
|
6
|
+
children: a,
|
|
7
|
+
selectedKey: u,
|
|
8
|
+
onSelectionChange: c,
|
|
9
|
+
routeMatch: d = "fuzzy",
|
|
10
|
+
...s
|
|
11
11
|
}) {
|
|
12
|
-
const
|
|
12
|
+
const g = f(), l = p(), r = I({
|
|
13
13
|
select: (e) => {
|
|
14
14
|
if (e.length !== 0)
|
|
15
|
-
return
|
|
15
|
+
return d === "exact" ? e.reduce((t, o) => {
|
|
16
16
|
const n = String(t.routeId);
|
|
17
17
|
return String(o.routeId).length > n.length ? o : t;
|
|
18
18
|
}) : e.reduce((t, o) => {
|
|
@@ -20,18 +20,18 @@ function S({
|
|
|
20
20
|
return String(o.routeId).length < n.length ? o : t;
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
}), h =
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
}, children: /* @__PURE__ */
|
|
23
|
+
}), h = u ?? (r ? r.pathname : void 0) ?? g.pathname;
|
|
24
|
+
return /* @__PURE__ */ i(v, { navigate: (e) => {
|
|
25
|
+
l({ to: e });
|
|
26
|
+
}, children: /* @__PURE__ */ i(
|
|
27
27
|
R,
|
|
28
28
|
{
|
|
29
|
-
...
|
|
29
|
+
...s,
|
|
30
30
|
selectedKey: h,
|
|
31
31
|
onSelectionChange: (e) => {
|
|
32
|
-
|
|
32
|
+
c?.(e);
|
|
33
33
|
},
|
|
34
|
-
children:
|
|
34
|
+
children: a
|
|
35
35
|
}
|
|
36
36
|
) });
|
|
37
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
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.10.0",
|
|
45
|
-
"@payfit/unity-illustrations": "2.2.
|
|
45
|
+
"@payfit/unity-illustrations": "2.2.8",
|
|
46
46
|
"@radix-ui/react-avatar": "1.1.11",
|
|
47
47
|
"@radix-ui/react-slot": "1.2.4",
|
|
48
48
|
"@react-aria/interactions": "3.25.6",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@hookform/devtools": "^4",
|
|
73
|
-
"@payfit/unity-icons": "2.2.
|
|
74
|
-
"@payfit/unity-themes": "2.2.
|
|
73
|
+
"@payfit/unity-icons": "2.2.8",
|
|
74
|
+
"@payfit/unity-themes": "2.2.8",
|
|
75
75
|
"@storybook/react-vite": "^10.2.2",
|
|
76
76
|
"@tanstack/react-query": "^5",
|
|
77
77
|
"@tanstack/react-router": "^1.131",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
91
91
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
92
92
|
"@payfit/storybook-config": "0.0.0-use.local",
|
|
93
|
-
"@payfit/unity-icons": "2.2.
|
|
94
|
-
"@payfit/unity-illustrations": "2.2.
|
|
95
|
-
"@payfit/unity-themes": "2.2.
|
|
93
|
+
"@payfit/unity-icons": "2.2.8",
|
|
94
|
+
"@payfit/unity-illustrations": "2.2.8",
|
|
95
|
+
"@payfit/unity-themes": "2.2.8",
|
|
96
96
|
"@payfit/vite-configs": "0.0.0-use.local",
|
|
97
97
|
"@storybook/addon-a11y": "10.2.2",
|
|
98
98
|
"@storybook/addon-docs": "10.2.2",
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
"@tanstack/react-devtools": "0.9.4",
|
|
103
103
|
"@tanstack/react-form-devtools": "0.2.13",
|
|
104
104
|
"@tanstack/react-query": "5.90.20",
|
|
105
|
-
"@tanstack/react-router": "1.
|
|
106
|
-
"@tanstack/react-router-devtools": "1.
|
|
105
|
+
"@tanstack/react-router": "1.157.18",
|
|
106
|
+
"@tanstack/react-router-devtools": "1.157.18",
|
|
107
107
|
"@testing-library/dom": "10.4.0",
|
|
108
108
|
"@testing-library/react": "16.2.0",
|
|
109
109
|
"@types/react": "18.3.18",
|