@astral/ui 1.30.3 → 1.30.4
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.
|
@@ -3,11 +3,11 @@ export declare type PlaceholderProps = {
|
|
|
3
3
|
/**
|
|
4
4
|
* Ссылка на изображение
|
|
5
5
|
*/
|
|
6
|
-
imgSrc
|
|
6
|
+
imgSrc?: string;
|
|
7
7
|
/**
|
|
8
|
-
* Описание изображения
|
|
8
|
+
* Описание изображения (атрибут alt)
|
|
9
9
|
*/
|
|
10
|
-
imgAlt
|
|
10
|
+
imgAlt?: string;
|
|
11
11
|
/**
|
|
12
12
|
* ширина изображения
|
|
13
13
|
*/
|
|
@@ -19,11 +19,11 @@ export declare type PlaceholderProps = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Заголовок
|
|
21
21
|
*/
|
|
22
|
-
title: string;
|
|
22
|
+
title: JSX.Element | JSX.Element[] | string;
|
|
23
23
|
/**
|
|
24
24
|
* Описание
|
|
25
25
|
*/
|
|
26
|
-
description?:
|
|
26
|
+
description?: JSX.Element | JSX.Element[] | string;
|
|
27
27
|
/**
|
|
28
28
|
* Действия
|
|
29
29
|
*/
|
|
@@ -4,6 +4,6 @@ exports.Placeholder = void 0;
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const styles_1 = require("./styles");
|
|
6
6
|
const Placeholder = ({ title, imgSrc, imgAlt, imgWidth, imgHeight, description, Actions, }) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.PlaceholderRoot, { children: [(0, jsx_runtime_1.jsxs)(styles_1.PlaceholderInnerContainer, { children: [(0, jsx_runtime_1.jsx)(styles_1.PlaceholderImage, { src: imgSrc, alt: imgAlt, width: imgWidth, height: imgHeight }), (0, jsx_runtime_1.jsx)(styles_1.PlaceholderTitle, Object.assign({ variant: "h4" }, { children: title })), description && ((0, jsx_runtime_1.jsx)(styles_1.PlaceholderDescription, Object.assign({ variant: "ui" }, { children: description })))] }), Actions && (0, jsx_runtime_1.jsx)(styles_1.PlaceholderActions, { children: Actions })] }));
|
|
7
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.PlaceholderRoot, { children: [(0, jsx_runtime_1.jsxs)(styles_1.PlaceholderInnerContainer, { children: [imgSrc && ((0, jsx_runtime_1.jsx)(styles_1.PlaceholderImage, { src: imgSrc, alt: imgAlt, width: imgWidth, height: imgHeight })), (0, jsx_runtime_1.jsx)(styles_1.PlaceholderTitle, Object.assign({ variant: "h4" }, { children: title })), description && ((0, jsx_runtime_1.jsx)(styles_1.PlaceholderDescription, Object.assign({ variant: "ui" }, { children: description })))] }), Actions && (0, jsx_runtime_1.jsx)(styles_1.PlaceholderActions, { children: Actions })] }));
|
|
8
8
|
};
|
|
9
9
|
exports.Placeholder = Placeholder;
|
|
@@ -3,11 +3,11 @@ export declare type PlaceholderProps = {
|
|
|
3
3
|
/**
|
|
4
4
|
* Ссылка на изображение
|
|
5
5
|
*/
|
|
6
|
-
imgSrc
|
|
6
|
+
imgSrc?: string;
|
|
7
7
|
/**
|
|
8
|
-
* Описание изображения
|
|
8
|
+
* Описание изображения (атрибут alt)
|
|
9
9
|
*/
|
|
10
|
-
imgAlt
|
|
10
|
+
imgAlt?: string;
|
|
11
11
|
/**
|
|
12
12
|
* ширина изображения
|
|
13
13
|
*/
|
|
@@ -19,11 +19,11 @@ export declare type PlaceholderProps = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Заголовок
|
|
21
21
|
*/
|
|
22
|
-
title: string;
|
|
22
|
+
title: JSX.Element | JSX.Element[] | string;
|
|
23
23
|
/**
|
|
24
24
|
* Описание
|
|
25
25
|
*/
|
|
26
|
-
description?:
|
|
26
|
+
description?: JSX.Element | JSX.Element[] | string;
|
|
27
27
|
/**
|
|
28
28
|
* Действия
|
|
29
29
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { PlaceholderActions, PlaceholderDescription, PlaceholderImage, PlaceholderInnerContainer, PlaceholderRoot, PlaceholderTitle, } from './styles';
|
|
3
3
|
export const Placeholder = ({ title, imgSrc, imgAlt, imgWidth, imgHeight, description, Actions, }) => {
|
|
4
|
-
return (_jsxs(PlaceholderRoot, { children: [_jsxs(PlaceholderInnerContainer, { children: [_jsx(PlaceholderImage, { src: imgSrc, alt: imgAlt, width: imgWidth, height: imgHeight }), _jsx(PlaceholderTitle, Object.assign({ variant: "h4" }, { children: title })), description && (_jsx(PlaceholderDescription, Object.assign({ variant: "ui" }, { children: description })))] }), Actions && _jsx(PlaceholderActions, { children: Actions })] }));
|
|
4
|
+
return (_jsxs(PlaceholderRoot, { children: [_jsxs(PlaceholderInnerContainer, { children: [imgSrc && (_jsx(PlaceholderImage, { src: imgSrc, alt: imgAlt, width: imgWidth, height: imgHeight })), _jsx(PlaceholderTitle, Object.assign({ variant: "h4" }, { children: title })), description && (_jsx(PlaceholderDescription, Object.assign({ variant: "ui" }, { children: description })))] }), Actions && _jsx(PlaceholderActions, { children: Actions })] }));
|
|
5
5
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/ui",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.4",
|
|
4
4
|
"browser": "./esm/index.js",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@astral/icons": "^1.30.
|
|
7
|
+
"@astral/icons": "^1.30.4",
|
|
8
8
|
"@emotion/cache": "11.7.1",
|
|
9
9
|
"@emotion/react": "11.9.0",
|
|
10
10
|
"@emotion/server": "11.4.0",
|