@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.
Files changed (54) hide show
  1. package/dist/_virtual/index10.js +2 -2
  2. package/dist/_virtual/index11.js +2 -2
  3. package/dist/_virtual/index6.js +5 -3
  4. package/dist/_virtual/index7.js +3 -5
  5. package/dist/_virtual/index8.js +2 -2
  6. package/dist/_virtual/index9.js +2 -2
  7. package/dist/components/Accordion/AccordionItem.js +34 -34
  8. package/dist/components/AddToCalendar/calendarLinks.js +1 -1
  9. package/dist/components/Button/Button.js +37 -37
  10. package/dist/components/ComposedModal/ComposedModal.d.ts +1 -1
  11. package/dist/components/ExitGateCard/ExitGateCard.js +7 -7
  12. package/dist/components/Tags/Tags.js +12 -13
  13. package/dist/node_modules/ics/dist/index.js +1 -1
  14. package/dist/node_modules/ics/dist/pipeline/index.js +1 -1
  15. package/dist/node_modules/prop-types/index.js +1 -1
  16. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  17. package/dist/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
  18. package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
  19. package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
  20. package/dist/patterns/Social/Social.js +22 -22
  21. package/dist/scss/_utils.scss +10 -0
  22. package/dist/scss/components/Accordion/_accordion.scss +12 -2
  23. package/dist/scss/components/AddToCalendar/_addToCalendar.scss +1 -2
  24. package/dist/scss/components/Breadcrumb/_breadcrumb.scss +1 -2
  25. package/dist/scss/components/Button/_button.scss +11 -6
  26. package/dist/scss/components/Carousel/_carousel.scss +12 -3
  27. package/dist/scss/components/ComboBox/_combobox.scss +2 -2
  28. package/dist/scss/components/ComposedModal/_composedModal.scss +0 -1
  29. package/dist/scss/components/DatePicker/_datePicker.scss +4 -0
  30. package/dist/scss/components/DescriptiveRadioButton/_descriptiveRadioButton.scss +10 -2
  31. package/dist/scss/components/Dropdown/_dropdown.scss +1 -2
  32. package/dist/scss/components/ExitGateCard/_exitGateCard.scss +5 -0
  33. package/dist/scss/components/IconButton/_iconButton.scss +5 -8
  34. package/dist/scss/components/Input/_input.scss +19 -3
  35. package/dist/scss/components/Link/_link.scss +4 -0
  36. package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +4 -0
  37. package/dist/scss/components/Pagination/_pagination.scss +2 -2
  38. package/dist/scss/components/Search/_searchButton.scss +4 -1
  39. package/dist/scss/components/Select/_select.scss +2 -3
  40. package/dist/scss/components/Tabs/_tabs.scss +22 -3
  41. package/dist/scss/components/Tags/_tags.scss +2 -12
  42. package/dist/scss/components/TextArea/_textArea.scss +2 -2
  43. package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +4 -6
  44. package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +1 -3
  45. package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +9 -1
  46. package/dist/scss/patterns/FiltersInline/_filterButton.scss +2 -4
  47. package/dist/scss/patterns/SaleCard/_saleCard.scss +16 -0
  48. package/dist/scss/patterns/Social/_social.scss +8 -5
  49. package/dist/scss/patterns/UserManagement/_userManagement.scss +5 -1
  50. package/dist/scss/site-furniture/Footer/_footer.scss +9 -0
  51. package/dist/scss/site-furniture/Header/_header.scss +4 -0
  52. package/dist/site-furniture/Footer/Footer.js +1 -1
  53. package/dist/site-furniture/Header/Header.js +6 -6
  54. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- var e = {};
1
+ var e = { exports: {} };
2
2
  export {
3
- e as __exports
3
+ e as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var e = { exports: {} };
1
+ var e = {};
2
2
  export {
3
- e as __module
3
+ e as __exports
4
4
  };
@@ -1,5 +1,7 @@
1
- import { __require as r } from "../node_modules/ics/dist/index.js";
2
- var i = r();
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
- i as d
6
+ s as default
5
7
  };
@@ -1,7 +1,5 @@
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);
1
+ import { __require as r } from "../node_modules/ics/dist/index.js";
2
+ var i = r();
5
3
  export {
6
- s as default
4
+ i as d
7
5
  };
@@ -1,4 +1,4 @@
1
- var r = {};
1
+ var p = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ p as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var p = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- p as __module
3
+ r as __exports
4
4
  };
@@ -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 T } from "react";
5
- import $ from "../Icon/Icon.js";
6
- import { getCommonProps as y, px as R } from "../../utils/index.js";
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 b } from "./utils.js";
9
- import { TextVariants as u } from "../Text/types.js";
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: i,
17
- variant: c = d.md,
16
+ id: c,
17
+ variant: i = d.md,
18
18
  onOpen: l,
