jsonresume-theme-community-garden 0.1.4 → 0.1.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # jsonresume-theme-community-garden
2
2
 
3
+ ## 0.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 24555c2: Fix contact info not rendering: ContactInfo was called with unsupported per-field props (`type`/children) and returned null; now uses the supported `basics` prop.
8
+ - 304a130: Theme curation wave: full JSON Resume section coverage and SSR fixes.
9
+
10
+ - Add missing sections (Interests, Certificates, et al.) across 15+ themes so every registered theme renders all schema sections
11
+ - tokyo-modernist: inline styled-components (fixes webpack resolution SSR crash) — re-enabled in the registry
12
+ - tailwind: fix social-icon SSR crash, add 7 missing sections with missing-data guards — re-enabled in the registry
13
+ - Register previously orphaned desert-modern and elegant-pink themes with metadata
14
+ - @jsonresume/core@0.3.2
15
+
16
+ ## 0.1.5
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [ff09f75]
21
+ - @jsonresume/core@0.3.1
22
+
3
23
  ## 0.1.4
4
24
 
5
25
  ### Patch Changes
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ :root{--resume-font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;--resume-font-serif: Cambria, Georgia, "Times New Roman", serif;--resume-font-mono: "Courier New", Courier, monospace;--resume-size-name: 36px;--resume-size-heading: 16px;--resume-size-subheading: 14px;--resume-size-body: 11px;--resume-size-small: 10px;--resume-weight-normal: 400;--resume-weight-medium: 500;--resume-weight-semibold: 600;--resume-weight-bold: 700;--resume-line-height-tight: 1.2;--resume-line-height-normal: 1.5;--resume-line-height-relaxed: 1.75;--resume-color-primary: #1a1a1a;--resume-color-secondary: #4a4a4a;--resume-color-accent: #2563eb;--resume-color-background: #ffffff;--resume-color-border: #e5e7eb;--resume-space-section: 24px;--resume-space-item: 16px;--resume-space-tight: 8px;--resume-space-margin: 48px;--resume-max-width: 660px;--resume-column-gap: 24px;--resume-radius-sm: 4px;--resume-radius-md: 8px;--resume-radius-lg: 12px;--resume-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, .05);--resume-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1)}[data-theme=modern]{--resume-color-primary: #0f172a;--resume-color-secondary: #475569;--resume-color-accent: #8b5cf6;--resume-font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif}[data-theme=classic]{--resume-color-primary: #000000;--resume-color-secondary: #333333;--resume-color-accent: #0066cc;--resume-font-sans: Georgia, "Times New Roman", serif}[data-theme=minimal]{--resume-color-primary: #18181b;--resume-color-secondary: #71717a;--resume-color-accent: #000000;--resume-space-section: 32px;--resume-space-item: 20px}[data-theme=high-contrast]{--resume-color-primary: #000000;--resume-color-secondary: #000000;--resume-color-accent: #0000ff;--resume-color-background: #ffffff;--resume-color-border: #000000}@media print{:root{--resume-space-section: 18px;--resume-space-item: 12px}@page{size:A4;margin:.5in}.resume-section{page-break-inside:avoid}.resume-item{break-inside:avoid}p,li{widows:3;orphans:3}.resume-description{hyphens:auto}.no-print{display:none!important}}[dir=rtl]{text-align:right}[dir=rtl] .resume-item{padding-left:0;padding-right:var(--resume-space-tight)}
package/dist/index.js CHANGED
@@ -41,38 +41,46 @@ var isPropValid = /* @__PURE__ */ memoize(
41
41
  function getDefaultExportFromCjs(x2) {
42
42
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
43
43
  }
44
- var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
45
- var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
46
- if (ret !== void 0) {
47
- return !!ret;
48
- }
49
- if (objA === objB) {
50
- return true;
51
- }
52
- if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
53
- return false;
54
- }
55
- var keysA = Object.keys(objA);
56
- var keysB = Object.keys(objB);
57
- if (keysA.length !== keysB.length) {
58
- return false;
59
- }
60
- var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
61
- for (var idx = 0; idx < keysA.length; idx++) {
62
- var key = keysA[idx];
63
- if (!bHasOwnProperty(key)) {
44
+ var shallowequal;
45
+ var hasRequiredShallowequal;
46
+ function requireShallowequal() {
47
+ if (hasRequiredShallowequal) return shallowequal;
48
+ hasRequiredShallowequal = 1;
49
+ shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
50
+ var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
51
+ if (ret !== void 0) {
52
+ return !!ret;
53
+ }
54
+ if (objA === objB) {
55
+ return true;
56
+ }
57
+ if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
64
58
  return false;
65
59
  }
66
- var valueA = objA[key];
67
- var valueB = objB[key];
68
- ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
69
- if (ret === false || ret === void 0 && valueA !== valueB) {
60
+ var keysA = Object.keys(objA);
61
+ var keysB = Object.keys(objB);
62
+ if (keysA.length !== keysB.length) {
70
63
  return false;
71
64
  }
72
- }
73
- return true;
74
- };
75
- const p = /* @__PURE__ */ getDefaultExportFromCjs(shallowequal);
65
+ var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
66
+ for (var idx = 0; idx < keysA.length; idx++) {
67
+ var key = keysA[idx];
68
+ if (!bHasOwnProperty(key)) {
69
+ return false;
70
+ }
71
+ var valueA = objA[key];
72
+ var valueB = objB[key];
73
+ ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
74
+ if (ret === false || ret === void 0 && valueA !== valueB) {
75
+ return false;
76
+ }
77
+ }
78
+ return true;
79
+ };
80
+ return shallowequal;
81
+ }
82
+ var shallowequalExports = requireShallowequal();
83
+ const p = /* @__PURE__ */ getDefaultExportFromCjs(shallowequalExports);
76
84
  var MS = "-ms-";
