@semcore/card 3.0.4 → 3.0.7
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/CHANGELOG.md +18 -0
- package/lib/cjs/Card.js +5 -5
- package/lib/cjs/index.d.ts +20 -0
- package/lib/cjs/index.js +2 -19
- package/lib/cjs/index.js.map +1 -1
- package/lib/es6/Card.js +5 -5
- package/lib/es6/index.d.ts +20 -0
- package/lib/es6/index.js +0 -1
- package/lib/es6/index.js.map +1 -1
- package/package.json +4 -1
- package/src/index.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [3.0.7] - 2022-05-16
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [2.21.0 ~> 2.24.0]).
|
|
10
|
+
|
|
11
|
+
## [3.0.6] - 2022-04-28
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [2.20.0 ~> 2.21.0]).
|
|
16
|
+
|
|
17
|
+
## [3.0.5] - 2022-03-21
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [2.19.4 ~> 2.20.0]).
|
|
22
|
+
|
|
5
23
|
## [3.0.4] - 2022-03-14
|
|
6
24
|
|
|
7
25
|
### Changed
|
package/lib/cjs/Card.js
CHANGED
|
@@ -78,7 +78,7 @@ var CardRoot = /*#__PURE__*/function (_Component) {
|
|
|
78
78
|
(0, _createClass2["default"])(CardRoot, [{
|
|
79
79
|
key: "render",
|
|
80
80
|
value: function render() {
|
|
81
|
-
var _ref = this
|
|
81
|
+
var _ref = this.asProps,
|
|
82
82
|
_ref6;
|
|
83
83
|
|
|
84
84
|
var SCard = _flexBox.Box;
|
|
@@ -96,7 +96,7 @@ var CardRoot = /*#__PURE__*/function (_Component) {
|
|
|
96
96
|
(0, _defineProperty2["default"])(CardRoot, "style", style);
|
|
97
97
|
|
|
98
98
|
function Title(props) {
|
|
99
|
-
var _ref2 =
|
|
99
|
+
var _ref2 = arguments[0],
|
|
100
100
|
_ref7;
|
|
101
101
|
|
|
102
102
|
var styles = props.styles,
|
|
@@ -109,7 +109,7 @@ function Title(props) {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
function Description(props) {
|
|
112
|
-
var _ref3 =
|
|
112
|
+
var _ref3 = arguments[0],
|
|
113
113
|
_ref8;
|
|
114
114
|
|
|
115
115
|
var styles = props.styles;
|
|
@@ -120,7 +120,7 @@ function Description(props) {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
function Header(props) {
|
|
123
|
-
var _ref4 =
|
|
123
|
+
var _ref4 = arguments[0],
|
|
124
124
|
_ref9;
|
|
125
125
|
|
|
126
126
|
var styles = props.styles;
|
|
@@ -129,7 +129,7 @@ function Header(props) {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
function Body(props) {
|
|
132
|
-
var _ref5 =
|
|
132
|
+
var _ref5 = arguments[0],
|
|
133
133
|
_ref10;
|
|
134
134
|
|
|
135
135
|
var styles = props.styles;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CProps, ReturnEl } from '@semcore/core';
|
|
3
|
+
import { Box, IBoxProps } from '@semcore/flex-box';
|
|
4
|
+
import { Text, ITextProps } from '@semcore/typography';
|
|
5
|
+
|
|
6
|
+
export interface ITitleProps extends ITextProps {
|
|
7
|
+
/**
|
|
8
|
+
* Tooltip text
|
|
9
|
+
*/
|
|
10
|
+
hint?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const Card: (<T>(props: CProps<IBoxProps & T>) => ReturnEl) & {
|
|
14
|
+
Title: <T>(props: ITitleProps & T) => ReturnEl;
|
|
15
|
+
Description: typeof Text;
|
|
16
|
+
Header: typeof Box;
|
|
17
|
+
Body: typeof Box;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default Card;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
4
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
var _exportNames = {};
|
|
9
8
|
Object.defineProperty(exports, "default", {
|
|
10
9
|
enumerable: true,
|
|
11
10
|
get: function get() {
|
|
@@ -13,21 +12,5 @@ Object.defineProperty(exports, "default", {
|
|
|
13
12
|
}
|
|
14
13
|
});
|
|
15
14
|
|
|
16
|
-
var _Card =
|
|
17
|
-
|
|
18
|
-
Object.keys(_Card).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
21
|
-
if (key in exports && exports[key] === _Card[key]) return;
|
|
22
|
-
Object.defineProperty(exports, key, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function get() {
|
|
25
|
-
return _Card[key];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
31
|
-
|
|
32
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
var _Card = _interopRequireDefault(require("./Card"));
|
|
33
16
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './Card';\n"],"file":"index.js"}
|
package/lib/es6/Card.js
CHANGED
|
@@ -59,7 +59,7 @@ var CardRoot = /*#__PURE__*/function (_Component) {
|
|
|
59
59
|
_createClass(CardRoot, [{
|
|
60
60
|
key: "render",
|
|
61
61
|
value: function render() {
|
|
62
|
-
var _ref = this
|
|
62
|
+
var _ref = this.asProps,
|
|
63
63
|
_ref6;
|
|
64
64
|
|
|
65
65
|
var SCard = Box;
|
|
@@ -79,7 +79,7 @@ _defineProperty(CardRoot, "displayName", 'Card');
|
|
|
79
79
|
_defineProperty(CardRoot, "style", style);
|
|
80
80
|
|
|
81
81
|
function Title(props) {
|
|
82
|
-
var _ref2 =
|
|
82
|
+
var _ref2 = arguments[0],
|
|
83
83
|
_ref7;
|
|
84
84
|
|
|
85
85
|
var styles = props.styles,
|
|
@@ -92,7 +92,7 @@ function Title(props) {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
function Description(props) {
|
|
95
|
-
var _ref3 =
|
|
95
|
+
var _ref3 = arguments[0],
|
|
96
96
|
_ref8;
|
|
97
97
|
|
|
98
98
|
var styles = props.styles;
|
|
@@ -103,7 +103,7 @@ function Description(props) {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
function Header(props) {
|
|
106
|
-
var _ref4 =
|
|
106
|
+
var _ref4 = arguments[0],
|
|
107
107
|
_ref9;
|
|
108
108
|
|
|
109
109
|
var styles = props.styles;
|
|
@@ -112,7 +112,7 @@ function Header(props) {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
function Body(props) {
|
|
115
|
-
var _ref5 =
|
|
115
|
+
var _ref5 = arguments[0],
|
|
116
116
|
_ref10;
|
|
117
117
|
|
|
118
118
|
var styles = props.styles;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CProps, ReturnEl } from '@semcore/core';
|
|
3
|
+
import { Box, IBoxProps } from '@semcore/flex-box';
|
|
4
|
+
import { Text, ITextProps } from '@semcore/typography';
|
|
5
|
+
|
|
6
|
+
export interface ITitleProps extends ITextProps {
|
|
7
|
+
/**
|
|
8
|
+
* Tooltip text
|
|
9
|
+
*/
|
|
10
|
+
hint?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare const Card: (<T>(props: CProps<IBoxProps & T>) => ReturnEl) & {
|
|
14
|
+
Title: <T>(props: ITitleProps & T) => ReturnEl;
|
|
15
|
+
Description: typeof Text;
|
|
16
|
+
Header: typeof Box;
|
|
17
|
+
Body: typeof Box;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default Card;
|
package/lib/es6/index.js
CHANGED
package/lib/es6/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.js"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,QAAxB
|
|
1
|
+
{"version":3,"sources":["../../src/index.js"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,QAAxB","sourcesContent":["export { default } from './Card';\n"],"file":"index.js"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/card",
|
|
3
3
|
"description": "SEMRush Card Component",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.7",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -30,5 +30,8 @@
|
|
|
30
30
|
"type": "git",
|
|
31
31
|
"url": "https://github.com/semrush/intergalactic.git",
|
|
32
32
|
"directory": "semcore/card"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@semcore/jest-preset-ui": "1.0.0"
|
|
33
36
|
}
|
|
34
37
|
}
|
package/src/index.js
CHANGED