@phillips/seldon 1.19.1 → 1.19.3
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/ErrorBoundary/ErrorBoundary.js +12 -12
- package/dist/components/LinkBlock/LinkBlock.js +12 -11
- package/dist/scss/_typography.scss +1 -1
- package/dist/scss/_vars.scss +5 -5
- package/dist/scss/components/Grid/_grid.scss +2 -2
- package/dist/scss/components/Header/_header.scss +1 -1
- package/dist/scss/components/HeroBanner/_heroBanner.scss +4 -4
- package/dist/scss/components/Input/_input.scss +1 -1
- package/dist/scss/components/Toggle/_toggle.scss +1 -1
- package/package.json +16 -15
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var e = (t, r, o) => (
|
|
4
|
-
import { jsx as
|
|
5
|
-
import * as
|
|
6
|
-
class
|
|
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);
|
|
4
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
+
import * as p from "react";
|
|
6
|
+
class h extends p.Component {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
9
|
e(this, "state", {
|
|
@@ -13,17 +13,17 @@ class p extends l.Component {
|
|
|
13
13
|
static getDerivedStateFromError() {
|
|
14
14
|
return { hasError: !0 };
|
|
15
15
|
}
|
|
16
|
-
componentDidCatch(o,
|
|
17
|
-
var a;
|
|
18
|
-
(
|
|
16
|
+
componentDidCatch(o, n) {
|
|
17
|
+
var a, s;
|
|
18
|
+
(s = this.props) == null || s.logger(o, (a = n.componentStack) != null ? a : "ErrorBoundary caught an error");
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return this.state.hasError ? this.props.fallback || /* @__PURE__ */
|
|
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;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
e(
|
|
24
|
+
e(h, "defaultProps", {
|
|
25
25
|
logger: console.log
|
|
26
26
|
});
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
h as default
|
|
29
29
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { px as
|
|
4
|
-
import
|
|
5
|
-
import { LinkVariants as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/* @__PURE__ */
|
|
1
|
+
import { jsxs as k, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import d from "../../node_modules/classnames/index.js";
|
|
3
|
+
import { px as p } from "../../utils/index.js";
|
|
4
|
+
import f from "../Link/Link.js";
|
|
5
|
+
import { LinkVariants as b } from "../Link/utils.js";
|
|
6
|
+
const j = ({ linkProps: s, description: e, className: l, id: t, ...m }) => {
|
|
7
|
+
var o;
|
|
8
|
+
const a = `${p}-link-block`, r = d(a, l), c = (o = s.element) != null ? o : f, n = t ? `link-block-${t}` : "link-block";
|
|
9
|
+
return /* @__PURE__ */ k("div", { ...m, className: r, id: t, "data-testid": n, children: [
|
|
10
|
+
/* @__PURE__ */ i(c, { ...s, "data-testid": `${n}-link`, variant: b.list }),
|
|
11
|
+
/* @__PURE__ */ i("p", { className: `${a}__description`, children: e })
|
|
11
12
|
] });
|
|
12
13
|
};
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
j as default
|
|
15
16
|
};
|
package/dist/scss/_vars.scss
CHANGED
|
@@ -22,7 +22,7 @@ $off-white: #f4f2f1;
|
|
|
22
22
|
|
|
23
23
|
// Notification color palette
|
|
24
24
|
$error-red: #f00;
|
|
25
|
-
$error-pink:
|
|
25
|
+
$error-pink: rgba(255, 229, 229, 90%);
|
|
26
26
|
$warn-yellow: #d6d141;
|
|
27
27
|
$post-sale-pink: #ff0086;
|
|
28
28
|
$cta-blue: #4a90e2;
|
|
@@ -104,7 +104,7 @@ $body3: 'body3';
|
|
|
104
104
|
--label-size2: 1rem;
|
|
105
105
|
--label-size3: 0.75rem;
|
|
106
106
|
|
|
107
|
-
@media (width
|
|
107
|
+
@media (max-width: 960px) {
|
|
108
108
|
--heading-size0: 2.59rem;
|
|
109
109
|
--heading-size1: 1.83rem;
|
|
110
110
|
--heading-size2: 1.46rem;
|
|
@@ -118,7 +118,7 @@ $body3: 'body3';
|
|
|
118
118
|
--label-size3: 0.56rem;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
@media (width
|
|
121
|
+
@media (min-width: 1801px) {
|
|
122
122
|
--heading-size0: 4.06rem;
|
|
123
123
|
--heading-size1: 3.05rem;
|
|
124
124
|
--heading-size2: 2.44rem;
|
|
@@ -170,7 +170,7 @@ $text-badge-label-size: var(--label-size3);
|
|
|
170
170
|
--spacing-large: 3rem;
|
|
171
171
|
--spacing-xl: 6rem;
|
|
172
172
|
|
|
173
|
-
@media (width
|
|
173
|
+
@media (max-width: 960px) {
|
|
174
174
|
--spacing-micro: 0.19rem;
|
|
175
175
|
--spacing-xsm: 0.38rem;
|
|
176
176
|
--spacing-small: 0.75rem;
|
|
@@ -179,7 +179,7 @@ $text-badge-label-size: var(--label-size3);
|
|
|
179
179
|
--spacing-xl: 4.8rem;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
-
@media (width
|
|
182
|
+
@media (min-width: 1801px) {
|
|
183
183
|
--spacing-micro: 0.31rem;
|
|
184
184
|
--spacing-xsm: 0.63rem;
|
|
185
185
|
--spacing-small: 1.25rem;
|
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
&__container--has-margins {
|
|
10
10
|
margin: 0 $spacing-medium;
|
|
11
11
|
|
|
12
|
-
@media (width
|
|
12
|
+
@media (min-width: 1401px) {
|
|
13
13
|
margin: 0 $spacing-large;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@media (width
|
|
16
|
+
@media (min-width: 1801px) {
|
|
17
17
|
margin: 0 $spacing-xl;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
padding: 1rem;
|
|
14
14
|
width: 100%;
|
|
15
15
|
|
|
16
|
-
@media (width
|
|
16
|
+
@media (max-width: 28.8125rem) {
|
|
17
17
|
align-items: center;
|
|
18
18
|
align-self: stretch;
|
|
19
19
|
background: $pure-black;
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
font-size: 0.75rem;
|
|
71
71
|
gap: 1.875rem;
|
|
72
72
|
|
|
73
|
-
@media (width
|
|
73
|
+
@media (min-width: 28.8125rem) {
|
|
74
74
|
font-size: 0.875rem;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
@media (width
|
|
77
|
+
@media (max-width: 28.8125rem) {
|
|
78
78
|
align-items: center;
|
|
79
79
|
flex-direction: column;
|
|
80
80
|
gap: 1rem;
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
margin: 1.875rem 0;
|
|
91
91
|
text-align: center;
|
|
92
92
|
|
|
93
|
-
@media (width
|
|
93
|
+
@media (min-width: 28.8125rem) {
|
|
94
94
|
font-size: 2.375rem;
|
|
95
95
|
}
|
|
96
96
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/PhillipsAuctionHouse/seldon"
|
|
@@ -49,45 +49,46 @@
|
|
|
49
49
|
"@semantic-release/github": "^10.0.3",
|
|
50
50
|
"@storybook/addon-essentials": "^7.6.18",
|
|
51
51
|
"@storybook/addon-interactions": "^7.0.22",
|
|
52
|
-
"@storybook/addon-links": "^7.6.
|
|
52
|
+
"@storybook/addon-links": "^7.6.19",
|
|
53
53
|
"@storybook/addon-styling": "^1.3.7",
|
|
54
54
|
"@storybook/blocks": "^7.0.22",
|
|
55
55
|
"@storybook/react": "^7.0.22",
|
|
56
|
-
"@storybook/react-vite": "^7.6.
|
|
56
|
+
"@storybook/react-vite": "^7.6.19",
|
|
57
57
|
"@testing-library/jest-dom": "^5.17.0",
|
|
58
58
|
"@testing-library/react": "^14.0.0",
|
|
59
59
|
"@testing-library/user-event": "^14.5.2",
|
|
60
60
|
"@types/color": "^3.0.6",
|
|
61
|
-
"@types/jest": "^29.5.
|
|
62
|
-
"@types/react": "^18.3.
|
|
61
|
+
"@types/jest": "^29.5.12",
|
|
62
|
+
"@types/react": "^18.3.2",
|
|
63
63
|
"@types/react-dom": "^18.0.11",
|
|
64
64
|
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
65
|
-
"@typescript-eslint/parser": "^5.
|
|
66
|
-
"@vitejs/plugin-react": "^4.
|
|
65
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
66
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
67
67
|
"color": "^4.2.3",
|
|
68
|
-
"eslint": "^8.
|
|
68
|
+
"eslint": "^8.57.0",
|
|
69
69
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
70
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
70
|
+
"eslint-plugin-react-refresh": "^0.4.7",
|
|
71
71
|
"eslint-plugin-storybook": "^0.8.0",
|
|
72
72
|
"husky": "^9.0.11",
|
|
73
|
-
"jest": "^29.
|
|
73
|
+
"jest": "^29.7.0",
|
|
74
74
|
"jest-environment-jsdom": "^29.6.1",
|
|
75
|
-
"prettier": "3.
|
|
76
|
-
"react-docgen-typescript": "^2.2.2",
|
|
75
|
+
"prettier": "3.2.5",
|
|
77
76
|
"react": "^18.3.1",
|
|
77
|
+
"react-docgen-typescript": "^2.2.2",
|
|
78
78
|
"react-dom": "^18.2.0",
|
|
79
79
|
"rimraf": "^5.0.5",
|
|
80
80
|
"rollup-plugin-copy": "^3.5.0",
|
|
81
81
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
82
|
-
"sass": "^1.
|
|
83
|
-
"semantic-release": "^
|
|
84
|
-
"storybook": "^7.6.
|
|
82
|
+
"sass": "^1.77.0",
|
|
83
|
+
"semantic-release": "^23.0.8",
|
|
84
|
+
"storybook": "^7.6.19",
|
|
85
85
|
"stylelint": "^16.4.0",
|
|
86
86
|
"stylelint-config-standard": "^36.0.0",
|
|
87
87
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
88
88
|
"stylelint-order": "^6.0.4",
|
|
89
89
|
"stylelint-scss": "^6.2.1",
|
|
90
90
|
"ts-jest": "^29.1.2",
|
|
91
|
+
"ts-node": "^10.9.2",
|
|
91
92
|
"typescript": "^5.0.2",
|
|
92
93
|
"vite": "^4.5.3",
|
|
93
94
|
"vite-plugin-dts": "^2.3.0",
|