@phillips/seldon 1.25.0 → 1.26.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.
@@ -2,16 +2,14 @@ function n(e) {
2
2
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
3
3
  }
4
4
  function c(e) {
5
- if (e.__esModule)
6
- return e;
5
+ if (e.__esModule) return e;
7
6
  var o = e.default;
8
7
  if (typeof o == "function") {
9
8
  var t = function r() {
10
9
  return this instanceof r ? Reflect.construct(o, arguments, this.constructor) : o.apply(this, arguments);
11
10
  };
12
11
  t.prototype = o.prototype;
13
- } else
14
- t = {};
12
+ } else t = {};
15
13
  return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
16
14
  var u = Object.getOwnPropertyDescriptor(e, r);
17
15
  Object.defineProperty(t, r, u.get ? u : {
@@ -1,6 +1,6 @@
1
1
  var i = Object.defineProperty;
2
- var c = (t, r, o) => r in t ? i(t, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[r] = o;
3
- var e = (t, r, o) => (c(t, typeof r != "symbol" ? r + "" : r, o), o);
2
+ var c = (o, r, t) => r in o ? i(o, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[r] = t;
3
+ var e = (o, r, t) => c(o, typeof r != "symbol" ? r + "" : r, t);
4
4
  import { jsx as l } from "react/jsx-runtime";
5
5
  import * as p from "react";
6
6
  class h extends p.Component {
@@ -13,9 +13,9 @@ class h extends p.Component {
13
13
  static getDerivedStateFromError() {
14
14
  return { hasError: !0 };
15
15
  }
16
- componentDidCatch(o, n) {
16
+ componentDidCatch(t, n) {
17
17
  var a, s;
18
- (s = this.props) == null || s.logger(o, (a = n.componentStack) != null ? a : "ErrorBoundary caught an error");
18
+ (s = this.props) == null || s.logger(t, (a = n.componentStack) != null ? a : "ErrorBoundary caught an error");
19
19
  }
20
20
  render() {
21
21
  return this.state.hasError ? this.props.fallback || /* @__PURE__ */ l("h2", { children: "Sorry... An error occurred and we are looking into it" }) : this.props.children;
package/dist/index.d.ts CHANGED
@@ -16,7 +16,7 @@ export { GridItemAlign } from './components/GridItem/types';
16
16
  export { default as Select, type SelectProps } from './components/Select/Select';
17
17
  export { default as SplitPanel, type SplitPanelProps } from './components/SplitPanel/SplitPanel';
18
18
  export { default as Subscribe, type SubscribeProps } from './components/Subscribe/Subscribe';
19
- export { type SubscriptionState } from './components/Subscribe/types';
19
+ export { SubscriptionState } from './components/Subscribe/types';
20
20
  export { default as Social, type SocialProps } from './components/Social/Social';
21
21
  export { default as ViewingsList, type ViewingsListProps } from './components/ViewingsList/ViewingsList';
22
22
  export { default as Modal, type ModalProps } from './components/Modal/Modal';
package/dist/index.js CHANGED
@@ -1,33 +1,34 @@
1
- import { default as t } from "./components/Button/Button.js";
1
+ import { default as r } from "./components/Button/Button.js";
2
2
  import { default as a } from "./components/IconButton/IconButton.js";
3
- import { default as d } from "./components/ErrorBoundary/ErrorBoundary.js";
4
- import { default as s } from "./components/Footer/Footer.js";
3
+ import { default as s } from "./components/ErrorBoundary/ErrorBoundary.js";
4
+ import { default as l } from "./components/Footer/Footer.js";
5
5
  import { Grid as m } from "./components/Grid/Grid.js";
6
6
  import { default as x } from "./components/Header/Header.js";
7
7
  import { default as n } from "./components/HeroBanner/HeroBanner.js";
8
8
  import { default as L } from "./components/Input/Input.js";
9
9
  import { default as c } from "./components/Link/Link.js";
10
- import { LinkVariants as I } from "./components/Link/utils.js";
11
- import { default as S } from "./components/LinkBlock/LinkBlock.js";
12
- import { default as w } from "./components/LinkList/LinkList.js";
13
- import { default as T } from "./components/Row/Row.js";
10
+ import { LinkVariants as B } from "./components/Link/utils.js";
11
+ import { default as P } from "./components/LinkBlock/LinkBlock.js";
12
+ import { default as b } from "./components/LinkList/LinkList.js";
13
+ import { default as G } from "./components/Row/Row.js";
14
14
  import { default as H } from "./components/GridItem/GridItem.js";
15
15
  import { GridItemAlign as y } from "./components/GridItem/types.js";
16
16
  import { default as A } from "./components/Select/Select.js";
17
17
  import { default as E } from "./components/SplitPanel/SplitPanel.js";
18
18
  import { default as M } from "./components/Subscribe/Subscribe.js";
19
- import { default as R } from "./components/Social/Social.js";
20
- import { default as h } from "./components/ViewingsList/ViewingsList.js";
21
- import { default as q } from "./components/Modal/Modal.js";
22
- import { default as D } from "./components/ViewingsList/StatefulViewingsList.js";
23
- import { TextVariants as K } from "./components/Text/types.js";
24
- import { default as U } from "./components/Text/Text.js";
25
- import { PaddingTokens as X, defaultYear as Z, emailValidation as _, generatePaddingClassName as $, noOp as ee, px as re, useNormalizedInputProps as te } from "./utils/index.js";
26
- import { default as ae } from "./pages/Page.js";
19
+ import { SubscriptionState as R } from "./components/Subscribe/types.js";
20
+ import { default as h } from "./components/Social/Social.js";
21
+ import { default as q } from "./components/ViewingsList/ViewingsList.js";
22
+ import { default as D } from "./components/Modal/Modal.js";
23
+ import { default as K } from "./components/ViewingsList/StatefulViewingsList.js";
24
+ import { TextVariants as U } from "./components/Text/types.js";
25
+ import { default as X } from "./components/Text/Text.js";
26
+ import { PaddingTokens as _, defaultYear as $, emailValidation as ee, generatePaddingClassName as te, noOp as re, px as oe, useNormalizedInputProps as ae } from "./utils/index.js";
27
+ import { default as se } from "./pages/Page.js";
27
28
  export {
28
- t as Button,
29
- d as ErrorBoundary,
30
- s as Footer,
29
+ r as Button,
30
+ s as ErrorBoundary,
31
+ l as Footer,
31
32
  m as Grid,
32
33
  H as GridItem,
33
34
  y as GridItemAlign,
@@ -36,25 +37,26 @@ export {
36
37
  a as IconButton,
37
38
  L as Input,
38
39
  c as Link,
39
- S as LinkBlock,
40
- w as LinkList,
41
- I as LinkVariants,
42
- q as Modal,
43
- X as PaddingTokens,
44
- ae as Page,
45
- T as Row,
40
+ P as LinkBlock,
41
+ b as LinkList,
42
+ B as LinkVariants,
43
+ D as Modal,
44
+ _ as PaddingTokens,
45
+ se as Page,
46
+ G as Row,
46
47
  A as Select,
47
- R as Social,
48
+ h as Social,
48
49
  E as SplitPanel,
49
- D as StatefulViewingsList,
50
+ K as StatefulViewingsList,
50
51
  M as Subscribe,
51
- U as Text,
52
- K as TextVariants,
53
- h as ViewingsList,
54
- Z as defaultYear,
55
- _ as emailValidation,
56
- $ as generatePaddingClassName,
57
- ee as noOp,
58
- re as px,
59
- te as useNormalizedInputProps
52
+ R as SubscriptionState,
53
+ X as Text,
54
+ U as TextVariants,
55
+ q as ViewingsList,
56
+ $ as defaultYear,
57
+ ee as emailValidation,
58
+ te as generatePaddingClassName,
59
+ re as noOp,
60
+ oe as px,
61
+ ae as useNormalizedInputProps
60
62
  };
@@ -5,8 +5,7 @@ object-assign
5
5
  */
6
6
  var f, i;
7
7
  function p() {
8
- if (i)
9
- return f;
8
+ if (i) return f;
10
9
  i = 1;
11
10
  var u = Object.getOwnPropertySymbols, b = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
12
11
  function O(n) {
@@ -2,8 +2,7 @@ import { __require as E } from "./lib/ReactPropTypesSecret.js";
2
2
  import { __require as _ } from "./lib/has.js";
3
3
  var f, v;
4
4
  function P() {
5
- if (v)
6
- return f;
5
+ if (v) return f;
7
6
  v = 1;
8
7
  var o = function() {
9
8
  };
@@ -1,8 +1,7 @@
1
1
  import { __require as u } from "./lib/ReactPropTypesSecret.js";
2
2
  var o, p;
3
3
  function g() {
4
- if (p)
5
- return o;
4
+ if (p) return o;
6
5
  p = 1;
7
6
  var c = u();
8
7
  function n() {
@@ -5,8 +5,7 @@ import { __require as re } from "./lib/has.js";
5
5
  import { __require as ne } from "./checkPropTypes.js";
6
6
  var A, C;
7
7
  function oe() {
8
- if (C)
9
- return A;
8
+ if (C) return A;
10
9
  C = 1;
11
10
  var k = F(), W = N(), h = ee(), j = re(), R = ne(), T = function() {
12
11
  };
@@ -1,7 +1,6 @@
1
1
  var e, r;
2
2
  function _() {
3
- if (r)
4
- return e;
3
+ if (r) return e;
5
4
  r = 1;
6
5
  var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
7
6
  return e = t, e;
@@ -9,8 +9,7 @@ import { __exports as r } from "../../../../../_virtual/react-is.production.min.
9
9
  */
10
10
  var _;
11
11
  function g() {
12
- if (_)
13
- return r;
12
+ if (_) return r;
14
13
  _ = 1;
15
14
  var t = typeof Symbol == "function" && Symbol.for, a = t ? Symbol.for("react.element") : 60103, b = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, c = t ? Symbol.for("react.strict_mode") : 60108, f = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, s = t ? Symbol.for("react.context") : 60110, d = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, y = t ? Symbol.for("react.forward_ref") : 60112, l = t ? Symbol.for("react.suspense") : 60113, x = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, C = t ? Symbol.for("react.block") : 60121, M = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
16
15
  function o(e) {
@@ -20,8 +20,7 @@ import { t as _ } from "./tabbable.js";
20
20
  }
21
21
  var t = void 0, n = r.shiftKey, o = a[0], u = a[a.length - 1], i = v();
22
22
  if (e === i) {
23
- if (!n)
24
- return;
23
+ if (!n) return;
25
24
  t = u;
26
25
  }
27
26
  if (u === i && !n && (t = o), o === i && n && (t = u), t) {
@@ -21,8 +21,7 @@ import { __module as n } from "../../../../_virtual/tabbable.js";
21
21
  }
22
22
  function b(t) {
23
23
  var e = t.offsetWidth <= 0 && t.offsetHeight <= 0;
24
- if (e && !t.innerHTML)
25
- return !0;
24
+ if (e && !t.innerHTML) return !0;
26
25
  try {
27
26
  var r = window.getComputedStyle(t), o = r.getPropertyValue("display");
28
27
  return e ? o !== s && c(t, r) : o === d;
@@ -32,8 +31,7 @@ import { __module as n } from "../../../../_virtual/tabbable.js";
32
31
  }
33
32
  function l(t) {
34
33
  for (var e = t, r = t.getRootNode && t.getRootNode(); e && e !== document.body; ) {
35
- if (r && e === r && (e = r.host.parentNode), b(e))
36
- return !1;
34
+ if (r && e === r && (e = r.host.parentNode), b(e)) return !1;
37
35
  e = e.parentNode;
38
36
  }
39
37
  return !0;
@@ -6,6 +6,7 @@
6
6
  .#{$px}-footer {
7
7
  background-color: $off-white;
8
8
  border-top: 1px solid $keyline-gray;
9
+ margin: $spacing-lg 0 0;
9
10
  width: 100%;
10
11
 
11
12
  ul {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -46,20 +46,20 @@
46
46
  "@chromatic-com/storybook": "^1.5.0",
47
47
  "@commitlint/cli": "^19.3.0",
48
48
  "@commitlint/config-conventional": "^19.2.2",
49
- "@figma/code-connect": "^0.1.2",
49
+ "@figma/code-connect": "^0.2.0",
50
50
  "@semantic-release/changelog": "^6.0.3",
51
51
  "@semantic-release/git": "^10.0.1",
52
- "@semantic-release/github": "^10.0.5",
53
- "@storybook/addon-essentials": "^8.1.5",
52
+ "@semantic-release/github": "^10.0.6",
53
+ "@storybook/addon-essentials": "^8.1.9",
54
54
  "@storybook/addon-interactions": "^8.1.4",
55
55
  "@storybook/addon-links": "^8.1.4",
56
- "@storybook/addon-mdx-gfm": "^8.1.5",
56
+ "@storybook/addon-mdx-gfm": "^8.1.9",
57
57
  "@storybook/blocks": "^8.1.4",
58
58
  "@storybook/react": "^8.1.4",
59
59
  "@storybook/react-vite": "^8.1.4",
60
- "@storybook/theming": "^8.1.5",
61
- "@testing-library/jest-dom": "^6.4.5",
62
- "@testing-library/react": "^14.0.0",
60
+ "@storybook/theming": "^8.1.9",
61
+ "@testing-library/jest-dom": "^6.4.6",
62
+ "@testing-library/react": "^16.0.0",
63
63
  "@testing-library/user-event": "^14.5.2",
64
64
  "@types/color": "^3.0.6",
65
65
  "@types/react": "^18.3.3",
@@ -67,7 +67,7 @@
67
67
  "@types/react-modal": "^3.16.3",
68
68
  "@typescript-eslint/eslint-plugin": "^5.62.0",
69
69
  "@typescript-eslint/parser": "^5.62.0",
70
- "@vitejs/plugin-react": "^4.3.0",
70
+ "@vitejs/plugin-react": "^4.3.1",
71
71
  "@vitest/coverage-v8": "^1.6.0",
72
72
  "color": "^4.2.3",
73
73
  "eslint": "^8.57.0",
@@ -75,24 +75,24 @@
75
75
  "eslint-plugin-react-refresh": "^0.4.7",
76
76
  "eslint-plugin-storybook": "^0.8.0",
77
77
  "husky": "^9.0.11",
78
- "prettier": "3.3.0",
78
+ "prettier": "3.3.2",
79
79
  "react": "^18.3.1",
80
80
  "react-docgen-typescript": "^2.2.2",
81
81
  "react-dom": "^18.2.0",
82
82
  "rimraf": "^5.0.7",
83
83
  "rollup-plugin-copy": "^3.5.0",
84
84
  "rollup-plugin-peer-deps-external": "^2.2.4",
85
- "sass": "^1.77.4",
85
+ "sass": "^1.77.5",
86
86
  "semantic-release": "^23.1.1",
87
87
  "storybook": "^8.1.4",
88
88
  "stylelint": "^16.6.1",
89
89
  "stylelint-config-standard": "^36.0.0",
90
90
  "stylelint-config-standard-scss": "^13.1.0",
91
91
  "stylelint-order": "^6.0.4",
92
- "stylelint-scss": "^6.3.0",
92
+ "stylelint-scss": "^6.3.1",
93
93
  "ts-node": "^10.9.2",
94
94
  "typescript": "^5.4.5",
95
- "vite": "^5.2.12",
95
+ "vite": "^5.3.1",
96
96
  "vite-plugin-dts": "^2.3.0",
97
97
  "vite-plugin-svgr": "^4.2.0",
98
98
  "vite-tsconfig-paths": "^4.3.2",