@abgov/jsonforms-components 2.11.0 → 2.12.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 +3 -10
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -6647,7 +6647,7 @@ const warningIcon = errorMessage => {
6647
6647
  });
6648
6648
  };
6649
6649
  const GoABaseInputReviewComponent = props => {
6650
- var _a, _b, _c, _d, _e;
6650
+ var _a, _b, _c;
6651
6651
  // eslint-disable-next-line
6652
6652
  const {
6653
6653
  data,
@@ -6715,13 +6715,6 @@ const GoABaseInputReviewComponent = props => {
6715
6715
  }, index);
6716
6716
  })
6717
6717
  });
6718
- } else if (data === undefined || data === false) {
6719
- const checkboxLabel = ((_e = (_d = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _d === void 0 ? void 0 : _d.text) === null || _e === void 0 ? void 0 : _e.trim()) || convertToSentenceCase(getLastSegmentFromPointer(uischema.scope));
6720
- reviewText = jsx("ul", {
6721
- children: jsx("li", {
6722
- children: `No (${checkboxLabel.trim()})`
6723
- })
6724
- });
6725
6718
  }
6726
6719
  return jsxs("div", {
6727
6720
  style: {
@@ -8707,12 +8700,12 @@ const FileUploader = _ref => {
8707
8700
  children: [jsx("div", {
8708
8701
  children: getFileName(index)
8709
8702
  }), jsxs(GoAContextMenu, {
8710
- children: [jsx(GoAContextMenuIcon, {
8703
+ children: [noDownloadButton !== true && jsx(GoAContextMenuIcon, {
8711
8704
  testId: "download-icon",
8712
8705
  title: "Download",
8713
8706
  type: "download",
8714
8707
  onClick: () => downloadFile(getFile(index))
8715
- }), noDownloadButton !== true && jsx(GoAContextMenuIcon, {
8708
+ }), jsx(GoAContextMenuIcon, {
8716
8709
  "data-testid": "delete-icon",
8717
8710
  title: "Delete",
8718
8711
  type: "trash",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.11.0",
3
+ "version": "2.12.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",