@troychaplin/parlour-ui 0.1.0 → 0.2.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.
- package/README.md +141 -145
- package/dist/_shared/client-b7IZMCzB.cjs +1 -0
- package/dist/_shared/client-gLQ31wVz.mjs +176 -0
- package/dist/_shared/shared-C56WCOfJ.cjs +1 -0
- package/dist/_shared/shared-CT4yszFm.mjs +546 -0
- package/dist/components/BrandIcon/BrandIcon.d.ts +9 -0
- package/dist/components/BrandIcon/BrandIcon.d.ts.map +1 -0
- package/dist/components/BrandIcon/brandIcons.d.ts +88 -0
- package/dist/components/BrandIcon/brandIcons.d.ts.map +1 -0
- package/dist/components/BrandIcon/index.cjs +1 -0
- package/dist/components/BrandIcon/index.d.ts +99 -0
- package/dist/components/BrandIcon/index.d.ts.map +1 -0
- package/dist/components/BrandIcon/index.mjs +2 -0
- package/dist/components/Card/Card.d.ts +5 -2
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/index.cjs +1 -1
- package/dist/components/Card/index.d.ts +6 -2
- package/dist/components/Card/index.mjs +2 -21
- package/dist/components/Card/styles.css +123 -26
- package/dist/components/Card/styles.scss +123 -26
- package/dist/components/CodeBlock/index.cjs +1 -1
- package/dist/components/CodeBlock/index.d.ts +1 -0
- package/dist/components/CodeBlock/index.mjs +1 -1
- package/dist/components/Column/index.cjs +1 -1
- package/dist/components/Column/index.mjs +1 -1
- package/dist/components/Container/index.d.ts +1 -0
- package/dist/components/Container/styles.css +6 -0
- package/dist/components/Container/styles.scss +6 -0
- package/dist/components/FlexGroup/index.cjs +1 -1
- package/dist/components/FlexGroup/index.mjs +1 -1
- package/dist/components/GridGroup/index.cjs +1 -1
- package/dist/components/GridGroup/index.mjs +1 -1
- package/dist/components/Hero/index.cjs +1 -1
- package/dist/components/Hero/index.mjs +1 -1
- package/dist/components/HeroHeader/styles.css +2 -1
- package/dist/components/HeroHeader/styles.scss +2 -1
- package/dist/components/InfoBar/index.cjs +1 -1
- package/dist/components/InfoBar/index.mjs +1 -1
- package/dist/components/Main/Main.d.ts +1 -1
- package/dist/components/Main/Main.d.ts.map +1 -1
- package/dist/components/Main/index.cjs +1 -1
- package/dist/components/Main/index.d.ts +1 -1
- package/dist/components/Main/index.mjs +6 -4
- package/dist/components/Main/styles.css +4 -0
- package/dist/components/Main/styles.scss +4 -0
- package/dist/components/ProjectCard/ProjectCard.d.ts +14 -0
- package/dist/components/ProjectCard/ProjectCard.d.ts.map +1 -0
- package/dist/components/ProjectCard/index.cjs +1 -0
- package/dist/components/ProjectCard/index.d.ts +151 -0
- package/dist/components/ProjectCard/index.d.ts.map +1 -0
- package/dist/components/ProjectCard/index.mjs +51 -0
- package/dist/components/ProjectCard/styles.css +95 -0
- package/dist/components/ProjectCard/styles.scss +95 -0
- package/dist/components/SiteFooter/SiteFooter.d.ts +13 -0
- package/dist/components/SiteFooter/SiteFooter.d.ts.map +1 -0
- package/dist/components/SiteFooter/index.cjs +1 -0
- package/dist/components/SiteFooter/index.d.ts +15 -0
- package/dist/components/SiteFooter/index.d.ts.map +1 -0
- package/dist/components/SiteFooter/index.mjs +66 -0
- package/dist/components/SiteFooter/styles.css +86 -0
- package/dist/components/SiteFooter/styles.scss +86 -0
- package/dist/components/SiteHeader/index.cjs +1 -1
- package/dist/components/SiteHeader/index.mjs +1 -1
- package/dist/components/SkipLink/SkipLink.d.ts +8 -0
- package/dist/components/SkipLink/SkipLink.d.ts.map +1 -0
- package/dist/components/SkipLink/index.cjs +1 -0
- package/dist/components/SkipLink/index.d.ts +11 -0
- package/dist/components/SkipLink/index.d.ts.map +1 -0
- package/dist/components/SkipLink/index.mjs +14 -0
- package/dist/components/SkipLink/styles.css +29 -0
- package/dist/components/SkipLink/styles.scss +29 -0
- package/dist/components/_shared/BrandIcon-CRT5CX33.cjs +1 -0
- package/dist/components/_shared/BrandIcon-CcelVr9Y.mjs +111 -0
- package/dist/components/_shared/Card-CHHpCLeB.cjs +1 -0
- package/dist/components/_shared/Card-HwBpJDVj.mjs +34 -0
- package/dist/components/_shared/{FlexGroup-CgPbyEha.cjs → FlexGroup-D9sTJeh4.cjs} +1 -1
- package/dist/components/_shared/{FlexGroup-CnOrx2MF.mjs → FlexGroup-DorFgrVL.mjs} +1 -1
- package/dist/components/_shared/parlour-tokens-B-n0blwG.cjs +1 -0
- package/dist/components/_shared/{parlour-tokens-CHt4gBUd.mjs → parlour-tokens-DpDDQf0L.mjs} +2 -0
- package/dist/components/_shared/propClasses-BWhHB1BQ.cjs +1 -0
- package/dist/components/_shared/{propClasses-R9s_eOfA.mjs → propClasses-DXjiKI33.mjs} +2 -1
- package/dist/components/tokens/index.cjs +1 -1
- package/dist/components/tokens/index.mjs +1 -1
- package/dist/data/ProjectData.d.ts +3 -0
- package/dist/data/ProjectData.d.ts.map +1 -0
- package/dist/graphics/parlour-icon.svg +27 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/style.css +1 -1
- package/dist/styles/c2b/parlour-tokens.d.ts +1 -1
- package/dist/styles/parlour-tokens.css +1 -0
- package/dist/styles/parlour-tokens.d.ts +1 -1
- package/dist/styles/parlour-tokens.js +2 -1
- package/dist/styles/parlour-tokens.scss +1 -0
- package/dist/utils/propClasses.d.ts +2 -0
- package/dist/utils/propClasses.d.ts.map +1 -1
- package/dist/wordpress/block-theme.css +1 -0
- package/dist/wordpress/hybrid-theme.css +1 -0
- package/package.json +1 -1
- package/dist/_shared/client-CLAcY4nN.cjs +0 -1
- package/dist/_shared/client-CsCPbj42.mjs +0 -93
- package/dist/_shared/shared-B07rlYN8.cjs +0 -1
- package/dist/_shared/shared-DZTw1JIu.mjs +0 -400
- package/dist/components/_shared/parlour-tokens-BT0frVnY.cjs +0 -1
- package/dist/components/_shared/propClasses-CLbmpfVJ.cjs +0 -1
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
margin-top: 0;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
.parlour-container--pale,
|
|
48
49
|
.parlour-container--light,
|
|
49
50
|
.parlour-container--medium,
|
|
50
51
|
.parlour-container--dark,
|
|
@@ -52,6 +53,11 @@
|
|
|
52
53
|
padding-block: var(--parlour--spacing-5-x-large);
|
|
53
54
|
}
|
|
54
55
|
|
|
56
|
+
.parlour-container--pale {
|
|
57
|
+
background-color: var(--parlour--color-neutral-50);
|
|
58
|
+
border: 1px solid var(--parlour--color-neutral-50);
|
|
59
|
+
}
|
|
60
|
+
|
|
55
61
|
.parlour-container--light {
|
|
56
62
|
background-color: var(--parlour--color-neutral-200);
|
|
57
63
|
}
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
margin-top: 0;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
+
.parlour-container--pale,
|
|
48
49
|
.parlour-container--light,
|
|
49
50
|
.parlour-container--medium,
|
|
50
51
|
.parlour-container--dark,
|
|
@@ -52,6 +53,11 @@
|
|
|
52
53
|
padding-block: var(--parlour--spacing-5-x-large);
|
|
53
54
|
}
|
|
54
55
|
|
|
56
|
+
.parlour-container--pale {
|
|
57
|
+
background-color: var(--parlour--color-neutral-50);
|
|
58
|
+
border: 1px solid var(--parlour--color-neutral-50);
|
|
59
|
+
}
|
|
60
|
+
|
|
55
61
|
.parlour-container--light {
|
|
56
62
|
background-color: var(--parlour--color-neutral-200);
|
|
57
63
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/FlexGroup-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/FlexGroup-D9sTJeh4.cjs");exports.FlexGroup=e.t;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../_shared/FlexGroup-
|
|
1
|
+
import { t as e } from "../_shared/FlexGroup-DorFgrVL.mjs";
|
|
2
2
|
export { e as FlexGroup };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/propClasses-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/propClasses-BWhHB1BQ.cjs");let t=require("react/jsx-runtime");var n=({children:n,as:r=`div`,columns:i=3,gap:a=`medium`,rowGap:o,align:s,maxWidth:c,className:l,...u})=>{let d=r,f=[`parlour-layout parlour-grid-group`,`parlour-grid-group--columns-${i}`,`parlour-grid-group--gap-${e.s[a]}`,o&&`parlour-grid-group--row-gap-${e.s[o]}`,s&&`parlour-grid-group--align-${e.r[s]}`,c&&e.o[c],l].filter(Boolean).join(` `);return(0,t.jsx)(d,{className:f,role:r===`ul`||r===`ol`?`list`:void 0,...u,children:n})};exports.GridGroup=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e, r as t, s as n } from "../_shared/propClasses-
|
|
1
|
+
import { o as e, r as t, s as n } from "../_shared/propClasses-DXjiKI33.mjs";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/GridGroup/GridGroup.tsx
|
|
4
4
|
var i = ({ children: i, as: a = "div", columns: o = 3, gap: s = "medium", rowGap: c, align: l, maxWidth: u, className: d, ...f }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs"),t=require("../_shared/Container-Bl4f1ZwJ.cjs"),n=require("../_shared/FlexGroup-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs"),t=require("../_shared/Container-Bl4f1ZwJ.cjs"),n=require("../_shared/FlexGroup-D9sTJeh4.cjs");let r=require("react");r=e.t(r,1);let i=require("react/jsx-runtime");var a=({className:e=``,children:r})=>{let a=[`parlour-hero`,e].filter(Boolean).join(` `);return(0,i.jsx)(t.t,{as:`section`,className:a,maxWidth:`alignfull`,contentWidth:`alignwide`,children:(0,i.jsx)(n.t,{gap:`normal`,maxWidth:`alignwide`,justify:`space-between`,align:`center`,children:r})})};exports.Hero=a;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../_shared/Container-OGjfScEb.mjs";
|
|
2
|
-
import { t } from "../_shared/FlexGroup-
|
|
2
|
+
import { t } from "../_shared/FlexGroup-DorFgrVL.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
//#region src/components/Hero/Hero.tsx
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
font-size: var(--parlour--font-size-medium);
|
|
19
19
|
font-weight: var(--parlour--font-weight-light);
|
|
20
20
|
font-style: italic;
|
|
21
|
-
padding-bottom: var(--parlour--spacing-
|
|
21
|
+
padding-bottom: var(--parlour--spacing-3-x-large);
|
|
22
|
+
margin: 0;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
.parlour-hero-header ul.parlour-hero-header__stats {
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
font-size: var(--parlour--font-size-medium);
|
|
19
19
|
font-weight: var(--parlour--font-weight-light);
|
|
20
20
|
font-style: italic;
|
|
21
|
-
padding-bottom: var(--parlour--spacing-
|
|
21
|
+
padding-bottom: var(--parlour--spacing-3-x-large);
|
|
22
|
+
margin: 0;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
.parlour-hero-header ul.parlour-hero-header__stats {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs"),t=require("../_shared/FlexGroup-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs"),t=require("../_shared/FlexGroup-D9sTJeh4.cjs");let n=require("react");n=e.t(n,1);let r=require("react/jsx-runtime");var i=864e5,a=e=>(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())-Date.UTC(e.getFullYear(),0,0))/i,o=e=>[e.getFullYear(),e.getMonth()+1,e.getDate()].map(e=>String(e).padStart(2,`0`)).join(`-`),s=({className:e=``,children:n,date:i=new Date})=>{let s=[`parlour-infobar`,e].filter(Boolean).join(` `),c=i.toLocaleDateString(`en-US`,{month:`long`,day:`numeric`,year:`numeric`});return(0,r.jsx)(`div`,{className:s,children:(0,r.jsxs)(t.t,{gap:`normal`,maxWidth:`alignwide`,justify:`space-between`,align:`center`,children:[(0,r.jsx)(`p`,{children:`Building since 2005`}),(0,r.jsxs)(`p`,{children:[`Day `,a(i),` `,(0,r.jsx)(`span`,{"aria-hidden":`true`,children:`•`}),` `,(0,r.jsx)(`time`,{dateTime:o(i),children:c})]}),n]})})};exports.InfoBar=s;
|
|
@@ -4,5 +4,5 @@ export interface MainProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
4
4
|
hasPadding?: boolean;
|
|
5
5
|
className?: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const Main: ({ children, hasPadding, className, ...rest }: MainProps) => React.JSX.Element;
|
|
7
|
+
export declare const Main: ({ children, hasPadding, className, id, tabIndex, ...rest }: MainProps) => React.JSX.Element;
|
|
8
8
|
//# sourceMappingURL=Main.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../src/components/Main/Main.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAChE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,IAAI,GAAI,
|
|
1
|
+
{"version":3,"file":"Main.d.ts","sourceRoot":"","sources":["../../../src/components/Main/Main.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAChE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,IAAI,GAAI,4DAOlB,SAAS,sBAYX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs");let t=require("react");t=e.t(t,1);let n=require("react/jsx-runtime");var r=({children:e,hasPadding:t=!0,className:r,...
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs");let t=require("react");t=e.t(t,1);let n=require("react/jsx-runtime");var r=({children:e,hasPadding:t=!0,className:r,id:i=`main`,tabIndex:a=-1,...o})=>{let s=[`parlour-main`,t&&`parlour-main--padding`,r].filter(Boolean).join(` `);return(0,n.jsx)(`main`,{className:s,id:i,tabIndex:a,...o,children:(0,n.jsx)(`div`,{className:`alignfull has-global-padding is-layout-constrained entry-content`,children:e})})};exports.Main=r;
|
|
@@ -5,6 +5,6 @@ interface MainProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
5
5
|
hasPadding?: boolean;
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
|
-
declare const Main: ({ children, hasPadding, className, ...rest }: MainProps) => React.JSX.Element;
|
|
8
|
+
declare const Main: ({ children, hasPadding, className, id, tabIndex, ...rest }: MainProps) => React.JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { Main };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/Main/Main.tsx
|
|
4
|
-
var t = ({ children: t, hasPadding: n = !0, className: r,
|
|
5
|
-
let
|
|
4
|
+
var t = ({ children: t, hasPadding: n = !0, className: r, id: i = "main", tabIndex: a = -1, ...o }) => {
|
|
5
|
+
let s = [
|
|
6
6
|
"parlour-main",
|
|
7
7
|
n && "parlour-main--padding",
|
|
8
8
|
r
|
|
9
9
|
].filter(Boolean).join(" ");
|
|
10
10
|
return /* @__PURE__ */ e("main", {
|
|
11
|
-
className:
|
|
12
|
-
|
|
11
|
+
className: s,
|
|
12
|
+
id: i,
|
|
13
|
+
tabIndex: a,
|
|
14
|
+
...o,
|
|
13
15
|
children: /* @__PURE__ */ e("div", {
|
|
14
16
|
className: "alignfull has-global-padding is-layout-constrained entry-content",
|
|
15
17
|
children: t
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CardProps } from '../Card/Card';
|
|
2
|
+
import { BrandIconName } from '../BrandIcon/brandIcons';
|
|
3
|
+
export interface ProjectCardProps extends Omit<CardProps, 'children' | 'title' | 'linkProps'> {
|
|
4
|
+
title: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
type?: string;
|
|
7
|
+
icon?: BrandIconName;
|
|
8
|
+
version?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
footer?: string;
|
|
11
|
+
headingLevel?: 'h2' | 'h3' | 'h4';
|
|
12
|
+
}
|
|
13
|
+
export declare const ProjectCard: ({ title, href, type, icon, version, description, footer, headingLevel, className, ...rest }: ProjectCardProps) => import('react').JSX.Element;
|
|
14
|
+
//# sourceMappingURL=ProjectCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProjectCard.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectCard/ProjectCard.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,GAAG,WAAW,CAAC;IACzF,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACrC;AAED,eAAO,MAAM,WAAW,GAAI,6FAWzB,gBAAgB,gCAqDlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/BrandIcon-CRT5CX33.cjs"),t=require("../_shared/Card-CHHpCLeB.cjs");let n=require("react"),r=require("react/jsx-runtime");var i=({title:i,href:a,type:o,icon:s,version:c,description:l,footer:u,headingLevel:d=`h3`,className:f,...p})=>{let m=d,h=(0,n.useId)(),g=[`parlour-project-card`,f].filter(Boolean).join(` `),_=(0,r.jsxs)(r.Fragment,{children:[(o||s)&&(0,r.jsxs)(`div`,{className:`parlour-project-card__meta`,children:[o&&(0,r.jsx)(`p`,{className:`parlour-project-card__type`,children:o}),s&&(0,r.jsx)(e.t,{className:`parlour-project-card__icon`,name:s,label:e.n[s].title})]}),(0,r.jsx)(m,{className:`parlour-project-card__title`,id:h,children:i}),c&&(0,r.jsx)(`p`,{className:`parlour-project-card__version`,children:c}),l&&(0,r.jsx)(`p`,{className:`parlour-project-card__description`,children:l}),(u||a)&&(0,r.jsxs)(`div`,{className:`parlour-project-card__footer`,children:[(0,r.jsx)(`span`,{children:u}),a&&(0,r.jsx)(`span`,{className:`parlour-project-card__arrow`,"aria-hidden":`true`,children:`→`})]})]});return(0,r.jsx)(t.t,{className:g,borderRadius:`sm`,href:a,linkProps:{"aria-labelledby":h},...p,children:_})};exports.ProjectCard=i;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
|
|
3
|
+
declare const spacingClasses: {
|
|
4
|
+
'3-x-small': "3-x-small";
|
|
5
|
+
'2-x-small': "2-x-small";
|
|
6
|
+
'x-small': "x-small";
|
|
7
|
+
small: "small";
|
|
8
|
+
normal: "normal";
|
|
9
|
+
medium: "medium";
|
|
10
|
+
large: "large";
|
|
11
|
+
'x-large': "x-large";
|
|
12
|
+
'2-x-large': "2-x-large";
|
|
13
|
+
'3-x-large': "3-x-large";
|
|
14
|
+
'4-x-large': "4-x-large";
|
|
15
|
+
'5-x-large': "5-x-large";
|
|
16
|
+
none: string;
|
|
17
|
+
};
|
|
18
|
+
declare const borderRadiusClasses: {
|
|
19
|
+
sm: "sm";
|
|
20
|
+
md: "md";
|
|
21
|
+
lg: "lg";
|
|
22
|
+
xl: "xl";
|
|
23
|
+
full: "full";
|
|
24
|
+
none: string;
|
|
25
|
+
};
|
|
26
|
+
declare const backgroundColorClasses: {
|
|
27
|
+
pale: string;
|
|
28
|
+
light: string;
|
|
29
|
+
medium: string;
|
|
30
|
+
dark: string;
|
|
31
|
+
white: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
type surfaceKeys = keyof typeof backgroundColorClasses;
|
|
35
|
+
type borderRadiusKeys = keyof typeof borderRadiusClasses;
|
|
36
|
+
type spacingKeys = keyof typeof spacingClasses;
|
|
37
|
+
interface CardProps extends React.HTMLAttributes<HTMLElement> {
|
|
38
|
+
children: React.ReactNode;
|
|
39
|
+
as?: 'div' | 'article' | 'li';
|
|
40
|
+
backgroundColor?: surfaceKeys;
|
|
41
|
+
border?: boolean;
|
|
42
|
+
borderColor?: surfaceKeys;
|
|
43
|
+
borderRadius?: borderRadiusKeys;
|
|
44
|
+
paddingInline?: spacingKeys;
|
|
45
|
+
paddingBlock?: spacingKeys;
|
|
46
|
+
href?: string;
|
|
47
|
+
linkProps?: Omit<React.ComponentPropsWithoutRef<'a'>, 'href' | 'className' | 'children'>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare const brandIcons: {
|
|
51
|
+
react: {
|
|
52
|
+
title: string;
|
|
53
|
+
path: string;
|
|
54
|
+
};
|
|
55
|
+
wordpress: {
|
|
56
|
+
title: string;
|
|
57
|
+
path: string;
|
|
58
|
+
};
|
|
59
|
+
nextjs: {
|
|
60
|
+
title: string;
|
|
61
|
+
path: string;
|
|
62
|
+
};
|
|
63
|
+
storybook: {
|
|
64
|
+
title: string;
|
|
65
|
+
path: string;
|
|
66
|
+
};
|
|
67
|
+
npm: {
|
|
68
|
+
title: string;
|
|
69
|
+
path: string;
|
|
70
|
+
};
|
|
71
|
+
typescript: {
|
|
72
|
+
title: string;
|
|
73
|
+
path: string;
|
|
74
|
+
};
|
|
75
|
+
javascript: {
|
|
76
|
+
title: string;
|
|
77
|
+
path: string;
|
|
78
|
+
};
|
|
79
|
+
php: {
|
|
80
|
+
title: string;
|
|
81
|
+
path: string;
|
|
82
|
+
};
|
|
83
|
+
nodejs: {
|
|
84
|
+
title: string;
|
|
85
|
+
path: string;
|
|
86
|
+
};
|
|
87
|
+
vite: {
|
|
88
|
+
title: string;
|
|
89
|
+
path: string;
|
|
90
|
+
};
|
|
91
|
+
sass: {
|
|
92
|
+
title: string;
|
|
93
|
+
path: string;
|
|
94
|
+
};
|
|
95
|
+
github: {
|
|
96
|
+
title: string;
|
|
97
|
+
path: string;
|
|
98
|
+
};
|
|
99
|
+
laravel: {
|
|
100
|
+
title: string;
|
|
101
|
+
path: string;
|
|
102
|
+
};
|
|
103
|
+
packagist: {
|
|
104
|
+
title: string;
|
|
105
|
+
path: string;
|
|
106
|
+
};
|
|
107
|
+
x: {
|
|
108
|
+
title: string;
|
|
109
|
+
path: string;
|
|
110
|
+
};
|
|
111
|
+
bluesky: {
|
|
112
|
+
title: string;
|
|
113
|
+
path: string;
|
|
114
|
+
};
|
|
115
|
+
linkedin: {
|
|
116
|
+
title: string;
|
|
117
|
+
path: string;
|
|
118
|
+
};
|
|
119
|
+
facebook: {
|
|
120
|
+
title: string;
|
|
121
|
+
path: string;
|
|
122
|
+
};
|
|
123
|
+
instagram: {
|
|
124
|
+
title: string;
|
|
125
|
+
path: string;
|
|
126
|
+
};
|
|
127
|
+
youtube: {
|
|
128
|
+
title: string;
|
|
129
|
+
path: string;
|
|
130
|
+
};
|
|
131
|
+
tiktok: {
|
|
132
|
+
title: string;
|
|
133
|
+
path: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
type BrandIconName = keyof typeof brandIcons;
|
|
137
|
+
|
|
138
|
+
interface ProjectCardProps extends Omit<CardProps, 'children' | 'title' | 'linkProps'> {
|
|
139
|
+
title: string;
|
|
140
|
+
href?: string;
|
|
141
|
+
type?: string;
|
|
142
|
+
icon?: BrandIconName;
|
|
143
|
+
version?: string;
|
|
144
|
+
description?: string;
|
|
145
|
+
footer?: string;
|
|
146
|
+
headingLevel?: 'h2' | 'h3' | 'h4';
|
|
147
|
+
}
|
|
148
|
+
declare const ProjectCard: ({ title, href, type, icon, version, description, footer, headingLevel, className, ...rest }: ProjectCardProps) => react.JSX.Element;
|
|
149
|
+
|
|
150
|
+
export { ProjectCard };
|
|
151
|
+
export type { ProjectCardProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProjectCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { n as e, t } from "../_shared/BrandIcon-CcelVr9Y.mjs";
|
|
2
|
+
import { t as n } from "../_shared/Card-HwBpJDVj.mjs";
|
|
3
|
+
import { useId as r } from "react";
|
|
4
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/ProjectCard/ProjectCard.tsx
|
|
6
|
+
var s = ({ title: s, href: c, type: l, icon: u, version: d, description: f, footer: p, headingLevel: m = "h3", className: h, ...g }) => {
|
|
7
|
+
let _ = m, v = r(), y = ["parlour-project-card", h].filter(Boolean).join(" "), b = /* @__PURE__ */ o(i, { children: [
|
|
8
|
+
(l || u) && /* @__PURE__ */ o("div", {
|
|
9
|
+
className: "parlour-project-card__meta",
|
|
10
|
+
children: [l && /* @__PURE__ */ a("p", {
|
|
11
|
+
className: "parlour-project-card__type",
|
|
12
|
+
children: l
|
|
13
|
+
}), u && /* @__PURE__ */ a(t, {
|
|
14
|
+
className: "parlour-project-card__icon",
|
|
15
|
+
name: u,
|
|
16
|
+
label: e[u].title
|
|
17
|
+
})]
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ a(_, {
|
|
20
|
+
className: "parlour-project-card__title",
|
|
21
|
+
id: v,
|
|
22
|
+
children: s
|
|
23
|
+
}),
|
|
24
|
+
d && /* @__PURE__ */ a("p", {
|
|
25
|
+
className: "parlour-project-card__version",
|
|
26
|
+
children: d
|
|
27
|
+
}),
|
|
28
|
+
f && /* @__PURE__ */ a("p", {
|
|
29
|
+
className: "parlour-project-card__description",
|
|
30
|
+
children: f
|
|
31
|
+
}),
|
|
32
|
+
(p || c) && /* @__PURE__ */ o("div", {
|
|
33
|
+
className: "parlour-project-card__footer",
|
|
34
|
+
children: [/* @__PURE__ */ a("span", { children: p }), c && /* @__PURE__ */ a("span", {
|
|
35
|
+
className: "parlour-project-card__arrow",
|
|
36
|
+
"aria-hidden": "true",
|
|
37
|
+
children: "→"
|
|
38
|
+
})]
|
|
39
|
+
})
|
|
40
|
+
] });
|
|
41
|
+
return /* @__PURE__ */ a(n, {
|
|
42
|
+
className: y,
|
|
43
|
+
borderRadius: "sm",
|
|
44
|
+
href: c,
|
|
45
|
+
linkProps: { "aria-labelledby": v },
|
|
46
|
+
...g,
|
|
47
|
+
children: b
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
export { s as ProjectCard };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.parlour-project-card,
|
|
2
|
+
:where(.parlour-project-card) .parlour-card__link {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
6
|
+
.parlour-project-card > *,
|
|
7
|
+
:where(.parlour-project-card) .parlour-card__link > * {
|
|
8
|
+
margin-block: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.parlour-project-card__meta {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: var(--parlour--spacing-small);
|
|
16
|
+
margin-block-end: var(--parlour--spacing-x-large);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.parlour-project-card__type {
|
|
20
|
+
font-family: var(--parlour--font-family-jetbrains-mono);
|
|
21
|
+
font-size: var(--parlour--font-size-2-x-small);
|
|
22
|
+
color: var(--parlour--color-neutral-600);
|
|
23
|
+
text-transform: uppercase;
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.parlour-project-card__icon {
|
|
28
|
+
margin-inline-start: auto;
|
|
29
|
+
font-size: var(--parlour--font-size-medium);
|
|
30
|
+
color: var(--parlour--color-neutral-600);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.parlour-project-card .parlour-project-card__title {
|
|
34
|
+
font-family: var(--parlour--font-family-inter-tight);
|
|
35
|
+
font-size: var(--parlour--font-size-large);
|
|
36
|
+
font-weight: var(--parlour--font-weight-medium);
|
|
37
|
+
line-height: var(--parlour--line-height-tight);
|
|
38
|
+
letter-spacing: -0.5px;
|
|
39
|
+
color: var(--parlour--color-neutral-950);
|
|
40
|
+
transition: color var(--parlour--transition-fast);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.parlour-project-card__version {
|
|
44
|
+
font-family: var(--parlour--font-family-jetbrains-mono);
|
|
45
|
+
font-size: var(--parlour--font-size-2-x-small);
|
|
46
|
+
color: var(--parlour--color-neutral-600);
|
|
47
|
+
margin-block-start: var(--parlour--spacing-2-x-small);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.parlour-project-card__description {
|
|
51
|
+
margin-block-start: var(--parlour--spacing-large);
|
|
52
|
+
font-family: var(--parlour--font-family-inter-tight);
|
|
53
|
+
font-size: var(--parlour--font-size-small);
|
|
54
|
+
line-height: var(--parlour--line-height-normal);
|
|
55
|
+
color: var(--parlour--color-neutral-800);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.parlour-project-card__footer {
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
align-items: baseline;
|
|
62
|
+
gap: var(--parlour--spacing-small);
|
|
63
|
+
font-family: var(--parlour--font-family-jetbrains-mono);
|
|
64
|
+
font-size: var(--parlour--font-size-2-x-small);
|
|
65
|
+
color: var(--parlour--color-neutral-900);
|
|
66
|
+
border-top: 1px solid var(--parlour--color-neutral-300);
|
|
67
|
+
margin-block-start: auto;
|
|
68
|
+
padding-block-start: var(--parlour--spacing-medium);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.parlour-project-card .parlour-card__link:hover .parlour-project-card__title,
|
|
72
|
+
.parlour-project-card .parlour-card__link:hover .parlour-project-card__footer {
|
|
73
|
+
color: var(--parlour--color-accent-secondary);
|
|
74
|
+
}
|
|
75
|
+
.parlour-project-card .parlour-card__link:hover .parlour-project-card__icon,
|
|
76
|
+
.parlour-project-card .parlour-card__link:hover .parlour-project-card__version {
|
|
77
|
+
color: var(--parlour--color-accent-primary);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.parlour-project-card > :has(+ .parlour-project-card__footer),
|
|
81
|
+
.parlour-project-card .parlour-card__link > :has(+ .parlour-project-card__footer) {
|
|
82
|
+
margin-block-end: var(--parlour--spacing-x-large);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.parlour-project-card__arrow {
|
|
86
|
+
transition: transform var(--parlour--transition-fast);
|
|
87
|
+
}
|
|
88
|
+
.parlour-card__link:hover .parlour-project-card__arrow {
|
|
89
|
+
transform: translateX(var(--parlour--spacing-2-x-small));
|
|
90
|
+
}
|
|
91
|
+
@media (prefers-reduced-motion: reduce) {
|
|
92
|
+
.parlour-project-card__arrow {
|
|
93
|
+
transition: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.parlour-project-card,
|
|
2
|
+
:where(.parlour-project-card) .parlour-card__link {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
6
|
+
.parlour-project-card > *,
|
|
7
|
+
:where(.parlour-project-card) .parlour-card__link > * {
|
|
8
|
+
margin-block: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.parlour-project-card__meta {
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: var(--parlour--spacing-small);
|
|
16
|
+
margin-block-end: var(--parlour--spacing-x-large);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.parlour-project-card__type {
|
|
20
|
+
font-family: var(--parlour--font-family-jetbrains-mono);
|
|
21
|
+
font-size: var(--parlour--font-size-2-x-small);
|
|
22
|
+
color: var(--parlour--color-neutral-600);
|
|
23
|
+
text-transform: uppercase;
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.parlour-project-card__icon {
|
|
28
|
+
margin-inline-start: auto;
|
|
29
|
+
font-size: var(--parlour--font-size-medium);
|
|
30
|
+
color: var(--parlour--color-neutral-600);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.parlour-project-card .parlour-project-card__title {
|
|
34
|
+
font-family: var(--parlour--font-family-inter-tight);
|
|
35
|
+
font-size: var(--parlour--font-size-large);
|
|
36
|
+
font-weight: var(--parlour--font-weight-medium);
|
|
37
|
+
line-height: var(--parlour--line-height-tight);
|
|
38
|
+
letter-spacing: -0.5px;
|
|
39
|
+
color: var(--parlour--color-neutral-950);
|
|
40
|
+
transition: color var(--parlour--transition-fast);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.parlour-project-card__version {
|
|
44
|
+
font-family: var(--parlour--font-family-jetbrains-mono);
|
|
45
|
+
font-size: var(--parlour--font-size-2-x-small);
|
|
46
|
+
color: var(--parlour--color-neutral-600);
|
|
47
|
+
margin-block-start: var(--parlour--spacing-2-x-small);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.parlour-project-card__description {
|
|
51
|
+
margin-block-start: var(--parlour--spacing-large);
|
|
52
|
+
font-family: var(--parlour--font-family-inter-tight);
|
|
53
|
+
font-size: var(--parlour--font-size-small);
|
|
54
|
+
line-height: var(--parlour--line-height-normal);
|
|
55
|
+
color: var(--parlour--color-neutral-800);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.parlour-project-card__footer {
|
|
59
|
+
display: flex;
|
|
60
|
+
justify-content: space-between;
|
|
61
|
+
align-items: baseline;
|
|
62
|
+
gap: var(--parlour--spacing-small);
|
|
63
|
+
font-family: var(--parlour--font-family-jetbrains-mono);
|
|
64
|
+
font-size: var(--parlour--font-size-2-x-small);
|
|
65
|
+
color: var(--parlour--color-neutral-900);
|
|
66
|
+
border-top: 1px solid var(--parlour--color-neutral-300);
|
|
67
|
+
margin-block-start: auto;
|
|
68
|
+
padding-block-start: var(--parlour--spacing-medium);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.parlour-project-card .parlour-card__link:hover .parlour-project-card__title,
|
|
72
|
+
.parlour-project-card .parlour-card__link:hover .parlour-project-card__footer {
|
|
73
|
+
color: var(--parlour--color-accent-secondary);
|
|
74
|
+
}
|
|
75
|
+
.parlour-project-card .parlour-card__link:hover .parlour-project-card__icon,
|
|
76
|
+
.parlour-project-card .parlour-card__link:hover .parlour-project-card__version {
|
|
77
|
+
color: var(--parlour--color-accent-primary);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.parlour-project-card > :has(+ .parlour-project-card__footer),
|
|
81
|
+
.parlour-project-card .parlour-card__link > :has(+ .parlour-project-card__footer) {
|
|
82
|
+
margin-block-end: var(--parlour--spacing-x-large);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.parlour-project-card__arrow {
|
|
86
|
+
transition: transform var(--parlour--transition-fast);
|
|
87
|
+
}
|
|
88
|
+
.parlour-card__link:hover .parlour-project-card__arrow {
|
|
89
|
+
transform: translateX(var(--parlour--spacing-2-x-small));
|
|
90
|
+
}
|
|
91
|
+
@media (prefers-reduced-motion: reduce) {
|
|
92
|
+
.parlour-project-card__arrow {
|
|
93
|
+
transition: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const socialNetworks: readonly ["github", "wordpress", "x", "bluesky", "linkedin", "facebook", "instagram", "youtube", "tiktok"];
|
|
3
|
+
type SocialNetwork = (typeof socialNetworks)[number];
|
|
4
|
+
export interface SiteFooterProps extends React.HTMLAttributes<HTMLElement>, Partial<Record<SocialNetwork, string>> {
|
|
5
|
+
name: string;
|
|
6
|
+
nameHref?: string;
|
|
7
|
+
year?: number;
|
|
8
|
+
text?: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const SiteFooter: ({ name, nameHref, year, text, className, github, wordpress, x, bluesky, linkedin, facebook, instagram, youtube, tiktok, ...rest }: SiteFooterProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=SiteFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SiteFooter.d.ts","sourceRoot":"","sources":["../../../src/components/SiteFooter/SiteFooter.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,eAAe,CAAC;AAGvB,QAAA,MAAM,cAAc,4GAUV,CAAC;AAEX,KAAK,aAAa,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,MAAM,WAAW,eACb,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,UAAU,GAAI,mIAgBxB,eAAe,sBAmDjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../_shared/rolldown-runtime-BocRIvOZ.cjs"),t=require("../_shared/BrandIcon-CRT5CX33.cjs"),n=require("../_shared/useLinkContext-DwwV1iqK.cjs");let r=require("react");r=e.t(r,1);let i=require("react/jsx-runtime");var a=[`github`,`wordpress`,`x`,`bluesky`,`linkedin`,`facebook`,`instagram`,`youtube`,`tiktok`],o=({name:e,nameHref:r,year:o=new Date().getFullYear(),text:s,className:c,github:l,wordpress:u,x:d,bluesky:f,linkedin:p,facebook:m,instagram:h,youtube:g,tiktok:_,...v})=>{let y=n.t(),b=[`parlour-site-footer`,c].filter(Boolean).join(` `),x={github:l,wordpress:u,x:d,bluesky:f,linkedin:p,facebook:m,instagram:h,youtube:g,tiktok:_},S=a.filter(e=>x[e]);return(0,i.jsx)(`footer`,{className:b,...v,children:(0,i.jsxs)(`div`,{className:`parlour-site-footer__inner`,children:[(0,i.jsxs)(`p`,{className:`parlour-site-footer__copyright`,children:[`© `,o,` `,r?(0,i.jsx)(y,{href:r,children:e}):e]}),s&&(0,i.jsx)(`p`,{className:`parlour-site-footer__text`,children:s}),S.length>0&&(0,i.jsx)(`ul`,{className:`parlour-site-footer__social`,children:S.map(e=>(0,i.jsx)(`li`,{children:(0,i.jsx)(y,{className:`parlour-site-footer__social-link`,href:x[e],rel:`me`,"aria-label":t.n[e].title,children:(0,i.jsx)(t.t,{name:e})})},e))})]})})};exports.SiteFooter=o;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const socialNetworks: readonly ["github", "wordpress", "x", "bluesky", "linkedin", "facebook", "instagram", "youtube", "tiktok"];
|
|
4
|
+
type SocialNetwork = (typeof socialNetworks)[number];
|
|
5
|
+
interface SiteFooterProps extends React.HTMLAttributes<HTMLElement>, Partial<Record<SocialNetwork, string>> {
|
|
6
|
+
name: string;
|
|
7
|
+
nameHref?: string;
|
|
8
|
+
year?: number;
|
|
9
|
+
text?: React.ReactNode;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const SiteFooter: ({ name, nameHref, year, text, className, github, wordpress, x, bluesky, linkedin, facebook, instagram, youtube, tiktok, ...rest }: SiteFooterProps) => React.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { SiteFooter };
|
|
15
|
+
export type { SiteFooterProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SiteFooter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC"}
|