@phillips/seldon 1.52.0 → 1.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/minus.svg.js +1 -1
- package/dist/assets/plus.svg.js +1 -1
- package/dist/components/Collapsible/Collapsible.d.ts +10 -0
- package/dist/components/Collapsible/Collapsible.js +13 -0
- package/dist/components/Collapsible/CollapsibleContent.d.ts +11 -0
- package/dist/components/Collapsible/CollapsibleContent.js +21 -0
- package/dist/components/Collapsible/CollapsibleTrigger.d.ts +10 -0
- package/dist/components/Collapsible/CollapsibleTrigger.js +21 -0
- package/dist/components/Collapsible/index.d.ts +3 -0
- package/dist/components/ReadMore/ReadMore.d.ts +35 -0
- package/dist/components/ReadMore/ReadMore.js +57 -0
- package/dist/components/ReadMore/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +61 -53
- package/dist/scss/componentStyles.scss +1 -0
- package/dist/scss/components/Button/_button.scss +2 -2
- package/dist/scss/components/ReadMore/_readMore.scss +58 -0
- package/package.json +2 -1
package/dist/assets/minus.svg.js
CHANGED
|
@@ -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: "
|
|
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
|
};
|
package/dist/assets/plus.svg.js
CHANGED
|
@@ -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: "
|
|
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
|
|
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
|
|
4
|
-
import { ButtonVariants as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { Grid as
|
|
9
|
-
import { default as
|
|
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
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
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
|
|
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
|
|
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
|
|
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
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { TextVariants as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
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
|
|
39
|
-
import { SupportedLanguages as
|
|
40
|
-
import { default as
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
62
|
+
P as ErrorBoundary,
|
|
63
|
+
N as Footer,
|
|
64
|
+
w as Grid,
|
|
65
|
+
oe as GridItem,
|
|
59
66
|
te as GridItemAlign,
|
|
60
|
-
|
|
67
|
+
A as Header,
|
|
61
68
|
z as HeroBanner,
|
|
62
|
-
|
|
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
|
-
|
|
76
|
+
Ce as Modal,
|
|
70
77
|
G as Navigation,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
-
|
|
86
|
+
de as Select,
|
|
79
87
|
ge as Social,
|
|
80
88
|
f as SpacingTokens,
|
|
81
89
|
se as SplitPanel,
|
|
82
|
-
|
|
90
|
+
ke as StatefulViewingsList,
|
|
83
91
|
ue as Subscribe,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
99
|
+
p as defaultYear,
|
|
100
|
+
d as emailValidation,
|
|
101
|
+
l as encodeURLSearchParams,
|
|
94
102
|
s as findChildrenExcludingTypes,
|
|
95
|
-
|
|
103
|
+
m as findChildrenOfType,
|
|
96
104
|
u as generatePaddingClassName,
|
|
97
105
|
i as getCommonProps,
|
|
98
|
-
|
|
99
|
-
|
|
106
|
+
x as noOp,
|
|
107
|
+
n as px,
|
|
100
108
|
g as useNormalizedInputProps
|
|
101
109
|
};
|
|
@@ -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 {
|
|
@@ -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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phillips/seldon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.53.0",
|
|
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",
|