@sb1/ffe-core-react 8.0.4 → 8.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/README.md
CHANGED
|
@@ -16,11 +16,6 @@ https://design.sparebank1.no/komponenter/typografi/
|
|
|
16
16
|
https://design.sparebank1.no/profil/farger/
|
|
17
17
|
https://design.sparebank1.no/profil/spacing/
|
|
18
18
|
|
|
19
|
-
## TypeScript definition files
|
|
20
|
-
|
|
21
|
-
This component supports TypeScript - please update `index.d.ts` if you change any
|
|
22
|
-
of the external methods or properties in this component.
|
|
23
|
-
|
|
24
19
|
## Development
|
|
25
20
|
|
|
26
21
|
To start a local development server, run the following from the designsystem root folder:
|
|
@@ -23,6 +23,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import React from 'react';
|
|
24
24
|
import classNames from 'classnames';
|
|
25
25
|
export function MicroText(props) {
|
|
26
|
-
var _a = props.as, Comp = _a === void 0 ? 'span' : _a, className = props.className, rest = __rest(props, ["as", "className"]);
|
|
27
|
-
return (React.createElement(Comp, __assign({ className: classNames('ffe-micro-text', className) }, rest)));
|
|
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)));
|
|
28
28
|
}
|
|
@@ -29,7 +29,7 @@ exports.MicroText = void 0;
|
|
|
29
29
|
var react_1 = __importDefault(require("react"));
|
|
30
30
|
var classnames_1 = __importDefault(require("classnames"));
|
|
31
31
|
function MicroText(props) {
|
|
32
|
-
var _a = props.as, Comp = _a === void 0 ? 'span' : _a, className = props.className, rest = __rest(props, ["as", "className"]);
|
|
33
|
-
return (react_1.default.createElement(Comp, __assign({ className: (0, classnames_1.default)('ffe-micro-text', className) }, rest)));
|
|
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)));
|
|
34
34
|
}
|
|
35
35
|
exports.MicroText = MicroText;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-core-react",
|
|
3
|
-
"version": "8.0
|
|
3
|
+
"version": "8.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": "^27.
|
|
32
|
+
"@sb1/ffe-core": "^27.4.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": "
|
|
47
|
+
"gitHead": "8f14fe9d40314d64c62a4622e7d35b33b9e5484d"
|
|
48
48
|
}
|
|
@@ -4,5 +4,6 @@ export type MicroTextProps<As extends ElementType = 'span'> = {
|
|
|
4
4
|
as?: As;
|
|
5
5
|
} & DistributiveOmit<ComponentProps<ElementType extends As ? 'span' : As>, 'as' | 'ref'> & {
|
|
6
6
|
underline?: boolean;
|
|
7
|
+
strong?: boolean;
|
|
7
8
|
};
|
|
8
9
|
export declare function MicroText<As extends ElementType>(props: MicroTextProps<As>): React.JSX.Element;
|