@phillips/seldon 1.58.4 → 1.59.1

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.
@@ -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,
@@ -1,4 +1,4 @@
1
- import { __module as t } from "../../_virtual/index5.js";
1
+ import { __module as t } from "../../_virtual/index6.js";
2
2
  /*!
3
3
  Copyright (c) 2015 Jed Watson.
4
4
  Based on code that is Copyright 2013-2015, Facebook, Inc.
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../../_virtual/index6.js";
1
+ import { __module as e } from "../../../../_virtual/index5.js";
2
2
  import { __require as o } from "./cjs/react-is.production.min.js";
3
3
  import { __require as t } from "./cjs/react-is.development.js";
4
4
  var r;
@@ -36,6 +36,8 @@ h3,
36
36
  h4,
37
37
  h5,
38
38
  h6 {
39
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list */
40
+ font-weight: unset;
39
41
  overflow-wrap: break-word;
40
42
  }
41
43
 
@@ -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';
@@ -7,8 +7,8 @@
7
7
  position: absolute;
8
8
  }
9
9
 
10
- &:focus {
11
- &:focus {
10
+ &:focus-visible {
11
+ &:focus-visible {
12
12
  outline: 0.5px solid $soft-black;
13
13
  outline-offset: -4.5px;
14
14
 
@@ -160,6 +160,7 @@ $lg: #{$px}-input--lg;
160
160
  width: fit-content;
161
161
  }
162
162
  .#{$px}-select-input .#{$px}-input__input {
163
+ background: transparent;
163
164
  width: fit-content;
164
165
  }
165
166
 
@@ -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
+ }
@@ -4,7 +4,7 @@
4
4
  align-items: center;
5
5
  display: flex;
6
6
  flex-direction: row;
7
- gap: $spacing-md;
7
+ gap: $spacing-sm;
8
8
  }
9
9
 
10
10
  .#{$px} {
@@ -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.4",
3
+ "version": "1.59.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"