diff --git a/.changeset/famous-bobcats-listen.md b/.changeset/famous-bobcats-listen.md new file mode 100644 index 0000000..704240c --- /dev/null +++ b/.changeset/famous-bobcats-listen.md @@ -0,0 +1,5 @@ +--- +"formidable-oss-badges": patch +--- + +Export SVGs as featuredLogos diff --git a/README.md b/README.md index 5960f4c..ae9ac00 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ for the latest available lineup. - `FigLogBadge` - `CloudSpliceBadge` -### FeaturedBadge props +### Featured Project Badge props | Prop | Type | Description | Default | | ----------- | ------- | --------------------------------------------------------------------------------- | ------- | @@ -127,6 +127,10 @@ for the latest available lineup. | isHoverable | Boolean | Add hover style effects | `true` | | simple | Boolean | Hides the description and enlarges the abbreviation - use for small badge display | `false` | +## Featured Logos SVGs + +All featured logos are available as SVGs and can be imported as `featuredLogos` + ## Examples (with Images) ### ProjectBadge Usage diff --git a/src/index.ts b/src/index.ts index 6113c3e..33ee869 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,50 @@ import * as featuredLogos from "./assets/featuredLogos" +import renatureSVG from "./assets/featuredLogos/renature.svg" +import renatureSimpleSVG from "./assets/featuredLogos/renature-simple.svg" +import victorySVG from "./assets/featuredLogos/victory.svg" +import victorySimpleSVG from "./assets/featuredLogos/victory-simple.svg" +import spectacleSVG from "./assets/featuredLogos/spectacle.svg" +import spectacleSimpleSVG from "./assets/featuredLogos/spectacle-simple.svg" +import urqlSVG from "./assets/featuredLogos/urql.svg" +import urqlSimpleSVG from "./assets/featuredLogos/urql-simple.svg" +import nukaSVG from "./assets/featuredLogos/nuka.svg" +import nukaSimpleSVG from "./assets/featuredLogos/nuka-simple.svg" +import owlSVG from "./assets/featuredLogos/owl.svg" +import owlSimpleSVG from "./assets/featuredLogos/owl-simple.svg" +import groqdSVG from "./assets/featuredLogos/groqd.svg" +import groqdSimpleSVG from "./assets/featuredLogos/groqd-simple.svg" +import envySVG from "./assets/featuredLogos/envy.svg" +import envySimpleSVG from "./assets/featuredLogos/envy-simple.svg" +import figlogSVG from "./assets/featuredLogos/figlog.svg" +import figlogSimpleSVG from "./assets/featuredLogos/figlog-simple.svg" +import cloudspliceSVG from "./assets/featuredLogos/cloudsplice.svg" +import cloudspliceSimpleSVG from "./assets/featuredLogos/cloudsplice-simple.svg" export { default as ProjectBadge } from "./ProjectBadge" export { default as FeaturedBadge } from "./FeaturedBadge" export * from "./featuredProjectBadges" export type FeaturedBadgeNames = keyof typeof featuredLogos.default + +export { + renatureSVG, + renatureSimpleSVG, + victorySVG, + victorySimpleSVG, + spectacleSVG, + spectacleSimpleSVG, + urqlSVG, + urqlSimpleSVG, + nukaSVG, + nukaSimpleSVG, + owlSVG, + owlSimpleSVG, + groqdSVG, + groqdSimpleSVG, + envySVG, + envySimpleSVG, + figlogSVG, + figlogSimpleSVG, + cloudspliceSVG, + cloudspliceSimpleSVG, +}