@phillips/seldon 1.82.0 → 1.83.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.
@@ -1,4 +1,4 @@
1
- var s = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- s as __module
3
+ r as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var r = {};
1
+ var s = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ s as __module
4
4
  };
@@ -30,5 +30,5 @@ export interface AccordionItemProps extends React.HTMLAttributes<HTMLDivElement>
30
30
  */
31
31
  hasTransition?: boolean;
32
32
  }
33
- declare const AccordionItem: ({ isLocked, variant, id, label, isLastItem, hasTransition, children, ...props }: AccordionItemProps) => import("react/jsx-runtime").JSX.Element;
33
+ declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
34
34
  export default AccordionItem;
@@ -1,13 +1,14 @@
1
1
  import { jsxs as h, jsx as t } from "react/jsx-runtime";
2
- import { getCommonProps as f } from "../../utils/index.js";
3
- import g from "../../assets/plus.svg.js";
4
- import v from "../../assets/minus.svg.js";
5
- import _ from "../../assets/lock.svg.js";
6
- import l from "../../node_modules/classnames/index.js";
7
- import { Item as I, Trigger as x, Content as A } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
2
+ import { forwardRef as g } from "react";
3
+ import { getCommonProps as v } from "../../utils/index.js";
4
+ import I from "../../assets/plus.svg.js";
5
+ import _ from "../../assets/minus.svg.js";
6
+ import x from "../../assets/lock.svg.js";
7
+ import s from "../../node_modules/classnames/index.js";
8
+ import { Item as A, Trigger as N, Content as k } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
8
9
  import { AccordionItemVariant as $ } from "./types.js";
9
10
  import { getIconClasses as u } from "./utils.js";
10
- const k = ({
11
+ const C = ({
11
12
  children: n,
12
13
  className: r,
13
14
  baseClassName: o,
@@ -15,22 +16,22 @@ const k = ({
15
16
  isLargeVariation: c,
16
17
  id: e
17
18
  }) => {
18
- const s = d, a = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
19
- _,
19
+ const i = d, l = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
20
+ x,
20
21
  {
21
22
  className: u(o, c, "lock"),
22
23
  "data-testid": `${e}-lockedIcon`,
23
24
  "aria-hidden": !0
24
25
  }
25
- ) }), p = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
26
- g,
26
+ ) }), a = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
27
+ I,
27
28
  {
28
29
  className: u(o, c, "plus"),
29
30
  "data-testid": `${e}-plusIcon`,
30
31
  "aria-hidden": !0
31
32
  }
32
- ) }), i = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
33
- v,
33
+ ) }), p = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
34
+ _,
34
35
  {
35
36
  className: u(o, c, "minus"),
36
37
  "data-testid": `${e}-minusIcon`,
@@ -38,25 +39,25 @@ const k = ({
38
39
  }
39
40
  ) });
