@astral/ui 0.44.0 → 0.46.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.
Files changed (57) hide show
  1. package/ContentState/ContentState.d.ts +1 -1
  2. package/Fade/Fade.d.ts +3 -0
  3. package/Fade/Fade.js +5 -0
  4. package/Fade/index.d.ts +1 -0
  5. package/Fade/index.js +17 -0
  6. package/Grow/Grow.d.ts +3 -0
  7. package/Grow/Grow.js +5 -0
  8. package/Grow/index.d.ts +1 -0
  9. package/Grow/index.js +17 -0
  10. package/OverflowTypography/hooks/useOverflowed/useOverflowed.js +2 -5
  11. package/OverflowTypography/styles.js +1 -1
  12. package/Placeholder/Placeholder.d.ts +23 -2
  13. package/Placeholder/Placeholder.js +2 -2
  14. package/Placeholder/{styled.d.ts → styles.d.ts} +6 -6
  15. package/Placeholder/styles.js +34 -0
  16. package/Slide/Slide.d.ts +3 -0
  17. package/Slide/Slide.js +5 -0
  18. package/Slide/index.d.ts +1 -0
  19. package/Slide/index.js +17 -0
  20. package/Zoom/Zoom.d.ts +3 -0
  21. package/Zoom/Zoom.js +5 -0
  22. package/Zoom/index.d.ts +1 -0
  23. package/Zoom/index.js +17 -0
  24. package/esm/ContentState/ContentState.d.ts +1 -1
  25. package/esm/Fade/Fade.d.ts +3 -0
  26. package/esm/Fade/Fade.js +2 -0
  27. package/esm/Fade/index.d.ts +1 -0
  28. package/esm/Fade/index.js +1 -0
  29. package/esm/Grow/Grow.d.ts +3 -0
  30. package/esm/Grow/Grow.js +2 -0
  31. package/esm/Grow/index.d.ts +1 -0
  32. package/esm/Grow/index.js +1 -0
  33. package/esm/OverflowTypography/hooks/useOverflowed/useOverflowed.js +1 -1
  34. package/esm/OverflowTypography/styles.js +1 -1
  35. package/esm/Placeholder/Placeholder.d.ts +23 -2
  36. package/esm/Placeholder/Placeholder.js +2 -2
  37. package/esm/Placeholder/{styled.d.ts → styles.d.ts} +6 -6
  38. package/esm/Placeholder/styles.js +31 -0
  39. package/esm/Slide/Slide.d.ts +3 -0
  40. package/esm/Slide/Slide.js +2 -0
  41. package/esm/Slide/index.d.ts +1 -0
  42. package/esm/Slide/index.js +1 -0
  43. package/esm/Zoom/Zoom.d.ts +3 -0
  44. package/esm/Zoom/Zoom.js +2 -0
  45. package/esm/Zoom/index.d.ts +1 -0
  46. package/esm/Zoom/index.js +1 -0
  47. package/esm/index.d.ts +5 -1
  48. package/esm/index.js +5 -1
  49. package/index.d.ts +5 -1
  50. package/index.js +5 -1
  51. package/package.json +2 -2
  52. package/Placeholder/styled.js +0 -34
  53. package/Placeholder/types.d.ts +0 -8
  54. package/Placeholder/types.js +0 -2
  55. package/esm/Placeholder/styled.js +0 -31
  56. package/esm/Placeholder/types.d.ts +0 -8
  57. package/esm/Placeholder/types.js +0 -1
