@abgov/react-components 4.0.0-alpha.127 → 4.0.0-alpha.128

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.
@@ -18,6 +18,7 @@ declare global {
18
18
  interface Props extends Margins {
19
19
  accent?: Accent;
20
20
  type?: ContainerType;
21
+ heading?: ReactNode;
21
22
  title?: ReactNode;
22
23
  padding?: ContainerPadding;
23
24
  actions?: ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.127",
3
+ "version": "4.0.0-alpha.128",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -20104,6 +20104,7 @@ const GoACircularProgress = ({
20104
20104
 
20105
20105
  const GoAContainer = ({
20106
20106
  accent,
20107
+ heading,
20107
20108
  title,
20108
20109
  padding,
20109
20110
  children,
@@ -20115,6 +20116,7 @@ const GoAContainer = ({
20115
20116
  ml,
20116
20117
  testId
20117
20118
  }) => {
20119
+ const headingContent = heading || title;
20118
20120
  return jsxs("goa-container", Object.assign({
20119
20121
  type: type,
20120
20122
  padding: padding,
@@ -20125,15 +20127,15 @@ const GoAContainer = ({
20125
20127
  ml: ml,
20126
20128
  "data-testid": testId
20127
20129
  }, {
20128
- children: [title && jsx("div", Object.assign({
20130
+ children: [headingContent && jsx("div", Object.assign({
20129
20131
  slot: "title"
20130
20132
  }, {
20131
- children: title
20132
- }), void 0), actions && jsx("div", Object.assign({
20133
+ children: headingContent
20134
+ }), void 0), children, actions && jsx("div", Object.assign({
20133
20135
  slot: "actions"
20134
20136
  }, {
20135
20137
  children: actions
20136
- }), void 0), children]
20138
+ }), void 0)]
20137
20139
  }), void 0);
20138
20140
  };
20139
20141
 
@@ -20183,6 +20183,7 @@
20183
20183
 
20184
20184
  var GoAContainer = function GoAContainer(_a) {
20185
20185
  var accent = _a.accent,
20186
+ heading = _a.heading,
20186
20187
  title = _a.title,
20187
20188
  padding = _a.padding,
20188
20189
  children = _a.children,
@@ -20193,6 +20194,7 @@
20193
20194
  mb = _a.mb,
20194
20195
  ml = _a.ml,
20195
20196
  testId = _a.testId;
20197
+ var headingContent = heading || title;
20196
20198
  return jsxRuntime.jsxs("goa-container", __assign({
20197
20199
  type: type,
20198
20200
  padding: padding,
@@ -20203,15 +20205,15 @@
20203
20205
  ml: ml,
20204
20206
  "data-testid": testId
20205
20207
  }, {
20206
- children: [title && jsxRuntime.jsx("div", __assign({
20208
+ children: [headingContent && jsxRuntime.jsx("div", __assign({
20207
20209
  slot: "title"
20208
20210
  }, {
20209
- children: title
20210
- }), void 0), actions && jsxRuntime.jsx("div", __assign({
20211
+ children: headingContent
20212
+ }), void 0), children, actions && jsxRuntime.jsx("div", __assign({
20211
20213
  slot: "actions"
20212
20214
  }, {
20213
20215
  children: actions
20214
- }), void 0), children]
20216
+ }), void 0)]
20215
20217
  }), void 0);
20216
20218
  };
20217
20219