@payfit/unity-components 2.21.14 → 2.21.16

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.
@@ -2,7 +2,7 @@ import { uyTv as e } from "@payfit/unity-themes";
2
2
  const u = e({
3
3
  slots: {
4
4
  base: [
5
- "uy:flex uy:flex-row uy:items-center",
5
+ "uy:flex uy:flex-row uy:items-center uy:text-left",
6
6
  "uy:rounded-lg uy:border-solid uy:border-1 uy:transition-colors uy:group",
7
7
  "uy:cursor-pointer uy:disabled:cursor-not-allowed uy:aria-disabled:cursor-not-allowed",
8
8
  "uy:bg-surface-neutral uy:border-border-neutral uy:text-content-neutral-low",
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
- import { useRef as P, Children as m, isValidElement as l, useLayoutEffect as v } from "react";
2
+ import { useRef as P, Children as m, isValidElement as l, useLayoutEffect as b } from "react";
3
3
  import { uyTv as N } from "@payfit/unity-themes";
4
4
  import { useId as C } from "react-aria";
5
5
  import { ModalOverlay as A, Modal as E, DialogContext as I, Dialog as j } from "react-aria-components";
@@ -7,7 +7,7 @@ import { useIntl as z } from "react-intl";
7
7
  import { useHasScroll as M } from "../../hooks/use-has-scroll.js";
8
8
  import { DialogButton as H } from "../dialog/parts/DialogActions/DialogButton.js";
9
9
  import { CircularIconButton as T } from "../icon-button/CircularIconButton.js";
10
- import { PromoDialogActions as b } from "./parts/PromoDialogActions.js";
10
+ import { PromoDialogActions as v } from "./parts/PromoDialogActions.js";
11
11
  import { PromoDialogHero as W } from "./parts/PromoDialogHero.js";
12
12
  import { PromoDialogTitle as _ } from "./parts/PromoDialogTitle.js";
13
13
  const k = N({
@@ -67,7 +67,7 @@ const k = N({
67
67
  // Mobile: auto height
68
68
  "uy:h-auto",
69
69
  // Desktop: takes 2/3 of width, fixed max height, enables scrolling
70
- "uy:md:basis-2/3 uy:md:h-full uy:md:max-h-85 uy:md:overflow-y-auto uy:md:pt-600"
70
+ "uy:md:basis-2/3 uy:md:h-full uy:md:max-h-85 uy:md:overflow-y-auto uy:md:pt-600 uy:md:[scrollbar-gutter:stable]"
71
71
  ],
72
72
  scrollableContent: [
73
73
  "uy:md:pl-[clamp(var(--uy-spacing-400),11%,var(--uy-spacing-800))] uy:md:pr-1000 uy:[scrollbar-width:thin] uy:md:scroll-mt-1000",
@@ -84,7 +84,7 @@ const k = N({
84
84
  }
85
85
  }), B = (r) => {
86
86
  const n = m.toArray(r).find(
87
- (e) => l(e) && e.type === b
87
+ (e) => l(e) && e.type === v
88
88
  );
89
89
  return l(
90
90
  n
@@ -103,19 +103,19 @@ function q({
103
103
  }) {
104
104
  const f = z(), d = C(), g = P(null), { hasAnyScroll: i } = M(g, {
105
105
  strategy: "both",
106
- watchMutations: !1
106
+ watchMutations: !0
107
107
  }), s = m.toArray(r), u = s.find(
108
108
  (o) => l(o) && o.type === W
109
109
  ), h = s.find(
110
- (o) => l(o) && o.type === b
110
+ (o) => l(o) && o.type === v
111
111
  ), w = s.filter(
112
112
  (o) => o !== u && o !== h
113
113
  );
114
- v(() => {
114
+ b(() => {
115
115
  u || console.error(
116
116
  "PromoDialog: PromoDialogHero is required. Please add <PromoDialogHero> as a child of your PromoDialog component."
117
117
  );
118
- }, [u]), v(() => {
118
+ }, [u]), b(() => {
119
119
  const D = m.toArray(r).some(
120
120
  (x) => l(x) && x.type === _
121
121
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.21.14",
3
+ "version": "2.21.16",
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.0",
45
- "@payfit/unity-illustrations": "2.21.14",
45
+ "@payfit/unity-illustrations": "2.21.16",
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.1",
@@ -74,8 +74,8 @@
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@hookform/devtools": "^4",
77
- "@payfit/unity-icons": "2.21.14",
78
- "@payfit/unity-themes": "2.21.14",
77
+ "@payfit/unity-icons": "2.21.16",
78
+ "@payfit/unity-themes": "2.21.16",
79
79
  "@storybook/react-vite": "^10.3.2",
80
80
  "@tanstack/react-query": "^5",
81
81
  "@tanstack/react-router": "^1.131",
@@ -95,9 +95,9 @@
95
95
  "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
96
96
  "@payfit/storybook-addon-console-errors": "0.0.0-use.local",
97
97
  "@payfit/storybook-config": "0.0.0-use.local",
98
- "@payfit/unity-icons": "2.21.14",
99
- "@payfit/unity-illustrations": "2.21.14",
100
- "@payfit/unity-themes": "2.21.14",
98
+ "@payfit/unity-icons": "2.21.16",
99
+ "@payfit/unity-illustrations": "2.21.16",
100
+ "@payfit/unity-themes": "2.21.16",
101
101
  "@payfit/vite-configs": "0.0.0-use.local",
102
102
  "@storybook/addon-a11y": "10.3.3",
103
103
  "@storybook/addon-designs": "11.1.3",