Skip to content
This repository was archived by the owner on Dec 6, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/autolabeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
brand: ['src/core/brand']
foundations: ['packages/@guardian/src-foundations']
icons: ['src/core/icons']
icons: ['packages/@guardian/src-icons']
accordion: ['packages/@guardian/src-accordion']
button: ['packages/@guardian/src-button']
checkbox: ['packages/@guardian/src-checkbox']
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"verbump:prerelease": "yarn version --prerelease --preid rc --no-git-tag-version",
"verbump:prerelease:src": "ts-node ./scripts/verbump-prerelease-src && yarn verbump:deps:src",
"watch:foundations": "cd src/core/foundations && yarn watch",
"watch:icons": "cd src/core/icons && yarn watch"
"watch:icons": "cd packages/@guardian/src-icons && yarn watch"
},
"lint-staged": {
"package.json": "sort-package-json"
Expand Down
55 changes: 55 additions & 0 deletions packages/@guardian/source-react-components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,61 @@ export type {
export { Footer } from '@guardian/src-footer';
export type { FooterProps } from '@guardian/src-footer';

export {
SvgAlert,
SvgAlertRound,
SvgAlertTriangle,
SvgAppleBrand,
SvgArrowDownStraight,
SvgArrowLeftStraight,
SvgArrowRightStraight,
SvgArrowUpStraight,
SvgAudio,
SvgCamera,
SvgCheckmark,
SvgChevronDownSingle,
SvgChevronLeftDouble,
SvgChevronLeftSingle,
SvgChevronRightDouble,
SvgChevronRightSingle,
SvgChevronUpSingle,
SvgClock,
SvgCreditCard,
SvgCross,
SvgDirectDebit,
SvgDirectDebitWide,
SvgEnvelope,
SvgExternal,
SvgEye,
SvgEyeStrike,
SvgFacebook,
SvgFacebookBrand,
SvgGift,
SvgGlobe,
SvgGoogleBrand,
SvgHouse,
SvgIndent,
SvgInfo,
SvgLinkedIn,
SvgMessenger,
SvgMinus,
SvgOfflineCloud,
SvgPayPal,
SvgPerson,
SvgPinterest,
SvgPlay,
SvgPlus,
SvgQuote,
SvgSettings,
SvgSpeechBubble,
SvgStar,
SvgTickRound,
SvgTwitter,
SvgVideo,
SvgWhatsApp,
} from '@guardian/src-icons';
export type { IconProps, IconSize } from '@guardian/src-icons';

export { Label, Legend } from '@guardian/src-label';
export type { LabelProps, LegendProps } from '@guardian/src-label';

Expand Down
2 changes: 1 addition & 1 deletion packages/@guardian/src-accordion/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"path": "../src-foundations"
},
{
"path": "../../../src/core/icons"
"path": "../src-icons"
}
]
}
2 changes: 1 addition & 1 deletion packages/@guardian/src-button/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"path": "../src-foundations"
},
{
"path": "../../../src/core/icons"
"path": "../src-icons"
}
]
}
2 changes: 1 addition & 1 deletion packages/@guardian/src-footer/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"path": "../src-foundations"
},
{
"path": "../../../src/core/icons"
"path": "../src-icons"
},
{
"path": "../src-helpers"
Expand Down
2 changes: 2 additions & 0 deletions packages/@guardian/src-icons/.yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version-tag-prefix src-icons-v
version-git-message "@guardian/src-icons v%s"
2 changes: 1 addition & 1 deletion packages/@guardian/src-select/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"exclude": ["dist", "*.stories.tsx"],
"references": [
{
"path": "../../../src/core/icons"
"path": "../src-icons"
},
{
"path": "../src-helpers"
Expand Down
2 changes: 1 addition & 1 deletion packages/@guardian/src-text-area/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"exclude": ["dist", "*.stories.tsx"],
"references": [
{
"path": "../../../src/core/icons"
"path": "../src-icons"
},
{
"path": "../src-helpers"
Expand Down
2 changes: 1 addition & 1 deletion packages/@guardian/src-user-feedback/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"path": "../src-foundations"
},
{
"path": "../../../src/core/icons"
"path": "../src-icons"
},
{
"path": "../src-helpers"
Expand Down
2 changes: 1 addition & 1 deletion scripts/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const statP = promisify(stat);

const root = join(__dirname, '..');
const foundations = join(__dirname, '../packages/@guardian/src-foundations');
const icons = join(__dirname, '../src/core/icons');
const icons = join(__dirname, '../packages/@guardian/src-icons');
const brand = join(__dirname, '../src/core/brand');
const helpers = join(__dirname, '../packages/@guardian/src-helpers');
const coreComponents = join(__dirname, '../packages/@guardian');
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@guardian/src-label": ["packages/@guardian/src-label"],
"@guardian/src-user-feedback": ["packages/@guardian/src-user-feedback"],
"@guardian/src-helpers": ["packages/@guardian/src-helpers"],
"@guardian/src-icons": ["src/core/icons"]
"@guardian/src-icons": ["packages/@guardian/src-icons"]
},
"outDir": "dist",
"module": "commonjs",
Expand Down