@phillips/seldon 1.58.3 → 1.59.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.
@@ -10,6 +10,10 @@ export interface NavigationItemProps extends ComponentProps<'li'> {
10
10
  * href link
11
11
  */
12
12
  href?: string;
13
+ /**
14
+ * Optional value to give the navigation item unique styling
15
+ */
16
+ isViewAllLink?: boolean;
13
17
  /**
14
18
  * Label for the navigation item
15
19
  */
@@ -1,26 +1,39 @@
1
1
  import { jsx as a, jsxs as c } from "react/jsx-runtime";
2
2
  import { px as i } from "../../../utils/index.js";
3
- import f from "../../../node_modules/classnames/index.js";
4
- import v from "../../Link/Link.js";
5
- import { LinkVariants as N } from "../../Link/types.js";
6
- import { forwardRef as _ } from "react";
7
- const $ = _(
8
- ({ badge: e, className: t = "", href: n, label: m, navGroup: s, navType: r, onClick: o, element: l = v, ...d }, p) => /* @__PURE__ */ a(
3
+ import v from "../../../node_modules/classnames/index.js";
4
+ import N from "../../Link/Link.js";
5
+ import { LinkVariants as _ } from "../../Link/types.js";
6
+ import { forwardRef as $ } from "react";
7
+ const h = $(
8
+ ({
9
+ badge: e,
10
+ className: t = "",
11
+ href: n,
12
+ isViewAllLink: s = !1,
13
+ label: m,
14
+ navGroup: l,
15
+ navType: r,
16
+ onClick: o,
17
+ element: d = N,
18
+ ...f
19
+ }, p) => /* @__PURE__ */ a(
9
20
  "li",
10
21
  {
11
- ...d,
22
+ ...f,
12
23
  onClick: o,
13
24
  "data-testid": `nav-item-${m}`,
14
- className: f(`${i}-nav__item`, s, t),
25
+ className: v(`${i}-nav__item`, l, t, {
26
+ "view-all": s
27
+ }),
15
28
  ref: p,
16
- children: /* @__PURE__ */ c(l, { href: n, variant: r || N.snwHeaderLink, children: [
29
+ children: /* @__PURE__ */ c(d, { href: n, variant: r || _.snwHeaderLink, children: [
17
30
  /* @__PURE__ */ a("span", { className: `${i}-nav__item--label`, children: m }),
18
31
  e ? /* @__PURE__ */ a("span", { className: `${i}-nav__item--badge `, children: ` • ${e}` }) : null
19
32
  ] })
20
33
  }
21
34
  )
22
35
  );
23
- $.displayName = "NavigationItem";
36
+ h.displayName = "NavigationItem";
24
37
  export {
25
- $ as default
38
+ h as default
26
39
  };
@@ -0,0 +1,19 @@
1
+ import { ComponentProps } from 'react';
2
+ import React from 'react';
3
+ export interface PageContentWrapperProps extends ComponentProps<'div'> {
4
+ /**
5
+ * Contents on a page that are flanked by a Page/Margin in figma
6
+ */
7
+ children: React.ReactNode;
8
+ }
9
+ /**
10
+ * ## Overview
11
+ *
12
+ * This component wraps content on a page to maintain consistent page padding
13
+ *
14
+ * [Figma Link](https://www.figma.com/design/hxqgsE26wM7hII0WaUaDfF/RW---TIMED-Lot-Details-(PDP)?node-id=1-1309&node-type=frame&m=dev) points to Lot Details page, which is wrapped in this
15
+ *
16
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-pagecontentwrapper--overview)
17
+ */
18
+ declare const PageContentWrapper: React.ForwardRefExoticComponent<Omit<PageContentWrapperProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ export default PageContentWrapper;
@@ -0,0 +1,14 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as n } from "react";
3
+ import { getCommonProps as p } from "../../utils/index.js";
4
+ import f from "../../node_modules/classnames/index.js";
5
+ const c = n(
6
+ ({ children: e, className: o, ...a }, r) => {
7
+ const { className: m, ...s } = p(a, "PageContentWrapper");
8
+ return /* @__PURE__ */ t("div", { ...s, className: f(m, o), ...a, ref: r, children: e });
9
+ }
10
+ );
11
+ c.displayName = "PageContentWrapper";
12
+ export {
13
+ c as default
14
+ };
package/dist/index.d.ts CHANGED
@@ -43,3 +43,4 @@ export * from './patterns/LanguageSelector';
43
43
  export * from './components/ContentPeek';
44
44
  export * from './components/Collapsible';
45
45
  export * from './providers/SeldonProvider';
46
+ export { default as PageContentWrapper } from './components/PageContentWrapper/PageContentWrapper';
package/dist/index.js CHANGED
@@ -12,10 +12,10 @@ import { default as E } from "./components/Navigation/NavigationItem/NavigationI
12
12
  import { default as M } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
13
13
  import { default as R } from "./components/Navigation/NavigationList/NavigationList.js";
14
14
  import { default as z } from "./patterns/HeroBanner/HeroBanner.js";
15
- import { default as Y } from "./components/Input/Input.js";
16
- import { default as q } from "./components/Link/Link.js";
17
- import { LinkVariants as K } from "./components/Link/types.js";
18
- import { default as W } from "./components/LinkBlock/LinkBlock.js";
15
+ import { default as W } from "./components/Input/Input.js";
16
+ import { default as j } from "./components/Link/Link.js";
17
+ import { LinkVariants as J } from "./components/Link/types.js";
18
+ import { default as Q } from "./components/LinkBlock/LinkBlock.js";
19
19
  import { default as Z } from "./components/LinkList/LinkList.js";
20
20
  import { default as $ } from "./components/Row/Row.js";
21
21
  import { default as oe } from "./components/GridItem/GridItem.js";
@@ -41,14 +41,15 @@ import { SupportedLanguages as Re } from "./types/commonTypes.js";
41
41
  import { default as ze } from "./components/Breadcrumb/Breadcrumb.js";
42
42
  import "react/jsx-runtime";
43
43
  import "./node_modules/classnames/index.js";
44
- import { default as Ye } from "./components/Dropdown/Dropdown.js";
45
- import { default as qe } from "./components/Video/Video.js";
46
- import { default as Ke } from "./patterns/LanguageSelector/LanguageSelector.js";
47
- import { default as We } from "./components/ContentPeek/ContentPeek.js";
44
+ import { default as We } from "./components/Dropdown/Dropdown.js";
45
+ import { default as je } from "./components/Video/Video.js";
46
+ import { default as Je } from "./patterns/LanguageSelector/LanguageSelector.js";
47
+ import { default as Qe } from "./components/ContentPeek/ContentPeek.js";
48
48
  import { default as Ze } from "./components/Collapsible/Collapsible.js";
49
49
  import { default as $e } from "./components/Collapsible/CollapsibleContent.js";
50
50
  import { default as oo } from "./components/Collapsible/CollapsibleTrigger.js";
51
51
  import { SeldonProvider as to } from "./providers/SeldonProvider.js";
52
+ import { default as fo } from "./components/PageContentWrapper/PageContentWrapper.js";
52
53
  export {
53
54
  Ae as Accordion,
54
55
  Ge as AccordionItem,
@@ -59,9 +60,9 @@ export {
59
60
  Ze as Collapsible,
60
61
  $e as CollapsibleContent,
61
62
  oo as CollapsibleTrigger,
62
- We as ContentPeek,
63
+ Qe as ContentPeek,
63
64
  ke as Drawer,
64
- Ye as Dropdown,
65
+ We as Dropdown,
65
66
  B as ErrorBoundary,
66
67
  N as Footer,
67
68
  v as Grid,
@@ -70,12 +71,12 @@ export {
70
71
  A as Header,
71
72
  z as HeroBanner,
72
73
  T as IconButton,
73
- Y as Input,
74
- Ke as LanguageSelector,
75
- q as Link,
76
- W as LinkBlock,
74
+ W as Input,
75
+ Je as LanguageSelector,
76
+ j as Link,
77
+ Q as LinkBlock,
77
78
  Z as LinkList,
78
- K as LinkVariants,
79
+ J as LinkVariants,
79
80
  Pe as Modal,
80
81
  G as Navigation,
81
82
  E as NavigationItem,
@@ -83,6 +84,7 @@ export {
83
84
  R as NavigationList,
84
85
  a as PaddingTokens,
85
86
  S as Page,
87
+ fo as PageContentWrapper,
86
88
  Te as Pagination,
87
89
  $ as Row,
88
90
  fe as Search,
@@ -98,7 +100,7 @@ export {
98
100
  ve as Text,
99
101
  Ne as TextVariants,
100
102
  Ee as UserManagement,
101
- qe as Video,
103
+ je as Video,
102
104
  Se as ViewingsList,
103
105
  p as defaultYear,
104
106
  d as emailValidation,
@@ -34,6 +34,7 @@
34
34
  @use 'components/Video/video';
35
35
  @use 'components/Pagination/pagination';
36
36
  @use 'components/ContentPeek/contentPeek';
37
+ @use 'components/PageContentWrapper/pageContentWrapper';
37
38
 
38
39
  // Patterns
39
40
  @use 'patterns/HeroBanner/heroBanner';
@@ -77,18 +77,8 @@
77
77
  padding-bottom: 0.625rem;
78
78
  }
79
79
  }
80
- }
81
-
82
- &--end {
83
- @include isHeaderMobile {
84
- margin-top: $spacing-md;
85
- }
86
- }
87
-
88
- &--start {
89
- margin-right: 1rem;
90
80
 
91
- & li:last-child {
81
+ & .view-all {
92
82
  a {
93
83
  border-bottom: 0;
94
84
  padding: $spacing-sm 0;
@@ -99,6 +89,16 @@
99
89
  }
100
90
  }
101
91
  }
92
+ }
93
+
94
+ &--end {
95
+ @include isHeaderMobile {
96
+ margin-top: $spacing-md;
97
+ }
98
+ }
99
+
100
+ &--start {
101
+ margin-right: 1rem;
102
102
 
103
103
  @include isHeaderMobile {
104
104
  margin-right: 0;
@@ -0,0 +1,9 @@
1
+ @use '../../allPartials' as *;
2
+
3
+ .#{$px}-page-content-wrapper {
4
+ padding: 0 $padding-md;
5
+
6
+ @media (min-width: $breakpoint-xl) {
7
+ padding: 0 3.25rem;
8
+ }
9
+ }
@@ -1,10 +1,6 @@
1
1
  @use '../../allPartials' as *;
2
2
 
3
3
  .#{$px}-row {
4
- // horizontal padding is fixed
5
- padding-left: $spacing-lg;
6
- padding-right: $spacing-lg;
7
-
8
4
  * .#{$px}-text:last-child {
9
5
  margin-bottom: 0;
10
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.58.3",
3
+ "version": "1.59.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"