@phillips/seldon 1.240.1 → 1.242.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 (45) hide show
  1. package/README.md +30 -0
  2. package/dist/_virtual/index7.js +3 -2
  3. package/dist/_virtual/index8.js +2 -3
  4. package/dist/components/Accordion/AccordionItem.js +34 -34
  5. package/dist/components/AddToCalendar/calendarLinks.js +1 -1
  6. package/dist/components/Button/Button.js +37 -37
  7. package/dist/components/Button/types.d.ts +1 -0
  8. package/dist/components/Button/types.js +1 -1
  9. package/dist/components/ExitGateCard/ExitGateCard.js +7 -7
  10. package/dist/components/Tags/Tags.js +12 -13
  11. package/dist/node_modules/prop-types/index.js +1 -1
  12. package/dist/patterns/Social/Social.js +22 -22
  13. package/dist/scss/_utils.scss +10 -0
  14. package/dist/scss/components/Accordion/_accordion.scss +12 -2
  15. package/dist/scss/components/AddToCalendar/_addToCalendar.scss +1 -2
  16. package/dist/scss/components/Breadcrumb/_breadcrumb.scss +1 -2
  17. package/dist/scss/components/Button/_button.scss +82 -11
  18. package/dist/scss/components/Carousel/_carousel.scss +12 -3
  19. package/dist/scss/components/ComboBox/_combobox.scss +2 -2
  20. package/dist/scss/components/DatePicker/_datePicker.scss +4 -0
  21. package/dist/scss/components/DescriptiveRadioButton/_descriptiveRadioButton.scss +10 -2
  22. package/dist/scss/components/Dropdown/_dropdown.scss +1 -2
  23. package/dist/scss/components/ExitGateCard/_exitGateCard.scss +5 -0
  24. package/dist/scss/components/IconButton/_iconButton.scss +5 -8
  25. package/dist/scss/components/Input/_input.scss +19 -3
  26. package/dist/scss/components/Link/_link.scss +4 -0
  27. package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +4 -0
  28. package/dist/scss/components/Pagination/_pagination.scss +2 -2
  29. package/dist/scss/components/Search/_searchButton.scss +4 -1
  30. package/dist/scss/components/Select/_select.scss +2 -3
  31. package/dist/scss/components/Tabs/_tabs.scss +22 -3
  32. package/dist/scss/components/Tags/_tags.scss +2 -12
  33. package/dist/scss/components/TextArea/_textArea.scss +2 -2
  34. package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +4 -6
  35. package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +1 -3
  36. package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +9 -1
  37. package/dist/scss/patterns/FiltersInline/_filterButton.scss +2 -4
  38. package/dist/scss/patterns/SaleCard/_saleCard.scss +16 -0
  39. package/dist/scss/patterns/Social/_social.scss +8 -5
  40. package/dist/scss/patterns/UserManagement/_userManagement.scss +5 -1
  41. package/dist/scss/site-furniture/Footer/_footer.scss +9 -0
  42. package/dist/scss/site-furniture/Header/_header.scss +4 -0
  43. package/dist/site-furniture/Footer/Footer.js +1 -1
  44. package/dist/site-furniture/Header/Header.js +6 -6
  45. package/package.json +1 -1
package/README.md CHANGED
@@ -44,3 +44,33 @@ import { Button } from '@phillips/seldon';
44
44
  ### Contributing Guidelines
45
45
 
46
46
  Before you start contributing to this project please check out our guidelines found [here](/src/docs/CONTRIBUTING.md)
47
+
48
+ ### Git worktrees (`new-worktree.sh`)
49
+
50
+ You can use Git [worktrees](https://git-scm.com/docs/git-worktree) to keep multiple branches checked out at once (for example when reviewing a PR or spiking a change) without re-running all setup steps every time.
51
+
52
+ Use the `scripts/new-worktree.sh` helper to create a new worktree and copy ignored files (like `.env`) into the new directory:
53
+
54
+ ```bash
55
+ # New worktree at ../my-feature using the current branch
56
+ ./scripts/new-worktree.sh ../my-feature
57
+
58
+ # New worktree on an existing branch
59
+ ./scripts/new-worktree.sh ../my-feature feature-branch
60
+
61
+ # New worktree with a new branch (e.g. from main)
62
+ ./scripts/new-worktree.sh ../my-feature -b new-branch main
63
+
64
+ # Optionally copy node_modules instead of running npm install in the new worktree
65
+ COPY_NODE_MODULES=1 ./scripts/new-worktree.sh ../my-feature
66
+ ```
67
+
68
+ The script runs `git worktree add`, copies ignored config files into the new directory, runs `npm install`, and then opens the new worktree in Cursor or VS Code.
69
+
70
+ To remove a worktree, you can run the following command:
71
+
72
+ ```bash
73
+ git worktree remove ../my-feature
74
+ ```
75
+
76
+ This will remove the worktree from the git repository.
@@ -1,4 +1,5 @@
1
- var p = { exports: {} };
1
+ import { __require as r } from "../node_modules/ics/dist/index.js";
2
+ var i = r();
2
3
  export {
3
- p as __module
4
+ i as d
4
5
  };
@@ -1,5 +1,4 @@
1
- import { __require as r } from "../node_modules/ics/dist/index.js";
2
- var i = r();
1
+ var p = { exports: {} };
3
2
  export {
4
- i as d
3
+ p as __module
5
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/index8.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
  );
@@ -2,6 +2,7 @@ export declare enum ButtonVariants {
2
2
  primary = "primary",
3
3
  secondary = "secondary",
4
4
  tertiary = "tertiary",
5
+ destructive = "destructive",
5
6
  link = "link"
6
7
  }
7
8
  export declare enum ButtonSizes {
@@ -1,4 +1,4 @@
1
- var e = /* @__PURE__ */ ((r) => (r.primary = "primary", r.secondary = "secondary", r.tertiary = "tertiary", r.link = "link", r))(e || {}), l = /* @__PURE__ */ ((r) => (r.default = "default", r.small = "small", r))(l || {});
1
+ var e = /* @__PURE__ */ ((r) => (r.primary = "primary", r.secondary = "secondary", r.tertiary = "tertiary", r.destructive = "destructive", r.link = "link", r))(e || {}), l = /* @__PURE__ */ ((r) => (r.default = "default", r.small = "small", r))(l || {});
2
2
  export {
3
3
  l as ButtonSizes,
4
4
  e as ButtonVariants
@@ -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 { __module as r } from "../../_virtual/index7.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,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