@abgov/jsonforms-components 1.5.1 → 1.6.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 (2) hide show
  1. package/index.esm.js +27 -7
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -4056,14 +4056,14 @@ const FormStepper = ({
4056
4056
  actions: jsx(GoAButtonGroup, {
4057
4057
  alignment: "end",
4058
4058
  children: jsx(GoAButton, {
4059
- type: "secondary",
4059
+ type: "primary",
4060
4060
  testId: "submit-form",
4061
4061
  onClick: onSubmit,
4062
- children: "Ok"
4062
+ children: "Close"
4063
4063
  })
4064
4064
  }),
4065
4065
  children: [jsx("b", {
4066
- children: "Submit is a test for preview purposes"
4066
+ children: "Submit is a test for preview purposes "
4067
4067
  }), "(i.e. no actual form is being submitted)"]
4068
4068
  })]
4069
4069
  })
@@ -4807,7 +4807,7 @@ const GoAVerticalLayout = withJsonFormsLayoutProps(GoAVerticalLayoutComponent, t
4807
4807
 
4808
4808
  const groupTester = rankWith(1, uiTypeIs('Group'));
4809
4809
  const GoAGroupControlComponent = props => {
4810
- var _a;
4810
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
4811
4811
  const {
4812
4812
  uischema,
4813
4813
  schema,
@@ -4818,11 +4818,31 @@ const GoAGroupControlComponent = props => {
4818
4818
  visible
4819
4819
  } = props;
4820
4820
  const group = uischema;
4821
- return jsx(Hidden, {
4821
+ return jsxs(Hidden, {
4822
4822
  xsUp: !visible,
4823
- children: jsx(GoAContainer, Object.assign({}, (_a = group.options) === null || _a === void 0 ? void 0 : _a.componentProps, {
4823
+ children: [((_b = (_a = group.options) === null || _a === void 0 ? void 0 : _a.componentProps) === null || _b === void 0 ? void 0 : _b.accent) === 'thick' && jsx(GoAContainer, Object.assign({
4824
+ heading: group.label
4825
+ }, (_c = group.options) === null || _c === void 0 ? void 0 : _c.componentProps, {
4824
4826
  children: renderLayoutElements(group.elements, schema, path, enabled, renderers, cells)
4825
- }))
4827
+ })), (((_e = (_d = group.options) === null || _d === void 0 ? void 0 : _d.componentProps) === null || _e === void 0 ? void 0 : _e.accent) === 'thin' || ((_g = (_f = group.options) === null || _f === void 0 ? void 0 : _f.componentProps) === null || _g === void 0 ? void 0 : _g.accent) === 'filled') && jsxs("div", {
4828
+ children: [group.label && jsx("h3", {
4829
+ children: group.label
4830
+ }), jsx(GoAContainer, Object.assign({}, (_h = group.options) === null || _h === void 0 ? void 0 : _h.componentProps, {
4831
+ children: renderLayoutElements(group.elements, schema, path, enabled, renderers, cells)
4832
+ }))]
4833
+ }), ((_j = group.options) === null || _j === void 0 ? void 0 : _j.componentProps) && !((_l = (_k = group.options) === null || _k === void 0 ? void 0 : _k.componentProps) === null || _l === void 0 ? void 0 : _l.accent) && jsxs("div", {
4834
+ children: [group.label && jsx("h3", {
4835
+ children: group.label
4836
+ }), jsx(GoAContainer, Object.assign({}, (_m = group.options) === null || _m === void 0 ? void 0 : _m.componentProps, {
4837
+ children: renderLayoutElements(group.elements, schema, path, enabled, renderers, cells)
4838
+ }))]
4839
+ }), !((_o = group.options) === null || _o === void 0 ? void 0 : _o.componentProps) && jsxs("div", {
4840
+ children: [group.label && jsx("h3", {
4841
+ children: group.label
4842
+ }), jsx(GoAContainer, {
4843
+ children: renderLayoutElements(group.elements, schema, path, enabled, renderers, cells)
4844
+ })]
4845
+ })]
4826
4846
  });
4827
4847
  };
4828
4848
  const GoAGroupLayoutTester = withIncreasedRank(1, groupTester);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
6
6
  "repository": "https://github.com/GovAlta/adsp-monorepo",