@sb1/ffe-core-react 9.0.7 → 9.1.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.
@@ -23,11 +23,11 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import React from 'react';
24
24
  import classNames from 'classnames';
25
25
  export function Paragraph(props) {
26
- var children = props.children, className = props.className, lead = props.lead, subLead = props.subLead, textCenter = props.textCenter, textLeft = props.textLeft, rest = __rest(props, ["children", "className", "lead", "subLead", "textCenter", "textLeft"]);
26
+ var children = props.children, className = props.className, lead = props.lead, subLead = props.subLead, textCenter = props.textCenter, textLeft = props.textLeft, noMargin = props.noMargin, rest = __rest(props, ["children", "className", "lead", "subLead", "textCenter", "textLeft", "noMargin"]);
27
27
  var mainClass = [
28
28
  lead && 'ffe-lead-paragraph',
29
29
  subLead && 'ffe-sub-lead-paragraph',
30
30
  'ffe-body-paragraph',
31
31
  ].filter(Boolean)[0];
32
- return (React.createElement("p", __assign({ className: classNames(mainClass, { 'ffe-body-paragraph--text-center': textCenter }, { 'ffe-body-paragraph--text-left': textLeft }, className) }, rest), children));
32
+ return (React.createElement("p", __assign({ className: classNames(mainClass, { 'ffe-body-paragraph--text-center': textCenter }, { 'ffe-body-paragraph--text-left': textLeft }, { 'ffe-body-paragraph--no-margin': noMargin }, className) }, rest), children));
33
33
  }
@@ -29,11 +29,11 @@ exports.Paragraph = Paragraph;
29
29
  var react_1 = __importDefault(require("react"));
30
30
  var classnames_1 = __importDefault(require("classnames"));
31
31
  function Paragraph(props) {
32
- var children = props.children, className = props.className, lead = props.lead, subLead = props.subLead, textCenter = props.textCenter, textLeft = props.textLeft, rest = __rest(props, ["children", "className", "lead", "subLead", "textCenter", "textLeft"]);
32
+ var children = props.children, className = props.className, lead = props.lead, subLead = props.subLead, textCenter = props.textCenter, textLeft = props.textLeft, noMargin = props.noMargin, rest = __rest(props, ["children", "className", "lead", "subLead", "textCenter", "textLeft", "noMargin"]);
33
33
  var mainClass = [
34
34
  lead && 'ffe-lead-paragraph',
35
35
  subLead && 'ffe-sub-lead-paragraph',
36
36
  'ffe-body-paragraph',
37
37
  ].filter(Boolean)[0];
38
- return (react_1.default.createElement("p", __assign({ className: (0, classnames_1.default)(mainClass, { 'ffe-body-paragraph--text-center': textCenter }, { 'ffe-body-paragraph--text-left': textLeft }, className) }, rest), children));
38
+ return (react_1.default.createElement("p", __assign({ className: (0, classnames_1.default)(mainClass, { 'ffe-body-paragraph--text-center': textCenter }, { 'ffe-body-paragraph--text-left': textLeft }, { 'ffe-body-paragraph--no-margin': noMargin }, className) }, rest), children));
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-core-react",
3
- "version": "9.0.7",
3
+ "version": "9.1.0",
4
4
  "description": "React components for ffe-core components",
5
5
  "keywords": [
6
6
  "ffe"
@@ -29,7 +29,7 @@
29
29
  "test:watch": "ffe-buildtool jest --watch"
30
30
  },
31
31
  "dependencies": {
32
- "@sb1/ffe-core": "^29.0.0",
32
+ "@sb1/ffe-core": "^29.1.0",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
35
  "devDependencies": {
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "98d33cf2e867ce718139edf1adf97336b8da6b68"
47
+ "gitHead": "ff16d78f24c2bf9dd5b7da1cf33a52e09ea3a523"
48
48
  }
@@ -8,5 +8,7 @@ export interface ParagraphProps extends ComponentPropsWithoutRef<'p'> {
8
8
  textCenter?: boolean;
9
9
  /** Use if text alignment should override that of its container. */
10
10
  textLeft?: boolean;
11
+ /** Use if the paragraph should have no margin. */
12
+ noMargin?: boolean;
11
13
  }
12
14
  export declare function Paragraph(props: ParagraphProps): React.JSX.Element;