40
41
  return /* @__PURE__ */ t(
41
- x,
42
+ N,
42
43
  {
43
44
  "data-disabled": d,
44
45
  asChild: !0,
45
- className: l(
46
+ className: s(
46
47
  o,
47
48
  { [`${o}--large`]: c },
48
49
  { [`${o}--hoverable`]: !d },
49
50
  r
50
51
  ),
51
52
  children: /* @__PURE__ */ h("div", { "data-testid": `${e}-trigger`, children: [
52
- /* @__PURE__ */ t("div", { className: l(`${o}__text`, { [`${o}__text--lg`]: c }), children: n }),
53
- s && a,
54
- !s && p,
55
- !s && i
53
+ /* @__PURE__ */ t("div", { className: s(`${o}__text`, { [`${o}__text--lg`]: c }), children: n }),
54
+ i && l,
55
+ !i && a,
56
+ !i && p
56
57
  ] })
57
58
  }
58
59
  );
59
- }, C = ({
60
+ }, S = ({
60
61
  children: n,
61
62
  baseClassName: r,
62
63
  disable: o,
@@ -64,10 +65,10 @@ const k = ({
64
65
  isLargeVariation: c,
65
66
  className: e
66
67
  }) => o && n ? /* @__PURE__ */ t("div", { className: `${r}__content--locked`, children: n }) : /* @__PURE__ */ t(
67
- A,
68
+ k,
68
69
  {
69
70
  asChild: !0,
70
- className: l(
71
+ className: s(
71
72
  `${r}__content`,
72
73
  { [`${r}__content--lg`]: c },
73
74
  { [`${r}--transition`]: d },
@@ -75,51 +76,55 @@ const k = ({
75
76
  ),
76
77
  children: n
77
78
  }
78
- ), y = ({
79
- isLocked: n = !1,
80
- variant: r = $.sm,
81
- id: o,
82
- label: d,
83
- isLastItem: c,
84
- hasTransition: e = !1,
85
- children: s,
86
- ...a
87
- }) => {
88
- const { className: p } = f({ id: o }, "Accordion"), i = r === $.lg, m = `${p}-item`;
89
- return /* @__PURE__ */ h(
90
- I,
91
- {
92
- disabled: n,
93
- value: o,
94
- className: l(m, {
95
- [`${m}__border-bottom`]: !c
96
- }),
97
- ...a,
98
- children: [
99
- /* @__PURE__ */ t(
100
- k,
101
- {
102
- disable: n,
103
- isLargeVariation: i,
104
- id: o,
105
- baseClassName: `${m}-label`,
106
- children: d
107
- }
108
- ),
109
- /* @__PURE__ */ t(
110
- C,
111
- {
112
- disable: n,
113
- hasTransition: e,
114
- isLargeVariation: i,
115
- baseClassName: m,
116
- children: /* @__PURE__ */ t("div", { className: "radix-accordion-content", children: s })
117
- }
118
- )
119
- ]
120
- }
121
- );
122
- };
79
+ ), j = g(
80
+ ({
81
+ isLocked: n = !1,
82
+ variant: r = $.sm,
83
+ id: o,
84
+ label: d,
85
+ isLastItem: c,
86
+ hasTransition: e = !1,
87
+ children: i,
88
+ ...l
89
+ }, a) => {
90
+ const { className: p } = v({ id: o }, "Accordion"), f = r === $.lg, m = `${p}-item`;
91
+ return /* @__PURE__ */ h(
92
+ A,
93
+ {
94
+ disabled: n,
95
+ value: o,
96
+ className: s(m, {
97
+ [`${m}__border-bottom`]: !c
98
+ }),
99
+ ref: a,
100
+ ...l,
101
+ children: [
102
+ /* @__PURE__ */ t(
103
+ C,
104
+ {
105
+ disable: n,
106
+ isLargeVariation: f,
107
+ id: o,
108
+ baseClassName: `${m}-label`,
109
+ children: d
110
+ }
111
+ ),
112
+ /* @__PURE__ */ t(
113
+ S,
114
+ {
115
+ disable: n,
116
+ hasTransition: e,
117
+ isLargeVariation: f,
118
+ baseClassName: m,
119
+ children: /* @__PURE__ */ t("div", { className: "radix-accordion-content", children: i })
120
+ }
121
+ )
122
+ ]
123
+ }
124
+ );
125
+ }
126
+ );
127
+ j.displayName = "AccordionItem";
123
128
  export {
124
- y as default
129
+ j as default
125
130
  };
@@ -1,5 +1,5 @@
1
1
  import { ButtonVariants } from './types';
2
- export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
2
+ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement | HTMLAnchorElement> {
3
3
  /**
4
4
  * Button contents
5
5
  */
@@ -28,6 +28,14 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
28
28
  * Should the button be disabled?
29
29
  */
30
30
  isDisabled?: boolean;
31
+ /**
32
+ * The href of the button. This will make the button render as an anchor tag.
33
+ */
34
+ href?: string;
35
+ /**
36
+ * The target of the link (e.g. _blank). To be combined with href.
37
+ */
38
+ target?: string;
31
39
  }
32
40
  /**
33
41
  * ## Overview
@@ -38,5 +46,5 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
38
46
  *
39
47
  * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-button--overview)
40
48
  */
41
- declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
49
+ declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
42
50
  export default Button;
@@ -1,43 +1,58 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import p from "../../node_modules/classnames/index.js";
3
- import { getCommonProps as u } from "../../utils/index.js";
4
- import { ButtonVariants as d } from "./types.js";
5
- import { forwardRef as $ } from "react";
6
- const b = $(
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import i from "../../node_modules/classnames/index.js";
3
+ import { getCommonProps as d } from "../../utils/index.js";
4
+ import { ButtonVariants as b } from "./types.js";
5
+ import { forwardRef as N } from "react";
6
+ const B = N(
7
7
  ({
8
- variant: s = d.primary,
9
- size: a = "md",
10
- children: m,
11
- className: r,
12
- isIconLast: n = !1,
13
- type: e = "button",
14
- isDisabled: i = !1,
15
- ...t
16
- }, f) => {
17
- const { className: o, ...l } = u(t, "Button");
18
- return /* @__PURE__ */ c(
8
+ variant: s = b.primary,
9
+ size: t = "md",
10
+ children: a,
11
+ className: p,
12
+ isIconLast: m = !1,
13
+ type: u = "button",
14
+ isDisabled: c = !1,
15
+ href: r,
16
+ target: e,
17
+ ...n
18
+ }, l) => {
19
+ const { className: o, ...$ } = d(n, "Button");
20
+ return r ? /* @__PURE__ */ f(
21
+ "a",
22
+ {
23
+ ...$,
24
+ ref: l,
25
+ href: r,
26
+ className: i(`${o}`, `${o}--${t}`, `${o}--${s}`, {
27
+ [`${o}--icon-last`]: m
28
+ }),
29
+ target: e,
30
+ rel: e === "_blank" ? "noopener noreferrer" : void 0,
31
+ children: a
32
+ }
33
+ ) : /* @__PURE__ */ f(
19
34
  "button",
20
35
  {
21
- ...l,
22
- ref: f,
23
- type: e,
24
- className: p(
36
+ ...$,
37
+ ref: l,
38
+ type: u,
39
+ className: i(
25
40
  `${o}`,
26
- `${o}--${a}`,
41
+ `${o}--${t}`,
27
42
  `${o}--${s}`,
28
43
  {
29
- [`${o}--icon-last`]: n
44
+ [`${o}--icon-last`]: m
30
45
  },
31
- r
46
+ p
32
47
  ),
33
- disabled: i,
34
- ...t,
35
- children: m
48
+ disabled: c,
49
+ ...n,
50
+ children: a
36
51
  }
37
52
  );
38
53
  }
39
54
  );
40
- b.displayName = "Button";
55
+ B.displayName = "Button";
41
56
  export {
42
- b as default
57
+ B as default
43
58
  };
@@ -2,7 +2,7 @@ import { ButtonProps } from './Button';
2
2
  import { ButtonVariants } from './types';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
5
+ component: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
6
6
  argTypes: {
7
7
  size: {
8
8
  options: string[];
@@ -23,6 +23,13 @@ declare const meta: {
23
23
  };
24
24
  export default meta;
25
25
  export declare const ButtonWithIcon: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
26
+ export declare const ButtonAsLink: {
27
+ (props: ButtonProps): import("react/jsx-runtime").JSX.Element;
28
+ args: {
29
+ variant: ButtonVariants;
30
+ size: string;
31
+ };
32
+ };
26
33
  export declare const Playground: {
27
34
  args: {
28
35
  children: string;
@@ -2,5 +2,6 @@ export declare enum ButtonVariants {
2
2
  primary = "primary",
3
3
  secondary = "secondary",
4
4
  ghost = "ghost",
5
- tertiary = "tertiary"
5
+ tertiary = "tertiary",
6
+ link = "link"
6
7
  }
@@ -1,4 +1,4 @@
1
- var e = /* @__PURE__ */ ((r) => (r.primary = "primary", r.secondary = "secondary", r.ghost = "ghost", r.tertiary = "tertiary", r))(e || {});
1
+ var e = /* @__PURE__ */ ((r) => (r.primary = "primary", r.secondary = "secondary", r.ghost = "ghost", r.tertiary = "tertiary", r.link = "link", r))(e || {});
2
2
  export {
3
3
  e as ButtonVariants
4
4
  };
@@ -229,6 +229,99 @@ export declare const RangeInput: {
229
229
  };
230
230
  };
231
231
  };
232
+ export declare const ControlledInput: {
233
+ ({ playgroundWidth, ...args }: StoryProps): import("react/jsx-runtime").JSX.Element;
234
+ args: {
235
+ playgroundWidth: number;
236
+ className: string;
237
+ placeholder: string;
238
+ invalid: boolean;
239
+ invalidText: string;
240
+ disabled: boolean;
241
+ defaultValue: string;
242
+ labelText: string;
243
+ warn: boolean;
244
+ warnText: string;
245
+ size: string;
246
+ };
247
+ argTypes: {
248
+ className: {
249
+ control: {
250
+ type: string;
251
+ };
252
+ };
253
+ defaultValue: {
254
+ control: {
255
+ type: string;
256
+ };
257
+ };
258
+ disabled: {
259
+ control: {
260
+ type: string;
261
+ };
262
+ };
263
+ invalid: {
264
+ control: {
265
+ type: string;
266
+ };
267
+ };
268
+ invalidText: {
269
+ control: {
270
+ type: string;
271
+ };
272
+ };
273
+ labelText: {
274
+ control: {
275
+ type: string;
276
+ };
277
+ };
278
+ onChange: {
279
+ action: string;
280
+ };
281
+ onClick: {
282
+ action: string;
283
+ };
284
+ placeholder: {
285
+ control: {
286
+ type: string;
287
+ };
288
+ };
289
+ playgroundWidth: {
290
+ control: {
291
+ type: string;
292
+ min: number;
293
+ max: number;
294
+ step: number;
295
+ };
296
+ };
297
+ size: {
298
+ options: string[];
299
+ control: {
300
+ type: string;
301
+ };
302
+ };
303
+ type: {
304
+ control: {
305
+ type: string;
306
+ };
307
+ };
308
+ value: {
309
+ control: {
310
+ type: string;
311
+ };
312
+ };
313
+ warn: {
314
+ control: {
315
+ type: string;
316
+ };
317
+ };
318
+ warnText: {
319
+ control: {
320
+ type: string;
321
+ };
322
+ };
323
+ };
324
+ };
232
325
  export declare const Playground: {
233
326
  ({ playgroundWidth, ...args }: StoryProps): import("react/jsx-runtime").JSX.Element;
234
327
  args: {
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './utils';
2
2
  export * from './assets/icons';
3
3
  export { default as Page } from './pages/Page';
4
4
  export * from './utils/hooks';
5
+ export * from './providers/SeldonProvider/utils';
5
6
  export { default as Button, type ButtonProps } from './components/Button/Button';
6
7
  export { ButtonVariants } from './components/Button/types';
7
8
  export { default as IconButton } from './components/IconButton/IconButton';
package/dist/index.js CHANGED
@@ -1,203 +1,206 @@
1
- import { PaddingTokens as f, SpacingTokens as l, defaultYear as s, emailValidation as m, encodeURLSearchParams as p, findChildrenExcludingTypes as d, findChildrenOfType as u, generatePaddingClassName as x, getCommonProps as n, noOp as i, px as g, useNormalizedInputProps as c } from "./utils/index.js";
1
+ import { PaddingTokens as f, SpacingTokens as s, defaultYear as l, emailValidation as m, encodeURLSearchParams as d, findChildrenExcludingTypes as p, findChildrenOfType as u, generatePaddingClassName as x, getCommonProps as n, noOp as i, px as g, useNormalizedInputProps as c } from "./utils/index.js";
2
2
  import { default as S } from "./assets/account_circle.svg.js";
3
3
  import { default as P } from "./assets/arrowPrev.svg.js";
4
4
  import { default as I } from "./assets/calendar.svg.js";
5
5
  import { default as T } from "./assets/chevronDown.svg.js";
6
6
  import { default as A } from "./assets/chevronNext.svg.js";
7
7
  import { default as v } from "./assets/chevronRight.svg.js";
8
- import { default as B } from "./assets/close.svg.js";
9
- import { default as N } from "./assets/favoriteOutline.svg.js";
10
- import { default as F } from "./assets/icon-footer-facebook.svg.js";
11
- import { default as H } from "./assets/icon-footer-instagram.svg.js";
12
- import { default as M } from "./assets/icon-footer-linkedin.svg.js";
8
+ import { default as y } from "./assets/close.svg.js";
9
+ import { default as D } from "./assets/favoriteOutline.svg.js";
10
+ import { default as R } from "./assets/icon-footer-facebook.svg.js";
11
+ import { default as M } from "./assets/icon-footer-instagram.svg.js";
12
+ import { default as G } from "./assets/icon-footer-linkedin.svg.js";
13
13
  import { default as W } from "./assets/icon-footer-red.svg.js";
14
- import { default as U } from "./assets/icon-footer-wechat.svg.js";
15
- import { default as z } from "./assets/instagram.svg.js";
16
- import { default as j } from "./assets/lock.svg.js";
17
- import { default as J } from "./assets/minus.svg.js";
18
- import { default as Q } from "./assets/PhillipsLogo.svg.js";
14
+ import { default as Q } from "./assets/icon-footer-wechat.svg.js";
15
+ import { default as Y } from "./assets/instagram.svg.js";
16
+ import { default as Z } from "./assets/lock.svg.js";
17
+ import { default as q } from "./assets/minus.svg.js";
18
+ import { default as K } from "./assets/PhillipsLogo.svg.js";
19
19
  import { default as _ } from "./assets/plus.svg.js";
20
20
  import { default as ee } from "./assets/react.svg.js";
21
21
  import "react";
22
22
  import { default as te } from "./assets/share.svg.js";
23
23
  import { default as ae } from "./assets/spotify.svg.js";
24
- import { default as le } from "./assets/wechat.svg.js";
24
+ import { default as se } from "./assets/wechat.svg.js";
25
25
  import { default as me } from "./assets/youtube.svg.js";
26
- import { default as de } from "./pages/Page.js";
26
+ import { default as pe } from "./pages/Page.js";
27
27
  import { usePendingState as xe } from "./utils/hooks.js";
28
- import { default as ie } from "./components/Button/Button.js";
29
- import { ButtonVariants as ce } from "./components/Button/types.js";
30
- import { default as Se } from "./components/IconButton/IconButton.js";
31
- import { default as Pe } from "./components/ErrorBoundary/ErrorBoundary.js";
32
- import { default as Ie } from "./site-furniture/Footer/Footer.js";
33
- import { Grid as Te } from "./components/Grid/Grid.js";
34
- import { default as Ae } from "./site-furniture/Header/Header.js";
35
- import { default as ve } from "./components/Navigation/Navigation.js";
36
- import { default as Be } from "./components/Navigation/NavigationItem/NavigationItem.js";
37
- import { default as Ne } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
38
- import { default as Fe } from "./components/Navigation/NavigationList/NavigationList.js";
39
- import { default as He } from "./patterns/HeroBanner/HeroBanner.js";
40
- import { default as Me } from "./components/Input/Input.js";
41
- import { default as We } from "./components/Link/Link.js";
42
- import { LinkVariants as Ue } from "./components/Link/types.js";
43
- import { default as ze } from "./components/LinkBlock/LinkBlock.js";
44
- import { default as je } from "./components/LinkList/LinkList.js";
45
- import { default as Je } from "./components/Row/Row.js";
46
- import { default as Qe } from "./components/GridItem/GridItem.js";
47
- import { GridItemAlign as _e } from "./components/GridItem/types.js";
48
- import { default as eo } from "./components/Search/Search.js";
49
- import { default as to } from "./components/Select/Select.js";
50
- import { default as ao } from "./components/SplitPanel/SplitPanel.js";
51
- import { default as lo } from "./patterns/Subscribe/Subscribe.js";
52
- import { SubscriptionState as mo } from "./patterns/Subscribe/types.js";
53
- import { default as uo } from "./patterns/Social/Social.js";
54
- import { default as no } from "./patterns/ViewingsList/ViewingsList.js";
55
- import { default as go } from "./components/Modal/Modal.js";
56
- import { default as Co } from "./components/Drawer/Drawer.js";
57
- import { default as Lo } from "./components/Pagination/Pagination.js";
58
- import { default as ho } from "./patterns/ViewingsList/StatefulViewingsList.js";
59
- import { TextVariants as bo } from "./components/Text/types.js";
60
- import { default as ko } from "./components/Text/Text.js";
61
- import { TextSymbolVariants as Vo } from "./components/TextSymbol/types.js";
62
- import { default as wo } from "./components/TextSymbol/TextSymbol.js";
63
- import { default as Do } from "./components/Accordion/Accordion.js";
64
- import { default as yo } from "./components/Accordion/AccordionItem.js";
65
- import { AccordionItemVariant as Ro, AccordionVariants as Ho } from "./components/Accordion/types.js";
66
- import { default as Mo } from "./patterns/UserManagement/UserManagement.js";
67
- import { AuthState as Wo } from "./patterns/UserManagement/types.js";
68
- import { SupportedLanguages as Uo } from "./types/commonTypes.js";
69
- import { default as zo } from "./components/Breadcrumb/Breadcrumb.js";
28
+ import { SSRMediaQuery as ie, ssrMediaQueryStyle as ge } from "./providers/SeldonProvider/utils.js";
29
+ import { default as Ce } from "./components/Button/Button.js";
30
+ import { ButtonVariants as Le } from "./components/Button/types.js";
31
+ import { default as he } from "./components/IconButton/IconButton.js";
32
+ import { default as be } from "./components/ErrorBoundary/ErrorBoundary.js";
33
+ import { default as ke } from "./site-furniture/Footer/Footer.js";
34
+ import { Grid as Ve } from "./components/Grid/Grid.js";
35
+ import { default as we } from "./site-furniture/Header/Header.js";
36
+ import { default as Be } from "./components/Navigation/Navigation.js";
37
+ import { default as Ne } from "./components/Navigation/NavigationItem/NavigationItem.js";
38
+ import { default as Fe } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
39
+ import { default as He } from "./components/Navigation/NavigationList/NavigationList.js";
40
+ import { default as Oe } from "./patterns/HeroBanner/HeroBanner.js";
41
+ import { default as Ee } from "./components/Input/Input.js";
42
+ import { default as Ue } from "./components/Link/Link.js";
43
+ import { LinkVariants as ze } from "./components/Link/types.js";
44
+ import { default as je } from "./components/LinkBlock/LinkBlock.js";
45
+ import { default as Je } from "./components/LinkList/LinkList.js";
46
+ import { default as Xe } from "./components/Row/Row.js";
47
+ import { default as $e } from "./components/GridItem/GridItem.js";
48
+ import { GridItemAlign as oo } from "./components/GridItem/types.js";
49
+ import { default as ro } from "./components/Search/Search.js";
50
+ import { default as fo } from "./components/Select/Select.js";
51
+ import { default as lo } from "./components/SplitPanel/SplitPanel.js";
52
+ import { default as po } from "./patterns/Subscribe/Subscribe.js";
53
+ import { SubscriptionState as xo } from "./patterns/Subscribe/types.js";
54
+ import { default as io } from "./patterns/Social/Social.js";
55
+ import { default as co } from "./patterns/ViewingsList/ViewingsList.js";
56
+ import { default as So } from "./components/Modal/Modal.js";
57
+ import { default as Po } from "./components/Drawer/Drawer.js";
58
+ import { default as Io } from "./components/Pagination/Pagination.js";
59
+ import { default as To } from "./patterns/ViewingsList/StatefulViewingsList.js";
60
+ import { TextVariants as Ao } from "./components/Text/types.js";
61
+ import { default as vo } from "./components/Text/Text.js";
62
+ import { TextSymbolVariants as yo } from "./components/TextSymbol/types.js";
63
+ import { default as Do } from "./components/TextSymbol/TextSymbol.js";
64
+ import { default as Ro } from "./components/Accordion/Accordion.js";
65
+ import { default as Mo } from "./components/Accordion/AccordionItem.js";
66
+ import { AccordionItemVariant as Go, AccordionVariants as Oo } from "./components/Accordion/types.js";
67
+ import { default as Eo } from "./patterns/UserManagement/UserManagement.js";
68
+ import { AuthState as Uo } from "./patterns/UserManagement/types.js";
69
+ import { SupportedLanguages as zo } from "./types/commonTypes.js";
70
+ import { default as jo } from "./components/Breadcrumb/Breadcrumb.js";
70
71
  import "react/jsx-runtime";
71
72
  import "./node_modules/classnames/index.js";
72
- import { default as jo } from "./components/Dropdown/Dropdown.js";
73
- import { default as Jo } from "./components/Video/Video.js";
74
- import { default as Qo } from "./patterns/LanguageSelector/LanguageSelector.js";
75
- import { default as _o } from "./components/ContentPeek/ContentPeek.js";
76
- import { default as et } from "./components/Collapsible/Collapsible.js";
77
- import { default as tt } from "./components/Collapsible/CollapsibleContent.js";
78
- import { default as at } from "./components/Collapsible/CollapsibleTrigger.js";
79
- import { SeldonProvider as lt } from "./providers/SeldonProvider/SeldonProvider.js";
80
- import { default as mt } from "./components/PageContentWrapper/PageContentWrapper.js";
81
- import { default as dt } from "./components/Carousel/Carousel.js";
82
- import { default as xt } from "./components/Carousel/CarouselContent.js";
83
- import { default as it } from "./components/Carousel/CarouselItem.js";
84
- import { default as ct } from "./components/Carousel/CarouselDots.js";
85
- import { default as St } from "./components/Detail/Detail.js";
86
- import { default as Pt } from "./patterns/DetailList/DetailList.js";
87
- import { DetailListAlignment as It } from "./patterns/DetailList/types.js";
88
- import { default as Tt } from "./components/PinchZoom/PinchZoom.js";
89
- import { default as At } from "./components/Tabs/TabsContainer.js";
90
- import { default as vt } from "./components/Tabs/TabsContent.js";
91
- import { default as Bt } from "./components/SeldonImage/SeldonImage.js";
92
- import { default as Nt } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
93
- import { default as Ft } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
94
- import { AuctionState as Ht } from "./patterns/SaleHeaderBanner/types.js";
95
- import { default as Mt } from "./components/Countdown/Countdown.js";
96
- import { CountdownVariants as Wt } from "./components/Countdown/types.js";
73
+ import { default as Jo } from "./components/Dropdown/Dropdown.js";
74
+ import { default as Xo } from "./components/Video/Video.js";
75
+ import { default as $o } from "./patterns/LanguageSelector/LanguageSelector.js";
76
+ import { default as ot } from "./components/ContentPeek/ContentPeek.js";
77
+ import { default as rt } from "./components/Collapsible/Collapsible.js";
78
+ import { default as ft } from "./components/Collapsible/CollapsibleContent.js";
79
+ import { default as lt } from "./components/Collapsible/CollapsibleTrigger.js";
80
+ import { SeldonProvider as dt } from "./providers/SeldonProvider/SeldonProvider.js";
81
+ import { default as ut } from "./components/PageContentWrapper/PageContentWrapper.js";
82
+ import { default as nt } from "./components/Carousel/Carousel.js";
83
+ import { default as gt } from "./components/Carousel/CarouselContent.js";
84
+ import { default as Ct } from "./components/Carousel/CarouselItem.js";
85
+ import { default as Lt } from "./components/Carousel/CarouselDots.js";
86
+ import { default as ht } from "./components/Detail/Detail.js";
87
+ import { default as bt } from "./patterns/DetailList/DetailList.js";
88
+ import { DetailListAlignment as kt } from "./patterns/DetailList/types.js";
89
+ import { default as Vt } from "./components/PinchZoom/PinchZoom.js";
90
+ import { default as wt } from "./components/Tabs/TabsContainer.js";
91
+ import { default as Bt } from "./components/Tabs/TabsContent.js";
92
+ import { default as Nt } from "./components/SeldonImage/SeldonImage.js";
93
+ import { default as Ft } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
94
+ import { default as Ht } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
95
+ import { AuctionState as Ot } from "./patterns/SaleHeaderBanner/types.js";
96
+ import { default as Et } from "./components/Countdown/Countdown.js";
97
+ import { CountdownVariants as Ut } from "./components/Countdown/types.js";
97
98
  export {
98
- Do as Accordion,
99
- yo as AccordionItem,
100
- Ro as AccordionItemVariant,
101
- Ho as AccordionVariants,
99
+ Ro as Accordion,
100
+ Mo as AccordionItem,
101
+ Go as AccordionItemVariant,
102
+ Oo as AccordionVariants,
102
103
  S as AccountCircle,
103
104
  P as ArrowPrev,
104
- Ht as AuctionState,
105
- Wo as AuthState,
106
- zo as Breadcrumb,
107
- ie as Button,
108
- ce as ButtonVariants,
105
+ Ot as AuctionState,
106
+ Uo as AuthState,
107
+ jo as Breadcrumb,
108
+ Ce as Button,
109
+ Le as ButtonVariants,
109
110
  I as Calendar,
110
- dt as Carousel,
111
- xt as CarouselContent,
112
- ct as CarouselDots,
113
- it as CarouselItem,
111
+ nt as Carousel,
112
+ gt as CarouselContent,
113
+ Lt as CarouselDots,
114
+ Ct as CarouselItem,
114
115
  T as ChevronDown,
115
116
  A as ChevronNext,
116
117
  v as ChevronRight,
117
- B as Close,
118
- et as Collapsible,
119
- tt as CollapsibleContent,
120
- at as CollapsibleTrigger,
121
- _o as ContentPeek,
122
- Mt as Countdown,
123
- Wt as CountdownVariants,
124
- St as Detail,
125
- Pt as DetailList,
126
- It as DetailListAlignment,
127
- Co as Drawer,
128
- jo as Dropdown,
129
- Pe as ErrorBoundary,
130
- F as Facebook,
131
- N as FavoriteOutline,
132
- Ie as Footer,
133
- H as FooterInstagram,
134
- U as FooterWeChat,
135
- Te as Grid,
136
- Qe as GridItem,
137
- _e as GridItemAlign,
138
- Ae as Header,
139
- He as HeroBanner,
140
- Se as IconButton,
141
- Me as Input,
142
- z as Instagram,
143
- Qo as LanguageSelector,
144
- We as Link,
145
- ze as LinkBlock,
146
- je as LinkList,
147
- Ue as LinkVariants,
148
- M as LinkedIn,
149
- j as Lock,
150
- J as Minus,
151
- go as Modal,
152
- ve as Navigation,
153
- Be as NavigationItem,
154
- Ne as NavigationItemTrigger,
155
- Fe as NavigationList,
118
+ y as Close,
119
+ rt as Collapsible,
120
+ ft as CollapsibleContent,
121
+ lt as CollapsibleTrigger,
122
+ ot as ContentPeek,
123
+ Et as Countdown,
124
+ Ut as CountdownVariants,
125
+ ht as Detail,
126
+ bt as DetailList,
127
+ kt as DetailListAlignment,
128
+ Po as Drawer,
129
+ Jo as Dropdown,
130
+ be as ErrorBoundary,
131
+ R as Facebook,
132
+ D as FavoriteOutline,
133
+ ke as Footer,
134
+ M as FooterInstagram,
135
+ Q as FooterWeChat,
136
+ Ve as Grid,
137
+ $e as GridItem,
138
+ oo as GridItemAlign,
139
+ we as Header,
140
+ Oe as HeroBanner,
141
+ he as IconButton,
142
+ Ee as Input,
143
+ Y as Instagram,
144
+ $o as LanguageSelector,
145
+ Ue as Link,
146
+ je as LinkBlock,
147
+ Je as LinkList,
148
+ ze as LinkVariants,
149
+ G as LinkedIn,
150
+ Z as Lock,
151
+ q as Minus,
152
+ So as Modal,
153
+ Be as Navigation,
154
+ Ne as NavigationItem,
155
+ Fe as NavigationItemTrigger,
156
+ He as NavigationList,
156
157
  f as PaddingTokens,
157
- de as Page,
158
- mt as PageContentWrapper,
159
- Lo as Pagination,
160
- Q as PhillipsLogo,
161
- Tt as PinchZoom,
158
+ pe as Page,
159
+ ut as PageContentWrapper,
160
+ Io as Pagination,
161
+ K as PhillipsLogo,
162
+ Vt as PinchZoom,
162
163
  _ as Plus,
163
164
  ee as React,
164
165
  W as Reddit,
165
- Je as Row,
166
- Nt as SaleHeaderBanner,
167
- Ft as SaleHeaderBrowseAuctions,
168
- eo as Search,
169
- Bt as SeldonImage,
170
- lt as SeldonProvider,
171
- to as Select,
166
+ Xe as Row,
167
+ ie as SSRMediaQuery,
168
+ Ft as SaleHeaderBanner,
169
+ Ht as SaleHeaderBrowseAuctions,
170
+ ro as Search,
171
+ Nt as SeldonImage,
172
+ dt as SeldonProvider,
173
+ fo as Select,
172
174
  te as Share,
173
- uo as Social,
174
- l as SpacingTokens,
175
- ao as SplitPanel,
175
+ io as Social,
176
+ s as SpacingTokens,
177
+ lo as SplitPanel,
176
178
  ae as Spotify,
177
- ho as StatefulViewingsList,
178
- lo as Subscribe,
179
- mo as SubscriptionState,
180
- Uo as SupportedLanguages,
181
- At as TabsContainer,
182
- vt as TabsContent,
183
- ko as Text,
184
- Vo as TextSymbolVariants,
185
- wo as TextSymbols,
186
- bo as TextVariants,
187
- Mo as UserManagement,
188
- Jo as Video,
189
- no as ViewingsList,
190
- le as WeChat,
179
+ To as StatefulViewingsList,
180
+ po as Subscribe,
181
+ xo as SubscriptionState,
182
+ zo as SupportedLanguages,
183
+ wt as TabsContainer,
184
+ Bt as TabsContent,
185
+ vo as Text,
186
+ yo as TextSymbolVariants,
187
+ Do as TextSymbols,
188
+ Ao as TextVariants,
189
+ Eo as UserManagement,
190
+ Xo as Video,
191
+ co as ViewingsList,
192
+ se as WeChat,
191
193
  me as Youtube,
192
- s as defaultYear,
194
+ l as defaultYear,
193
195
  m as emailValidation,
194
- p as encodeURLSearchParams,
195
- d as findChildrenExcludingTypes,
196
+ d as encodeURLSearchParams,
197
+ p as findChildrenExcludingTypes,
196
198
  u as findChildrenOfType,
197
199
  x as generatePaddingClassName,
198
200
  n as getCommonProps,
199
201
  i as noOp,
200
202
  g as px,
203
+ ge as ssrMediaQueryStyle,
201
204
  c as useNormalizedInputProps,
202
205
  xe as usePendingState
203
206
  };
@@ -1,4 +1,4 @@
1
- import { __exports as o } from "../../../../_virtual/index2.js";
1
+ import { __exports as o } from "../../../../_virtual/index.js";
2
2
  import "./Media.js";
3
3
  import "./Breakpoints.js";
4
4
  import { __exports as a } from "../../../../_virtual/Media.js";
@@ -1,5 +1,5 @@
1
1
  import { getDefaultExportFromCjs as u } from "../../_virtual/_commonjsHelpers.js";
2
- import { __module as i } from "../../_virtual/index.js";
2
+ import { __module as i } from "../../_virtual/index2.js";
3
3
  /*!
4
4
  Copyright (c) 2018 Jed Watson.
5
5
  Licensed under the MIT License (MIT), see
@@ -1,6 +1,6 @@
1
1
  import "../../node_modules/@artsy/fresnel/dist/index.js";
2
2
  import { BREAKPOINTS as e } from "../../utils/constants.js";
3
- import { __exports as r } from "../../_virtual/index2.js";
3
+ import { __exports as r } from "../../_virtual/index.js";
4
4
  const t = r.createMedia({ breakpoints: e }), s = t.createMediaStyle();
5
5
  export {
6
6
  t as SSRMediaQuery,
@@ -66,6 +66,20 @@
66
66
  }
67
67
  }
68
68
 
69
+ &--link {
70
+ background-color: transparent;
71
+ border: 0;
72
+ color: $pure-black;
73
+ height: auto;
74
+ padding: 0;
75
+ text-decoration: underline;
76
+
77
+ &:hover {
78
+ background-color: transparent;
79
+ color: $pure-black;
80
+ }
81
+ }
82
+
69
83
  &--secondary,
70
84
  &--ghost {
71
85
  background-color: $pure-white;
@@ -191,6 +205,10 @@
191
205
  border-color: transparent;
192
206
  }
193
207
 
208
+ &--link:disabled {
209
+ border: 0;
210
+ }
211
+
194
212
  * {
195
213
  margin: 0;
196
214
  }
@@ -29,13 +29,19 @@
29
29
  appearance: none;
30
30
  border: none;
31
31
  font-variation-settings: 'wght' 600;
32
- line-height: 2.5rem;
32
+ line-height: 1.75rem;
33
33
  margin-bottom: 0;
34
34
  outline: none;
35
+ padding: 0 $spacing-xsm;
35
36
  text-align: center;
36
37
  text-align-last: center;
37
38
  text-decoration: underline;
38
- text-underline-offset: 10px;
39
+ text-underline-offset: 6px;
40
+
41
+ @include isHeaderDesktop {
42
+ line-height: 2.5rem;
43
+ text-underline-offset: 10px;
44
+ }
39
45
 
40
46
  &:disabled {
41
47
  border: 1px solid $medium-gray;
@@ -105,7 +105,7 @@
105
105
 
106
106
  &__nav {
107
107
  background-color: $pure-white;
108
- height: calc(100vh - $header-height);
108
+ height: calc(100dvh - $header-height);
109
109
  overflow-y: auto;
110
110
  position: relative;
111
111
  z-index: 10;
@@ -119,7 +119,7 @@
119
119
 
120
120
  @include isHeaderMobile {
121
121
  flex-direction: column;
122
- height: calc(100vh - var(--header-height) - 1px);
122
+ height: calc(100dvh - var(--header-height) - 1px);
123
123
  justify-content: flex-start;
124
124
  padding: 0 $spacing-md;
125
125
  }
@@ -143,10 +143,6 @@
143
143
  display: unset;
144
144
  left: -100%;
145
145
  }
146
-
147
- .#{$px}-nav__list {
148
- padding-top: $spacing-md;
149
- }
150
146
  }
151
147
 
152
148
  @include isHeaderDesktop {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.82.0",
3
+ "version": "1.83.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"