@jsonresume/theme-primitives 0.0.0-stage → 0.2.1

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.
@@ -0,0 +1,7 @@
1
+ import type { SectionId } from './types.js';
2
+ export declare const order: SectionId[];
3
+ export declare function labels(language: string): {
4
+ language: string;
5
+ present: string;
6
+ section: (id: SectionId) => string;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { DocumentModel, ThemeOptions } from './types.js';
2
+ export declare function documentModel(input: unknown, options: ThemeOptions): DocumentModel;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ /** Controlled UI labels only; applicant content is never translated. */
2
+ export declare const regionalLabels: Record<string, {
3
+ sections: string[];
4
+ present: string;
5
+ }>;
@@ -0,0 +1,55 @@
1
+ export declare const tokens: {
2
+ color: {
3
+ ink: `var(--${string})`;
4
+ muted: `var(--${string})`;
5
+ accent: `var(--${string})`;
6
+ rule: `var(--${string})`;
7
+ soft: `var(--${string})`;
8
+ sidebar: `var(--${string})`;
9
+ sidebarInk: `var(--${string})`;
10
+ };
11
+ font: {
12
+ body: `var(--${string})`;
13
+ display: `var(--${string})`;
14
+ };
15
+ space: {
16
+ section: `var(--${string})`;
17
+ entry: `var(--${string})`;
18
+ gutter: `var(--${string})`;
19
+ };
20
+ type: {
21
+ size: `var(--${string})`;
22
+ leading: `var(--${string})`;
23
+ name: `var(--${string})`;
24
+ heading: `var(--${string})`;
25
+ };
26
+ width: `var(--${string})`;
27
+ };
28
+ export declare const defaults: {
29
+ color: {
30
+ ink: string;
31
+ muted: string;
32
+ accent: string;
33
+ rule: string;
34
+ soft: string;
35
+ sidebar: string;
36
+ sidebarInk: string;
37
+ };
38
+ font: {
39
+ body: string;
40
+ display: string;
41
+ };
42
+ space: {
43
+ section: string;
44
+ entry: string;
45
+ gutter: string;
46
+ };
47
+ type: {
48
+ size: string;
49
+ leading: string;
50
+ name: string;
51
+ heading: string;
52
+ };
53
+ width: string;
54
+ };
55
+ export declare const defaultDesign: string;
@@ -0,0 +1,46 @@
1
+ export type Data = Readonly<Record<string, unknown>>;
2
+ export type SectionId = 'work' | 'projects' | 'education' | 'volunteer' | 'awards' | 'certificates' | 'publications' | 'skills' | 'languages' | 'interests' | 'references';
3
+ export interface Entry {
4
+ title: string;
5
+ context: string;
6
+ date: string;
7
+ url: string;
8
+ location: string;
9
+ paragraphs: string[];
10
+ highlights: string[];
11
+ details: string[];
12
+ }
13
+ export interface DocumentModel {
14
+ name: string;
15
+ label: string;
16
+ summary: string;
17
+ image: string;
18
+ contacts: {
19
+ text: string;
20
+ href: string;
21
+ }[];
22
+ sections: {
23
+ id: SectionId;
24
+ title: string;
25
+ entries: Entry[];
26
+ }[];
27
+ language: string;
28
+ headingLanguage: string;
29
+ direction: 'ltr' | 'rtl';
30
+ settings: {
31
+ singleColumn: boolean;
32
+ showPhoto: boolean;
33
+ compact: boolean;
34
+ monochrome: boolean;
35
+ };
36
+ }
37
+ export interface ThemeOptions {
38
+ slug: string;
39
+ className: string;
40
+ layout: 'single' | 'balanced' | 'right' | 'left' | 'deedy' | 'achievement' | 'timeline' | 'academic' | 'european';
41
+ defaultLanguage?: string;
42
+ fonts: string[];
43
+ css: string;
44
+ sectionOrder?: SectionId[];
45
+ sidebarSections?: SectionId[];
46
+ }
package/package.json CHANGED
@@ -1,6 +1,60 @@
1
1
  {
2
2
  "name": "@jsonresume/theme-primitives",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.2.1",
4
+ "description": "Typed, accessible document primitives for complete JSON Resume themes",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ }
13
+ },
14
+ "files": [
15
+ "dist",
16
+ "README.md",
17
+ "LICENSE",
18
+ "THIRD_PARTY_NOTICES.md"
19
+ ],
20
+ "license": "MIT",
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "dependencies": {
25
+ "effect": "4.0.6",
26
+ "@jsonresume/utils": "0.5.0"
27
+ },
28
+ "peerDependencies": {
29
+ "react": "^18.0.0 || ^19.0.0",
30
+ "react-dom": "^18.0.0 || ^19.0.0"
31
+ },
32
+ "devDependencies": {
33
+ "@types/node": "^20.19.24",
34
+ "@types/jsdom": "^21.1.7",
35
+ "jsdom": "^27.0.0",
36
+ "@types/react": "^19.2.2",
37
+ "@types/react-dom": "^19.2.2",
38
+ "@vanilla-extract/css": "^1.21.3",
39
+ "@vanilla-extract/vite-plugin": "^5.2.6",
40
+ "react": "^19.2.0",
41
+ "react-dom": "^19.2.0",
42
+ "typescript": "^5.9.3",
43
+ "vite": "^6.4.3",
44
+ "vitest": "^3.2.6",
45
+ "@jsonresume/sample-data": "0.2.1",
46
+ "@jsonresume/theme-kit": "1.2.1",
47
+ "@repo/eslint-config-custom": "0.0.0",
48
+ "tsconfig": "0.0.0",
49
+ "@jsonresume/core": "0.4.0"
50
+ },
51
+ "engines": {
52
+ "node": ">=18"
53
+ },
54
+ "scripts": {
55
+ "build": "vite build && tsc -p tsconfig.build.json",
56
+ "typecheck": "tsc --noEmit",
57
+ "lint": "eslint src --ext .ts,.tsx",
58
+ "test": "vitest run"
59
+ }
6
60
  }