@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.
- package/README.md +689 -0
- package/dist/resume-print.css +425 -0
- package/dist/tokens.css +139 -0
- package/package.json +66 -0
- package/src/badges/BadgeRowOutline.jsx +118 -0
- package/src/badges/BadgeRowOutline.stories.tsx +160 -0
- package/src/badges/index.jsx +5 -0
- package/src/callouts/Callout.jsx +80 -0
- package/src/callouts/Callout.stories.tsx +27 -0
- package/src/callouts/HighlightCard.jsx +114 -0
- package/src/callouts/HighlightCard.stories.tsx +27 -0
- package/src/callouts/InfoBox.jsx +82 -0
- package/src/callouts/InfoBox.stories.tsx +26 -0
- package/src/callouts/index.jsx +4 -0
- package/src/certifications/AwardCard.jsx +83 -0
- package/src/certifications/AwardCard.stories.tsx +32 -0
- package/src/certifications/CertificationBadge.jsx +85 -0
- package/src/certifications/CertificationBadge.stories.tsx +29 -0
- package/src/certifications/CertificationRow.jsx +150 -0
- package/src/certifications/CertificationRow.stories.tsx +64 -0
- package/src/certifications/HonorsList.jsx +87 -0
- package/src/certifications/HonorsList.stories.tsx +36 -0
- package/src/certifications/index.jsx +5 -0
- package/src/containers/AccentCalloutPanel.jsx +176 -0
- package/src/containers/AccentCalloutPanel.stories.tsx +105 -0
- package/src/containers/MutedPanel.jsx +125 -0
- package/src/containers/MutedPanel.stories.tsx +113 -0
- package/src/containers/RoleBlockFramed.jsx +191 -0
- package/src/containers/RoleBlockFramed.stories.tsx +230 -0
- package/src/containers/SoftCardOutline.jsx +161 -0
- package/src/containers/SoftCardOutline.stories.tsx +174 -0
- package/src/containers/index.jsx +9 -0
- package/src/data/KPIChipLine.jsx +158 -0
- package/src/data/KPIChipLine.stories.tsx +99 -0
- package/src/data/KeyValueInline.jsx +150 -0
- package/src/data/KeyValueInline.stories.tsx +136 -0
- package/src/data/MetricBar.jsx +93 -0
- package/src/data/MetricBar.stories.tsx +31 -0
- package/src/data/MetricBullet.jsx +129 -0
- package/src/data/MetricBullet.stories.tsx +99 -0
- package/src/data/MetricInline.jsx +60 -0
- package/src/data/MetricInline.stories.tsx +53 -0
- package/src/data/ProgressCircle.jsx +81 -0
- package/src/data/ProgressCircle.stories.tsx +102 -0
- package/src/data/StatCard.jsx +65 -0
- package/src/data/StatCard.stories.tsx +29 -0
- package/src/data/index.jsx +12 -0
- package/src/dates/DateBadge.jsx +73 -0
- package/src/dates/DateBadge.stories.tsx +30 -0
- package/src/dates/RelativeDate.jsx +121 -0
- package/src/dates/RelativeDate.stories.tsx +29 -0
- package/src/dates/index.jsx +3 -0
- package/src/experience/ExperienceCard.jsx +82 -0
- package/src/experience/ExperienceCard.stories.tsx +36 -0
- package/src/experience/ExperienceCompact.jsx +72 -0
- package/src/experience/ExperienceCompact.stories.tsx +53 -0
- package/src/experience/ExperienceGrid.jsx +65 -0
- package/src/experience/ExperienceGrid.stories.tsx +63 -0
- package/src/experience/ExperienceTimeline.jsx +24 -0
- package/src/experience/ExperienceTimeline.stories.tsx +63 -0
- package/src/experience/RoleHeaderCompact.jsx +99 -0
- package/src/experience/index.jsx +9 -0
- package/src/header/ContactRowLine.jsx +125 -0
- package/src/header/ContactRowLine.stories.tsx +65 -0
- package/src/header/CornerInitials.jsx +178 -0
- package/src/header/CornerInitials.stories.tsx +129 -0
- package/src/header/Footer.jsx +50 -0
- package/src/header/Footer.stories.tsx +25 -0
- package/src/header/HeaderCentered.jsx +51 -0
- package/src/header/HeaderCentered.stories.tsx +30 -0
- package/src/header/HeaderMinimal.jsx +50 -0
- package/src/header/HeaderMinimal.stories.tsx +29 -0
- package/src/header/HeaderSplit.jsx +65 -0
- package/src/header/HeaderSplit.stories.tsx +29 -0
- package/src/header/HeroNameBlock.jsx +71 -0
- package/src/header/HeroNameBlock.stories.tsx +37 -0
- package/src/header/NameStackElegant.jsx +104 -0
- package/src/header/NameStackElegant.stories.tsx +60 -0
- package/src/header/PageBreak.jsx +25 -0
- package/src/header/PageBreak.stories.tsx +22 -0
- package/src/header/SectionFlagTitle.jsx +87 -0
- package/src/header/SectionFlagTitle.stories.tsx +53 -0
- package/src/header/SectionRuleTitle.jsx +84 -0
- package/src/header/SectionRuleTitle.stories.tsx +52 -0
- package/src/header/index.jsx +18 -0
- package/src/helpers/calculations.js +428 -0
- package/src/index.js +253 -0
- package/src/languages/LanguageBar.jsx +90 -0
- package/src/languages/LanguageBar.stories.tsx +28 -0
- package/src/languages/LanguageGrid.jsx +118 -0
- package/src/languages/LanguageGrid.stories.tsx +33 -0
- package/src/languages/LanguageLevelBarLite.jsx +147 -0
- package/src/languages/LanguageLevelBarLite.stories.tsx +74 -0
- package/src/languages/ProficiencyScale.jsx +107 -0
- package/src/languages/ProficiencyScale.stories.tsx +30 -0
- package/src/languages/index.jsx +5 -0
- package/src/layouts/CardLayout.jsx +46 -0
- package/src/layouts/CardLayout.stories.tsx +272 -0
- package/src/layouts/FlexLayout.jsx +53 -0
- package/src/layouts/FlexLayout.stories.tsx +270 -0
- package/src/layouts/GridLayout.jsx +38 -0
- package/src/layouts/GridLayout.stories.tsx +183 -0
- package/src/layouts/SidebarLayout.jsx +63 -0
- package/src/layouts/SidebarLayout.stories.tsx +162 -0
- package/src/layouts/StackLayout.jsx +26 -0
- package/src/layouts/StackLayout.stories.tsx +192 -0
- package/src/layouts/TwoColumnMicroGrid.jsx +87 -0
- package/src/layouts/TwoColumnMicroGrid.stories.tsx +96 -0
- package/src/layouts/index.jsx +11 -0
- package/src/lists/AchievementListSpacious.jsx +81 -0
- package/src/lists/AchievementListSpacious.stories.tsx +49 -0
- package/src/lists/AchievementListTight.jsx +80 -0
- package/src/lists/AchievementListTight.stories.tsx +49 -0
- package/src/lists/BulletList.jsx +66 -0
- package/src/lists/BulletList.stories.tsx +38 -0
- package/src/lists/CheckList.jsx +94 -0
- package/src/lists/CheckList.stories.tsx +38 -0
- package/src/lists/CompactList.jsx +90 -0
- package/src/lists/CompactList.stories.tsx +34 -0
- package/src/lists/DefinitionKeyline.jsx +114 -0
- package/src/lists/DefinitionKeyline.stories.tsx +90 -0
- package/src/lists/HangingBulletList.jsx +82 -0
- package/src/lists/HangingBulletList.stories.tsx +50 -0
- package/src/lists/IconList.jsx +89 -0
- package/src/lists/IconList.stories.tsx +36 -0
- package/src/lists/ListDashCompact.jsx +69 -0
- package/src/lists/ListDashCompact.stories.tsx +60 -0
- package/src/lists/MiniDotLeaderList.jsx +69 -0
- package/src/lists/MiniDotLeaderList.stories.tsx +73 -0
- package/src/lists/NumberedList.jsx +74 -0
- package/src/lists/NumberedList.stories.tsx +39 -0
- package/src/lists/index.jsx +12 -0
- package/src/metadata/GreyLabelCaps.jsx +66 -0
- package/src/metadata/GreyLabelCaps.stories.tsx +40 -0
- package/src/metadata/InlineKicker.jsx +61 -0
- package/src/metadata/InlineKicker.stories.tsx +35 -0
- package/src/metadata/MetaRow.jsx +96 -0
- package/src/metadata/MetaRow.stories.tsx +38 -0
- package/src/metadata/SmallCapsHeading.jsx +75 -0
- package/src/metadata/SmallCapsHeading.stories.tsx +54 -0
- package/src/metadata/SubsectionLabel.jsx +92 -0
- package/src/metadata/SubsectionLabel.stories.tsx +40 -0
- package/src/metadata/index.jsx +10 -0
- package/src/primitives/AccentSidebarStripe.stories.tsx +65 -0
- package/src/primitives/AccentSidebarStripe.tsx +95 -0
- package/src/primitives/AccentTopRule.stories.tsx +102 -0
- package/src/primitives/AccentTopRule.tsx +103 -0
- package/src/primitives/Badge.jsx +125 -0
- package/src/primitives/Badge.stories.tsx +27 -0
- package/src/primitives/ContactInfo.jsx +133 -0
- package/src/primitives/ContactInfo.stories.tsx +30 -0
- package/src/primitives/DIVIDERS.md +333 -0
- package/src/primitives/DateRange.jsx +178 -0
- package/src/primitives/DateRange.stories.tsx +28 -0
- package/src/primitives/DottedDivider.stories.tsx +54 -0
- package/src/primitives/DottedDivider.tsx +102 -0
- package/src/primitives/InlineSeparatorPipe.jsx +64 -0
- package/src/primitives/InlineSeparatorPipe.stories.tsx +96 -0
- package/src/primitives/KeylineDivider.stories.tsx +48 -0
- package/src/primitives/KeylineDivider.tsx +80 -0
- package/src/primitives/Link.jsx +59 -0
- package/src/primitives/Link.stories.tsx +29 -0
- package/src/primitives/ListItem.jsx +127 -0
- package/src/primitives/ListItem.stories.tsx +27 -0
- package/src/primitives/RulesetStack.stories.tsx +85 -0
- package/src/primitives/RulesetStack.tsx +117 -0
- package/src/primitives/Section.jsx +37 -0
- package/src/primitives/Section.stories.tsx +28 -0
- package/src/primitives/SectionTitle.jsx +62 -0
- package/src/primitives/SectionTitle.stories.tsx +27 -0
- package/src/primitives/index.jsx +36 -0
- package/src/print/ColumnBreak.jsx +44 -0
- package/src/print/ColumnBreak.stories.tsx +22 -0
- package/src/print/KeepTogether.jsx +24 -0
- package/src/print/KeepTogether.stories.tsx +26 -0
- package/src/print/LetterheadBar.jsx +100 -0
- package/src/print/LetterheadBar.stories.tsx +141 -0
- package/src/print/PageFooterLine.jsx +93 -0
- package/src/print/PageFooterLine.stories.tsx +121 -0
- package/src/print/PageHeaderLine.jsx +59 -0
- package/src/print/PageHeaderLine.stories.tsx +108 -0
- package/src/print/PrintOnly.jsx +49 -0
- package/src/print/PrintOnly.stories.tsx +26 -0
- package/src/print/SoftShadowEmulation.jsx +88 -0
- package/src/print/SoftShadowEmulation.stories.tsx +214 -0
- package/src/print/index.jsx +8 -0
- package/src/profile/Avatar.jsx +66 -0
- package/src/profile/Avatar.stories.tsx +84 -0
- package/src/profile/ContactGrid.jsx +63 -0
- package/src/profile/ContactGrid.stories.tsx +33 -0
- package/src/profile/ProfileCard.jsx +73 -0
- package/src/profile/ProfileCard.stories.tsx +35 -0
- package/src/profile/SocialLinks.jsx +61 -0
- package/src/profile/SocialLinks.stories.tsx +33 -0
- package/src/profile/index.jsx +9 -0
- package/src/providers/ThemeProvider.jsx +56 -0
- package/src/providers/ThemeProvider.stories.tsx +149 -0
- package/src/publications/PortfolioGrid.jsx +122 -0
- package/src/publications/PortfolioGrid.stories.tsx +62 -0
- package/src/publications/ProjectCard.jsx +151 -0
- package/src/publications/ProjectCard.stories.tsx +36 -0
- package/src/publications/PublicationEntryPlain.jsx +127 -0
- package/src/publications/PublicationEntryPlain.stories.tsx +58 -0
- package/src/publications/PublicationItem.jsx +120 -0
- package/src/publications/PublicationItem.stories.tsx +32 -0
- package/src/publications/index.jsx +5 -0
- package/src/quotes/BlockQuote.jsx +55 -0
- package/src/quotes/BlockQuote.stories.tsx +33 -0
- package/src/quotes/PullQuote.jsx +70 -0
- package/src/quotes/PullQuote.stories.tsx +32 -0
- package/src/quotes/Testimonial.jsx +99 -0
- package/src/quotes/Testimonial.stories.tsx +36 -0
- package/src/quotes/index.jsx +4 -0
- package/src/skills/SkillBar.jsx +66 -0
- package/src/skills/SkillBar.stories.tsx +112 -0
- package/src/skills/SkillCategory.jsx +71 -0
- package/src/skills/SkillCategory.stories.tsx +197 -0
- package/src/skills/SkillCloud.jsx +53 -0
- package/src/skills/SkillCloud.stories.tsx +132 -0
- package/src/skills/SkillGroup.jsx +56 -0
- package/src/skills/SkillGroup.stories.tsx +162 -0
- package/src/skills/SkillPill.jsx +56 -0
- package/src/skills/SkillPill.stories.tsx +157 -0
- package/src/skills/SkillRating.jsx +60 -0
- package/src/skills/SkillRating.stories.tsx +115 -0
- package/src/skills/index.jsx +11 -0
- package/src/styles/tokens.css +139 -0
- package/src/tables/ComparisonTable.jsx +128 -0
- package/src/tables/ComparisonTable.stories.tsx +41 -0
- package/src/tables/DataTable.jsx +149 -0
- package/src/tables/DataTable.stories.tsx +64 -0
- package/src/tables/SkillMatrix.jsx +139 -0
- package/src/tables/SkillMatrix.stories.tsx +90 -0
- package/src/tables/index.jsx +4 -0
- package/src/tags/ToolTagRibbon.jsx +106 -0
- package/src/tags/ToolTagRibbon.stories.tsx +121 -0
- package/src/tags/index.jsx +5 -0
- package/src/timeline/TimelineInline.stories.tsx +83 -0
- package/src/timeline/TimelineInline.tsx +202 -0
- package/src/timeline/TimelineItem.jsx +106 -0
- package/src/timeline/TimelineItem.stories.tsx +64 -0
- package/src/timeline/TimelineRuleMinimal.stories.tsx +68 -0
- package/src/timeline/TimelineRuleMinimal.tsx +165 -0
- package/src/timeline/TimelineSection.jsx +21 -0
- package/src/timeline/TimelineSection.stories.tsx +44 -0
- package/src/timeline/index.jsx +9 -0
- package/src/tokens/index.js +164 -0
- package/src/typography/Heading.jsx +48 -0
- package/src/typography/Heading.stories.tsx +46 -0
- package/src/typography/HyphenationSafeParagraph.jsx +98 -0
- package/src/typography/HyphenationSafeParagraph.stories.tsx +151 -0
- package/src/typography/Label.jsx +38 -0
- package/src/typography/Label.stories.tsx +27 -0
- package/src/typography/QuoteStripe.jsx +78 -0
- package/src/typography/QuoteStripe.stories.tsx +63 -0
- package/src/typography/SectionIntroParagraph.jsx +62 -0
- package/src/typography/SectionIntroParagraph.stories.tsx +57 -0
- package/src/typography/Text.jsx +42 -0
- package/src/typography/Text.stories.tsx +35 -0
- package/src/typography/index.jsx +11 -0
- package/src/utils/Divider.jsx +32 -0
- package/src/utils/Divider.stories.tsx +24 -0
- package/src/utils/Flex.jsx +6 -0
- package/src/utils/Flex.stories.tsx +28 -0
- package/src/utils/Grid.jsx +6 -0
- package/src/utils/Grid.stories.tsx +28 -0
- package/src/utils/Spacer.jsx +18 -0
- package/src/utils/Spacer.stories.tsx +26 -0
- package/src/utils/index.jsx +9 -0
- package/src/utils/security.js +155 -0
- package/src/visuals/BackgroundPattern.jsx +65 -0
- package/src/visuals/BackgroundPattern.stories.tsx +27 -0
- package/src/visuals/BorderAccent.jsx +147 -0
- package/src/visuals/BorderAccent.stories.tsx +27 -0
- package/src/visuals/ColorBlock.jsx +60 -0
- package/src/visuals/ColorBlock.stories.tsx +27 -0
- package/src/visuals/DividerVariants.jsx +120 -0
- package/src/visuals/DividerVariants.stories.tsx +27 -0
- package/src/visuals/index.jsx +5 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MiniDotLeaderList } from './MiniDotLeaderList';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* MiniDotLeaderList Stories
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
const meta = {
|
|
9
|
+
title: 'Resume Core/Lists/MiniDotLeaderList',
|
|
10
|
+
component: MiniDotLeaderList,
|
|
11
|
+
parameters: { layout: 'padded' },
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default meta;
|
|
16
|
+
|
|
17
|
+
export const Default = {
|
|
18
|
+
args: {
|
|
19
|
+
items: ['JavaScript', 'TypeScript', 'React', 'Node.js', 'Python', 'AWS'],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const Skills = {
|
|
24
|
+
args: {
|
|
25
|
+
items: [
|
|
26
|
+
'Team Leadership',
|
|
27
|
+
'Agile/Scrum',
|
|
28
|
+
'Code Review',
|
|
29
|
+
'Mentorship',
|
|
30
|
+
'Technical Writing',
|
|
31
|
+
'Public Speaking',
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const CustomColor = {
|
|
37
|
+
args: {
|
|
38
|
+
items: [
|
|
39
|
+
'Bachelor of Science',
|
|
40
|
+
'Computer Science',
|
|
41
|
+
'Stanford University',
|
|
42
|
+
'2018',
|
|
43
|
+
],
|
|
44
|
+
color: '#0066cc',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const LongList = {
|
|
49
|
+
args: {
|
|
50
|
+
items: [
|
|
51
|
+
'React',
|
|
52
|
+
'Vue.js',
|
|
53
|
+
'Angular',
|
|
54
|
+
'Svelte',
|
|
55
|
+
'Next.js',
|
|
56
|
+
'Nuxt',
|
|
57
|
+
'Gatsby',
|
|
58
|
+
'TypeScript',
|
|
59
|
+
'JavaScript',
|
|
60
|
+
'Node.js',
|
|
61
|
+
'Express',
|
|
62
|
+
'Fastify',
|
|
63
|
+
'PostgreSQL',
|
|
64
|
+
'MongoDB',
|
|
65
|
+
'Redis',
|
|
66
|
+
'Docker',
|
|
67
|
+
'Kubernetes',
|
|
68
|
+
'AWS',
|
|
69
|
+
'Azure',
|
|
70
|
+
'GCP',
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* NumberedList
|
|
4
|
+
* Numbered list with custom styling
|
|
5
|
+
*/
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
|
|
8
|
+
const List = styled.ol`
|
|
9
|
+
margin: var(--resume-space-tight) 0;
|
|
10
|
+
padding-left: 28px;
|
|
11
|
+
counter-reset: list-counter;
|
|
12
|
+
list-style: none;
|
|
13
|
+
`;
|
|
14
|
+
|
|
15
|
+
const Item = styled.li`
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: flex-start;
|
|
18
|
+
gap: 12px;
|
|
19
|
+
padding: 6px 0;
|
|
20
|
+
counter-increment: list-counter;
|
|
21
|
+
break-inside: avoid;
|
|
22
|
+
|
|
23
|
+
&::before {
|
|
24
|
+
content: counter(list-counter) '.';
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
width: 24px;
|
|
27
|
+
font-weight: var(--resume-weight-medium);
|
|
28
|
+
color: ${(props) => props.$color || 'var(--resume-color-accent)'};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@media print {
|
|
32
|
+
break-inside: avoid;
|
|
33
|
+
page-break-inside: avoid;
|
|
34
|
+
|
|
35
|
+
&::before {
|
|
36
|
+
-webkit-print-color-adjust: exact;
|
|
37
|
+
print-color-adjust: exact;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
const Text = styled.span`
|
|
43
|
+
flex: 1;
|
|
44
|
+
font-size: var(--resume-size-body);
|
|
45
|
+
color: var(--resume-color-secondary);
|
|
46
|
+
line-height: var(--resume-line-height-normal);
|
|
47
|
+
`;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @param {Object} props
|
|
51
|
+
* @param {Array<string|Object>} props.items - Array of items (strings or objects with text)
|
|
52
|
+
* @param {string} [props.color] - Custom number color
|
|
53
|
+
* @param {number} [props.start=1] - Starting number
|
|
54
|
+
* @param {string} [props.className] - Additional CSS classes
|
|
55
|
+
*/
|
|
56
|
+
export function NumberedList({ items = [], color, start = 1, className }) {
|
|
57
|
+
if (!items || items.length === 0) return null;
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<List className={className} start={start}>
|
|
61
|
+
{items.map((item, index) => {
|
|
62
|
+
const text = typeof item === 'object' ? item.text : item;
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<Item key={index} $color={color}>
|
|
66
|
+
<Text>{text}</Text>
|
|
67
|
+
</Item>
|
|
68
|
+
);
|
|
69
|
+
})}
|
|
70
|
+
</List>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export default NumberedList;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* NumberedList Stories
|
|
4
|
+
*/
|
|
5
|
+
import { NumberedList } from './NumberedList';
|
|
6
|
+
|
|
7
|
+
const meta = {
|
|
8
|
+
title: 'Resume Core/Lists/NumberedList',
|
|
9
|
+
component: NumberedList,
|
|
10
|
+
parameters: { layout: 'padded' },
|
|
11
|
+
tags: ['autodocs'],
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
|
|
16
|
+
export const Default = {
|
|
17
|
+
args: {
|
|
18
|
+
items: [
|
|
19
|
+
'Research and analyze user requirements',
|
|
20
|
+
'Design system architecture and data models',
|
|
21
|
+
'Implement features using agile methodology',
|
|
22
|
+
'Conduct code reviews and testing',
|
|
23
|
+
'Deploy to production and monitor',
|
|
24
|
+
],
|
|
25
|
+
start: 1,
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const Example = {
|
|
30
|
+
args: {
|
|
31
|
+
items: [
|
|
32
|
+
'Bachelor of Science in Computer Science',
|
|
33
|
+
'AWS Certified Solutions Architect',
|
|
34
|
+
'Certified Scrum Master (CSM)',
|
|
35
|
+
'Google Cloud Professional Architect',
|
|
36
|
+
],
|
|
37
|
+
start: 1,
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export { CheckList } from './CheckList';
|
|
3
|
+
export { IconList } from './IconList';
|
|
4
|
+
export { NumberedList } from './NumberedList';
|
|
5
|
+
export { BulletList } from './BulletList';
|
|
6
|
+
export { CompactList } from './CompactList';
|
|
7
|
+
export { AchievementListTight } from './AchievementListTight';
|
|
8
|
+
export { AchievementListSpacious } from './AchievementListSpacious';
|
|
9
|
+
export { HangingBulletList } from './HangingBulletList';
|
|
10
|
+
export { ListDashCompact } from './ListDashCompact';
|
|
11
|
+
export { MiniDotLeaderList } from './MiniDotLeaderList';
|
|
12
|
+
export { DefinitionKeyline } from './DefinitionKeyline';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* GreyLabelCaps Component
|
|
6
|
+
* Tiny uppercase gray labels for section metadata and categorization.
|
|
7
|
+
* Ensures minimum 4.5:1 contrast ratio for WCAG AA compliance.
|
|
8
|
+
*
|
|
9
|
+
* @component
|
|
10
|
+
* @example
|
|
11
|
+
* <GreyLabelCaps>Education</GreyLabelCaps>
|
|
12
|
+
* <GreyLabelCaps size="xs">2018-2022</GreyLabelCaps>
|
|
13
|
+
*
|
|
14
|
+
* @param {React.ReactNode} children - The label text
|
|
15
|
+
* @param {string} [size='sm'] - Size variant: 'xs' (8pt) or 'sm' (9pt)
|
|
16
|
+
* @param {string} [className] - Additional CSS classes
|
|
17
|
+
* @param {React.ElementType} [as='span'] - HTML element to render as
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const StyledGreyLabel = styled.span`
|
|
21
|
+
display: inline-block;
|
|
22
|
+
font-size: ${(props) => {
|
|
23
|
+
if (props.$size === 'xs') return '8pt';
|
|
24
|
+
return '9pt'; // default sm
|
|
25
|
+
}};
|
|
26
|
+
font-weight: ${(props) =>
|
|
27
|
+
props.theme?.typography?.weights?.medium ||
|
|
28
|
+
'var(--resume-weight-medium, 500)'};
|
|
29
|
+
/* Ensure 4.5:1 contrast minimum - #767676 provides 4.54:1 on white */
|
|
30
|
+
color: #767676;
|
|
31
|
+
text-transform: uppercase;
|
|
32
|
+
letter-spacing: 0.08em;
|
|
33
|
+
line-height: 1.3;
|
|
34
|
+
|
|
35
|
+
@media print {
|
|
36
|
+
font-size: ${(props) => {
|
|
37
|
+
if (props.$size === 'xs') return '8pt';
|
|
38
|
+
return '9pt';
|
|
39
|
+
}};
|
|
40
|
+
color: #767676;
|
|
41
|
+
letter-spacing: 0.08em;
|
|
42
|
+
}
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
export function GreyLabelCaps({
|
|
46
|
+
children,
|
|
47
|
+
size = 'sm',
|
|
48
|
+
className,
|
|
49
|
+
as = 'span',
|
|
50
|
+
...rest
|
|
51
|
+
}) {
|
|
52
|
+
return (
|
|
53
|
+
<StyledGreyLabel
|
|
54
|
+
as={as}
|
|
55
|
+
$size={size}
|
|
56
|
+
className={`resume-grey-label-caps resume-grey-label-caps-${size} ${
|
|
57
|
+
className || ''
|
|
58
|
+
}`.trim()}
|
|
59
|
+
{...rest}
|
|
60
|
+
>
|
|
61
|
+
{children}
|
|
62
|
+
</StyledGreyLabel>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export default GreyLabelCaps;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { GreyLabelCaps } from './GreyLabelCaps.jsx';
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof GreyLabelCaps> = {
|
|
5
|
+
title: 'Metadata/GreyLabelCaps',
|
|
6
|
+
component: GreyLabelCaps,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
size: {
|
|
10
|
+
control: 'select',
|
|
11
|
+
options: ['xs', 'sm'],
|
|
12
|
+
},
|
|
13
|
+
as: { control: 'text' },
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof GreyLabelCaps>;
|
|
19
|
+
|
|
20
|
+
export const Small: Story = {
|
|
21
|
+
args: {
|
|
22
|
+
children: 'Education',
|
|
23
|
+
size: 'sm',
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const ExtraSmall: Story = {
|
|
28
|
+
args: {
|
|
29
|
+
children: '2018-2022',
|
|
30
|
+
size: 'xs',
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export const AsDiv: Story = {
|
|
35
|
+
args: {
|
|
36
|
+
children: 'Certification',
|
|
37
|
+
size: 'sm',
|
|
38
|
+
as: 'div',
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* InlineKicker Component
|
|
6
|
+
* Small uppercase prefix label for emphasizing content category or type.
|
|
7
|
+
* Commonly used before headings or sections to provide context.
|
|
8
|
+
*
|
|
9
|
+
* @component
|
|
10
|
+
* @example
|
|
11
|
+
* <InlineKicker>Featured Project</InlineKicker>
|
|
12
|
+
* <InlineKicker color="#2563eb">Senior Role</InlineKicker>
|
|
13
|
+
*
|
|
14
|
+
* @param {React.ReactNode} children - The text content to display
|
|
15
|
+
* @param {string} [color] - Custom text color (defaults to theme secondary)
|
|
16
|
+
* @param {string} [className] - Additional CSS classes
|
|
17
|
+
* @param {React.ElementType} [as='span'] - HTML element to render as
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const StyledKicker = styled.span`
|
|
21
|
+
display: inline-block;
|
|
22
|
+
font-size: ${(props) =>
|
|
23
|
+
props.theme?.typography?.sizes?.small || 'var(--resume-size-small, 10px)'};
|
|
24
|
+
font-weight: ${(props) =>
|
|
25
|
+
props.theme?.typography?.weights?.semibold ||
|
|
26
|
+
'var(--resume-weight-semibold, 600)'};
|
|
27
|
+
color: ${(props) =>
|
|
28
|
+
props.$color ||
|
|
29
|
+
props.theme?.colors?.secondary ||
|
|
30
|
+
'var(--resume-color-secondary, #4a4a4a)'};
|
|
31
|
+
text-transform: uppercase;
|
|
32
|
+
letter-spacing: 0.08em;
|
|
33
|
+
line-height: 1.2;
|
|
34
|
+
|
|
35
|
+
@media print {
|
|
36
|
+
font-size: 9pt;
|
|
37
|
+
color: ${(props) => props.$color || '#4a4a4a'};
|
|
38
|
+
letter-spacing: 0.08em;
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
|
|
42
|
+
export function InlineKicker({
|
|
43
|
+
children,
|
|
44
|
+
color,
|
|
45
|
+
className,
|
|
46
|
+
as = 'span',
|
|
47
|
+
...rest
|
|
48
|
+
}) {
|
|
49
|
+
return (
|
|
50
|
+
<StyledKicker
|
|
51
|
+
as={as}
|
|
52
|
+
$color={color}
|
|
53
|
+
className={`resume-inline-kicker ${className || ''}`.trim()}
|
|
54
|
+
{...rest}
|
|
55
|
+
>
|
|
56
|
+
{children}
|
|
57
|
+
</StyledKicker>
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export default InlineKicker;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { InlineKicker } from './InlineKicker.jsx';
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof InlineKicker> = {
|
|
5
|
+
title: 'Metadata/InlineKicker',
|
|
6
|
+
component: InlineKicker,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
color: { control: 'color' },
|
|
10
|
+
as: { control: 'text' },
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof InlineKicker>;
|
|
16
|
+
|
|
17
|
+
export const Default: Story = {
|
|
18
|
+
args: {
|
|
19
|
+
children: 'Featured Project',
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const CustomColor: Story = {
|
|
24
|
+
args: {
|
|
25
|
+
children: 'Senior Role',
|
|
26
|
+
color: '#2563eb',
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const AsDiv: Story = {
|
|
31
|
+
args: {
|
|
32
|
+
children: 'Leadership Position',
|
|
33
|
+
as: 'div',
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* MetaRow Component
|
|
6
|
+
* Displays metadata in a compact row format with bullet separators.
|
|
7
|
+
* Perfect for location, date, and type information.
|
|
8
|
+
* Ensures minimum 4.5:1 contrast ratio for accessibility.
|
|
9
|
+
*
|
|
10
|
+
* @component
|
|
11
|
+
* @example
|
|
12
|
+
* <MetaRow items={['San Francisco, CA', 'Jan 2020 - Present', 'Full-time']} />
|
|
13
|
+
* <MetaRow separator=" | ">
|
|
14
|
+
* <span>Remote</span>
|
|
15
|
+
* <span>Contract</span>
|
|
16
|
+
* </MetaRow>
|
|
17
|
+
*
|
|
18
|
+
* @param {Array<string|React.ReactNode>} [items] - Array of items to display
|
|
19
|
+
* @param {React.ReactNode} [children] - Alternative to items array
|
|
20
|
+
* @param {string} [separator='·'] - Separator character between items
|
|
21
|
+
* @param {string} [className] - Additional CSS classes
|
|
22
|
+
* @param {React.ElementType} [as='div'] - HTML element to render as
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
const StyledMetaRow = styled.div`
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: 8px;
|
|
30
|
+
font-size: ${(props) =>
|
|
31
|
+
props.theme?.typography?.sizes?.small || 'var(--resume-size-small, 10px)'};
|
|
32
|
+
color: ${(props) =>
|
|
33
|
+
props.theme?.colors?.secondary || 'var(--resume-color-secondary, #4a4a4a)'};
|
|
34
|
+
line-height: 1.5;
|
|
35
|
+
|
|
36
|
+
/* Ensure 4.5:1 contrast ratio minimum */
|
|
37
|
+
@media screen {
|
|
38
|
+
color: #4a4a4a; /* 9.29:1 contrast on white */
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media print {
|
|
42
|
+
font-size: 9pt;
|
|
43
|
+
color: #4a4a4a;
|
|
44
|
+
gap: 6px;
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
47
|
+
|
|
48
|
+
const MetaItem = styled.span`
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
|
|
53
|
+
&:not(:last-child)::after {
|
|
54
|
+
content: '${(props) => props.$separator}';
|
|
55
|
+
margin-left: 8px;
|
|
56
|
+
opacity: 0.6;
|
|
57
|
+
|
|
58
|
+
@media print {
|
|
59
|
+
margin-left: 6px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
|
|
64
|
+
export function MetaRow({
|
|
65
|
+
children,
|
|
66
|
+
items,
|
|
67
|
+
separator = '·',
|
|
68
|
+
className,
|
|
69
|
+
as = 'div',
|
|
70
|
+
...rest
|
|
71
|
+
}) {
|
|
72
|
+
// Support both children (for manual composition) and items array (for convenience)
|
|
73
|
+
const content = items
|
|
74
|
+
? items.filter(Boolean).map((item, index) => (
|
|
75
|
+
<MetaItem key={index} $separator={separator}>
|
|
76
|
+
{item}
|
|
77
|
+
</MetaItem>
|
|
78
|
+
))
|
|
79
|
+
: React.Children.map(children, (child, index) => (
|
|
80
|
+
<MetaItem key={index} $separator={separator}>
|
|
81
|
+
{child}
|
|
82
|
+
</MetaItem>
|
|
83
|
+
));
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<StyledMetaRow
|
|
87
|
+
as={as}
|
|
88
|
+
className={`resume-meta-row ${className || ''}`.trim()}
|
|
89
|
+
{...rest}
|
|
90
|
+
>
|
|
91
|
+
{content}
|
|
92
|
+
</StyledMetaRow>
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export default MetaRow;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MetaRow } from './MetaRow.jsx';
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof MetaRow> = {
|
|
5
|
+
title: 'Metadata/MetaRow',
|
|
6
|
+
component: MetaRow,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
separator: { control: 'text' },
|
|
10
|
+
as: { control: 'text' },
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof MetaRow>;
|
|
16
|
+
|
|
17
|
+
export const Default: Story = {
|
|
18
|
+
args: {
|
|
19
|
+
items: ['San Francisco, CA', 'Jan 2020 - Present', 'Full-time'],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const CustomSeparator: Story = {
|
|
24
|
+
args: {
|
|
25
|
+
items: ['Remote', 'Contract', '$150k-$200k'],
|
|
26
|
+
separator: ' | ',
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export const WithChildren: Story = {
|
|
31
|
+
render: () => (
|
|
32
|
+
<MetaRow>
|
|
33
|
+
<span>Boston, MA</span>
|
|
34
|
+
<span>Jun 2018 - Dec 2019</span>
|
|
35
|
+
<span>Part-time</span>
|
|
36
|
+
</MetaRow>
|
|
37
|
+
),
|
|
38
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* SmallCapsHeading Component
|
|
6
|
+
* Heading with small caps styling and modest tracking.
|
|
7
|
+
* Readable at 11-13pt equivalent sizes for section headings.
|
|
8
|
+
*
|
|
9
|
+
* @component
|
|
10
|
+
* @example
|
|
11
|
+
* <SmallCapsHeading level={2}>Professional Experience</SmallCapsHeading>
|
|
12
|
+
* <SmallCapsHeading level={3} size="sm">Education</SmallCapsHeading>
|
|
13
|
+
*
|
|
14
|
+
* @param {React.ReactNode} children - The heading text
|
|
15
|
+
* @param {number} [level=2] - Heading level (1-6) for semantic HTML
|
|
16
|
+
* @param {string} [size='md'] - Size variant: 'sm' (11pt), 'md' (12pt), 'lg' (13pt)
|
|
17
|
+
* @param {string} [className] - Additional CSS classes
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const StyledHeading = styled.h2`
|
|
21
|
+
font-size: ${(props) => {
|
|
22
|
+
if (props.$size === 'sm') return '11pt';
|
|
23
|
+
if (props.$size === 'lg') return '13pt';
|
|
24
|
+
return '12pt'; // default md
|
|
25
|
+
}};
|
|
26
|
+
font-weight: ${(props) =>
|
|
27
|
+
props.theme?.typography?.weights?.semibold ||
|
|
28
|
+
'var(--resume-weight-semibold, 600)'};
|
|
29
|
+
color: ${(props) =>
|
|
30
|
+
props.theme?.colors?.primary || 'var(--resume-color-primary, #1a1a1a)'};
|
|
31
|
+
font-variant: small-caps;
|
|
32
|
+
letter-spacing: 0.06em;
|
|
33
|
+
line-height: 1.3;
|
|
34
|
+
margin: 0 0 12px 0;
|
|
35
|
+
text-transform: lowercase; /* Allows font-variant to work properly */
|
|
36
|
+
|
|
37
|
+
@media print {
|
|
38
|
+
font-size: ${(props) => {
|
|
39
|
+
if (props.$size === 'sm') return '11pt';
|
|
40
|
+
if (props.$size === 'lg') return '13pt';
|
|
41
|
+
return '12pt';
|
|
42
|
+
}};
|
|
43
|
+
color: #1a1a1a;
|
|
44
|
+
letter-spacing: 0.06em;
|
|
45
|
+
margin: 0 0 10px 0;
|
|
46
|
+
font-variant: small-caps;
|
|
47
|
+
page-break-after: avoid;
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
export function SmallCapsHeading({
|
|
52
|
+
children,
|
|
53
|
+
level = 2,
|
|
54
|
+
size = 'md',
|
|
55
|
+
className,
|
|
56
|
+
...rest
|
|
57
|
+
}) {
|
|
58
|
+
// Map level to valid HTML heading tags
|
|
59
|
+
const headingTag = `h${Math.max(1, Math.min(6, level))}`;
|
|
60
|
+
|
|
61
|
+
return (
|
|
62
|
+
<StyledHeading
|
|
63
|
+
as={headingTag}
|
|
64
|
+
$size={size}
|
|
65
|
+
className={`resume-small-caps-heading resume-small-caps-heading-${size} ${
|
|
66
|
+
className || ''
|
|
67
|
+
}`.trim()}
|
|
68
|
+
{...rest}
|
|
69
|
+
>
|
|
70
|
+
{children}
|
|
71
|
+
</StyledHeading>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export default SmallCapsHeading;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SmallCapsHeading } from './SmallCapsHeading.jsx';
|
|
3
|
+
|
|
4
|
+
const meta: Meta<typeof SmallCapsHeading> = {
|
|
5
|
+
title: 'Metadata/SmallCapsHeading',
|
|
6
|
+
component: SmallCapsHeading,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
argTypes: {
|
|
9
|
+
level: {
|
|
10
|
+
control: 'number',
|
|
11
|
+
min: 1,
|
|
12
|
+
max: 6,
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
control: 'select',
|
|
16
|
+
options: ['sm', 'md', 'lg'],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof SmallCapsHeading>;
|
|
23
|
+
|
|
24
|
+
export const Medium: Story = {
|
|
25
|
+
args: {
|
|
26
|
+
children: 'Professional Experience',
|
|
27
|
+
level: 2,
|
|
28
|
+
size: 'md',
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export const Small: Story = {
|
|
33
|
+
args: {
|
|
34
|
+
children: 'Education',
|
|
35
|
+
level: 3,
|
|
36
|
+
size: 'sm',
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const Large: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
children: 'Technical Skills',
|
|
43
|
+
level: 2,
|
|
44
|
+
size: 'lg',
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const Level3: Story = {
|
|
49
|
+
args: {
|
|
50
|
+
children: 'Certifications',
|
|
51
|
+
level: 3,
|
|
52
|
+
size: 'md',
|
|
53
|
+
},
|
|
54
|
+
};
|