@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,151 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { HyphenationSafeParagraph } from './HyphenationSafeParagraph.jsx';
3
+
4
+ const meta: Meta<typeof HyphenationSafeParagraph> = {
5
+ title: 'Typography/HyphenationSafeParagraph',
6
+ component: HyphenationSafeParagraph,
7
+ tags: ['autodocs'],
8
+ argTypes: {
9
+ lang: {
10
+ control: 'select',
11
+ options: ['en', 'es', 'fr', 'de', 'it', 'pt'],
12
+ },
13
+ color: { control: 'color' },
14
+ textAlign: {
15
+ control: 'select',
16
+ options: ['left', 'center', 'right', 'justify'],
17
+ },
18
+ maxLines: { control: 'number' },
19
+ as: {
20
+ control: 'select',
21
+ options: ['p', 'div', 'span'],
22
+ },
23
+ },
24
+ };
25
+
26
+ export default meta;
27
+ type Story = StoryObj<typeof HyphenationSafeParagraph>;
28
+
29
+ const longText =
30
+ 'Implemented comprehensive internationalization framework for enterprise-level applications, incorporating sophisticated multilingual content management capabilities and advanced localization strategies that significantly improved user engagement across global markets.';
31
+
32
+ export const Default: Story = {
33
+ args: {
34
+ children: longText,
35
+ },
36
+ decorators: [
37
+ (Story) => (
38
+ <div style={{ maxWidth: '400px' }}>
39
+ <Story />
40
+ </div>
41
+ ),
42
+ ],
43
+ };
44
+
45
+ export const JustifiedText: Story = {
46
+ args: {
47
+ children: longText,
48
+ textAlign: 'justify',
49
+ },
50
+ decorators: [
51
+ (Story) => (
52
+ <div style={{ maxWidth: '500px' }}>
53
+ <Story />
54
+ </div>
55
+ ),
56
+ ],
57
+ };
58
+
59
+ export const WithMaxLines: Story = {
60
+ args: {
61
+ children:
62
+ 'Developed and maintained mission-critical microservices architecture supporting millions of daily transactions. Led technical implementation of containerization strategy and continuous deployment pipelines. Collaborated with product teams to define scalable solutions.',
63
+ maxLines: 2,
64
+ },
65
+ decorators: [
66
+ (Story) => (
67
+ <div style={{ maxWidth: '450px' }}>
68
+ <Story />
69
+ </div>
70
+ ),
71
+ ],
72
+ };
73
+
74
+ export const FrenchLanguage: Story = {
75
+ args: {
76
+ children:
77
+ "Développement d'applications web modernes avec React et TypeScript, intégration de microservices et implémentation de solutions d'infrastructure cloud évolutives pour des entreprises internationales.",
78
+ lang: 'fr',
79
+ },
80
+ decorators: [
81
+ (Story) => (
82
+ <div style={{ maxWidth: '400px' }}>
83
+ <Story />
84
+ </div>
85
+ ),
86
+ ],
87
+ };
88
+
89
+ export const SpanishLanguage: Story = {
90
+ args: {
91
+ children:
92
+ 'Arquitecto de soluciones con experiencia en desarrollo de aplicaciones empresariales, implementación de metodologías ágiles y liderazgo de equipos multidisciplinarios en proyectos de transformación digital.',
93
+ lang: 'es',
94
+ },
95
+ decorators: [
96
+ (Story) => (
97
+ <div style={{ maxWidth: '400px' }}>
98
+ <Story />
99
+ </div>
100
+ ),
101
+ ],
102
+ };
103
+
104
+ export const GermanLanguage: Story = {
105
+ args: {
106
+ children:
107
+ 'Softwareentwickler mit umfangreichen Kenntnissen in der Implementierung skalierbarer Systeme, Cloud-Infrastruktur und kontinuierlicher Integration für unternehmenskritische Anwendungen.',
108
+ lang: 'de',
109
+ },
110
+ decorators: [
111
+ (Story) => (
112
+ <div style={{ maxWidth: '400px' }}>
113
+ <Story />
114
+ </div>
115
+ ),
116
+ ],
117
+ };
118
+
119
+ export const CustomColor: Story = {
120
+ args: {
121
+ children: longText,
122
+ color: '#475569',
123
+ },
124
+ decorators: [
125
+ (Story) => (
126
+ <div style={{ maxWidth: '400px' }}>
127
+ <Story />
128
+ </div>
129
+ ),
130
+ ],
131
+ };
132
+
133
+ export const NarrowColumn: Story = {
134
+ args: {
135
+ children:
136
+ 'Spearheaded the architectural transformation of legacy monolithic applications into cloud-native microservices, resulting in improved scalability and maintainability.',
137
+ },
138
+ decorators: [
139
+ (Story) => (
140
+ <div
141
+ style={{
142
+ maxWidth: '250px',
143
+ border: '1px solid #e5e7eb',
144
+ padding: '16px',
145
+ }}
146
+ >
147
+ <Story />
148
+ </div>
149
+ ),
150
+ ],
151
+ };
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ /**
3
+ * Label
4
+ * Small label/caption text
5
+ */
6
+ import styled from 'styled-components';
7
+
8
+ const StyledLabel = styled.span`
9
+ display: inline-block;
10
+ font-size: var(--resume-size-small);
11
+ font-weight: ${(props) => props.$weight || 'var(--resume-weight-medium)'};
12
+ color: ${(props) => props.$color || 'var(--resume-color-secondary)'};
13
+ text-transform: ${(props) => (props.$uppercase ? 'uppercase' : 'none')};
14
+ letter-spacing: ${(props) => (props.$uppercase ? '0.05em' : 'normal')};
15
+ `;
16
+
17
+ export function Label({
18
+ weight,
19
+ color,
20
+ uppercase = false,
21
+ children,
22
+ className,
23
+ as = 'span',
24
+ }) {
25
+ return (
26
+ <StyledLabel
27
+ as={as}
28
+ $weight={weight}
29
+ $color={color}
30
+ $uppercase={uppercase}
31
+ className={className}
32
+ >
33
+ {children}
34
+ </StyledLabel>
35
+ );
36
+ }
37
+
38
+ export default Label;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ /**
3
+ * Label Stories
4
+ */
5
+ import { Label } from './Label';
6
+
7
+ const meta = {
8
+ title: 'Resume Core/Typography/Label',
9
+ component: Label,
10
+ parameters: { layout: 'padded' },
11
+ tags: ['autodocs'],
12
+ };
13
+
14
+ export default meta;
15
+
16
+ export const Default = {
17
+ args: {
18
+ children: 'Label Text',
19
+ },
20
+ };
21
+ export const Uppercase: Story = {
22
+ args: { uppercase: true, children: 'Uppercase Label' },
23
+ };
24
+ export const CustomColor: Story = {
25
+ args: { color: '#007bff', children: 'Colored Label' },
26
+ };
27
+ export const Bold: Story = { args: { weight: 'bold', children: 'Bold Label' } };
@@ -0,0 +1,78 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ /**
5
+ * QuoteStripe
6
+ * Single-line pull-quote with left accent rule.
7
+ * Adds padding to prevent curly quote clipping and provides visual emphasis.
8
+ *
9
+ * @param {Object} props - Component props
10
+ * @param {React.ReactNode} props.children - Quote content to render
11
+ * @param {string} [props.className] - Additional CSS classes
12
+ * @param {string} [props.accentColor] - Color of the left border accent
13
+ * @param {string} [props.borderWidth='3px'] - Width of the left border
14
+ * @param {string} [props.fontStyle='italic'] - Font style (italic, normal)
15
+ * @param {string} [props.paddingLeft='16px'] - Left padding (inside accent rule)
16
+ *
17
+ * @example
18
+ * ```jsx
19
+ * <QuoteStripe>
20
+ * "Exceptional problem solver with keen attention to detail"
21
+ * </QuoteStripe>
22
+ *
23
+ * <QuoteStripe accentColor="#2563eb" borderWidth="4px">
24
+ * Leadership excellence in cross-functional teams
25
+ * </QuoteStripe>
26
+ * ```
27
+ */
28
+
29
+ const StyledQuoteStripe = styled.blockquote`
30
+ margin: 0 0 var(--resume-space-item) 0;
31
+ padding: 2px 0 2px ${(props) => props.$paddingLeft || '16px'};
32
+ border-left: ${(props) => props.$borderWidth || '3px'} solid
33
+ ${(props) => props.$accentColor || 'var(--resume-color-accent)'};
34
+
35
+ font-size: var(--resume-size-body);
36
+ font-style: ${(props) => props.$fontStyle || 'italic'};
37
+ font-weight: var(--resume-weight-normal);
38
+ color: var(--resume-color-primary);
39
+ line-height: var(--resume-line-height-normal);
40
+
41
+ /* Prevent quote clipping with subtle padding */
42
+ padding-right: 2px;
43
+
44
+ /* Single-line constraint */
45
+ white-space: nowrap;
46
+ overflow: hidden;
47
+ text-overflow: ellipsis;
48
+
49
+ /* Print optimization */
50
+ @media print {
51
+ page-break-inside: avoid;
52
+ color: #000;
53
+ border-left-color: ${(props) => props.$accentColor || '#000'};
54
+ }
55
+ `;
56
+
57
+ export function QuoteStripe({
58
+ children,
59
+ className,
60
+ accentColor,
61
+ borderWidth,
62
+ fontStyle,
63
+ paddingLeft,
64
+ }) {
65
+ return (
66
+ <StyledQuoteStripe
67
+ $accentColor={accentColor}
68
+ $borderWidth={borderWidth}
69
+ $fontStyle={fontStyle}
70
+ $paddingLeft={paddingLeft}
71
+ className={className}
72
+ >
73
+ {children}
74
+ </StyledQuoteStripe>
75
+ );
76
+ }
77
+
78
+ export default QuoteStripe;
@@ -0,0 +1,63 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { QuoteStripe } from './QuoteStripe.jsx';
3
+
4
+ const meta: Meta<typeof QuoteStripe> = {
5
+ title: 'Typography/QuoteStripe',
6
+ component: QuoteStripe,
7
+ tags: ['autodocs'],
8
+ argTypes: {
9
+ accentColor: { control: 'color' },
10
+ borderWidth: { control: 'text' },
11
+ fontStyle: {
12
+ control: 'select',
13
+ options: ['italic', 'normal'],
14
+ },
15
+ paddingLeft: { control: 'text' },
16
+ },
17
+ };
18
+
19
+ export default meta;
20
+ type Story = StoryObj<typeof QuoteStripe>;
21
+
22
+ export const Default: Story = {
23
+ args: {
24
+ children: '"Exceptional problem solver with keen attention to detail"',
25
+ },
26
+ };
27
+
28
+ export const WithoutQuotes: Story = {
29
+ args: {
30
+ children: 'Leadership excellence in cross-functional teams',
31
+ },
32
+ };
33
+
34
+ export const CustomAccentColor: Story = {
35
+ args: {
36
+ children: '"Innovative thinker who drives transformational change"',
37
+ accentColor: '#8b5cf6',
38
+ },
39
+ };
40
+
41
+ export const ThickBorder: Story = {
42
+ args: {
43
+ children: '"Technical expertise combined with business acumen"',
44
+ borderWidth: '5px',
45
+ accentColor: '#2563eb',
46
+ },
47
+ };
48
+
49
+ export const NormalFontStyle: Story = {
50
+ args: {
51
+ children:
52
+ 'Strategic leader with proven track record in scaling organizations',
53
+ fontStyle: 'normal',
54
+ },
55
+ };
56
+
57
+ export const MinimalStyle: Story = {
58
+ args: {
59
+ children: 'Passionate about creating accessible, user-centered experiences',
60
+ accentColor: '#000',
61
+ borderWidth: '2px',
62
+ },
63
+ };
@@ -0,0 +1,62 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+
4
+ /**
5
+ * SectionIntroParagraph
6
+ * Larger, softer paragraph component designed to open sections.
7
+ * Uses increased line-height for readability when space is constrained.
8
+ *
9
+ * @param {Object} props - Component props
10
+ * @param {React.ReactNode} props.children - Content to render
11
+ * @param {string} [props.className] - Additional CSS classes
12
+ * @param {string} [props.as='p'] - HTML element to render as
13
+ * @param {string} [props.color] - Text color override
14
+ * @param {string} [props.maxWidth] - Maximum width constraint
15
+ *
16
+ * @example
17
+ * ```jsx
18
+ * <SectionIntroParagraph>
19
+ * Senior software engineer with 10+ years building scalable systems.
20
+ * </SectionIntroParagraph>
21
+ * ```
22
+ */
23
+
24
+ const StyledIntroParagraph = styled.p`
25
+ font-size: var(--resume-size-body);
26
+ font-weight: var(--resume-weight-normal);
27
+ color: ${(props) => props.$color || 'var(--resume-color-secondary)'};
28
+ line-height: var(--resume-line-height-relaxed);
29
+ margin: 0 0 var(--resume-space-item) 0;
30
+ max-width: ${(props) => props.$maxWidth || '100%'};
31
+
32
+ /* Softer appearance for intro text */
33
+ opacity: 0.95;
34
+
35
+ /* Print optimization - maintain readability */
36
+ @media print {
37
+ line-height: var(--resume-line-height-normal);
38
+ opacity: 1;
39
+ page-break-inside: avoid;
40
+ }
41
+ `;
42
+
43
+ export function SectionIntroParagraph({
44
+ children,
45
+ className,
46
+ as = 'p',
47
+ color,
48
+ maxWidth,
49
+ }) {
50
+ return (
51
+ <StyledIntroParagraph
52
+ as={as}
53
+ $color={color}
54
+ $maxWidth={maxWidth}
55
+ className={className}
56
+ >
57
+ {children}
58
+ </StyledIntroParagraph>
59
+ );
60
+ }
61
+
62
+ export default SectionIntroParagraph;
@@ -0,0 +1,57 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { SectionIntroParagraph } from './SectionIntroParagraph.jsx';
3
+
4
+ const meta: Meta<typeof SectionIntroParagraph> = {
5
+ title: 'Typography/SectionIntroParagraph',
6
+ component: SectionIntroParagraph,
7
+ tags: ['autodocs'],
8
+ argTypes: {
9
+ color: { control: 'color' },
10
+ maxWidth: { control: 'text' },
11
+ as: {
12
+ control: 'select',
13
+ options: ['p', 'div', 'span'],
14
+ },
15
+ },
16
+ };
17
+
18
+ export default meta;
19
+ type Story = StoryObj<typeof SectionIntroParagraph>;
20
+
21
+ export const Default: Story = {
22
+ args: {
23
+ children:
24
+ 'Senior software engineer with 10+ years of experience building scalable distributed systems and leading cross-functional teams.',
25
+ },
26
+ };
27
+
28
+ export const WithMaxWidth: Story = {
29
+ args: {
30
+ children:
31
+ 'Creative problem-solver with a passion for elegant code architecture and mentoring junior developers.',
32
+ maxWidth: '500px',
33
+ },
34
+ };
35
+
36
+ export const CustomColor: Story = {
37
+ args: {
38
+ children:
39
+ 'Full-stack developer specializing in modern web technologies and cloud infrastructure.',
40
+ color: '#2563eb',
41
+ },
42
+ };
43
+
44
+ export const LongIntroduction: Story = {
45
+ args: {
46
+ children:
47
+ 'Results-driven technology leader with extensive experience in enterprise software development, team building, and product strategy. Proven track record of delivering high-impact solutions that drive business growth and operational efficiency.',
48
+ },
49
+ };
50
+
51
+ export const AsDiv: Story = {
52
+ args: {
53
+ children:
54
+ 'DevOps engineer focused on automation, reliability, and continuous improvement.',
55
+ as: 'div',
56
+ },
57
+ };
@@ -0,0 +1,42 @@
1
+ import React from 'react';
2
+ /**
3
+ * Text
4
+ * Body text component
5
+ */
6
+ import styled from 'styled-components';
7
+
8
+ const StyledText = styled.p`
9
+ font-size: ${(props) => props.$size || 'var(--resume-size-body)'};
10
+ font-weight: ${(props) => props.$weight || 'var(--resume-weight-normal)'};
11
+ color: ${(props) => props.$color || 'var(--resume-color-secondary)'};
12
+ line-height: ${(props) =>
13
+ props.$lineHeight || 'var(--resume-line-height-normal)'};
14
+ margin: 0 0 ${(props) => props.$spacing || '0'} 0;
15
+ `;
16
+
17
+ export function Text({
18
+ size,
19
+ weight,
20
+ color,
21
+ lineHeight,
22
+ spacing,
23
+ children,
24
+ className,
25
+ as = 'p',
26
+ }) {
27
+ return (
28
+ <StyledText
29
+ as={as}
30
+ $size={size}
31
+ $weight={weight}
32
+ $color={color}
33
+ $lineHeight={lineHeight}
34
+ $spacing={spacing}
35
+ className={className}
36
+ >
37
+ {children}
38
+ </StyledText>
39
+ );
40
+ }
41
+
42
+ export default Text;
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ /**
3
+ * Text Stories
4
+ */
5
+ import { Text } from './Text';
6
+
7
+ const meta = {
8
+ title: 'Resume Core/Typography/Text',
9
+ component: Text,
10
+ parameters: { layout: 'padded' },
11
+ tags: ['autodocs'],
12
+ };
13
+
14
+ export default meta;
15
+
16
+ const longText =
17
+ 'Experienced software engineer with 8+ years building scalable web applications. Specialized in React, Node.js, and cloud technologies. Passionate about mentoring and open source.';
18
+
19
+ export const Default = {
20
+ args: {
21
+ children: 'Body text content',
22
+ },
23
+ };
24
+ export const CustomSize: Story = {
25
+ args: { size: '18px', children: 'Larger text for emphasis' },
26
+ };
27
+ export const CustomColor: Story = {
28
+ args: { color: '#666', children: 'Secondary color text' },
29
+ };
30
+ export const Bold: Story = {
31
+ args: { weight: 'bold', children: 'Bold emphasized text' },
32
+ };
33
+ export const CustomLineHeight: Story = {
34
+ args: { lineHeight: '1.8', children: longText },
35
+ };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ /**
3
+ * Typography Components
4
+ * Export all typography components
5
+ */
6
+ export { Heading } from './Heading.jsx';
7
+ export { Text } from './Text.jsx';
8
+ export { Label } from './Label.jsx';
9
+ export { SectionIntroParagraph } from './SectionIntroParagraph.jsx';
10
+ export { QuoteStripe } from './QuoteStripe.jsx';
11
+ export { HyphenationSafeParagraph } from './HyphenationSafeParagraph.jsx';
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ /**
3
+ * Divider
4
+ * Horizontal line separator
5
+ */
6
+ import styled from 'styled-components';
7
+
8
+ const StyledDivider = styled.hr`
9
+ width: 100%;
10
+ height: ${(props) => props.$thickness || '1px'};
11
+ background-color: ${(props) => props.$color || 'var(--resume-color-border)'};
12
+ border: none;
13
+ margin: ${(props) => props.$spacing || 'var(--resume-space-item)'} 0;
14
+
15
+ @media print {
16
+ -webkit-print-color-adjust: exact;
17
+ print-color-adjust: exact;
18
+ }
19
+ `;
20
+
21
+ export function Divider({ thickness, color, spacing, className }) {
22
+ return (
23
+ <StyledDivider
24
+ $thickness={thickness}
25
+ $color={color}
26
+ $spacing={spacing}
27
+ className={className}
28
+ />
29
+ );
30
+ }
31
+
32
+ export default Divider;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ /**
3
+ * Divider Stories
4
+ */
5
+ import { Divider } from './Divider';
6
+
7
+ const meta = {
8
+ title: 'Resume Core/Utils/Divider',
9
+ component: Divider,
10
+ parameters: { layout: 'padded' },
11
+ tags: ['autodocs'],
12
+ };
13
+
14
+ export default meta;
15
+
16
+ export const Default = {
17
+ args: {},
18
+ };
19
+
20
+ export const Example = {
21
+ args: {
22
+ variant: 'dashed',
23
+ },
24
+ };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Flex
4
+ * Simplified flex container (alias for FlexLayout)
5
+ */
6
+ export { FlexLayout as Flex } from '../layouts/FlexLayout.jsx';
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ /**
3
+ * Flex Stories
4
+ */
5
+ import { Flex } from './Flex';
6
+
7
+ const meta = {
8
+ title: 'Resume Core/Utils/Flex',
9
+ component: Flex,
10
+ parameters: { layout: 'padded' },
11
+ tags: ['autodocs'],
12
+ };
13
+
14
+ export default meta;
15
+
16
+ export const Default = {
17
+ args: {
18
+ children: 'Flex container content',
19
+ },
20
+ };
21
+
22
+ export const Example = {
23
+ args: {
24
+ direction: 'column',
25
+ gap: 'medium',
26
+ children: 'Vertical flex layout',
27
+ },
28
+ };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Grid
4
+ * Simplified grid container (alias for GridLayout)
5
+ */
6
+ export { GridLayout as Grid } from '../layouts/GridLayout.jsx';