@jsonresume/core 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/README.md +689 -0
  2. package/dist/resume-print.css +425 -0
  3. package/dist/tokens.css +139 -0
  4. package/package.json +66 -0
  5. package/src/badges/BadgeRowOutline.jsx +118 -0
  6. package/src/badges/BadgeRowOutline.stories.tsx +160 -0
  7. package/src/badges/index.jsx +5 -0
  8. package/src/callouts/Callout.jsx +80 -0
  9. package/src/callouts/Callout.stories.tsx +27 -0
  10. package/src/callouts/HighlightCard.jsx +114 -0
  11. package/src/callouts/HighlightCard.stories.tsx +27 -0
  12. package/src/callouts/InfoBox.jsx +82 -0
  13. package/src/callouts/InfoBox.stories.tsx +26 -0
  14. package/src/callouts/index.jsx +4 -0
  15. package/src/certifications/AwardCard.jsx +83 -0
  16. package/src/certifications/AwardCard.stories.tsx +32 -0
  17. package/src/certifications/CertificationBadge.jsx +85 -0
  18. package/src/certifications/CertificationBadge.stories.tsx +29 -0
  19. package/src/certifications/CertificationRow.jsx +150 -0
  20. package/src/certifications/CertificationRow.stories.tsx +64 -0
  21. package/src/certifications/HonorsList.jsx +87 -0
  22. package/src/certifications/HonorsList.stories.tsx +36 -0
  23. package/src/certifications/index.jsx +5 -0
  24. package/src/containers/AccentCalloutPanel.jsx +176 -0
  25. package/src/containers/AccentCalloutPanel.stories.tsx +105 -0
  26. package/src/containers/MutedPanel.jsx +125 -0
  27. package/src/containers/MutedPanel.stories.tsx +113 -0
  28. package/src/containers/RoleBlockFramed.jsx +191 -0
  29. package/src/containers/RoleBlockFramed.stories.tsx +230 -0
  30. package/src/containers/SoftCardOutline.jsx +161 -0
  31. package/src/containers/SoftCardOutline.stories.tsx +174 -0
  32. package/src/containers/index.jsx +9 -0
  33. package/src/data/KPIChipLine.jsx +158 -0
  34. package/src/data/KPIChipLine.stories.tsx +99 -0
  35. package/src/data/KeyValueInline.jsx +150 -0
  36. package/src/data/KeyValueInline.stories.tsx +136 -0
  37. package/src/data/MetricBar.jsx +93 -0
  38. package/src/data/MetricBar.stories.tsx +31 -0
  39. package/src/data/MetricBullet.jsx +129 -0
  40. package/src/data/MetricBullet.stories.tsx +99 -0
  41. package/src/data/MetricInline.jsx +60 -0
  42. package/src/data/MetricInline.stories.tsx +53 -0
  43. package/src/data/ProgressCircle.jsx +81 -0
  44. package/src/data/ProgressCircle.stories.tsx +102 -0
  45. package/src/data/StatCard.jsx +65 -0
  46. package/src/data/StatCard.stories.tsx +29 -0
  47. package/src/data/index.jsx +12 -0
  48. package/src/dates/DateBadge.jsx +73 -0
  49. package/src/dates/DateBadge.stories.tsx +30 -0
  50. package/src/dates/RelativeDate.jsx +121 -0
  51. package/src/dates/RelativeDate.stories.tsx +29 -0
  52. package/src/dates/index.jsx +3 -0
  53. package/src/experience/ExperienceCard.jsx +82 -0
  54. package/src/experience/ExperienceCard.stories.tsx +36 -0
  55. package/src/experience/ExperienceCompact.jsx +72 -0
  56. package/src/experience/ExperienceCompact.stories.tsx +53 -0
  57. package/src/experience/ExperienceGrid.jsx +65 -0
  58. package/src/experience/ExperienceGrid.stories.tsx +63 -0
  59. package/src/experience/ExperienceTimeline.jsx +24 -0
  60. package/src/experience/ExperienceTimeline.stories.tsx +63 -0
  61. package/src/experience/RoleHeaderCompact.jsx +99 -0
  62. package/src/experience/index.jsx +9 -0
  63. package/src/header/ContactRowLine.jsx +125 -0
  64. package/src/header/ContactRowLine.stories.tsx +65 -0
  65. package/src/header/CornerInitials.jsx +178 -0
  66. package/src/header/CornerInitials.stories.tsx +129 -0
  67. package/src/header/Footer.jsx +50 -0
  68. package/src/header/Footer.stories.tsx +25 -0
  69. package/src/header/HeaderCentered.jsx +51 -0
  70. package/src/header/HeaderCentered.stories.tsx +30 -0
  71. package/src/header/HeaderMinimal.jsx +50 -0
  72. package/src/header/HeaderMinimal.stories.tsx +29 -0
  73. package/src/header/HeaderSplit.jsx +65 -0
  74. package/src/header/HeaderSplit.stories.tsx +29 -0
  75. package/src/header/HeroNameBlock.jsx +71 -0
  76. package/src/header/HeroNameBlock.stories.tsx +37 -0
  77. package/src/header/NameStackElegant.jsx +104 -0
  78. package/src/header/NameStackElegant.stories.tsx +60 -0
  79. package/src/header/PageBreak.jsx +25 -0
  80. package/src/header/PageBreak.stories.tsx +22 -0
  81. package/src/header/SectionFlagTitle.jsx +87 -0
  82. package/src/header/SectionFlagTitle.stories.tsx +53 -0
  83. package/src/header/SectionRuleTitle.jsx +84 -0
  84. package/src/header/SectionRuleTitle.stories.tsx +52 -0
  85. package/src/header/index.jsx +18 -0
  86. package/src/helpers/calculations.js +428 -0
  87. package/src/index.js +253 -0
  88. package/src/languages/LanguageBar.jsx +90 -0
  89. package/src/languages/LanguageBar.stories.tsx +28 -0
  90. package/src/languages/LanguageGrid.jsx +118 -0
  91. package/src/languages/LanguageGrid.stories.tsx +33 -0
  92. package/src/languages/LanguageLevelBarLite.jsx +147 -0
  93. package/src/languages/LanguageLevelBarLite.stories.tsx +74 -0
  94. package/src/languages/ProficiencyScale.jsx +107 -0
  95. package/src/languages/ProficiencyScale.stories.tsx +30 -0
  96. package/src/languages/index.jsx +5 -0
  97. package/src/layouts/CardLayout.jsx +46 -0
  98. package/src/layouts/CardLayout.stories.tsx +272 -0
  99. package/src/layouts/FlexLayout.jsx +53 -0
  100. package/src/layouts/FlexLayout.stories.tsx +270 -0
  101. package/src/layouts/GridLayout.jsx +38 -0
  102. package/src/layouts/GridLayout.stories.tsx +183 -0
  103. package/src/layouts/SidebarLayout.jsx +63 -0
  104. package/src/layouts/SidebarLayout.stories.tsx +162 -0
  105. package/src/layouts/StackLayout.jsx +26 -0
  106. package/src/layouts/StackLayout.stories.tsx +192 -0
  107. package/src/layouts/TwoColumnMicroGrid.jsx +87 -0
  108. package/src/layouts/TwoColumnMicroGrid.stories.tsx +96 -0
  109. package/src/layouts/index.jsx +11 -0
  110. package/src/lists/AchievementListSpacious.jsx +81 -0
  111. package/src/lists/AchievementListSpacious.stories.tsx +49 -0
  112. package/src/lists/AchievementListTight.jsx +80 -0
  113. package/src/lists/AchievementListTight.stories.tsx +49 -0
  114. package/src/lists/BulletList.jsx +66 -0
  115. package/src/lists/BulletList.stories.tsx +38 -0
  116. package/src/lists/CheckList.jsx +94 -0
  117. package/src/lists/CheckList.stories.tsx +38 -0
  118. package/src/lists/CompactList.jsx +90 -0
  119. package/src/lists/CompactList.stories.tsx +34 -0
  120. package/src/lists/DefinitionKeyline.jsx +114 -0
  121. package/src/lists/DefinitionKeyline.stories.tsx +90 -0
  122. package/src/lists/HangingBulletList.jsx +82 -0
  123. package/src/lists/HangingBulletList.stories.tsx +50 -0
  124. package/src/lists/IconList.jsx +89 -0
  125. package/src/lists/IconList.stories.tsx +36 -0
  126. package/src/lists/ListDashCompact.jsx +69 -0
  127. package/src/lists/ListDashCompact.stories.tsx +60 -0
  128. package/src/lists/MiniDotLeaderList.jsx +69 -0
  129. package/src/lists/MiniDotLeaderList.stories.tsx +73 -0
  130. package/src/lists/NumberedList.jsx +74 -0
  131. package/src/lists/NumberedList.stories.tsx +39 -0
  132. package/src/lists/index.jsx +12 -0
  133. package/src/metadata/GreyLabelCaps.jsx +66 -0
  134. package/src/metadata/GreyLabelCaps.stories.tsx +40 -0
  135. package/src/metadata/InlineKicker.jsx +61 -0
  136. package/src/metadata/InlineKicker.stories.tsx +35 -0
  137. package/src/metadata/MetaRow.jsx +96 -0
  138. package/src/metadata/MetaRow.stories.tsx +38 -0
  139. package/src/metadata/SmallCapsHeading.jsx +75 -0
  140. package/src/metadata/SmallCapsHeading.stories.tsx +54 -0
  141. package/src/metadata/SubsectionLabel.jsx +92 -0
  142. package/src/metadata/SubsectionLabel.stories.tsx +40 -0
  143. package/src/metadata/index.jsx +10 -0
  144. package/src/primitives/AccentSidebarStripe.stories.tsx +65 -0
  145. package/src/primitives/AccentSidebarStripe.tsx +95 -0
  146. package/src/primitives/AccentTopRule.stories.tsx +102 -0
  147. package/src/primitives/AccentTopRule.tsx +103 -0
  148. package/src/primitives/Badge.jsx +125 -0
  149. package/src/primitives/Badge.stories.tsx +27 -0
  150. package/src/primitives/ContactInfo.jsx +133 -0
  151. package/src/primitives/ContactInfo.stories.tsx +30 -0
  152. package/src/primitives/DIVIDERS.md +333 -0
  153. package/src/primitives/DateRange.jsx +178 -0
  154. package/src/primitives/DateRange.stories.tsx +28 -0
  155. package/src/primitives/DottedDivider.stories.tsx +54 -0
  156. package/src/primitives/DottedDivider.tsx +102 -0
  157. package/src/primitives/InlineSeparatorPipe.jsx +64 -0
  158. package/src/primitives/InlineSeparatorPipe.stories.tsx +96 -0
  159. package/src/primitives/KeylineDivider.stories.tsx +48 -0
  160. package/src/primitives/KeylineDivider.tsx +80 -0
  161. package/src/primitives/Link.jsx +59 -0
  162. package/src/primitives/Link.stories.tsx +29 -0
  163. package/src/primitives/ListItem.jsx +127 -0
  164. package/src/primitives/ListItem.stories.tsx +27 -0
  165. package/src/primitives/RulesetStack.stories.tsx +85 -0
  166. package/src/primitives/RulesetStack.tsx +117 -0
  167. package/src/primitives/Section.jsx +37 -0
  168. package/src/primitives/Section.stories.tsx +28 -0
  169. package/src/primitives/SectionTitle.jsx +62 -0
  170. package/src/primitives/SectionTitle.stories.tsx +27 -0
  171. package/src/primitives/index.jsx +36 -0
  172. package/src/print/ColumnBreak.jsx +44 -0
  173. package/src/print/ColumnBreak.stories.tsx +22 -0
  174. package/src/print/KeepTogether.jsx +24 -0
  175. package/src/print/KeepTogether.stories.tsx +26 -0
  176. package/src/print/LetterheadBar.jsx +100 -0
  177. package/src/print/LetterheadBar.stories.tsx +141 -0
  178. package/src/print/PageFooterLine.jsx +93 -0
  179. package/src/print/PageFooterLine.stories.tsx +121 -0
  180. package/src/print/PageHeaderLine.jsx +59 -0
  181. package/src/print/PageHeaderLine.stories.tsx +108 -0
  182. package/src/print/PrintOnly.jsx +49 -0
  183. package/src/print/PrintOnly.stories.tsx +26 -0
  184. package/src/print/SoftShadowEmulation.jsx +88 -0
  185. package/src/print/SoftShadowEmulation.stories.tsx +214 -0
  186. package/src/print/index.jsx +8 -0
  187. package/src/profile/Avatar.jsx +66 -0
  188. package/src/profile/Avatar.stories.tsx +84 -0
  189. package/src/profile/ContactGrid.jsx +63 -0
  190. package/src/profile/ContactGrid.stories.tsx +33 -0
  191. package/src/profile/ProfileCard.jsx +73 -0
  192. package/src/profile/ProfileCard.stories.tsx +35 -0
  193. package/src/profile/SocialLinks.jsx +61 -0
  194. package/src/profile/SocialLinks.stories.tsx +33 -0
  195. package/src/profile/index.jsx +9 -0
  196. package/src/providers/ThemeProvider.jsx +56 -0
  197. package/src/providers/ThemeProvider.stories.tsx +149 -0
  198. package/src/publications/PortfolioGrid.jsx +122 -0
  199. package/src/publications/PortfolioGrid.stories.tsx +62 -0
  200. package/src/publications/ProjectCard.jsx +151 -0
  201. package/src/publications/ProjectCard.stories.tsx +36 -0
  202. package/src/publications/PublicationEntryPlain.jsx +127 -0
  203. package/src/publications/PublicationEntryPlain.stories.tsx +58 -0
  204. package/src/publications/PublicationItem.jsx +120 -0
  205. package/src/publications/PublicationItem.stories.tsx +32 -0
  206. package/src/publications/index.jsx +5 -0
  207. package/src/quotes/BlockQuote.jsx +55 -0
  208. package/src/quotes/BlockQuote.stories.tsx +33 -0
  209. package/src/quotes/PullQuote.jsx +70 -0
  210. package/src/quotes/PullQuote.stories.tsx +32 -0
  211. package/src/quotes/Testimonial.jsx +99 -0
  212. package/src/quotes/Testimonial.stories.tsx +36 -0
  213. package/src/quotes/index.jsx +4 -0
  214. package/src/skills/SkillBar.jsx +66 -0
  215. package/src/skills/SkillBar.stories.tsx +112 -0
  216. package/src/skills/SkillCategory.jsx +71 -0
  217. package/src/skills/SkillCategory.stories.tsx +197 -0
  218. package/src/skills/SkillCloud.jsx +53 -0
  219. package/src/skills/SkillCloud.stories.tsx +132 -0
  220. package/src/skills/SkillGroup.jsx +56 -0
  221. package/src/skills/SkillGroup.stories.tsx +162 -0
  222. package/src/skills/SkillPill.jsx +56 -0
  223. package/src/skills/SkillPill.stories.tsx +157 -0
  224. package/src/skills/SkillRating.jsx +60 -0
  225. package/src/skills/SkillRating.stories.tsx +115 -0
  226. package/src/skills/index.jsx +11 -0
  227. package/src/styles/tokens.css +139 -0
  228. package/src/tables/ComparisonTable.jsx +128 -0
  229. package/src/tables/ComparisonTable.stories.tsx +41 -0
  230. package/src/tables/DataTable.jsx +149 -0
  231. package/src/tables/DataTable.stories.tsx +64 -0
  232. package/src/tables/SkillMatrix.jsx +139 -0
  233. package/src/tables/SkillMatrix.stories.tsx +90 -0
  234. package/src/tables/index.jsx +4 -0
  235. package/src/tags/ToolTagRibbon.jsx +106 -0
  236. package/src/tags/ToolTagRibbon.stories.tsx +121 -0
  237. package/src/tags/index.jsx +5 -0
  238. package/src/timeline/TimelineInline.stories.tsx +83 -0
  239. package/src/timeline/TimelineInline.tsx +202 -0
  240. package/src/timeline/TimelineItem.jsx +106 -0
  241. package/src/timeline/TimelineItem.stories.tsx +64 -0
  242. package/src/timeline/TimelineRuleMinimal.stories.tsx +68 -0
  243. package/src/timeline/TimelineRuleMinimal.tsx +165 -0
  244. package/src/timeline/TimelineSection.jsx +21 -0
  245. package/src/timeline/TimelineSection.stories.tsx +44 -0
  246. package/src/timeline/index.jsx +9 -0
  247. package/src/tokens/index.js +164 -0
  248. package/src/typography/Heading.jsx +48 -0
  249. package/src/typography/Heading.stories.tsx +46 -0
  250. package/src/typography/HyphenationSafeParagraph.jsx +98 -0
  251. package/src/typography/HyphenationSafeParagraph.stories.tsx +151 -0
  252. package/src/typography/Label.jsx +38 -0
  253. package/src/typography/Label.stories.tsx +27 -0
  254. package/src/typography/QuoteStripe.jsx +78 -0
  255. package/src/typography/QuoteStripe.stories.tsx +63 -0
  256. package/src/typography/SectionIntroParagraph.jsx +62 -0
  257. package/src/typography/SectionIntroParagraph.stories.tsx +57 -0
  258. package/src/typography/Text.jsx +42 -0
  259. package/src/typography/Text.stories.tsx +35 -0
  260. package/src/typography/index.jsx +11 -0
  261. package/src/utils/Divider.jsx +32 -0
  262. package/src/utils/Divider.stories.tsx +24 -0
  263. package/src/utils/Flex.jsx +6 -0
  264. package/src/utils/Flex.stories.tsx +28 -0
  265. package/src/utils/Grid.jsx +6 -0
  266. package/src/utils/Grid.stories.tsx +28 -0
  267. package/src/utils/Spacer.jsx +18 -0
  268. package/src/utils/Spacer.stories.tsx +26 -0
  269. package/src/utils/index.jsx +9 -0
  270. package/src/utils/security.js +155 -0
  271. package/src/visuals/BackgroundPattern.jsx +65 -0
  272. package/src/visuals/BackgroundPattern.stories.tsx +27 -0
  273. package/src/visuals/BorderAccent.jsx +147 -0
  274. package/src/visuals/BorderAccent.stories.tsx +27 -0
  275. package/src/visuals/ColorBlock.jsx +60 -0
  276. package/src/visuals/ColorBlock.stories.tsx +27 -0
  277. package/src/visuals/DividerVariants.jsx +120 -0
  278. package/src/visuals/DividerVariants.stories.tsx +27 -0
  279. package/src/visuals/index.jsx +5 -0
