@chtc/web-components 0.0.0-11 → 0.0.0-13

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 (42) hide show
  1. package/README.md +9 -1
  2. package/dist/Article/Article.d.ts +6 -0
  3. package/dist/Article/Article.d.ts.map +1 -0
  4. package/dist/Article/Article.js +20 -0
  5. package/dist/Article/Article.js.map +1 -0
  6. package/dist/Article/index.d.ts +2 -0
  7. package/dist/Article/index.d.ts.map +1 -0
  8. package/dist/Article/index.js +2 -0
  9. package/dist/Article/index.js.map +1 -0
  10. package/dist/ArticleCard/ArticleCard.d.ts +4 -0
  11. package/dist/ArticleCard/ArticleCard.d.ts.map +1 -0
  12. package/dist/ArticleCard/ArticleCard.js +15 -0
  13. package/dist/ArticleCard/ArticleCard.js.map +1 -0
  14. package/dist/ArticleCard/index.d.ts +2 -0
  15. package/dist/ArticleCard/index.d.ts.map +1 -0
  16. package/dist/ArticleCard/index.js +2 -0
  17. package/dist/ArticleCard/index.js.map +1 -0
  18. package/dist/HorizontalArticleCard/HorizontalArticleCard.d.ts +4 -0
  19. package/dist/HorizontalArticleCard/HorizontalArticleCard.d.ts.map +1 -0
  20. package/dist/HorizontalArticleCard/HorizontalArticleCard.js +11 -0
  21. package/dist/HorizontalArticleCard/HorizontalArticleCard.js.map +1 -0
  22. package/dist/HorizontalArticleCard/index.d.ts +2 -0
  23. package/dist/HorizontalArticleCard/index.d.ts.map +1 -0
  24. package/dist/HorizontalArticleCard/index.js +2 -0
  25. package/dist/HorizontalArticleCard/index.js.map +1 -0
  26. package/dist/TopStyledBlock/TopStyledBlock.d.ts +10 -0
  27. package/dist/TopStyledBlock/TopStyledBlock.d.ts.map +1 -0
  28. package/dist/TopStyledBlock/TopStyledBlock.js +10 -0
  29. package/dist/TopStyledBlock/TopStyledBlock.js.map +1 -0
  30. package/dist/TopStyledBlock/index.d.ts +2 -0
  31. package/dist/TopStyledBlock/index.d.ts.map +1 -0
  32. package/dist/TopStyledBlock/index.js +2 -0
  33. package/dist/TopStyledBlock/index.js.map +1 -0
  34. package/dist/index.d.ts +5 -0
  35. package/dist/index.d.ts.map +1 -0
  36. package/dist/index.js +5 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/types.d.ts +40 -0
  39. package/dist/types.d.ts.map +1 -0
  40. package/dist/types.js +5 -0
  41. package/dist/types.js.map +1 -0
  42. package/package.json +2 -1
package/README.md CHANGED
@@ -1,6 +1,14 @@
1
1
  # web-components
2
2
  PATh Web Components
3
3
 
4
+ View all components here: https://path-cc.io/web-components
5
+
6
+ ## Install
7
+
8
+ ```shell
9
+ npm install @chtc/web-components
10
+ ```
11
+
4
12
  Key Packages
5
13
  - nextjs
6
14
  - material-ui
@@ -11,4 +19,4 @@ Key Packages
11
19
 
