@phillips/seldon 1.29.0 → 1.30.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.
- package/dist/assets/chevronNext.svg.js +4 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +20 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +11 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.d.ts +17 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js +23 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +78 -74
- package/dist/node_modules/exenv/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/scss/_vars.scss +1 -0
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +37 -0
- package/dist/scss/components/Button/_button.scss +3 -3
- package/dist/scss/components/DatePicker/_datePicker.scss +2 -2
- package/dist/scss/components/Footer/_footer.scss +4 -4
- package/dist/scss/components/Grid/_grid.scss +2 -2
- package/dist/scss/components/GridItem/_gridItem.scss +1 -1
- package/dist/scss/components/Header/_header.scss +1 -1
- package/dist/scss/components/HeroBanner/_heroBanner.scss +1 -1
- package/dist/scss/components/Input/_input.scss +2 -2
- package/dist/scss/components/Link/_link.scss +1 -1
- package/dist/scss/components/LinkBlock/_linkBlock.scss +2 -2
- package/dist/scss/components/LinkList/_linkList.scss +1 -1
- package/dist/scss/components/Modal/_modal.scss +2 -2
- package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +2 -10
- package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +1 -1
- package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +1 -1
- package/dist/scss/components/Navigation/_navigation.scss +1 -1
- package/dist/scss/components/Row/_row.scss +1 -1
- package/dist/scss/components/Search/_search.scss +2 -2
- package/dist/scss/components/Social/_social.scss +3 -3
- package/dist/scss/components/SplitPanel/_splitPanel.scss +2 -2
- package/dist/scss/components/SplitPanel/_splitPanel.stories.scss +1 -1
- package/dist/scss/components/Subscribe/_subscribe.scss +4 -4
- package/dist/scss/components/Text/_text.scss +1 -1
- package/dist/scss/components/Toggle/_toggle.scss +2 -2
- package/dist/scss/components/UserManagement/_userManagement.scss +1 -1
- package/dist/scss/components/ViewingsList/_viewingsList.scss +3 -3
- package/dist/scss/styles.scss +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='6'%20height='10'%20viewBox='0%200%206%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.630178%200.73557C0.944399%200.421477%201.45199%200.421477%201.76621%200.73557L5.46435%204.43222C5.77857%204.74631%205.77857%205.25369%205.46435%205.56779L1.76621%209.26443C1.45199%209.57852%200.944399%209.57852%200.630178%209.26443C0.315957%208.95034%200.315957%208.44295%200.630178%208.12886L3.75627%204.99597L0.630178%201.87114C0.315957%201.55705%200.324014%201.04161%200.630178%200.73557Z'%20fill='%23949494'/%3e%3c/svg%3e";
|
|
2
|
+
export {
|
|
3
|
+
e as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BreadcrumbItemProps } from './BreadcrumbItem';
|
|
3
|
+
export interface BreadcrumbProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* The items to be displayed in the Breadcrumb. The items will be displayed left
|
|
6
|
+
* to right in which they are ordered in the array (0 index being the first element)
|
|
7
|
+
*/
|
|
8
|
+
items: BreadcrumbItemProps[];
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* ## Overview
|
|
12
|
+
*
|
|
13
|
+
* Overview of Breadcrumb component
|
|
14
|
+
*
|
|
15
|
+
* [Figma Link](https://www.figma.com/design/xMuOXOAKVt5HC7hgYjF3ot/Components-v2.0?node-id=4530-104045&t=IK3N3sxxhS2I6uFh-0)
|
|
16
|
+
*
|
|
17
|
+
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-breadcrumb--overview)
|
|
18
|
+
*/
|
|
19
|
+
declare const Breadcrumb: ({ className, items, ...props }: BreadcrumbProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default Breadcrumb;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { getCommonProps as n } from "../../utils/index.js";
|
|
3
|
+
import t from "../../node_modules/classnames/index.js";
|
|
4
|
+
import b from "./BreadcrumbItem.js";
|
|
5
|
+
const h = ({ className: l, items: e = [], ...m }) => {
|
|
6
|
+
const { className: o, ...s } = n(m, "Breadcrumb");
|
|
7
|
+
return /* @__PURE__ */ a("nav", { "aria-label": "Breadcrumb", className: t(o, l), ...s, ...m, children: /* @__PURE__ */ a("ol", { children: e.map((r, c) => /* @__PURE__ */ a(b, { href: r.href, label: r.label, isCurrent: e.length - 1 === c }, r.label)) }) });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
h as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BreadcrumbItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Hypertext reference to navigate to breadcrumb item
|
|
5
|
+
*/
|
|
6
|
+
href?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the user is on the current item page or not
|
|
9
|
+
*/
|
|
10
|
+
isCurrent?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Label to display in the breadcrumb
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const BreadcrumbItem: ({ className, href, label, isCurrent, ...props }: BreadcrumbItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default BreadcrumbItem;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { getCommonProps as i } from "../../utils/index.js";
|
|
3
|
+
import m from "../../node_modules/classnames/index.js";
|
|
4
|
+
import u from "../../assets/chevronNext.svg.js";
|
|
5
|
+
const b = ({ className: a, href: s, label: c, isCurrent: r = !1, ...t }) => {
|
|
6
|
+
const { className: e, ...n } = i(t, "Breadcrumb"), l = r ? "page" : !1, f = r ? "" : s;
|
|
7
|
+
return /* @__PURE__ */ p("li", { children: [
|
|
8
|
+
/* @__PURE__ */ o(
|
|
9
|
+
"a",
|
|
10
|
+
{
|
|
11
|
+
"aria-current": l,
|
|
12
|
+
className: m(e, a, { [`${e}--current`]: r }),
|
|
13
|
+
href: f,
|
|
14
|
+
...n,
|
|
15
|
+
children: c
|
|
16
|
+
}
|
|
17
|
+
),
|
|
18
|
+
r ? null : /* @__PURE__ */ o("img", { className: m(e, a, "chevron"), src: u })
|
|
19
|
+
] });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
b as default
|
|
23
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -31,3 +31,4 @@ export { default as StatefulViewingsList, type StatefulViewingsListProps, } from
|
|
|
31
31
|
export * from './components/Text';
|
|
32
32
|
export { default as UserManagement, type UserManagementProps } from './components/UserManagement/UserManagement';
|
|
33
33
|
export * from './types/commonTypes';
|
|
34
|
+
export { Breadcrumb, type BreadcrumbProps } from './components/Breadcrumb';
|
package/dist/index.js
CHANGED
|
@@ -1,77 +1,81 @@
|
|
|
1
|
-
import { PaddingTokens as
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { Grid as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { LinkVariants as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { GridItemAlign as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { SubscriptionState as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { TextVariants as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { SupportedLanguages as
|
|
1
|
+
import { PaddingTokens as a, defaultYear as f, emailValidation as m, generatePaddingClassName as p, getCommonProps as s, noOp as d, px as l, useNormalizedInputProps as u } from "./utils/index.js";
|
|
2
|
+
import { default as x } from "./pages/Page.js";
|
|
3
|
+
import { default as g } from "./components/Button/Button.js";
|
|
4
|
+
import { default as S } from "./components/IconButton/IconButton.js";
|
|
5
|
+
import { default as I } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
6
|
+
import { default as B } from "./components/Footer/Footer.js";
|
|
7
|
+
import { Grid as P } from "./components/Grid/Grid.js";
|
|
8
|
+
import { default as b } from "./components/Header/Header.js";
|
|
9
|
+
import { default as T } from "./components/Navigation/Navigation.js";
|
|
10
|
+
import { default as G } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
11
|
+
import { default as H } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
|
|
12
|
+
import { default as h } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
13
|
+
import { default as z } from "./components/HeroBanner/HeroBanner.js";
|
|
14
|
+
import { default as E } from "./components/Input/Input.js";
|
|
15
|
+
import { default as O } from "./components/Link/Link.js";
|
|
16
|
+
import { LinkVariants as U } from "./components/Link/utils.js";
|
|
17
|
+
import { default as j } from "./components/LinkBlock/LinkBlock.js";
|
|
18
|
+
import { default as D } from "./components/LinkList/LinkList.js";
|
|
19
|
+
import { default as K } from "./components/Row/Row.js";
|
|
20
|
+
import { default as W } from "./components/GridItem/GridItem.js";
|
|
21
|
+
import { GridItemAlign as Z } from "./components/GridItem/types.js";
|
|
22
|
+
import { default as $ } from "./components/Search/Search.js";
|
|
23
|
+
import { default as te } from "./components/Select/Select.js";
|
|
24
|
+
import { default as oe } from "./components/SplitPanel/SplitPanel.js";
|
|
25
|
+
import { default as fe } from "./components/Subscribe/Subscribe.js";
|
|
26
|
+
import { SubscriptionState as pe } from "./components/Subscribe/types.js";
|
|
27
|
+
import { default as de } from "./components/Social/Social.js";
|
|
28
|
+
import { default as ue } from "./components/ViewingsList/ViewingsList.js";
|
|
29
|
+
import { default as xe } from "./components/Modal/Modal.js";
|
|
30
|
+
import { default as ge } from "./components/ViewingsList/StatefulViewingsList.js";
|
|
31
|
+
import { TextVariants as Se } from "./components/Text/types.js";
|
|
32
|
+
import { default as Ie } from "./components/Text/Text.js";
|
|
33
|
+
import { default as Be } from "./components/UserManagement/UserManagement.js";
|
|
34
|
+
import { SupportedLanguages as Pe } from "./types/commonTypes.js";
|
|
35
|
+
import { default as be } from "./components/Breadcrumb/Breadcrumb.js";
|
|
36
|
+
import "react/jsx-runtime";
|
|
37
|
+
import "./node_modules/classnames/index.js";
|
|
35
38
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
I as
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
W as
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
E as
|
|
47
|
-
|
|
48
|
-
j as
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
G as
|
|
54
|
-
H as
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
$ as
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
fe as
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
39
|
+
be as Breadcrumb,
|
|
40
|
+
g as Button,
|
|
41
|
+
I as ErrorBoundary,
|
|
42
|
+
B as Footer,
|
|
43
|
+
P as Grid,
|
|
44
|
+
W as GridItem,
|
|
45
|
+
Z as GridItemAlign,
|
|
46
|
+
b as Header,
|
|
47
|
+
z as HeroBanner,
|
|
48
|
+
S as IconButton,
|
|
49
|
+
E as Input,
|
|
50
|
+
O as Link,
|
|
51
|
+
j as LinkBlock,
|
|
52
|
+
D as LinkList,
|
|
53
|
+
U as LinkVariants,
|
|
54
|
+
xe as Modal,
|
|
55
|
+
T as Navigation,
|
|
56
|
+
G as NavigationItem,
|
|
57
|
+
H as NavigationItemTrigger,
|
|
58
|
+
h as NavigationList,
|
|
59
|
+
a as PaddingTokens,
|
|
60
|
+
x as Page,
|
|
61
|
+
K as Row,
|
|
62
|
+
$ as Search,
|
|
63
|
+
te as Select,
|
|
64
|
+
de as Social,
|
|
65
|
+
oe as SplitPanel,
|
|
66
|
+
ge as StatefulViewingsList,
|
|
67
|
+
fe as Subscribe,
|
|
68
|
+
pe as SubscriptionState,
|
|
69
|
+
Pe as SupportedLanguages,
|
|
70
|
+
Ie as Text,
|
|
71
|
+
Se as TextVariants,
|
|
72
|
+
Be as UserManagement,
|
|
73
|
+
ue as ViewingsList,
|
|
74
|
+
f as defaultYear,
|
|
75
|
+
m as emailValidation,
|
|
76
|
+
p as generatePaddingClassName,
|
|
73
77
|
s as getCommonProps,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
d as noOp,
|
|
79
|
+
l as px,
|
|
80
|
+
u as useNormalizedInputProps
|
|
77
81
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index4.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;
|
package/dist/scss/_vars.scss
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@import '../../_vars';
|
|
2
|
+
|
|
3
|
+
.#{$px}-breadcrumb {
|
|
4
|
+
@include text($body3);
|
|
5
|
+
|
|
6
|
+
color: $soft-black-2;
|
|
7
|
+
|
|
8
|
+
@media (max-width: $breakpoint-sm) {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
ol {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
|
|
16
|
+
li {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
|
|
20
|
+
a {
|
|
21
|
+
margin: $margin-sm;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
text-wrap: nowrap;
|
|
24
|
+
|
|
25
|
+
&:hover {
|
|
26
|
+
color: $widget-blue;
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&--current {
|
|
34
|
+
color: $primary-black;
|
|
35
|
+
font-weight: 700;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* stylelint-disable selector-class-pattern */
|
|
2
2
|
@import 'flatpickr/dist/flatpickr.css';
|
|
3
|
-
@import '
|
|
4
|
-
@import '
|
|
3
|
+
@import '../../vars';
|
|
4
|
+
@import '../../typography';
|
|
5
5
|
|
|
6
6
|
.flatpickr-calendar {
|
|
7
7
|
@include DistinctText;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '
|
|
3
|
-
@import '
|
|
4
|
-
@import '
|
|
1
|
+
@import '../../vars';
|
|
2
|
+
@import '../../utils';
|
|
3
|
+
@import '../../type';
|
|
4
|
+
@import '../../typography';
|
|
5
5
|
|
|
6
6
|
.#{$px}-footer {
|
|
7
7
|
background-color: $off-white;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '
|
|
1
|
+
@import '../../vars';
|
|
2
|
+
@import '../../typography';
|
|
3
3
|
|
|
4
4
|
.#{$px}-nav__item {
|
|
5
5
|
@media (max-width: #{$breakpoint-md - 1}) {
|
|
@@ -173,14 +173,6 @@
|
|
|
173
173
|
@media (min-width: $breakpoint-md) {
|
|
174
174
|
position: relative;
|
|
175
175
|
|
|
176
|
-
&:not(ul ul li):hover::before {
|
|
177
|
-
content: '';
|
|
178
|
-
height: 100%;
|
|
179
|
-
position: absolute;
|
|
180
|
-
top: 0;
|
|
181
|
-
width: 100%;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
176
|
&:not(ul ul li) a:focus,
|
|
185
177
|
&:not(ul ul li) button:focus,
|
|
186
178
|
&:not(ul ul li) p:focus {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import '
|
|
1
|
+
@import '../../vars';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '
|
|
3
|
-
@import '
|
|
4
|
-
@import '
|
|
1
|
+
@import '../../vars';
|
|
2
|
+
@import '../../utils';
|
|
3
|
+
@import '../../type';
|
|
4
|
+
@import '../../typography';
|
|
5
5
|
|
|
6
6
|
.#{$px}-subscribe {
|
|
7
7
|
max-width: 30rem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import '
|
|
2
|
-
@import '
|
|
3
|
-
@import '
|
|
1
|
+
@import '../../vars';
|
|
2
|
+
@import '../../utils';
|
|
3
|
+
@import '../../typography';
|
|
4
4
|
|
|
5
5
|
.#{$px}-viewings-list {
|
|
6
6
|
align-items: center;
|
package/dist/scss/styles.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/PhillipsAuctionHouse/seldon"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@semantic-release/changelog": "^6.0.3",
|
|
53
53
|
"@semantic-release/git": "^10.0.1",
|
|
54
54
|
"@semantic-release/github": "^10.1.0",
|
|
55
|
-
"@storybook/addon-essentials": "^8.1
|
|
55
|
+
"@storybook/addon-essentials": "^8.2.1",
|
|
56
56
|
"@storybook/addon-interactions": "^8.1.4",
|
|
57
57
|
"@storybook/addon-links": "^8.1.4",
|
|
58
58
|
"@storybook/addon-mdx-gfm": "^8.1.11",
|