@phillips/seldon 1.241.0 → 1.243.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/_virtual/index10.js +2 -2
- package/dist/_virtual/index11.js +2 -2
- package/dist/_virtual/index6.js +5 -3
- package/dist/_virtual/index7.js +3 -5
- package/dist/_virtual/index8.js +2 -2
- package/dist/_virtual/index9.js +2 -2
- package/dist/components/Accordion/AccordionItem.js +34 -34
- package/dist/components/AddToCalendar/calendarLinks.js +1 -1
- package/dist/components/Button/Button.js +37 -37
- package/dist/components/ComposedModal/ComposedModal.d.ts +1 -1
- package/dist/components/ExitGateCard/ExitGateCard.js +7 -7
- package/dist/components/Tags/Tags.js +12 -13
- package/dist/node_modules/ics/dist/index.js +1 -1
- package/dist/node_modules/ics/dist/pipeline/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/patterns/Social/Social.js +22 -22
- package/dist/scss/_utils.scss +10 -0
- package/dist/scss/components/Accordion/_accordion.scss +12 -2
- package/dist/scss/components/AddToCalendar/_addToCalendar.scss +1 -2
- package/dist/scss/components/Breadcrumb/_breadcrumb.scss +1 -2
- package/dist/scss/components/Button/_button.scss +11 -6
- package/dist/scss/components/Carousel/_carousel.scss +12 -3
- package/dist/scss/components/ComboBox/_combobox.scss +2 -2
- package/dist/scss/components/ComposedModal/_composedModal.scss +0 -1
- package/dist/scss/components/DatePicker/_datePicker.scss +4 -0
- package/dist/scss/components/DescriptiveRadioButton/_descriptiveRadioButton.scss +10 -2
- package/dist/scss/components/Dropdown/_dropdown.scss +1 -2
- package/dist/scss/components/ExitGateCard/_exitGateCard.scss +5 -0
- package/dist/scss/components/IconButton/_iconButton.scss +5 -8
- package/dist/scss/components/Input/_input.scss +19 -3
- package/dist/scss/components/Link/_link.scss +4 -0
- package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +4 -0
- package/dist/scss/components/Pagination/_pagination.scss +2 -2
- package/dist/scss/components/Search/_searchButton.scss +4 -1
- package/dist/scss/components/Select/_select.scss +2 -3
- package/dist/scss/components/Tabs/_tabs.scss +22 -3
- package/dist/scss/components/Tags/_tags.scss +2 -12
- package/dist/scss/components/TextArea/_textArea.scss +2 -2
- package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +4 -6
- package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +1 -3
- package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +9 -1
- package/dist/scss/patterns/FiltersInline/_filterButton.scss +2 -4
- package/dist/scss/patterns/SaleCard/_saleCard.scss +16 -0
- package/dist/scss/patterns/Social/_social.scss +8 -5
- package/dist/scss/patterns/UserManagement/_userManagement.scss +5 -1
- package/dist/scss/site-furniture/Footer/_footer.scss +9 -0
- package/dist/scss/site-furniture/Header/_header.scss +4 -0
- package/dist/site-furniture/Footer/Footer.js +1 -1
- package/dist/site-furniture/Header/Header.js +6 -6
- package/package.json +1 -1
package/dist/_virtual/index10.js
CHANGED
package/dist/_virtual/index11.js
CHANGED
package/dist/_virtual/index6.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { getDefaultExportFromCjs as r } from "./_commonjsHelpers.js";
|
|
2
|
+
import { __require as o } from "../node_modules/prop-types/index.js";
|
|
3
|
+
var p = /* @__PURE__ */ o();
|
|
4
|
+
const s = /* @__PURE__ */ r(p);
|
|
3
5
|
export {
|
|
4
|
-
|
|
6
|
+
s as default
|
|
5
7
|
};
|
package/dist/_virtual/index7.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var p = /* @__PURE__ */ o();
|
|
4
|
-
const s = /* @__PURE__ */ r(p);
|
|
1
|
+
import { __require as r } from "../node_modules/ics/dist/index.js";
|
|
2
|
+
var i = r();
|
|
5
3
|
export {
|
|
6
|
-
|
|
4
|
+
i as d
|
|
7
5
|
};
|
package/dist/_virtual/index8.js
CHANGED
package/dist/_virtual/index9.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { jsxs as N, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { Item as A, Trigger as _, Content as k } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
|
|
3
3
|
import C from "../../_virtual/index.js";
|
|
4
|
-
import { forwardRef as v, useRef as w, useCallback as
|
|
5
|
-
import
|
|
6
|
-
import { getCommonProps as
|
|
4
|
+
import { forwardRef as v, useRef as w, useCallback as y } from "react";
|
|
5
|
+
import I from "../Icon/Icon.js";
|
|
6
|
+
import { getCommonProps as T, px as R } from "../../utils/index.js";
|
|
7
7
|
import { AccordionItemVariant as d } from "./types.js";
|
|
8
|
-
import { getIconClasses as
|
|
9
|
-
import { TextVariants as
|
|
8
|
+
import { getIconClasses as $ } from "./utils.js";
|
|
9
|
+
import { TextVariants as h } from "../Text/types.js";
|
|
10
10
|
import x from "../Text/Text.js";
|
|
11
11
|
const S = ({
|
|
12
12
|
children: e,
|
|
13
13
|
className: n,
|
|
14
14
|
baseClassName: o,
|
|
15
15
|
disable: r,
|
|
16
|
-
id:
|
|
17
|
-
variant:
|
|
16
|
+
id: c,
|
|
17
|
+
variant: i = d.md,
|
|
18
18
|
onOpen: l,
|
|
19
19
|
onClose: m
|
|
20
20
|
}) => {
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const u = w(null), s = r, p = i === d.md ? h.labelMedium : h.labelSmall, f = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
22
|
+
I,
|
|
23
23
|
{
|
|
24
24
|
icon: "Lock",
|
|
25
25
|
height: 24,
|
|
26
26
|
width: 24,
|
|
27
|
-
className:
|
|
28
|
-
"data-testid": `${
|
|
27
|
+
className: $(o, i, "lock"),
|
|
28
|
+
"data-testid": `${c}-lockedIcon`,
|
|
29
29
|
"aria-hidden": !0
|
|
30
30
|
}
|
|
31
31
|
) }), g = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
32
|
-
|
|
32
|
+
I,
|
|
33
33
|
{
|
|
34
34
|
icon: "Add",
|
|
35
35
|
height: 24,
|
|
36
36
|
width: 24,
|
|
37
|
-
className:
|
|
38
|
-
"data-testid": `${
|
|
37
|
+
className: $(o, i, "plus"),
|
|
38
|
+
"data-testid": `${c}-plusIcon`,
|
|
39
39
|
"aria-hidden": !0
|
|
40
40
|
}
|
|
41
|
-
) }),
|
|
42
|
-
|
|
41
|
+
) }), b = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
42
|
+
I,
|
|
43
43
|
{
|
|
44
44
|
icon: "Subtract",
|
|
45
45
|
height: 24,
|
|
46
46
|
width: 24,
|
|
47
|
-
className:
|
|
48
|
-
"data-testid": `${
|
|
47
|
+
className: $(o, i, "minus"),
|
|
48
|
+
"data-testid": `${c}-minusIcon`,
|
|
49
49
|
"aria-hidden": !0
|
|
50
50
|
}
|
|
51
|
-
) }), a =
|
|
52
|
-
|
|
51
|
+
) }), a = y(() => {
|
|
52
|
+
u.current?.getAttribute("data-state") === "closed" ? l?.() : m?.();
|
|
53
53
|
}, [l, m]);
|
|
54
54
|
return /* @__PURE__ */ t(
|
|
55
55
|
_,
|
|
@@ -57,13 +57,13 @@ const S = ({
|
|
|
57
57
|
"data-disabled": r,
|
|
58
58
|
asChild: !0,
|
|
59
59
|
className: C(o, { [`${o}--hoverable`]: !r }, n),
|
|
60
|
-
ref:
|
|
60
|
+
ref: u,
|
|
61
61
|
onClick: a,
|
|
62
|
-
children: /* @__PURE__ */ N("
|
|
62
|
+
children: /* @__PURE__ */ N("button", { type: "button", "data-testid": `${c}-trigger`, children: [
|
|
63
63
|
/* @__PURE__ */ t(x, { className: `${R}-accordion-item-label__text`, variant: p, children: e }),
|
|
64
64
|
s && f,
|
|
65
65
|
!s && g,
|
|
66
|
-
!s &&
|
|
66
|
+
!s && b
|
|
67
67
|
] })
|
|
68
68
|
}
|
|
69
69
|
);
|
|
@@ -72,8 +72,8 @@ const S = ({
|
|
|
72
72
|
baseClassName: n,
|
|
73
73
|
disable: o,
|
|
74
74
|
hasTransition: r,
|
|
75
|
-
className:
|
|
76
|
-
variant:
|
|
75
|
+
className: c,
|
|
76
|
+
variant: i = d.md
|
|
77
77
|
}) => o && e ? /* @__PURE__ */ t("div", { className: `${n}__content--locked`, children: e }) : /* @__PURE__ */ t(
|
|
78
78
|
k,
|
|
79
79
|
{
|
|
@@ -81,9 +81,9 @@ const S = ({
|
|
|
81
81
|
className: C(
|
|
82
82
|
`${n}__content`,
|
|
83
83
|
{ [`${n}--transition`]: r },
|
|
84
|
-
|
|
84
|
+
c
|
|
85
85
|
),
|
|
86
|
-
children: /* @__PURE__ */ t(x, { variant:
|
|
86
|
+
children: /* @__PURE__ */ t(x, { variant: i === d.md ? h.bodyMedium : h.bodySmall, children: e })
|
|
87
87
|
}
|
|
88
88
|
), j = v(
|
|
89
89
|
({
|
|
@@ -91,24 +91,24 @@ const S = ({
|
|
|
91
91
|
variant: n = d.md,
|
|
92
92
|
id: o,
|
|
93
93
|
label: r,
|
|
94
|
-
isLastItem:
|
|
95
|
-
hasTransition:
|
|
94
|
+
isLastItem: c,
|
|
95
|
+
hasTransition: i = !1,
|
|
96
96
|
children: l,
|
|
97
97
|
className: m,
|
|
98
|
-
transitionTimeInMs:
|
|
98
|
+
transitionTimeInMs: u = 250,
|
|
99
99
|
onOpen: s,
|
|
100
100
|
onClose: p,
|
|
101
101
|
...f
|
|
102
102
|
}, g) => {
|
|
103
|
-
const { className:
|
|
103
|
+
const { className: b } = T({ id: o }, "Accordion"), a = `${b}-item`;
|
|
104
104
|
return /* @__PURE__ */ N(
|
|
105
105
|
A,
|
|
106
106
|
{
|
|
107
107
|
disabled: e,
|
|
108
108
|
value: o,
|
|
109
|
-
style: { "--seldon-accordion-transition-time": `${
|
|
109
|
+
style: { "--seldon-accordion-transition-time": `${u}ms` },
|
|
110
110
|
className: C(a, m, {
|
|
111
|
-
[`${a}__border-bottom`]: !
|
|
111
|
+
[`${a}__border-bottom`]: !c
|
|
112
112
|
}),
|
|
113
113
|
ref: g,
|
|
114
114
|
...f,
|
|
@@ -129,7 +129,7 @@ const S = ({
|
|
|
129
129
|
V,
|
|
130
130
|
{
|
|
131
131
|
disable: e,
|
|
132
|
-
hasTransition:
|
|
132
|
+
hasTransition: i,
|
|
133
133
|
variant: n,
|
|
134
134
|
baseClassName: a,
|
|
135
135
|
children: /* @__PURE__ */ t("div", { className: "radix-accordion-content", children: l })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as u } from "../../_virtual/
|
|
1
|
+
import { d as u } from "../../_virtual/index7.js";
|
|
2
2
|
import { isValid as p } from "../../node_modules/date-fns/isValid.js";
|
|
3
3
|
import { toZonedTime as m } from "../../node_modules/date-fns-tz/dist/esm/toZonedTime/index.js";
|
|
4
4
|
import { addHours as i } from "../../node_modules/date-fns/addHours.js";
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as V, Fragment as C, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import N from "../../_virtual/index.js";
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import { ButtonVariants as
|
|
3
|
+
import { getCommonProps as j, px as w } from "../../utils/index.js";
|
|
4
|
+
import { ButtonVariants as m, ButtonSizes as v } from "./types.js";
|
|
5
5
|
import { forwardRef as H, useState as g } from "react";
|
|
6
|
-
import { LinkVariants as
|
|
6
|
+
import { LinkVariants as a } from "../Link/types.js";
|
|
7
7
|
import F from "../Link/Link.js";
|
|
8
8
|
const I = H(
|
|
9
9
|
({
|
|
10
|
-
variant:
|
|
11
|
-
size: k =
|
|
10
|
+
variant: o = m.primary,
|
|
11
|
+
size: k = v.default,
|
|
12
12
|
children: u,
|
|
13
13
|
className: c,
|
|
14
14
|
isIconLast: f = !1,
|
|
15
|
-
type:
|
|
16
|
-
isDisabled:
|
|
17
|
-
href:
|
|
15
|
+
type: y = "button",
|
|
16
|
+
isDisabled: l = !1,
|
|
17
|
+
href: n,
|
|
18
18
|
target: d,
|
|
19
19
|
prefetch: p = "none",
|
|
20
|
-
isSkeletonLoading:
|
|
21
|
-
linkSize:
|
|
22
|
-
...
|
|
20
|
+
isSkeletonLoading: s,
|
|
21
|
+
linkSize: L = "md",
|
|
22
|
+
...i
|
|
23
23
|
}, $) => {
|
|
24
|
-
const { className: e, ...b } =
|
|
25
|
-
if (
|
|
26
|
-
const B = () => /* @__PURE__ */
|
|
27
|
-
let r =
|
|
28
|
-
switch (
|
|
24
|
+
const { className: e, ...b } = j(i, "Button"), [M, P] = g(!1);
|
|
25
|
+
if (n) {
|
|
26
|
+
const B = () => /* @__PURE__ */ t(C, { children: /* @__PURE__ */ t("link", { "data-testid": "prefetch-link", rel: "prefetch", href: n }) });
|
|
27
|
+
let r = a.linkMedium;
|
|
28
|
+
switch (L) {
|
|
29
29
|
case "lg":
|
|
30
|
-
r =
|
|
30
|
+
r = a.linkLarge;
|
|
31
31
|
break;
|
|
32
32
|
case "md":
|
|
33
|
-
r =
|
|
33
|
+
r = a.linkMedium;
|
|
34
34
|
break;
|
|
35
35
|
case "sm":
|
|
36
|
-
r =
|
|
36
|
+
r = a.linkSmall;
|
|
37
37
|
break;
|
|
38
38
|
}
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ V(C, { children: [
|
|
40
|
+
/* @__PURE__ */ t(
|
|
41
41
|
F,
|
|
42
42
|
{
|
|
43
43
|
...b,
|
|
44
44
|
variant: r,
|
|
45
45
|
ref: $,
|
|
46
|
-
href:
|
|
46
|
+
href: n,
|
|
47
47
|
className: N(
|
|
48
48
|
`${e}`,
|
|
49
|
-
{ [`${e}--${
|
|
50
|
-
{ [`${e}--link`]:
|
|
49
|
+
{ [`${e}--${o}`]: o !== m.link },
|
|
50
|
+
{ [`${e}--link`]: o === m.link },
|
|
51
51
|
{
|
|
52
52
|
[`${e}--icon-last`]: f
|
|
53
53
|
},
|
|
@@ -56,37 +56,37 @@ const I = H(
|
|
|
56
56
|
target: d,
|
|
57
57
|
rel: d === "_blank" ? "noopener noreferrer" : void 0,
|
|
58
58
|
onMouseOver: () => {
|
|
59
|
-
|
|
59
|
+
l || P(!0);
|
|
60
60
|
},
|
|
61
61
|
onClick: (x) => {
|
|
62
|
-
|
|
62
|
+
l ? x.preventDefault() : i.onClick?.(x);
|
|
63
63
|
},
|
|
64
64
|
children: u
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
p === "intent" &&
|
|
68
|
-
p === "render" &&
|
|
67
|
+
p === "intent" && n && M && /* @__PURE__ */ t(B, {}),
|
|
68
|
+
p === "render" && n && /* @__PURE__ */ t(B, {})
|
|
69
69
|
] });
|
|
70
70
|
} else
|
|
71
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ t(
|
|
72
72
|
"button",
|
|
73
73
|
{
|
|
74
74
|
...b,
|
|
75
75
|
ref: $,
|
|
76
|
-
type:
|
|
77
|
-
"aria-busy":
|
|
76
|
+
type: y,
|
|
77
|
+
"aria-busy": s,
|
|
78
78
|
className: N(
|
|
79
79
|
`${e}`,
|
|
80
|
-
`${e}--${
|
|
81
|
-
{ [`${e}--${k}`]: k !==
|
|
80
|
+
`${e}--${o}`,
|
|
81
|
+
{ [`${e}--${k}`]: k !== v.default },
|
|
82
82
|
{
|
|
83
83
|
[`${e}--icon-last`]: f,
|
|
84
|
-
[`${w}-skeleton`]:
|
|
84
|
+
[`${w}-skeleton`]: s
|
|
85
85
|
},
|
|
86
86
|
c
|
|
87
87
|
),
|
|
88
|
-
disabled:
|
|
89
|
-
...
|
|
88
|
+
disabled: s || l,
|
|
89
|
+
...i,
|
|
90
90
|
children: u
|
|
91
91
|
}
|
|
92
92
|
);
|
|
@@ -35,7 +35,7 @@ export interface ComposedModalProps extends Omit<ModalProps, 'onClose' | 'role'
|
|
|
35
35
|
*
|
|
36
36
|
* A component for ComposedModal that extends the base Modal component.
|
|
37
37
|
*
|
|
38
|
-
* [Figma Link](https://www.figma.com/design/
|
|
38
|
+
* [Figma Link](https://www.figma.com/design/wRbSaO9MngnSedlDSQka3Y/Design-System--Responsive-Web?node-id=2292-1672&m=dev)
|
|
39
39
|
*
|
|
40
40
|
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-composedmodal--overview)
|
|
41
41
|
*
|
|
@@ -9,7 +9,7 @@ import v from "../Link/Link.js";
|
|
|
9
9
|
import G from "../SeldonImage/SeldonImage.js";
|
|
10
10
|
import { TextVariants as p } from "../Text/types.js";
|
|
11
11
|
import a from "../Text/Text.js";
|
|
12
|
-
const
|
|
12
|
+
const b = $(
|
|
13
13
|
({
|
|
14
14
|
className: f,
|
|
15
15
|
imageSrc: r,
|
|
@@ -22,9 +22,9 @@ const j = $(
|
|
|
22
22
|
variant: _ = E.secondary,
|
|
23
23
|
altText: u = "Exit Gate Card Image",
|
|
24
24
|
...c
|
|
25
|
-
},
|
|
26
|
-
const { className: t, ...
|
|
27
|
-
return /* @__PURE__ */ d("article", { ...
|
|
25
|
+
}, x) => {
|
|
26
|
+
const { className: t, ...N } = g(c, "ExitGateCard");
|
|
27
|
+
return /* @__PURE__ */ d("article", { ...N, className: h(t, f), ...c, ref: x, children: [
|
|
28
28
|
r ? /* @__PURE__ */ e(
|
|
29
29
|
G,
|
|
30
30
|
{
|
|
@@ -39,12 +39,12 @@ const j = $(
|
|
|
39
39
|
n ? /* @__PURE__ */ e(a, { variant: p.labelMedium, element: "span", className: `${t}__content-label`, children: n }) : null,
|
|
40
40
|
m ? /* @__PURE__ */ e(a, { variant: p.headingLarge, element: "span", className: `${t}__content-title`, children: m }) : null,
|
|
41
41
|
o ? /* @__PURE__ */ e(a, { element: "span", className: `${t}__content-description`, children: o }) : null,
|
|
42
|
-
(s || i) && l ? /* @__PURE__ */ e(i, { href: l, children: /* @__PURE__ */ e(C, { variant: _, className: `${t}__content-link`, children: s }) }) : null
|
|
42
|
+
(s || i) && l ? /* @__PURE__ */ e(i, { href: l, children: /* @__PURE__ */ e(C, { variant: _, tabIndex: -1, className: `${t}__content-link`, children: s }) }) : null
|
|
43
43
|
] })
|
|
44
44
|
] });
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
|
-
|
|
47
|
+
b.displayName = "ExitGateCard";
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
b as default
|
|
50
50
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import N, { forwardRef as b } from "react";
|
|
3
3
|
import d from "../../_virtual/index.js";
|
|
4
|
-
import { getCommonProps as
|
|
4
|
+
import { getCommonProps as v, px as r } from "../../utils/index.js";
|
|
5
5
|
import f from "../Button/Button.js";
|
|
6
6
|
import { ButtonVariants as p } from "../Button/types.js";
|
|
7
7
|
import $ from "../Icon/Icon.js";
|
|
8
8
|
import { TextVariants as u } from "../Text/types.js";
|
|
9
9
|
import g from "../Text/Text.js";
|
|
10
|
-
const
|
|
10
|
+
const P = ({ id: s, className: t, onRemove: e, label: o, removeText: i = "Remove" }) => /* @__PURE__ */ m(
|
|
11
11
|
f,
|
|
12
12
|
{
|
|
13
13
|
className: d(`${r}-tag`, `${r}-button`, t),
|
|
@@ -19,25 +19,24 @@ const L = ({ id: s, className: t, onRemove: e, label: o, removeText: i = "Remove
|
|
|
19
19
|
/* @__PURE__ */ a("div", { className: `${r}-tag__button`, "data-testid": `${s}-item-close-button`, children: /* @__PURE__ */ a($, { icon: "CloseX", height: 8, width: 8, color: "currentColor", className: `${r}-tag__icon` }) })
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
|
-
),
|
|
22
|
+
), x = b(
|
|
23
23
|
({ className: s, children: t, clearAllLabel: e = "Clear All", onClear: o, ...i }, h) => {
|
|
24
|
-
const l = "tags-list", { className: C, ...y } =
|
|
25
|
-
return /* @__PURE__ */
|
|
24
|
+
const l = "tags-list", { className: C, ...y } = v(i, "TagsList"), { id: n } = i;
|
|
25
|
+
return /* @__PURE__ */ m(
|
|
26
26
|
"ul",
|
|
27
27
|
{
|
|
28
28
|
className: d(`${r}-${l}`, C, s),
|
|
29
29
|
...y,
|
|
30
30
|
...i,
|
|
31
|
-
|
|
32
|
-
"data-testid": `${l}-${m}`,
|
|
31
|
+
"data-testid": `${l}-${n}`,
|
|
33
32
|
ref: h,
|
|
34
33
|
children: [
|
|
35
34
|
Array.isArray(t) ? N.Children.map(t, (c) => /* @__PURE__ */ a("li", { children: c }, c.props.id)) : t,
|
|
36
|
-
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ a("li", { children: /* @__PURE__ */
|
|
35
|
+
Array.isArray(t) && t.length > 0 && /* @__PURE__ */ a("li", { children: /* @__PURE__ */ m(
|
|
37
36
|
f,
|
|
38
37
|
{
|
|
39
38
|
onClick: o,
|
|
40
|
-
"data-testid": `${
|
|
39
|
+
"data-testid": `${n}-clear-all-button`,
|
|
41
40
|
className: `${r}-${l}--clear`,
|
|
42
41
|
"aria-label": e,
|
|
43
42
|
variant: p.tertiary,
|
|
@@ -52,8 +51,8 @@ const L = ({ id: s, className: t, onRemove: e, label: o, removeText: i = "Remove
|
|
|
52
51
|
);
|
|
53
52
|
}
|
|
54
53
|
);
|
|
55
|
-
|
|
54
|
+
x.displayName = "Tags";
|
|
56
55
|
export {
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
P as Tag,
|
|
57
|
+
x as default
|
|
59
58
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as u } from "../../../../_virtual/
|
|
1
|
+
import { __exports as u } from "../../../../_virtual/index11.js";
|
|
2
2
|
import { __require as o } from "./build.js";
|
|
3
3
|
import { __require as d } from "./format.js";
|
|
4
4
|
import { __require as f } from "./validate.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as r } from "../../_virtual/
|
|
1
|
+
import { __module as r } from "../../_virtual/index8.js";
|
|
2
2
|
import { __require as s } from "./node_modules/react-is/index.js";
|
|
3
3
|
import { __require as t } from "./factoryWithTypeCheckers.js";
|
|
4
4
|
import { __require as p } from "./factoryWithThrowingShims.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as e } from "../../../../_virtual/
|
|
1
|
+
import { __module as e } from "../../../../_virtual/index10.js";
|
|
2
2
|
import { __require as o } from "./cjs/react-is.production.min.js";
|
|
3
3
|
import { __require as t } from "./cjs/react-is.development.js";
|
|
4
4
|
var r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import C from "../../@babel/runtime/helpers/esm/extends.js";
|
|
2
2
|
import x from "../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
3
3
|
import N from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
4
|
-
import v from "../../../_virtual/
|
|
4
|
+
import v from "../../../_virtual/index6.js";
|
|
5
5
|
import A from "../../dom-helpers/esm/addClass.js";
|
|
6
6
|
import _ from "../../dom-helpers/esm/removeClass.js";
|
|
7
7
|
import c from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import C from "../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";
|
|
2
2
|
import D from "../../@babel/runtime/helpers/esm/inheritsLoose.js";
|
|
3
|
-
import o from "../../../_virtual/
|
|
3
|
+
import o from "../../../_virtual/index6.js";
|
|
4
4
|
import v from "react";
|
|
5
5
|
import b from "react-dom";
|
|
6
6
|
import T from "./config.js";
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { getCommonProps as
|
|
4
|
-
import
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { ButtonVariants as
|
|
7
|
-
import { TextVariants as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { jsxs as c, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import f from "../../_virtual/index.js";
|
|
3
|
+
import { getCommonProps as p } from "../../utils/index.js";
|
|
4
|
+
import d from "../../components/Button/Button.js";
|
|
5
|
+
import { forwardRef as u } from "react";
|
|
6
|
+
import { ButtonVariants as N } from "../../components/Button/types.js";
|
|
7
|
+
import { TextVariants as h } from "../../components/Text/types.js";
|
|
8
|
+
import x from "../../components/Text/Text.js";
|
|
9
|
+
const S = u(
|
|
10
10
|
({
|
|
11
|
-
className:
|
|
12
|
-
children:
|
|
13
|
-
titleText:
|
|
14
|
-
buttonText:
|
|
15
|
-
onSubscribeClick:
|
|
11
|
+
className: t,
|
|
12
|
+
children: m,
|
|
13
|
+
titleText: e = "Never miss a moment",
|
|
14
|
+
buttonText: s = "Subscribe to our newsletter",
|
|
15
|
+
onSubscribeClick: i,
|
|
16
16
|
...o
|
|
17
|
-
},
|
|
18
|
-
const { className: r, ...
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */ a(
|
|
21
|
-
/* @__PURE__ */ a(
|
|
22
|
-
|
|
17
|
+
}, n) => {
|
|
18
|
+
const { className: r, ...l } = p(o, "Social");
|
|
19
|
+
return /* @__PURE__ */ c("div", { ref: n, ...l, className: f(r, t), ...o, children: [
|
|
20
|
+
/* @__PURE__ */ a(x, { variant: h.headingSmall, className: `${r}__header`, children: e }),
|
|
21
|
+
/* @__PURE__ */ a(d, { onClick: i, variant: N.tertiary, className: `${r}__button`, children: s }),
|
|
22
|
+
m
|
|
23
23
|
] });
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
|
-
|
|
26
|
+
S.displayName = "Social";
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
S as default
|
|
29
29
|
};
|
package/dist/scss/_utils.scss
CHANGED
|
@@ -239,3 +239,13 @@
|
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
+
|
|
243
|
+
@mixin focus-ring($border-radius: 0, $outline-offset: 4px, $outline-width: 2px, $outline-color: $focus-default) {
|
|
244
|
+
@if $border-radius != 0 {
|
|
245
|
+
/* stylelint-disable-next-line declaration-property-value-allowed-list */
|
|
246
|
+
border-radius: $border-radius;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
outline: $outline-width solid $outline-color;
|
|
250
|
+
outline-offset: $outline-offset;
|
|
251
|
+
}
|
|
@@ -98,20 +98,30 @@
|
|
|
98
98
|
|
|
99
99
|
.#{$px}-accordion-item-label {
|
|
100
100
|
align-items: center;
|
|
101
|
+
|
|
102
|
+
// Reset button styles to match div appearance
|
|
103
|
+
background: none;
|
|
104
|
+
border: none;
|
|
101
105
|
display: flex;
|
|
102
106
|
flex-direction: row;
|
|
107
|
+
font: inherit;
|
|
103
108
|
justify-content: space-between;
|
|
104
109
|
padding: $spacing-sm 0;
|
|
110
|
+
text-align: inherit;
|
|
111
|
+
width: 100%;
|
|
105
112
|
|
|
106
113
|
&--hoverable {
|
|
107
114
|
cursor: pointer;
|
|
108
115
|
|
|
109
|
-
&:hover
|
|
110
|
-
&:focus-visible {
|
|
116
|
+
&:hover {
|
|
111
117
|
opacity: 0.75;
|
|
112
118
|
}
|
|
113
119
|
}
|
|
114
120
|
|
|
121
|
+
&:focus-visible {
|
|
122
|
+
@include focus-ring;
|
|
123
|
+
}
|
|
124
|
+
|
|
115
125
|
&__text {
|
|
116
126
|
flex: auto;
|
|
117
127
|
font-variation-settings: 'wght' 600;
|