@abgov/jsonforms-components 2.67.8 → 2.67.9

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
@@ -4312,7 +4312,7 @@ styled.div(_t$c || (_t$c = _$b`
4312
4312
  const Visible = styled.div(_t2$6 || (_t2$6 = _$b`
4313
4313
  display: ${0};
4314
4314
  width: 100%;
4315
- `), p => p.visible ? 'block' : 'none');
4315
+ `), p => p.$visible !== false ? 'block' : 'none');
4316
4316
 
4317
4317
  var uncurryThis$i = functionUncurryThis;
4318
4318
 
@@ -7129,7 +7129,7 @@ const GoAInputBaseControl = props => {
7129
7129
  return jsx(JsonFormRegisterProvider, {
7130
7130
  defaultRegisters: undefined,
7131
7131
  children: jsx(Visible, {
7132
- visible: visible,
7132
+ "$visible": visible,
7133
7133
  children: jsx(FormFieldWrapper$1, {
7134
7134
  ref: controlRef,
7135
7135
  className: "jsonforms-elements-wrapper",
@@ -8179,7 +8179,7 @@ const GoACalloutController = props => {
8179
8179
  }
8180
8180
  const calloutProps = (uischema == null || (_uischema$options = uischema.options) == null ? void 0 : _uischema$options.componentProps) || {};
8181
8181
  return jsx(Visible, {
8182
- visible: showCallout,
8182
+ "$visible": showCallout,
8183
8183
  children: callout(calloutProps)
8184
8184
  });
8185
8185
  };
@@ -10216,7 +10216,7 @@ class ListWithDetailControl extends React.Component {
10216
10216
  this.state.currentListPage === 0 && data === 0;
10217
10217
  const editMode = this.state.currentListPage !== 0 && !withLeftTab;
10218
10218
  return jsxs(Visible, {
10219
- visible: visible,
10219
+ "$visible": visible,
10220
10220
  "data-testid": "jsonforms-object-list-wrapper",
10221
10221
  children: [jsxs(ToolBarHeader, {
10222
10222
  children: [listTitle && jsx(MarginTop, {
@@ -10713,7 +10713,7 @@ const GoAEmailInput = props => {
10713
10713
  // eslint-disable-next-line react-hooks/exhaustive-deps
10714
10714
  }, [schema.default, data]);
10715
10715
  return jsx(Visible, {
10716
- visible: visible,
10716
+ "$visible": visible,
10717
10717
  children: jsx(JsonFormRegisterProvider, {
10718
10718
  defaultRegisters: undefined,
10719
10719
  children: jsx(FormFieldWrapper$1, {
@@ -10794,7 +10794,7 @@ const LayoutRenderer = ({
10794
10794
  } else {
10795
10795
  if (direction === 'row') {
10796
10796
  return jsx(Visible, {
10797
- visible: visible,
10797
+ "$visible": visible,
10798
10798
  children: jsx(GoabGrid, {
10799
10799
  minChildWidth: width || '10ch',
10800
10800
  children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
@@ -10802,7 +10802,7 @@ const LayoutRenderer = ({
10802
10802
  });
10803
10803
  } else {
10804
10804
  return jsx(Visible, {
10805
- visible: visible,
10805
+ "$visible": visible,
10806
10806
  children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
10807
10807
  });
10808
10808
  }
@@ -10824,14 +10824,14 @@ const ReviewLayoutRenderer = ({
10824
10824
  } else {
10825
10825
  if (direction === 'row') {
10826
10826
  return jsx(Visible, {
10827
- visible: visible,
10827
+ "$visible": visible,
10828
10828
  children: jsx(ReviewGrid, {
10829
10829
  children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
10830
10830
  })
10831
10831
  });
10832
10832
  } else {
10833
10833
  return jsx(Visible, {
10834
- visible: visible,
10834
+ "$visible": visible,
10835
10835
  children: renderLayoutElements(elements, schema, path, enabled, renderers, cells)
10836
10836
  });
10837
10837
  }
@@ -11220,7 +11220,7 @@ const RenderStepElements = props => {
11220
11220
  var _props$category;
11221
11221
  const memoizedSchema = useMemo(() => Object.assign({}, props.schema), [props.schema]);
11222
11222
  return jsx(Visible, {
11223
- visible: props.visible,
11223
+ "$visible": props.visible,
11224
11224
  "data-testid": `${(props == null ? void 0 : props.path) || ((_props$category = props.category) == null ? void 0 : _props$category.label)}-categories-${props.categoryIndex}`,
11225
11225
  children: props.category.elements.map((uiSchema, index) => {
11226
11226
  var _props$category2;
@@ -11423,7 +11423,7 @@ const PhoneNumberWithTypeControl = props => {
11423
11423
  handleChange(path, updated);
11424
11424
  };
11425
11425
  return jsx(Visible, {
11426
- visible: visible,
11426
+ "$visible": visible,
11427
11427
  children: jsxs(PhoneGrid, {
11428
11428
  children: [jsx(GoabFormItem, {
11429
11429
  label: "Phone type",
@@ -11481,7 +11481,7 @@ const PhoneNumberControl = props => {
11481
11481
  handleChange(path, value);
11482
11482
  };
11483
11483
  return jsx(Visible, {
11484
- visible: visible,
11484
+ "$visible": visible,
11485
11485
  children: jsx(GoabFormItem, {
11486
11486
  label: (schema == null ? void 0 : schema.title) || 'Phone number',
11487
11487
  requirement: required ? 'required' : undefined,
@@ -12749,7 +12749,7 @@ const ObjectArrayControl = props => {
12749
12749
  });
12750
12750
  }
12751
12751
  const content = jsxs(Visible, {
12752
- visible: visible,
12752
+ "$visible": visible,
12753
12753
  "data-testid": "jsonforms-object-list-wrapper",
12754
12754
  children: [jsxs(ToolBarHeader, {
12755
12755
  children: [listTitle && jsxs(ObjectArrayTitle, {
@@ -12805,7 +12805,7 @@ const ArrayControl = props => {
12805
12805
  handleChange
12806
12806
  } = props;
12807
12807
  return jsx(Visible, {
12808
- visible: visible,
12808
+ "$visible": visible,
12809
12809
  children: jsx(ObjectArrayControl, Object.assign({}, props, {
12810
12810
  handleChange: handleChange
12811
12811
  }))
@@ -12818,7 +12818,7 @@ const ArrayControlBase = props => {
12818
12818
  visible
12819
12819
  } = props;
12820
12820
  return jsx(Visible, {
12821
- visible: visible,
12821
+ "$visible": visible,
12822
12822
  children: jsx(ArrayControl, Object.assign({
12823
12823
  arraySchema: {}
12824
12824
  }, props, {
@@ -12908,7 +12908,7 @@ const PrimitiveArrayControl = props => {
12908
12908
  if (options.format === 'checkboxes') {
12909
12909
  const checkboxOptions = getPrimitiveArrayOptions(schema);
12910
12910
  return jsxs(Visible, {
12911
- visible: visible,
12911
+ "$visible": visible,
12912
12912
  children: [jsx("h4", {
12913
12913
  children: prettyLabel
12914
12914
  }), jsx("div", {
@@ -12942,7 +12942,7 @@ const PrimitiveArrayControl = props => {
12942
12942
  });
12943
12943
  }
12944
12944
  return jsxs(Visible, {
12945
- visible: visible,
12945
+ "$visible": visible,
12946
12946
  children: [jsx("div", {
12947
12947
  style: {
12948
12948
  marginBottom: '8px'
@@ -13085,7 +13085,7 @@ const ListWithDetailsControl = props => {
13085
13085
  // eslint-disable-next-line
13086
13086
  }, [core == null ? void 0 : core.data, deleteTrigger, fileList, handleChange, path, props.data, props.schema, removeItems, rowData]);
13087
13087
  return jsxs(Visible, {
13088
- visible: visible,
13088
+ "$visible": visible,
13089
13089
  children: [jsx(ListWithDetailControl, Object.assign({}, props, {
13090
13090
  openDeleteDialog: openDeleteDialog,
13091
13091
  enabled: props.enabled,
@@ -13509,7 +13509,7 @@ const GoAGroupControlComponent = props => {
13509
13509
  const componentProps = (_group$options = group.options) == null ? void 0 : _group$options.componentProps;
13510
13510
  const accent = componentProps == null ? void 0 : componentProps.accent;
13511
13511
  return jsxs(Visible, {
13512
- visible: visible,
13512
+ "$visible": visible,
13513
13513
  children: [accent === 'thick' && jsx(GoabContainer, Object.assign({
13514
13514
  heading: group.label
13515
13515
  }, componentProps, {
@@ -13846,7 +13846,7 @@ const HelpContentComponent = _ref2 => {
13846
13846
  if (markdown && ((_uischema$options7 = uischema.options) == null ? void 0 : _uischema$options7.variant) === 'details') {
13847
13847
  var _uischema$options8, _uischema$options9, _uischema$elements;
13848
13848
  return jsx(Visible, {
13849
- visible: visible,
13849
+ "$visible": visible,
13850
13850
  children: jsx(HelpContentDiv, {
13851
13851
  "aria-label": (_uischema$options8 = uischema.options) == null ? void 0 : _uischema$options8.ariaLabel,
13852
13852
  children: jsx("div", {
@@ -13871,7 +13871,7 @@ const HelpContentComponent = _ref2 => {
13871
13871
  if (markdown) {
13872
13872
  var _uischema$options0;
13873
13873
  return jsx(Visible, {
13874
- visible: visible,
13874
+ "$visible": visible,
13875
13875
  children: jsx("div", {
13876
13876
  className: "help-content-markdown",
13877
13877
  children: MarkdownComponent({
@@ -13881,7 +13881,7 @@ const HelpContentComponent = _ref2 => {
13881
13881
  });
13882
13882
  }
13883
13883
  return jsx(Visible, {
13884
- visible: visible,
13884
+ "$visible": visible,
13885
13885
  children: jsx(HelpContentDiv, {
13886
13886
  "aria-label": (_uischema$options1 = uischema.options) == null ? void 0 : _uischema$options1.ariaLabel,
13887
13887
  children: jsxs("div", {
@@ -14305,7 +14305,7 @@ const FormStepperView = props => {
14305
14305
  return jsxs("div", {
14306
14306
  "data-testid": "form-stepper-test-wrapper",
14307
14307
  children: [jsx(Visible, {
14308
- visible: visible,
14308
+ "$visible": visible,
14309
14309
  children: jsxs("div", {
14310
14310
  id: `${path || `goa`}-form-stepper`,
14311
14311
  className: "formStepper",
@@ -14871,7 +14871,7 @@ const RenderPages = props => {
14871
14871
  "data-testid": "form-stepper-test-wrapper",
14872
14872
  ref: topElementRef,
14873
14873
  children: [jsx(Visible, {
14874
- visible: visible,
14874
+ "$visible": visible,
14875
14875
  children: jsx("div", {
14876
14876
  id: `${path || `goa`}-form-pages`,
14877
14877
  children: jsxs(PageBorder, {
@@ -14884,7 +14884,7 @@ const RenderPages = props => {
14884
14884
  },
14885
14885
  testId: "back-to-tasks"
14886
14886
  }), !isOnReview && jsx(Visible, {
14887
- visible: true,
14887
+ "$visible": true,
14888
14888
  children: jsxs("div", {
14889
14889
  "data-testid": `step_${activeId}-content-pages`,
14890
14890
  style: {
@@ -15298,7 +15298,7 @@ const FileUploader = _ref => {
15298
15298
  });
15299
15299
  };
15300
15300
  return jsx(Visible, {
15301
- visible: visible,
15301
+ "$visible": visible,
15302
15302
  children: jsxs(FileUploaderStyle, {
15303
15303
  className: "FileUploader",
15304
15304
  children: [jsx(GoabFormItem, {
@@ -17802,7 +17802,7 @@ const AddressLookUpControl = props => {
17802
17802
  }, [formStepperCtx, uischema == null ? void 0 : uischema.scope]);
17803
17803
  const readOnly = (_uischema$options$com = uischema == null || (_uischema$options2 = uischema.options) == null || (_uischema$options2 = _uischema$options2.componentProps) == null ? void 0 : _uischema$options2.readOnly) != null ? _uischema$options$com : false;
17804
17804
  return jsx(Visible, {
17805
- visible: visible,
17805
+ "$visible": visible,
17806
17806
  children: jsxs("div", {
17807
17807
  ref: addressContainerRef,
17808
17808
  children: [renderHelp(), jsx("h3", {
@@ -18123,7 +18123,7 @@ const FullNameControl = props => {
18123
18123
  }
18124
18124
  }, [stepperState == null ? void 0 : stepperState.targetScope, uischema.scope]);
18125
18125
  return jsx(Visible, {
18126
- visible: visible,
18126
+ "$visible": visible,
18127
18127
  children: jsx("div", {
18128
18128
  ref: controlRef,
18129
18129
  children: jsx(NameInputs, {
@@ -18272,7 +18272,7 @@ const FullNameDobControl = props => {
18272
18272
  }
18273
18273
  }, [stepperState == null ? void 0 : stepperState.targetScope, uischema.scope]);
18274
18274
  return jsx(Visible, {
18275
- visible: visible,
18275
+ "$visible": visible,
18276
18276
  children: jsxs("div", {
18277
18277
  ref: controlRef,
18278
18278
  children: [jsx(NameInputs, {
@@ -18555,7 +18555,7 @@ const GoACalculation = props => {
18555
18555
  const isConfigError = !!error && (error.toLowerCase().includes('invalid scope') || error.toLowerCase().includes('expression syntax'));
18556
18556
  const showError = !!error && (isConfigError || hasInteracted);
18557
18557
  return jsx(Visible, {
18558
- visible: visible,
18558
+ "$visible": visible,
18559
18559
  children: jsx(GoabFormItem, {
18560
18560
  label: label,
18561
18561
  error: showError ? error : '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.67.8",
3
+ "version": "2.67.9",
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",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "1.0.0",
3
- "generatedAt": "2026-06-25T21:22:05.583Z",
4
- "sourceCommit": "a25b638498bc63728b41889ca6e86a9972cfde8a",
3
+ "generatedAt": "2026-06-29T16:46:14.758Z",
4
+ "sourceCommit": "93bf60904fe3b0d817567ca58221da220d84e60f",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 33,
7
7
  "renderers": [
@@ -1,6 +1,6 @@
1
1
  export declare const VerticalLayout: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never> & Partial<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>> & string;
2
- export declare const Visible: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "visible"> & {
3
- visible: boolean | undefined;
4
- }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "visible"> & {
5
- visible: boolean | undefined;
2
+ export declare const Visible: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$visible"> & {
3
+ $visible?: boolean;
4
+ }, never> & Partial<Pick<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "$visible"> & {
5
+ $visible?: boolean;
6
6
  }, never>>> & string;