@phillips/seldon 1.52.0 → 1.53.1

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,5 +1,5 @@
1
1
  import * as e from "react";
2
- const t = (l) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.5 11.8929C4.5 11.4195 4.83579 11.0357 5.25 11.0357L18.75 11.0357C19.1642 11.0357 19.5 11.4195 19.5 11.8929C19.5 12.3662 19.1642 12.75 18.75 12.75L5.25 12.75C4.83579 12.75 4.5 12.3662 4.5 11.8929Z", fill: "#323232" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.5 11.8929C4.5 11.4195 4.83579 11.0357 5.25 11.0357L18.75 11.0357C19.1642 11.0357 19.5 11.4195 19.5 11.8929C19.5 12.3662 19.1642 12.75 18.75 12.75L5.25 12.75C4.83579 12.75 4.5 12.3662 4.5 11.8929Z", fill: "#323232" }));
2
+ const t = (l) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.5 11.8929C4.5 11.4195 4.83579 11.0357 5.25 11.0357L18.75 11.0357C19.1642 11.0357 19.5 11.4195 19.5 11.8929C19.5 12.3662 19.1642 12.75 18.75 12.75L5.25 12.75C4.83579 12.75 4.5 12.3662 4.5 11.8929Z", fill: "currentColor" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.5 11.8929C4.5 11.4195 4.83579 11.0357 5.25 11.0357L18.75 11.0357C19.1642 11.0357 19.5 11.4195 19.5 11.8929C19.5 12.3662 19.1642 12.75 18.75 12.75L5.25 12.75C4.83579 12.75 4.5 12.3662 4.5 11.8929Z", fill: "currentColor" }));
3
3
  export {
4
4
  t as default
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as e from "react";
2
- const t = (l) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.5 11.8929C4.5 11.4195 4.83579 11.0357 5.25 11.0357L18.75 11.0357C19.1642 11.0357 19.5 11.4195 19.5 11.8929C19.5 12.3662 19.1642 12.75 18.75 12.75L5.25 12.75C4.83579 12.75 4.5 12.3662 4.5 11.8929Z", fill: "#323232" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.1071 4.5C12.5805 4.5 12.9643 4.83579 12.9643 5.25L12.9643 18.75C12.9643 19.1642 12.5805 19.5 12.1071 19.5C11.6338 19.5 11.25 19.1642 11.25 18.75L11.25 5.25C11.25 4.83579 11.6338 4.5 12.1071 4.5Z", fill: "#323232" }));
2
+ const t = (l) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.5 11.8929C4.5 11.4195 4.83579 11.0357 5.25 11.0357L18.75 11.0357C19.1642 11.0357 19.5 11.4195 19.5 11.8929C19.5 12.3662 19.1642 12.75 18.75 12.75L5.25 12.75C4.83579 12.75 4.5 12.3662 4.5 11.8929Z", fill: "currentColor" }), /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.1071 4.5C12.5805 4.5 12.9643 4.83579 12.9643 5.25L12.9643 18.75C12.9643 19.1642 12.5805 19.5 12.1071 19.5C11.6338 19.5 11.25 19.1642 11.25 18.75L11.25 5.25C11.25 4.83579 11.6338 4.5 12.1071 4.5Z", fill: "currentColor" }));
3
3
  export {
4
4
  t as default
5
5
  };
