@payfit/unity-components 2.42.7 → 2.43.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.
@@ -1,7 +1,7 @@
1
1
  export declare const tabsVariant: import('tailwind-variants').TVReturnType<{
2
2
  variant: {
3
3
  primary: {
4
- tab: string;
4
+ tab: string[];
5
5
  };
6
6
  neutral: {
7
7
  tab: string;
@@ -24,7 +24,7 @@ export declare const tabsVariant: import('tailwind-variants').TVReturnType<{
24
24
  }, undefined, {
25
25
  variant: {
26
26
  primary: {
27
- tab: string;
27
+ tab: string[];
28
28
  };
29
29
  neutral: {
30
30
  tab: string;
@@ -47,7 +47,7 @@ export declare const tabsVariant: import('tailwind-variants').TVReturnType<{
47
47
  }, import('tailwind-variants').TVReturnType<{
48
48
  variant: {
49
49
  primary: {
50
- tab: string;
50
+ tab: string[];
51
51
  };
52
52
  neutral: {
53
53
  tab: string;
@@ -1,20 +1,25 @@
1
1
  import { uyTv as t } from "@payfit/unity-themes";
2
- const e = t({
2
+ const a = t({
3
3
  slots: {
4
4
  base: "uy:w-full",
5
5
  tabList: "uy:flex uy:gap-250 uy:mb-25",
6
6
  scroller: "uy:overflow-x-auto uy:overflow-y-hidden [scrollbar-width:thin]",
7
7
  tab: [
8
- "uy:flex uy:relative uy:shrink-0 uy:gap-100 uy:whitespace-nowrap uy:min-w-[3ch] uy:text-center uy:typography-action uy:text-content-neutral-lowest-enabled uy:py-125 uy:rounded-75 uy:cursor-pointer",
8
+ "uy:flex uy:relative uy:shrink-0 uy:gap-100 uy:whitespace-nowrap uy:min-w-[3ch] uy:text-center uy:text-content-neutral-lowest-enabled uy:py-125 uy:cursor-pointer",
9
+ "uy:theme-legacy:typography-action uy:theme-legacy:rounded-75",
10
+ "uy:theme-rebrand:z-10 uy:theme-rebrand:min-h-[44px] uy:theme-rebrand:items-center uy:theme-rebrand:justify-center uy:theme-rebrand:typography-action-large uy:theme-rebrand:sm:typography-action uy:theme-rebrand:rounded-100",
9
11
  'uy:data-[selected]:text-content-form-enabled uy:data-[selected]:after:block uy:data-[selected]:after:content:" " uy:data-[selected]:after:w-full uy:data-[selected]:after:h-25 uy:data-[selected]:after:absolute uy:data-[selected]:after:bottom-0 uy:data-[selected]:after:left-0 uy:data-[selected]:after:right-0 uy:data-[selected]:after:rounded-pill',
10
12
  'uy:data-[status=active]:text-content-form-enabled uy:data-[status=active]:after:block uy:data-[status=active]:after:content:" " uy:data-[status=active]:after:w-full uy:data-[status=active]:after:h-25 uy:data-[status=active]:after:absolute uy:data-[status=active]:after:bottom-0 uy:data-[status=active]:after:left-0 uy:data-[status=active]:after:right-0 uy:data-[status=active]:after:rounded-pill',
11
- "uy:hover:cursor-pointer uy:focus-visible:outline-2 uy:focus-visible:outline-utility-focus-ring uy:focus-visible:outline-offset-[4px]"
13
+ "uy:hover:cursor-pointer uy:focus-visible:outline-2 uy:focus-visible:outline-utility-focus-ring uy:theme-legacy:focus-visible:outline-offset-[4px] uy:theme-rebrand:focus-visible:outline-offset-0"
12
14
  ]
13
15
  },
14
16
  variants: {
15
17
  variant: {
16
18
  primary: {
17
- tab: "uy:data-[selected]:after:bg-border-neutral-active uy:data-[status=active]:after:bg-border-neutral-active"
19
+ tab: [
20
+ "uy:theme-legacy:data-[selected]:after:bg-border-neutral-active uy:theme-legacy:data-[status=active]:after:bg-border-neutral-active",
21
+ "uy:theme-rebrand:data-[selected]:after:bg-surface-primary uy:theme-rebrand:data-[status=active]:after:bg-surface-primary"
22
+ ]
18
23
  },
19
24
  neutral: {
20
25
  tab: "uy:data-[selected]:after:bg-content-neutral uy:data-[status=active]:after:bg-content-neutral"
@@ -33,5 +38,5 @@ const e = t({
33
38
  defaultVariants: { variant: "primary", scrollable: !1 }
34
39
  });
35
40
  export {
36
- e as tabsVariant
41
+ a as tabsVariant
37
42
  };
@@ -1,11 +1,15 @@
1
- import { jsx as u } from "react/jsx-runtime";
1
+ import { jsx as e } from "react/jsx-runtime";
2
2
  import { uyTv as a } from "@payfit/unity-themes";
3
- import { Button as s } from "react-aria-components/Button";
4
- import { Icon as y } from "../../icon/Icon.js";
5
- const i = a({
3
+ import { Button as y } from "react-aria-components/Button";
4
+ import { Icon as n } from "../../icon/Icon.js";
5
+ const s = a({
6
6
  slots: {
7
7
  base: "uy:absolute uy:pt-150 uy:pb-150",
8
- button: "uy:rounded-circle uy:hover:text-content-neutral-hover uy:focus-visible:outline-2 uy:focus-visible:outline-offset-2 uy:focus-visible:outline-utility-focus-ring",
8
+ button: [
9
+ "uy:hover:text-content-neutral-hover uy:focus-visible:outline-2 uy:focus-visible:outline-offset-2 uy:focus-visible:outline-utility-focus-ring",
10
+ "uy:theme-legacy:rounded-circle",
11
+ "uy:theme-rebrand:rounded-75"
12
+ ],
9
13
  icon: "uy:text-content-neutral-enabled"
10
14
  },
11
15
  variants: {
@@ -18,17 +22,17 @@ const i = a({
18
22
  }
19
23
  }
20
24
  }
21
- }), g = ({ direction: t, onPress: e }) => {
22
- const { base: o, button: l, icon: r } = i({ direction: t });
23
- return /* @__PURE__ */ u("div", { className: o(), children: /* @__PURE__ */ u(
24
- s,
25
+ }), g = ({ direction: t, onPress: u }) => {
26
+ const { base: o, button: l, icon: r } = s({ direction: t });
27
+ return /* @__PURE__ */ e("div", { className: o(), children: /* @__PURE__ */ e(
28
+ y,
25
29
  {
26
30
  id: `scroll-${t}`,
27
31
  className: l(),
28
32
  "aria-label": `Scroll ${t}`,
29
- onPress: e,
30
- children: /* @__PURE__ */ u(
31
- y,
33
+ onPress: u,
34
+ children: /* @__PURE__ */ e(
35
+ n,
32
36
  {
33
37
  className: r(),
34
38
  "aria-labelledby": `scroll-${t}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.42.7",
3
+ "version": "2.43.1",
4
4
  "module": "./dist/esm/index.js",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -38,12 +38,12 @@
38
38
  "skills"
39
39
  ],
40
40
  "dependencies": {
41
- "@ariakit/react": "0.4.26",
41
+ "@ariakit/react": "0.4.28",
42
42
  "@formatjs/intl": "3.1.3",
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.42.7",
46
+ "@payfit/unity-illustrations": "2.43.1",
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.42.7",
79
- "@payfit/unity-themes": "2.42.7",
78
+ "@payfit/unity-icons": "2.43.1",
79
+ "@payfit/unity-themes": "2.43.1",
80
80
  "@storybook/react-vite": "^10.3.2",
81
81
  "@tanstack/react-query": "^5",
82
82
  "@tanstack/react-router": "^1.131",
@@ -91,9 +91,9 @@
91
91
  "@github-ui/storybook-addon-performance-panel": "1.1.4",
92
92
  "@hookform/devtools": "4.4.0",
93
93
  "@internationalized/date": "3.12.1",
94
- "@payfit/unity-icons": "2.42.7",
95
- "@payfit/unity-illustrations": "2.42.7",
96
- "@payfit/unity-themes": "2.42.7",
94
+ "@payfit/unity-icons": "2.43.1",
95
+ "@payfit/unity-illustrations": "2.43.1",
96
+ "@payfit/unity-themes": "2.43.1",
97
97
  "@storybook/addon-a11y": "10.4.0",
98
98
  "@storybook/addon-designs": "11.1.3",
99
99
  "@storybook/addon-docs": "10.4.0",
@@ -136,8 +136,8 @@
136
136
  "@payfit/hr-app-eslint": "0.0.0-use.local",
137
137
  "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
138
138
  "@payfit/storybook-addon-console-errors": "0.0.0-use.local",
139
- "@payfit/storybook-config": "0.0.0-use.local",
140
- "@payfit/vite-configs": "0.0.0-use.local"
139
+ "@payfit/vite-configs": "0.0.0-use.local",
140
+ "@payfit/storybook-config": "0.0.0-use.local"
141
141
  },
142
142
  "peerDependenciesMeta": {
143
143
  "@hookform/devtools": {