@resumekit/react 0.1.0 → 0.3.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/dist/document.css +1 -0
- package/dist/export-bundle/bundle.css +1 -1
- package/dist/export-bundle/bundle.js +9 -9
- package/dist/fonts/README.md +29 -0
- package/dist/fonts/dmsans-400.woff2 +0 -0
- package/dist/fonts/dmsans-400i.woff2 +0 -0
- package/dist/fonts/dmsans-700.woff2 +0 -0
- package/dist/fonts/dmsans-700i.woff2 +0 -0
- package/dist/fonts/firasans-400.woff2 +0 -0
- package/dist/fonts/firasans-400i.woff2 +0 -0
- package/dist/fonts/firasans-700.woff2 +0 -0
- package/dist/fonts/firasans-700i.woff2 +0 -0
- package/dist/fonts/fonts.css +481 -0
- package/dist/fonts/inter-400.woff2 +0 -0
- package/dist/fonts/inter-400i.woff2 +0 -0
- package/dist/fonts/inter-700.woff2 +0 -0
- package/dist/fonts/inter-700i.woff2 +0 -0
- package/dist/fonts/librefranklin-400.woff2 +0 -0
- package/dist/fonts/librefranklin-400i.woff2 +0 -0
- package/dist/fonts/librefranklin-700.woff2 +0 -0
- package/dist/fonts/librefranklin-700i.woff2 +0 -0
- package/dist/fonts/licenses/dmsans-OFL.txt +93 -0
- package/dist/fonts/licenses/firasans-OFL.txt +93 -0
- package/dist/fonts/licenses/inter-OFL.txt +93 -0
- package/dist/fonts/licenses/librefranklin-OFL.txt +93 -0
- package/dist/fonts/licenses/lora-OFL.txt +93 -0
- package/dist/fonts/licenses/montserrat-OFL.txt +93 -0
- package/dist/fonts/licenses/notosans-OFL.txt +93 -0
- package/dist/fonts/licenses/nunitosans-OFL.txt +93 -0
- package/dist/fonts/licenses/opensans-OFL.txt +93 -0
- package/dist/fonts/licenses/playfair-OFL.txt +93 -0
- package/dist/fonts/licenses/plexsans-OFL.txt +93 -0
- package/dist/fonts/licenses/plexserif-OFL.txt +93 -0
- package/dist/fonts/licenses/sourceserif4-OFL.txt +93 -0
- package/dist/fonts/licenses/spectral-OFL.txt +93 -0
- package/dist/fonts/licenses/worksans-OFL.txt +93 -0
- package/dist/fonts/lora-400.woff2 +0 -0
- package/dist/fonts/lora-400i.woff2 +0 -0
- package/dist/fonts/lora-700.woff2 +0 -0
- package/dist/fonts/lora-700i.woff2 +0 -0
- package/dist/fonts/montserrat-400.woff2 +0 -0
- package/dist/fonts/montserrat-400i.woff2 +0 -0
- package/dist/fonts/montserrat-700.woff2 +0 -0
- package/dist/fonts/montserrat-700i.woff2 +0 -0
- package/dist/fonts/notosans-400.woff2 +0 -0
- package/dist/fonts/notosans-400i.woff2 +0 -0
- package/dist/fonts/notosans-700.woff2 +0 -0
- package/dist/fonts/notosans-700i.woff2 +0 -0
- package/dist/fonts/nunitosans-400.woff2 +0 -0
- package/dist/fonts/nunitosans-400i.woff2 +0 -0
- package/dist/fonts/nunitosans-700.woff2 +0 -0
- package/dist/fonts/nunitosans-700i.woff2 +0 -0
- package/dist/fonts/opensans-400.woff2 +0 -0
- package/dist/fonts/opensans-400i.woff2 +0 -0
- package/dist/fonts/opensans-700.woff2 +0 -0
- package/dist/fonts/opensans-700i.woff2 +0 -0
- package/dist/fonts/playfair-400.woff2 +0 -0
- package/dist/fonts/playfair-400i.woff2 +0 -0
- package/dist/fonts/playfair-700.woff2 +0 -0
- package/dist/fonts/playfair-700i.woff2 +0 -0
- package/dist/fonts/plexsans-400.woff2 +0 -0
- package/dist/fonts/plexsans-400i.woff2 +0 -0
- package/dist/fonts/plexsans-700.woff2 +0 -0
- package/dist/fonts/plexsans-700i.woff2 +0 -0
- package/dist/fonts/plexserif-400.woff2 +0 -0
- package/dist/fonts/plexserif-400i.woff2 +0 -0
- package/dist/fonts/plexserif-700.woff2 +0 -0
- package/dist/fonts/plexserif-700i.woff2 +0 -0
- package/dist/fonts/raleway-700i.woff2 +0 -0
- package/dist/fonts/roboto-700i.woff2 +0 -0
- package/dist/fonts/sourcesans3-700i.woff2 +0 -0
- package/dist/fonts/sourceserif4-400.woff2 +0 -0
- package/dist/fonts/sourceserif4-400i.woff2 +0 -0
- package/dist/fonts/sourceserif4-700.woff2 +0 -0
- package/dist/fonts/sourceserif4-700i.woff2 +0 -0
- package/dist/fonts/spectral-400.woff2 +0 -0
- package/dist/fonts/spectral-400i.woff2 +0 -0
- package/dist/fonts/spectral-700.woff2 +0 -0
- package/dist/fonts/spectral-700i.woff2 +0 -0
- package/dist/fonts/worksans-400.woff2 +0 -0
- package/dist/fonts/worksans-400i.woff2 +0 -0
- package/dist/fonts/worksans-700.woff2 +0 -0
- package/dist/fonts/worksans-700i.woff2 +0 -0
- package/dist/kit/documentStyle.d.ts +8 -0
- package/dist/kit/documentStyle.d.ts.map +1 -1
- package/dist/kit/documentStyle.js +49 -1
- package/dist/kit/typography.css +118 -0
- package/dist/nodes/formatting.d.ts +5 -1
- package/dist/nodes/formatting.d.ts.map +1 -1
- package/dist/nodes/formatting.js +4 -1
- package/dist/nodes/locked.d.ts.map +1 -1
- package/dist/nodes/locked.js +3 -0
- package/dist/static/static.mjs +294 -4
- package/dist/templates/academic/AcademicDocument.d.ts.map +1 -1
- package/dist/templates/academic/AcademicDocument.js +2 -2
- package/dist/templates/alta/AltaDocument.d.ts.map +1 -1
- package/dist/templates/alta/AltaDocument.js +2 -2
- package/dist/templates/classic/ClassicDocument.d.ts.map +1 -1
- package/dist/templates/classic/ClassicDocument.js +2 -2
- package/dist/templates/cobalt/CobaltDocument.d.ts.map +1 -1
- package/dist/templates/cobalt/CobaltDocument.js +2 -2
- package/dist/templates/compact/CompactDocument.d.ts.map +1 -1
- package/dist/templates/compact/CompactDocument.js +2 -2
- package/dist/templates/contemporary/ContemporaryDocument.d.ts.map +1 -1
- package/dist/templates/contemporary/ContemporaryDocument.js +2 -2
- package/dist/templates/creative/CreativeDocument.d.ts.map +1 -1
- package/dist/templates/creative/CreativeDocument.js +2 -2
- package/dist/templates/crimson/CrimsonDocument.d.ts.map +1 -1
- package/dist/templates/crimson/CrimsonDocument.js +2 -2
- package/dist/templates/curve/CurveDocument.d.ts.map +1 -1
- package/dist/templates/curve/CurveDocument.js +2 -2
- package/dist/templates/double-column/DoubleColumnDocument.d.ts.map +1 -1
- package/dist/templates/double-column/DoubleColumnDocument.js +2 -2
- package/dist/templates/double-column-logos/DoubleColumnLogosDocument.d.ts.map +1 -1
- package/dist/templates/double-column-logos/DoubleColumnLogosDocument.js +2 -2
- package/dist/templates/elegant/ElegantDocument.d.ts.map +1 -1
- package/dist/templates/elegant/ElegantDocument.js +2 -2
- package/dist/templates/elegant-logos/ElegantLogosDocument.d.ts.map +1 -1
- package/dist/templates/elegant-logos/ElegantLogosDocument.js +2 -2
- package/dist/templates/engineer/EngineerDocument.d.ts.map +1 -1
- package/dist/templates/engineer/EngineerDocument.js +2 -2
- package/dist/templates/executive/ExecutiveDocument.d.ts.map +1 -1
- package/dist/templates/executive/ExecutiveDocument.js +2 -2
- package/dist/templates/harvard/HarvardDocument.d.ts.map +1 -1
- package/dist/templates/harvard/HarvardDocument.js +2 -2
- package/dist/templates/hipster/HipsterDocument.d.ts.map +1 -1
- package/dist/templates/hipster/HipsterDocument.js +2 -2
- package/dist/templates/ivy/IvyDocument.d.ts.map +1 -1
- package/dist/templates/ivy/IvyDocument.js +2 -2
- package/dist/templates/meridian/MeridianDocument.d.ts.map +1 -1
- package/dist/templates/meridian/MeridianDocument.js +2 -2
- package/dist/templates/modern/ModernDocument.d.ts.map +1 -1
- package/dist/templates/modern/ModernDocument.js +2 -2
- package/dist/templates/polished/PolishedDocument.d.ts.map +1 -1
- package/dist/templates/polished/PolishedDocument.js +2 -2
- package/dist/templates/portrait/PortraitDocument.d.ts.map +1 -1
- package/dist/templates/portrait/PortraitDocument.js +2 -2
- package/dist/templates/prism/PrismDocument.d.ts.map +1 -1
- package/dist/templates/prism/PrismDocument.js +2 -2
- package/dist/templates/scholar/ScholarDocument.d.ts.map +1 -1
- package/dist/templates/scholar/ScholarDocument.js +2 -2
- package/dist/templates/split/SplitDocument.d.ts.map +1 -1
- package/dist/templates/split/SplitDocument.js +2 -2
- package/dist/templates/stylish/StylishDocument.d.ts.map +1 -1
- package/dist/templates/stylish/StylishDocument.js +2 -2
- package/dist/templates/timeline/TimelineDocument.d.ts.map +1 -1
- package/dist/templates/timeline/TimelineDocument.js +2 -2
- package/package.json +2 -2
- package/src/compiler/emit.ts +2 -2
- package/src/kit/documentStyle.ts +55 -0
- package/src/nodes/formatting.ts +13 -1
- package/src/nodes/locked.ts +3 -0
- package/src/templates/academic/AcademicDocument.tsx +5 -1
- package/src/templates/alta/AltaDocument.tsx +5 -1
- package/src/templates/classic/ClassicDocument.tsx +5 -1
- package/src/templates/cobalt/CobaltDocument.tsx +5 -1
- package/src/templates/compact/CompactDocument.tsx +5 -1
- package/src/templates/contemporary/ContemporaryDocument.tsx +5 -1
- package/src/templates/creative/CreativeDocument.tsx +5 -1
- package/src/templates/crimson/CrimsonDocument.tsx +5 -1
- package/src/templates/curve/CurveDocument.tsx +5 -1
- package/src/templates/double-column/DoubleColumnDocument.tsx +5 -1
- package/src/templates/double-column-logos/DoubleColumnLogosDocument.tsx +5 -1
- package/src/templates/elegant/ElegantDocument.tsx +5 -1
- package/src/templates/elegant-logos/ElegantLogosDocument.tsx +5 -1
- package/src/templates/engineer/EngineerDocument.tsx +5 -1
- package/src/templates/executive/ExecutiveDocument.tsx +5 -1
- package/src/templates/harvard/HarvardDocument.tsx +5 -1
- package/src/templates/hipster/HipsterDocument.tsx +5 -1
- package/src/templates/ivy/IvyDocument.tsx +5 -1
- package/src/templates/meridian/MeridianDocument.tsx +5 -1
- package/src/templates/modern/ModernDocument.tsx +5 -1
- package/src/templates/polished/PolishedDocument.tsx +5 -1
- package/src/templates/portrait/PortraitDocument.tsx +5 -1
- package/src/templates/prism/PrismDocument.tsx +5 -1
- package/src/templates/scholar/ScholarDocument.tsx +5 -1
- package/src/templates/split/SplitDocument.tsx +5 -1
- package/src/templates/stylish/StylishDocument.tsx +5 -1
- package/src/templates/timeline/TimelineDocument.tsx +5 -1
package/dist/static/static.mjs
CHANGED
|
@@ -15429,7 +15429,7 @@ function spaceAtStep(steps) {
|
|
|
15429
15429
|
}
|
|
15430
15430
|
/** A format carrying no flags says nothing; it is dropped rather than stored. */
|
|
15431
15431
|
function formatIsEmpty(format) {
|
|
15432
|
-
return format.bold === void 0 && format.align === void 0 && format.ink === void 0 && format.href === void 0 && (format.space === void 0 || format.space === "none");
|
|
15432
|
+
return format.bold === void 0 && format.italic === void 0 && format.underline === void 0 && format.step === void 0 && format.align === void 0 && format.ink === void 0 && format.href === void 0 && (format.space === void 0 || format.space === "none");
|
|
15433
15433
|
}
|
|
15434
15434
|
/** The format for one path, or undefined when the field carries none. */
|
|
15435
15435
|
function formatFor(formats, path) {
|
|
@@ -15533,7 +15533,7 @@ function additionSlots(base, structural) {
|
|
|
15533
15533
|
function additionPaths(base, edits) {
|
|
15534
15534
|
return additionSlots(base, edits.filter((edit) => !isSetEdit(edit)));
|
|
15535
15535
|
}
|
|
15536
|
-
var TEMPLATES, TemplateIdSchema, FORBIDDEN_SEGMENTS, SEGMENT, ResumeFieldPathSchema, EditValueSchema, SetEditSchema, APPENDABLE_SECTIONS, AppendableSectionSchema, AppendEditSchema, DropEditSchema, SectionEditSchema, APPEND_SCHEMAS, SlotSchema, slotKey, ReorderEditSchema, HideEditSchema, ResumeEditSchema, isSetEdit, isAppendEdit, isDropEdit, isSectionEdit, isReorderEdit, isHideEdit, ResumeEditsSchema, DOCUMENT_FONTS, DocumentFontIdSchema, INK_COLORS, InkIdSchema, DENSITIES, DensityIdSchema, SPACE_QUANTUM, SECTION_SPACES, SectionSpaceIdSchema, SPACE_SCALE, RESUME_SECTIONS, ResumeSectionIdSchema, SCALE_MIN, SCALE_MAX, DocumentStyleSchema, FieldAlignSchema, FieldFormatSchema, ResumeFormatsSchema, SectionSpacingSchema, ResumeSectionSpacingSchema;
|
|
15536
|
+
var TEMPLATES, TemplateIdSchema, FORBIDDEN_SEGMENTS, SEGMENT, ResumeFieldPathSchema, EditValueSchema, SetEditSchema, APPENDABLE_SECTIONS, AppendableSectionSchema, AppendEditSchema, DropEditSchema, SectionEditSchema, APPEND_SCHEMAS, SlotSchema, slotKey, ReorderEditSchema, HideEditSchema, ResumeEditSchema, isSetEdit, isAppendEdit, isDropEdit, isSectionEdit, isReorderEdit, isHideEdit, ResumeEditsSchema, DOCUMENT_FONTS, DocumentFontIdSchema, INK_COLORS, InkIdSchema, DENSITIES, DensityIdSchema, SPACE_QUANTUM, SECTION_SPACES, SectionSpaceIdSchema, SPACE_SCALE, RESUME_SECTIONS, ResumeSectionIdSchema, SCALE_MIN, SCALE_MAX, ROLE_SIZE_MIN, ROLE_SIZE_MAX, RoleSizeSchema, LETTER_SPACINGS, LetterSpacingIdSchema, LINE_HEIGHTS, LineHeightIdSchema, HEADING_CASES, HeadingCaseIdSchema, HEADING_WEIGHTS, HeadingWeightIdSchema, DocumentStyleSchema, FieldAlignSchema, FIELD_STEPS, FieldStepSchema, FieldFormatSchema, ResumeFormatsSchema, SectionSpacingSchema, ResumeSectionSpacingSchema;
|
|
15537
15537
|
var init_template = __esmMin((() => {
|
|
15538
15538
|
init_zod();
|
|
15539
15539
|
init_collections();
|
|
@@ -16005,53 +16005,177 @@ var init_template = __esmMin((() => {
|
|
|
16005
16005
|
DOCUMENT_FONTS = {
|
|
16006
16006
|
helvetica: {
|
|
16007
16007
|
name: "Helvetica",
|
|
16008
|
+
category: "sans",
|
|
16008
16009
|
supplied: "TeX Gyre Heros",
|
|
16009
16010
|
stack: "'TeX Gyre Heros', 'Helvetica Neue', Helvetica, Arial, 'Liberation Sans', sans-serif"
|
|
16010
16011
|
},
|
|
16011
16012
|
arial: {
|
|
16012
16013
|
name: "Arial",
|
|
16014
|
+
category: "sans",
|
|
16013
16015
|
supplied: "Arimo",
|
|
16014
16016
|
stack: "Arimo, Arial, 'Helvetica Neue', Helvetica, 'Liberation Sans', sans-serif"
|
|
16015
16017
|
},
|
|
16016
16018
|
calibri: {
|
|
16017
16019
|
name: "Calibri",
|
|
16020
|
+
category: "sans",
|
|
16018
16021
|
supplied: "Carlito",
|
|
16019
16022
|
stack: "Carlito, Calibri, Candara, Segoe, 'Segoe UI', Optima, Arial, sans-serif"
|
|
16020
16023
|
},
|
|
16021
16024
|
georgia: {
|
|
16022
16025
|
name: "Georgia",
|
|
16026
|
+
category: "serif",
|
|
16023
16027
|
supplied: "Gelasio",
|
|
16024
16028
|
stack: "Gelasio, Georgia, Cambria, 'Times New Roman', Times, serif"
|
|
16025
16029
|
},
|
|
16026
16030
|
garamond: {
|
|
16027
16031
|
name: "Garamond",
|
|
16032
|
+
category: "serif",
|
|
16028
16033
|
supplied: "EB Garamond",
|
|
16029
16034
|
stack: "'EB Garamond', Garamond, Baskerville, 'Baskerville Old Face', 'Times New Roman', serif"
|
|
16030
16035
|
},
|
|
16031
16036
|
times: {
|
|
16032
16037
|
name: "Times",
|
|
16038
|
+
category: "serif",
|
|
16033
16039
|
supplied: "Tinos",
|
|
16034
16040
|
stack: "Tinos, 'Times New Roman', Times, Georgia, serif"
|
|
16035
16041
|
},
|
|
16036
16042
|
lato: {
|
|
16037
16043
|
name: "Lato",
|
|
16044
|
+
category: "sans",
|
|
16038
16045
|
supplied: "Lato",
|
|
16039
16046
|
stack: "Lato, 'Segoe UI', Candara, Optima, Calibri, sans-serif"
|
|
16040
16047
|
},
|
|
16041
16048
|
condensed: {
|
|
16042
16049
|
name: "Roboto Condensed",
|
|
16050
|
+
category: "sans",
|
|
16043
16051
|
supplied: "Roboto Condensed",
|
|
16044
16052
|
stack: "'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue Condensed', 'Liberation Sans Narrow', sans-serif"
|
|
16045
16053
|
},
|
|
16046
16054
|
ptserif: {
|
|
16047
16055
|
name: "PT Serif",
|
|
16056
|
+
category: "serif",
|
|
16048
16057
|
supplied: "PT Serif",
|
|
16049
16058
|
stack: "'PT Serif', Charter, Cambria, Georgia, 'Times New Roman', serif"
|
|
16050
16059
|
},
|
|
16051
16060
|
bitter: {
|
|
16052
16061
|
name: "Bitter",
|
|
16062
|
+
category: "slab",
|
|
16053
16063
|
supplied: "Bitter",
|
|
16054
16064
|
stack: "Bitter, 'Roboto Slab', Rockwell, 'Courier New', Cambria, Georgia, serif"
|
|
16065
|
+
},
|
|
16066
|
+
inter: {
|
|
16067
|
+
name: "Inter",
|
|
16068
|
+
category: "sans",
|
|
16069
|
+
supplied: "Inter",
|
|
16070
|
+
stack: "Inter, 'Helvetica Neue', Arial, sans-serif"
|
|
16071
|
+
},
|
|
16072
|
+
opensans: {
|
|
16073
|
+
name: "Open Sans",
|
|
16074
|
+
category: "sans",
|
|
16075
|
+
supplied: "Open Sans",
|
|
16076
|
+
stack: "'Open Sans', 'Segoe UI', Arial, sans-serif"
|
|
16077
|
+
},
|
|
16078
|
+
montserrat: {
|
|
16079
|
+
name: "Montserrat",
|
|
16080
|
+
category: "sans",
|
|
16081
|
+
supplied: "Montserrat",
|
|
16082
|
+
stack: "Montserrat, 'Century Gothic', Arial, sans-serif"
|
|
16083
|
+
},
|
|
16084
|
+
plexsans: {
|
|
16085
|
+
name: "IBM Plex Sans",
|
|
16086
|
+
category: "sans",
|
|
16087
|
+
supplied: "IBM Plex Sans",
|
|
16088
|
+
stack: "'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif"
|
|
16089
|
+
},
|
|
16090
|
+
worksans: {
|
|
16091
|
+
name: "Work Sans",
|
|
16092
|
+
category: "sans",
|
|
16093
|
+
supplied: "Work Sans",
|
|
16094
|
+
stack: "'Work Sans', 'Helvetica Neue', Arial, sans-serif"
|
|
16095
|
+
},
|
|
16096
|
+
nunitosans: {
|
|
16097
|
+
name: "Nunito Sans",
|
|
16098
|
+
category: "sans",
|
|
16099
|
+
supplied: "Nunito Sans",
|
|
16100
|
+
stack: "'Nunito Sans', 'Segoe UI', Arial, sans-serif"
|
|
16101
|
+
},
|
|
16102
|
+
dmsans: {
|
|
16103
|
+
name: "DM Sans",
|
|
16104
|
+
category: "sans",
|
|
16105
|
+
supplied: "DM Sans",
|
|
16106
|
+
stack: "'DM Sans', 'Helvetica Neue', Arial, sans-serif"
|
|
16107
|
+
},
|
|
16108
|
+
firasans: {
|
|
16109
|
+
name: "Fira Sans",
|
|
16110
|
+
category: "sans",
|
|
16111
|
+
supplied: "Fira Sans",
|
|
16112
|
+
stack: "'Fira Sans', 'Segoe UI', Arial, sans-serif"
|
|
16113
|
+
},
|
|
16114
|
+
librefranklin: {
|
|
16115
|
+
name: "Libre Franklin",
|
|
16116
|
+
category: "sans",
|
|
16117
|
+
supplied: "Libre Franklin",
|
|
16118
|
+
stack: "'Libre Franklin', 'Franklin Gothic', Arial, sans-serif"
|
|
16119
|
+
},
|
|
16120
|
+
notosans: {
|
|
16121
|
+
name: "Noto Sans",
|
|
16122
|
+
category: "sans",
|
|
16123
|
+
supplied: "Noto Sans",
|
|
16124
|
+
stack: "'Noto Sans', 'Segoe UI', Arial, sans-serif"
|
|
16125
|
+
},
|
|
16126
|
+
lora: {
|
|
16127
|
+
name: "Lora",
|
|
16128
|
+
category: "serif",
|
|
16129
|
+
supplied: "Lora",
|
|
16130
|
+
stack: "Lora, Georgia, 'Times New Roman', serif"
|
|
16131
|
+
},
|
|
16132
|
+
sourceserif: {
|
|
16133
|
+
name: "Source Serif",
|
|
16134
|
+
category: "serif",
|
|
16135
|
+
supplied: "Source Serif 4",
|
|
16136
|
+
stack: "'Source Serif 4', Georgia, 'Times New Roman', serif"
|
|
16137
|
+
},
|
|
16138
|
+
plexserif: {
|
|
16139
|
+
name: "IBM Plex Serif",
|
|
16140
|
+
category: "serif",
|
|
16141
|
+
supplied: "IBM Plex Serif",
|
|
16142
|
+
stack: "'IBM Plex Serif', Georgia, 'Times New Roman', serif"
|
|
16143
|
+
},
|
|
16144
|
+
spectral: {
|
|
16145
|
+
name: "Spectral",
|
|
16146
|
+
category: "serif",
|
|
16147
|
+
supplied: "Spectral",
|
|
16148
|
+
stack: "Spectral, Garamond, Georgia, serif"
|
|
16149
|
+
},
|
|
16150
|
+
playfair: {
|
|
16151
|
+
name: "Playfair Display",
|
|
16152
|
+
category: "serif",
|
|
16153
|
+
supplied: "Playfair Display",
|
|
16154
|
+
stack: "'Playfair Display', Didot, Georgia, serif"
|
|
16155
|
+
},
|
|
16156
|
+
roboto: {
|
|
16157
|
+
name: "Roboto",
|
|
16158
|
+
category: "sans",
|
|
16159
|
+
supplied: "Roboto",
|
|
16160
|
+
stack: "Roboto, 'Helvetica Neue', Arial, sans-serif"
|
|
16161
|
+
},
|
|
16162
|
+
sourcesans: {
|
|
16163
|
+
name: "Source Sans",
|
|
16164
|
+
category: "sans",
|
|
16165
|
+
supplied: "Source Sans 3",
|
|
16166
|
+
stack: "'Source Sans 3', 'Segoe UI', Arial, sans-serif"
|
|
16167
|
+
},
|
|
16168
|
+
raleway: {
|
|
16169
|
+
name: "Raleway",
|
|
16170
|
+
category: "sans",
|
|
16171
|
+
supplied: "Raleway",
|
|
16172
|
+
stack: "Raleway, 'Century Gothic', Arial, sans-serif"
|
|
16173
|
+
},
|
|
16174
|
+
latinmodern: {
|
|
16175
|
+
name: "Latin Modern (LaTeX)",
|
|
16176
|
+
category: "serif",
|
|
16177
|
+
supplied: "Latin Modern Roman",
|
|
16178
|
+
stack: "'Latin Modern Roman', 'Computer Modern', 'Times New Roman', serif"
|
|
16055
16179
|
}
|
|
16056
16180
|
};
|
|
16057
16181
|
DocumentFontIdSchema = _enum(Object.keys(DOCUMENT_FONTS));
|
|
@@ -16079,6 +16203,38 @@ var init_template = __esmMin((() => {
|
|
|
16079
16203
|
grey: {
|
|
16080
16204
|
name: "Grey",
|
|
16081
16205
|
hex: "#5a5a5a"
|
|
16206
|
+
},
|
|
16207
|
+
charcoal: {
|
|
16208
|
+
name: "Charcoal",
|
|
16209
|
+
hex: "#2e3236"
|
|
16210
|
+
},
|
|
16211
|
+
cobalt: {
|
|
16212
|
+
name: "Cobalt",
|
|
16213
|
+
hex: "#1d4a91"
|
|
16214
|
+
},
|
|
16215
|
+
indigo: {
|
|
16216
|
+
name: "Indigo",
|
|
16217
|
+
hex: "#2f3878"
|
|
16218
|
+
},
|
|
16219
|
+
teal: {
|
|
16220
|
+
name: "Teal",
|
|
16221
|
+
hex: "#0f5257"
|
|
16222
|
+
},
|
|
16223
|
+
olive: {
|
|
16224
|
+
name: "Olive",
|
|
16225
|
+
hex: "#404a1c"
|
|
16226
|
+
},
|
|
16227
|
+
plum: {
|
|
16228
|
+
name: "Plum",
|
|
16229
|
+
hex: "#4e2a5a"
|
|
16230
|
+
},
|
|
16231
|
+
rust: {
|
|
16232
|
+
name: "Rust",
|
|
16233
|
+
hex: "#7c3416"
|
|
16234
|
+
},
|
|
16235
|
+
brown: {
|
|
16236
|
+
name: "Brown",
|
|
16237
|
+
hex: "#57382a"
|
|
16082
16238
|
}
|
|
16083
16239
|
};
|
|
16084
16240
|
InkIdSchema = _enum(Object.keys(INK_COLORS));
|
|
@@ -16124,22 +16280,99 @@ var init_template = __esmMin((() => {
|
|
|
16124
16280
|
ResumeSectionIdSchema = _enum(RESUME_SECTIONS);
|
|
16125
16281
|
SCALE_MIN = .85;
|
|
16126
16282
|
SCALE_MAX = 1.2;
|
|
16283
|
+
ROLE_SIZE_MIN = .8;
|
|
16284
|
+
ROLE_SIZE_MAX = 1.3;
|
|
16285
|
+
RoleSizeSchema = number().min(ROLE_SIZE_MIN).max(ROLE_SIZE_MAX);
|
|
16286
|
+
LETTER_SPACINGS = {
|
|
16287
|
+
tight: {
|
|
16288
|
+
name: "Tight",
|
|
16289
|
+
em: -.01
|
|
16290
|
+
},
|
|
16291
|
+
wide: {
|
|
16292
|
+
name: "Wide",
|
|
16293
|
+
em: .02
|
|
16294
|
+
}
|
|
16295
|
+
};
|
|
16296
|
+
LetterSpacingIdSchema = _enum(Object.keys(LETTER_SPACINGS));
|
|
16297
|
+
LINE_HEIGHTS = {
|
|
16298
|
+
compact: {
|
|
16299
|
+
name: "Compact",
|
|
16300
|
+
value: 1.15
|
|
16301
|
+
},
|
|
16302
|
+
relaxed: {
|
|
16303
|
+
name: "Relaxed",
|
|
16304
|
+
value: 1.4
|
|
16305
|
+
},
|
|
16306
|
+
airy: {
|
|
16307
|
+
name: "Airy",
|
|
16308
|
+
value: 1.55
|
|
16309
|
+
}
|
|
16310
|
+
};
|
|
16311
|
+
LineHeightIdSchema = _enum(Object.keys(LINE_HEIGHTS));
|
|
16312
|
+
HEADING_CASES = {
|
|
16313
|
+
normal: { name: "As written" },
|
|
16314
|
+
upper: { name: "Uppercase" },
|
|
16315
|
+
smallcaps: { name: "Small caps" }
|
|
16316
|
+
};
|
|
16317
|
+
HeadingCaseIdSchema = _enum(Object.keys(HEADING_CASES));
|
|
16318
|
+
HEADING_WEIGHTS = {
|
|
16319
|
+
regular: {
|
|
16320
|
+
name: "Regular",
|
|
16321
|
+
weight: 400
|
|
16322
|
+
},
|
|
16323
|
+
bold: {
|
|
16324
|
+
name: "Bold",
|
|
16325
|
+
weight: 700
|
|
16326
|
+
}
|
|
16327
|
+
};
|
|
16328
|
+
HeadingWeightIdSchema = _enum(Object.keys(HEADING_WEIGHTS));
|
|
16127
16329
|
DocumentStyleSchema = object({
|
|
16128
16330
|
font: DocumentFontIdSchema,
|
|
16129
16331
|
ink: InkIdSchema,
|
|
16130
16332
|
scale: number().min(SCALE_MIN).max(SCALE_MAX).describe("Multiplier on the template type scale."),
|
|
16131
16333
|
accent: InkIdSchema.optional(),
|
|
16132
16334
|
/** Absent means the template's own rhythm — see {@link DENSITIES}. */
|
|
16133
|
-
density: DensityIdSchema.optional()
|
|
16335
|
+
density: DensityIdSchema.optional(),
|
|
16336
|
+
/** Letter spacing of the text — see {@link LETTER_SPACINGS}. */
|
|
16337
|
+
tracking: LetterSpacingIdSchema.optional(),
|
|
16338
|
+
/** Line height of the text — see {@link LINE_HEIGHTS}. */
|
|
16339
|
+
leading: LineHeightIdSchema.optional(),
|
|
16340
|
+
/** The typeface of the name and section headings, from the same vetted set. */
|
|
16341
|
+
headingFont: DocumentFontIdSchema.optional(),
|
|
16342
|
+
/** How section headings are cased — see {@link HEADING_CASES}. */
|
|
16343
|
+
headingCase: HeadingCaseIdSchema.optional(),
|
|
16344
|
+
/** How heavy section headings are — see {@link HEADING_WEIGHTS}. */
|
|
16345
|
+
headingWeight: HeadingWeightIdSchema.optional(),
|
|
16346
|
+
/** The name's size, over the template's — see {@link ROLE_SIZE_MIN}. */
|
|
16347
|
+
nameSize: RoleSizeSchema.optional(),
|
|
16348
|
+
/** The section headings' size, over the template's. */
|
|
16349
|
+
headingSize: RoleSizeSchema.optional(),
|
|
16350
|
+
/** The body text's size, over the template's. */
|
|
16351
|
+
bodySize: RoleSizeSchema.optional()
|
|
16134
16352
|
});
|
|
16135
16353
|
FieldAlignSchema = _enum([
|
|
16136
16354
|
"left",
|
|
16137
16355
|
"center",
|
|
16138
16356
|
"right"
|
|
16139
16357
|
]);
|
|
16358
|
+
FIELD_STEPS = {
|
|
16359
|
+
smaller: {
|
|
16360
|
+
name: "Smaller",
|
|
16361
|
+
factor: .9
|
|
16362
|
+
},
|
|
16363
|
+
larger: {
|
|
16364
|
+
name: "Larger",
|
|
16365
|
+
factor: 1.12
|
|
16366
|
+
}
|
|
16367
|
+
};
|
|
16368
|
+
FieldStepSchema = _enum(Object.keys(FIELD_STEPS));
|
|
16140
16369
|
FieldFormatSchema = object({
|
|
16141
16370
|
path: ResumeFieldPathSchema,
|
|
16142
16371
|
bold: boolean().optional(),
|
|
16372
|
+
italic: boolean().optional(),
|
|
16373
|
+
underline: boolean().optional(),
|
|
16374
|
+
/** One step smaller or larger — see {@link FIELD_STEPS}. */
|
|
16375
|
+
step: FieldStepSchema.optional(),
|
|
16143
16376
|
align: FieldAlignSchema.optional(),
|
|
16144
16377
|
ink: InkIdSchema.optional(),
|
|
16145
16378
|
/** Extra space above this field — the one place a section rule cannot reach. */
|
|
@@ -16452,6 +16685,9 @@ function formatClass(format, base) {
|
|
|
16452
16685
|
return [
|
|
16453
16686
|
base,
|
|
16454
16687
|
format.bold ? "is-bold" : "",
|
|
16688
|
+
format.italic ? "is-italic" : "",
|
|
16689
|
+
format.underline ? "is-underline" : "",
|
|
16690
|
+
format.step ? `is-step-${format.step}` : "",
|
|
16455
16691
|
format.align ? `is-${format.align}` : ""
|
|
16456
16692
|
].filter(Boolean).join(" ");
|
|
16457
16693
|
}
|
|
@@ -22811,7 +23047,34 @@ function documentStyle(prefix, style) {
|
|
|
22811
23047
|
[`--${prefix}-ink`]: INK_COLORS[style.ink].hex,
|
|
22812
23048
|
[`--${prefix}-scale`]: String(style.scale),
|
|
22813
23049
|
...style.accent ? { [`--${prefix}-accent`]: INK_COLORS[style.accent].hex } : {},
|
|
22814
|
-
...style.density ? { [`--${prefix}-density`]: String(DENSITIES[style.density].factor) } : {}
|
|
23050
|
+
...style.density ? { [`--${prefix}-density`]: String(DENSITIES[style.density].factor) } : {},
|
|
23051
|
+
...style.tracking ? { "--rk-tracking": `${LETTER_SPACINGS[style.tracking].em}em` } : {},
|
|
23052
|
+
...style.leading ? { "--rk-leading": String(LINE_HEIGHTS[style.leading].value) } : {},
|
|
23053
|
+
...style.headingFont ? { "--rk-heading-font": DOCUMENT_FONTS[style.headingFont].stack } : {},
|
|
23054
|
+
...style.headingWeight ? { "--rk-heading-weight": String(HEADING_WEIGHTS[style.headingWeight].weight) } : {},
|
|
23055
|
+
...style.nameSize ? { "--rk-name-size": String(style.nameSize) } : {},
|
|
23056
|
+
...style.headingSize ? { "--rk-heading-size": String(style.headingSize) } : {},
|
|
23057
|
+
...style.bodySize ? { "--rk-body-size": String(style.bodySize) } : {}
|
|
23058
|
+
};
|
|
23059
|
+
}
|
|
23060
|
+
/**
|
|
23061
|
+
* Which typographic presets the document chose, as attributes on the template's
|
|
23062
|
+
* root. Only a chosen preset is written: `typography.css` keys every rule on
|
|
23063
|
+
* the attribute's presence, so a document that chose none is drawn by the
|
|
23064
|
+
* template's stylesheet alone — the same guarantee `documentStyle` keeps for
|
|
23065
|
+
* accent and density.
|
|
23066
|
+
*/
|
|
23067
|
+
function documentStyleAttributes(style) {
|
|
23068
|
+
if (!style) return {};
|
|
23069
|
+
return {
|
|
23070
|
+
...style.tracking && { "data-rk-tracking": style.tracking },
|
|
23071
|
+
...style.leading && { "data-rk-leading": style.leading },
|
|
23072
|
+
...style.headingFont && { "data-rk-heading-font": style.headingFont },
|
|
23073
|
+
...style.headingCase && { "data-rk-heading-case": style.headingCase },
|
|
23074
|
+
...style.headingWeight && { "data-rk-heading-weight": style.headingWeight },
|
|
23075
|
+
...style.nameSize && { "data-rk-name-size": "" },
|
|
23076
|
+
...style.headingSize && { "data-rk-heading-size": "" },
|
|
23077
|
+
...style.bodySize && { "data-rk-body-size": "" }
|
|
22815
23078
|
};
|
|
22816
23079
|
}
|
|
22817
23080
|
//#endregion
|
|
@@ -23296,6 +23559,7 @@ function HarvardDocument({ resume }) {
|
|
|
23296
23559
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
23297
23560
|
className: "tpl-harvard",
|
|
23298
23561
|
style: documentStyle("h", style),
|
|
23562
|
+
...documentStyleAttributes(style),
|
|
23299
23563
|
"aria-label": doc.t.resume,
|
|
23300
23564
|
lang: doc.locale,
|
|
23301
23565
|
children: [
|
|
@@ -23718,6 +23982,7 @@ function IvyDocument({ resume }) {
|
|
|
23718
23982
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
23719
23983
|
className: "tpl-ivy",
|
|
23720
23984
|
style: documentStyle("i", style),
|
|
23985
|
+
...documentStyleAttributes(style),
|
|
23721
23986
|
"aria-label": doc.t.resume,
|
|
23722
23987
|
lang: doc.locale,
|
|
23723
23988
|
children: [
|
|
@@ -24075,6 +24340,7 @@ function ClassicDocument({ resume }) {
|
|
|
24075
24340
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
24076
24341
|
className: "tpl-classic",
|
|
24077
24342
|
style: documentStyle("cl", style),
|
|
24343
|
+
...documentStyleAttributes(style),
|
|
24078
24344
|
"aria-label": doc.t.resume,
|
|
24079
24345
|
lang: doc.locale,
|
|
24080
24346
|
children: [
|
|
@@ -24461,6 +24727,7 @@ function CompactDocument({ resume }) {
|
|
|
24461
24727
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
24462
24728
|
className: "tpl-compact",
|
|
24463
24729
|
style: documentStyle("cp", style),
|
|
24730
|
+
...documentStyleAttributes(style),
|
|
24464
24731
|
"aria-label": doc.t.resume,
|
|
24465
24732
|
lang: doc.locale,
|
|
24466
24733
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -24848,6 +25115,7 @@ function TimelineDocument({ resume }) {
|
|
|
24848
25115
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
24849
25116
|
className: "tpl-timeline",
|
|
24850
25117
|
style: documentStyle("tl", style),
|
|
25118
|
+
...documentStyleAttributes(style),
|
|
24851
25119
|
"aria-label": doc.t.resume,
|
|
24852
25120
|
lang: doc.locale,
|
|
24853
25121
|
children: [
|
|
@@ -25246,6 +25514,7 @@ function ModernDocument({ resume }) {
|
|
|
25246
25514
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
25247
25515
|
className: "tpl-modern",
|
|
25248
25516
|
style: documentStyle("md", style),
|
|
25517
|
+
...documentStyleAttributes(style),
|
|
25249
25518
|
"aria-label": doc.t.resume,
|
|
25250
25519
|
lang: doc.locale,
|
|
25251
25520
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -25645,6 +25914,7 @@ function StylishDocument({ resume }) {
|
|
|
25645
25914
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
25646
25915
|
className: "tpl-stylish",
|
|
25647
25916
|
style: documentStyle("st", style),
|
|
25917
|
+
...documentStyleAttributes(style),
|
|
25648
25918
|
"aria-label": doc.t.resume,
|
|
25649
25919
|
lang: doc.locale,
|
|
25650
25920
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -26022,6 +26292,7 @@ function CreativeDocument({ resume }) {
|
|
|
26022
26292
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
26023
26293
|
className: "tpl-creative",
|
|
26024
26294
|
style: documentStyle("cr", style),
|
|
26295
|
+
...documentStyleAttributes(style),
|
|
26025
26296
|
"aria-label": doc.t.resume,
|
|
26026
26297
|
lang: doc.locale,
|
|
26027
26298
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -26404,6 +26675,7 @@ function ContemporaryDocument({ resume }) {
|
|
|
26404
26675
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
26405
26676
|
className: "tpl-contemporary",
|
|
26406
26677
|
style: documentStyle("cn", style),
|
|
26678
|
+
...documentStyleAttributes(style),
|
|
26407
26679
|
"aria-label": doc.t.resume,
|
|
26408
26680
|
lang: doc.locale,
|
|
26409
26681
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -26802,6 +27074,7 @@ function DoubleColumnDocument({ resume }) {
|
|
|
26802
27074
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
26803
27075
|
className: "tpl-dc",
|
|
26804
27076
|
style: documentStyle("dc", style),
|
|
27077
|
+
...documentStyleAttributes(style),
|
|
26805
27078
|
"aria-label": doc.t.resume,
|
|
26806
27079
|
lang: doc.locale,
|
|
26807
27080
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -27223,6 +27496,7 @@ function DoubleColumnLogosDocument({ resume }) {
|
|
|
27223
27496
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
27224
27497
|
className: "tpl-dcl",
|
|
27225
27498
|
style: documentStyle("dcl", style),
|
|
27499
|
+
...documentStyleAttributes(style),
|
|
27226
27500
|
"aria-label": doc.t.resume,
|
|
27227
27501
|
lang: doc.locale,
|
|
27228
27502
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -27596,6 +27870,7 @@ function ElegantDocument({ resume }) {
|
|
|
27596
27870
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsx)("article", {
|
|
27597
27871
|
className: "tpl-elegant",
|
|
27598
27872
|
style: documentStyle("el", style),
|
|
27873
|
+
...documentStyleAttributes(style),
|
|
27599
27874
|
"aria-label": doc.t.resume,
|
|
27600
27875
|
lang: doc.locale,
|
|
27601
27876
|
children: /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("div", {
|
|
@@ -28010,6 +28285,7 @@ function ElegantLogosDocument({ resume }) {
|
|
|
28010
28285
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsx)("article", {
|
|
28011
28286
|
className: "tpl-ell",
|
|
28012
28287
|
style: documentStyle("ell", style),
|
|
28288
|
+
...documentStyleAttributes(style),
|
|
28013
28289
|
"aria-label": doc.t.resume,
|
|
28014
28290
|
lang: doc.locale,
|
|
28015
28291
|
children: /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("div", {
|
|
@@ -28411,6 +28687,7 @@ function PolishedDocument({ resume }) {
|
|
|
28411
28687
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsx)("article", {
|
|
28412
28688
|
className: "tpl-polished",
|
|
28413
28689
|
style: documentStyle("po", style),
|
|
28690
|
+
...documentStyleAttributes(style),
|
|
28414
28691
|
"aria-label": doc.t.resume,
|
|
28415
28692
|
lang: doc.locale,
|
|
28416
28693
|
children: /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("div", {
|
|
@@ -28765,6 +29042,7 @@ function ExecutiveDocument({ resume }) {
|
|
|
28765
29042
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
28766
29043
|
className: "tpl-exec",
|
|
28767
29044
|
style: documentStyle("e", style),
|
|
29045
|
+
...documentStyleAttributes(style),
|
|
28768
29046
|
"aria-label": doc.t.resume,
|
|
28769
29047
|
lang: doc.locale,
|
|
28770
29048
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -29161,6 +29439,7 @@ function MeridianDocument({ resume }) {
|
|
|
29161
29439
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
29162
29440
|
className: "tpl-mer",
|
|
29163
29441
|
style: documentStyle("m", style),
|
|
29442
|
+
...documentStyleAttributes(style),
|
|
29164
29443
|
"aria-label": doc.t.resume,
|
|
29165
29444
|
lang: doc.locale,
|
|
29166
29445
|
children: [
|
|
@@ -29579,6 +29858,7 @@ function CobaltDocument({ resume }) {
|
|
|
29579
29858
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
29580
29859
|
className: "tpl-cob",
|
|
29581
29860
|
style: documentStyle("c", style),
|
|
29861
|
+
...documentStyleAttributes(style),
|
|
29582
29862
|
"aria-label": doc.t.resume,
|
|
29583
29863
|
lang: doc.locale,
|
|
29584
29864
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -29993,6 +30273,7 @@ function CrimsonDocument({ resume }) {
|
|
|
29993
30273
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
29994
30274
|
className: "tpl-crimson",
|
|
29995
30275
|
style: documentStyle("crm", style),
|
|
30276
|
+
...documentStyleAttributes(style),
|
|
29996
30277
|
"aria-label": doc.t.resume,
|
|
29997
30278
|
lang: doc.locale,
|
|
29998
30279
|
children: [
|
|
@@ -30382,6 +30663,7 @@ function EngineerDocument({ resume }) {
|
|
|
30382
30663
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
30383
30664
|
className: "tpl-engineer",
|
|
30384
30665
|
style: documentStyle("eng", style),
|
|
30666
|
+
...documentStyleAttributes(style),
|
|
30385
30667
|
"aria-label": doc.t.resume,
|
|
30386
30668
|
lang: doc.locale,
|
|
30387
30669
|
children: [
|
|
@@ -30743,6 +31025,7 @@ function SplitDocument({ resume }) {
|
|
|
30743
31025
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
30744
31026
|
className: "tpl-split",
|
|
30745
31027
|
style: documentStyle("sp", style),
|
|
31028
|
+
...documentStyleAttributes(style),
|
|
30746
31029
|
"aria-label": doc.t.resume,
|
|
30747
31030
|
lang: doc.locale,
|
|
30748
31031
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -31169,6 +31452,7 @@ function AcademicDocument({ resume }) {
|
|
|
31169
31452
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
31170
31453
|
className: "tpl-academic",
|
|
31171
31454
|
style: documentStyle("ac", style),
|
|
31455
|
+
...documentStyleAttributes(style),
|
|
31172
31456
|
"aria-label": doc.t.resume,
|
|
31173
31457
|
lang: doc.locale,
|
|
31174
31458
|
children: [
|
|
@@ -31535,6 +31819,7 @@ function AltaDocument({ resume }) {
|
|
|
31535
31819
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
31536
31820
|
className: "tpl-alta",
|
|
31537
31821
|
style: documentStyle("al", style),
|
|
31822
|
+
...documentStyleAttributes(style),
|
|
31538
31823
|
"aria-label": doc.t.resume,
|
|
31539
31824
|
lang: doc.locale,
|
|
31540
31825
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -31931,6 +32216,7 @@ function PrismDocument({ resume }) {
|
|
|
31931
32216
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
31932
32217
|
className: "tpl-prism",
|
|
31933
32218
|
style: documentStyle("pr", style),
|
|
32219
|
+
...documentStyleAttributes(style),
|
|
31934
32220
|
"aria-label": doc.t.resume,
|
|
31935
32221
|
lang: doc.locale,
|
|
31936
32222
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -32352,6 +32638,7 @@ function HipsterDocument({ resume }) {
|
|
|
32352
32638
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
32353
32639
|
className: "tpl-hipster",
|
|
32354
32640
|
style: documentStyle("hp", style),
|
|
32641
|
+
...documentStyleAttributes(style),
|
|
32355
32642
|
"aria-label": doc.t.resume,
|
|
32356
32643
|
lang: doc.locale,
|
|
32357
32644
|
children: [/* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("header", {
|
|
@@ -32745,6 +33032,7 @@ function ScholarDocument({ resume }) {
|
|
|
32745
33032
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
32746
33033
|
className: "tpl-scholar",
|
|
32747
33034
|
style: documentStyle("sc", style),
|
|
33035
|
+
...documentStyleAttributes(style),
|
|
32748
33036
|
"aria-label": doc.t.resume,
|
|
32749
33037
|
lang: doc.locale,
|
|
32750
33038
|
children: [
|
|
@@ -33126,6 +33414,7 @@ function PortraitDocument({ resume }) {
|
|
|
33126
33414
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsx)("article", {
|
|
33127
33415
|
className: "tpl-portrait",
|
|
33128
33416
|
style: documentStyle("pt", style),
|
|
33417
|
+
...documentStyleAttributes(style),
|
|
33129
33418
|
"aria-label": doc.t.resume,
|
|
33130
33419
|
lang: doc.locale,
|
|
33131
33420
|
children: /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("div", {
|
|
@@ -33535,6 +33824,7 @@ function CurveDocument({ resume }) {
|
|
|
33535
33824
|
return /* @__PURE__ */ (0, import_jsx_runtime$18.jsxs)("article", {
|
|
33536
33825
|
className: "tpl-curve",
|
|
33537
33826
|
style: documentStyle("cv", style),
|
|
33827
|
+
...documentStyleAttributes(style),
|
|
33538
33828
|
"aria-label": doc.t.resume,
|
|
33539
33829
|
lang: doc.locale,
|
|
33540
33830
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcademicDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/academic/AcademicDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"AcademicDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/academic/AcademicDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,gBAAgB,CAAC;AAGxB,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,EAAE,qBAAqB,+BA4NjE"}
|
|
@@ -11,7 +11,7 @@ import { LanguageList } from '../../kit/LanguageList.js';
|
|
|
11
11
|
import { GridSkillGroup } from '../../kit/GridSkillGroup.js';
|
|
12
12
|
import { InitialsAvatar } from '../../kit/InitialsAvatar.js';
|
|
13
13
|
import { useContactLines } from '../../kit/contact.js';
|
|
14
|
-
import { documentStyle } from '../../kit/documentStyle.js';
|
|
14
|
+
import { documentStyle, documentStyleAttributes, } from '../../kit/documentStyle.js';
|
|
15
15
|
import { Heading } from '../../kit/Heading.js';
|
|
16
16
|
import { LinkField } from '../../nodes/LinkField.js';
|
|
17
17
|
import { AcademicCustomEntry, AcademicEducationEntry, AcademicExperienceEntry, } from './entries.js';
|
|
@@ -25,5 +25,5 @@ export function AcademicDocument({ resume }) {
|
|
|
25
25
|
const style = useDocumentStyle();
|
|
26
26
|
const authoring = useAuthoring() !== null;
|
|
27
27
|
const contact = useContactLines(resume.contact, ['location', 'phone', 'email'], authoring);
|
|
28
|
-
return (_jsxs("article", { className: "tpl-academic", style: documentStyle('ac', style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-academic__head", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-academic__identity", children: [_jsx(Heading, { level: 1, className: "tpl-academic__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-academic__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) }))] }), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("div", { className: "tpl-academic__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("p", { className: `tpl-academic__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))), _jsx(Collection, { section: "links", items: resume.links, gap: false, emptyAdd: "inline", children: ({ item, path, chrome, itemProps, justAdded }) => (_jsx("p", { className: "tpl-academic__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] })), _jsx(InitialsAvatar, { name: resume.name, className: "tpl-academic__avatar" })] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", children: _jsx("p", { className: "tpl-academic__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(AcademicEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(AcademicExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-academic__section tpl-academic__section--hung", headingClassName: "tpl-academic__heading", items: resume.achievements, entryClassName: "tpl-academic__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-academic__section", headingClass: "tpl-academic__heading", Entry: AcademicCustomEntry }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-academic__section tpl-academic__section--hung", headingClassName: "tpl-academic__heading", items: resume.courses, entryClassName: "tpl-academic__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", children: _jsx("div", { className: "tpl-academic__hung", "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", rowClassName: "tpl-academic__language" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-academic__section tpl-academic__section--items", headingClassName: "tpl-academic__heading", items: resume.passions, entryClassName: "tpl-academic__described" })] }));
|
|
28
|
+
return (_jsxs("article", { className: "tpl-academic", style: documentStyle('ac', style), ...documentStyleAttributes(style), "aria-label": doc.t.resume, lang: doc.locale, children: [_jsxs("header", { className: "tpl-academic__head", "data-layout": "row", "data-block": true, children: [_jsxs("div", { className: "tpl-academic__identity", children: [_jsx(Heading, { level: 1, className: "tpl-academic__name", children: _jsx(EditableText, { path: "name", value: resume.name }) }), (resume.headline || authoring) && (_jsx("p", { className: "tpl-academic__headline", children: _jsx(EditableText, { path: "headline", value: resume.headline ?? '', placeholder: placeholder('headline') }) }))] }), (contact.length > 0 || resume.links.length > 0 || authoring) && (_jsxs("div", { className: "tpl-academic__contact tpl-contact-icons", children: [contact.map(({ field, path, value, placeholder }) => (_jsx("p", { className: `tpl-academic__contact-item tpl-contact--${field}`, children: _jsx(EditableText, { path: path, value: value, placeholder: placeholder }) }, path))), _jsx(Collection, { section: "links", items: resume.links, gap: false, emptyAdd: "inline", children: ({ item, path, chrome, itemProps, justAdded }) => (_jsx("p", { className: "tpl-academic__contact-item tpl-contact--link", children: _jsxs("span", { ...itemProps, children: [chrome, _jsx(LinkField, { item: item, path: path, justAdded: justAdded })] }) })) })] })), _jsx(InitialsAvatar, { name: resume.name, className: "tpl-academic__avatar" })] }), (resume.summary || authoring) && (_jsx(DocumentSection, { id: "summary", heading: resume.section_headings?.summary, title: doc.t.sections.summary, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", children: _jsx("p", { className: "tpl-academic__prose", "data-block": true, children: _jsx(EditableText, { path: "summary", value: resume.summary ?? '', placeholder: placeholder('summary'), multiline: true }) }) })), (resume.education.length > 0 || authoring) && (_jsx(DocumentSection, { id: "education", heading: resume.section_headings?.education, title: doc.t.sections.education, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", children: _jsx(Collection, { section: "education", items: resume.education, children: ({ item, path, chrome, itemProps }) => (_jsx(AcademicEducationEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), (resume.experience.length > 0 || authoring) && (_jsx(DocumentSection, { id: "experience", heading: resume.section_headings?.experience, title: doc.t.sections.experience, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", children: _jsx(Collection, { section: "experience", items: resume.experience, children: ({ item, path, chrome, itemProps }) => (_jsx(AcademicExperienceEntry, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) })), _jsx(DescribedEntries, { id: "achievements", heading: resume.section_headings?.achievements, title: doc.t.sections.achievements, className: "tpl-academic__section tpl-academic__section--hung", headingClassName: "tpl-academic__heading", items: resume.achievements, entryClassName: "tpl-academic__described" }), _jsx(CustomSections, { sections: resume.custom_sections, sectionClass: "tpl-academic__section", headingClass: "tpl-academic__heading", Entry: AcademicCustomEntry }), _jsx(DescribedEntries, { id: "courses", heading: resume.section_headings?.courses, title: doc.t.sections.courses, className: "tpl-academic__section tpl-academic__section--hung", headingClassName: "tpl-academic__heading", items: resume.courses, entryClassName: "tpl-academic__described" }), (resume.certifications.length > 0 || authoring) && (_jsx(DocumentSection, { id: "certifications", heading: resume.section_headings?.certifications, title: doc.t.sections.certifications, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", children: _jsx("div", { className: "tpl-academic__hung", "data-block": true, "data-split": true, children: _jsx(EditableBulletList, { path: "certifications", items: resume.certifications, placeholder: placeholder('certification') }) }) })), _jsx(LanguageList, { items: resume.languages, heading: resume.section_headings?.languages, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", rowClassName: "tpl-academic__language" }), (resume.skills.length > 0 || authoring) && (_jsx(DocumentSection, { id: "skills", heading: resume.section_headings?.skills, title: doc.t.sections.skills, className: "tpl-academic__section", headingClassName: "tpl-academic__heading", children: _jsx("div", { className: "tpl-skill-grid", children: _jsx(Collection, { section: "skills", items: resume.skills, children: ({ item, path, chrome, itemProps }) => (_jsx(GridSkillGroup, { item: item, path: path, chrome: chrome, itemProps: itemProps })) }) }) })), _jsx(DescribedEntries, { id: "passions", heading: resume.section_headings?.passions, title: doc.t.sections.passions, className: "tpl-academic__section tpl-academic__section--items", headingClassName: "tpl-academic__heading", items: resume.passions, entryClassName: "tpl-academic__described" })] }));
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AltaDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/alta/AltaDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"AltaDocument.d.ts","sourceRoot":"","sources":["../../../src/templates/alta/AltaDocument.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAwBtD,OAAO,sBAAsB,CAAC;AAC9B,OAAO,6BAA6B,CAAC;AACrC,OAAO,YAAY,CAAC;AAGpB,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,YAAY,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,+BAsOzD"}
|