@sb1/ffe-core-react 10.0.3 → 10.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.
package/es/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export { BodyText } from './typography/BodyText';
1
2
  export { DividerLine } from './typography/DividerLine';
2
3
  export { EmphasizedText, } from './typography/EmphasizedText';
3
4
  export { Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, } from './typography/Heading';
@@ -1 +1 @@
1
- {"root":["../src/Wave.tsx","../src/index.ts","../src/typography/DividerLine.tsx","../src/typography/EmphasizedText.tsx","../src/typography/Heading.tsx","../src/typography/LinkIcon.tsx","../src/typography/LinkText.tsx","../src/typography/MicroText.tsx","../src/typography/Paragraph.tsx","../src/typography/PreformattedText.tsx","../src/typography/SmallText.tsx","../src/typography/StrongText.tsx","../src/typography/types.ts"],"version":"5.8.2"}
1
+ {"root":["../src/Wave.tsx","../src/index.ts","../src/typography/BodyText.tsx","../src/typography/DividerLine.tsx","../src/typography/EmphasizedText.tsx","../src/typography/Heading.tsx","../src/typography/LinkIcon.tsx","../src/typography/LinkText.tsx","../src/typography/MicroText.tsx","../src/typography/Paragraph.tsx","../src/typography/PreformattedText.tsx","../src/typography/SmallText.tsx","../src/typography/StrongText.tsx","../src/typography/types.ts"],"version":"5.8.3"}
@@ -0,0 +1,28 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import React from 'react';
24
+ import classNames from 'classnames';
25
+ export function BodyText(props) {
26
+ var _a = props.as, Comp = _a === void 0 ? 'div' : _a, className = props.className, rest = __rest(props, ["as", "className"]);
27
+ return (React.createElement(Comp, __assign({ className: classNames('ffe-body-text', className) }, rest)));
28
+ }
package/lib/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Wave = exports.StrongText = exports.SmallText = exports.PreformattedText = exports.Paragraph = exports.MicroText = exports.LinkIcon = exports.LinkText = exports.Heading6 = exports.Heading5 = exports.Heading4 = exports.Heading3 = exports.Heading2 = exports.Heading1 = exports.EmphasizedText = exports.DividerLine = void 0;
3
+ exports.Wave = exports.StrongText = exports.SmallText = exports.PreformattedText = exports.Paragraph = exports.MicroText = exports.LinkIcon = exports.LinkText = exports.Heading6 = exports.Heading5 = exports.Heading4 = exports.Heading3 = exports.Heading2 = exports.Heading1 = exports.EmphasizedText = exports.DividerLine = exports.BodyText = void 0;
4
+ var BodyText_1 = require("./typography/BodyText");
5
+ Object.defineProperty(exports, "BodyText", { enumerable: true, get: function () { return BodyText_1.BodyText; } });
4
6
  var DividerLine_1 = require("./typography/DividerLine");
5
7
  Object.defineProperty(exports, "DividerLine", { enumerable: true, get: function () { return DividerLine_1.DividerLine; } });
6
8
  var EmphasizedText_1 = require("./typography/EmphasizedText");
@@ -1 +1 @@
1
- {"root":["../src/Wave.tsx","../src/index.ts","../src/typography/DividerLine.tsx","../src/typography/EmphasizedText.tsx","../src/typography/Heading.tsx","../src/typography/LinkIcon.tsx","../src/typography/LinkText.tsx","../src/typography/MicroText.tsx","../src/typography/Paragraph.tsx","../src/typography/PreformattedText.tsx","../src/typography/SmallText.tsx","../src/typography/StrongText.tsx","../src/typography/types.ts"],"version":"5.8.2"}
1
+ {"root":["../src/Wave.tsx","../src/index.ts","../src/typography/BodyText.tsx","../src/typography/DividerLine.tsx","../src/typography/EmphasizedText.tsx","../src/typography/Heading.tsx","../src/typography/LinkIcon.tsx","../src/typography/LinkText.tsx","../src/typography/MicroText.tsx","../src/typography/Paragraph.tsx","../src/typography/PreformattedText.tsx","../src/typography/SmallText.tsx","../src/typography/StrongText.tsx","../src/typography/types.ts"],"version":"5.8.3"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.BodyText = BodyText;
29
+ var react_1 = __importDefault(require("react"));
30
+ var classnames_1 = __importDefault(require("classnames"));
31
+ function BodyText(props) {
32
+ var _a = props.as, Comp = _a === void 0 ? 'div' : _a, className = props.className, rest = __rest(props, ["as", "className"]);
33
+ return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-body-text', className) }, rest)));
34
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-core-react",
3
- "version": "10.0.3",
3
+ "version": "10.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": "^31.0.3",
32
+ "@sb1/ffe-core": "^31.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": "91a4853d0ff0b12af2b2dfbfc6ebeb7b2653a922"
47
+ "gitHead": "65737648422859ff0dd683e9f423794f0e595a64"
48
48
  }
package/types/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { BodyText, BodyTextProps } from './typography/BodyText';
1
2
  export { DividerLine, DividerLineProps } from './typography/DividerLine';
2
3
  export { EmphasizedText, EmphasizedTextProps, } from './typography/EmphasizedText';
3
4
  export { Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, HeadingProps, } from './typography/Heading';
@@ -1 +1 @@
1
- {"root":["../src/Wave.tsx","../src/index.ts","../src/typography/DividerLine.tsx","../src/typography/EmphasizedText.tsx","../src/typography/Heading.tsx","../src/typography/LinkIcon.tsx","../src/typography/LinkText.tsx","../src/typography/MicroText.tsx","../src/typography/Paragraph.tsx","../src/typography/PreformattedText.tsx","../src/typography/SmallText.tsx","../src/typography/StrongText.tsx","../src/typography/types.ts"],"version":"5.8.2"}
1
+ {"root":["../src/Wave.tsx","../src/index.ts","../src/typography/BodyText.tsx","../src/typography/DividerLine.tsx","../src/typography/EmphasizedText.tsx","../src/typography/Heading.tsx","../src/typography/LinkIcon.tsx","../src/typography/LinkText.tsx","../src/typography/MicroText.tsx","../src/typography/Paragraph.tsx","../src/typography/PreformattedText.tsx","../src/typography/SmallText.tsx","../src/typography/StrongText.tsx","../src/typography/types.ts"],"version":"5.8.3"}
@@ -0,0 +1,6 @@
1
+ import React, { ComponentProps, ElementType } from 'react';
2
+ import { DistributiveOmit } from './types';
3
+ export type BodyTextProps<As extends ElementType = 'div'> = {
4
+ as?: As;
5
+ } & DistributiveOmit<ComponentProps<ElementType extends As ? 'div' : As>, 'as' | 'ref'>;
6
+ export declare function BodyText<As extends ElementType>(props: BodyTextProps<As>): React.JSX.Element;