@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,127 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Skills as KEYWORDS OVER A RULE — one to a line, which is how every
|
|
3
|
+
* reference in this catalog sets them.
|
|
4
|
+
*
|
|
5
|
+
* They were boxes, and boxes were wrong twice: the references draw a rule
|
|
6
|
+
* under a keyword rather than a border around it, and a row of boxes invites a
|
|
7
|
+
* reader to skim them as tags, which is the opposite of what a résumé's skills
|
|
8
|
+
* section is for.
|
|
9
|
+
*
|
|
10
|
+
* The structure is still a LIST — each keyword is an `li` — so a parser reads
|
|
11
|
+
* one skill per line rather than a run of joined words, which is the property
|
|
12
|
+
* that makes a keyword rail safe to print at all. The rule is a border on that
|
|
13
|
+
* item, so it is foreground ink and survives a page that prints no
|
|
14
|
+
* backgrounds.
|
|
15
|
+
*
|
|
16
|
+
* A template sets the two variables and nothing else: this file decides the
|
|
17
|
+
* shape, the template decides its colour and its rhythm.
|
|
18
|
+
*/
|
|
19
|
+
.tpl-keywords .tpl-bullets {
|
|
20
|
+
display: grid;
|
|
21
|
+
gap: var(--tpl-keyword-gap, 5pt);
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
list-style: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tpl-keywords .tpl-bullets .tpl-bullet {
|
|
28
|
+
display: block;
|
|
29
|
+
margin: 0;
|
|
30
|
+
padding-bottom: var(--tpl-keyword-lead, 2pt);
|
|
31
|
+
border-bottom: 0.75pt solid var(--tpl-keyword-line, currentcolor);
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/*
|
|
36
|
+
* The marker belongs to a bullet list, not to a keyword.
|
|
37
|
+
*
|
|
38
|
+
* Named one level deeper than a template's own `.tpl-x .tpl-bullet::before`,
|
|
39
|
+
* which carries the same specificity and is imported after this file — so
|
|
40
|
+
* without the extra step the dot would win and every keyword would wear one.
|
|
41
|
+
*/
|
|
42
|
+
.tpl-keywords .tpl-bullets .tpl-bullet::before {
|
|
43
|
+
content: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/*
|
|
47
|
+
* The same keywords on ONE line, for a template whose skills run across the
|
|
48
|
+
* page rather than down a rail. Each still carries its own rule, so the run
|
|
49
|
+
* reads as separate words rather than as a sentence.
|
|
50
|
+
*/
|
|
51
|
+
.tpl-keywords--inline .tpl-bullets {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-wrap: wrap;
|
|
54
|
+
gap: var(--tpl-keyword-gap, 5pt) var(--tpl-keyword-span, 14pt);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/*
|
|
58
|
+
* The same keywords in BOXES, for the templates whose references draw one
|
|
59
|
+
* around each rather than a rule under it.
|
|
60
|
+
*
|
|
61
|
+
* Still list items, and the box is still a border — foreground ink, so a page
|
|
62
|
+
* that prints no backgrounds loses nothing but the outline's colour.
|
|
63
|
+
*/
|
|
64
|
+
.tpl-keywords--boxed .tpl-bullets {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-wrap: wrap;
|
|
67
|
+
gap: var(--tpl-keyword-gap, 4pt);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.tpl-keywords--boxed .tpl-bullets .tpl-bullet {
|
|
71
|
+
padding: var(--tpl-keyword-lead, 2pt) calc(var(--tpl-keyword-lead, 2pt) * 2.5);
|
|
72
|
+
border: 0.75pt solid var(--tpl-keyword-line, currentcolor);
|
|
73
|
+
border-radius: 2pt;
|
|
74
|
+
font-weight: 400;
|
|
75
|
+
|
|
76
|
+
/*
|
|
77
|
+
* One keyword, one box. A box that wrapped would split a skill down the
|
|
78
|
+
* middle — "Sentr" over "y" — which reads as two skills and extracts as
|
|
79
|
+
* neither. A keyword too long for the column overhangs it instead, which is
|
|
80
|
+
* visible and fixable by the candidate; a broken word is neither.
|
|
81
|
+
*/
|
|
82
|
+
white-space: nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/*
|
|
86
|
+
* The same keywords as UNDERLINED TAGS: each skill a word with room either
|
|
87
|
+
* side, standing on a rule exactly as wide as itself, several to a row. Every
|
|
88
|
+
* group's skills join one run — the list is `display: contents` — because the
|
|
89
|
+
* references draw one run however the candidate grouped them.
|
|
90
|
+
*
|
|
91
|
+
* What keeps the run safe for a parser is the distance between two skills'
|
|
92
|
+
* glyphs: both paddings plus the gap, about two ems. Printed by Chromium,
|
|
93
|
+
* `pdftotext` reads that as a boundary, so each skill extracts as a unit of
|
|
94
|
+
* its own rather than as "Python SQL Tableau".
|
|
95
|
+
*
|
|
96
|
+
* Measured on the Enhancv references at 200 dpi: a 0.75pt rule of `#aaa`,
|
|
97
|
+
* about 0.6em of padding and 0.75em between tags, and room above the word
|
|
98
|
+
* that sets the first row lower under its heading than other sections' first
|
|
99
|
+
* lines (`--tpl-keyword-top`). A template sets the variables; the size is the
|
|
100
|
+
* template's, so every length here is in ems of it.
|
|
101
|
+
*/
|
|
102
|
+
.tpl-keywords--tags {
|
|
103
|
+
display: flex;
|
|
104
|
+
flex-wrap: wrap;
|
|
105
|
+
gap: var(--tpl-keyword-gap, 0.9em) var(--tpl-keyword-span, 0.75em);
|
|
106
|
+
font-size: var(--tpl-keyword-size, inherit);
|
|
107
|
+
|
|
108
|
+
/* No marker column: a tag's drag handle sits on its left edge. */
|
|
109
|
+
--tpl-marker: 0px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.tpl-keywords--tags .tpl-bullets {
|
|
113
|
+
display: contents;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.tpl-keywords--tags .tpl-bullets .tpl-bullet {
|
|
117
|
+
padding: var(--tpl-keyword-top, 0) var(--tpl-keyword-pad, 0.6em)
|
|
118
|
+
var(--tpl-keyword-lead, 0.3em);
|
|
119
|
+
border-bottom: var(--tpl-keyword-rule, 0.75pt) solid
|
|
120
|
+
var(--tpl-keyword-line, #aaaaaa);
|
|
121
|
+
line-height: var(--tpl-keyword-leading, 1.2);
|
|
122
|
+
font-weight: var(--tpl-keyword-weight, 700);
|
|
123
|
+
color: var(--tpl-keyword-ink, inherit);
|
|
124
|
+
|
|
125
|
+
/* One skill, one rule: a tag that wrapped would read as two skills. */
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* A language: its name, its level as a WORD, and a five-step meter.
|
|
3
|
+
*
|
|
4
|
+
* The word is the content and the meter is the decoration. That ordering is the
|
|
5
|
+
* reason the meter is allowed at all — `docs/template-contract.md` refuses a
|
|
6
|
+
* proficiency meter whose proportions nothing recorded, and this one draws one
|
|
7
|
+
* step per stored enum value with the word beside it, so the section still
|
|
8
|
+
* means something to a parser, to a reader, and on a printer that drops
|
|
9
|
+
* backgrounds.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* Three columns, placed explicitly: the name in a fixed one, so every row's
|
|
14
|
+
* level word and meter start where the row above's did. The authoring chrome
|
|
15
|
+
* is absolutely positioned and takes no cell.
|
|
16
|
+
*/
|
|
17
|
+
.tpl-language {
|
|
18
|
+
display: grid;
|
|
19
|
+
grid-template-columns:
|
|
20
|
+
minmax(0, var(--tpl-language-name, 7em))
|
|
21
|
+
minmax(0, 1fr)
|
|
22
|
+
auto;
|
|
23
|
+
align-items: center;
|
|
24
|
+
column-gap: var(--tpl-language-gap, 6pt);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Below the heading's restated margin, as `described.css` explains. */
|
|
28
|
+
.tpl-language {
|
|
29
|
+
margin-top: calc(var(--tpl-heading-gap, 0px) + var(--tpl-space-height, 0px));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tpl-language + .tpl-language {
|
|
33
|
+
margin-top: calc(
|
|
34
|
+
var(--tpl-language-lead, 4pt) + var(--tpl-space-height, 0px)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* The row is the template's body text, like every other line on the page. */
|
|
39
|
+
.tpl-language {
|
|
40
|
+
font-family: inherit;
|
|
41
|
+
font-size: var(--tpl-language-size, inherit);
|
|
42
|
+
line-height: var(--tpl-language-leading, inherit);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tpl-language__name {
|
|
46
|
+
grid-column: 1;
|
|
47
|
+
overflow-wrap: break-word;
|
|
48
|
+
font-weight: var(--tpl-language-name-weight, 600);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.tpl-language__level,
|
|
52
|
+
.tpl-language__choice {
|
|
53
|
+
grid-column: 2;
|
|
54
|
+
justify-self: start;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.tpl-language__level {
|
|
58
|
+
color: var(--tpl-language-level-ink, currentcolor);
|
|
59
|
+
font-size: var(--tpl-language-level-size, 0.9em);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* The meter stands at the far edge, as every reference sets it. */
|
|
63
|
+
.tpl-language__meter {
|
|
64
|
+
grid-column: 3;
|
|
65
|
+
display: inline-flex;
|
|
66
|
+
gap: var(--tpl-language-step-gap, 2pt);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
* A step is a STROKED circle that is filled when it is on.
|
|
71
|
+
*
|
|
72
|
+
* An outline rather than a background, so a page printing no background
|
|
73
|
+
* graphics still shows five circles and the difference between them. The filled
|
|
74
|
+
* state uses `background-color` and `print-color-adjust: exact` together, so a
|
|
75
|
+
* filled step stays filled on paper; if a printer refuses even that, the level
|
|
76
|
+
* word beside it is unaffected, which is the point of printing the word.
|
|
77
|
+
*/
|
|
78
|
+
.tpl-language__step {
|
|
79
|
+
width: var(--tpl-language-step, 4pt);
|
|
80
|
+
height: var(--tpl-language-step, 4pt);
|
|
81
|
+
border: 0.75pt solid var(--tpl-language-meter-ink, currentcolor);
|
|
82
|
+
border-radius: 50%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.tpl-language__step--on {
|
|
86
|
+
background-color: var(--tpl-language-meter-ink, currentcolor);
|
|
87
|
+
print-color-adjust: exact;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/*
|
|
91
|
+
* The level control, which exists only while the document is being edited.
|
|
92
|
+
*
|
|
93
|
+
* Sized and coloured like the word it replaces, so choosing a level does not
|
|
94
|
+
* move the line — the same rule `EditableText` follows when it becomes a field
|
|
95
|
+
* in the same box.
|
|
96
|
+
*/
|
|
97
|
+
.tpl-language__choice {
|
|
98
|
+
font: inherit;
|
|
99
|
+
font-size: var(--tpl-language-level-size, 0.9em);
|
|
100
|
+
color: inherit;
|
|
101
|
+
background: transparent;
|
|
102
|
+
border: 0;
|
|
103
|
+
padding: 0;
|
|
104
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* Zero-specificity defaults for described layouts; a template's own rules win. */
|
|
2
|
+
:where([data-layout='row']) {
|
|
3
|
+
display: flex;
|
|
4
|
+
gap: var(--tpl-gap, 0);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
:where([data-layout='row'] > [data-layout-sized]) {
|
|
8
|
+
flex: var(--tpl-grow, 1) var(--tpl-shrink, 1) var(--tpl-basis, 0%);
|
|
9
|
+
min-width: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where([data-layout='stack']) {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap: var(--tpl-gap);
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monogram.d.ts","sourceRoot":"","sources":["../../src/kit/monogram.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAM7C"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A monogram derived from the name rather than stored: one that could be
|
|
3
|
+
* edited separately could disagree with the name printed beside it.
|
|
4
|
+
*/
|
|
5
|
+
export function monogram(name) {
|
|
6
|
+
const parts = name.trim().split(/\s+/).filter(Boolean);
|
|
7
|
+
if (parts.length === 0)
|
|
8
|
+
return '';
|
|
9
|
+
const first = parts[0][0] ?? '';
|
|
10
|
+
const last = parts.length > 1 ? (parts[parts.length - 1][0] ?? '') : '';
|
|
11
|
+
return (first + last).toUpperCase();
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* A body whose columns must cover every sheet the document runs to.
|
|
3
|
+
*
|
|
4
|
+
* A template with a PAINTED rail has a problem the plain ones do not: the
|
|
5
|
+
* panel is a column, so it is exactly as tall as the document's content — and
|
|
6
|
+
* a résumé that spills a few lines onto a second page paints a stub of colour
|
|
7
|
+
* at the top of it and white underneath. That reads as a broken page rather
|
|
8
|
+
* than as a design.
|
|
9
|
+
*
|
|
10
|
+
* The flow already knows how many sheets it has: `PagedSheet` publishes
|
|
11
|
+
* `--pages`, `--page-h` and `--page-gap` on the element above, and custom
|
|
12
|
+
* properties inherit, so the document can size itself to them. The arithmetic
|
|
13
|
+
* is the same one `paged.css` uses for the stack of sheets behind it, which is
|
|
14
|
+
* why the two cannot disagree.
|
|
15
|
+
*
|
|
16
|
+
* The final pixel is subtracted deliberately: the height this produces feeds
|
|
17
|
+
* the very measurement that decided `--pages`, and landing exactly on the
|
|
18
|
+
* boundary is what would tip a document onto one more page, which would make
|
|
19
|
+
* it taller, which would tip it again.
|
|
20
|
+
*/
|
|
21
|
+
.tpl-sheet-tall {
|
|
22
|
+
min-height: calc(
|
|
23
|
+
var(--pages, 1) * (var(--page-h, 11in) + var(--page-gap, 0px)) -
|
|
24
|
+
var(--page-gap, 0px) - 1px
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Skills as an INVISIBLE TABLE (`GridSkillGroup`): one row per group, the
|
|
3
|
+
* category in a label column, the skills in auto-fitting columns, one to a
|
|
4
|
+
* cell. No commas, no borders.
|
|
5
|
+
*
|
|
6
|
+
* A grid rather than CSS `columns`: each skill is an editable row with its own
|
|
7
|
+
* controls, and a box broken across columns cannot carry them.
|
|
8
|
+
*
|
|
9
|
+
* The cell is also what a parser reads. Chromium prints no hidden separator —
|
|
10
|
+
* clipped, transparent and zero-sized text are all dropped from the PDF — so
|
|
11
|
+
* one skill per cell is what makes `pdftotext` read one skill per line. A
|
|
12
|
+
* wrapping row of skills extracts as "Python SQL Tableau": three skills that
|
|
13
|
+
* read as one.
|
|
14
|
+
*
|
|
15
|
+
* A template sets the variables and nothing else.
|
|
16
|
+
*/
|
|
17
|
+
.tpl-skill-grid {
|
|
18
|
+
/* Below 240pt — a sidebar — the label stacks over one skill per line. */
|
|
19
|
+
container: tpl-skill-grid / inline-size;
|
|
20
|
+
|
|
21
|
+
/*
|
|
22
|
+
* Its own formatting context, so the first group's recorded space is added
|
|
23
|
+
* below the heading rather than collapsing into the heading's margin.
|
|
24
|
+
*/
|
|
25
|
+
display: flow-root;
|
|
26
|
+
|
|
27
|
+
/* No marker column: a skill's drag handle sits on its left edge. */
|
|
28
|
+
--tpl-marker: 0px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.tpl-skill-grid .tpl-skill-grid__group {
|
|
32
|
+
display: grid;
|
|
33
|
+
grid-template-columns: var(--tpl-skill-grid-label, 7.5em) minmax(0, 1fr);
|
|
34
|
+
column-gap: var(--tpl-skill-grid-gutter, 10pt);
|
|
35
|
+
align-items: baseline;
|
|
36
|
+
margin-top: var(--tpl-space-height, 0px);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tpl-skill-grid .tpl-skill-grid__group + .tpl-skill-grid__group {
|
|
40
|
+
margin-top: calc(
|
|
41
|
+
var(--tpl-skill-grid-rhythm, 3pt) + var(--tpl-space-height, 0px)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tpl-skill-grid__label {
|
|
46
|
+
overflow-wrap: break-word;
|
|
47
|
+
font-size: var(--tpl-skill-grid-label-size, inherit);
|
|
48
|
+
font-weight: var(--tpl-skill-grid-label-weight, 600);
|
|
49
|
+
color: var(--tpl-skill-grid-label-ink, currentcolor);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
* Named three classes deep: a template's own `.tpl-x .tpl-bullets` and
|
|
54
|
+
* `.tpl-x .tpl-bullet` carry two, and are imported after this file.
|
|
55
|
+
*/
|
|
56
|
+
.tpl-skill-grid .tpl-skill-grid__group .tpl-bullets {
|
|
57
|
+
display: grid;
|
|
58
|
+
grid-template-columns: repeat(
|
|
59
|
+
auto-fill,
|
|
60
|
+
minmax(min(var(--tpl-skill-grid-column, 12em), 100%), 1fr)
|
|
61
|
+
);
|
|
62
|
+
gap: var(--tpl-skill-grid-lead, 1.5pt) var(--tpl-skill-grid-gap, 10pt);
|
|
63
|
+
margin: 0;
|
|
64
|
+
padding: 0;
|
|
65
|
+
list-style: none;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* A group with no category, while the document is read, spans both columns. */
|
|
69
|
+
.tpl-skill-grid .tpl-skill-grid__group--bare .tpl-bullets {
|
|
70
|
+
grid-column: 1 / -1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tpl-skill-grid .tpl-skill-grid__group .tpl-bullet {
|
|
74
|
+
display: block;
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
text-indent: 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.tpl-skill-grid .tpl-skill-grid__group .tpl-bullet::before {
|
|
81
|
+
content: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@container tpl-skill-grid (max-width: 240pt) {
|
|
85
|
+
.tpl-skill-grid .tpl-skill-grid__group {
|
|
86
|
+
grid-template-columns: minmax(0, 1fr);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.tpl-skill-grid .tpl-skill-grid__group .tpl-bullets {
|
|
90
|
+
grid-template-columns: minmax(0, 1fr);
|
|
91
|
+
margin-top: var(--tpl-skill-grid-lead, 1.5pt);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Skills groups as LABELLED TAGS (`TagSkillGroup`): each group's category as a
|
|
3
|
+
* subheading, its skills below as `tpl-keywords--tags`. The tags are styled
|
|
4
|
+
* there; this file places the label and spaces the groups.
|
|
5
|
+
*
|
|
6
|
+
* A template sets `--tpl-skill-tags-label-ink` / `-size` / `-weight`,
|
|
7
|
+
* `--tpl-skill-tags-label-gap` (label to its tags) and
|
|
8
|
+
* `--tpl-skill-tags-rhythm` (one group's last rule to the next label).
|
|
9
|
+
*/
|
|
10
|
+
.tpl-skill-tags {
|
|
11
|
+
/*
|
|
12
|
+
* Its own formatting context, so the first group's recorded space is added
|
|
13
|
+
* below the heading rather than collapsing into the heading's margin.
|
|
14
|
+
*/
|
|
15
|
+
display: flow-root;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.tpl-skill-tags .tpl-skill-tags__group {
|
|
19
|
+
margin-top: var(--tpl-space-height, 0px);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tpl-skill-tags .tpl-skill-tags__group + .tpl-skill-tags__group {
|
|
23
|
+
margin-top: calc(
|
|
24
|
+
var(--tpl-skill-tags-rhythm, 1.6em) + var(--tpl-space-height, 0px)
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.tpl-skill-tags__label {
|
|
29
|
+
display: block;
|
|
30
|
+
margin-bottom: var(--tpl-skill-tags-label-gap, 0.7em);
|
|
31
|
+
overflow-wrap: break-word;
|
|
32
|
+
font-size: var(--tpl-skill-tags-label-size, inherit);
|
|
33
|
+
font-weight: var(--tpl-skill-tags-label-weight, 400);
|
|
34
|
+
line-height: 1.2;
|
|
35
|
+
color: var(--tpl-skill-tags-label-ink, currentcolor);
|
|
36
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* How a field's text is drawn when it is not being typed into: the same
|
|
4
|
+
* characters, in spans a stylesheet can set apart. `EditableText` applies it
|
|
5
|
+
* to the value it prints, so reading and editing draw the same thing, and the
|
|
6
|
+
* field stays one field: one path, one value, one caret while it is selected.
|
|
7
|
+
*
|
|
8
|
+
* A shape never adds or drops a character. Extraction, copying and a screen
|
|
9
|
+
* reader see the text exactly as typed.
|
|
10
|
+
*/
|
|
11
|
+
export type TextShape = (text: string) => ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* A name as given names and surname (`name: { split: true }`): everything
|
|
14
|
+
* before the last word, the space, then the last word, so a design can set the
|
|
15
|
+
* two at different weights. One word is drawn as the surname alone.
|
|
16
|
+
*/
|
|
17
|
+
export declare function nameParts(first: string, last: string): TextShape;
|
|
18
|
+
/** The first `count` letters of a heading, set apart (`headingAccent: n`). */
|
|
19
|
+
export interface HeadingLead {
|
|
20
|
+
count: number;
|
|
21
|
+
className: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function leadLetters({ count, className }: HeadingLead): TextShape;
|
|
24
|
+
//# sourceMappingURL=textShapes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textShapes.d.ts","sourceRoot":"","sources":["../../src/kit/textShapes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,SAAS,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAehE;AAED,8EAA8E;AAC9E,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAMD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,WAAW,GAAG,SAAS,CAexE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A name as given names and surname (`name: { split: true }`): everything
|
|
4
|
+
* before the last word, the space, then the last word, so a design can set the
|
|
5
|
+
* two at different weights. One word is drawn as the surname alone.
|
|
6
|
+
*/
|
|
7
|
+
export function nameParts(first, last) {
|
|
8
|
+
return (text) => {
|
|
9
|
+
const m = /^(\s*)(.*\S)(\s+)(\S+)(\s*)$/s.exec(text);
|
|
10
|
+
if (!m)
|
|
11
|
+
return _jsx("span", { className: last, children: text });
|
|
12
|
+
const [, before, given, gap, surname, after] = m;
|
|
13
|
+
return (_jsxs(_Fragment, { children: [before, _jsx("span", { className: first, children: given }), gap, _jsx("span", { className: last, children: surname }), after] }));
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/*
|
|
17
|
+
* Counted in code points, so an accented or astral letter is never cut in
|
|
18
|
+
* half. Whitespace is not counted as a letter of the lead.
|
|
19
|
+
*/
|
|
20
|
+
export function leadLetters({ count, className }) {
|
|
21
|
+
return (text) => {
|
|
22
|
+
const chars = Array.from(text);
|
|
23
|
+
let end = 0;
|
|
24
|
+
for (let seen = 0; end < chars.length && seen < count; end++) {
|
|
25
|
+
if (/\S/.test(chars[end]))
|
|
26
|
+
seen++;
|
|
27
|
+
}
|
|
28
|
+
if (end === 0)
|
|
29
|
+
return text;
|
|
30
|
+
return (_jsxs(_Fragment, { children: [_jsx("span", { className: className, children: chars.slice(0, end).join('') }), chars.slice(end).join('')] }));
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Letter } from '@resumekit/schema';
|
|
2
|
+
export interface LetterDocumentProps {
|
|
3
|
+
letter: Letter;
|
|
4
|
+
/** The date line, already written — see `letterDate`. */
|
|
5
|
+
date: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* A cover letter as the page it is sent as: US Letter, one-inch margins,
|
|
9
|
+
* business block format. The one definition the letter view on screen and the
|
|
10
|
+
* exported file both draw.
|
|
11
|
+
*/
|
|
12
|
+
export declare function LetterDocument({ letter, date }: LetterDocumentProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=LetterDocument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LetterDocument.d.ts","sourceRoot":"","sources":["../../src/letter/LetterDocument.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,mBAAmB,+BAiBnE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useDocumentText } from '../i18n/index.js';
|
|
3
|
+
import './letter.css';
|
|
4
|
+
/**
|
|
5
|
+
* A cover letter as the page it is sent as: US Letter, one-inch margins,
|
|
6
|
+
* business block format. The one definition the letter view on screen and the
|
|
7
|
+
* exported file both draw.
|
|
8
|
+
*/
|
|
9
|
+
export function LetterDocument({ letter, date }) {
|
|
10
|
+
const doc = useDocumentText();
|
|
11
|
+
return (_jsxs("article", { className: "tpl-letter", "aria-label": doc.t.letter, lang: doc.locale, children: [_jsx("p", { className: "tpl-letter__sender", children: letter.signature }), _jsx("p", { className: "tpl-letter__date", children: date }), letter.recipient && (_jsx("p", { className: "tpl-letter__recipient", children: letter.recipient })), _jsx("p", { children: letter.greeting }), letter.paragraphs.map((paragraph, i) => (_jsx("p", { children: paragraph }, i))), _jsx("p", { className: "tpl-letter__closing", children: letter.closing }), _jsx("p", { className: "tpl-letter__signature", children: letter.signature })] }));
|
|
12
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* No `@import` of `fonts.css` here: every surface that draws a letter already
|
|
3
|
+
* declares the faces (the export through `document.css`, the app through its
|
|
4
|
+
* global stylesheet), and a second import inlined every face into the export
|
|
5
|
+
* bundle twice.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* A bundled face rather than the app's own serif, so the exported file is
|
|
10
|
+
* drawn in the same font as the page on screen instead of in whatever the
|
|
11
|
+
* render host has installed.
|
|
12
|
+
*/
|
|
13
|
+
.tpl-letter {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: 11pt;
|
|
18
|
+
width: 8.5in;
|
|
19
|
+
min-height: 11in;
|
|
20
|
+
padding: 1in;
|
|
21
|
+
background: #fff;
|
|
22
|
+
color: #1f1f1f;
|
|
23
|
+
font-family: 'Gelasio', Georgia, 'Times New Roman', serif;
|
|
24
|
+
font-size: 11pt;
|
|
25
|
+
line-height: 1.45;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.tpl-letter p {
|
|
29
|
+
margin: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tpl-letter__sender {
|
|
33
|
+
font-size: 14pt;
|
|
34
|
+
font-weight: 700;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tpl-letter__date,
|
|
38
|
+
.tpl-letter__recipient {
|
|
39
|
+
margin-bottom: 11pt;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* An address block keeps its lines. */
|
|
43
|
+
.tpl-letter__recipient {
|
|
44
|
+
white-space: pre-line;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.tpl-letter__closing {
|
|
48
|
+
margin-top: 11pt;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.tpl-letter__signature {
|
|
52
|
+
margin-top: 22pt;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
* On paper the margins belong to the page, so a letter that runs to a second
|
|
57
|
+
* sheet has them there too. A padded box would give page two none.
|
|
58
|
+
*/
|
|
59
|
+
@page letter {
|
|
60
|
+
size: 8.5in 11in;
|
|
61
|
+
margin: 1in;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media print {
|
|
65
|
+
.tpl-letter {
|
|
66
|
+
page: letter;
|
|
67
|
+
width: auto;
|
|
68
|
+
min-height: 0;
|
|
69
|
+
padding: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.tpl-letter p {
|
|
73
|
+
break-inside: avoid;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CollectionHandle } from '../collections/useCollection.js';
|
|
2
|
+
/**
|
|
3
|
+
* A bullet list the candidate can act on.
|
|
4
|
+
*
|
|
5
|
+
* Split from `EditableBulletList` for the reason `AuthoredItems` is split from
|
|
6
|
+
* `CollectionItems`: this module reaches the drag-and-drop library, and the
|
|
7
|
+
* read-only document — the saved-résumé view, and the renderer that produces the
|
|
8
|
+
* PDF — must not load it. The split is what makes that a fact about the bundle
|
|
9
|
+
* rather than a promise about the render.
|
|
10
|
+
*/
|
|
11
|
+
export interface AuthoredBulletsProps {
|
|
12
|
+
path: string;
|
|
13
|
+
items: readonly string[];
|
|
14
|
+
bullets: CollectionHandle<string>;
|
|
15
|
+
/** Whether the list is the field being typed into. */
|
|
16
|
+
editing: boolean;
|
|
17
|
+
onEdit: (index: number, next: string) => void;
|
|
18
|
+
/** What an empty row says it wants — see `EditableBulletList`. */
|
|
19
|
+
placeholder: string;
|
|
20
|
+
}
|
|
21
|
+
export default function AuthoredBullets({ path, items, bullets, editing, onEdit, placeholder, }: AuthoredBulletsProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=AuthoredBullets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AuthoredBullets.d.ts","sourceRoot":"","sources":["../../src/nodes/AuthoredBullets.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAIxE;;;;;;;;GAQG;AAEH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAClC,sDAAsD;IACtD,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAC;CACrB;AAyJD,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,IAAI,EACJ,KAAK,EACL,OAAO,EACP,OAAO,EACP,MAAM,EACN,WAAW,GACZ,EAAE,oBAAoB,+BAmEtB"}
|