@astral/ui 0.44.0 → 0.45.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.
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { PlaceholderProps } from '../Placeholder/types';
2
+ import { PlaceholderProps } from '../Placeholder';
3
3
  import { ContentStateErrorProps } from './types';
4
4
  declare type ContentStateProps = {
5
5
  /**
@@ -1,3 +1,24 @@
1
- /// <reference types="react" />
2
- import { PlaceholderProps } from './types';
1
+ import { ReactNode } from 'react';
2
+ export declare type PlaceholderProps = {
3
+ /**
4
+ * Ссылка на изображение
5
+ */
6
+ imgSrc: string;
7
+ /**
8
+ * Описание изображения
9
+ */
10
+ imgAlt: string;
11
+ /**
12
+ * Заголовок
13
+ */
14
+ title: string;
15
+ /**
16
+ * Описание
17
+ */
18
+ description?: string | ReactNode;
19
+ /**
20
+ * Действия
21
+ */
22
+ Actions?: ReactNode;
23
+ };
3
24
  export declare const Placeholder: ({ title, imgSrc, imgAlt, description, Actions, }: PlaceholderProps) => JSX.Element;
@@ -13,9 +13,9 @@ var __assign = (this && this.__assign) || function () {
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.Placeholder = void 0;
15
15
  var jsx_runtime_1 = require("react/jsx-runtime");
16
- var styled_1 = require("./styled");
16
+ var styles_1 = require("./styles");
17
17
  var Placeholder = function (_a) {
18
18
  var title = _a.title, imgSrc = _a.imgSrc, imgAlt = _a.imgAlt, description = _a.description, Actions = _a.Actions;
19
- return ((0, jsx_runtime_1.jsxs)(styled_1.StyledContainer, { children: [(0, jsx_runtime_1.jsxs)(styled_1.StyledInnerContainer, { children: [imgSrc && (0, jsx_runtime_1.jsx)(styled_1.StyledImage, { src: imgSrc, alt: imgAlt }), title && (0, jsx_runtime_1.jsx)(styled_1.StyledTitle, __assign({ variant: "h4" }, { children: title })), description && ((0, jsx_runtime_1.jsx)(styled_1.StyledDescription, __assign({ variant: "ui" }, { children: description })))] }), Actions && (0, jsx_runtime_1.jsx)(styled_1.StyledActions, { children: Actions })] }));
19
+ 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 }), (0, jsx_runtime_1.jsx)(styles_1.PlaceholderTitle, __assign({ variant: "h4" }, { children: title })), description && ((0, jsx_runtime_1.jsx)(styles_1.PlaceholderDescription, __assign({ variant: "ui" }, { children: description })))] }), Actions && (0, jsx_runtime_1.jsx)(styles_1.PlaceholderActions, { children: Actions })] }));
20
20
  };
21
21
  exports.Placeholder = Placeholder;
@@ -1,17 +1,17 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledContainer: import("@emotion/styled").StyledComponent<{
2
+ export declare const PlaceholderRoot: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const StyledInnerContainer: import("@emotion/styled").StyledComponent<{
6
+ export declare const PlaceholderInnerContainer: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
8
  as?: import("react").ElementType<any> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
- export declare const StyledImage: import("@emotion/styled").StyledComponent<{
10
+ export declare const PlaceholderImage: import("@emotion/styled").StyledComponent<{
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
12
  as?: import("react").ElementType<any> | undefined;
13
13
  }, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
14
- export declare const StyledTitle: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
14
+ export declare const PlaceholderTitle: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
15
15
  align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
16
16
  children?: import("react").ReactNode;
17
17
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
@@ -26,7 +26,7 @@ export declare const StyledTitle: import("@emotion/styled").StyledComponent<impo
26
26
  }, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
27
27
  theme?: import("@emotion/react").Theme | undefined;
28
28
  }, {}, {}>;
29
- export declare const StyledDescription: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
29
+ export declare const PlaceholderDescription: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
30
30
  align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
31
31
  children?: import("react").ReactNode;
32
32
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
@@ -41,7 +41,7 @@ export declare const StyledDescription: import("@emotion/styled").StyledComponen
41
41
  }, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
42
42
  theme?: import("@emotion/react").Theme | undefined;
43
43
  }, {}, {}>;
