@titelmedia/bricks-credits
Advanced tools
Comparing version 0.3.0 to 0.3.6
@@ -6,2 +6,24 @@ # Change Log | ||
## [0.3.6](https://github.com/titel-media/bricks-lerna/compare/v0.3.5...v0.3.6) (2022-01-14) | ||
### Bug Fixes | ||
* Remove workspaces for good ([00e9c48](https://github.com/titel-media/bricks-lerna/commit/00e9c483b02a2ec1ec5398ef105dbb90ddc639c8)) | ||
## [0.3.5](https://github.com/titel-media/bricks-lerna/compare/v0.3.4...v0.3.5) (2022-01-14) | ||
### Bug Fixes | ||
* Add Credits expecting an array of credits profiles ([52ad832](https://github.com/titel-media/bricks-lerna/commit/52ad83296b260326f20605b6a380771b68111677)) | ||
# [0.3.0](https://github.com/titel-media/bricks-lerna/compare/v0.2.22...v0.3.0) (2022-01-14) | ||
@@ -8,0 +30,0 @@ |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.Credits = void 0; | ||
exports.CreditsText = exports.Credits = void 0; | ||
@@ -18,2 +18,16 @@ var _react = _interopRequireDefault(require("react")); | ||
const Credits = ({ | ||
creditsTexts | ||
}) => { | ||
return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_bricksTheme.default, null), creditsTexts.map(creditsText => _react.default.createElement(CreditsText, { | ||
key: creditsText.id, | ||
category: creditsText.category, | ||
name: creditsText.name, | ||
title: creditsText.title, | ||
link: creditsText.link | ||
}))); | ||
}; | ||
exports.Credits = Credits; | ||
const CreditsText = ({ | ||
category, | ||
@@ -23,9 +37,9 @@ title, | ||
link | ||
}) => _react.default.createElement(_react.default.Fragment, null, _react.default.createElement(_bricksTheme.default, null), _react.default.createElement(_styles.Container, null, !!category && _react.default.createElement(_styles.Category, null, category), _react.default.createElement(_styles.Content, null, _react.default.createElement(_styles.Title, null, title, ": "), !link && _react.default.createElement(_styles.Name, null, name) || _react.default.createElement(_styles.Link, { | ||
}) => _react.default.createElement(_styles.Container, null, !!category && _react.default.createElement(_styles.Category, null, category), _react.default.createElement(_styles.Content, null, _react.default.createElement(_styles.Title, null, title, ": "), !link && _react.default.createElement(_styles.Name, null, name) || _react.default.createElement(_styles.Link, { | ||
href: link, | ||
target: "_blank", | ||
rel: "noreferrer" | ||
}, _react.default.createElement(_styles.Name, null, name))))); | ||
}, _react.default.createElement(_styles.Name, null, name)))); | ||
exports.Credits = Credits; | ||
exports.CreditsText = CreditsText; | ||
//# sourceMappingURL=index.js.map |
@@ -5,17 +5,33 @@ import React from 'react'; | ||
export const Credits = ({ category, title, name, link }) => ( | ||
<React.Fragment> | ||
<GlobalFonts /> | ||
<Container> | ||
{!!category && <Category>{category}</Category>} | ||
<Content> | ||
<Title>{title}: </Title> | ||
{(!link && <Name>{name}</Name>) || ( | ||
<Link href={link} target="_blank" rel="noreferrer"> | ||
<Name>{name}</Name> | ||
</Link> | ||
)} | ||
</Content> | ||
</Container> | ||
</React.Fragment> | ||
export const Credits = ({ creditsTexts }) => { | ||
return ( | ||
<> | ||
<GlobalFonts /> | ||
{creditsTexts.map(creditsText => ( | ||
<CreditsText | ||
key={creditsText.id} | ||
category={creditsText.category} | ||
name={creditsText.name} | ||
title={creditsText.title} | ||
link={creditsText.link} | ||
/> | ||
))} | ||
</> | ||
); | ||
} | ||
export const CreditsText = ({ category, title, name, link }) => ( | ||
<Container> | ||
{!!category && <Category>{category}</Category>} | ||
<Content> | ||
<Title>{title}: </Title> | ||
{(!link && <Name>{name}</Name>) || ( | ||
<Link href={link} target="_blank" rel="noreferrer"> | ||
<Name>{name}</Name> | ||
</Link> | ||
)} | ||
</Content> | ||
</Container> | ||
); |
{ | ||
"name": "@titelmedia/bricks-credits", | ||
"version": "0.3.0", | ||
"version": "0.3.6", | ||
"description": "> TODO: description", | ||
@@ -30,3 +30,3 @@ "author": "highsnob", | ||
}, | ||
"gitHead": "6716a194929b3da2424f2736d78f779e50909641" | ||
"gitHead": "2b3e73ce2161d7f01ee20a478a27468904d31b19" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18144
204