@@ -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
  /**
package/Fade/Fade.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { Fade, FadeProps } from '@mui/material';
2
+ export { Fade };
3
+ export type { FadeProps };
package/Fade/Fade.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Fade = void 0;
4
+ var material_1 = require("@mui/material");
5
+ Object.defineProperty(exports, "Fade", { enumerable: true, get: function () { return material_1.Fade; } });
@@ -0,0 +1 @@
1
+ export * from './Fade';
package/Fade/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Fade"), exports);
package/Grow/Grow.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { Grow, GrowProps } from '@mui/material';
2
+ export { Grow };
3
+ export type { GrowProps };
package/Grow/Grow.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Grow = void 0;
4
+ var material_1 = require("@mui/material");
5
+ Object.defineProperty(exports, "Grow", { enumerable: true, get: function () { return material_1.Grow; } });
@@ -0,0 +1 @@
1
+ export * from './Grow';
package/Grow/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Grow"), exports);
@@ -1,18 +1,15 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.useOverflowed = void 0;
7
4
  var react_1 = require("react");
8
- var debounce_1 = __importDefault(require("lodash-es/debounce"));
5
+ var lodash_es_1 = require("lodash-es");
9
6
  var useOverflowed = function (forwardedRef) {
10
7
  var localRef = (0, react_1.useRef)(null);
11
8
  var ref = forwardedRef && typeof forwardedRef !== 'function'
12
9
  ? forwardedRef
13
10
  : localRef;
14
11
  var _a = (0, react_1.useState)(false), isOverflowed = _a[0], setOverflow = _a[1];
15
- var handleResize = (0, react_1.useCallback)((0, debounce_1.default)(function (_a) {
12
+ var handleResize = (0, react_1.useCallback)((0, lodash_es_1.debounce)(function (_a) {
16
13
  var _b = _a[0], target = _b.target, contentRect = _b.contentRect;
17
14
  return setOverflow(contentRect.height < target.scrollHeight);
18
15
  }, 500), []);
@@ -9,7 +9,7 @@ var styles_1 = require("../styles");
9
9
  var Typography_1 = require("../Typography");
10
10
  exports.OverflowTypographyWrapper = (0, styles_1.styled)(Typography_1.Typography, {
11
11
  shouldForwardProp: function (name) { return name !== 'rowsCount'; },
12
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n"], ["\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n"])), function (_a) {
12
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
13
13
  var rowsCount = _a.rowsCount;
14
14
  return rowsCount;
15
15
  });
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { Slide, SlideProps } from '@mui/material';
2
+ export { Slide };
3
+ export type { SlideProps };
package/Slide/Slide.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Slide = void 0;
4
+ var material_1 = require("@mui/material");
5
+ Object.defineProperty(exports, "Slide", { enumerable: true, get: function () { return material_1.Slide; } });
@@ -0,0 +1 @@
1
+ export * from './Slide';
package/Slide/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Slide"), exports);
package/Zoom/Zoom.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { Zoom, ZoomProps } from '@mui/material';
2
+ export { Zoom };
3
+ export type { ZoomProps };
package/Zoom/Zoom.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Zoom = void 0;
4
+ var material_1 = require("@mui/material");
5
+ Object.defineProperty(exports, "Zoom", { enumerable: true, get: function () { return material_1.Zoom; } });
@@ -0,0 +1 @@
1
+ export * from './Zoom';
package/Zoom/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Zoom"), exports);
@@ -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
  /**
@@ -0,0 +1,3 @@
1
+ import { Fade, FadeProps } from '@mui/material';
2
+ export { Fade };
3
+ export type { FadeProps };
@@ -0,0 +1,2 @@
1
+ import { Fade } from '@mui/material';
2
+ export { Fade };
@@ -0,0 +1 @@
1
+ export * from './Fade';
@@ -0,0 +1 @@
1
+ export * from './Fade';
@@ -0,0 +1,3 @@
1
+ import { Grow, GrowProps } from '@mui/material';
2
+ export { Grow };
3
+ export type { GrowProps };
@@ -0,0 +1,2 @@
1
+ import { Grow } from '@mui/material';
2
+ export { Grow };
@@ -0,0 +1 @@
1
+ export * from './Grow';
@@ -0,0 +1 @@
1
+ export * from './Grow';
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useLayoutEffect, useMemo, useRef, useState, } from 'react';
2
- import debounce from 'lodash-es/debounce';
2
+ import { debounce } from 'lodash-es';
3
3
  export var useOverflowed = function (forwardedRef) {
4
4
  var localRef = useRef(null);
5
5
  var ref = forwardedRef && typeof forwardedRef !== 'function'
@@ -6,7 +6,7 @@ import { styled } from '../styles';
6
6
  import { Typography } from '../Typography';
7
7
  export var OverflowTypographyWrapper = styled(Typography, {
8
8
  shouldForwardProp: function (name) { return name !== 'rowsCount'; },
9
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n"], ["\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n display: -webkit-box;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: initial;\n"])), function (_a) {
9
+ })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
10
10
  var rowsCount = _a.rowsCount;
11
11
  return rowsCount;
12
12
  });
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { Slide, SlideProps } from '@mui/material';
2
+ export { Slide };
3
+ export type { SlideProps };
@@ -0,0 +1,2 @@
1
+ import { Slide } from '@mui/material';
2
+ export { Slide };
@@ -0,0 +1 @@
1
+ export * from './Slide';
@@ -0,0 +1 @@
1
+ export * from './Slide';
@@ -0,0 +1,3 @@
1
+ import { Zoom, ZoomProps } from '@mui/material';
2
+ export { Zoom };
3
+ export type { ZoomProps };
@@ -0,0 +1,2 @@
1
+ import { Zoom } from '@mui/material';
2
+ export { Zoom };
@@ -0,0 +1 @@
1
+ export * from './Zoom';
@@ -0,0 +1 @@
1
+ export * from './Zoom';
package/esm/index.d.ts CHANGED
@@ -16,10 +16,12 @@ export * from './DialogContent';
16
16
  export * from './DialogContentText';
17
17
  export * from './DialogTitle';
18
18
  export * from './DropdownButton';
19
+ export * from './Fade';
19
20
  export * from './FormControlLabel';
20
21
  export * from './FormHelperText';
21
22
  export * from './GlobalStyles';
22
23
  export * from './Grid';
24
+ export * from './Grow';
23
25
  export * from './IconButton';
24
26
  export * from './IconDropdownButton';
25
27
  export * from './hooks';
@@ -36,6 +38,7 @@ export * from './Menu';
36
38
  export * from './MenuItem';
37
39
  export * from './MenuList';
38
40
  export * from './MenuGroup';
41
+ export * from './OverflowTypography';
39
42
  export * from './Placeholder';
40
43
  export * from './Product';
41
44
  export * from './Profile';
@@ -57,8 +60,9 @@ export * from './SideDialogTitle';
57
60
  export * from './SideDialogActions';
58
61
  export * from './SideDialogContent';
59
62
  export * from './SideDialogContentText';
63
+ export * from './Slide';
64
+ export * from './Zoom';
60
65
  export * from './Notification';
61
66
  export * from './LocalizationProvider';
62
67
  export * from './ContentState';
63
68
  export * from './Chevron';
64
- export * from './OverflowTypography';
package/esm/index.js CHANGED
@@ -16,10 +16,12 @@ export * from './DialogContent';
16
16
  export * from './DialogContentText';
17
17
  export * from './DialogTitle';
18
18
  export * from './DropdownButton';
19
+ export * from './Fade';
19
20
  export * from './FormControlLabel';
20
21
  export * from './FormHelperText';
21
22
  export * from './GlobalStyles';
22
23
  export * from './Grid';
24
+ export * from './Grow';
23
25
  export * from './IconButton';
24
26
  export * from './IconDropdownButton';
25
27
  export * from './hooks';
@@ -36,6 +38,7 @@ export * from './Menu';
36
38
  export * from './MenuItem';
37
39
  export * from './MenuList';
38
40
  export * from './MenuGroup';
41
+ export * from './OverflowTypography';
39
42
  export * from './Placeholder';
40
43
  export * from './Product';
41
44
  export * from './Profile';
@@ -57,8 +60,9 @@ export * from './SideDialogTitle';
57
60
  export * from './SideDialogActions';
58
61
  export * from './SideDialogContent';
59
62
  export * from './SideDialogContentText';
63
+ export * from './Slide';
64
+ export * from './Zoom';
60
65
  export * from './Notification';
61
66
  export * from './LocalizationProvider';
62
67
  export * from './ContentState';
63
68
  export * from './Chevron';
64
- export * from './OverflowTypography';
package/index.d.ts CHANGED
@@ -16,10 +16,12 @@ export * from './DialogContent';
16
16
  export * from './DialogContentText';
17
17
  export * from './DialogTitle';
18
18
  export * from './DropdownButton';
19
+ export * from './Fade';
19
20
  export * from './FormControlLabel';
20
21
  export * from './FormHelperText';
21
22
  export * from './GlobalStyles';
22
23
  export * from './Grid';
24
+ export * from './Grow';
23
25
  export * from './IconButton';
24
26
  export * from './IconDropdownButton';
25
27
  export * from './hooks';
@@ -36,6 +38,7 @@ export * from './Menu';
36
38
  export * from './MenuItem';
37
39
  export * from './MenuList';
38
40
  export * from './MenuGroup';
41
+ export * from './OverflowTypography';
39
42
  export * from './Placeholder';
40
43
  export * from './Product';
41
44
  export * from './Profile';
@@ -57,8 +60,9 @@ export * from './SideDialogTitle';
57
60
  export * from './SideDialogActions';
58
61
  export * from './SideDialogContent';
59
62
  export * from './SideDialogContentText';
63
+ export * from './Slide';
64
+ export * from './Zoom';
60
65
  export * from './Notification';
61
66
  export * from './LocalizationProvider';
62
67
  export * from './ContentState';
63
68
  export * from './Chevron';
64
- export * from './OverflowTypography';
package/index.js CHANGED
@@ -32,10 +32,12 @@ __exportStar(require("./DialogContent"), exports);
32
32
  __exportStar(require("./DialogContentText"), exports);
33
33
  __exportStar(require("./DialogTitle"), exports);
34
34
  __exportStar(require("./DropdownButton"), exports);
35
+ __exportStar(require("./Fade"), exports);
35
36
  __exportStar(require("./FormControlLabel"), exports);
36
37
  __exportStar(require("./FormHelperText"), exports);
37
38
  __exportStar(require("./GlobalStyles"), exports);
38
39
  __exportStar(require("./Grid"), exports);
40
+ __exportStar(require("./Grow"), exports);
39
41
  __exportStar(require("./IconButton"), exports);
40
42
  __exportStar(require("./IconDropdownButton"), exports);
41
43
  __exportStar(require("./hooks"), exports);
@@ -52,6 +54,7 @@ __exportStar(require("./Menu"), exports);
52
54
  __exportStar(require("./MenuItem"), exports);
53
55
  __exportStar(require("./MenuList"), exports);
54
56
  __exportStar(require("./MenuGroup"), exports);
57
+ __exportStar(require("./OverflowTypography"), exports);
55
58
  __exportStar(require("./Placeholder"), exports);
56
59
  __exportStar(require("./Product"), exports);
57
60
  __exportStar(require("./Profile"), exports);
@@ -73,8 +76,9 @@ __exportStar(require("./SideDialogTitle"), exports);
73
76
  __exportStar(require("./SideDialogActions"), exports);
74
77
  __exportStar(require("./SideDialogContent"), exports);
75
78
  __exportStar(require("./SideDialogContentText"), exports);
79
+ __exportStar(require("./Slide"), exports);
80
+ __exportStar(require("./Zoom"), exports);
76
81
  __exportStar(require("./Notification"), exports);
77
82
  __exportStar(require("./LocalizationProvider"), exports);
78
83
  __exportStar(require("./ContentState"), exports);
79
84
  __exportStar(require("./Chevron"), exports);
80
- __exportStar(require("./OverflowTypography"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "0.44.0",
3
+ "version": "0.46.1",
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.46.1",
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 {};