77
85
  var MOZ = "-moz-";
78
86
  var WEBKIT = "-webkit-";
@@ -1340,6 +1348,7 @@ function renderResumeDocument(element, options = {}) {
1340
1348
  dir = "ltr",
1341
1349
  reset = false,
1342
1350
  head = "",
1351
+ headAfterStyles = "",
1343
1352
  includeTokensCss = true,
1344
1353
  bodyClass
1345
1354
  } = options;
@@ -1357,7 +1366,7 @@ function renderResumeDocument(element, options = {}) {
1357
1366
  const resetTag = reset ? CSS_RESET : "";
1358
1367
  const titleTag = title ? `<title>${title}</title>` : "";
1359
1368
  const bodyAttr = bodyClass ? ` class="${bodyClass}"` : "";
1360
- return `<!DOCTYPE html><html lang="${lang}" dir="${dir}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">` + fontLinks + tokensLink + resetTag + head + styleTags + titleTag + `</head><body${bodyAttr}>${html}</body></html>`;
1369
+ return `<!DOCTYPE html><html lang="${lang}" dir="${dir}"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">` + fontLinks + tokensLink + resetTag + head + styleTags + headAfterStyles + titleTag + `</head><body${bodyAttr}>${html}</body></html>`;
1361
1370
  }