@@ -0,0 +1,10 @@
1
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
2
+ export type CollapsibleProps = CollapsiblePrimitive.CollapsibleProps;
3
+ /**
4
+ * ## Overview
5
+ *
6
+ * A 1:1 port of the [Radix UI Collapsible Component](https://www.radix-ui.com/primitives/docs/components/collapsible).
7
+ *
8
+ */
9
+ declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
10
+ export default Collapsible;
@@ -0,0 +1,13 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { Root as e } from "../../node_modules/@radix-ui/react-collapsible/dist/index.js";
3
+ import { getCommonProps as t } from "../../utils/index.js";
4
+ import p from "../../node_modules/classnames/index.js";
5
+ import { forwardRef as i } from "react";
6
+ const f = i(({ className: m, ...o }, s) => {
7
+ const { className: a, ...r } = t(o, "Collapsible");
8
+ return /* @__PURE__ */ l(e, { className: p(a, m), ...r, ...o, ref: s });
9
+ });
10
+ f.displayName = "Collapsible";
11
+ export {
12
+ f as default
13
+ };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
3
+ export type CollapsibleContentProps = CollapsiblePrimitive.CollapsibleContentProps;
4
+ /**
5
+ * ## Overview
6
+ *
7
+ * A 1:1 port of the [Radix UI Collapsible Content Component](https://www.radix-ui.com/primitives/docs/components/collapsible#content).
8
+ *
9
+ */
10
+ declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
11
+ export default CollapsibleContent;
@@ -0,0 +1,21 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import l from "react";
3
+ import { Content as r } from "../../node_modules/@radix-ui/react-collapsible/dist/index.js";
4
+ import { getCommonProps as n } from "../../utils/index.js";
5
+ import p from "../../node_modules/classnames/index.js";
6
+ const f = l.forwardRef(({ className: t, ...o }, e) => {
7
+ const { className: a, ...m } = n(o, "CollapsibleContent");
8
+ return /* @__PURE__ */ s(
9
+ r,
10
+ {
11
+ ref: e,
12
+ className: p(a, t),
13
+ ...m,
14
+ ...o
15
+ }
16
+ );
17
+ });
18
+ f.displayName = "CollapsibleContent";
19
+ export {
20
+ f as default
21
+ };
@@ -0,0 +1,10 @@
1
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
2
+ export type CollapsibleTriggerProps = CollapsiblePrimitive.CollapsibleTriggerProps;
3
+ /**
4
+ * ## Overview
5
+ *
6
+ * A 1:1 port of the [Radix UI Collapsible Trigger Component](https://www.radix-ui.com/primitives/docs/components/collapsible#trigger).
7
+ *
8
+ */
9
+ declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
10
+ export default CollapsibleTrigger;
@@ -0,0 +1,21 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { Trigger as l } from "../../node_modules/@radix-ui/react-collapsible/dist/index.js";
3
+ import { getCommonProps as i } from "../../utils/index.js";
4
+ import t from "../../node_modules/classnames/index.js";
5
+ import { forwardRef as p } from "react";
6
+ const g = p(({ className: o, ...r }, m) => {
7
+ const { className: s, ...e } = i(r, "CollapsibleTrigger");
8
+ return /* @__PURE__ */ a(
9
+ l,
10
+ {
11
+ className: t(s, o),
12
+ ...e,
13
+ ...r,
14
+ ref: m
15
+ }
16
+ );
17
+ });
18
+ g.displayName = "CollapsibleTrigger";
19
+ export {
20
+ g as default
21
+ };
@@ -0,0 +1,3 @@
1
+ export { default as Collapsible, type CollapsibleProps } from './Collapsible';
2
+ export { default as CollapsibleContent, type CollapsibleContentProps } from './CollapsibleContent';
3
+ export { default as CollapsibleTrigger, type CollapsibleTriggerProps } from './CollapsibleTrigger';
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ export interface ReadMoreProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Unique id for component testing
5
+ */
6
+ id?: string;
7
+ /**
8
+ * Child element pass in to display as item content.
9
+ */
10
+ children?: React.ReactNode;
11
+ /**
12
+ * Text for the "Read More" button
13
+ */
14
+ readMoreText?: string;
15
+ /**
16
+ * Text for the "Read Less" button
17
+ */
18
+ readLessText?: string;
19
+ /**
20
+ * Maximum height of the content when collapsed
21
+ */
22
+ maxHeight?: number;
23
+ }
24
+ /**
25
+ * ## Overview
26
+ *
27
+ * A component for displaying expandable content with a "Read More" functionality.
28
+ *
29
+ * This component is a wrapper around the Collapsible and Button component and uses the CollapsibleTrigger and CollapsibleContent components to control the expand and collapse functionality.
30
+ *
31
+ * [Figma Link](https://www.figma.com/design/hMu9IWH5N3KamJy8tLFdyV/EASEL-Compendium%3A-Tokens%2C-Components-%26-Patterns?node-id=7755-5572&t=JCYbkM8yQcdb51UQ-4)
32
+ *
33
+ */
34
+ declare const ReadMore: React.ForwardRefExoticComponent<ReadMoreProps & React.RefAttributes<HTMLDivElement>>;
35
+ export default ReadMore;
@@ -0,0 +1,57 @@
1
+ import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as N, useState as i, useRef as R, useEffect as x, useCallback as $ } from "react";
3
+ import c from "../../node_modules/classnames/index.js";
4
+ import { getCommonProps as M } from "../../utils/index.js";
5
+ import b from "../Button/Button.js";
6
+ import { ButtonVariants as w } from "../Button/types.js";
7
+ import E from "../Collapsible/Collapsible.js";
8
+ import O from "../Collapsible/CollapsibleContent.js";
9
+ import P from "../Collapsible/CollapsibleTrigger.js";
10
+ import S from "../../assets/plus.svg.js";
11
+ import j from "../../assets/minus.svg.js";
12
+ const B = N(
13
+ ({ className: d, children: l, readMoreText: f = "Read More", readLessText: u = "Read Less", maxHeight: s = 480, ...o }, p) => {
14
+ const { className: e, ...g } = M(o, "ReadMore"), [a, v] = i(!1), [n, C] = i(!1), t = R(null);
15
+ x(() => {
16
+ t.current && C(t.current.scrollHeight > s);
17
+ }, [l, s]);
18
+ const h = $(() => {
19
+ v((y) => !y);
20
+ }, []);
21
+ return /* @__PURE__ */ m(
22
+ E,
23
+ {
24
+ id: o == null ? void 0 : o.id,
25
+ open: a,
26
+ onOpenChange: h,
27
+ className: c(e, d),
28
+ style: {
29
+ "--read-more-max-height": `${s}px`
30
+ },
31
+ ref: p,
32
+ ...g,
33
+ ...o,
34
+ children: [
35
+ /* @__PURE__ */ r(O, { className: `${e}-content`, ref: t, forceMount: !0, children: l }),
36
+ n ? /* @__PURE__ */ r(
37
+ "div",
38
+ {
39
+ className: c(`${e}-overlay`, {
40
+ [`${e}-overlay--expanded`]: a,
41
+ [`${e}-overlay--gradient`]: n && !a
42
+ }),
43
+ children: /* @__PURE__ */ r("div", { className: `${e}-overlay-trigger-wrapper`, children: /* @__PURE__ */ r(P, { asChild: !0, className: `${e}-overlay-trigger`, children: /* @__PURE__ */ m(b, { variant: w.secondary, children: [
44
+ a ? /* @__PURE__ */ r(j, {}) : /* @__PURE__ */ r(S, {}),
45
+ a ? u : f
46
+ ] }) }) })
47
+ }
48
+ ) : null
49
+ ]
50
+ }
51
+ );
52
+ }
53
+ );
54
+ B.displayName = "ReadMore";
55
+ export {
56
+ B as default
57
+ };
@@ -0,0 +1 @@
1
+ export { default as ReadMore, type ReadMoreProps } from './ReadMore';
package/dist/index.d.ts CHANGED
@@ -39,3 +39,5 @@ export { Breadcrumb, type BreadcrumbProps } from './components/Breadcrumb';
39
39
  export * from './components/Dropdown';