@@ -0,0 +1,176 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ /**
5
+ * AccentCalloutPanel Component
6
+ * High-contrast callout with bold header for important information
7
+ * Avoids reversed white-on-dark text for better print compatibility
8
+ * Uses increased font size and weight for emphasis
9
+ *
10
+ * @component
11
+ * @example
12
+ * <AccentCalloutPanel title="Key Achievement">
13
+ * Led migration of legacy system serving 10M+ users with zero downtime
14
+ * </AccentCalloutPanel>
15
+ *
16
+ * @example
17
+ * <AccentCalloutPanel
18
+ * title="Career Highlight"
19
+ * icon="🏆"
20
+ * variant="success"
21
+ * >
22
+ * Promoted to Senior Engineer after 18 months
23
+ * </AccentCalloutPanel>
24
+ */
25
+
26
+ const StyledCalloutPanel = styled.div`
27
+ border-left: 4px solid
28
+ ${(props) => {
29
+ if (props.$variant === 'success')
30
+ return 'var(--resume-color-success, #22c55e)';
31
+ if (props.$variant === 'warning')
32
+ return 'var(--resume-color-warning, #f59e0b)';
33
+ if (props.$variant === 'info') return 'var(--resume-color-info, #3b82f6)';
34
+ return (
35
+ props.theme?.colors?.accent || 'var(--resume-color-accent, #0066cc)'
36
+ );
37
+ }};
38
+
39
+ background: ${(props) => {
40
+ if (props.$variant === 'success')
41
+ return 'var(--resume-color-success-light, rgba(34, 197, 94, 0.08))';
42
+ if (props.$variant === 'warning')
43
+ return 'var(--resume-color-warning-light, rgba(245, 158, 11, 0.08))';
44
+ if (props.$variant === 'info')
45
+ return 'var(--resume-color-info-light, rgba(59, 130, 246, 0.08))';
46
+ return (
47
+ props.theme?.colors?.accentLight ||
48
+ 'var(--resume-color-accent-light, rgba(0, 102, 204, 0.08))'
49
+ );
50
+ }};
51
+
52
+ padding: ${(props) =>
53
+ props.$size === 'sm' ? '12px 16px' : '16px 20px'}; /* default md */
54
+
55
+ margin: 16px 0;
56
+ border-radius: ${(props) =>
57
+ props.theme?.radius?.md || 'var(--resume-radius-md, 6px)'};
58
+
59
+ /* Ensure high contrast text, no reversed text */
60
+ color: ${(props) =>
61
+ props.theme?.colors?.primary || 'var(--resume-color-primary, #000)'};
62
+
63
+ @media print {
64
+ /* Solid border for print clarity */
65
+ border-left: 3pt solid
66
+ ${(props) => {
67
+ if (props.$variant === 'success') return '#22c55e';
68
+ if (props.$variant === 'warning') return '#f59e0b';
69
+ if (props.$variant === 'info') return '#3b82f6';
70
+ return '#0066cc';
71
+ }};
72
+
73
+ /* Lighter background for print */
74
+ background: ${(props) => {
75
+ if (props.$variant === 'success') return 'rgba(34, 197, 94, 0.05)';
76
+ if (props.$variant === 'warning') return 'rgba(245, 158, 11, 0.05)';
77
+ if (props.$variant === 'info') return 'rgba(59, 130, 246, 0.05)';
78
+ return 'rgba(0, 102, 204, 0.05)';
79
+ }};
80
+
81
+ /* Remove border radius */
82
+ border-radius: 0;
83
+
84
+ /* Ensure black text for maximum contrast */
85
+ color: #000;
86
+
87
+ /* Prevent splitting across pages */
88
+ page-break-inside: avoid;
89
+ }
90
+ `;
91
+
92
+ const CalloutHeader = styled.div`
93
+ display: flex;
94
+ align-items: center;
95
+ gap: 8px;
96
+ margin-bottom: 8px;
97
+
98
+ /* Icon styling */
99
+ .callout-icon {
100
+ font-size: 16pt;
101
+ line-height: 1;
102
+ }
103
+ `;
104
+
105
+ const CalloutTitle = styled.div`
106
+ /* Bold, larger title for emphasis (as per design constraints) */
107
+ font-size: ${(props) => (props.$size === 'sm' ? '11pt' : '12pt')};
108
+ font-weight: 700;
109
+ color: ${(props) => {
110
+ if (props.$variant === 'success')
111
+ return 'var(--resume-color-success-dark, #16a34a)';
112
+ if (props.$variant === 'warning')
113
+ return 'var(--resume-color-warning-dark, #d97706)';
114
+ if (props.$variant === 'info')
115
+ return 'var(--resume-color-info-dark, #2563eb)';
116
+ return props.theme?.colors?.accent || 'var(--resume-color-accent, #0066cc)';
117
+ }};
118
+
119
+ @media print {
120
+ /* Maintain weight and bump size slightly for print */
121
+ font-weight: 700;
122
+ font-size: ${(props) => (props.$size === 'sm' ? '11pt' : '12pt')};
123
+ color: #000;
124
+ }
125
+ `;
126
+
127
+ const CalloutContent = styled.div`
128
+ font-size: 10pt;
129
+ line-height: 1.6;
130
+
131
+ > *:first-child {
132
+ margin-top: 0;
133
+ }
134
+
135
+ > *:last-child {
136
+ margin-bottom: 0;
137
+ }
138
+
139
+ @media print {
140
+ font-size: 10pt;
141
+ line-height: 1.5;
142
+ }
143
+ `;
144
+
145
+ export function AccentCalloutPanel({
146
+ children,
147
+ title,
148
+ icon,
149
+ variant = 'default',
150
+ size = 'md',
151
+ className,
152
+ ...rest
153
+ }) {
154
+ return (
155
+ <StyledCalloutPanel
156
+ $variant={variant}
157
+ $size={size}
158
+ className={`resume-callout-panel resume-callout-${variant} ${
159
+ className || ''
160
+ }`.trim()}
161
+ {...rest}
162
+ >
163
+ {title && (
164
+ <CalloutHeader>
165
+ {icon && <span className="callout-icon">{icon}</span>}
166
+ <CalloutTitle $variant={variant} $size={size}>
167
+ {title}
168
+ </CalloutTitle>
169
+ </CalloutHeader>
170
+ )}
171
+ <CalloutContent>{children}</CalloutContent>
172
+ </StyledCalloutPanel>
173
+ );
174
+ }
175
+
176
+ export default AccentCalloutPanel;
@@ -0,0 +1,105 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { AccentCalloutPanel } from './AccentCalloutPanel.jsx';
3
+
4
+ const meta: Meta<typeof AccentCalloutPanel> = {
5
+ title: 'Containers/AccentCalloutPanel',
6
+ component: AccentCalloutPanel,
7
+ tags: ['autodocs'],
8
+ argTypes: {
9
+ variant: {
10
+ control: 'select',
11
+ options: ['default', 'success', 'warning', 'info'],
12
+ },
13
+ size: {
14
+ control: 'select',
15
+ options: ['sm', 'md'],
16
+ },
17
+ },
18
+ };
19
+
20
+ export default meta;
21
+ type Story = StoryObj<typeof AccentCalloutPanel>;
22
+
23
+ export const Default: Story = {
24
+ args: {
25
+ title: 'Key Achievement',
26
+ children:
27
+ 'Led the successful migration of a monolithic application to microservices architecture, serving over 10 million users with zero downtime during the transition.',
28
+ },
29
+ };
30
+
31
+ export const WithIcon: Story = {
32
+ args: {
33
+ title: 'Career Milestone',
34
+ icon: '🏆',
35
+ children:
36
+ 'Promoted to Senior Engineer after 18 months, recognizing exceptional technical leadership and mentorship contributions.',
37
+ },
38
+ };
39
+
40
+ export const SuccessVariant: Story = {
41
+ args: {
42
+ title: 'Project Success',
43
+ icon: '✓',
44
+ variant: 'success',
45
+ children:
46
+ 'Delivered the mobile app redesign 2 weeks ahead of schedule, resulting in a 45% increase in user engagement and 4.8 App Store rating.',
47
+ },
48
+ };
49
+
50
+ export const WarningVariant: Story = {
51
+ args: {
52
+ title: 'Important Note',
53
+ icon: '⚠',
54
+ variant: 'warning',
55
+ children:
56
+ 'Notice period: 4 weeks. Currently on a critical project timeline through end of Q2.',
57
+ },
58
+ };
59
+
60
+ export const InfoVariant: Story = {
61
+ args: {
62
+ title: 'Additional Context',
63
+ icon: 'ℹ',
64
+ variant: 'info',
65
+ children:
66
+ 'Open to relocation for the right opportunity. Preferred locations: San Francisco Bay Area, Seattle, or remote.',
67
+ },
68
+ };
69
+
70
+ export const SmallSize: Story = {
71
+ args: {
72
+ title: 'Quick Note',
73
+ size: 'sm',
74
+ children: 'Available for consulting engagements starting Q3 2024.',
75
+ },
76
+ };
77
+
78
+ export const LongContent: Story = {
79
+ args: {
80
+ title: 'Technical Leadership Experience',
81
+ icon: '👥',
82
+ variant: 'info',
83
+ children: (
84
+ <div>
85
+ <p>
86
+ As Engineering Lead, I've guided multiple cross-functional teams
87
+ through complex technical challenges:
88
+ </p>
89
+ <ul style={{ marginTop: '8px', marginBottom: 0 }}>
90
+ <li>Established code review best practices across 4 teams</li>
91
+ <li>Implemented CI/CD pipeline reducing deployment time by 75%</li>
92
+ <li>Mentored 8 engineers who were promoted to senior positions</li>
93
+ <li>Led architecture decisions for 3 major product initiatives</li>
94
+ </ul>
95
+ </div>
96
+ ),
97
+ },
98
+ };
99
+
100
+ export const NoTitle: Story = {
101
+ args: {
102
+ children:
103
+ 'This callout panel has no title, just content. Still maintains the distinctive left border and accent styling.',
104
+ },
105
+ };
@@ -0,0 +1,125 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ /**
5
+ * MutedPanel Component
6
+ * Subtle tinted box for summaries and secondary content
7
+ * Uses 5-8% tint fills with high text contrast
8
+ *
9
+ * @component
10
+ * @example
11
+ * <MutedPanel>
12
+ * <p>Professional summary text goes here...</p>
13
+ * </MutedPanel>
14
+ *
15
+ * @example
16
+ * <MutedPanel tint="accent" padding="lg">
17
+ * <h3>Key Highlights</h3>
18
+ * <ul>
19
+ * <li>Achievement 1</li>
20
+ * <li>Achievement 2</li>
21
+ * </ul>
22
+ * </MutedPanel>
23
+ */
24
+
25
+ const StyledMutedPanel = styled.div`
26
+ background: ${(props) => {
27
+ if (props.$tint === 'accent') {
28
+ return (
29
+ props.theme?.colors?.accentMuted ||
30
+ 'var(--resume-color-accent-muted, rgba(0, 102, 204, 0.06))'
31
+ );
32
+ }
33
+ if (props.$tint === 'warm') {
34
+ return 'var(--resume-color-warm-muted, rgba(102, 51, 0, 0.05))';
35
+ }
36
+ if (props.$tint === 'cool') {
37
+ return 'var(--resume-color-cool-muted, rgba(0, 51, 102, 0.05))';
38
+ }
39
+ // Default neutral tint
40
+ return props.theme?.colors?.muted || 'var(--resume-color-muted, #f5f5f5)';
41
+ }};
42
+
43
+ color: ${(props) =>
44
+ props.theme?.colors?.primary || 'var(--resume-color-primary, #000)'};
45
+
46
+ padding: ${(props) => {
47
+ if (props.$padding === 'sm') return '12px';
48
+ if (props.$padding === 'lg') return '24px';
49
+ return '16px'; // default md
50
+ }};
51
+
52
+ border-radius: ${(props) =>
53
+ props.theme?.radius?.md || 'var(--resume-radius-md, 6px)'};
54
+
55
+ margin: ${(props) => {
56
+ if (props.$margin === 'sm') return '8px 0';
57
+ if (props.$margin === 'lg') return '24px 0';
58
+ if (props.$margin === 'none') return '0';
59
+ return '16px 0'; // default md
60
+ }};
61
+
62
+ /* High text contrast for readability */
63
+ line-height: 1.6;
64
+ font-size: 10pt;
65
+
66
+ /* Ensure content spacing */
67
+ > *:first-child {
68
+ margin-top: 0;
69
+ }
70
+
71
+ > *:last-child {
72
+ margin-bottom: 0;
73
+ }
74
+
75
+ @media print {
76
+ /* Use subtle backgrounds that print well */
77
+ background: ${(props) => {
78
+ if (props.$tint === 'accent') return 'rgba(0, 102, 204, 0.05)';
79
+ if (props.$tint === 'warm') return 'rgba(102, 51, 0, 0.04)';
80
+ if (props.$tint === 'cool') return 'rgba(0, 51, 102, 0.04)';
81
+ return '#f8f8f8';
82
+ }};
83
+
84
+ /* Ensure high contrast text for printing */
85
+ color: #000;
86
+
87
+ /* Remove border radius for cleaner print appearance */
88
+ border-radius: 0;
89
+
90
+ /* Adjust spacing for print density */
91
+ padding: ${(props) => {
92
+ if (props.$padding === 'sm') return '10px';
93
+ if (props.$padding === 'lg') return '20px';
94
+ return '14px';
95
+ }};
96
+
97
+ /* Prevent orphaned panels */
98
+ page-break-inside: avoid;
99
+ }
100
+ `;
101
+
102
+ export function MutedPanel({
103
+ children,
104
+ tint = 'neutral',
105
+ padding = 'md',
106
+ margin = 'md',
107
+ className,
108
+ ...rest
109
+ }) {
110
+ return (
111
+ <StyledMutedPanel
112
+ $tint={tint}
113
+ $padding={padding}
114
+ $margin={margin}
115
+ className={`resume-muted-panel resume-muted-panel-${tint} ${
116
+ className || ''
117
+ }`.trim()}
118
+ {...rest}
119
+ >
120
+ {children}
121
+ </StyledMutedPanel>
122
+ );
123
+ }
124
+
125
+ export default MutedPanel;
@@ -0,0 +1,113 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { MutedPanel } from './MutedPanel.jsx';
3
+
4
+ const meta: Meta<typeof MutedPanel> = {
5
+ title: 'Containers/MutedPanel',
6
+ component: MutedPanel,
7
+ tags: ['autodocs'],
8
+ argTypes: {
9
+ tint: {
10
+ control: 'select',
11
+ options: ['neutral', 'accent', 'warm', 'cool'],
12
+ },
13
+ padding: {
14
+ control: 'select',
15
+ options: ['sm', 'md', 'lg'],
16
+ },
17
+ margin: {
18
+ control: 'select',
19
+ options: ['none', 'sm', 'md', 'lg'],
20
+ },
21
+ },
22
+ };
23
+
24
+ export default meta;
25
+ type Story = StoryObj<typeof MutedPanel>;
26
+
27
+ export const Default: Story = {
28
+ args: {
29
+ children: (
30
+ <div>
31
+ <h3 style={{ marginTop: 0 }}>Professional Summary</h3>
32
+ <p>
33
+ Experienced software engineer with 8+ years building scalable web
34
+ applications. Specialized in React, Node.js, and cloud architecture.
35
+ Proven track record of leading teams and delivering high-impact
36
+ projects.
37
+ </p>
38
+ </div>
39
+ ),
40
+ },
41
+ };
42
+
43
+ export const AccentTint: Story = {
44
+ args: {
45
+ tint: 'accent',
46
+ children: (
47
+ <div>
48
+ <h4 style={{ marginTop: 0 }}>Key Highlights</h4>
49
+ <ul style={{ marginBottom: 0 }}>
50
+ <li>Led migration serving 10M+ users with zero downtime</li>
51
+ <li>Reduced infrastructure costs by 40% through optimization</li>
52
+ <li>Mentored 15+ junior engineers across 3 teams</li>
53
+ </ul>
54
+ </div>
55
+ ),
56
+ },
57
+ };
58
+
59
+ export const WarmTint: Story = {
60
+ args: {
61
+ tint: 'warm',
62
+ padding: 'lg',
63
+ children: (
64
+ <div>
65
+ <h4 style={{ marginTop: 0 }}>Career Philosophy</h4>
66
+ <p style={{ marginBottom: 0 }}>
67
+ I believe in building software that genuinely improves people's lives,
68
+ with a focus on user experience, maintainability, and team
69
+ collaboration.
70
+ </p>
71
+ </div>
72
+ ),
73
+ },
74
+ };
75
+
76
+ export const CoolTint: Story = {
77
+ args: {
78
+ tint: 'cool',
79
+ padding: 'sm',
80
+ children: <p style={{ margin: 0 }}>Quick note or sidebar information</p>,
81
+ },
82
+ };
83
+
84
+ export const CompactPanel: Story = {
85
+ args: {
86
+ padding: 'sm',
87
+ margin: 'sm',
88
+ children: (
89
+ <p style={{ margin: 0 }}>
90
+ <strong>Note:</strong> Available for remote opportunities worldwide
91
+ </p>
92
+ ),
93
+ },
94
+ };
95
+
96
+ export const LargePadding: Story = {
97
+ args: {
98
+ padding: 'lg',
99
+ children: (
100
+ <div>
101
+ <h3 style={{ marginTop: 0 }}>About Me</h3>
102
+ <p>
103
+ Passionate about open source and developer tools. Contributor to
104
+ several major OSS projects including React, Next.js, and TypeScript.
105
+ </p>
106
+ <p style={{ marginBottom: 0 }}>
107
+ Outside of coding, I enjoy hiking, photography, and teaching
108
+ programming to beginners through local workshops.
109
+ </p>
110
+ </div>
111
+ ),
112
+ },
113
+ };
@@ -0,0 +1,191 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ /**
5
+ * RoleBlockFramed Component
6
+ * Lightly framed container for each role/position with consistent padding
7
+ * Designed to prevent page edge collisions with proper spacing
8
+ * Ideal for experience entries, education items, and project blocks
9
+ *
10
+ * @component
11
+ * @example
12
+ * <RoleBlockFramed>
13
+ * <h3>Senior Software Engineer</h3>
14
+ * <p>Tech Company Inc. • 2020-2023 • San Francisco, CA</p>
15
+ * <ul>
16
+ * <li>Led team of 5 engineers</li>
17
+ * <li>Architected microservices platform</li>
18
+ * </ul>
19
+ * </RoleBlockFramed>
20
+ *
21
+ * @example
22
+ * <RoleBlockFramed variant="minimal" padding="lg">
23
+ * <div>Role content with minimal styling</div>
24
+ * </RoleBlockFramed>
25
+ */
26
+
27
+ const StyledRoleBlock = styled.div`
28
+ /* Light frame - subtle border */
29
+ border: 1px solid
30
+ ${(props) => {
31
+ if (props.$variant === 'accent') {
32
+ return (
33
+ props.theme?.colors?.accentBorder ||
34
+ 'var(--resume-color-accent-border, #e0e0e0)'
35
+ );
36
+ }
37
+ if (props.$variant === 'minimal') {
38
+ return 'transparent';
39
+ }
40
+ return (
41
+ props.theme?.colors?.borderLight ||
42
+ 'var(--resume-color-border-light, #e5e5e5)'
43
+ );
44
+ }};
45
+
46
+ /* Optional background tint */
47
+ background: ${(props) => {
48
+ if (props.$variant === 'accent') {
49
+ return (
50
+ props.theme?.colors?.accentMuted ||
51
+ 'var(--resume-color-accent-muted, rgba(0, 102, 204, 0.02))'
52
+ );
53
+ }
54
+ if (props.$variant === 'tinted') {
55
+ return 'var(--resume-color-background-muted, rgba(0, 0, 0, 0.01))';
56
+ }
57
+ return 'transparent'; // default and minimal
58
+ }};
59
+
60
+ /* Consistent padding to prevent edge collision */
61
+ padding: ${(props) => {
62
+ if (props.$padding === 'sm') return '12px 16px';
63
+ if (props.$padding === 'lg') return '20px 24px';
64
+ return '16px 20px'; // default md
65
+ }};
66
+
67
+ /* Spacing between role blocks */
68
+ margin: ${(props) => {
69
+ if (props.$spacing === 'sm') return '12px 0';
70
+ if (props.$spacing === 'lg') return '24px 0';
71
+ if (props.$spacing === 'none') return '0';
72
+ return '16px 0'; // default md
73
+ }};
74
+
75
+ /* Subtle rounding */
76
+ border-radius: ${(props) =>
77
+ props.theme?.radius?.sm || 'var(--resume-radius-sm, 4px)'};
78
+
79
+ /* Text styling */
80
+ color: ${(props) =>
81
+ props.theme?.colors?.primary || 'var(--resume-color-primary, #000)'};
82
+
83
+ /* Content spacing */
84
+ > *:first-child {
85
+ margin-top: 0;
86
+ }
87
+
88
+ > *:last-child {
89
+ margin-bottom: 0;
90
+ }
91
+
92
+ /* Ensure proper spacing for nested elements */
93
+ h3,
94
+ h4 {
95
+ margin-bottom: 8px;
96
+ }
97
+
98
+ p {
99
+ margin: 4px 0;
100
+ }
101
+
102
+ ul,
103
+ ol {
104
+ margin: 8px 0;
105
+ padding-left: 20px;
106
+ }
107
+
108
+ li {
109
+ margin: 4px 0;
110
+ }
111
+
112
+ @media print {
113
+ /* Ensure border prints clearly */
114
+ border: ${(props) => {
115
+ if (props.$variant === 'minimal') return 'none';
116
+ if (props.$variant === 'accent') return '0.5pt solid #d0d0d0';
117
+ return '0.5pt solid #e0e0e0';
118
+ }};
119
+
120
+ /* Remove background for clean print */
121
+ background: transparent;
122
+
123
+ /* Remove border radius for print */
124
+ border-radius: 0;
125
+
126
+ /* Adjust padding for print density */
127
+ padding: ${(props) => {
128
+ if (props.$padding === 'sm') return '10px 12px';
129
+ if (props.$padding === 'lg') return '16px 20px';
130
+ return '12px 16px';
131
+ }};
132
+
133
+ /* Prevent page edge collision - ensure margins */
134
+ margin-left: 0;
135
+ margin-right: 0;
136
+
137
+ /* Prevent splitting role blocks across pages */
138
+ page-break-inside: avoid;
139
+
140
+ /* Add small gap after each block for readability */
141
+ margin-bottom: ${(props) => {
142
+ if (props.$spacing === 'sm') return '10px';
143
+ if (props.$spacing === 'lg') return '20px';
144
+ if (props.$spacing === 'none') return '0';
145
+ return '14px';
146
+ }};
147
+
148
+ /* Ensure high contrast text */
149
+ color: #000;
150
+
151
+ /* Optimize nested element spacing for print */
152
+ h3,
153
+ h4 {
154
+ margin-bottom: 6px;
155
+ }
156
+
157
+ ul,
158
+ ol {
159
+ margin: 6px 0;
160
+ }
161
+
162
+ li {
163
+ margin: 3px 0;
164
+ }
165
+ }
166
+ `;
167
+
168
+ export function RoleBlockFramed({
169
+ children,
170
+ variant = 'default',
171
+ padding = 'md',
172
+ spacing = 'md',
173
+ className,
174
+ ...rest
175
+ }) {
176
+ return (
177
+ <StyledRoleBlock
178
+ $variant={variant}
179
+ $padding={padding}
180
+ $spacing={spacing}
181
+ className={`resume-role-block resume-role-block-${variant} ${
182
+ className || ''
183
+ }`.trim()}
184
+ {...rest}
185
+ >
186
+ {children}
187
+ </StyledRoleBlock>
188
+ );
189
+ }
190
+
191
+ export default RoleBlockFramed;