@abgov/jsonforms-components 2.23.0 → 2.24.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.
package/index.esm.js CHANGED
@@ -7097,24 +7097,20 @@ let _$5 = t => t,
7097
7097
  _t20$1,
7098
7098
  _t21,
7099
7099
  _t22,
7100
- _t23;
7100
+ _t23,
7101
+ _t24;
7101
7102
  const ReviewItem = styled.div(_t$5 || (_t$5 = _$5`
7102
7103
  display: flex;
7103
7104
  flex-direction: column;
7104
- border: var(--goa-border-width-s) solid grey;
7105
- border-radius: var(--goa-border-radius-m);
7106
- margin: var(--goa-space-2xs);
7107
- padding: var(--goa-space-xs);
7108
7105
  div:empty {
7109
7106
  display: none;
7110
7107
  }
7111
7108
  `));
7112
7109
  const ReviewItemSection = styled.div(_t2$4 || (_t2$4 = _$5`
7113
- background-color: #f1f1f1;
7114
7110
  margin-bottom: var(--goa-space-m);
7115
- padding: var(--goa-space-m);
7116
- border: 1px solid #dcdcdc;
7117
- border-radius: 5px;
7111
+ padding: var(--goa-space-xl) var(--goa-space-2xl);
7112
+ border: 1px solid var(--goa-color-greyscale-300);
7113
+ border-radius: var(--goa-border-radius-xl);
7118
7114
 
7119
7115
  .element-style {
7120
7116
  max-width: 1600px;
@@ -7178,8 +7174,8 @@ const PageRenderPadding = styled.div(_t12$1 || (_t12$1 = _$5`
7178
7174
  styled.div(_t13$1 || (_t13$1 = _$5`
7179
7175
  margin-bottom: var(--goa-space-2xl);
7180
7176
  `));
7181
- const PageBorder = styled.h3(_t14$1 || (_t14$1 = _$5`
7182
- padding: var(--goa-space-3xl);
7177
+ const PageBorder = styled.div(_t14$1 || (_t14$1 = _$5`
7178
+ padding: var(--goa-space-m) var(--goa-space-3xl);
7183
7179
  `));
7184
7180
  const TableReviewItemSection = styled.div(_t15$1 || (_t15$1 = _$5`
7185
7181
  .element-style {
@@ -7187,9 +7183,9 @@ const TableReviewItemSection = styled.div(_t15$1 || (_t15$1 = _$5`
7187
7183
  }
7188
7184
  `));
7189
7185
  const TableReviewItem = styled.div(_t16$1 || (_t16$1 = _$5`
7190
- border: 1px solid #dcdcdc;
7191
- border-radius: 5px;
7192
- padding: var(--goa-space-2xl);
7186
+ padding: var(--goa-space-xl) var(--goa-space-2xl);
7187
+ border: 1px solid var(--goa-color-greyscale-300);
7188
+ border-radius: var(--goa-border-radius-xl);
7193
7189
  `));
7194
7190
  const TableReviewPageTitleRow = styled.div(_t17$1 || (_t17$1 = _$5`
7195
7191
  margin-top: var(--goa-space-xl);
@@ -7234,6 +7230,10 @@ const SectionHeaderRowTr = styled.tr(_t23 || (_t23 = _$5`
7234
7230
  border-top: none !important;
7235
7231
  }
7236
7232
  `));
7233
+ const SummaryRowLink = styled.a(_t24 || (_t24 = _$5`
7234
+ position: relative;
7235
+ top: var(--goa-space-xs);
7236
+ `));
7237
7237
 
7238
7238
  class ContextProviderClass {
7239
7239
  async addDataByUrl(key, url, processDataFunction, token) {
@@ -8396,7 +8396,7 @@ const SummaryRow = ({
8396
8396
  mt: "none",
8397
8397
  mb: "xl",
8398
8398
  ml: "xl",
8399
- children: jsx("a", {
8399
+ children: jsx(SummaryRowLink, {
8400
8400
  "data-testid": `page-ref-${index}`,
8401
8401
  href: "#",
8402
8402
  onClick: e => {
@@ -8578,6 +8578,7 @@ const BackButtonWrapper = styled.span(_t$4 || (_t$4 = _$4`
8578
8578
  display: inline-block;
8579
8579
  color: #0070c4;
8580
8580
  cursor: pointer;
8581
+ margin-bottom: var(--goa-space-m);
8581
8582
 
8582
8583
  on .goa-icon {
8583
8584
  display: inline-block !important;
@@ -9474,22 +9475,24 @@ const ObjectArrayToolBar = /*#__PURE__*/React.memo(function TableToolbar({
9474
9475
  rootSchema,
9475
9476
  uischema
9476
9477
  }) {
9477
- var _a, _b, _c, _d;
9478
+ var _a, _b, _c, _d, _e;
9478
9479
  const buttonPosition = ((_a = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _a === void 0 ? void 0 : _a.addButtonPosition) || 'left';
9480
+ const buttonUIProps = ((_b = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _b === void 0 ? void 0 : _b.addButtonUIProps) || {};
9479
9481
  const arrayLabel = getLabelText(uischema.scope, label);
9480
9482
  return jsx(Fragment, {
9481
9483
  children: jsx("div", {
9482
9484
  style: {
9483
9485
  textAlign: buttonPosition
9484
9486
  },
9485
- children: jsx(GoAButton, {
9487
+ children: jsx(GoAButton, Object.assign({
9486
9488
  disabled: !enabled,
9487
9489
  testId: `object-array-toolbar-${label}`,
9488
9490
  "aria-label": `Add to button to ${(label === null || label === void 0 ? void 0 : label.toLowerCase()) || ''}`,
9489
9491
  onClick: addItem(path, createDefaultValue(schema, rootSchema)),
9490
- type: (_c = (_b = uischema.options) === null || _b === void 0 ? void 0 : _b.addButtonType) !== null && _c !== void 0 ? _c : 'primary',
9491
- children: ((_d = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _d === void 0 ? void 0 : _d.addButtonText) || capitalizeFirstLetter(`Add ${arrayLabel}`)
9492
- })
9492
+ type: (_d = (_c = uischema.options) === null || _c === void 0 ? void 0 : _c.addButtonType) !== null && _d !== void 0 ? _d : 'primary'
9493
+ }, buttonUIProps, {
9494
+ children: ((_e = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _e === void 0 ? void 0 : _e.addButtonText) || capitalizeFirstLetter(`Add ${arrayLabel}`)
9495
+ }))
9493
9496
  })
9494
9497
  });
9495
9498
  });
@@ -10735,11 +10738,12 @@ const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
10735
10738
  }
10736
10739
  `));
10737
10740
  const AddressIndent = styled.div(_t2$1 || (_t2$1 = _$1`
10738
- margin: 0.5em 0 0.5em 0;
10739
- textwrap: 'wrap';
10740
- wordbreak: 'break-word';
10741
- border: 1px solid #dcdcdc;
10742
- padding: 1.35em;
10741
+ margin: 0 0 var(--goa-space-m) 0;
10742
+ text-wrap: wrap;
10743
+ word-break: break-word;
10744
+ border: 1px solid var(--goa-color-greyscale-300);
10745
+ border-radius: var(--goa-border-radius-xl);
10746
+ padding: var(--goa-space-l);
10743
10747
  `));
10744
10748
  const TextWrap = styled.p(_t3 || (_t3 = _$1`
10745
10749
  text-wrap: auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.23.0",
3
+ "version": "2.24.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",
@@ -11,7 +11,7 @@ export declare const RightAlignmentDiv: import("styled-components/dist/types").I
11
11
  export declare const FormStepperSummaryH3: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
12
12
  export declare const PageRenderPadding: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
13
  export declare const PageRenderPaddingBottom: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
14
- export declare const PageBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
14
+ export declare const PageBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
15
15
  export declare const TableReviewItemSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
16
16
  export declare const TableReviewItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
17
17
  export declare const TableReviewPageTitleRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -24,4 +24,5 @@ interface PageStepperRowProps {
24
24
  }
25
25
  export declare const PageStepperRow: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, PageStepperRowProps>> & string;
26
26
  export declare const SectionHeaderRowTr: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, never>> & string;
27
+ export declare const SummaryRowLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
27
28
  export {};