@payfit/unity-components 2.24.2 → 2.25.0

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.
@@ -57,5 +57,5 @@ export interface ActionableProps extends AriaButtonProps {
57
57
  * @see Source code in {@link https://github.com/PayFit/hr-apps/tree/master/libs/shared/unity/components/src/components/actionable GitHub}
58
58
  * @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/primitives-actionable--docs unity-components.payfit.io}
59
59
  */
60
- declare const Actionable: import('react').ForwardRefExoticComponent<ActionableProps & import('react').RefAttributes<HTMLButtonElement | HTMLDivElement | HTMLSpanElement>>;
60
+ declare const Actionable: import('react').ForwardRefExoticComponent<ActionableProps & import('react').RefAttributes<HTMLSpanElement | HTMLButtonElement | HTMLDivElement>>;
61
61
  export { Actionable };
@@ -1,7 +1,7 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import * as c from "react";
3
3
  import { IconSprite as p } from "@payfit/unity-icons";
4
- import * as a from "@payfit/unity-themes/tokens/spacings.json";
4
+ import * as a from "@payfit/unity-themes/tokens/common/spacings.json";
5
5
  import { useAvatarContext as u } from "../Avatar.context.js";
6
6
  const r = (e) => parseInt(e.replace("px", "").trim(), 10), m = {
7
7
  xl: r(a.spacing[500].$value),
@@ -23,7 +23,7 @@ export type RawBreadcrumbLinkProps = RawLinkProps;
23
23
  * - Uses the 'secondary' color variant for breadcrumb links
24
24
  * @see {@link RawBreadcrumbLinkProps} for all available props
25
25
  */
26
- declare const RawBreadcrumbLink: import('react').ForwardRefExoticComponent<Omit<import('react-aria-components').LinkProps, "className" | "style"> & {
26
+ declare const RawBreadcrumbLink: import('react').ForwardRefExoticComponent<Omit<import('react-aria-components').LinkProps, "style" | "className"> & {
27
27
  href: HTMLAnchorElement["href"];
28
28
  id?: import('react').HTMLAttributes<HTMLAnchorElement>["id"];
29
29
  size?: "default" | "small" | "inherit" | "large" | undefined;
@@ -2,8 +2,8 @@ import { ReactNode } from 'react';
2
2
  export declare const carouselHeader: import('tailwind-variants').TVReturnType<{
3
3
  [key: string]: {
4
4
  [key: string]: import('tailwind-merge').ClassNameValue | {
5
- slot?: import('tailwind-merge').ClassNameValue;
6
5
  nav?: import('tailwind-merge').ClassNameValue;
6
+ slot?: import('tailwind-merge').ClassNameValue;
7
7
  title?: import('tailwind-merge').ClassNameValue;
8
8
  root?: import('tailwind-merge').ClassNameValue;
9
9
  };
@@ -11,8 +11,8 @@ export declare const carouselHeader: import('tailwind-variants').TVReturnType<{
11
11
  } | {
12
12
  [x: string]: {
13
13
  [x: string]: import('tailwind-merge').ClassNameValue | {
14
- slot?: import('tailwind-merge').ClassNameValue;
15
14
  nav?: import('tailwind-merge').ClassNameValue;
15
+ slot?: import('tailwind-merge').ClassNameValue;
16
16
  title?: import('tailwind-merge').ClassNameValue;
17
17
  root?: import('tailwind-merge').ClassNameValue;
18
18
  };
@@ -25,8 +25,8 @@ export declare const carouselHeader: import('tailwind-variants').TVReturnType<{
25
25
  }, undefined, {
26
26
  [key: string]: {
27
27
  [key: string]: import('tailwind-merge').ClassNameValue | {
28
- slot?: import('tailwind-merge').ClassNameValue;
29
28
  nav?: import('tailwind-merge').ClassNameValue;
29
+ slot?: import('tailwind-merge').ClassNameValue;
30
30
  title?: import('tailwind-merge').ClassNameValue;
31
31
  root?: import('tailwind-merge').ClassNameValue;
32
32
  };
@@ -18,5 +18,5 @@ interface FormContextualLinkActionProps {
18
18
  * @deprecated React Hook Form components are deprecated. Use the TanStack Form version instead.
19
19
  * @see Storybook docs: https://unity-components.payfit.io/?path=/docs/forms-introduction-to-unity-forms--docs
20
20
  */
21
- declare const RawFormContextualLink: import('react').ForwardRefExoticComponent<PropsWithChildren<FormContextualLinkProps | FormContextualLinkActionProps> & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
21
+ declare const RawFormContextualLink: import('react').ForwardRefExoticComponent<PropsWithChildren<FormContextualLinkProps | FormContextualLinkActionProps> & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
22
22
  export { RawFormContextualLink };
@@ -22,5 +22,5 @@ export type TanstackRawFormContextualLinkProps = PropsWithChildren<FormContextua
22
22
  * - an anchor (`RawLink`) when `href` is provided; or
23
23
  * - a button (from `react-aria-components`) when `onPress` is provided.
24
24
  */
25
- declare const TanstackRawFormContextualLink: import('react').ForwardRefExoticComponent<TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
25
+ declare const TanstackRawFormContextualLink: import('react').ForwardRefExoticComponent<TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
26
26
  export { TanstackRawFormContextualLink };
@@ -212,7 +212,7 @@ export type RawLinkProps = Omit<AriaLinkProps, 'style' | 'className'> & {
212
212
  /**
213
213
  * Links allow users to navigate to different pages or sections.
214
214
  */
215
- declare const RawLink: import('react').ForwardRefExoticComponent<Omit<AriaLinkProps, "className" | "style"> & {
215
+ declare const RawLink: import('react').ForwardRefExoticComponent<Omit<AriaLinkProps, "style" | "className"> & {
216
216
  /**
217
217
  * The URL the link navigates to.
218
218
  */
@@ -41,6 +41,6 @@ import { NavigationCardProps } from './NavigationCard.types.js';
41
41
  * @see Design docs in {@link https://www.payfit.design/ Payfit.design}
42
42
  * @see Developer docs in {@link https://unity-components.payfit.io/?path=/docs/navigation-navigationcard--docs unity-components.payfit.io}
43
43
  */
44
- declare const RawNavigationCard: import('react').ForwardRefExoticComponent<NavigationCardProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
44
+ declare const RawNavigationCard: import('react').ForwardRefExoticComponent<NavigationCardProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
45
45
  export { RawNavigationCard };
46
46
  export type { NavigationCardProps } from './NavigationCard.types.js';
@@ -1,4 +1,4 @@
1
- import * as t from "@payfit/unity-themes/tokens/spacings.json";
1
+ import * as t from "@payfit/unity-themes/tokens/common/spacings.json";
2
2
  import { ListLayout as s } from "react-aria-components";
3
3
  const a = (o) => parseInt(o.replace("px", "").trim(), 10), i = a(t.spacing[500].$value), n = a(t.spacing[400].$value), p = {
4
4
  layout: s,
@@ -1,4 +1,4 @@
1
- import s from "@payfit/unity-themes/tokens/sizes.json";
1
+ import s from "@payfit/unity-themes/tokens/common/sizes.json";
2
2
  import { useResizeObserver as c } from "usehooks-ts";
3
3
  const i = () => {
4
4
  const n = s.container, o = {
@@ -3,7 +3,7 @@ export declare const useTanstackUnityForm: <TFormData, TOnMount extends import('
3
3
  readonly FieldFeedbackText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormFeedbackText.js').TanstackFormFeedbackTextProps & import('react').RefAttributes<HTMLSpanElement>>;
4
4
  readonly FieldHelperText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormHelperText.js').TanstackFormHelperTextProps & import('react').RefAttributes<HTMLSpanElement>>;
5
5
  readonly FieldLabel: import('react').ForwardRefExoticComponent<import('../index.js').LabelProps & import('react').RefAttributes<HTMLLabelElement>>;
6
- readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
6
+ readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
7
7
  readonly Field: typeof import('../components/form-field/TanstackFormField.js').TanstackFormField;
8
8
  readonly CheckboxGroupInput: import('react').ForwardRefExoticComponent<import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
9
9
  readonly CheckboxInput: import('react').ForwardRefExoticComponent<import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
@@ -81,7 +81,7 @@ export declare const withForm: <TFormData, TOnMount extends import('@tanstack/fo
81
81
  readonly FieldFeedbackText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormFeedbackText.js').TanstackFormFeedbackTextProps & import('react').RefAttributes<HTMLSpanElement>>;
82
82
  readonly FieldHelperText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormHelperText.js').TanstackFormHelperTextProps & import('react').RefAttributes<HTMLSpanElement>>;
83
83
  readonly FieldLabel: import('react').ForwardRefExoticComponent<import('../index.js').LabelProps & import('react').RefAttributes<HTMLLabelElement>>;
84
- readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
84
+ readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
85
85
  readonly Field: typeof import('../components/form-field/TanstackFormField.js').TanstackFormField;
86
86
  readonly CheckboxGroupInput: import('react').ForwardRefExoticComponent<import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
87
87
  readonly CheckboxInput: import('react').ForwardRefExoticComponent<import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
@@ -159,7 +159,7 @@ export declare const withForm: <TFormData, TOnMount extends import('@tanstack/fo
159
159
  readonly FieldFeedbackText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormFeedbackText.js').TanstackFormFeedbackTextProps & import('react').RefAttributes<HTMLSpanElement>>;
160
160
  readonly FieldHelperText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormHelperText.js').TanstackFormHelperTextProps & import('react').RefAttributes<HTMLSpanElement>>;
161
161
  readonly FieldLabel: import('react').ForwardRefExoticComponent<import('../index.js').LabelProps & import('react').RefAttributes<HTMLLabelElement>>;
162
- readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
162
+ readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
163
163
  readonly Field: typeof import('../components/form-field/TanstackFormField.js').TanstackFormField;
164
164
  readonly CheckboxGroupInput: import('react').ForwardRefExoticComponent<import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
165
165
  readonly CheckboxInput: import('react').ForwardRefExoticComponent<import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
@@ -238,7 +238,7 @@ export declare const withFieldGroup: <TFieldGroupData, TSubmitMeta, TRenderProps
238
238
  readonly FieldFeedbackText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormFeedbackText.js').TanstackFormFeedbackTextProps & import('react').RefAttributes<HTMLSpanElement>>;
239
239
  readonly FieldHelperText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormHelperText.js').TanstackFormHelperTextProps & import('react').RefAttributes<HTMLSpanElement>>;
240
240
  readonly FieldLabel: import('react').ForwardRefExoticComponent<import('../index.js').LabelProps & import('react').RefAttributes<HTMLLabelElement>>;
241
- readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
241
+ readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
242
242
  readonly Field: typeof import('../components/form-field/TanstackFormField.js').TanstackFormField;
243
243
  readonly CheckboxGroupInput: import('react').ForwardRefExoticComponent<import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
244
244
  readonly CheckboxInput: import('react').ForwardRefExoticComponent<import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
@@ -316,7 +316,7 @@ export declare const withFieldGroup: <TFieldGroupData, TSubmitMeta, TRenderProps
316
316
  readonly FieldFeedbackText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormFeedbackText.js').TanstackFormFeedbackTextProps & import('react').RefAttributes<HTMLSpanElement>>;
317
317
  readonly FieldHelperText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormHelperText.js').TanstackFormHelperTextProps & import('react').RefAttributes<HTMLSpanElement>>;
318
318
  readonly FieldLabel: import('react').ForwardRefExoticComponent<import('../index.js').LabelProps & import('react').RefAttributes<HTMLLabelElement>>;
319
- readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
319
+ readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
320
320
  readonly Field: typeof import('../components/form-field/TanstackFormField.js').TanstackFormField;
321
321
  readonly CheckboxGroupInput: import('react').ForwardRefExoticComponent<import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
322
322
  readonly CheckboxInput: import('react').ForwardRefExoticComponent<import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
@@ -393,7 +393,7 @@ export declare const withFieldGroup: <TFieldGroupData, TSubmitMeta, TRenderProps
393
393
  readonly FieldFeedbackText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormFeedbackText.js').TanstackFormFeedbackTextProps & import('react').RefAttributes<HTMLSpanElement>>;
394
394
  readonly FieldHelperText: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackFormHelperText.js').TanstackFormHelperTextProps & import('react').RefAttributes<HTMLSpanElement>>;
395
395
  readonly FieldLabel: import('react').ForwardRefExoticComponent<import('../index.js').LabelProps & import('react').RefAttributes<HTMLLabelElement>>;
396
- readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
396
+ readonly FieldRawContextualLink: import('react').ForwardRefExoticComponent<import('../components/form-field/parts/TanstackRawFormContextualLink.js').TanstackRawFormContextualLinkProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
397
397
  readonly Field: typeof import('../components/form-field/TanstackFormField.js').TanstackFormField;
398
398
  readonly CheckboxGroupInput: import('react').ForwardRefExoticComponent<import('../components/checkbox-group/TanstackCheckboxGroup.js').TanstackCheckboxGroupProps & import('react').RefAttributes<HTMLDivElement>>;
399
399
  readonly CheckboxInput: import('react').ForwardRefExoticComponent<import('../components/checkbox/TanstackCheckbox.js').TanstackCheckboxProps & import('react').RefAttributes<HTMLLabelElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-components",
3
- "version": "2.24.2",
3
+ "version": "2.25.0",
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.24.2",
45
+ "@payfit/unity-illustrations": "2.25.0",
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.24.2",
78
- "@payfit/unity-themes": "2.24.2",
77
+ "@payfit/unity-icons": "2.25.0",
78
+ "@payfit/unity-themes": "2.25.0",
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.24.2",
99
- "@payfit/unity-illustrations": "2.24.2",
100
- "@payfit/unity-themes": "2.24.2",
98
+ "@payfit/unity-icons": "2.25.0",
99
+ "@payfit/unity-illustrations": "2.25.0",
100
+ "@payfit/unity-themes": "2.25.0",
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",