@resumekit/react 0.0.0-stage → 0.2.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 (667) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +74 -2
  3. package/dist/PagedSheet.d.ts +63 -0
  4. package/dist/PagedSheet.d.ts.map +1 -0
  5. package/dist/PagedSheet.js +584 -0
  6. package/dist/TemplateDocument.d.ts +33 -0
  7. package/dist/TemplateDocument.d.ts.map +1 -0
  8. package/dist/TemplateDocument.js +33 -0
  9. package/dist/autosave-context.d.ts +37 -0
  10. package/dist/autosave-context.d.ts.map +1 -0
  11. package/dist/autosave-context.js +24 -0
  12. package/dist/collections/AuthoredItems.d.ts +9 -0
  13. package/dist/collections/AuthoredItems.d.ts.map +1 -0
  14. package/dist/collections/AuthoredItems.js +116 -0
  15. package/dist/collections/Collection.d.ts +48 -0
  16. package/dist/collections/Collection.d.ts.map +1 -0
  17. package/dist/collections/Collection.js +24 -0
  18. package/dist/collections/CollectionItems.d.ts +94 -0
  19. package/dist/collections/CollectionItems.d.ts.map +1 -0
  20. package/dist/collections/CollectionItems.js +91 -0
  21. package/dist/collections/EntryOverlay.d.ts +38 -0
  22. package/dist/collections/EntryOverlay.d.ts.map +1 -0
  23. package/dist/collections/EntryOverlay.js +51 -0
  24. package/dist/collections/SortableItems.d.ts +52 -0
  25. package/dist/collections/SortableItems.d.ts.map +1 -0
  26. package/dist/collections/SortableItems.js +80 -0
  27. package/dist/collections/authoring-context.d.ts +69 -0
  28. package/dist/collections/authoring-context.d.ts.map +1 -0
  29. package/dist/collections/authoring-context.js +36 -0
  30. package/dist/collections/collection.css +462 -0
  31. package/dist/collections/entry-text.d.ts +23 -0
  32. package/dist/collections/entry-text.d.ts.map +1 -0
  33. package/dist/collections/entry-text.js +35 -0
  34. package/dist/collections/icons.d.ts +53 -0
  35. package/dist/collections/icons.d.ts.map +1 -0
  36. package/dist/collections/icons.js +56 -0
  37. package/dist/collections/library/LibraryAction.d.ts +24 -0
  38. package/dist/collections/library/LibraryAction.d.ts.map +1 -0
  39. package/dist/collections/library/LibraryAction.js +122 -0
  40. package/dist/collections/library/LibraryPicker.d.ts +42 -0
  41. package/dist/collections/library/LibraryPicker.d.ts.map +1 -0
  42. package/dist/collections/library/LibraryPicker.js +94 -0
  43. package/dist/collections/library/library.css +435 -0
  44. package/dist/collections/overlay-context.d.ts +34 -0
  45. package/dist/collections/overlay-context.d.ts.map +1 -0
  46. package/dist/collections/overlay-context.js +13 -0
  47. package/dist/collections/preload.d.ts +19 -0
  48. package/dist/collections/preload.d.ts.map +1 -0
  49. package/dist/collections/preload.js +23 -0
  50. package/dist/collections/selection-context.d.ts +25 -0
  51. package/dist/collections/selection-context.d.ts.map +1 -0
  52. package/dist/collections/selection-context.js +49 -0
  53. package/dist/collections/useCollection.d.ts +58 -0
  54. package/dist/collections/useCollection.d.ts.map +1 -0
  55. package/dist/collections/useCollection.js +90 -0
  56. package/dist/collections/useCustomEntries.d.ts +18 -0
  57. package/dist/collections/useCustomEntries.d.ts.map +1 -0
  58. package/dist/collections/useCustomEntries.js +56 -0
  59. package/dist/collections/useSectionCollection.d.ts +48 -0
  60. package/dist/collections/useSectionCollection.d.ts.map +1 -0
  61. package/dist/collections/useSectionCollection.js +169 -0
  62. package/dist/document.css +186 -0
  63. package/dist/export-bundle/bundle.css +2 -0
  64. package/dist/export-bundle/bundle.js +67 -0
  65. package/dist/fields/date-issues-context.d.ts +20 -0
  66. package/dist/fields/date-issues-context.d.ts.map +1 -0
  67. package/dist/fields/date-issues-context.js +68 -0
  68. package/dist/fields/field-registry.d.ts +163 -0
  69. package/dist/fields/field-registry.d.ts.map +1 -0
  70. package/dist/fields/field-registry.js +175 -0
  71. package/dist/fonts/README.md +207 -0
  72. package/dist/fonts/arimo-400.woff2 +0 -0
  73. package/dist/fonts/arimo-400i.woff2 +0 -0
  74. package/dist/fonts/arimo-700.woff2 +0 -0
  75. package/dist/fonts/arimo-700i.woff2 +0 -0
  76. package/dist/fonts/bitter-400.woff2 +0 -0
  77. package/dist/fonts/bitter-400i.woff2 +0 -0
  78. package/dist/fonts/bitter-700.woff2 +0 -0
  79. package/dist/fonts/bitter-700i.woff2 +0 -0
  80. package/dist/fonts/cabin-700.woff2 +0 -0
  81. package/dist/fonts/carlito-400.woff2 +0 -0
  82. package/dist/fonts/carlito-400i.woff2 +0 -0
  83. package/dist/fonts/carlito-700.woff2 +0 -0
  84. package/dist/fonts/carlito-700i.woff2 +0 -0
  85. package/dist/fonts/clearsans-400.woff2 +0 -0
  86. package/dist/fonts/clearsans-400i.woff2 +0 -0
  87. package/dist/fonts/cochineal-400.woff2 +0 -0
  88. package/dist/fonts/cochineal-400i.woff2 +0 -0
  89. package/dist/fonts/cochineal-700.woff2 +0 -0
  90. package/dist/fonts/ebgaramond-400.woff2 +0 -0
  91. package/dist/fonts/ebgaramond-400i.woff2 +0 -0
  92. package/dist/fonts/ebgaramond-700.woff2 +0 -0
  93. package/dist/fonts/ebgaramond-700i.woff2 +0 -0
  94. package/dist/fonts/fonts.css +622 -0
  95. package/dist/fonts/gelasio-400.woff2 +0 -0
  96. package/dist/fonts/gelasio-400i.woff2 +0 -0
  97. package/dist/fonts/gelasio-700.woff2 +0 -0
  98. package/dist/fonts/gelasio-700i.woff2 +0 -0
  99. package/dist/fonts/heros-400.woff2 +0 -0
  100. package/dist/fonts/heros-400i.woff2 +0 -0
  101. package/dist/fonts/heros-700.woff2 +0 -0
  102. package/dist/fonts/heros-700i.woff2 +0 -0
  103. package/dist/fonts/inconsolata-400.woff2 +0 -0
  104. package/dist/fonts/lato-100.woff2 +0 -0
  105. package/dist/fonts/lato-300.woff2 +0 -0
  106. package/dist/fonts/lato-300i.woff2 +0 -0
  107. package/dist/fonts/lato-400.woff2 +0 -0
  108. package/dist/fonts/lato-400i.woff2 +0 -0
  109. package/dist/fonts/lato-700.woff2 +0 -0
  110. package/dist/fonts/lato-700i.woff2 +0 -0
  111. package/dist/fonts/licenses/arimo-OFL.txt +93 -0
  112. package/dist/fonts/licenses/bitter-OFL.txt +94 -0
  113. package/dist/fonts/licenses/cabin-OFL.txt +93 -0
  114. package/dist/fonts/licenses/carlito-OFL.txt +94 -0
  115. package/dist/fonts/licenses/clearsans-APACHE-2.0.txt +205 -0
  116. package/dist/fonts/licenses/cochineal-OFL.txt +96 -0
  117. package/dist/fonts/licenses/ebgaramond-OFL.txt +93 -0
  118. package/dist/fonts/licenses/gelasio-OFL.txt +93 -0
  119. package/dist/fonts/licenses/heros-GUST-FONT-LICENSE.txt +30 -0
  120. package/dist/fonts/licenses/inconsolata-OFL.txt +93 -0
  121. package/dist/fonts/licenses/latinmodern-GUST-FONT-LICENSE.txt +35 -0
  122. package/dist/fonts/licenses/lato-OFL.txt +93 -0
  123. package/dist/fonts/licenses/ptserif-OFL.txt +93 -0
  124. package/dist/fonts/licenses/raleway-OFL.txt +93 -0
  125. package/dist/fonts/licenses/roboto-OFL.txt +93 -0
  126. package/dist/fonts/licenses/robotocondensed-OFL.txt +93 -0
  127. package/dist/fonts/licenses/robotoslab-APACHE-2.0.txt +205 -0
  128. package/dist/fonts/licenses/sourcesans3-OFL.txt +93 -0
  129. package/dist/fonts/licenses/tinos-OFL.txt +93 -0
  130. package/dist/fonts/lmmono-400.woff2 +0 -0
  131. package/dist/fonts/lmroman-400.woff2 +0 -0
  132. package/dist/fonts/lmroman-400i.woff2 +0 -0
  133. package/dist/fonts/lmroman-700.woff2 +0 -0
  134. package/dist/fonts/lmroman-700i.woff2 +0 -0
  135. package/dist/fonts/lmromancaps-400.woff2 +0 -0
  136. package/dist/fonts/ptserif-400.woff2 +0 -0
  137. package/dist/fonts/ptserif-400i.woff2 +0 -0
  138. package/dist/fonts/ptserif-700.woff2 +0 -0
  139. package/dist/fonts/ptserif-700i.woff2 +0 -0
  140. package/dist/fonts/raleway-300.woff2 +0 -0
  141. package/dist/fonts/raleway-400.woff2 +0 -0
  142. package/dist/fonts/raleway-400i.woff2 +0 -0
  143. package/dist/fonts/raleway-500.woff2 +0 -0
  144. package/dist/fonts/raleway-700.woff2 +0 -0
  145. package/dist/fonts/roboto-100.woff2 +0 -0
  146. package/dist/fonts/roboto-300.woff2 +0 -0
  147. package/dist/fonts/roboto-300i.woff2 +0 -0
  148. package/dist/fonts/roboto-400.woff2 +0 -0
  149. package/dist/fonts/roboto-400i.woff2 +0 -0
  150. package/dist/fonts/roboto-700.woff2 +0 -0
  151. package/dist/fonts/robotocondensed-400.woff2 +0 -0
  152. package/dist/fonts/robotocondensed-400i.woff2 +0 -0
  153. package/dist/fonts/robotocondensed-700.woff2 +0 -0
  154. package/dist/fonts/robotocondensed-700i.woff2 +0 -0
  155. package/dist/fonts/robotoslab-700.woff2 +0 -0
  156. package/dist/fonts/sourcesans3-300.woff2 +0 -0
  157. package/dist/fonts/sourcesans3-300i.woff2 +0 -0
  158. package/dist/fonts/sourcesans3-400.woff2 +0 -0
  159. package/dist/fonts/sourcesans3-400i.woff2 +0 -0
  160. package/dist/fonts/sourcesans3-700.woff2 +0 -0
  161. package/dist/fonts/tinos-400.woff2 +0 -0
  162. package/dist/fonts/tinos-400i.woff2 +0 -0
  163. package/dist/fonts/tinos-700.woff2 +0 -0
  164. package/dist/fonts/tinos-700i.woff2 +0 -0
  165. package/dist/i18n/README.md +52 -0
  166. package/dist/i18n/catalog.d.ts +39 -0
  167. package/dist/i18n/catalog.d.ts.map +1 -0
  168. package/dist/i18n/catalog.js +43 -0
  169. package/dist/i18n/format.d.ts +14 -0
  170. package/dist/i18n/format.d.ts.map +1 -0
  171. package/dist/i18n/format.js +38 -0
  172. package/dist/i18n/index.d.ts +4 -0
  173. package/dist/i18n/index.d.ts.map +1 -0
  174. package/dist/i18n/index.js +3 -0
  175. package/dist/i18n/locale-context.d.ts +43 -0
  176. package/dist/i18n/locale-context.d.ts.map +1 -0
  177. package/dist/i18n/locale-context.js +74 -0
  178. package/dist/i18n/locales/en.json +337 -0
  179. package/dist/i18n/locales/es.json +337 -0
  180. package/dist/index.d.ts +101 -0
  181. package/dist/index.d.ts.map +1 -0
  182. package/dist/index.js +99 -0
  183. package/dist/kit/BulletSkillGroup.d.ts +20 -0
  184. package/dist/kit/BulletSkillGroup.d.ts.map +1 -0
  185. package/dist/kit/BulletSkillGroup.js +25 -0
  186. package/dist/kit/DescribedEntries.d.ts +41 -0
  187. package/dist/kit/DescribedEntries.d.ts.map +1 -0
  188. package/dist/kit/DescribedEntries.js +57 -0
  189. package/dist/kit/DocumentSection.d.ts +58 -0
  190. package/dist/kit/DocumentSection.d.ts.map +1 -0
  191. package/dist/kit/DocumentSection.js +38 -0
  192. package/dist/kit/GridSkillGroup.d.ts +12 -0
  193. package/dist/kit/GridSkillGroup.d.ts.map +1 -0
  194. package/dist/kit/GridSkillGroup.js +14 -0
  195. package/dist/kit/Heading.d.ts +11 -0
  196. package/dist/kit/Heading.d.ts.map +1 -0
  197. package/dist/kit/Heading.js +10 -0
  198. package/dist/kit/InitialsAvatar.d.ts +17 -0
  199. package/dist/kit/InitialsAvatar.d.ts.map +1 -0
  200. package/dist/kit/InitialsAvatar.js +18 -0
  201. package/dist/kit/InitialsChip.d.ts +16 -0
  202. package/dist/kit/InitialsChip.d.ts.map +1 -0
  203. package/dist/kit/InitialsChip.js +16 -0
  204. package/dist/kit/InlineSkillGroup.d.ts +22 -0
  205. package/dist/kit/InlineSkillGroup.d.ts.map +1 -0
  206. package/dist/kit/InlineSkillGroup.js +16 -0
  207. package/dist/kit/LabelledSkillGroup.d.ts +24 -0
  208. package/dist/kit/LabelledSkillGroup.d.ts.map +1 -0
  209. package/dist/kit/LabelledSkillGroup.js +20 -0
  210. package/dist/kit/LanguageList.d.ts +28 -0
  211. package/dist/kit/LanguageList.d.ts.map +1 -0
  212. package/dist/kit/LanguageList.js +56 -0
  213. package/dist/kit/Separator.d.ts +20 -0
  214. package/dist/kit/Separator.d.ts.map +1 -0
  215. package/dist/kit/Separator.js +21 -0
  216. package/dist/kit/TagSkillGroup.d.ts +8 -0
  217. package/dist/kit/TagSkillGroup.d.ts.map +1 -0
  218. package/dist/kit/TagSkillGroup.js +10 -0
  219. package/dist/kit/avatar.css +42 -0
  220. package/dist/kit/contact-icons.css +70 -0
  221. package/dist/kit/contact.d.ts +16 -0
  222. package/dist/kit/contact.d.ts.map +1 -0
  223. package/dist/kit/contact.js +18 -0
  224. package/dist/kit/described.css +114 -0
  225. package/dist/kit/documentStyle.d.ts +20 -0
  226. package/dist/kit/documentStyle.d.ts.map +1 -0
  227. package/dist/kit/documentStyle.js +64 -0
  228. package/dist/kit/heading.css +17 -0
  229. package/dist/kit/keywords.css +127 -0
  230. package/dist/kit/language.css +104 -0
  231. package/dist/kit/layout.css +16 -0
  232. package/dist/kit/monogram.d.ts +6 -0
  233. package/dist/kit/monogram.d.ts.map +1 -0
  234. package/dist/kit/monogram.js +12 -0
  235. package/dist/kit/panel.css +26 -0
  236. package/dist/kit/skill-grid.css +93 -0
  237. package/dist/kit/skill-tags.css +36 -0
  238. package/dist/kit/textShapes.d.ts +24 -0
  239. package/dist/kit/textShapes.d.ts.map +1 -0
  240. package/dist/kit/textShapes.js +32 -0
  241. package/dist/kit/typography.css +86 -0
  242. package/dist/letter/LetterDocument.d.ts +13 -0
  243. package/dist/letter/LetterDocument.d.ts.map +1 -0
  244. package/dist/letter/LetterDocument.js +12 -0
  245. package/dist/letter/letter.css +75 -0
  246. package/dist/nodes/AuthoredBullets.d.ts +22 -0
  247. package/dist/nodes/AuthoredBullets.d.ts.map +1 -0
  248. package/dist/nodes/AuthoredBullets.js +101 -0
  249. package/dist/nodes/CustomSections.d.ts +42 -0
  250. package/dist/nodes/CustomSections.d.ts.map +1 -0
  251. package/dist/nodes/CustomSections.js +27 -0
  252. package/dist/nodes/EditableBulletList.d.ts +15 -0
  253. package/dist/nodes/EditableBulletList.d.ts.map +1 -0
  254. package/dist/nodes/EditableBulletList.js +98 -0
  255. package/dist/nodes/EditableInlineList.d.ts +27 -0
  256. package/dist/nodes/EditableInlineList.d.ts.map +1 -0
  257. package/dist/nodes/EditableInlineList.js +50 -0
  258. package/dist/nodes/EditableText.d.ts +79 -0
  259. package/dist/nodes/EditableText.d.ts.map +1 -0
  260. package/dist/nodes/EditableText.js +113 -0
  261. package/dist/nodes/LinkField.d.ts +103 -0
  262. package/dist/nodes/LinkField.d.ts.map +1 -0
  263. package/dist/nodes/LinkField.js +277 -0
  264. package/dist/nodes/PlainTextField.d.ts +38 -0
  265. package/dist/nodes/PlainTextField.d.ts.map +1 -0
  266. package/dist/nodes/PlainTextField.js +72 -0
  267. package/dist/nodes/formatting.d.ts +38 -0
  268. package/dist/nodes/formatting.d.ts.map +1 -0
  269. package/dist/nodes/formatting.js +27 -0
  270. package/dist/nodes/link-field.css +200 -0
  271. package/dist/nodes/locked.d.ts +38 -0
  272. package/dist/nodes/locked.d.ts.map +1 -0
  273. package/dist/nodes/locked.js +68 -0
  274. package/dist/nodes/template-node.css +720 -0
  275. package/dist/paged.css +265 -0
  276. package/dist/pagination.d.ts +93 -0
  277. package/dist/pagination.d.ts.map +1 -0
  278. package/dist/pagination.js +167 -0
  279. package/dist/picture-context.d.ts +6 -0
  280. package/dist/picture-context.d.ts.map +1 -0
  281. package/dist/picture-context.js +14 -0
  282. package/dist/presentation-context.d.ts +45 -0
  283. package/dist/presentation-context.d.ts.map +1 -0
  284. package/dist/presentation-context.js +44 -0
  285. package/dist/presented.d.ts +16 -0
  286. package/dist/presented.d.ts.map +1 -0
  287. package/dist/presented.js +22 -0
  288. package/dist/rail/ContainerRail.d.ts +29 -0
  289. package/dist/rail/ContainerRail.d.ts.map +1 -0
  290. package/dist/rail/ContainerRail.js +50 -0
  291. package/dist/rail/EntryActions.d.ts +19 -0
  292. package/dist/rail/EntryActions.d.ts.map +1 -0
  293. package/dist/rail/EntryActions.js +17 -0
  294. package/dist/rail/rail-store.d.ts +42 -0
  295. package/dist/rail/rail-store.d.ts.map +1 -0
  296. package/dist/rail/rail-store.js +107 -0
  297. package/dist/rail/rail.css +188 -0
  298. package/dist/rail/useSpaceDrag.d.ts +30 -0
  299. package/dist/rail/useSpaceDrag.d.ts.map +1 -0
  300. package/dist/rail/useSpaceDrag.js +154 -0
  301. package/dist/registry.d.ts +35 -0
  302. package/dist/registry.d.ts.map +1 -0
  303. package/dist/registry.js +74 -0
  304. package/dist/spacing/spacing-context.d.ts +53 -0
  305. package/dist/spacing/spacing-context.d.ts.map +1 -0
  306. package/dist/spacing/spacing-context.js +36 -0
  307. package/dist/spacing/spacing.css +159 -0
  308. package/dist/spacing/useSpaceSlot.d.ts +52 -0
  309. package/dist/spacing/useSpaceSlot.d.ts.map +1 -0
  310. package/dist/spacing/useSpaceSlot.js +38 -0
  311. package/dist/static/api.d.ts +13 -0
  312. package/dist/static/api.d.ts.map +1 -0
  313. package/dist/static/api.js +1 -0
  314. package/dist/static/static.mjs +33930 -0
  315. package/dist/static/templates/academic.css +1 -0
  316. package/dist/static/templates/alta.css +1 -0
  317. package/dist/static/templates/classic.css +1 -0
  318. package/dist/static/templates/cobalt.css +1 -0
  319. package/dist/static/templates/compact.css +1 -0
  320. package/dist/static/templates/contemporary.css +1 -0
  321. package/dist/static/templates/creative.css +1 -0
  322. package/dist/static/templates/crimson.css +1 -0
  323. package/dist/static/templates/curve.css +1 -0
  324. package/dist/static/templates/double-column-logos.css +1 -0
  325. package/dist/static/templates/double-column.css +1 -0
  326. package/dist/static/templates/elegant-logos.css +1 -0
  327. package/dist/static/templates/elegant.css +1 -0
  328. package/dist/static/templates/engineer.css +1 -0
  329. package/dist/static/templates/executive.css +1 -0
  330. package/dist/static/templates/harvard.css +1 -0
  331. package/dist/static/templates/hipster.css +1 -0
  332. package/dist/static/templates/ivy.css +1 -0
  333. package/dist/static/templates/meridian.css +1 -0
  334. package/dist/static/templates/modern.css +1 -0
  335. package/dist/static/templates/polished.css +1 -0
  336. package/dist/static/templates/portrait.css +1 -0
  337. package/dist/static/templates/prism.css +1 -0
  338. package/dist/static/templates/scholar.css +1 -0
  339. package/dist/static/templates/split.css +1 -0
  340. package/dist/static/templates/stylish.css +1 -0
  341. package/dist/static/templates/timeline.css +1 -0
  342. package/dist/static/templates.css +1 -0
  343. package/dist/templates/academic/AcademicDocument.d.ts +6 -0
  344. package/dist/templates/academic/AcademicDocument.d.ts.map +1 -0
  345. package/dist/templates/academic/AcademicDocument.js +29 -0
  346. package/dist/templates/academic/academic.css +284 -0
  347. package/dist/templates/academic/entries.d.ts +22 -0
  348. package/dist/templates/academic/entries.d.ts.map +1 -0
  349. package/dist/templates/academic/entries.js +17 -0
  350. package/dist/templates/alta/AltaDocument.d.ts +6 -0
  351. package/dist/templates/alta/AltaDocument.d.ts.map +1 -0
  352. package/dist/templates/alta/AltaDocument.js +29 -0
  353. package/dist/templates/alta/alta.css +413 -0
  354. package/dist/templates/alta/entries.d.ts +22 -0
  355. package/dist/templates/alta/entries.d.ts.map +1 -0
  356. package/dist/templates/alta/entries.js +17 -0
  357. package/dist/templates/classic/ClassicDocument.d.ts +6 -0
  358. package/dist/templates/classic/ClassicDocument.d.ts.map +1 -0
  359. package/dist/templates/classic/ClassicDocument.js +26 -0
  360. package/dist/templates/classic/classic.css +251 -0
  361. package/dist/templates/classic/entries.d.ts +22 -0
  362. package/dist/templates/classic/entries.d.ts.map +1 -0
  363. package/dist/templates/classic/entries.js +17 -0
  364. package/dist/templates/cobalt/CobaltDocument.d.ts +6 -0
  365. package/dist/templates/cobalt/CobaltDocument.d.ts.map +1 -0
  366. package/dist/templates/cobalt/CobaltDocument.js +28 -0
  367. package/dist/templates/cobalt/cobalt.css +478 -0
  368. package/dist/templates/cobalt/crest.d.ts +6 -0
  369. package/dist/templates/cobalt/crest.d.ts.map +1 -0
  370. package/dist/templates/cobalt/crest.js +8 -0
  371. package/dist/templates/cobalt/entries.d.ts +22 -0
  372. package/dist/templates/cobalt/entries.d.ts.map +1 -0
  373. package/dist/templates/cobalt/entries.js +17 -0
  374. package/dist/templates/compact/CompactDocument.d.ts +6 -0
  375. package/dist/templates/compact/CompactDocument.d.ts.map +1 -0
  376. package/dist/templates/compact/CompactDocument.js +28 -0
  377. package/dist/templates/compact/compact.css +240 -0
  378. package/dist/templates/compact/entries.d.ts +22 -0
  379. package/dist/templates/compact/entries.d.ts.map +1 -0
  380. package/dist/templates/compact/entries.js +17 -0
  381. package/dist/templates/contemporary/ContemporaryDocument.d.ts +6 -0
  382. package/dist/templates/contemporary/ContemporaryDocument.d.ts.map +1 -0
  383. package/dist/templates/contemporary/ContemporaryDocument.js +29 -0
  384. package/dist/templates/contemporary/contemporary.css +411 -0
  385. package/dist/templates/contemporary/entries.d.ts +22 -0
  386. package/dist/templates/contemporary/entries.d.ts.map +1 -0
  387. package/dist/templates/contemporary/entries.js +17 -0
  388. package/dist/templates/creative/CreativeDocument.d.ts +6 -0
  389. package/dist/templates/creative/CreativeDocument.d.ts.map +1 -0
  390. package/dist/templates/creative/CreativeDocument.js +29 -0
  391. package/dist/templates/creative/creative.css +326 -0
  392. package/dist/templates/creative/entries.d.ts +22 -0
  393. package/dist/templates/creative/entries.d.ts.map +1 -0
  394. package/dist/templates/creative/entries.js +17 -0
  395. package/dist/templates/crimson/CrimsonDocument.d.ts +6 -0
  396. package/dist/templates/crimson/CrimsonDocument.d.ts.map +1 -0
  397. package/dist/templates/crimson/CrimsonDocument.js +30 -0
  398. package/dist/templates/crimson/crimson.css +301 -0
  399. package/dist/templates/crimson/entries.d.ts +22 -0
  400. package/dist/templates/crimson/entries.d.ts.map +1 -0
  401. package/dist/templates/crimson/entries.js +17 -0
  402. package/dist/templates/curve/CurveDocument.d.ts +6 -0
  403. package/dist/templates/curve/CurveDocument.d.ts.map +1 -0
  404. package/dist/templates/curve/CurveDocument.js +29 -0
  405. package/dist/templates/curve/curve.css +330 -0
  406. package/dist/templates/curve/entries.d.ts +22 -0
  407. package/dist/templates/curve/entries.d.ts.map +1 -0
  408. package/dist/templates/curve/entries.js +17 -0
  409. package/dist/templates/double-column/DoubleColumnDocument.d.ts +6 -0
  410. package/dist/templates/double-column/DoubleColumnDocument.d.ts.map +1 -0
  411. package/dist/templates/double-column/DoubleColumnDocument.js +29 -0
  412. package/dist/templates/double-column/double-column.css +331 -0
  413. package/dist/templates/double-column/entries.d.ts +22 -0
  414. package/dist/templates/double-column/entries.d.ts.map +1 -0
  415. package/dist/templates/double-column/entries.js +17 -0
  416. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts +6 -0
  417. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts.map +1 -0
  418. package/dist/templates/double-column-logos/DoubleColumnLogosDocument.js +28 -0
  419. package/dist/templates/double-column-logos/double-column-logos.css +333 -0
  420. package/dist/templates/double-column-logos/entries.d.ts +22 -0
  421. package/dist/templates/double-column-logos/entries.d.ts.map +1 -0
  422. package/dist/templates/double-column-logos/entries.js +18 -0
  423. package/dist/templates/elegant/ElegantDocument.d.ts +6 -0
  424. package/dist/templates/elegant/ElegantDocument.d.ts.map +1 -0
  425. package/dist/templates/elegant/ElegantDocument.js +31 -0
  426. package/dist/templates/elegant/elegant.css +358 -0
  427. package/dist/templates/elegant/entries.d.ts +22 -0
  428. package/dist/templates/elegant/entries.d.ts.map +1 -0
  429. package/dist/templates/elegant/entries.js +17 -0
  430. package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts +6 -0
  431. package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts.map +1 -0
  432. package/dist/templates/elegant-logos/ElegantLogosDocument.js +30 -0
  433. package/dist/templates/elegant-logos/elegant-logos.css +370 -0
  434. package/dist/templates/elegant-logos/entries.d.ts +22 -0
  435. package/dist/templates/elegant-logos/entries.d.ts.map +1 -0
  436. package/dist/templates/elegant-logos/entries.js +18 -0
  437. package/dist/templates/engineer/EngineerDocument.d.ts +6 -0
  438. package/dist/templates/engineer/EngineerDocument.d.ts.map +1 -0
  439. package/dist/templates/engineer/EngineerDocument.js +26 -0
  440. package/dist/templates/engineer/engineer.css +261 -0
  441. package/dist/templates/engineer/entries.d.ts +22 -0
  442. package/dist/templates/engineer/entries.d.ts.map +1 -0
  443. package/dist/templates/engineer/entries.js +17 -0
  444. package/dist/templates/executive/ExecutiveDocument.d.ts +6 -0
  445. package/dist/templates/executive/ExecutiveDocument.d.ts.map +1 -0
  446. package/dist/templates/executive/ExecutiveDocument.js +29 -0
  447. package/dist/templates/executive/entries.d.ts +22 -0
  448. package/dist/templates/executive/entries.d.ts.map +1 -0
  449. package/dist/templates/executive/entries.js +17 -0
  450. package/dist/templates/executive/executive.css +394 -0
  451. package/dist/templates/harvard/HarvardDocument.d.ts +6 -0
  452. package/dist/templates/harvard/HarvardDocument.d.ts.map +1 -0
  453. package/dist/templates/harvard/HarvardDocument.js +25 -0
  454. package/dist/templates/harvard/entries.d.ts +28 -0
  455. package/dist/templates/harvard/entries.d.ts.map +1 -0
  456. package/dist/templates/harvard/entries.js +22 -0
  457. package/dist/templates/harvard/harvard.css +436 -0
  458. package/dist/templates/hipster/HipsterDocument.d.ts +6 -0
  459. package/dist/templates/hipster/HipsterDocument.d.ts.map +1 -0
  460. package/dist/templates/hipster/HipsterDocument.js +30 -0
  461. package/dist/templates/hipster/entries.d.ts +22 -0
  462. package/dist/templates/hipster/entries.d.ts.map +1 -0
  463. package/dist/templates/hipster/entries.js +17 -0
  464. package/dist/templates/hipster/hipster.css +442 -0
  465. package/dist/templates/ivy/IvyDocument.d.ts +6 -0
  466. package/dist/templates/ivy/IvyDocument.d.ts.map +1 -0
  467. package/dist/templates/ivy/IvyDocument.js +26 -0
  468. package/dist/templates/ivy/entries.d.ts +22 -0
  469. package/dist/templates/ivy/entries.d.ts.map +1 -0
  470. package/dist/templates/ivy/entries.js +17 -0
  471. package/dist/templates/ivy/ivy.css +292 -0
  472. package/dist/templates/meridian/MeridianDocument.d.ts +6 -0
  473. package/dist/templates/meridian/MeridianDocument.d.ts.map +1 -0
  474. package/dist/templates/meridian/MeridianDocument.js +28 -0
  475. package/dist/templates/meridian/entries.d.ts +22 -0
  476. package/dist/templates/meridian/entries.d.ts.map +1 -0
  477. package/dist/templates/meridian/entries.js +17 -0
  478. package/dist/templates/meridian/meridian.css +431 -0
  479. package/dist/templates/modern/ModernDocument.d.ts +6 -0
  480. package/dist/templates/modern/ModernDocument.d.ts.map +1 -0
  481. package/dist/templates/modern/ModernDocument.js +29 -0
  482. package/dist/templates/modern/entries.d.ts +22 -0
  483. package/dist/templates/modern/entries.d.ts.map +1 -0
  484. package/dist/templates/modern/entries.js +17 -0
  485. package/dist/templates/modern/modern.css +309 -0
  486. package/dist/templates/polished/PolishedDocument.d.ts +6 -0
  487. package/dist/templates/polished/PolishedDocument.d.ts.map +1 -0
  488. package/dist/templates/polished/PolishedDocument.js +28 -0
  489. package/dist/templates/polished/entries.d.ts +22 -0
  490. package/dist/templates/polished/entries.d.ts.map +1 -0
  491. package/dist/templates/polished/entries.js +17 -0
  492. package/dist/templates/polished/polished.css +327 -0
  493. package/dist/templates/portrait/PortraitDocument.d.ts +6 -0
  494. package/dist/templates/portrait/PortraitDocument.d.ts.map +1 -0
  495. package/dist/templates/portrait/PortraitDocument.js +30 -0
  496. package/dist/templates/portrait/entries.d.ts +22 -0
  497. package/dist/templates/portrait/entries.d.ts.map +1 -0
  498. package/dist/templates/portrait/entries.js +17 -0
  499. package/dist/templates/portrait/portrait.css +427 -0
  500. package/dist/templates/prism/PrismDocument.d.ts +6 -0
  501. package/dist/templates/prism/PrismDocument.d.ts.map +1 -0
  502. package/dist/templates/prism/PrismDocument.js +35 -0
  503. package/dist/templates/prism/entries.d.ts +22 -0
  504. package/dist/templates/prism/entries.d.ts.map +1 -0
  505. package/dist/templates/prism/entries.js +17 -0
  506. package/dist/templates/prism/prism.css +314 -0
  507. package/dist/templates/scholar/ScholarDocument.d.ts +6 -0
  508. package/dist/templates/scholar/ScholarDocument.d.ts.map +1 -0
  509. package/dist/templates/scholar/ScholarDocument.js +27 -0
  510. package/dist/templates/scholar/entries.d.ts +22 -0
  511. package/dist/templates/scholar/entries.d.ts.map +1 -0
  512. package/dist/templates/scholar/entries.js +17 -0
  513. package/dist/templates/scholar/scholar.css +279 -0
  514. package/dist/templates/skills.d.ts +19 -0
  515. package/dist/templates/skills.d.ts.map +1 -0
  516. package/dist/templates/skills.js +19 -0
  517. package/dist/templates/split/SplitDocument.d.ts +6 -0
  518. package/dist/templates/split/SplitDocument.d.ts.map +1 -0
  519. package/dist/templates/split/SplitDocument.js +29 -0
  520. package/dist/templates/split/entries.d.ts +22 -0
  521. package/dist/templates/split/entries.d.ts.map +1 -0
  522. package/dist/templates/split/entries.js +17 -0
  523. package/dist/templates/split/split.css +337 -0
  524. package/dist/templates/stylish/StylishDocument.d.ts +6 -0
  525. package/dist/templates/stylish/StylishDocument.d.ts.map +1 -0
  526. package/dist/templates/stylish/StylishDocument.js +29 -0
  527. package/dist/templates/stylish/entries.d.ts +22 -0
  528. package/dist/templates/stylish/entries.d.ts.map +1 -0
  529. package/dist/templates/stylish/entries.js +17 -0
  530. package/dist/templates/stylish/stylish.css +340 -0
  531. package/dist/templates/timeline/TimelineDocument.d.ts +6 -0
  532. package/dist/templates/timeline/TimelineDocument.d.ts.map +1 -0
  533. package/dist/templates/timeline/TimelineDocument.js +27 -0
  534. package/dist/templates/timeline/entries.d.ts +22 -0
  535. package/dist/templates/timeline/entries.d.ts.map +1 -0
  536. package/dist/templates/timeline/entries.js +17 -0
  537. package/dist/templates/timeline/timeline.css +295 -0
  538. package/dist/useFitZoom.d.ts +99 -0
  539. package/dist/useFitZoom.d.ts.map +1 -0
  540. package/dist/useFitZoom.js +171 -0
  541. package/package.json +81 -3
  542. package/src/PagedSheet.tsx +792 -0
  543. package/src/TemplateDocument.tsx +112 -0
  544. package/src/autosave-context.tsx +67 -0
  545. package/src/collections/AuthoredItems.tsx +199 -0
  546. package/src/collections/Collection.tsx +73 -0
  547. package/src/collections/CollectionItems.tsx +318 -0
  548. package/src/collections/EntryOverlay.tsx +162 -0
  549. package/src/collections/SortableItems.tsx +167 -0
  550. package/src/collections/authoring-context.tsx +140 -0
  551. package/src/collections/entry-text.ts +41 -0
  552. package/src/collections/icons.tsx +83 -0
  553. package/src/collections/library/LibraryAction.tsx +200 -0
  554. package/src/collections/library/LibraryPicker.tsx +325 -0
  555. package/src/collections/overlay-context.tsx +49 -0
  556. package/src/collections/preload.ts +23 -0
  557. package/src/collections/selection-context.tsx +88 -0
  558. package/src/collections/useCollection.ts +133 -0
  559. package/src/collections/useCustomEntries.ts +84 -0
  560. package/src/collections/useSectionCollection.ts +268 -0
  561. package/src/compiler/emit.ts +736 -0
  562. package/src/compiler/schema.ts +689 -0
  563. package/src/export/entry.tsx +177 -0
  564. package/src/fields/date-issues-context.tsx +105 -0
  565. package/src/fields/field-registry.tsx +358 -0
  566. package/src/i18n/catalog.ts +81 -0
  567. package/src/i18n/format.ts +50 -0
  568. package/src/i18n/index.ts +21 -0
  569. package/src/i18n/locale-context.tsx +135 -0
  570. package/src/index.ts +156 -0
  571. package/src/kit/BulletSkillGroup.tsx +37 -0
  572. package/src/kit/DescribedEntries.tsx +132 -0
  573. package/src/kit/DocumentSection.tsx +97 -0
  574. package/src/kit/GridSkillGroup.tsx +17 -0
  575. package/src/kit/Heading.tsx +17 -0
  576. package/src/kit/InitialsAvatar.tsx +31 -0
  577. package/src/kit/InitialsChip.tsx +29 -0
  578. package/src/kit/InlineSkillGroup.tsx +41 -0
  579. package/src/kit/LabelledSkillGroup.tsx +68 -0
  580. package/src/kit/LanguageList.tsx +148 -0
  581. package/src/kit/Separator.tsx +30 -0
  582. package/src/kit/TagSkillGroup.tsx +19 -0
  583. package/src/kit/contact.ts +34 -0
  584. package/src/kit/documentStyle.ts +80 -0
  585. package/src/kit/monogram.ts +11 -0
  586. package/src/kit/textShapes.tsx +61 -0
  587. package/src/letter/LetterDocument.tsx +33 -0
  588. package/src/nodes/AuthoredBullets.tsx +253 -0
  589. package/src/nodes/CustomSections.tsx +138 -0
  590. package/src/nodes/EditableBulletList.tsx +186 -0
  591. package/src/nodes/EditableInlineList.tsx +109 -0
  592. package/src/nodes/EditableText.tsx +261 -0
  593. package/src/nodes/LinkField.tsx +438 -0
  594. package/src/nodes/PlainTextField.tsx +132 -0
  595. package/src/nodes/formatting.ts +70 -0
  596. package/src/nodes/locked.ts +70 -0
  597. package/src/pagination.ts +238 -0
  598. package/src/picture-context.tsx +18 -0
  599. package/src/presentation-context.tsx +87 -0
  600. package/src/presented.ts +29 -0
  601. package/src/rail/ContainerRail.tsx +145 -0
  602. package/src/rail/EntryActions.tsx +104 -0
  603. package/src/rail/rail-store.tsx +126 -0
  604. package/src/rail/useSpaceDrag.ts +177 -0
  605. package/src/registry.ts +101 -0
  606. package/src/spacing/spacing-context.tsx +100 -0
  607. package/src/spacing/useSpaceSlot.tsx +97 -0
  608. package/src/static/api.ts +19 -0
  609. package/src/static/fixtures.ts +80 -0
  610. package/src/static/render.tsx +24 -0
  611. package/src/templates/academic/AcademicDocument.tsx +259 -0
  612. package/src/templates/academic/entries.tsx +176 -0
  613. package/src/templates/alta/AltaDocument.tsx +269 -0
  614. package/src/templates/alta/entries.tsx +167 -0
  615. package/src/templates/classic/ClassicDocument.tsx +252 -0
  616. package/src/templates/classic/entries.tsx +175 -0
  617. package/src/templates/cobalt/CobaltDocument.tsx +306 -0
  618. package/src/templates/cobalt/crest.tsx +31 -0
  619. package/src/templates/cobalt/entries.tsx +136 -0
  620. package/src/templates/compact/CompactDocument.tsx +260 -0
  621. package/src/templates/compact/entries.tsx +167 -0
  622. package/src/templates/contemporary/ContemporaryDocument.tsx +291 -0
  623. package/src/templates/contemporary/entries.tsx +167 -0
  624. package/src/templates/creative/CreativeDocument.tsx +273 -0
  625. package/src/templates/creative/entries.tsx +167 -0
  626. package/src/templates/crimson/CrimsonDocument.tsx +287 -0
  627. package/src/templates/crimson/entries.tsx +169 -0
  628. package/src/templates/curve/CurveDocument.tsx +263 -0
  629. package/src/templates/curve/entries.tsx +168 -0
  630. package/src/templates/double-column/DoubleColumnDocument.tsx +273 -0
  631. package/src/templates/double-column/entries.tsx +169 -0
  632. package/src/templates/double-column-logos/DoubleColumnLogosDocument.tsx +266 -0
  633. package/src/templates/double-column-logos/entries.tsx +172 -0
  634. package/src/templates/elegant/ElegantDocument.tsx +301 -0
  635. package/src/templates/elegant/entries.tsx +167 -0
  636. package/src/templates/elegant-logos/ElegantLogosDocument.tsx +295 -0
  637. package/src/templates/elegant-logos/entries.tsx +170 -0
  638. package/src/templates/engineer/EngineerDocument.tsx +252 -0
  639. package/src/templates/engineer/entries.tsx +170 -0
  640. package/src/templates/executive/ExecutiveDocument.tsx +316 -0
  641. package/src/templates/executive/entries.tsx +146 -0
  642. package/src/templates/harvard/HarvardDocument.tsx +252 -0
  643. package/src/templates/harvard/entries.tsx +205 -0
  644. package/src/templates/hipster/HipsterDocument.tsx +293 -0
  645. package/src/templates/hipster/entries.tsx +175 -0
  646. package/src/templates/ivy/IvyDocument.tsx +252 -0
  647. package/src/templates/ivy/entries.tsx +167 -0
  648. package/src/templates/meridian/MeridianDocument.tsx +308 -0
  649. package/src/templates/meridian/entries.tsx +140 -0
  650. package/src/templates/modern/ModernDocument.tsx +269 -0
  651. package/src/templates/modern/entries.tsx +167 -0
  652. package/src/templates/polished/PolishedDocument.tsx +266 -0
  653. package/src/templates/polished/entries.tsx +167 -0
  654. package/src/templates/portrait/PortraitDocument.tsx +282 -0
  655. package/src/templates/portrait/entries.tsx +173 -0
  656. package/src/templates/prism/PrismDocument.tsx +311 -0
  657. package/src/templates/prism/entries.tsx +175 -0
  658. package/src/templates/scholar/ScholarDocument.tsx +270 -0
  659. package/src/templates/scholar/entries.tsx +169 -0
  660. package/src/templates/skills.ts +21 -0
  661. package/src/templates/split/SplitDocument.tsx +297 -0
  662. package/src/templates/split/entries.tsx +164 -0
  663. package/src/templates/stylish/StylishDocument.tsx +269 -0
  664. package/src/templates/stylish/entries.tsx +167 -0
  665. package/src/templates/timeline/TimelineDocument.tsx +255 -0
  666. package/src/templates/timeline/entries.tsx +173 -0
  667. package/src/useFitZoom.ts +185 -0
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useEditorText } from '../i18n/index.js';
3
+ import { EditableInlineList } from '../nodes/EditableInlineList.js';
4
+ /**
5
+ * A skills group as its items on a line, for the templates that print skills
6
+ * as one run of keywords.
7
+ *
8
+ * Like `BulletSkillGroup`, not an addressable container: the group is storage,
9
+ * the skills are what the page shows. Its separator is a real character, so a
10
+ * parser reading the exported PDF gets "React · TypeScript" rather than two
11
+ * words run together.
12
+ */
13
+ export function InlineSkillGroup({ item, path, separator = ', ', first, }) {
14
+ const { placeholder } = useEditorText();
15
+ return (_jsxs(_Fragment, { children: [!first && separator, _jsx(EditableInlineList, { path: `${path}.items`, items: item.items, placeholder: placeholder('items') })] }));
16
+ }
@@ -0,0 +1,24 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { SkillGroup } from '@resumekit/schema';
3
+ import type { ItemRootProps } from '../collections/CollectionItems.js';
4
+ export interface SkillGroupProps {
5
+ item: SkillGroup;
6
+ path: string;
7
+ chrome: ReactNode;
8
+ itemProps: ItemRootProps;
9
+ }
10
+ /**
11
+ * A skills group the page shows as a group: its category, then its skills.
12
+ * The grid and the tags differ only in their classes and stylesheet.
13
+ *
14
+ * Unlike `BulletSkillGroup`, the group has a heading, so it is an addressable
15
+ * entry with a rail of its own. A group with no category prints no label while
16
+ * read and offers one while authoring.
17
+ */
18
+ export declare function LabelledSkillGroup({ item, path, chrome, itemProps, block, list, }: SkillGroupProps & {
19
+ /** The kit's class for this layout: `tpl-skill-grid` or `tpl-skill-tags`. */
20
+ block: string;
21
+ /** Classes of a wrapper around the skills, when the layout needs one. */
22
+ list?: string;
23
+ }): import("react").JSX.Element;
24
+ //# sourceMappingURL=LabelledSkillGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LabelledSkillGroup.d.ts","sourceRoot":"","sources":["../../src/kit/LabelledSkillGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAMvE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,aAAa,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,SAAS,EACT,KAAK,EACL,IAAI,GACL,EAAE,eAAe,GAAG;IACnB,6EAA6E;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,+BAgCA"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useAuthoring } from '../collections/authoring-context.js';
3
+ import { useEditorText } from '../i18n/index.js';
4
+ import { EditableText } from '../nodes/EditableText.js';
5
+ import { EditableBulletList } from '../nodes/EditableBulletList.js';
6
+ /**
7
+ * A skills group the page shows as a group: its category, then its skills.
8
+ * The grid and the tags differ only in their classes and stylesheet.
9
+ *
10
+ * Unlike `BulletSkillGroup`, the group has a heading, so it is an addressable
11
+ * entry with a rail of its own. A group with no category prints no label while
12
+ * read and offers one while authoring.
13
+ */
14
+ export function LabelledSkillGroup({ item, path, chrome, itemProps, block, list, }) {
15
+ const { placeholder } = useEditorText();
16
+ const authoring = useAuthoring() !== null;
17
+ const labelled = item.category.length > 0 || authoring;
18
+ const skills = (_jsx(EditableBulletList, { path: `${path}.items`, items: item.items, placeholder: placeholder('item') }));
19
+ return (_jsxs("div", { ...itemProps, className: labelled ? `${block}__group` : `${block}__group ${block}__group--bare`, "data-block": true, children: [chrome, labelled && (_jsx("span", { className: `${block}__label`, children: _jsx(EditableText, { path: `${path}.category`, value: item.category, placeholder: placeholder('category') }) })), list ? _jsx("div", { className: list, children: skills }) : skills] }));
20
+ }
@@ -0,0 +1,28 @@
1
+ import { type Language } from '@resumekit/schema';
2
+ import type { HeadingLead } from './textShapes.js';
3
+ export interface LanguageListProps {
4
+ /** Optional for the reason `DescribedEntries` states: an unparsed résumé
5
+ * genuinely lacks the field. */
6
+ items: readonly Language[] | undefined;
7
+ /** The template's own section, heading and row classes. */
8
+ className: string;
9
+ headingClassName: string;
10
+ rowClassName: string;
11
+ /** The heading's default, as printed when the candidate has not renamed it. */
12
+ title?: string;
13
+ /** What the candidate renamed it to, from `resume.section_headings.languages`. */
14
+ heading?: string;
15
+ /** As `DocumentSection`'s. */
16
+ headingLead?: HeadingLead;
17
+ }
18
+ /**
19
+ * The languages the candidate speaks, each with a level.
20
+ *
21
+ * Read from `resume.languages`. Before that field existed every template found
22
+ * languages by filtering the skills groups for one whose category matched
23
+ * `/^languages?/i` — so the section had no level and therefore no meter, no
24
+ * `RESUME_SECTIONS` member and therefore no adjustable gap, and it rendered
25
+ * nothing at all for the candidate who had not guessed the magic category name.
26
+ */
27
+ export declare function LanguageList({ items, className, headingClassName, rowClassName, title, heading, headingLead, }: LanguageListProps): import("react").JSX.Element | null;
28
+ //# sourceMappingURL=LanguageList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LanguageList.d.ts","sourceRoot":"","sources":["../../src/kit/LanguageList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AA2EnD,MAAM,WAAW,iBAAiB;IAChC;qCACiC;IACjC,KAAK,EAAE,SAAS,QAAQ,EAAE,GAAG,SAAS,CAAC;IACvC,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kFAAkF;IAClF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,KAAK,EACL,OAAO,EACP,WAAW,GACZ,EAAE,iBAAiB,sCAqCnB"}
@@ -0,0 +1,56 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { LANGUAGE_LEVELS } from '@resumekit/schema';
3
+ import { DocumentSection } from './DocumentSection.js';
4
+ import { Collection } from '../collections/Collection.js';
5
+ import { useAuthoring } from '../collections/authoring-context.js';
6
+ import { EditableText } from '../nodes/EditableText.js';
7
+ import { useField } from '../fields/field-registry.js';
8
+ import { useDocumentText, useEditorText } from '../i18n/index.js';
9
+ /** How many of the five steps a level fills. `native` fills all five. */
10
+ function filled(level) {
11
+ const index = LANGUAGE_LEVELS.indexOf(level);
12
+ return index < 0 ? 0 : LANGUAGE_LEVELS.length - index;
13
+ }
14
+ /**
15
+ * The level: a word, and — where the template draws one — a five-step meter.
16
+ *
17
+ * The WORD is the content and the meter is the decoration, which is the whole
18
+ * reason this meter is allowed to exist. `docs/template-contract.md` refuses a
19
+ * proficiency meter whose proportions nothing recorded; this one renders one
20
+ * step per stored enum value, and the word beside it carries the meaning for a
21
+ * parser, for a reader, and for a page that prints no marks it was not given.
22
+ *
23
+ * The meter is `aria-hidden` because the word is already the accessible
24
+ * content, and five announced circles are noise.
25
+ *
26
+ * A level with no value yet — a row the candidate has just added — renders no
27
+ * meter and no word. An unchosen level is not a sixth level.
28
+ */
29
+ function LevelChoice({ path, value }) {
30
+ const { value: live, editing, set } = useField(path, value);
31
+ const { t } = useEditorText();
32
+ /* How a stored level is written on the page: the document's words. */
33
+ const levels = useDocumentText().t.levels;
34
+ const word = levels[live] ?? '';
35
+ return (_jsxs(_Fragment, { children: [editing ? (_jsxs("select", { className: "tpl-language__choice", value: live, "aria-label": t.language.level, onChange: (e) => set(e.target.value), children: [_jsx("option", { value: "", children: t.language.choose }), LANGUAGE_LEVELS.map((level) => (_jsx("option", { value: level, children: levels[level] }, level)))] })) : (_jsx("span", { className: "tpl-language__level", children: word })), word && (_jsx("span", { className: "tpl-language__meter", "aria-hidden": "true", children: LANGUAGE_LEVELS.map((_, i) => (_jsx("span", { className: i < filled(live)
36
+ ? 'tpl-language__step tpl-language__step--on'
37
+ : 'tpl-language__step' }, i))) }))] }));
38
+ }
39
+ /**
40
+ * The languages the candidate speaks, each with a level.
41
+ *
42
+ * Read from `resume.languages`. Before that field existed every template found
43
+ * languages by filtering the skills groups for one whose category matched
44
+ * `/^languages?/i` — so the section had no level and therefore no meter, no
45
+ * `RESUME_SECTIONS` member and therefore no adjustable gap, and it rendered
46
+ * nothing at all for the candidate who had not guessed the magic category name.
47
+ */
48
+ export function LanguageList({ items, className, headingClassName, rowClassName, title, heading, headingLead, }) {
49
+ const authoring = useAuthoring() !== null;
50
+ const { placeholder } = useEditorText();
51
+ const doc = useDocumentText();
52
+ const entries = items ?? [];
53
+ if (entries.length === 0 && !authoring)
54
+ return null;
55
+ return (_jsx(DocumentSection, { id: "languages", title: title ?? doc.t.sections.languages, heading: heading, className: `tpl-languages ${className}`, headingClassName: headingClassName, headingLead: headingLead, children: _jsx(Collection, { section: "languages", items: entries, children: ({ item, path, chrome, itemProps }) => (_jsxs("div", { ...itemProps, className: `tpl-language ${rowClassName}`, "data-block": true, children: [chrome, _jsx("span", { className: "tpl-language__name", children: _jsx(EditableText, { path: `${path}.name`, value: item.name, placeholder: placeholder('language') }) }), _jsx(LevelChoice, { path: `${path}.level`, value: item.level })] })) }) }));
56
+ }
@@ -0,0 +1,20 @@
1
+ import { type DocumentMessages } from '../i18n/index.js';
2
+ type JoinWord = keyof DocumentMessages['joins'];
3
+ /**
4
+ * What stands between two fields on one line — ", ", " – ", " in ".
5
+ *
6
+ * Printed only when BOTH sides have a value, so a qualification with no field
7
+ * does not end in a dangling comma. While authoring it is always there: each
8
+ * empty side shows its guidance, and two guidances with nothing between them
9
+ * run together into one unreadable word.
10
+ *
11
+ * `text` is punctuation, the same in every language. `word` is a word, which
12
+ * prints in the document's language.
13
+ */
14
+ export declare function Separator({ between, text, word, }: {
15
+ between: readonly [unknown, unknown];
16
+ text?: string;
17
+ word?: JoinWord;
18
+ }): import("react").JSX.Element | null;
19
+ export {};
20
+ //# sourceMappingURL=Separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../../src/kit/Separator.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAE1E,KAAK,QAAQ,GAAG,MAAM,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,IAAI,EACJ,IAAI,GACL,EAAE;IACD,OAAO,EAAE,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,sCAKA"}
@@ -0,0 +1,21 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { useAuthoring } from '../collections/authoring-context.js';
3
+ import { useDocumentText } from '../i18n/index.js';
4
+ /**
5
+ * What stands between two fields on one line — ", ", " – ", " in ".
6
+ *
7
+ * Printed only when BOTH sides have a value, so a qualification with no field
8
+ * does not end in a dangling comma. While authoring it is always there: each
9
+ * empty side shows its guidance, and two guidances with nothing between them
10
+ * run together into one unreadable word.
11
+ *
12
+ * `text` is punctuation, the same in every language. `word` is a word, which
13
+ * prints in the document's language.
14
+ */
15
+ export function Separator({ between, text, word, }) {
16
+ const authoring = useAuthoring() !== null;
17
+ const joins = useDocumentText().t.joins;
18
+ if (!authoring && !(between[0] && between[1]))
19
+ return null;
20
+ return _jsx(_Fragment, { children: word ? ` ${joins[word]} ` : text });
21
+ }
@@ -0,0 +1,8 @@
1
+ import { type SkillGroupProps } from './LabelledSkillGroup.js';
2
+ /**
3
+ * A skills group as its category over a run of underlined tags. The group's
4
+ * shape is `skill-tags.css` and the tags are `tpl-keywords--tags`, the same
5
+ * tags an unlabelled run draws; drawn inside a `tpl-skill-tags` list.
6
+ */
7
+ export declare function TagSkillGroup(props: SkillGroupProps): import("react").JSX.Element;
8
+ //# sourceMappingURL=TagSkillGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagSkillGroup.d.ts","sourceRoot":"","sources":["../../src/kit/TagSkillGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,eAAe,+BAQnD"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { LabelledSkillGroup, } from './LabelledSkillGroup.js';
3
+ /**
4
+ * A skills group as its category over a run of underlined tags. The group's
5
+ * shape is `skill-tags.css` and the tags are `tpl-keywords--tags`, the same
6
+ * tags an unlabelled run draws; drawn inside a `tpl-skill-tags` list.
7
+ */
8
+ export function TagSkillGroup(props) {
9
+ return (_jsx(LabelledSkillGroup, { ...props, block: "tpl-skill-tags", list: "tpl-keywords tpl-keywords--tags" }));
10
+ }
@@ -0,0 +1,42 @@
1
+ /*
2
+ * The initials a template draws where its reference shows a portrait.
3
+ *
4
+ * Every measurement is a template's to set — it is the template that knows how
5
+ * big the slot is — so this file holds only what is true of all of them: a
6
+ * circle of foreground ink with the initials centred in it, which prints with
7
+ * the browser's background graphics switched off.
8
+ */
9
+ .tpl-avatar {
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ box-sizing: border-box;
14
+ width: var(--tpl-avatar-size, 56pt);
15
+ height: var(--tpl-avatar-size, 56pt);
16
+ margin: 0;
17
+ border: 1pt solid currentcolor;
18
+ border-radius: 50%;
19
+ font-size: var(--tpl-avatar-text, 18pt);
20
+ font-weight: 700;
21
+ letter-spacing: 0.02em;
22
+ line-height: 1;
23
+ }
24
+
25
+ /*
26
+ * An employer's initials, where a design shows its logo. Square-ish rather
27
+ * than round, so it reads as a mark beside a name rather than as a second
28
+ * portrait, and sized by the template that draws it.
29
+ */
30
+ .tpl-chip {
31
+ display: inline-flex;
32
+ align-items: center;
33
+ justify-content: center;
34
+ box-sizing: border-box;
35
+ width: var(--tpl-chip-size, 16pt);
36
+ height: var(--tpl-chip-size, 16pt);
37
+ border: 0.75pt solid currentcolor;
38
+ border-radius: calc(var(--tpl-chip-size, 16pt) * 0.22);
39
+ font-size: var(--tpl-chip-text, 7pt);
40
+ font-weight: 700;
41
+ line-height: 1;
42
+ }
@@ -0,0 +1,70 @@
1
+ /*
2
+ * An icon before each contact detail, for the references that draw them.
3
+ *
4
+ * Opted into with `icons: true` on a `contact` or `links` part; the emitter
5
+ * gives every detail its field's class (`tpl-contact--phone`, `--email`,
6
+ * `--location`, `--link`), which the picture render keeps.
7
+ *
8
+ * Drawn, never typed: the icon is generated content with no text, so a parser
9
+ * extracts the detail and nothing beside it. A mask over the ink rather than a
10
+ * coloured image, so a template paints it with `--tpl-contact-icon-ink`, and
11
+ * `print-color-adjust: exact` so it reaches paper.
12
+ */
13
+
14
+ .tpl-contact-icons
15
+ :is(
16
+ .tpl-contact--phone,
17
+ .tpl-contact--email,
18
+ .tpl-contact--location,
19
+ .tpl-contact--link
20
+ )::before,
21
+ .tpl-contact-icons:is(
22
+ .tpl-contact--phone,
23
+ .tpl-contact--email,
24
+ .tpl-contact--location,
25
+ .tpl-contact--link
26
+ )::before {
27
+ content: '';
28
+ display: inline-block;
29
+ width: var(--tpl-contact-icon-size, 0.95em);
30
+ height: var(--tpl-contact-icon-size, 0.95em);
31
+ margin-right: var(--tpl-contact-icon-gap, 0.4em);
32
+ vertical-align: var(--tpl-contact-icon-shift, -0.14em);
33
+ background-color: var(--tpl-contact-icon-ink, currentcolor);
34
+ mask: var(--tpl-contact-icon) center / contain no-repeat;
35
+ -webkit-mask: var(--tpl-contact-icon) center / contain no-repeat;
36
+ print-color-adjust: exact;
37
+ -webkit-print-color-adjust: exact;
38
+ }
39
+
40
+ .tpl-contact-icons .tpl-contact--phone,
41
+ .tpl-contact-icons.tpl-contact--phone {
42
+ --tpl-contact-icon: var(
43
+ --tpl-contact-icon-phone,
44
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E")
45
+ );
46
+ }
47
+
48
+ .tpl-contact-icons .tpl-contact--email,
49
+ .tpl-contact-icons.tpl-contact--email {
50
+ --tpl-contact-icon: var(
51
+ --tpl-contact-icon-email,
52
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='2'/%3E%3Cpath d='m3 6.5 9 6.5 9-6.5'/%3E%3C/svg%3E")
53
+ );
54
+ }
55
+
56
+ .tpl-contact-icons .tpl-contact--location,
57
+ .tpl-contact-icons.tpl-contact--location {
58
+ --tpl-contact-icon: var(
59
+ --tpl-contact-icon-location,
60
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E")
61
+ );
62
+ }
63
+
64
+ .tpl-contact-icons .tpl-contact--link,
65
+ .tpl-contact-icons.tpl-contact--link {
66
+ --tpl-contact-icon: var(
67
+ --tpl-contact-icon-link,
68
+ url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E")
69
+ );
70
+ }
@@ -0,0 +1,16 @@
1
+ import type { ResumeObject } from '@resumekit/schema';
2
+ export type ContactField = keyof ResumeObject['contact'] & ('email' | 'phone' | 'location');
3
+ export interface ContactLine {
4
+ field: ContactField;
5
+ path: `contact.${ContactField}`;
6
+ value: string;
7
+ placeholder: string;
8
+ }
9
+ /**
10
+ * The contact details a template prints, in the template's own order.
11
+ *
12
+ * While authoring every field is offered, filled or not — an absent field is
13
+ * one a candidate cannot add. On paper only what was filled in survives.
14
+ */
15
+ export declare function useContactLines(contact: ResumeObject['contact'], order: readonly ContactField[], authoring: boolean): ContactLine[];
16
+ //# sourceMappingURL=contact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../src/kit/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,MAAM,MAAM,YAAY,GAAG,MAAM,YAAY,CAAC,SAAS,CAAC,GACtD,CAAC,OAAO,GAAG,OAAO,GAAG,UAAU,CAAC,CAAC;AAEnC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,YAAY,CAAC;IACpB,IAAI,EAAE,WAAW,YAAY,EAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,YAAY,CAAC,SAAS,CAAC,EAChC,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,SAAS,EAAE,OAAO,GACjB,WAAW,EAAE,CAUf"}
@@ -0,0 +1,18 @@
1
+ import { useEditorText } from '../i18n/index.js';
2
+ /**
3
+ * The contact details a template prints, in the template's own order.
4
+ *
5
+ * While authoring every field is offered, filled or not — an absent field is
6
+ * one a candidate cannot add. On paper only what was filled in survives.
7
+ */
8
+ export function useContactLines(contact, order, authoring) {
9
+ const { placeholder } = useEditorText();
10
+ return order
11
+ .filter((field) => authoring || contact[field])
12
+ .map((field) => ({
13
+ field,
14
+ path: `contact.${field}`,
15
+ value: String(contact[field] ?? ''),
16
+ placeholder: placeholder(field),
17
+ }));
18
+ }
@@ -0,0 +1,114 @@
1
+ /*
2
+ * Achievements, Courses and Passions: a title over a paragraph.
3
+ *
4
+ * The SHAPE is here and the painting is the template's, on the same terms as
5
+ * `keywords.css` — a template sets the variables and its own classes, and never
6
+ * restates the structure. Three sections across seventeen templates is where a
7
+ * copied block would quietly come apart.
8
+ */
9
+
10
+ /*
11
+ * The first entry sits against the heading, and their margins collapse: the
12
+ * template restates its heading's bottom margin in `--tpl-heading-gap` so the
13
+ * recorded space is added below it rather than lost inside it.
14
+ */
15
+ .tpl-described__entry {
16
+ margin-top: calc(var(--tpl-heading-gap, 0px) + var(--tpl-space-height, 0px));
17
+ }
18
+
19
+ .tpl-described__entry + .tpl-described__entry {
20
+ /*
21
+ * The recorded space is ADDED to the rhythm, never substituted for it, which
22
+ * is the rule every template's stylesheet follows. A template that wants a
23
+ * different rhythm sets the variable rather than redeclaring the margin.
24
+ */
25
+ margin-top: calc(
26
+ var(--tpl-described-gap, 7pt) + var(--tpl-space-height, 0px)
27
+ );
28
+ }
29
+
30
+ /*
31
+ * The type is the TEMPLATE'S, not this file's.
32
+ *
33
+ * Every template sets its body text once, on its root, and its own prose class
34
+ * is nothing but `margin: 0` — so a paragraph in a résumé is styled by
35
+ * inheriting, and these two must be drawn the same way. Naming a size or a
36
+ * line-height here would make the supporting sections the only text on the page
37
+ * set by the kit, and they would read as a foreign block in seventeen
38
+ * templates at once.
39
+ *
40
+ * So: inherit by default, and leave a variable where a template genuinely wants
41
+ * to differ. What IS stated is structure — the margins that space a title from
42
+ * its paragraph — because that is the shape this component owns.
43
+ */
44
+ .tpl-described__title {
45
+ margin: 0;
46
+ font-family: inherit;
47
+ font-size: var(--tpl-described-title-size, inherit);
48
+ line-height: var(--tpl-described-title-leading, inherit);
49
+ font-weight: var(--tpl-described-title-weight, 700);
50
+ color: var(--tpl-described-title-ink, currentcolor);
51
+ }
52
+
53
+ .tpl-described__body {
54
+ margin: var(--tpl-described-lead, 1.5pt) 0 0;
55
+ font-family: inherit;
56
+ font-size: var(--tpl-described-body-size, inherit);
57
+ line-height: var(--tpl-described-body-leading, inherit);
58
+ color: var(--tpl-described-body-ink, currentcolor);
59
+ }
60
+
61
+ /*
62
+ * A repeated mark beside each title, for the references that glyph these
63
+ * entries.
64
+ *
65
+ * ONE mark, set by the template in `--tpl-described-mark`, repeated on every
66
+ * entry. Not a prop and not per-entry: nothing in the résumé says which glyph
67
+ * an achievement deserves, so a renderer that varied it would be inventing
68
+ * meaning. `aria-hidden` is implicit — generated content is not announced — and
69
+ * the mark carries none of the entry's information.
70
+ */
71
+ .tpl-described--marked .tpl-described__title::before {
72
+ content: var(--tpl-described-mark, '');
73
+ margin-right: var(--tpl-described-mark-gap, 4pt);
74
+ color: var(
75
+ --tpl-described-mark-ink,
76
+ var(--tpl-described-title-ink, currentcolor)
77
+ );
78
+ }
79
+
80
+ /*
81
+ * The two-column variant, for the references that set these entries side by
82
+ * side — Classic and Timeline set achievements two to a row, Ivy three.
83
+ *
84
+ * A GRID rather than CSS `columns`. The contract states the reason and it is
85
+ * not stylistic: an editable container that spans a column break is fragmented,
86
+ * and a fragment can hold neither its outline nor its rail, so the control pill
87
+ * lands inside the page.
88
+ */
89
+ .tpl-described--grid {
90
+ display: grid;
91
+ grid-template-columns: repeat(var(--tpl-described-columns, 2), 1fr);
92
+ gap: var(--tpl-described-gap, 7pt) var(--tpl-described-span, 14pt);
93
+ }
94
+
95
+ /*
96
+ * The heading spans the tracks; the entries fill them.
97
+ *
98
+ * The section itself is the grid because `Collection` renders its items as a
99
+ * fragment — there is no wrapper to grid, and adding one would put a box around
100
+ * every collection in the catalog to serve three sections in a handful of
101
+ * templates. The space handle is absolutely positioned, so it takes no cell.
102
+ */
103
+ .tpl-described--grid > h2 {
104
+ grid-column: 1 / -1;
105
+ }
106
+
107
+ /*
108
+ * In a grid no margin collapses and the grid sets the gaps, so every cell takes
109
+ * its recorded space alone.
110
+ */
111
+ .tpl-described--grid .tpl-described__entry,
112
+ .tpl-described--grid .tpl-described__entry + .tpl-described__entry {
113
+ margin-top: var(--tpl-space-height, 0px);
114
+ }
@@ -0,0 +1,20 @@
1
+ import type { CSSProperties } from 'react';
2
+ import { type DocumentStyle } from '@resumekit/schema';
3
+ /**
4
+ * The candidate's document style as custom properties on a template's root,
5
+ * named with the template's own prefix (`--h-font`, `--c-ink`, …) so its
6
+ * stylesheet stays the only definition of how it looks.
7
+ *
8
+ * Accent and density are written only when chosen: `document-styling` (#36)
9
+ * requires a document that sets neither to render as the template defines it.
10
+ */
11
+ export declare function documentStyle(prefix: string, style: DocumentStyle | undefined): CSSProperties;
12
+ /**
13
+ * Which typographic presets the document chose, as attributes on the template's
14
+ * root. Only a chosen preset is written: `typography.css` keys every rule on
15
+ * the attribute's presence, so a document that chose none is drawn by the
16
+ * template's stylesheet alone — the same guarantee `documentStyle` keeps for
17
+ * accent and density.
18
+ */
19
+ export declare function documentStyleAttributes(style: DocumentStyle | undefined): Record<`data-rk-${string}`, string>;
20
+ //# sourceMappingURL=documentStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"documentStyle.d.ts","sourceRoot":"","sources":["../../src/kit/documentStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAOL,KAAK,aAAa,EACnB,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,aAAa,CAmCf;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,MAAM,CAAC,WAAW,MAAM,EAAE,EAAE,MAAM,CAAC,CAWrC"}
@@ -0,0 +1,64 @@
1
+ import { DENSITIES, DOCUMENT_FONTS, HEADING_WEIGHTS, INK_COLORS, LETTER_SPACINGS, LINE_HEIGHTS, } from '@resumekit/schema';
2
+ /**
3
+ * The candidate's document style as custom properties on a template's root,
4
+ * named with the template's own prefix (`--h-font`, `--c-ink`, …) so its
5
+ * stylesheet stays the only definition of how it looks.
6
+ *
7
+ * Accent and density are written only when chosen: `document-styling` (#36)
8
+ * requires a document that sets neither to render as the template defines it.
9
+ */
10
+ export function documentStyle(prefix, style) {
11
+ if (!style)
12
+ return {};
13
+ return {
14
+ [`--${prefix}-font`]: DOCUMENT_FONTS[style.font].stack,
15
+ [`--${prefix}-ink`]: INK_COLORS[style.ink].hex,
16
+ [`--${prefix}-scale`]: String(style.scale),
17
+ ...(style.accent
18
+ ? { [`--${prefix}-accent`]: INK_COLORS[style.accent].hex }
19
+ : {}),
20
+ ...(style.density
21
+ ? { [`--${prefix}-density`]: String(DENSITIES[style.density].factor) }
22
+ : {}),
23
+ /*
24
+ * The typographic presets, under one shared prefix rather than the
25
+ * template's: `typography.css` applies them the same way in every
26
+ * template, keyed on the `data-rk-*` attributes below, so a template's
27
+ * stylesheet never has to know they exist.
28
+ */
29
+ ...(style.tracking
30
+ ? { '--rk-tracking': `${LETTER_SPACINGS[style.tracking].em}em` }
31
+ : {}),
32
+ ...(style.leading
33
+ ? { '--rk-leading': String(LINE_HEIGHTS[style.leading].value) }
34
+ : {}),
35
+ ...(style.headingFont
36
+ ? { '--rk-heading-font': DOCUMENT_FONTS[style.headingFont].stack }
37
+ : {}),
38
+ ...(style.headingWeight
39
+ ? {
40
+ '--rk-heading-weight': String(HEADING_WEIGHTS[style.headingWeight].weight),
41
+ }
42
+ : {}),
43
+ };
44
+ }
45
+ /**
46
+ * Which typographic presets the document chose, as attributes on the template's
47
+ * root. Only a chosen preset is written: `typography.css` keys every rule on
48
+ * the attribute's presence, so a document that chose none is drawn by the
49
+ * template's stylesheet alone — the same guarantee `documentStyle` keeps for
50
+ * accent and density.
51
+ */
52
+ export function documentStyleAttributes(style) {
53
+ if (!style)
54
+ return {};
55
+ return {
56
+ ...(style.tracking && { 'data-rk-tracking': style.tracking }),
57
+ ...(style.leading && { 'data-rk-leading': style.leading }),
58
+ ...(style.headingFont && { 'data-rk-heading-font': style.headingFont }),
59
+ ...(style.headingCase && { 'data-rk-heading-case': style.headingCase }),
60
+ ...(style.headingWeight && {
61
+ 'data-rk-heading-weight': style.headingWeight,
62
+ }),
63
+ };
64
+ }
@@ -0,0 +1,17 @@
1
+ /* The browser's own heading defaults, at zero specificity: a template's rules win. */
2
+ :where([data-h]) {
3
+ display: block;
4
+ font-weight: bold;
5
+ }
6
+ :where([data-h='1']) {
7
+ margin-block: 0.67em;
8
+ font-size: 2em;
9
+ }
10
+ :where([data-h='2']) {
11
+ margin-block: 0.83em;
12
+ font-size: 1.5em;
13
+ }
14
+ :where([data-h='3']) {
15
+ margin-block: 1em;
16
+ font-size: 1.17em;
17
+ }