@abgov/jsonforms-components 1.48.1 → 1.49.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.css ADDED
@@ -0,0 +1,16 @@
1
+ /* This css file is here to override any parent/root css files
2
+ that add spacing, sizes, color that the help content uses
3
+ to display markdown content it uses.
4
+ */
5
+ li > ul,
6
+ li > ol,
7
+ li > ul,
8
+ li > ol {
9
+ padding-left: var(--goa-space-m) !important;
10
+ margin-top: initial;
11
+ }
12
+
13
+ em {
14
+ font-size: var(--goa-typography-body-s) !important;
15
+ color: var(--goa-color-text-default) !important;
16
+ }
package/index.esm.js CHANGED
@@ -8273,7 +8273,8 @@ const HelpContentComponent = _a => {
8273
8273
  if (helpText === undefined) return '';
8274
8274
  if (typeof helpText === 'string') return helpText;
8275
8275
  if (Array.isArray(helpText)) {
8276
- const data = helpText.join('\n');
8276
+ //Two spaces after the text inserts a line break in markdown.
8277
+ const data = helpText.join(' \n');
8277
8278
  return data;
8278
8279
  }
8279
8280
  return '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/jsonforms-components",
3
- "version": "1.48.1",
3
+ "version": "1.49.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",
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RankedTester } from '@jsonforms/core';
3
3
  import { ControlProps, ControlElement } from '@jsonforms/core';
4
+ import './HelpContent.css';
4
5
  interface OptionProps {
5
6
  ariaLabel?: string;
6
7
  help?: string | string[];