@phillips/seldon 1.93.0 → 1.95.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.
@@ -0,0 +1,5 @@
1
+ import * as e from "react";
2
+ const t = (l) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 28, height: 28, viewBox: "0 0 28 28", fill: "none", ...l }, /* @__PURE__ */ e.createElement("path", { d: "M7 12.2505C6.51675 12.2505 6.125 12.6422 6.125 13.1255C6.125 13.6087 6.51675 14.0005 7 14.0005H8.75C9.23325 14.0005 9.625 13.6087 9.625 13.1255C9.625 12.6422 9.23325 12.2505 8.75 12.2505H7Z", fill: "black" }), /* @__PURE__ */ e.createElement("path", { d: "M13.125 12.2505C12.6418 12.2505 12.25 12.6422 12.25 13.1255C12.25 13.6087 12.6418 14.0005 13.125 14.0005H14.875C15.3582 14.0005 15.75 13.6087 15.75 13.1255C15.75 12.6422 15.3582 12.2505 14.875 12.2505H13.125Z", fill: "black" }), /* @__PURE__ */ e.createElement("path", { d: "M19.25 12.2505C18.7668 12.2505 18.375 12.6422 18.375 13.1255C18.375 13.6087 18.7668 14.0005 19.25 14.0005H21C21.4832 14.0005 21.875 13.6087 21.875 13.1255C21.875 12.6422 21.4832 12.2505 21 12.2505H19.25Z", fill: "black" }), /* @__PURE__ */ e.createElement("path", { d: "M7 17.5005C6.51675 17.5005 6.125 17.8922 6.125 18.3755C6.125 18.8587 6.51675 19.2505 7 19.2505H8.75C9.23325 19.2505 9.625 18.8587 9.625 18.3755C9.625 17.8922 9.23325 17.5005 8.75 17.5005H7Z", fill: "black" }), /* @__PURE__ */ e.createElement("path", { d: "M13.125 17.5005C12.6418 17.5005 12.25 17.8922 12.25 18.3755C12.25 18.8587 12.6418 19.2505 13.125 19.2505H14.875C15.3582 19.2505 15.75 18.8587 15.75 18.3755C15.75 17.8922 15.3582 17.5005 14.875 17.5005H13.125Z", fill: "black" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.75 7.00049C1.75 5.06749 3.317 3.50049 5.25 3.50049H22.75C24.683 3.50049 26.25 5.06749 26.25 7.00049V21.0005C26.25 22.9335 24.683 24.5005 22.75 24.5005H5.25C3.317 24.5005 1.75 22.9335 1.75 21.0005V7.00049ZM24.5 9.62549V21.0005C24.5 21.967 23.7165 22.7505 22.75 22.7505H5.25C4.2835 22.7505 3.5 21.967 3.5 21.0005V9.62549H24.5ZM24.5 7.87549V7.00049C24.5 6.03399 23.7165 5.25049 22.75 5.25049H5.25C4.2835 5.25049 3.5 6.03399 3.5 7.00049V7.87549H24.5Z", fill: "black" }));
3
+ export {
4
+ t as default
5
+ };
@@ -1,6 +1,7 @@
1
1
  export { default as AccountCircle } from './account_circle.svg?react';
2
2
  export { default as ArrowPrev } from './arrowPrev.svg?react';
3
3
  export { default as Calendar } from './calendar.svg?react';
4
+ export { default as CalendarAlt } from './calendarAlt.svg?react';
4
5
  export { default as ChevronDown } from './chevronDown.svg?react';
5
6
  export { default as ChevronNext } from './chevronNext.svg?react';
6
7
  export { default as ChevronRight } from './chevronRight.svg?react';
@@ -1,58 +1,64 @@
1
- import { jsx as f } from "react/jsx-runtime";
2
- import i from "../../node_modules/classnames/index.js";
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import p from "../../node_modules/classnames/index.js";
3
3
  import { getCommonProps as d } from "../../utils/index.js";
4
4
  import { ButtonVariants as b } from "./types.js";
5
- import { forwardRef as N } from "react";
6
- const B = N(
5
+ import { forwardRef as B } from "react";
6
+ const N = B(
7
7
  ({
8
- variant: s = b.primary,
9
- size: t = "md",
10
- children: a,
11
- className: p,
8
+ variant: t = b.primary,
9
+ size: s = "md",
10
+ children: r,
11
+ className: a,
12
12
  isIconLast: m = !1,
13
13
  type: u = "button",
14
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(
15
+ href: e,
16
+ target: n,
17
+ ...l
18
+ }, $) => {
19
+ const { className: o, ...f } = d(l, "Button");
20
+ return e ? /* @__PURE__ */ i(
21
21
  "a",
22
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
23
+ ...f,
24
+ ref: $,
25
+ href: e,
26
+ className: p(
27
+ `${o}`,
28
+ `${o}--${s}`,
29
+ `${o}--${t}`,
30
+ {
31
+ [`${o}--icon-last`]: m
32
+ },
33
+ a
34
+ ),
35
+ target: n,
36
+ rel: n === "_blank" ? "noopener noreferrer" : void 0,
37
+ children: r
32
38
  }
33
- ) : /* @__PURE__ */ f(
39
+ ) : /* @__PURE__ */ i(
34
40
  "button",
35
41
  {
36
- ...$,
37
- ref: l,
42
+ ...f,
43
+ ref: $,
38
44
  type: u,
39
- className: i(
45
+ className: p(
40
46
  `${o}`,
41
- `${o}--${t}`,
42
47
  `${o}--${s}`,
48
+ `${o}--${t}`,
43
49
  {
44
50
  [`${o}--icon-last`]: m
45
51
  },
46
- p
52
+ a
47
53
  ),
48
54
  disabled: c,
49
- ...n,
50
- children: a
55
+ ...l,
56
+ children: r
51
57
  }
52
58
  );
53
59
  }
54
60
  );
55
- B.displayName = "Button";
61
+ N.displayName = "Button";
56
62
  export {
57
- B as default
63
+ N as default
58
64
  };
@@ -19,15 +19,15 @@ const E = ({
19
19
  selectLabel: C = "Select",
20
20
  ...s
21
21
  }) => {
22
- const N = "pagination", { className: u, ..._ } = w(s, "Pagination"), { id: c } = s, { pendingState: y, setPendingState: I } = k(o(g)), m = y || g, d = (t, e) => {
22
+ const N = "pagination", { className: u, ...I } = w(s, "Pagination"), { id: c } = s, { pendingState: _, setPendingState: y } = k(o(g)), m = _ || g, d = (t, e) => {
23
23
  const a = o(t);
24
- I(a), P(a, e);
24
+ y(a), P(a, e);
25
25
  };
26
26
  return /* @__PURE__ */ O(
27
27
  "div",
28
28
  {
29
29
  className: p(`${r}-${N}`, { [`${u}__wrapper`]: u }, b),
30
- ..._,
30
+ ...I,
31
31
  ...s,
32
32
  children: [
33
33
  /* @__PURE__ */ i(
@@ -58,6 +58,7 @@ const E = ({
58
58
  "data-testid": `${c}-select-button`,
59
59
  hideLabel: !0,
60
60
  disabled: l,
61
+ showIcon: !1,
61
62
  children: n.map((t) => {
62
63
  const e = o(t);
63
64
  return /* @__PURE__ */ i("option", { value: e, children: typeof t == "string" || typeof t == "number" ? t : t.label }, e);
@@ -1,10 +1,19 @@
1
1
  import { InputProps } from '../Input/Input';
2
+ import { SelectVariants } from './types';
2
3
  import * as React from 'react';
3
4
  export interface SelectProps extends InputProps {
4
5
  /**
5
6
  * Option elements that are selectable
6
7
  */
7
8
  children: React.ReactNode;
9
+ /**
10
+ * Determines if you want to show the icon
11
+ */
12
+ showIcon?: boolean;
13
+ /**
14
+ * Determines the variant of the select
15
+ */
16
+ variant: SelectVariants;
8
17
  }
9
18
  /**
10
19
  * ## Overview
@@ -1,59 +1,70 @@
1
- import { jsxs as P, jsx as l } from "react/jsx-runtime";
2
- import * as R from "react";
3
- import n from "../../node_modules/classnames/index.js";
4
- import { px as t, useNormalizedInputProps as S } from "../../utils/index.js";
5
- const z = R.forwardRef(
1
+ import { jsxs as p, jsx as s } from "react/jsx-runtime";
2
+ import * as k from "react";
3
+ import i from "../../node_modules/classnames/index.js";
4
+ import { px as e, useNormalizedInputProps as z } from "../../utils/index.js";
5
+ import { SelectVariants as c } from "./types.js";
6
+ import D from "../../assets/chevronDown.svg.js";
7
+ const F = k.forwardRef(
6
8
  ({
7
- children: r,
9
+ children: d,
8
10
  className: a,
9
- defaultValue: d,
10
- disabled: o,
11
- hideLabel: u,
12
- id: i,
13
- inline: m,
14
- invalid: $,
15
- invalidText: c,
16
- labelText: _,
17
- onChange: b,
18
- onClick: f,
19
- readOnly: p,
20
- size: w = "md",
21
- value: h,
22
- warn: v,
23
- warnText: x,
24
- ...N
11
+ defaultValue: m,
12
+ disabled: u,
13
+ hideLabel: $,
14
+ id: n,
15
+ showIcon: l = !0,
16
+ variant: _ = c.default,
17
+ inline: f,
18
+ invalid: b,
19
+ invalidText: v,
20
+ labelText: h,
21
+ onChange: w,
22
+ onClick: V,
23
+ readOnly: r,
24
+ size: C = "md",
25
+ value: x,
26
+ warn: y,
27
+ warnText: N,
28
+ ...S
25
29
  }, j) => {
26
- const s = "select", e = S({ disabled: o, id: i, invalid: $, invalidText: c, readOnly: p, type: s, warn: v, warnText: x }), y = n(`${t}-${s}-input`, `${t}-input`, `${t}-input--${w}`, {
27
- [`${t}-input--inline`]: m,
28
- [`${t}-input--readonly`]: p,
29
- [`${t}-input--disabled`]: e.disabled,
30
- [`${t}-input--invalid`]: e.invalid,
31
- [`${t}-input--warn`]: e.warn,
30
+ const o = "select", t = z({ disabled: u, id: n, invalid: b, invalidText: v, readOnly: r, type: o, warn: y, warnText: N }), P = i(`${e}-${o}-input`, `${e}-input`, `${e}-input--${C}`, {
31
+ [`${e}-input--inline`]: f,
32
+ [`${e}-input--readonly`]: r,
33
+ [`${e}-input--disabled`]: t.disabled,
34
+ [`${e}-input--invalid`]: t.invalid,
35
+ [`${e}-input--warn`]: t.warn,
32
36
  [`${a}__wrapper`]: a
37
+ }), R = i(`${e}-input__input`, {
38
+ className: a,
39
+ [`${e}-input__select--tertiary`]: _ === c.tertiary
40
+ }), g = i(`${e}-select-container`, {
41
+ [`${e}-select-container--show__icon`]: l
33
42
  });
34
- return /* @__PURE__ */ P("div", { className: y, children: [
35
- /* @__PURE__ */ l("label", { htmlFor: i, className: n(`${t}-input__label`, { [`${t}-input__label--hidden`]: u }), children: _ }),
36
- /* @__PURE__ */ l(
37
- "select",
38
- {
39
- className: n(`${t}-input__input`, { className: a }),
40
- "data-testid": i,
41
- defaultValue: d,
42
- disabled: e.disabled,
43
- id: i,
44
- onChange: b,
45
- onClick: f,
46
- ref: j,
47
- value: h,
48
- ...N,
49
- children: r
50
- }
51
- ),
52
- e.validation
43
+ return /* @__PURE__ */ p("div", { className: P, children: [
44
+ /* @__PURE__ */ s("label", { htmlFor: n, className: i(`${e}-input__label`, { [`${e}-input__label--hidden`]: $ }), children: h }),
45
+ /* @__PURE__ */ p("div", { className: g, children: [
46
+ /* @__PURE__ */ s(
47
+ "select",
48
+ {
49
+ className: R,
50
+ "data-testid": n,
51
+ defaultValue: m,
52
+ disabled: t.disabled,
53
+ id: n,
54
+ onChange: w,
55
+ ref: j,
56
+ value: x,
57
+ ...S,
58
+ children: d
59
+ }
60
+ ),
61
+ l ? /* @__PURE__ */ s(D, {}) : null
62
+ ] }),
63
+ t.validation
53
64
  ] });
54
65
  }
55
66
  );
56
- z.displayName = "Select";
67
+ F.displayName = "Select";
57
68
  export {
58
- z as default
69
+ F as default
59
70
  };
@@ -1,4 +1,5 @@
1
1
  import { SelectProps } from './Select';
2
+ import { SelectVariants } from './types';
2
3
  declare const meta: {
3
4
  title: string;
4
5
  component: import('react').ForwardRefExoticComponent<Omit<SelectProps, "ref"> & import('react').RefAttributes<HTMLSelectElement>>;
@@ -13,12 +14,14 @@ export declare const Playground: {
13
14
  playgroundWidth: number;
14
15
  className: string;
15
16
  defaultValue: string;
17
+ showIcon: boolean;
16
18
  disabled: boolean;
17
19
  invalid: boolean;
18
20
  invalidText: string;
19
21
  labelText: string;
20
22
  readOnly: boolean;
21
23
  size: string;
24
+ variant: SelectVariants;
22
25
  warn: boolean;
23
26
  warnText: string;
24
27
  };
@@ -33,6 +36,11 @@ export declare const Playground: {
33
36
  type: string;
34
37
  };
35
38
  };
39
+ showIcon: {
40
+ control: {
41
+ type: string;
42
+ };
43
+ };
36
44
  invalid: {
37
45
  control: {
38
46
  type: string;
@@ -68,6 +76,12 @@ export declare const Playground: {
68
76
  type: string;
69
77
  };
70
78
  };
79
+ variant: {
80
+ options: SelectVariants[];
81
+ control: {
82
+ type: string;
83
+ };
84
+ };
71
85
  value: {
72
86
  control: {
73
87
  type: string;
@@ -90,3 +104,19 @@ export declare const Playground: {
90
104
  };
91
105
  };
92
106
  };
107
+ export declare const Tertiary: {
108
+ ({ playgroundWidth, ...args }: StoryProps): import("react/jsx-runtime").JSX.Element;
109
+ args: {
110
+ showIcon: boolean;
111
+ variant: SelectVariants;
112
+ };
113
+ argTypes: {
114
+ variant: {
115
+ options: SelectVariants[];
116
+ control: {
117
+ type: string;
118
+ };
119
+ defaultValue: SelectVariants;
120
+ };
121
+ };
122
+ };
@@ -0,0 +1,4 @@
1
+ export declare enum SelectVariants {
2
+ default = "default",
3
+ tertiary = "tertiary"
4
+ }
@@ -0,0 +1,4 @@
1
+ var t = /* @__PURE__ */ ((r) => (r.default = "default", r.tertiary = "tertiary", r))(t || {});
2
+ export {
3
+ t as SelectVariants
4
+ };
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export { default as GridItem, type GridItemProps } from './components/GridItem/G
26
26
  export { GridItemAlign } from './components/GridItem/types';
27
27
  export { default as Search, type SearchProps } from './components/Search/Search';
28
28
  export { default as Select, type SelectProps } from './components/Select/Select';
29
+ export { SelectVariants } from './components/Select/types';
29
30
  export { default as SplitPanel, type SplitPanelProps } from './components/SplitPanel/SplitPanel';
30
31
  export { default as Subscribe, type SubscribeProps } from './patterns/Subscribe/Subscribe';
31
32
  export { SubscriptionState } from './patterns/Subscribe/types';
package/dist/index.js CHANGED
@@ -2,208 +2,212 @@ import { PaddingTokens as f, SpacingTokens as s, defaultYear as l, emailValidati
2
2
  import { default as S } from "./assets/account_circle.svg.js";
3
3
  import { default as L } from "./assets/arrowPrev.svg.js";
4
4
  import { default as b } from "./assets/calendar.svg.js";
5
- import { default as T } from "./assets/chevronDown.svg.js";
6
- import { default as A } from "./assets/chevronNext.svg.js";
7
- import { default as B } from "./assets/chevronRight.svg.js";
8
- import { default as w } from "./assets/close.svg.js";
9
- import { default as D } from "./assets/favorite.svg.js";
10
- import { default as F } from "./assets/favoriteOutline.svg.js";
11
- import { default as M } from "./assets/icon-footer-facebook.svg.js";
12
- import { default as O } from "./assets/icon-footer-instagram.svg.js";
13
- import { default as G } from "./assets/icon-footer-linkedin.svg.js";
14
- import { default as E } from "./assets/icon-footer-red.svg.js";
15
- import { default as Y } from "./assets/icon-footer-wechat.svg.js";
16
- import { default as z } from "./assets/instagram.svg.js";
17
- import { default as q } from "./assets/lock.svg.js";
18
- import { default as K } from "./assets/minus.svg.js";
19
- import { default as _ } from "./assets/PhillipsLogo.svg.js";
20
- import { default as ee } from "./assets/plus.svg.js";
21
- import { default as te } from "./assets/react.svg.js";
5
+ import { default as T } from "./assets/calendarAlt.svg.js";
6
+ import { default as k } from "./assets/chevronDown.svg.js";
7
+ import { default as v } from "./assets/chevronNext.svg.js";
8
+ import { default as w } from "./assets/chevronRight.svg.js";
9
+ import { default as D } from "./assets/close.svg.js";
10
+ import { default as F } from "./assets/favorite.svg.js";
11
+ import { default as M } from "./assets/favoriteOutline.svg.js";
12
+ import { default as O } from "./assets/icon-footer-facebook.svg.js";
13
+ import { default as G } from "./assets/icon-footer-instagram.svg.js";
14
+ import { default as E } from "./assets/icon-footer-linkedin.svg.js";
15
+ import { default as Y } from "./assets/icon-footer-red.svg.js";
16
+ import { default as z } from "./assets/icon-footer-wechat.svg.js";
17
+ import { default as q } from "./assets/instagram.svg.js";
18
+ import { default as K } from "./assets/lock.svg.js";
19
+ import { default as _ } from "./assets/minus.svg.js";
20
+ import { default as ee } from "./assets/PhillipsLogo.svg.js";
21
+ import { default as te } from "./assets/plus.svg.js";
22
+ import { default as ae } from "./assets/react.svg.js";
22
23
  import "react";
23
- import { default as ae } from "./assets/share.svg.js";
24
- import { default as se } from "./assets/spotify.svg.js";
25
- import { default as de } from "./assets/wechat.svg.js";
26
- import { default as pe } from "./assets/youtube.svg.js";
27
- import { default as xe } from "./pages/Page.js";
28
- import { usePendingState as ie } from "./utils/hooks.js";
29
- import { SSRMediaQuery as ce, ssrMediaQueryStyle as Ce } from "./providers/SeldonProvider/utils.js";
30
- import { AuctionStatus as he, SupportedLanguages as Le } from "./types/commonTypes.js";
31
- import { default as be } from "./components/Button/Button.js";
32
- import { ButtonVariants as Te } from "./components/Button/types.js";
33
- import { default as Ae } from "./components/IconButton/IconButton.js";
34
- import { default as Be } from "./components/ErrorBoundary/ErrorBoundary.js";
35
- import { default as we } from "./site-furniture/Footer/Footer.js";
36
- import { Grid as De } from "./components/Grid/Grid.js";
37
- import { default as Fe } from "./site-furniture/Header/Header.js";
38
- import { default as Me } from "./components/Navigation/Navigation.js";
39
- import { default as Oe } from "./components/Navigation/NavigationItem/NavigationItem.js";
40
- import { default as Ge } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
41
- import { default as Ee } from "./components/Navigation/NavigationList/NavigationList.js";
42
- import { default as Ye } from "./patterns/HeroBanner/HeroBanner.js";
43
- import { default as ze } from "./components/Input/Input.js";
44
- import { default as qe } from "./components/Link/Link.js";
45
- import { LinkVariants as Ke } from "./components/Link/types.js";
46
- import { default as _e } from "./components/LinkBlock/LinkBlock.js";
47
- import { default as eo } from "./components/LinkList/LinkList.js";
48
- import { default as to } from "./components/Row/Row.js";
49
- import { default as ao } from "./components/GridItem/GridItem.js";
50
- import { GridItemAlign as so } from "./components/GridItem/types.js";
51
- import { default as mo } from "./components/Search/Search.js";
52
- import { default as uo } from "./components/Select/Select.js";
53
- import { default as no } from "./components/SplitPanel/SplitPanel.js";
54
- import { default as go } from "./patterns/Subscribe/Subscribe.js";
55
- import { SubscriptionState as Co } from "./patterns/Subscribe/types.js";
56
- import { default as ho } from "./patterns/Social/Social.js";
57
- import { default as Po } from "./patterns/ViewingsList/ViewingsList.js";
58
- import { default as Io } from "./components/Modal/Modal.js";
59
- import { default as ko } from "./components/Drawer/Drawer.js";
60
- import { default as vo } from "./components/Pagination/Pagination.js";
61
- import { default as Vo } from "./components/Tags/Tags.js";
62
- import { default as yo } from "./patterns/ViewingsList/StatefulViewingsList.js";
63
- import { TextVariants as No } from "./components/Text/types.js";
64
- import { default as Ho } from "./components/Text/Text.js";
65
- import { TextSymbolVariants as Ro } from "./components/TextSymbol/types.js";
66
- import { default as Uo } from "./components/TextSymbol/TextSymbol.js";
67
- import { default as Wo } from "./components/Accordion/Accordion.js";
68
- import { default as Qo } from "./components/Accordion/AccordionItem.js";
69
- import { AccordionItemVariant as jo, AccordionVariants as zo } from "./components/Accordion/types.js";
70
- import { default as qo } from "./patterns/UserManagement/UserManagement.js";
71
- import { AuthState as Ko } from "./patterns/UserManagement/types.js";
72
- import { default as _o } from "./components/Breadcrumb/Breadcrumb.js";
24
+ import { default as se } from "./assets/share.svg.js";
25
+ import { default as de } from "./assets/spotify.svg.js";
26
+ import { default as pe } from "./assets/wechat.svg.js";
27
+ import { default as xe } from "./assets/youtube.svg.js";
28
+ import { default as ie } from "./pages/Page.js";
29
+ import { usePendingState as ce } from "./utils/hooks.js";
30
+ import { SSRMediaQuery as Se, ssrMediaQueryStyle as he } from "./providers/SeldonProvider/utils.js";
31
+ import { AuctionStatus as Pe, SupportedLanguages as be } from "./types/commonTypes.js";
32
+ import { default as Te } from "./components/Button/Button.js";
33
+ import { ButtonVariants as ke } from "./components/Button/types.js";
34
+ import { default as ve } from "./components/IconButton/IconButton.js";
35
+ import { default as we } from "./components/ErrorBoundary/ErrorBoundary.js";
36
+ import { default as De } from "./site-furniture/Footer/Footer.js";
37
+ import { Grid as Fe } from "./components/Grid/Grid.js";
38
+ import { default as Me } from "./site-furniture/Header/Header.js";
39
+ import { default as Oe } from "./components/Navigation/Navigation.js";
40
+ import { default as Ge } from "./components/Navigation/NavigationItem/NavigationItem.js";
41
+ import { default as Ee } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
42
+ import { default as Ye } from "./components/Navigation/NavigationList/NavigationList.js";
43
+ import { default as ze } from "./patterns/HeroBanner/HeroBanner.js";
44
+ import { default as qe } from "./components/Input/Input.js";
45
+ import { default as Ke } from "./components/Link/Link.js";
46
+ import { LinkVariants as _e } from "./components/Link/types.js";
47
+ import { default as eo } from "./components/LinkBlock/LinkBlock.js";
48
+ import { default as to } from "./components/LinkList/LinkList.js";
49
+ import { default as ao } from "./components/Row/Row.js";
50
+ import { default as so } from "./components/GridItem/GridItem.js";
51
+ import { GridItemAlign as mo } from "./components/GridItem/types.js";
52
+ import { default as uo } from "./components/Search/Search.js";
53
+ import { default as no } from "./components/Select/Select.js";
54
+ import { SelectVariants as go } from "./components/Select/types.js";
55
+ import { default as Co } from "./components/SplitPanel/SplitPanel.js";
56
+ import { default as ho } from "./patterns/Subscribe/Subscribe.js";
57
+ import { SubscriptionState as Po } from "./patterns/Subscribe/types.js";
58
+ import { default as Io } from "./patterns/Social/Social.js";
59
+ import { default as Ao } from "./patterns/ViewingsList/ViewingsList.js";
60
+ import { default as Vo } from "./components/Modal/Modal.js";
61
+ import { default as Bo } from "./components/Drawer/Drawer.js";
62
+ import { default as yo } from "./components/Pagination/Pagination.js";
63
+ import { default as No } from "./components/Tags/Tags.js";
64
+ import { default as Ho } from "./patterns/ViewingsList/StatefulViewingsList.js";
65
+ import { TextVariants as Ro } from "./components/Text/types.js";
66
+ import { default as Uo } from "./components/Text/Text.js";
67
+ import { TextSymbolVariants as Wo } from "./components/TextSymbol/types.js";
68
+ import { default as Qo } from "./components/TextSymbol/TextSymbol.js";
69
+ import { default as jo } from "./components/Accordion/Accordion.js";
70
+ import { default as Zo } from "./components/Accordion/AccordionItem.js";
71
+ import { AccordionItemVariant as Jo, AccordionVariants as Ko } from "./components/Accordion/types.js";
72
+ import { default as _o } from "./patterns/UserManagement/UserManagement.js";
73
+ import { AuthState as et } from "./patterns/UserManagement/types.js";
74
+ import { default as tt } from "./components/Breadcrumb/Breadcrumb.js";
73
75
  import "react/jsx-runtime";
74
76
  import "./node_modules/classnames/index.js";
75
- import { default as et } from "./components/Dropdown/Dropdown.js";
76
- import { default as tt } from "./components/Video/Video.js";
77
- import { default as at } from "./patterns/LanguageSelector/LanguageSelector.js";
78
- import { default as st } from "./components/ContentPeek/ContentPeek.js";
79
- import { HeightUnits as dt } from "./components/ContentPeek/utils.js";
80
- import { default as pt } from "./components/Collapsible/Collapsible.js";
81
- import { default as xt } from "./components/Collapsible/CollapsibleContent.js";
82
- import { default as it } from "./components/Collapsible/CollapsibleTrigger.js";
83
- import { SeldonProvider as ct } from "./providers/SeldonProvider/SeldonProvider.js";
84
- import { default as St } from "./components/PageContentWrapper/PageContentWrapper.js";
85
- import { default as Lt } from "./components/Carousel/Carousel.js";
86
- import { default as bt } from "./components/Carousel/CarouselContent.js";
87
- import { default as Tt } from "./components/Carousel/CarouselItem.js";
88
- import { default as At } from "./components/Carousel/CarouselDots.js";
89
- import { default as Bt } from "./components/Detail/Detail.js";
90
- import { default as wt } from "./patterns/DetailList/DetailList.js";
91
- import { DetailListAlignment as Dt } from "./patterns/DetailList/types.js";
92
- import { default as Ft } from "./components/PinchZoom/PinchZoom.js";
93
- import { default as Mt } from "./components/Tabs/TabsContainer.js";
94
- import { default as Ot } from "./components/Tabs/TabsContent.js";
95
- import { default as Gt } from "./components/SeldonImage/SeldonImage.js";
96
- import { default as Et } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
97
- import { default as Yt } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
98
- import { AuctionState as zt } from "./patterns/SaleHeaderBanner/types.js";
99
- import { default as qt } from "./components/Countdown/Countdown.js";
100
- import { CountdownVariants as Kt } from "./components/Countdown/types.js";
101
- import { default as _t } from "./patterns/ObjectTile/ObjectTile.js";
102
- import { default as er } from "./patterns/BidSnapshot/BidSnapshot.js";
103
- import { default as tr } from "./patterns/BidSnapshot/BidMessage.js";
77
+ import { default as at } from "./components/Dropdown/Dropdown.js";
78
+ import { default as st } from "./components/Video/Video.js";
79
+ import { default as dt } from "./patterns/LanguageSelector/LanguageSelector.js";
80
+ import { default as pt } from "./components/ContentPeek/ContentPeek.js";
81
+ import { HeightUnits as xt } from "./components/ContentPeek/utils.js";
82
+ import { default as it } from "./components/Collapsible/Collapsible.js";
83
+ import { default as ct } from "./components/Collapsible/CollapsibleContent.js";
84
+ import { default as St } from "./components/Collapsible/CollapsibleTrigger.js";
85
+ import { SeldonProvider as Lt } from "./providers/SeldonProvider/SeldonProvider.js";
86
+ import { default as bt } from "./components/PageContentWrapper/PageContentWrapper.js";
87
+ import { default as Tt } from "./components/Carousel/Carousel.js";
88
+ import { default as kt } from "./components/Carousel/CarouselContent.js";
89
+ import { default as vt } from "./components/Carousel/CarouselItem.js";
90
+ import { default as wt } from "./components/Carousel/CarouselDots.js";
91
+ import { default as Dt } from "./components/Detail/Detail.js";
92
+ import { default as Ft } from "./patterns/DetailList/DetailList.js";
93
+ import { DetailListAlignment as Mt } from "./patterns/DetailList/types.js";
94
+ import { default as Ot } from "./components/PinchZoom/PinchZoom.js";
95
+ import { default as Gt } from "./components/Tabs/TabsContainer.js";
96
+ import { default as Et } from "./components/Tabs/TabsContent.js";
97
+ import { default as Yt } from "./components/SeldonImage/SeldonImage.js";
98
+ import { default as zt } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
99
+ import { default as qt } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
100
+ import { AuctionState as Kt } from "./patterns/SaleHeaderBanner/types.js";
101
+ import { default as _t } from "./components/Countdown/Countdown.js";
102
+ import { CountdownVariants as er } from "./components/Countdown/types.js";
103
+ import { default as tr } from "./patterns/ObjectTile/ObjectTile.js";
104
+ import { default as ar } from "./patterns/BidSnapshot/BidSnapshot.js";
105
+ import { default as sr } from "./patterns/BidSnapshot/BidMessage.js";
104
106
  export {
105
- Wo as Accordion,
106
- Qo as AccordionItem,
107
- jo as AccordionItemVariant,
108
- zo as AccordionVariants,
107
+ jo as Accordion,
108
+ Zo as AccordionItem,
109
+ Jo as AccordionItemVariant,
110
+ Ko as AccordionVariants,
109
111
  S as AccountCircle,
110
112
  L as ArrowPrev,
111
- zt as AuctionState,
112
- he as AuctionStatus,
113
- Ko as AuthState,
114
- tr as BidMessage,
115
- er as BidSnapshot,
116
- _o as Breadcrumb,
117
- be as Button,
118
- Te as ButtonVariants,
113
+ Kt as AuctionState,
114
+ Pe as AuctionStatus,
115
+ et as AuthState,
116
+ sr as BidMessage,
117
+ ar as BidSnapshot,
118
+ tt as Breadcrumb,
119
+ Te as Button,
120
+ ke as ButtonVariants,
119
121
  b as Calendar,
120
- Lt as Carousel,
121
- bt as CarouselContent,
122
- At as CarouselDots,
123
- Tt as CarouselItem,
124
- T as ChevronDown,
125
- A as ChevronNext,
126
- B as ChevronRight,
127
- w as Close,
128
- pt as Collapsible,
129
- xt as CollapsibleContent,
130
- it as CollapsibleTrigger,
131
- st as ContentPeek,
132
- dt as ContentPeekHeightUnits,
133
- qt as Countdown,
134
- Kt as CountdownVariants,
135
- Bt as Detail,
136
- wt as DetailList,
137
- Dt as DetailListAlignment,
138
- ko as Drawer,
139
- et as Dropdown,
140
- Be as ErrorBoundary,
141
- M as Facebook,
142
- D as Favorite,
143
- F as FavoriteOutline,
144
- we as Footer,
145
- O as FooterInstagram,
146
- Y as FooterWeChat,
147
- De as Grid,
148
- ao as GridItem,
149
- so as GridItemAlign,
150
- Fe as Header,
151
- Ye as HeroBanner,
152
- Ae as IconButton,
153
- ze as Input,
154
- z as Instagram,
155
- at as LanguageSelector,
156
- qe as Link,
157
- _e as LinkBlock,
158
- eo as LinkList,
159
- Ke as LinkVariants,
160
- G as LinkedIn,
161
- q as Lock,
162
- K as Minus,
163
- Io as Modal,
164
- Me as Navigation,
165
- Oe as NavigationItem,
166
- Ge as NavigationItemTrigger,
167
- Ee as NavigationList,
168
- _t as ObjectTile,
122
+ T as CalendarAlt,
123
+ Tt as Carousel,
124
+ kt as CarouselContent,
125
+ wt as CarouselDots,
126
+ vt as CarouselItem,
127
+ k as ChevronDown,
128
+ v as ChevronNext,
129
+ w as ChevronRight,
130
+ D as Close,
131
+ it as Collapsible,
132
+ ct as CollapsibleContent,
133
+ St as CollapsibleTrigger,
134
+ pt as ContentPeek,
135
+ xt as ContentPeekHeightUnits,
136
+ _t as Countdown,
137
+ er as CountdownVariants,
138
+ Dt as Detail,
139
+ Ft as DetailList,
140
+ Mt as DetailListAlignment,
141
+ Bo as Drawer,
142
+ at as Dropdown,
143
+ we as ErrorBoundary,
144
+ O as Facebook,
145
+ F as Favorite,
146
+ M as FavoriteOutline,
147
+ De as Footer,
148
+ G as FooterInstagram,
149
+ z as FooterWeChat,
150
+ Fe as Grid,
151
+ so as GridItem,
152
+ mo as GridItemAlign,
153
+ Me as Header,
154
+ ze as HeroBanner,
155
+ ve as IconButton,
156
+ qe as Input,
157
+ q as Instagram,
158
+ dt as LanguageSelector,
159
+ Ke as Link,
160
+ eo as LinkBlock,
161
+ to as LinkList,
162
+ _e as LinkVariants,
163
+ E as LinkedIn,
164
+ K as Lock,
165
+ _ as Minus,
166
+ Vo as Modal,
167
+ Oe as Navigation,
168
+ Ge as NavigationItem,
169
+ Ee as NavigationItemTrigger,
170
+ Ye as NavigationList,
171
+ tr as ObjectTile,
169
172
  f as PaddingTokens,
170
- xe as Page,
171
- St as PageContentWrapper,
172
- vo as Pagination,
173
- _ as PhillipsLogo,
174
- Ft as PinchZoom,
175
- ee as Plus,
176
- te as React,
177
- E as Reddit,
178
- to as Row,
179
- ce as SSRMediaQuery,
180
- Et as SaleHeaderBanner,
181
- Yt as SaleHeaderBrowseAuctions,
182
- mo as Search,
183
- Gt as SeldonImage,
184
- ct as SeldonProvider,
185
- uo as Select,
186
- ae as Share,
187
- ho as Social,
173
+ ie as Page,
174
+ bt as PageContentWrapper,
175
+ yo as Pagination,
176
+ ee as PhillipsLogo,
177
+ Ot as PinchZoom,
178
+ te as Plus,
179
+ ae as React,
180
+ Y as Reddit,
181
+ ao as Row,
182
+ Se as SSRMediaQuery,
183
+ zt as SaleHeaderBanner,
184
+ qt as SaleHeaderBrowseAuctions,
185
+ uo as Search,
186
+ Yt as SeldonImage,
187
+ Lt as SeldonProvider,
188
+ no as Select,
189
+ go as SelectVariants,
190
+ se as Share,
191
+ Io as Social,
188
192
  s as SpacingTokens,
189
- no as SplitPanel,
190
- se as Spotify,
191
- yo as StatefulViewingsList,
192
- go as Subscribe,
193
- Co as SubscriptionState,
194
- Le as SupportedLanguages,
195
- Mt as TabsContainer,
196
- Ot as TabsContent,
197
- Vo as TagsList,
198
- Ho as Text,
199
- Ro as TextSymbolVariants,
200
- Uo as TextSymbols,
201
- No as TextVariants,
202
- qo as UserManagement,
203
- tt as Video,
204
- Po as ViewingsList,
205
- de as WeChat,
206
- pe as Youtube,
193
+ Co as SplitPanel,
194
+ de as Spotify,
195
+ Ho as StatefulViewingsList,
196
+ ho as Subscribe,
197
+ Po as SubscriptionState,
198
+ be as SupportedLanguages,
199
+ Gt as TabsContainer,
200
+ Et as TabsContent,
201
+ No as TagsList,
202
+ Uo as Text,
203
+ Wo as TextSymbolVariants,
204
+ Qo as TextSymbols,
205
+ Ro as TextVariants,
206
+ _o as UserManagement,
207
+ st as Video,
208
+ Ao as ViewingsList,
209
+ pe as WeChat,
210
+ xe as Youtube,
207
211
  l as defaultYear,
208
212
  d as emailValidation,
209
213
  m as encodeURLSearchParams,
@@ -213,7 +217,7 @@ export {
213
217
  n as getCommonProps,
214
218
  i as noOp,
215
219
  g as px,
216
- Ce as ssrMediaQueryStyle,
220
+ he as ssrMediaQueryStyle,
217
221
  c as useNormalizedInputProps,
218
- ie as usePendingState
222
+ ce as usePendingState
219
223
  };
@@ -32,6 +32,7 @@
32
32
  @use 'components/Drawer/drawer';
33
33
  @use 'components/Dropdown/dropdown';
34
34
  @use 'components/Video/video';
35
+ @use 'components/Select/select';
35
36
  @use 'components/Pagination/pagination';
36
37
  @use 'components/ContentPeek/contentPeek';
37
38
  @use 'components/PageContentWrapper/pageContentWrapper';
@@ -0,0 +1,74 @@
1
+ @use '../../allPartials' as *;
2
+
3
+ .#{$px}-select-input {
4
+ position: relative;
5
+
6
+ .#{$px}-select-container {
7
+ position: relative;
8
+
9
+ &--show__icon {
10
+ select {
11
+ appearance: none;
12
+ padding-right: 1.55rem;
13
+
14
+ @media (min-width: $breakpoint-md) {
15
+ padding-right: 1.95rem;
16
+ }
17
+
18
+ @media (min-width: $breakpoint-xl) {
19
+ padding-right: 2.25rem;
20
+ }
21
+ }
22
+ }
23
+ }
24
+
25
+ svg {
26
+ height: 1rem;
27
+ pointer-events: none;
28
+ position: absolute;
29
+ right: 0.35rem;
30
+ top: 45%;
31
+ transform: translateY(-45%);
32
+ width: 1rem;
33
+
34
+ @media (min-width: $breakpoint-md) {
35
+ height: 1.25rem;
36
+ right: 0.5rem;
37
+ width: 1.25rem;
38
+ }
39
+
40
+ @media (min-width: $breakpoint-xl) {
41
+ height: 1.5rem;
42
+ right: 0.55rem;
43
+ width: 1.5rem;
44
+ }
45
+
46
+ path {
47
+ fill: $pure-black;
48
+ }
49
+ }
50
+
51
+ select.#{$px}-input {
52
+ &__select {
53
+ &--tertiary {
54
+ border: 0;
55
+ color: inherit;
56
+
57
+ &:hover {
58
+ cursor: pointer;
59
+ }
60
+
61
+ &:focus-visible {
62
+ background-color: $pure-white;
63
+ border-radius: 0;
64
+ outline-color: $soft-black;
65
+ outline-offset: 4.5px;
66
+ }
67
+
68
+ svg {
69
+ top: 0.625rem;
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.93.0",
3
+ "version": "1.95.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"