@resumekit/react 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/export-bundle/bundle.css +1 -1
- package/dist/export-bundle/bundle.js +1 -1
- package/dist/kit/LanguageList.d.ts.map +1 -1
- package/dist/kit/LanguageList.js +1 -1
- package/dist/kit/language.css +14 -3
- package/dist/static/static.mjs +173 -127
- package/dist/static/templates/academic.css +1 -1
- package/dist/static/templates/compact.css +1 -1
- package/dist/static/templates/crimson.css +1 -1
- package/dist/static/templates/curve.css +1 -1
- package/dist/static/templates/elegant-logos.css +1 -1
- package/dist/static/templates/elegant.css +1 -1
- package/dist/static/templates/engineer.css +1 -1
- package/dist/static/templates/executive.css +1 -1
- package/dist/static/templates/modern.css +1 -1
- package/dist/static/templates/scholar.css +1 -1
- package/dist/static/templates/stylish.css +1 -1
- package/dist/static/templates.css +1 -1
- package/dist/templates/academic/academic.css +6 -0
- package/dist/templates/compact/CompactDocument.d.ts.map +1 -1
- package/dist/templates/compact/CompactDocument.js +1 -1
- package/dist/templates/compact/compact.css +7 -4
- package/dist/templates/creative/CreativeDocument.d.ts.map +1 -1
- package/dist/templates/creative/CreativeDocument.js +5 -1
- package/dist/templates/crimson/crimson.css +1 -1
- package/dist/templates/curve/curve.css +1 -1
- package/dist/templates/double-column/DoubleColumnDocument.d.ts.map +1 -1
- package/dist/templates/double-column/DoubleColumnDocument.js +5 -1
- package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts.map +1 -1
- package/dist/templates/double-column-logos/DoubleColumnLogosDocument.js +5 -1
- package/dist/templates/elegant/elegant.css +6 -6
- package/dist/templates/elegant-logos/elegant-logos.css +6 -6
- package/dist/templates/engineer/engineer.css +1 -1
- package/dist/templates/executive/executive.css +19 -0
- package/dist/templates/harvard/harvard.css +1 -6
- package/dist/templates/modern/ModernDocument.d.ts.map +1 -1
- package/dist/templates/modern/ModernDocument.js +1 -1
- package/dist/templates/modern/modern.css +7 -4
- package/dist/templates/portrait/portrait.css +1 -2
- package/dist/templates/prism/prism.css +1 -2
- package/dist/templates/scholar/scholar.css +1 -1
- package/dist/templates/stylish/StylishDocument.d.ts.map +1 -1
- package/dist/templates/stylish/StylishDocument.js +2 -2
- package/dist/templates/stylish/stylish.css +7 -16
- package/dist/templates/timeline/TimelineDocument.d.ts.map +1 -1
- package/dist/templates/timeline/TimelineDocument.js +5 -1
- package/package.json +2 -2
- package/src/compiler/emit.ts +13 -2
- package/src/compiler/schema.ts +15 -0
- package/src/kit/LanguageList.tsx +23 -17
- package/src/templates/compact/CompactDocument.tsx +5 -1
- package/src/templates/creative/CreativeDocument.tsx +28 -12
- package/src/templates/double-column/DoubleColumnDocument.tsx +28 -12
- package/src/templates/double-column-logos/DoubleColumnLogosDocument.tsx +28 -12
- package/src/templates/modern/ModernDocument.tsx +5 -1
- package/src/templates/stylish/StylishDocument.tsx +14 -10
- package/src/templates/timeline/TimelineDocument.tsx +28 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModernDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/modern/ModernDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,cAAc,CAAC;AAGtB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,+
|
|
1
|
+
{"version":3,"file":"ModernDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/modern/ModernDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,cAAc,CAAC;AAGtB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,+BA0O7D"}
|
|
@@ -25,5 +25,5 @@ export function ModernDocument({ resume }) {
|
|
|
25
25
|
const style = useDocumentStyle();
|
|
26
26
|
const authoring = useAuthoring() !== null;
|
|
27
27
|
const contact = useContactLines(resume.contact, ['phone', 'email', 'location'], authoring);
|
|
28
|
-
return (_jsxs("article", { className: "tpl-modern", style: documentStyle('md', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-modern__head-block", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-modern__identity", children: [_jsx(Heading, { level: 1, className: "tpl-modern__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-modern__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-modern__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-modern__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))), _jsx(Collection, { section: "links", items: resume.links, gap: false, emptyAdd: "inline", children: ({ item, path, chrome, itemProps, justAdded }) => (_jsx("span", { className: "tpl-modern__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), _jsx(InitialsAvatar, { name: resume.name, className: "tpl-modern__avatar" })] }), _jsxs("div", { className: "tpl-modern__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-modern__main", "data-flow": true, children: [(resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ModernExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ModernEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", rowClassName: "tpl-modern__language" })] }), _jsxs("aside", { className: "tpl-modern__aside", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", children: _jsx("p", { className: "tpl-modern__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-modern__section tpl-described--marked", headingClassName: "tpl-modern__heading", items: resume.achievements, entryClassName: "tpl-modern__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-modern__section", headingClass: "tpl-modern__heading", Entry: ModernCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", children: _jsx("div", { className: "tpl-keywords", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", items: resume.courses, entryClassName: "tpl-modern__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", children: _jsx("div", { "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-modern__section tpl-described--marked", headingClassName: "tpl-modern__heading", items: resume.passions, entryClassName: "tpl-modern__described" })] })] })] }));
|
|
28
|
+
return (_jsxs("article", { className: "tpl-modern", style: documentStyle('md', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-modern__head-block", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-modern__identity", children: [_jsx(Heading, { level: 1, className: "tpl-modern__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-modern__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-modern__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-modern__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))), _jsx(Collection, { section: "links", items: resume.links, gap: false, emptyAdd: "inline", children: ({ item, path, chrome, itemProps, justAdded }) => (_jsx("span", { className: "tpl-modern__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), _jsx(InitialsAvatar, { name: resume.name, className: "tpl-modern__avatar" })] }), _jsxs("div", { className: "tpl-modern__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-modern__main", "data-flow": true, children: [(resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ModernExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ModernEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", rowClassName: "tpl-modern__language" })] }), _jsxs("aside", { className: "tpl-modern__aside", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", children: _jsx("p", { className: "tpl-modern__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-modern__section tpl-described--marked", headingClassName: "tpl-modern__heading", items: resume.achievements, entryClassName: "tpl-modern__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-modern__section", headingClass: "tpl-modern__heading", Entry: ModernCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", children: _jsx("div", { className: "tpl-keywords tpl-keywords--tags", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", items: resume.courses, entryClassName: "tpl-modern__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-modern__section", headingClassName: "tpl-modern__heading", children: _jsx("div", { "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-modern__section tpl-described--marked", headingClassName: "tpl-modern__heading", items: resume.passions, entryClassName: "tpl-modern__described" })] })] })] }));
|
|
29
29
|
}
|
|
@@ -247,12 +247,15 @@
|
|
|
247
247
|
color: var(--md-body);
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
/* Skills as
|
|
251
|
-
template states only its colour and
|
|
250
|
+
/* Skills as underlined tags, several to a row, as the reference sets them —
|
|
251
|
+
the shape is `kit/keywords.css`; this template states only its colour and
|
|
252
|
+
its rhythm. */
|
|
252
253
|
.tpl-modern .tpl-keywords {
|
|
253
254
|
--tpl-keyword-line: var(--md-line);
|
|
254
|
-
--tpl-keyword-gap: calc(
|
|
255
|
-
--tpl-keyword-
|
|
255
|
+
--tpl-keyword-gap: calc(7pt * var(--md-scale));
|
|
256
|
+
--tpl-keyword-span: calc(6pt * var(--md-scale));
|
|
257
|
+
--tpl-keyword-pad: calc(4pt * var(--md-scale));
|
|
258
|
+
--tpl-keyword-lead: calc(2.5pt * var(--md-scale));
|
|
256
259
|
}
|
|
257
260
|
|
|
258
261
|
/*
|
|
@@ -392,8 +392,7 @@
|
|
|
392
392
|
padding-left: calc(3pt * var(--pt-scale));
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
.tpl-portrait__aside .tpl-portrait__language .tpl-language__level
|
|
396
|
-
.tpl-portrait__aside .tpl-portrait__language .tpl-language__choice {
|
|
395
|
+
.tpl-portrait__aside .tpl-portrait__language .tpl-language__level {
|
|
397
396
|
grid-column: 2;
|
|
398
397
|
justify-self: end;
|
|
399
398
|
color: var(--pt-grey);
|
|
@@ -302,8 +302,7 @@
|
|
|
302
302
|
font-weight: 300;
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
.tpl-prism__language .tpl-language__level
|
|
306
|
-
.tpl-prism__language .tpl-language__choice {
|
|
305
|
+
.tpl-prism__language .tpl-language__level {
|
|
307
306
|
margin-left: 0.35em;
|
|
308
307
|
color: var(--pr-light);
|
|
309
308
|
font-size: calc(8pt * var(--pr-scale));
|
|
@@ -221,7 +221,7 @@
|
|
|
221
221
|
.tpl-scholar {
|
|
222
222
|
--tpl-skill-grid-label: var(--sc-label);
|
|
223
223
|
--tpl-skill-grid-gutter: var(--sc-gutter);
|
|
224
|
-
--tpl-skill-grid-column: calc(
|
|
224
|
+
--tpl-skill-grid-column: calc(130pt * var(--sc-scale));
|
|
225
225
|
--tpl-skill-grid-gap: calc(10pt * var(--sc-scale));
|
|
226
226
|
--tpl-skill-grid-lead: 0px;
|
|
227
227
|
--tpl-skill-grid-rhythm: calc(2pt * var(--sc-scale));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StylishDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/stylish/StylishDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,eAAe,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"StylishDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/stylish/StylishDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,eAAe,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA0O/D"}
|
|
@@ -8,7 +8,7 @@ import { Collection } from '../../collections/Collection.js';
|
|
|
8
8
|
import { DocumentSection } from '../../kit/DocumentSection.js';
|
|
9
9
|
import { DescribedEntries } from '../../kit/DescribedEntries.js';
|
|
10
10
|
import { LanguageList } from '../../kit/LanguageList.js';
|
|
11
|
-
import {
|
|
11
|
+
import { BulletSkillGroup } from '../../kit/BulletSkillGroup.js';
|
|
12
12
|
import { InitialsAvatar } from '../../kit/InitialsAvatar.js';
|
|
13
13
|
import { useContactLines } from '../../kit/contact.js';
|
|
14
14
|
import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
|
|
@@ -25,5 +25,5 @@ export function StylishDocument({ resume }) {
|
|
|
25
25
|
const style = useDocumentStyle();
|
|
26
26
|
const authoring = useAuthoring() !== null;
|
|
27
27
|
const contact = useContactLines(resume.contact, ['phone', 'email', 'location'], authoring);
|
|
28
|
-
return (_jsxs("article", { className: "tpl-stylish", style: documentStyle('st', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-stylish__head-block", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-stylish__identity", children: [_jsx(Heading, { level: 1, className: "tpl-stylish__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-stylish__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-stylish__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-stylish__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))), _jsx(Collection, { section: "links", items: resume.links, gap: false, emptyAdd: "inline", children: ({ item, path, chrome, itemProps, justAdded }) => (_jsx("span", { className: "tpl-stylish__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), _jsx(InitialsAvatar, { name: resume.name, className: "tpl-stylish__avatar" })] }), _jsxs("div", { className: "tpl-stylish__body", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-stylish__aside", "data-flow": true, children: [_jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-stylish__section tpl-described--marked", headingClassName: "tpl-stylish__heading", items: resume.achievements, entryClassName: "tpl-stylish__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-stylish__section", headingClass: "tpl-stylish__heading", Entry: StylishCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-stylish__section", headingClassName: "tpl-stylish__heading", children: _jsx("div", { className: "tpl-
|
|
28
|
+
return (_jsxs("article", { className: "tpl-stylish", style: documentStyle('st', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-stylish__head-block", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-stylish__identity", children: [_jsx(Heading, { level: 1, className: "tpl-stylish__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-stylish__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-stylish__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-stylish__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))), _jsx(Collection, { section: "links", items: resume.links, gap: false, emptyAdd: "inline", children: ({ item, path, chrome, itemProps, justAdded }) => (_jsx("span", { className: "tpl-stylish__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), _jsx(InitialsAvatar, { name: resume.name, className: "tpl-stylish__avatar" })] }), _jsxs("div", { className: "tpl-stylish__body", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-stylish__aside", "data-flow": true, children: [_jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-stylish__section tpl-described--marked", headingClassName: "tpl-stylish__heading", items: resume.achievements, entryClassName: "tpl-stylish__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-stylish__section", headingClass: "tpl-stylish__heading", Entry: StylishCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-stylish__section", headingClassName: "tpl-stylish__heading", children: _jsx("div", { className: "tpl-keywords tpl-keywords--boxed", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-stylish__section", headingClassName: "tpl-stylish__heading", items: resume.courses, entryClassName: "tpl-stylish__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-stylish__section", headingClassName: "tpl-stylish__heading", children: _jsx("div", { "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-stylish__section tpl-described--marked", headingClassName: "tpl-stylish__heading", items: resume.passions, entryClassName: "tpl-stylish__described" })] }), _jsxs("div", { className: "tpl-stylish__main", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-stylish__section", headingClassName: "tpl-stylish__heading", children: _jsx("p", { className: "tpl-stylish__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-stylish__section", headingClassName: "tpl-stylish__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(StylishExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-stylish__section", headingClassName: "tpl-stylish__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(StylishEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-stylish__section", headingClassName: "tpl-stylish__heading", rowClassName: "tpl-stylish__language" })] })] })] }));
|
|
29
29
|
}
|
|
@@ -266,23 +266,14 @@
|
|
|
266
266
|
color: var(--st-body);
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
/* Skills as
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
.tpl-stylish .tpl-skill-tags {
|
|
273
|
-
--tpl-skill-tags-label-ink: var(--st-accent);
|
|
274
|
-
--tpl-skill-tags-label-size: 1.12em;
|
|
275
|
-
--tpl-skill-tags-label-gap: 0.94em;
|
|
276
|
-
--tpl-skill-tags-rhythm: 1.6em;
|
|
277
|
-
}
|
|
278
|
-
|
|
269
|
+
/* Skills as boxed keywords, as the reference draws them: a thin box around
|
|
270
|
+
each skill, packed to the column — the shape is `kit/keywords.css`
|
|
271
|
+
(`tpl-keywords--boxed`); this template states its colour and measures. */
|
|
279
272
|
.tpl-stylish .tpl-keywords {
|
|
280
|
-
--tpl-keyword-
|
|
281
|
-
--tpl-keyword-
|
|
282
|
-
--tpl-keyword-
|
|
283
|
-
--
|
|
284
|
-
--tpl-keyword-gap: 1.12em;
|
|
285
|
-
--tpl-keyword-lead: 0.11em;
|
|
273
|
+
--tpl-keyword-line: #b9bdc3;
|
|
274
|
+
--tpl-keyword-gap: calc(5pt * var(--st-scale));
|
|
275
|
+
--tpl-keyword-lead: calc(2.5pt * var(--st-scale));
|
|
276
|
+
color: var(--st-ink);
|
|
286
277
|
}
|
|
287
278
|
|
|
288
279
|
/*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TimelineDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/timeline/TimelineDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuBtD,OAAO,6BAA6B,CAAC;AACrC,OAAO,gBAAgB,CAAC;AAGxB,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,qBAAqB,+
|
|
1
|
+
{"version":3,"file":"TimelineDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/timeline/TimelineDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuBtD,OAAO,6BAA6B,CAAC;AACrC,OAAO,gBAAgB,CAAC;AAGxB,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,qBAAqB,+BA0OjE"}
|
|
@@ -23,5 +23,9 @@ export function TimelineDocument({ resume }) {
|
|
|
23
23
|
const style = useDocumentStyle();
|
|
24
24
|
const authoring = useAuthoring() !== null;
|
|
25
25
|
const contact = useContactLines(resume.contact, ['phone', 'email', 'location'], authoring);
|
|
26
|
-
return (_jsxs("article", { className: "tpl-timeline", style: documentStyle('tl', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-timeline__head-block", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-timeline__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-timeline__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-timeline__contact tpl-contact-icons", children: [contact
|
|
26
|
+
return (_jsxs("article", { className: "tpl-timeline", style: documentStyle('tl', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-timeline__head-block", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-timeline__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-timeline__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-timeline__contact tpl-contact-icons", children: [contact
|
|
27
|
+
.filter(({ field }) => ['phone', 'email'].includes(field))
|
|
28
|
+
.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-timeline__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))), _jsx(Collection, { section: "links", items: resume.links, gap: false, emptyAdd: "inline", children: ({ item, path, chrome, itemProps, justAdded }) => (_jsx("span", { className: "tpl-timeline__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) }), contact
|
|
29
|
+
.filter(({ field }) => ['location'].includes(field))
|
|
30
|
+
.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-timeline__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path)))] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-timeline__section", headingClassName: "tpl-timeline__heading", children: _jsx("p", { className: "tpl-timeline__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-timeline__section", headingClassName: "tpl-timeline__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(TimelineExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-timeline__section", headingClassName: "tpl-timeline__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(TimelineEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-timeline__section tpl-described--marked tpl-described--grid", headingClassName: "tpl-timeline__heading", items: resume.achievements, entryClassName: "tpl-timeline__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-timeline__section", headingClass: "tpl-timeline__heading", Entry: TimelineCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-timeline__section", headingClassName: "tpl-timeline__heading", children: _jsx("div", { className: "tpl-keywords tpl-keywords--tags", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => _jsx(BulletSkillGroup, { item: item, path: path }) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-timeline__section", headingClassName: "tpl-timeline__heading", items: resume.courses, entryClassName: "tpl-timeline__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-timeline__section", headingClassName: "tpl-timeline__heading", rowClassName: "tpl-timeline__language" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-timeline__section", headingClassName: "tpl-timeline__heading", children: _jsx("div", { "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-timeline__section tpl-described--marked", headingClassName: "tpl-timeline__heading", items: resume.passions, entryClassName: "tpl-timeline__described" })] }));
|
|
27
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resumekit/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Editable, paginated resume templates for React: about thirty print-accurate designs, an in-place editing kit, a static renderer and a self-contained export bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"resume",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@dnd-kit/core": "^6.3.1",
|
|
58
58
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
59
59
|
"@dnd-kit/sortable": "^10.0.0",
|
|
60
|
-
"@resumekit/schema": "^0.
|
|
60
|
+
"@resumekit/schema": "^0.4.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": "^19.0.0",
|
package/src/compiler/emit.ts
CHANGED
|
@@ -566,11 +566,22 @@ function emitLayout(c: Ctx, n: LayoutNode, flow = false): string {
|
|
|
566
566
|
: []),
|
|
567
567
|
...(n.icons ? ['tpl-contact-icons'] : []),
|
|
568
568
|
].join(' ');
|
|
569
|
+
/* The details in their order; with `linksAt`, the links stand between
|
|
570
|
+
the fields before it and the fields after it. */
|
|
571
|
+
const details = (only?: string[]) =>
|
|
572
|
+
`{${v}${only ? `.filter(({ field }) => ${JSON.stringify(only).replace(/"/g, "'")}.includes(field))` : ''}.map(({ ${n.item ? 'field, ' : ''}path, value, placeholder }) => (\n${each}\n))}\n`;
|
|
573
|
+
const at = n.linksAt;
|
|
574
|
+
const body =
|
|
575
|
+
at !== undefined && at < n.fields.length
|
|
576
|
+
? details(n.fields.slice(0, at)) +
|
|
577
|
+
`${links}\n` +
|
|
578
|
+
details(n.fields.slice(at))
|
|
579
|
+
: details() + `${links}\n`;
|
|
569
580
|
return (
|
|
570
581
|
`{${contactCondition(c, n)} && (\n` +
|
|
571
582
|
`<${n.tag} className=${q(own)}${n.block ? ' data-block' : ''}>\n` +
|
|
572
|
-
|
|
573
|
-
|
|
583
|
+
body +
|
|
584
|
+
`</${n.tag}>\n)}`
|
|
574
585
|
);
|
|
575
586
|
}
|
|
576
587
|
case 'links':
|
package/src/compiler/schema.ts
CHANGED
|
@@ -389,6 +389,9 @@ export type LayoutNode =
|
|
|
389
389
|
kind: 'contact';
|
|
390
390
|
fields: z.infer<typeof ContactField>[];
|
|
391
391
|
links: boolean;
|
|
392
|
+
/** Where the links print among the fields: the index of the field they
|
|
393
|
+
* come before. After every field when absent. */
|
|
394
|
+
linksAt?: number;
|
|
392
395
|
tag: 'p' | 'div';
|
|
393
396
|
class: string;
|
|
394
397
|
/** The class of the element around each detail; `false` for none. */
|
|
@@ -440,6 +443,17 @@ function withKind(node: unknown): unknown {
|
|
|
440
443
|
}
|
|
441
444
|
if ('contact' in o) {
|
|
442
445
|
const { contact, ...rest } = o;
|
|
446
|
+
/* `links` standing among the fields places the links there, and is the
|
|
447
|
+
same as `links: true` otherwise. */
|
|
448
|
+
if (Array.isArray(contact) && contact.includes('links')) {
|
|
449
|
+
return {
|
|
450
|
+
kind: 'contact',
|
|
451
|
+
fields: contact.filter((f) => f !== 'links'),
|
|
452
|
+
links: true,
|
|
453
|
+
linksAt: contact.indexOf('links'),
|
|
454
|
+
...rest,
|
|
455
|
+
};
|
|
456
|
+
}
|
|
443
457
|
return { kind: 'contact', fields: contact, ...rest };
|
|
444
458
|
}
|
|
445
459
|
if ('links' in o && !('contact' in o)) {
|
|
@@ -515,6 +529,7 @@ export const LayoutNodeSchema: z.ZodType<LayoutNode, unknown> = z.lazy(() =>
|
|
|
515
529
|
kind: z.literal('contact'),
|
|
516
530
|
fields: z.array(ContactField).min(1),
|
|
517
531
|
links: z.boolean().default(false),
|
|
532
|
+
linksAt: z.number().int().min(0).optional(),
|
|
518
533
|
tag: z.enum(['p', 'div']).default('p'),
|
|
519
534
|
class: ClassName.default('contact'),
|
|
520
535
|
item: z.union([ClassName, z.literal(false)]).default('contact-item'),
|
package/src/kit/LanguageList.tsx
CHANGED
|
@@ -39,23 +39,29 @@ function LevelChoice({ path, value }: { path: string; value: string }) {
|
|
|
39
39
|
|
|
40
40
|
return (
|
|
41
41
|
<>
|
|
42
|
-
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
42
|
+
{/* The control sits INSIDE the word's box rather than replacing it, so
|
|
43
|
+
whatever a template draws around the level — Harvard's parentheses,
|
|
44
|
+
a colour, a column — is drawn around the control too, and editing
|
|
45
|
+
the document shows the line it prints. */}
|
|
46
|
+
<span className="tpl-language__level">
|
|
47
|
+
{editing ? (
|
|
48
|
+
<select
|
|
49
|
+
className="tpl-language__choice"
|
|
50
|
+
value={live}
|
|
51
|
+
aria-label={t.language.level}
|
|
52
|
+
onChange={(e) => set(e.target.value)}
|
|
53
|
+
>
|
|
54
|
+
<option value="">{t.language.choose}</option>
|
|
55
|
+
{LANGUAGE_LEVELS.map((level) => (
|
|
56
|
+
<option key={level} value={level}>
|
|
57
|
+
{levels[level]}
|
|
58
|
+
</option>
|
|
59
|
+
))}
|
|
60
|
+
</select>
|
|
61
|
+
) : (
|
|
62
|
+
word
|
|
63
|
+
)}
|
|
64
|
+
</span>
|
|
59
65
|
|
|
60
66
|
{word && (
|
|
61
67
|
<span className="tpl-language__meter" aria-hidden="true">
|
|
@@ -201,7 +201,11 @@ export function CompactDocument({ resume }: CompactDocumentProps) {
|
|
|
201
201
|
className="tpl-compact__section"
|
|
202
202
|
headingClassName="tpl-compact__heading"
|
|
203
203
|
>
|
|
204
|
-
<div
|
|
204
|
+
<div
|
|
205
|
+
className="tpl-keywords tpl-keywords--tags"
|
|
206
|
+
data-block
|
|
207
|
+
data-split
|
|
208
|
+
>
|
|
205
209
|
<Collection
|
|
206
210
|
section="skills"
|
|
207
211
|
items={resume.skills}
|
|
@@ -74,18 +74,20 @@ export function CreativeDocument({ resume }: CreativeDocumentProps) {
|
|
|
74
74
|
|
|
75
75
|
{(contact.length > 0 || resume.links.length > 0 || authoring) && (
|
|
76
76
|
<p className="tpl-creative__contact tpl-contact-icons">
|
|
77
|
-
{contact
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
{contact
|
|
78
|
+
.filter(({ field }) => ['phone', 'email'].includes(field))
|
|
79
|
+
.map(({ field, path, value, placeholder }) => (
|
|
80
|
+
<span
|
|
81
|
+
key={path}
|
|
82
|
+
className={`tpl-creative__contact-item tpl-contact--${field}`}
|
|
83
|
+
>
|
|
84
|
+
<EditableText
|
|
85
|
+
path={path}
|
|
86
|
+
value={value}
|
|
87
|
+
placeholder={placeholder}
|
|
88
|
+
/>
|
|
89
|
+
</span>
|
|
90
|
+
))}
|
|
89
91
|
<Collection
|
|
90
92
|
section="links"
|
|
91
93
|
items={resume.links}
|
|
@@ -105,6 +107,20 @@ export function CreativeDocument({ resume }: CreativeDocumentProps) {
|
|
|
105
107
|
</span>
|
|
106
108
|
)}
|
|
107
109
|
</Collection>
|
|
110
|
+
{contact
|
|
111
|
+
.filter(({ field }) => ['location'].includes(field))
|
|
112
|
+
.map(({ field, path, value, placeholder }) => (
|
|
113
|
+
<span
|
|
114
|
+
key={path}
|
|
115
|
+
className={`tpl-creative__contact-item tpl-contact--${field}`}
|
|
116
|
+
>
|
|
117
|
+
<EditableText
|
|
118
|
+
path={path}
|
|
119
|
+
value={value}
|
|
120
|
+
placeholder={placeholder}
|
|
121
|
+
/>
|
|
122
|
+
</span>
|
|
123
|
+
))}
|
|
108
124
|
</p>
|
|
109
125
|
)}
|
|
110
126
|
</div>
|
|
@@ -74,18 +74,20 @@ export function DoubleColumnDocument({ resume }: DoubleColumnDocumentProps) {
|
|
|
74
74
|
|
|
75
75
|
{(contact.length > 0 || resume.links.length > 0 || authoring) && (
|
|
76
76
|
<p className="tpl-dc__contact tpl-contact-icons">
|
|
77
|
-
{contact
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
{contact
|
|
78
|
+
.filter(({ field }) => ['phone', 'email'].includes(field))
|
|
79
|
+
.map(({ field, path, value, placeholder }) => (
|
|
80
|
+
<span
|
|
81
|
+
key={path}
|
|
82
|
+
className={`tpl-dc__contact-item tpl-contact--${field}`}
|
|
83
|
+
>
|
|
84
|
+
<EditableText
|
|
85
|
+
path={path}
|
|
86
|
+
value={value}
|
|
87
|
+
placeholder={placeholder}
|
|
88
|
+
/>
|
|
89
|
+
</span>
|
|
90
|
+
))}
|
|
89
91
|
<Collection
|
|
90
92
|
section="links"
|
|
91
93
|
items={resume.links}
|
|
@@ -105,6 +107,20 @@ export function DoubleColumnDocument({ resume }: DoubleColumnDocumentProps) {
|
|
|
105
107
|
</span>
|
|
106
108
|
)}
|
|
107
109
|
</Collection>
|
|
110
|
+
{contact
|
|
111
|
+
.filter(({ field }) => ['location'].includes(field))
|
|
112
|
+
.map(({ field, path, value, placeholder }) => (
|
|
113
|
+
<span
|
|
114
|
+
key={path}
|
|
115
|
+
className={`tpl-dc__contact-item tpl-contact--${field}`}
|
|
116
|
+
>
|
|
117
|
+
<EditableText
|
|
118
|
+
path={path}
|
|
119
|
+
value={value}
|
|
120
|
+
placeholder={placeholder}
|
|
121
|
+
/>
|
|
122
|
+
</span>
|
|
123
|
+
))}
|
|
108
124
|
</p>
|
|
109
125
|
)}
|
|
110
126
|
</div>
|
|
@@ -74,18 +74,20 @@ export function DoubleColumnLogosDocument({
|
|
|
74
74
|
|
|
75
75
|
{(contact.length > 0 || resume.links.length > 0 || authoring) && (
|
|
76
76
|
<p className="tpl-dcl__contact tpl-contact-icons">
|
|
77
|
-
{contact
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
{contact
|
|
78
|
+
.filter(({ field }) => ['phone', 'email'].includes(field))
|
|
79
|
+
.map(({ field, path, value, placeholder }) => (
|
|
80
|
+
<span
|
|
81
|
+
key={path}
|
|
82
|
+
className={`tpl-dcl__contact-item tpl-contact--${field}`}
|
|
83
|
+
>
|
|
84
|
+
<EditableText
|
|
85
|
+
path={path}
|
|
86
|
+
value={value}
|
|
87
|
+
placeholder={placeholder}
|
|
88
|
+
/>
|
|
89
|
+
</span>
|
|
90
|
+
))}
|
|
89
91
|
<Collection
|
|
90
92
|
section="links"
|
|
91
93
|
items={resume.links}
|
|
@@ -101,6 +103,20 @@ export function DoubleColumnLogosDocument({
|
|
|
101
103
|
</span>
|
|
102
104
|
)}
|
|
103
105
|
</Collection>
|
|
106
|
+
{contact
|
|
107
|
+
.filter(({ field }) => ['location'].includes(field))
|
|
108
|
+
.map(({ field, path, value, placeholder }) => (
|
|
109
|
+
<span
|
|
110
|
+
key={path}
|
|
111
|
+
className={`tpl-dcl__contact-item tpl-contact--${field}`}
|
|
112
|
+
>
|
|
113
|
+
<EditableText
|
|
114
|
+
path={path}
|
|
115
|
+
value={value}
|
|
116
|
+
placeholder={placeholder}
|
|
117
|
+
/>
|
|
118
|
+
</span>
|
|
119
|
+
))}
|
|
104
120
|
</p>
|
|
105
121
|
)}
|
|
106
122
|
</header>
|
|
@@ -210,7 +210,11 @@ export function ModernDocument({ resume }: ModernDocumentProps) {
|
|
|
210
210
|
className="tpl-modern__section"
|
|
211
211
|
headingClassName="tpl-modern__heading"
|
|
212
212
|
>
|
|
213
|
-
<div
|
|
213
|
+
<div
|
|
214
|
+
className="tpl-keywords tpl-keywords--tags"
|
|
215
|
+
data-block
|
|
216
|
+
data-split
|
|
217
|
+
>
|
|
214
218
|
<Collection
|
|
215
219
|
section="skills"
|
|
216
220
|
items={resume.skills}
|
|
@@ -13,7 +13,7 @@ import { Collection } from '../../collections/Collection.js';
|
|
|
13
13
|
import { DocumentSection } from '../../kit/DocumentSection.js';
|
|
14
14
|
import { DescribedEntries } from '../../kit/DescribedEntries.js';
|
|
15
15
|
import { LanguageList } from '../../kit/LanguageList.js';
|
|
16
|
-
import {
|
|
16
|
+
import { BulletSkillGroup } from '../../kit/BulletSkillGroup.js';
|
|
17
17
|
import { InitialsAvatar } from '../../kit/InitialsAvatar.js';
|
|
18
18
|
import { useContactLines } from '../../kit/contact.js';
|
|
19
19
|
import {
|
|
@@ -139,15 +139,19 @@ export function StylishDocument({ resume }: StylishDocumentProps) {
|
|
|
139
139
|
className="tpl-stylish__section"
|
|
140
140
|
headingClassName="tpl-stylish__heading"
|
|
141
141
|
>
|
|
142
|
-
<div
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
142
|
+
<div
|
|
143
|
+
className="tpl-keywords tpl-keywords--boxed"
|
|
144
|
+
data-block
|
|
145
|
+
data-split
|
|
146
|
+
>
|
|
147
|
+
<Collection
|
|
148
|
+
section="skills"
|
|
149
|
+
items={resume.skills}
|
|
150
|
+
noun="skill"
|
|
151
|
+
gap={false}
|
|
152
|
+
>
|
|
153
|
+
{({ item, path }) => (
|
|
154
|
+
<BulletSkillGroup item={item} path={path} />
|
|
151
155
|
)}
|
|
152
156
|
</Collection>
|
|
153
157
|
</div>
|
|
@@ -71,18 +71,20 @@ export function TimelineDocument({ resume }: TimelineDocumentProps) {
|
|
|
71
71
|
|
|
72
72
|
{(contact.length > 0 || resume.links.length > 0 || authoring) && (
|
|
73
73
|
<p className="tpl-timeline__contact tpl-contact-icons">
|
|
74
|
-
{contact
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
{contact
|
|
75
|
+
.filter(({ field }) => ['phone', 'email'].includes(field))
|
|
76
|
+
.map(({ field, path, value, placeholder }) => (
|
|
77
|
+
<span
|
|
78
|
+
key={path}
|
|
79
|
+
className={`tpl-timeline__contact-item tpl-contact--${field}`}
|
|
80
|
+
>
|
|
81
|
+
<EditableText
|
|
82
|
+
path={path}
|
|
83
|
+
value={value}
|
|
84
|
+
placeholder={placeholder}
|
|
85
|
+
/>
|
|
86
|
+
</span>
|
|
87
|
+
))}
|
|
86
88
|
<Collection
|
|
87
89
|
section="links"
|
|
88
90
|
items={resume.links}
|
|
@@ -98,6 +100,20 @@ export function TimelineDocument({ resume }: TimelineDocumentProps) {
|
|
|
98
100
|
</span>
|
|
99
101
|
)}
|
|
100
102
|
</Collection>
|
|
103
|
+
{contact
|
|
104
|
+
.filter(({ field }) => ['location'].includes(field))
|
|
105
|
+
.map(({ field, path, value, placeholder }) => (
|
|
106
|
+
<span
|
|
107
|
+
key={path}
|
|
108
|
+
className={`tpl-timeline__contact-item tpl-contact--${field}`}
|
|
109
|
+
>
|
|
110
|
+
<EditableText
|
|
111
|
+
path={path}
|
|
112
|
+
value={value}
|
|
113
|
+
placeholder={placeholder}
|
|
114
|
+
/>
|
|
115
|
+
</span>
|
|
116
|
+
))}
|
|
101
117
|
</p>
|
|
102
118
|
)}
|
|
103
119
|
</header>
|