@resumekit/react 0.1.0 → 0.3.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.
Files changed (179) hide show
  1. package/dist/document.css +1 -0
  2. package/dist/export-bundle/bundle.css +1 -1
  3. package/dist/export-bundle/bundle.js +9 -9
  4. package/dist/fonts/README.md +29 -0
  5. package/dist/fonts/dmsans-400.woff2 +0 -0
  6. package/dist/fonts/dmsans-400i.woff2 +0 -0
  7. package/dist/fonts/dmsans-700.woff2 +0 -0
  8. package/dist/fonts/dmsans-700i.woff2 +0 -0
  9. package/dist/fonts/firasans-400.woff2 +0 -0
  10. package/dist/fonts/firasans-400i.woff2 +0 -0
  11. package/dist/fonts/firasans-700.woff2 +0 -0
  12. package/dist/fonts/firasans-700i.woff2 +0 -0
  13. package/dist/fonts/fonts.css +481 -0
  14. package/dist/fonts/inter-400.woff2 +0 -0
  15. package/dist/fonts/inter-400i.woff2 +0 -0
  16. package/dist/fonts/inter-700.woff2 +0 -0
  17. package/dist/fonts/inter-700i.woff2 +0 -0
  18. package/dist/fonts/librefranklin-400.woff2 +0 -0
  19. package/dist/fonts/librefranklin-400i.woff2 +0 -0
  20. package/dist/fonts/librefranklin-700.woff2 +0 -0
  21. package/dist/fonts/librefranklin-700i.woff2 +0 -0
  22. package/dist/fonts/licenses/dmsans-OFL.txt +93 -0
  23. package/dist/fonts/licenses/firasans-OFL.txt +93 -0
  24. package/dist/fonts/licenses/inter-OFL.txt +93 -0
  25. package/dist/fonts/licenses/librefranklin-OFL.txt +93 -0
  26. package/dist/fonts/licenses/lora-OFL.txt +93 -0
  27. package/dist/fonts/licenses/montserrat-OFL.txt +93 -0
  28. package/dist/fonts/licenses/notosans-OFL.txt +93 -0
  29. package/dist/fonts/licenses/nunitosans-OFL.txt +93 -0
  30. package/dist/fonts/licenses/opensans-OFL.txt +93 -0
  31. package/dist/fonts/licenses/playfair-OFL.txt +93 -0
  32. package/dist/fonts/licenses/plexsans-OFL.txt +93 -0
  33. package/dist/fonts/licenses/plexserif-OFL.txt +93 -0
  34. package/dist/fonts/licenses/sourceserif4-OFL.txt +93 -0
  35. package/dist/fonts/licenses/spectral-OFL.txt +93 -0
  36. package/dist/fonts/licenses/worksans-OFL.txt +93 -0
  37. package/dist/fonts/lora-400.woff2 +0 -0
  38. package/dist/fonts/lora-400i.woff2 +0 -0
  39. package/dist/fonts/lora-700.woff2 +0 -0
  40. package/dist/fonts/lora-700i.woff2 +0 -0
  41. package/dist/fonts/montserrat-400.woff2 +0 -0
  42. package/dist/fonts/montserrat-400i.woff2 +0 -0
  43. package/dist/fonts/montserrat-700.woff2 +0 -0
  44. package/dist/fonts/montserrat-700i.woff2 +0 -0
  45. package/dist/fonts/notosans-400.woff2 +0 -0
  46. package/dist/fonts/notosans-400i.woff2 +0 -0
  47. package/dist/fonts/notosans-700.woff2 +0 -0
  48. package/dist/fonts/notosans-700i.woff2 +0 -0
  49. package/dist/fonts/nunitosans-400.woff2 +0 -0
  50. package/dist/fonts/nunitosans-400i.woff2 +0 -0
  51. package/dist/fonts/nunitosans-700.woff2 +0 -0
  52. package/dist/fonts/nunitosans-700i.woff2 +0 -0
  53. package/dist/fonts/opensans-400.woff2 +0 -0
  54. package/dist/fonts/opensans-400i.woff2 +0 -0
  55. package/dist/fonts/opensans-700.woff2 +0 -0
  56. package/dist/fonts/opensans-700i.woff2 +0 -0
  57. package/dist/fonts/playfair-400.woff2 +0 -0
  58. package/dist/fonts/playfair-400i.woff2 +0 -0
  59. package/dist/fonts/playfair-700.woff2 +0 -0
  60. package/dist/fonts/playfair-700i.woff2 +0 -0
  61. package/dist/fonts/plexsans-400.woff2 +0 -0
  62. package/dist/fonts/plexsans-400i.woff2 +0 -0
  63. package/dist/fonts/plexsans-700.woff2 +0 -0
  64. package/dist/fonts/plexsans-700i.woff2 +0 -0
  65. package/dist/fonts/plexserif-400.woff2 +0 -0
  66. package/dist/fonts/plexserif-400i.woff2 +0 -0
  67. package/dist/fonts/plexserif-700.woff2 +0 -0
  68. package/dist/fonts/plexserif-700i.woff2 +0 -0
  69. package/dist/fonts/raleway-700i.woff2 +0 -0
  70. package/dist/fonts/roboto-700i.woff2 +0 -0
  71. package/dist/fonts/sourcesans3-700i.woff2 +0 -0
  72. package/dist/fonts/sourceserif4-400.woff2 +0 -0
  73. package/dist/fonts/sourceserif4-400i.woff2 +0 -0
  74. package/dist/fonts/sourceserif4-700.woff2 +0 -0
  75. package/dist/fonts/sourceserif4-700i.woff2 +0 -0
  76. package/dist/fonts/spectral-400.woff2 +0 -0
  77. package/dist/fonts/spectral-400i.woff2 +0 -0
  78. package/dist/fonts/spectral-700.woff2 +0 -0
  79. package/dist/fonts/spectral-700i.woff2 +0 -0
  80. package/dist/fonts/worksans-400.woff2 +0 -0
  81. package/dist/fonts/worksans-400i.woff2 +0 -0
  82. package/dist/fonts/worksans-700.woff2 +0 -0
  83. package/dist/fonts/worksans-700i.woff2 +0 -0
  84. package/dist/kit/documentStyle.d.ts +8 -0
  85. package/dist/kit/documentStyle.d.ts.map +1 -1
  86. package/dist/kit/documentStyle.js +49 -1
  87. package/dist/kit/typography.css +118 -0
  88. package/dist/nodes/formatting.d.ts +5 -1
  89. package/dist/nodes/formatting.d.ts.map +1 -1
  90. package/dist/nodes/formatting.js +4 -1
  91. package/dist/nodes/locked.d.ts.map +1 -1
  92. package/dist/nodes/locked.js +3 -0
  93. package/dist/static/static.mjs +294 -4
  94. package/dist/templates/academic/AcademicDocument.d.ts.map +1 -1
  95. package/dist/templates/academic/AcademicDocument.js +2 -2
  96. package/dist/templates/alta/AltaDocument.d.ts.map +1 -1
  97. package/dist/templates/alta/AltaDocument.js +2 -2
  98. package/dist/templates/classic/ClassicDocument.d.ts.map +1 -1
  99. package/dist/templates/classic/ClassicDocument.js +2 -2
  100. package/dist/templates/cobalt/CobaltDocument.d.ts.map +1 -1
  101. package/dist/templates/cobalt/CobaltDocument.js +2 -2
  102. package/dist/templates/compact/CompactDocument.d.ts.map +1 -1
  103. package/dist/templates/compact/CompactDocument.js +2 -2
  104. package/dist/templates/contemporary/ContemporaryDocument.d.ts.map +1 -1
  105. package/dist/templates/contemporary/ContemporaryDocument.js +2 -2
  106. package/dist/templates/creative/CreativeDocument.d.ts.map +1 -1
  107. package/dist/templates/creative/CreativeDocument.js +2 -2
  108. package/dist/templates/crimson/CrimsonDocument.d.ts.map +1 -1
  109. package/dist/templates/crimson/CrimsonDocument.js +2 -2
  110. package/dist/templates/curve/CurveDocument.d.ts.map +1 -1
  111. package/dist/templates/curve/CurveDocument.js +2 -2
  112. package/dist/templates/double-column/DoubleColumnDocument.d.ts.map +1 -1
  113. package/dist/templates/double-column/DoubleColumnDocument.js +2 -2
  114. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts.map +1 -1
  115. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.js +2 -2
  116. package/dist/templates/elegant/ElegantDocument.d.ts.map +1 -1
  117. package/dist/templates/elegant/ElegantDocument.js +2 -2
  118. package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts.map +1 -1
  119. package/dist/templates/elegant-logos/ElegantLogosDocument.js +2 -2
  120. package/dist/templates/engineer/EngineerDocument.d.ts.map +1 -1
  121. package/dist/templates/engineer/EngineerDocument.js +2 -2
  122. package/dist/templates/executive/ExecutiveDocument.d.ts.map +1 -1
  123. package/dist/templates/executive/ExecutiveDocument.js +2 -2
  124. package/dist/templates/harvard/HarvardDocument.d.ts.map +1 -1
  125. package/dist/templates/harvard/HarvardDocument.js +2 -2
  126. package/dist/templates/hipster/HipsterDocument.d.ts.map +1 -1
  127. package/dist/templates/hipster/HipsterDocument.js +2 -2
  128. package/dist/templates/ivy/IvyDocument.d.ts.map +1 -1
  129. package/dist/templates/ivy/IvyDocument.js +2 -2
  130. package/dist/templates/meridian/MeridianDocument.d.ts.map +1 -1
  131. package/dist/templates/meridian/MeridianDocument.js +2 -2
  132. package/dist/templates/modern/ModernDocument.d.ts.map +1 -1
  133. package/dist/templates/modern/ModernDocument.js +2 -2
  134. package/dist/templates/polished/PolishedDocument.d.ts.map +1 -1
  135. package/dist/templates/polished/PolishedDocument.js +2 -2
  136. package/dist/templates/portrait/PortraitDocument.d.ts.map +1 -1
  137. package/dist/templates/portrait/PortraitDocument.js +2 -2
  138. package/dist/templates/prism/PrismDocument.d.ts.map +1 -1
  139. package/dist/templates/prism/PrismDocument.js +2 -2
  140. package/dist/templates/scholar/ScholarDocument.d.ts.map +1 -1
  141. package/dist/templates/scholar/ScholarDocument.js +2 -2
  142. package/dist/templates/split/SplitDocument.d.ts.map +1 -1
  143. package/dist/templates/split/SplitDocument.js +2 -2
  144. package/dist/templates/stylish/StylishDocument.d.ts.map +1 -1
  145. package/dist/templates/stylish/StylishDocument.js +2 -2
  146. package/dist/templates/timeline/TimelineDocument.d.ts.map +1 -1
  147. package/dist/templates/timeline/TimelineDocument.js +2 -2
  148. package/package.json +2 -2
  149. package/src/compiler/emit.ts +2 -2
  150. package/src/kit/documentStyle.ts +55 -0
  151. package/src/nodes/formatting.ts +13 -1
  152. package/src/nodes/locked.ts +3 -0
  153. package/src/templates/academic/AcademicDocument.tsx +5 -1
  154. package/src/templates/alta/AltaDocument.tsx +5 -1
  155. package/src/templates/classic/ClassicDocument.tsx +5 -1
  156. package/src/templates/cobalt/CobaltDocument.tsx +5 -1
  157. package/src/templates/compact/CompactDocument.tsx +5 -1
  158. package/src/templates/contemporary/ContemporaryDocument.tsx +5 -1
  159. package/src/templates/creative/CreativeDocument.tsx +5 -1
  160. package/src/templates/crimson/CrimsonDocument.tsx +5 -1
  161. package/src/templates/curve/CurveDocument.tsx +5 -1
  162. package/src/templates/double-column/DoubleColumnDocument.tsx +5 -1
  163. package/src/templates/double-column-logos/DoubleColumnLogosDocument.tsx +5 -1
  164. package/src/templates/elegant/ElegantDocument.tsx +5 -1
  165. package/src/templates/elegant-logos/ElegantLogosDocument.tsx +5 -1
  166. package/src/templates/engineer/EngineerDocument.tsx +5 -1
  167. package/src/templates/executive/ExecutiveDocument.tsx +5 -1
  168. package/src/templates/harvard/HarvardDocument.tsx +5 -1
  169. package/src/templates/hipster/HipsterDocument.tsx +5 -1
  170. package/src/templates/ivy/IvyDocument.tsx +5 -1
  171. package/src/templates/meridian/MeridianDocument.tsx +5 -1
  172. package/src/templates/modern/ModernDocument.tsx +5 -1
  173. package/src/templates/polished/PolishedDocument.tsx +5 -1
  174. package/src/templates/portrait/PortraitDocument.tsx +5 -1
  175. package/src/templates/prism/PrismDocument.tsx +5 -1
  176. package/src/templates/scholar/ScholarDocument.tsx +5 -1
  177. package/src/templates/split/SplitDocument.tsx +5 -1
  178. package/src/templates/stylish/StylishDocument.tsx +5 -1
  179. package/src/templates/timeline/TimelineDocument.tsx +5 -1