19
19
  onClose: m
20
20
  }) => {
21
- const h = w(null), s = r, p = c === d.md ? u.labelMedium : u.labelSmall, f = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
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: b(o, c, "lock"),
28
- "data-testid": `${i}-lockedIcon`,
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: b(o, c, "plus"),
38
- "data-testid": `${i}-plusIcon`,
37
+ className: $(o, i, "plus"),
38
+ "data-testid": `${c}-plusIcon`,
39
39
  "aria-hidden": !0
40
40
  }
41
- ) }), I = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
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: b(o, c, "minus"),
48
- "data-testid": `${i}-minusIcon`,
47
+ className: $(o, i, "minus"),
48
+ "data-testid": `${c}-minusIcon`,
49
49
  "aria-hidden": !0
50
50
  }
51
- ) }), a = T(() => {
52
- h.current?.getAttribute("data-state") === "closed" ? l?.() : m?.();
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: h,
60
+ ref: u,
61
61
  onClick: a,
62
- children: /* @__PURE__ */ N("div", { "data-testid": `${i}-trigger`, children: [
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 && I
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: i,
76
- variant: c = d.md
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
- i
84
+ c
85
85
  ),
86
- children: /* @__PURE__ */ t(x, { variant: c === d.md ? u.bodyMedium : u.bodySmall, children: e })
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: i,
95
- hasTransition: c = !1,
94
+ isLastItem: c,
95
+ hasTransition: i = !1,
96
96
  children: l,
97
97
  className: m,
98
- transitionTimeInMs: h = 250,
98
+ transitionTimeInMs: u = 250,
99
99
  onOpen: s,
100
100
  onClose: p,
101
101
  ...f
102
102
  }, g) => {
103
- const { className: I } = y({ id: o }, "Accordion"), a = `${I}-item`;
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": `${h}ms` },
109
+ style: { "--seldon-accordion-transition-time": `${u}ms` },
110
110
  className: C(a, m, {
111
- [`${a}__border-bottom`]: !i
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: c,
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/index6.js";
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 j, Fragment as C, jsx as n } from "react/jsx-runtime";
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 v, px as w } from "../../utils/index.js";
4
- import { ButtonVariants as l, ButtonSizes as y } from "./types.js";
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 s } from "../Link/types.js";
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: t = l.primary,
11
- size: k = y.default,
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: L = "button",
16
- isDisabled: a = !1,
17
- href: o,
15
+ type: y = "button",
16
+ isDisabled: l = !1,
17
+ href: n,
18
18
  target: d,
19
19
  prefetch: p = "none",
20
- isSkeletonLoading: i,
21
- linkSize: M = "md",
22
- ...m
20
+ isSkeletonLoading: s,
21
+ linkSize: L = "md",
22
+ ...i
23
23
  }, $) => {
24
- const { className: e, ...b } = v(m, "Button"), [P, V] = g(!1);
25
- if (o || t === l.link) {
26
- const B = () => /* @__PURE__ */ n(C, { children: /* @__PURE__ */ n("link", { "data-testid": "prefetch-link", rel: "prefetch", href: o }) });
27
- let r = s.linkMedium;
28
- switch (M) {
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 = s.linkLarge;
30
+ r = a.linkLarge;
31
31
  break;
32
32
  case "md":
33
- r = s.linkMedium;
33
+ r = a.linkMedium;
34
34
  break;
35
35
  case "sm":
36
- r = s.linkSmall;
36
+ r = a.linkSmall;
37
37
  break;
38
38
  }
39
- return /* @__PURE__ */ j(C, { children: [
40
- /* @__PURE__ */ n(
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: o,
46
+ href: n,
47
47
  className: N(
48
48
  `${e}`,
49
- { [`${e}--${t}`]: t !== l.link },
50
- { [`${e}--link`]: t === l.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
- a || V(!0);
59
+ l || P(!0);
60
60
  },
61
61
  onClick: (x) => {
62
- a ? x.preventDefault() : m.onClick?.(x);
62
+ l ? x.preventDefault() : i.onClick?.(x);
63
63
  },
64
64
  children: u
65
65
  }
66
66
  ),
67
- p === "intent" && o && P && /* @__PURE__ */ n(B, {}),
68
- p === "render" && o && /* @__PURE__ */ n(B, {})
67
+ p === "intent" && n && M && /* @__PURE__ */ t(B, {}),
68
+ p === "render" && n && /* @__PURE__ */ t(B, {})
69
69
  ] });
70
70
  } else
71
- return /* @__PURE__ */ n(
71
+ return /* @__PURE__ */ t(
72
72
  "button",
73
73
  {
74
74
  ...b,
75
75
  ref: $,
76
- type: L,
77
- "aria-busy": i,
76
+ type: y,
77
+ "aria-busy": s,
78
78
  className: N(
79
79
  `${e}`,
80
- `${e}--${t}`,
81
- { [`${e}--${k}`]: k !== y.default },
80
+ `${e}--${o}`,
81
+ { [`${e}--${k}`]: k !== v.default },
82
82
  {
83
83
  [`${e}--icon-last`]: f,
84
- [`${w}-skeleton`]: i
84
+ [`${w}-skeleton`]: s
85
85
  },
86
86
  c
87
87
  ),
88
- disabled: i || a,
89
- ...m,
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/hMu9IWH5N3KamJy8tLFdyV/Design-System--Responsive-Web?node-id=25578-15048&p=f&m=dev)
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 j = $(
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
- }, N) => {
26
- const { className: t, ...x } = g(c, "ExitGateCard");
27
- return /* @__PURE__ */ d("article", { ...x, className: h(t, f), ...c, ref: N, children: [
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
- j.displayName = "ExitGateCard";
47
+ b.displayName = "ExitGateCard";
48
48
  export {
49
- j as default
49
+ b as default
50
50
  };
@@ -1,13 +1,13 @@
1
- import { jsxs as n, jsx as a } from "react/jsx-runtime";
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 x, px as r } from "../../utils/index.js";
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 L = ({ id: s, className: t, onRemove: e, label: o, removeText: i = "Remove" }) => /* @__PURE__ */ n(
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
- ), v = b(
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 } = x(i, "TagsList"), { id: m } = i;
25
- return /* @__PURE__ */ n(
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
- tabIndex: 0,
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__ */ n(
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": `${m}-clear-all-button`,
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
- v.displayName = "Tags";
54
+ x.displayName = "Tags";
56
55
  export {
57
- L as Tag,
58
- v as default
56
+ P as Tag,
57
+ x as default
59
58
  };
@@ -1,4 +1,4 @@
1
- import { __exports as o } from "../../../_virtual/index8.js";
1
+ import { __exports as o } from "../../../_virtual/index9.js";
2
2
  import { __require as q } from "./pipeline/index.js";
3
3
  var O;
4
4
  function R() {
@@ -1,4 +1,4 @@
1
- import { __exports as u } from "../../../../_virtual/index10.js";
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/index9.js";
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/index11.js";
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/index7.js";
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/index7.js";
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,4 +1,4 @@
1
- import e from "../../../../_virtual/index7.js";
1
+ import e from "../../../../_virtual/index6.js";
2
2
  var n = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
3
3
  enter: e.number,
4
4
  exit: e.number,
@@ -1,29 +1,29 @@
1
- import { jsxs as f, jsx as a } from "react/jsx-runtime";
2
- import p from "../../_virtual/index.js";
3
- import { getCommonProps as u } from "../../utils/index.js";
4
- import N from "../../components/Button/Button.js";
5
- import { forwardRef as h } from "react";
6
- import { ButtonVariants as v } from "../../components/Button/types.js";
7
- import { TextVariants as t } from "../../components/Text/types.js";
8
- import m from "../../components/Text/Text.js";
9
- const x = h(
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: e,
12
- children: i,
13
- titleText: s = "Never miss a moment",
14
- buttonText: n = "Subscribe to our newsletter",
15
- onSubscribeClick: l,
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
- }, c) => {
18
- const { className: r, ...d } = u(o, "Social");
19
- return /* @__PURE__ */ f("div", { ref: c, ...d, className: p(r, e), ...o, children: [
20
- /* @__PURE__ */ a(m, { variant: t.headingSmall, className: `${r}__header`, children: s }),
21
- /* @__PURE__ */ a(N, { onClick: l, variant: v.tertiary, className: `${r}__button`, children: /* @__PURE__ */ a(m, { variant: t.linkMedium, children: n }) }),
22
- i
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
- x.displayName = "Social";
26
+ S.displayName = "Social";
27
27
  export {
28
- x as default
28
+ S as default
29
29
  };
@@ -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;
@@ -23,8 +23,7 @@
23
23
  }
24
24
 
25
25
  &:focus-visible {
26
- border-radius: $radius-xs;
27
- outline: 1px solid $medium-gray;
26
+ @include focus-ring($border-radius: $radius-xs);
28
27
  }
29
28
  }
30
29
 
@@ -27,8 +27,7 @@
27
27
  }
28
28
 
29
29
  &:focus-visible {
30
- border-radius: $radius-xs;
31
- outline: 1px solid $medium-gray;
30
+ @include focus-ring($border-radius: $radius-xs);
32
31
  }
33
32
  }
34
33