@guardian/atoms-rendering
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -1,2 +0,2 @@ | ||
var t,e=(t=require("react"))&&"object"==typeof t&&"default"in t?t.default:t,n=require("emotion"),r=require("@guardian/src-foundations/typography"),a=require("@guardian/src-foundations"),i=require("@guardian/src-foundations/palette");function o(t,e){return e||(e=t.slice(0)),t.raw=e,t}function d(){var t=o(["\n ","\n "]);return d=function(){return t},t}function m(){var t=o(["\n ","\n margin-top: ","px;\n "]);return m=function(){return t},t}function u(){var t=o(["\n padding-bottom: ","px;\n padding-left: ","px;\n padding-right: ","px;\n border-top: 1px solid ",";\n color: ",";\n background: ",";\n\n p {\n margin-top: ","px;\n margin-bottom: ","px;\n }\n "]);return u=function(){return t},t}var c=function(t){var r=t.children;return e.createElement("figure",{"data-atom-id":t.id,"data-atom-type":"explainer",className:n.css(u(),a.space[1],a.space[2],a.space[2],i.text.primary,i.text.primary,i.background.secondary,a.space[3],a.space[3])},r)},l=function(t){var i=t.title;return e.createElement("h3",{className:n.css(m(),r.headline.xxsmall({fontWeight:"bold"}),a.space[2])},i)},s=function(t){var a=t.html;return e.createElement("div",{className:n.css(d(),r.textSans.small({fontWeight:"light",lineHeight:"tight"})),dangerouslySetInnerHTML:{__html:a}})};exports.AudioAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"AudioAtom")},exports.CtaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"CtaAtom")},exports.ExplainerAtom=function(t){var n=t.html;return e.createElement(c,{id:t.id},e.createElement(l,{title:t.title}),e.createElement(s,{html:n}))},exports.GuideAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"GuideAtom")},exports.InteractiveAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"InteractiveAtom")},exports.MediaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"MediaAtom")},exports.ProfileAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"ProfileAtom")},exports.QandaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"QandaAtom")},exports.QuizAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"QuizAtom")},exports.TimelineAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"TimelineAtom")}; | ||
var t,e=(t=require("react"))&&"object"==typeof t&&"default"in t?t.default:t,n=require("emotion"),r=require("@guardian/src-foundations/typography"),a=require("@guardian/src-foundations"),i=require("@guardian/src-foundations/palette");function o(t,e){return e||(e=t.slice(0)),t.raw=e,t}function d(){var t=o(["\n ","\n "]);return d=function(){return t},t}function m(){var t=o(["\n ","\n margin-top: ","px;\n "]);return m=function(){return t},t}function u(){var t=o(["\n padding-bottom: ","px;\n padding-left: ","px;\n padding-right: ","px;\n border-top: 1px solid ",";\n color: ",";\n background: ",";\n\n p {\n margin-top: ","px;\n margin-bottom: ","px;\n }\n "]);return u=function(){return t},t}var c=function(t){var r=t.children;return e.createElement("figure",{"data-atom-id":t.id,"data-atom-type":"explainer",className:n.css(u(),a.space[1],a.space[2],a.space[2],i.text.primary,i.text.primary,i.neutral[97],a.space[3],a.space[3])},r)},l=function(t){var i=t.title;return e.createElement("h3",{className:n.css(m(),r.headline.xxsmall({fontWeight:"bold"}),a.space[2])},i)},s=function(t){var a=t.html;return e.createElement("div",{className:n.css(d(),r.textSans.small({fontWeight:"light",lineHeight:"tight"})),dangerouslySetInnerHTML:{__html:a}})};exports.AudioAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"AudioAtom")},exports.CtaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"CtaAtom")},exports.ExplainerAtom=function(t){var n=t.html;return e.createElement(c,{id:t.id},e.createElement(l,{title:t.title}),e.createElement(s,{html:n}))},exports.GuideAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"GuideAtom")},exports.InteractiveAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"InteractiveAtom")},exports.MediaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"MediaAtom")},exports.ProfileAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"ProfileAtom")},exports.QandaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"QandaAtom")},exports.QuizAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"QuizAtom")},exports.TimelineAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"TimelineAtom")}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import t from"react";import{css as n}from"emotion";import{headline as e,textSans as r}from"@guardian/src-foundations/typography";import{space as i}from"@guardian/src-foundations";import{text as a,background as o}from"@guardian/src-foundations/palette";function d(t,n){return n||(n=t.slice(0)),t.raw=n,t}function m(){var t=d(["\n ","\n "]);return m=function(){return t},t}function u(){var t=d(["\n ","\n margin-top: ","px;\n "]);return u=function(){return t},t}function c(){var t=d(["\n padding-bottom: ","px;\n padding-left: ","px;\n padding-right: ","px;\n border-top: 1px solid ",";\n color: ",";\n background: ",";\n\n p {\n margin-top: ","px;\n margin-bottom: ","px;\n }\n "]);return c=function(){return t},t}var l=function(e){var r=e.children;return t.createElement("figure",{"data-atom-id":e.id,"data-atom-type":"explainer",className:n(c(),i[1],i[2],i[2],a.primary,a.primary,o.secondary,i[3],i[3])},r)},f=function(r){var a=r.title;return t.createElement("h3",{className:n(u(),e.xxsmall({fontWeight:"bold"}),i[2])},a)},p=function(e){var i=e.html;return t.createElement("div",{className:n(m(),r.small({fontWeight:"light",lineHeight:"tight"})),dangerouslySetInnerHTML:{__html:i}})},g=function(n){var e=n.html;return t.createElement(l,{id:n.id},t.createElement(f,{title:n.title}),t.createElement(p,{html:e}))},v=function(n){return t.createElement("div",{"data-atom-id":n.id},"AudioAtom")},s=function(n){return t.createElement("div",{"data-atom-id":n.id},"CtaAtom")},E=function(n){return t.createElement("div",{"data-atom-id":n.id},"GuideAtom")},h=function(n){return t.createElement("div",{"data-atom-id":n.id},"InteractiveAtom")},x=function(n){return t.createElement("div",{"data-atom-id":n.id},"MediaAtom")},A=function(n){return t.createElement("div",{"data-atom-id":n.id},"ProfileAtom")},y=function(n){return t.createElement("div",{"data-atom-id":n.id},"QandaAtom")},b=function(n){return t.createElement("div",{"data-atom-id":n.id},"QuizAtom")},N=function(n){return t.createElement("div",{"data-atom-id":n.id},"TimelineAtom")};export{v as AudioAtom,s as CtaAtom,g as ExplainerAtom,E as GuideAtom,h as InteractiveAtom,x as MediaAtom,A as ProfileAtom,y as QandaAtom,b as QuizAtom,N as TimelineAtom}; | ||
import t from"react";import{css as n}from"emotion";import{headline as e,textSans as r}from"@guardian/src-foundations/typography";import{space as i}from"@guardian/src-foundations";import{text as a,neutral as o}from"@guardian/src-foundations/palette";function d(t,n){return n||(n=t.slice(0)),t.raw=n,t}function m(){var t=d(["\n ","\n "]);return m=function(){return t},t}function u(){var t=d(["\n ","\n margin-top: ","px;\n "]);return u=function(){return t},t}function c(){var t=d(["\n padding-bottom: ","px;\n padding-left: ","px;\n padding-right: ","px;\n border-top: 1px solid ",";\n color: ",";\n background: ",";\n\n p {\n margin-top: ","px;\n margin-bottom: ","px;\n }\n "]);return c=function(){return t},t}var l=function(e){var r=e.children;return t.createElement("figure",{"data-atom-id":e.id,"data-atom-type":"explainer",className:n(c(),i[1],i[2],i[2],a.primary,a.primary,o[97],i[3],i[3])},r)},f=function(r){var a=r.title;return t.createElement("h3",{className:n(u(),e.xxsmall({fontWeight:"bold"}),i[2])},a)},p=function(e){var i=e.html;return t.createElement("div",{className:n(m(),r.small({fontWeight:"light",lineHeight:"tight"})),dangerouslySetInnerHTML:{__html:i}})},g=function(n){var e=n.html;return t.createElement(l,{id:n.id},t.createElement(f,{title:n.title}),t.createElement(p,{html:e}))},v=function(n){return t.createElement("div",{"data-atom-id":n.id},"AudioAtom")},s=function(n){return t.createElement("div",{"data-atom-id":n.id},"CtaAtom")},E=function(n){return t.createElement("div",{"data-atom-id":n.id},"GuideAtom")},h=function(n){return t.createElement("div",{"data-atom-id":n.id},"InteractiveAtom")},x=function(n){return t.createElement("div",{"data-atom-id":n.id},"MediaAtom")},A=function(n){return t.createElement("div",{"data-atom-id":n.id},"ProfileAtom")},y=function(n){return t.createElement("div",{"data-atom-id":n.id},"QandaAtom")},b=function(n){return t.createElement("div",{"data-atom-id":n.id},"QuizAtom")},N=function(n){return t.createElement("div",{"data-atom-id":n.id},"TimelineAtom")};export{v as AudioAtom,s as CtaAtom,g as ExplainerAtom,E as GuideAtom,h as InteractiveAtom,x as MediaAtom,A as ProfileAtom,y as QandaAtom,b as QuizAtom,N as TimelineAtom}; | ||
//# sourceMappingURL=index.modern.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("emotion"),require("@guardian/src-foundations/typography"),require("@guardian/src-foundations"),require("@guardian/src-foundations/palette")):"function"==typeof define&&define.amd?define(["exports","react","emotion","@guardian/src-foundations/typography","@guardian/src-foundations","@guardian/src-foundations/palette"],e):e((t=t||self).atomsRendering={},t.react,t.emotion,t.typography,t.srcFoundations,t.palette)}(this,function(t,e,n,a,r,i){function o(t,e){return e||(e=t.slice(0)),t.raw=e,t}function d(){var t=o(["\n ","\n "]);return d=function(){return t},t}function u(){var t=o(["\n ","\n margin-top: ","px;\n "]);return u=function(){return t},t}function c(){var t=o(["\n padding-bottom: ","px;\n padding-left: ","px;\n padding-right: ","px;\n border-top: 1px solid ",";\n color: ",";\n background: ",";\n\n p {\n margin-top: ","px;\n margin-bottom: ","px;\n }\n "]);return c=function(){return t},t}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var m=function(t){var a=t.children;return e.createElement("figure",{"data-atom-id":t.id,"data-atom-type":"explainer",className:n.css(c(),r.space[1],r.space[2],r.space[2],i.text.primary,i.text.primary,i.background.secondary,r.space[3],r.space[3])},a)},l=function(t){var i=t.title;return e.createElement("h3",{className:n.css(u(),a.headline.xxsmall({fontWeight:"bold"}),r.space[2])},i)},s=function(t){var r=t.html;return e.createElement("div",{className:n.css(d(),a.textSans.small({fontWeight:"light",lineHeight:"tight"})),dangerouslySetInnerHTML:{__html:r}})};t.AudioAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"AudioAtom")},t.CtaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"CtaAtom")},t.ExplainerAtom=function(t){var n=t.html;return e.createElement(m,{id:t.id},e.createElement(l,{title:t.title}),e.createElement(s,{html:n}))},t.GuideAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"GuideAtom")},t.InteractiveAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"InteractiveAtom")},t.MediaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"MediaAtom")},t.ProfileAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"ProfileAtom")},t.QandaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"QandaAtom")},t.QuizAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"QuizAtom")},t.TimelineAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"TimelineAtom")}}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("emotion"),require("@guardian/src-foundations/typography"),require("@guardian/src-foundations"),require("@guardian/src-foundations/palette")):"function"==typeof define&&define.amd?define(["exports","react","emotion","@guardian/src-foundations/typography","@guardian/src-foundations","@guardian/src-foundations/palette"],e):e((t=t||self).atomsRendering={},t.react,t.emotion,t.typography,t.srcFoundations,t.palette)}(this,function(t,e,n,a,i,r){function o(t,e){return e||(e=t.slice(0)),t.raw=e,t}function d(){var t=o(["\n ","\n "]);return d=function(){return t},t}function u(){var t=o(["\n ","\n margin-top: ","px;\n "]);return u=function(){return t},t}function c(){var t=o(["\n padding-bottom: ","px;\n padding-left: ","px;\n padding-right: ","px;\n border-top: 1px solid ",";\n color: ",";\n background: ",";\n\n p {\n margin-top: ","px;\n margin-bottom: ","px;\n }\n "]);return c=function(){return t},t}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var m=function(t){var a=t.children;return e.createElement("figure",{"data-atom-id":t.id,"data-atom-type":"explainer",className:n.css(c(),i.space[1],i.space[2],i.space[2],r.text.primary,r.text.primary,r.neutral[97],i.space[3],i.space[3])},a)},l=function(t){var r=t.title;return e.createElement("h3",{className:n.css(u(),a.headline.xxsmall({fontWeight:"bold"}),i.space[2])},r)},f=function(t){var i=t.html;return e.createElement("div",{className:n.css(d(),a.textSans.small({fontWeight:"light",lineHeight:"tight"})),dangerouslySetInnerHTML:{__html:i}})};t.AudioAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"AudioAtom")},t.CtaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"CtaAtom")},t.ExplainerAtom=function(t){var n=t.html;return e.createElement(m,{id:t.id},e.createElement(l,{title:t.title}),e.createElement(f,{html:n}))},t.GuideAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"GuideAtom")},t.InteractiveAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"InteractiveAtom")},t.MediaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"MediaAtom")},t.ProfileAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"ProfileAtom")},t.QandaAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"QandaAtom")},t.QuizAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"QuizAtom")},t.TimelineAtom=function(t){return e.createElement("div",{"data-atom-id":t.id},"TimelineAtom")}}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@guardian/atoms-rendering", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"source": "src/index.ts", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
41104