@payfit/unity-components 2.31.1 → 2.31.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.
- package/dist/esm/components/radio-button-group/parts/RadioButton.d.ts +2 -0
- package/dist/esm/components/radio-button-group/parts/RadioButton.js +33 -47
- package/dist/esm/components/radio-button-group/parts/RadioIndicator.d.ts +11 -0
- package/dist/esm/components/radio-button-group/parts/RadioIndicator.js +131 -0
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.d.ts +1 -1
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.js +38 -28
- package/dist/esm/components/selectable-card/selectableCard.variant.js +1 -1
- package/dist/esm/index.js +4 -2
- package/package.json +10 -10
- package/dist/esm/components/radio-button-group/parts/radio-input-selected.svg.js +0 -5
- package/dist/esm/components/radio-button-group/parts/radio-input-unselected.svg.js +0 -5
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/RadioIndicator.d.ts +0 -8
- package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/RadioIndicator.js +0 -68
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from '@payfit/unity-themes';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { RadioProps } from 'react-aria-components/RadioGroup';
|
|
4
|
+
export { RadioIndicator } from './RadioIndicator.js';
|
|
5
|
+
export type { RadioIndicatorProps, RadioState } from './RadioIndicator.js';
|
|
4
6
|
export declare const radioButton: import('tailwind-variants').TVReturnType<{
|
|
5
7
|
[key: string]: {
|
|
6
8
|
[key: string]: import('tailwind-merge').ClassNameValue | {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { uyTv as R } from "@payfit/unity-themes";
|
|
4
|
-
import { RadioGroupStateContext as
|
|
5
|
-
import { Flex as
|
|
6
|
-
import { Text as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
const j = R({
|
|
1
|
+
import { jsxs as a, jsx as t, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as x, useContext as g } from "react";
|
|
3
|
+
import { uyTv as h, useUnityTheme as R } from "@payfit/unity-themes";
|
|
4
|
+
import { RadioGroupStateContext as w, Radio as N } from "react-aria-components/RadioGroup";
|
|
5
|
+
import { Flex as v } from "../../flex/Flex.js";
|
|
6
|
+
import { Text as B } from "../../text/Text.js";
|
|
7
|
+
import { RadioButtonHelper as S } from "./RadioButtonHelper.js";
|
|
8
|
+
import { RadioIndicator as j } from "./RadioIndicator.js";
|
|
9
|
+
const C = h({
|
|
11
10
|
slots: {
|
|
12
11
|
container: [
|
|
13
12
|
"uy:group uy:inline-flex uy:flex-col uy:gap-50",
|
|
@@ -30,52 +29,39 @@ const j = R({
|
|
|
30
29
|
"uy:group-data-[readonly=true]:text-content-neutral uy:group-data-[readonly]:cursor-text"
|
|
31
30
|
]
|
|
32
31
|
}
|
|
33
|
-
}),
|
|
34
|
-
({ children:
|
|
35
|
-
const { base:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"--radio-fill-color": "var(--uy-color-surface-primary-active)",
|
|
40
|
-
"--radio-border-color": "var(--uy-color-border-form-active)"
|
|
41
|
-
}, [r?.isReadOnly]), f = l(() => r?.isReadOnly || r?.isDisabled || e ? {
|
|
42
|
-
"--radio-border-color": "var(--uy-color-border-form-disabled)"
|
|
43
|
-
} : {
|
|
44
|
-
"--radio-border-color": "var(--uy-color-border-form-enabled)"
|
|
45
|
-
}, [e, r?.isDisabled, r?.isReadOnly]);
|
|
46
|
-
return /* @__PURE__ */ u(w, { direction: "col", gap: "50", className: b(), children: [
|
|
47
|
-
/* @__PURE__ */ o(
|
|
48
|
-
h,
|
|
32
|
+
}), F = x(
|
|
33
|
+
({ children: u, value: d, isDisabled: o, helperText: r, ...n }, i) => {
|
|
34
|
+
const { base: l, label: s, container: y, radio: m } = C(), e = g(w), { theme: c } = R(), p = e?.isReadOnly ? "readonly" : e?.isDisabled || o ? "disabled" : e?.isInvalid ? "invalid" : "enabled";
|
|
35
|
+
return /* @__PURE__ */ a(v, { direction: "col", gap: "50", className: y(), children: [
|
|
36
|
+
/* @__PURE__ */ t(
|
|
37
|
+
N,
|
|
49
38
|
{
|
|
50
|
-
...
|
|
51
|
-
value:
|
|
52
|
-
isDisabled:
|
|
53
|
-
className: (
|
|
54
|
-
ref:
|
|
55
|
-
children: ({ isSelected:
|
|
56
|
-
|
|
57
|
-
|
|
39
|
+
...n,
|
|
40
|
+
value: d,
|
|
41
|
+
isDisabled: o,
|
|
42
|
+
className: () => l(),
|
|
43
|
+
ref: i,
|
|
44
|
+
children: ({ isSelected: b }) => /* @__PURE__ */ a(f, { children: [
|
|
45
|
+
/* @__PURE__ */ t(
|
|
46
|
+
j,
|
|
58
47
|
{
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
O,
|
|
64
|
-
{
|
|
65
|
-
style: f,
|
|
66
|
-
className: a()
|
|
48
|
+
isSelected: b,
|
|
49
|
+
state: p,
|
|
50
|
+
theme: c,
|
|
51
|
+
className: m()
|
|
67
52
|
}
|
|
68
53
|
),
|
|
69
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ t(B, { variant: "body", className: s(), children: u })
|
|
70
55
|
] })
|
|
71
56
|
}
|
|
72
57
|
),
|
|
73
|
-
|
|
58
|
+
r ? /* @__PURE__ */ t(S, { children: r }) : null
|
|
74
59
|
] });
|
|
75
60
|
}
|
|
76
61
|
);
|
|
77
|
-
|
|
62
|
+
F.displayName = "RadioButton";
|
|
78
63
|
export {
|
|
79
|
-
|
|
80
|
-
j as
|
|
64
|
+
F as RadioButton,
|
|
65
|
+
j as RadioIndicator,
|
|
66
|
+
C as radioButton
|
|
81
67
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type EnabledState = 'enabled' | 'disabled' | 'readonly';
|
|
2
|
+
type ValidationState = 'valid' | 'invalid';
|
|
3
|
+
export type RadioState = EnabledState | ValidationState;
|
|
4
|
+
export interface RadioIndicatorProps {
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
state: RadioState;
|
|
7
|
+
theme: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const RadioIndicator: ({ isSelected, state, theme, className, }: RadioIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
const c = {
|
|
3
|
+
unselected: {
|
|
4
|
+
enabled: { "--radio-border-color": "var(--uy-color-border-form-enabled)" },
|
|
5
|
+
valid: { "--radio-border-color": "var(--uy-color-border-form-enabled)" },
|
|
6
|
+
invalid: { "--radio-border-color": "var(--uy-color-border-form-error)" },
|
|
7
|
+
disabled: {
|
|
8
|
+
"--radio-border-color": "var(--uy-color-border-form-disabled)"
|
|
9
|
+
},
|
|
10
|
+
readonly: {
|
|
11
|
+
"--radio-border-color": "var(--uy-color-border-form-disabled)"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
selected: {
|
|
15
|
+
enabled: {
|
|
16
|
+
"--radio-bg-color": "var(--uy-color-surface-form-active)",
|
|
17
|
+
"--radio-border-color": "var(--uy-color-surface-form-active)",
|
|
18
|
+
"--radio-dot-size": "3px",
|
|
19
|
+
"--radio-dot-color": "var(--uy-color-content-inverted)"
|
|
20
|
+
},
|
|
21
|
+
valid: {
|
|
22
|
+
"--radio-bg-color": "var(--uy-color-surface-form-active)",
|
|
23
|
+
"--radio-border-color": "var(--uy-color-surface-form-active)",
|
|
24
|
+
"--radio-dot-size": "3px",
|
|
25
|
+
"--radio-dot-color": "var(--uy-color-content-inverted)"
|
|
26
|
+
},
|
|
27
|
+
invalid: {
|
|
28
|
+
"--radio-bg-color": "var(--uy-color-surface-danger)",
|
|
29
|
+
"--radio-border-color": "transparent",
|
|
30
|
+
"--radio-dot-size": "3px",
|
|
31
|
+
"--radio-dot-color": "var(--uy-color-content-inverted)"
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
"--radio-bg-color": "var(--uy-color-surface-form-disabled)",
|
|
35
|
+
"--radio-border-color": "var(--uy-color-border-form-disabled)",
|
|
36
|
+
"--radio-dot-size": "3px",
|
|
37
|
+
"--radio-dot-color": "var(--uy-color-content-form-disabled)"
|
|
38
|
+
},
|
|
39
|
+
readonly: {
|
|
40
|
+
"--radio-bg-color": "var(--uy-color-surface-form-read-only)",
|
|
41
|
+
"--radio-border-color": "transparent",
|
|
42
|
+
"--radio-dot-size": "3px",
|
|
43
|
+
"--radio-dot-color": "var(--uy-color-surface-neutral-disabled)"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}, i = {
|
|
47
|
+
unselected: {
|
|
48
|
+
enabled: { "--radio-border-color": "var(--uy-color-border-form-enabled)" },
|
|
49
|
+
valid: { "--radio-border-color": "var(--uy-color-border-form-enabled)" },
|
|
50
|
+
invalid: { "--radio-border-color": "var(--uy-color-border-form-error)" },
|
|
51
|
+
disabled: {
|
|
52
|
+
"--radio-border-color": "var(--uy-color-border-form-disabled)"
|
|
53
|
+
},
|
|
54
|
+
readonly: {
|
|
55
|
+
"--radio-border-color": "var(--uy-color-border-form-disabled)"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
selected: {
|
|
59
|
+
enabled: {
|
|
60
|
+
"--radio-border-color": "var(--uy-color-border-form-active)",
|
|
61
|
+
"--radio-dot-color": "var(--uy-color-surface-primary-active)"
|
|
62
|
+
},
|
|
63
|
+
valid: {
|
|
64
|
+
"--radio-border-color": "var(--uy-color-border-form-active)",
|
|
65
|
+
"--radio-dot-color": "var(--uy-color-surface-primary-active)"
|
|
66
|
+
},
|
|
67
|
+
invalid: {
|
|
68
|
+
"--radio-border-color": "var(--uy-color-border-form-error)",
|
|
69
|
+
"--radio-dot-color": "var(--uy-color-content-form-invalid)"
|
|
70
|
+
},
|
|
71
|
+
disabled: {
|
|
72
|
+
"--radio-border-color": "var(--uy-color-border-form-disabled)",
|
|
73
|
+
"--radio-dot-color": "var(--uy-color-border-form-disabled)"
|
|
74
|
+
},
|
|
75
|
+
readonly: {
|
|
76
|
+
"--radio-border-color": "var(--uy-color-border-form-disabled)",
|
|
77
|
+
"--radio-dot-color": "var(--uy-color-border-form-read-only)"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
function t({
|
|
82
|
+
isSelected: r,
|
|
83
|
+
state: o,
|
|
84
|
+
theme: d
|
|
85
|
+
}) {
|
|
86
|
+
return (d === "rebrand" ? c : i)[r ? "selected" : "unselected"][o];
|
|
87
|
+
}
|
|
88
|
+
const n = ({
|
|
89
|
+
isSelected: r,
|
|
90
|
+
state: o,
|
|
91
|
+
theme: d,
|
|
92
|
+
className: a
|
|
93
|
+
}) => /* @__PURE__ */ e(
|
|
94
|
+
"svg",
|
|
95
|
+
{
|
|
96
|
+
width: "20",
|
|
97
|
+
height: "20",
|
|
98
|
+
viewBox: "0 0 20 20",
|
|
99
|
+
fill: "none",
|
|
100
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
101
|
+
style: t({ isSelected: r, state: o, theme: d }),
|
|
102
|
+
className: a,
|
|
103
|
+
children: /* @__PURE__ */ l("g", { id: "Radio input", children: [
|
|
104
|
+
/* @__PURE__ */ e(
|
|
105
|
+
"circle",
|
|
106
|
+
{
|
|
107
|
+
id: "Background",
|
|
108
|
+
cx: "10",
|
|
109
|
+
cy: "10",
|
|
110
|
+
r: "7",
|
|
111
|
+
fill: "var(--radio-bg-color, white)",
|
|
112
|
+
stroke: "var(--radio-border-color, #0157B2)",
|
|
113
|
+
strokeWidth: "1.25"
|
|
114
|
+
}
|
|
115
|
+
),
|
|
116
|
+
/* @__PURE__ */ e(
|
|
117
|
+
"circle",
|
|
118
|
+
{
|
|
119
|
+
id: "Dot",
|
|
120
|
+
cx: "10",
|
|
121
|
+
cy: "10",
|
|
122
|
+
style: { r: "var(--radio-dot-size, 5px)" },
|
|
123
|
+
fill: "var(--radio-dot-color, transparent)"
|
|
124
|
+
}
|
|
125
|
+
)
|
|
126
|
+
] })
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
export {
|
|
130
|
+
n as RadioIndicator
|
|
131
|
+
};
|
|
@@ -44,7 +44,7 @@ export interface SelectableCardRadioProps extends Omit<RadioProps, 'children'>,
|
|
|
44
44
|
* @remarks [API Docs](https://unity-components.payfit.io/?path=/docs/inputs-selectablecardgroup-selectablecardradiogroup-selectablecardradio--docs) • [Design Docs](https://www.payfit.design/24f360409/p/05fc26-selectable-card)
|
|
45
45
|
*/
|
|
46
46
|
declare const SelectableCardRadio: {
|
|
47
|
-
({ title, description, illustration, ...props }: SelectableCardRadioProps): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
({ title, description, illustration, isDisabled, ...props }: SelectableCardRadioProps): import("react/jsx-runtime").JSX.Element;
|
|
48
48
|
displayName: string;
|
|
49
49
|
};
|
|
50
50
|
export { SelectableCardRadio };
|
package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/SelectableCardRadio.js
CHANGED
|
@@ -1,38 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useId as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { jsx as e, jsxs as n, Fragment as b } from "react/jsx-runtime";
|
|
2
|
+
import { useId as h, useContext as S } from "react";
|
|
3
|
+
import { useUnityTheme as u } from "@payfit/unity-themes";
|
|
4
|
+
import { RadioGroupStateContext as x, Radio as y } from "react-aria-components/RadioGroup";
|
|
5
|
+
import { RadioIndicator as C } from "../../../radio-button-group/parts/RadioIndicator.js";
|
|
6
|
+
import { Text as I } from "../../../text/Text.js";
|
|
7
|
+
import { Content as R } from "../../internals/Content.js";
|
|
8
|
+
import { Description as g } from "../../internals/Description.js";
|
|
9
|
+
import { Illustration as v } from "../../internals/Illustration.js";
|
|
10
|
+
import { SelectedIndicator as j } from "../../internals/SelectedIndicator.js";
|
|
11
|
+
import { selectableCard as N } from "../../selectableCard.variant.js";
|
|
12
|
+
const T = ({
|
|
13
|
+
title: l,
|
|
13
14
|
description: o,
|
|
14
|
-
illustration:
|
|
15
|
-
|
|
15
|
+
illustration: a,
|
|
16
|
+
isDisabled: i,
|
|
17
|
+
...m
|
|
16
18
|
}) => {
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
|
|
19
|
+
const s = h(), { theme: c } = u(), { base: p } = N(), t = S(x), f = t?.isReadOnly ? "readonly" : t?.isDisabled || i ? "disabled" : t?.isInvalid ? "invalid" : "enabled", d = `selectable-card-radio-${s}__title`;
|
|
20
|
+
return /* @__PURE__ */ e(
|
|
21
|
+
y,
|
|
20
22
|
{
|
|
21
|
-
className: ({ isFocusVisible:
|
|
22
|
-
"aria-labelledby":
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
className: ({ isFocusVisible: r }) => p({ isFocusVisible: r }),
|
|
24
|
+
"aria-labelledby": d,
|
|
25
|
+
isDisabled: i,
|
|
26
|
+
...m,
|
|
27
|
+
children: ({ isSelected: r }) => /* @__PURE__ */ n(b, { children: [
|
|
28
|
+
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(
|
|
29
|
+
C,
|
|
30
|
+
{
|
|
31
|
+
isSelected: r,
|
|
32
|
+
state: f,
|
|
33
|
+
theme: c
|
|
34
|
+
}
|
|
35
|
+
) }),
|
|
36
|
+
/* @__PURE__ */ n(R, { children: [
|
|
37
|
+
a && /* @__PURE__ */ e(v, { children: a }),
|
|
38
|
+
/* @__PURE__ */ e(I, { asElement: "h3", variant: "bodyLargeStrong", id: d, children: l }),
|
|
39
|
+
o && /* @__PURE__ */ e(g, { children: o })
|
|
30
40
|
] })
|
|
31
41
|
] })
|
|
32
42
|
}
|
|
33
43
|
);
|
|
34
44
|
};
|
|
35
|
-
|
|
45
|
+
T.displayName = "SelectableCardRadio";
|
|
36
46
|
export {
|
|
37
|
-
|
|
47
|
+
T as SelectableCardRadio
|
|
38
48
|
};
|
|
@@ -8,7 +8,7 @@ const u = e({
|
|
|
8
8
|
"uy:text-content-form-enabled",
|
|
9
9
|
"uy:bg-surface-form-enabled",
|
|
10
10
|
"uy:hover:border-border-form-hover",
|
|
11
|
-
"uy:data-[selected=true]:border-border-form-
|
|
11
|
+
"uy:data-[selected=true]:border-border-form-selected uy:data-[selected=true]:border-2 uy:data-[selected=true]:m-0",
|
|
12
12
|
"uy:data-[invalid]:border-border-form-error uy:data-[invalid]:bg-surface-form-error",
|
|
13
13
|
"uy:focus-visible:outline-2 uy:focus-visible:outline-solid uy:focus-visible:outline-offset-2 uy:focus-visible:outline-utility-focus-ring"
|
|
14
14
|
]
|
package/dist/esm/index.js
CHANGED
|
@@ -228,7 +228,8 @@ import { CarouselContent as nf, carouselContent as ff } from "./components/carou
|
|
|
228
228
|
import { CarouselSlide as uf, carouselSlide as df } from "./components/carousel/parts/CarouselSlide.js";
|
|
229
229
|
import { DialogTrigger as gf, DialogTrigger as sf } from "react-aria-components/Dialog";
|
|
230
230
|
import { FilterAdapters as bf } from "./components/filter-toolbar/utils/filter-adapters.js";
|
|
231
|
-
import {
|
|
231
|
+
import { RadioIndicator as Tf } from "./components/radio-button-group/parts/RadioIndicator.js";
|
|
232
|
+
import { useAsyncList as Pf } from "react-stately/useAsyncList";
|
|
232
233
|
export {
|
|
233
234
|
p as ActionBar,
|
|
234
235
|
m as ActionBarAction,
|
|
@@ -389,6 +390,7 @@ export {
|
|
|
389
390
|
Sa as RadioButtonGroup,
|
|
390
391
|
Pn as RadioButtonGroupField,
|
|
391
392
|
Pa as RadioButtonHelper,
|
|
393
|
+
Tf as RadioIndicator,
|
|
392
394
|
Ao as RawBreadcrumbLink,
|
|
393
395
|
mn as RawFormContextualLink,
|
|
394
396
|
ht as RawLink,
|
|
@@ -542,7 +544,7 @@ export {
|
|
|
542
544
|
Ex as toggleSwitch,
|
|
543
545
|
Lx as toggleSwitchGroup,
|
|
544
546
|
h as useAppMenuContext,
|
|
545
|
-
|
|
547
|
+
Pf as useAsyncList,
|
|
546
548
|
Wx as useBreakpointListener,
|
|
547
549
|
qx as useContainerQueryLevel,
|
|
548
550
|
Qn as useFieldA11yContext,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payfit/unity-components",
|
|
3
|
-
"version": "2.31.
|
|
3
|
+
"version": "2.31.3",
|
|
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.1",
|
|
45
|
-
"@payfit/unity-illustrations": "2.31.
|
|
45
|
+
"@payfit/unity-illustrations": "2.31.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.28.0",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"@hookform/devtools": "^4",
|
|
77
|
-
"@payfit/unity-icons": "2.31.
|
|
78
|
-
"@payfit/unity-themes": "2.31.
|
|
77
|
+
"@payfit/unity-icons": "2.31.3",
|
|
78
|
+
"@payfit/unity-themes": "2.31.3",
|
|
79
79
|
"@storybook/react-vite": "^10.3.2",
|
|
80
80
|
"@tanstack/react-query": "^5",
|
|
81
81
|
"@tanstack/react-router": "^1.131",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"@figma/code-connect": "1.4.3",
|
|
90
90
|
"@hookform/devtools": "4.4.0",
|
|
91
91
|
"@internationalized/date": "3.12.1",
|
|
92
|
-
"@payfit/unity-icons": "2.31.
|
|
93
|
-
"@payfit/unity-illustrations": "2.31.
|
|
94
|
-
"@payfit/unity-themes": "2.31.
|
|
92
|
+
"@payfit/unity-icons": "2.31.3",
|
|
93
|
+
"@payfit/unity-illustrations": "2.31.3",
|
|
94
|
+
"@payfit/unity-themes": "2.31.3",
|
|
95
95
|
"@storybook/addon-a11y": "10.3.5",
|
|
96
96
|
"@storybook/addon-designs": "11.1.3",
|
|
97
97
|
"@storybook/addon-docs": "10.3.5",
|
|
@@ -131,10 +131,10 @@
|
|
|
131
131
|
"vitest": "4.1.0",
|
|
132
132
|
"@payfit/code-pushup-tools": "0.0.0-use.local",
|
|
133
133
|
"@payfit/hr-app-eslint": "0.0.0-use.local",
|
|
134
|
-
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
135
134
|
"@payfit/storybook-addon-console-errors": "0.0.0-use.local",
|
|
136
|
-
"@payfit/
|
|
137
|
-
"@payfit/
|
|
135
|
+
"@payfit/vite-configs": "0.0.0-use.local",
|
|
136
|
+
"@payfit/hr-apps-tsconfigs": "0.0.0-use.local",
|
|
137
|
+
"@payfit/storybook-config": "0.0.0-use.local"
|
|
138
138
|
},
|
|
139
139
|
"peerDependenciesMeta": {
|
|
140
140
|
"@hookform/devtools": {
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
const o = (t) => /* @__PURE__ */ e.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { id: "Radio input" }, /* @__PURE__ */ e.createElement("path", { id: "Background", d: "M2.625 10C2.625 5.9269 5.9269 2.625 10 2.625C14.0731 2.625 17.375 5.9269 17.375 10C17.375 14.0731 14.0731 17.375 10 17.375C5.9269 17.375 2.625 14.0731 2.625 10Z", fill: "white", stroke: "var(--radio-border-color, #0157B2)", strokeWidth: 1.25 }), /* @__PURE__ */ e.createElement("path", { id: "Foreground", d: "M5 10C5 7.23858 7.23858 5 10 5C12.7614 5 15 7.23858 15 10C15 12.7614 12.7614 15 10 15C7.23858 15 5 12.7614 5 10Z", fill: "var(--radio-fill-color, #0157B2)" })));
|
|
3
|
-
export {
|
|
4
|
-
o as default
|
|
5
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
const o = (t) => /* @__PURE__ */ e.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { id: "Radio input" }, /* @__PURE__ */ e.createElement("path", { id: "Background", d: "M2.625 10C2.625 5.9269 5.9269 2.625 10 2.625C14.0731 2.625 17.375 5.9269 17.375 10C17.375 14.0731 14.0731 17.375 10 17.375C5.9269 17.375 2.625 14.0731 2.625 10Z", fill: "white", stroke: "var(--radio-border-color, #CDCED6)", strokeWidth: 1.25 })));
|
|
3
|
-
export {
|
|
4
|
-
o as default
|
|
5
|
-
};
|
package/dist/esm/components/selectable-card/selectable-card-radio-group/parts/RadioIndicator.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as e } from "react/jsx-runtime";
|
|
2
|
-
import { uyTv as i } from "@payfit/unity-themes";
|
|
3
|
-
const t = i({
|
|
4
|
-
base: "",
|
|
5
|
-
variants: {
|
|
6
|
-
isSelected: {
|
|
7
|
-
false: [
|
|
8
|
-
"uy:stroke-border-form-enabled",
|
|
9
|
-
"uy:hover:stroke-border-form-hover",
|
|
10
|
-
"uy:focus-visible:stroke-border-form-focus"
|
|
11
|
-
],
|
|
12
|
-
true: ["uy:text-surface-form-active"]
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}), d = ({ isSelected: o }) => o ? /* @__PURE__ */ r(
|
|
16
|
-
"svg",
|
|
17
|
-
{
|
|
18
|
-
width: "20",
|
|
19
|
-
height: "20",
|
|
20
|
-
viewBox: "0 0 20 20",
|
|
21
|
-
fill: "none",
|
|
22
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
-
children: /* @__PURE__ */ e("g", { id: "Radio input", className: t({ isSelected: o }), children: [
|
|
24
|
-
/* @__PURE__ */ r(
|
|
25
|
-
"path",
|
|
26
|
-
{
|
|
27
|
-
id: "Background",
|
|
28
|
-
d: "M2.625 10C2.625 5.9269 5.9269 2.625 10 2.625C14.0731 2.625 17.375 5.9269 17.375 10C17.375 14.0731 14.0731 17.375 10 17.375C5.9269 17.375 2.625 14.0731 2.625 10Z",
|
|
29
|
-
fill: "white",
|
|
30
|
-
stroke: "currentColor",
|
|
31
|
-
strokeWidth: "1.25"
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
/* @__PURE__ */ r(
|
|
35
|
-
"path",
|
|
36
|
-
{
|
|
37
|
-
id: "Foreground",
|
|
38
|
-
d: "M5 10C5 7.23858 7.23858 5 10 5C12.7614 5 15 7.23858 15 10C15 12.7614 12.7614 15 10 15C7.23858 15 5 12.7614 5 10Z",
|
|
39
|
-
fill: "currentColor"
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
] })
|
|
43
|
-
}
|
|
44
|
-
) : /* @__PURE__ */ r(
|
|
45
|
-
"svg",
|
|
46
|
-
{
|
|
47
|
-
width: "20",
|
|
48
|
-
height: "20",
|
|
49
|
-
viewBox: "0 0 20 20",
|
|
50
|
-
fill: "none",
|
|
51
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
-
children: /* @__PURE__ */ r("g", { id: "Radio input", children: /* @__PURE__ */ r(
|
|
53
|
-
"path",
|
|
54
|
-
{
|
|
55
|
-
className: t({ isSelected: o }),
|
|
56
|
-
id: "Background",
|
|
57
|
-
d: "M2.625 10C2.625 5.9269 5.9269 2.625 10 2.625C14.0731 2.625 17.375 5.9269 17.375 10C17.375 14.0731 14.0731 17.375 10 17.375C5.9269 17.375 2.625 14.0731 2.625 10Z",
|
|
58
|
-
fill: "white",
|
|
59
|
-
stroke: "currentColor",
|
|
60
|
-
strokeWidth: "1.25"
|
|
61
|
-
}
|
|
62
|
-
) })
|
|
63
|
-
}
|
|
64
|
-
);
|
|
65
|
-
d.displayName = "RadioIndicator";
|
|
66
|
-
export {
|
|
67
|
-
d as default
|
|
68
|
-
};
|