@payfit/unity-components 2.17.1 → 2.17.3

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,12 +1,12 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
2
  import { forwardRef as b } from "react";
3
3
  import { uyTv as g } from "@payfit/unity-themes";
4
4
  import { CircularIconButton as a } from "../icon-button/CircularIconButton.js";
5
- import { Icon as w } from "../icon/Icon.js";
6
- const p = g({
5
+ import { Icon as p } from "../icon/Icon.js";
6
+ const w = g({
7
7
  slots: {
8
8
  base: "uy:p-200 uy:flex uy:flex-col uy:sm:flex-row uy:gap-100 uy:sm:gap-200 uy:border uy:border-solid uy:rounded-150 uy:sm:rounded-100",
9
- content: "uy:flex uy:flex-col uy:flex-1 uy:[&>header:has(+*:not(footer))]:mb-100 uy:[&>*+footer]:mt-200",
9
+ content: "uy:flex uy:flex-col uy:flex-1 uy:[&>header:has(+*:not(footer))]:mb-100 uy:[&>*+footer]:mt-200 uy:[&>*:first-child:not(header)]:sm:pt-50",
10
10
  icon: "uy:sm:mt-50 uy:flex uy:justify-between uy:items-center uy:sm:items-start"
11
11
  },
12
12
  variants: {
@@ -39,16 +39,16 @@ const p = g({
39
39
  variant: e,
40
40
  isDismissable: o,
41
41
  onDismiss: s,
42
- dismissButtonLabel: n,
42
+ dismissButtonLabel: t,
43
43
  ...l
44
44
  }, i) => {
45
- const { base: u, content: d, icon: y } = p({ variant: e }), f = x[e], m = {
45
+ const { base: u, content: d, icon: y } = w({ variant: e }), f = x[e], m = {
46
46
  role: e === "danger" ? "alert" : "status",
47
47
  "aria-live": e === "danger" ? "assertive" : "polite",
48
48
  "aria-atomic": !0,
49
49
  "aria-relevant": "additions removals"
50
50
  };
51
- return /* @__PURE__ */ t(
51
+ return /* @__PURE__ */ n(
52
52
  "div",
53
53
  {
54
54
  "data-dd-privacy": "mask",
@@ -57,12 +57,12 @@ const p = g({
57
57
  ...m,
58
58
  ...l,
59
59
  children: [
60
- /* @__PURE__ */ t("div", { className: y(), children: [
61
- /* @__PURE__ */ r(w, { size: 24, ...f, alt: `${e} alert` }),
60
+ /* @__PURE__ */ n("div", { className: y(), children: [
61
+ /* @__PURE__ */ r(p, { size: 24, ...f, alt: `${e} alert` }),
62
62
  o && /* @__PURE__ */ r(
63
63
  a,
64
64
  {
65
- title: n,
65
+ title: t,
66
66
  icon: "CloseOutlined",
67
67
  onPress: s,
68
68
  className: "uy:sm:hidden"
@@ -73,7 +73,7 @@ const p = g({
73
73
  o && /* @__PURE__ */ r(
74
74
  a,
75
75
  {
76
- title: n,
76
+ title: t,
77
77
  icon: "CloseOutlined",
78
78
  onPress: s,
79
79
  className: "uy:hidden uy:sm:flex"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.17.1",
3
+ "version": "2.17.3",
4
4
  "module": "./dist/esm/index.js",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -37,12 +37,12 @@
37
37
  "i18n"
38
38
  ],
39
39
  "dependencies": {
40
- "@ariakit/react": "0.4.22",
40
+ "@ariakit/react": "0.4.23",
41
41
  "@formatjs/intl": "3.1.3",
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.17.1",
45
+ "@payfit/unity-illustrations": "2.17.3",
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.17.1",
78
- "@payfit/unity-themes": "2.17.1",
77
+ "@payfit/unity-icons": "2.17.3",
78
+ "@payfit/unity-themes": "2.17.3",
79
79
  "@storybook/react-vite": "^10.2.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.17.1",
99
- "@payfit/unity-illustrations": "2.17.1",
100
- "@payfit/unity-themes": "2.17.1",
98
+ "@payfit/unity-icons": "2.17.3",
99
+ "@payfit/unity-illustrations": "2.17.3",
100
+ "@payfit/unity-themes": "2.17.3",
101
101
  "@payfit/vite-configs": "0.0.0-use.local",
102
102
  "@storybook/addon-a11y": "10.2.16",
103
103
  "@storybook/addon-designs": "11.1.2",