@payfit/unity-components 2.35.3 → 2.35.4

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,4 +1,3 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { MenuSectionProps as AriaMenuSectionProps } from 'react-aria-components/Menu';
3
2
  interface MenuSectionProps<TItemType extends object> extends AriaMenuSectionProps<TItemType> {
4
3
  /**
@@ -76,7 +75,7 @@ interface MenuSectionProps<TItemType extends object> extends AriaMenuSectionProp
76
75
  * visually distinct groups within a single menu
77
76
  * @see {@link https://github.com/PayFit/hr-apps/blob/master/libs/shared/unity/components/src/components/menu/parts/MenuSection.tsx Source code on GitHub}
78
77
  */
79
- export declare function MenuSection<TItemType extends object>({ children, items, className, title, isTitleHidden, ...rest }: PropsWithChildren<MenuSectionProps<TItemType>>): import("react/jsx-runtime").JSX.Element;
78
+ export declare function MenuSection<TItemType extends object>({ children, items, className, title, isTitleHidden, ...rest }: MenuSectionProps<TItemType>): import("react/jsx-runtime").JSX.Element;
80
79
  export declare namespace MenuSection {
81
80
  var displayName: string;
82
81
  }
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { MenuItemProps as MenuItemAriaComponentProps } from 'react-aria-components/Menu';
3
3
  import { DataAttributes } from '../../../types/DataAttributes.js';
4
4
  export interface MenuItemProps extends DataAttributes {
@@ -9,7 +9,6 @@ export interface MenuItemProps extends DataAttributes {
9
9
  prefix?: ReactNode;
10
10
  className?: string;
11
11
  }
12
- export declare function RawMenuItem({ prefix, children, href, onAction, className, isDisabled, ...dataAttributes }: PropsWithChildren<MenuItemProps>): import("react/jsx-runtime").JSX.Element;
13
- export declare namespace RawMenuItem {
14
- var displayName: string;
15
- }
12
+ export declare const RawMenuItem: import('react').ForwardRefExoticComponent<MenuItemProps & {
13
+ children?: ReactNode | undefined;
14
+ } & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,8 @@
1
- import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
- import { uyTv as l } from "@payfit/unity-themes";
3
- import { MenuItem as d } from "react-aria-components/Menu";
4
- const y = l({
1
+ import { jsxs as n, jsx as d } from "react/jsx-runtime";
2
+ import { forwardRef as l } from "react";
3
+ import { uyTv as y } from "@payfit/unity-themes";
4
+ import { MenuItem as c } from "react-aria-components/Menu";
5
+ const f = y({
5
6
  base: [
6
7
  "uy:cursor-pointer uy:group",
7
8
  "uy:flex uy:p-100 uy:items-start uy:gap-100 uy:rounded-25 uy:typography-body uy:text-content-neutral",
@@ -11,8 +12,7 @@ const y = l({
11
12
  "uy:data-[focused=true]:not-data-[focus-visible=true]:outline-0 uy:data-[focus-visible=true]:outline-2 uy:data-[focus-visible=true]:outline-offset-2 uy:data-[focus-visible=true]:outline-utility-focus-ring",
12
13
  "uy:aria-disabled:text-content-neutral-disabled uy:aria-disabled:cursor-not-allowed"
13
14
  ]
14
- });
15
- function c({
15
+ }), m = l(function({
16
16
  prefix: e,
17
17
  children: t,
18
18
  href: u,
@@ -20,23 +20,24 @@ function c({
20
20
  className: r,
21
21
  isDisabled: o,
22
22
  ...s
23
- }) {
24
- return /* @__PURE__ */ i(
25
- d,
23
+ }, i) {
24
+ return /* @__PURE__ */ n(
25
+ c,
26
26
  {
27
+ ref: i,
27
28
  href: u,
28
29
  isDisabled: o,
29
30
  onAction: a,
30
- className: y({ className: r }),
31
+ className: f({ className: r }),
31
32
  ...s,
32
33
  children: [
33
- /* @__PURE__ */ n("div", { className: "uy:text-content-neutral-low uy:group-aria-disabled:text-content-neutral-disabled", children: e || null }),
34
+ /* @__PURE__ */ d("div", { className: "uy:text-content-neutral-low uy:group-aria-disabled:text-content-neutral-disabled", children: e || null }),
34
35
  t
35
36
  ]
36
37
  }
37
38
  );
38
- }
39
- c.displayName = "RawMenuItem";
39
+ });
40
+ m.displayName = "RawMenuItem";
40
41
  export {
41
- c as RawMenuItem
42
+ m as RawMenuItem
42
43
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.35.3",
3
+ "version": "2.35.4",
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.12.1",
45
- "@payfit/unity-illustrations": "2.35.3",
45
+ "@payfit/unity-illustrations": "2.35.4",
46
46
  "@radix-ui/react-avatar": "1.1.11",
47
47
  "@radix-ui/react-slot": "1.2.4",
48
48
  "@react-aria/interactions": "3.28.0",
@@ -74,8 +74,8 @@
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@hookform/devtools": "^4",
77
- "@payfit/unity-icons": "2.35.3",
78
- "@payfit/unity-themes": "2.35.3",
77
+ "@payfit/unity-icons": "2.35.4",
78
+ "@payfit/unity-themes": "2.35.4",
79
79
  "@storybook/react-vite": "^10.3.2",
80
80
  "@tanstack/react-query": "^5",
81
81
  "@tanstack/react-router": "^1.131",
@@ -89,9 +89,9 @@
89
89
  "@figma/code-connect": "1.4.3",
90
90
  "@hookform/devtools": "4.4.0",
91
91
  "@internationalized/date": "3.12.1",
92
- "@payfit/unity-icons": "2.35.3",
93
- "@payfit/unity-illustrations": "2.35.3",
94
- "@payfit/unity-themes": "2.35.3",
92
+ "@payfit/unity-icons": "2.35.4",
93
+ "@payfit/unity-illustrations": "2.35.4",
94
+ "@payfit/unity-themes": "2.35.4",
95
95
  "@storybook/addon-a11y": "10.3.5",
96
96
  "@storybook/addon-designs": "11.1.3",
97
97
  "@storybook/addon-docs": "10.3.5",
@@ -129,8 +129,8 @@
129
129
  "vite": "7.1.12",
130
130
  "vite-plugin-node-polyfills": "0.24.0",
131
131
  "vitest": "4.1.0",
132
- "@payfit/code-pushup-tools": "0.0.0-use.local",
133
132
  "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
133
+ "@payfit/code-pushup-tools": "0.0.0-use.local",
134
134
  "@payfit/hr-app-eslint": "0.0.0-use.local",
135
135
  "@payfit/storybook-addon-console-errors": "0.0.0-use.local",
136
136
  "@payfit/storybook-config": "0.0.0-use.local",