@sb1/ffe-core-react 100.12.4 → 101.0.1

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/Wave.js CHANGED
@@ -1,43 +1,19 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
3
  /**
26
4
  * @deprecated Use the Wave component in `ffe-shapes-react` instead.
27
5
  */
28
- export function Wave(_a) {
29
- var _b, _c;
30
- var position = _a.position, flip = _a.flip, color = _a.color, darkmodeColor = _a.darkmodeColor, bgColor = _a.bgColor, bgDarkmodeColor = _a.bgDarkmodeColor, children = _a.children, className = _a.className, rest = __rest(_a, ["position", "flip", "color", "darkmodeColor", "bgColor", "bgDarkmodeColor", "children", "className"]);
31
- return (React.createElement("div", { className: classNames('ffe-wave', className, (_b = {},
32
- _b["ffe-wave--bg-".concat(bgColor)] = bgColor,
33
- _b["ffe-wave--dm-bg-".concat(bgDarkmodeColor)] = bgDarkmodeColor,
34
- _b)) },
6
+ export function Wave({ position, flip, color, darkmodeColor, bgColor, bgDarkmodeColor, children, className, ...rest }) {
7
+ return (React.createElement("div", { className: classNames('ffe-wave', className, {
8
+ [`ffe-wave--bg-${bgColor}`]: bgColor,
9
+ [`ffe-wave--dm-bg-${bgDarkmodeColor}`]: bgDarkmodeColor,
10
+ }) },
35
11
  children ? (React.createElement("div", { className: "ffe-wave__content" }, children)) : null,
36
- React.createElement("div", __assign({ className: classNames('ffe-wave__wave', "ffe-wave--bg-".concat(color), (_c = {},
37
- _c["ffe-wave--dm-bg-".concat(darkmodeColor)] = darkmodeColor,
38
- _c['ffe-wave__wave--flip'] = flip,
39
- _c)), "aria-hidden": "true", style: {
12
+ React.createElement("div", { className: classNames('ffe-wave__wave', `ffe-wave--bg-${color}`, {
13
+ [`ffe-wave--dm-bg-${darkmodeColor}`]: darkmodeColor,
14
+ 'ffe-wave__wave--flip': flip,
15
+ }), "aria-hidden": "true", style: {
40
16
  maskPosition: position,
41
17
  WebkitMaskPosition: position,
42
- } }, rest))));
18
+ }, ...rest })));
43
19
  }
@@ -1,28 +1,6 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
3
  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)));
4
+ const { as: Comp = 'div', className, ...rest } = props;
5
+ return (React.createElement(Comp, { className: classNames('ffe-body-text', className), ...rest }));
28
6
  }
