@jsonresume/theme-primitives 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +9 -0
- package/README.md +8 -2
- package/THIRD_PARTY_NOTICES.md +176 -0
- package/dist/Document.d.ts +5 -0
- package/dist/Header.d.ts +4 -0
- package/dist/Sections.d.ts +7 -0
- package/dist/balanced.css.d.ts +1 -0
- package/dist/base.css.d.ts +52 -0
- package/dist/data.d.ts +10 -0
- package/dist/dates.d.ts +3 -0
- package/dist/entries.d.ts +3 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1812 -0
- package/dist/labels.d.ts +7 -0
- package/dist/layout.css.d.ts +1 -0
- package/dist/model.d.ts +2 -0
- package/dist/print.css.d.ts +1 -0
- package/dist/regional-labels.d.ts +5 -0
- package/dist/tokens.css.d.ts +55 -0
- package/dist/types.d.ts +46 -0
- package/package.json +57 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 JSON Resume contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# JSON Resume theme primitives
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Shared typed document rendering for the JSON Resume theme portfolio. Each theme supplies its own vanilla-extract tokens, layout and typography. The renderer preserves all standard resume sections, escapes content through React, restricts links, and supports incomplete and international data without mutating it.
|
|
4
|
+
|
|
5
|
+
`createTheme(options)` returns the standard synchronous `render(resume): string` interface. Styles are compiled and embedded at build time through `scripts/resume-theme-build.ts`; consuming packages need no CSS loader, JavaScript hydration, runtime filesystem access or stylesheet network request. Google Fonts are optional and local fallback stacks remain available.
|
|
6
|
+
|
|
7
|
+
`meta.researchThemes` supports `sectionOrder`, `layout: 'single'`, `density: 'compact'`, `monochrome`, `showPhoto` and `showFullAddress`. Sections omitted from an order still render. `meta.language` localises English, French, German, Spanish, Portuguese, Arabic, Japanese, Hindi and Korean headings; other languages keep identified English headings. Themes may set `defaultLanguage`, which applicants can override. Balanced columns are supported alongside sidebars and date gutters. Images and street addresses are opt-in.
|
|
8
|
+
|
|
9
|
+
Run `pnpm --filter @jsonresume/theme-primitives build`, `test`, `typecheck` and `lint`. Tests exercise the compiled package, including content coverage, escaping, links, dates, ordering, malformed optional fields, localisation and user preferences. Browser and PDF checks are documented with the theme collection.
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Bundled dependency notices
|
|
2
|
+
|
|
3
|
+
The core document wrapper bundles the following dependencies. External runtime dependencies retain their own notices in their installed packages.
|
|
4
|
+
|
|
5
|
+
## styled-components 6.1.19
|
|
6
|
+
|
|
7
|
+
```text
|
|
8
|
+
MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2016-present Glen Maddern and Maximilian Stoiber
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## @emotion/is-prop-valid 1.2.2
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
MIT License
|
|
35
|
+
|
|
36
|
+
Copyright (c) Emotion team and other contributors
|
|
37
|
+
|
|
38
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
39
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
40
|
+
in the Software without restriction, including without limitation the rights
|
|
41
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
42
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
43
|
+
furnished to do so, subject to the following conditions:
|
|
44
|
+
|
|
45
|
+
The above copyright notice and this permission notice shall be included in all
|
|
46
|
+
copies or substantial portions of the Software.
|
|
47
|
+
|
|
48
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
49
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
50
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
51
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
52
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
53
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
54
|
+
SOFTWARE.
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## @emotion/memoize 0.8.1
|
|
58
|
+
|
|
59
|
+
```text
|
|
60
|
+
MIT License
|
|
61
|
+
|
|
62
|
+
Copyright (c) Emotion team and other contributors
|
|
63
|
+
|
|
64
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
65
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
66
|
+
in the Software without restriction, including without limitation the rights
|
|
67
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
68
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
69
|
+
furnished to do so, subject to the following conditions:
|
|
70
|
+
|
|
71
|
+
The above copyright notice and this permission notice shall be included in all
|
|
72
|
+
copies or substantial portions of the Software.
|
|
73
|
+
|
|
74
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
75
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
76
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
77
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
78
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
79
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
80
|
+
SOFTWARE.
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## @emotion/unitless 0.8.1
|
|
84
|
+
|
|
85
|
+
```text
|
|
86
|
+
MIT License
|
|
87
|
+
|
|
88
|
+
Copyright (c) Emotion team and other contributors
|
|
89
|
+
|
|
90
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
91
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
92
|
+
in the Software without restriction, including without limitation the rights
|
|
93
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
94
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
95
|
+
furnished to do so, subject to the following conditions:
|
|
96
|
+
|
|
97
|
+
The above copyright notice and this permission notice shall be included in all
|
|
98
|
+
copies or substantial portions of the Software.
|
|
99
|
+
|
|
100
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
101
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
102
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
103
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
104
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
105
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
106
|
+
SOFTWARE.
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## stylis 4.3.2
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
MIT License
|
|
113
|
+
|
|
114
|
+
Copyright (c) 2016-present Sultan Tarimo
|
|
115
|
+
|
|
116
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
117
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
118
|
+
in the Software without restriction, including without limitation the rights
|
|
119
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
120
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
121
|
+
furnished to do so, subject to the following conditions:
|
|
122
|
+
|
|
123
|
+
The above copyright notice and this permission notice shall be included in all
|
|
124
|
+
copies or substantial portions of the Software.
|
|
125
|
+
|
|
126
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
127
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
128
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
129
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
130
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
131
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
132
|
+
SOFTWARE.
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## shallowequal 1.1.0
|
|
136
|
+
|
|
137
|
+
```text
|
|
138
|
+
MIT License
|
|
139
|
+
|
|
140
|
+
Copyright (c) 2017 Alberto Leal <mailforalberto@gmail.com> (github.com/dashed)
|
|
141
|
+
|
|
142
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
143
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
144
|
+
in the Software without restriction, including without limitation the rights
|
|
145
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
146
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
147
|
+
furnished to do so, subject to the following conditions:
|
|
148
|
+
|
|
149
|
+
The above copyright notice and this permission notice shall be included in all
|
|
150
|
+
copies or substantial portions of the Software.
|
|
151
|
+
|
|
152
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
153
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
154
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
155
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
156
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
157
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
158
|
+
SOFTWARE.
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## tslib 2.6.2
|
|
162
|
+
|
|
163
|
+
```text
|
|
164
|
+
Copyright (c) Microsoft Corporation.
|
|
165
|
+
|
|
166
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
167
|
+
purpose with or without fee is hereby granted.
|
|
168
|
+
|
|
169
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
170
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
171
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
172
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
173
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
174
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
175
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
176
|
+
```
|
package/dist/Header.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const page: string;
|
|
2
|
+
export declare const masthead: string;
|
|
3
|
+
export declare const identity: string;
|
|
4
|
+
export declare const name: string;
|
|
5
|
+
export declare const label: string;
|
|
6
|
+
export declare const contact: string;
|
|
7
|
+
export declare const summary: string;
|
|
8
|
+
export declare const portrait: string;
|
|
9
|
+
export declare const body: string;
|
|
10
|
+
export declare const primary: string;
|
|
11
|
+
export declare const secondary: string;
|
|
12
|
+
export declare const section: string;
|
|
13
|
+
export declare const sectionTitle: string;
|
|
14
|
+
export declare const entry: string;
|
|
15
|
+
export declare const entryHead: string;
|
|
16
|
+
export declare const entryTitle: string;
|
|
17
|
+
export declare const date: string;
|
|
18
|
+
export declare const context: string;
|
|
19
|
+
export declare const paragraph: string;
|
|
20
|
+
export declare const bullets: string;
|
|
21
|
+
export declare const details: string;
|
|
22
|
+
export declare const taxonomy: string;
|
|
23
|
+
export declare const taxonomyRow: string;
|
|
24
|
+
export declare const term: string;
|
|
25
|
+
export declare const definition: string;
|
|
26
|
+
export declare const classes: {
|
|
27
|
+
page: string;
|
|
28
|
+
masthead: string;
|
|
29
|
+
identity: string;
|
|
30
|
+
name: string;
|
|
31
|
+
label: string;
|
|
32
|
+
contact: string;
|
|
33
|
+
summary: string;
|
|
34
|
+
portrait: string;
|
|
35
|
+
body: string;
|
|
36
|
+
primary: string;
|
|
37
|
+
secondary: string;
|
|
38
|
+
section: string;
|
|
39
|
+
sectionTitle: string;
|
|
40
|
+
entry: string;
|
|
41
|
+
entryHead: string;
|
|
42
|
+
entryTitle: string;
|
|
43
|
+
date: string;
|
|
44
|
+
context: string;
|
|
45
|
+
paragraph: string;
|
|
46
|
+
bullets: string;
|
|
47
|
+
details: string;
|
|
48
|
+
taxonomy: string;
|
|
49
|
+
taxonomyRow: string;
|
|
50
|
+
term: string;
|
|
51
|
+
definition: string;
|
|
52
|
+
};
|
package/dist/data.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Data } from './types.js';
|
|
2
|
+
export declare const record: (value: unknown) => Data;
|
|
3
|
+
export declare const text: (value: unknown) => string;
|
|
4
|
+
export declare const strings: (value: unknown) => string[];
|
|
5
|
+
export declare const records: (value: unknown) => Data[];
|
|
6
|
+
export declare const join: (...values: unknown[]) => string;
|
|
7
|
+
export declare const link: (value: unknown) => string;
|
|
8
|
+
export declare const location: (value: unknown) => string;
|
|
9
|
+
export declare const escapeHtml: (value: string) => string;
|
|
10
|
+
export declare function paragraphs(...values: unknown[]): string[];
|
package/dist/dates.d.ts
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import './layout.css.js';
|
|
2
|
+
import './balanced.css.js';
|
|
3
|
+
import './print.css.js';
|
|
4
|
+
import type { ThemeOptions } from './types.js';
|
|
5
|
+
export declare function createTheme(options: ThemeOptions): (resume: unknown) => string;
|
|
6
|
+
export { classes } from './base.css.js';
|
|
7
|
+
export { tokens, defaults } from './tokens.css.js';
|
|
8
|
+
export type { ThemeOptions, SectionId } from './types.js';
|