44
- export declare const StyledActions: import("@emotion/styled").StyledComponent<{
44
+ export declare const PlaceholderActions: import("@emotion/styled").StyledComponent<{
45
45
  theme?: import("@emotion/react").Theme | undefined;
46
46
  as?: import("react").ElementType<any> | undefined;
47
47
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.PlaceholderActions = exports.PlaceholderDescription = exports.PlaceholderTitle = exports.PlaceholderImage = exports.PlaceholderInnerContainer = exports.PlaceholderRoot = void 0;
8
+ var styles_1 = require("../styles");
9
+ var Typography_1 = require("../Typography");
10
+ exports.PlaceholderRoot = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: ", ";\n\n background-color: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: ", ";\n\n background-color: ", ";\n"])), function (_a) {
11
+ var theme = _a.theme;
12
+ return theme.spacing(4);
13
+ }, function (_a) {
14
+ var theme = _a.theme;
15
+ return theme.palette.background.paper;
16
+ });
17
+ exports.PlaceholderInnerContainer = styles_1.styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-width: 384px;\n"], ["\n max-width: 384px;\n"])));
18
+ exports.PlaceholderImage = styles_1.styled.img(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"], ["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"])), function (_a) {
19
+ var theme = _a.theme;
20
+ return theme.spacing(8);
21
+ });
22
+ exports.PlaceholderTitle = (0, styles_1.styled)(Typography_1.Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-bottom: ", ";\n\n text-align: center;\n"], ["\n margin-bottom: ", ";\n\n text-align: center;\n"])), function (_a) {
23
+ var theme = _a.theme;
24
+ return theme.spacing(4);
25
+ });
26
+ exports.PlaceholderDescription = (0, styles_1.styled)(Typography_1.Typography)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: block;\n\n text-align: center;\n"], ["\n display: block;\n\n text-align: center;\n"])));
27
+ exports.PlaceholderActions = styles_1.styled.footer(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n\n gap: ", ";\n justify-content: center;\n\n margin-top: ", ";\n"], ["\n display: flex;\n flex-wrap: wrap;\n\n gap: ", ";\n justify-content: center;\n\n margin-top: ", ";\n"])), function (_a) {
28
+ var theme = _a.theme;
29
+ return theme.spacing(1);
30
+ }, function (_a) {
31
+ var theme = _a.theme;
32
+ return theme.spacing(5);
33
+ });
34
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { PlaceholderProps } from '../Placeholder/types';
2
+ import { PlaceholderProps } from '../Placeholder';
3
3
  import { ContentStateErrorProps } from './types';
4
4
  declare type ContentStateProps = {
5
5
  /**
@@ -1,3 +1,24 @@
1
- /// <reference types="react" />
2
- import { PlaceholderProps } from './types';
1
+ import { ReactNode } from 'react';
2
+ export declare type PlaceholderProps = {
3
+ /**
4
+ * Ссылка на изображение
5
+ */
6
+ imgSrc: string;
7
+ /**
8
+ * Описание изображения
9
+ */
10
+ imgAlt: string;
11
+ /**
12
+ * Заголовок
13
+ */
14
+ title: string;
15
+ /**
16
+ * Описание
17
+ */
18
+ description?: string | ReactNode;
19
+ /**
20
+ * Действия
21
+ */
22
+ Actions?: ReactNode;
23
+ };
3
24
  export declare const Placeholder: ({ title, imgSrc, imgAlt, description, Actions, }: PlaceholderProps) => JSX.Element;
@@ -10,8 +10,8 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { StyledActions, StyledContainer, StyledDescription, StyledImage, StyledInnerContainer, StyledTitle, } from './styled';
13
+ import { PlaceholderActions, PlaceholderDescription, PlaceholderImage, PlaceholderInnerContainer, PlaceholderRoot, PlaceholderTitle, } from './styles';
14
14
  export var Placeholder = function (_a) {
15
15
  var title = _a.title, imgSrc = _a.imgSrc, imgAlt = _a.imgAlt, description = _a.description, Actions = _a.Actions;
16
- return (_jsxs(StyledContainer, { children: [_jsxs(StyledInnerContainer, { children: [imgSrc && _jsx(StyledImage, { src: imgSrc, alt: imgAlt }), title && _jsx(StyledTitle, __assign({ variant: "h4" }, { children: title })), description && (_jsx(StyledDescription, __assign({ variant: "ui" }, { children: description })))] }), Actions && _jsx(StyledActions, { children: Actions })] }));
16
+ return (_jsxs(PlaceholderRoot, { children: [_jsxs(PlaceholderInnerContainer, { children: [_jsx(PlaceholderImage, { src: imgSrc, alt: imgAlt }), _jsx(PlaceholderTitle, __assign({ variant: "h4" }, { children: title })), description && (_jsx(PlaceholderDescription, __assign({ variant: "ui" }, { children: description })))] }), Actions && _jsx(PlaceholderActions, { children: Actions })] }));
17
17
  };