@@ -10,7 +10,7 @@ import { DescribedEntries } from '../../kit/DescribedEntries.js';
10
10
  import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { GridSkillGroup } from '../../kit/GridSkillGroup.js';
12
12
  import { useContactLines } from '../../kit/contact.js';
13
- import { documentStyle } from '../../kit/documentStyle.js';
13
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
14
14
  import { Heading } from '../../kit/Heading.js';
15
15
  import { LinkField } from '../../nodes/LinkField.js';
16
16
  import { ElegantLogosCustomEntry, ElegantLogosEducationEntry, ElegantLogosExperienceEntry, } from './entries.js';
@@ -26,5 +26,5 @@ export function ElegantLogosDocument({ resume }) {
26
26
  const contact = useContactLines(resume.contact, ['phone'], authoring);
27
27
  const contact2 = useContactLines(resume.contact, ['email'], authoring);
28
28
  const contact3 = useContactLines(resume.contact, ['location'], authoring);
29
- return (_jsx("article", { className: "tpl-ell", style: documentStyle('ell', style), "aria-label": doc.t.resume, lang: doc.locale, children: _jsxs("div", { className: "tpl-ell__body tpl-sheet-tall", "data-layout": "row", children: [_jsxs("div", { className: "tpl-ell__main", "data-flow": true, children: [_jsx("header", { className: "tpl-ell__head-block", "data-block": true, children: _jsxs("div", { className: "tpl-ell__identity", children: [_jsx(Heading, { level: 1, className: "tpl-ell__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-ell__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), _jsxs("div", { className: "tpl-ell__contact", "data-layout": "row", children: [contact.length > 0 && (_jsx("p", { className: "tpl-ell__phone tpl-contact--phone tpl-contact-icons", children: contact.map(({ path, value, placeholder }) => (_jsx(EditableText, { path: path, value: value, placeholder: placeholder }, path))) })), contact2.length > 0 && (_jsx("p", { className: "tpl-ell__email tpl-contact--email tpl-contact-icons", children: contact2.map(({ path, value, placeholder }) => (_jsx(EditableText, { path: path, value: value, placeholder: placeholder }, path))) })), (resume.links.length > 0 || authoring) && (_jsx("div", { className: "tpl-ell__link-line", children: _jsx("ul", { className: "tpl-ell__links tpl-contact-icons", "data-block": true, children: _jsx(Collection, { section: "links", items: resume.links, gap: false, children: ({ item, path, chrome, itemProps, justAdded }) => (_jsxs("li", { ...itemProps, className: "tpl-ell__link tpl-contact--link", children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] })) }) }) })), contact3.length > 0 && (_jsx("p", { className: "tpl-ell__place tpl-contact--location tpl-contact-icons", children: contact3.map(({ path, value, placeholder }) => (_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-ell__section", headingClassName: "tpl-ell__heading", children: _jsx("p", { className: "tpl-ell__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-ell__section", headingClassName: "tpl-ell__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ElegantLogosExperienceEntry, { 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-ell__section", headingClassName: "tpl-ell__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ElegantLogosEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-ell__section", headingClassName: "tpl-ell__heading", rowClassName: "tpl-ell__language" })] }), _jsxs("aside", { className: "tpl-ell__aside", "data-flow": true, children: [_jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.keyAchievements, className: "tpl-ell__section tpl-described--marked", headingClassName: "tpl-ell__heading", items: resume.achievements, entryClassName: "tpl-ell__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-ell__section", headingClass: "tpl-ell__heading", Entry: ElegantLogosCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-ell__section", headingClassName: "tpl-ell__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-ell__section", headingClassName: "tpl-ell__heading", items: resume.courses, entryClassName: "tpl-ell__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-ell__section", headingClassName: "tpl-ell__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.interests, className: "tpl-ell__section tpl-described--marked", headingClassName: "tpl-ell__heading", items: resume.passions, entryClassName: "tpl-ell__described" })] })] }) }));
29
+ return (_jsx("article", { className: "tpl-ell", style: documentStyle('ell', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: _jsxs("div", { className: "tpl-ell__body tpl-sheet-tall", "data-layout": "row", children: [_jsxs("div", { className: "tpl-ell__main", "data-flow": true, children: [_jsx("header", { className: "tpl-ell__head-block", "data-block": true, children: _jsxs("div", { className: "tpl-ell__identity", children: [_jsx(Heading, { level: 1, className: "tpl-ell__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-ell__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), _jsxs("div", { className: "tpl-ell__contact", "data-layout": "row", children: [contact.length > 0 && (_jsx("p", { className: "tpl-ell__phone tpl-contact--phone tpl-contact-icons", children: contact.map(({ path, value, placeholder }) => (_jsx(EditableText, { path: path, value: value, placeholder: placeholder }, path))) })), contact2.length > 0 && (_jsx("p", { className: "tpl-ell__email tpl-contact--email tpl-contact-icons", children: contact2.map(({ path, value, placeholder }) => (_jsx(EditableText, { path: path, value: value, placeholder: placeholder }, path))) })), (resume.links.length > 0 || authoring) && (_jsx("div", { className: "tpl-ell__link-line", children: _jsx("ul", { className: "tpl-ell__links tpl-contact-icons", "data-block": true, children: _jsx(Collection, { section: "links", items: resume.links, gap: false, children: ({ item, path, chrome, itemProps, justAdded }) => (_jsxs("li", { ...itemProps, className: "tpl-ell__link tpl-contact--link", children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] })) }) }) })), contact3.length > 0 && (_jsx("p", { className: "tpl-ell__place tpl-contact--location tpl-contact-icons", children: contact3.map(({ path, value, placeholder }) => (_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-ell__section", headingClassName: "tpl-ell__heading", children: _jsx("p", { className: "tpl-ell__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-ell__section", headingClassName: "tpl-ell__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ElegantLogosExperienceEntry, { 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-ell__section", headingClassName: "tpl-ell__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ElegantLogosEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-ell__section", headingClassName: "tpl-ell__heading", rowClassName: "tpl-ell__language" })] }), _jsxs("aside", { className: "tpl-ell__aside", "data-flow": true, children: [_jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.keyAchievements, className: "tpl-ell__section tpl-described--marked", headingClassName: "tpl-ell__heading", items: resume.achievements, entryClassName: "tpl-ell__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-ell__section", headingClass: "tpl-ell__heading", Entry: ElegantLogosCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-ell__section", headingClassName: "tpl-ell__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-ell__section", headingClassName: "tpl-ell__heading", items: resume.courses, entryClassName: "tpl-ell__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-ell__section", headingClassName: "tpl-ell__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.interests, className: "tpl-ell__section tpl-described--marked", headingClassName: "tpl-ell__heading", items: resume.passions, entryClassName: "tpl-ell__described" })] })] }) }));
30
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EngineerDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/engineer/EngineerDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoBtD,OAAO,gBAAgB,CAAC;AAGxB,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,qBAAqB,+BAuNjE"}
1
+ {"version":3,"file":"EngineerDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/engineer/EngineerDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuBtD,OAAO,gBAAgB,CAAC;AAGxB,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,qBAAqB,+BAwNjE"}
@@ -10,7 +10,7 @@ import { DescribedEntries } from '../../kit/DescribedEntries.js';
10
10
  import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { GridSkillGroup } from '../../kit/GridSkillGroup.js';
12
12
  import { useContactLines } from '../../kit/contact.js';
13
- import { documentStyle } from '../../kit/documentStyle.js';
13
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
14
14
  import { Heading } from '../../kit/Heading.js';
15
15
  import { LinkField } from '../../nodes/LinkField.js';
16
16
  import { EngineerCustomEntry, EngineerEducationEntry, EngineerExperienceEntry, } from './entries.js';
@@ -22,5 +22,5 @@ export function EngineerDocument({ resume }) {
22
22
  const style = useDocumentStyle();
23
23
  const authoring = useAuthoring() !== null;
24
24
  const contact = useContactLines(resume.contact, ['phone', 'email', 'location'], authoring);
25
- return (_jsxs("article", { className: "tpl-engineer", style: documentStyle('eng', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-engineer__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-engineer__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-engineer__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-engineer__contact", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-engineer__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-engineer__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", children: _jsx("p", { className: "tpl-engineer__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(EngineerEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(EngineerExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-engineer__section", headingClass: "tpl-engineer__heading", Entry: EngineerCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", items: resume.achievements, entryClassName: "tpl-engineer__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", items: resume.courses, entryClassName: "tpl-engineer__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", children: _jsx("div", { "data-block": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-engineer__section tpl-engineer__languages", headingClassName: "tpl-engineer__heading", rowClassName: "tpl-engineer__language" }), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", items: resume.passions, entryClassName: "tpl-engineer__described" })] }));
25
+ return (_jsxs("article", { className: "tpl-engineer", style: documentStyle('eng', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-engineer__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-engineer__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-engineer__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-engineer__contact", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-engineer__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-engineer__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", children: _jsx("p", { className: "tpl-engineer__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(EngineerEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(EngineerExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-engineer__section", headingClass: "tpl-engineer__heading", Entry: EngineerCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", items: resume.achievements, entryClassName: "tpl-engineer__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", items: resume.courses, entryClassName: "tpl-engineer__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", children: _jsx("div", { "data-block": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-engineer__section tpl-engineer__languages", headingClassName: "tpl-engineer__heading", rowClassName: "tpl-engineer__language" }), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-engineer__section", headingClassName: "tpl-engineer__heading", items: resume.passions, entryClassName: "tpl-engineer__described" })] }));
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ExecutiveDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/executive/ExecutiveDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,iBAAiB,CAAC;AAGzB,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BAqRnE"}
1
+ {"version":3,"file":"ExecutiveDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/executive/ExecutiveDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,iBAAiB,CAAC;AAGzB,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,EAAE,sBAAsB,+BAsRnE"}
@@ -11,7 +11,7 @@ import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { BulletSkillGroup } from '../../kit/BulletSkillGroup.js';
12
12
  import { monogram } from '../../kit/monogram.js';
13
13
  import { useContactLines } from '../../kit/contact.js';
14
- import { documentStyle } from '../../kit/documentStyle.js';
14
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
15
15
  import { Heading } from '../../kit/Heading.js';
16
16
  import { LinkField } from '../../nodes/LinkField.js';
17
17
  import { ExecutiveCustomEntry, ExecutiveEducationEntry, ExecutiveExperienceEntry, } from './entries.js';
@@ -25,5 +25,5 @@ export function ExecutiveDocument({ resume }) {
25
25
  const authoring = useAuthoring() !== null;
26
26
  const contact = useContactLines(resume.contact, ['location'], authoring);
27
27
  const contact2 = useContactLines(resume.contact, ['email', 'phone'], authoring);
28
- return (_jsxs("article", { className: "tpl-exec", style: documentStyle('e', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-exec__band", "data-layout": "row", "data-block": true, children: [_jsx("span", { className: "tpl-exec__monogram", "aria-hidden": "true", children: monogram(resume.name) }), _jsxs("div", { className: "tpl-exec__identity", children: [_jsx(Heading, { level: 1, className: "tpl-exec__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), contact.length > 0 && (_jsx("p", { className: "tpl-exec__where tpl-contact--location", children: contact.map(({ path, value, placeholder }) => (_jsx(EditableText, { path: path, value: value, placeholder: placeholder }, path))) })), contact2.length > 0 && (_jsx("p", { className: "tpl-exec__contact", children: contact2.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-exec__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))) }))] })] }), _jsxs("div", { className: "tpl-exec__body", children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.professionalSummary, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", children: _jsx("p", { className: "tpl-exec__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-exec__section tpl-described--marked", headingClassName: "tpl-exec__heading", items: resume.achievements, entryClassName: "tpl-exec__described" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", children: _jsx("div", { className: "tpl-exec__columns", "data-block": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ExecutiveExperienceEntry, { 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-exec__section", headingClassName: "tpl-exec__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ExecutiveEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", items: resume.courses, entryClassName: "tpl-exec__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", rowClassName: "tpl-exec__language" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", children: _jsx("div", { "data-block": 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-exec__section tpl-described--marked", headingClassName: "tpl-exec__heading", items: resume.passions, entryClassName: "tpl-exec__described" }), (resume.headline || authoring) && (_jsxs("section", { className: "tpl-exec__section", children: [_jsx(Heading, { level: 2, className: "tpl-exec__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.personalInformation }), (resume.headline || authoring) && (_jsxs("p", { className: "tpl-exec__prose", "data-block": true, children: [doc.t.labels.title, _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') })] }))] })), resume.contact.location && (_jsxs("section", { className: "tpl-exec__section", children: [_jsx(Heading, { level: 2, className: "tpl-exec__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.locations }), _jsx("p", { className: "tpl-exec__prose", "data-block": true, children: resume.contact.location })] })), (resume.links.length > 0 || authoring) && (_jsxs("section", { className: "tpl-exec__section", children: [_jsx(Heading, { level: 2, className: "tpl-exec__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.websites }), _jsx("ul", { className: "tpl-exec__links", "data-block": true, children: _jsx(Collection, { section: "links", items: resume.links, gap: false, children: ({ item, path, chrome, itemProps, justAdded }) => (_jsxs("li", { ...itemProps, className: "tpl-exec__link tpl-contact--link", children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] })) }) })] })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-exec__section", headingClass: "tpl-exec__heading", Entry: ExecutiveCustomEntry })] })] }));
28
+ return (_jsxs("article", { className: "tpl-exec", style: documentStyle('e', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-exec__band", "data-layout": "row", "data-block": true, children: [_jsx("span", { className: "tpl-exec__monogram", "aria-hidden": "true", children: monogram(resume.name) }), _jsxs("div", { className: "tpl-exec__identity", children: [_jsx(Heading, { level: 1, className: "tpl-exec__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), contact.length > 0 && (_jsx("p", { className: "tpl-exec__where tpl-contact--location", children: contact.map(({ path, value, placeholder }) => (_jsx(EditableText, { path: path, value: value, placeholder: placeholder }, path))) })), contact2.length > 0 && (_jsx("p", { className: "tpl-exec__contact", children: contact2.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-exec__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))) }))] })] }), _jsxs("div", { className: "tpl-exec__body", children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.professionalSummary, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", children: _jsx("p", { className: "tpl-exec__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-exec__section tpl-described--marked", headingClassName: "tpl-exec__heading", items: resume.achievements, entryClassName: "tpl-exec__described" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", children: _jsx("div", { className: "tpl-exec__columns", "data-block": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ExecutiveExperienceEntry, { 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-exec__section", headingClassName: "tpl-exec__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ExecutiveEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", items: resume.courses, entryClassName: "tpl-exec__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", rowClassName: "tpl-exec__language" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-exec__section", headingClassName: "tpl-exec__heading", children: _jsx("div", { "data-block": 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-exec__section tpl-described--marked", headingClassName: "tpl-exec__heading", items: resume.passions, entryClassName: "tpl-exec__described" }), (resume.headline || authoring) && (_jsxs("section", { className: "tpl-exec__section", children: [_jsx(Heading, { level: 2, className: "tpl-exec__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.personalInformation }), (resume.headline || authoring) && (_jsxs("p", { className: "tpl-exec__prose", "data-block": true, children: [doc.t.labels.title, _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') })] }))] })), resume.contact.location && (_jsxs("section", { className: "tpl-exec__section", children: [_jsx(Heading, { level: 2, className: "tpl-exec__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.locations }), _jsx("p", { className: "tpl-exec__prose", "data-block": true, children: resume.contact.location })] })), (resume.links.length > 0 || authoring) && (_jsxs("section", { className: "tpl-exec__section", children: [_jsx(Heading, { level: 2, className: "tpl-exec__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.websites }), _jsx("ul", { className: "tpl-exec__links", "data-block": true, children: _jsx(Collection, { section: "links", items: resume.links, gap: false, children: ({ item, path, chrome, itemProps, justAdded }) => (_jsxs("li", { ...itemProps, className: "tpl-exec__link tpl-contact--link", children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] })) }) })] })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-exec__section", headingClass: "tpl-exec__heading", Entry: ExecutiveCustomEntry })] })] }));
29
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HarvardDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/harvard/HarvardDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoBtD,OAAO,eAAe,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BAuN/D"}
1
+ {"version":3,"file":"HarvardDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/harvard/HarvardDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuBtD,OAAO,eAAe,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BAwN/D"}
@@ -9,7 +9,7 @@ import { DocumentSection } from '../../kit/DocumentSection.js';
9
9
  import { DescribedEntries } from '../../kit/DescribedEntries.js';
10
10
  import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { useContactLines } from '../../kit/contact.js';
12
- import { documentStyle } from '../../kit/documentStyle.js';
12
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
13
13
  import { Heading } from '../../kit/Heading.js';
14
14
  import { LinkField } from '../../nodes/LinkField.js';
15
15
  import { HarvardCustomEntry, HarvardEducationEntry, HarvardExperienceEntry, HarvardSkillGroup, } from './entries.js';
@@ -21,5 +21,5 @@ export function HarvardDocument({ resume }) {
21
21
  const style = useDocumentStyle();
22
22
  const authoring = useAuthoring() !== null;
23
23
  const contact = useContactLines(resume.contact, ['location', 'email', 'phone'], authoring);
24
- return (_jsxs("article", { className: "tpl-harvard", style: documentStyle('h', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-harvard__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-harvard__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-harvard__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-harvard__contact", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-harvard__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-harvard__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.professionalSummary, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", children: _jsx("p", { className: "tpl-harvard__summary", "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-harvard__section", headingClassName: "tpl-harvard__section-title", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(HarvardExperienceEntry, { 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-harvard__section", headingClassName: "tpl-harvard__section-title", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(HarvardEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", items: resume.achievements, entryClassName: "tpl-harvard__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", items: resume.courses, entryClassName: "tpl-harvard__described" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", children: _jsx("ul", { className: "tpl-harvard__skills", "data-block": true, children: _jsx(Collection, { section: "skills", items: resume.skills, gap: false, children: ({ item, path, chrome, itemProps }) => (_jsx(HarvardSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-harvard__section tpl-harvard__languages", headingClassName: "tpl-harvard__section-title", rowClassName: "tpl-harvard__language" }), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.interests, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", items: resume.passions, entryClassName: "tpl-harvard__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", children: _jsx("p", { className: "tpl-harvard__inline-list", "data-block": true, children: _jsx(EditableInlineList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certifications') }) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-harvard__section", headingClass: "tpl-harvard__section-title", Entry: HarvardCustomEntry })] }));
24
+ return (_jsxs("article", { className: "tpl-harvard", style: documentStyle('h', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-harvard__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-harvard__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-harvard__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-harvard__contact", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-harvard__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-harvard__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.professionalSummary, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", children: _jsx("p", { className: "tpl-harvard__summary", "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-harvard__section", headingClassName: "tpl-harvard__section-title", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(HarvardExperienceEntry, { 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-harvard__section", headingClassName: "tpl-harvard__section-title", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(HarvardEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", items: resume.achievements, entryClassName: "tpl-harvard__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", items: resume.courses, entryClassName: "tpl-harvard__described" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", children: _jsx("ul", { className: "tpl-harvard__skills", "data-block": true, children: _jsx(Collection, { section: "skills", items: resume.skills, gap: false, children: ({ item, path, chrome, itemProps }) => (_jsx(HarvardSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-harvard__section tpl-harvard__languages", headingClassName: "tpl-harvard__section-title", rowClassName: "tpl-harvard__language" }), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.interests, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", items: resume.passions, entryClassName: "tpl-harvard__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-harvard__section", headingClassName: "tpl-harvard__section-title", children: _jsx("p", { className: "tpl-harvard__inline-list", "data-block": true, children: _jsx(EditableInlineList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certifications') }) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-harvard__section", headingClass: "tpl-harvard__section-title", Entry: HarvardCustomEntry })] }));
25
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"HipsterDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/hipster/HipsterDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAsBtD,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,+BA4P/D"}
1
+ {"version":3,"file":"HipsterDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/hipster/HipsterDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAyBtD,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,+BA6P/D"}
@@ -12,7 +12,7 @@ import { TagSkillGroup } from '../../kit/TagSkillGroup.js';
12
12
  import { InitialsAvatar } from '../../kit/InitialsAvatar.js';
13
13
  import { nameParts } from '../../kit/textShapes.js';
14
14
  import { useContactLines } from '../../kit/contact.js';
15
- import { documentStyle } from '../../kit/documentStyle.js';
15
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
16
16
  import { Heading } from '../../kit/Heading.js';
17
17
  import { LinkField } from '../../nodes/LinkField.js';
18
18
  import { HipsterCustomEntry, HipsterEducationEntry, HipsterExperienceEntry, } from './entries.js';
@@ -26,5 +26,5 @@ export function HipsterDocument({ resume }) {
26
26
  const style = useDocumentStyle();
27
27
  const authoring = useAuthoring() !== null;
28
28
  const contact = useContactLines(resume.contact, ['location', 'phone', 'email'], authoring);
29
- return (_jsxs("article", { className: "tpl-hipster", style: documentStyle('hp', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-hipster__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-hipster__name", children: _jsx(EditableText, { path: "name", value: resume.name, shape: nameParts('tpl-hipster__name-first', 'tpl-hipster__name-last') }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-hipster__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) }))] }), _jsxs("div", { className: "tpl-hipster__body tpl-sheet-tall", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-hipster__aside", "data-flow": true, children: [_jsx(InitialsAvatar, { name: resume.name, className: "tpl-hipster__avatar" }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", children: _jsx("p", { className: "tpl-hipster__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("section", { className: "tpl-hipster__section", children: [_jsx(Heading, { level: 2, className: "tpl-hipster__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.contacts }), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("div", { className: "tpl-hipster__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("p", { className: `tpl-hipster__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("p", { className: "tpl-hipster__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] })), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.interests, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", items: resume.passions, entryClassName: "tpl-hipster__described" })] }), _jsxs("div", { className: "tpl-hipster__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-hipster__section tpl-hipster__spine", headingClassName: "tpl-hipster__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(HipsterExperienceEntry, { 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-hipster__section", headingClassName: "tpl-hipster__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(HipsterEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", items: resume.achievements, entryClassName: "tpl-hipster__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", items: resume.courses, entryClassName: "tpl-hipster__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-hipster__section", headingClass: "tpl-hipster__heading", Entry: HipsterCustomEntry }), _jsxs("div", { className: "tpl-hipster__pair", "data-layout": "row", children: [_jsxs("div", { className: "tpl-hipster__half", "data-flow": true, children: [(resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", children: _jsx("div", { "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", rowClassName: "tpl-hipster__language" })] }), _jsx("div", { className: "tpl-hipster__half", "data-flow": true, children: (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", children: _jsx("div", { className: "tpl-skill-tags", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(TagSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })) })] })] })] })] }));
29
+ return (_jsxs("article", { className: "tpl-hipster", style: documentStyle('hp', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-hipster__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-hipster__name", children: _jsx(EditableText, { path: "name", value: resume.name, shape: nameParts('tpl-hipster__name-first', 'tpl-hipster__name-last') }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-hipster__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) }))] }), _jsxs("div", { className: "tpl-hipster__body tpl-sheet-tall", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-hipster__aside", "data-flow": true, children: [_jsx(InitialsAvatar, { name: resume.name, className: "tpl-hipster__avatar" }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", children: _jsx("p", { className: "tpl-hipster__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("section", { className: "tpl-hipster__section", children: [_jsx(Heading, { level: 2, className: "tpl-hipster__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.contacts }), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("div", { className: "tpl-hipster__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("p", { className: `tpl-hipster__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("p", { className: "tpl-hipster__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] })), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.interests, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", items: resume.passions, entryClassName: "tpl-hipster__described" })] }), _jsxs("div", { className: "tpl-hipster__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-hipster__section tpl-hipster__spine", headingClassName: "tpl-hipster__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(HipsterExperienceEntry, { 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-hipster__section", headingClassName: "tpl-hipster__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(HipsterEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", items: resume.achievements, entryClassName: "tpl-hipster__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", items: resume.courses, entryClassName: "tpl-hipster__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-hipster__section", headingClass: "tpl-hipster__heading", Entry: HipsterCustomEntry }), _jsxs("div", { className: "tpl-hipster__pair", "data-layout": "row", children: [_jsxs("div", { className: "tpl-hipster__half", "data-flow": true, children: [(resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", children: _jsx("div", { "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", rowClassName: "tpl-hipster__language" })] }), _jsx("div", { className: "tpl-hipster__half", "data-flow": true, children: (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-hipster__section", headingClassName: "tpl-hipster__heading", children: _jsx("div", { className: "tpl-skill-tags", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(TagSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })) })] })] })] })] }));
30
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"IvyDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/ivy/IvyDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoBtD,OAAO,WAAW,CAAC;AAGnB,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BAuNvD"}
1
+ {"version":3,"file":"IvyDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/ivy/IvyDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuBtD,OAAO,WAAW,CAAC;AAGnB,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,gBAAgB,+BAwNvD"}
@@ -10,7 +10,7 @@ import { DescribedEntries } from '../../kit/DescribedEntries.js';
10
10
  import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { GridSkillGroup } from '../../kit/GridSkillGroup.js';
12
12
  import { useContactLines } from '../../kit/contact.js';
13
- import { documentStyle } from '../../kit/documentStyle.js';
13
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
14
14
  import { Heading } from '../../kit/Heading.js';
15
15
  import { LinkField } from '../../nodes/LinkField.js';
16
16
  import { IvyCustomEntry, IvyEducationEntry, IvyExperienceEntry, } from './entries.js';
@@ -22,5 +22,5 @@ export function IvyDocument({ resume }) {
22
22
  const style = useDocumentStyle();
23
23
  const authoring = useAuthoring() !== null;
24
24
  const contact = useContactLines(resume.contact, ['phone', 'email', 'location'], authoring);
25
- return (_jsxs("article", { className: "tpl-ivy", style: documentStyle('i', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-ivy__head-block", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-ivy__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-ivy__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-ivy__contact", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-ivy__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-ivy__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-ivy__section", headingClassName: "tpl-ivy__heading", children: _jsx("p", { className: "tpl-ivy__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-ivy__section", headingClassName: "tpl-ivy__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(IvyExperienceEntry, { 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-ivy__section", headingClassName: "tpl-ivy__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(IvyEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-ivy__section tpl-described--marked tpl-described--grid", headingClassName: "tpl-ivy__heading", items: resume.achievements, entryClassName: "tpl-ivy__described" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-ivy__section", headingClassName: "tpl-ivy__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-ivy__section tpl-ivy__courses", headingClassName: "tpl-ivy__heading", items: resume.courses, entryClassName: "tpl-ivy__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-ivy__section", headingClassName: "tpl-ivy__heading", rowClassName: "tpl-ivy__language" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-ivy__section", headingClassName: "tpl-ivy__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-ivy__section tpl-described--marked", headingClassName: "tpl-ivy__heading", items: resume.passions, entryClassName: "tpl-ivy__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-ivy__section", headingClass: "tpl-ivy__heading", Entry: IvyCustomEntry })] }));
25
+ return (_jsxs("article", { className: "tpl-ivy", style: documentStyle('i', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-ivy__head-block", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-ivy__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-ivy__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-ivy__contact", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-ivy__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-ivy__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-ivy__section", headingClassName: "tpl-ivy__heading", children: _jsx("p", { className: "tpl-ivy__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-ivy__section", headingClassName: "tpl-ivy__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(IvyExperienceEntry, { 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-ivy__section", headingClassName: "tpl-ivy__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(IvyEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-ivy__section tpl-described--marked tpl-described--grid", headingClassName: "tpl-ivy__heading", items: resume.achievements, entryClassName: "tpl-ivy__described" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-ivy__section", headingClassName: "tpl-ivy__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-ivy__section tpl-ivy__courses", headingClassName: "tpl-ivy__heading", items: resume.courses, entryClassName: "tpl-ivy__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-ivy__section", headingClassName: "tpl-ivy__heading", rowClassName: "tpl-ivy__language" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-ivy__section", headingClassName: "tpl-ivy__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-ivy__section tpl-described--marked", headingClassName: "tpl-ivy__heading", items: resume.passions, entryClassName: "tpl-ivy__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-ivy__section", headingClass: "tpl-ivy__heading", Entry: IvyCustomEntry })] }));
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MeridianDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/meridian/MeridianDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,gBAAgB,CAAC;AAGxB,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,qBAAqB,+BA6QjE"}
1
+ {"version":3,"file":"MeridianDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/meridian/MeridianDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,gBAAgB,CAAC;AAGxB,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,qBAAqB,+BA8QjE"}
@@ -11,7 +11,7 @@ import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { BulletSkillGroup } from '../../kit/BulletSkillGroup.js';
12
12
  import { monogram } from '../../kit/monogram.js';
13
13
  import { useContactLines } from '../../kit/contact.js';
14
- import { documentStyle } from '../../kit/documentStyle.js';
14
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
15
15
  import { Heading } from '../../kit/Heading.js';
16
16
  import { LinkField } from '../../nodes/LinkField.js';
17
17
  import { MeridianCustomEntry, MeridianEducationEntry, MeridianExperienceEntry, } from './entries.js';
@@ -24,5 +24,5 @@ export function MeridianDocument({ resume }) {
24
24
  const style = useDocumentStyle();
25
25
  const authoring = useAuthoring() !== null;
26
26
  const contact = useContactLines(resume.contact, ['location', 'phone', 'email'], authoring);
27
- return (_jsxs("article", { className: "tpl-mer", style: documentStyle('m', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-mer__crown", "data-block": true, children: [_jsx("p", { className: "tpl-mer__monogram", "aria-hidden": "true", children: _jsx("span", { children: monogram(resume.name) }) }), _jsx(Heading, { level: 1, className: "tpl-mer__name", children: _jsx(EditableText, { path: "name", value: resume.name }) })] }), contact.length > 0 && (_jsx("p", { className: "tpl-mer__contact", "data-block": true, children: contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-mer__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))) })), _jsxs("div", { className: "tpl-mer__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-mer__main", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.professionalSummary, className: "tpl-mer__section", headingClassName: "tpl-mer__heading", children: _jsx("p", { className: "tpl-mer__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-mer__section tpl-described--marked", headingClassName: "tpl-mer__heading", items: resume.achievements, entryClassName: "tpl-mer__described" }), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-mer__section", headingClassName: "tpl-mer__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(MeridianExperienceEntry, { 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-mer__section", headingClassName: "tpl-mer__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(MeridianEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-mer__section", headingClassName: "tpl-mer__heading", children: _jsx("div", { "data-block": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-mer__section", headingClassName: "tpl-mer__heading", items: resume.courses, entryClassName: "tpl-mer__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-mer__section", headingClassName: "tpl-mer__heading", rowClassName: "tpl-mer__language" }), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-mer__section tpl-described--marked", headingClassName: "tpl-mer__heading", items: resume.passions, entryClassName: "tpl-mer__described" }), (resume.headline || authoring) && (_jsxs("section", { className: "tpl-mer__section", children: [_jsx(Heading, { level: 2, className: "tpl-mer__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.personalInformation }), (resume.headline || authoring) && (_jsxs("p", { className: "tpl-mer__prose", "data-block": true, children: [doc.t.labels.title, _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') })] }))] })), resume.contact.location && (_jsxs("section", { className: "tpl-mer__section", children: [_jsx(Heading, { level: 2, className: "tpl-mer__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.locations }), _jsx("p", { className: "tpl-mer__prose", "data-block": true, children: resume.contact.location })] })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-mer__section", headingClass: "tpl-mer__heading", Entry: MeridianCustomEntry })] }), _jsxs("aside", { className: "tpl-mer__aside", "data-flow": true, children: [(resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-mer__section", headingClassName: "tpl-mer__heading tpl-mer__heading--marked", children: _jsx("div", { "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 })) }) }) })), (resume.links.length > 0 || authoring) && (_jsxs("section", { className: "tpl-mer__section", children: [_jsx(Heading, { level: 2, className: "tpl-mer__heading tpl-mer__heading--marked", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.websites }), _jsx("ul", { className: "tpl-mer__links", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "links", items: resume.links, gap: false, children: ({ item, path, chrome, itemProps, justAdded }) => (_jsxs("li", { ...itemProps, className: "tpl-mer__link tpl-contact--link", children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] })) }) })] }))] })] })] }));
27
+ return (_jsxs("article", { className: "tpl-mer", style: documentStyle('m', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-mer__crown", "data-block": true, children: [_jsx("p", { className: "tpl-mer__monogram", "aria-hidden": "true", children: _jsx("span", { children: monogram(resume.name) }) }), _jsx(Heading, { level: 1, className: "tpl-mer__name", children: _jsx(EditableText, { path: "name", value: resume.name }) })] }), contact.length > 0 && (_jsx("p", { className: "tpl-mer__contact", "data-block": true, children: contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-mer__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))) })), _jsxs("div", { className: "tpl-mer__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-mer__main", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.professionalSummary, className: "tpl-mer__section", headingClassName: "tpl-mer__heading", children: _jsx("p", { className: "tpl-mer__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-mer__section tpl-described--marked", headingClassName: "tpl-mer__heading", items: resume.achievements, entryClassName: "tpl-mer__described" }), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-mer__section", headingClassName: "tpl-mer__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(MeridianExperienceEntry, { 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-mer__section", headingClassName: "tpl-mer__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(MeridianEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-mer__section", headingClassName: "tpl-mer__heading", children: _jsx("div", { "data-block": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-mer__section", headingClassName: "tpl-mer__heading", items: resume.courses, entryClassName: "tpl-mer__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-mer__section", headingClassName: "tpl-mer__heading", rowClassName: "tpl-mer__language" }), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-mer__section tpl-described--marked", headingClassName: "tpl-mer__heading", items: resume.passions, entryClassName: "tpl-mer__described" }), (resume.headline || authoring) && (_jsxs("section", { className: "tpl-mer__section", children: [_jsx(Heading, { level: 2, className: "tpl-mer__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.personalInformation }), (resume.headline || authoring) && (_jsxs("p", { className: "tpl-mer__prose", "data-block": true, children: [doc.t.labels.title, _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') })] }))] })), resume.contact.location && (_jsxs("section", { className: "tpl-mer__section", children: [_jsx(Heading, { level: 2, className: "tpl-mer__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.locations }), _jsx("p", { className: "tpl-mer__prose", "data-block": true, children: resume.contact.location })] })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-mer__section", headingClass: "tpl-mer__heading", Entry: MeridianCustomEntry })] }), _jsxs("aside", { className: "tpl-mer__aside", "data-flow": true, children: [(resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-mer__section", headingClassName: "tpl-mer__heading tpl-mer__heading--marked", children: _jsx("div", { "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 })) }) }) })), (resume.links.length > 0 || authoring) && (_jsxs("section", { className: "tpl-mer__section", children: [_jsx(Heading, { level: 2, className: "tpl-mer__heading tpl-mer__heading--marked", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.websites }), _jsx("ul", { className: "tpl-mer__links", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "links", items: resume.links, gap: false, children: ({ item, path, chrome, itemProps, justAdded }) => (_jsxs("li", { ...itemProps, className: "tpl-mer__link tpl-contact--link", children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] })) }) })] }))] })] })] }));
28
28
  }
@@ -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;AAqBtD,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,+BAqO7D"}
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,+BAsO7D"}
@@ -11,7 +11,7 @@ import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { BulletSkillGroup } from '../../kit/BulletSkillGroup.js';
12
12
  import { InitialsAvatar } from '../../kit/InitialsAvatar.js';
13
13
  import { useContactLines } from '../../kit/contact.js';
14
- import { documentStyle } from '../../kit/documentStyle.js';
14
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
15
15
  import { Heading } from '../../kit/Heading.js';
16
16
  import { LinkField } from '../../nodes/LinkField.js';
17
17
  import { ModernCustomEntry, ModernEducationEntry, ModernExperienceEntry, } from './entries.js';
@@ -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), "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", "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
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PolishedDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/polished/PolishedDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoBtD,OAAO,sBAAsB,CAAC;AAC9B,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,+BAmOjE"}
1
+ {"version":3,"file":"PolishedDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/polished/PolishedDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuBtD,OAAO,sBAAsB,CAAC;AAC9B,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,+BAoOjE"}
@@ -10,7 +10,7 @@ import { DescribedEntries } from '../../kit/DescribedEntries.js';
10
10
  import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { GridSkillGroup } from '../../kit/GridSkillGroup.js';
12
12
  import { useContactLines } from '../../kit/contact.js';
13
- import { documentStyle } from '../../kit/documentStyle.js';
13
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
14
14
  import { Heading } from '../../kit/Heading.js';
15
15
  import { LinkField } from '../../nodes/LinkField.js';
16
16
  import { PolishedCustomEntry, PolishedEducationEntry, PolishedExperienceEntry, } from './entries.js';
@@ -24,5 +24,5 @@ export function PolishedDocument({ resume }) {
24
24
  const style = useDocumentStyle();
25
25
  const authoring = useAuthoring() !== null;
26
26
  const contact = useContactLines(resume.contact, ['phone', 'email', 'location'], authoring);
27
- return (_jsx("article", { className: "tpl-polished", style: documentStyle('po', style), "aria-label": doc.t.resume, lang: doc.locale, children: _jsxs("div", { className: "tpl-polished__body tpl-sheet-tall", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-polished__aside", "data-flow": true, children: [_jsx(Heading, { level: 1, className: "tpl-polished__name", "data-block": true, children: _jsx(EditableText, { path: "name", value: resume.name }) }), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-polished__section tpl-described--marked", headingClassName: "tpl-polished__heading", items: resume.achievements, entryClassName: "tpl-polished__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-polished__section", headingClass: "tpl-polished__heading", Entry: PolishedCustomEntry }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-polished__section", headingClassName: "tpl-polished__heading", items: resume.courses, entryClassName: "tpl-polished__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-polished__section", headingClassName: "tpl-polished__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-polished__section tpl-described--marked", headingClassName: "tpl-polished__heading", items: resume.passions, entryClassName: "tpl-polished__described" })] }), _jsxs("div", { className: "tpl-polished__main", "data-flow": true, children: [_jsx("header", { className: "tpl-polished__head-block", "data-block": true, children: _jsxs("div", { className: "tpl-polished__identity", children: [(resume.headline || authoring) && (_jsx("p", { className: "tpl-polished__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-polished__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-polished__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-polished__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }) }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-polished__section", headingClassName: "tpl-polished__heading", children: _jsx("p", { className: "tpl-polished__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-polished__section", headingClassName: "tpl-polished__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(PolishedExperienceEntry, { 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-polished__section", headingClassName: "tpl-polished__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(PolishedEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-polished__section", headingClassName: "tpl-polished__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-polished__section", headingClassName: "tpl-polished__heading", rowClassName: "tpl-polished__language" })] })] }) }));
27
+ return (_jsx("article", { className: "tpl-polished", style: documentStyle('po', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: _jsxs("div", { className: "tpl-polished__body tpl-sheet-tall", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-polished__aside", "data-flow": true, children: [_jsx(Heading, { level: 1, className: "tpl-polished__name", "data-block": true, children: _jsx(EditableText, { path: "name", value: resume.name }) }), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-polished__section tpl-described--marked", headingClassName: "tpl-polished__heading", items: resume.achievements, entryClassName: "tpl-polished__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-polished__section", headingClass: "tpl-polished__heading", Entry: PolishedCustomEntry }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-polished__section", headingClassName: "tpl-polished__heading", items: resume.courses, entryClassName: "tpl-polished__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-polished__section", headingClassName: "tpl-polished__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-polished__section tpl-described--marked", headingClassName: "tpl-polished__heading", items: resume.passions, entryClassName: "tpl-polished__described" })] }), _jsxs("div", { className: "tpl-polished__main", "data-flow": true, children: [_jsx("header", { className: "tpl-polished__head-block", "data-block": true, children: _jsxs("div", { className: "tpl-polished__identity", children: [(resume.headline || authoring) && (_jsx("p", { className: "tpl-polished__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-polished__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-polished__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-polished__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }) }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-polished__section", headingClassName: "tpl-polished__heading", children: _jsx("p", { className: "tpl-polished__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-polished__section", headingClassName: "tpl-polished__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(PolishedExperienceEntry, { 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-polished__section", headingClassName: "tpl-polished__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(PolishedEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-polished__section", headingClassName: "tpl-polished__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-polished__section", headingClassName: "tpl-polished__heading", rowClassName: "tpl-polished__language" })] })] }) }));
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PortraitDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/portrait/PortraitDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,OAAO,sBAAsB,CAAC;AAC9B,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,+BAkPjE"}
1
+ {"version":3,"file":"PortraitDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/portrait/PortraitDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,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,+BAmPjE"}
@@ -11,7 +11,7 @@ import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { GridSkillGroup } from '../../kit/GridSkillGroup.js';
12
12
  import { InitialsAvatar } from '../../kit/InitialsAvatar.js';
13
13
  import { useContactLines } from '../../kit/contact.js';
14
- import { documentStyle } from '../../kit/documentStyle.js';
14
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
15
15
  import { Heading } from '../../kit/Heading.js';
16
16
  import { LinkField } from '../../nodes/LinkField.js';
17
17
  import { PortraitCustomEntry, PortraitEducationEntry, PortraitExperienceEntry, } from './entries.js';
@@ -26,5 +26,5 @@ export function PortraitDocument({ resume }) {
26
26
  const authoring = useAuthoring() !== null;
27
27
  const contact = useContactLines(resume.contact, ['location', 'phone', 'email'], authoring);
28
28
  const headingLead = { count: 3, className: 'tpl-portrait__heading-lead' };
29
- return (_jsx("article", { className: "tpl-portrait", style: documentStyle('pt', style), "aria-label": doc.t.resume, lang: doc.locale, children: _jsxs("div", { className: "tpl-portrait__body tpl-sheet-tall", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-portrait__aside", "data-flow": true, children: [_jsxs("header", { className: "tpl-portrait__head", "data-block": true, children: [_jsx(InitialsAvatar, { name: resume.name, className: "tpl-portrait__avatar" }), _jsx(Heading, { level: 1, className: "tpl-portrait__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-portrait__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("div", { className: "tpl-portrait__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("p", { className: `tpl-portrait__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("p", { className: "tpl-portrait__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, children: _jsx("p", { className: "tpl-portrait__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-portrait__section tpl-portrait__languages", headingClassName: "tpl-portrait__heading", headingLead: headingLead, rowClassName: "tpl-portrait__language" })] }), _jsxs("div", { className: "tpl-portrait__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-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(PortraitExperienceEntry, { 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-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(PortraitEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, items: resume.achievements, entryClassName: "tpl-portrait__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, items: resume.courses, entryClassName: "tpl-portrait__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, 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.interests, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, items: resume.passions, entryClassName: "tpl-portrait__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-portrait__section", headingClass: "tpl-portrait__heading", headingLead: headingLead, Entry: PortraitCustomEntry })] })] }) }));
29
+ return (_jsx("article", { className: "tpl-portrait", style: documentStyle('pt', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: _jsxs("div", { className: "tpl-portrait__body tpl-sheet-tall", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-portrait__aside", "data-flow": true, children: [_jsxs("header", { className: "tpl-portrait__head", "data-block": true, children: [_jsx(InitialsAvatar, { name: resume.name, className: "tpl-portrait__avatar" }), _jsx(Heading, { level: 1, className: "tpl-portrait__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-portrait__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("div", { className: "tpl-portrait__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("p", { className: `tpl-portrait__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("p", { className: "tpl-portrait__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, children: _jsx("p", { className: "tpl-portrait__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-portrait__section tpl-portrait__languages", headingClassName: "tpl-portrait__heading", headingLead: headingLead, rowClassName: "tpl-portrait__language" })] }), _jsxs("div", { className: "tpl-portrait__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-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(PortraitExperienceEntry, { 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-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(PortraitEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, items: resume.achievements, entryClassName: "tpl-portrait__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, items: resume.courses, entryClassName: "tpl-portrait__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, 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.interests, className: "tpl-portrait__section", headingClassName: "tpl-portrait__heading", headingLead: headingLead, items: resume.passions, entryClassName: "tpl-portrait__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-portrait__section", headingClass: "tpl-portrait__heading", headingLead: headingLead, Entry: PortraitCustomEntry })] })] }) }));
30
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PrismDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/prism/PrismDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,aAAa,CAAC;AAGrB,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,kBAAkB,+BAgR3D"}
1
+ {"version":3,"file":"PrismDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/prism/PrismDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,aAAa,CAAC;AAGrB,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,kBAAkB,+BAiR3D"}
@@ -11,7 +11,7 @@ import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { GridSkillGroup } from '../../kit/GridSkillGroup.js';
12
12
  import { leadLetters, nameParts } from '../../kit/textShapes.js';
13
13
  import { useContactLines } from '../../kit/contact.js';
14
- import { documentStyle } from '../../kit/documentStyle.js';
14
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
15
15
  import { Heading } from '../../kit/Heading.js';
16
16
  import { LinkField } from '../../nodes/LinkField.js';
17
17
  import { PrismCustomEntry, PrismEducationEntry, PrismExperienceEntry, } from './entries.js';
@@ -26,7 +26,7 @@ export function PrismDocument({ resume }) {
26
26
  const contact = useContactLines(resume.contact, ['location'], authoring);
27
27
  const contact2 = useContactLines(resume.contact, ['email', 'phone'], authoring);
28
28
  const headingLead = { count: 3, className: 'tpl-prism__heading-lead' };
29
- return (_jsxs("article", { className: "tpl-prism", style: documentStyle('pr', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-prism__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-prism__name", children: _jsx(EditableText, { path: "name", value: resume.name, shape: nameParts('tpl-prism__name-first', 'tpl-prism__name-last') }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-prism__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) }))] }), _jsxs("div", { className: "tpl-prism__body", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-prism__aside", "data-flow": true, children: [(contact.length > 0 ||
29
+ return (_jsxs("article", { className: "tpl-prism", style: documentStyle('pr', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-prism__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-prism__name", children: _jsx(EditableText, { path: "name", value: resume.name, shape: nameParts('tpl-prism__name-first', 'tpl-prism__name-last') }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-prism__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) }))] }), _jsxs("div", { className: "tpl-prism__body", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-prism__aside", "data-flow": true, children: [(contact.length > 0 ||
30
30
  contact2.length > 0 ||
31
31
  resume.links.length > 0 ||
32
32
  authoring) && (_jsxs("section", { className: "tpl-prism__section", children: [_jsx(Heading, { level: 2, className: "tpl-prism__heading", "data-block": true, "data-keep-with-next": true, children: leadLetters(headingLead)(doc.t.panels.contacts) }), contact.length > 0 && (_jsx("p", { className: "tpl-prism__address tpl-contact--location", children: contact.map(({ path, value, placeholder }) => (_jsx(EditableText, { path: path, value: value, placeholder: placeholder }, path))) })), (contact2.length > 0 ||
@@ -1 +1 @@
1
- {"version":3,"file":"ScholarDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/scholar/ScholarDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoBtD,OAAO,eAAe,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BAyO/D"}
1
+ {"version":3,"file":"ScholarDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/scholar/ScholarDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuBtD,OAAO,eAAe,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BA0O/D"}
@@ -10,7 +10,7 @@ import { DescribedEntries } from '../../kit/DescribedEntries.js';
10
10
  import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { GridSkillGroup } from '../../kit/GridSkillGroup.js';
12
12
  import { useContactLines } from '../../kit/contact.js';
13
- import { documentStyle } from '../../kit/documentStyle.js';
13
+ import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
14
14
  import { Heading } from '../../kit/Heading.js';
15
15
  import { LinkField } from '../../nodes/LinkField.js';
16
16
  import { ScholarCustomEntry, ScholarEducationEntry, ScholarExperienceEntry, } from './entries.js';
@@ -23,5 +23,5 @@ export function ScholarDocument({ resume }) {
23
23
  const authoring = useAuthoring() !== null;
24
24
  const contact = useContactLines(resume.contact, ['location'], authoring);
25
25
  const contact2 = useContactLines(resume.contact, ['email', 'phone'], authoring);
26
- return (_jsxs("article", { className: "tpl-scholar", style: documentStyle('sc', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-scholar__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-scholar__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-scholar__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), contact.length > 0 && (_jsx("p", { className: "tpl-scholar__contact", children: contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-scholar__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))) })), (contact2.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-scholar__contact", children: [contact2.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-scholar__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-scholar__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", children: _jsx("p", { className: "tpl-scholar__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ScholarEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ScholarExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-scholar__section", headingClass: "tpl-scholar__heading", Entry: ScholarCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-scholar__section tpl-scholar__languages", headingClassName: "tpl-scholar__heading", rowClassName: "tpl-scholar__language" }), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", items: resume.achievements, entryClassName: "tpl-scholar__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", items: resume.courses, entryClassName: "tpl-scholar__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", children: _jsx("div", { "data-block": 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-scholar__section", headingClassName: "tpl-scholar__heading", items: resume.passions, entryClassName: "tpl-scholar__described" })] }));
26
+ return (_jsxs("article", { className: "tpl-scholar", style: documentStyle('sc', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-scholar__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-scholar__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-scholar__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), contact.length > 0 && (_jsx("p", { className: "tpl-scholar__contact", children: contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-scholar__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))) })), (contact2.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-scholar__contact", children: [contact2.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-scholar__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-scholar__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", children: _jsx("p", { className: "tpl-scholar__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ScholarEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ScholarExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-scholar__section", headingClass: "tpl-scholar__heading", Entry: ScholarCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-scholar__section tpl-scholar__languages", headingClassName: "tpl-scholar__heading", rowClassName: "tpl-scholar__language" }), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", items: resume.achievements, entryClassName: "tpl-scholar__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", items: resume.courses, entryClassName: "tpl-scholar__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-scholar__section", headingClassName: "tpl-scholar__heading", children: _jsx("div", { "data-block": 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-scholar__section", headingClassName: "tpl-scholar__heading", items: resume.passions, entryClassName: "tpl-scholar__described" })] }));
27
27
  }