@abgov/react-components 3.4.0-beta.64 → 3.4.0-beta.65

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,7 +1,7 @@
1
1
  import { FC } from 'react';
2
2
  import './hero-banner.component.scss';
3
3
  interface Props {
4
- title: string;
4
+ title?: string;
5
5
  backgroundUrl: string;
6
6
  content?: string;
7
7
  linkText?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "3.4.0-beta.64",
3
+ "version": "3.4.0-beta.65",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -1,5 +1,5 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import React, { useState, Fragment as Fragment$1, useEffect, Children, createElement } from 'react';
1
+ import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
2
+ import React, { useState, Fragment, useEffect, Children, createElement } from 'react';
3
3
  import classnames from 'classnames';
4
4
 
5
5
  function styleInject(css, ref) {
@@ -1324,8 +1324,8 @@ const GoAHeader = props => {
1324
1324
  return props.serviceLevel.toLowerCase();
1325
1325
  }
1326
1326
 
1327
- return jsxs(Fragment, {
1328
- children: [jsxs("header", Object.assign({
1327
+ return jsxs("header", {
1328
+ children: [jsxs("div", Object.assign({
1329
1329
  className: "goa-header goa-official-site-header"
1330
1330
  }, {
1331
1331
  children: [jsx("div", {
@@ -1396,7 +1396,7 @@ const GoAHeroBannerLink = ({
1396
1396
  }, {
1397
1397
  children: linkText
1398
1398
  }), void 0)
1399
- }, void 0) : jsx(Fragment$1, {}, void 0);
1399
+ }, void 0) : jsx(Fragment, {}, void 0);
1400
1400
  };
1401
1401
 
1402
1402
  var css_248z$k = "/* Palette */\n/* Semantic usages */\n.goa-hero {\n box-sizing: border-box;\n display: flex;\n justify-content: flex-end;\n align-items: stretch;\n flex-direction: column;\n height: 600px;\n border-bottom: 8px solid #0081a2;\n color: #fff;\n background-position: center center;\n width: 100%;\n padding: 56px 28px;\n}\n.goa-hero h1 {\n margin: 0 0 28px;\n padding: 0;\n font-size: 48px;\n line-height: 56px;\n font-weight: 700;\n color: #fff;\n}";
@@ -1416,12 +1416,12 @@ const GoAHeroBanner = ({
1416
1416
  backgroundImage: `linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 40%, rgba(0, 0, 0, 0.6) 100%), url('${backgroundUrl}')`
1417
1417
  }
1418
1418
  }, {
1419
- children: [jsx("h1", Object.assign({
1419
+ children: [title && jsx("h1", Object.assign({
1420
1420
  role: "heading",
1421
1421
  "aria-level": 1
1422
1422
  }, {
1423
1423
  children: title
1424
- }), void 0), children || jsxs(Fragment$1, {
1424
+ }), void 0), children || jsxs(Fragment, {
1425
1425
  children: [content && jsx(GoAHeroBannerContent, {
1426
1426
  content: content
1427
1427
  }, void 0), linkText && linkUrl && jsx(GoAHeroBannerLink, {
@@ -1778,7 +1778,7 @@ const GoADropdown = _a => {
1778
1778
  placeholder: props.placeholder,
1779
1779
  value: getSelectedLabel()
1780
1780
  }, void 0)
1781
- }), void 0), isMenuVisible && jsxs(Fragment, {
1781
+ }), void 0), isMenuVisible && jsxs(Fragment$1, {
1782
1782
  children: [props.autoComplete && jsx(GoAInput, {
1783
1783
  type: "text",
1784
1784
  placeholder: "Filter",
@@ -1356,8 +1356,8 @@
1356
1356
  return props.serviceLevel.toLowerCase();
1357
1357
  }
1358
1358
 
1359
- return jsxRuntime.jsxs(jsxRuntime.Fragment, {
1360
- children: [jsxRuntime.jsxs("header", __assign({
1359
+ return jsxRuntime.jsxs("header", {
1360
+ children: [jsxRuntime.jsxs("div", __assign({
1361
1361
  className: "goa-header goa-official-site-header"
1362
1362
  }, {
1363
1363
  children: [jsxRuntime.jsx("div", {
@@ -1445,7 +1445,7 @@
1445
1445
  backgroundImage: "linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 40%, rgba(0, 0, 0, 0.6) 100%), url('" + backgroundUrl + "')"
1446
1446
  }
1447
1447
  }, {
1448
- children: [jsxRuntime.jsx("h1", __assign({
1448
+ children: [title && jsxRuntime.jsx("h1", __assign({
1449
1449
  role: "heading",
1450
1450
  "aria-level": 1
1451
1451
  }, {