@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.
Files changed (165) hide show
  1. package/dist/components/Accordion/Accordion.stories.d.ts +1 -1
  2. package/dist/components/Accordion/AccordionItem.js +101 -105
  3. package/dist/components/Accordion/types.d.ts +9 -3
  4. package/dist/components/Accordion/types.js +1 -1
  5. package/dist/components/Accordion/utils.d.ts +3 -3
  6. package/dist/components/Accordion/utils.js +7 -7
  7. package/dist/components/AddToCalendar/AddToCalendar.js +24 -25
  8. package/dist/components/Article/Article.js +17 -17
  9. package/dist/components/Breadcrumb/BreadcrumbItem.js +13 -13
  10. package/dist/components/Button/Button.d.ts +4 -0
  11. package/dist/components/Button/Button.js +71 -53
  12. package/dist/components/Button/Button.stories.d.ts +7 -1
  13. package/dist/components/ComboBox/ComboBox.js +33 -29
  14. package/dist/components/ComposedModal/ComposedModal.js +33 -33
  15. package/dist/components/ComposedModal/ComposedModal.stories.d.ts +1 -0
  16. package/dist/components/Countdown/Countdown.js +90 -51
  17. package/dist/components/Countdown/Duration.d.ts +3 -1
  18. package/dist/components/Countdown/Duration.js +17 -9
  19. package/dist/components/Countdown/types.d.ts +2 -1
  20. package/dist/components/Countdown/types.js +1 -1
  21. package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +21 -21
  22. package/dist/components/Detail/Detail.d.ts +2 -0
  23. package/dist/components/Detail/Detail.js +27 -16
  24. package/dist/components/Detail/Detail.stories.d.ts +35 -2
  25. package/dist/components/Detail/index.d.ts +1 -0
  26. package/dist/components/Detail/types.d.ts +5 -0
  27. package/dist/components/Detail/types.js +4 -0
  28. package/dist/components/Drawer/DrawerHeader.js +22 -20
  29. package/dist/components/ExitGateCard/ExitGateCard.js +29 -29
  30. package/dist/components/FavoritingTileButton/FavoritingTileButton.js +30 -31
  31. package/dist/components/Filter/Filter.js +36 -34
  32. package/dist/components/Filter/FilterHeader.d.ts +4 -0
  33. package/dist/components/Filter/FilterHeader.js +30 -22
  34. package/dist/components/Input/Input.js +43 -39
  35. package/dist/components/Input/Input.stories.d.ts +16 -0
  36. package/dist/components/Link/Link.js +11 -11
  37. package/dist/components/Link/Link.stories.d.ts +17 -1
  38. package/dist/components/Link/types.d.ts +9 -4
  39. package/dist/components/Link/types.js +3 -3
  40. package/dist/components/LinkBlock/LinkBlock.js +19 -11
  41. package/dist/components/Modal/Modal.d.ts +0 -4
  42. package/dist/components/Modal/Modal.js +6 -6
  43. package/dist/components/Navigation/NavigationItem/NavigationItem.js +31 -23
  44. package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +37 -39
  45. package/dist/components/Navigation/NavigationList/NavigationList.js +5 -5
  46. package/dist/components/Pagination/Pagination.js +22 -21
  47. package/dist/components/ProgressIndicator/ProgressIndicator.js +22 -22
  48. package/dist/components/Search/Search.js +55 -53
  49. package/dist/components/Search/SearchResults/SearchResults.js +16 -16
  50. package/dist/components/Select/Select.d.ts +4 -0
  51. package/dist/components/Select/Select.js +51 -45
  52. package/dist/components/Select/Select.stories.d.ts +1 -0
  53. package/dist/components/Tabs/TabsContainer.js +1 -1
  54. package/dist/components/Tags/Tags.js +32 -30
  55. package/dist/components/Text/Text.js +17 -9
  56. package/dist/components/Text/types.d.ts +42 -1
  57. package/dist/components/Text/types.js +3 -3
  58. package/dist/components/Text/utils.js +40 -7
  59. package/dist/components/TextArea/TextArea.js +38 -34
  60. package/dist/components/Toast/Toast.js +4 -4
  61. package/dist/index.js +192 -190
  62. package/dist/patterns/AccountPageHeader/AccountPageHeader.js +45 -28
  63. package/dist/patterns/BidSnapshot/BidMessage.d.ts +6 -1
  64. package/dist/patterns/BidSnapshot/BidMessage.js +14 -13
  65. package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +11 -1
  66. package/dist/patterns/BidSnapshot/BidSnapshot.js +76 -64
  67. package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +114 -0
  68. package/dist/patterns/CountryPicker/CountryPickerCountryList.js +5 -5
  69. package/dist/patterns/CountryPicker/CountryPickerModal.js +8 -8
  70. package/dist/patterns/CountryPicker/CountryPickerOption.js +22 -20
  71. package/dist/patterns/CountryPicker/CountryPickerTrigger.js +39 -38
  72. package/dist/patterns/DetailList/DetailList.d.ts +7 -2
  73. package/dist/patterns/DetailList/DetailList.js +25 -24
  74. package/dist/patterns/DetailList/DetailList.stories.d.ts +1 -0
  75. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +52 -52
  76. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.stories.d.ts +1 -0
  77. package/dist/patterns/FiltersInline/FilterButton.js +41 -25
  78. package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +50 -52
  79. package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +31 -31
  80. package/dist/patterns/HeroBanner/HeroBanner.js +21 -21
  81. package/dist/patterns/LanguageSelector/LanguageSelector.js +26 -28
  82. package/dist/patterns/ObjectTile/ObjectTile.js +66 -73
  83. package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +36 -0
  84. package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +7 -6
  85. package/dist/patterns/SaleCard/SaleCard.js +33 -41
  86. package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
  87. package/dist/patterns/SaleCard/SaleCardActions.js +9 -8
  88. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +49 -49
  89. package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +19 -12
  90. package/dist/patterns/Social/Social.js +22 -22
  91. package/dist/patterns/Subscribe/Subscribe.js +57 -55
  92. package/dist/patterns/Subscribe/Subscribe.stories.d.ts +0 -1
  93. package/dist/patterns/TextBanner/TextBanner.js +12 -12
  94. package/dist/patterns/UserManagement/UserManagement.js +13 -13
  95. package/dist/patterns/ViewingDetails/ViewingDetails.d.ts +4 -0
  96. package/dist/patterns/ViewingDetails/ViewingDetails.js +36 -34
  97. package/dist/patterns/ViewingDetails/ViewingDetails.stories.d.ts +2 -0
  98. package/dist/patterns/ViewingDetails/ViewingDetailsMock.d.ts +2 -0
  99. package/dist/scss/_reset.scss +4 -0
  100. package/dist/scss/_type.scss +172 -65
  101. package/dist/scss/_vars.scss +92 -197
  102. package/dist/scss/_vars.scss.js +94 -199
  103. package/dist/scss/componentStyles.scss +181 -0
  104. package/dist/scss/components/Accordion/_accordion.scss +14 -28
  105. package/dist/scss/components/AddToCalendar/_addToCalendar.scss +0 -4
  106. package/dist/scss/components/Breadcrumb/_breadcrumb.scss +8 -1
  107. package/dist/scss/components/Button/_button.scss +33 -7
  108. package/dist/scss/components/ComboBox/_combobox.scss +7 -5
  109. package/dist/scss/components/ComposedModal/_composedModal.scss +0 -4
  110. package/dist/scss/components/Countdown/_countdown.scss +8 -9
  111. package/dist/scss/components/Countdown/_duration.scss +0 -2
  112. package/dist/scss/components/DatePicker/_datePicker.scss +11 -10
  113. package/dist/scss/components/Detail/_detail.scss +15 -6
  114. package/dist/scss/components/Divider/_divider.scss +3 -3
  115. package/dist/scss/components/Drawer/_drawerHeader.scss +0 -7
  116. package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
  117. package/dist/scss/components/FavoritingTileButton/_favoritingTileButton.scss +5 -0
  118. package/dist/scss/components/Filter/_filter.scss +13 -10
  119. package/dist/scss/components/Icon/_icon.stories.scss +1 -1
  120. package/dist/scss/components/IconButton/_iconButton.scss +3 -5
  121. package/dist/scss/components/Input/_input.scss +22 -14
  122. package/dist/scss/components/Link/_link.scss +13 -8
  123. package/dist/scss/components/LinkBlock/_linkBlock.scss +5 -1
  124. package/dist/scss/components/LinkList/_linkList.scss +6 -0
  125. package/dist/scss/components/Modal/_modal.scss +2 -2
  126. package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +30 -14
  127. package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +2 -2
  128. package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +5 -4
  129. package/dist/scss/components/NotificationBanner/_notificationBanner.scss +4 -10
  130. package/dist/scss/components/Pagination/_pagination.scss +17 -1
  131. package/dist/scss/components/ProgressIndicator/_progressIndicator.scss +5 -0
  132. package/dist/scss/components/Search/SearchResults/_searchResults.scss +5 -0
  133. package/dist/scss/components/Search/_search.scss +3 -11
  134. package/dist/scss/components/Search/_searchButton.scss +0 -1
  135. package/dist/scss/components/Select/_select.scss +8 -3
  136. package/dist/scss/components/Tabs/_tabs.scss +1 -6
  137. package/dist/scss/components/Tags/_tags.scss +0 -2
  138. package/dist/scss/components/TextArea/_textArea.scss +2 -4
  139. package/dist/scss/components/TextSymbol/_textSymbol.scss +1 -4
  140. package/dist/scss/patterns/AccountPageHeader/_accountPageHeader.scss +4 -0
  141. package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +12 -11
  142. package/dist/scss/patterns/CountryPicker/_countryPickerModal.scss +4 -0
  143. package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +3 -0
  144. package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +4 -7
  145. package/dist/scss/patterns/DetailList/_detailList.scss +8 -2
  146. package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +6 -8
  147. package/dist/scss/patterns/FilterMenu/_filterMenu.scss +2 -1
  148. package/dist/scss/patterns/FiltersInline/_filterButton.scss +12 -2
  149. package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +1 -9
  150. package/dist/scss/patterns/FiltersInline/_filtersInline.scss +5 -0
  151. package/dist/scss/patterns/HeroBanner/_heroBanner.scss +5 -6
  152. package/dist/scss/patterns/LanguageSelector/_languageSelector.scss +4 -0
  153. package/dist/scss/patterns/ObjectTile/_objectTile.scss +13 -12
  154. package/dist/scss/patterns/PhoneNumberInput/_phoneNumberInput.scss +9 -2
  155. package/dist/scss/patterns/SaleCard/_saleCard.scss +7 -23
  156. package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +16 -3
  157. package/dist/scss/patterns/Social/_social.scss +5 -1
  158. package/dist/scss/patterns/Subscribe/_subscribe.scss +0 -12
  159. package/dist/scss/patterns/TextBanner/_textBanner.scss +9 -3
  160. package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +15 -3
  161. package/dist/scss/site-furniture/Footer/_footer.scss +24 -4
  162. package/dist/scss/site-furniture/Header/_header.scss +12 -4
  163. package/dist/site-furniture/Footer/Footer.js +4 -4
  164. package/dist/site-furniture/Header/Header.js +76 -57
  165. package/package.json +4 -3
