@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,295 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The Timeline template: one column, with every entry hung off a dated spine.
|
|
3
|
+
*
|
|
4
|
+
* The spine is a BORDER on the entry's own middle column with a dot drawn on
|
|
5
|
+
* it, so the line exists exactly where an entry does. A rule positioned
|
|
6
|
+
* against the section's height would drift the first time a page broke.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.tpl-timeline {
|
|
10
|
+
/* The heading's bottom margin, restated for the kit's first entries. */
|
|
11
|
+
--tpl-heading-gap: calc(5pt * var(--tl-scale));
|
|
12
|
+
--tpl-space-unit: calc(2.4pt * var(--tl-scale) * var(--tl-density));
|
|
13
|
+
--tpl-space-margin: var(--tl-margin);
|
|
14
|
+
--tpl-marker: calc(9pt * var(--tl-scale));
|
|
15
|
+
|
|
16
|
+
--tl-scale: 1;
|
|
17
|
+
--tl-ink: #22303f;
|
|
18
|
+
--tl-font:
|
|
19
|
+
'Carlito', -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
|
|
20
|
+
--tl-accent: #d99328;
|
|
21
|
+
--tl-density: 1;
|
|
22
|
+
--tl-margin: 0.55in;
|
|
23
|
+
--tl-muted: #55606c;
|
|
24
|
+
--tl-quiet: #7c8794;
|
|
25
|
+
--tl-line: #c9d0d8;
|
|
26
|
+
/* The dated column, named once: the entry's grid and the spine's dot both
|
|
27
|
+
measure from it, and two literals would disagree the first time it moved. */
|
|
28
|
+
--tl-when: calc(96pt * var(--tl-scale));
|
|
29
|
+
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
width: 8.5in;
|
|
32
|
+
padding: 0.5in var(--tl-margin);
|
|
33
|
+
margin: 0 auto;
|
|
34
|
+
background: #ffffff;
|
|
35
|
+
color: var(--tl-ink);
|
|
36
|
+
font-family: var(--tl-font);
|
|
37
|
+
font-size: calc(8.2pt * var(--tl-scale));
|
|
38
|
+
line-height: 1.38;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* ── Header ─────────────────────────────────────────────────────────────── */
|
|
42
|
+
|
|
43
|
+
.tpl-timeline__name {
|
|
44
|
+
margin: 0;
|
|
45
|
+
font-size: calc(24pt * var(--tl-scale));
|
|
46
|
+
font-weight: 700;
|
|
47
|
+
line-height: 1.1;
|
|
48
|
+
letter-spacing: 0.01em;
|
|
49
|
+
text-transform: uppercase;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tpl-timeline__headline {
|
|
53
|
+
margin: calc(2pt * var(--tl-scale)) 0 0;
|
|
54
|
+
font-size: calc(11pt * var(--tl-scale));
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
color: var(--tl-accent);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.tpl-timeline__contact {
|
|
60
|
+
--tpl-contact-icon-ink: var(--tl-accent);
|
|
61
|
+
display: grid;
|
|
62
|
+
grid-template-columns: repeat(3, 1fr);
|
|
63
|
+
column-gap: calc(12pt * var(--tl-scale));
|
|
64
|
+
margin: calc(4pt * var(--tl-scale)) 0 0;
|
|
65
|
+
font-size: calc(7.6pt * var(--tl-scale));
|
|
66
|
+
font-weight: 700;
|
|
67
|
+
line-height: 1.5;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* ── Sections ───────────────────────────────────────────────────────────── */
|
|
71
|
+
|
|
72
|
+
.tpl-timeline__section {
|
|
73
|
+
margin-top: calc(
|
|
74
|
+
21pt * var(--tl-scale) * var(--tl-density) + var(--tpl-space-height, 0px)
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.tpl-timeline__heading {
|
|
79
|
+
margin: 0 0 calc(5pt * var(--tl-scale));
|
|
80
|
+
font-size: calc(14pt * var(--tl-scale));
|
|
81
|
+
font-weight: 700;
|
|
82
|
+
line-height: 1.2;
|
|
83
|
+
letter-spacing: 0.01em;
|
|
84
|
+
text-transform: uppercase;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.tpl-timeline__prose,
|
|
88
|
+
.tpl-timeline__keywords {
|
|
89
|
+
margin: 0;
|
|
90
|
+
color: var(--tl-muted);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* ── Entries: dates, spine, work ────────────────────────────────────────── */
|
|
94
|
+
|
|
95
|
+
.tpl-timeline__entry {
|
|
96
|
+
display: grid;
|
|
97
|
+
grid-template-columns: var(--tl-when) calc(10pt * var(--tl-scale)) 1fr;
|
|
98
|
+
margin-top: calc(
|
|
99
|
+
11pt * var(--tl-scale) * var(--tl-density) + var(--tpl-space-height, 0px)
|
|
100
|
+
);
|
|
101
|
+
break-inside: avoid;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* The heading's own margin, restated: the two collapse, so a recorded gap adds
|
|
105
|
+
to it rather than being lost inside it. */
|
|
106
|
+
.tpl-timeline__entry:first-of-type {
|
|
107
|
+
margin-top: calc(5pt * var(--tl-scale) + var(--tpl-space-height, 0px));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.tpl-timeline__when {
|
|
111
|
+
padding-right: calc(6pt * var(--tl-scale));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.tpl-timeline__dates,
|
|
115
|
+
.tpl-timeline__place {
|
|
116
|
+
margin: 0;
|
|
117
|
+
font-size: calc(8.4pt * var(--tl-scale));
|
|
118
|
+
font-variant-numeric: tabular-nums;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.tpl-timeline__dates {
|
|
122
|
+
font-weight: 700;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.tpl-timeline__place {
|
|
126
|
+
margin-top: calc(3pt * var(--tl-scale));
|
|
127
|
+
font-size: calc(7.6pt * var(--tl-scale));
|
|
128
|
+
color: var(--tl-muted);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/*
|
|
132
|
+
* The spine, and the dot that marks this entry on it. Both are foreground ink
|
|
133
|
+
* — a border and a filled dot — so the page prints complete with the browser's
|
|
134
|
+
* background graphics switched off.
|
|
135
|
+
*/
|
|
136
|
+
.tpl-timeline__spine {
|
|
137
|
+
position: relative;
|
|
138
|
+
border-left: 1pt solid var(--tl-line);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/*
|
|
142
|
+
* The line runs most of the way through the gap to the next entry, stopping
|
|
143
|
+
* just short of its dot, as the reference draws it. The last entry stops at
|
|
144
|
+
* its own foot, because there is nothing below it to reach.
|
|
145
|
+
*/
|
|
146
|
+
.tpl-timeline__entry:not(:last-of-type) .tpl-timeline__spine {
|
|
147
|
+
margin-bottom: calc(
|
|
148
|
+
-11pt * var(--tl-scale) * var(--tl-density) + 3pt * var(--tl-scale)
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.tpl-timeline__spine::before {
|
|
153
|
+
content: '';
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: calc(1.5pt * var(--tl-scale));
|
|
156
|
+
left: calc(-2.75pt * var(--tl-scale));
|
|
157
|
+
width: calc(4.5pt * var(--tl-scale));
|
|
158
|
+
height: calc(4.5pt * var(--tl-scale));
|
|
159
|
+
background: var(--tl-ink);
|
|
160
|
+
border-radius: 50%;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.tpl-timeline__what {
|
|
164
|
+
padding-left: calc(10pt * var(--tl-scale));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.tpl-timeline__role {
|
|
168
|
+
margin: 0;
|
|
169
|
+
font-size: calc(12.5pt * var(--tl-scale));
|
|
170
|
+
line-height: 1.15;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.tpl-timeline__org {
|
|
174
|
+
margin: 0;
|
|
175
|
+
font-weight: 700;
|
|
176
|
+
color: var(--tl-accent);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.tpl-timeline .tpl-bullets {
|
|
180
|
+
margin: calc(2.5pt * var(--tl-scale)) 0 0;
|
|
181
|
+
padding: 0;
|
|
182
|
+
list-style: none;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.tpl-timeline .tpl-bullet {
|
|
186
|
+
display: grid;
|
|
187
|
+
grid-template-columns: calc(9pt * var(--tl-scale)) 1fr;
|
|
188
|
+
margin-top: calc(1pt * var(--tl-scale));
|
|
189
|
+
color: var(--tl-muted);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.tpl-timeline .tpl-bullet::before {
|
|
193
|
+
content: '·';
|
|
194
|
+
color: var(--tl-quiet);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* ── The candidate's own sections: two notes to a row ───────────────────── */
|
|
198
|
+
|
|
199
|
+
/* A GRID rather than CSS columns: a note is an editable container, and a
|
|
200
|
+
container that spans a column break is fragmented. */
|
|
201
|
+
.tpl-timeline__section:has(> .tpl-timeline__note) {
|
|
202
|
+
display: grid;
|
|
203
|
+
grid-template-columns: 1fr 1fr;
|
|
204
|
+
column-gap: calc(22pt * var(--tl-scale));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.tpl-timeline__section:has(> .tpl-timeline__note) > .tpl-timeline__heading {
|
|
208
|
+
grid-column: 1 / -1;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.tpl-timeline__note {
|
|
212
|
+
margin-top: calc(
|
|
213
|
+
6pt * var(--tl-scale) * var(--tl-density) + var(--tpl-space-height, 0px)
|
|
214
|
+
);
|
|
215
|
+
break-inside: avoid;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* The right-hand note stands against the page's right edge, so its rail
|
|
219
|
+
belongs in the right margin. */
|
|
220
|
+
.tpl-timeline__note:nth-of-type(even) {
|
|
221
|
+
--tpl-rail-right: auto;
|
|
222
|
+
--tpl-rail-left: calc(100% + var(--tpl-space-margin) + 12px);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.tpl-timeline__note-title,
|
|
226
|
+
.tpl-timeline__note-detail {
|
|
227
|
+
margin: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.tpl-timeline__note-title {
|
|
231
|
+
font-weight: 700;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.tpl-timeline__note-detail {
|
|
235
|
+
color: var(--tl-muted);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* Skills as underlined tags — the shape is `kit/keywords.css`; this template
|
|
239
|
+
states the measures of its reference. */
|
|
240
|
+
.tpl-timeline .tpl-keywords {
|
|
241
|
+
--tpl-keyword-size: 1.12em;
|
|
242
|
+
--tpl-keyword-ink: var(--tl-ink);
|
|
243
|
+
--tpl-keyword-pad: 0.55em;
|
|
244
|
+
--tpl-keyword-span: 0.68em;
|
|
245
|
+
--tpl-keyword-gap: 0.53em;
|
|
246
|
+
--tpl-keyword-top: 0.63em;
|
|
247
|
+
--tpl-keyword-lead: 0.22em;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/*
|
|
251
|
+
* The supporting sections — achievements, courses, passions, languages.
|
|
252
|
+
*
|
|
253
|
+
* The SHAPE is `kit/described.css` and `kit/language.css`; this block is only
|
|
254
|
+
* this template's painting of it, which is the division the contract asks for.
|
|
255
|
+
* Each value is the one already used by the sections beside them, so the four
|
|
256
|
+
* arrive looking like they were always here.
|
|
257
|
+
*/
|
|
258
|
+
.tpl-timeline {
|
|
259
|
+
--tpl-described-gap: calc(7pt * var(--tl-scale));
|
|
260
|
+
--tpl-described-lead: calc(1.5pt * var(--tl-scale));
|
|
261
|
+
--tpl-described-title-ink: var(--tl-ink);
|
|
262
|
+
--tpl-described-body-ink: var(--tl-muted);
|
|
263
|
+
--tpl-described-span: calc(14pt * var(--tl-scale));
|
|
264
|
+
--tpl-language-gap: calc(6pt * var(--tl-scale));
|
|
265
|
+
--tpl-language-lead: calc(4pt * var(--tl-scale));
|
|
266
|
+
--tpl-language-step: calc(4pt * var(--tl-scale));
|
|
267
|
+
--tpl-language-meter-ink: var(--tl-accent);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* One repeated mark, never one per entry: nothing in the resume says which
|
|
271
|
+
glyph an achievement deserves. It hangs in the accent to the left of the
|
|
272
|
+
title, and the paragraph keeps the title's indent. */
|
|
273
|
+
.tpl-timeline .tpl-described--marked {
|
|
274
|
+
--tpl-described-mark: '\2691';
|
|
275
|
+
--tpl-described-mark-ink: var(--tl-accent);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.tpl-timeline .tpl-described--marked .tpl-described__entry {
|
|
279
|
+
position: relative;
|
|
280
|
+
padding-left: calc(24pt * var(--tl-scale));
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.tpl-timeline .tpl-described--marked .tpl-described__title::before {
|
|
284
|
+
position: absolute;
|
|
285
|
+
top: 0;
|
|
286
|
+
left: 0;
|
|
287
|
+
margin: 0;
|
|
288
|
+
font-size: calc(14pt * var(--tl-scale));
|
|
289
|
+
line-height: 1;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* The reference sets these 2 to a row. */
|
|
293
|
+
.tpl-timeline .tpl-described--grid {
|
|
294
|
+
--tpl-described-columns: 2;
|
|
295
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The zoom for a given amount of room, as arithmetic.
|
|
4
|
+
*
|
|
5
|
+
* A **view** zoom: it changes how big the document looks and nothing about the
|
|
6
|
+
* document. The résumé's own type scale is a separate, stored control
|
|
7
|
+
* (`document-styling`, #36) that changes the artifact — a candidate who shrank
|
|
8
|
+
* the text to see the whole page would have altered what they send an employer,
|
|
9
|
+
* which is the confusion `editor-usability` (#35) names.
|
|
10
|
+
*
|
|
11
|
+
* Computed rather than chosen. Asking for 15% and taking it would put the page
|
|
12
|
+
* under a horizontal scrollbar on a narrow window, and a document you have to
|
|
13
|
+
* scroll sideways to read is worse than a small one — so the answer is the
|
|
14
|
+
* lesser of what was asked for and what fits, and it is 1 when nothing fits.
|
|
15
|
+
*
|
|
16
|
+
* Rounded DOWN to whole percent, so a resize settles on a value instead of
|
|
17
|
+
* oscillating around a fraction of a pixel.
|
|
18
|
+
*
|
|
19
|
+
* Pure, and separate from the hook below, because this is the part that can be
|
|
20
|
+
* wrong: the horizontal scrollbar this exists to prevent is a question about
|
|
21
|
+
* numbers rather than about the DOM.
|
|
22
|
+
*/
|
|
23
|
+
export declare function fitZoom(availableWidth: number, max: number): number;
|
|
24
|
+
/**
|
|
25
|
+
* The zoom that lets a READ-ONLY page fit a container narrower than the paper,
|
|
26
|
+
* such as a phone: never above 1, never below `min`, whole percent rounded down.
|
|
27
|
+
*
|
|
28
|
+
* Separate from {@link fitZoom} because the reason that one refuses to shrink —
|
|
29
|
+
* the candidate could not tell a smaller page from a smaller type scale — does
|
|
30
|
+
* not apply to a page nobody is editing, and a page wider than the screen is
|
|
31
|
+
* one nobody can read. No clearance: there are no controls beside the paper.
|
|
32
|
+
*/
|
|
33
|
+
export declare function shrinkZoom(availableWidth: number, min: number): number;
|
|
34
|
+
/**
|
|
35
|
+
* {@link fitZoom}, kept current against the container the page is drawn in.
|
|
36
|
+
*
|
|
37
|
+
* Measured from the container rather than from the window, because the editor's
|
|
38
|
+
* canvas sits beside a rail whose width is not this hook's business.
|
|
39
|
+
*/
|
|
40
|
+
export declare function useFitZoom(ref: RefObject<HTMLElement | null>,
|
|
41
|
+
/** The most zoom to apply. `1` disables the hook entirely. */
|
|
42
|
+
max: number,
|
|
43
|
+
/**
|
|
44
|
+
* How long to leave the page at 1 before fitting it for the first time.
|
|
45
|
+
*
|
|
46
|
+
* `0` fits during the first layout pass, which is what a surface that simply
|
|
47
|
+
* renders a document wants: the page is the size it is going to be before
|
|
48
|
+
* anything is painted, and there is no previous value for the CSS transition
|
|
49
|
+
* to animate from, so nothing moves.
|
|
50
|
+
*
|
|
51
|
+
* The EDITOR wants the opposite. It arrives on a screen that is still
|
|
52
|
+
* settling — the shell may be giving it the sidebar's width, and measuring
|
|
53
|
+
* into that is measuring a column mid-change — and a page that is simply
|
|
54
|
+
* born at 115% never shows the candidate that it was fitted to their window
|
|
55
|
+
* at all. Waiting means the first paint is the document at its own size, the
|
|
56
|
+
* screen finishes arriving, and then the page grows into the room in one
|
|
57
|
+
* deliberate movement the transition can actually animate.
|
|
58
|
+
*
|
|
59
|
+
* Only the FIRST fit waits. A resize is a candidate dragging a window edge
|
|
60
|
+
* and wanting to see the result, so those measure immediately.
|
|
61
|
+
*/
|
|
62
|
+
fitDelayMs?: number,
|
|
63
|
+
/** Below 1 lets a read-only page shrink to fit; see {@link shrinkZoom}. */
|
|
64
|
+
min?: number): number;
|
|
65
|
+
/**
|
|
66
|
+
* What the manual control may reach, and by how much at a time.
|
|
67
|
+
*
|
|
68
|
+
* It goes BELOW 1 where the automatic value will not. The automatic one refuses
|
|
69
|
+
* to shrink because a page that quietly got smaller is indistinguishable from a
|
|
70
|
+
* résumé whose type scale was changed; a candidate who pressed the button knows
|
|
71
|
+
* which of the two they did.
|
|
72
|
+
*/
|
|
73
|
+
export declare const ZOOM_MIN = 0.5;
|
|
74
|
+
export declare const ZOOM_MAX = 2;
|
|
75
|
+
export declare const ZOOM_STEP = 0.1;
|
|
76
|
+
/**
|
|
77
|
+
* How long the page takes to reach a new zoom, and therefore how long
|
|
78
|
+
* pagination waits before believing what it measures.
|
|
79
|
+
*
|
|
80
|
+
* One number for both, because they are the same fact: the CSS transition and
|
|
81
|
+
* the pause are describing the same animation, and two constants would be two
|
|
82
|
+
* places to disagree. `paged.css` reads it as the transition duration.
|
|
83
|
+
*/
|
|
84
|
+
export declare const ZOOM_SETTLE_MS = 200;
|
|
85
|
+
/**
|
|
86
|
+
* One press of a zoom control: the next round step in the direction pressed.
|
|
87
|
+
*
|
|
88
|
+
* Not "add 10%". The automatic value is whatever fits — 108%, 115% — and adding
|
|
89
|
+
* to that would walk the control off the grid and leave the reader with 118%
|
|
90
|
+
* and then 128%. Moving to the next MULTIPLE of the step means the numbers stay
|
|
91
|
+
* round however the page was sized to begin with, and the first press from an
|
|
92
|
+
* automatic value is a small one rather than a jump.
|
|
93
|
+
*
|
|
94
|
+
* The epsilon is not superstition: `1.2 / 0.1` is `12.000000000000002`, and
|
|
95
|
+
* without it a press of − from exactly 120% would floor to itself and the
|
|
96
|
+
* control would appear stuck.
|
|
97
|
+
*/
|
|
98
|
+
export declare function step(zoom: number, by: number): number;
|
|
99
|
+
//# sourceMappingURL=useFitZoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFitZoom.d.ts","sourceRoot":"","sources":["../src/useFitZoom.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAkBlE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAOnE;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAGtE;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,GAAG,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;AAClC,8DAA8D;AAC9D,GAAG,EAAE,MAAM;AACX;;;;;;;;;;;;;;;;;;GAkBG;AACH,UAAU,SAAI;AACd,2EAA2E;AAC3E,GAAG,SAAI,GACN,MAAM,CA+CR;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,QAAQ,MAAM,CAAC;AAC5B,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,MAAM,CAAC;AAElC;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,CAMrD"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { useLayoutEffect, useState } from 'react';
|
|
2
|
+
import { PAGE_WIDTH } from './pagination.js';
|
|
3
|
+
/**
|
|
4
|
+
* How much room to leave beside the page.
|
|
5
|
+
*
|
|
6
|
+
* Not decoration: the whole point of this hook is that zooming must never be
|
|
7
|
+
* what introduces a horizontal scrollbar, and a page measured to fit its
|
|
8
|
+
* container exactly is one rounding error away from not fitting. The margin is
|
|
9
|
+
* the width of that error plus the shadow the sheet casts.
|
|
10
|
+
*
|
|
11
|
+
* Widened for the spacing knobs, which stand outside the paper on the left
|
|
12
|
+
* (`spacing.css`). They are drawn beside the page rather than on it, so the
|
|
13
|
+
* room they need is room the page must not have taken — otherwise zooming to
|
|
14
|
+
* "fit" fits everything except the controls.
|
|
15
|
+
*/
|
|
16
|
+
const CLEARANCE = 48;
|
|
17
|
+
/**
|
|
18
|
+
* The zoom for a given amount of room, as arithmetic.
|
|
19
|
+
*
|
|
20
|
+
* A **view** zoom: it changes how big the document looks and nothing about the
|
|
21
|
+
* document. The résumé's own type scale is a separate, stored control
|
|
22
|
+
* (`document-styling`, #36) that changes the artifact — a candidate who shrank
|
|
23
|
+
* the text to see the whole page would have altered what they send an employer,
|
|
24
|
+
* which is the confusion `editor-usability` (#35) names.
|
|
25
|
+
*
|
|
26
|
+
* Computed rather than chosen. Asking for 15% and taking it would put the page
|
|
27
|
+
* under a horizontal scrollbar on a narrow window, and a document you have to
|
|
28
|
+
* scroll sideways to read is worse than a small one — so the answer is the
|
|
29
|
+
* lesser of what was asked for and what fits, and it is 1 when nothing fits.
|
|
30
|
+
*
|
|
31
|
+
* Rounded DOWN to whole percent, so a resize settles on a value instead of
|
|
32
|
+
* oscillating around a fraction of a pixel.
|
|
33
|
+
*
|
|
34
|
+
* Pure, and separate from the hook below, because this is the part that can be
|
|
35
|
+
* wrong: the horizontal scrollbar this exists to prevent is a question about
|
|
36
|
+
* numbers rather than about the DOM.
|
|
37
|
+
*/
|
|
38
|
+
export function fitZoom(availableWidth, max) {
|
|
39
|
+
if (max <= 1)
|
|
40
|
+
return 1;
|
|
41
|
+
const fits = Math.floor(((availableWidth - CLEARANCE) / PAGE_WIDTH) * 100) / 100;
|
|
42
|
+
// Never below 1: this zooms IN when there is room and otherwise does nothing.
|
|
43
|
+
// Shrinking to fit would make the résumé's own type scale ambiguous.
|
|
44
|
+
return Math.min(max, Math.max(1, fits));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The zoom that lets a READ-ONLY page fit a container narrower than the paper,
|
|
48
|
+
* such as a phone: never above 1, never below `min`, whole percent rounded down.
|
|
49
|
+
*
|
|
50
|
+
* Separate from {@link fitZoom} because the reason that one refuses to shrink —
|
|
51
|
+
* the candidate could not tell a smaller page from a smaller type scale — does
|
|
52
|
+
* not apply to a page nobody is editing, and a page wider than the screen is
|
|
53
|
+
* one nobody can read. No clearance: there are no controls beside the paper.
|
|
54
|
+
*/
|
|
55
|
+
export function shrinkZoom(availableWidth, min) {
|
|
56
|
+
const fits = Math.floor((availableWidth / PAGE_WIDTH) * 100) / 100;
|
|
57
|
+
return Math.min(1, Math.max(min, fits));
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* {@link fitZoom}, kept current against the container the page is drawn in.
|
|
61
|
+
*
|
|
62
|
+
* Measured from the container rather than from the window, because the editor's
|
|
63
|
+
* canvas sits beside a rail whose width is not this hook's business.
|
|
64
|
+
*/
|
|
65
|
+
export function useFitZoom(ref,
|
|
66
|
+
/** The most zoom to apply. `1` disables the hook entirely. */
|
|
67
|
+
max,
|
|
68
|
+
/**
|
|
69
|
+
* How long to leave the page at 1 before fitting it for the first time.
|
|
70
|
+
*
|
|
71
|
+
* `0` fits during the first layout pass, which is what a surface that simply
|
|
72
|
+
* renders a document wants: the page is the size it is going to be before
|
|
73
|
+
* anything is painted, and there is no previous value for the CSS transition
|
|
74
|
+
* to animate from, so nothing moves.
|
|
75
|
+
*
|
|
76
|
+
* The EDITOR wants the opposite. It arrives on a screen that is still
|
|
77
|
+
* settling — the shell may be giving it the sidebar's width, and measuring
|
|
78
|
+
* into that is measuring a column mid-change — and a page that is simply
|
|
79
|
+
* born at 115% never shows the candidate that it was fitted to their window
|
|
80
|
+
* at all. Waiting means the first paint is the document at its own size, the
|
|
81
|
+
* screen finishes arriving, and then the page grows into the room in one
|
|
82
|
+
* deliberate movement the transition can actually animate.
|
|
83
|
+
*
|
|
84
|
+
* Only the FIRST fit waits. A resize is a candidate dragging a window edge
|
|
85
|
+
* and wanting to see the result, so those measure immediately.
|
|
86
|
+
*/
|
|
87
|
+
fitDelayMs = 0,
|
|
88
|
+
/** Below 1 lets a read-only page shrink to fit; see {@link shrinkZoom}. */
|
|
89
|
+
min = 1) {
|
|
90
|
+
const [zoom, setZoom] = useState(1);
|
|
91
|
+
useLayoutEffect(() => {
|
|
92
|
+
if (max <= 1 && min >= 1) {
|
|
93
|
+
setZoom(1);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const measure = () => {
|
|
97
|
+
const host = ref.current?.parentElement;
|
|
98
|
+
if (!host)
|
|
99
|
+
return;
|
|
100
|
+
// `clientWidth` already excludes a vertical scrollbar.
|
|
101
|
+
setZoom(max > 1
|
|
102
|
+
? fitZoom(host.clientWidth, max)
|
|
103
|
+
: shrinkZoom(host.clientWidth, min));
|
|
104
|
+
};
|
|
105
|
+
/*
|
|
106
|
+
* Synchronously when there is no delay, so the page is fitted before the
|
|
107
|
+
* first paint and is never seen at the wrong size. On a timer otherwise —
|
|
108
|
+
* and deliberately NOT in the layout pass, because the whole point is to
|
|
109
|
+
* let a frame at 1 reach the screen for the transition to start from.
|
|
110
|
+
*/
|
|
111
|
+
let first;
|
|
112
|
+
if (fitDelayMs > 0)
|
|
113
|
+
first = setTimeout(measure, fitDelayMs);
|
|
114
|
+
else
|
|
115
|
+
measure();
|
|
116
|
+
/*
|
|
117
|
+
* The WINDOW, not the container.
|
|
118
|
+
*
|
|
119
|
+
* Observing the container would be a feedback loop: zooming in makes the
|
|
120
|
+
* document taller, a taller document can raise a vertical scrollbar, a
|
|
121
|
+
* scrollbar narrows the container, and the next measurement would zoom back
|
|
122
|
+
* out and drop the scrollbar again. The window's width is the input that
|
|
123
|
+
* actually varies, and it is unaffected by anything this returns.
|
|
124
|
+
*/
|
|
125
|
+
window.addEventListener('resize', measure);
|
|
126
|
+
return () => {
|
|
127
|
+
clearTimeout(first);
|
|
128
|
+
window.removeEventListener('resize', measure);
|
|
129
|
+
};
|
|
130
|
+
}, [ref, max, fitDelayMs, min]);
|
|
131
|
+
return zoom;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* What the manual control may reach, and by how much at a time.
|
|
135
|
+
*
|
|
136
|
+
* It goes BELOW 1 where the automatic value will not. The automatic one refuses
|
|
137
|
+
* to shrink because a page that quietly got smaller is indistinguishable from a
|
|
138
|
+
* résumé whose type scale was changed; a candidate who pressed the button knows
|
|
139
|
+
* which of the two they did.
|
|
140
|
+
*/
|
|
141
|
+
export const ZOOM_MIN = 0.5;
|
|
142
|
+
export const ZOOM_MAX = 2;
|
|
143
|
+
export const ZOOM_STEP = 0.1;
|
|
144
|
+
/**
|
|
145
|
+
* How long the page takes to reach a new zoom, and therefore how long
|
|
146
|
+
* pagination waits before believing what it measures.
|
|
147
|
+
*
|
|
148
|
+
* One number for both, because they are the same fact: the CSS transition and
|
|
149
|
+
* the pause are describing the same animation, and two constants would be two
|
|
150
|
+
* places to disagree. `paged.css` reads it as the transition duration.
|
|
151
|
+
*/
|
|
152
|
+
export const ZOOM_SETTLE_MS = 200;
|
|
153
|
+
/**
|
|
154
|
+
* One press of a zoom control: the next round step in the direction pressed.
|
|
155
|
+
*
|
|
156
|
+
* Not "add 10%". The automatic value is whatever fits — 108%, 115% — and adding
|
|
157
|
+
* to that would walk the control off the grid and leave the reader with 118%
|
|
158
|
+
* and then 128%. Moving to the next MULTIPLE of the step means the numbers stay
|
|
159
|
+
* round however the page was sized to begin with, and the first press from an
|
|
160
|
+
* automatic value is a small one rather than a jump.
|
|
161
|
+
*
|
|
162
|
+
* The epsilon is not superstition: `1.2 / 0.1` is `12.000000000000002`, and
|
|
163
|
+
* without it a press of − from exactly 120% would floor to itself and the
|
|
164
|
+
* control would appear stuck.
|
|
165
|
+
*/
|
|
166
|
+
export function step(zoom, by) {
|
|
167
|
+
const grid = Math.round((zoom / ZOOM_STEP) * 1000) / 1000;
|
|
168
|
+
const next = by > 0 ? Math.floor(grid + 1e-9) + 1 : Math.ceil(grid - 1e-9) - 1;
|
|
169
|
+
const value = Math.round(next * ZOOM_STEP * 100) / 100;
|
|
170
|
+
return Math.min(ZOOM_MAX, Math.max(ZOOM_MIN, value));
|
|
171
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,84 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@resumekit/react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Editable, paginated resume templates for React: about thirty print-accurate designs, an in-place editing kit, a static renderer and a self-contained export bundle.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"resume",
|
|
7
|
+
"cv",
|
|
8
|
+
"react",
|
|
9
|
+
"templates",
|
|
10
|
+
"pdf",
|
|
11
|
+
"editor"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"author": "Starlin Gil Cruz",
|
|
15
|
+
"homepage": "https://github.com/rocketbyte/resumekit/tree/main/packages/react#readme",
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/rocketbyte/resumekit.git",
|
|
19
|
+
"directory": "packages/react"
|
|
20
|
+
},
|
|
21
|
+
"bugs": "https://github.com/rocketbyte/resumekit/issues",
|
|
22
|
+
"type": "module",
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.css"
|
|
25
|
+
],
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"src/**/*.ts",
|
|
29
|
+
"src/**/*.tsx",
|
|
30
|
+
"!src/**/*.spec.ts",
|
|
31
|
+
"!src/**/*.spec.tsx",
|
|
32
|
+
"!src/test-setup.ts",
|
|
33
|
+
"!src/compiler",
|
|
34
|
+
"!src/export",
|
|
35
|
+
"!dist/*.tsbuildinfo"
|
|
36
|
+
],
|
|
37
|
+
"exports": {
|
|
38
|
+
".": {
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"default": "./dist/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./document.css": "./dist/document.css",
|
|
43
|
+
"./fonts.css": "./dist/fonts/fonts.css",
|
|
44
|
+
"./static": {
|
|
45
|
+
"types": "./dist/static/api.d.ts",
|
|
46
|
+
"default": "./dist/static/static.mjs"
|
|
47
|
+
},
|
|
48
|
+
"./static.css": "./dist/static/templates.css",
|
|
49
|
+
"./static/*.css": "./dist/static/templates/*.css",
|
|
50
|
+
"./export/*": "./dist/export-bundle/*",
|
|
51
|
+
"./package.json": "./package.json"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@dnd-kit/core": "^6.3.1",
|
|
58
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
59
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
60
|
+
"@resumekit/schema": "^0.1.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"react": "^19.0.0",
|
|
64
|
+
"react-dom": "^19.0.0"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"react": "^19.2.8",
|
|
68
|
+
"react-dom": "^19.2.8",
|
|
69
|
+
"zod": "^4.4.3"
|
|
70
|
+
},
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=20.19"
|
|
73
|
+
},
|
|
74
|
+
"scripts": {
|
|
75
|
+
"build": "rm -rf dist && tsc -b tsconfig.lib.json && tsx scripts/copy-assets.ts && vite build --config vite.static.config.mts && tsx --conditions=@resumekit/source scripts/build-static-css.ts && vite build --config vite.export.config.mts",
|
|
76
|
+
"dev": "tsx scripts/generate-templates.ts --watch",
|
|
77
|
+
"gallery": "vite --config gallery/vite.config.mts",
|
|
78
|
+
"typecheck": "tsc -b tsconfig.spec.json",
|
|
79
|
+
"test": "vitest run",
|
|
80
|
+
"generate-templates": "tsx scripts/generate-templates.ts",
|
|
81
|
+
"check-templates": "tsx scripts/generate-templates.ts --check",
|
|
82
|
+
"check:package": "rm -rf out-tsc/pack && pnpm pack --pack-destination out-tsc/pack >/dev/null && publint --strict --pack pnpm && attw out-tsc/pack/*.tgz --profile esm-only --exclude-entrypoints ./document.css ./fonts.css ./static.css ./static/templates.css ./export/bundle.js ./export/bundle.css"
|
|
83
|
+
}
|
|
6
84
|
}
|