@aristobyte-ui/card 2.11.2 → 2.13.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/es/.tsbuildinfo +1 -1
- package/es/components/Card/Card.scss +2 -0
- package/es/components/Card/index.d.ts +3 -2
- package/es/components/Card/index.js +5 -4
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/lib/.tsbuildinfo +1 -1
- package/lib/components/Card/Card.scss +2 -0
- package/lib/components/Card/index.d.ts +3 -2
- package/lib/components/Card/index.js +3 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +17 -0
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { type IconPropsType } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type IconPropsType } from '@aristobyte-ui/utils';
|
|
3
|
+
import './Card.scss';
|
|
3
4
|
export interface ICard {
|
|
4
5
|
title?: string;
|
|
5
6
|
description?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Label } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Label } from '@aristobyte-ui/label';
|
|
3
|
+
import './Card.scss';
|
|
3
4
|
export var Card = function (_a) {
|
|
4
|
-
var title = _a.title, description = _a.description, label = _a.label, icon = _a.icon, children = _a.children, _b = _a.className, className = _b === void 0 ?
|
|
5
|
+
var title = _a.title, description = _a.description, label = _a.label, icon = _a.icon, children = _a.children, _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.style, style = _c === void 0 ? {} : _c;
|
|
5
6
|
return (React.createElement("div", { className: "card ".concat(className), style: style },
|
|
6
7
|
(title || icon || label) && (React.createElement("h3", { className: "card__title" },
|
|
7
8
|
icon && (React.createElement("div", { className: "card__icon" }, icon.component({
|
|
@@ -11,6 +12,6 @@ export var Card = function (_a) {
|
|
|
11
12
|
}))),
|
|
12
13
|
title && React.createElement("span", { dangerouslySetInnerHTML: { __html: title } }),
|
|
13
14
|
label && (React.createElement(Label, { text: label.text, backgroundColor: label.backgroundColor, borderColor: label.borderColor, color: label.color })))),
|
|
14
|
-
description &&
|
|
15
|
+
description && React.createElement("p", { className: "card__description", dangerouslySetInnerHTML: { __html: description } }),
|
|
15
16
|
children && React.createElement("div", { className: "card__content" }, children)));
|
|
16
17
|
};
|
package/es/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
package/es/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|