@@ -1,17 +1,17 @@
1
1
  /// <reference types="react" />
2
- export declare const StyledContainer: import("@emotion/styled").StyledComponent<{
2
+ export declare const PlaceholderRoot: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
- export declare const StyledInnerContainer: import("@emotion/styled").StyledComponent<{
6
+ export declare const PlaceholderInnerContainer: import("@emotion/styled").StyledComponent<{
7
7
  theme?: import("@emotion/react").Theme | undefined;
8
8
  as?: import("react").ElementType<any> | undefined;
9
9
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
- export declare const StyledImage: import("@emotion/styled").StyledComponent<{
10
+ export declare const PlaceholderImage: import("@emotion/styled").StyledComponent<{
11
11
  theme?: import("@emotion/react").Theme | undefined;
12
12
  as?: import("react").ElementType<any> | undefined;
13
13
  }, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
14
- export declare const StyledTitle: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
14
+ export declare const PlaceholderTitle: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
15
15
  align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
16
16
  children?: import("react").ReactNode;
17
17
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
@@ -26,7 +26,7 @@ export declare const StyledTitle: import("@emotion/styled").StyledComponent<impo
26
26
  }, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
27
27
  theme?: import("@emotion/react").Theme | undefined;
28
28
  }, {}, {}>;
29
- export declare const StyledDescription: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
29
+ export declare const PlaceholderDescription: import("@emotion/styled").StyledComponent<import("@mui/system").SystemProps<import("@mui/material").Theme> & {
30
30
  align?: "inherit" | "left" | "right" | "center" | "justify" | undefined;
31
31
  children?: import("react").ReactNode;
32
32
  classes?: Partial<import("@mui/material").TypographyClasses> | undefined;
@@ -41,7 +41,7 @@ export declare const StyledDescription: import("@emotion/styled").StyledComponen
41
41
  }, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
42
42
  theme?: import("@emotion/react").Theme | undefined;
43
43
  }, {}, {}>;
44
- export declare const StyledActions: import("@emotion/styled").StyledComponent<{
44
+ export declare const PlaceholderActions: import("@emotion/styled").StyledComponent<{
45
45
  theme?: import("@emotion/react").Theme | undefined;
46
46
  as?: import("react").ElementType<any> | undefined;
47
47
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,31 @@
1
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
+ return cooked;
4
+ };
5
+ import { styled } from '../styles';
6
+ import { Typography } from '../Typography';
7
+ export var PlaceholderRoot = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: ", ";\n\n background-color: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: ", ";\n\n background-color: ", ";\n"])), function (_a) {
8
+ var theme = _a.theme;
9
+ return theme.spacing(4);
10
+ }, function (_a) {
11
+ var theme = _a.theme;
12
+ return theme.palette.background.paper;
13
+ });
14
+ export var PlaceholderInnerContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-width: 384px;\n"], ["\n max-width: 384px;\n"])));
15
+ export var PlaceholderImage = styled.img(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"], ["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"])), function (_a) {
16
+ var theme = _a.theme;
17
+ return theme.spacing(8);
18
+ });
19
+ export var PlaceholderTitle = styled(Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-bottom: ", ";\n\n text-align: center;\n"], ["\n margin-bottom: ", ";\n\n text-align: center;\n"])), function (_a) {
20
+ var theme = _a.theme;
21
+ return theme.spacing(4);
22
+ });
23
+ export var PlaceholderDescription = styled(Typography)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: block;\n\n text-align: center;\n"], ["\n display: block;\n\n text-align: center;\n"])));
24
+ export var PlaceholderActions = styled.footer(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n\n gap: ", ";\n justify-content: center;\n\n margin-top: ", ";\n"], ["\n display: flex;\n flex-wrap: wrap;\n\n gap: ", ";\n justify-content: center;\n\n margin-top: ", ";\n"])), function (_a) {
25
+ var theme = _a.theme;
26
+ return theme.spacing(1);
27
+ }, function (_a) {
28
+ var theme = _a.theme;
29
+ return theme.spacing(5);
30
+ });
31
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "browser": "./src/index.ts",
5
5
  "jest": {
6
6
  "moduleNameMapper": {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "dependencies": {
11
- "@astral/icons": "^0.44.0",
11
+ "@astral/icons": "^0.45.0",
12
12
  "@emotion/cache": "11.7.1",
13
13
  "@emotion/react": "11.9.0",
14
14
  "@emotion/server": "11.4.0",
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.StyledActions = exports.StyledDescription = exports.StyledTitle = exports.StyledImage = exports.StyledInnerContainer = exports.StyledContainer = void 0;
8
- var styles_1 = require("../styles");
9
- var Typography_1 = require("../Typography");
10
- exports.StyledContainer = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: ", ";\n\n background-color: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: ", ";\n\n background-color: ", ";\n"])), function (_a) {
11
- var theme = _a.theme;
12
- return theme.spacing(4);
13
- }, function (_a) {
14
- var theme = _a.theme;
15
- return theme.palette.background.paper;
16
- });
17
- exports.StyledInnerContainer = styles_1.styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-width: 384px;\n"], ["\n max-width: 384px;\n"])));
18
- exports.StyledImage = styles_1.styled.img(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"], ["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"])), function (_a) {
19
- var theme = _a.theme;
20
- return theme.spacing(8);
21
- });
22
- exports.StyledTitle = (0, styles_1.styled)(Typography_1.Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-bottom: ", ";\n\n text-align: center;\n"], ["\n margin-bottom: ", ";\n\n text-align: center;\n"])), function (_a) {
23
- var theme = _a.theme;
24
- return theme.spacing(4);
25
- });
26
- exports.StyledDescription = (0, styles_1.styled)(Typography_1.Typography)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: block;\n\n text-align: center;\n"], ["\n display: block;\n\n text-align: center;\n"])));
27
- exports.StyledActions = styles_1.styled.footer(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n margin-top: ", ";\n\n > * {\n margin: ", ";\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n margin-top: ", ";\n\n > * {\n margin: ", ";\n }\n"])), function (_a) {
28
- var theme = _a.theme;
29
- return theme.spacing(5);
30
- }, function (_a) {
31
- var theme = _a.theme;
32
- return theme.spacing(1);
33
- });
34
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export declare type PlaceholderProps = {
3
- imgSrc: string;
4
- imgAlt: string;
5
- title: string;
6
- description?: string | ReactNode;
7
- Actions?: ReactNode;
8
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,31 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import { styled } from '../styles';
6
- import { Typography } from '../Typography';
7
- export var StyledContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: ", ";\n\n background-color: ", ";\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n padding: ", ";\n\n background-color: ", ";\n"])), function (_a) {
8
- var theme = _a.theme;
9
- return theme.spacing(4);
10
- }, function (_a) {
11
- var theme = _a.theme;
12
- return theme.palette.background.paper;
13
- });
14
- export var StyledInnerContainer = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n max-width: 384px;\n"], ["\n max-width: 384px;\n"])));
15
- export var StyledImage = styled.img(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"], ["\n display: block;\n width: 100%;\n height: 162px;\n margin: auto;\n margin-bottom: ", ";\n"])), function (_a) {
16
- var theme = _a.theme;
17
- return theme.spacing(8);
18
- });
19
- export var StyledTitle = styled(Typography)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n margin-bottom: ", ";\n\n text-align: center;\n"], ["\n margin-bottom: ", ";\n\n text-align: center;\n"])), function (_a) {
20
- var theme = _a.theme;
21
- return theme.spacing(4);
22
- });
23
- export var StyledDescription = styled(Typography)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: block;\n\n text-align: center;\n"], ["\n display: block;\n\n text-align: center;\n"])));
24
- export var StyledActions = styled.footer(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n margin-top: ", ";\n\n > * {\n margin: ", ";\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n margin-top: ", ";\n\n > * {\n margin: ", ";\n }\n"])), function (_a) {
25
- var theme = _a.theme;
26
- return theme.spacing(5);
27
- }, function (_a) {
28
- var theme = _a.theme;
29
- return theme.spacing(1);
30
- });
31
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export declare type PlaceholderProps = {
3
- imgSrc: string;
4
- imgAlt: string;
5
- title: string;
6
- description?: string | ReactNode;
7
- Actions?: ReactNode;
8
- };
@@ -1 +0,0 @@
1
- export {};