@payfit/unity-components 2.22.7 → 2.22.9

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,10 +2,10 @@ import { jsx as s, jsxs as h } from "react/jsx-runtime";
2
2
  import { forwardRef as b, useMemo as w } from "react";
3
3
  import { uyMerge as m } from "@payfit/unity-themes";
4
4
  import { Button as x } from "react-aria-components";
5
- import { Icon as v } from "../icon/Icon.js";
6
- import { Spinner as B } from "../spinner/Spinner.js";
7
- import { buttonGhost as N, buttonOutlined as j, buttonFilled as I } from "./Button.variants.js";
8
- const M = (e, r) => e ? /* @__PURE__ */ s(B, { size: "small", color: "inherit", label: "Loading..." }) : r ? /* @__PURE__ */ s(v, { src: r, size: 20, color: "inherit", role: "presentation" }) : null, $ = b(
5
+ import { Icon as B } from "../icon/Icon.js";
6
+ import { Spinner as N } from "../spinner/Spinner.js";
7
+ import { buttonGhost as v, buttonOutlined as j, buttonFilled as I } from "./Button.variants.js";
8
+ const M = (e, r) => e ? /* @__PURE__ */ s(N, { size: "small", color: "inherit", label: "Loading..." }) : r ? /* @__PURE__ */ s(B, { src: r, size: 20, color: "inherit", role: "presentation" }) : null, $ = b(
9
9
  ({
10
10
  variant: e,
11
11
  children: r,
@@ -13,7 +13,7 @@ const M = (e, r) => e ? /* @__PURE__ */ s(B, { size: "small", color: "inherit",
13
13
  size: c = "default",
14
14
  isDisabled: a = !1,
15
15
  isLoading: t = !1,
16
- prefixIcon: i = void 0,
16
+ prefixIcon: i,
17
17
  truncateLabelLength: u,
18
18
  ...p
19
19
  }, y) => {
@@ -39,7 +39,7 @@ const M = (e, r) => e ? /* @__PURE__ */ s(B, { size: "small", color: "inherit",
39
39
  ...l,
40
40
  color: o
41
41
  };
42
- return m(N(n));
42
+ return m(v(n));
43
43
  }
44
44
  }
45
45
  }, [e, o, c, a, t]), d = {
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  import { CarouselOptions } from './types.js';
3
3
  export declare const carousel: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "uy:relative uy:flex uy:flex-col uy:gap-200 uy:md:gap-300", {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, "uy:relative uy:flex uy:flex-col uy:gap-200 uy:md:gap-300", unknown, unknown, undefined>>;
4
4
  export interface CarouselProps {
5
- options?: Pick<NonNullable<CarouselOptions>, 'align' | 'loop' | 'slidesToScroll' | 'containScroll' | 'inViewThreshold' | 'inViewMargin' | 'duration' | 'draggable' | 'dragFree' | 'dragThreshold' | 'ssr'>;
5
+ options?: Pick<NonNullable<CarouselOptions>, 'align' | 'loop' | 'slidesToScroll' | 'containScroll' | 'inViewThreshold' | 'inViewMargin' | 'duration' | 'draggable' | 'dragFree' | 'dragThreshold'>;
6
6
  /**
7
7
  * Accessible label for the carousel region.
8
8
  * When provided, takes precedence over the title set in `CarouselHeader` for labeling.
@@ -91,19 +91,19 @@ const L = D({
91
91
  color: l = "primary",
92
92
  isDisabled: o = !1,
93
93
  isExact: c = !1,
94
- isCurrent: y = void 0,
94
+ isCurrent: y,
95
95
  isExternal: d,
96
- maxCharactersTruncation: i,
96
+ maxCharactersTruncation: r,
97
97
  size: p = "inherit",
98
98
  ...e
99
99
  }, b) => {
100
- const r = A(), t = d ?? E(a), n = !t && r ? r.isActive(a.toString(), c) : y, { base: m, icon: v } = L({
100
+ const i = A(), t = d ?? E(a), n = !t && i ? i.isActive(a.toString(), c) : y, { base: m, icon: x } = L({
101
101
  variant: u,
102
102
  color: l,
103
103
  isDisabled: o,
104
104
  size: p,
105
- isTruncated: !!i
106
- }), x = !!i, f = r && {
105
+ isTruncated: !!r
106
+ }), f = !!r, v = i && {
107
107
  ...n !== void 0 && {
108
108
  "data-current": n,
109
109
  "aria-current": n ? "page" : void 0
@@ -116,14 +116,14 @@ const L = D({
116
116
  ...e,
117
117
  href: a,
118
118
  ref: b,
119
- style: x ? {
120
- "--uy-link-max-w": `${i}ch`
119
+ style: f ? {
120
+ "--uy-link-max-w": `${r}ch`
121
121
  } : {},
122
122
  className: m(),
123
123
  isDisabled: o,
124
124
  target: t ? "_blank" : e.target,
125
125
  rel: t && !e.rel ? "noopener noreferrer" : e.rel,
126
- ...f,
126
+ ...v,
127
127
  children: [
128
128
  s,
129
129
  t && /* @__PURE__ */ g(
@@ -134,7 +134,7 @@ const L = D({
134
134
  width: "1.25em",
135
135
  height: "1.25em",
136
136
  role: "presentation",
137
- className: v()
137
+ className: x()
138
138
  }
139
139
  )
140
140
  ]
@@ -24,7 +24,7 @@ const _ = j({
24
24
  pageCount: i,
25
25
  rowCount: n,
26
26
  currentPage: r,
27
- rowsPerPage: s = 10,
27
+ rowsPerPage: s,
28
28
  defaultPage: u,
29
29
  pageSizeOptions: f = k,
30
30
  defaultPageSize: h = s,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.22.7",
3
+ "version": "2.22.9",
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.22.7",
45
+ "@payfit/unity-illustrations": "2.22.9",
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",
@@ -53,9 +53,9 @@
53
53
  "@tanstack/react-form": "1.29.0",
54
54
  "@tanstack/react-virtual": "3.13.23",
55
55
  "@use-gesture/react": "10.3.1",
56
- "embla-carousel": "9.0.0-rc01",
56
+ "embla-carousel": "9.0.0-rc02",
57
57
  "embla-carousel-accessibility": "9.0.0-rc01",
58
- "embla-carousel-react": "9.0.0-rc01",
58
+ "embla-carousel-react": "9.0.0-rc02",
59
59
  "prettier": "3.1.0",
60
60
  "react": "18.3.1",
61
61
  "react-aria": "3.47.0",
@@ -74,8 +74,8 @@
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@hookform/devtools": "^4",
77
- "@payfit/unity-icons": "2.22.7",
78
- "@payfit/unity-themes": "2.22.7",
77
+ "@payfit/unity-icons": "2.22.9",
78
+ "@payfit/unity-themes": "2.22.9",
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.22.7",
99
- "@payfit/unity-illustrations": "2.22.7",
100
- "@payfit/unity-themes": "2.22.7",
98
+ "@payfit/unity-icons": "2.22.9",
99
+ "@payfit/unity-illustrations": "2.22.9",
100
+ "@payfit/unity-themes": "2.22.9",
101
101
  "@payfit/vite-configs": "0.0.0-use.local",
102
102
  "@storybook/addon-a11y": "10.3.5",
103
103
  "@storybook/addon-designs": "11.1.3",