40
40
  export { default as Video, type VideoProps } from './components/Video/Video';
41
41
  export * from './components/LanguageSelector';
42
+ export * from './components/ReadMore';
43
+ export * from './components/Collapsible';
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { PaddingTokens as a, SpacingTokens as f, defaultYear as d, emailValidation as p, encodeURLSearchParams as m, findChildrenExcludingTypes as s, findChildrenOfType as l, generatePaddingClassName as u, getCommonProps as i, noOp as n, px as x, useNormalizedInputProps as g } from "./utils/index.js";
1
+ import { PaddingTokens as a, SpacingTokens as f, defaultYear as p, emailValidation as d, encodeURLSearchParams as l, findChildrenExcludingTypes as s, findChildrenOfType as m, generatePaddingClassName as u, getCommonProps as i, noOp as x, px as n, useNormalizedInputProps as g } from "./utils/index.js";
2
2
  import { default as S } from "./pages/Page.js";
3
- import { default as I } from "./components/Button/Button.js";
4
- import { ButtonVariants as B } from "./components/Button/types.js";
5
- import { default as T } from "./components/IconButton/IconButton.js";
6
- import { default as N } from "./components/ErrorBoundary/ErrorBoundary.js";
7
- import { default as w } from "./components/Footer/Footer.js";
8
- import { Grid as v } from "./components/Grid/Grid.js";
9
- import { default as C } from "./components/Header/Header.js";
3
+ import { default as C } from "./components/Button/Button.js";
4
+ import { ButtonVariants as T } from "./components/Button/types.js";
5
+ import { default as k } from "./components/IconButton/IconButton.js";
6
+ import { default as P } from "./components/ErrorBoundary/ErrorBoundary.js";
7
+ import { default as N } from "./components/Footer/Footer.js";
8
+ import { Grid as w } from "./components/Grid/Grid.js";
9
+ import { default as A } from "./components/Header/Header.js";
10
10
  import { default as G } from "./components/Navigation/Navigation.js";
