@abgov/jsonforms-components 1.43.11 → 1.44.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 +6 -6
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -7557,12 +7557,10 @@ const SearchBox = styled.div(_t$1 || (_t$1 = _$1`
7557
7557
  background: var(--color-white);
7558
7558
  box-shadow: 0 8px 8px rgb(0 0 0 / 20%), 0 4px 4px rgb(0 0 0 / 10%);
7559
7559
  z-index: 99;
7560
- padding-left: 0px;
7561
-
7562
7560
  overflow: hidden auto;
7563
7561
  }
7564
7562
  .suggestions li {
7565
- padding: var(--goa-space-2xs);
7563
+ padding: var(--goa-space-xs) var(--goa-space-2xs) var(--goa-space-xs) 2px;
7566
7564
  color: var(--color-gray-900);
7567
7565
  }
7568
7566
  .suggestion-active,
@@ -8049,7 +8047,7 @@ const AddressLookUpControl = props => {
8049
8047
  const formUrl = `${formHost}/${ADDRESS_PATH}`;
8050
8048
  const autocompletion = ((_c = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _c === void 0 ? void 0 : _c.autocomplete) !== false;
8051
8049
  const [open, setOpen] = useState(false);
8052
- const label = typeof (uischema === null || uischema === void 0 ? void 0 : uischema.label) === 'string' && uischema.label ? uischema.label : schema === null || schema === void 0 ? void 0 : schema.title;
8050
+ const label = typeof (uischema === null || uischema === void 0 ? void 0 : uischema.label) === 'string' && uischema.label ? uischema.label : '';
8053
8051
  const defaultAddress = {
8054
8052
  addressLine1: '',
8055
8053
  addressLine2: '',
@@ -8169,8 +8167,10 @@ const AddressLookUpControl = props => {
8169
8167
  };
8170
8168
  const readOnly = (_f = (_e = (_d = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _d === void 0 ? void 0 : _d.componentProps) === null || _e === void 0 ? void 0 : _e.readOnly) !== null && _f !== void 0 ? _f : false;
8171
8169
  return jsxs("div", {
8172
- children: [renderHelp(), jsx(GoAFormItem, {
8173
- label: label,
8170
+ children: [renderHelp(), jsx("h3", {
8171
+ children: label
8172
+ }), jsx(GoAFormItem, {
8173
+ label: 'Street address or P.O. box',
8174
8174
  error: (_g = errors === null || errors === void 0 ? void 0 : errors['addressLine1']) !== null && _g !== void 0 ? _g : '',
8175
8175
  "data-testId": "form-address-line1",
8176
8176
  children: jsxs(SearchBox, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.43.11",
3
+ "version": "1.44.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",