@semcore/card 4.0.20 → 4.0.21
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 +6 -0
- package/lib/cjs/Card.js +9 -9
- package/lib/cjs/index.d.js +2 -0
- package/lib/cjs/index.d.js.map +1 -0
- package/lib/es6/Card.js +9 -9
- package/lib/es6/index.d.js +2 -0
- package/lib/es6/index.d.js.map +1 -0
- package/package.json +3 -2
- package/lib/cjs/index.d.ts +0 -20
- package/lib/es6/index.d.ts +0 -20
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [4.0.21] - 2022-10-03
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/icon` [2.32.0 ~> 2.32.1]).
|
|
10
|
+
|
|
5
11
|
## [4.0.20] - 2022-09-29
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/cjs/Card.js
CHANGED
|
@@ -52,18 +52,18 @@ var style = (
|
|
|
52
52
|
/*__reshadow_css_start__*/
|
|
53
53
|
_core.sstyled.insert(
|
|
54
54
|
/*__inner_css_start__*/
|
|
55
|
-
".
|
|
55
|
+
".___SCard_8pze5_gg_{box-sizing:border-box;background:#ffffff;padding:0;border:none;border-radius:6px;box-shadow:0 0 1px rgba(25,27,35,.16),0 1px 2px rgba(25,27,35,.12);font-family:Inter,sans-serif}.___STitle_8pze5_gg_{color:#191b23;font-size:16px;line-height:1.5;font-weight:700;margin-right:4px}.___SIcon_8pze5_gg_{color:#a9abb6;cursor:help;margin-right:4px}.___STooltip_8pze5_gg_{display:inline-flex;vertical-align:middle}.___SDescription_8pze5_gg_{margin-bottom:0;margin-top:8px;font-size:14px;color:#6c6e79}.___SHeader_8pze5_gg_{padding-top:8px;padding-bottom:8px;padding-left:20px;padding-right:20px;box-shadow:inset 0 -1px 0 #e0e1e9}.___SBody_8pze5_gg_{color:#191b23;padding-bottom:20px;padding-left:20px;padding-right:20px;padding-top:20px}"
|
|
56
56
|
/*__inner_css_end__*/
|
|
57
|
-
, "
|
|
57
|
+
, "8pze5_gg_")
|
|
58
58
|
/*__reshadow_css_end__*/
|
|
59
59
|
, {
|
|
60
|
-
"__SCard": "
|
|
61
|
-
"__STitle": "
|
|
62
|
-
"__SIcon": "
|
|
63
|
-
"__STooltip": "
|
|
64
|
-
"__SDescription": "
|
|
65
|
-
"__SHeader": "
|
|
66
|
-
"__SBody": "
|
|
60
|
+
"__SCard": "___SCard_8pze5_gg_",
|
|
61
|
+
"__STitle": "___STitle_8pze5_gg_",
|
|
62
|
+
"__SIcon": "___SIcon_8pze5_gg_",
|
|
63
|
+
"__STooltip": "___STooltip_8pze5_gg_",
|
|
64
|
+
"__SDescription": "___SDescription_8pze5_gg_",
|
|
65
|
+
"__SHeader": "___SHeader_8pze5_gg_",
|
|
66
|
+
"__SBody": "___SBody_8pze5_gg_"
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
var CardRoot = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { Box, IBoxProps } from '@semcore/flex-box';\nimport { Text, ITextProps } from '@semcore/typography';\n\nexport interface ITitleProps extends ITextProps {\n /**\n * Tooltip text\n */\n hint?: React.ReactNode;\n}\n\ndeclare const Card: (<T>(props: CProps<IBoxProps & T>) => ReturnEl) & {\n Title: <T>(props: ITitleProps & T) => ReturnEl;\n Description: typeof Text;\n Header: typeof Box;\n Body: typeof Box;\n};\n\nexport default Card;\n"],"mappings":""}
|
package/lib/es6/Card.js
CHANGED
|
@@ -31,18 +31,18 @@ var style = (
|
|
|
31
31
|
/*__reshadow_css_start__*/
|
|
32
32
|
_sstyled.insert(
|
|
33
33
|
/*__inner_css_start__*/
|
|
34
|
-
".
|
|
34
|
+
".___SCard_8pze5_gg_{box-sizing:border-box;background:#ffffff;padding:0;border:none;border-radius:6px;box-shadow:0 0 1px rgba(25,27,35,.16),0 1px 2px rgba(25,27,35,.12);font-family:Inter,sans-serif}.___STitle_8pze5_gg_{color:#191b23;font-size:16px;line-height:1.5;font-weight:700;margin-right:4px}.___SIcon_8pze5_gg_{color:#a9abb6;cursor:help;margin-right:4px}.___STooltip_8pze5_gg_{display:inline-flex;vertical-align:middle}.___SDescription_8pze5_gg_{margin-bottom:0;margin-top:8px;font-size:14px;color:#6c6e79}.___SHeader_8pze5_gg_{padding-top:8px;padding-bottom:8px;padding-left:20px;padding-right:20px;box-shadow:inset 0 -1px 0 #e0e1e9}.___SBody_8pze5_gg_{color:#191b23;padding-bottom:20px;padding-left:20px;padding-right:20px;padding-top:20px}"
|
|
35
35
|
/*__inner_css_end__*/
|
|
36
|
-
, "
|
|
36
|
+
, "8pze5_gg_")
|
|
37
37
|
/*__reshadow_css_end__*/
|
|
38
38
|
, {
|
|
39
|
-
"__SCard": "
|
|
40
|
-
"__STitle": "
|
|
41
|
-
"__SIcon": "
|
|
42
|
-
"__STooltip": "
|
|
43
|
-
"__SDescription": "
|
|
44
|
-
"__SHeader": "
|
|
45
|
-
"__SBody": "
|
|
39
|
+
"__SCard": "___SCard_8pze5_gg_",
|
|
40
|
+
"__STitle": "___STitle_8pze5_gg_",
|
|
41
|
+
"__SIcon": "___SIcon_8pze5_gg_",
|
|
42
|
+
"__STooltip": "___STooltip_8pze5_gg_",
|
|
43
|
+
"__SDescription": "___SDescription_8pze5_gg_",
|
|
44
|
+
"__SHeader": "___SHeader_8pze5_gg_",
|
|
45
|
+
"__SBody": "___SBody_8pze5_gg_"
|
|
46
46
|
});
|
|
47
47
|
import { isAdvanceMode } from '@semcore/utils/lib/findComponent';
|
|
48
48
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { CProps, ReturnEl } from '@semcore/core';\nimport { Box, IBoxProps } from '@semcore/flex-box';\nimport { Text, ITextProps } from '@semcore/typography';\n\nexport interface ITitleProps extends ITextProps {\n /**\n * Tooltip text\n */\n hint?: React.ReactNode;\n}\n\ndeclare const Card: (<T>(props: CProps<IBoxProps & T>) => ReturnEl) & {\n Title: <T>(props: ITitleProps & T) => ReturnEl;\n Description: typeof Text;\n Header: typeof Box;\n Body: typeof Box;\n};\n\nexport default Card;\n"],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/card",
|
|
3
3
|
"description": "Semrush Card Component",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.21",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "
|
|
12
|
+
"build": "pnpm semcore-builder --source=js",
|
|
13
13
|
"test": "jest"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"directory": "semcore/card"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
+
"@types/react": "16.8 - 17",
|
|
35
36
|
"@semcore/jest-preset-ui": "1.0.0",
|
|
36
37
|
"@semcore/typography": "*",
|
|
37
38
|
"@semcore/icon": "*"
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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;
|