@payfit/unity-components 2.37.0 → 2.37.2
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.
|
@@ -4,14 +4,14 @@ import { Button as p } from "react-aria-components/Button";
|
|
|
4
4
|
import { SelectValue as n } from "react-aria-components/Select";
|
|
5
5
|
import { useIntl as v } from "react-intl";
|
|
6
6
|
import { Icon as u } from "../../icon/Icon.js";
|
|
7
|
-
const
|
|
7
|
+
const h = b({
|
|
8
8
|
slots: {
|
|
9
|
-
base: "uy:flex uy:flex-row uy:gap-100 uy:h-5.5 uy:sm:h-500 uy:py-125 uy:sm:py-100 uy:px-150 uy:rounded-100 uy:sm:rounded-75 uy:border-solid uy:focus-visible:ring-2 uy:focus-visible:ring-utility-focus-ring uy:focus-visible:ring-offset-2 uy:outline-none uy:border",
|
|
9
|
+
base: "uy:flex uy:flex-row uy:items-center uy:gap-100 uy:h-5.5 uy:sm:h-500 uy:py-125 uy:sm:py-100 uy:px-150 uy:rounded-100 uy:sm:rounded-75 uy:border-solid uy:focus-visible:ring-2 uy:focus-visible:ring-utility-focus-ring uy:focus-visible:ring-offset-2 uy:outline-none uy:border",
|
|
10
10
|
selectValue: [
|
|
11
|
-
"uy:whitespace-nowrap uy:text-ellipsis uy:typography-body uy:flex-grow uy:text-left uy:overflow-hidden",
|
|
11
|
+
"uy:min-w-0 uy:whitespace-nowrap uy:text-ellipsis uy:typography-body uy:flex-grow uy:text-left uy:overflow-hidden",
|
|
12
12
|
"uy:data-[placeholder]:text-content-neutral-lowest"
|
|
13
13
|
],
|
|
14
|
-
iconWrapper: "uy:flex uy:gap-50",
|
|
14
|
+
iconWrapper: "uy:flex uy:shrink-0 uy:gap-50",
|
|
15
15
|
icon: ""
|
|
16
16
|
},
|
|
17
17
|
variants: {
|
|
@@ -52,14 +52,14 @@ const x = b({
|
|
|
52
52
|
isInvalid: !1,
|
|
53
53
|
isReadOnly: !1
|
|
54
54
|
}
|
|
55
|
-
}),
|
|
55
|
+
}), x = ({
|
|
56
56
|
isDisabled: r,
|
|
57
57
|
isInvalid: t,
|
|
58
58
|
isReadOnly: i,
|
|
59
59
|
isOpen: d,
|
|
60
60
|
renderValue: o
|
|
61
61
|
}) => {
|
|
62
|
-
const c = v(), { base: y, selectValue:
|
|
62
|
+
const c = v(), { base: y, selectValue: s, iconWrapper: f, icon: m } = h({
|
|
63
63
|
isDisabled: r,
|
|
64
64
|
isInvalid: t,
|
|
65
65
|
isReadOnly: i
|
|
@@ -72,7 +72,7 @@ const x = b({
|
|
|
72
72
|
isDisabled: r,
|
|
73
73
|
"data-unity-slot": "select-button",
|
|
74
74
|
children: [
|
|
75
|
-
o ? /* @__PURE__ */ e(n, { className:
|
|
75
|
+
o ? /* @__PURE__ */ e(n, { className: s(), translate: "no", children: ({ state: a }) => a.selectedItems[0] ? o(a.selectedItems[0]) : null }) : /* @__PURE__ */ e(n, { className: s(), translate: "no" }),
|
|
76
76
|
/* @__PURE__ */ l("div", { className: f(), children: [
|
|
77
77
|
t && /* @__PURE__ */ e(
|
|
78
78
|
u,
|
|
@@ -98,7 +98,7 @@ const x = b({
|
|
|
98
98
|
}
|
|
99
99
|
);
|
|
100
100
|
};
|
|
101
|
-
|
|
101
|
+
x.displayName = "SelectButton";
|
|
102
102
|
export {
|
|
103
|
-
|
|
103
|
+
x as SelectButton
|
|
104
104
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.37.
|
|
3
|
+
"version": "2.37.2",
|
|
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.37.
|
|
46
|
+
"@payfit/unity-illustrations": "2.37.2",
|
|
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.37.
|
|
79
|
-
"@payfit/unity-themes": "2.37.
|
|
78
|
+
"@payfit/unity-icons": "2.37.2",
|
|
79
|
+
"@payfit/unity-themes": "2.37.2",
|
|
80
80
|
"@storybook/react-vite": "^10.3.2",
|
|
81
81
|
"@tanstack/react-query": "^5",
|
|
82
82
|
"@tanstack/react-router": "^1.131",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"@figma/code-connect": "1.4.3",
|
|
91
91
|
"@hookform/devtools": "4.4.0",
|
|
92
92
|
"@internationalized/date": "3.12.1",
|
|
93
|
-
"@payfit/unity-icons": "2.37.
|
|
94
|
-
"@payfit/unity-illustrations": "2.37.
|
|
95
|
-
"@payfit/unity-themes": "2.37.
|
|
93
|
+
"@payfit/unity-icons": "2.37.2",
|
|
94
|
+
"@payfit/unity-illustrations": "2.37.2",
|
|
95
|
+
"@payfit/unity-themes": "2.37.2",
|
|
96
96
|
"@storybook/addon-a11y": "10.4.0",
|
|
97
97
|
"@storybook/addon-designs": "11.1.3",
|
|
98
98
|
"@storybook/addon-docs": "10.4.0",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@tanstack/intent": "0.0.40",
|
|
105
105
|
"@tanstack/react-devtools": "0.10.1",
|
|
106
106
|
"@tanstack/react-form-devtools": "0.2.22",
|
|
107
|
-
"@tanstack/react-query": "5.100.
|
|
107
|
+
"@tanstack/react-query": "5.100.11",
|
|
108
108
|
"@tanstack/react-router": "1.170.4",
|
|
109
109
|
"@tanstack/react-router-devtools": "1.167.0",
|
|
110
110
|
"@testing-library/dom": "10.4.0",
|
|
@@ -132,9 +132,9 @@
|
|
|
132
132
|
"vite-plugin-node-polyfills": "0.24.0",
|
|
133
133
|
"vitest": "4.1.0",
|
|
134
134
|
"@payfit/code-pushup-tools": "0.0.0-use.local",
|
|
135
|
+
"@payfit/hr-app-eslint": "0.0.0-use.local",
|
|
135
136
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
136
137
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
137
|
-
"@payfit/hr-app-eslint": "0.0.0-use.local",
|
|
138
138
|
"@payfit/storybook-config": "0.0.0-use.local",
|
|
139
139
|
"@payfit/vite-configs": "0.0.0-use.local"
|
|
140
140
|
},
|