@aristobyte-ui/card 2.4.0 → 2.5.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/src/main/components/Card/Card.scss +61 -0
- package/es/src/main/components/Card/index.d.ts +23 -0
- package/es/src/main/components/Card/index.d.ts.map +1 -0
- package/es/src/main/components/index.d.ts +2 -0
- package/es/src/main/components/index.d.ts.map +1 -0
- package/lib/src/main/components/Card/Card.scss +61 -0
- package/lib/src/main/components/Card/index.d.ts +23 -0
- package/lib/src/main/components/Card/index.d.ts.map +1 -0
- package/lib/src/main/components/index.d.ts +2 -0
- package/lib/src/main/components/index.d.ts.map +1 -0
- package/package.json +6 -4
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
align-self: stretch;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
border-radius: 10px;
|
|
5
|
+
border: 1px solid #314158; //@TODO: @COLOR
|
|
6
|
+
background-color: rgba(29, 41, 61, 0.3); //@TODO: @COLOR
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
padding: 17px 17px 30px;
|
|
10
|
+
transition: all 150ms ease-out;
|
|
11
|
+
width: calc(100% - 2 * 17px);
|
|
12
|
+
|
|
13
|
+
&__icon {
|
|
14
|
+
align-items: center;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__title {
|
|
20
|
+
align-items: center;
|
|
21
|
+
color: #e2e8f0; //@TODO: @COLOR
|
|
22
|
+
display: flex;
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
line-height: 20px;
|
|
27
|
+
gap: 12px;
|
|
28
|
+
|
|
29
|
+
b {
|
|
30
|
+
border: solid rgba(69, 85, 108, 0.5); // @TODO: @COLOR
|
|
31
|
+
background-color: rgba(49, 65, 88, 0.4); // @TODO: @COLOR
|
|
32
|
+
border-radius: 10px;
|
|
33
|
+
color: $white;
|
|
34
|
+
padding: 3px 6px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__description {
|
|
39
|
+
color: #90a1b9; //@TODO: @COLOR
|
|
40
|
+
font-size: 16px;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
line-height: 22px;
|
|
44
|
+
margin: 14px 0 0;
|
|
45
|
+
|
|
46
|
+
b {
|
|
47
|
+
border: solid rgba(69, 85, 108, 0.5); // @TODO: @COLOR
|
|
48
|
+
background-color: rgba(49, 65, 88, 0.4); // @TODO: @COLOR
|
|
49
|
+
border-radius: 10px;
|
|
50
|
+
color: $white;
|
|
51
|
+
padding: 3px 6px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__content {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
margin: 24px 0 0;
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type IconPropsType } from "@aristobyte-ui/utils";
|
|
3
|
+
export interface ICard {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
label?: {
|
|
7
|
+
text: string;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
};
|
|
12
|
+
icon?: {
|
|
13
|
+
component: (props: IconPropsType) => React.JSX.Element | React.ReactNode | React.ReactElement;
|
|
14
|
+
size?: number;
|
|
15
|
+
color?: string;
|
|
16
|
+
colors?: string[];
|
|
17
|
+
};
|
|
18
|
+
children?: React.ReactNode | React.ReactElement | string;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
export declare const Card: React.FC<ICard>;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/card/src/main/components/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,CACT,KAAK,EAAE,aAAa,KACjB,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC;QAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;IACF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwChC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/card/src/main/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
align-self: stretch;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
border-radius: 10px;
|
|
5
|
+
border: 1px solid #314158; //@TODO: @COLOR
|
|
6
|
+
background-color: rgba(29, 41, 61, 0.3); //@TODO: @COLOR
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
padding: 17px 17px 30px;
|
|
10
|
+
transition: all 150ms ease-out;
|
|
11
|
+
width: calc(100% - 2 * 17px);
|
|
12
|
+
|
|
13
|
+
&__icon {
|
|
14
|
+
align-items: center;
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__title {
|
|
20
|
+
align-items: center;
|
|
21
|
+
color: #e2e8f0; //@TODO: @COLOR
|
|
22
|
+
display: flex;
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
line-height: 20px;
|
|
27
|
+
gap: 12px;
|
|
28
|
+
|
|
29
|
+
b {
|
|
30
|
+
border: solid rgba(69, 85, 108, 0.5); // @TODO: @COLOR
|
|
31
|
+
background-color: rgba(49, 65, 88, 0.4); // @TODO: @COLOR
|
|
32
|
+
border-radius: 10px;
|
|
33
|
+
color: $white;
|
|
34
|
+
padding: 3px 6px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__description {
|
|
39
|
+
color: #90a1b9; //@TODO: @COLOR
|
|
40
|
+
font-size: 16px;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
line-height: 22px;
|
|
44
|
+
margin: 14px 0 0;
|
|
45
|
+
|
|
46
|
+
b {
|
|
47
|
+
border: solid rgba(69, 85, 108, 0.5); // @TODO: @COLOR
|
|
48
|
+
background-color: rgba(49, 65, 88, 0.4); // @TODO: @COLOR
|
|
49
|
+
border-radius: 10px;
|
|
50
|
+
color: $white;
|
|
51
|
+
padding: 3px 6px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__content {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
margin: 24px 0 0;
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type IconPropsType } from "@aristobyte-ui/utils";
|
|
3
|
+
export interface ICard {
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
label?: {
|
|
7
|
+
text: string;
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
};
|
|
12
|
+
icon?: {
|
|
13
|
+
component: (props: IconPropsType) => React.JSX.Element | React.ReactNode | React.ReactElement;
|
|
14
|
+
size?: number;
|
|
15
|
+
color?: string;
|
|
16
|
+
colors?: string[];
|
|
17
|
+
};
|
|
18
|
+
children?: React.ReactNode | React.ReactElement | string;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
}
|
|
22
|
+
export declare const Card: React.FC<ICard>;
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/card/src/main/components/Card/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,IAAI,CAAC,EAAE;QACL,SAAS,EAAE,CACT,KAAK,EAAE,aAAa,KACjB,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC;QAC9D,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;KACnB,CAAC;IACF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,GAAG,MAAM,CAAC;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwChC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/card/src/main/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aristobyte-ui/card",
|
|
3
3
|
"description": "AristoByteUI Card component: a versatile container for displaying content and UI elements.",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.5.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"author": "AristoByte <info@aristobyte.com>",
|
|
@@ -42,12 +42,14 @@
|
|
|
42
42
|
},
|
|
43
43
|
"main": "lib/src/main/index.js",
|
|
44
44
|
"module": "es/src/main/index.js",
|
|
45
|
+
"types": "es/src/main/index.d.ts",
|
|
45
46
|
"peerDependencies": {
|
|
46
47
|
"react": "^19.1.0",
|
|
47
|
-
"react-dom": "^19.1.0"
|
|
48
|
+
"react-dom": "^19.1.0",
|
|
49
|
+
"sass": "^1.97.3"
|
|
48
50
|
},
|
|
49
51
|
"dependencies": {
|
|
50
|
-
"@aristobyte-ui/label": "2.
|
|
51
|
-
"@aristobyte-ui/utils": "2.
|
|
52
|
+
"@aristobyte-ui/label": "^2.5.1",
|
|
53
|
+
"@aristobyte-ui/utils": "^2.5.1"
|
|
52
54
|
}
|
|
53
55
|
}
|