@abgov/jsonforms-components 1.24.5 → 1.24.7

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 +15 -8
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -6324,11 +6324,18 @@ const RenderLink = props => {
6324
6324
  label: "",
6325
6325
  children: jsx("div", {
6326
6326
  "data-testid": "link-jsonform",
6327
- children: linkUrl && linkValid ? jsx("a", {
6328
- href: link,
6329
- target: "_blank",
6330
- rel: "noreferrer",
6331
- children: linkLabel
6327
+ children: linkUrl && linkValid ? jsx("div", {
6328
+ children: jsxs("a", {
6329
+ href: link,
6330
+ rel: "noopener noreferrer",
6331
+ target: "_blank",
6332
+ children: [linkLabel, jsx(GoAIconButton, {
6333
+ icon: "open",
6334
+ title: "Open",
6335
+ testId: "open-icon",
6336
+ size: "small"
6337
+ })]
6338
+ })
6332
6339
  }) : linkLabel
6333
6340
  })
6334
6341
  });
@@ -6373,18 +6380,18 @@ const HelpContentComponent = _a => {
6373
6380
  alt: alt
6374
6381
  });
6375
6382
  };
6376
- const textVariant = !((_c = uischema.options) === null || _c === void 0 ? void 0 : _c.variant) || ((_d = uischema.options) === null || _d === void 0 ? void 0 : _d.variant) !== 'details' && ((_e = uischema.options) === null || _e === void 0 ? void 0 : _e.variant) !== 'src';
6383
+ const textVariant = !((_c = uischema.options) === null || _c === void 0 ? void 0 : _c.variant) || ((_d = uischema.options) === null || _d === void 0 ? void 0 : _d.variant) !== 'details' && ((_e = uischema.options) === null || _e === void 0 ? void 0 : _e.variant) !== 'hyperlink';
6377
6384
  return jsx(Visible, {
6378
6385
  visible: visible,
6379
6386
  children: jsx(HelpContentDiv, {
6380
6387
  "aria-label": (_f = uischema.options) === null || _f === void 0 ? void 0 : _f.ariaLabel,
6381
6388
  children: jsxs("div", {
6382
6389
  className: marginClass,
6383
- children: [label && (!((_g = uischema.options) === null || _g === void 0 ? void 0 : _g.variant) || ((_h = uischema.options) === null || _h === void 0 ? void 0 : _h.variant) === 'src') && jsxs("div", {
6390
+ children: [label && (!((_g = uischema.options) === null || _g === void 0 ? void 0 : _g.variant) || ((_h = uischema.options) === null || _h === void 0 ? void 0 : _h.variant) === 'hyperlink') && jsxs("div", {
6384
6391
  className: labelClass,
6385
6392
  "data-testid": label,
6386
6393
  children: [label, jsx("br", {})]
6387
- }), ((_j = uischema.options) === null || _j === void 0 ? void 0 : _j.variant) && ((_k = uischema.options) === null || _k === void 0 ? void 0 : _k.variant) === 'img' && renderImage(uischema.options), ((_l = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _l === void 0 ? void 0 : _l.variant) && ((_m = uischema.options) === null || _m === void 0 ? void 0 : _m.variant) === 'src' && link && RenderLink(uischema === null || uischema === void 0 ? void 0 : uischema.options), textVariant && renderHelp(), ((_o = uischema.options) === null || _o === void 0 ? void 0 : _o.variant) && ((_p = uischema.options) === null || _p === void 0 ? void 0 : _p.variant) === 'details' && jsxs(GoADetails, {
6394
+ }), ((_j = uischema.options) === null || _j === void 0 ? void 0 : _j.variant) && ((_k = uischema.options) === null || _k === void 0 ? void 0 : _k.variant) === 'img' && renderImage(uischema.options), ((_l = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _l === void 0 ? void 0 : _l.variant) && ((_m = uischema.options) === null || _m === void 0 ? void 0 : _m.variant) === 'hyperlink' && link && RenderLink(uischema === null || uischema === void 0 ? void 0 : uischema.options), textVariant && renderHelp(), ((_o = uischema.options) === null || _o === void 0 ? void 0 : _o.variant) && ((_p = uischema.options) === null || _p === void 0 ? void 0 : _p.variant) === 'details' && jsxs(GoADetails, {
6388
6395
  heading: label ? label : '',
6389
6396
  mt: "3xs",
6390
6397
  mb: "none",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.24.5",
3
+ "version": "1.24.7",
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",