@phillips/seldon 1.214.0 → 1.216.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/Accordion/Accordion.stories.d.ts +1 -1
- package/dist/components/Accordion/AccordionItem.js +101 -105
- package/dist/components/Accordion/types.d.ts +9 -3
- package/dist/components/Accordion/types.js +1 -1
- package/dist/components/Accordion/utils.d.ts +3 -3
- package/dist/components/Accordion/utils.js +7 -7
- package/dist/components/AddToCalendar/AddToCalendar.js +24 -25
- package/dist/components/Article/Article.js +17 -17
- package/dist/components/Breadcrumb/BreadcrumbItem.js +13 -13
- package/dist/components/Button/Button.d.ts +4 -0
- package/dist/components/Button/Button.js +71 -53
- package/dist/components/Button/Button.stories.d.ts +7 -1
- package/dist/components/ComboBox/ComboBox.js +33 -29
- package/dist/components/ComposedModal/ComposedModal.js +33 -33
- package/dist/components/ComposedModal/ComposedModal.stories.d.ts +1 -0
- package/dist/components/Countdown/Countdown.js +90 -51
- package/dist/components/Countdown/Duration.d.ts +3 -1
- package/dist/components/Countdown/Duration.js +17 -9
- package/dist/components/Countdown/types.d.ts +2 -1
- package/dist/components/Countdown/types.js +1 -1
- package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +21 -21
- package/dist/components/Detail/Detail.d.ts +2 -0
- package/dist/components/Detail/Detail.js +27 -16
- package/dist/components/Detail/Detail.stories.d.ts +35 -2
- package/dist/components/Detail/index.d.ts +1 -0
- package/dist/components/Detail/types.d.ts +5 -0
- package/dist/components/Detail/types.js +4 -0
- package/dist/components/Drawer/DrawerHeader.js +22 -20
- package/dist/components/ExitGateCard/ExitGateCard.js +29 -29
- package/dist/components/FavoritingTileButton/FavoritingTileButton.js +30 -31
- package/dist/components/Filter/Filter.js +36 -34
- package/dist/components/Filter/FilterHeader.d.ts +4 -0
- package/dist/components/Filter/FilterHeader.js +30 -22
- package/dist/components/Input/Input.js +43 -39
- package/dist/components/Input/Input.stories.d.ts +16 -0
- package/dist/components/Link/Link.js +11 -11
- package/dist/components/Link/Link.stories.d.ts +17 -1
- package/dist/components/Link/types.d.ts +9 -4
- package/dist/components/Link/types.js +3 -3
- package/dist/components/LinkBlock/LinkBlock.js +19 -11
- package/dist/components/Modal/Modal.d.ts +0 -4
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Navigation/NavigationItem/NavigationItem.js +31 -23
- package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +37 -39
- package/dist/components/Navigation/NavigationList/NavigationList.js +5 -5
- package/dist/components/Pagination/Pagination.js +22 -21
- package/dist/components/ProgressIndicator/ProgressIndicator.js +22 -22
- package/dist/components/Search/Search.js +55 -53
- package/dist/components/Search/SearchResults/SearchResults.js +16 -16
- package/dist/components/Select/Select.d.ts +4 -0
- package/dist/components/Select/Select.js +51 -45
- package/dist/components/Select/Select.stories.d.ts +1 -0
- package/dist/components/Tabs/TabsContainer.js +1 -1
- package/dist/components/Tags/Tags.js +32 -30
- package/dist/components/Text/Text.js +17 -9
- package/dist/components/Text/types.d.ts +42 -1
- package/dist/components/Text/types.js +3 -3
- package/dist/components/Text/utils.js +40 -7
- package/dist/components/TextArea/TextArea.js +38 -34
- package/dist/components/Toast/Toast.js +4 -4
- package/dist/index.js +192 -190
- package/dist/patterns/AccountPageHeader/AccountPageHeader.js +45 -28
- package/dist/patterns/BidSnapshot/BidMessage.d.ts +6 -1
- package/dist/patterns/BidSnapshot/BidMessage.js +14 -13
- package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +11 -1
- package/dist/patterns/BidSnapshot/BidSnapshot.js +76 -64
- package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +114 -0
- package/dist/patterns/CountryPicker/CountryPickerCountryList.js +5 -5
- package/dist/patterns/CountryPicker/CountryPickerModal.js +8 -8
- package/dist/patterns/CountryPicker/CountryPickerOption.js +22 -20
- package/dist/patterns/CountryPicker/CountryPickerTrigger.js +39 -38
- package/dist/patterns/DetailList/DetailList.d.ts +7 -2
- package/dist/patterns/DetailList/DetailList.js +25 -24
- package/dist/patterns/DetailList/DetailList.stories.d.ts +1 -0
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +52 -52
- package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.stories.d.ts +1 -0
- package/dist/patterns/FiltersInline/FilterButton.js +41 -25
- package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +50 -52
- package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +31 -31
- package/dist/patterns/HeroBanner/HeroBanner.js +21 -21
- package/dist/patterns/LanguageSelector/LanguageSelector.js +26 -28
- package/dist/patterns/ObjectTile/ObjectTile.js +66 -73
- package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +36 -0
- package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +7 -6
- package/dist/patterns/SaleCard/SaleCard.js +33 -41
- package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
- package/dist/patterns/SaleCard/SaleCardActions.js +9 -8
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +49 -49
- package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +19 -12
- package/dist/patterns/Social/Social.js +22 -22
- package/dist/patterns/Subscribe/Subscribe.js +57 -55
- package/dist/patterns/Subscribe/Subscribe.stories.d.ts +0 -1
- package/dist/patterns/TextBanner/TextBanner.js +12 -12
- package/dist/patterns/UserManagement/UserManagement.js +13 -13
- package/dist/patterns/ViewingDetails/ViewingDetails.d.ts +4 -0
- package/dist/patterns/ViewingDetails/ViewingDetails.js +36 -34
- package/dist/patterns/ViewingDetails/ViewingDetails.stories.d.ts +2 -0
- package/dist/patterns/ViewingDetails/ViewingDetailsMock.d.ts +2 -0
- package/dist/scss/_reset.scss +4 -0
- package/dist/scss/_type.scss +172 -65
- package/dist/scss/_vars.scss +92 -197
- package/dist/scss/_vars.scss.js +94 -199
- package/dist/scss/componentStyles.scss +181 -0
- package/dist/scss/components/Accordion/_accordion.scss +14 -28
- package/dist/scss/components/AddToCalendar/_addToCalendar.scss +0 -4
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +8 -1
- package/dist/scss/components/Button/_button.scss +33 -7
- package/dist/scss/components/ComboBox/_combobox.scss +7 -5
- package/dist/scss/components/ComposedModal/_composedModal.scss +0 -4
- package/dist/scss/components/Countdown/_countdown.scss +8 -9
- package/dist/scss/components/Countdown/_duration.scss +0 -2
- package/dist/scss/components/DatePicker/_datePicker.scss +11 -10
- package/dist/scss/components/Detail/_detail.scss +15 -6
- package/dist/scss/components/Divider/_divider.scss +3 -3
- package/dist/scss/components/Drawer/_drawerHeader.scss +0 -7
- package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
- package/dist/scss/components/FavoritingTileButton/_favoritingTileButton.scss +5 -0
- package/dist/scss/components/Filter/_filter.scss +13 -10
- package/dist/scss/components/Icon/_icon.stories.scss +1 -1
- package/dist/scss/components/IconButton/_iconButton.scss +3 -5
- package/dist/scss/components/Input/_input.scss +22 -14
- package/dist/scss/components/Link/_link.scss +13 -8
- package/dist/scss/components/LinkBlock/_linkBlock.scss +5 -1
- package/dist/scss/components/LinkList/_linkList.scss +6 -0
- package/dist/scss/components/Modal/_modal.scss +2 -2
- package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +30 -14
- package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +2 -2
- package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +5 -4
- package/dist/scss/components/NotificationBanner/_notificationBanner.scss +4 -10
- package/dist/scss/components/Pagination/_pagination.scss +17 -1
- package/dist/scss/components/ProgressIndicator/_progressIndicator.scss +5 -0
- package/dist/scss/components/Search/SearchResults/_searchResults.scss +5 -0
- package/dist/scss/components/Search/_search.scss +3 -11
- package/dist/scss/components/Search/_searchButton.scss +0 -1
- package/dist/scss/components/Select/_select.scss +8 -3
- package/dist/scss/components/Tabs/_tabs.scss +1 -6
- package/dist/scss/components/Tags/_tags.scss +0 -2
- package/dist/scss/components/TextArea/_textArea.scss +2 -4
- package/dist/scss/components/TextSymbol/_textSymbol.scss +1 -4
- package/dist/scss/patterns/AccountPageHeader/_accountPageHeader.scss +4 -0
- package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +12 -11
- package/dist/scss/patterns/CountryPicker/_countryPickerModal.scss +4 -0
- package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +3 -0
- package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +4 -7
- package/dist/scss/patterns/DetailList/_detailList.scss +8 -2
- package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +6 -8
- package/dist/scss/patterns/FilterMenu/_filterMenu.scss +2 -1
- package/dist/scss/patterns/FiltersInline/_filterButton.scss +12 -2
- package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +1 -9
- package/dist/scss/patterns/FiltersInline/_filtersInline.scss +5 -0
- package/dist/scss/patterns/HeroBanner/_heroBanner.scss +5 -6
- package/dist/scss/patterns/LanguageSelector/_languageSelector.scss +4 -0
- package/dist/scss/patterns/ObjectTile/_objectTile.scss +13 -12
- package/dist/scss/patterns/PhoneNumberInput/_phoneNumberInput.scss +9 -2
- package/dist/scss/patterns/SaleCard/_saleCard.scss +7 -23
- package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +16 -3
- package/dist/scss/patterns/Social/_social.scss +5 -1
- package/dist/scss/patterns/Subscribe/_subscribe.scss +0 -12
- package/dist/scss/patterns/TextBanner/_textBanner.scss +9 -3
- package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +15 -3
- package/dist/scss/site-furniture/Footer/_footer.scss +24 -4
- package/dist/scss/site-furniture/Header/_header.scss +12 -4
- package/dist/site-furniture/Footer/Footer.js +4 -4
- package/dist/site-furniture/Header/Header.js +76 -57
- package/package.json +4 -3
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { px as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsxs as p, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { px as d } from "../../utils/index.js";
|
|
3
|
+
import { TextVariants as l } from "../Text/types.js";
|
|
4
|
+
import i from "../Text/Text.js";
|
|
5
|
+
import { formatDuration as c } from "../../node_modules/date-fns/formatDuration.js";
|
|
6
|
+
const b = ({
|
|
7
|
+
duration: m,
|
|
8
|
+
unit: s,
|
|
9
|
+
locale: e,
|
|
10
|
+
formatDurationStr: n = (r) => r,
|
|
11
|
+
textVariant: t = l.labelMedium
|
|
12
|
+
}) => {
|
|
13
|
+
const r = `${d}-duration`, o = c(m, { format: [s], zero: !0, locale: e }).split(" ");
|
|
14
|
+
return /* @__PURE__ */ p("div", { className: r, children: [
|
|
15
|
+
/* @__PURE__ */ a(i, { variant: t, children: o[0].padStart(2, "0") }),
|
|
16
|
+
/* @__PURE__ */ a(i, { variant: t, children: n(o[1]) })
|
|
9
17
|
] });
|
|
10
18
|
};
|
|
11
19
|
export {
|
|
12
|
-
|
|
20
|
+
b as Duration
|
|
13
21
|
};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
1
|
+
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h } from "react";
|
|
3
|
+
import { getCommonProps as u } from "../../utils/index.js";
|
|
4
4
|
import r from "../../node_modules/classnames/index.js";
|
|
5
|
-
import
|
|
6
|
-
import { TextVariants as
|
|
7
|
-
const $ =
|
|
8
|
-
({ labelText: m, description:
|
|
9
|
-
const { className: e, ...
|
|
10
|
-
|
|
5
|
+
import i from "../Text/Text.js";
|
|
6
|
+
import { TextVariants as N } from "../Text/types.js";
|
|
7
|
+
const $ = h(
|
|
8
|
+
({ labelText: m, description: t, className: n, containerClassName: l, id: d, ...a }, _) => {
|
|
9
|
+
const { className: e, ...p } = u(
|
|
10
|
+
a,
|
|
11
11
|
"descriptive-radio-button"
|
|
12
|
-
), s =
|
|
13
|
-
return /* @__PURE__ */
|
|
12
|
+
), s = d, f = t ? `${s}-desc` : void 0;
|
|
13
|
+
return /* @__PURE__ */ c(
|
|
14
14
|
"label",
|
|
15
15
|
{
|
|
16
16
|
htmlFor: s,
|
|
17
17
|
className: r(`${e}__container`, l, {
|
|
18
|
-
[`${e}__container--selected`]:
|
|
18
|
+
[`${e}__container--selected`]: a.checked
|
|
19
19
|
}),
|
|
20
20
|
children: [
|
|
21
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ o(
|
|
22
22
|
"input",
|
|
23
23
|
{
|
|
24
|
-
...
|
|
25
|
-
...
|
|
26
|
-
ref:
|
|
24
|
+
...p,
|
|
25
|
+
...a,
|
|
26
|
+
ref: _,
|
|
27
27
|
id: s,
|
|
28
28
|
type: "radio",
|
|
29
|
-
className: r(`${e}__input`,
|
|
30
|
-
checked:
|
|
29
|
+
className: r(`${e}__input`, n),
|
|
30
|
+
checked: a.checked
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */ i
|
|
35
|
-
|
|
33
|
+
/* @__PURE__ */ c("span", { className: `${e}__label-content`, children: [
|
|
34
|
+
/* @__PURE__ */ o(i, { variant: N.labelLarge, className: `${e}__label-text`, children: m }),
|
|
35
|
+
t && /* @__PURE__ */ o(i, { id: f, className: `${e}__description`, children: t })
|
|
36
36
|
] })
|
|
37
37
|
]
|
|
38
38
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { default as React, ComponentProps } from 'react';
|
|
2
|
+
import { DetailVariants } from './types';
|
|
2
3
|
export interface DetailProps extends ComponentProps<'div'> {
|
|
3
4
|
hasWrap?: boolean;
|
|
4
5
|
label: React.ReactNode;
|
|
5
6
|
subLabel?: React.ReactNode;
|
|
6
7
|
value: React.ReactNode;
|
|
8
|
+
variant?: DetailVariants;
|
|
7
9
|
}
|
|
8
10
|
/**
|
|
9
11
|
* ## Overview
|
|
@@ -1,21 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N } from "react";
|
|
3
|
+
import { getCommonProps as h } from "../../utils/index.js";
|
|
4
|
+
import r from "../../node_modules/classnames/index.js";
|
|
5
|
+
import { TextVariants as a } from "../Text/types.js";
|
|
6
|
+
import o from "../Text/Text.js";
|
|
7
|
+
const x = N(
|
|
8
|
+
({ className: c = "", hasWrap: d = !0, label: b, subLabel: m, value: _, variant: e = "md", ...t }, f) => {
|
|
9
|
+
const { className: l, ...p } = h(t, "Detail"), i = e === "sm" ? a.labelSmall : e === "lg" ? a.labelLarge : a.labelMedium, u = e === "sm" ? a.bodySmall : e === "lg" ? a.bodyLarge : a.labelMedium;
|
|
10
|
+
return /* @__PURE__ */ n("div", { ...p, className: r(l, c), ...t, ref: f, children: [
|
|
11
|
+
/* @__PURE__ */ n(
|
|
12
|
+
"dt",
|
|
13
|
+
{
|
|
14
|
+
className: r(`${l}__label-section`, {
|
|
15
|
+
[`${l}__label--no-wrap`]: !d,
|
|
16
|
+
[`${l}__label-section--has-sub-label`]: m
|
|
17
|
+
}),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ s(o, { variant: i, className: r(`${l}__label-section--label`), children: b }),
|
|
20
|
+
" ",
|
|
21
|
+
m ? /* @__PURE__ */ s(o, { className: `${l}__sub-label`, variant: i, children: m }) : null
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
/* @__PURE__ */ s("dd", { className: `${l}__value`, children: /* @__PURE__ */ s(o, { variant: u, children: _ }) })
|
|
15
26
|
] });
|
|
16
27
|
}
|
|
17
28
|
);
|
|
18
|
-
|
|
29
|
+
x.displayName = "Detail";
|
|
19
30
|
export {
|
|
20
|
-
|
|
31
|
+
x as default
|
|
21
32
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DetailProps } from './Detail';
|
|
2
|
+
import { DetailVariants } from './types';
|
|
2
3
|
declare const meta: {
|
|
3
4
|
title: string;
|
|
4
5
|
component: import('react').ForwardRefExoticComponent<Omit<DetailProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -8,8 +9,40 @@ export declare const Playground: {
|
|
|
8
9
|
(props: DetailProps): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
args: {
|
|
10
11
|
label: string;
|
|
11
|
-
|
|
12
|
-
value: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
value: string;
|
|
13
13
|
};
|
|
14
14
|
argTypes: {};
|
|
15
15
|
};
|
|
16
|
+
export declare const Small: {
|
|
17
|
+
(props: DetailProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
args: {
|
|
19
|
+
variant: DetailVariants;
|
|
20
|
+
label: string;
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const Medium: {
|
|
25
|
+
(props: DetailProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
args: {
|
|
27
|
+
variant: DetailVariants;
|
|
28
|
+
label: string;
|
|
29
|
+
value: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const Large: {
|
|
33
|
+
(props: DetailProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
args: {
|
|
35
|
+
variant: DetailVariants;
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const Variants: () => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export declare const WithSubLabel: {
|
|
42
|
+
(props: DetailProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
args: {
|
|
44
|
+
variant: DetailVariants;
|
|
45
|
+
label: string;
|
|
46
|
+
value: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { jsxs as s, Fragment as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
3
|
import { Close as d } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
4
4
|
import f from "../IconButton/IconButton.js";
|
|
5
5
|
import { ButtonVariants as h } from "../Button/types.js";
|
|
6
6
|
import b from "../Icon/Icon.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
({
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/* @__PURE__ */ o
|
|
18
|
-
|
|
7
|
+
import { TextVariants as _ } from "../Text/types.js";
|
|
8
|
+
import p from "../Text/Text.js";
|
|
9
|
+
const m = ({ baseClassName: a, drawerOpenSide: e, onClose: i, bookendSide: t, ...l }) => {
|
|
10
|
+
const o = e === "bottom" && t === "left" || e !== "bottom" && t === "right";
|
|
11
|
+
return /* @__PURE__ */ r("div", { className: `${a}__bookend ${a}__bookend-${t}`, ...l, children: o && /* @__PURE__ */ r(d, { asChild: !0, children: /* @__PURE__ */ r(f, { onClick: i, "aria-label": "Close", "data-testid": "drawer-close", variant: h.tertiary, children: /* @__PURE__ */ r(b, { icon: "CloseX", color: "currentColor" }) }) }) });
|
|
12
|
+
}, u = c(
|
|
13
|
+
({ baseClassName: a, headerText: e, drawerOpenSide: i, onClose: t }, l) => {
|
|
14
|
+
const o = `${a}-header`;
|
|
15
|
+
return /* @__PURE__ */ s(n, { children: [
|
|
16
|
+
/* @__PURE__ */ s("div", { className: o, children: [
|
|
17
|
+
/* @__PURE__ */ r(m, { baseClassName: o, onClose: t, drawerOpenSide: i, bookendSide: "left" }),
|
|
18
|
+
/* @__PURE__ */ r(p, { variant: _.headingSmall, className: `${o}__title`, children: e }),
|
|
19
|
+
/* @__PURE__ */ r(
|
|
20
|
+
m,
|
|
19
21
|
{
|
|
20
|
-
baseClassName:
|
|
21
|
-
onClose:
|
|
22
|
-
drawerOpenSide:
|
|
22
|
+
baseClassName: o,
|
|
23
|
+
onClose: t,
|
|
24
|
+
drawerOpenSide: i,
|
|
23
25
|
bookendSide: "right"
|
|
24
26
|
}
|
|
25
27
|
)
|
|
26
28
|
] }),
|
|
27
|
-
|
|
29
|
+
e && /* @__PURE__ */ r("div", { className: `${o}__hr` })
|
|
28
30
|
] });
|
|
29
31
|
}
|
|
30
32
|
);
|
|
31
|
-
|
|
33
|
+
u.displayName = "DrawerHeader";
|
|
32
34
|
export {
|
|
33
|
-
|
|
35
|
+
u as default
|
|
34
36
|
};
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import h from "../../node_modules/classnames/index.js";
|
|
3
3
|
import { forwardRef as $ } from "react";
|
|
4
|
-
import { getCommonProps as
|
|
4
|
+
import { getCommonProps as g } from "../../utils/index.js";
|
|
5
5
|
import C from "../Button/Button.js";
|
|
6
6
|
import { ButtonVariants as E } from "../Button/types.js";
|
|
7
7
|
import "../Link/types.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { TextVariants as
|
|
11
|
-
import
|
|
12
|
-
const
|
|
8
|
+
import v from "../Link/Link.js";
|
|
9
|
+
import G from "../SeldonImage/SeldonImage.js";
|
|
10
|
+
import { TextVariants as p } from "../Text/types.js";
|
|
11
|
+
import a from "../Text/Text.js";
|
|
12
|
+
const j = $(
|
|
13
13
|
({
|
|
14
14
|
className: f,
|
|
15
|
-
imageSrc:
|
|
16
|
-
label:
|
|
15
|
+
imageSrc: r,
|
|
16
|
+
label: n,
|
|
17
17
|
header: m,
|
|
18
|
-
description:
|
|
19
|
-
linkLabel:
|
|
20
|
-
linkHref:
|
|
21
|
-
linkElement:
|
|
18
|
+
description: o,
|
|
19
|
+
linkLabel: s,
|
|
20
|
+
linkHref: l,
|
|
21
|
+
linkElement: i = v,
|
|
22
22
|
variant: _ = E.secondary,
|
|
23
|
-
altText:
|
|
24
|
-
...
|
|
25
|
-
},
|
|
26
|
-
const { className: t, ...x } =
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
altText: u = "Exit Gate Card Image",
|
|
24
|
+
...c
|
|
25
|
+
}, N) => {
|
|
26
|
+
const { className: t, ...x } = g(c, "ExitGateCard");
|
|
27
|
+
return /* @__PURE__ */ d("article", { ...x, className: h(t, f), ...c, ref: N, children: [
|
|
28
|
+
r ? /* @__PURE__ */ e(
|
|
29
|
+
G,
|
|
30
30
|
{
|
|
31
31
|
objectFit: "cover",
|
|
32
32
|
aspectRatio: "16/9",
|
|
33
|
-
src:
|
|
34
|
-
alt:
|
|
33
|
+
src: r,
|
|
34
|
+
alt: u,
|
|
35
35
|
className: `${t}__desktop_image`
|
|
36
36
|
}
|
|
37
37
|
) : null,
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
40
|
-
m ? /* @__PURE__ */ a
|
|
41
|
-
|
|
42
|
-
(
|
|
38
|
+
/* @__PURE__ */ d("div", { className: `${t}__content`, children: [
|
|
39
|
+
n ? /* @__PURE__ */ e(a, { variant: p.labelMedium, element: "span", className: `${t}__content-label`, children: n }) : null,
|
|
40
|
+
m ? /* @__PURE__ */ e(a, { variant: p.headingLarge, element: "span", className: `${t}__content-title`, children: m }) : null,
|
|
41
|
+
o ? /* @__PURE__ */ e(a, { element: "span", className: `${t}__content-description`, children: o }) : null,
|
|
42
|
+
(s || i) && l ? /* @__PURE__ */ e(i, { href: l, children: /* @__PURE__ */ e(C, { variant: _, className: `${t}__content-link`, children: s }) }) : null
|
|
43
43
|
] })
|
|
44
44
|
] });
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
|
-
|
|
47
|
+
j.displayName = "ExitGateCard";
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
j as default
|
|
50
50
|
};
|
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
const g = v(
|
|
1
|
+
import { jsxs as i, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as u } from "react";
|
|
3
|
+
import { getCommonProps as N } from "../../utils/index.js";
|
|
4
|
+
import h from "../../node_modules/classnames/index.js";
|
|
5
|
+
import o from "../Text/Text.js";
|
|
6
|
+
const _ = u(
|
|
8
7
|
({
|
|
9
|
-
className:
|
|
10
|
-
actionAddText:
|
|
11
|
-
actionRemoveText:
|
|
12
|
-
isLotInList:
|
|
13
|
-
listTitle:
|
|
8
|
+
className: n,
|
|
9
|
+
actionAddText: m = "Add to",
|
|
10
|
+
actionRemoveText: t = "Remove from",
|
|
11
|
+
isLotInList: e,
|
|
12
|
+
listTitle: s,
|
|
14
13
|
numberOfObjects: c,
|
|
15
|
-
onClick:
|
|
16
|
-
...
|
|
17
|
-
},
|
|
18
|
-
const { className:
|
|
19
|
-
return /* @__PURE__ */
|
|
14
|
+
onClick: d,
|
|
15
|
+
...l
|
|
16
|
+
}, f) => {
|
|
17
|
+
const { className: r, ...p } = N(l, "FavoritingTileButton");
|
|
18
|
+
return /* @__PURE__ */ i(
|
|
20
19
|
"button",
|
|
21
20
|
{
|
|
22
|
-
...
|
|
23
|
-
className:
|
|
24
|
-
[`${
|
|
21
|
+
...p,
|
|
22
|
+
className: h(r, n, {
|
|
23
|
+
[`${r}--lot-in-list`]: e
|
|
25
24
|
}),
|
|
26
|
-
onClick:
|
|
27
|
-
ref:
|
|
28
|
-
id:
|
|
29
|
-
"aria-label": `${
|
|
30
|
-
"aria-pressed":
|
|
25
|
+
onClick: d,
|
|
26
|
+
ref: f,
|
|
27
|
+
id: l?.id,
|
|
28
|
+
"aria-label": `${e ? t : m} ${s}`,
|
|
29
|
+
"aria-pressed": e,
|
|
31
30
|
role: "switch",
|
|
32
31
|
children: [
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
/* @__PURE__ */ o
|
|
35
|
-
/* @__PURE__ */ o
|
|
32
|
+
/* @__PURE__ */ i("div", { className: `${r}__text`, children: [
|
|
33
|
+
/* @__PURE__ */ a(o, { className: `${r}__text--action`, children: e ? t : m }),
|
|
34
|
+
/* @__PURE__ */ a(o, { children: s })
|
|
36
35
|
] }),
|
|
37
|
-
/* @__PURE__ */ o
|
|
36
|
+
/* @__PURE__ */ a(o, { className: `${r}__text--number`, children: c })
|
|
38
37
|
]
|
|
39
38
|
}
|
|
40
39
|
);
|
|
41
40
|
}
|
|
42
41
|
);
|
|
43
|
-
|
|
42
|
+
_.displayName = "FavoritingTileButton";
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
_ as default
|
|
46
45
|
};
|
|
@@ -1,55 +1,57 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useState as E, Children as H, isValidElement as c, cloneElement as f } from "react";
|
|
3
|
+
import { getCommonProps as P, findChildrenOfType as j, findChildrenExcludingTypes as B, px as I } from "../../utils/index.js";
|
|
4
|
+
import R from "../../node_modules/classnames/index.js";
|
|
5
5
|
import p from "./FilterHeader.js";
|
|
6
6
|
import k from "../Button/Button.js";
|
|
7
|
-
import { ButtonVariants as
|
|
8
|
-
import
|
|
9
|
-
|
|
7
|
+
import { ButtonVariants as M } from "../Button/types.js";
|
|
8
|
+
import O from "../Icon/Icon.js";
|
|
9
|
+
import { TextVariants as S } from "../Text/types.js";
|
|
10
|
+
import V from "../Text/Text.js";
|
|
11
|
+
const q = b(
|
|
10
12
|
({
|
|
11
13
|
className: h,
|
|
12
|
-
children:
|
|
13
|
-
name:
|
|
14
|
-
viewAllLimit:
|
|
15
|
-
isViewingAll:
|
|
14
|
+
children: _,
|
|
15
|
+
name: i,
|
|
16
|
+
viewAllLimit: l = 10,
|
|
17
|
+
isViewingAll: s = !1,
|
|
16
18
|
isHidden: u = !1,
|
|
17
|
-
setViewAllFilter:
|
|
18
|
-
viewAllLabel:
|
|
19
|
-
...
|
|
20
|
-
},
|
|
21
|
-
const [
|
|
22
|
-
(
|
|
19
|
+
setViewAllFilter: n,
|
|
20
|
+
viewAllLabel: C = "View All",
|
|
21
|
+
...m
|
|
22
|
+
}, N) => {
|
|
23
|
+
const [v, x] = E(!1), { className: e, ...y } = P(m, "Filter"), t = H.toArray(_), $ = { isViewingAll: s, setViewAllFilter: n, setIsClosing: x }, d = j(t, p)?.[0], g = c(d) ? f(d, $) : null, F = B(t, [p])?.map(
|
|
24
|
+
(a, T) => c(a) ? f(a, { hidden: !s && T + 1 > l }) : a
|
|
23
25
|
);
|
|
24
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ o(
|
|
25
27
|
"div",
|
|
26
28
|
{
|
|
27
|
-
...
|
|
28
|
-
className:
|
|
29
|
-
[`${
|
|
30
|
-
"is-closing":
|
|
29
|
+
...y,
|
|
30
|
+
className: R(e, h, {
|
|
31
|
+
[`${I}-filter--hidden`]: u,
|
|
32
|
+
"is-closing": v
|
|
31
33
|
}),
|
|
32
|
-
...
|
|
33
|
-
ref:
|
|
34
|
+
...m,
|
|
35
|
+
ref: N,
|
|
34
36
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ o("fieldset", { name: i, className: `${e}__fieldset`, children: [
|
|
38
|
+
g,
|
|
39
|
+
/* @__PURE__ */ r("div", { className: `${e}__filters`, children: F })
|
|
38
40
|
] }),
|
|
39
|
-
|
|
41
|
+
t.length > l && !s ? /* @__PURE__ */ r("div", { className: `${e}__view-all`, children: /* @__PURE__ */ o(
|
|
40
42
|
k,
|
|
41
43
|
{
|
|
42
|
-
className: `${e}__view-
|
|
43
|
-
variant:
|
|
44
|
+
className: `${e}__view-all__button`,
|
|
45
|
+
variant: M.tertiary,
|
|
44
46
|
onClick: () => {
|
|
45
|
-
|
|
47
|
+
n?.(i);
|
|
46
48
|
},
|
|
47
49
|
children: [
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ r(V, { variant: S.labelMedium, children: C }),
|
|
51
|
+
/* @__PURE__ */ r(O, { icon: "ChevronRight", className: `${e}__chevron` })
|
|
50
52
|
]
|
|
51
53
|
}
|
|
52
|
-
) : null
|
|
54
|
+
) }) : null
|
|
53
55
|
]
|
|
54
56
|
}
|
|
55
57
|
);
|
|
@@ -4,6 +4,10 @@ export interface FilterHeaderProps extends ComponentProps<'div'> {
|
|
|
4
4
|
isViewingAll?: boolean;
|
|
5
5
|
setViewAllFilter?: Dispatch<SetStateAction<null>>;
|
|
6
6
|
setIsClosing?: Dispatch<SetStateAction<boolean>>;
|
|
7
|
+
/**
|
|
8
|
+
* translatable string for back to all button
|
|
9
|
+
*/
|
|
10
|
+
backToAllLabel?: string;
|
|
7
11
|
}
|
|
8
12
|
/**
|
|
9
13
|
* ## Overview
|
|
@@ -1,31 +1,39 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import { TextVariants as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { ButtonVariants as
|
|
9
|
-
import
|
|
10
|
-
const g =
|
|
11
|
-
({
|
|
12
|
-
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as N } from "react";
|
|
3
|
+
import { getCommonProps as v } from "../../utils/index.js";
|
|
4
|
+
import x from "../../node_modules/classnames/index.js";
|
|
5
|
+
import { TextVariants as m } from "../Text/types.js";
|
|
6
|
+
import l from "../Text/Text.js";
|
|
7
|
+
import C from "../Button/Button.js";
|
|
8
|
+
import { ButtonVariants as _ } from "../Button/types.js";
|
|
9
|
+
import b from "../Icon/Icon.js";
|
|
10
|
+
const g = N(
|
|
11
|
+
({
|
|
12
|
+
className: i,
|
|
13
|
+
heading: n,
|
|
14
|
+
isViewingAll: s = !1,
|
|
15
|
+
setViewAllFilter: c,
|
|
16
|
+
setIsClosing: a,
|
|
17
|
+
backToAllLabel: d = "Back to all",
|
|
18
|
+
...t
|
|
19
|
+
}, f) => {
|
|
20
|
+
const { className: r, ...p } = v(t, "FilterHeader"), u = () => {
|
|
13
21
|
a?.(!0), setTimeout(() => {
|
|
14
|
-
|
|
22
|
+
c?.(null), a?.(!1);
|
|
15
23
|
}, 300);
|
|
16
24
|
};
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
|
|
25
|
+
return /* @__PURE__ */ o("div", { ...p, className: x(r, i), ...t, ref: f, children: [
|
|
26
|
+
/* @__PURE__ */ e(
|
|
27
|
+
l,
|
|
20
28
|
{
|
|
21
|
-
variant:
|
|
22
|
-
className: `${
|
|
23
|
-
element: (
|
|
29
|
+
variant: m.headingSmall,
|
|
30
|
+
className: `${r}__heading`,
|
|
31
|
+
element: (h) => /* @__PURE__ */ e("legend", { ...h, children: n })
|
|
24
32
|
}
|
|
25
33
|
),
|
|
26
|
-
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
34
|
+
s ? /* @__PURE__ */ o(C, { variant: _.tertiary, onClick: u, className: `${r}__back`, children: [
|
|
35
|
+
/* @__PURE__ */ e(b, { icon: "ChevronLeft" }),
|
|
36
|
+
/* @__PURE__ */ e(l, { variant: m.labelMedium, children: d })
|
|
29
37
|
] }) : null
|
|
30
38
|
] });
|
|
31
39
|
}
|