@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,118 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ /**
5
+ * BadgeRowOutline Component
6
+ * Outlined badges (no fill) for skill clusters with consistent stroke width
7
+ *
8
+ * Displays skills or categories as outlined badges with no background fill.
9
+ * Uses ≥0.5pt stroke to avoid low-DPI rendering artifacts (scalloping).
10
+ * Optimized for both screen and print display.
11
+ *
12
+ * @component
13
+ * @example
14
+ * <BadgeRowOutline items={['Leadership', 'Communication', 'Problem Solving']} />
15
+ * <BadgeRowOutline items={skills} size="small" strokeWidth="0.75pt" />
16
+ */
17
+
18
+ const BadgeContainer = styled.div`
19
+ display: flex;
20
+ flex-wrap: wrap;
21
+ gap: ${(props) => (props.$size === 'small' ? '6px' : '8px')};
22
+ margin: ${(props) => (props.$size === 'small' ? '6px 0' : '8px 0')};
23
+
24
+ @media print {
25
+ gap: ${(props) => (props.$size === 'small' ? '4px' : '6px')};
26
+ margin: 4pt 0;
27
+ }
28
+ `;
29
+
30
+ const OutlineBadge = styled.span`
31
+ display: inline-flex;
32
+ align-items: center;
33
+ padding: ${(props) => {
34
+ if (props.$size === 'small') return '3px 10px';
35
+ if (props.$size === 'large') return '7px 16px';
36
+ return '5px 12px'; // default medium
37
+ }};
38
+ border: ${(props) => props.$strokeWidth || '0.5pt'} solid
39
+ ${(props) =>
40
+ props.theme?.colors?.border || 'var(--resume-color-border, #666666)'};
41
+ border-radius: ${(props) =>
42
+ props.$rounded
43
+ ? '999px'
44
+ : props.theme?.radius?.sm || 'var(--resume-radius-sm, 4px)'};
45
+ font-size: ${(props) => {
46
+ if (props.$size === 'small') return '8.5pt';
47
+ if (props.$size === 'large') return '10.5pt';
48
+ return '9.5pt'; // default medium
49
+ }};
50
+ font-weight: 500;
51
+ color: ${(props) =>
52
+ props.theme?.colors?.primary || 'var(--resume-color-primary, #000000)'};
53
+ background: transparent;
54
+ white-space: nowrap;
55
+ line-height: 1.2;
56
+
57
+ /* Prevent scalloping on low-DPI displays */
58
+ -webkit-font-smoothing: antialiased;
59
+ -moz-osx-font-smoothing: grayscale;
60
+
61
+ @media print {
62
+ /* Ensure minimum stroke width for print clarity */
63
+ border-width: ${(props) => {
64
+ const width = props.$strokeWidth || '0.5pt';
65
+ return width;
66
+ }};
67
+ border-color: #666666;
68
+ color: #000000;
69
+ padding: ${(props) => {
70
+ if (props.$size === 'small') return '2pt 8pt';
71
+ if (props.$size === 'large') return '5pt 12pt';
72
+ return '3pt 10pt';
73
+ }};
74
+ font-size: ${(props) => {
75
+ if (props.$size === 'small') return '8pt';
76
+ if (props.$size === 'large') return '10pt';
77
+ return '9pt';
78
+ }};
79
+
80
+ /* Force exact colors for print */
81
+ -webkit-print-color-adjust: exact;
82
+ print-color-adjust: exact;
83
+ }
84
+ `;
85
+
86
+ export function BadgeRowOutline({
87
+ items = [],
88
+ size = 'medium',
89
+ rounded = true,
90
+ strokeWidth = '0.5pt',
91
+ className,
92
+ ...rest
93
+ }) {
94
+ if (!items || items.length === 0) {
95
+ return null;
96
+ }
97
+
98
+ return (
99
+ <BadgeContainer
100
+ $size={size}
101
+ className={`resume-badge-row-outline ${className || ''}`.trim()}
102
+ {...rest}
103
+ >
104
+ {items.map((item, index) => (
105
+ <OutlineBadge
106
+ key={index}
107
+ $size={size}
108
+ $rounded={rounded}
109
+ $strokeWidth={strokeWidth}
110
+ >
111
+ {item}
112
+ </OutlineBadge>
113
+ ))}
114
+ </BadgeContainer>
115
+ );
116
+ }
117
+
118
+ export default BadgeRowOutline;
@@ -0,0 +1,160 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { BadgeRowOutline } from './BadgeRowOutline';
3
+
4
+ const meta = {
5
+ title: 'Badges/BadgeRowOutline',
6
+ component: BadgeRowOutline,
7
+ parameters: {
8
+ layout: 'padded',
9
+ },
10
+ tags: ['autodocs'],
11
+ } satisfies Meta<typeof BadgeRowOutline>;
12
+
13
+ export default meta;
14
+ type Story = StoryObj<typeof meta>;
15
+
16
+ const softSkills = [
17
+ 'Leadership',
18
+ 'Communication',
19
+ 'Problem Solving',
20
+ 'Teamwork',
21
+ ];
22
+
23
+ const hardSkills = [
24
+ 'JavaScript',
25
+ 'TypeScript',
26
+ 'React',
27
+ 'Node.js',
28
+ 'PostgreSQL',
29
+ 'Docker',
30
+ ];
31
+
32
+ const categories = ['Frontend', 'Backend', 'DevOps', 'Design'];
33
+
34
+ const certifications = ['AWS Certified', 'Scrum Master', 'PMP', 'Security+'];
35
+
36
+ export const Default: Story = {
37
+ args: {
38
+ items: softSkills,
39
+ },
40
+ };
41
+
42
+ export const SmallSize: Story = {
43
+ args: {
44
+ items: hardSkills,
45
+ size: 'small',
46
+ },
47
+ };
48
+
49
+ export const LargeSize: Story = {
50
+ args: {
51
+ items: softSkills,
52
+ size: 'large',
53
+ },
54
+ };
55
+
56
+ export const NotRounded: Story = {
57
+ args: {
58
+ items: categories,
59
+ rounded: false,
60
+ },
61
+ parameters: {
62
+ docs: {
63
+ description: {
64
+ story: 'Square corners instead of fully rounded',
65
+ },
66
+ },
67
+ },
68
+ };
69
+
70
+ export const ThickStroke: Story = {
71
+ args: {
72
+ items: softSkills,
73
+ strokeWidth: '1pt',
74
+ },
75
+ parameters: {
76
+ docs: {
77
+ description: {
78
+ story:
79
+ 'Thicker border for more emphasis (1pt instead of default 0.5pt)',
80
+ },
81
+ },
82
+ },
83
+ };
84
+
85
+ export const ThinStroke: Story = {
86
+ args: {
87
+ items: hardSkills,
88
+ strokeWidth: '0.5pt',
89
+ },
90
+ parameters: {
91
+ docs: {
92
+ description: {
93
+ story: 'Minimum recommended stroke width (0.5pt) to avoid scalloping',
94
+ },
95
+ },
96
+ },
97
+ };
98
+
99
+ export const ManyBadges: Story = {
100
+ args: {
101
+ items: [
102
+ 'JavaScript',
103
+ 'TypeScript',
104
+ 'React',
105
+ 'Vue',
106
+ 'Angular',
107
+ 'Node.js',
108
+ 'Express',
109
+ 'PostgreSQL',
110
+ 'MongoDB',
111
+ 'Redis',
112
+ 'Docker',
113
+ 'Kubernetes',
114
+ 'AWS',
115
+ 'Azure',
116
+ 'Git',
117
+ ],
118
+ },
119
+ parameters: {
120
+ docs: {
121
+ description: {
122
+ story: 'Demonstrates wrapping behavior with many badges',
123
+ },
124
+ },
125
+ },
126
+ };
127
+
128
+ export const Certifications: Story = {
129
+ args: {
130
+ items: certifications,
131
+ size: 'medium',
132
+ strokeWidth: '0.75pt',
133
+ },
134
+ parameters: {
135
+ docs: {
136
+ description: {
137
+ story: 'Example usage for displaying certifications',
138
+ },
139
+ },
140
+ },
141
+ };
142
+
143
+ export const EmptyBadges: Story = {
144
+ args: {
145
+ items: [],
146
+ },
147
+ parameters: {
148
+ docs: {
149
+ description: {
150
+ story: 'Component returns null when no items are provided',
151
+ },
152
+ },
153
+ },
154
+ };
155
+
156
+ export const SingleBadge: Story = {
157
+ args: {
158
+ items: ['Full Stack Developer'],
159
+ },
160
+ };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Badge Components
3
+ * Export all badge display components
4
+ */
5
+ export { BadgeRowOutline } from './BadgeRowOutline.jsx';
@@ -0,0 +1,80 @@
1
+ import React from 'react';
2
+ /**
3
+ * Callout
4
+ * Highlighted callout box for important information
5
+ */
6
+ import styled from 'styled-components';
7
+
8
+ const Container = styled.div`
9
+ padding: var(--resume-space-item);
10
+ margin: var(--resume-space-item) 0;
11
+ background-color: ${(props) => {
12
+ if (props.$variant === 'success')
13
+ return 'var(--resume-color-success-bg, #d4edda)';
14
+ if (props.$variant === 'warning')
15
+ return 'var(--resume-color-warning-bg, #fff3cd)';
16
+ if (props.$variant === 'error')
17
+ return 'var(--resume-color-error-bg, #f8d7da)';
18
+ return 'var(--resume-color-muted)';
19
+ }};
20
+ border-left: 4px solid
21
+ ${(props) => {
22
+ if (props.$variant === 'success')
23
+ return 'var(--resume-color-success, #28a745)';
24
+ if (props.$variant === 'warning')
25
+ return 'var(--resume-color-warning, #ffc107)';
26
+ if (props.$variant === 'error')
27
+ return 'var(--resume-color-error, #dc3545)';
28
+ return 'var(--resume-color-accent)';
29
+ }};
30
+ border-radius: var(--resume-radius-sm);
31
+ break-inside: avoid;
32
+
33
+ @media print {
34
+ -webkit-print-color-adjust: exact;
35
+ print-color-adjust: exact;
36
+ border-left: 4px solid
37
+ ${(props) => {
38
+ if (props.$variant === 'success')
39
+ return 'var(--resume-color-success, #28a745)';
40
+ if (props.$variant === 'warning')
41
+ return 'var(--resume-color-warning, #ffc107)';
42
+ if (props.$variant === 'error')
43
+ return 'var(--resume-color-error, #dc3545)';
44
+ return 'var(--resume-color-accent)';
45
+ }};
46
+ break-inside: avoid;
47
+ page-break-inside: avoid;
48
+ }
49
+ `;
50
+
51
+ const Title = styled.div`
52
+ font-size: var(--resume-size-subheading);
53
+ font-weight: var(--resume-weight-medium);
54
+ color: var(--resume-color-primary);
55
+ margin-bottom: 8px;
56
+ `;
57
+
58
+ const Content = styled.div`
59
+ font-size: var(--resume-size-body);
60
+ color: var(--resume-color-secondary);
61
+ line-height: var(--resume-line-height-normal);
62
+ `;
63
+
64
+ /**
65
+ * @param {Object} props
66
+ * @param {string|React.ReactNode} props.children - Callout content
67
+ * @param {string} [props.title] - Optional title
68
+ * @param {string} [props.variant='info'] - Style variant (info, success, warning, error)
69
+ * @param {string} [props.className] - Additional CSS classes
70
+ */
71
+ export function Callout({ children, title, variant = 'info', className }) {
72
+ return (
73
+ <Container $variant={variant} className={className}>
74
+ {title && <Title>{title}</Title>}
75
+ <Content>{children}</Content>
76
+ </Container>
77
+ );
78
+ }
79
+
80
+ export default Callout;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { Callout } from './Callout';
3
+
4
+ const meta = {
5
+ title: 'Resume Core/Callouts/Callout',
6
+ component: Callout,
7
+ parameters: { layout: 'padded' },
8
+ tags: ['autodocs'],
9
+ };
10
+
11
+ export default meta;
12
+
13
+ export const Default = {
14
+ args: {
15
+ title: 'Important Note',
16
+ children:
17
+ 'This is an important callout message for highlighting key information.',
18
+ },
19
+ };
20
+
21
+ export const Example = {
22
+ args: {
23
+ title: 'Success!',
24
+ variant: 'success',
25
+ children: 'Your changes have been saved successfully.',
26
+ },
27
+ };
@@ -0,0 +1,114 @@
1
+ import React from 'react';
2
+ /**
3
+ * HighlightCard
4
+ * Highlighted card for featured content
5
+ */
6
+ import styled from 'styled-components';
7
+
8
+ const Card = styled.div`
9
+ padding: var(--resume-space-item);
10
+ background-color: ${(props) => props.$color || 'var(--resume-color-accent)'};
11
+ color: white;
12
+ border-radius: var(--resume-radius-md);
13
+ margin: var(--resume-space-item) 0;
14
+ break-inside: avoid;
15
+
16
+ @media print {
17
+ -webkit-print-color-adjust: exact;
18
+ print-color-adjust: exact;
19
+ border: 2px solid ${(props) => props.$color || 'var(--resume-color-accent)'};
20
+ background-color: transparent;
21
+ color: var(--resume-color-primary);
22
+ break-inside: avoid;
23
+ page-break-inside: avoid;
24
+ }
25
+ `;
26
+
27
+ const Header = styled.div`
28
+ display: flex;
29
+ justify-content: space-between;
30
+ align-items: flex-start;
31
+ gap: var(--resume-space-tight);
32
+ margin-bottom: var(--resume-space-tight);
33
+
34
+ @media (max-width: 768px) {
35
+ flex-direction: column;
36
+ gap: 8px;
37
+ }
38
+ `;
39
+
40
+ const Title = styled.h3`
41
+ margin: 0;
42
+ font-size: var(--resume-size-heading);
43
+ font-weight: var(--resume-weight-bold);
44
+ color: inherit;
45
+
46
+ @media print {
47
+ color: var(--resume-color-primary);
48
+ }
49
+ `;
50
+
51
+ const Badge = styled.div`
52
+ padding: 4px 12px;
53
+ background-color: rgba(255, 255, 255, 0.2);
54
+ border-radius: var(--resume-radius-full);
55
+ font-size: var(--resume-size-small);
56
+ white-space: nowrap;
57
+
58
+ @media print {
59
+ background-color: transparent;
60
+ border: 1px solid currentColor;
61
+ }
62
+ `;
63
+
64
+ const Content = styled.div`
65
+ font-size: var(--resume-size-body);
66
+ line-height: var(--resume-line-height-normal);
67
+
68
+ @media print {
69
+ color: var(--resume-color-secondary);
70
+ }
71
+ `;
72
+
73
+ const Footer = styled.div`
74
+ margin-top: var(--resume-space-tight);
75
+ padding-top: var(--resume-space-tight);
76
+ border-top: 1px solid rgba(255, 255, 255, 0.2);
77
+ font-size: var(--resume-size-small);
78
+
79
+ @media print {
80
+ border-top: 1px solid var(--resume-color-border);
81
+ color: var(--resume-color-tertiary);
82
+ }
83
+ `;
84
+
85
+ /**
86
+ * @param {Object} props
87
+ * @param {string} props.title - Card title
88
+ * @param {string|React.ReactNode} props.children - Card content
89
+ * @param {string} [props.badge] - Badge text
90
+ * @param {string} [props.footer] - Footer text
91
+ * @param {string} [props.color] - Custom background color
92
+ * @param {string} [props.className] - Additional CSS classes
93
+ */
94
+ export function HighlightCard({
95
+ title,
96
+ children,
97
+ badge,
98
+ footer,
99
+ color,
100
+ className,
101
+ }) {
102
+ return (
103
+ <Card $color={color} className={className}>
104
+ <Header>
105
+ <Title>{title}</Title>
106
+ {badge && <Badge>{badge}</Badge>}
107
+ </Header>
108
+ <Content>{children}</Content>
109
+ {footer && <Footer>{footer}</Footer>}
110
+ </Card>
111
+ );
112
+ }
113
+
114
+ export default HighlightCard;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { HighlightCard } from './HighlightCard';
3
+
4
+ const meta = {
5
+ title: 'Resume Core/Callouts/HighlightCard',
6
+ component: HighlightCard,
7
+ parameters: { layout: 'padded' },
8
+ tags: ['autodocs'],
9
+ };
10
+
11
+ export default meta;
12
+
13
+ export const Default = {
14
+ args: {
15
+ title: 'Featured Achievement',
16
+ description:
17
+ 'Led development of cloud-native architecture serving 1M+ daily users',
18
+ },
19
+ };
20
+
21
+ export const Example = {
22
+ args: {
23
+ title: 'Key Skill',
24
+ description: 'Expert in React, TypeScript, and modern web development',
25
+ icon: '⭐',
26
+ },
27
+ };
@@ -0,0 +1,82 @@
1
+ import React from 'react';
2
+ /**
3
+ * InfoBox
4
+ * Information box with icon and text
5
+ */
6
+ import styled from 'styled-components';
7
+
8
+ const Box = styled.div`
9
+ display: flex;
10
+ gap: var(--resume-space-tight);
11
+ padding: var(--resume-space-tight);
12
+ background-color: var(--resume-color-background);
13
+ border: 1px solid var(--resume-color-border);
14
+ border-radius: var(--resume-radius-md);
15
+ margin: var(--resume-space-tight) 0;
16
+ break-inside: avoid;
17
+
18
+ @media print {
19
+ border: 1px solid var(--resume-color-border);
20
+ break-inside: avoid;
21
+ page-break-inside: avoid;
22
+ }
23
+ `;
24
+
25
+ const Icon = styled.div`
26
+ flex-shrink: 0;
27
+ width: 24px;
28
+ height: 24px;
29
+ display: flex;
30
+ align-items: center;
31
+ justify-content: center;
32
+ border-radius: 50%;
33
+ background-color: ${(props) => props.$color || 'var(--resume-color-accent)'};
34
+ color: white;
35
+ font-size: 14px;
36
+ font-weight: var(--resume-weight-bold);
37
+
38
+ @media print {
39
+ -webkit-print-color-adjust: exact;
40
+ print-color-adjust: exact;
41
+ border: 2px solid ${(props) => props.$color || 'var(--resume-color-accent)'};
42
+ }
43
+ `;
44
+
45
+ const Content = styled.div`
46
+ flex: 1;
47
+ `;
48
+
49
+ const Title = styled.div`
50
+ font-size: var(--resume-size-body);
51
+ font-weight: var(--resume-weight-medium);
52
+ color: var(--resume-color-primary);
53
+ margin-bottom: 4px;
54
+ `;
55
+
56
+ const Text = styled.div`
57
+ font-size: var(--resume-size-small);
58
+ color: var(--resume-color-secondary);
59
+ line-height: var(--resume-line-height-normal);
60
+ `;
61
+
62
+ /**
63
+ * @param {Object} props
64
+ * @param {string|React.ReactNode} props.children - Box content
65
+ * @param {string} [props.title] - Optional title
66
+ * @param {string|React.ReactNode} [props.icon] - Icon or emoji
67
+ * @param {string} [props.iconColor] - Custom icon color
68
+ * @param {string} [props.className] - Additional CSS classes
69
+ */
70
+ export function InfoBox({ children, title, icon = 'i', iconColor, className }) {
71
+ return (
72
+ <Box className={className}>
73
+ <Icon $color={iconColor}>{icon}</Icon>
74
+ <Content>
75
+ {title && <Title>{title}</Title>}
76
+ <Text>{children}</Text>
77
+ </Content>
78
+ </Box>
79
+ );
80
+ }
81
+
82
+ export default InfoBox;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { InfoBox } from './InfoBox';
3
+
4
+ const meta = {
5
+ title: 'Resume Core/Callouts/InfoBox',
6
+ component: InfoBox,
7
+ parameters: { layout: 'padded' },
8
+ tags: ['autodocs'],
9
+ };
10
+
11
+ export default meta;
12
+
13
+ export const Default = {
14
+ args: {
15
+ title: 'Professional Summary',
16
+ children:
17
+ 'Experienced software engineer with 8+ years building scalable web applications.',
18
+ },
19
+ };
20
+
21
+ export const Example = {
22
+ args: {
23
+ title: 'Contact Information',
24
+ children: 'Available for full-time positions and consulting opportunities.',
25
+ },
26
+ };
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export { Callout } from './Callout';
3
+ export { InfoBox } from './InfoBox';
4
+ export { HighlightCard } from './HighlightCard';