@payfit/unity-components 2.46.33 → 2.46.34

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,7 +4,7 @@ import { Slot as x } from "@radix-ui/react-slot";
4
4
  import { mergeProps as C } from "react-aria/mergeProps";
5
5
  import { useFormContext as D, useController as F } from "react-hook-form";
6
6
  import { useFormField as L } from "../FormField.context.js";
7
- function R({ ...s }) {
7
+ function O({ ...d }) {
8
8
  const {
9
9
  name: t,
10
10
  hasHelperText: r,
@@ -12,21 +12,21 @@ function R({ ...s }) {
12
12
  fieldState: o,
13
13
  formLabelId: n,
14
14
  formItemId: m,
15
- formDescriptionId: e,
16
- formMessageId: a,
15
+ formDescriptionId: a,
16
+ formMessageId: e,
17
17
  formContextualLinkId: f
18
18
  } = L(), { control: p } = D(), {
19
19
  field: { ref: c, ...b },
20
- fieldState: { invalid: u, error: d }
21
- } = F({ name: t, control: p }), y = g(() => [
22
- d ? a : void 0,
23
- r ? e : void 0
24
- ].filter(Boolean).join(" "), [d, r, e, a]), i = {
25
- isInvalid: u,
20
+ fieldState: { invalid: y, error: s }
21
+ } = F({ name: t, control: p }), u = g(() => [
22
+ s ? e : void 0,
23
+ r ? a : void 0
24
+ ].filter(Boolean).join(" "), [s, r, a, e]), i = {
25
+ isInvalid: y,
26
26
  isDisabled: o.isDisabled,
27
27
  isLoading: o.isLoading,
28
28
  isReadOnly: o.isReadOnly
29
- }, v = C(s, i, b);
29
+ }, v = C(d, i, b);
30
30
  return /* @__PURE__ */ I(
31
31
  x,
32
32
  {
@@ -35,7 +35,7 @@ function R({ ...s }) {
35
35
  "data-slot": "form-control",
36
36
  id: m,
37
37
  "aria-labelledby": n,
38
- "aria-describedby": y,
38
+ "aria-describedby": u,
39
39
  "aria-details": l ? f : void 0,
40
40
  "aria-invalid": i.isInvalid,
41
41
  "data-invalid": i.isInvalid,
@@ -43,12 +43,11 @@ function R({ ...s }) {
43
43
  "data-disabled": i.isDisabled,
44
44
  "aria-readonly": i.isReadOnly,
45
45
  "data-readonly": i.isReadOnly,
46
- "aria-required": o.isRequired,
47
46
  "aria-busy": i.isLoading
48
47
  }
49
48
  );
50
49
  }
51
- R.displayName = "FormControl";
50
+ O.displayName = "FormControl";
52
51
  export {
53
- R as FormControl
52
+ O as FormControl
54
53
  };
@@ -6,14 +6,14 @@ import { SearchField as c } from "react-aria-components/SearchField";
6
6
  import { useIntl as l } from "react-intl";
7
7
  import { CircularIconButton as m } from "../../icon-button/CircularIconButton.js";
8
8
  import { Icon as y } from "../../icon/Icon.js";
9
- const p = s({
9
+ const f = s({
10
10
  slots: {
11
11
  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",
12
12
  input: "uy:flex-grow uy:outline-none uy:[&::-webkit-search-cancel-button]:hidden"
13
13
  }
14
- }), f = u((d, e) => {
15
- const o = l(), { base: n, input: r } = p();
16
- return /* @__PURE__ */ i(c, { className: n(), ref: e, "data-dd-privacy": "mask", children: [
14
+ }), p = u((d, o) => {
15
+ const e = l(), { base: n, input: r } = f();
16
+ return /* @__PURE__ */ i(c, { className: n(), ref: o, "data-dd-privacy": "mask", children: [
17
17
  /* @__PURE__ */ t(
18
18
  y,
19
19
  {
@@ -22,11 +22,20 @@ const p = s({
22
22
  color: "content.neutral.lowest"
23
23
  }
24
24
  ),
25
- /* @__PURE__ */ t(a, { className: r() }),
25
+ /* @__PURE__ */ t(
26
+ a,
27
+ {
28
+ "aria-label": e.formatMessage({
29
+ id: "unity:component:common:search:label",
30
+ defaultMessage: "Search"
31
+ }),
32
+ className: r()
33
+ }
34
+ ),
26
35
  /* @__PURE__ */ t(
27
36
  m,
28
37
  {
29
- title: o.formatMessage({
38
+ title: e.formatMessage({
30
39
  id: "unity:component:common:clear:title",
31
40
  defaultMessage: "Clear"
32
41
  }),
@@ -36,7 +45,7 @@ const p = s({
36
45
  )
37
46
  ] });
38
47
  });
39
- f.displayName = "SelectListSearchInput";
48
+ p.displayName = "SelectListSearchInput";
40
49
  export {
41
- f as SelectListSearchInput
50
+ p as SelectListSearchInput
42
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.46.33",
3
+ "version": "2.46.34",
4
4
  "module": "./dist/esm/index.js",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -92,7 +92,7 @@
92
92
  "tailwind-variants": "3.2.2",
93
93
  "usehooks-ts": "3.1.1",
94
94
  "zod": "4.4.3",
95
- "@payfit/unity-illustrations": "2.46.33"
95
+ "@payfit/unity-illustrations": "2.46.34"
96
96
  },
97
97
  "peerDependencies": {
98
98
  "@hookform/devtools": "^4",
@@ -104,8 +104,8 @@
104
104
  "react-hook-form": "^7",
105
105
  "react-router-dom": "^5",
106
106
  "zod": "^3 || ^4",
107
- "@payfit/unity-icons": "2.46.33",
108
- "@payfit/unity-themes": "2.46.33"
107
+ "@payfit/unity-icons": "2.46.34",
108
+ "@payfit/unity-themes": "2.46.34"
109
109
  },
110
110
  "devDependencies": {
111
111
  "@figma/code-connect": "1.4.8",
@@ -154,9 +154,9 @@
154
154
  "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
155
155
  "@payfit/storybook-addon-console-errors": "0.0.0-use.local",
156
156
  "@payfit/storybook-config": "0.0.0-use.local",
157
- "@payfit/unity-icons": "2.46.33",
158
- "@payfit/unity-illustrations": "2.46.33",
159
- "@payfit/unity-themes": "2.46.33",
157
+ "@payfit/unity-icons": "2.46.34",
158
+ "@payfit/unity-illustrations": "2.46.34",
159
+ "@payfit/unity-themes": "2.46.34",
160
160
  "@payfit/vite-configs": "0.0.0-use.local"
161
161
  },
162
162
  "peerDependenciesMeta": {