@phillips/seldon 1.137.0 → 1.138.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/formatted/Account.d.ts +9 -0
- package/dist/assets/formatted/Account.js +36 -0
- package/dist/assets/formatted/AccountActive.d.ts +9 -0
- package/dist/assets/formatted/AccountActive.js +37 -0
- package/dist/assets/formatted/Add.d.ts +9 -0
- package/dist/assets/formatted/Add.js +29 -0
- package/dist/assets/formatted/AppleAppStoreBadge.d.ts +1 -1
- package/dist/assets/formatted/AppleAppStoreBadge.js +8 -8
- package/dist/assets/formatted/ArrowDown.d.ts +9 -0
- package/dist/assets/formatted/ArrowDown.js +29 -0
- package/dist/assets/formatted/ArrowLeft.d.ts +9 -0
- package/dist/assets/formatted/ArrowLeft.js +29 -0
- package/dist/assets/formatted/ArrowRight.d.ts +9 -0
- package/dist/assets/formatted/ArrowRight.js +29 -0
- package/dist/assets/formatted/ArrowUp.d.ts +9 -0
- package/dist/assets/formatted/ArrowUp.js +29 -0
- package/dist/assets/formatted/Bag.d.ts +9 -0
- package/dist/assets/formatted/Bag.js +37 -0
- package/dist/assets/formatted/Calendar.d.ts +1 -1
- package/dist/assets/formatted/Calendar.js +24 -16
- package/dist/assets/formatted/ChevronDown.d.ts +1 -1
- package/dist/assets/formatted/ChevronDown.js +9 -9
- package/dist/assets/formatted/ChevronLeft.d.ts +9 -0
- package/dist/assets/formatted/{ChevronNext.js → ChevronLeft.js} +6 -6
- package/dist/assets/formatted/ChevronRight.d.ts +1 -1
- package/dist/assets/formatted/ChevronRight.js +12 -12
- package/dist/assets/formatted/ChevronUp.d.ts +9 -0
- package/dist/assets/formatted/ChevronUp.js +37 -0
- package/dist/assets/formatted/Close (x).d.ts +9 -0
- package/dist/assets/formatted/CloseX.d.ts +9 -0
- package/dist/assets/formatted/CloseX.js +29 -0
- package/dist/assets/formatted/ConditionReport.d.ts +9 -0
- package/dist/assets/formatted/ConditionReport.js +37 -0
- package/dist/assets/formatted/Delete.d.ts +9 -0
- package/dist/assets/formatted/Delete.js +38 -0
- package/dist/assets/formatted/Download.d.ts +9 -0
- package/dist/assets/formatted/Download.js +30 -0
- package/dist/assets/formatted/Edit.d.ts +9 -0
- package/dist/assets/formatted/Edit.js +38 -0
- package/dist/assets/formatted/Email.d.ts +9 -0
- package/dist/assets/formatted/Email.js +37 -0
- package/dist/assets/formatted/Error.d.ts +9 -0
- package/dist/assets/formatted/Error.js +38 -0
- package/dist/assets/formatted/ExternalLink.d.ts +9 -0
- package/dist/assets/formatted/ExternalLink.js +30 -0
- package/dist/assets/formatted/Facebook.d.ts +9 -0
- package/dist/assets/formatted/Facebook.js +35 -0
- package/dist/assets/formatted/Favorite.d.ts +1 -1
- package/dist/assets/formatted/Favorite.js +18 -21
- package/dist/assets/formatted/FavoriteActive.d.ts +9 -0
- package/dist/assets/formatted/FavoriteActive.js +44 -0
- package/dist/assets/formatted/Filters.d.ts +9 -0
- package/dist/assets/formatted/Filters.js +37 -0
- package/dist/assets/formatted/Fullscreen.d.ts +9 -0
- package/dist/assets/formatted/Fullscreen.js +37 -0
- package/dist/assets/formatted/FullscreenExit.d.ts +9 -0
- package/dist/assets/formatted/FullscreenExit.js +29 -0
- package/dist/assets/formatted/Gavel.d.ts +9 -0
- package/dist/assets/formatted/Gavel.js +37 -0
- package/dist/assets/formatted/GavelActive.d.ts +9 -0
- package/dist/assets/formatted/GavelActive.js +37 -0
- package/dist/assets/formatted/Grid.d.ts +9 -0
- package/dist/assets/formatted/Grid.js +29 -0
- package/dist/assets/formatted/Hide.d.ts +9 -0
- package/dist/assets/formatted/Hide.js +44 -0
- package/dist/assets/formatted/Home.d.ts +9 -0
- package/dist/assets/formatted/Home.js +36 -0
- package/dist/assets/formatted/HomeActive.d.ts +9 -0
- package/dist/assets/formatted/HomeActive.js +39 -0
- package/dist/assets/formatted/Icon.d.ts +9 -0
- package/dist/assets/formatted/Icon.js +35 -0
- package/dist/assets/formatted/IconGreenCircle.d.ts +1 -1
- package/dist/assets/formatted/IconRedCircle.d.ts +1 -1
- package/dist/assets/formatted/Instagram.d.ts +1 -1
- package/dist/assets/formatted/Instagram.js +23 -38
- package/dist/assets/formatted/LinkedIn.d.ts +9 -0
- package/dist/assets/formatted/LinkedIn.js +35 -0
- package/dist/assets/formatted/List.d.ts +9 -0
- package/dist/assets/formatted/List.js +38 -0
- package/dist/assets/formatted/Lock.d.ts +1 -1
- package/dist/assets/formatted/Lock.js +13 -19
- package/dist/assets/formatted/MagnificentSeven.d.ts +1 -1
- package/dist/assets/formatted/Menu.d.ts +1 -1
- package/dist/assets/formatted/Mute.d.ts +9 -0
- package/dist/assets/formatted/Mute.js +51 -0
- package/dist/assets/formatted/Pause.d.ts +9 -0
- package/dist/assets/formatted/Pause.js +35 -0
- package/dist/assets/formatted/PhillipsAppIcon.d.ts +1 -1
- package/dist/assets/formatted/PhillipsLogo.d.ts +1 -1
- package/dist/assets/formatted/Play.d.ts +9 -0
- package/dist/assets/formatted/Play.js +35 -0
- package/dist/assets/formatted/Red.d.ts +9 -0
- package/dist/assets/formatted/Red.js +44 -0
- package/dist/assets/formatted/Refresh.d.ts +9 -0
- package/dist/assets/formatted/Refresh.js +35 -0
- package/dist/assets/formatted/Search.d.ts +1 -1
- package/dist/assets/formatted/Search.js +6 -6
- package/dist/assets/formatted/Sell.d.ts +9 -0
- package/dist/assets/formatted/Sell.js +38 -0
- package/dist/assets/formatted/SellActive.d.ts +9 -0
- package/dist/assets/formatted/SellActive.js +39 -0
- package/dist/assets/formatted/Share.d.ts +1 -1
- package/dist/assets/formatted/Share.js +15 -27
- package/dist/assets/formatted/Subtract.d.ts +9 -0
- package/dist/assets/formatted/Subtract.js +29 -0
- package/dist/assets/formatted/Success.d.ts +9 -0
- package/dist/assets/formatted/Success.js +29 -0
- package/dist/assets/formatted/Tooltip.d.ts +9 -0
- package/dist/assets/formatted/Tooltip.js +38 -0
- package/dist/assets/formatted/TwitterX.d.ts +9 -0
- package/dist/assets/formatted/TwitterX.js +35 -0
- package/dist/assets/formatted/Upload.d.ts +9 -0
- package/dist/assets/formatted/Upload.js +30 -0
- package/dist/assets/formatted/View.d.ts +9 -0
- package/dist/assets/formatted/View.js +37 -0
- package/dist/assets/formatted/VolumeMaximum.d.ts +9 -0
- package/dist/assets/formatted/VolumeMaximum.js +37 -0
- package/dist/assets/formatted/VolumeMid.d.ts +9 -0
- package/dist/assets/formatted/VolumeMid.js +44 -0
- package/dist/assets/formatted/VolumeMinimum.d.ts +9 -0
- package/dist/assets/formatted/VolumeMinimum.js +37 -0
- package/dist/assets/formatted/WeChat.d.ts +9 -0
- package/dist/assets/formatted/WeChat.js +35 -0
- package/dist/assets/formatted/index.d.ts +49 -20
- package/dist/assets/formatted/index.js +128 -70
- package/dist/components/Accordion/AccordionItem.js +36 -36
- package/dist/components/Breadcrumb/Breadcrumb.js +10 -10
- package/dist/components/Breadcrumb/BreadcrumbItem.js +21 -21
- package/dist/components/Carousel/CarouselArrows.js +11 -11
- package/dist/components/ContentPeek/ContentPeek.js +25 -25
- package/dist/components/Divider/Divider.js +17 -8
- package/dist/components/Drawer/Drawer.js +6 -6
- package/dist/components/Dropdown/Dropdown.js +8 -6
- package/dist/components/Filter/Filter.js +16 -16
- package/dist/components/Filter/FilterHeader.js +11 -11
- package/dist/components/Icon/Icon.d.ts +3 -2
- package/dist/components/Icon/Icon.js +9 -9
- package/dist/components/Modal/Modal.js +13 -13
- package/dist/components/Search/SearchButton.js +1 -1
- package/dist/components/Tags/Tags.js +29 -29
- package/dist/patterns/UserManagement/UserManagement.js +13 -29
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +4 -5
- package/dist/scss/components/Drawer/_drawer.scss +4 -0
- package/dist/scss/components/Filter/_filter.scss +0 -4
- package/dist/scss/components/IconButton/_iconButton.scss +9 -5
- package/dist/scss/components/Tags/_tags.scss +9 -13
- package/dist/scss/patterns/ObjectTile/_objectTile.scss +0 -3
- package/dist/scss/patterns/Social/_social.scss +6 -17
- package/dist/scss/site-furniture/Footer/_footer.scss +0 -5
- package/dist/site-furniture/Footer/Footer.js +5 -5
- package/package.json +1 -1
- package/dist/assets/formatted/AccountCircle.d.ts +0 -9
- package/dist/assets/formatted/AccountCircle.js +0 -40
- package/dist/assets/formatted/ArrowPrev.d.ts +0 -9
- package/dist/assets/formatted/ArrowPrev.js +0 -37
- package/dist/assets/formatted/CalendarAlt.d.ts +0 -9
- package/dist/assets/formatted/CalendarAlt.js +0 -44
- package/dist/assets/formatted/CarouselArrowNext.d.ts +0 -9
- package/dist/assets/formatted/CarouselArrowNext.js +0 -29
- package/dist/assets/formatted/CarouselArrowPrev.d.ts +0 -9
- package/dist/assets/formatted/CarouselArrowPrev.js +0 -29
- package/dist/assets/formatted/Checkmark.d.ts +0 -9
- package/dist/assets/formatted/Checkmark.js +0 -37
- package/dist/assets/formatted/ChevronNext.d.ts +0 -9
- package/dist/assets/formatted/Close.d.ts +0 -9
- package/dist/assets/formatted/Close.js +0 -46
- package/dist/assets/formatted/FavoriteOutline.d.ts +0 -9
- package/dist/assets/formatted/FavoriteOutline.js +0 -38
- package/dist/assets/formatted/IconFooterFacebook.d.ts +0 -9
- package/dist/assets/formatted/IconFooterFacebook.js +0 -35
- package/dist/assets/formatted/IconFooterInstagram.d.ts +0 -9
- package/dist/assets/formatted/IconFooterInstagram.js +0 -31
- package/dist/assets/formatted/IconFooterLinkedin.d.ts +0 -9
- package/dist/assets/formatted/IconFooterLinkedin.js +0 -35
- package/dist/assets/formatted/IconFooterRed.d.ts +0 -9
- package/dist/assets/formatted/IconFooterRed.js +0 -42
- package/dist/assets/formatted/IconFooterWechat.d.ts +0 -9
- package/dist/assets/formatted/IconFooterWechat.js +0 -37
- package/dist/assets/formatted/Minus.d.ts +0 -9
- package/dist/assets/formatted/Minus.js +0 -46
- package/dist/assets/formatted/Plus.d.ts +0 -9
- package/dist/assets/formatted/Plus.js +0 -46
- package/dist/assets/formatted/React.d.ts +0 -9
- package/dist/assets/formatted/React.js +0 -36
- package/dist/assets/formatted/Spotify.d.ts +0 -9
- package/dist/assets/formatted/Spotify.js +0 -35
- package/dist/assets/formatted/Wechat.d.ts +0 -9
- package/dist/assets/formatted/Wechat.js +0 -42
- package/dist/assets/formatted/Youtube.d.ts +0 -9
- package/dist/assets/formatted/Youtube.js +0 -36
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { getCommonProps as d, noOp as p } from "../../utils/index.js";
|
|
3
|
-
import
|
|
3
|
+
import a from "../../node_modules/classnames/index.js";
|
|
4
4
|
import { Root as f, Portal as C, Overlay as h, Content as u, Title as N, Description as v, Close as w } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
5
5
|
import y from "../IconButton/IconButton.js";
|
|
6
6
|
import { ButtonVariants as _ } from "../Button/types.js";
|
|
7
7
|
import x from "../Icon/Icon.js";
|
|
8
8
|
const B = ({ className: i, isOpen: l = !1, onClose: o = p, children: n, ...t }) => {
|
|
9
|
-
const { className:
|
|
9
|
+
const { className: e, ...m } = d(t, "Drawer");
|
|
10
10
|
return /* @__PURE__ */ r(
|
|
11
11
|
f,
|
|
12
12
|
{
|
|
@@ -19,22 +19,22 @@ const B = ({ className: i, isOpen: l = !1, onClose: o = p, children: n, ...t })
|
|
|
19
19
|
h,
|
|
20
20
|
{
|
|
21
21
|
onClick: o,
|
|
22
|
-
className:
|
|
22
|
+
className: a(`${e}__overlay`),
|
|
23
23
|
"data-testid": "drawer-overlay"
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
/* @__PURE__ */ s(u, { className: e
|
|
26
|
+
/* @__PURE__ */ s(u, { className: a(e, i), id: t.id, ...m, children: [
|
|
27
27
|
/* @__PURE__ */ r(N, {}),
|
|
28
28
|
/* @__PURE__ */ r(v, {}),
|
|
29
29
|
/* @__PURE__ */ r(w, { asChild: !0, children: /* @__PURE__ */ r(
|
|
30
30
|
y,
|
|
31
31
|
{
|
|
32
32
|
onClick: o,
|
|
33
|
-
className:
|
|
33
|
+
className: a(`${e}__close`),
|
|
34
34
|
"aria-label": "Close",
|
|
35
35
|
"data-testid": "drawer-close",
|
|
36
36
|
variant: _.tertiary,
|
|
37
|
-
children: /* @__PURE__ */ r(x, { icon: "
|
|
37
|
+
children: /* @__PURE__ */ r(x, { icon: "CloseX", color: "currentColor" })
|
|
38
38
|
}
|
|
39
39
|
) }),
|
|
40
40
|
n
|
|
@@ -5,9 +5,9 @@ import i from "../../node_modules/classnames/index.js";
|
|
|
5
5
|
import { Root as $, Trigger as v, Value as I, Icon as b, Portal as x, Content as R, ScrollUpButton as S, Viewport as O, ScrollDownButton as P, Item as V, ItemText as j } from "../../node_modules/@radix-ui/react-select/dist/index.js";
|
|
6
6
|
import c from "../Icon/Icon.js";
|
|
7
7
|
const y = d.forwardRef(
|
|
8
|
-
({ options: n, value: a, onValueChange: l, label: s, className:
|
|
9
|
-
const { className: o, ...
|
|
10
|
-
return /* @__PURE__ */ e("div", { className: i(o,
|
|
8
|
+
({ options: n, value: a, onValueChange: l, label: s, className: h, id: m, disabled: _, ...f }, w) => {
|
|
9
|
+
const { className: o, ...u } = D({ id: m }, "Dropdown"), [N, g] = C(!1);
|
|
10
|
+
return /* @__PURE__ */ e("div", { className: i(o, h), id: m, ...u, ...f, children: /* @__PURE__ */ t(
|
|
11
11
|
$,
|
|
12
12
|
{
|
|
13
13
|
value: a,
|
|
@@ -21,15 +21,17 @@ const y = d.forwardRef(
|
|
|
21
21
|
{
|
|
22
22
|
className: `${o}__trigger`,
|
|
23
23
|
"aria-label": s,
|
|
24
|
-
ref:
|
|
25
|
-
disabled:
|
|
24
|
+
ref: w,
|
|
25
|
+
disabled: _,
|
|
26
26
|
children: [
|
|
27
27
|
/* @__PURE__ */ e(I, { placeholder: a }),
|
|
28
28
|
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(
|
|
29
29
|
c,
|
|
30
30
|
{
|
|
31
31
|
icon: "ChevronDown",
|
|
32
|
-
className: i({ [`${o}__trigger-icon-expanded`]: N })
|
|
32
|
+
className: i({ [`${o}__trigger-icon-expanded`]: N }),
|
|
33
|
+
height: "1rem",
|
|
34
|
+
width: "1rem"
|
|
33
35
|
}
|
|
34
36
|
) })
|
|
35
37
|
]
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as t, jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as H, useState as P, Children as j, isValidElement as c, cloneElement as f } from "react";
|
|
3
|
-
import { getCommonProps as B, findChildrenOfType as I, findChildrenExcludingTypes as
|
|
4
|
-
import
|
|
3
|
+
import { getCommonProps as B, findChildrenOfType as I, findChildrenExcludingTypes as R, px as T } from "../../utils/index.js";
|
|
4
|
+
import b from "../../node_modules/classnames/index.js";
|
|
5
5
|
import p from "./FilterHeader.js";
|
|
6
|
-
import
|
|
7
|
-
import { ButtonVariants as
|
|
6
|
+
import k from "../Button/Button.js";
|
|
7
|
+
import { ButtonVariants as O } from "../Button/types.js";
|
|
8
8
|
import S from "../Icon/Icon.js";
|
|
9
9
|
const q = H(
|
|
10
10
|
({
|
|
@@ -13,40 +13,40 @@ const q = H(
|
|
|
13
13
|
name: a,
|
|
14
14
|
viewAllLimit: n = 10,
|
|
15
15
|
isViewingAll: r = !1,
|
|
16
|
-
isHidden:
|
|
16
|
+
isHidden: u = !1,
|
|
17
17
|
setViewAllFilter: l,
|
|
18
|
-
viewAllLabel:
|
|
18
|
+
viewAllLabel: N = "View All",
|
|
19
19
|
...i
|
|
20
20
|
}, _) => {
|
|
21
|
-
const [
|
|
21
|
+
const [y, g] = P(!1), { className: e, ...v } = B(i, "Filter"), s = j.toArray(C), x = { isViewingAll: r, setViewAllFilter: l, setIsClosing: g }, m = I(s, p)?.[0], F = c(m) ? f(m, x) : null, $ = R(s, [p])?.map(
|
|
22
22
|
(o, E) => c(o) ? f(o, { hidden: !r && E + 1 > n }) : o
|
|
23
23
|
);
|
|
24
24
|
return /* @__PURE__ */ t(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
27
|
...v,
|
|
28
|
-
className:
|
|
29
|
-
[`${
|
|
30
|
-
"is-closing":
|
|
28
|
+
className: b(e, h, {
|
|
29
|
+
[`${T}-filter--hidden`]: u,
|
|
30
|
+
"is-closing": y
|
|
31
31
|
}),
|
|
32
32
|
...i,
|
|
33
33
|
ref: _,
|
|
34
34
|
children: [
|
|
35
35
|
/* @__PURE__ */ t("fieldset", { name: a, className: `${e}__fieldset`, children: [
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */ d("div", { className: `${e}__filters`, children:
|
|
36
|
+
F,
|
|
37
|
+
/* @__PURE__ */ d("div", { className: `${e}__filters`, children: $ })
|
|
38
38
|
] }),
|
|
39
39
|
s.length > n && !r ? /* @__PURE__ */ t(
|
|
40
|
-
|
|
40
|
+
k,
|
|
41
41
|
{
|
|
42
42
|
className: `${e}__view-all`,
|
|
43
|
-
variant:
|
|
43
|
+
variant: O.tertiary,
|
|
44
44
|
onClick: () => {
|
|
45
45
|
l?.(a);
|
|
46
46
|
},
|
|
47
47
|
children: [
|
|
48
|
-
|
|
49
|
-
/* @__PURE__ */ d(S, { icon: "
|
|
48
|
+
N,
|
|
49
|
+
/* @__PURE__ */ d(S, { icon: "ChevronRight", className: `${e}__chevron` })
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
) : null
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as p } from "react";
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
3
|
+
import { getCommonProps as u } from "../../utils/index.js";
|
|
4
|
+
import h from "../../node_modules/classnames/index.js";
|
|
5
5
|
import { TextVariants as N } from "../Text/types.js";
|
|
6
6
|
import x from "../Text/Text.js";
|
|
7
|
-
import
|
|
8
|
-
import { ButtonVariants as
|
|
9
|
-
import
|
|
7
|
+
import v from "../Button/Button.js";
|
|
8
|
+
import { ButtonVariants as C } from "../Button/types.js";
|
|
9
|
+
import _ from "../Icon/Icon.js";
|
|
10
10
|
const g = p(
|
|
11
|
-
({ className: m, heading:
|
|
12
|
-
const { className: e, ...c } =
|
|
11
|
+
({ className: m, heading: i, isViewingAll: l = !1, setViewAllFilter: n, setIsClosing: a, ...o }, s) => {
|
|
12
|
+
const { className: e, ...c } = u(o, "FilterHeader"), f = () => {
|
|
13
13
|
a?.(!0), setTimeout(() => {
|
|
14
14
|
n?.(null), a?.(!1);
|
|
15
15
|
}, 300);
|
|
16
16
|
};
|
|
17
|
-
return /* @__PURE__ */ t("div", { ...c, className:
|
|
17
|
+
return /* @__PURE__ */ t("div", { ...c, className: h(e, m), ...o, ref: s, children: [
|
|
18
18
|
/* @__PURE__ */ r(
|
|
19
19
|
x,
|
|
20
20
|
{
|
|
21
21
|
variant: N.heading4,
|
|
22
22
|
className: `${e}__heading`,
|
|
23
|
-
element: (
|
|
23
|
+
element: (d) => /* @__PURE__ */ r("legend", { ...d, children: i })
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
|
-
l ? /* @__PURE__ */ t(
|
|
27
|
-
/* @__PURE__ */ r(
|
|
26
|
+
l ? /* @__PURE__ */ t(v, { variant: C.tertiary, onClick: f, className: `${e}__back`, children: [
|
|
27
|
+
/* @__PURE__ */ r(_, { icon: "ChevronLeft" }),
|
|
28
28
|
"Back to all"
|
|
29
29
|
] }) : null
|
|
30
30
|
] });
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import * as iconComponents from '../../assets/formatted';
|
|
2
3
|
export type IconName = keyof typeof iconComponents;
|
|
3
4
|
export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -10,7 +11,7 @@ export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
10
11
|
*/
|
|
11
12
|
width?: number | string | null;
|
|
12
13
|
/**
|
|
13
|
-
* Color of the icon.
|
|
14
|
+
* Color of the icon. Can be set to "currentColor" if you want to control the color through css. Otherwise, it only accepts valid seldon color tokens. Defaults to $pure-black
|
|
14
15
|
*/
|
|
15
16
|
color?: string;
|
|
16
17
|
/**
|
|
@@ -25,5 +26,5 @@ export interface IconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
25
26
|
*
|
|
26
27
|
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-icon--overview)
|
|
27
28
|
*/
|
|
28
|
-
declare const Icon:
|
|
29
|
+
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
30
|
export default Icon;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as i } from "react";
|
|
3
3
|
import d from "../../node_modules/classnames/index.js";
|
|
4
4
|
import { getCommonProps as u, px as x } from "../../utils/index.js";
|
|
5
|
-
import { getScssVar as
|
|
6
|
-
import * as
|
|
5
|
+
import { getScssVar as C } from "../../utils/scssUtils.js";
|
|
6
|
+
import * as N from "../../assets/formatted/index.js";
|
|
7
7
|
const I = i(
|
|
8
|
-
({ className:
|
|
9
|
-
const { className:
|
|
10
|
-
color:
|
|
11
|
-
...
|
|
12
|
-
...
|
|
8
|
+
({ className: e, height: r, width: m, color: o, icon: s, ...t }, c) => {
|
|
9
|
+
const { className: p, ...l } = u(t, `Icon-${s}`), n = N[s], f = {
|
|
10
|
+
color: o === "currentColor" ? o : C(o ?? "", "$pure-black"),
|
|
11
|
+
...r ? { height: r } : {},
|
|
12
|
+
...m ? { width: m } : {},
|
|
13
13
|
...l
|
|
14
14
|
};
|
|
15
|
-
return
|
|
15
|
+
return n ? /* @__PURE__ */ a("div", { className: d(`${x}-icon`, p, e), ref: c, children: /* @__PURE__ */ a(n, { ...f }) }) : null;
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
18
|
I.displayName = "Icon";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as u, jsx as
|
|
1
|
+
import { jsxs as u, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import t from "../../node_modules/classnames/index.js";
|
|
3
|
-
import { getCommonProps as
|
|
3
|
+
import { getCommonProps as C, noOp as y } from "../../utils/index.js";
|
|
4
4
|
import h from "../Icon/Icon.js";
|
|
5
|
-
import
|
|
5
|
+
import s from "../../node_modules/react-modal/lib/index.js";
|
|
6
6
|
import b from "../IconButton/IconButton.js";
|
|
7
7
|
import { ButtonVariants as v } from "../Button/types.js";
|
|
8
8
|
const g = ({
|
|
@@ -10,21 +10,21 @@ const g = ({
|
|
|
10
10
|
className: n,
|
|
11
11
|
overlayClassName: i,
|
|
12
12
|
isOpen: o = !1,
|
|
13
|
-
onClose:
|
|
13
|
+
onClose: r = y,
|
|
14
14
|
appElementSelector: d = "main",
|
|
15
15
|
style: c,
|
|
16
|
-
...
|
|
16
|
+
...a
|
|
17
17
|
}) => {
|
|
18
18
|
if (!o)
|
|
19
19
|
return null;
|
|
20
|
-
const { className: e, "data-testid": f, ...p } =
|
|
21
|
-
return
|
|
22
|
-
|
|
20
|
+
const { className: e, "data-testid": f, ...p } = C(a, "Modal");
|
|
21
|
+
return s.setAppElement(d), /* @__PURE__ */ u(
|
|
22
|
+
s,
|
|
23
23
|
{
|
|
24
24
|
...p,
|
|
25
|
-
...
|
|
25
|
+
...a,
|
|
26
26
|
isOpen: o,
|
|
27
|
-
onRequestClose:
|
|
27
|
+
onRequestClose: r,
|
|
28
28
|
className: t(e, n),
|
|
29
29
|
overlayClassName: t(`${e}__overlay`, i),
|
|
30
30
|
ariaHideApp: o,
|
|
@@ -33,15 +33,15 @@ const g = ({
|
|
|
33
33
|
onAfterOpen: () => document.body.style.overflow = "hidden",
|
|
34
34
|
onAfterClose: () => document.body.style.overflow = "unset",
|
|
35
35
|
children: [
|
|
36
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ l(
|
|
37
37
|
b,
|
|
38
38
|
{
|
|
39
39
|
id: "modal-button",
|
|
40
|
-
onClick:
|
|
40
|
+
onClick: r,
|
|
41
41
|
"aria-label": "Close Modal",
|
|
42
42
|
className: t(`${e}__close`),
|
|
43
43
|
variant: v.tertiary,
|
|
44
|
-
children: /* @__PURE__ */
|
|
44
|
+
children: /* @__PURE__ */ l(h, { icon: "CloseX", height: 32, width: 32, color: "currentColor" })
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
47
|
m
|
|
@@ -20,7 +20,7 @@ const f = ({
|
|
|
20
20
|
onClick: (i) => {
|
|
21
21
|
b?.(), u(!1), i.stopPropagation();
|
|
22
22
|
},
|
|
23
|
-
children: /* @__PURE__ */ n(e, { icon: "
|
|
23
|
+
children: /* @__PURE__ */ n(e, { icon: "CloseX", "data-testid": `${o}-form-icon`, className: `${t}__button__icon` })
|
|
24
24
|
}
|
|
25
25
|
) : null : /* @__PURE__ */ n(
|
|
26
26
|
"button",
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import N, { forwardRef as
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import N, { forwardRef as C } from "react";
|
|
3
3
|
import d from "../../node_modules/classnames/index.js";
|
|
4
|
-
import { getCommonProps as
|
|
4
|
+
import { getCommonProps as y, px as t } from "../../utils/index.js";
|
|
5
5
|
import $ from "../Button/Button.js";
|
|
6
6
|
import { ButtonVariants as g } from "../Button/types.js";
|
|
7
|
-
import
|
|
8
|
-
const
|
|
7
|
+
import u from "../Icon/Icon.js";
|
|
8
|
+
const j = ({ id: i, className: a, onRemove: e, label: o, removeText: s = "Remove" }) => /* @__PURE__ */ n(
|
|
9
9
|
$,
|
|
10
10
|
{
|
|
11
|
-
className: d(`${
|
|
12
|
-
"aria-label": `${
|
|
13
|
-
onClick: () =>
|
|
11
|
+
className: d(`${t}-tag`, `${t}-button`, a),
|
|
12
|
+
"aria-label": `${s} ${o}`,
|
|
13
|
+
onClick: () => e(o),
|
|
14
14
|
variant: g.tertiary,
|
|
15
15
|
children: [
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ r("div", { className: `${t}-tag__label`, children: o }),
|
|
17
|
+
/* @__PURE__ */ r("div", { className: `${t}-tag__button`, "data-testid": `${i}-item-close-button`, children: /* @__PURE__ */ r(u, { icon: "CloseX", height: 8, width: 8, color: "currentColor", className: `${t}-tag__icon` }) })
|
|
18
18
|
]
|
|
19
19
|
}
|
|
20
|
-
),
|
|
21
|
-
({ className:
|
|
22
|
-
const l = "tags-list", { className:
|
|
23
|
-
return /* @__PURE__ */
|
|
20
|
+
), _ = C(
|
|
21
|
+
({ className: i, children: a, clearAllLabel: e = "Clear All", onClear: o, ...s }, f) => {
|
|
22
|
+
const l = "tags-list", { className: p, ...h } = y(s, "TagsList"), { id: m } = s;
|
|
23
|
+
return /* @__PURE__ */ n(
|
|
24
24
|
"ul",
|
|
25
25
|
{
|
|
26
|
-
className: d(`${
|
|
27
|
-
...
|
|
28
|
-
...
|
|
26
|
+
className: d(`${t}-${l}`, p, i),
|
|
27
|
+
...h,
|
|
28
|
+
...s,
|
|
29
29
|
tabIndex: 0,
|
|
30
|
-
"data-testid": `${l}-${
|
|
30
|
+
"data-testid": `${l}-${m}`,
|
|
31
31
|
ref: f,
|
|
32
32
|
children: [
|
|
33
|
-
Array.isArray(a) ? N.Children.map(a, (c) => /* @__PURE__ */
|
|
34
|
-
Array.isArray(a) && a.length > 0 && /* @__PURE__ */
|
|
33
|
+
Array.isArray(a) ? N.Children.map(a, (c) => /* @__PURE__ */ r("li", { children: c }, c.props.id)) : a,
|
|
34
|
+
Array.isArray(a) && a.length > 0 && /* @__PURE__ */ r("li", { children: /* @__PURE__ */ n(
|
|
35
35
|
$,
|
|
36
36
|
{
|
|
37
|
-
onClick:
|
|
38
|
-
"data-testid": `${
|
|
39
|
-
className: `${
|
|
40
|
-
"aria-label":
|
|
37
|
+
onClick: o,
|
|
38
|
+
"data-testid": `${m}-clear-all-button`,
|
|
39
|
+
className: `${t}-${l}--clear`,
|
|
40
|
+
"aria-label": e,
|
|
41
41
|
variant: g.tertiary,
|
|
42
42
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ r(u, { icon: "ArrowLeft", color: "currentColor", height: 24, width: 24 }),
|
|
44
|
+
/* @__PURE__ */ r("div", { className: `${t}-label`, children: e })
|
|
45
45
|
]
|
|
46
46
|
}
|
|
47
47
|
) })
|
|
@@ -50,8 +50,8 @@ const R = ({ id: o, className: a, onRemove: i, label: s, removeText: e = "Remove
|
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
52
|
);
|
|
53
|
-
|
|
53
|
+
_.displayName = "Tags";
|
|
54
54
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
j as Tag,
|
|
56
|
+
_ as default
|
|
57
57
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as o, Fragment as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { getCommonProps as
|
|
1
|
+
import { jsx as o, Fragment as x, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as A } from "react";
|
|
3
|
+
import { getCommonProps as w, noOp as C } from "../../utils/index.js";
|
|
4
4
|
import $ from "../../node_modules/classnames/index.js";
|
|
5
5
|
import { AuthState as e } from "./types.js";
|
|
6
6
|
import { TextVariants as m } from "../../components/Text/types.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const b =
|
|
7
|
+
import s from "../../components/Text/Text.js";
|
|
8
|
+
import i from "../../components/Icon/Icon.js";
|
|
9
|
+
const b = A(
|
|
10
10
|
({
|
|
11
11
|
accountDetailsLinkComponent: l = "a",
|
|
12
12
|
className: d,
|
|
13
|
-
onLogin: g =
|
|
13
|
+
onLogin: g = C,
|
|
14
14
|
authState: t = e.LoggedOut,
|
|
15
15
|
loginLabel: h = "Login",
|
|
16
16
|
accountLabel: u = "Account",
|
|
@@ -18,29 +18,13 @@ const b = x(
|
|
|
18
18
|
disabled: a = !1,
|
|
19
19
|
...c
|
|
20
20
|
}, p) => {
|
|
21
|
-
const { className: n, ...N } =
|
|
22
|
-
return /* @__PURE__ */ o("div", { ...N, className: $(n, d), ...c, ref: p, children:
|
|
23
|
-
/* @__PURE__ */ o(
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
icon: "AccountCircle",
|
|
27
|
-
className: `${n}__account-icon`,
|
|
28
|
-
height: "1.5rem",
|
|
29
|
-
width: "1.5rem"
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
/* @__PURE__ */ o(i, { variant: m.body3, children: u })
|
|
21
|
+
const { className: n, ...N } = w(c, "UserManagement"), _ = t === e.LoggedIn, L = t !== e.Loading;
|
|
22
|
+
return /* @__PURE__ */ o("div", { ...N, className: $(n, d), ...c, ref: p, children: L && /* @__PURE__ */ o(x, { children: _ ? /* @__PURE__ */ r(l, { className: `${n}__login`, href: f, disabled: a, children: [
|
|
23
|
+
/* @__PURE__ */ o(i, { icon: "Account", className: `${n}__account-icon`, height: "1rem", width: "1rem" }),
|
|
24
|
+
/* @__PURE__ */ o(s, { variant: m.body3, children: u })
|
|
33
25
|
] }) : /* @__PURE__ */ r("button", { className: `${n}__login`, onClick: g, disabled: a, children: [
|
|
34
|
-
/* @__PURE__ */ o(
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
icon: "AccountCircle",
|
|
38
|
-
className: `${n}__account-icon`,
|
|
39
|
-
height: "1.5rem",
|
|
40
|
-
width: "1.5rem"
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
/* @__PURE__ */ o(i, { variant: m.body3, children: h })
|
|
26
|
+
/* @__PURE__ */ o(i, { icon: "Account", className: `${n}__account-icon`, height: "1rem", width: "1rem" }),
|
|
27
|
+
/* @__PURE__ */ o(s, { variant: m.body3, children: h })
|
|
44
28
|
] }) }) });
|
|
45
29
|
}
|
|
46
30
|
);
|
|
@@ -37,11 +37,6 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
&__chevron {
|
|
41
|
-
height: 1rem;
|
|
42
|
-
width: 1rem;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
40
|
ol {
|
|
46
41
|
display: flex;
|
|
47
42
|
flex-direction: row;
|
|
@@ -57,6 +52,10 @@
|
|
|
57
52
|
overflow: hidden;
|
|
58
53
|
text-overflow: ellipsis;
|
|
59
54
|
}
|
|
55
|
+
|
|
56
|
+
.#{$px}-icon-chevron-right {
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
}
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
&--current {
|
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
& svg {
|
|
12
12
|
height: $button-label-line-height;
|
|
13
13
|
width: $button-label-line-height;
|
|
14
|
+
|
|
15
|
+
&:hover {
|
|
16
|
+
color: $white;
|
|
17
|
+
}
|
|
14
18
|
}
|
|
15
19
|
|
|
16
20
|
&:focus-visible {
|
|
@@ -30,7 +34,7 @@
|
|
|
30
34
|
color: $pure-black;
|
|
31
35
|
|
|
32
36
|
& svg {
|
|
33
|
-
|
|
37
|
+
color: $pure-black;
|
|
34
38
|
height: calc($button-label-line-height * 1.5); // design-cheats-for-button-large
|
|
35
39
|
margin-inline-end: unset;
|
|
36
40
|
width: calc($button-label-line-height * 1.5); // design-cheats-for-button-large
|
|
@@ -42,10 +46,10 @@
|
|
|
42
46
|
|
|
43
47
|
&:hover {
|
|
44
48
|
svg {
|
|
45
|
-
|
|
49
|
+
color: $pure-white;
|
|
46
50
|
|
|
47
51
|
path {
|
|
48
|
-
|
|
52
|
+
color: $pure-white;
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
}
|
|
@@ -55,10 +59,10 @@
|
|
|
55
59
|
border-color: transparent;
|
|
56
60
|
|
|
57
61
|
svg {
|
|
58
|
-
|
|
62
|
+
color: $keyline-gray;
|
|
59
63
|
|
|
60
64
|
path {
|
|
61
|
-
|
|
65
|
+
color: $keyline-gray;
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
}
|
|
@@ -18,6 +18,14 @@
|
|
|
18
18
|
gap: $spacing-micro;
|
|
19
19
|
padding: $spacing-micro $spacing-xsm $spacing-micro $spacing-sm;
|
|
20
20
|
|
|
21
|
+
&__icon {
|
|
22
|
+
svg {
|
|
23
|
+
color: $button-hover;
|
|
24
|
+
height: 1rem;
|
|
25
|
+
width: 1rem;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
21
29
|
&__label {
|
|
22
30
|
color: $button-hover;
|
|
23
31
|
font-size: $body-size3;
|
|
@@ -29,23 +37,11 @@
|
|
|
29
37
|
}
|
|
30
38
|
}
|
|
31
39
|
|
|
32
|
-
svg {
|
|
33
|
-
fill: $button-hover;
|
|
34
|
-
|
|
35
|
-
path {
|
|
36
|
-
fill: $button-hover;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
40
|
&:hover {
|
|
41
41
|
color: $pure-black;
|
|
42
42
|
|
|
43
43
|
svg {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
path {
|
|
47
|
-
fill: $pure-black;
|
|
48
|
-
}
|
|
44
|
+
color: $pure-black;
|
|
49
45
|
}
|
|
50
46
|
}
|
|
51
47
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use '../../allPartials' as *;
|
|
2
2
|
|
|
3
|
-
$
|
|
3
|
+
$icon_width: 1.75rem;
|
|
4
|
+
$icon_gap: 2rem;
|
|
5
|
+
$num_icons: 5;
|
|
4
6
|
|
|
5
7
|
.#{$px}-social {
|
|
6
8
|
align-items: center;
|
|
@@ -56,29 +58,16 @@ $social_icon_height: 1.75rem;
|
|
|
56
58
|
align-items: center;
|
|
57
59
|
border-top: 1px solid #eae8e4;
|
|
58
60
|
display: flex;
|
|
59
|
-
gap: 0
|
|
60
|
-
justify-content:
|
|
61
|
+
gap: 0 $icon_gap;
|
|
62
|
+
justify-content: flex-start;
|
|
61
63
|
list-style: none;
|
|
62
64
|
margin: $spacing-md 0 0;
|
|
65
|
+
max-width: calc($num_icons * $icon_width + ($num_icons - 1) * $icon_gap);
|
|
63
66
|
padding: $spacing-sm 0 0;
|
|
64
67
|
width: 100%;
|
|
65
68
|
|
|
66
|
-
@include media($size-md) {
|
|
67
|
-
gap: 0 2rem;
|
|
68
|
-
justify-content: flex-start;
|
|
69
|
-
margin: $spacing-md 0 $spacing-md;
|
|
70
|
-
padding: $spacing-sm 0 0;
|
|
71
|
-
width: 100%;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
69
|
li {
|
|
75
70
|
cursor: pointer;
|
|
76
|
-
height: $social_icon_height;
|
|
77
|
-
|
|
78
|
-
svg {
|
|
79
|
-
height: $social_icon_height;
|
|
80
|
-
width: $social_icon_height;
|
|
81
|
-
}
|
|
82
71
|
}
|
|
83
72
|
}
|
|
84
73
|
|