@phillips/seldon 1.130.0 → 1.131.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/components/GridItem/GridItem.d.ts +35 -2
- package/dist/components/GridItem/GridItem.js +35 -25
- package/dist/components/GridItem/GridItem.stories.d.ts +16 -2
- package/dist/components/GridItem/gridItemUtils.d.ts +2 -2
- package/dist/components/GridItem/gridItemUtils.js +10 -7
- package/dist/components/Search/Search.js +73 -74
- package/dist/index.js +232 -231
- 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/_type.scss +1 -1
- package/dist/scss/_vars.scss +4 -3
- package/dist/scss/components/GridItem/_gridItem.scss +39 -1
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.js +44 -43
- package/package.json +1 -1
|
@@ -6,12 +6,45 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
6
6
|
*/
|
|
7
7
|
align?: GridItemAlign;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Determines how many columns this GridItem spans at the xs breakpoint, defaults to the maximum of 2 columns. If there are less than 2 columns in the Grid at the xs breakpoint it will be centered.
|
|
10
10
|
*/
|
|
11
11
|
xs?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Determines how many columns this GridItem spans at the sm breakpoint, defaults to the maximum of 2 columns. If there are less than 2 columns in the Grid at the sm breakpoint it will be centered.
|
|
14
|
+
*/
|
|
12
15
|
sm?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Determines how many columns this GridItem spans at the md breakpoint, defaults to the maximum of 6 columns. If there are less than 6 columns in the Grid at the md breakpoint they will be centered.
|
|
18
|
+
*/
|
|
13
19
|
md?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Determines how many columns this GridItem spans at the lg breakpoint, defaults to the maximum of 12 columns. If there are less than 2 columns in the Grid at the lg breakpoint they will be centered.
|
|
22
|
+
*/
|
|
14
23
|
lg?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Determines how many columns this GridItem spans at the xl breakpoint, defaults to the maximum of 12 columns. If there are less than 2 columns in the Grid at the xl breakpoint they will be centered.
|
|
26
|
+
*/
|
|
27
|
+
xl?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The starting column for this GridItem at the xs breakpoint. If omitted, the GridItem will be placed in the next available column. Setting this value will override the alignment setting at the xs breakpoint.
|
|
30
|
+
*/
|
|
31
|
+
xsColStart?: number;
|
|
32
|
+
/**
|
|
33
|
+
* The starting column for this GridItem at the sm breakpoint. If omitted, the GridItem will be placed in the next available column. Setting this value will override the alignment setting at the sm breakpoint.
|
|
34
|
+
*/
|
|
35
|
+
smColStart?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The starting column for this GridItem at the md breakpoint. If omitted, the GridItem will be placed in the next available column. Setting this value will override the alignment setting at the md breakpoint.
|
|
38
|
+
*/
|
|
39
|
+
mdColStart?: number;
|
|
40
|
+
/**
|
|
41
|
+
* The starting column for this GridItem at the lg breakpoint. If omitted, the GridItem will be placed in the next available column. Setting this value will override the alignment setting at the lg breakpoint.
|
|
42
|
+
*/
|
|
43
|
+
lgColStart?: number;
|
|
44
|
+
/**
|
|
45
|
+
* The starting column for this GridItem at the xl breakpoint. If omitted, the GridItem will be placed in the next available column. Setting this value will override the alignment setting at the xl breakpoint.
|
|
46
|
+
*/
|
|
47
|
+
xlColStart?: number;
|
|
15
48
|
/**
|
|
16
49
|
* Optional element to render as the top-level component e.g. 'div', 'span', CustomComponent, etc. Defaults to 'div'.
|
|
17
50
|
*/
|
|
@@ -27,5 +60,5 @@ export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
27
60
|
*
|
|
28
61
|
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-layouts-griditem--overview)
|
|
29
62
|
*/
|
|
30
|
-
declare const GridItem: ({ children, xs, sm, md, lg, align, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
63
|
+
declare const GridItem: ({ children, xs, sm, md, lg, xl, xsColStart, smColStart, mdColStart, lgColStart, xlColStart, align, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
31
64
|
export default GridItem;
|
|
@@ -1,30 +1,40 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useMemo as
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import { determineColumnSpanClassName as
|
|
6
|
-
import { GridItemAlign as
|
|
7
|
-
const
|
|
8
|
-
children:
|
|
9
|
-
xs:
|
|
10
|
-
sm:
|
|
11
|
-
md:
|
|
12
|
-
lg:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as m } from "react";
|
|
3
|
+
import { getCommonProps as k } from "../../utils/index.js";
|
|
4
|
+
import A from "../../node_modules/classnames/index.js";
|
|
5
|
+
import { determineColumnSpanClassName as C, validateColumnSpans as M } from "./gridItemUtils.js";
|
|
6
|
+
import { GridItemAlign as h } from "./types.js";
|
|
7
|
+
const F = ({
|
|
8
|
+
children: j,
|
|
9
|
+
xs: r = 2,
|
|
10
|
+
sm: n = 2,
|
|
11
|
+
md: o = 6,
|
|
12
|
+
lg: s = 12,
|
|
13
|
+
xl: t = 12,
|
|
14
|
+
xsColStart: a,
|
|
15
|
+
smColStart: i,
|
|
16
|
+
mdColStart: c,
|
|
17
|
+
lgColStart: p,
|
|
18
|
+
xlColStart: u,
|
|
19
|
+
align: l = h.center,
|
|
20
|
+
element: v = "div",
|
|
21
|
+
className: f,
|
|
22
|
+
...d
|
|
17
23
|
}) => {
|
|
18
|
-
const { className:
|
|
19
|
-
i,
|
|
24
|
+
const { className: I, ...G } = k(d, "GridItem"), e = m(() => ({ xs: r, sm: n, md: o, lg: s, xl: t }), [r, n, o, s, t]), P = m(
|
|
25
|
+
() => ({ xs: a, sm: i, md: c, lg: p, xl: u }),
|
|
26
|
+
[a, i, c, p, u]
|
|
27
|
+
), N = m(() => [
|
|
28
|
+
I,
|
|
20
29
|
// figure out the class names for each breakpoint
|
|
21
|
-
Object.entries(e).map(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
Object.entries(e).map(([b, B]) => {
|
|
31
|
+
const O = P[b];
|
|
32
|
+
return C(b, B, O, l);
|
|
33
|
+
}),
|
|
34
|
+
f
|
|
35
|
+
], [I, e, f, P, l]);
|
|
36
|
+
return M(Object.values(e)) ? /* @__PURE__ */ g(v, { ...G, className: A(N), ...d, children: j }) : null;
|
|
27
37
|
};
|
|
28
38
|
export {
|
|
29
|
-
|
|
39
|
+
F as default
|
|
30
40
|
};
|
|
@@ -2,13 +2,17 @@ import { GridItemProps } from './GridItem';
|
|
|
2
2
|
import { GridItemAlign } from './types';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ children, xs, sm, md, lg, align, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
component: ({ children, xs, sm, md, lg, xl, xsColStart, smColStart, mdColStart, lgColStart, xlColStart, align, element: Element, className, ...props }: GridItemProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
6
6
|
};
|
|
7
7
|
export default meta;
|
|
8
8
|
export declare const Playground: {
|
|
9
9
|
({ children, ...props }: GridItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
args: {
|
|
11
|
-
|
|
11
|
+
xs: number;
|
|
12
|
+
sm: number;
|
|
13
|
+
md: number;
|
|
14
|
+
lg: number;
|
|
15
|
+
align: GridItemAlign;
|
|
12
16
|
};
|
|
13
17
|
argTypes: {
|
|
14
18
|
align: {
|
|
@@ -26,5 +30,15 @@ export declare const CenteredGridItem: {
|
|
|
26
30
|
md: number;
|
|
27
31
|
lg: number;
|
|
28
32
|
};
|
|
33
|
+
argTypes: {
|
|
34
|
+
align: {
|
|
35
|
+
options: typeof GridItemAlign;
|
|
36
|
+
control: {
|
|
37
|
+
type: string;
|
|
38
|
+
options: GridItemAlign[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
29
42
|
};
|
|
30
43
|
export declare const LeftAndRightGridItems: () => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export declare const GridWithOffsetColumns: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import { BreakpointTokens } from '../../utils';
|
|
1
2
|
import { GridItemProps } from './GridItem';
|
|
2
|
-
|
|
3
|
-
export declare const determineColumnSpanClassName: (breakpoint: GridItemAlign, columnSpan: number, align?: GridItemProps["align"]) => string;
|
|
3
|
+
export declare const determineColumnSpanClassName: (breakpoint: BreakpointTokens, columnSpan: number, columnStart?: number, align?: GridItemProps["align"]) => string;
|
|
4
4
|
export declare const validateColumnSpans: (columnSpans: number[]) => boolean;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { px as
|
|
2
|
-
import { GridItemAlign as
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { px as r } from "../../utils/index.js";
|
|
2
|
+
import { GridItemAlign as n } from "./types.js";
|
|
3
|
+
const c = (e, s, t, a = n.center) => {
|
|
4
|
+
const l = `${r}-grid-item--span-${e}-${s}`, o = `${r}-grid-item--span-${e}-${s}-align-${t ? n.left : a}`, i = t ? `${r}-grid-item--start-${e}-${t}` : "";
|
|
5
|
+
return `${l} ${o} ${i}`.replace(/\s+/g, " ").trim();
|
|
6
|
+
}, g = (e) => {
|
|
7
|
+
for (let s = 0; s < e.length; s++) {
|
|
8
|
+
const t = e[s];
|
|
6
9
|
if (t > 12)
|
|
7
10
|
return console.warn("Column spans must be less than or equal to 12"), !1;
|
|
8
11
|
if (t < 1)
|
|
@@ -11,6 +14,6 @@ const l = (r, e, t = s.center) => `${n}-grid-item--span-${r}-${e} ${n}-grid-item
|
|
|
11
14
|
return !0;
|
|
12
15
|
};
|
|
13
16
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
c as determineColumnSpanClassName,
|
|
18
|
+
g as validateColumnSpans
|
|
16
19
|
};
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { getCommonProps as
|
|
1
|
+
import { jsx as t, jsxs as f } from "react/jsx-runtime";
|
|
2
|
+
import n, { useEffect as V } from "react";
|
|
3
|
+
import { getCommonProps as j, px as D, encodeURLSearchParams as $ } from "../../utils/index.js";
|
|
4
4
|
import p from "../../node_modules/classnames/index.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { TextVariants as
|
|
9
|
-
import
|
|
10
|
-
import { useOnClickOutside as
|
|
11
|
-
import { HeaderContext as
|
|
12
|
-
import { SearchButton as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
16
|
-
onSearch:
|
|
17
|
-
onCancel:
|
|
18
|
-
searchResults:
|
|
19
|
-
state:
|
|
20
|
-
defaultValue:
|
|
21
|
-
className:
|
|
5
|
+
import H from "../Input/Input.js";
|
|
6
|
+
import O from "../Link/Link.js";
|
|
7
|
+
import A from "./SearchResults/SearchResults.js";
|
|
8
|
+
import { TextVariants as F } from "../Text/types.js";
|
|
9
|
+
import K from "../Text/Text.js";
|
|
10
|
+
import { useOnClickOutside as M } from "../../node_modules/usehooks-ts/dist/index.js";
|
|
11
|
+
import { HeaderContext as U } from "../../site-furniture/Header/Header.js";
|
|
12
|
+
import { SearchButton as Z } from "./SearchButton.js";
|
|
13
|
+
import q from "../../node_modules/react-remove-scroll/dist/es2015/Combination.js";
|
|
14
|
+
import z from "../../node_modules/react-transition-group/esm/CSSTransition.js";
|
|
15
|
+
const ie = ({
|
|
16
|
+
onSearch: _,
|
|
17
|
+
onCancel: S,
|
|
18
|
+
searchResults: N = [],
|
|
19
|
+
state: o = "idle",
|
|
20
|
+
defaultValue: w = "",
|
|
21
|
+
className: C,
|
|
22
22
|
placeholder: I = "",
|
|
23
|
-
searchButtonText:
|
|
23
|
+
searchButtonText: i = "Search",
|
|
24
24
|
loadingText: E = "Search In Progress...",
|
|
25
25
|
invalidText: b = "Invalid search",
|
|
26
|
-
getAllResultsText:
|
|
27
|
-
getAllResultsLink:
|
|
28
|
-
...
|
|
26
|
+
getAllResultsText: P = (e) => `View all results for ${e}`,
|
|
27
|
+
getAllResultsLink: v = (e) => `/Search?Search=${e}`,
|
|
28
|
+
...x
|
|
29
29
|
}) => {
|
|
30
|
-
const { className: e, "data-testid":
|
|
31
|
-
|
|
30
|
+
const { className: e, "data-testid": c, ...k } = j(x, "Search"), l = n.useContext(U), d = n.useRef(null), m = n.useRef(null), R = n.useRef(null), a = l.isSearchExpanded, s = d.current?.value, [L, u] = n.useState(!0), T = _ ? (r) => {
|
|
31
|
+
_(r.target.value);
|
|
32
32
|
} : void 0;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
M(R, (r) => {
|
|
34
|
+
S?.(), h(!1), r.stopPropagation();
|
|
35
35
|
});
|
|
36
36
|
const g = (r) => {
|
|
37
37
|
if (r.stopPropagation(), r.key === "Enter") {
|
|
38
|
-
if (r.preventDefault(),
|
|
39
|
-
const
|
|
40
|
-
|
|
38
|
+
if (r.preventDefault(), s && s.length > 2) {
|
|
39
|
+
const y = $(v(s));
|
|
40
|
+
u(!1), window.location.href = y;
|
|
41
41
|
}
|
|
42
|
-
r.currentTarget instanceof HTMLAnchorElement && (
|
|
42
|
+
r.currentTarget instanceof HTMLAnchorElement && (u(!1), r.currentTarget.click());
|
|
43
43
|
}
|
|
44
|
-
r.key === "Escape" && (
|
|
44
|
+
r.key === "Escape" && (m.current?.reset(), l.setIsSearchExpanded(!1));
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
V(() => {
|
|
47
47
|
if (a) {
|
|
48
|
-
|
|
48
|
+
d.current?.focus();
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
51
|
}, [a]);
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const h = (r) => {
|
|
53
|
+
m.current?.reset(), l.setIsSearchExpanded(r);
|
|
54
54
|
};
|
|
55
|
-
return /* @__PURE__ */ t(
|
|
55
|
+
return /* @__PURE__ */ t(q, { enabled: a, allowPinchZoom: !0, removeScrollBar: !1, children: /* @__PURE__ */ t("div", { className: `${e}__container`, children: /* @__PURE__ */ f(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
58
|
className: `${e}__container__inner`,
|
|
59
|
-
ref:
|
|
59
|
+
ref: R,
|
|
60
60
|
onClick: (r) => {
|
|
61
|
-
a || (
|
|
61
|
+
a || (h(!0), r.stopPropagation());
|
|
62
62
|
},
|
|
63
63
|
children: [
|
|
64
|
-
/* @__PURE__ */ t(
|
|
64
|
+
/* @__PURE__ */ t(K, { variant: F.heading4, className: `${e}__container__inner__label`, children: i }),
|
|
65
65
|
/* @__PURE__ */ t(
|
|
66
66
|
"div",
|
|
67
67
|
{
|
|
68
|
-
...
|
|
69
|
-
className: p(e,
|
|
70
|
-
"data-testid":
|
|
68
|
+
...k,
|
|
69
|
+
className: p(e, C, { [`${e}--active`]: a }),
|
|
70
|
+
"data-testid": c,
|
|
71
71
|
role: "search",
|
|
72
|
-
...
|
|
73
|
-
children: /* @__PURE__ */
|
|
72
|
+
...x,
|
|
73
|
+
children: /* @__PURE__ */ f(
|
|
74
74
|
"form",
|
|
75
75
|
{
|
|
76
|
-
"data-testid": `${
|
|
76
|
+
"data-testid": `${c}-form`,
|
|
77
77
|
className: p(`${e}__form`, {
|
|
78
78
|
[`${e}__form--active`]: a
|
|
79
79
|
}),
|
|
80
|
-
ref:
|
|
80
|
+
ref: m,
|
|
81
81
|
children: [
|
|
82
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ f(
|
|
83
83
|
"div",
|
|
84
84
|
{
|
|
85
85
|
className: p(`${e}__content-wrapper`, {
|
|
@@ -89,62 +89,61 @@ const oe = ({
|
|
|
89
89
|
"aria-haspopup": "listbox",
|
|
90
90
|
children: [
|
|
91
91
|
/* @__PURE__ */ t(
|
|
92
|
-
|
|
92
|
+
z,
|
|
93
93
|
{
|
|
94
94
|
in: a,
|
|
95
|
-
classNames: `${
|
|
95
|
+
classNames: `${D}-input`,
|
|
96
96
|
addEndListener: () => {
|
|
97
97
|
},
|
|
98
98
|
children: /* @__PURE__ */ t(
|
|
99
|
-
|
|
99
|
+
H,
|
|
100
100
|
{
|
|
101
101
|
"aria-hidden": !a,
|
|
102
102
|
className: `${e}__input`,
|
|
103
103
|
id: "search-input",
|
|
104
104
|
hideLabel: !0,
|
|
105
|
-
labelText:
|
|
105
|
+
labelText: i,
|
|
106
106
|
placeholder: a ? I : "",
|
|
107
107
|
type: "text",
|
|
108
|
-
defaultValue:
|
|
109
|
-
invalid:
|
|
108
|
+
defaultValue: w,
|
|
109
|
+
invalid: o === "invalid",
|
|
110
110
|
invalidText: b,
|
|
111
111
|
onKeyDown: g,
|
|
112
|
-
onChange:
|
|
113
|
-
ref:
|
|
112
|
+
onChange: T,
|
|
113
|
+
ref: d
|
|
114
114
|
}
|
|
115
115
|
)
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
118
|
/* @__PURE__ */ t(
|
|
119
|
-
|
|
119
|
+
Z,
|
|
120
120
|
{
|
|
121
121
|
className: e,
|
|
122
|
-
searchButtonText:
|
|
123
|
-
state:
|
|
124
|
-
testId:
|
|
122
|
+
searchButtonText: i,
|
|
123
|
+
state: o,
|
|
124
|
+
testId: c,
|
|
125
125
|
isSearchExpanded: a,
|
|
126
|
-
setIsSearchExpanded:
|
|
127
|
-
onCancel:
|
|
126
|
+
setIsSearchExpanded: h,
|
|
127
|
+
onCancel: S
|
|
128
128
|
}
|
|
129
129
|
)
|
|
130
130
|
]
|
|
131
131
|
}
|
|
132
132
|
),
|
|
133
|
-
|
|
134
|
-
|
|
133
|
+
a && L && s && s.length > 2 ? /* @__PURE__ */ t(
|
|
134
|
+
A,
|
|
135
135
|
{
|
|
136
|
-
autoCompleteResults:
|
|
137
|
-
isLoading:
|
|
136
|
+
autoCompleteResults: N,
|
|
137
|
+
isLoading: o === "loading",
|
|
138
138
|
loadingText: E,
|
|
139
139
|
onKeyDown: g,
|
|
140
|
-
userInputValue:
|
|
141
|
-
closeSearch:
|
|
140
|
+
userInputValue: s,
|
|
141
|
+
closeSearch: u,
|
|
142
142
|
children: /* @__PURE__ */ t("li", { className: `${e}__result`, children: /* @__PURE__ */ t(
|
|
143
|
-
|
|
143
|
+
O,
|
|
144
144
|
{
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
children: /* @__PURE__ */ t("p", { children: w(n) })
|
|
145
|
+
href: ((r) => $(v(r)))(s),
|
|
146
|
+
children: /* @__PURE__ */ t("p", { children: P(s) })
|
|
148
147
|
}
|
|
149
148
|
) }, "viewAllSearchResults")
|
|
150
149
|
}
|
|
@@ -159,5 +158,5 @@ const oe = ({
|
|
|
159
158
|
) }) });
|
|
160
159
|
};
|
|
161
160
|
export {
|
|
162
|
-
|
|
161
|
+
ie as default
|
|
163
162
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,249 +1,250 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
1
|
+
import { BreakpointTokens as f, PaddingTokens as s, SpacingTokens as l, defaultYear as d, emailValidation as m, encodeURLSearchParams as p, findChildrenExcludingTypes as u, findChildrenOfType as x, generatePaddingClassName as n, getCommonProps as i, noOp as g, px as c, useNormalizedInputProps as C } from "./utils/index.js";
|
|
2
|
+
import { default as h } from "./assets/account_circle.svg.js";
|
|
3
|
+
import { default as P } from "./assets/arrowPrev.svg.js";
|
|
4
|
+
import { default as T } from "./assets/calendar.svg.js";
|
|
5
5
|
import { default as I } from "./assets/calendarAlt.svg.js";
|
|
6
|
-
import { default as
|
|
7
|
-
import { default 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 { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
6
|
+
import { default as B } from "./assets/CarouselArrowNext.svg.js";
|
|
7
|
+
import { default as V } from "./assets/CarouselArrowPrev.svg.js";
|
|
8
|
+
import { default as F } from "./assets/checkmark.svg.js";
|
|
9
|
+
import { default as M } from "./assets/chevronDown.svg.js";
|
|
10
|
+
import { default as D } from "./assets/chevronNext.svg.js";
|
|
11
|
+
import { default as R } from "./assets/chevronRight.svg.js";
|
|
12
|
+
import { default as O } from "./assets/close.svg.js";
|
|
13
|
+
import { default as E } from "./assets/favorite.svg.js";
|
|
14
|
+
import { default as Q } from "./assets/favoriteOutline.svg.js";
|
|
15
|
+
import { default as j } from "./assets/icon-footer-facebook.svg.js";
|
|
16
|
+
import { default as Z } from "./assets/icon-footer-instagram.svg.js";
|
|
17
|
+
import { default as J } from "./assets/icon-footer-linkedin.svg.js";
|
|
18
|
+
import { default as X } from "./assets/icon-footer-red.svg.js";
|
|
19
|
+
import { default as $ } from "./assets/icon-footer-wechat.svg.js";
|
|
20
|
+
import { default as te } from "./assets/instagram.svg.js";
|
|
21
21
|
import { default as re } from "./assets/lock.svg.js";
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
22
|
+
import { default as fe } from "./assets/minus.svg.js";
|
|
23
|
+
import { default as le } from "./assets/PhillipsLogo.svg.js";
|
|
24
|
+
import { default as me } from "./assets/plus.svg.js";
|
|
25
|
+
import { default as ue } from "./assets/react.svg.js";
|
|
26
26
|
import "react";
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
27
|
+
import { default as ne } from "./assets/share.svg.js";
|
|
28
|
+
import { default as ge } from "./assets/spotify.svg.js";
|
|
29
|
+
import { default as Ce } from "./assets/wechat.svg.js";
|
|
30
|
+
import { default as he } from "./assets/youtube.svg.js";
|
|
31
|
+
import { default as Pe } from "./assets/icon-green-circle.svg.js";
|
|
32
|
+
import { default as Te } from "./assets/icon-red-circle.svg.js";
|
|
33
33
|
import { default as Ie } from "./pages/Page.js";
|
|
34
|
-
import { usePendingState as
|
|
35
|
-
import { SSRMediaQuery as
|
|
36
|
-
import { AuctionStatus as
|
|
37
|
-
import { default as
|
|
38
|
-
import { ButtonVariants as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { Grid as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { LinkVariants as
|
|
52
|
-
import { default as
|
|
34
|
+
import { usePendingState as Be } from "./utils/hooks.js";
|
|
35
|
+
import { SSRMediaQuery as Ve, ssrMediaQueryStyle as ve } from "./providers/SeldonProvider/utils.js";
|
|
36
|
+
import { AuctionStatus as ye, LotStatus as Me, SupportedLanguages as Ne } from "./types/commonTypes.js";
|
|
37
|
+
import { default as He } from "./components/Button/Button.js";
|
|
38
|
+
import { ButtonVariants as Ge } from "./components/Button/types.js";
|
|
39
|
+
import { default as Ue } from "./components/IconButton/IconButton.js";
|
|
40
|
+
import { default as We } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
41
|
+
import { default as Ye } from "./site-furniture/Footer/Footer.js";
|
|
42
|
+
import { Grid as ze } from "./components/Grid/Grid.js";
|
|
43
|
+
import { default as qe } from "./site-furniture/Header/Header.js";
|
|
44
|
+
import { default as Ke } from "./components/Navigation/Navigation.js";
|
|
45
|
+
import { default as _e } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
46
|
+
import { default as et } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
|
|
47
|
+
import { default as ot } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
48
|
+
import { default as at } from "./patterns/HeroBanner/HeroBanner.js";
|
|
49
|
+
import { default as st } from "./components/Input/Input.js";
|
|
50
|
+
import { default as dt } from "./components/Link/Link.js";
|
|
51
|
+
import { LinkVariants as pt } from "./components/Link/types.js";
|
|
52
|
+
import { default as xt } from "./components/LinkBlock/LinkBlock.js";
|
|
53
53
|
import { default as it } from "./components/LinkList/LinkList.js";
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { GridItemAlign as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
54
|
+
import { default as ct } from "./components/Row/Row.js";
|
|
55
|
+
import { default as St } from "./components/GridItem/GridItem.js";
|
|
56
|
+
import { GridItemAlign as Lt } from "./components/GridItem/types.js";
|
|
57
|
+
import { default as At } from "./components/Search/Search.js";
|
|
58
|
+
import { default as kt } from "./components/Select/Select.js";
|
|
59
59
|
import { SelectVariants as bt } from "./components/Select/types.js";
|
|
60
60
|
import { default as wt } from "./components/SplitPanel/SplitPanel.js";
|
|
61
|
-
import { default as
|
|
62
|
-
import { SubscriptionState as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { Tag as
|
|
69
|
-
import { default as
|
|
70
|
-
import { TextAlignments as
|
|
71
|
-
import { default as
|
|
72
|
-
import { TextSymbolVariants as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { AccordionItemVariant as
|
|
77
|
-
import { default as
|
|
78
|
-
import { AuthState as
|
|
79
|
-
import { default as
|
|
61
|
+
import { default as vt } from "./patterns/Subscribe/Subscribe.js";
|
|
62
|
+
import { SubscriptionState as yt } from "./patterns/Subscribe/types.js";
|
|
63
|
+
import { default as Nt } from "./patterns/Social/Social.js";
|
|
64
|
+
import { default as Ht } from "./patterns/ViewingsList/ViewingsList.js";
|
|
65
|
+
import { default as Gt } from "./components/Modal/Modal.js";
|
|
66
|
+
import { default as Ut } from "./components/Drawer/Drawer.js";
|
|
67
|
+
import { default as Wt } from "./components/Pagination/Pagination.js";
|
|
68
|
+
import { Tag as Yt, default as jt } from "./components/Tags/Tags.js";
|
|
69
|
+
import { default as Zt } from "./patterns/ViewingsList/StatefulViewingsList.js";
|
|
70
|
+
import { TextAlignments as Jt, TextVariants as Kt } from "./components/Text/types.js";
|
|
71
|
+
import { default as _t } from "./components/Text/Text.js";
|
|
72
|
+
import { TextSymbolVariants as eo } from "./components/TextSymbol/types.js";
|
|
73
|
+
import { default as oo } from "./components/TextSymbol/TextSymbol.js";
|
|
74
|
+
import { default as ao } from "./components/Accordion/Accordion.js";
|
|
75
|
+
import { default as so } from "./components/Accordion/AccordionItem.js";
|
|
76
|
+
import { AccordionItemVariant as mo, AccordionVariants as po } from "./components/Accordion/types.js";
|
|
77
|
+
import { default as xo } from "./patterns/UserManagement/UserManagement.js";
|
|
78
|
+
import { AuthState as io } from "./patterns/UserManagement/types.js";
|
|
79
|
+
import { default as co } from "./components/Breadcrumb/Breadcrumb.js";
|
|
80
80
|
import "react/jsx-runtime";
|
|
81
81
|
import "./node_modules/classnames/index.js";
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { HeightUnits as
|
|
87
|
-
import { default as
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { SeldonProvider as
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { DetailListAlignment as
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
102
|
-
import { default as
|
|
103
|
-
import { default as
|
|
104
|
-
import { default as
|
|
105
|
-
import { default as
|
|
106
|
-
import { default as
|
|
107
|
-
import { default as
|
|
108
|
-
import { default as
|
|
109
|
-
import { default as
|
|
110
|
-
import { default as
|
|
111
|
-
import { CountdownVariants as
|
|
112
|
-
import { default as
|
|
113
|
-
import { default as
|
|
114
|
-
import { default as
|
|
115
|
-
import { BidMessageVariants as
|
|
116
|
-
import { default as
|
|
82
|
+
import { default as So } from "./components/Dropdown/Dropdown.js";
|
|
83
|
+
import { default as Lo } from "./components/Video/Video.js";
|
|
84
|
+
import { default as Ao } from "./patterns/LanguageSelector/LanguageSelector.js";
|
|
85
|
+
import { default as ko } from "./components/ContentPeek/ContentPeek.js";
|
|
86
|
+
import { HeightUnits as bo } from "./components/ContentPeek/utils.js";
|
|
87
|
+
import { default as wo } from "./components/Collapsible/Collapsible.js";
|
|
88
|
+
import { default as vo } from "./components/Collapsible/CollapsibleContent.js";
|
|
89
|
+
import { default as yo } from "./components/Collapsible/CollapsibleTrigger.js";
|
|
90
|
+
import { SeldonProvider as No } from "./providers/SeldonProvider/SeldonProvider.js";
|
|
91
|
+
import { default as Ho } from "./components/PageContentWrapper/PageContentWrapper.js";
|
|
92
|
+
import { default as Go } from "./components/Carousel/Carousel.js";
|
|
93
|
+
import { default as Uo } from "./components/Carousel/CarouselArrows.js";
|
|
94
|
+
import { default as Wo } from "./components/Carousel/CarouselContent.js";
|
|
95
|
+
import { default as Yo } from "./components/Carousel/CarouselItem.js";
|
|
96
|
+
import { default as zo } from "./components/Carousel/CarouselDots.js";
|
|
97
|
+
import { default as qo } from "./components/Detail/Detail.js";
|
|
98
|
+
import { default as Ko } from "./patterns/DetailList/DetailList.js";
|
|
99
|
+
import { DetailListAlignment as _o } from "./patterns/DetailList/types.js";
|
|
100
|
+
import { default as er } from "./components/PinchZoom/PinchZoom.js";
|
|
101
|
+
import { default as or } from "./components/Tabs/TabsContainer.js";
|
|
102
|
+
import { default as ar } from "./components/Tabs/TabsContent.js";
|
|
103
|
+
import { default as sr } from "./components/SeldonImage/SeldonImage.js";
|
|
104
|
+
import { default as dr } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
|
|
105
|
+
import { default as pr } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
|
|
106
|
+
import { default as xr } from "./patterns/FilterMenu/FilterMenu.js";
|
|
107
|
+
import { default as ir } from "./components/Filter/Filter.js";
|
|
108
|
+
import { default as cr } from "./components/Filter/FilterInput.js";
|
|
109
|
+
import { default as Sr } from "./components/Filter/FilterHeader.js";
|
|
110
|
+
import { default as Lr } from "./components/Countdown/Countdown.js";
|
|
111
|
+
import { CountdownVariants as Ar } from "./components/Countdown/types.js";
|
|
112
|
+
import { default as kr } from "./patterns/ObjectTile/ObjectTile.js";
|
|
113
|
+
import { default as br } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
114
|
+
import { default as wr } from "./patterns/BidSnapshot/BidMessage.js";
|
|
115
|
+
import { BidMessageVariants as vr, BidStatusEnum as Fr } from "./patterns/BidSnapshot/types.js";
|
|
116
|
+
import { default as Mr } from "./components/Article/Article.js";
|
|
117
117
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
118
|
+
ao as Accordion,
|
|
119
|
+
so as AccordionItem,
|
|
120
|
+
mo as AccordionItemVariant,
|
|
121
|
+
po as AccordionVariants,
|
|
122
|
+
h as AccountCircle,
|
|
123
|
+
P as ArrowPrev,
|
|
124
|
+
Mr as Article,
|
|
125
|
+
ye as AuctionStatus,
|
|
126
|
+
io as AuthState,
|
|
127
|
+
wr as BidMessage,
|
|
128
|
+
vr as BidMessageVariants,
|
|
129
|
+
br as BidSnapshot,
|
|
130
|
+
Fr as BidStatusEnum,
|
|
131
|
+
co as Breadcrumb,
|
|
132
|
+
f as BreakpointTokens,
|
|
133
|
+
He as Button,
|
|
134
|
+
Ge as ButtonVariants,
|
|
135
|
+
T as Calendar,
|
|
135
136
|
I as CalendarAlt,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
137
|
+
Go as Carousel,
|
|
138
|
+
B as CarouselArrowNext,
|
|
139
|
+
V as CarouselArrowPrev,
|
|
140
|
+
Uo as CarouselArrows,
|
|
141
|
+
Wo as CarouselContent,
|
|
142
|
+
zo as CarouselDots,
|
|
143
|
+
Yo as CarouselItem,
|
|
144
|
+
F as Checkmark,
|
|
145
|
+
M as ChevronDown,
|
|
146
|
+
D as ChevronNext,
|
|
147
|
+
R as ChevronRight,
|
|
148
|
+
O as Close,
|
|
149
|
+
wo as Collapsible,
|
|
150
|
+
vo as CollapsibleContent,
|
|
151
|
+
yo as CollapsibleTrigger,
|
|
152
|
+
ko as ContentPeek,
|
|
153
|
+
bo as ContentPeekHeightUnits,
|
|
154
|
+
Lr as Countdown,
|
|
155
|
+
Ar as CountdownVariants,
|
|
156
|
+
qo as Detail,
|
|
157
|
+
Ko as DetailList,
|
|
158
|
+
_o as DetailListAlignment,
|
|
159
|
+
Ut as Drawer,
|
|
160
|
+
So as Dropdown,
|
|
161
|
+
We as ErrorBoundary,
|
|
162
|
+
j as Facebook,
|
|
163
|
+
E as Favorite,
|
|
164
|
+
Q as FavoriteOutline,
|
|
165
|
+
ir as Filter,
|
|
166
|
+
Sr as FilterHeader,
|
|
167
|
+
cr as FilterInput,
|
|
168
|
+
xr as FilterMenu,
|
|
169
|
+
Ye as Footer,
|
|
170
|
+
Z as FooterInstagram,
|
|
171
|
+
$ as FooterWeChat,
|
|
172
|
+
Pe as GreenCircle,
|
|
173
|
+
ze as Grid,
|
|
174
|
+
St as GridItem,
|
|
175
|
+
Lt as GridItemAlign,
|
|
176
|
+
qe as Header,
|
|
177
|
+
at as HeroBanner,
|
|
178
|
+
Ue as IconButton,
|
|
179
|
+
st as Input,
|
|
180
|
+
te as Instagram,
|
|
181
|
+
Ao as LanguageSelector,
|
|
182
|
+
dt as Link,
|
|
183
|
+
xt as LinkBlock,
|
|
183
184
|
it as LinkList,
|
|
184
|
-
|
|
185
|
-
|
|
185
|
+
pt as LinkVariants,
|
|
186
|
+
J as LinkedIn,
|
|
186
187
|
re as Lock,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
188
|
+
Me as LotStatus,
|
|
189
|
+
fe as Minus,
|
|
190
|
+
Gt as Modal,
|
|
191
|
+
Ke as Navigation,
|
|
192
|
+
_e as NavigationItem,
|
|
193
|
+
et as NavigationItemTrigger,
|
|
194
|
+
ot as NavigationList,
|
|
195
|
+
kr as ObjectTile,
|
|
196
|
+
s as PaddingTokens,
|
|
196
197
|
Ie as Page,
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
198
|
+
Ho as PageContentWrapper,
|
|
199
|
+
Wt as Pagination,
|
|
200
|
+
le as PhillipsLogo,
|
|
201
|
+
er as PinchZoom,
|
|
202
|
+
me as Plus,
|
|
203
|
+
ue as React,
|
|
204
|
+
Te as RedCircle,
|
|
205
|
+
X as Reddit,
|
|
206
|
+
ct as Row,
|
|
207
|
+
Ve as SSRMediaQuery,
|
|
208
|
+
dr as SaleHeaderBanner,
|
|
209
|
+
pr as SaleHeaderBrowseAuctions,
|
|
210
|
+
At as Search,
|
|
211
|
+
sr as SeldonImage,
|
|
212
|
+
No as SeldonProvider,
|
|
213
|
+
kt as Select,
|
|
213
214
|
bt as SelectVariants,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
215
|
+
ne as Share,
|
|
216
|
+
Nt as Social,
|
|
217
|
+
l as SpacingTokens,
|
|
217
218
|
wt as SplitPanel,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
219
|
+
ge as Spotify,
|
|
220
|
+
Zt as StatefulViewingsList,
|
|
221
|
+
vt as Subscribe,
|
|
222
|
+
yt as SubscriptionState,
|
|
223
|
+
Ne as SupportedLanguages,
|
|
224
|
+
or as TabsContainer,
|
|
225
|
+
ar as TabsContent,
|
|
226
|
+
Yt as Tag,
|
|
227
|
+
jt as TagsList,
|
|
228
|
+
_t as Text,
|
|
229
|
+
Jt as TextAlignments,
|
|
230
|
+
eo as TextSymbolVariants,
|
|
231
|
+
oo as TextSymbols,
|
|
232
|
+
Kt as TextVariants,
|
|
233
|
+
xo as UserManagement,
|
|
234
|
+
Lo as Video,
|
|
235
|
+
Ht as ViewingsList,
|
|
236
|
+
Ce as WeChat,
|
|
237
|
+
he as Youtube,
|
|
238
|
+
d as defaultYear,
|
|
239
|
+
m as emailValidation,
|
|
240
|
+
p as encodeURLSearchParams,
|
|
241
|
+
u as findChildrenExcludingTypes,
|
|
242
|
+
x as findChildrenOfType,
|
|
243
|
+
n as generatePaddingClassName,
|
|
243
244
|
i as getCommonProps,
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
245
|
+
g as noOp,
|
|
246
|
+
c as px,
|
|
247
|
+
ve as ssrMediaQueryStyle,
|
|
248
|
+
C as useNormalizedInputProps,
|
|
249
|
+
Be as usePendingState
|
|
249
250
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index6.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/_type.scss
CHANGED
package/dist/scss/_vars.scss
CHANGED
|
@@ -103,9 +103,10 @@ $snwHeaderLink: 'snwHeaderLink';
|
|
|
103
103
|
$snwFlyoutLink: 'snwFlyoutLink';
|
|
104
104
|
$snwHeadingHero1: 'snwHeadingHero1';
|
|
105
105
|
$snwHeadingHero2: 'snwHeadingHero2';
|
|
106
|
-
$text-tokens:
|
|
107
|
-
$
|
|
108
|
-
$
|
|
106
|
+
$text-tokens:
|
|
107
|
+
$button, $link, $email, $label, $badge, $blockquote, $heading1, $heading2, $heading3, $heading4, $heading5, $title1,
|
|
108
|
+
$title2, $title3, $title4, $body1, $body2, $body3, $string1, $string2, $string3, $snwFlyoutLink, $snwHeaderLink,
|
|
109
|
+
$snwHeadingHero1, $snwHeadingHero2;
|
|
109
110
|
|
|
110
111
|
////////////////////////
|
|
111
112
|
/// Breakpoint TOKENS to be used for min-width comparisons, make sure they match BREAKPOINTS in constants.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use '../../allPartials' as *;
|
|
3
3
|
|
|
4
4
|
@mixin gridItemColumnSpan($span: 1, $total-cols: 12) {
|
|
5
|
-
grid-column: span $span;
|
|
5
|
+
grid-column: auto / span $span;
|
|
6
6
|
|
|
7
7
|
&-align-right {
|
|
8
8
|
grid-column-end: $total-cols + 1;
|
|
@@ -24,12 +24,24 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
@for $i from 1 through 6 {
|
|
28
|
+
&--start-xs-#{$i} {
|
|
29
|
+
grid-column-start: #{$i};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
27
33
|
@include media($size-sm) {
|
|
28
34
|
@for $i from 1 through 2 {
|
|
29
35
|
&--span-sm-#{$i} {
|
|
30
36
|
@include gridItemColumnSpan($i, 2);
|
|
31
37
|
}
|
|
32
38
|
}
|
|
39
|
+
|
|
40
|
+
@for $i from 1 through 6 {
|
|
41
|
+
&--start-sm-#{$i} {
|
|
42
|
+
grid-column-start: #{$i};
|
|
43
|
+
}
|
|
44
|
+
}
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
@include media($size-md) {
|
|
@@ -38,6 +50,12 @@
|
|
|
38
50
|
@include gridItemColumnSpan($i, 6);
|
|
39
51
|
}
|
|
40
52
|
}
|
|
53
|
+
|
|
54
|
+
@for $i from 1 through 6 {
|
|
55
|
+
&--start-md-#{$i} {
|
|
56
|
+
grid-column-start: #{$i};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
41
59
|
}
|
|
42
60
|
|
|
43
61
|
@include media($size-lg) {
|
|
@@ -46,5 +64,25 @@
|
|
|
46
64
|
@include gridItemColumnSpan($i, 12);
|
|
47
65
|
}
|
|
48
66
|
}
|
|
67
|
+
|
|
68
|
+
@for $i from 1 through 12 {
|
|
69
|
+
&--start-lg-#{$i} {
|
|
70
|
+
grid-column-start: #{$i};
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include media($size-xl) {
|
|
76
|
+
@for $i from 1 through 12 {
|
|
77
|
+
&--span-xl-#{$i} {
|
|
78
|
+
@include gridItemColumnSpan($i, 12);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@for $i from 1 through 12 {
|
|
83
|
+
&--start-xl-#{$i} {
|
|
84
|
+
grid-column-start: #{$i};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
49
87
|
}
|
|
50
88
|
}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -26,6 +26,13 @@ export declare enum SpacingTokens {
|
|
|
26
26
|
xl = "xl",
|
|
27
27
|
xxl = "xxl"
|
|
28
28
|
}
|
|
29
|
+
export declare enum BreakpointTokens {
|
|
30
|
+
xs = "xs",
|
|
31
|
+
sm = "sm",
|
|
32
|
+
md = "md",
|
|
33
|
+
lg = "lg",
|
|
34
|
+
xl = "xl"
|
|
35
|
+
}
|
|
29
36
|
export declare const noOp: () => void;
|
|
30
37
|
export interface InputProps {
|
|
31
38
|
/**
|
package/dist/utils/index.js
CHANGED
|
@@ -1,62 +1,63 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import { kebabCase as
|
|
3
|
-
import * as
|
|
4
|
-
const s = "seldon",
|
|
5
|
-
const
|
|
2
|
+
import { kebabCase as c } from "../node_modules/change-case/dist/index.js";
|
|
3
|
+
import * as u from "react";
|
|
4
|
+
const s = "seldon", C = ({ id: r, ...e }, t) => {
|
|
5
|
+
const n = c(t);
|
|
6
6
|
return {
|
|
7
|
-
...
|
|
8
|
-
"data-testid":
|
|
9
|
-
className: `${s}-${
|
|
7
|
+
...e,
|
|
8
|
+
"data-testid": r ? `${n}-${r}` : `${n}`,
|
|
9
|
+
className: `${s}-${n}`
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
var x = /* @__PURE__ */ ((
|
|
13
|
-
const
|
|
12
|
+
var x = /* @__PURE__ */ ((r) => (r.xs = "xs", r.sm = "sm", r.md = "md", r.lg = "lg", r.xl = "xl", r.xxl = "xxl", r))(x || {}), f = /* @__PURE__ */ ((r) => (r.micro = "micro", r.xs = "xs", r.sm = "sm", r.md = "md", r.lg = "lg", r.xl = "xl", r.xxl = "xxl", r))(f || {}), $ = /* @__PURE__ */ ((r) => (r.xs = "xs", r.sm = "sm", r.md = "md", r.lg = "lg", r.xl = "xl", r))($ || {});
|
|
13
|
+
const g = () => {
|
|
14
14
|
};
|
|
15
|
-
function
|
|
16
|
-
disabled:
|
|
17
|
-
id:
|
|
18
|
-
invalid:
|
|
19
|
-
invalidText:
|
|
15
|
+
function w({
|
|
16
|
+
disabled: r = !1,
|
|
17
|
+
id: e,
|
|
18
|
+
invalid: t = !1,
|
|
19
|
+
invalidText: n = "invalid",
|
|
20
20
|
readOnly: a = !1,
|
|
21
|
-
type:
|
|
22
|
-
warn:
|
|
21
|
+
type: i,
|
|
22
|
+
warn: o = !1,
|
|
23
23
|
warnText: m
|
|
24
24
|
}) {
|
|
25
25
|
const l = {
|
|
26
|
-
disabled: !a &&
|
|
27
|
-
invalid: !a && !
|
|
28
|
-
invalidId: `${
|
|
29
|
-
type:
|
|
30
|
-
warn: !a && !
|
|
31
|
-
warnId: `${
|
|
26
|
+
disabled: !a && r,
|
|
27
|
+
invalid: !a && !r && t,
|
|
28
|
+
invalidId: `${e}-error-msg`,
|
|
29
|
+
type: i === "toggle" ? "checkbox" : i,
|
|
30
|
+
warn: !a && !r && !t && o,
|
|
31
|
+
warnId: `${e}-warn-msg`,
|
|
32
32
|
validation: null
|
|
33
33
|
};
|
|
34
|
-
return l.invalid && (l.validation = /* @__PURE__ */ d("div", { className: `${s}-input__validation ${s}-${
|
|
34
|
+
return l.invalid && (l.validation = /* @__PURE__ */ d("div", { className: `${s}-input__validation ${s}-${i}-input--invalid`, id: l.invalidId, children: n })), l.warn && (l.validation = /* @__PURE__ */ d("div", { className: `${s}-input__validation ${s}-${i}-input--warn`, id: l.warnId, children: m })), l;
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
return t.length > 0 ? t : null;
|
|
39
|
-
}, N = (e, r) => {
|
|
40
|
-
const n = c.Children.toArray(e).filter((t) => {
|
|
41
|
-
if (t && t.type && !r.includes(t.type))
|
|
42
|
-
return t;
|
|
43
|
-
});
|
|
36
|
+
const h = (/* @__PURE__ */ new Date()).getFullYear(), y = (r, e = "end", t = "vertical") => `${s}-padding-${t}-${r}-${e}`, I = (r) => /(.+)@(.+){2,}\.(.+){2,}/i.test(r), N = (r, e, t = !1) => {
|
|
37
|
+
const n = u.Children.toArray(r).filter((a) => a && a.type === e && !t ? a : a && a.type !== e && t);
|
|
44
38
|
return n.length > 0 ? n : null;
|
|
45
|
-
}, R = (e) => {
|
|
46
|
-
const
|
|
47
|
-
|
|
39
|
+
}, R = (r, e) => {
|
|
40
|
+
const t = u.Children.toArray(r).filter((n) => {
|
|
41
|
+
if (n && n.type && !e.includes(n.type))
|
|
42
|
+
return n;
|
|
43
|
+
});
|
|
44
|
+
return t.length > 0 ? t : null;
|
|
45
|
+
}, b = (r) => {
|
|
46
|
+
const e = r.split("?"), t = new URLSearchParams(e[1]), a = Array.from(t.entries()).map(([o, m]) => [o, encodeURIComponent(m)]).map(([o, m]) => `${o}=${m}`).join("&");
|
|
47
|
+
return `${e[0]}?${a}`;
|
|
48
48
|
};
|
|
49
49
|
export {
|
|
50
|
+
$ as BreakpointTokens,
|
|
50
51
|
x as PaddingTokens,
|
|
51
52
|
f as SpacingTokens,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
h as defaultYear,
|
|
54
|
+
I as emailValidation,
|
|
55
|
+
b as encodeURLSearchParams,
|
|
56
|
+
R as findChildrenExcludingTypes,
|
|
57
|
+
N as findChildrenOfType,
|
|
58
|
+
y as generatePaddingClassName,
|
|
59
|
+
C as getCommonProps,
|
|
60
|
+
g as noOp,
|
|
60
61
|
s as px,
|
|
61
|
-
|
|
62
|
+
w as useNormalizedInputProps
|
|
62
63
|
};
|