@phillips/seldon 1.22.0 → 1.22.2
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/fonts/Montserrat.woff +0 -0
- package/dist/fonts/Montserrat.woff2 +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +40 -34
- package/dist/scss/_typography.scss +19 -11
- package/dist/utils/index.js +28 -24
- package/package.json +4 -4
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -19,5 +19,5 @@ export { default as Social, type SocialProps } from './components/Social/Social'
|
|
|
19
19
|
export { default as ViewingsList, type ViewingsListProps } from './components/ViewingsList/ViewingsList';
|
|
20
20
|
export { default as StatefulViewingsList, type StatefulViewingsListProps, } from './components/ViewingsList/StatefulViewingsList';
|
|
21
21
|
export * from './components/Text';
|
|
22
|
-
export
|
|
22
|
+
export * from './utils';
|
|
23
23
|
export { default as Page } from './pages/Page';
|
package/dist/index.js
CHANGED
|
@@ -2,26 +2,26 @@ import { default as t } from "./components/Button/Button.js";
|
|
|
2
2
|
import { default as a } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
3
3
|
import { default as s } from "./components/Footer/Footer.js";
|
|
4
4
|
import { Grid as l } from "./components/Grid/Grid.js";
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
5
|
+
import { default as m } from "./components/Header/Header.js";
|
|
6
|
+
import { default as x } from "./components/HeroBanner/HeroBanner.js";
|
|
7
7
|
import { default as n } from "./components/Input/Input.js";
|
|
8
|
-
import { default as
|
|
9
|
-
import { LinkVariants as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
8
|
+
import { default as L } from "./components/Link/Link.js";
|
|
9
|
+
import { LinkVariants as P } from "./components/Link/utils.js";
|
|
10
|
+
import { default as V } from "./components/LinkBlock/LinkBlock.js";
|
|
11
|
+
import { default as B } from "./components/LinkList/LinkList.js";
|
|
12
|
+
import { default as w } from "./components/Row/Row.js";
|
|
13
13
|
import { default as T } from "./components/GridItem/GridItem.js";
|
|
14
14
|
import { GridItemAlign as H } from "./components/GridItem/types.js";
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { TextVariants as
|
|
22
|
-
import { default as
|
|
23
|
-
import { PaddingTokens as Q } from "./utils/index.js";
|
|
24
|
-
import { default as
|
|
15
|
+
import { default as y } from "./components/Select/Select.js";
|
|
16
|
+
import { default as A } from "./components/SplitPanel/SplitPanel.js";
|
|
17
|
+
import { default as E } from "./components/Subscribe/Subscribe.js";
|
|
18
|
+
import { default as O } from "./components/Social/Social.js";
|
|
19
|
+
import { default as Y } from "./components/ViewingsList/ViewingsList.js";
|
|
20
|
+
import { default as j } from "./components/ViewingsList/StatefulViewingsList.js";
|
|
21
|
+
import { TextVariants as v } from "./components/Text/types.js";
|
|
22
|
+
import { default as J } from "./components/Text/Text.js";
|
|
23
|
+
import { PaddingTokens as M, defaultYear as Q, emailValidation as U, generatePaddingClassName as W, noOp as X, px as Z, useNormalizedInputProps as _ } from "./utils/index.js";
|
|
24
|
+
import { default as ee } from "./pages/Page.js";
|
|
25
25
|
export {
|
|
26
26
|
t as Button,
|
|
27
27
|
a as ErrorBoundary,
|
|
@@ -29,22 +29,28 @@ export {
|
|
|
29
29
|
l as Grid,
|
|
30
30
|
T as GridItem,
|
|
31
31
|
H as GridItemAlign,
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
m as Header,
|
|
33
|
+
x as HeroBanner,
|
|
34
34
|
n as Input,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
L as Link,
|
|
36
|
+
V as LinkBlock,
|
|
37
|
+
B as LinkList,
|
|
38
|
+
P as LinkVariants,
|
|
39
|
+
M as PaddingTokens,
|
|
40
|
+
ee as Page,
|
|
41
|
+
w as Row,
|
|
42
|
+
y as Select,
|
|
43
|
+
O as Social,
|
|
44
|
+
A as SplitPanel,
|
|
45
|
+
j as StatefulViewingsList,
|
|
46
|
+
E as Subscribe,
|
|
47
|
+
J as Text,
|
|
48
|
+
v as TextVariants,
|
|
49
|
+
Y as ViewingsList,
|
|
50
|
+
Q as defaultYear,
|
|
51
|
+
U as emailValidation,
|
|
52
|
+
W as generatePaddingClassName,
|
|
53
|
+
X as noOp,
|
|
54
|
+
Z as px,
|
|
55
|
+
_ as useNormalizedInputProps
|
|
50
56
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
@import './vars';
|
|
2
2
|
|
|
3
|
-
// Design wants this replaced in the future with a local version of Montserrat
|
|
4
|
-
@import 'https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;0,500;0,600;0,700;1,400&display=swap';
|
|
5
|
-
|
|
6
3
|
html,
|
|
7
4
|
body {
|
|
8
5
|
font-family:
|
|
@@ -31,8 +28,8 @@ body {
|
|
|
31
28
|
/** Fonts **/
|
|
32
29
|
@font-face {
|
|
33
30
|
font-family: DistinctDisplay;
|
|
34
|
-
src: url('
|
|
35
|
-
src: url('
|
|
31
|
+
src: url('@phillips/seldon/dist/fonts/Distinct-Display.woff') format('woff');
|
|
32
|
+
src: url('@phillips/seldon/dist/fonts/Distinct-Display.woff2') format('woff2');
|
|
36
33
|
}
|
|
37
34
|
|
|
38
35
|
@mixin DistinctDisplay {
|
|
@@ -42,8 +39,8 @@ body {
|
|
|
42
39
|
@font-face {
|
|
43
40
|
font-family: DistinctDisplay;
|
|
44
41
|
font-style: italic;
|
|
45
|
-
src: url('
|
|
46
|
-
src: url('
|
|
42
|
+
src: url('@phillips/seldon/dist/fonts/Distinct-DisplayItalic.woff') format('woff');
|
|
43
|
+
src: url('@phillips/seldon/dist/fonts/Distinct-DisplayItalic.woff2') format('woff2');
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
@mixin DistinctDisplayItalic {
|
|
@@ -51,10 +48,21 @@ body {
|
|
|
51
48
|
font-style: italic;
|
|
52
49
|
}
|
|
53
50
|
|
|
51
|
+
/** Fonts **/
|
|
52
|
+
@font-face {
|
|
53
|
+
font-family: Montserrat;
|
|
54
|
+
src: url('@phillips/seldon/dist/fonts/Montserrat.woff') format('woff');
|
|
55
|
+
src: url('@phillips/seldon/dist/fonts/Montserrat.woff2') format('woff2');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@mixin Montserrat {
|
|
59
|
+
font-family: Montserrat, sans-serif;
|
|
60
|
+
}
|
|
61
|
+
|
|
54
62
|
@font-face {
|
|
55
63
|
font-family: Distinct;
|
|
56
|
-
src: url('
|
|
57
|
-
src: url('
|
|
64
|
+
src: url('@phillips/seldon/dist/fonts/Distinct-Text.woff') format('woff');
|
|
65
|
+
src: url('@phillips/seldon/dist/fonts/Distinct-Text.woff2') format('woff2');
|
|
58
66
|
}
|
|
59
67
|
|
|
60
68
|
@mixin DistinctText {
|
|
@@ -64,8 +72,8 @@ body {
|
|
|
64
72
|
@font-face {
|
|
65
73
|
font-family: Distinct;
|
|
66
74
|
font-style: italic;
|
|
67
|
-
src: url('
|
|
68
|
-
src: url('
|
|
75
|
+
src: url('@phillips/seldon/dist/fonts/Distinct-Italic.woff') format('woff');
|
|
76
|
+
src: url('@phillips/seldon/dist/fonts/Distinct-Italic.woff2') format('woff2');
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
@mixin DistinctItalic {
|
package/dist/utils/index.js
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
const n = "phillips";
|
|
3
|
+
var c = /* @__PURE__ */ ((i) => (i.xs = "xs", i.sm = "sm", i.md = "md", i.lg = "lg", i.xl = "xl", i))(c || {});
|
|
4
|
+
const v = () => {
|
|
5
|
+
};
|
|
6
|
+
function p({
|
|
7
|
+
disabled: i = !1,
|
|
8
|
+
id: l,
|
|
9
|
+
invalid: t = !1,
|
|
10
|
+
invalidText: o = "invalid",
|
|
11
|
+
readOnly: r = !1,
|
|
12
|
+
type: e,
|
|
13
|
+
warn: d = !1,
|
|
14
|
+
warnText: m
|
|
13
15
|
}) {
|
|
14
|
-
const
|
|
15
|
-
disabled: !
|
|
16
|
-
invalid: !
|
|
17
|
-
invalidId: `${
|
|
18
|
-
type:
|
|
19
|
-
warn: !
|
|
20
|
-
warnId: `${
|
|
16
|
+
const a = {
|
|
17
|
+
disabled: !r && i,
|
|
18
|
+
invalid: !r && !i && t,
|
|
19
|
+
invalidId: `${l}-error-msg`,
|
|
20
|
+
type: e === "toggle" ? "checkbox" : e,
|
|
21
|
+
warn: !r && !i && !t && d,
|
|
22
|
+
warnId: `${l}-warn-msg`,
|
|
21
23
|
validation: null
|
|
22
24
|
};
|
|
23
|
-
return
|
|
25
|
+
return a.invalid && (a.validation = /* @__PURE__ */ s("div", { className: `${n}-input__validation ${n}-${e}-input--invalid`, id: a.invalidId, children: o })), a.warn && (a.validation = /* @__PURE__ */ s("div", { className: `${n}-input__validation ${n}-${e}-input--warn`, id: a.warnId, children: m })), a;
|
|
24
26
|
}
|
|
25
|
-
const $ = (/* @__PURE__ */ new Date()).getFullYear(),
|
|
27
|
+
const $ = (/* @__PURE__ */ new Date()).getFullYear(), x = (i, l = "end", t = "vertical") => `${n}-padding-${t}-${i}-${l}`, f = (i) => /(.+)@(.+){2,}\.(.+){2,}/i.test(i);
|
|
26
28
|
export {
|
|
27
|
-
|
|
29
|
+
c as PaddingTokens,
|
|
28
30
|
$ as defaultYear,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
f as emailValidation,
|
|
32
|
+
x as generatePaddingClassName,
|
|
33
|
+
v as noOp,
|
|
34
|
+
n as px,
|
|
35
|
+
p as useNormalizedInputProps
|
|
32
36
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/PhillipsAuctionHouse/seldon"
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@storybook/addon-essentials": "^8.1.4",
|
|
53
53
|
"@storybook/addon-interactions": "^8.1.4",
|
|
54
54
|
"@storybook/addon-links": "^8.1.4",
|
|
55
|
-
"@storybook/addon-mdx-gfm": "^8.1.
|
|
55
|
+
"@storybook/addon-mdx-gfm": "^8.1.5",
|
|
56
56
|
"@storybook/blocks": "^8.1.4",
|
|
57
57
|
"@storybook/react": "^8.1.4",
|
|
58
58
|
"@storybook/react-vite": "^8.1.4",
|
|
59
|
-
"@storybook/theming": "^8.1.
|
|
59
|
+
"@storybook/theming": "^8.1.5",
|
|
60
60
|
"@testing-library/jest-dom": "^6.4.5",
|
|
61
61
|
"@testing-library/react": "^14.0.0",
|
|
62
62
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"rimraf": "^5.0.7",
|
|
81
81
|
"rollup-plugin-copy": "^3.5.0",
|
|
82
82
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
83
|
-
"sass": "^1.77.
|
|
83
|
+
"sass": "^1.77.3",
|
|
84
84
|
"semantic-release": "^23.1.1",
|
|
85
85
|
"storybook": "^8.1.4",
|
|
86
86
|
"stylelint": "^16.6.1",
|