11
- import { default as E } from "./components/Navigation/NavigationItem/NavigationItem.js";
12
- import { default as M } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
13
- import { default as R } from "./components/Navigation/NavigationList/NavigationList.js";
11
+ import { default as R } from "./components/Navigation/NavigationItem/NavigationItem.js";
12
+ import { default as E } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
13
+ import { default as O } from "./components/Navigation/NavigationList/NavigationList.js";
14
14
  import { default as z } from "./components/HeroBanner/HeroBanner.js";
15
15
  import { default as Y } from "./components/Input/Input.js";
16
16
  import { default as q } from "./components/Link/Link.js";
@@ -18,84 +18,92 @@ import { LinkVariants as K } from "./components/Link/types.js";
18
18
  import { default as W } from "./components/LinkBlock/LinkBlock.js";
19
19
  import { default as Z } from "./components/LinkList/LinkList.js";
20
20
  import { default as $ } from "./components/Row/Row.js";
21
- import { default as re } from "./components/GridItem/GridItem.js";
21
+ import { default as oe } from "./components/GridItem/GridItem.js";
22
22
  import { GridItemAlign as te } from "./components/GridItem/types.js";
23
23
  import { default as fe } from "./components/Search/Search.js";
24
- import { default as pe } from "./components/Select/Select.js";
24
+ import { default as de } from "./components/Select/Select.js";
25
25
  import { default as se } from "./components/SplitPanel/SplitPanel.js";
26
26
  import { default as ue } from "./components/Subscribe/Subscribe.js";
27
- import { SubscriptionState as ne } from "./components/Subscribe/types.js";
27
+ import { SubscriptionState as xe } from "./components/Subscribe/types.js";
28
28
  import { default as ge } from "./components/Social/Social.js";
29
29
  import { default as Se } from "./components/ViewingsList/ViewingsList.js";
30
- import { default as Ie } from "./components/Modal/Modal.js";
31
- import { default as Be } from "./components/Drawer/Drawer.js";
32
- import { default as Te } from "./components/ViewingsList/StatefulViewingsList.js";
33
- import { TextVariants as Ne } from "./components/Text/types.js";
34
- import { default as we } from "./components/Text/Text.js";
35
- import { default as ve } from "./components/Accordion/Accordion.js";
36
- import { default as Ce } from "./components/Accordion/AccordionItem.js";
30
+ import { default as Ce } from "./components/Modal/Modal.js";
31
+ import { default as Te } from "./components/Drawer/Drawer.js";
32
+ import { default as ke } from "./components/ViewingsList/StatefulViewingsList.js";
33
+ import { TextVariants as Pe } from "./components/Text/types.js";
34
+ import { default as Ne } from "./components/Text/Text.js";
35
+ import { default as we } from "./components/Accordion/Accordion.js";
36
+ import { default as Ae } from "./components/Accordion/AccordionItem.js";
37
37
  import { default as Ge } from "./components/UserManagement/UserManagement.js";
38
- import { AuthState as Ee } from "./components/UserManagement/types.js";
39
- import { SupportedLanguages as Me } from "./types/commonTypes.js";
40
- import { default as Re } from "./components/Breadcrumb/Breadcrumb.js";
38
+ import { AuthState as Re } from "./components/UserManagement/types.js";
39
+ import { SupportedLanguages as Ee } from "./types/commonTypes.js";
40
+ import { default as Oe } from "./components/Breadcrumb/Breadcrumb.js";
41
41
  import "react/jsx-runtime";