@@ -1,28 +1,5 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
- export function DividerLine(_a) {
26
- var className = _a.className, rest = __rest(_a, ["className"]);
27
- return (React.createElement("hr", __assign({ className: classNames('ffe-divider-line', className), "aria-hidden": "true", role: "presentation" }, rest)));
3
+ export function DividerLine({ className, ...rest }) {
4
+ return (React.createElement("hr", { className: classNames('ffe-divider-line', className), "aria-hidden": "true", role: "presentation", ...rest }));
28
5
  }
@@ -1,28 +1,5 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
- export function EmphasizedText(_a) {
26
- var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
27
- return (React.createElement("em", __assign({ className: classNames('ffe-em-text', className) }, rest), children));
3
+ export function EmphasizedText({ children, className, ...rest }) {
4
+ return (React.createElement("em", { className: classNames('ffe-em-text', className), ...rest }, children));
28
5
  }
@@ -1,36 +1,16 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
- var Heading = React.forwardRef(function (_a, ref) {
26
- var _b, _c, _d, _e, _f;
27
- var children = _a.children, className = _a.className, error = _a.error, inline = _a.inline, noMargin = _a.noMargin, withBorder = _a.withBorder, lookLike = _a.lookLike, textCenter = _a.textCenter, level = _a.level, rest = __rest(_a, ["children", "className", "error", "inline", "noMargin", "withBorder", "lookLike", "textCenter", "level"]);
28
- var headingClass = "ffe-h".concat(lookLike ? lookLike : level);
29
- return React.createElement("h".concat(level), __assign(__assign({}, rest), { ref: ref, className: classNames(headingClass, (_b = {}, _b["".concat(headingClass, "--error")] = error, _b), (_c = {}, _c["".concat(headingClass, "--inline")] = inline, _c), (_d = {}, _d["".concat(headingClass, "--no-margin")] = noMargin, _d), (_e = {}, _e["".concat(headingClass, "--with-border")] = withBorder, _e), (_f = {}, _f["".concat(headingClass, "--text-center")] = textCenter, _f), className) }), children);
3
+ const Heading = React.forwardRef(({ children, className, error, inline, noMargin, withBorder, lookLike, textCenter, level, ...rest }, ref) => {
4
+ const headingClass = `ffe-h${lookLike ? lookLike : level}`;
5
+ return React.createElement(`h${level}`, {
6
+ ...rest,
7
+ ref,
8
+ className: classNames(headingClass, { [`${headingClass}--error`]: error }, { [`${headingClass}--inline`]: inline }, { [`${headingClass}--no-margin`]: noMargin }, { [`${headingClass}--with-border`]: withBorder }, { [`${headingClass}--text-center`]: textCenter }, className),
9
+ }, children);
30
10
  });
31
- export var Heading1 = React.forwardRef(function (props, ref) { return React.createElement(Heading, __assign({}, props, { ref: ref, level: 1 })); });
32
- export var Heading2 = React.forwardRef(function (props, ref) { return React.createElement(Heading, __assign({}, props, { ref: ref, level: 2 })); });
33
- export var Heading3 = React.forwardRef(function (props, ref) { return React.createElement(Heading, __assign({}, props, { ref: ref, level: 3 })); });
34
- export var Heading4 = React.forwardRef(function (props, ref) { return React.createElement(Heading, __assign({}, props, { ref: ref, level: 4 })); });
35
- export var Heading5 = React.forwardRef(function (props, ref) { return React.createElement(Heading, __assign({}, props, { ref: ref, level: 5 })); });
36
- export var Heading6 = React.forwardRef(function (props, ref) { return React.createElement(Heading, __assign({}, props, { ref: ref, level: 6 })); });
11
+ export const Heading1 = React.forwardRef((props, ref) => React.createElement(Heading, { ...props, ref: ref, level: 1 }));
12
+ export const Heading2 = React.forwardRef((props, ref) => React.createElement(Heading, { ...props, ref: ref, level: 2 }));
13
+ export const Heading3 = React.forwardRef((props, ref) => React.createElement(Heading, { ...props, ref: ref, level: 3 }));
14
+ export const Heading4 = React.forwardRef((props, ref) => React.createElement(Heading, { ...props, ref: ref, level: 4 }));
15
+ export const Heading5 = React.forwardRef((props, ref) => React.createElement(Heading, { ...props, ref: ref, level: 5 }));
16
+ export const Heading6 = React.forwardRef((props, ref) => React.createElement(Heading, { ...props, ref: ref, level: 6 }));
@@ -1,28 +1,6 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
3
  export function LinkIcon(props) {
26
- var _a = props.as, Comp = _a === void 0 ? 'a' : _a, className = props.className, rest = __rest(props, ["as", "className"]);
27
- return (React.createElement(Comp, __assign({ className: classNames('ffe-link-icon', className) }, rest)));
4
+ const { as: Comp = 'a', className, ...rest } = props;
5
+ return (React.createElement(Comp, { className: classNames('ffe-link-icon', className), ...rest }));
28
6
  }
@@ -1,28 +1,6 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
3
  export function LinkText(props) {
26
- var _a = props.as, Comp = _a === void 0 ? 'a' : _a, className = props.className, _b = props.underline, underline = _b === void 0 ? true : _b, rest = __rest(props, ["as", "className", "underline"]);
27
- return (React.createElement(Comp, __assign({ className: classNames('ffe-link-text', { 'ffe-link-text--no-underline': !underline }, className) }, rest)));
4
+ const { as: Comp = 'a', className, underline = true, ...rest } = props;
5
+ return (React.createElement(Comp, { className: classNames('ffe-link-text', { 'ffe-link-text--no-underline': !underline }, className), ...rest }));
28
6
  }
@@ -1,28 +1,6 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
3
  export function MicroText(props) {
26
- var _a = props.as, Comp = _a === void 0 ? 'span' : _a, _b = props.strong, strong = _b === void 0 ? false : _b, className = props.className, rest = __rest(props, ["as", "strong", "className"]);
27
- return (React.createElement(Comp, __assign({ className: classNames('ffe-micro-text', { 'ffe-micro-text--strong': strong }, className) }, rest)));
4
+ const { as: Comp = 'span', strong = false, className, ...rest } = props;
5
+ return (React.createElement(Comp, { className: classNames('ffe-micro-text', { 'ffe-micro-text--strong': strong }, className), ...rest }));
28
6
  }
@@ -1,33 +1,11 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
3
  export function Paragraph(props) {
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
- var mainClass = [
4
+ const { children, className, lead, subLead, textCenter, textLeft, noMargin, ...rest } = props;
5
+ const [mainClass] = [
28
6
  lead && 'ffe-lead-paragraph',
29
7
  subLead && 'ffe-sub-lead-paragraph',
30
8
  'ffe-body-paragraph',
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 }, { 'ffe-body-paragraph--no-margin': noMargin }, className) }, rest), children));
9
+ ].filter(Boolean);
10
+ return (React.createElement("p", { 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
11
  }
@@ -1,28 +1,6 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
3
  export function PreformattedText(props) {
26
- var children = props.children, className = props.className, rest = __rest(props, ["children", "className"]);
27
- return (React.createElement("pre", __assign({ className: classNames('ffe-pre-text', className) }, rest), children));
4
+ const { children, className, ...rest } = props;
5
+ return (React.createElement("pre", { className: classNames('ffe-pre-text', className), ...rest }, children));
28
6
  }
@@ -1,28 +1,6 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
3
  export function SmallText(props) {
26
- var _a = props.as, Comp = _a === void 0 ? 'span' : _a, className = props.className, _b = props.underline, underline = _b === void 0 ? false : _b, rest = __rest(props, ["as", "className", "underline"]);
27
- return (React.createElement(Comp, __assign({ className: classNames('ffe-small-text', { 'ffe-small-text--underline': underline }, className) }, rest)));
4
+ const { as: Comp = 'span', className, underline = false, ...rest } = props;
5
+ return (React.createElement(Comp, { className: classNames('ffe-small-text', { 'ffe-small-text--underline': underline }, className), ...rest }));
28
6
  }
@@ -1,28 +1,6 @@
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
1
  import React from 'react';
24
2
  import classNames from 'classnames';
25
3
  export function StrongText(props) {
26
- var className = props.className, rest = __rest(props, ["className"]);
27
- return (React.createElement("strong", __assign({ className: classNames('ffe-strong-text', className) }, rest)));
4
+ const { className, ...rest } = props;
5
+ return (React.createElement("strong", { className: classNames('ffe-strong-text', className), ...rest }));
28
6
  }
package/lib/Wave.js CHANGED
@@ -1,49 +1,25 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.Wave = Wave;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
31
9
  /**
32
10
  * @deprecated Use the Wave component in `ffe-shapes-react` instead.
33
11
  */
34
- function Wave(_a) {
35
- var _b, _c;
36
- var position = _a.position, flip = _a.flip, color = _a.color, darkmodeColor = _a.darkmodeColor, bgColor = _a.bgColor, bgDarkmodeColor = _a.bgDarkmodeColor, children = _a.children, className = _a.className, rest = __rest(_a, ["position", "flip", "color", "darkmodeColor", "bgColor", "bgDarkmodeColor", "children", "className"]);
37
- return (react_1.default.createElement("div", { className: (0, classnames_1.default)('ffe-wave', className, (_b = {},
38
- _b["ffe-wave--bg-".concat(bgColor)] = bgColor,
39
- _b["ffe-wave--dm-bg-".concat(bgDarkmodeColor)] = bgDarkmodeColor,
40
- _b)) },
12
+ function Wave({ position, flip, color, darkmodeColor, bgColor, bgDarkmodeColor, children, className, ...rest }) {
13
+ return (react_1.default.createElement("div", { className: (0, classnames_1.default)('ffe-wave', className, {
14
+ [`ffe-wave--bg-${bgColor}`]: bgColor,
15
+ [`ffe-wave--dm-bg-${bgDarkmodeColor}`]: bgDarkmodeColor,
16
+ }) },
41
17
  children ? (react_1.default.createElement("div", { className: "ffe-wave__content" }, children)) : null,
42
- react_1.default.createElement("div", __assign({ className: (0, classnames_1.default)('ffe-wave__wave', "ffe-wave--bg-".concat(color), (_c = {},
43
- _c["ffe-wave--dm-bg-".concat(darkmodeColor)] = darkmodeColor,
44
- _c['ffe-wave__wave--flip'] = flip,
45
- _c)), "aria-hidden": "true", style: {
18
+ react_1.default.createElement("div", { className: (0, classnames_1.default)('ffe-wave__wave', `ffe-wave--bg-${color}`, {
19
+ [`ffe-wave--dm-bg-${darkmodeColor}`]: darkmodeColor,
20
+ 'ffe-wave__wave--flip': flip,
21
+ }), "aria-hidden": "true", style: {
46
22
  maskPosition: position,
47
23
  WebkitMaskPosition: position,
48
- } }, rest))));
24
+ }, ...rest })));
49
25
  }
@@ -1,34 +1,12 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.BodyText = BodyText;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
31
9
  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)));
