@meduza/ui-kit-2 0.2.16 → 0.2.17
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/dist/ui-kit-2.cjs.development.js +29 -18
- package/dist/ui-kit-2.cjs.development.js.map +1 -1
- package/dist/ui-kit-2.cjs.production.min.js +1 -1
- package/dist/ui-kit-2.cjs.production.min.js.map +1 -1
- package/dist/ui-kit-2.esm.js +29 -18
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +2796 -2669
- package/package.json +1 -1
- package/src/AnnouncementInText/AnnouncementInText.module.css +108 -28
- package/src/AnnouncementInText/index.tsx +25 -14
- package/src/DonatesTeaser/DonatesTeaser.module.css +94 -49
- package/src/DonatesTeaser/index.tsx +11 -7
|
@@ -1997,13 +1997,13 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
1997
1997
|
})));
|
|
1998
1998
|
};
|
|
1999
1999
|
|
|
2000
|
-
var styles$w = {"root":"DonatesTeaser-module_root__3rtaJ","main":"DonatesTeaser-module_main__YBt6p","title":"DonatesTeaser-module_title__hs-yr","text":"DonatesTeaser-module_text__ro-QA","cta":"DonatesTeaser-module_cta__1orPb","
|
|
2000
|
+
var styles$w = {"root":"DonatesTeaser-module_root__3rtaJ","main":"DonatesTeaser-module_main__YBt6p","title":"DonatesTeaser-module_title__hs-yr","text":"DonatesTeaser-module_text__ro-QA","cta":"DonatesTeaser-module_cta__1orPb","center":"DonatesTeaser-module_center__2Ynx9","isInCard":"DonatesTeaser-module_isInCard__HrFh8","isInSlide":"DonatesTeaser-module_isInSlide__1vC4Z","ru":"DonatesTeaser-module_ru__3Gr0n","en":"DonatesTeaser-module_en__2HSwc"};
|
|
2001
2001
|
|
|
2002
2002
|
var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
2003
2003
|
var styleContext = _ref.styleContext,
|
|
2004
2004
|
_ref$lang = _ref.lang,
|
|
2005
2005
|
lang = _ref$lang === void 0 ? 'ru' : _ref$lang;
|
|
2006
|
-
var classNames = [[styles$w.root, true]];
|
|
2006
|
+
var classNames = [[styles$w.root, true], [styles$w[lang], styles$w[lang]]];
|
|
2007
2007
|
|
|
2008
2008
|
if (styleContext) {
|
|
2009
2009
|
classNames = makeStyleContext(classNames, styleContext, styles$w);
|
|
@@ -2011,14 +2011,14 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
|
2011
2011
|
|
|
2012
2012
|
var data = {
|
|
2013
2013
|
ru: {
|
|
2014
|
-
title: '
|
|
2015
|
-
subtitle: 'Нам нужна ваша поддержка',
|
|
2016
|
-
button: '
|
|
2014
|
+
title: '«Медуза». Работаем 24/7. И только в интересах читателей',
|
|
2015
|
+
subtitle: 'Нам срочно нужна ваша поддержка',
|
|
2016
|
+
button: 'Хочу помочь',
|
|
2017
2017
|
href: 'https://mdza.io/WP4YuV4xTEM'
|
|
2018
2018
|
},
|
|
2019
2019
|
en: {
|
|
2020
|
-
title: 'Meduza
|
|
2021
|
-
subtitle: '
|
|
2020
|
+
title: 'Meduza, working 24/7, always for our readers',
|
|
2021
|
+
subtitle: 'We need your help like never before',
|
|
2022
2022
|
button: 'Okay!',
|
|
2023
2023
|
href: 'https://mdza.io/qopxag5BGec'
|
|
2024
2024
|
}
|
|
@@ -2045,12 +2045,10 @@ var DonatesTeaser = function DonatesTeaser(_ref) {
|
|
|
2045
2045
|
href: data[lang].href,
|
|
2046
2046
|
target: "_blank",
|
|
2047
2047
|
rel: "noreferrer"
|
|
2048
|
-
}, React__default.createElement("span",
|
|
2049
|
-
className: styles$w.ctaInner
|
|
2050
|
-
}, data[lang].button))));
|
|
2048
|
+
}, React__default.createElement("span", null, data[lang].button))));
|
|
2051
2049
|
};
|
|
2052
2050
|
|
|
2053
|
-
var styles$x = {"root":"AnnouncementInText-module_root__3zM9x","button":"AnnouncementInText-module_button__2dEXa","center":"AnnouncementInText-module_center__3VLl2"};
|
|
2051
|
+
var styles$x = {"root":"AnnouncementInText-module_root__3zM9x","body":"AnnouncementInText-module_body__1yI8T","title":"AnnouncementInText-module_title__29CXr","footer":"AnnouncementInText-module_footer__1fyWt","button":"AnnouncementInText-module_button__2dEXa","center":"AnnouncementInText-module_center__3VLl2","isInCard":"AnnouncementInText-module_isInCard__2Xq_I","isInSlide":"AnnouncementInText-module_isInSlide__1PsC2","ru":"AnnouncementInText-module_ru__3vDy7","en":"AnnouncementInText-module_en__1Mgvm"};
|
|
2054
2052
|
|
|
2055
2053
|
var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
2056
2054
|
var styleContext = _ref.styleContext,
|
|
@@ -2064,15 +2062,15 @@ var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
|
2064
2062
|
|
|
2065
2063
|
var data = {
|
|
2066
2064
|
ru: {
|
|
2067
|
-
title: '«
|
|
2068
|
-
text: '
|
|
2069
|
-
button: '
|
|
2065
|
+
title: 'Поддержите «Медузу». Сейчас. Это критически важно',
|
|
2066
|
+
text: 'Мы готовимся к худшему. Из-за войны с Украиной власти могут начать блокировать независимые СМИ в любой момент. В то же время международные санкции в отношении Центробанка и других российских кредитных организаций создают серьезные риски для нашего краудфандинга. Поэтому мы просим вас помочь нашей редакции. Прямо сейчас. Что важно знать: мы независимое издание, мы работаем только в интересах наших читателей, мы не планируем закрываться. Несмотря ни на что. Спасибо вам!',
|
|
2067
|
+
button: 'Хочу помочь',
|
|
2070
2068
|
href: 'https://mdza.io/wd88xQv_-Uw'
|
|
2071
2069
|
},
|
|
2072
2070
|
en: {
|
|
2073
|
-
title: 'Meduza needs your
|
|
2074
|
-
text: '
|
|
2075
|
-
button: 'I
|
|
2071
|
+
title: 'Meduza needs your support. We need it now, like never before.',
|
|
2072
|
+
text: 'We are preparing for the worst. Due to the war with Ukraine, the Russian authorities could begin blocking the country’s independent media at any moment. International sanctions against the Central Bank and other Russian credit organizations are creating serious risks for own crowdfunding. That’s why we’re asking you to support our newsroom. Right now. What you should know: We are an independent publication. We work only in the interests of our readers. We have no plans to close, come hell or high water. Thank you, everyone!',
|
|
2073
|
+
button: 'I want to help',
|
|
2076
2074
|
href: 'https://mdza.io/wd88xQv_-Uw'
|
|
2077
2075
|
}
|
|
2078
2076
|
};
|
|
@@ -2080,12 +2078,25 @@ var AnnouncementInText = function AnnouncementInText(_ref) {
|
|
|
2080
2078
|
return React__default.createElement("div", {
|
|
2081
2079
|
"data-testid": "announcement-in-text",
|
|
2082
2080
|
className: makeClassName(classNames)
|
|
2081
|
+
}, React__default.createElement("div", {
|
|
2082
|
+
className: styles$x.body
|
|
2083
|
+
}, React__default.createElement("h3", {
|
|
2084
|
+
className: styles$x.title,
|
|
2085
|
+
dangerouslySetInnerHTML: {
|
|
2086
|
+
__html: localeData.title
|
|
2087
|
+
}
|
|
2088
|
+
}), React__default.createElement("p", {
|
|
2089
|
+
dangerouslySetInnerHTML: {
|
|
2090
|
+
__html: localeData.text
|
|
2091
|
+
}
|
|
2092
|
+
})), React__default.createElement("div", {
|
|
2093
|
+
className: styles$x.footer
|
|
2083
2094
|
}, React__default.createElement("a", {
|
|
2084
2095
|
className: styles$x.button,
|
|
2085
2096
|
href: localeData.href,
|
|
2086
2097
|
target: "_blank",
|
|
2087
2098
|
rel: "noreferrer"
|
|
2088
|
-
}, React__default.createElement("span", null, localeData.button)));
|
|
2099
|
+
}, React__default.createElement("span", null, localeData.button))));
|
|
2089
2100
|
};
|
|
2090
2101
|
|
|
2091
2102
|
var RenderBlocks = function RenderBlocks(_ref) {
|