1362
1371
  createContext({
1363
1372
  theme: "professional",
@@ -1518,6 +1527,7 @@ function formatDateRange({
1518
1527
  };
1519
1528
  const formatDate = (dateStr) => {
1520
1529
  if (!dateStr) return getPresentLabel();
1530
+ const isDateOnlyIso = typeof dateStr === "string" && /^\d{4}(-\d{2}){0,2}$/.test(dateStr);
1521
1531
  const date = typeof dateStr === "string" ? new Date(dateStr) : dateStr;
1522
1532
  if (isNaN(date.getTime())) return dateStr;
1523
1533
  const monthFormats = {
@@ -1529,6 +1539,9 @@ function formatDateRange({
1529
1539
  ...monthFormats[format],
1530
1540
  year: "numeric"
1531
1541
  };
1542
+ if (isDateOnlyIso) {
1543
+ options.timeZone = "UTC";
1544
+ }
1532
1545
  if (numberingSystem) {
1533
1546
  options.numberingSystem = numberingSystem;
1534
1547
  }
@@ -6412,17 +6425,7 @@ function Resume({ resume }) {
6412
6425
  /* @__PURE__ */ jsxs(Header, { children: [
6413
6426
  basics.name && /* @__PURE__ */ jsx(Name, { children: basics.name }),
6414
6427
  basics.label && /* @__PURE__ */ jsx(Label, { children: basics.label }),
6415
- /* @__PURE__ */ jsxs(ContactWrapper, { children: [
6416
- basics.email && /* @__PURE__ */ jsx(ContactInfo, { type: "email", children: basics.email }),
6417
- basics.phone && /* @__PURE__ */ jsx(ContactInfo, { type: "phone", children: basics.phone }),
6418
- basics.location?.city && basics.location?.region && /* @__PURE__ */ jsxs(ContactInfo, { type: "location", children: [
6419
- basics.location.city,
6420
- ", ",
6421
- basics.location.region
6422
- ] }),
6423
- basics.url && /* @__PURE__ */ jsx(ContactInfo, { type: "url", children: /* @__PURE__ */ jsx("a", { href: safeUrl(basics.url), children: basics.url }) }),
6424
- basics.profiles?.map((profile, index) => /* @__PURE__ */ jsx(ContactInfo, { type: "social", children: /* @__PURE__ */ jsx("a", { href: safeUrl(profile.url), children: profile.network }) }, index))
6425
- ] })
6428
+ /* @__PURE__ */ jsx(ContactWrapper, { children: /* @__PURE__ */ jsx(ContactInfo, { basics }) })
6426
6429
  ] }),
6427
6430
  basics.summary && /* @__PURE__ */ jsx(SummarySection, { children: /* @__PURE__ */ jsxs(SummaryText, { children: [
6428
6431
  '"',
@@ -6559,7 +6562,10 @@ function Resume({ resume }) {
6559
6562
  ] }),
6560
6563
  interests.length > 0 && /* @__PURE__ */ jsxs(MainSection, { children: [
6561
6564
  /* @__PURE__ */ jsx(MainSectionTitle, { children: "Interests" }),
6562
- /* @__PURE__ */ jsx(SimpleList, { children: interests.map((interest, index) => /* @__PURE__ */ jsx(SimpleCard, { children: interest.name }, index)) })
6565
+ /* @__PURE__ */ jsx(SimpleList, { children: interests.map((interest, index) => /* @__PURE__ */ jsxs(SimpleCard, { children: [
6566
+ /* @__PURE__ */ jsx("strong", { children: interest.name }),
6567
+ interest.keywords && interest.keywords.length > 0 && /* @__PURE__ */ jsx(SkillKeywords, { style: { marginTop: "10px" }, children: interest.keywords.map((keyword, i) => /* @__PURE__ */ jsx(SkillBadge, { children: keyword }, i)) })
6568
+ ] }, index)) })
6563
6569
  ] }),
6564
6570
  references.length > 0 && /* @__PURE__ */ jsxs(MainSection, { children: [
6565
6571
  /* @__PURE__ */ jsx(MainSectionTitle, { children: "References" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsonresume-theme-community-garden",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "Beautiful, warm theme celebrating education and community service. Sky blue and garden green colors with prominent certifications and volunteer sections.",
5
5
  "type": "module",
6
6
  "main": "./index.jsx",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "styled-components": "^6.1.19",
13
- "@jsonresume/core": "0.3.0"
13
+ "@jsonresume/core": "0.3.2"
14
14
  },
15
15
  "exports": {
16
16
  ".": {
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@vitejs/plugin-react": "^4.3.4",
27
- "vite": "^5.4.21"
27
+ "vite": "^6.4.3"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "vite build"
package/src/Resume.jsx CHANGED
@@ -346,27 +346,7 @@ function Resume({ resume }) {
346
346
  {basics.name && <Name>{basics.name}</Name>}
347
347
  {basics.label && <Label>{basics.label}</Label>}
348
348
  <ContactWrapper>
349
- {basics.email && (
350
- <ContactInfo type="email">{basics.email}</ContactInfo>
351
- )}
352
- {basics.phone && (
353
- <ContactInfo type="phone">{basics.phone}</ContactInfo>
354
- )}
355
- {basics.location?.city && basics.location?.region && (
356
- <ContactInfo type="location">
357
- {basics.location.city}, {basics.location.region}
358
- </ContactInfo>
359
- )}
360
- {basics.url && (
361
- <ContactInfo type="url">
362
- <a href={safeUrl(basics.url)}>{basics.url}</a>
363
- </ContactInfo>
364
- )}
365
- {basics.profiles?.map((profile, index) => (
366
- <ContactInfo key={index} type="social">
367
- <a href={safeUrl(profile.url)}>{profile.network}</a>
368
- </ContactInfo>
369
- ))}
349
+ <ContactInfo basics={basics} />
370
350
  </ContactWrapper>
371
351
  </Header>
372
352
 
@@ -601,7 +581,16 @@ function Resume({ resume }) {
601
581
  <MainSectionTitle>Interests</MainSectionTitle>
602
582
  <SimpleList>
603
583
  {interests.map((interest, index) => (
604
- <SimpleCard key={index}>{interest.name}</SimpleCard>
584
+ <SimpleCard key={index}>
585
+ <strong>{interest.name}</strong>
586
+ {interest.keywords && interest.keywords.length > 0 && (
587
+ <SkillKeywords style={{ marginTop: '10px' }}>
588
+ {interest.keywords.map((keyword, i) => (
589
+ <SkillBadge key={i}>{keyword}</SkillBadge>
590
+ ))}
591
+ </SkillKeywords>
592
+ )}
593
+ </SimpleCard>
605
594
  ))}
606
595
  </SimpleList>
607
596
  </MainSection>
package/dist/style.css DELETED
@@ -1,139 +0,0 @@
1
- /**
2
- * Resume Core Design Tokens
3
- * Framework-agnostic CSS variables for theming
4
- * Based on 2025 resume best practices and ATS compatibility research
5
- */
6
-
7
- :root {
8
- /* Typography - ATS-friendly fonts */
9
- --resume-font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
10
- --resume-font-serif: Cambria, Georgia, "Times New Roman", serif;
11
- --resume-font-mono: "Courier New", Courier, monospace;
12
-
13
- /* Font Sizes - Optimal readability */
14
- --resume-size-name: 36px; /* Large, prominent name */
15
- --resume-size-heading: 16px; /* Section titles */
16
- --resume-size-subheading: 14px; /* Job titles, degrees */
17
- --resume-size-body: 11px; /* Body text, descriptions */
18
- --resume-size-small: 10px; /* Dates, locations, metadata */
19
-
20
- /* Font Weights */
21
- --resume-weight-normal: 400;
22
- --resume-weight-medium: 500;
23
- --resume-weight-semibold: 600;
24
- --resume-weight-bold: 700;
25
-
26
- /* Line Heights */
27
- --resume-line-height-tight: 1.2;
28
- --resume-line-height-normal: 1.5;
29
- --resume-line-height-relaxed: 1.75;
30
-
31
- /* Colors - Professional Theme (default) */
32
- --resume-color-primary: #1a1a1a;
33
- --resume-color-secondary: #4a4a4a;
34
- --resume-color-accent: #2563eb;
35
- --resume-color-background: #ffffff;
36
- --resume-color-border: #e5e7eb;
37
-
38
- /* Spacing - Consistent rhythm */
39
- --resume-space-section: 24px; /* Between major sections */
40
- --resume-space-item: 16px; /* Between list items */
41
- --resume-space-tight: 8px; /* Within items */
42
- --resume-space-margin: 48px; /* Page margins */
43
-
44
- /* Layout - Optimal line length */
45
- --resume-max-width: 660px; /* ~80 chars at body size */
46
- --resume-column-gap: 24px;
47
-
48
- /* Border Radius */
49
- --resume-radius-sm: 4px;
50
- --resume-radius-md: 8px;
51
- --resume-radius-lg: 12px;
52
-
53
- /* Shadows - Subtle depth */
54
- --resume-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
55
- --resume-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
56
- }
57
-
58
- /* Modern Theme Variant */
59
- [data-theme="modern"] {
60
- --resume-color-primary: #0f172a;
61
- --resume-color-secondary: #475569;
62
- --resume-color-accent: #8b5cf6;
63
- --resume-font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
64
- }
65
-
66
- /* Classic Theme Variant */
67
- [data-theme="classic"] {
68
- --resume-color-primary: #000000;
69
- --resume-color-secondary: #333333;
70
- --resume-color-accent: #0066cc;
71
- --resume-font-sans: Georgia, "Times New Roman", serif;
72
- }
73
-
74
- /* Minimal Theme Variant */
75
- [data-theme="minimal"] {
76
- --resume-color-primary: #18181b;
77
- --resume-color-secondary: #71717a;
78
- --resume-color-accent: #000000;
79
- --resume-space-section: 32px;
80
- --resume-space-item: 20px;
81
- }
82
-
83
- /* High Contrast Variant (Accessibility) */
84
- [data-theme="high-contrast"] {
85
- --resume-color-primary: #000000;
86
- --resume-color-secondary: #000000;
87
- --resume-color-accent: #0000ff;
88
- --resume-color-background: #ffffff;
89
- --resume-color-border: #000000;
90
- }
91
-
92
- /* Print Styles - ATS-Friendly PDF Export */
93
- @media print {
94
- :root {
95
- /* Optimize for print */
96
- --resume-space-section: 18px;
97
- --resume-space-item: 12px;
98
- }
99
-
100
- @page {
101
- size: A4;
102
- margin: 0.5in;
103
- }
104
-
105
- /* Prevent awkward breaks */
106
- .resume-section {
107
- page-break-inside: avoid;
108
- }
109
-
110
- .resume-item {
111
- break-inside: avoid;
112
- }
113
-
114
- /* Widows and orphans control */
115
- p, li {
116
- widows: 3;
117
- orphans: 3;
118
- }
119
-
120
- /* Hyphenation for long words */
121
- .resume-description {
122
- hyphens: auto;
123
- }
124
-
125
- /* Hide interactive elements */
126
- .no-print {
127
- display: none !important;
128
- }
129
- }
130
-
131
- /* RTL Support */
132
- [dir="rtl"] {
133
- text-align: right;
134
- }
135
-
136
- [dir="rtl"] .resume-item {
137
- padding-left: 0;
138
- padding-right: var(--resume-space-tight);
139
- }