10
+ const { as: Comp = 'div', className, ...rest } = props;
11
+ return (react_1.default.createElement(Comp, { className: (0, classnames_1.default)('ffe-body-text', className), ...rest }));
34
12
  }
@@ -1,34 +1,11 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.DividerLine = DividerLine;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
31
- function DividerLine(_a) {
32
- var className = _a.className, rest = __rest(_a, ["className"]);
33
- return (react_1.default.createElement("hr", __assign({ className: (0, classnames_1.default)('ffe-divider-line', className), "aria-hidden": "true", role: "presentation" }, rest)));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
9
+ function DividerLine({ className, ...rest }) {
10
+ return (react_1.default.createElement("hr", { className: (0, classnames_1.default)('ffe-divider-line', className), "aria-hidden": "true", role: "presentation", ...rest }));
34
11
  }
@@ -1,34 +1,11 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.EmphasizedText = EmphasizedText;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
31
- function EmphasizedText(_a) {
32
- var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
33
- return (react_1.default.createElement("em", __assign({ className: (0, classnames_1.default)('ffe-em-text', className) }, rest), children));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
9
+ function EmphasizedText({ children, className, ...rest }) {
10
+ return (react_1.default.createElement("em", { className: (0, classnames_1.default)('ffe-em-text', className), ...rest }, children));
34
11
  }
@@ -1,42 +1,22 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.Heading6 = exports.Heading5 = exports.Heading4 = exports.Heading3 = exports.Heading2 = exports.Heading1 = void 0;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
31
- var Heading = react_1.default.forwardRef(function (_a, ref) {
32
- var _b, _c, _d, _e, _f;
33
- var children = _a.children, className = _a.className, error = _a.error, inline = _a.inline, noMargin = _a.noMargin, withBorder = _a.withBorder, lookLike = _a.lookLike, textCenter = _a.textCenter, level = _a.level, rest = __rest(_a, ["children", "className", "error", "inline", "noMargin", "withBorder", "lookLike", "textCenter", "level"]);
34
- var headingClass = "ffe-h".concat(lookLike ? lookLike : level);
35
- return react_1.default.createElement("h".concat(level), __assign(__assign({}, rest), { ref: ref, className: (0, classnames_1.default)(headingClass, (_b = {}, _b["".concat(headingClass, "--error")] = error, _b), (_c = {}, _c["".concat(headingClass, "--inline")] = inline, _c), (_d = {}, _d["".concat(headingClass, "--no-margin")] = noMargin, _d), (_e = {}, _e["".concat(headingClass, "--with-border")] = withBorder, _e), (_f = {}, _f["".concat(headingClass, "--text-center")] = textCenter, _f), className) }), children);
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
9
+ const Heading = react_1.default.forwardRef(({ children, className, error, inline, noMargin, withBorder, lookLike, textCenter, level, ...rest }, ref) => {
10
+ const headingClass = `ffe-h${lookLike ? lookLike : level}`;
11
+ return react_1.default.createElement(`h${level}`, {
12
+ ...rest,
13
+ ref,
14
+ className: (0, classnames_1.default)(headingClass, { [`${headingClass}--error`]: error }, { [`${headingClass}--inline`]: inline }, { [`${headingClass}--no-margin`]: noMargin }, { [`${headingClass}--with-border`]: withBorder }, { [`${headingClass}--text-center`]: textCenter }, className),
15
+ }, children);
36
16
  });
37
- exports.Heading1 = react_1.default.forwardRef(function (props, ref) { return react_1.default.createElement(Heading, __assign({}, props, { ref: ref, level: 1 })); });
38
- exports.Heading2 = react_1.default.forwardRef(function (props, ref) { return react_1.default.createElement(Heading, __assign({}, props, { ref: ref, level: 2 })); });
39
- exports.Heading3 = react_1.default.forwardRef(function (props, ref) { return react_1.default.createElement(Heading, __assign({}, props, { ref: ref, level: 3 })); });
40
- exports.Heading4 = react_1.default.forwardRef(function (props, ref) { return react_1.default.createElement(Heading, __assign({}, props, { ref: ref, level: 4 })); });
41
- exports.Heading5 = react_1.default.forwardRef(function (props, ref) { return react_1.default.createElement(Heading, __assign({}, props, { ref: ref, level: 5 })); });
42
- exports.Heading6 = react_1.default.forwardRef(function (props, ref) { return react_1.default.createElement(Heading, __assign({}, props, { ref: ref, level: 6 })); });
17
+ exports.Heading1 = react_1.default.forwardRef((props, ref) => react_1.default.createElement(Heading, { ...props, ref: ref, level: 1 }));
18
+ exports.Heading2 = react_1.default.forwardRef((props, ref) => react_1.default.createElement(Heading, { ...props, ref: ref, level: 2 }));
19
+ exports.Heading3 = react_1.default.forwardRef((props, ref) => react_1.default.createElement(Heading, { ...props, ref: ref, level: 3 }));
20
+ exports.Heading4 = react_1.default.forwardRef((props, ref) => react_1.default.createElement(Heading, { ...props, ref: ref, level: 4 }));
21
+ exports.Heading5 = react_1.default.forwardRef((props, ref) => react_1.default.createElement(Heading, { ...props, ref: ref, level: 5 }));
22
+ exports.Heading6 = react_1.default.forwardRef((props, ref) => react_1.default.createElement(Heading, { ...props, ref: ref, level: 6 }));
@@ -1,34 +1,12 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.LinkIcon = LinkIcon;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
31
9
  function LinkIcon(props) {
32
- var _a = props.as, Comp = _a === void 0 ? 'a' : _a, className = props.className, rest = __rest(props, ["as", "className"]);
33
- return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-link-icon', className) }, rest)));
10
+ const { as: Comp = 'a', className, ...rest } = props;
11
+ return (react_1.default.createElement(Comp, { className: (0, classnames_1.default)('ffe-link-icon', className), ...rest }));
34
12
  }
@@ -1,34 +1,12 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.LinkText = LinkText;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
31
9
  function LinkText(props) {
32
- var _a = props.as, Comp = _a === void 0 ? 'a' : _a, className = props.className, _b = props.underline, underline = _b === void 0 ? true : _b, rest = __rest(props, ["as", "className", "underline"]);
33
- return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-link-text', { 'ffe-link-text--no-underline': !underline }, className) }, rest)));
10
+ const { as: Comp = 'a', className, underline = true, ...rest } = props;
11
+ return (react_1.default.createElement(Comp, { className: (0, classnames_1.default)('ffe-link-text', { 'ffe-link-text--no-underline': !underline }, className), ...rest }));
34
12
  }
@@ -1,34 +1,12 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.MicroText = MicroText;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
31
9
  function MicroText(props) {
32
- var _a = props.as, Comp = _a === void 0 ? 'span' : _a, _b = props.strong, strong = _b === void 0 ? false : _b, className = props.className, rest = __rest(props, ["as", "strong", "className"]);
33
- return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-micro-text', { 'ffe-micro-text--strong': strong }, className) }, rest)));
10
+ const { as: Comp = 'span', strong = false, className, ...rest } = props;
11
+ return (react_1.default.createElement(Comp, { className: (0, classnames_1.default)('ffe-micro-text', { 'ffe-micro-text--strong': strong }, className), ...rest }));
34
12
  }
@@ -1,39 +1,17 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.Paragraph = Paragraph;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
31
9
  function Paragraph(props) {
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
- var mainClass = [
10
+ const { children, className, lead, subLead, textCenter, textLeft, noMargin, ...rest } = props;
11
+ const [mainClass] = [
34
12
  lead && 'ffe-lead-paragraph',
35
13
  subLead && 'ffe-sub-lead-paragraph',
36
14
  'ffe-body-paragraph',
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 }, { 'ffe-body-paragraph--no-margin': noMargin }, className) }, rest), children));
15
+ ].filter(Boolean);
16
+ return (react_1.default.createElement("p", { 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
17
  }
@@ -1,34 +1,12 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.PreformattedText = PreformattedText;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
31
9
  function PreformattedText(props) {
32
- var children = props.children, className = props.className, rest = __rest(props, ["children", "className"]);
33
- return (react_1.default.createElement("pre", __assign({ className: (0, classnames_1.default)('ffe-pre-text', className) }, rest), children));
10
+ const { children, className, ...rest } = props;
11
+ return (react_1.default.createElement("pre", { className: (0, classnames_1.default)('ffe-pre-text', className), ...rest }, children));
34
12
  }
@@ -1,34 +1,12 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.SmallText = SmallText;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
31
9
  function SmallText(props) {
32
- var _a = props.as, Comp = _a === void 0 ? 'span' : _a, className = props.className, _b = props.underline, underline = _b === void 0 ? false : _b, rest = __rest(props, ["as", "className", "underline"]);
33
- return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-small-text', { 'ffe-small-text--underline': underline }, className) }, rest)));
10
+ const { as: Comp = 'span', className, underline = false, ...rest } = props;
11
+ return (react_1.default.createElement(Comp, { className: (0, classnames_1.default)('ffe-small-text', { 'ffe-small-text--underline': underline }, className), ...rest }));
34
12
  }
@@ -1,34 +1,12 @@
1
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
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
25
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
4
  };
27
5
  Object.defineProperty(exports, "__esModule", { value: true });
28
6
  exports.StrongText = StrongText;
29
- var react_1 = __importDefault(require("react"));
30
- var classnames_1 = __importDefault(require("classnames"));
7
+ const react_1 = __importDefault(require("react"));
8
+ const classnames_1 = __importDefault(require("classnames"));
31
9
  function StrongText(props) {
32
- var className = props.className, rest = __rest(props, ["className"]);
33
- return (react_1.default.createElement("strong", __assign({ className: (0, classnames_1.default)('ffe-strong-text', className) }, rest)));
10
+ const { className, ...rest } = props;
11
+ return (react_1.default.createElement("strong", { className: (0, classnames_1.default)('ffe-strong-text', className), ...rest }));
34
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-core-react",
3
- "version": "100.12.4",
3
+ "version": "101.0.1",
4
4
  "description": "React components for ffe-core components",
5
5
  "keywords": [
6
6
  "ffe"
@@ -28,12 +28,12 @@
28
28
  "test:watch": "ffe-buildtool jest --watch"
29
29
  },
30
30
  "dependencies": {
31
- "@sb1/ffe-core": "^100.12.4",
32
- "classnames": "^2.3.1"
31
+ "@sb1/ffe-core": "^101.0.1",
32
+ "classnames": "^2.5.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@sb1/ffe-buildtool": "^100.12.4",
36
- "eslint": "^9.22.0",
35
+ "@sb1/ffe-buildtool": "^101.0.1",
36
+ "eslint": "^10.2.0",
37
37
  "react": "^18.2.0",
38
38
  "react-dom": "^18.2.0"
39
39
  },
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "499c82bdc3f2680cf36cfd7cb77c550c623951f7"
46
+ "gitHead": "2f1f2f2f93e52a5fc5429cbe29538f6016702cf3"
47
47
  }