@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
@@ -11,7 +11,7 @@ import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { TagSkillGroup } from '../../kit/TagSkillGroup.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 { AltaCustomEntry, AltaEducationEntry, AltaExperienceEntry, } from './entries.js';
@@ -25,5 +25,5 @@ export function AltaDocument({ resume }) {
25
25
  const style = useDocumentStyle();
26
26
  const authoring = useAuthoring() !== null;
27
27
  const contact = useContactLines(resume.contact, ['email', 'phone', 'location'], authoring);
28
- return (_jsxs("article", { className: "tpl-alta", style: documentStyle('al', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-alta__head", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-alta__ident", children: [_jsx(Heading, { level: 1, className: "tpl-alta__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-alta__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-alta__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-alta__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-alta__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-alta__avatar" })] }), _jsxs("div", { className: "tpl-alta__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-alta__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-alta__section", headingClassName: "tpl-alta__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(AltaExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-alta__section", headingClass: "tpl-alta__heading", Entry: AltaCustomEntry }), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-alta__section", headingClassName: "tpl-alta__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(AltaEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-alta__section tpl-alta__section--courses", headingClassName: "tpl-alta__heading", items: resume.courses, entryClassName: "tpl-alta__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-alta__section", headingClassName: "tpl-alta__heading", children: _jsx("div", { "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) }))] }), _jsxs("aside", { className: "tpl-alta__aside", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-alta__section tpl-alta__section--quote", headingClassName: "tpl-alta__heading", children: _jsx("p", { className: "tpl-alta__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-alta__section tpl-alta__section--proud", headingClassName: "tpl-alta__heading", items: resume.achievements, entryClassName: "tpl-alta__described" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-alta__section", headingClassName: "tpl-alta__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 })) }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-alta__section", headingClassName: "tpl-alta__heading", rowClassName: "tpl-alta__language" }), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-alta__section tpl-alta__section--passions", headingClassName: "tpl-alta__heading", items: resume.passions, entryClassName: "tpl-alta__described" })] })] })] }));
28
+ return (_jsxs("article", { className: "tpl-alta", style: documentStyle('al', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-alta__head", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-alta__ident", children: [_jsx(Heading, { level: 1, className: "tpl-alta__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-alta__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-alta__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-alta__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-alta__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-alta__avatar" })] }), _jsxs("div", { className: "tpl-alta__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-alta__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-alta__section", headingClassName: "tpl-alta__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(AltaExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-alta__section", headingClass: "tpl-alta__heading", Entry: AltaCustomEntry }), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-alta__section", headingClassName: "tpl-alta__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(AltaEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-alta__section tpl-alta__section--courses", headingClassName: "tpl-alta__heading", items: resume.courses, entryClassName: "tpl-alta__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-alta__section", headingClassName: "tpl-alta__heading", children: _jsx("div", { "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) }))] }), _jsxs("aside", { className: "tpl-alta__aside", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-alta__section tpl-alta__section--quote", headingClassName: "tpl-alta__heading", children: _jsx("p", { className: "tpl-alta__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-alta__section tpl-alta__section--proud", headingClassName: "tpl-alta__heading", items: resume.achievements, entryClassName: "tpl-alta__described" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-alta__section", headingClassName: "tpl-alta__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 })) }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-alta__section", headingClassName: "tpl-alta__heading", rowClassName: "tpl-alta__language" }), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-alta__section tpl-alta__section--passions", headingClassName: "tpl-alta__heading", items: resume.passions, entryClassName: "tpl-alta__described" })] })] })] }));
29
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ClassicDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/classic/ClassicDocument.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":"ClassicDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/classic/ClassicDocument.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"}
@@ -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 { ClassicCustomEntry, ClassicEducationEntry, ClassicExperienceEntry, } from './entries.js';
@@ -22,5 +22,5 @@ export function ClassicDocument({ 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-classic", style: documentStyle('cl', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-classic__head-block", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-classic__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-classic__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-classic__contact", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-classic__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-classic__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-classic__section", headingClassName: "tpl-classic__heading", children: _jsx("p", { className: "tpl-classic__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-classic__section", headingClassName: "tpl-classic__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ClassicExperienceEntry, { 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-classic__section", headingClassName: "tpl-classic__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ClassicEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-classic__section tpl-described--grid", headingClassName: "tpl-classic__heading", items: resume.achievements, entryClassName: "tpl-classic__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-classic__section", headingClass: "tpl-classic__heading", Entry: ClassicCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-classic__section", headingClassName: "tpl-classic__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-classic__section", headingClassName: "tpl-classic__heading", items: resume.courses, entryClassName: "tpl-classic__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-classic__section", headingClassName: "tpl-classic__heading", rowClassName: "tpl-classic__language" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-classic__section", headingClassName: "tpl-classic__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-classic__section", headingClassName: "tpl-classic__heading", items: resume.passions, entryClassName: "tpl-classic__described" })] }));
25
+ return (_jsxs("article", { className: "tpl-classic", style: documentStyle('cl', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-classic__head-block", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-classic__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-classic__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-classic__contact", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-classic__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-classic__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-classic__section", headingClassName: "tpl-classic__heading", children: _jsx("p", { className: "tpl-classic__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-classic__section", headingClassName: "tpl-classic__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ClassicExperienceEntry, { 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-classic__section", headingClassName: "tpl-classic__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ClassicEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-classic__section tpl-described--grid", headingClassName: "tpl-classic__heading", items: resume.achievements, entryClassName: "tpl-classic__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-classic__section", headingClass: "tpl-classic__heading", Entry: ClassicCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-classic__section", headingClassName: "tpl-classic__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-classic__section", headingClassName: "tpl-classic__heading", items: resume.courses, entryClassName: "tpl-classic__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-classic__section", headingClassName: "tpl-classic__heading", rowClassName: "tpl-classic__language" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-classic__section", headingClassName: "tpl-classic__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-classic__section", headingClassName: "tpl-classic__heading", items: resume.passions, entryClassName: "tpl-classic__described" })] }));
26
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CobaltDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/cobalt/CobaltDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,cAAc,CAAC;AAGtB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,+BA2Q7D"}
1
+ {"version":3,"file":"CobaltDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/cobalt/CobaltDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,cAAc,CAAC;AAGtB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,+BA4Q7D"}
@@ -10,7 +10,7 @@ import { DescribedEntries } from '../../kit/DescribedEntries.js';
10
10
  import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { BulletSkillGroup } from '../../kit/BulletSkillGroup.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 { CobaltCustomEntry, CobaltEducationEntry, CobaltExperienceEntry, } from './entries.js';
@@ -24,5 +24,5 @@ export function CobaltDocument({ resume }) {
24
24
  const style = useDocumentStyle();
25
25
  const authoring = useAuthoring() !== null;
26
26
  const contact = useContactLines(resume.contact, ['email', 'phone', 'location'], authoring);
27
- return (_jsxs("article", { className: "tpl-cob", style: documentStyle('c', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-cob__head", "data-block": true, children: [_jsx(CobaltCrest, { resume: resume }), _jsx(Heading, { level: 1, className: "tpl-cob__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), contact.length > 0 && (_jsx("div", { className: "tpl-cob__contact", children: contact.map(({ field, path, value, placeholder }) => (_jsx("p", { className: `tpl-cob__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))) }))] }), _jsxs("div", { className: "tpl-cob__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-cob__rail", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.professionalSummary, className: "tpl-cob__section", headingClassName: "tpl-cob__heading", children: _jsx("p", { className: "tpl-cob__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-cob__section tpl-described--marked", headingClassName: "tpl-cob__heading", items: resume.achievements, entryClassName: "tpl-cob__described" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-cob__section", headingClassName: "tpl-cob__heading", 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.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-cob__section", headingClassName: "tpl-cob__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CobaltEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-cob__section", headingClassName: "tpl-cob__heading", items: resume.courses, entryClassName: "tpl-cob__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-cob__section", headingClassName: "tpl-cob__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-cob__section tpl-described--marked", headingClassName: "tpl-cob__heading", items: resume.passions, entryClassName: "tpl-cob__described" })] }), _jsxs("div", { className: "tpl-cob__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-cob__section", headingClassName: "tpl-cob__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CobaltExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-cob__section", headingClassName: "tpl-cob__heading", rowClassName: "tpl-cob__language" }), (resume.headline || authoring) && (_jsxs("section", { className: "tpl-cob__section", children: [_jsx(Heading, { level: 2, className: "tpl-cob__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.personalInformation }), (resume.headline || authoring) && (_jsxs("p", { className: "tpl-cob__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-cob__section", children: [_jsx(Heading, { level: 2, className: "tpl-cob__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.locations }), _jsx("p", { className: "tpl-cob__prose", "data-block": true, children: resume.contact.location })] })), (resume.links.length > 0 || authoring) && (_jsxs("section", { className: "tpl-cob__section", children: [_jsx(Heading, { level: 2, className: "tpl-cob__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.websites }), _jsx("ul", { className: "tpl-cob__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-cob__link tpl-contact--link", children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] })) }) })] })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-cob__section", headingClass: "tpl-cob__heading", Entry: CobaltCustomEntry })] })] })] }));
27
+ return (_jsxs("article", { className: "tpl-cob", style: documentStyle('c', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-cob__head", "data-block": true, children: [_jsx(CobaltCrest, { resume: resume }), _jsx(Heading, { level: 1, className: "tpl-cob__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), contact.length > 0 && (_jsx("div", { className: "tpl-cob__contact", children: contact.map(({ field, path, value, placeholder }) => (_jsx("p", { className: `tpl-cob__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))) }))] }), _jsxs("div", { className: "tpl-cob__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-cob__rail", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.professionalSummary, className: "tpl-cob__section", headingClassName: "tpl-cob__heading", children: _jsx("p", { className: "tpl-cob__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-cob__section tpl-described--marked", headingClassName: "tpl-cob__heading", items: resume.achievements, entryClassName: "tpl-cob__described" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.technicalSkills, className: "tpl-cob__section", headingClassName: "tpl-cob__heading", 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.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-cob__section", headingClassName: "tpl-cob__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CobaltEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-cob__section", headingClassName: "tpl-cob__heading", items: resume.courses, entryClassName: "tpl-cob__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-cob__section", headingClassName: "tpl-cob__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-cob__section tpl-described--marked", headingClassName: "tpl-cob__heading", items: resume.passions, entryClassName: "tpl-cob__described" })] }), _jsxs("div", { className: "tpl-cob__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-cob__section", headingClassName: "tpl-cob__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CobaltExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-cob__section", headingClassName: "tpl-cob__heading", rowClassName: "tpl-cob__language" }), (resume.headline || authoring) && (_jsxs("section", { className: "tpl-cob__section", children: [_jsx(Heading, { level: 2, className: "tpl-cob__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.personalInformation }), (resume.headline || authoring) && (_jsxs("p", { className: "tpl-cob__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-cob__section", children: [_jsx(Heading, { level: 2, className: "tpl-cob__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.locations }), _jsx("p", { className: "tpl-cob__prose", "data-block": true, children: resume.contact.location })] })), (resume.links.length > 0 || authoring) && (_jsxs("section", { className: "tpl-cob__section", children: [_jsx(Heading, { level: 2, className: "tpl-cob__heading", "data-block": true, "data-keep-with-next": true, children: doc.t.panels.websites }), _jsx("ul", { className: "tpl-cob__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-cob__link tpl-contact--link", children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] })) }) })] })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-cob__section", headingClass: "tpl-cob__heading", Entry: CobaltCustomEntry })] })] })] }));
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CompactDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/compact/CompactDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoBtD,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,+BA6N/D"}
1
+ {"version":3,"file":"CompactDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/compact/CompactDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuBtD,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,+BA8N/D"}
@@ -10,7 +10,7 @@ import { DescribedEntries } from '../../kit/DescribedEntries.js';
10
10
  import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { BulletSkillGroup } from '../../kit/BulletSkillGroup.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 { CompactCustomEntry, CompactEducationEntry, CompactExperienceEntry, } from './entries.js';
@@ -24,5 +24,5 @@ export function CompactDocument({ 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 (_jsxs("article", { className: "tpl-compact", style: documentStyle('cp', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-compact__head-block", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-compact__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-compact__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-compact__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-compact__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-compact__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), _jsxs("div", { className: "tpl-compact__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-compact__main", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-compact__section", headingClassName: "tpl-compact__heading", children: _jsx("p", { className: "tpl-compact__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-compact__section", headingClassName: "tpl-compact__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CompactExperienceEntry, { 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-compact__section", headingClassName: "tpl-compact__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CompactEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-compact__section", headingClassName: "tpl-compact__heading", rowClassName: "tpl-compact__language" })] }), _jsxs("aside", { className: "tpl-compact__aside", "data-flow": true, children: [_jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-compact__section tpl-described--marked", headingClassName: "tpl-compact__heading", items: resume.achievements, entryClassName: "tpl-compact__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-compact__section", headingClass: "tpl-compact__heading", Entry: CompactCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-compact__section", headingClassName: "tpl-compact__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-compact__section", headingClassName: "tpl-compact__heading", items: resume.courses, entryClassName: "tpl-compact__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-compact__section", headingClassName: "tpl-compact__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-compact__section tpl-described--marked", headingClassName: "tpl-compact__heading", items: resume.passions, entryClassName: "tpl-compact__described" })] })] })] }));
27
+ return (_jsxs("article", { className: "tpl-compact", style: documentStyle('cp', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-compact__head-block", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-compact__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-compact__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-compact__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-compact__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-compact__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), _jsxs("div", { className: "tpl-compact__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-compact__main", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-compact__section", headingClassName: "tpl-compact__heading", children: _jsx("p", { className: "tpl-compact__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-compact__section", headingClassName: "tpl-compact__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CompactExperienceEntry, { 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-compact__section", headingClassName: "tpl-compact__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CompactEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-compact__section", headingClassName: "tpl-compact__heading", rowClassName: "tpl-compact__language" })] }), _jsxs("aside", { className: "tpl-compact__aside", "data-flow": true, children: [_jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-compact__section tpl-described--marked", headingClassName: "tpl-compact__heading", items: resume.achievements, entryClassName: "tpl-compact__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-compact__section", headingClass: "tpl-compact__heading", Entry: CompactCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-compact__section", headingClassName: "tpl-compact__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-compact__section", headingClassName: "tpl-compact__heading", items: resume.courses, entryClassName: "tpl-compact__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-compact__section", headingClassName: "tpl-compact__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-compact__section tpl-described--marked", headingClassName: "tpl-compact__heading", items: resume.passions, entryClassName: "tpl-compact__described" })] })] })] }));
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ContemporaryDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/contemporary/ContemporaryDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,oBAAoB,CAAC;AAG5B,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,yBAAyB,+BA2PzE"}
1
+ {"version":3,"file":"ContemporaryDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/contemporary/ContemporaryDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,oBAAoB,CAAC;AAG5B,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,yBAAyB,+BA4PzE"}
@@ -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 { ContemporaryCustomEntry, ContemporaryEducationEntry, ContemporaryExperienceEntry, } from './entries.js';
@@ -25,5 +25,5 @@ export function ContemporaryDocument({ 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-contemporary", style: documentStyle('cn', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-contemporary__head-block", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-contemporary__identity", children: [_jsx(Heading, { level: 1, className: "tpl-contemporary__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-contemporary__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) }))] }), _jsx(InitialsAvatar, { name: resume.name, className: "tpl-contemporary__avatar" })] }), _jsxs("div", { className: "tpl-contemporary__body", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-contemporary__aside", "data-flow": true, children: [(contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("section", { className: "tpl-contemporary__section", children: [_jsx(Heading, { level: 2, className: "tpl-contemporary__heading tpl-contemporary__heading--contacts", "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-contemporary__contacts tpl-contact-icons", "data-block": true, children: [contact.map(({ field, path, value, placeholder }) => (_jsx("p", { className: `tpl-contemporary__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-contemporary__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-contemporary__section", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--summary", children: _jsx("p", { className: "tpl-contemporary__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.keyAchievements, className: "tpl-contemporary__section tpl-described--marked", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--achievements", items: resume.achievements, entryClassName: "tpl-contemporary__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-contemporary__section", headingClass: "tpl-contemporary__heading", Entry: ContemporaryCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-contemporary__section", headingClassName: "tpl-contemporary__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-contemporary__section", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--courses", items: resume.courses, entryClassName: "tpl-contemporary__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-contemporary__section", headingClassName: "tpl-contemporary__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-contemporary__section tpl-described--marked", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--passions", items: resume.passions, entryClassName: "tpl-contemporary__described" })] }), _jsxs("div", { className: "tpl-contemporary__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-contemporary__section", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--experience", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ContemporaryExperienceEntry, { 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-contemporary__section", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--education", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ContemporaryEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-contemporary__section", headingClassName: "tpl-contemporary__heading", rowClassName: "tpl-contemporary__language" })] })] })] }));
28
+ return (_jsxs("article", { className: "tpl-contemporary", style: documentStyle('cn', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-contemporary__head-block", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-contemporary__identity", children: [_jsx(Heading, { level: 1, className: "tpl-contemporary__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-contemporary__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) }))] }), _jsx(InitialsAvatar, { name: resume.name, className: "tpl-contemporary__avatar" })] }), _jsxs("div", { className: "tpl-contemporary__body", "data-layout": "row", children: [_jsxs("aside", { className: "tpl-contemporary__aside", "data-flow": true, children: [(contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("section", { className: "tpl-contemporary__section", children: [_jsx(Heading, { level: 2, className: "tpl-contemporary__heading tpl-contemporary__heading--contacts", "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-contemporary__contacts tpl-contact-icons", "data-block": true, children: [contact.map(({ field, path, value, placeholder }) => (_jsx("p", { className: `tpl-contemporary__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-contemporary__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-contemporary__section", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--summary", children: _jsx("p", { className: "tpl-contemporary__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.keyAchievements, className: "tpl-contemporary__section tpl-described--marked", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--achievements", items: resume.achievements, entryClassName: "tpl-contemporary__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-contemporary__section", headingClass: "tpl-contemporary__heading", Entry: ContemporaryCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-contemporary__section", headingClassName: "tpl-contemporary__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-contemporary__section", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--courses", items: resume.courses, entryClassName: "tpl-contemporary__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-contemporary__section", headingClassName: "tpl-contemporary__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-contemporary__section tpl-described--marked", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--passions", items: resume.passions, entryClassName: "tpl-contemporary__described" })] }), _jsxs("div", { className: "tpl-contemporary__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-contemporary__section", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--experience", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ContemporaryExperienceEntry, { 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-contemporary__section", headingClassName: "tpl-contemporary__heading tpl-contemporary__heading--education", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ContemporaryEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-contemporary__section", headingClassName: "tpl-contemporary__heading", rowClassName: "tpl-contemporary__language" })] })] })] }));
29
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CreativeDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/creative/CreativeDocument.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,+BAyOjE"}
1
+ {"version":3,"file":"CreativeDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/creative/CreativeDocument.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,+BA0OjE"}
@@ -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 { CreativeCustomEntry, CreativeEducationEntry, CreativeExperienceEntry, } from './entries.js';
@@ -25,5 +25,5 @@ export function CreativeDocument({ 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-creative", style: documentStyle('cr', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-creative__band", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-creative__identity", children: [_jsx(Heading, { level: 1, className: "tpl-creative__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-creative__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-creative__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-creative__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-creative__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-creative__avatar" })] }), _jsxs("div", { className: "tpl-creative__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-creative__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-creative__section", headingClassName: "tpl-creative__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CreativeExperienceEntry, { 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-creative__section", headingClassName: "tpl-creative__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CreativeEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-creative__section tpl-described--grid", headingClassName: "tpl-creative__heading", items: resume.courses, entryClassName: "tpl-creative__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", rowClassName: "tpl-creative__language" })] }), _jsxs("aside", { className: "tpl-creative__aside", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", children: _jsx("p", { className: "tpl-creative__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-creative__section", headingClass: "tpl-creative__heading", Entry: CreativeCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", children: _jsx("div", { className: "tpl-keywords tpl-keywords--tags", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-creative__section tpl-described--marked", headingClassName: "tpl-creative__heading", items: resume.achievements, entryClassName: "tpl-creative__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-creative__section", headingClassName: "tpl-creative__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-creative__section tpl-described--marked", headingClassName: "tpl-creative__heading", items: resume.passions, entryClassName: "tpl-creative__described" })] })] })] }));
28
+ return (_jsxs("article", { className: "tpl-creative", style: documentStyle('cr', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-creative__band", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-creative__identity", children: [_jsx(Heading, { level: 1, className: "tpl-creative__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-creative__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-creative__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-creative__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-creative__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-creative__avatar" })] }), _jsxs("div", { className: "tpl-creative__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-creative__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-creative__section", headingClassName: "tpl-creative__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CreativeExperienceEntry, { 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-creative__section", headingClassName: "tpl-creative__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CreativeEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-creative__section tpl-described--grid", headingClassName: "tpl-creative__heading", items: resume.courses, entryClassName: "tpl-creative__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", rowClassName: "tpl-creative__language" })] }), _jsxs("aside", { className: "tpl-creative__aside", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", children: _jsx("p", { className: "tpl-creative__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-creative__section", headingClass: "tpl-creative__heading", Entry: CreativeCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", children: _jsx("div", { className: "tpl-keywords tpl-keywords--tags", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-creative__section tpl-described--marked", headingClassName: "tpl-creative__heading", items: resume.achievements, entryClassName: "tpl-creative__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-creative__section", headingClassName: "tpl-creative__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-creative__section tpl-described--marked", headingClassName: "tpl-creative__heading", items: resume.passions, entryClassName: "tpl-creative__described" })] })] })] }));
29
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CrimsonDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/crimson/CrimsonDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,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,+BAwP/D"}
1
+ {"version":3,"file":"CrimsonDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/crimson/CrimsonDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,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,+BAyP/D"}
@@ -11,7 +11,7 @@ import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { GridSkillGroup } from '../../kit/GridSkillGroup.js';
12
12
  import { 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 { CrimsonCustomEntry, CrimsonEducationEntry, CrimsonExperienceEntry, } from './entries.js';
@@ -26,5 +26,5 @@ export function CrimsonDocument({ resume }) {
26
26
  const contact = useContactLines(resume.contact, ['location'], authoring);
27
27
  const contact2 = useContactLines(resume.contact, ['phone', 'email'], authoring);
28
28
  const headingLead = { count: 3, className: 'tpl-crimson__heading-lead' };
29
- return (_jsxs("article", { className: "tpl-crimson", style: documentStyle('crm', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-crimson__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-crimson__name", children: _jsx(EditableText, { path: "name", value: resume.name, shape: nameParts('tpl-crimson__name-first', 'tpl-crimson__name-last') }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-crimson__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), contact.length > 0 && (_jsx("p", { className: "tpl-crimson__address tpl-contact--location", children: contact.map(({ path, value, placeholder }) => (_jsx(EditableText, { path: path, value: value, placeholder: placeholder }, path))) })), (contact2.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-crimson__contact tpl-contact-icons", children: [contact2.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-crimson__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-crimson__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-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, children: _jsx("p", { className: "tpl-crimson__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-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CrimsonExperienceEntry, { 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-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CrimsonEducationEntry, { 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-crimson__section", headingClassName: "tpl-crimson__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(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, items: resume.achievements, entryClassName: "tpl-crimson__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, items: resume.courses, entryClassName: "tpl-crimson__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-crimson__section tpl-crimson__languages", headingClassName: "tpl-crimson__heading", headingLead: headingLead, rowClassName: "tpl-crimson__language" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-crimson__section", headingClassName: "tpl-crimson__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.passions, className: "tpl-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, items: resume.passions, entryClassName: "tpl-crimson__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-crimson__section", headingClass: "tpl-crimson__heading", headingLead: headingLead, Entry: CrimsonCustomEntry })] }));
29
+ return (_jsxs("article", { className: "tpl-crimson", style: documentStyle('crm', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-crimson__head", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-crimson__name", children: _jsx(EditableText, { path: "name", value: resume.name, shape: nameParts('tpl-crimson__name-first', 'tpl-crimson__name-last') }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-crimson__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), contact.length > 0 && (_jsx("p", { className: "tpl-crimson__address tpl-contact--location", children: contact.map(({ path, value, placeholder }) => (_jsx(EditableText, { path: path, value: value, placeholder: placeholder }, path))) })), (contact2.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-crimson__contact tpl-contact-icons", children: [contact2.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-crimson__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-crimson__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-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, children: _jsx("p", { className: "tpl-crimson__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-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CrimsonExperienceEntry, { 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-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CrimsonEducationEntry, { 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-crimson__section", headingClassName: "tpl-crimson__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(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, items: resume.achievements, entryClassName: "tpl-crimson__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, items: resume.courses, entryClassName: "tpl-crimson__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-crimson__section tpl-crimson__languages", headingClassName: "tpl-crimson__heading", headingLead: headingLead, rowClassName: "tpl-crimson__language" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-crimson__section", headingClassName: "tpl-crimson__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.passions, className: "tpl-crimson__section", headingClassName: "tpl-crimson__heading", headingLead: headingLead, items: resume.passions, entryClassName: "tpl-crimson__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-crimson__section", headingClass: "tpl-crimson__heading", headingLead: headingLead, Entry: CrimsonCustomEntry })] }));
30
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CurveDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/curve/CurveDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,aAAa,CAAC;AAGrB,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,kBAAkB,+BA+N3D"}
1
+ {"version":3,"file":"CurveDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/curve/CurveDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,aAAa,CAAC;AAGrB,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAAE,MAAM,EAAE,EAAE,kBAAkB,+BAgO3D"}
@@ -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 { CurveCustomEntry, CurveEducationEntry, CurveExperienceEntry, } from './entries.js';
@@ -25,5 +25,5 @@ export function CurveDocument({ resume }) {
25
25
  const style = useDocumentStyle();
26
26
  const authoring = useAuthoring() !== null;
27
27
  const contact = useContactLines(resume.contact, ['email', 'phone', 'location'], authoring);
28
- return (_jsxs("article", { className: "tpl-curve", style: documentStyle('cv', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-curve__head", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-curve__identity", children: [_jsx(Heading, { level: 1, className: "tpl-curve__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-curve__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("div", { className: "tpl-curve__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-curve__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-curve__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-curve__avatar" })] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-curve__section", headingClassName: "tpl-curve__heading", children: _jsx("p", { className: "tpl-curve__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-curve__section", headingClassName: "tpl-curve__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CurveExperienceEntry, { 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-curve__section", headingClassName: "tpl-curve__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CurveEducationEntry, { 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-curve__section", headingClassName: "tpl-curve__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-curve__section tpl-curve__section--numbered", headingClassName: "tpl-curve__heading", items: resume.achievements, entryClassName: "tpl-curve__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-curve__section tpl-curve__section--marked", headingClassName: "tpl-curve__heading", items: resume.courses, entryClassName: "tpl-curve__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-curve__section", headingClassName: "tpl-curve__heading", children: _jsx("div", { className: "tpl-curve__hung", "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-curve__section", headingClassName: "tpl-curve__heading", rowClassName: "tpl-curve__language" }), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-curve__section tpl-curve__section--marked", headingClassName: "tpl-curve__heading", items: resume.passions, entryClassName: "tpl-curve__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-curve__section", headingClass: "tpl-curve__heading", Entry: CurveCustomEntry })] }));
28
+ return (_jsxs("article", { className: "tpl-curve", style: documentStyle('cv', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-curve__head", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-curve__identity", children: [_jsx(Heading, { level: 1, className: "tpl-curve__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-curve__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("div", { className: "tpl-curve__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-curve__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-curve__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-curve__avatar" })] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-curve__section", headingClassName: "tpl-curve__heading", children: _jsx("p", { className: "tpl-curve__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-curve__section", headingClassName: "tpl-curve__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CurveExperienceEntry, { 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-curve__section", headingClassName: "tpl-curve__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CurveEducationEntry, { 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-curve__section", headingClassName: "tpl-curve__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-curve__section tpl-curve__section--numbered", headingClassName: "tpl-curve__heading", items: resume.achievements, entryClassName: "tpl-curve__described" }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-curve__section tpl-curve__section--marked", headingClassName: "tpl-curve__heading", items: resume.courses, entryClassName: "tpl-curve__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-curve__section", headingClassName: "tpl-curve__heading", children: _jsx("div", { className: "tpl-curve__hung", "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-curve__section", headingClassName: "tpl-curve__heading", rowClassName: "tpl-curve__language" }), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-curve__section tpl-curve__section--marked", headingClassName: "tpl-curve__heading", items: resume.passions, entryClassName: "tpl-curve__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-curve__section", headingClass: "tpl-curve__heading", Entry: CurveCustomEntry })] }));
29
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DoubleColumnDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/double-column/DoubleColumnDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,qBAAqB,CAAC;AAG7B,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,yBAAyB,+BAyOzE"}
1
+ {"version":3,"file":"DoubleColumnDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/double-column/DoubleColumnDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,qBAAqB,CAAC;AAG7B,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,yBAAyB,+BA0OzE"}
@@ -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 { DoubleColumnCustomEntry, DoubleColumnEducationEntry, DoubleColumnExperienceEntry, } from './entries.js';
@@ -25,5 +25,5 @@ export function DoubleColumnDocument({ 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-dc", style: documentStyle('dc', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-dc__head-block", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-dc__identity", children: [_jsx(Heading, { level: 1, className: "tpl-dc__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-dc__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-dc__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-dc__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-dc__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-dc__avatar" })] }), _jsxs("div", { className: "tpl-dc__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-dc__main", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-dc__section", headingClassName: "tpl-dc__heading", children: _jsx("p", { className: "tpl-dc__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-dc__section", headingClassName: "tpl-dc__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(DoubleColumnExperienceEntry, { 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-dc__section", headingClassName: "tpl-dc__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(DoubleColumnEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-dc__section", headingClassName: "tpl-dc__heading", rowClassName: "tpl-dc__language" })] }), _jsxs("aside", { className: "tpl-dc__aside", "data-flow": true, children: [_jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-dc__section tpl-described--marked", headingClassName: "tpl-dc__heading", items: resume.achievements, entryClassName: "tpl-dc__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-dc__section", headingClass: "tpl-dc__heading", Entry: DoubleColumnCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-dc__section", headingClassName: "tpl-dc__heading", children: _jsx("div", { className: "tpl-keywords tpl-keywords--tags", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-dc__section", headingClassName: "tpl-dc__heading", items: resume.courses, entryClassName: "tpl-dc__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-dc__section", headingClassName: "tpl-dc__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-dc__section tpl-described--marked", headingClassName: "tpl-dc__heading", items: resume.passions, entryClassName: "tpl-dc__described" })] })] })] }));
28
+ return (_jsxs("article", { className: "tpl-dc", style: documentStyle('dc', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-dc__head-block", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-dc__identity", children: [_jsx(Heading, { level: 1, className: "tpl-dc__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-dc__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-dc__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-dc__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-dc__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-dc__avatar" })] }), _jsxs("div", { className: "tpl-dc__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-dc__main", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-dc__section", headingClassName: "tpl-dc__heading", children: _jsx("p", { className: "tpl-dc__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-dc__section", headingClassName: "tpl-dc__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(DoubleColumnExperienceEntry, { 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-dc__section", headingClassName: "tpl-dc__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(DoubleColumnEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-dc__section", headingClassName: "tpl-dc__heading", rowClassName: "tpl-dc__language" })] }), _jsxs("aside", { className: "tpl-dc__aside", "data-flow": true, children: [_jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-dc__section tpl-described--marked", headingClassName: "tpl-dc__heading", items: resume.achievements, entryClassName: "tpl-dc__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-dc__section", headingClass: "tpl-dc__heading", Entry: DoubleColumnCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-dc__section", headingClassName: "tpl-dc__heading", children: _jsx("div", { className: "tpl-keywords tpl-keywords--tags", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-dc__section", headingClassName: "tpl-dc__heading", items: resume.courses, entryClassName: "tpl-dc__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-dc__section", headingClassName: "tpl-dc__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-dc__section tpl-described--marked", headingClassName: "tpl-dc__heading", items: resume.passions, entryClassName: "tpl-dc__described" })] })] })] }));
29
29
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DoubleColumnLogosDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/double-column-logos/DoubleColumnLogosDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,2BAA2B,CAAC;AAGnC,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,GACP,EAAE,8BAA8B,+BAiOhC"}
1
+ {"version":3,"file":"DoubleColumnLogosDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/double-column-logos/DoubleColumnLogosDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,2BAA2B,CAAC;AAGnC,MAAM,WAAW,8BAA8B;IAC7C,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,yBAAyB,CAAC,EACxC,MAAM,GACP,EAAE,8BAA8B,+BAkOhC"}
@@ -10,7 +10,7 @@ import { DescribedEntries } from '../../kit/DescribedEntries.js';
10
10
  import { LanguageList } from '../../kit/LanguageList.js';
11
11
  import { BulletSkillGroup } from '../../kit/BulletSkillGroup.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 { DoubleColumnLogosCustomEntry, DoubleColumnLogosEducationEntry, DoubleColumnLogosExperienceEntry, } from './entries.js';
@@ -24,5 +24,5 @@ export function DoubleColumnLogosDocument({ 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 (_jsxs("article", { className: "tpl-dcl", style: documentStyle('dcl', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-dcl__head-block", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-dcl__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-dcl__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-dcl__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-dcl__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-dcl__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), _jsxs("div", { className: "tpl-dcl__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-dcl__main", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-dcl__section", headingClassName: "tpl-dcl__heading", children: _jsx("p", { className: "tpl-dcl__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-dcl__section", headingClassName: "tpl-dcl__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(DoubleColumnLogosExperienceEntry, { 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-dcl__section", headingClassName: "tpl-dcl__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(DoubleColumnLogosEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-dcl__section", headingClassName: "tpl-dcl__heading", rowClassName: "tpl-dcl__language" })] }), _jsxs("aside", { className: "tpl-dcl__aside", "data-flow": true, children: [_jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.keyAchievements, className: "tpl-dcl__section tpl-described--marked", headingClassName: "tpl-dcl__heading", items: resume.achievements, entryClassName: "tpl-dcl__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-dcl__section", headingClass: "tpl-dcl__heading", Entry: DoubleColumnLogosCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-dcl__section", headingClassName: "tpl-dcl__heading", children: _jsx("div", { className: "tpl-keywords tpl-keywords--tags", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-dcl__section", headingClassName: "tpl-dcl__heading", items: resume.courses, entryClassName: "tpl-dcl__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-dcl__section", headingClassName: "tpl-dcl__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-dcl__section tpl-described--marked", headingClassName: "tpl-dcl__heading", items: resume.passions, entryClassName: "tpl-dcl__described" })] })] })] }));
27
+ return (_jsxs("article", { className: "tpl-dcl", style: documentStyle('dcl', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-dcl__head-block", "data-block": true, children: [_jsx(Heading, { level: 1, className: "tpl-dcl__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-dcl__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-dcl__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-dcl__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-dcl__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), _jsxs("div", { className: "tpl-dcl__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-dcl__main", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-dcl__section", headingClassName: "tpl-dcl__heading", children: _jsx("p", { className: "tpl-dcl__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-dcl__section", headingClassName: "tpl-dcl__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(DoubleColumnLogosExperienceEntry, { 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-dcl__section", headingClassName: "tpl-dcl__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(DoubleColumnLogosEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-dcl__section", headingClassName: "tpl-dcl__heading", rowClassName: "tpl-dcl__language" })] }), _jsxs("aside", { className: "tpl-dcl__aside", "data-flow": true, children: [_jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.keyAchievements, className: "tpl-dcl__section tpl-described--marked", headingClassName: "tpl-dcl__heading", items: resume.achievements, entryClassName: "tpl-dcl__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-dcl__section", headingClass: "tpl-dcl__heading", Entry: DoubleColumnLogosCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-dcl__section", headingClassName: "tpl-dcl__heading", children: _jsx("div", { className: "tpl-keywords tpl-keywords--tags", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-dcl__section", headingClassName: "tpl-dcl__heading", items: resume.courses, entryClassName: "tpl-dcl__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-dcl__section", headingClassName: "tpl-dcl__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-dcl__section tpl-described--marked", headingClassName: "tpl-dcl__heading", items: resume.passions, entryClassName: "tpl-dcl__described" })] })] })] }));
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ElegantDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/elegant/ElegantDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,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,+BAqQ/D"}
1
+ {"version":3,"file":"ElegantDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/elegant/ElegantDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,eAAe,CAAC;AAGvB,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,oBAAoB,+BAsQ/D"}
@@ -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 { ElegantCustomEntry, ElegantEducationEntry, ElegantExperienceEntry, } from './entries.js';
@@ -27,5 +27,5 @@ export function ElegantDocument({ resume }) {
27
27
  const contact = useContactLines(resume.contact, ['phone'], authoring);
28
28
  const contact2 = useContactLines(resume.contact, ['email'], authoring);
29
29
  const contact3 = useContactLines(resume.contact, ['location'], authoring);
30
- return (_jsx("article", { className: "tpl-elegant", style: documentStyle('el', style), "aria-label": doc.t.resume, lang: doc.locale, children: _jsxs("div", { className: "tpl-elegant__body tpl-sheet-tall", "data-layout": "row", children: [_jsxs("div", { className: "tpl-elegant__main", "data-flow": true, children: [_jsx("header", { className: "tpl-elegant__head-block", "data-block": true, children: _jsxs("div", { className: "tpl-elegant__identity", children: [_jsx(Heading, { level: 1, className: "tpl-elegant__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-elegant__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), _jsxs("div", { className: "tpl-elegant__contact", "data-layout": "row", children: [contact.length > 0 && (_jsx("p", { className: "tpl-elegant__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-elegant__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-elegant__link-line", children: _jsx("ul", { className: "tpl-elegant__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-elegant__link tpl-contact--link", children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] })) }) }) })), contact3.length > 0 && (_jsx("p", { className: "tpl-elegant__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-elegant__section", headingClassName: "tpl-elegant__heading", children: _jsx("p", { className: "tpl-elegant__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-elegant__section", headingClassName: "tpl-elegant__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ElegantExperienceEntry, { 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-elegant__section", headingClassName: "tpl-elegant__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ElegantEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-elegant__section", headingClassName: "tpl-elegant__heading", rowClassName: "tpl-elegant__language" })] }), _jsxs("aside", { className: "tpl-elegant__aside", "data-flow": true, children: [_jsx(InitialsAvatar, { name: resume.name, className: "tpl-elegant__avatar" }), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-elegant__section tpl-described--marked", headingClassName: "tpl-elegant__heading", items: resume.achievements, entryClassName: "tpl-elegant__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-elegant__section", headingClass: "tpl-elegant__heading", Entry: ElegantCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-elegant__section", headingClassName: "tpl-elegant__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-elegant__section", headingClassName: "tpl-elegant__heading", items: resume.courses, entryClassName: "tpl-elegant__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-elegant__section", headingClassName: "tpl-elegant__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-elegant__section tpl-described--marked", headingClassName: "tpl-elegant__heading", items: resume.passions, entryClassName: "tpl-elegant__described" })] })] }) }));
30
+ return (_jsx("article", { className: "tpl-elegant", style: documentStyle('el', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: _jsxs("div", { className: "tpl-elegant__body tpl-sheet-tall", "data-layout": "row", children: [_jsxs("div", { className: "tpl-elegant__main", "data-flow": true, children: [_jsx("header", { className: "tpl-elegant__head-block", "data-block": true, children: _jsxs("div", { className: "tpl-elegant__identity", children: [_jsx(Heading, { level: 1, className: "tpl-elegant__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-elegant__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), _jsxs("div", { className: "tpl-elegant__contact", "data-layout": "row", children: [contact.length > 0 && (_jsx("p", { className: "tpl-elegant__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-elegant__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-elegant__link-line", children: _jsx("ul", { className: "tpl-elegant__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-elegant__link tpl-contact--link", children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] })) }) }) })), contact3.length > 0 && (_jsx("p", { className: "tpl-elegant__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-elegant__section", headingClassName: "tpl-elegant__heading", children: _jsx("p", { className: "tpl-elegant__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-elegant__section", headingClassName: "tpl-elegant__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(ElegantExperienceEntry, { 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-elegant__section", headingClassName: "tpl-elegant__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(ElegantEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-elegant__section", headingClassName: "tpl-elegant__heading", rowClassName: "tpl-elegant__language" })] }), _jsxs("aside", { className: "tpl-elegant__aside", "data-flow": true, children: [_jsx(InitialsAvatar, { name: resume.name, className: "tpl-elegant__avatar" }), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-elegant__section tpl-described--marked", headingClassName: "tpl-elegant__heading", items: resume.achievements, entryClassName: "tpl-elegant__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-elegant__section", headingClass: "tpl-elegant__heading", Entry: ElegantCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-elegant__section", headingClassName: "tpl-elegant__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-elegant__section", headingClassName: "tpl-elegant__heading", items: resume.courses, entryClassName: "tpl-elegant__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-elegant__section", headingClassName: "tpl-elegant__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-elegant__section tpl-described--marked", headingClassName: "tpl-elegant__heading", items: resume.passions, entryClassName: "tpl-elegant__described" })] })] }) }));
31
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ElegantLogosDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/elegant-logos/ElegantLogosDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,qBAAqB,CAAC;AAG7B,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,yBAAyB,+BAgQzE"}
1
+ {"version":3,"file":"ElegantLogosDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/elegant-logos/ElegantLogosDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,qBAAqB,CAAC;AAG7B,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,oBAAoB,CAAC,EAAE,MAAM,EAAE,EAAE,yBAAyB,+BAiQzE"}