@payfit/unity-components 2.67.3 → 2.67.5

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.
@@ -9,6 +9,7 @@ export declare const errorState: import('tailwind-variants').TVReturnType<{
9
9
  h3?: import('tailwind-variants').ClassValue;
10
10
  h4?: import('tailwind-variants').ClassValue;
11
11
  container?: import('tailwind-variants').ClassValue;
12
+ content?: import('tailwind-variants').ClassValue;
12
13
  base?: import('tailwind-variants').ClassValue;
13
14
  icon?: import('tailwind-variants').ClassValue;
14
15
  description?: import('tailwind-variants').ClassValue;
@@ -27,6 +28,7 @@ export declare const errorState: import('tailwind-variants').TVReturnType<{
27
28
  h3?: import('tailwind-variants').ClassValue;
28
29
  h4?: import('tailwind-variants').ClassValue;
29
30
  container?: import('tailwind-variants').ClassValue;
31
+ content?: import('tailwind-variants').ClassValue;
30
32
  base?: import('tailwind-variants').ClassValue;
31
33
  icon?: import('tailwind-variants').ClassValue;
32
34
  description?: import('tailwind-variants').ClassValue;
@@ -41,6 +43,7 @@ export declare const errorState: import('tailwind-variants').TVReturnType<{
41
43
  container: string[];
42
44
  wrapper: string[];
43
45
  base: string[];
46
+ content: string[];
44
47
  illustration: string[];
45
48
  icon: string[];
46
49
  informationContainer: string[];
@@ -59,6 +62,7 @@ export declare const errorState: import('tailwind-variants').TVReturnType<{
59
62
  h3?: import('tailwind-variants').ClassValue;
60
63
  h4?: import('tailwind-variants').ClassValue;
61
64
  container?: import('tailwind-variants').ClassValue;
65
+ content?: import('tailwind-variants').ClassValue;
62
66
  base?: import('tailwind-variants').ClassValue;
63
67
  icon?: import('tailwind-variants').ClassValue;
64
68
  description?: import('tailwind-variants').ClassValue;
@@ -73,6 +77,7 @@ export declare const errorState: import('tailwind-variants').TVReturnType<{
73
77
  container: string[];
74
78
  wrapper: string[];
75
79
  base: string[];
80
+ content: string[];
76
81
  illustration: string[];
77
82
  icon: string[];
78
83
  informationContainer: string[];
@@ -87,6 +92,7 @@ export declare const errorState: import('tailwind-variants').TVReturnType<{
87
92
  container: string[];
88
93
  wrapper: string[];
89
94
  base: string[];
95
+ content: string[];
90
96
  illustration: string[];
91
97
  icon: string[];
92
98
  informationContainer: string[];
@@ -151,6 +157,7 @@ interface KnownErrorStateProps extends ErrorStateBaseProps {
151
157
  * Type identifier for known errors.
152
158
  */
153
159
  type: 'generic';
160
+ entityName?: never;
154
161
  }
155
162
  interface UnknownErrorStateProps extends ErrorStateBaseProps {
156
163
  /**
@@ -166,6 +173,7 @@ interface UnknownErrorStateProps extends ErrorStateBaseProps {
166
173
  * Type identifier for unknown errors.
167
174
  */
168
175
  type: 'generic';
176
+ entityName?: never;
169
177
  }
170
178
  interface _404ErrorStateProps extends ErrorStateBaseProps {
171
179
  /**
@@ -176,8 +184,14 @@ interface _404ErrorStateProps extends ErrorStateBaseProps {
176
184
  * No error object needed for 404 states.
177
185
  */
178
186
  error?: never;
187
+ entityName?: never;
179
188
  }
180
- export type ErrorStateProps = KnownErrorStateProps | UnknownErrorStateProps | _404ErrorStateProps;
189
+ interface NoPermissionStateProps extends ErrorStateBaseProps {
190
+ type: 'no-permission';
191
+ entityName: string;
192
+ error?: never;
193
+ }
194
+ export type ErrorStateProps = KnownErrorStateProps | UnknownErrorStateProps | _404ErrorStateProps | NoPermissionStateProps;
181
195
  /**
182
196
  * The `ErrorState` component displays error information with contextual messaging and actions.
183
197
  * It provides a consistent way to handle different types of errors (generic, 404) with appropriate visual feedback and user actions.
@@ -19,7 +19,8 @@ var h = m({ slots: {
19
19
  "uy:@page:border-0 uy:@page:py-auto uy:@page:px-auto",
20
20
  "uy:@app:border-0 uy:@app:py-auto uy:@app:px-auto"
21
21
  ],
22
- base: ["uy:max-w-[704px] uy:flex uy:flex-col uy:items-center uy:justify-center uy:gap-250 uy:w-full uy:justify-self-center"],
22
+ base: ["uy:max-w-[704px] uy:flex uy:flex-col uy:items-center uy:justify-center uy:gap-150 uy:@section:gap-250 uy:w-full uy:justify-self-center"],
23
+ content: ["uy:flex uy:flex-col uy:items-center uy:justify-center uy:gap-250"],
23
24
  illustration: [
24
25
  "uy:@section:block",
25
26
  "uy:hidden",
@@ -28,7 +29,7 @@ var h = m({ slots: {
28
29
  "uy:@app:w-[240px]"
29
30
  ],
30
31
  icon: ["uy:bg-surface-neutral-lowest uy:rounded-125 uy:p-100", "uy:@section:hidden"],
31
- informationContainer: ["uy:flex uy:flex-col uy:items-center uy:justify-center uy:gap-150 uy:text-center uy"],
32
+ informationContainer: ["uy:flex uy:flex-col uy:items-center uy:justify-center uy:gap-100 uy:@section:gap-150 uy:text-center uy"],
32
33
  information: [
33
34
  "uy:hidden",
34
35
  "",
@@ -53,105 +54,108 @@ var h = m({ slots: {
53
54
  variant: "ghost",
54
55
  children: e.backButtonLabel ?? n?.backButtonLabel
55
56
  })
56
- }), v = s((i, o) => {
57
- let { icon: s, illustration: m, onButtonPress: v, buttonLabel: y, mainTitle: b, mainDescription: x, mainDescriptionComponent: S, type: C, error: w, role: T = "status" } = i, { base: E, container: D, wrapper: O, illustration: k, icon: A, informationContainer: j, information: M, informationComponent: N, description: P, h1: F, h2: I, h3: L, h4: R } = h(), z = f(), B = a(z), V = l(null), { level: H } = r({ ref: V }), U = c((e) => {
58
- V.current = e, o && (typeof o == "function" ? o(e) : o.current = e);
59
- }, [o]), W = C === "404" ? "404" : "unknown";
60
- C === "generic" && w && (W = "known");
61
- let G = B.get(W), K = m ?? G?.illustration, q = s ?? G?.icon, J = y ?? G?.buttonLabel, Y = b ?? G?.mainTitle, X = x ?? G?.mainDescription, Z = S ?? G?.mainDescriptionComponent;
57
+ }), v = (e, t) => e === "generic" ? t ? "known" : "unknown" : e, y = s((i, o) => {
58
+ let { icon: s, illustration: m, onButtonPress: y, buttonLabel: b, mainTitle: x, mainDescription: S, mainDescriptionComponent: C, type: w, error: T, entityName: E, role: D = "status" } = i, { base: O, content: k, container: A, wrapper: j, illustration: M, icon: N, informationContainer: P, information: F, informationComponent: ee, description: I, h1: L, h2: R, h3: z, h4: B } = h(), V = f(), H = a(V, { noPermissionEntityName: E }), U = l(null), { level: W } = r({ ref: U }), G = c((e) => {
59
+ U.current = e, o && (typeof o == "function" ? o(e) : o.current = e);
60
+ }, [o]), K = v(w, T), q = H.get(K), J = m ?? q?.illustration, Y = s ?? q?.icon, X = b ?? q?.buttonLabel, Z = x ?? q?.mainTitle, Q = S ?? q?.mainDescription, $ = C ?? q?.mainDescriptionComponent;
62
61
  return /* @__PURE__ */ u("div", {
63
62
  "data-dd-privacy": "allow",
64
- role: T,
65
- className: D(),
66
- ref: U,
67
- "data-container-level": H,
63
+ role: D,
64
+ className: A(),
65
+ ref: G,
66
+ "data-container-level": W,
68
67
  children: /* @__PURE__ */ u("div", {
69
- className: O(),
68
+ className: j(),
70
69
  children: /* @__PURE__ */ d("div", {
71
- className: E(),
70
+ className: O(),
72
71
  children: [
73
- K && /* @__PURE__ */ u(p, {
74
- src: K,
75
- variant: "picture",
76
- alt: z.formatMessage({
77
- id: "unity:component:error-state:common:illustration:alt",
78
- defaultMessage: "Error states"
79
- }),
80
- className: k(),
81
- isDecorative: !0
82
- }),
83
- q && /* @__PURE__ */ u(e, {
84
- src: q,
85
- size: 24,
86
- color: "content.neutral.low",
87
- alt: z.formatMessage({
88
- id: "unity:component:error-state:common:icon:alt",
89
- defaultMessage: "Error states"
90
- }),
91
- className: A()
92
- }),
93
72
  /* @__PURE__ */ d("div", {
94
- className: j(),
73
+ className: k(),
95
74
  children: [
96
- /* @__PURE__ */ u(n, {
97
- asElement: "h1",
98
- variant: "h1",
99
- color: "content.neutral",
100
- className: F(),
101
- children: Y
102
- }),
103
- /* @__PURE__ */ u(n, {
104
- asElement: "h2",
105
- variant: "h2",
106
- color: "content.neutral",
107
- className: I(),
108
- children: Y
109
- }),
110
- /* @__PURE__ */ u(n, {
111
- asElement: "h3",
112
- variant: "h3",
113
- color: "content.neutral",
114
- className: L(),
115
- children: Y
116
- }),
117
- /* @__PURE__ */ u(n, {
118
- asElement: "h4",
119
- variant: "h4",
120
- color: "content.neutral",
121
- className: R(),
122
- children: Y
123
- }),
124
- /* @__PURE__ */ u(n, {
125
- asElement: "p",
126
- variant: "body",
127
- color: "content.neutral.low",
75
+ J && /* @__PURE__ */ u(p, {
76
+ src: J,
77
+ variant: "picture",
78
+ alt: V.formatMessage({
79
+ id: "unity:component:error-state:common:illustration:alt",
80
+ defaultMessage: "Error states"
81
+ }),
128
82
  className: M(),
129
- children: X
83
+ isDecorative: !0
130
84
  }),
131
- /* @__PURE__ */ u(n, {
132
- asElement: "p",
133
- variant: "body",
85
+ Y && /* @__PURE__ */ u(e, {
86
+ src: Y,
87
+ size: 24,
134
88
  color: "content.neutral.low",
135
- className: N(),
136
- children: Z
89
+ alt: V.formatMessage({
90
+ id: "unity:component:error-state:common:icon:alt",
91
+ defaultMessage: "Error states"
92
+ }),
93
+ className: N()
94
+ }),
95
+ /* @__PURE__ */ d("div", {
96
+ className: P(),
97
+ children: [
98
+ /* @__PURE__ */ u(n, {
99
+ asElement: "h1",
100
+ variant: "h1",
101
+ color: "content.neutral",
102
+ className: L(),
103
+ children: Z
104
+ }),
105
+ /* @__PURE__ */ u(n, {
106
+ asElement: "h2",
107
+ variant: "h2",
108
+ color: "content.neutral",
109
+ className: R(),
110
+ children: Z
111
+ }),
112
+ /* @__PURE__ */ u(n, {
113
+ asElement: "h3",
114
+ variant: "h3",
115
+ color: "content.neutral",
116
+ className: z(),
117
+ children: Z
118
+ }),
119
+ /* @__PURE__ */ u(n, {
120
+ asElement: "h4",
121
+ variant: "h4",
122
+ color: "content.neutral",
123
+ className: B(),
124
+ children: Z
125
+ }),
126
+ /* @__PURE__ */ u(n, {
127
+ asElement: "p",
128
+ variant: "body",
129
+ color: "content.neutral.low",
130
+ className: F(),
131
+ children: Q
132
+ }),
133
+ /* @__PURE__ */ u(n, {
134
+ asElement: "p",
135
+ variant: "body",
136
+ color: "content.neutral.low",
137
+ className: ee(),
138
+ children: $
139
+ })
140
+ ]
137
141
  })
138
142
  ]
139
143
  }),
140
144
  /* @__PURE__ */ u(t, {
141
- variant: H === "component" ? "ghost" : "primary",
142
- onPress: v,
143
- children: J
145
+ variant: W === "component" ? "ghost" : "primary",
146
+ onPress: y,
147
+ children: X
144
148
  }),
145
- W === "unknown" && _(i, G),
146
- W === "known" && /* @__PURE__ */ u("div", {
147
- className: P(),
148
- children: g(i, G)
149
+ K === "unknown" && _(i, q),
150
+ K === "known" && /* @__PURE__ */ u("div", {
151
+ className: I(),
152
+ children: g(i, q)
149
153
  })
150
154
  ]
151
155
  })
152
156
  })
153
157
  });
154
158
  });
155
- v.displayName = "ErrorState";
159
+ y.displayName = "ErrorState";
156
160
  //#endregion
157
- export { v as ErrorState, h as errorState };
161
+ export { y as ErrorState, h as errorState };
@@ -2,7 +2,7 @@ import { UnityIcon } from '@payfit/unity-icons';
2
2
  import { UnityIllustrationAsset } from '@payfit/unity-illustrations';
3
3
  import { ReactNode } from 'react';
4
4
  import { IntlShape } from 'react-intl';
5
- export type ErrorStateVariant = 'known' | 'unknown' | '404';
5
+ export type ErrorStateVariant = 'known' | 'unknown' | '404' | 'no-permission';
6
6
  export interface ErrorStateConfig {
7
7
  illustration: UnityIllustrationAsset;
8
8
  icon: UnityIcon;
@@ -13,4 +13,4 @@ export interface ErrorStateConfig {
13
13
  detailDescription?: ReactNode;
14
14
  backButtonLabel?: ReactNode;
15
15
  }
16
- export declare const initConfig: (intl: IntlShape) => Map<ErrorStateVariant, ErrorStateConfig>;
16
+ export declare const initConfig: (intl: IntlShape, values?: Parameters<IntlShape["formatMessage"]>[1]) => Map<ErrorStateVariant, ErrorStateConfig>;
@@ -2,28 +2,29 @@ import { RawLink as e } from "../link/RawLink.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import n from "@payfit/unity-illustrations/assets/EmptyStateIncidentPanel";
4
4
  import r from "@payfit/unity-illustrations/assets/EmptyStateResearch";
5
+ import i from "@payfit/unity-illustrations/assets/ClosedLockWithBackground";
5
6
  //#region src/components/error-state/initConfig.tsx
6
- var i = (i) => /* @__PURE__ */ new Map([
7
+ var a = (a, o) => /* @__PURE__ */ new Map([
7
8
  ["known", {
8
9
  illustration: n,
9
10
  icon: "WarningCircleOutlined",
10
- mainTitle: i.formatMessage({
11
+ mainTitle: a.formatMessage({
11
12
  id: "unity:component:error-state:common:main-title",
12
13
  defaultMessage: "Something went wrong"
13
14
  }, { br: () => /* @__PURE__ */ t("br", {}) }),
14
- mainDescription: i.formatMessage({
15
+ mainDescription: a.formatMessage({
15
16
  id: "unity:component:error-state:known:main-description",
16
17
  defaultMessage: "Please refresh the page or check your connection.<br></br>We’ve been notified of the issue and are working to resolve it as quickly as possible."
17
18
  }, { br: () => /* @__PURE__ */ t("br", {}) }),
18
- mainDescriptionComponent: i.formatMessage({
19
+ mainDescriptionComponent: a.formatMessage({
19
20
  id: "unity:component:error-state:common:main-description-component",
20
21
  defaultMessage: "Please refresh the page or try signing in again. We’ve been notified of the issue and are working to resolve it as quickly as possible."
21
22
  }, { br: () => /* @__PURE__ */ t("br", {}) }),
22
- buttonLabel: i.formatMessage({
23
+ buttonLabel: a.formatMessage({
23
24
  id: "unity:component:error-state:button:label",
24
25
  defaultMessage: "Go to dashboard"
25
26
  }, { br: () => /* @__PURE__ */ t("br", {}) }),
26
- detailDescription: i.formatMessage({
27
+ detailDescription: a.formatMessage({
27
28
  id: "unity:component:error-state:detail-description",
28
29
  defaultMessage: "Here's the technical error detail.<br></br> <br></br>If the problem continues, you can send it to <Link>our customer support</Link> so we can help unblock you:"
29
30
  }, {
@@ -32,7 +33,7 @@ var i = (i) => /* @__PURE__ */ new Map([
32
33
  variant: "inline",
33
34
  isExternal: !0,
34
35
  color: "primary",
35
- href: i.formatMessage({ id: "unity:component:common:customer-support:url" }),
36
+ href: a.formatMessage({ id: "unity:component:common:customer-support:url" }),
36
37
  children: n
37
38
  })
38
39
  })
@@ -40,11 +41,11 @@ var i = (i) => /* @__PURE__ */ new Map([
40
41
  ["unknown", {
41
42
  illustration: n,
42
43
  icon: "WarningCircleOutlined",
43
- mainTitle: i.formatMessage({
44
+ mainTitle: a.formatMessage({
44
45
  id: "unity:component:error-state:common:main-title",
45
46
  defaultMessage: "Something went wrong"
46
47
  }, { br: () => /* @__PURE__ */ t("br", {}) }),
47
- mainDescription: i.formatMessage({
48
+ mainDescription: a.formatMessage({
48
49
  id: "unity:component:error-state:unknown:main-description",
49
50
  defaultMessage: "Please refresh the page or try signing in again.<br></br>We’ve been notified of the issue and are working to resolve it as quickly as possible.<br></br>If the problem continues, please contact <Link>our customer support</Link>."
50
51
  }, {
@@ -53,19 +54,19 @@ var i = (i) => /* @__PURE__ */ new Map([
53
54
  variant: "inline",
54
55
  isExternal: !0,
55
56
  color: "primary",
56
- href: i.formatMessage({ id: "unity:component:common:customer-support:url" }),
57
+ href: a.formatMessage({ id: "unity:component:common:customer-support:url" }),
57
58
  children: n
58
59
  })
59
60
  }),
60
- mainDescriptionComponent: i.formatMessage({
61
+ mainDescriptionComponent: a.formatMessage({
61
62
  id: "unity:component:error-state:common:main-description-component",
62
63
  defaultMessage: "Please refresh the page or try signing in again. We’ve been notified of the issue and are working to resolve it as quickly as possible."
63
64
  }, { br: () => /* @__PURE__ */ t("br", {}) }),
64
- buttonLabel: i.formatMessage({
65
+ buttonLabel: a.formatMessage({
65
66
  id: "unity:component:error-state:button:label",
66
67
  defaultMessage: "Go to dashboard"
67
68
  }, { br: () => /* @__PURE__ */ t("br", {}) }),
68
- backButtonLabel: i.formatMessage({
69
+ backButtonLabel: a.formatMessage({
69
70
  id: "unity:component:error-state:unknown:back-link:label",
70
71
  defaultMessage: "Back to dashboard"
71
72
  }, { br: () => /* @__PURE__ */ t("br", {}) })
@@ -73,19 +74,45 @@ var i = (i) => /* @__PURE__ */ new Map([
73
74
  ["404", {
74
75
  illustration: r,
75
76
  icon: "WarningCircleOutlined",
76
- mainTitle: i.formatMessage({
77
+ mainTitle: a.formatMessage({
77
78
  id: "unity:component:error-state:404:main-title",
78
79
  defaultMessage: "Sorry, we couldn’t find what you’re looking for"
79
80
  }, { br: () => /* @__PURE__ */ t("br", {}) }),
80
- mainDescription: i.formatMessage({
81
+ mainDescription: a.formatMessage({
81
82
  id: "unity:component:error-state:404:main-description",
82
83
  defaultMessage: "This item may have been moved or deleted.<br></br>You can try searching for it manually or start again from your dashboard."
83
84
  }, { br: () => /* @__PURE__ */ t("br", {}) }),
84
- buttonLabel: i.formatMessage({
85
+ buttonLabel: a.formatMessage({
85
86
  id: "unity:component:error-state:button:label",
86
87
  defaultMessage: "Go to dashboard"
87
88
  }, { br: () => /* @__PURE__ */ t("br", {}) })
89
+ }],
90
+ ["no-permission", {
91
+ illustration: i,
92
+ icon: "LockOutlined",
93
+ mainTitle: a.formatMessage({
94
+ id: "unity:component:error-state:no-permission:main-title",
95
+ defaultMessage: "You don't have access to this page"
96
+ }, { br: () => /* @__PURE__ */ t("br", {}) }),
97
+ mainDescription: a.formatMessage({
98
+ id: "unity:component:error-state:no-permission:main-description",
99
+ defaultMessage: "Your current role on {entityName} doesn't include the permission to view this content."
100
+ }, {
101
+ br: () => /* @__PURE__ */ t("br", {}),
102
+ entityName: o?.noPermissionEntityName
103
+ }),
104
+ mainDescriptionComponent: a.formatMessage({
105
+ id: "unity:component:error-state:no-permission:main-description",
106
+ defaultMessage: "Your current role on {entityName} doesn't include the permission to view this content."
107
+ }, {
108
+ br: () => /* @__PURE__ */ t("br", {}),
109
+ entityName: o?.noPermissionEntityName
110
+ }),
111
+ buttonLabel: a.formatMessage({
112
+ id: "unity:component:error-state:no-permission:button:label",
113
+ defaultMessage: "Go back"
114
+ }, { br: () => /* @__PURE__ */ t("br", {}) })
88
115
  }]
89
116
  ]);
90
117
  //#endregion
91
- export { i as initConfig };
118
+ export { a as initConfig };
package/i18n/en-GB.json CHANGED
@@ -60,6 +60,9 @@
60
60
  "unity:component:error-state:common:illustration:alt": "Something went wrong",
61
61
  "unity:component:error-state:common:main-description-component": "Please refresh the page or try logging in again. We’ve been notified of the issue and are working to resolve it as quickly as possible.",
62
62
  "unity:component:error-state:collapsible:title": "Show details",
63
+ "unity:component:error-state:no-permission:button:label": "Go back",
64
+ "unity:component:error-state:no-permission:main-description": "Your current role on {entityName} doesn't include the permission to view this content.",
65
+ "unity:component:error-state:no-permission:main-title": "You don't have access to this page",
63
66
  "unity:component:error-state:unknown:back-link:label": "Go back to previous page",
64
67
  "unity:component:error-state:unknown:main-description": "Please refresh the page or try logging in again.<br></br>We’ve been notified of the issue and are working to resolve it as quickly as possible.<br></br><br></br>If the problem continues, please contact <Link>our customer support</Link>.",
65
68
  "unity:component:filter:action:apply": "Apply",
package/i18n/es-ES.json CHANGED
@@ -60,6 +60,9 @@
60
60
  "unity:component:error-state:common:icon:alt": "Se produjo un error",
61
61
  "unity:component:error-state:common:main-description-component": "Actualiza la página o intenta iniciar sesión de nuevo. Hemos sido notificados del problema y estamos trabajando para solucionarlo lo antes posible.",
62
62
  "unity:component:error-state:collapsible:title": "Mostrar detalles",
63
+ "unity:component:error-state:no-permission:button:label": "Volver",
64
+ "unity:component:error-state:no-permission:main-description": "Tu rol actual en {entityName} no incluye el permiso para ver este contenido.",
65
+ "unity:component:error-state:no-permission:main-title": "No tienes acceso a esta página",
63
66
  "unity:component:error-state:unknown:back-link:label": "Volver a la página anterior",
64
67
  "unity:component:error-state:unknown:main-description": "Actualiza la página o intenta iniciar sesión de nuevo.<br></br>Hemos sido notificados del problema y estamos trabajando para solucionarlo lo antes posible.<br></br><br></br>Si el problema persiste, puedes contactar con <Link>nuestro Servicio de atención al cliente</Link>.",
65
68
  "unity:component:filter:action:apply": "Aplicar",
package/i18n/fr-FR.json CHANGED
@@ -61,6 +61,9 @@
61
61
  "unity:component:error-state:common:icon:alt": "Une erreur est survenue",
62
62
  "unity:component:error-state:common:main-description-component": "Actualisez la page ou essayez de vous reconnecter. Nous avons été avertis du problème et faisons le nécessaire pour le résoudre au plus vite.",
63
63
  "unity:component:error-state:collapsible:title": "Afficher le détail",
64
+ "unity:component:error-state:no-permission:button:label": "Revenir en arrière",
65
+ "unity:component:error-state:no-permission:main-description": "Votre rôle actuel sur {entityName} ne vous permet pas d'accéder à ce contenu.",
66
+ "unity:component:error-state:no-permission:main-title": "Vous n'avez pas accès à cette page",
64
67
  "unity:component:error-state:unknown:back-link:label": "Revenir à la page précédente",
65
68
  "unity:component:error-state:unknown:main-description": "Actualisez la page ou essayez de vous reconnecter.<br></br>Nous avons été avertis du problème et faisons le nécessaire pour le résoudre au plus vite.<br></br><br></br>Si le problème persiste, veuillez contacter <Link>notre Service client</Link>.",
66
69
  "unity:component:filter:action:apply": "Appliquer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.67.3",
3
+ "version": "2.67.5",
4
4
  "module": "./dist/esm/index.js",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -96,7 +96,7 @@
96
96
  "tailwind-variants": "3.3.1",
97
97
  "usehooks-ts": "3.1.1",
98
98
  "zod": "4.4.3",
99
- "@payfit/unity-illustrations": "2.67.3"
99
+ "@payfit/unity-illustrations": "2.67.5"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "@hookform/devtools": "^4",
@@ -108,8 +108,8 @@
108
108
  "react-hook-form": "^7",
109
109
  "react-router-dom": "^5",
110
110
  "zod": "^3 || ^4",
111
- "@payfit/unity-icons": "2.67.3",
112
- "@payfit/unity-themes": "2.67.3"
111
+ "@payfit/unity-icons": "2.67.5",
112
+ "@payfit/unity-themes": "2.67.5"
113
113
  },
114
114
  "devDependencies": {
115
115
  "@figma/code-connect": "1.5.3",
@@ -157,13 +157,13 @@
157
157
  "vitest": "4.1.10",
158
158
  "@payfit/hr-app-eslint": "0.0.0-use.local",
159
159
  "@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
160
- "@payfit/storybook-addon-console-errors": "0.0.0-use.local",
161
160
  "@payfit/storybook-addon-datadog-rum": "0.0.0-use.local",
162
- "@payfit/storybook-config": "0.0.0-use.local",
163
- "@payfit/unity-icons": "2.67.3",
164
- "@payfit/unity-illustrations": "2.67.3",
165
- "@payfit/unity-themes": "2.67.3",
166
- "@payfit/vite-configs": "0.0.0-use.local"
161
+ "@payfit/storybook-addon-console-errors": "0.0.0-use.local",
162
+ "@payfit/unity-icons": "2.67.5",
163
+ "@payfit/unity-themes": "2.67.5",
164
+ "@payfit/vite-configs": "0.0.0-use.local",
165
+ "@payfit/unity-illustrations": "2.67.5",
166
+ "@payfit/storybook-config": "0.0.0-use.local"
167
167
  },
168
168
  "peerDependenciesMeta": {
169
169
  "@hookform/devtools": {