@phillips/seldon 1.173.0 → 1.174.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.
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.d.ts +34 -0
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +45 -0
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.stories.d.ts +10 -0
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.test.d.ts +1 -0
- package/dist/components/DescriptiveRadioButton/index.d.ts +1 -0
- package/dist/components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.d.ts +42 -0
- package/dist/components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.js +42 -0
- package/dist/components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.stories.d.ts +21 -0
- package/dist/components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.test.d.ts +1 -0
- package/dist/components/DescriptiveRadioButtonGroup/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +48 -44
- package/dist/scss/componentStyles.scss +2 -0
- package/dist/scss/components/DescriptiveRadioButton/_descriptiveRadioButton.scss +52 -0
- package/dist/scss/components/DescriptiveRadioButtonGroup/_descriptiveRadioButtonGroup.scss +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export interface DescriptiveRadioButtonProps extends Omit<ComponentProps<'input'>, 'type'> {
|
|
3
|
+
/**
|
|
4
|
+
* Label for the radio button
|
|
5
|
+
*/
|
|
6
|
+
labelText: string;
|
|
7
|
+
/**
|
|
8
|
+
* Optional description text for the radio button
|
|
9
|
+
*/
|
|
10
|
+
description?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Custom class name for the radio button input
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Custom class name for the container element
|
|
17
|
+
*/
|
|
18
|
+
containerClassName?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier for the radio button
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* ## Overview
|
|
26
|
+
*
|
|
27
|
+
* Renders a styled radio button with a label and an optional description.
|
|
28
|
+
*
|
|
29
|
+
* [Figma Link](https://www.figma.com/design/kSxOhnqIhilZ9hIJd3bPgP/RW-Registration?node-id=2774-111402&m=dev)
|
|
30
|
+
*
|
|
31
|
+
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-descriptiveradiobutton--overview)
|
|
32
|
+
*/
|
|
33
|
+
declare const DescriptiveRadioButton: import('react').ForwardRefExoticComponent<Omit<DescriptiveRadioButtonProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
34
|
+
export default DescriptiveRadioButton;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsxs as o, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import { getCommonProps as N } from "../../utils/index.js";
|
|
4
|
+
import r from "../../node_modules/classnames/index.js";
|
|
5
|
+
import c from "../Text/Text.js";
|
|
6
|
+
import { TextVariants as n } from "../Text/types.js";
|
|
7
|
+
const $ = u(
|
|
8
|
+
({ labelText: m, description: a, className: d, containerClassName: l, id: _, ...t }, p) => {
|
|
9
|
+
const { className: e, ...f } = N(
|
|
10
|
+
t,
|
|
11
|
+
"descriptive-radio-button"
|
|
12
|
+
), s = _, h = a ? `${s}-desc` : void 0;
|
|
13
|
+
return /* @__PURE__ */ o(
|
|
14
|
+
"label",
|
|
15
|
+
{
|
|
16
|
+
htmlFor: s,
|
|
17
|
+
className: r(`${e}__container`, l, {
|
|
18
|
+
[`${e}__container--selected`]: t.checked
|
|
19
|
+
}),
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ i(
|
|
22
|
+
"input",
|
|
23
|
+
{
|
|
24
|
+
...f,
|
|
25
|
+
...t,
|
|
26
|
+
ref: p,
|
|
27
|
+
id: s,
|
|
28
|
+
type: "radio",
|
|
29
|
+
className: r(`${e}__input`, d),
|
|
30
|
+
checked: t.checked
|
|
31
|
+
}
|
|
32
|
+
),
|
|
33
|
+
/* @__PURE__ */ o("span", { className: `${e}__label-content`, children: [
|
|
34
|
+
/* @__PURE__ */ i(c, { variant: n.string1, className: `${e}__label-text`, children: m }),
|
|
35
|
+
a && /* @__PURE__ */ i(c, { variant: n.string2, id: h, className: `${e}__description`, children: a })
|
|
36
|
+
] })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
$.displayName = "DescriptiveRadioButton";
|
|
43
|
+
export {
|
|
44
|
+
$ as default
|
|
45
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const meta: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import('react').ForwardRefExoticComponent<Omit<import('./DescriptiveRadioButton').DescriptiveRadioButtonProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
4
|
+
};
|
|
5
|
+
export default meta;
|
|
6
|
+
export declare const Playground: {
|
|
7
|
+
(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
args: {};
|
|
9
|
+
argTypes: {};
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DescriptiveRadioButton, type DescriptiveRadioButtonProps } from './DescriptiveRadioButton';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { DescriptiveRadioButtonProps } from '../DescriptiveRadioButton/DescriptiveRadioButton';
|
|
3
|
+
export interface DescriptiveRadioButtonGroupProps extends ComponentProps<'fieldset'> {
|
|
4
|
+
/**
|
|
5
|
+
* Legend for the fieldset
|
|
6
|
+
*/
|
|
7
|
+
legendText: string;
|
|
8
|
+
/**
|
|
9
|
+
* Hide the legend visually
|
|
10
|
+
*/
|
|
11
|
+
hideLegend?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Array of options to render as DescriptiveRadioButton components
|
|
14
|
+
* Each option should include label, value, and optionally description and id
|
|
15
|
+
*/
|
|
16
|
+
options: Array<Omit<DescriptiveRadioButtonProps, 'ref'>>;
|
|
17
|
+
/**
|
|
18
|
+
* Name attribute for the radio buttons
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* Currently selected value
|
|
23
|
+
*/
|
|
24
|
+
value: string;
|
|
25
|
+
/**
|
|
26
|
+
* Callback function when the selected value changes
|
|
27
|
+
*/
|
|
28
|
+
onValueChange: (value: string) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Custom class name for the fieldset
|
|
31
|
+
*/
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* ## Overview
|
|
36
|
+
*
|
|
37
|
+
* [Figma Link](https://www.figma.com/design/kSxOhnqIhilZ9hIJd3bPgP/RW-Registration?node-id=2774-111402&m=dev)
|
|
38
|
+
*
|
|
39
|
+
* Renders a group of DescriptiveRadioButton components wrapped in a semantic fieldset.
|
|
40
|
+
*/
|
|
41
|
+
declare const DescriptiveRadioButtonGroup: import('react').ForwardRefExoticComponent<Omit<DescriptiveRadioButtonGroupProps, "ref"> & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
42
|
+
export default DescriptiveRadioButtonGroup;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import { getCommonProps as v } from "../../utils/index.js";
|
|
4
|
+
import b from "../../node_modules/classnames/index.js";
|
|
5
|
+
import h from "../DescriptiveRadioButton/DescriptiveRadioButton.js";
|
|
6
|
+
const N = g(
|
|
7
|
+
({ legendText: t, hideLegend: d = !0, options: e, name: o, value: l, onValueChange: m, className: u, ...c }, n) => {
|
|
8
|
+
const { className: a, ...p } = v(c, "descriptive-radio-button-group");
|
|
9
|
+
if (!e || e.length === 0)
|
|
10
|
+
return null;
|
|
11
|
+
const s = `${o}_radio-button-group`;
|
|
12
|
+
return /* @__PURE__ */ f(
|
|
13
|
+
"fieldset",
|
|
14
|
+
{
|
|
15
|
+
...p,
|
|
16
|
+
className: b(a, u),
|
|
17
|
+
ref: n,
|
|
18
|
+
name: o,
|
|
19
|
+
role: "radiogroup",
|
|
20
|
+
"aria-labelledby": s,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ i("legend", { id: s, className: d ? `${a}__sr-only` : void 0, children: t }),
|
|
23
|
+
e.map((r) => /* @__PURE__ */ i(
|
|
24
|
+
h,
|
|
25
|
+
{
|
|
26
|
+
...r,
|
|
27
|
+
name: o,
|
|
28
|
+
checked: l === r.value,
|
|
29
|
+
onChange: () => m(String(r.value ?? "")),
|
|
30
|
+
id: r.id
|
|
31
|
+
},
|
|
32
|
+
r.id
|
|
33
|
+
))
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
N.displayName = "DescriptiveRadioButtonGroup";
|
|
40
|
+
export {
|
|
41
|
+
N as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DescriptiveRadioButtonGroupProps } from './DescriptiveRadioButtonGroup';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<Omit<DescriptiveRadioButtonGroupProps, "ref"> & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
5
|
+
};
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Playground: {
|
|
8
|
+
(props: DescriptiveRadioButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
args: {
|
|
10
|
+
legendText: string;
|
|
11
|
+
name: string;
|
|
12
|
+
value: string;
|
|
13
|
+
options: {
|
|
14
|
+
value: string;
|
|
15
|
+
labelText: string;
|
|
16
|
+
description: string;
|
|
17
|
+
id: string;
|
|
18
|
+
}[];
|
|
19
|
+
};
|
|
20
|
+
argTypes: {};
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DescriptiveRadioButtonGroup, type DescriptiveRadioButtonGroupProps, } from './DescriptiveRadioButtonGroup';
|
package/dist/index.d.ts
CHANGED
|
@@ -89,3 +89,5 @@ export * from './patterns/BidSnapshot';
|
|
|
89
89
|
export * from './patterns/FilterMenu';
|
|
90
90
|
export * from './patterns/ObjectTile';
|
|
91
91
|
export * from './utils/hooks';
|
|
92
|
+
export * from './components/DescriptiveRadioButton';
|
|
93
|
+
export * from './components/DescriptiveRadioButtonGroup';
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PaddingTokens as a, SpacingTokens as f, defaultYear as s, emailValidation as l, encodeURLSearchParams as d, findChildrenExcludingTypes as m, findChildrenOfType as p, focusElementById as u, generatePaddingClassName as i, getCommonProps as x, noOp as n, px as g, useNormalizedInputProps as c } from "./utils/index.js";
|
|
2
2
|
import { default as C } from "./pages/Page.js";
|
|
3
|
-
import { SSRMediaQuery as
|
|
3
|
+
import { SSRMediaQuery as B, ssrMediaQueryStyle as P } from "./providers/SeldonProvider/utils.js";
|
|
4
4
|
import { usePendingState as I } from "./utils/hooks.js";
|
|
5
|
-
import { AuctionStatus as V, LotStatus as b, SupportedLanguages as
|
|
6
|
-
import { default as
|
|
7
|
-
import { ButtonVariants as
|
|
8
|
-
import { default as
|
|
5
|
+
import { AuctionStatus as V, LotStatus as b, SupportedLanguages as v } from "./types/commonTypes.js";
|
|
6
|
+
import { default as h } from "./components/Button/Button.js";
|
|
7
|
+
import { ButtonVariants as w } from "./components/Button/types.js";
|
|
8
|
+
import { default as F } from "./components/IconButton/IconButton.js";
|
|
9
9
|
import { default as M } from "./components/Accordion/Accordion.js";
|
|
10
10
|
import { default as E } from "./components/Accordion/AccordionItem.js";
|
|
11
|
-
import { AccordionItemVariant as
|
|
11
|
+
import { AccordionItemVariant as R, AccordionVariants as U } from "./components/Accordion/types.js";
|
|
12
12
|
import { default as Q } from "./components/Breadcrumb/Breadcrumb.js";
|
|
13
13
|
import "react/jsx-runtime";
|
|
14
14
|
import "./node_modules/classnames/index.js";
|
|
@@ -27,17 +27,17 @@ import { default as ie } from "./components/Detail/Detail.js";
|
|
|
27
27
|
import { default as ne } from "./components/Drawer/Drawer.js";
|
|
28
28
|
import { default as ce } from "./components/Dropdown/Dropdown.js";
|
|
29
29
|
import { default as Ce } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
30
|
-
import { default as
|
|
30
|
+
import { default as Be } from "./components/Grid/Grid.js";
|
|
31
31
|
import { default as Ae } from "./components/GridItem/GridItem.js";
|
|
32
32
|
import { GridItemAlign as Le } from "./components/GridItem/types.js";
|
|
33
33
|
import { default as be } from "./components/Input/Input.js";
|
|
34
|
-
import { default as
|
|
35
|
-
import { LinkVariants as
|
|
36
|
-
import { default as
|
|
34
|
+
import { default as ye } from "./components/Link/Link.js";
|
|
35
|
+
import { LinkVariants as ke } from "./components/Link/types.js";
|
|
36
|
+
import { default as De } from "./components/LinkBlock/LinkBlock.js";
|
|
37
37
|
import { default as He } from "./components/LinkList/LinkList.js";
|
|
38
38
|
import { default as Ne } from "./components/Modal/Modal.js";
|
|
39
39
|
import { default as Ge } from "./components/Navigation/Navigation.js";
|
|
40
|
-
import { default as
|
|
40
|
+
import { default as Ue } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
41
41
|
import { default as Qe } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
|
|
42
42
|
import { default as ze } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
43
43
|
import { default as Ye } from "./components/Pagination/Pagination.js";
|
|
@@ -53,17 +53,17 @@ import { default as pt } from "./components/Tabs/TabsContent.js";
|
|
|
53
53
|
import { Tag as it, default as xt } from "./components/Tags/Tags.js";
|
|
54
54
|
import { TextAlignments as gt, TextVariants as ct } from "./components/Text/types.js";
|
|
55
55
|
import { default as Ct } from "./components/Text/Text.js";
|
|
56
|
-
import { TextSymbolVariants as
|
|
56
|
+
import { TextSymbolVariants as Bt } from "./components/TextSymbol/types.js";
|
|
57
57
|
import { default as At } from "./components/TextSymbol/TextSymbol.js";
|
|
58
58
|
import { default as Lt } from "./components/Video/Video.js";
|
|
59
59
|
import { default as bt } from "./patterns/DetailList/DetailList.js";
|
|
60
|
-
import { DetailListAlignment as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
60
|
+
import { DetailListAlignment as yt } from "./patterns/DetailList/types.js";
|
|
61
|
+
import { default as kt } from "./patterns/FavoritesCollectionTile/FavoritesCollectionTile.js";
|
|
62
|
+
import { default as Dt } from "./patterns/HeroBanner/HeroBanner.js";
|
|
63
63
|
import { default as Ht } from "./patterns/LanguageSelector/LanguageSelector.js";
|
|
64
64
|
import { default as Nt } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
|
|
65
65
|
import { default as Gt } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
|
|
66
|
-
import { default as
|
|
66
|
+
import { default as Ut } from "./patterns/Social/Social.js";
|
|
67
67
|
import { default as Qt } from "./patterns/Subscribe/Subscribe.js";
|
|
68
68
|
import { SubscriptionState as zt } from "./patterns/Subscribe/types.js";
|
|
69
69
|
import { AuthState as Yt } from "./patterns/UserManagement/types.js";
|
|
@@ -79,17 +79,17 @@ import { default as uo } from "./components/PageContentWrapper/PageContentWrappe
|
|
|
79
79
|
import { default as xo } from "./components/PhoneNumberPicker/PhoneNumberPicker.js";
|
|
80
80
|
import { default as go } from "./patterns/FiltersInline/FiltersInline.js";
|
|
81
81
|
import { FilterButtonIconType as So, FilterButtonType as Co } from "./patterns/FiltersInline/types.js";
|
|
82
|
-
import { default as
|
|
82
|
+
import { default as Bo } from "./patterns/SaleCard/SaleCard.js";
|
|
83
83
|
import { SaleCardActions as Ao } from "./patterns/SaleCard/SaleCardActions.js";
|
|
84
84
|
import { SaleCardVariants as Lo } from "./patterns/SaleCard/types.js";
|
|
85
85
|
import { default as bo } from "./patterns/ViewingDetails/ViewingDetails.js";
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
86
|
+
import { default as yo } from "./site-furniture/Footer/Footer.js";
|
|
87
|
+
import { default as ko } from "./site-furniture/Header/Header.js";
|
|
88
|
+
import { default as Do } from "./components/AddToCalendar/AddToCalendar.js";
|
|
89
89
|
import { default as Ho } from "./components/Article/Article.js";
|
|
90
90
|
import { default as No } from "./components/Countdown/Countdown.js";
|
|
91
91
|
import { CountdownVariants as Go } from "./components/Countdown/types.js";
|
|
92
|
-
import { default as
|
|
92
|
+
import { default as Uo } from "./components/Divider/Divider.js";
|
|
93
93
|
import { default as Qo } from "./components/FavoritingTileButton/FavoritingTileButton.js";
|
|
94
94
|
import { default as zo } from "./components/Filter/Filter.js";
|
|
95
95
|
import { default as Yo } from "./components/Filter/FilterInput.js";
|
|
@@ -105,13 +105,15 @@ import { default as pr } from "./patterns/BidSnapshot/BidMessage.js";
|
|
|
105
105
|
import { BidMessageVariants as ir, BidStatusEnum as xr } from "./patterns/BidSnapshot/types.js";
|
|
106
106
|
import { default as gr } from "./patterns/FilterMenu/FilterMenu.js";
|
|
107
107
|
import { default as Sr } from "./patterns/ObjectTile/ObjectTile.js";
|
|
108
|
+
import { default as Tr } from "./components/DescriptiveRadioButton/DescriptiveRadioButton.js";
|
|
109
|
+
import { default as Pr } from "./components/DescriptiveRadioButtonGroup/DescriptiveRadioButtonGroup.js";
|
|
108
110
|
export {
|
|
109
111
|
M as Accordion,
|
|
110
112
|
E as AccordionItem,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
R as AccordionItemVariant,
|
|
114
|
+
U as AccordionVariants,
|
|
113
115
|
sr as AccountPageHeader,
|
|
114
|
-
|
|
116
|
+
Do as AddToCalendar,
|
|
115
117
|
Ho as Article,
|
|
116
118
|
V as AuctionStatus,
|
|
117
119
|
Yt as AuthState,
|
|
@@ -120,8 +122,8 @@ export {
|
|
|
120
122
|
dr as BidSnapshot,
|
|
121
123
|
xr as BidStatusEnum,
|
|
122
124
|
Q as Breadcrumb,
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
h as Button,
|
|
126
|
+
w as ButtonVariants,
|
|
125
127
|
Y as Carousel,
|
|
126
128
|
q as CarouselArrows,
|
|
127
129
|
K as CarouselContent,
|
|
@@ -136,15 +138,17 @@ export {
|
|
|
136
138
|
pe as ContentPeekHeightUnits,
|
|
137
139
|
No as Countdown,
|
|
138
140
|
Go as CountdownVariants,
|
|
141
|
+
Tr as DescriptiveRadioButton,
|
|
142
|
+
Pr as DescriptiveRadioButtonGroup,
|
|
139
143
|
ie as Detail,
|
|
140
144
|
bt as DetailList,
|
|
141
|
-
|
|
142
|
-
|
|
145
|
+
yt as DetailListAlignment,
|
|
146
|
+
Uo as Divider,
|
|
143
147
|
ne as Drawer,
|
|
144
148
|
ce as Dropdown,
|
|
145
149
|
Ce as ErrorBoundary,
|
|
146
150
|
so as ExitGateCard,
|
|
147
|
-
|
|
151
|
+
kt as FavoritesCollectionTile,
|
|
148
152
|
Qo as FavoritingTileButton,
|
|
149
153
|
zo as Filter,
|
|
150
154
|
So as FilterButtonIconType,
|
|
@@ -153,25 +157,25 @@ export {
|
|
|
153
157
|
Yo as FilterInput,
|
|
154
158
|
gr as FilterMenu,
|
|
155
159
|
go as FiltersInline,
|
|
156
|
-
|
|
157
|
-
|
|
160
|
+
yo as Footer,
|
|
161
|
+
Be as Grid,
|
|
158
162
|
Ae as GridItem,
|
|
159
163
|
Le as GridItemAlign,
|
|
160
|
-
|
|
161
|
-
|
|
164
|
+
ko as Header,
|
|
165
|
+
Dt as HeroBanner,
|
|
162
166
|
z as Icon,
|
|
163
|
-
|
|
167
|
+
F as IconButton,
|
|
164
168
|
be as Input,
|
|
165
169
|
Ht as LanguageSelector,
|
|
166
|
-
|
|
167
|
-
|
|
170
|
+
ye as Link,
|
|
171
|
+
De as LinkBlock,
|
|
168
172
|
He as LinkList,
|
|
169
|
-
|
|
173
|
+
ke as LinkVariants,
|
|
170
174
|
mo as Loader,
|
|
171
175
|
b as LotStatus,
|
|
172
176
|
Ne as Modal,
|
|
173
177
|
Ge as Navigation,
|
|
174
|
-
|
|
178
|
+
Ue as NavigationItem,
|
|
175
179
|
Qe as NavigationItemTrigger,
|
|
176
180
|
ze as NavigationList,
|
|
177
181
|
Sr as ObjectTile,
|
|
@@ -183,8 +187,8 @@ export {
|
|
|
183
187
|
Ko as Pictogram,
|
|
184
188
|
qe as PinchZoom,
|
|
185
189
|
Ke as Row,
|
|
186
|
-
|
|
187
|
-
|
|
190
|
+
B as SSRMediaQuery,
|
|
191
|
+
Bo as SaleCard,
|
|
188
192
|
Ao as SaleCardActions,
|
|
189
193
|
Lo as SaleCardVariants,
|
|
190
194
|
Nt as SaleHeaderBanner,
|
|
@@ -194,13 +198,13 @@ export {
|
|
|
194
198
|
eo as SeldonProvider,
|
|
195
199
|
ot as Select,
|
|
196
200
|
at as SelectVariants,
|
|
197
|
-
|
|
201
|
+
Ut as Social,
|
|
198
202
|
f as SpacingTokens,
|
|
199
203
|
st as SplitPanel,
|
|
200
204
|
Kt as StatefulViewingsList,
|
|
201
205
|
Qt as Subscribe,
|
|
202
206
|
zt as SubscriptionState,
|
|
203
|
-
|
|
207
|
+
v as SupportedLanguages,
|
|
204
208
|
dt as TabsContainer,
|
|
205
209
|
pt as TabsContent,
|
|
206
210
|
it as Tag,
|
|
@@ -208,7 +212,7 @@ export {
|
|
|
208
212
|
Ct as Text,
|
|
209
213
|
gt as TextAlignments,
|
|
210
214
|
_o as TextArea,
|
|
211
|
-
|
|
215
|
+
Bt as TextSymbolVariants,
|
|
212
216
|
At as TextSymbols,
|
|
213
217
|
ct as TextVariants,
|
|
214
218
|
er as Toast,
|
|
@@ -227,7 +231,7 @@ export {
|
|
|
227
231
|
x as getCommonProps,
|
|
228
232
|
n as noOp,
|
|
229
233
|
g as px,
|
|
230
|
-
|
|
234
|
+
P as ssrMediaQueryStyle,
|
|
231
235
|
c as useNormalizedInputProps,
|
|
232
236
|
I as usePendingState,
|
|
233
237
|
ar as useToast
|
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
@use 'components/Toast/toast';
|
|
54
54
|
@use 'components/ExitGateCard/exitGateCard';
|
|
55
55
|
@use 'components/ComposedModal/composedModal';
|
|
56
|
+
@use 'components/DescriptiveRadioButton/descriptiveRadioButton';
|
|
57
|
+
@use 'components/DescriptiveRadioButtonGroup/descriptiveRadioButtonGroup';
|
|
56
58
|
|
|
57
59
|
// Patterns
|
|
58
60
|
@use 'patterns/HeroBanner/heroBanner';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@use '../../allPartials' as *;
|
|
2
|
+
|
|
3
|
+
.#{$px}-descriptive-radio-button {
|
|
4
|
+
&__container {
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
background: $white;
|
|
7
|
+
border: 1px solid $light-gray;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
display: flex;
|
|
11
|
+
padding: $spacing-sm;
|
|
12
|
+
|
|
13
|
+
&--selected,
|
|
14
|
+
&:has(input:focus-visible) {
|
|
15
|
+
border: 1.5px solid $pure-black;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__input {
|
|
20
|
+
accent-color: $light-gray;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
height: 1rem;
|
|
23
|
+
margin-right: $spacing-sm;
|
|
24
|
+
margin-top: 2px;
|
|
25
|
+
width: 1rem;
|
|
26
|
+
|
|
27
|
+
@media (min-width: $breakpoint-md) {
|
|
28
|
+
margin-top: $spacing-micro;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__input:checked {
|
|
33
|
+
accent-color: $pure-black;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__label-content {
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex: 1;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
gap: $spacing-sm;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__label-text {
|
|
46
|
+
font-variation-settings: 'wght' 600;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&__description {
|
|
50
|
+
display: block;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '../../allPartials' as *;
|
|
2
|
+
|
|
3
|
+
.#{$px}-descriptive-radio-button-group {
|
|
4
|
+
// Hide the fieldset border and padding
|
|
5
|
+
border: none;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
gap: $spacing-sm;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
|
|
12
|
+
@media (min-width: $breakpoint-md) {
|
|
13
|
+
gap: $spacing-md;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Visually hide the legend
|
|
17
|
+
&__sr-only {
|
|
18
|
+
border: 0 !important;
|
|
19
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
20
|
+
height: 1px !important;
|
|
21
|
+
margin: -1px !important;
|
|
22
|
+
overflow: hidden !important;
|
|
23
|
+
padding: 0 !important;
|
|
24
|
+
position: absolute !important;
|
|
25
|
+
width: 1px !important;
|
|
26
|
+
}
|
|
27
|
+
}
|