12
20
  ```npm
13
21
  npm run storybook
14
- ```
22
+ ```
@@ -0,0 +1,6 @@
1
+ import { BackendArticle } from '../types';
2
+ declare const Article: ({ article }: {
3
+ article: BackendArticle;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default Article;
6
+ //# sourceMappingURL=Article.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Article.d.ts","sourceRoot":"","sources":["../../src/Article/Article.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAA;AAEvC,QAAA,MAAM,OAAO,gBAAe;IAAC,OAAO,EAAE,cAAc,CAAA;CAAC,4CAiCpD,CAAA;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Typography, Box, Container } from '@mui/material';
3
+ import Balancer from "react-wrap-balancer";
4
+ import Markdown from "react-markdown";
5
+ import rehypeRaw from "rehype-raw";
6
+ const Article = ({ article }) => {
7
+ return (_jsx(Container, { maxWidth: "md", children: _jsxs(Box, { pt: 6, children: [_jsxs(Box, { textAlign: "center", pb: 2, children: [_jsx(Box, { pb: 6, children: _jsx(Typography, { variant: "h3", children: _jsx(Balancer, { children: article.title }) }) }), _jsx(Box, { height: "1rem", borderRadius: "10px", bgcolor: "primary.main" }), _jsxs(Box, { pt: 1, display: "flex", justifyContent: "space-between", children: [_jsx(Typography, { variant: "h5", children: article.author }), _jsx(Typography, { variant: "h5", children: article.date.toLocaleDateString() })] })] }), _jsx(Markdown, { rehypePlugins: [rehypeRaw], components: {
8
+ h1: ({ children }) => _jsx(Typography, { variant: "h1", children: children }),
9
+ h2: ({ children }) => _jsx(Typography, { variant: "h1", children: children }),
10
+ h3: ({ children }) => _jsx(Typography, { variant: "h1", children: children }),
11
+ h4: ({ children }) => _jsx(Typography, { variant: "h1", children: children }),
12
+ h5: ({ children }) => _jsx(Typography, { variant: "h1", children: children }),
13
+ h6: ({ children }) => _jsx(Typography, { variant: "h1", children: children }),
14
+ p: ({ children }) => _jsx(Typography, { variant: "body1", children: children }),
15
+ a: ({ children, href }) => _jsx("a", { style: { color: "#0885ff" }, href: href, children: children }),
16
+ img: ({ src, alt }) => _jsx("img", { style: { maxWidth: "100%", height: "auto" }, src: src, alt: alt }),
17
+ }, children: article.content })] }) }));
18
+ };
19
+ export default Article;
20
+ //# sourceMappingURL=Article.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Article.js","sourceRoot":"","sources":["../../src/Article/Article.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAE,GAAG,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AACzD,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAC3C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,MAAM,OAAO,GAAG,CAAC,EAAC,OAAO,EAA4B,EAAE,EAAE;IACxD,OAAO,CACL,KAAC,SAAS,IAAC,QAAQ,EAAE,IAAI,YACxB,MAAC,GAAG,IAAC,EAAE,EAAE,CAAC,aACT,MAAC,GAAG,IAAC,SAAS,EAAE,Q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QAAQ,EAAC,EAAE,EAAE,CAAC,KAAC,UAAU,IAAC,OAAO,EAAE,IAAI,YAAG,QAAQ,GAAc;wBACtE,CAAC,EAAE,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE,CAAC,KAAC,UAAU,IAAC,OAAO,EAAE,OAAO,YAAG,QAAQ,GAAc;wBACxE,CAAC,EAAE,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,EAAE,EAAE,CAAC,YAAG,KAAK,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC,EAAE,IAAI,EAAE,IAAI,YAAG,QAAQ,GAAK;wBACjF,GAAG,EAAE,CAAC,EAAC,GAAG,EAAE,GAAG,EAAC,EAAE,EAAE,CAAC,cAAK,KAAK,EAAE,EAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAI;qBAC3F,YAED,OAAO,CAAC,OAAO,GACN,IACN,GACK,CACb,CAAA;AACF,CAAC,CAAA;AAED,eAAe,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './Article';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Article/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './Article';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Article/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ArticleCardProps } from "../types";
2
+ declare const ArticleCard: ({ href, article: { image, title, excerpt } }: ArticleCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ArticleCard;
4
+ //# sourceMappingURL=ArticleCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArticleCard.d.ts","sourceRoot":"","sources":["../../src/ArticleCard/ArticleCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAI1C,QAAA,MAAM,WAAW,iDAA+C,gBAAgB,4CA2B/E,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Typography, Box } from '@mui/material';
3
+ import Balancer from "react-wrap-balancer";
4
+ import Link from "next/link";
5
+ import TopStyledBlock from "../TopStyledBlock/TopStyledBlock";
6
+ const ArticleCard = ({ href, article: { image, title, excerpt } }) => {
7
+ const style = {
8
+ transition: "box-shadow .2s",
9
+ boxShadow: "grey 1px 1px 3px",
10
+ "&:hover": { boxShadow: "grey 1px 1px 5px" },
11
+ };
12
+ return (_jsx(Box, { borderRadius: 2, overflow: "hidden", sx: style, children: _jsxs(Link, { href: href, children: [_jsx(Box, { children: _jsx("img", { style: { objectFit: "cover", width: "100%", aspectRatio: 2 }, src: image.path, alt: image.alt }) }), _jsx(Box, { children: _jsxs(Box, { pl: 2, p: 2, children: [_jsx(Box, { py: 1, pt: 1, children: _jsx(TopStyledBlock, { height: ".25rem", width: "5rem", offset: "-.75rem", children: _jsx(Typography, { variant: "h6", sx: { fontWeight: "bold" }, children: _jsx(Balancer, { children: title }) }) }) }), _jsx(Typography, { variant: "body1", children: excerpt })] }) })] }) }));
13
+ };
14
+ export default ArticleCard;
15
+ //# sourceMappingURL=ArticleCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArticleCard.js","sourceRoot":"","sources":["../../src/ArticleCard/ArticleCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,UAAU,EAAE,GAAG,EAAC,MAAM,eAAe,CAAC;AAC9C,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAE3C,OAAO,IAAI,MAAM,W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ourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ArticleCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ArticleCard';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ArticleCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { ArticleCardProps } from "../types";
2
+ declare const HorizontalArticleCard: ({ href, article: { image, title, excerpt } }: ArticleCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default HorizontalArticleCard;
4
+ //# sourceMappingURL=HorizontalArticleCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalArticleCard.d.ts","sourceRoot":"","sources":["../../src/HorizontalArticleCard/HorizontalArticleCard.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAE1C,QAAA,MAAM,qBAAqB,iDAA8C,gBAAgB,4CA8BxF,CAAA;AAED,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Grid, Typography, Box } from '@mui/material';
3
+ import Balancer from "react-wrap-balancer";
4
+ import TopStyledBlock from "../TopStyledBlock";
5
+ import Link from "next/link";
6
+ import { ArrowRight } from "@mui/icons-material";
7
+ const HorizontalArticleCard = ({ href, article: { image, title, excerpt } }) => {
8
+ return (_jsx(Box, { sx: { display: { xs: 'none', md: 'block' } }, children: _jsxs(Grid, { container: true, children: [_jsx(Grid, { item: true, xs: 6, children: _jsx("img", { style: { objectFit: "cover", width: "100%", height: "100%", aspectRatio: 2 }, src: image.path, alt: image.alt }) }), _jsx(Grid, { xs: 6, display: "flex", children: _jsxs(Box, { width: "100%", pl: 2, p: 3, display: "flex", flexDirection: "column", bgcolor: "#cfe4ff52", children: [_jsx(Box, { py: 1, children: _jsx(TopStyledBlock, { height: ".25rem", width: "5rem", offset: "-.75rem", children: _jsx(Typography, { variant: "h5", children: _jsx(Balancer, { children: title }) }) }) }), _jsx(Typography, { variant: "body1", children: excerpt }), _jsx(Box, { sx: { marginTop: "auto", paddingTop: "2rem", fontWeight: "300" }, children: _jsx(Box, { sx: { color: "#0885ff" }, children: _jsxs(Link, { href: href, children: [_jsx(Typography, { variant: "body1", sx: { display: "inline", paddingRight: ".2rem" }, children: "Read More" }), _jsx(ArrowRight, { height: 18, width: 24, fill: "currentColor" })] }) }) })] }) })] }) }));
9
+ };
10
+ export default HorizontalArticleCard;
11
+ //# sourceMappingURL=HorizontalArticleCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HorizontalArticleCard.js","sourceRoot":"","sources":["../../src/HorizontalArticleCard/HorizontalArticleCard.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAC,MAAM,eAAe,CAAC;AACpD,OAAO,QAAQ,MAAM,qBAAqB,CAAC;AAE3C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAC,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAG/C,MAAM,qBAAqB,GAAG,CAAC,EAAC,IAAI,EAAE,OAAO,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAC,EAAmB,EAAE,EAAE;IAC5F,OAAO,CACL,KAAC,GAAG,IAAC,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,YAChD,MAAC,IAAI,IAAC,SAAS,mBACd,KAAC,IAAI,IAAC,IAAI,QAAC,EAAE,EAAE,CAAC,Y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;AAED,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './HorizontalArticleCard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/HorizontalArticleCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './HorizontalArticleCard';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/HorizontalArticleCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from "react";
2
+ export interface TopStyledBlockProps {
3
+ children: ReactNode;
4
+ width?: string;
5
+ offset?: string;
6
+ height?: string;
7
+ }
8
+ declare const TopStyledBlock: React.FC<TopStyledBlockProps>;
9
+ export default TopStyledBlock;
10
+ //# sourceMappingURL=TopStyledBlock.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopStyledBlock.d.ts","sourceRoot":"","sources":["../../src/TopStyledBlock/TopStyledBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAGhC,MAAM,WAAW,mBAAmB;IACnC,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;CACf;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgBjD,CAAA;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Box } from "@mui/material";
3
+ const TopStyledBlock = ({ children, width, offset, height }) => {
4
+ width = width ? width : "5rem";
5
+ height = height ? height : "1rem";
6
+ offset = offset ? offset : "-2rem";
7
+ return (_jsxs(Box, { display: "flex", flexDirection: "column", children: [_jsx(Box, { height: 0, children: _jsx(Box, { bgcolor: "primary.main", width: width, height: height, mt: offset, borderRadius: 2 }) }), _jsx(Box, { children: children })] }));
8
+ };
9
+ export default TopStyledBlock;
10
+ //# sourceMappingURL=TopStyledBlock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopStyledBlock.js","sourceRoot":"","sources":["../../src/TopStyledBlock/TopStyledBlock.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,GAAG,EAAC,MAAM,eAAe,CAAC;AASlC,MAAM,cAAc,GAAkC,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAC,EAAE,EAAE;IAE3F,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAA;IAC9B,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAA;IACjC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;IAElC,OAAO,CACL,MAAC,GAAG,IAAC,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,aAC5C,KAAC,GAAG,IAAC,MAAM,EAAE,CAAC,YACb,KAAC,GAAG,IAAC,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,CAAC,GAAQ,GAC1F,EACN,KAAC,GAAG,cACF,QAAQ,GACJ,IACD,CACP,CAAA;AACF,CAAC,CAAA;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './TopStyledBlock';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/TopStyledBlock/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './TopStyledBlock';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/TopStyledBlock/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { default as ArticleCard } from './ArticleCard';
2
+ export { default as HorizontalArticleCard } from './HorizontalArticleCard';
3
+ export { default as TopStyledBlock } from './TopStyledBlock';
4
+ export { default as Article } from './Article';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export { default as ArticleCard } from './ArticleCard';
2
+ export { default as HorizontalArticleCard } from './HorizontalArticleCard';
3
+ export { default as TopStyledBlock } from './TopStyledBlock';
4
+ export { default as Article } from './Article';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Article Types
3
+ */
4
+ export interface ArticleCardProps {
5
+ href: string;
6
+ article: {
7
+ title: string;
8
+ excerpt: string;
9
+ image: {
10
+ path: string;
11
+ alt: string;
12
+ };
13
+ };
14
+ }
15
+ type website = "htcondor" | "path" | "osg" | "chtc" | "pelican";
16
+ type tag = "chtc_featured_article";
17
+ type article_type = "news" | "user";
18
+ export interface Image {
19
+ path: string;
20
+ alt: string;
21
+ }
22
+ export interface Article {
23
+ content: string;
24
+ title: string;
25
+ author: string;
26
+ date: Date;
27
+ publish_on: website[];
28
+ type: article_type;
29
+ tag: tag;
30
+ image: Image;
31
+ excerpt: string;
32
+ banner_src: string;
33
+ banner_alt: string;
34
+ }
35
+ export interface BackendArticle extends Article {
36
+ slug: string[];
37
+ path: string;
38
+ }
39
+ export {};
40
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE;YACN,IAAI,EAAE,MAAM,CAAC;YACb,GAAG,EAAE,MAAM,CAAC;SACZ,CAAA;KACD,CAAC;CACF;AAED,KAAK,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAA;AAC/D,KAAK,GAAG,GAAG,uBAAuB,CAAA;AAClC,KAAK,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAEpC,MAAM,WAAW,KAAK;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,OAAO;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,OAAO,EAAE,CAAC;IACtB,IAAI,EAAE,YAAY,CAAC;IACnB,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAe,SAAQ,OAAO;IAC9C,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACb"}
package/dist/types.js ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Article Types
3
+ */
4
+ export {};
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chtc/web-components",
3
- "version": "0.0.0-11",
3
+ "version": "0.0.0-13",
4
4
  "description": "PATh Web Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,6 +41,7 @@
41
41
  "@emotion/styled": "^11.11.5",
42
42
  "@mui/icons-material": "^5.16.0",
43
43
  "@mui/material": "^5.14.19",
44
+ "gray-matter": "^4.0.3",
44
45
  "react-markdown": "^9.0.1",
45
46
  "react-wrap-balancer": "^1.1.1",
46
47
  "rehype-raw": "^7.0.0"