@abgov/jsonforms-components 2.67.11 → 2.67.12

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
@@ -8391,7 +8391,11 @@ const BooleanComponent = ({
8391
8391
  } else if (uischema != null && uischema.label) {
8392
8392
  label = uischema == null ? void 0 : uischema.label;
8393
8393
  }
8394
- return `${label}${required ? ' (required)' : ''}`;
8394
+ return jsxs(Fragment, {
8395
+ children: [label, required ? jsx(RequiredTextLabel, {
8396
+ children: " (required) "
8397
+ }) : '']
8398
+ });
8395
8399
  };
8396
8400
  const text = getRequiredLabelText();
8397
8401
  return jsx(CheckboxWrapper, {
@@ -8399,14 +8403,14 @@ const BooleanComponent = ({
8399
8403
  error: isVisited && errors.length > 0,
8400
8404
  testId: `${path}-checkbox-test-id`,
8401
8405
  disabled: !enabled,
8402
- text: text && text !== 'undefined' ? text : convertToReadableFormat(getLastSegmentFromPointer(uischema.scope)),
8403
8406
  name: `${path}`,
8404
8407
  checked: data,
8405
8408
  onChange: detail => {
8406
8409
  handleChange(path, detail.checked);
8407
8410
  }
8408
8411
  }, uischema == null || (_uischema$options3 = uischema.options) == null ? void 0 : _uischema$options3.componentProps, {
8409
- mb: "none"
8412
+ mb: "none",
8413
+ children: text && text !== undefined ? text : convertToReadableFormat(getLastSegmentFromPointer(uischema.scope))
8410
8414
  }))
8411
8415
  });
8412
8416
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "2.67.11",
3
+ "version": "2.67.12",
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-07-02T19:17:04.524Z",
4
- "sourceCommit": "18495db10171285bae1e0f9930940e57cdfdd0f7",
3
+ "generatedAt": "2026-07-02T19:40:00.849Z",
4
+ "sourceCommit": "9a25ace569731b5d27d06b04612ba2368fc791dd",
5
5
  "sourcePath": "libs/jsonforms-components/src/index.ts",
6
6
  "rendererCount": 33,
7
7
  "renderers": [
@@ -1,6 +1,7 @@
1
1
  import { RankedTester, ControlProps } from '@jsonforms/core';
2
2
  import { WithInputProps } from './type';
3
+ import React from 'react';
3
4
  export declare const BooleanComponent: ({ data, enabled, uischema, handleChange, path, label, required, errors, schema, isVisited, }: ControlProps & WithInputProps) => import("react/jsx-runtime").JSX.Element;
4
5
  export declare const BooleanControl: (props: ControlProps) => import("react/jsx-runtime").JSX.Element;
5
6
  export declare const GoABooleanControlTester: RankedTester;
6
- export declare const GoABooleanControl: import("react").ComponentType<import("@jsonforms/core").OwnPropsOfControl>;
7
+ export declare const GoABooleanControl: React.ComponentType<import("@jsonforms/core").OwnPropsOfControl>;