@phillips/seldon 1.3.1 → 1.4.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.
@@ -1,33 +1,33 @@
1
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
- import { px as d } from "../../utils/index.js";
3
- const a = `${d}-hero-banner`, t = ({
4
- prehead: l,
5
- date: r,
1
+ import { jsx as n, jsxs as s } from "react/jsx-runtime";
2
+ import { px as t } from "../../utils/index.js";
3
+ const r = `${t}-hero-banner`, m = ({
4
+ prehead: e,
5
+ date: l,
6
6
  headerText: o,
7
7
  subHeadText: c,
8
8
  association: h,
9
9
  background: p,
10
- id: e
11
- }) => /* @__PURE__ */ s(
10
+ id: a
11
+ }) => /* @__PURE__ */ n(
12
12
  "header",
13
13
  {
14
- "data-testid": e ? `hero-banner-${e}` : "hero-banner",
15
- id: e,
16
- className: a,
14
+ "data-testid": a ? `hero-banner-${a}` : "hero-banner",
15
+ id: a,
16
+ className: r,
17
17
  style: { "--background": p },
18
- children: [
19
- l || r ? /* @__PURE__ */ s("p", { className: `${a}__pre-head`, children: [
20
- l ? /* @__PURE__ */ n("span", { children: l }) : null,
21
- r ? /* @__PURE__ */ n("span", { children: r }) : null
18
+ children: /* @__PURE__ */ s("span", { className: `${r}__content-wrapper`, children: [
19
+ e || l ? /* @__PURE__ */ s("p", { className: `${r}__pre-head`, children: [
20
+ e ? /* @__PURE__ */ n("span", { children: e }) : null,
21
+ l ? /* @__PURE__ */ n("span", { children: l }) : null
22
22
  ] }) : null,
23
- /* @__PURE__ */ s("h1", { className: `${a}__heading`, children: [
23
+ /* @__PURE__ */ s("h1", { className: `${r}__heading`, children: [
24
24
  o,
25
25
  c ? /* @__PURE__ */ n("span", { children: c }) : null
26
26
  ] }),
27
27
  h ? /* @__PURE__ */ n("p", { children: h }) : null
28
- ]
28
+ ] })
29
29
  }
30
30
  );
31
31
  export {
32
- t as default
32
+ m as default
33
33
  };
@@ -57,6 +57,13 @@
57
57
  text-align: center;
58
58
  }
59
59
 
60
+ & .#{$px}-hero-banner__content-wrapper {
61
+ max-width: 1082px;
62
+ display: flex;
63
+ flex-direction: column;
64
+ align-items: center;
65
+ }
66
+
60
67
  & .#{$px}-hero-banner__pre-head {
61
68
  align-items: flex-start;
62
69
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",