42
42
  import "./node_modules/classnames/index.js";
43
43
  import { default as ze } from "./components/Dropdown/Dropdown.js";
44
44
  import { default as Ye } from "./components/Video/Video.js";
45
45
  import { default as qe } from "./components/LanguageSelector/LanguageSelector.js";
46
+ import { default as Ke } from "./components/ReadMore/ReadMore.js";
47
+ import { default as We } from "./components/Collapsible/Collapsible.js";
48
+ import { default as Ze } from "./components/Collapsible/CollapsibleContent.js";
49
+ import { default as $e } from "./components/Collapsible/CollapsibleTrigger.js";
46
50
  export {
47
- ve as Accordion,
48
- Ce as AccordionItem,
49
- Ee as AuthState,
50
- Re as Breadcrumb,
51
- I as Button,
52
- B as ButtonVariants,
53
- Be as Drawer,
51
+ we as Accordion,
52
+ Ae as AccordionItem,
53
+ Re as AuthState,
54
+ Oe as Breadcrumb,
55
+ C as Button,
56
+ T as ButtonVariants,
57
+ We as Collapsible,
58
+ Ze as CollapsibleContent,
59
+ $e as CollapsibleTrigger,
60
+ Te as Drawer,
54
61
  ze as Dropdown,
55
- N as ErrorBoundary,
56
- w as Footer,
57
- v as Grid,
58
- re as GridItem,
62
+ P as ErrorBoundary,
63
+ N as Footer,
64
+ w as Grid,
65
+ oe as GridItem,
59
66
  te as GridItemAlign,
60
- C as Header,
67
+ A as Header,
61
68
  z as HeroBanner,
62
- T as IconButton,
69
+ k as IconButton,
63
70
  Y as Input,
64
71
  qe as LanguageSelector,
65
72
  q as Link,
66
73
  W as LinkBlock,
67
74
  Z as LinkList,
68
75
  K as LinkVariants,
69
- Ie as Modal,
76
+ Ce as Modal,
70
77
  G as Navigation,
71
- E as NavigationItem,
72
- M as NavigationItemTrigger,
73
- R as NavigationList,
78
+ R as NavigationItem,
79
+ E as NavigationItemTrigger,
80
+ O as NavigationList,
74
81
  a as PaddingTokens,
75
82
  S as Page,
83
+ Ke as ReadMore,
76
84
  $ as Row,
77
85
  fe as Search,
78
- pe as Select,
86
+ de as Select,
79
87
  ge as Social,
80
88
  f as SpacingTokens,
81
89
  se as SplitPanel,
82
- Te as StatefulViewingsList,
90
+ ke as StatefulViewingsList,
83
91
  ue as Subscribe,
84
- ne as SubscriptionState,
85
- Me as SupportedLanguages,
86
- we as Text,
87
- Ne as TextVariants,
92
+ xe as SubscriptionState,
93
+ Ee as SupportedLanguages,
94
+ Ne as Text,
95
+ Pe as TextVariants,
88
96
  Ge as UserManagement,
89
97
  Ye as Video,
90
98
  Se as ViewingsList,
91
- d as defaultYear,
92
- p as emailValidation,
93
- m as encodeURLSearchParams,
99
+ p as defaultYear,
100
+ d as emailValidation,
101
+ l as encodeURLSearchParams,
94
102
  s as findChildrenExcludingTypes,
95
- l as findChildrenOfType,
103
+ m as findChildrenOfType,
96
104
  u as generatePaddingClassName,
97
105
  i as getCommonProps,
98
- n as noOp,
99
- x as px,
106
+ x as noOp,
107
+ n as px,
100
108
  g as useNormalizedInputProps
101
109
  };
@@ -40,3 +40,4 @@
40
40
  @use 'components/Dropdown/dropdown';
41
41
  @use 'components/Video/video';
42
42
  @use 'components/LanguageSelector/languageSelector';
43
+ @use 'components/ReadMore/readMore';
@@ -19,7 +19,7 @@
19
19
  font-weight 0.25s;
20
20
 
21
21
  &:hover,
