@resumekit/react 0.0.0-stage → 0.1.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 +185 -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 +12 -0
- package/dist/kit/documentStyle.d.ts.map +1 -0
- package/dist/kit/documentStyle.js +24 -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/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 +34 -0
- package/dist/nodes/formatting.d.ts.map +1 -0
- package/dist/nodes/formatting.js +24 -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 +65 -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 +33779 -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 +33 -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 +58 -0
- package/src/nodes/locked.ts +67 -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 +255 -0
- package/src/templates/academic/entries.tsx +176 -0
- package/src/templates/alta/AltaDocument.tsx +265 -0
- package/src/templates/alta/entries.tsx +167 -0
- package/src/templates/classic/ClassicDocument.tsx +248 -0
- package/src/templates/classic/entries.tsx +175 -0
- package/src/templates/cobalt/CobaltDocument.tsx +302 -0
- package/src/templates/cobalt/crest.tsx +31 -0
- package/src/templates/cobalt/entries.tsx +136 -0
- package/src/templates/compact/CompactDocument.tsx +256 -0
- package/src/templates/compact/entries.tsx +167 -0
- package/src/templates/contemporary/ContemporaryDocument.tsx +287 -0
- package/src/templates/contemporary/entries.tsx +167 -0
- package/src/templates/creative/CreativeDocument.tsx +269 -0
- package/src/templates/creative/entries.tsx +167 -0
- package/src/templates/crimson/CrimsonDocument.tsx +283 -0
- package/src/templates/crimson/entries.tsx +169 -0
- package/src/templates/curve/CurveDocument.tsx +259 -0
- package/src/templates/curve/entries.tsx +168 -0
- package/src/templates/double-column/DoubleColumnDocument.tsx +269 -0
- package/src/templates/double-column/entries.tsx +169 -0
- package/src/templates/double-column-logos/DoubleColumnLogosDocument.tsx +262 -0
- package/src/templates/double-column-logos/entries.tsx +172 -0
- package/src/templates/elegant/ElegantDocument.tsx +297 -0
- package/src/templates/elegant/entries.tsx +167 -0
- package/src/templates/elegant-logos/ElegantLogosDocument.tsx +291 -0
- package/src/templates/elegant-logos/entries.tsx +170 -0
- package/src/templates/engineer/EngineerDocument.tsx +248 -0
- package/src/templates/engineer/entries.tsx +170 -0
- package/src/templates/executive/ExecutiveDocument.tsx +312 -0
- package/src/templates/executive/entries.tsx +146 -0
- package/src/templates/harvard/HarvardDocument.tsx +248 -0
- package/src/templates/harvard/entries.tsx +205 -0
- package/src/templates/hipster/HipsterDocument.tsx +289 -0
- package/src/templates/hipster/entries.tsx +175 -0
- package/src/templates/ivy/IvyDocument.tsx +248 -0
- package/src/templates/ivy/entries.tsx +167 -0
- package/src/templates/meridian/MeridianDocument.tsx +304 -0
- package/src/templates/meridian/entries.tsx +140 -0
- package/src/templates/modern/ModernDocument.tsx +265 -0
- package/src/templates/modern/entries.tsx +167 -0
- package/src/templates/polished/PolishedDocument.tsx +262 -0
- package/src/templates/polished/entries.tsx +167 -0
- package/src/templates/portrait/PortraitDocument.tsx +278 -0
- package/src/templates/portrait/entries.tsx +173 -0
- package/src/templates/prism/PrismDocument.tsx +307 -0
- package/src/templates/prism/entries.tsx +175 -0
- package/src/templates/scholar/ScholarDocument.tsx +266 -0
- package/src/templates/scholar/entries.tsx +169 -0
- package/src/templates/skills.ts +21 -0
- package/src/templates/split/SplitDocument.tsx +293 -0
- package/src/templates/split/entries.tsx +164 -0
- package/src/templates/stylish/StylishDocument.tsx +265 -0
- package/src/templates/stylish/entries.tsx +167 -0
- package/src/templates/timeline/TimelineDocument.tsx +251 -0
- package/src/templates/timeline/entries.tsx +173 -0
- package/src/useFitZoom.ts +185 -0
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The Contemporary template: a light name over a headline set in a green pill,
|
|
3
|
+
* the candidate's initials on a soft green ground where the reference shows a
|
|
4
|
+
* portrait, and two columns whose headings each carry a small tinted badge.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.tpl-contemporary {
|
|
8
|
+
/* The heading's bottom margin, restated for the kit's first entries. */
|
|
9
|
+
--tpl-heading-gap: calc(8pt * var(--cn-scale));
|
|
10
|
+
--tpl-space-unit: calc(2.2pt * var(--cn-scale) * var(--cn-density));
|
|
11
|
+
--tpl-space-margin: var(--cn-margin);
|
|
12
|
+
--tpl-marker: calc(8pt * var(--cn-scale));
|
|
13
|
+
--tpl-avatar-size: calc(104pt * var(--cn-scale));
|
|
14
|
+
--tpl-avatar-text: calc(26pt * var(--cn-scale));
|
|
15
|
+
|
|
16
|
+
--cn-scale: 1;
|
|
17
|
+
--cn-ink: #2b5944;
|
|
18
|
+
--cn-font:
|
|
19
|
+
'Carlito', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
|
|
20
|
+
--cn-accent: #3aa86b;
|
|
21
|
+
--cn-density: 1;
|
|
22
|
+
--cn-margin: 0.5in;
|
|
23
|
+
--cn-strong: #2c3331;
|
|
24
|
+
--cn-body: #555d5a;
|
|
25
|
+
--cn-muted: #6c7471;
|
|
26
|
+
--cn-line: #d6ded9;
|
|
27
|
+
--cn-tint: #9bdab3;
|
|
28
|
+
--cn-wash: #d4efdf;
|
|
29
|
+
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
width: 8.5in;
|
|
32
|
+
padding: 0.5in var(--cn-margin);
|
|
33
|
+
margin: 0 auto;
|
|
34
|
+
background: #ffffff;
|
|
35
|
+
color: var(--cn-body);
|
|
36
|
+
font-family: var(--cn-font);
|
|
37
|
+
font-size: calc(8.8pt * var(--cn-scale));
|
|
38
|
+
line-height: 1.4;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* ── Header ─────────────────────────────────────────────────────────────── */
|
|
42
|
+
|
|
43
|
+
/*
|
|
44
|
+
* The header shares the body's columns: the initials stand over the rail and
|
|
45
|
+
* the name over the main column. The initials hang below the header by the
|
|
46
|
+
* height the rail then gives back, so the main column starts under the
|
|
47
|
+
* headline while the rail starts under the portrait, as in the reference.
|
|
48
|
+
*/
|
|
49
|
+
.tpl-contemporary__head-block {
|
|
50
|
+
position: relative;
|
|
51
|
+
z-index: 0;
|
|
52
|
+
display: grid;
|
|
53
|
+
grid-template-columns: 31fr 69fr;
|
|
54
|
+
column-gap: calc(24pt * var(--cn-scale));
|
|
55
|
+
align-items: start;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tpl-contemporary__identity {
|
|
59
|
+
min-width: 0;
|
|
60
|
+
padding-top: calc(2pt * var(--cn-scale));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.tpl-contemporary__name {
|
|
64
|
+
margin: 0;
|
|
65
|
+
font-size: calc(30pt * var(--cn-scale));
|
|
66
|
+
font-weight: 300;
|
|
67
|
+
line-height: 1.05;
|
|
68
|
+
letter-spacing: 0.005em;
|
|
69
|
+
color: var(--cn-strong);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* The headline sits in a green pill, which is the reference's one flourish.
|
|
73
|
+
The words inside it are ordinary text, so nothing is lost when a reader —
|
|
74
|
+
or a parser — takes the colour away. */
|
|
75
|
+
.tpl-contemporary__headline {
|
|
76
|
+
display: inline-block;
|
|
77
|
+
margin: calc(6pt * var(--cn-scale)) 0 0;
|
|
78
|
+
padding: calc(3.5pt * var(--cn-scale)) calc(11pt * var(--cn-scale));
|
|
79
|
+
font-size: calc(11.5pt * var(--cn-scale));
|
|
80
|
+
font-weight: 600;
|
|
81
|
+
letter-spacing: 0.06em;
|
|
82
|
+
line-height: 1.25;
|
|
83
|
+
color: #1f4a37;
|
|
84
|
+
background: var(--cn-tint);
|
|
85
|
+
border-radius: 999px;
|
|
86
|
+
print-color-adjust: exact;
|
|
87
|
+
-webkit-print-color-adjust: exact;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* The initials first, then the name — the order the reference reads in. */
|
|
91
|
+
.tpl-contemporary__avatar {
|
|
92
|
+
order: -1;
|
|
93
|
+
position: relative;
|
|
94
|
+
margin: calc(8pt * var(--cn-scale)) 0 calc(-58pt * var(--cn-scale))
|
|
95
|
+
calc(10pt * var(--cn-scale));
|
|
96
|
+
color: var(--cn-strong);
|
|
97
|
+
font-weight: 400;
|
|
98
|
+
background: #eef2f0;
|
|
99
|
+
border-color: #ffffff;
|
|
100
|
+
border-width: 0;
|
|
101
|
+
print-color-adjust: exact;
|
|
102
|
+
-webkit-print-color-adjust: exact;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* The soft ground and the dot the reference sets behind its portrait. */
|
|
106
|
+
.tpl-contemporary__avatar::before,
|
|
107
|
+
.tpl-contemporary__avatar::after {
|
|
108
|
+
content: '';
|
|
109
|
+
position: absolute;
|
|
110
|
+
z-index: -1;
|
|
111
|
+
print-color-adjust: exact;
|
|
112
|
+
-webkit-print-color-adjust: exact;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.tpl-contemporary__avatar::before {
|
|
116
|
+
inset: -14% -10% -12% -18%;
|
|
117
|
+
background: #b9e6cb;
|
|
118
|
+
border-radius: 46% 54% 40% 60% / 55% 38% 62% 45%;
|
|
119
|
+
opacity: 0.85;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.tpl-contemporary__avatar::after {
|
|
123
|
+
left: -6%;
|
|
124
|
+
bottom: 2%;
|
|
125
|
+
width: 17%;
|
|
126
|
+
height: 17%;
|
|
127
|
+
background: var(--cn-accent);
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
z-index: 1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* ── Body ───────────────────────────────────────────────────────────────── */
|
|
133
|
+
|
|
134
|
+
/* The rail first, exactly as the document writes it. */
|
|
135
|
+
.tpl-contemporary__body {
|
|
136
|
+
display: grid;
|
|
137
|
+
grid-template-columns: 31fr 69fr;
|
|
138
|
+
column-gap: calc(24pt * var(--cn-scale));
|
|
139
|
+
margin-top: calc(20pt * var(--cn-scale) * var(--cn-density));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.tpl-contemporary__main,
|
|
143
|
+
.tpl-contemporary__aside {
|
|
144
|
+
min-width: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* The room the initials hang into. */
|
|
148
|
+
.tpl-contemporary__aside {
|
|
149
|
+
padding-top: calc(62pt * var(--cn-scale));
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/*
|
|
153
|
+
* The MAIN column stands against the page's right edge here, so its controls
|
|
154
|
+
* belong in the right margin. The rail keeps the default side, because it is
|
|
155
|
+
* the column against the left edge.
|
|
156
|
+
*/
|
|
157
|
+
.tpl-contemporary__main {
|
|
158
|
+
--tpl-rail-right: auto;
|
|
159
|
+
--tpl-rail-left: calc(100% + var(--tpl-space-margin) + 12px);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* ── Sections ───────────────────────────────────────────────────────────── */
|
|
163
|
+
|
|
164
|
+
.tpl-contemporary__section {
|
|
165
|
+
margin-top: var(--tpl-space-height, 0px);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.tpl-contemporary__section + .tpl-contemporary__section {
|
|
169
|
+
margin-top: calc(
|
|
170
|
+
18pt * var(--cn-scale) * var(--cn-density) + var(--tpl-space-height, 0px)
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.tpl-contemporary__heading {
|
|
175
|
+
position: relative;
|
|
176
|
+
display: flex;
|
|
177
|
+
align-items: center;
|
|
178
|
+
min-height: calc(18pt * var(--cn-scale));
|
|
179
|
+
margin: 0 0 calc(8pt * var(--cn-scale));
|
|
180
|
+
padding-left: calc(24pt * var(--cn-scale));
|
|
181
|
+
font-size: calc(11pt * var(--cn-scale));
|
|
182
|
+
font-weight: 600;
|
|
183
|
+
letter-spacing: 0.03em;
|
|
184
|
+
line-height: 1.1;
|
|
185
|
+
text-transform: uppercase;
|
|
186
|
+
color: var(--cn-ink);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/*
|
|
190
|
+
* The badge beside each heading: a tinted square under a glyph that names
|
|
191
|
+
* nothing the heading's own words do not. Drawn, not set in an icon font, so
|
|
192
|
+
* it extracts as nothing.
|
|
193
|
+
*/
|
|
194
|
+
.tpl-contemporary__heading::before,
|
|
195
|
+
.tpl-contemporary__heading::after {
|
|
196
|
+
content: '';
|
|
197
|
+
position: absolute;
|
|
198
|
+
top: 50%;
|
|
199
|
+
left: 0;
|
|
200
|
+
width: calc(18pt * var(--cn-scale));
|
|
201
|
+
height: calc(18pt * var(--cn-scale));
|
|
202
|
+
transform: translateY(-50%);
|
|
203
|
+
print-color-adjust: exact;
|
|
204
|
+
-webkit-print-color-adjust: exact;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.tpl-contemporary__heading::before {
|
|
208
|
+
background: var(--cn-wash);
|
|
209
|
+
border-radius: calc(3pt * var(--cn-scale));
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.tpl-contemporary__heading::after {
|
|
213
|
+
background: var(--cn-ink);
|
|
214
|
+
mask: var(--cn-glyph) center / 62% no-repeat;
|
|
215
|
+
-webkit-mask: var(--cn-glyph) center / 62% no-repeat;
|
|
216
|
+
--cn-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.6 6.6L21 9.3l-4.9 4.5 1.4 6.9L12 17.3l-5.5 3.4 1.4-6.9L3 9.3l6.4-.7z'/%3E%3C/svg%3E");
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.tpl-contemporary__heading--contacts::after {
|
|
220
|
+
--cn-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 4h18a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm1 3v1.2l8 5 8-5V7l-8 5z'/%3E%3C/svg%3E");
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.tpl-contemporary__heading--summary::after,
|
|
224
|
+
.tpl-contemporary__heading--experience::after {
|
|
225
|
+
--cn-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.5' r='4.5'/%3E%3Cpath d='M3 21c0-4.4 4-7 9-7s9 2.6 9 7z'/%3E%3C/svg%3E");
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.tpl-contemporary__heading--achievements::after {
|
|
229
|
+
--cn-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4 2h2v20H4zM7 3h14v12H7zm2 2v8h10V5z'/%3E%3C/svg%3E");
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.tpl-contemporary__heading--education::after {
|
|
233
|
+
--cn-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3L1 9l11 6 9-4.9V17h2V9zM5 13.2V17c0 1.7 3.1 3.5 7 3.5s7-1.8 7-3.5v-3.8l-7 3.8z'/%3E%3C/svg%3E");
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.tpl-contemporary__heading--courses::after {
|
|
237
|
+
--cn-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M5 2h10l5 5v15H5zm3 9v2h9v-2zm0 4v2h9v-2z'/%3E%3C/svg%3E");
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.tpl-contemporary__heading--passions::after {
|
|
241
|
+
--cn-glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21l-1.4-1.3C5.4 15 2 12 2 8.3 2 5.3 4.4 3 7.4 3c1.7 0 3.4.8 4.6 2.1C13.2 3.8 14.9 3 16.6 3 19.6 3 22 5.3 22 8.3c0 3.7-3.4 6.7-8.6 11.4z'/%3E%3C/svg%3E");
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.tpl-contemporary__prose {
|
|
245
|
+
margin: 0;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* ── Entries ────────────────────────────────────────────────────────────── */
|
|
249
|
+
|
|
250
|
+
.tpl-contemporary__entry {
|
|
251
|
+
margin-top: calc(
|
|
252
|
+
10pt * var(--cn-scale) * var(--cn-density) + var(--tpl-space-height, 0px)
|
|
253
|
+
);
|
|
254
|
+
break-inside: avoid;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* The heading's own margin, restated: the two collapse, so a recorded gap adds
|
|
258
|
+
to it rather than being lost inside it. */
|
|
259
|
+
.tpl-contemporary__entry:first-of-type {
|
|
260
|
+
margin-top: calc(8pt * var(--cn-scale) + var(--tpl-space-height, 0px));
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.tpl-contemporary__head {
|
|
264
|
+
display: grid;
|
|
265
|
+
grid-template-columns: 1fr auto;
|
|
266
|
+
column-gap: calc(10pt * var(--cn-scale));
|
|
267
|
+
font-size: calc(9.8pt * var(--cn-scale));
|
|
268
|
+
line-height: 1.35;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.tpl-contemporary__org {
|
|
272
|
+
font-weight: 700;
|
|
273
|
+
color: var(--cn-strong);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.tpl-contemporary__role {
|
|
277
|
+
color: var(--cn-strong);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.tpl-contemporary__where,
|
|
281
|
+
.tpl-contemporary__dates {
|
|
282
|
+
text-align: right;
|
|
283
|
+
color: var(--cn-strong);
|
|
284
|
+
font-variant-numeric: tabular-nums;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.tpl-contemporary__detail {
|
|
288
|
+
margin: 0;
|
|
289
|
+
color: var(--cn-body);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.tpl-contemporary .tpl-bullets {
|
|
293
|
+
margin: calc(2pt * var(--cn-scale)) 0 0;
|
|
294
|
+
padding: 0;
|
|
295
|
+
list-style: none;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.tpl-contemporary .tpl-bullet {
|
|
299
|
+
display: grid;
|
|
300
|
+
grid-template-columns: calc(9pt * var(--cn-scale)) 1fr;
|
|
301
|
+
padding-left: calc(3pt * var(--cn-scale));
|
|
302
|
+
font-size: calc(8.6pt * var(--cn-scale));
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.tpl-contemporary .tpl-bullet::before {
|
|
306
|
+
content: '•';
|
|
307
|
+
color: var(--cn-strong);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* ── The rail's notes ───────────────────────────────────────────────────── */
|
|
311
|
+
|
|
312
|
+
.tpl-contemporary__note {
|
|
313
|
+
margin-top: calc(
|
|
314
|
+
9pt * var(--cn-scale) * var(--cn-density) + var(--tpl-space-height, 0px)
|
|
315
|
+
);
|
|
316
|
+
break-inside: avoid;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.tpl-contemporary__note:first-of-type {
|
|
320
|
+
margin-top: calc(8pt * var(--cn-scale) + var(--tpl-space-height, 0px));
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.tpl-contemporary__note-title,
|
|
324
|
+
.tpl-contemporary__note-detail {
|
|
325
|
+
margin: 0;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.tpl-contemporary__note-title {
|
|
329
|
+
font-size: calc(9.6pt * var(--cn-scale));
|
|
330
|
+
font-weight: 700;
|
|
331
|
+
color: var(--cn-strong);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.tpl-contemporary__note-detail {
|
|
335
|
+
margin-top: calc(1.5pt * var(--cn-scale));
|
|
336
|
+
font-size: calc(8.4pt * var(--cn-scale));
|
|
337
|
+
color: var(--cn-body);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/* Skills as the kit's invisible table (`kit/skill-grid.css`), tuned to this
|
|
341
|
+
template's main column. */
|
|
342
|
+
.tpl-contemporary {
|
|
343
|
+
--tpl-skill-grid-label: calc(84pt * var(--cn-scale));
|
|
344
|
+
--tpl-skill-grid-column: calc(104pt * var(--cn-scale));
|
|
345
|
+
--tpl-skill-grid-gutter: calc(10pt * var(--cn-scale));
|
|
346
|
+
--tpl-skill-grid-gap: calc(10pt * var(--cn-scale));
|
|
347
|
+
--tpl-skill-grid-lead: calc(2pt * var(--cn-scale));
|
|
348
|
+
--tpl-skill-grid-rhythm: calc(4pt * var(--cn-scale));
|
|
349
|
+
--tpl-skill-grid-label-weight: 700;
|
|
350
|
+
--tpl-skill-grid-label-ink: var(--cn-strong);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* ── The contact details, as a section of the rail ──────────────────────── */
|
|
354
|
+
|
|
355
|
+
.tpl-contemporary__contacts {
|
|
356
|
+
--tpl-contact-icon-ink: var(--cn-accent);
|
|
357
|
+
display: grid;
|
|
358
|
+
gap: calc(6pt * var(--cn-scale));
|
|
359
|
+
margin-top: calc(10pt * var(--cn-scale));
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.tpl-contemporary__contact-item {
|
|
363
|
+
margin: 0;
|
|
364
|
+
font-size: calc(8.4pt * var(--cn-scale));
|
|
365
|
+
color: var(--cn-body);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.tpl-contemporary__contact-item .tpl-text__link {
|
|
369
|
+
color: inherit;
|
|
370
|
+
text-decoration: none;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/*
|
|
374
|
+
* The supporting sections — achievements, courses, passions, languages.
|
|
375
|
+
*
|
|
376
|
+
* The SHAPE is `kit/described.css` and `kit/language.css`; this block is only
|
|
377
|
+
* this template's painting of it, which is the division the contract asks for.
|
|
378
|
+
*/
|
|
379
|
+
.tpl-contemporary {
|
|
380
|
+
--tpl-described-gap: calc(11pt * var(--cn-scale));
|
|
381
|
+
--tpl-described-lead: calc(2pt * var(--cn-scale));
|
|
382
|
+
--tpl-described-title-ink: var(--cn-strong);
|
|
383
|
+
--tpl-described-title-size: calc(9.6pt * var(--cn-scale));
|
|
384
|
+
--tpl-described-title-leading: 1.3;
|
|
385
|
+
--tpl-described-body-size: calc(8.4pt * var(--cn-scale));
|
|
386
|
+
--tpl-described-body-ink: var(--cn-body);
|
|
387
|
+
--tpl-described-span: calc(14pt * var(--cn-scale));
|
|
388
|
+
--tpl-language-gap: calc(6pt * var(--cn-scale));
|
|
389
|
+
--tpl-language-lead: calc(4pt * var(--cn-scale));
|
|
390
|
+
--tpl-language-step: calc(4pt * var(--cn-scale));
|
|
391
|
+
--tpl-language-meter-ink: var(--cn-accent);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/* One repeated mark, never one per entry: nothing in the resume says which
|
|
395
|
+
glyph an achievement deserves. The mark hangs, so the paragraph under a
|
|
396
|
+
title lines up with the title rather than with the dot. */
|
|
397
|
+
.tpl-contemporary .tpl-described--marked {
|
|
398
|
+
--tpl-described-mark: '\2022';
|
|
399
|
+
--tpl-described-mark-ink: var(--cn-strong);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.tpl-contemporary .tpl-described--marked .tpl-described__entry {
|
|
403
|
+
position: relative;
|
|
404
|
+
padding-left: calc(13pt * var(--cn-scale));
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.tpl-contemporary .tpl-described--marked .tpl-described__title::before {
|
|
408
|
+
position: absolute;
|
|
409
|
+
left: calc(3pt * var(--cn-scale));
|
|
410
|
+
margin: 0;
|
|
411
|
+
}
|
|
@@ -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 ContemporaryExperienceEntry({ 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 ContemporaryEducationEntry({ 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 ContemporaryCustomEntry({ 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/contemporary/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,2BAA2B,CAAC,EAC1C,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,+BA4CA;AAED,wBAAgB,0BAA0B,CAAC,EACzC,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,+BAiDA;AAED,wBAAgB,uBAAuB,CAAC,EACtC,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,+BAsBA"}
|
|
@@ -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 ContemporaryExperienceEntry({ item, path, chrome, itemProps, }) {
|
|
7
|
+
const { placeholder } = useEditorText();
|
|
8
|
+
return (_jsxs("article", { ...itemProps, className: "tpl-contemporary__entry", "data-block": true, children: [chrome, _jsxs("div", { className: "tpl-contemporary__head", children: [_jsx("span", { className: "tpl-contemporary__org", children: _jsx(EditableText, { path: `${path}.company`, value: item.company, placeholder: placeholder('company') }) }), _jsx("span", { className: "tpl-contemporary__where", children: _jsx(EditableText, { path: `${path}.location`, value: item.location ?? '', placeholder: placeholder('location') }) }), _jsx("span", { className: "tpl-contemporary__role", children: _jsx(EditableText, { path: `${path}.title`, value: item.title, placeholder: placeholder('title') }) }), _jsxs("span", { className: "tpl-contemporary__dates", children: [_jsx(EditableText, { path: `${path}.start`, value: item.start, placeholder: placeholder('start') }), ' - ', _jsx(EditableText, { path: `${path}.end`, value: item.end, placeholder: placeholder('end') })] })] }), _jsx(EditableBulletList, { path: `${path}.bullets`, items: item.bullets })] }));
|
|
9
|
+
}
|
|
10
|
+
export function ContemporaryEducationEntry({ item, path, chrome, itemProps, }) {
|
|
11
|
+
const { placeholder } = useEditorText();
|
|
12
|
+
return (_jsxs("article", { ...itemProps, className: "tpl-contemporary__entry", "data-block": true, children: [chrome, _jsxs("div", { className: "tpl-contemporary__head", children: [_jsx("span", { className: "tpl-contemporary__org", children: _jsx(EditableText, { path: `${path}.school`, value: item.school, placeholder: placeholder('school') }) }), _jsx("span", { className: "tpl-contemporary__where", children: _jsx(EditableText, { path: `${path}.location`, value: item.location ?? '', placeholder: placeholder('location') }) }), _jsxs("span", { className: "tpl-contemporary__role", children: [_jsx(EditableText, { path: `${path}.degree`, value: item.degree ?? '', placeholder: placeholder('degree') }), _jsx(Separator, { between: [item.degree, item.field], text: ", " }), _jsx(EditableText, { path: `${path}.field`, value: item.field ?? '', placeholder: placeholder('field') })] }), _jsxs("span", { className: "tpl-contemporary__dates", children: [_jsx(EditableText, { path: `${path}.start`, value: item.start ?? '', placeholder: placeholder('start') }), _jsx(Separator, { between: [item.start, item.end], text: " - " }), _jsx(EditableText, { path: `${path}.end`, value: item.end ?? '', placeholder: placeholder('end') })] })] })] }));
|
|
13
|
+
}
|
|
14
|
+
export function ContemporaryCustomEntry({ item, path, chrome, itemProps, }) {
|
|
15
|
+
const { placeholder } = useEditorText();
|
|
16
|
+
return (_jsxs("article", { ...itemProps, className: "tpl-contemporary__note", "data-block": true, children: [chrome, _jsx("p", { className: "tpl-contemporary__note-title", children: _jsx(EditableText, { path: `${path}.title`, value: item.title, placeholder: placeholder('heading') }) }), _jsx("p", { className: "tpl-contemporary__note-detail", 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 CreativeDocumentProps {
|
|
3
|
+
resume: ResumeObject;
|
|
4
|
+
}
|
|
5
|
+
export declare function CreativeDocument({ resume }: CreativeDocumentProps): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=CreativeDocument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreativeDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/creative/CreativeDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAqBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,gBAAgB,CAAC;AAGxB,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,qBAAqB,+BAyOjE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 { InitialsAvatar } from '../../kit/InitialsAvatar.js';
|
|
13
|
+
import { useContactLines } from '../../kit/contact.js';
|
|
14
|
+
import { documentStyle } from '../../kit/documentStyle.js';
|
|
15
|
+
import { Heading } from '../../kit/Heading.js';
|
|
16
|
+
import { LinkField } from '../../nodes/LinkField.js';
|
|
17
|
+
import { CreativeCustomEntry, CreativeEducationEntry, CreativeExperienceEntry, } from './entries.js';
|
|
18
|
+
import '../../kit/layout.css';
|
|
19
|
+
import '../../kit/contact-icons.css';
|
|
20
|
+
import './creative.css';
|
|
21
|
+
import { useEditorText, useDocumentText } from '../../i18n/index.js';
|
|
22
|
+
export function CreativeDocument({ resume }) {
|
|
23
|
+
const { placeholder } = useEditorText();
|
|
24
|
+
const doc = useDocumentText();
|
|
25
|
+
const style = useDocumentStyle();
|
|
26
|
+
const authoring = useAuthoring() !== null;
|
|
27
|
+
const contact = useContactLines(resume.contact, ['phone', 'email', 'location'], authoring);
|
|
28
|
+
return (_jsxs("article", { className: "tpl-creative", style: documentStyle('cr', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-creative__band", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-creative__identity", children: [_jsx(Heading, { level: 1, className: "tpl-creative__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-creative__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) })), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("p", { className: "tpl-creative__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("span", { className: `tpl-creative__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))), _jsx(Collection, { section: "links", items: resume.links, gap: false, emptyAdd: "inline", children: ({ item, path, chrome, itemProps, justAdded }) => (_jsx("span", { className: "tpl-creative__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] }))] }), _jsx(InitialsAvatar, { name: resume.name, className: "tpl-creative__avatar" })] }), _jsxs("div", { className: "tpl-creative__body", "data-layout": "row", children: [_jsxs("div", { className: "tpl-creative__main", "data-flow": true, children: [(resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(CreativeExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(CreativeEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-creative__section tpl-described--grid", headingClassName: "tpl-creative__heading", items: resume.courses, entryClassName: "tpl-creative__described" }), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", rowClassName: "tpl-creative__language" })] }), _jsxs("aside", { className: "tpl-creative__aside", "data-flow": true, children: [(resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", children: _jsx("p", { className: "tpl-creative__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-creative__section", headingClass: "tpl-creative__heading", Entry: CreativeCustomEntry }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", children: _jsx("div", { className: "tpl-keywords tpl-keywords--tags", "data-block": true, "data-split": true, children: _jsx(Collection, { section: "skills", items: resume.skills, noun: "skill", gap: false, children: ({ item, path }) => (_jsx(BulletSkillGroup, { item: item, path: path })) }) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-creative__section tpl-described--marked", headingClassName: "tpl-creative__heading", items: resume.achievements, entryClassName: "tpl-creative__described" }), resume.certifications.length > 0 && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-creative__section", headingClassName: "tpl-creative__heading", children: _jsx("div", { "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-creative__section tpl-described--marked", headingClassName: "tpl-creative__heading", items: resume.passions, entryClassName: "tpl-creative__described" })] })] })] }));
|
|
29
|
+
}
|