@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.
- package/LICENSE +21 -0
- package/README.md +74 -2
- package/dist/PagedSheet.d.ts +63 -0
- package/dist/PagedSheet.d.ts.map +1 -0
- package/dist/PagedSheet.js +584 -0
- package/dist/TemplateDocument.d.ts +33 -0
- package/dist/TemplateDocument.d.ts.map +1 -0
- package/dist/TemplateDocument.js +33 -0
- package/dist/autosave-context.d.ts +37 -0
- package/dist/autosave-context.d.ts.map +1 -0
- package/dist/autosave-context.js +24 -0
- package/dist/collections/AuthoredItems.d.ts +9 -0
- package/dist/collections/AuthoredItems.d.ts.map +1 -0
- package/dist/collections/AuthoredItems.js +116 -0
- package/dist/collections/Collection.d.ts +48 -0
- package/dist/collections/Collection.d.ts.map +1 -0
- package/dist/collections/Collection.js +24 -0
- package/dist/collections/CollectionItems.d.ts +94 -0
- package/dist/collections/CollectionItems.d.ts.map +1 -0
- package/dist/collections/CollectionItems.js +91 -0
- package/dist/collections/EntryOverlay.d.ts +38 -0
- package/dist/collections/EntryOverlay.d.ts.map +1 -0
- package/dist/collections/EntryOverlay.js +51 -0
- package/dist/collections/SortableItems.d.ts +52 -0
- package/dist/collections/SortableItems.d.ts.map +1 -0
- package/dist/collections/SortableItems.js +80 -0
- package/dist/collections/authoring-context.d.ts +69 -0
- package/dist/collections/authoring-context.d.ts.map +1 -0
- package/dist/collections/authoring-context.js +36 -0
- package/dist/collections/collection.css +462 -0
- package/dist/collections/entry-text.d.ts +23 -0
- package/dist/collections/entry-text.d.ts.map +1 -0
- package/dist/collections/entry-text.js +35 -0
- package/dist/collections/icons.d.ts +53 -0
- package/dist/collections/icons.d.ts.map +1 -0
- package/dist/collections/icons.js +56 -0
- package/dist/collections/library/LibraryAction.d.ts +24 -0
- package/dist/collections/library/LibraryAction.d.ts.map +1 -0
- package/dist/collections/library/LibraryAction.js +122 -0
- package/dist/collections/library/LibraryPicker.d.ts +42 -0
- package/dist/collections/library/LibraryPicker.d.ts.map +1 -0
- package/dist/collections/library/LibraryPicker.js +94 -0
- package/dist/collections/library/library.css +435 -0
- package/dist/collections/overlay-context.d.ts +34 -0
- package/dist/collections/overlay-context.d.ts.map +1 -0
- package/dist/collections/overlay-context.js +13 -0
- package/dist/collections/preload.d.ts +19 -0
- package/dist/collections/preload.d.ts.map +1 -0
- package/dist/collections/preload.js +23 -0
- package/dist/collections/selection-context.d.ts +25 -0
- package/dist/collections/selection-context.d.ts.map +1 -0
- package/dist/collections/selection-context.js +49 -0
- package/dist/collections/useCollection.d.ts +58 -0
- package/dist/collections/useCollection.d.ts.map +1 -0
- package/dist/collections/useCollection.js +90 -0
- package/dist/collections/useCustomEntries.d.ts +18 -0
- package/dist/collections/useCustomEntries.d.ts.map +1 -0
- package/dist/collections/useCustomEntries.js +56 -0
- package/dist/collections/useSectionCollection.d.ts +48 -0
- package/dist/collections/useSectionCollection.d.ts.map +1 -0
- package/dist/collections/useSectionCollection.js +169 -0
- package/dist/document.css +186 -0
- package/dist/export-bundle/bundle.css +2 -0
- package/dist/export-bundle/bundle.js +67 -0
- package/dist/fields/date-issues-context.d.ts +20 -0
- package/dist/fields/date-issues-context.d.ts.map +1 -0
- package/dist/fields/date-issues-context.js +68 -0
- package/dist/fields/field-registry.d.ts +163 -0
- package/dist/fields/field-registry.d.ts.map +1 -0
- package/dist/fields/field-registry.js +175 -0
- package/dist/fonts/README.md +207 -0
- package/dist/fonts/arimo-400.woff2 +0 -0
- package/dist/fonts/arimo-400i.woff2 +0 -0
- package/dist/fonts/arimo-700.woff2 +0 -0
- package/dist/fonts/arimo-700i.woff2 +0 -0
- package/dist/fonts/bitter-400.woff2 +0 -0
- package/dist/fonts/bitter-400i.woff2 +0 -0
- package/dist/fonts/bitter-700.woff2 +0 -0
- package/dist/fonts/bitter-700i.woff2 +0 -0
- package/dist/fonts/cabin-700.woff2 +0 -0
- package/dist/fonts/carlito-400.woff2 +0 -0
- package/dist/fonts/carlito-400i.woff2 +0 -0
- package/dist/fonts/carlito-700.woff2 +0 -0
- package/dist/fonts/carlito-700i.woff2 +0 -0
- package/dist/fonts/clearsans-400.woff2 +0 -0
- package/dist/fonts/clearsans-400i.woff2 +0 -0
- package/dist/fonts/cochineal-400.woff2 +0 -0
- package/dist/fonts/cochineal-400i.woff2 +0 -0
- package/dist/fonts/cochineal-700.woff2 +0 -0
- package/dist/fonts/ebgaramond-400.woff2 +0 -0
- package/dist/fonts/ebgaramond-400i.woff2 +0 -0
- package/dist/fonts/ebgaramond-700.woff2 +0 -0
- package/dist/fonts/ebgaramond-700i.woff2 +0 -0
- package/dist/fonts/fonts.css +622 -0
- package/dist/fonts/gelasio-400.woff2 +0 -0
- package/dist/fonts/gelasio-400i.woff2 +0 -0
- package/dist/fonts/gelasio-700.woff2 +0 -0
- package/dist/fonts/gelasio-700i.woff2 +0 -0
- package/dist/fonts/heros-400.woff2 +0 -0
- package/dist/fonts/heros-400i.woff2 +0 -0
- package/dist/fonts/heros-700.woff2 +0 -0
- package/dist/fonts/heros-700i.woff2 +0 -0
- package/dist/fonts/inconsolata-400.woff2 +0 -0
- package/dist/fonts/lato-100.woff2 +0 -0
- package/dist/fonts/lato-300.woff2 +0 -0
- package/dist/fonts/lato-300i.woff2 +0 -0
- package/dist/fonts/lato-400.woff2 +0 -0
- package/dist/fonts/lato-400i.woff2 +0 -0
- package/dist/fonts/lato-700.woff2 +0 -0
- package/dist/fonts/lato-700i.woff2 +0 -0
- package/dist/fonts/licenses/arimo-OFL.txt +93 -0
- package/dist/fonts/licenses/bitter-OFL.txt +94 -0
- package/dist/fonts/licenses/cabin-OFL.txt +93 -0
- package/dist/fonts/licenses/carlito-OFL.txt +94 -0
- package/dist/fonts/licenses/clearsans-APACHE-2.0.txt +205 -0
- package/dist/fonts/licenses/cochineal-OFL.txt +96 -0
- package/dist/fonts/licenses/ebgaramond-OFL.txt +93 -0
- package/dist/fonts/licenses/gelasio-OFL.txt +93 -0
- package/dist/fonts/licenses/heros-GUST-FONT-LICENSE.txt +30 -0
- package/dist/fonts/licenses/inconsolata-OFL.txt +93 -0
- package/dist/fonts/licenses/latinmodern-GUST-FONT-LICENSE.txt +35 -0
- package/dist/fonts/licenses/lato-OFL.txt +93 -0
- package/dist/fonts/licenses/ptserif-OFL.txt +93 -0
- package/dist/fonts/licenses/raleway-OFL.txt +93 -0
- package/dist/fonts/licenses/roboto-OFL.txt +93 -0
- package/dist/fonts/licenses/robotocondensed-OFL.txt +93 -0
- package/dist/fonts/licenses/robotoslab-APACHE-2.0.txt +205 -0
- package/dist/fonts/licenses/sourcesans3-OFL.txt +93 -0
- package/dist/fonts/licenses/tinos-OFL.txt +93 -0
- package/dist/fonts/lmmono-400.woff2 +0 -0
- package/dist/fonts/lmroman-400.woff2 +0 -0
- package/dist/fonts/lmroman-400i.woff2 +0 -0
- package/dist/fonts/lmroman-700.woff2 +0 -0
- package/dist/fonts/lmroman-700i.woff2 +0 -0
- package/dist/fonts/lmromancaps-400.woff2 +0 -0
- package/dist/fonts/ptserif-400.woff2 +0 -0
- package/dist/fonts/ptserif-400i.woff2 +0 -0
- package/dist/fonts/ptserif-700.woff2 +0 -0
- package/dist/fonts/ptserif-700i.woff2 +0 -0
- package/dist/fonts/raleway-300.woff2 +0 -0
- package/dist/fonts/raleway-400.woff2 +0 -0
- package/dist/fonts/raleway-400i.woff2 +0 -0
- package/dist/fonts/raleway-500.woff2 +0 -0
- package/dist/fonts/raleway-700.woff2 +0 -0
- package/dist/fonts/roboto-100.woff2 +0 -0
- package/dist/fonts/roboto-300.woff2 +0 -0
- package/dist/fonts/roboto-300i.woff2 +0 -0
- package/dist/fonts/roboto-400.woff2 +0 -0
- package/dist/fonts/roboto-400i.woff2 +0 -0
- package/dist/fonts/roboto-700.woff2 +0 -0
- package/dist/fonts/robotocondensed-400.woff2 +0 -0
- package/dist/fonts/robotocondensed-400i.woff2 +0 -0
- package/dist/fonts/robotocondensed-700.woff2 +0 -0
- package/dist/fonts/robotocondensed-700i.woff2 +0 -0
- package/dist/fonts/robotoslab-700.woff2 +0 -0
- package/dist/fonts/sourcesans3-300.woff2 +0 -0
- package/dist/fonts/sourcesans3-300i.woff2 +0 -0
- package/dist/fonts/sourcesans3-400.woff2 +0 -0
- package/dist/fonts/sourcesans3-400i.woff2 +0 -0
- package/dist/fonts/sourcesans3-700.woff2 +0 -0
- package/dist/fonts/tinos-400.woff2 +0 -0
- package/dist/fonts/tinos-400i.woff2 +0 -0
- package/dist/fonts/tinos-700.woff2 +0 -0
- package/dist/fonts/tinos-700i.woff2 +0 -0
- package/dist/i18n/README.md +52 -0
- package/dist/i18n/catalog.d.ts +39 -0
- package/dist/i18n/catalog.d.ts.map +1 -0
- package/dist/i18n/catalog.js +43 -0
- package/dist/i18n/format.d.ts +14 -0
- package/dist/i18n/format.d.ts.map +1 -0
- package/dist/i18n/format.js +38 -0
- package/dist/i18n/index.d.ts +4 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/locale-context.d.ts +43 -0
- package/dist/i18n/locale-context.d.ts.map +1 -0
- package/dist/i18n/locale-context.js +74 -0
- package/dist/i18n/locales/en.json +337 -0
- package/dist/i18n/locales/es.json +337 -0
- package/dist/index.d.ts +101 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +99 -0
- package/dist/kit/BulletSkillGroup.d.ts +20 -0
- package/dist/kit/BulletSkillGroup.d.ts.map +1 -0
- package/dist/kit/BulletSkillGroup.js +25 -0
- package/dist/kit/DescribedEntries.d.ts +41 -0
- package/dist/kit/DescribedEntries.d.ts.map +1 -0
- package/dist/kit/DescribedEntries.js +57 -0
- package/dist/kit/DocumentSection.d.ts +58 -0
- package/dist/kit/DocumentSection.d.ts.map +1 -0
- package/dist/kit/DocumentSection.js +38 -0
- package/dist/kit/GridSkillGroup.d.ts +12 -0
- package/dist/kit/GridSkillGroup.d.ts.map +1 -0
- package/dist/kit/GridSkillGroup.js +14 -0
- package/dist/kit/Heading.d.ts +11 -0
- package/dist/kit/Heading.d.ts.map +1 -0
- package/dist/kit/Heading.js +10 -0
- package/dist/kit/InitialsAvatar.d.ts +17 -0
- package/dist/kit/InitialsAvatar.d.ts.map +1 -0
- package/dist/kit/InitialsAvatar.js +18 -0
- package/dist/kit/InitialsChip.d.ts +16 -0
- package/dist/kit/InitialsChip.d.ts.map +1 -0
- package/dist/kit/InitialsChip.js +16 -0
- package/dist/kit/InlineSkillGroup.d.ts +22 -0
- package/dist/kit/InlineSkillGroup.d.ts.map +1 -0
- package/dist/kit/InlineSkillGroup.js +16 -0
- package/dist/kit/LabelledSkillGroup.d.ts +24 -0
- package/dist/kit/LabelledSkillGroup.d.ts.map +1 -0
- package/dist/kit/LabelledSkillGroup.js +20 -0
- package/dist/kit/LanguageList.d.ts +28 -0
- package/dist/kit/LanguageList.d.ts.map +1 -0
- package/dist/kit/LanguageList.js +56 -0
- package/dist/kit/Separator.d.ts +20 -0
- package/dist/kit/Separator.d.ts.map +1 -0
- package/dist/kit/Separator.js +21 -0
- package/dist/kit/TagSkillGroup.d.ts +8 -0
- package/dist/kit/TagSkillGroup.d.ts.map +1 -0
- package/dist/kit/TagSkillGroup.js +10 -0
- package/dist/kit/avatar.css +42 -0
- package/dist/kit/contact-icons.css +70 -0
- package/dist/kit/contact.d.ts +16 -0
- package/dist/kit/contact.d.ts.map +1 -0
- package/dist/kit/contact.js +18 -0
- package/dist/kit/described.css +114 -0
- package/dist/kit/documentStyle.d.ts +20 -0
- package/dist/kit/documentStyle.d.ts.map +1 -0
- package/dist/kit/documentStyle.js +64 -0
- package/dist/kit/heading.css +17 -0
- package/dist/kit/keywords.css +127 -0
- package/dist/kit/language.css +104 -0
- package/dist/kit/layout.css +16 -0
- package/dist/kit/monogram.d.ts +6 -0
- package/dist/kit/monogram.d.ts.map +1 -0
- package/dist/kit/monogram.js +12 -0
- package/dist/kit/panel.css +26 -0
- package/dist/kit/skill-grid.css +93 -0
- package/dist/kit/skill-tags.css +36 -0
- package/dist/kit/textShapes.d.ts +24 -0
- package/dist/kit/textShapes.d.ts.map +1 -0
- package/dist/kit/textShapes.js +32 -0
- package/dist/kit/typography.css +86 -0
- package/dist/letter/LetterDocument.d.ts +13 -0
- package/dist/letter/LetterDocument.d.ts.map +1 -0
- package/dist/letter/LetterDocument.js +12 -0
- package/dist/letter/letter.css +75 -0
- package/dist/nodes/AuthoredBullets.d.ts +22 -0
- package/dist/nodes/AuthoredBullets.d.ts.map +1 -0
- package/dist/nodes/AuthoredBullets.js +101 -0
- package/dist/nodes/CustomSections.d.ts +42 -0
- package/dist/nodes/CustomSections.d.ts.map +1 -0
- package/dist/nodes/CustomSections.js +27 -0
- package/dist/nodes/EditableBulletList.d.ts +15 -0
- package/dist/nodes/EditableBulletList.d.ts.map +1 -0
- package/dist/nodes/EditableBulletList.js +98 -0
- package/dist/nodes/EditableInlineList.d.ts +27 -0
- package/dist/nodes/EditableInlineList.d.ts.map +1 -0
- package/dist/nodes/EditableInlineList.js +50 -0
- package/dist/nodes/EditableText.d.ts +79 -0
- package/dist/nodes/EditableText.d.ts.map +1 -0
- package/dist/nodes/EditableText.js +113 -0
- package/dist/nodes/LinkField.d.ts +103 -0
- package/dist/nodes/LinkField.d.ts.map +1 -0
- package/dist/nodes/LinkField.js +277 -0
- package/dist/nodes/PlainTextField.d.ts +38 -0
- package/dist/nodes/PlainTextField.d.ts.map +1 -0
- package/dist/nodes/PlainTextField.js +72 -0
- package/dist/nodes/formatting.d.ts +38 -0
- package/dist/nodes/formatting.d.ts.map +1 -0
- package/dist/nodes/formatting.js +27 -0
- package/dist/nodes/link-field.css +200 -0
- package/dist/nodes/locked.d.ts +38 -0
- package/dist/nodes/locked.d.ts.map +1 -0
- package/dist/nodes/locked.js +68 -0
- package/dist/nodes/template-node.css +720 -0
- package/dist/paged.css +265 -0
- package/dist/pagination.d.ts +93 -0
- package/dist/pagination.d.ts.map +1 -0
- package/dist/pagination.js +167 -0
- package/dist/picture-context.d.ts +6 -0
- package/dist/picture-context.d.ts.map +1 -0
- package/dist/picture-context.js +14 -0
- package/dist/presentation-context.d.ts +45 -0
- package/dist/presentation-context.d.ts.map +1 -0
- package/dist/presentation-context.js +44 -0
- package/dist/presented.d.ts +16 -0
- package/dist/presented.d.ts.map +1 -0
- package/dist/presented.js +22 -0
- package/dist/rail/ContainerRail.d.ts +29 -0
- package/dist/rail/ContainerRail.d.ts.map +1 -0
- package/dist/rail/ContainerRail.js +50 -0
- package/dist/rail/EntryActions.d.ts +19 -0
- package/dist/rail/EntryActions.d.ts.map +1 -0
- package/dist/rail/EntryActions.js +17 -0
- package/dist/rail/rail-store.d.ts +42 -0
- package/dist/rail/rail-store.d.ts.map +1 -0
- package/dist/rail/rail-store.js +107 -0
- package/dist/rail/rail.css +188 -0
- package/dist/rail/useSpaceDrag.d.ts +30 -0
- package/dist/rail/useSpaceDrag.d.ts.map +1 -0
- package/dist/rail/useSpaceDrag.js +154 -0
- package/dist/registry.d.ts +35 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +74 -0
- package/dist/spacing/spacing-context.d.ts +53 -0
- package/dist/spacing/spacing-context.d.ts.map +1 -0
- package/dist/spacing/spacing-context.js +36 -0
- package/dist/spacing/spacing.css +159 -0
- package/dist/spacing/useSpaceSlot.d.ts +52 -0
- package/dist/spacing/useSpaceSlot.d.ts.map +1 -0
- package/dist/spacing/useSpaceSlot.js +38 -0
- package/dist/static/api.d.ts +13 -0
- package/dist/static/api.d.ts.map +1 -0
- package/dist/static/api.js +1 -0
- package/dist/static/static.mjs +33930 -0
- package/dist/static/templates/academic.css +1 -0
- package/dist/static/templates/alta.css +1 -0
- package/dist/static/templates/classic.css +1 -0
- package/dist/static/templates/cobalt.css +1 -0
- package/dist/static/templates/compact.css +1 -0
- package/dist/static/templates/contemporary.css +1 -0
- package/dist/static/templates/creative.css +1 -0
- package/dist/static/templates/crimson.css +1 -0
- package/dist/static/templates/curve.css +1 -0
- package/dist/static/templates/double-column-logos.css +1 -0
- package/dist/static/templates/double-column.css +1 -0
- package/dist/static/templates/elegant-logos.css +1 -0
- package/dist/static/templates/elegant.css +1 -0
- package/dist/static/templates/engineer.css +1 -0
- package/dist/static/templates/executive.css +1 -0
- package/dist/static/templates/harvard.css +1 -0
- package/dist/static/templates/hipster.css +1 -0
- package/dist/static/templates/ivy.css +1 -0
- package/dist/static/templates/meridian.css +1 -0
- package/dist/static/templates/modern.css +1 -0
- package/dist/static/templates/polished.css +1 -0
- package/dist/static/templates/portrait.css +1 -0
- package/dist/static/templates/prism.css +1 -0
- package/dist/static/templates/scholar.css +1 -0
- package/dist/static/templates/split.css +1 -0
- package/dist/static/templates/stylish.css +1 -0
- package/dist/static/templates/timeline.css +1 -0
- package/dist/static/templates.css +1 -0
- package/dist/templates/academic/AcademicDocument.d.ts +6 -0
- package/dist/templates/academic/AcademicDocument.d.ts.map +1 -0
- package/dist/templates/academic/AcademicDocument.js +29 -0
- package/dist/templates/academic/academic.css +284 -0
- package/dist/templates/academic/entries.d.ts +22 -0
- package/dist/templates/academic/entries.d.ts.map +1 -0
- package/dist/templates/academic/entries.js +17 -0
- package/dist/templates/alta/AltaDocument.d.ts +6 -0
- package/dist/templates/alta/AltaDocument.d.ts.map +1 -0
- package/dist/templates/alta/AltaDocument.js +29 -0
- package/dist/templates/alta/alta.css +413 -0
- package/dist/templates/alta/entries.d.ts +22 -0
- package/dist/templates/alta/entries.d.ts.map +1 -0
- package/dist/templates/alta/entries.js +17 -0
- package/dist/templates/classic/ClassicDocument.d.ts +6 -0
- package/dist/templates/classic/ClassicDocument.d.ts.map +1 -0
- package/dist/templates/classic/ClassicDocument.js +26 -0
- package/dist/templates/classic/classic.css +251 -0
- package/dist/templates/classic/entries.d.ts +22 -0
- package/dist/templates/classic/entries.d.ts.map +1 -0
- package/dist/templates/classic/entries.js +17 -0
- package/dist/templates/cobalt/CobaltDocument.d.ts +6 -0
- package/dist/templates/cobalt/CobaltDocument.d.ts.map +1 -0
- package/dist/templates/cobalt/CobaltDocument.js +28 -0
- package/dist/templates/cobalt/cobalt.css +478 -0
- package/dist/templates/cobalt/crest.d.ts +6 -0
- package/dist/templates/cobalt/crest.d.ts.map +1 -0
- package/dist/templates/cobalt/crest.js +8 -0
- package/dist/templates/cobalt/entries.d.ts +22 -0
- package/dist/templates/cobalt/entries.d.ts.map +1 -0
- package/dist/templates/cobalt/entries.js +17 -0
- package/dist/templates/compact/CompactDocument.d.ts +6 -0
- package/dist/templates/compact/CompactDocument.d.ts.map +1 -0
- package/dist/templates/compact/CompactDocument.js +28 -0
- package/dist/templates/compact/compact.css +240 -0
- package/dist/templates/compact/entries.d.ts +22 -0
- package/dist/templates/compact/entries.d.ts.map +1 -0
- package/dist/templates/compact/entries.js +17 -0
- package/dist/templates/contemporary/ContemporaryDocument.d.ts +6 -0
- package/dist/templates/contemporary/ContemporaryDocument.d.ts.map +1 -0
- package/dist/templates/contemporary/ContemporaryDocument.js +29 -0
- package/dist/templates/contemporary/contemporary.css +411 -0
- package/dist/templates/contemporary/entries.d.ts +22 -0
- package/dist/templates/contemporary/entries.d.ts.map +1 -0
- package/dist/templates/contemporary/entries.js +17 -0
- package/dist/templates/creative/CreativeDocument.d.ts +6 -0
- package/dist/templates/creative/CreativeDocument.d.ts.map +1 -0
- package/dist/templates/creative/CreativeDocument.js +29 -0
- package/dist/templates/creative/creative.css +326 -0
- package/dist/templates/creative/entries.d.ts +22 -0
- package/dist/templates/creative/entries.d.ts.map +1 -0
- package/dist/templates/creative/entries.js +17 -0
- package/dist/templates/crimson/CrimsonDocument.d.ts +6 -0
- package/dist/templates/crimson/CrimsonDocument.d.ts.map +1 -0
- package/dist/templates/crimson/CrimsonDocument.js +30 -0
- package/dist/templates/crimson/crimson.css +301 -0
- package/dist/templates/crimson/entries.d.ts +22 -0
- package/dist/templates/crimson/entries.d.ts.map +1 -0
- package/dist/templates/crimson/entries.js +17 -0
- package/dist/templates/curve/CurveDocument.d.ts +6 -0
- package/dist/templates/curve/CurveDocument.d.ts.map +1 -0
- package/dist/templates/curve/CurveDocument.js +29 -0
- package/dist/templates/curve/curve.css +330 -0
- package/dist/templates/curve/entries.d.ts +22 -0
- package/dist/templates/curve/entries.d.ts.map +1 -0
- package/dist/templates/curve/entries.js +17 -0
- package/dist/templates/double-column/DoubleColumnDocument.d.ts +6 -0
- package/dist/templates/double-column/DoubleColumnDocument.d.ts.map +1 -0
- package/dist/templates/double-column/DoubleColumnDocument.js +29 -0
- package/dist/templates/double-column/double-column.css +331 -0
- package/dist/templates/double-column/entries.d.ts +22 -0
- package/dist/templates/double-column/entries.d.ts.map +1 -0
- package/dist/templates/double-column/entries.js +17 -0
- package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts +6 -0
- package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts.map +1 -0
- package/dist/templates/double-column-logos/DoubleColumnLogosDocument.js +28 -0
- package/dist/templates/double-column-logos/double-column-logos.css +333 -0
- package/dist/templates/double-column-logos/entries.d.ts +22 -0
- package/dist/templates/double-column-logos/entries.d.ts.map +1 -0
- package/dist/templates/double-column-logos/entries.js +18 -0
- package/dist/templates/elegant/ElegantDocument.d.ts +6 -0
- package/dist/templates/elegant/ElegantDocument.d.ts.map +1 -0
- package/dist/templates/elegant/ElegantDocument.js +31 -0
- package/dist/templates/elegant/elegant.css +358 -0
- package/dist/templates/elegant/entries.d.ts +22 -0
- package/dist/templates/elegant/entries.d.ts.map +1 -0
- package/dist/templates/elegant/entries.js +17 -0
- package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts +6 -0
- package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts.map +1 -0
- package/dist/templates/elegant-logos/ElegantLogosDocument.js +30 -0
- package/dist/templates/elegant-logos/elegant-logos.css +370 -0
- package/dist/templates/elegant-logos/entries.d.ts +22 -0
- package/dist/templates/elegant-logos/entries.d.ts.map +1 -0
- package/dist/templates/elegant-logos/entries.js +18 -0
- package/dist/templates/engineer/EngineerDocument.d.ts +6 -0
- package/dist/templates/engineer/EngineerDocument.d.ts.map +1 -0
- package/dist/templates/engineer/EngineerDocument.js +26 -0
- package/dist/templates/engineer/engineer.css +261 -0
- package/dist/templates/engineer/entries.d.ts +22 -0
- package/dist/templates/engineer/entries.d.ts.map +1 -0
- package/dist/templates/engineer/entries.js +17 -0
- package/dist/templates/executive/ExecutiveDocument.d.ts +6 -0
- package/dist/templates/executive/ExecutiveDocument.d.ts.map +1 -0
- package/dist/templates/executive/ExecutiveDocument.js +29 -0
- package/dist/templates/executive/entries.d.ts +22 -0
- package/dist/templates/executive/entries.d.ts.map +1 -0
- package/dist/templates/executive/entries.js +17 -0
- package/dist/templates/executive/executive.css +394 -0
- package/dist/templates/harvard/HarvardDocument.d.ts +6 -0
- package/dist/templates/harvard/HarvardDocument.d.ts.map +1 -0
- package/dist/templates/harvard/HarvardDocument.js +25 -0
- package/dist/templates/harvard/entries.d.ts +28 -0
- package/dist/templates/harvard/entries.d.ts.map +1 -0
- package/dist/templates/harvard/entries.js +22 -0
- package/dist/templates/harvard/harvard.css +436 -0
- package/dist/templates/hipster/HipsterDocument.d.ts +6 -0
- package/dist/templates/hipster/HipsterDocument.d.ts.map +1 -0
- package/dist/templates/hipster/HipsterDocument.js +30 -0
- package/dist/templates/hipster/entries.d.ts +22 -0
- package/dist/templates/hipster/entries.d.ts.map +1 -0
- package/dist/templates/hipster/entries.js +17 -0
- package/dist/templates/hipster/hipster.css +442 -0
- package/dist/templates/ivy/IvyDocument.d.ts +6 -0
- package/dist/templates/ivy/IvyDocument.d.ts.map +1 -0
- package/dist/templates/ivy/IvyDocument.js +26 -0
- package/dist/templates/ivy/entries.d.ts +22 -0
- package/dist/templates/ivy/entries.d.ts.map +1 -0
- package/dist/templates/ivy/entries.js +17 -0
- package/dist/templates/ivy/ivy.css +292 -0
- package/dist/templates/meridian/MeridianDocument.d.ts +6 -0
- package/dist/templates/meridian/MeridianDocument.d.ts.map +1 -0
- package/dist/templates/meridian/MeridianDocument.js +28 -0
- package/dist/templates/meridian/entries.d.ts +22 -0
- package/dist/templates/meridian/entries.d.ts.map +1 -0
- package/dist/templates/meridian/entries.js +17 -0
- package/dist/templates/meridian/meridian.css +431 -0
- package/dist/templates/modern/ModernDocument.d.ts +6 -0
- package/dist/templates/modern/ModernDocument.d.ts.map +1 -0
- package/dist/templates/modern/ModernDocument.js +29 -0
- package/dist/templates/modern/entries.d.ts +22 -0
- package/dist/templates/modern/entries.d.ts.map +1 -0
- package/dist/templates/modern/entries.js +17 -0
- package/dist/templates/modern/modern.css +309 -0
- package/dist/templates/polished/PolishedDocument.d.ts +6 -0
- package/dist/templates/polished/PolishedDocument.d.ts.map +1 -0
- package/dist/templates/polished/PolishedDocument.js +28 -0
- package/dist/templates/polished/entries.d.ts +22 -0
- package/dist/templates/polished/entries.d.ts.map +1 -0
- package/dist/templates/polished/entries.js +17 -0
- package/dist/templates/polished/polished.css +327 -0
- package/dist/templates/portrait/PortraitDocument.d.ts +6 -0
- package/dist/templates/portrait/PortraitDocument.d.ts.map +1 -0
- package/dist/templates/portrait/PortraitDocument.js +30 -0
- package/dist/templates/portrait/entries.d.ts +22 -0
- package/dist/templates/portrait/entries.d.ts.map +1 -0
- package/dist/templates/portrait/entries.js +17 -0
- package/dist/templates/portrait/portrait.css +427 -0
- package/dist/templates/prism/PrismDocument.d.ts +6 -0
- package/dist/templates/prism/PrismDocument.d.ts.map +1 -0
- package/dist/templates/prism/PrismDocument.js +35 -0
- package/dist/templates/prism/entries.d.ts +22 -0
- package/dist/templates/prism/entries.d.ts.map +1 -0
- package/dist/templates/prism/entries.js +17 -0
- package/dist/templates/prism/prism.css +314 -0
- package/dist/templates/scholar/ScholarDocument.d.ts +6 -0
- package/dist/templates/scholar/ScholarDocument.d.ts.map +1 -0
- package/dist/templates/scholar/ScholarDocument.js +27 -0
- package/dist/templates/scholar/entries.d.ts +22 -0
- package/dist/templates/scholar/entries.d.ts.map +1 -0
- package/dist/templates/scholar/entries.js +17 -0
- package/dist/templates/scholar/scholar.css +279 -0
- package/dist/templates/skills.d.ts +19 -0
- package/dist/templates/skills.d.ts.map +1 -0
- package/dist/templates/skills.js +19 -0
- package/dist/templates/split/SplitDocument.d.ts +6 -0
- package/dist/templates/split/SplitDocument.d.ts.map +1 -0
- package/dist/templates/split/SplitDocument.js +29 -0
- package/dist/templates/split/entries.d.ts +22 -0
- package/dist/templates/split/entries.d.ts.map +1 -0
- package/dist/templates/split/entries.js +17 -0
- package/dist/templates/split/split.css +337 -0
- package/dist/templates/stylish/StylishDocument.d.ts +6 -0
- package/dist/templates/stylish/StylishDocument.d.ts.map +1 -0
- package/dist/templates/stylish/StylishDocument.js +29 -0
- package/dist/templates/stylish/entries.d.ts +22 -0
- package/dist/templates/stylish/entries.d.ts.map +1 -0
- package/dist/templates/stylish/entries.js +17 -0
- package/dist/templates/stylish/stylish.css +340 -0
- package/dist/templates/timeline/TimelineDocument.d.ts +6 -0
- package/dist/templates/timeline/TimelineDocument.d.ts.map +1 -0
- package/dist/templates/timeline/TimelineDocument.js +27 -0
- package/dist/templates/timeline/entries.d.ts +22 -0
- package/dist/templates/timeline/entries.d.ts.map +1 -0
- package/dist/templates/timeline/entries.js +17 -0
- package/dist/templates/timeline/timeline.css +295 -0
- package/dist/useFitZoom.d.ts +99 -0
- package/dist/useFitZoom.d.ts.map +1 -0
- package/dist/useFitZoom.js +171 -0
- package/package.json +81 -3
- package/src/PagedSheet.tsx +792 -0
- package/src/TemplateDocument.tsx +112 -0
- package/src/autosave-context.tsx +67 -0
- package/src/collections/AuthoredItems.tsx +199 -0
- package/src/collections/Collection.tsx +73 -0
- package/src/collections/CollectionItems.tsx +318 -0
- package/src/collections/EntryOverlay.tsx +162 -0
- package/src/collections/SortableItems.tsx +167 -0
- package/src/collections/authoring-context.tsx +140 -0
- package/src/collections/entry-text.ts +41 -0
- package/src/collections/icons.tsx +83 -0
- package/src/collections/library/LibraryAction.tsx +200 -0
- package/src/collections/library/LibraryPicker.tsx +325 -0
- package/src/collections/overlay-context.tsx +49 -0
- package/src/collections/preload.ts +23 -0
- package/src/collections/selection-context.tsx +88 -0
- package/src/collections/useCollection.ts +133 -0
- package/src/collections/useCustomEntries.ts +84 -0
- package/src/collections/useSectionCollection.ts +268 -0
- package/src/compiler/emit.ts +736 -0
- package/src/compiler/schema.ts +689 -0
- package/src/export/entry.tsx +177 -0
- package/src/fields/date-issues-context.tsx +105 -0
- package/src/fields/field-registry.tsx +358 -0
- package/src/i18n/catalog.ts +81 -0
- package/src/i18n/format.ts +50 -0
- package/src/i18n/index.ts +21 -0
- package/src/i18n/locale-context.tsx +135 -0
- package/src/index.ts +156 -0
- package/src/kit/BulletSkillGroup.tsx +37 -0
- package/src/kit/DescribedEntries.tsx +132 -0
- package/src/kit/DocumentSection.tsx +97 -0
- package/src/kit/GridSkillGroup.tsx +17 -0
- package/src/kit/Heading.tsx +17 -0
- package/src/kit/InitialsAvatar.tsx +31 -0
- package/src/kit/InitialsChip.tsx +29 -0
- package/src/kit/InlineSkillGroup.tsx +41 -0
- package/src/kit/LabelledSkillGroup.tsx +68 -0
- package/src/kit/LanguageList.tsx +148 -0
- package/src/kit/Separator.tsx +30 -0
- package/src/kit/TagSkillGroup.tsx +19 -0
- package/src/kit/contact.ts +34 -0
- package/src/kit/documentStyle.ts +80 -0
- package/src/kit/monogram.ts +11 -0
- package/src/kit/textShapes.tsx +61 -0
- package/src/letter/LetterDocument.tsx +33 -0
- package/src/nodes/AuthoredBullets.tsx +253 -0
- package/src/nodes/CustomSections.tsx +138 -0
- package/src/nodes/EditableBulletList.tsx +186 -0
- package/src/nodes/EditableInlineList.tsx +109 -0
- package/src/nodes/EditableText.tsx +261 -0
- package/src/nodes/LinkField.tsx +438 -0
- package/src/nodes/PlainTextField.tsx +132 -0
- package/src/nodes/formatting.ts +70 -0
- package/src/nodes/locked.ts +70 -0
- package/src/pagination.ts +238 -0
- package/src/picture-context.tsx +18 -0
- package/src/presentation-context.tsx +87 -0
- package/src/presented.ts +29 -0
- package/src/rail/ContainerRail.tsx +145 -0
- package/src/rail/EntryActions.tsx +104 -0
- package/src/rail/rail-store.tsx +126 -0
- package/src/rail/useSpaceDrag.ts +177 -0
- package/src/registry.ts +101 -0
- package/src/spacing/spacing-context.tsx +100 -0
- package/src/spacing/useSpaceSlot.tsx +97 -0
- package/src/static/api.ts +19 -0
- package/src/static/fixtures.ts +80 -0
- package/src/static/render.tsx +24 -0
- package/src/templates/academic/AcademicDocument.tsx +259 -0
- package/src/templates/academic/entries.tsx +176 -0
- package/src/templates/alta/AltaDocument.tsx +269 -0
- package/src/templates/alta/entries.tsx +167 -0
- package/src/templates/classic/ClassicDocument.tsx +252 -0
- package/src/templates/classic/entries.tsx +175 -0
- package/src/templates/cobalt/CobaltDocument.tsx +306 -0
- package/src/templates/cobalt/crest.tsx +31 -0
- package/src/templates/cobalt/entries.tsx +136 -0
- package/src/templates/compact/CompactDocument.tsx +260 -0
- package/src/templates/compact/entries.tsx +167 -0
- package/src/templates/contemporary/ContemporaryDocument.tsx +291 -0
- package/src/templates/contemporary/entries.tsx +167 -0
- package/src/templates/creative/CreativeDocument.tsx +273 -0
- package/src/templates/creative/entries.tsx +167 -0
- package/src/templates/crimson/CrimsonDocument.tsx +287 -0
- package/src/templates/crimson/entries.tsx +169 -0
- package/src/templates/curve/CurveDocument.tsx +263 -0
- package/src/templates/curve/entries.tsx +168 -0
- package/src/templates/double-column/DoubleColumnDocument.tsx +273 -0
- package/src/templates/double-column/entries.tsx +169 -0
- package/src/templates/double-column-logos/DoubleColumnLogosDocument.tsx +266 -0
- package/src/templates/double-column-logos/entries.tsx +172 -0
- package/src/templates/elegant/ElegantDocument.tsx +301 -0
- package/src/templates/elegant/entries.tsx +167 -0
- package/src/templates/elegant-logos/ElegantLogosDocument.tsx +295 -0
- package/src/templates/elegant-logos/entries.tsx +170 -0
- package/src/templates/engineer/EngineerDocument.tsx +252 -0
- package/src/templates/engineer/entries.tsx +170 -0
- package/src/templates/executive/ExecutiveDocument.tsx +316 -0
- package/src/templates/executive/entries.tsx +146 -0
- package/src/templates/harvard/HarvardDocument.tsx +252 -0
- package/src/templates/harvard/entries.tsx +205 -0
- package/src/templates/hipster/HipsterDocument.tsx +293 -0
- package/src/templates/hipster/entries.tsx +175 -0
- package/src/templates/ivy/IvyDocument.tsx +252 -0
- package/src/templates/ivy/entries.tsx +167 -0
- package/src/templates/meridian/MeridianDocument.tsx +308 -0
- package/src/templates/meridian/entries.tsx +140 -0
- package/src/templates/modern/ModernDocument.tsx +269 -0
- package/src/templates/modern/entries.tsx +167 -0
- package/src/templates/polished/PolishedDocument.tsx +266 -0
- package/src/templates/polished/entries.tsx +167 -0
- package/src/templates/portrait/PortraitDocument.tsx +282 -0
- package/src/templates/portrait/entries.tsx +173 -0
- package/src/templates/prism/PrismDocument.tsx +311 -0
- package/src/templates/prism/entries.tsx +175 -0
- package/src/templates/scholar/ScholarDocument.tsx +270 -0
- package/src/templates/scholar/entries.tsx +169 -0
- package/src/templates/skills.ts +21 -0
- package/src/templates/split/SplitDocument.tsx +297 -0
- package/src/templates/split/entries.tsx +164 -0
- package/src/templates/stylish/StylishDocument.tsx +269 -0
- package/src/templates/stylish/entries.tsx +167 -0
- package/src/templates/timeline/TimelineDocument.tsx +255 -0
- package/src/templates/timeline/entries.tsx +173 -0
- package/src/useFitZoom.ts +185 -0
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The Cobalt template — the single place its design is decided.
|
|
3
|
+
*
|
|
4
|
+
* Same three rules as the templates before it: no node can reach this file,
|
|
5
|
+
* paper is not a theme, and every size is one multiplier off `--c-scale` so the
|
|
6
|
+
* type relationships are the design and scaling cannot break them.
|
|
7
|
+
*
|
|
8
|
+
* The numbers are MEASURED, not estimated. Both supplied reference pages render
|
|
9
|
+
* an 8.5in page at 611px, which is one CSS pixel to one point, so every
|
|
10
|
+
* measurement taken off them is written here in points unchanged. See
|
|
11
|
+
* `design.md`, decision 7.
|
|
12
|
+
*
|
|
13
|
+
* ── The rule that governs this whole file ──────────────────────────────────
|
|
14
|
+
*
|
|
15
|
+
* NOTHING HERE IS A BACKGROUND. No `background`, and no `print-color-adjust`.
|
|
16
|
+
*
|
|
17
|
+
* That is not a stylistic preference, it is the template's ATS guarantee: every
|
|
18
|
+
* mark it makes is a glyph, a border, or a stroked outline, so the document
|
|
19
|
+
* prints complete when the browser's background graphics are disabled. Executive
|
|
20
|
+
* and Meridian both have to force a colour to print, which is a promise about a
|
|
21
|
+
* hint the browser may decline — and when it is declined, reversed type on an
|
|
22
|
+
* unpainted band does not degrade, it vanishes. `cobalt.spec.tsx` reads this
|
|
23
|
+
* file and fails if either token appears in it, so the guarantee cannot quietly
|
|
24
|
+
* stop being true when somebody adds a highlight later.
|
|
25
|
+
*
|
|
26
|
+
* Two inks and one rule colour, sampled from the reference: `--c-accent` for the
|
|
27
|
+
* crest, the name and every heading; `--c-ink` for every word of the body,
|
|
28
|
+
* including the bullet markers; `--c-rule` for the header hairline and every
|
|
29
|
+
* heading underline.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
.tpl-cob {
|
|
33
|
+
/* The heading's bottom margin, restated for the kit's first entries. */
|
|
34
|
+
--tpl-heading-gap: calc(6.5pt * var(--c-scale) * var(--c-density));
|
|
35
|
+
/*
|
|
36
|
+
* What ONE STEP of recorded space is worth here — `document-styling` (#36).
|
|
37
|
+
*
|
|
38
|
+
* This template's OWN section gap, so the same stored token is a different
|
|
39
|
+
* distance in each template — which is what the token is for. It follows
|
|
40
|
+
* the type scale and the density for the same reason the gap it is measured
|
|
41
|
+
* against does.
|
|
42
|
+
*/
|
|
43
|
+
--tpl-space-unit: calc(3.3pt * var(--c-scale) * var(--c-density));
|
|
44
|
+
/* This template's own side margin — see `spacing.css`. */
|
|
45
|
+
--tpl-space-margin: var(--c-margin);
|
|
46
|
+
|
|
47
|
+
--c-scale: 1;
|
|
48
|
+
/* The template's own rhythm. `document-styling` (#36) writes a multiplier
|
|
49
|
+
here; absent means what the reference measures. */
|
|
50
|
+
--c-density: 1;
|
|
51
|
+
|
|
52
|
+
--c-accent: #1f58bc;
|
|
53
|
+
/*
|
|
54
|
+
* TRUE BLACK, because this is a document rather than a screen.
|
|
55
|
+
*
|
|
56
|
+
* It was #111111 — 93% black, the near-black a UI uses to take the harshness
|
|
57
|
+
* off a large light surface. A résumé is not that surface: it is printed, it
|
|
58
|
+
* is scanned by an ATS, and it is read beside other résumés that ARE set in
|
|
59
|
+
* black. Measured against a candidate's own PDF, the difference reads as a
|
|
60
|
+
* washed-out page rather than as a softer one.
|
|
61
|
+
*
|
|
62
|
+
* Safe to state absolutely here: this token colours TEXT and nothing else —
|
|
63
|
+
* one `color` declaration in this file. `meridian` deliberately keeps its
|
|
64
|
+
* near-black, because there the same token also FILLS a band, and pure black
|
|
65
|
+
* behind white text is a redesign of that template rather than a fidelity fix.
|
|
66
|
+
*/
|
|
67
|
+
--c-ink: #000000;
|
|
68
|
+
/* Light on purpose — the reference's own value. The rules separate sections
|
|
69
|
+
that an accent-coloured heading already separates, so nothing is lost if a
|
|
70
|
+
printer drops them. See `design.md`, risks. */
|
|
71
|
+
--c-rule: #e9e9e9;
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
* The DEFAULT body face, and it must name the supplied one first.
|
|
75
|
+
*
|
|
76
|
+
* A résumé whose owner never opened the typeface control has no `font` in its
|
|
77
|
+
* stored style, so nothing sets this variable inline and this literal is what
|
|
78
|
+
* draws the document. While it named only system families, the default
|
|
79
|
+
* document was drawn in whatever the reader's machine had — Helvetica Neue on
|
|
80
|
+
* macOS, Liberation Sans in the render container — so the screen and the
|
|
81
|
+
* exported file disagreed for every résumé that had not chosen a typeface,
|
|
82
|
+
* which is most of them. Same stack as `DOCUMENT_FONTS.helvetica`, so the
|
|
83
|
+
* default and an explicit "Helvetica" are the same document.
|
|
84
|
+
*/
|
|
85
|
+
--c-font:
|
|
86
|
+
'TeX Gyre Heros', 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans',
|
|
87
|
+
sans-serif;
|
|
88
|
+
|
|
89
|
+
/*
|
|
90
|
+
* The display face is the TEMPLATE's, not the candidate's — the serif crest,
|
|
91
|
+
* name and headings over a sans body are what make this template this
|
|
92
|
+
* template, and setting them in Calibri does not produce a differently-fonted
|
|
93
|
+
* Cobalt but a different design. A system stack, from the same family of
|
|
94
|
+
* choices as `DOCUMENT_FONTS`: nothing to download, nothing that extracts
|
|
95
|
+
* badly. See `design.md`, decision 4.
|
|
96
|
+
*
|
|
97
|
+
* NARROW on purpose, and Georgia is deliberately not in it. The reference
|
|
98
|
+
* sets "Professional Summary" 148pt wide at an 11pt cap — a width-per-cap of
|
|
99
|
+
* 13.45, narrower than any face a system stack can reach. Georgia is 16.97
|
|
100
|
+
* and overruns the 160pt rail by 27pt, which the first render did: the
|
|
101
|
+
* heading wrapped to two lines and took the whole rail's rhythm with it.
|
|
102
|
+
* Cambria (14.32) is the closest available and Times (14.61) is the fallback
|
|
103
|
+
* everywhere it is missing, so the heading fits the rail on every machine.
|
|
104
|
+
* See `design.md`, decision 4.
|
|
105
|
+
*/
|
|
106
|
+
--c-display: Cambria, 'Times New Roman', Times, serif;
|
|
107
|
+
|
|
108
|
+
--c-margin: calc(50pt * var(--c-scale));
|
|
109
|
+
--c-body: calc(9pt * var(--c-scale));
|
|
110
|
+
--c-lead: calc(14pt * var(--c-scale) * var(--c-density));
|
|
111
|
+
|
|
112
|
+
box-sizing: border-box;
|
|
113
|
+
width: 8.5in;
|
|
114
|
+
/*
|
|
115
|
+
* 50pt at the sides, measured. 36pt top and bottom, which is NOT the
|
|
116
|
+
* reference's — the supplied images are scroll captures with no visible page
|
|
117
|
+
* boundary, so the top margin cannot be read off them, and 36pt is the
|
|
118
|
+
* `PAGE_MARGIN` every template shares with the paginator. Unscaled, because
|
|
119
|
+
* the paginator places pushed content on later sheets at exactly that offset:
|
|
120
|
+
* a vertical margin of our own would give page 2 a different top margin from
|
|
121
|
+
* page 1. The asymmetry is deliberate — see `design.md`, decision 7.
|
|
122
|
+
*/
|
|
123
|
+
padding: 36pt var(--c-margin);
|
|
124
|
+
margin: 0 auto;
|
|
125
|
+
color: var(--c-ink);
|
|
126
|
+
font-family: var(--c-font);
|
|
127
|
+
font-size: var(--c-body);
|
|
128
|
+
line-height: var(--c-lead);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.tpl-cob *,
|
|
132
|
+
.tpl-cob *::before,
|
|
133
|
+
.tpl-cob *::after {
|
|
134
|
+
box-sizing: inherit;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.tpl-cob [data-ink] {
|
|
138
|
+
color: var(--f-ink);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.tpl-cob .is-bold {
|
|
142
|
+
font-weight: 700;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.tpl-cob .tpl-text.is-left,
|
|
146
|
+
.tpl-cob .tpl-text.is-center,
|
|
147
|
+
.tpl-cob .tpl-text.is-right {
|
|
148
|
+
display: block;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.tpl-cob .tpl-text.is-left.tpl-grow,
|
|
152
|
+
.tpl-cob .tpl-text.is-center.tpl-grow,
|
|
153
|
+
.tpl-cob .tpl-text.is-right.tpl-grow {
|
|
154
|
+
display: grid;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.tpl-cob .is-left {
|
|
158
|
+
text-align: left;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.tpl-cob .is-center {
|
|
162
|
+
text-align: center;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.tpl-cob .is-right {
|
|
166
|
+
text-align: right;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* ── Header: crest, name, contact ───────────────────────────────────────── */
|
|
170
|
+
|
|
171
|
+
/*
|
|
172
|
+
* Three columns: the crest at its measured size, the name taking the slack, and
|
|
173
|
+
* the contact block flush to the right margin. Centred against each other,
|
|
174
|
+
* because the reference centres them — the crest spans 26–118, the name 39–98
|
|
175
|
+
* and the contact 41–90, all about the same middle.
|
|
176
|
+
*
|
|
177
|
+
* Closed by a 2pt hairline across the full 512pt text width, 26pt below the
|
|
178
|
+
* crest. A border, not a drawn strip: it prints as ink.
|
|
179
|
+
*/
|
|
180
|
+
.tpl-cob__head {
|
|
181
|
+
display: grid;
|
|
182
|
+
grid-template-columns: auto 1fr auto;
|
|
183
|
+
column-gap: calc(16pt * var(--c-scale));
|
|
184
|
+
align-items: center;
|
|
185
|
+
padding-bottom: calc(25pt * var(--c-scale) * var(--c-density));
|
|
186
|
+
border-bottom: 2pt solid var(--c-rule);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/*
|
|
190
|
+
* A regular hexagon, flat top and bottom, 107 × 93pt — the reference's left and
|
|
191
|
+
* right vertices are 107pt apart and its top edge runs 53pt, which is a regular
|
|
192
|
+
* hexagon to within a point.
|
|
193
|
+
*/
|
|
194
|
+
.tpl-cob__crest {
|
|
195
|
+
position: relative;
|
|
196
|
+
flex: none;
|
|
197
|
+
width: calc(107pt * var(--c-scale));
|
|
198
|
+
height: calc(93pt * var(--c-scale));
|
|
199
|
+
/* The polygon strokes `currentColor`, so the outline follows the accent
|
|
200
|
+
without the SVG having to know what the accent is. */
|
|
201
|
+
color: var(--c-accent);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.tpl-cob__crest-shape {
|
|
205
|
+
position: absolute;
|
|
206
|
+
inset: 0;
|
|
207
|
+
width: 100%;
|
|
208
|
+
height: 100%;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/*
|
|
212
|
+
* Real text over the outline, centred on it.
|
|
213
|
+
*
|
|
214
|
+
* The SAME size as the name, which is a measurement rather than a guess: the
|
|
215
|
+
* reference's initials stand 25pt from cap to baseline (y 59–83) and so does
|
|
216
|
+
* its name (y 39–64). Regular weight, not the name's bold — the reference draws
|
|
217
|
+
* them in thin strokes, so they recede behind the name the crest sits beside
|
|
218
|
+
* rather than competing with it.
|
|
219
|
+
*/
|
|
220
|
+
.tpl-cob__initials {
|
|
221
|
+
position: absolute;
|
|
222
|
+
inset: 0;
|
|
223
|
+
display: grid;
|
|
224
|
+
place-items: center;
|
|
225
|
+
margin: 0;
|
|
226
|
+
font-family: var(--c-display);
|
|
227
|
+
font-size: calc(37pt * var(--c-scale));
|
|
228
|
+
font-weight: 400;
|
|
229
|
+
line-height: 1;
|
|
230
|
+
letter-spacing: 0.02em;
|
|
231
|
+
color: var(--c-accent);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* Cap height 25pt over a 34pt line, measured — the two-line break is the
|
|
235
|
+
name wrapping in the space the crest and the contact block leave it, not a
|
|
236
|
+
break written into the markup. */
|
|
237
|
+
.tpl-cob__name {
|
|
238
|
+
margin: 0;
|
|
239
|
+
font-family: var(--c-display);
|
|
240
|
+
font-size: calc(36pt * var(--c-scale));
|
|
241
|
+
font-weight: 700;
|
|
242
|
+
line-height: calc(34pt * var(--c-scale));
|
|
243
|
+
color: var(--c-accent);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.tpl-cob__contact {
|
|
247
|
+
font-size: calc(10pt * var(--c-scale));
|
|
248
|
+
line-height: calc(20pt * var(--c-scale) * var(--c-density));
|
|
249
|
+
text-align: right;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.tpl-cob__contact-item {
|
|
253
|
+
margin: 0;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/* ── Body: two columns, rail first, no divider ──────────────────────────── */
|
|
257
|
+
|
|
258
|
+
/*
|
|
259
|
+
* 160pt of rail, a 40pt gutter, 312pt of main — 512pt in all, measured. The
|
|
260
|
+
* `fr` units resolve to exactly those widths once the gutter is taken out.
|
|
261
|
+
*
|
|
262
|
+
* The rail is FIRST because it is drawn first. Nothing here reorders the grid,
|
|
263
|
+
* and nothing may: document order is the page's order, which is the template's
|
|
264
|
+
* ATS guarantee (`design.md`, decision 1).
|
|
265
|
+
*
|
|
266
|
+
* No divider. The reference draws none, and adding one "for balance" would be
|
|
267
|
+
* inventing a mark it does not make.
|
|
268
|
+
*/
|
|
269
|
+
.tpl-cob__body {
|
|
270
|
+
display: grid;
|
|
271
|
+
grid-template-columns: 160fr 312fr;
|
|
272
|
+
column-gap: calc(40pt * var(--c-scale));
|
|
273
|
+
padding-top: calc(22pt * var(--c-scale) * var(--c-density));
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.tpl-cob__rail,
|
|
277
|
+
.tpl-cob__main {
|
|
278
|
+
min-width: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/* Against the page's right edge, so its rails stand in the right margin. */
|
|
282
|
+
.tpl-cob__main {
|
|
283
|
+
--tpl-rail-right: auto;
|
|
284
|
+
--tpl-rail-left: calc(100% + var(--tpl-space-margin) + 12px);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* ── Sections ───────────────────────────────────────────────────────────── */
|
|
288
|
+
|
|
289
|
+
.tpl-cob__section {
|
|
290
|
+
margin-top: var(--tpl-space-height, 0px);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.tpl-cob__section + .tpl-cob__section {
|
|
294
|
+
margin-top: calc(
|
|
295
|
+
16.5pt * var(--c-scale) * var(--c-density) + var(--tpl-space-height, 0px)
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/*
|
|
300
|
+
* The heading and its rule are one element: the rule is the heading's own
|
|
301
|
+
* `border-bottom`, so it spans that heading's column and can never be drawn
|
|
302
|
+
* without a heading to sit under — or at a width the column does not have.
|
|
303
|
+
*/
|
|
304
|
+
.tpl-cob__heading {
|
|
305
|
+
margin: 0 0 calc(6.5pt * var(--c-scale) * var(--c-density));
|
|
306
|
+
padding-bottom: calc(3.5pt * var(--c-scale));
|
|
307
|
+
font-family: var(--c-display);
|
|
308
|
+
font-size: calc(15.5pt * var(--c-scale));
|
|
309
|
+
font-weight: 700;
|
|
310
|
+
line-height: 1.1;
|
|
311
|
+
color: var(--c-accent);
|
|
312
|
+
border-bottom: 2pt solid var(--c-rule);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* Ragged right, measured — the reference's summary lines end at 206, 203, 199,
|
|
316
|
+
163, 198, so it is not justified. */
|
|
317
|
+
.tpl-cob__prose {
|
|
318
|
+
margin: 0;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/* ── Entries ────────────────────────────────────────────────────────────── */
|
|
322
|
+
|
|
323
|
+
.tpl-cob__entry {
|
|
324
|
+
/* The heading's own margin, restated: the two collapse, so the gap is added
|
|
325
|
+
to it rather than lost inside it. */
|
|
326
|
+
margin-top: calc(
|
|
327
|
+
6.5pt * var(--c-scale) * var(--c-density) + var(--tpl-space-height, 0px)
|
|
328
|
+
);
|
|
329
|
+
break-inside: avoid;
|
|
330
|
+
|
|
331
|
+
/*
|
|
332
|
+
* Both columns carry entries — education in the rail, experience in the main
|
|
333
|
+
* — so two rings face each other across the 40pt gutter and this has to cover
|
|
334
|
+
* the PAIR, not one of them. Every ring is the same size now, so it is simply
|
|
335
|
+
* doubled: 36px, inside the ~45px the gutter comes to at the smallest scale.
|
|
336
|
+
*/
|
|
337
|
+
--tpl-ring-room: 18px;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.tpl-cob__entry + .tpl-cob__entry {
|
|
341
|
+
margin-top: calc(
|
|
342
|
+
16pt * var(--c-scale) * var(--c-density) + var(--tpl-space-height, 0px)
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.tpl-cob__entry-lead,
|
|
347
|
+
.tpl-cob__entry-org,
|
|
348
|
+
.tpl-cob__entry-where,
|
|
349
|
+
.tpl-cob__entry-when,
|
|
350
|
+
.tpl-cob__entry-meta {
|
|
351
|
+
margin: 0;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/* The employer, and the degree, are the one bold thing in an entry. */
|
|
355
|
+
.tpl-cob__entry-lead {
|
|
356
|
+
font-weight: 700;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/* The whole meta line slopes — the role AND the dates, as in the reference. */
|
|
360
|
+
.tpl-cob__entry-meta {
|
|
361
|
+
font-style: italic;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/*
|
|
365
|
+
* The dates are set apart by a constant 25pt, measured across every entry on
|
|
366
|
+
* the reference's first page, and they are NOT flush to the right margin — one
|
|
367
|
+
* entry's ended at 503pt in a column that ends at 568pt. An inline margin, so
|
|
368
|
+
* that a line too full to hold them carries the gap onto the next line with
|
|
369
|
+
* them, which is what the reference's own wrapped entry does.
|
|
370
|
+
*/
|
|
371
|
+
.tpl-cob__dates {
|
|
372
|
+
margin-left: calc(25pt * var(--c-scale));
|
|
373
|
+
white-space: nowrap;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/* ── Bullets ────────────────────────────────────────────────────────────── */
|
|
377
|
+
|
|
378
|
+
.tpl-cob .tpl-bullets {
|
|
379
|
+
margin: 0;
|
|
380
|
+
padding: 0;
|
|
381
|
+
list-style: none;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/* Under an entry's meta line, measured at a 17pt step against the 14pt line. */
|
|
385
|
+
.tpl-cob__entry .tpl-bullets {
|
|
386
|
+
margin-top: calc(3pt * var(--c-scale) * var(--c-density));
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.tpl-cob .tpl-bullet {
|
|
390
|
+
/*
|
|
391
|
+
* The marker column, named so the drag handle can sit centred in it.
|
|
392
|
+
*
|
|
393
|
+
* `template-node.css` draws the handle for every template and cannot know how
|
|
394
|
+
* wide this one's gutter is — so the stylesheet that DECIDES the width is the
|
|
395
|
+
* one that states it. Repeating the value would be two places to disagree,
|
|
396
|
+
* which is why it is the same expression rather than a rounded copy.
|
|
397
|
+
*/
|
|
398
|
+
--tpl-marker: calc(12pt * var(--c-scale));
|
|
399
|
+
|
|
400
|
+
/* Hanging indent, as in every template: a wrapped line aligns with the text
|
|
401
|
+
above it, not under the marker. 12pt to the text, 2pt to the marker. */
|
|
402
|
+
display: grid;
|
|
403
|
+
grid-template-columns: calc(12pt * var(--c-scale)) 1fr;
|
|
404
|
+
break-inside: avoid;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
/*
|
|
408
|
+
* Nothing between two bullets. Measured: the reference's bullets run at the
|
|
409
|
+
* same 14pt pitch as a wrapped line, so a three-line bullet and three
|
|
410
|
+
* one-line bullets occupy identical space. That is the density the page is
|
|
411
|
+
* designed at, not an oversight.
|
|
412
|
+
*/
|
|
413
|
+
.tpl-cob .tpl-bullet::before {
|
|
414
|
+
content: '•';
|
|
415
|
+
line-height: inherit;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/* ── Links ──────────────────────────────────────────────────────────────── */
|
|
419
|
+
|
|
420
|
+
.tpl-cob__links {
|
|
421
|
+
margin: 0;
|
|
422
|
+
padding: 0;
|
|
423
|
+
list-style: none;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.tpl-cob__link {
|
|
427
|
+
display: grid;
|
|
428
|
+
grid-template-columns: calc(12pt * var(--c-scale)) 1fr;
|
|
429
|
+
/* A URL has no spaces to break at. */
|
|
430
|
+
overflow-wrap: anywhere;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.tpl-cob__link::before {
|
|
434
|
+
content: '•';
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
@page {
|
|
438
|
+
size: letter;
|
|
439
|
+
margin: 0;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/*
|
|
443
|
+
* No `print-color-adjust` here, and that omission is the template's guarantee
|
|
444
|
+
* rather than an oversight: there is no background to force. See the file
|
|
445
|
+
* header.
|
|
446
|
+
*/
|
|
447
|
+
@media print {
|
|
448
|
+
.tpl-cob {
|
|
449
|
+
width: auto;
|
|
450
|
+
margin: 0;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/*
|
|
455
|
+
* The supporting sections — achievements, courses, passions, languages.
|
|
456
|
+
*
|
|
457
|
+
* The SHAPE is `kit/described.css` and `kit/language.css`; this block is only
|
|
458
|
+
* this template's painting of it, which is the division the contract asks for.
|
|
459
|
+
* Each value is the one already used by the sections beside them, so the four
|
|
460
|
+
* arrive looking like they were always here.
|
|
461
|
+
*/
|
|
462
|
+
.tpl-cob {
|
|
463
|
+
--tpl-described-gap: calc(7pt * var(--c-scale));
|
|
464
|
+
--tpl-described-lead: calc(1.5pt * var(--c-scale));
|
|
465
|
+
--tpl-described-title-ink: var(--c-accent);
|
|
466
|
+
--tpl-described-span: calc(14pt * var(--c-scale));
|
|
467
|
+
--tpl-language-gap: calc(6pt * var(--c-scale));
|
|
468
|
+
--tpl-language-lead: calc(4pt * var(--c-scale));
|
|
469
|
+
--tpl-language-step: calc(4pt * var(--c-scale));
|
|
470
|
+
--tpl-language-meter-ink: var(--c-accent);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* One repeated mark, never one per entry: nothing in the résumé says which
|
|
474
|
+
glyph an achievement deserves. */
|
|
475
|
+
.tpl-cob .tpl-described--marked {
|
|
476
|
+
--tpl-described-mark: '\25C6';
|
|
477
|
+
--tpl-described-mark-gap: calc(4pt * var(--c-scale));
|
|
478
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ResumeObject } from '@resumekit/schema';
|
|
2
|
+
/** Cobalt's crest: the candidate's initials inside a hexagon. */
|
|
3
|
+
export declare function CobaltCrest({ resume }: {
|
|
4
|
+
resume: ResumeObject;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=crest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crest.d.ts","sourceRoot":"","sources":["../../../src/templates/cobalt/crest.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOtD,iEAAiE;AACjE,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,YAAY,CAAA;CAAE,+BAsB/D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { monogram } from '../../kit/monogram.js';
|
|
3
|
+
/* Drawn, not CSS: a clip-path would clip the stroke. */
|
|
4
|
+
const CREST_POLYGON = '27.18,0.92 79.82,0.92 106.13,46.5 79.82,92.08 27.18,92.08 0.87,46.5';
|
|
5
|
+
/** Cobalt's crest: the candidate's initials inside a hexagon. */
|
|
6
|
+
export function CobaltCrest({ resume }) {
|
|
7
|
+
return (_jsxs("div", { className: "tpl-cob__crest", children: [_jsx("svg", { className: "tpl-cob__crest-shape", viewBox: "0 0 107 93", "aria-hidden": "true", focusable: "false", children: _jsx("polygon", { points: CREST_POLYGON, fill: "none", stroke: "currentColor", strokeWidth: "1.5" }) }), _jsx("p", { className: "tpl-cob__initials", "aria-hidden": "true", children: monogram(resume.name) })] }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ItemRootProps } from '../../collections/CollectionItems.js';
|
|
3
|
+
import { type CustomEntry, type Education, type Experience } from '@resumekit/schema';
|
|
4
|
+
export declare function CobaltExperienceEntry({ item, path, chrome, itemProps, }: {
|
|
5
|
+
item: Experience;
|
|
6
|
+
path: string;
|
|
7
|
+
chrome: ReactNode;
|
|
8
|
+
itemProps: ItemRootProps;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
export declare function CobaltEducationEntry({ item, path, chrome, itemProps, }: {
|
|
11
|
+
item: Education;
|
|
12
|
+
path: string;
|
|
13
|
+
chrome: ReactNode;
|
|
14
|
+
itemProps: ItemRootProps;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
export declare function CobaltCustomEntry({ item, path, chrome, itemProps, }: {
|
|
17
|
+
item: CustomEntry;
|
|
18
|
+
path: string;
|
|
19
|
+
chrome: ReactNode;
|
|
20
|
+
itemProps: ItemRootProps;
|
|
21
|
+
}): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=entries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../../src/templates/cobalt/entries.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,mBAAmB,CAAC;AAM3B,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,SAAS,GACV,EAAE;IACD,IAAI,EAAE,UAAU,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,aAAa,CAAC;CAC1B,+BA2BA;AAED,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,SAAS,GACV,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,aAAa,CAAC;CAC1B,+BAiCA;AAED,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,SAAS,GACV,EAAE;IACD,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,CAAC;IAClB,SAAS,EAAE,aAAa,CAAC;CAC1B,+BAwBA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { EditableText } from '../../nodes/EditableText.js';
|
|
3
|
+
import { EditableBulletList } from '../../nodes/EditableBulletList.js';
|
|
4
|
+
import { useEditorText } from '../../i18n/index.js';
|
|
5
|
+
import { Separator } from '../../kit/Separator.js';
|
|
6
|
+
export function CobaltExperienceEntry({ item, path, chrome, itemProps, }) {
|
|
7
|
+
const { placeholder } = useEditorText();
|
|
8
|
+
return (_jsxs("article", { ...itemProps, className: "tpl-cob__entry", "data-block": true, children: [chrome, _jsx("p", { className: "tpl-cob__entry-lead", children: _jsx(EditableText, { path: `${path}.company`, value: item.company }) }), _jsxs("p", { className: "tpl-cob__entry-meta", children: [_jsx("em", { className: "tpl-cob__role", children: _jsx(EditableText, { path: `${path}.title`, value: item.title }) }), _jsx(Separator, { between: [item.title, item.location], text: " | " }), _jsx(EditableText, { path: `${path}.location`, value: item.location ?? '', placeholder: placeholder('location') }), _jsxs("span", { className: "tpl-cob__dates", children: [_jsx(EditableText, { path: `${path}.start`, value: item.start }), ' - ', _jsx(EditableText, { path: `${path}.end`, value: item.end })] })] }), _jsx(EditableBulletList, { path: `${path}.bullets`, items: item.bullets })] }));
|
|
9
|
+
}
|
|
10
|
+
export function CobaltEducationEntry({ item, path, chrome, itemProps, }) {
|
|
11
|
+
const { placeholder } = useEditorText();
|
|
12
|
+
return (_jsxs("article", { ...itemProps, className: "tpl-cob__entry", "data-block": true, children: [chrome, _jsx("p", { className: "tpl-cob__entry-lead", children: _jsx(EditableText, { path: `${path}.degree`, value: item.degree ?? '', placeholder: placeholder('degree') }) }), _jsx("p", { className: "tpl-cob__entry-org", children: _jsx(EditableText, { path: `${path}.school`, value: item.school }) }), _jsx("p", { className: "tpl-cob__entry-where", children: _jsx(EditableText, { path: `${path}.location`, value: item.location ?? '', placeholder: placeholder('location') }) }), (item.field || item.end) && (_jsxs("p", { className: "tpl-cob__entry-when", children: [item.field && (_jsx(EditableText, { path: `${path}.field`, value: item.field })), item.field && item.end && ', ', item.end && _jsx(EditableText, { path: `${path}.end`, value: item.end })] }))] }));
|
|
13
|
+
}
|
|
14
|
+
export function CobaltCustomEntry({ item, path, chrome, itemProps, }) {
|
|
15
|
+
const { placeholder } = useEditorText();
|
|
16
|
+
return (_jsxs("article", { ...itemProps, className: "tpl-cob__entry", "data-block": true, children: [chrome, _jsx("p", { className: "tpl-cob__entry-lead", children: _jsx(EditableText, { path: `${path}.title`, value: item.title, placeholder: placeholder('heading') }) }), _jsx("p", { className: "tpl-cob__entry-meta", children: _jsx("em", { className: "tpl-cob__role", children: _jsx(EditableText, { path: `${path}.detail`, value: item.detail ?? '', placeholder: placeholder('detail') }) }) }), _jsx(EditableBulletList, { path: `${path}.bullets`, items: item.bullets })] }));
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ResumeObject } from '@resumekit/schema';
|
|
2
|
+
export interface CompactDocumentProps {
|
|
3
|
+
resume: ResumeObject;
|
|
4
|
+
}
|
|
5
|
+
export declare function CompactDocument({ resume }: CompactDocumentProps): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=CompactDocument.d.ts.map
|
|
@@ -0,0 +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;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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useDocumentStyle } from '../../presentation-context.js';
|
|
3
|
+
import { useAuthoring } from '../../collections/authoring-context.js';
|
|
4
|
+
import { EditableText } from '../../nodes/EditableText.js';
|
|
5
|
+
import { EditableBulletList } from '../../nodes/EditableBulletList.js';
|
|
6
|
+
import { CustomSections } from '../../nodes/CustomSections.js';
|
|
7
|
+
import { Collection } from '../../collections/Collection.js';
|
|
8
|
+
import { DocumentSection } from '../../kit/DocumentSection.js';
|
|
9
|
+
import { DescribedEntries } from '../../kit/DescribedEntries.js';
|
|
10
|
+
import { LanguageList } from '../../kit/LanguageList.js';
|
|
11
|
+
import { BulletSkillGroup } from '../../kit/BulletSkillGroup.js';
|
|
12
|
+
import { useContactLines } from '../../kit/contact.js';
|
|
13
|
+
import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
|
|
14
|
+
import { Heading } from '../../kit/Heading.js';
|
|
15
|
+
import { LinkField } from '../../nodes/LinkField.js';
|
|
16
|
+
import { CompactCustomEntry, CompactEducationEntry, CompactExperienceEntry, } from './entries.js';
|
|
17
|
+
import '../../kit/layout.css';
|
|
18
|
+
import '../../kit/contact-icons.css';
|
|
19
|
+
import './compact.css';
|
|
20
|
+
import { useEditorText, useDocumentText } from '../../i18n/index.js';
|
|
21
|
+
export function CompactDocument({ resume }) {
|
|
22
|
+
const { placeholder } = useEditorText();
|
|
23
|
+
const doc = useDocumentText();
|
|
24
|
+
const style = useDocumentStyle();
|
|
25
|
+
const authoring = useAuthoring() !== null;
|
|
26
|
+
const contact = useContactLines(resume.contact, ['phone', 'email', 'location'], authoring);
|
|
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
|
+
}
|