22
- &:focus {
22
+ &:focus-visible {
23
23
  background-color: $primary-black;
24
24
 
25
25
  svg {
@@ -41,7 +41,7 @@
41
41
  color: $text-color;
42
42
 
43
43
  &:hover,
44
- &:focus {
44
+ &:focus-visible {
45
45
  color: $pure-white;
46
46
 
47
47
  svg {
@@ -73,6 +73,7 @@
73
73
 
74
74
  &__logo {
75
75
  align-self: center;
76
+ padding-top: 6px; // small adjustment to center the logo
76
77
 
77
78
  svg {
78
79
  height: 24px;
@@ -80,6 +81,8 @@
80
81
  }
81
82
 
82
83
  @include isHeaderDesktop {
84
+ padding-top: 0;
85
+
83
86
  svg {
84
87
  height: 28px;
85
88
  width: 100%;
@@ -0,0 +1,58 @@
1
+ @use '../../allPartials' as *;
2
+
3
+ .#{$px}-read-more {
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 12px;
7
+ position: relative;
8
+
9
+ &-content {
10
+ overflow: hidden;
11
+
12
+ &[data-state='closed'] {
13
+ max-height: var(--read-more-max-height);
14
+ }
15
+ }
16
+
17
+ &-overlay {
18
+ bottom: 0;
19
+ display: flex;
20
+ flex-direction: column;
21
+ left: 0;
22
+ pointer-events: none;
23
+ position: absolute;
24
+ right: 0;
25
+
26
+ &--expanded {
27
+ position: relative;
28
+ }
29
+
30
+ &--gradient {
31
+ &::before {
32
+ background: linear-gradient(
33
+ 180deg,
34
+ rgba(250, 250, 250, 0%) 0%,
35
+ rgba(255, 255, 255, 5%) 6.25%,
36
+ rgba(255, 255, 255, 75%) 53.65%,
37
+ #fff 90.62%
38
+ );
39
+ content: '';
40
+ height: 100px;
41
+ pointer-events: none;
42
+ width: 100%;
43
+ }
44
+ }
45
+ }
46
+
47
+ &-overlay-trigger-wrapper {
48
+ background: #fff;
49
+ display: flex;
50
+ justify-content: center;
51
+ pointer-events: auto;
52
+ width: 100%;
53
+ }
54
+
55
+ &-overlay-trigger {
56
+ width: fit-content;
57
+ }
58
+ }
@@ -6,8 +6,9 @@
6
6
  display: flex;
7
7
  gap: 0 $spacing-xsm;
8
8
  justify-content: flex-end;
9
- min-height: 42px; // stop bounce after the user is logged in
9
+ min-height: 49px; // stop bounce after the user is logged in
10
10
  min-width: 92px; // needed to handle the loading states and language swapping
11
+ padding-top: $padding-xsm;
11
12
 
12
13
  @include media($size-xl) {
13
14
  min-width: 104px; // stop bounce after the user is logged in
@@ -26,6 +27,9 @@
26
27
  cursor: pointer;
27
28
  display: flex;
28
29
  gap: 0 $spacing-xsm;
30
+ justify-content: center;
31
+ min-width: 44px;
32
+ padding: 0;
29
33
  padding-bottom: $padding-xsm;
30
34
 
31
35
  &:hover {
@@ -37,13 +41,14 @@
37
41
 
38
42
  @include isHeaderMobile {
39
43
  display: none;
44
+ min-height: 2rem;
40
45
  }
41
46
  }
42
47
  }
43
48
 
44
49
  &__account-icon {
45
- height: 1.5rem;
46
- width: 1.5rem;
50
+ height: 2rem;
51
+ width: 2rem;
47
52
 
48
53
  a {
49
54
  align-items: center;
@@ -53,7 +58,7 @@
53
58
  width: $mobile-minimum-clickable-area;
54
59
  }
55
60
 
56
- @mixin isHeaderDesktop {
61
+ @include isHeaderDesktop {
57
62
  height: 1.5rem;
58
63
  width: 1.5rem;
59
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.52.0",
3
+ "version": "1.53.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -41,6 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@radix-ui/react-accordion": "^1.2.0",
44
+ "@radix-ui/react-collapsible": "^1.1.0",
44
45
  "@radix-ui/react-dialog": "^1.1.1",
45
46
  "@radix-ui/react-select": "^2.1.1",
46
47
  "@types/dompurify": "^3.0.5",