@payfit/unity-components 2.8.3 → 2.9.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.
- package/dist/esm/components/date-picker/DatePicker.js +1 -1
- package/dist/esm/components/multi-select/parts/MultiSelectButton.js +0 -1
- package/dist/esm/components/number-input/NumberInput.js +6 -7
- package/dist/esm/components/select-list/parts/SelectListSearchInput.js +16 -18
- package/dist/esm/components/toggle-switch/ToggleSwitch.d.ts +0 -3
- package/dist/esm/components/toggle-switch/ToggleSwitch.js +0 -1
- package/package.json +9 -9
|
@@ -54,7 +54,7 @@ const z = b({
|
|
|
54
54
|
isReadOnly: !1,
|
|
55
55
|
className: {
|
|
56
56
|
base: "uy:border-border-form-enabled uy:bg-surface-form-enabled",
|
|
57
|
-
suffix: "uy:border-border-form-enabled uy:bg-surface-neutral uy:text-content-
|
|
57
|
+
suffix: "uy:border-border-form-enabled uy:bg-surface-neutral uy:text-content-neutral-low"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
]
|
|
@@ -88,8 +88,8 @@ const H = z({
|
|
|
88
88
|
formatOptions: p,
|
|
89
89
|
isDisabled: y,
|
|
90
90
|
isInvalid: b,
|
|
91
|
-
isLoading:
|
|
92
|
-
isReadOnly:
|
|
91
|
+
isLoading: d,
|
|
92
|
+
isReadOnly: a,
|
|
93
93
|
isRequired: g,
|
|
94
94
|
maxValue: n,
|
|
95
95
|
minValue: l,
|
|
@@ -110,7 +110,7 @@ const H = z({
|
|
|
110
110
|
suffix: E,
|
|
111
111
|
state: O,
|
|
112
112
|
controls: S
|
|
113
|
-
} = H({ isReadOnly:
|
|
113
|
+
} = H({ isReadOnly: a }), o = q(), B = e !== void 0 && !isNaN(e), D = u !== void 0 && !isNaN(u), P = (B || D) && !i && !d && !a && !y;
|
|
114
114
|
return /* @__PURE__ */ t(
|
|
115
115
|
F,
|
|
116
116
|
{
|
|
@@ -122,10 +122,10 @@ const H = z({
|
|
|
122
122
|
maxValue: n,
|
|
123
123
|
step: h,
|
|
124
124
|
isDisabled: y,
|
|
125
|
-
isReadOnly:
|
|
125
|
+
isReadOnly: a,
|
|
126
126
|
isInvalid: b,
|
|
127
127
|
isRequired: g,
|
|
128
|
-
"aria-busy":
|
|
128
|
+
"aria-busy": d,
|
|
129
129
|
onChange: w,
|
|
130
130
|
formatOptions: p,
|
|
131
131
|
onBlur: x,
|
|
@@ -135,7 +135,7 @@ const H = z({
|
|
|
135
135
|
/* @__PURE__ */ t(G, { className: I(), children: [
|
|
136
136
|
/* @__PURE__ */ r(T, { ref: c, className: C() }),
|
|
137
137
|
/* @__PURE__ */ t("div", { className: O(), children: [
|
|
138
|
-
|
|
138
|
+
d && /* @__PURE__ */ r(
|
|
139
139
|
A,
|
|
140
140
|
{
|
|
141
141
|
color: "inherit",
|
|
@@ -164,7 +164,6 @@ const H = z({
|
|
|
164
164
|
id: "unity:component:common:clear:title",
|
|
165
165
|
defaultMessage: "Clear"
|
|
166
166
|
}),
|
|
167
|
-
className: "uy:text-content-neutral-enabled",
|
|
168
167
|
icon: "CloseOutlined",
|
|
169
168
|
onPress: () => {
|
|
170
169
|
v?.();
|
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
import { jsxs as i, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { uyTv as
|
|
4
|
-
import { SearchField as
|
|
5
|
-
import { useIntl as
|
|
6
|
-
import { CircularIconButton as
|
|
7
|
-
import { Icon as
|
|
8
|
-
const
|
|
2
|
+
import { forwardRef as r } from "react";
|
|
3
|
+
import { uyTv as s } from "@payfit/unity-themes";
|
|
4
|
+
import { SearchField as a, Input as c } from "react-aria-components";
|
|
5
|
+
import { useIntl as l } from "react-intl";
|
|
6
|
+
import { CircularIconButton as y } from "../../icon-button/CircularIconButton.js";
|
|
7
|
+
import { Icon as m } from "../../icon/Icon.js";
|
|
8
|
+
const p = s({
|
|
9
9
|
slots: {
|
|
10
10
|
base: "uy:flex uy:gap-100 uy:items-center uy:transition-colors uy:py-125 uy:sm:py-100 uy:px-150 uy:rounded-100 uy:sm:rounded-75 uy:bg-surface-form-high-enabled uy:focus-within:outline-utility-focus-ring uy:focus-within:outline-2 uy:focus-within:outline-offset-2 uy:text-content-form-active uy:typography-body",
|
|
11
|
-
input: "uy:flex-grow uy:outline-none uy:[&::-webkit-search-cancel-button]:hidden"
|
|
12
|
-
button: "uy:text-content-neutral-enabled"
|
|
11
|
+
input: "uy:flex-grow uy:outline-none uy:[&::-webkit-search-cancel-button]:hidden"
|
|
13
12
|
}
|
|
14
|
-
}),
|
|
15
|
-
const o =
|
|
16
|
-
return /* @__PURE__ */ i(
|
|
13
|
+
}), f = r((d, e) => {
|
|
14
|
+
const o = l(), { base: n, input: u } = p();
|
|
15
|
+
return /* @__PURE__ */ i(a, { className: n(), ref: e, "data-dd-privacy": "mask", children: [
|
|
17
16
|
/* @__PURE__ */ t(
|
|
18
|
-
|
|
17
|
+
m,
|
|
19
18
|
{
|
|
20
19
|
src: "MagnifyingGlassOutlined",
|
|
21
20
|
role: "presentation",
|
|
22
21
|
color: "content.neutral.lowest"
|
|
23
22
|
}
|
|
24
23
|
),
|
|
25
|
-
/* @__PURE__ */ t(
|
|
24
|
+
/* @__PURE__ */ t(c, { className: u() }),
|
|
26
25
|
/* @__PURE__ */ t(
|
|
27
|
-
|
|
26
|
+
y,
|
|
28
27
|
{
|
|
29
28
|
title: o.formatMessage({
|
|
30
29
|
id: "unity:component:common:clear:title",
|
|
31
30
|
defaultMessage: "Clear"
|
|
32
31
|
}),
|
|
33
|
-
className: r(),
|
|
34
32
|
icon: "CloseOutlined",
|
|
35
33
|
asElement: "button"
|
|
36
34
|
}
|
|
37
35
|
)
|
|
38
36
|
] });
|
|
39
37
|
});
|
|
40
|
-
|
|
38
|
+
f.displayName = "SelectListSearchInput";
|
|
41
39
|
export {
|
|
42
|
-
|
|
40
|
+
f as SelectListSearchInput
|
|
43
41
|
};
|
|
@@ -7,7 +7,6 @@ export declare const toggleSwitch: import('tailwind-variants').TVReturnType<{
|
|
|
7
7
|
knob: string;
|
|
8
8
|
};
|
|
9
9
|
true: {
|
|
10
|
-
label: string;
|
|
11
10
|
indicator: string;
|
|
12
11
|
knob: string;
|
|
13
12
|
};
|
|
@@ -27,7 +26,6 @@ export declare const toggleSwitch: import('tailwind-variants').TVReturnType<{
|
|
|
27
26
|
knob: string;
|
|
28
27
|
};
|
|
29
28
|
true: {
|
|
30
|
-
label: string;
|
|
31
29
|
indicator: string;
|
|
32
30
|
knob: string;
|
|
33
31
|
};
|
|
@@ -47,7 +45,6 @@ export declare const toggleSwitch: import('tailwind-variants').TVReturnType<{
|
|
|
47
45
|
knob: string;
|
|
48
46
|
};
|
|
49
47
|
true: {
|
|
50
|
-
label: string;
|
|
51
48
|
indicator: string;
|
|
52
49
|
knob: string;
|
|
53
50
|
};
|
|
@@ -39,7 +39,6 @@ const x = v({
|
|
|
39
39
|
knob: 'uy:group-data-[selected="true"]:border-border-inverted-enabled uy:group-data-[selected="true"]:group-data-[pressed]:bg-surface-form-pressed uy:group-data-[selected="true"]:group-data-[pressed]:border-border-inverted-pressed'
|
|
40
40
|
},
|
|
41
41
|
true: {
|
|
42
|
-
label: "uy:text-content-form-disabled",
|
|
43
42
|
indicator: "",
|
|
44
43
|
knob: ""
|
|
45
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.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.11.0",
|
|
45
|
-
"@payfit/unity-illustrations": "2.
|
|
45
|
+
"@payfit/unity-illustrations": "2.9.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.0",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"react-intl": "7.1.14",
|
|
66
66
|
"react-stately": "3.44.0",
|
|
67
67
|
"storybook": "10.2.8",
|
|
68
|
-
"tailwind-variants": "2.
|
|
68
|
+
"tailwind-variants": "3.2.2",
|
|
69
69
|
"usehooks-ts": "3.1.0",
|
|
70
70
|
"zod": "4.3.6"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@hookform/devtools": "^4",
|
|
74
|
-
"@payfit/unity-icons": "2.
|
|
75
|
-
"@payfit/unity-themes": "2.
|
|
74
|
+
"@payfit/unity-icons": "2.9.1",
|
|
75
|
+
"@payfit/unity-themes": "2.9.1",
|
|
76
76
|
"@storybook/react-vite": "^10.2.2",
|
|
77
77
|
"@tanstack/react-query": "^5",
|
|
78
78
|
"@tanstack/react-router": "^1.131",
|
|
@@ -91,9 +91,9 @@
|
|
|
91
91
|
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
92
92
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
93
93
|
"@payfit/storybook-config": "0.0.0-use.local",
|
|
94
|
-
"@payfit/unity-icons": "2.
|
|
95
|
-
"@payfit/unity-illustrations": "2.
|
|
96
|
-
"@payfit/unity-themes": "2.
|
|
94
|
+
"@payfit/unity-icons": "2.9.1",
|
|
95
|
+
"@payfit/unity-illustrations": "2.9.1",
|
|
96
|
+
"@payfit/unity-themes": "2.9.1",
|
|
97
97
|
"@payfit/vite-configs": "0.0.0-use.local",
|
|
98
98
|
"@storybook/addon-a11y": "10.2.8",
|
|
99
99
|
"@storybook/addon-docs": "10.2.8",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"storybook-addon-pseudo-states": "10.2.2",
|
|
125
125
|
"storybook-addon-tag-badges": "3.0.6",
|
|
126
126
|
"storybook-mock-date-decorator": "3.0.0",
|
|
127
|
-
"tailwindcss": "4.1.
|
|
127
|
+
"tailwindcss": "4.1.18",
|
|
128
128
|
"typescript": "6.0.0-beta",
|
|
129
129
|
"vite": "7.1.12",
|
|
130
130
|
"vite-plugin-node-polyfills": "0.24.0",
|