@@ -1,13 +1,21 @@
1
- import { jsxs as e, jsx as o } from "react/jsx-runtime";
2
- import { px as m } from "../../utils/index.js";
3
- import { formatDuration as p } from "../../node_modules/date-fns/formatDuration.js";
4
- const u = ({ duration: a, unit: s, locale: n, formatDurationStr: i = (r) => r }) => {
5
- const r = `${m}-duration`, t = p(a, { format: [s], zero: !0, locale: n }).split(" ");
6
- return /* @__PURE__ */ e("div", { className: r, children: [
7
- /* @__PURE__ */ o("span", { children: t[0].padStart(2, "0") }),
8
- /* @__PURE__ */ o("span", { children: i(t[1]) })
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
- u as Duration
20
+ b as Duration
13
21
  };
@@ -1,4 +1,5 @@
1
1
  export declare enum CountdownVariants {
2
2
  default = "default",
3
- compact = "compact"
3
+ compact = "compact",
4
+ sm = "sm"
4
5
  }
@@ -1,4 +1,4 @@
1
- var e = /* @__PURE__ */ ((c) => (c.default = "default", c.compact = "compact", c))(e || {});
1
+ var e = /* @__PURE__ */ ((c) => (c.default = "default", c.compact = "compact", c.sm = "sm", c))(e || {});
2
2
  export {
3
3
  e as CountdownVariants
4
4
  };
@@ -1,38 +1,38 @@
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";
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 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,
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 = _, h = a ? `${s}-desc` : void 0;
13
- return /* @__PURE__ */ o(
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`]: t.checked
18
+ [`${e}__container--selected`]: a.checked
19
19
  }),
20
20
  children: [
21
- /* @__PURE__ */ i(
21
+ /* @__PURE__ */ o(
22
22
  "input",
23
23
  {
24
- ...f,
25
- ...t,
26
- ref: p,
24
+ ...p,
25
+ ...a,
26
+ ref: _,
27
27
  id: s,
28
28
  type: "radio",
29
- className: r(`${e}__input`, d),
30
- checked: t.checked
29
+ className: r(`${e}__input`, n),
30
+ checked: a.checked
31
31
  }
32
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 })
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 l, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as p } from "react";
3
- import { getCommonProps as f } from "../../utils/index.js";
4
- import m from "../../node_modules/classnames/index.js";
5
- const N = p(
6
- ({ className: o = "", hasWrap: t = !0, label: i, subLabel: e, value: n, ...s }, c) => {
7
- const { className: a, ...d } = f(s, "Detail");
8
- return /* @__PURE__ */ l("div", { ...d, className: m(a, o), ...s, ref: c, children: [
9
- /* @__PURE__ */ l("dt", { className: m(`${a}__label`, { [`${a}__label--no-wrap`]: !t }), children: [
10
- i,
11
- " ",
12
- e ? /* @__PURE__ */ r("span", { children: e }) : null
13
- ] }),
14
- /* @__PURE__ */ r("dd", { className: `${a}__value`, children: n })
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
- N.displayName = "Detail";
29
+ x.displayName = "Detail";
19
30
  export {
20
- N as default
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
- subLabel: string;
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 +1,2 @@
1
1
  export { default as Detail, type DetailProps, type DetailComponent } from './Detail';
2
+ export { DetailVariants } from './types';
@@ -0,0 +1,5 @@
1
+ export declare enum DetailVariants {
2
+ lg = "lg",
3
+ md = "md",
4
+ sm = "sm"
5
+ }
@@ -0,0 +1,4 @@
1
+ var d = /* @__PURE__ */ ((m) => (m.lg = "lg", m.md = "md", m.sm = "sm", m))(d || {});
2
+ export {
3
+ d as DetailVariants
4
+ };
@@ -1,34 +1,36 @@
1
- import { jsxs as i, Fragment as c, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as m } from "react";
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
- const n = ({ baseClassName: a, drawerOpenSide: t, onClose: l, bookendSide: e, ...s }) => {
8
- const r = t === "bottom" && e === "left" || t !== "bottom" && e === "right";
9
- return /* @__PURE__ */ o("div", { className: `${a}__bookend ${a}__bookend-${e}`, ...s, children: r && /* @__PURE__ */ o(d, { asChild: !0, children: /* @__PURE__ */ o(f, { onClick: l, "aria-label": "Close", "data-testid": "drawer-close", variant: h.tertiary, children: /* @__PURE__ */ o(b, { icon: "CloseX", color: "currentColor" }) }) }) });
10
- }, _ = m(
11
- ({ baseClassName: a, headerText: t, drawerOpenSide: l, onClose: e }, s) => {
12
- const r = `${a}-header`;
13
- return /* @__PURE__ */ i(c, { children: [
14
- /* @__PURE__ */ i("div", { className: r, children: [
15
- /* @__PURE__ */ o(n, { baseClassName: r, onClose: e, drawerOpenSide: l, bookendSide: "left" }),
16
- /* @__PURE__ */ o("h3", { className: `${r}__title`, children: t }),
17
- /* @__PURE__ */ o(
18
- n,
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: r,
21
- onClose: e,
22
- drawerOpenSide: l,
22
+ baseClassName: o,
23
+ onClose: t,
24
+ drawerOpenSide: i,
23
25
  bookendSide: "right"
24
26
  }
25
27
  )
26
28
  ] }),
27
- t && /* @__PURE__ */ o("div", { className: `${r}__hr` })
29
+ e && /* @__PURE__ */ r("div", { className: `${o}__hr` })
28
30
  ] });
29
31
  }
30
32
  );
31
- _.displayName = "DrawerHeader";
33
+ u.displayName = "DrawerHeader";
32
34
  export {
33
- _ as default
35
+ u as default
34
36
  };
@@ -1,50 +1,50 @@
1
- import { jsxs as p, jsx as a } from "react/jsx-runtime";
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 v } from "../../utils/index.js";
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 g from "../Link/Link.js";
9
- import y from "../SeldonImage/SeldonImage.js";
10
- import { TextVariants as e } from "../Text/types.js";
11
- import r from "../Text/Text.js";
12
- const G = $(
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: n,
16
- label: o,
15
+ imageSrc: r,
16
+ label: n,
17
17
  header: m,
18
- description: s,
19
- linkLabel: l,
20
- linkHref: i,
21
- linkElement: c = g,
18
+ description: o,
19
+ linkLabel: s,
20
+ linkHref: l,
21
+ linkElement: i = v,
22
22
  variant: _ = E.secondary,
23
- altText: N = "Exit Gate Card Image",
24
- ...d
25
- }, u) => {
26
- const { className: t, ...x } = v(d, "ExitGateCard");
27
- return /* @__PURE__ */ p("article", { ...x, className: h(t, f), ...d, ref: u, children: [
28
- n ? /* @__PURE__ */ a(
29
- y,
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: n,
34
- alt: N,
33
+ src: r,
34
+ alt: u,
35
35
  className: `${t}__desktop_image`
36
36
  }
37
37
  ) : null,
38
- /* @__PURE__ */ p("div", { className: `${t}__content`, children: [
39
- o ? /* @__PURE__ */ a(r, { variant: e.body2, element: "span", className: `${t}__content-label`, children: o }) : null,
40
- m ? /* @__PURE__ */ a(r, { variant: e.heading1, element: "span", className: `${t}__content-title`, children: m }) : null,
41
- s ? /* @__PURE__ */ a(r, { variant: e.body2, element: "span", className: `${t}__content-description`, children: s }) : null,
42
- (l || c) && i ? /* @__PURE__ */ a(c, { href: i, children: /* @__PURE__ */ a(C, { variant: _, className: `${t}__content-link`, children: l }) }) : null
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
- G.displayName = "ExitGateCard";
47
+ j.displayName = "ExitGateCard";
48
48
  export {
49
- G as default
49
+ j as default
50
50
  };
@@ -1,46 +1,45 @@
1
- import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as v } from "react";
3
- import { getCommonProps as h } from "../../utils/index.js";
4
- import b from "../../node_modules/classnames/index.js";
5
- import { TextVariants as t } from "../Text/types.js";
6
- import e from "../Text/Text.js";
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: d,
10
- actionAddText: i = "Add to",
11
- actionRemoveText: m = "Remove from",
12
- isLotInList: r,
13
- listTitle: n,
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: f,
16
- ...s
17
- }, p) => {
18
- const { className: a, ...u } = h(s, "FavoritingTileButton");
19
- return /* @__PURE__ */ l(
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
- ...u,
23
- className: b(a, d, {
24
- [`${a}--lot-in-list`]: r
21
+ ...p,
22
+ className: h(r, n, {
23
+ [`${r}--lot-in-list`]: e
25
24
  }),
26
- onClick: f,
27
- ref: p,
28
- id: s?.id,
29
- "aria-label": `${r ? m : i} ${n}`,
30
- "aria-pressed": r,
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__ */ l("div", { className: `${a}__text`, children: [
34
- /* @__PURE__ */ o(e, { variant: t.button, children: r ? m : i }),
35
- /* @__PURE__ */ o(e, { variant: t.string2, children: n })
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(e, { variant: t.button, children: c })
36
+ /* @__PURE__ */ a(o, { className: `${r}__text--number`, children: c })
38
37
  ]
39
38
  }
40
39
  );
41
40
  }
42
41
  );
43
- g.displayName = "FavoritingTileButton";
42
+ _.displayName = "FavoritingTileButton";
44
43
  export {
45
- g as default
44
+ _ as default
46
45
  };
@@ -1,55 +1,57 @@
1
- import { jsxs as t, jsx as d } from "react/jsx-runtime";
2
- import { forwardRef as H, useState as P, Children as j, isValidElement as c, cloneElement as f } from "react";
3
- import { getCommonProps as B, findChildrenOfType as I, findChildrenExcludingTypes as R, px as T } from "../../utils/index.js";
4
- import b from "../../node_modules/classnames/index.js";
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 O } from "../Button/types.js";
8
- import S from "../Icon/Icon.js";
9
- const q = H(
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: C,
13
- name: a,
14
- viewAllLimit: n = 10,
15
- isViewingAll: r = !1,
14
+ children: _,
15
+ name: i,
16
+ viewAllLimit: l = 10,
17
+ isViewingAll: s = !1,
16
18
  isHidden: u = !1,
17
- setViewAllFilter: l,
18
- viewAllLabel: N = "View All",
19
- ...i
20
- }, _) => {
21
- const [y, g] = P(!1), { className: e, ...v } = B(i, "Filter"), s = j.toArray(C), x = { isViewingAll: r, setViewAllFilter: l, setIsClosing: g }, m = I(s, p)?.[0], F = c(m) ? f(m, x) : null, $ = R(s, [p])?.map(
22
- (o, E) => c(o) ? f(o, { hidden: !r && E + 1 > n }) : o
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__ */ t(
26
+ return /* @__PURE__ */ o(
25
27
  "div",
26
28
  {
27
- ...v,
28
- className: b(e, h, {
29
- [`${T}-filter--hidden`]: u,
30
- "is-closing": y
29
+ ...y,
30
+ className: R(e, h, {
31
+ [`${I}-filter--hidden`]: u,
32
+ "is-closing": v
31
33
  }),
32
- ...i,
33
- ref: _,
34
+ ...m,
35
+ ref: N,
34
36
  children: [
35
- /* @__PURE__ */ t("fieldset", { name: a, className: `${e}__fieldset`, children: [
36
- F,
37
- /* @__PURE__ */ d("div", { className: `${e}__filters`, children: $ })
37
+ /* @__PURE__ */ o("fieldset", { name: i, className: `${e}__fieldset`, children: [
38
+ g,
39
+ /* @__PURE__ */ r("div", { className: `${e}__filters`, children: F })
38
40
  ] }),
39
- s.length > n && !r ? /* @__PURE__ */ t(
41
+ t.length > l && !s ? /* @__PURE__ */ r("div", { className: `${e}__view-all`, children: /* @__PURE__ */ o(
40
42
  k,
41
43
  {
42
- className: `${e}__view-all`,
43
- variant: O.tertiary,
44
+ className: `${e}__view-all__button`,
45
+ variant: M.tertiary,
44
46
  onClick: () => {
45
- l?.(a);
47
+ n?.(i);
46
48
  },
47
49
  children: [
48
- N,
49
- /* @__PURE__ */ d(S, { icon: "ChevronRight", className: `${e}__chevron` })
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 t, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as p } from "react";
3
- import { getCommonProps as u } from "../../utils/index.js";
4
- import h from "../../node_modules/classnames/index.js";
5
- import { TextVariants as N } from "../Text/types.js";
6
- import x from "../Text/Text.js";
7
- import v from "../Button/Button.js";
8
- import { ButtonVariants as C } from "../Button/types.js";
9
- import _ from "../Icon/Icon.js";
10
- const g = p(
11
- ({ className: m, heading: i, isViewingAll: l = !1, setViewAllFilter: n, setIsClosing: a, ...o }, s) => {
12
- const { className: e, ...c } = u(o, "FilterHeader"), f = () => {
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
- n?.(null), a?.(!1);
22
+ c?.(null), a?.(!1);
15
23
  }, 300);
16
24
  };
17
- return /* @__PURE__ */ t("div", { ...c, className: h(e, m), ...o, ref: s, children: [
18
- /* @__PURE__ */ r(
19
- x,
25
+ return /* @__PURE__ */ o("div", { ...p, className: x(r, i), ...t, ref: f, children: [
26
+ /* @__PURE__ */ e(
27
+ l,
20
28
  {
21
- variant: N.heading4,
22
- className: `${e}__heading`,
23
- element: (d) => /* @__PURE__ */ r("legend", { ...d, children: i })
29
+ variant: m.headingSmall,
30
+ className: `${r}__heading`,
31
+ element: (h) => /* @__PURE__ */ e("legend", { ...h, children: n })
24
32
  }
25
33
  ),
26
- l ? /* @__PURE__ */ t(v, { variant: C.tertiary, onClick: f, className: `${e}__back`, children: [
27
- /* @__PURE__ */ r(_, { icon: "ChevronLeft" }),
28
- "Back to all"
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
  }