@meduza/ui-kit-2 0.8.602 → 0.8.603
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/Meta/Meta.types.d.ts +0 -1
- package/dist/ui-kit-2.cjs.development.js +9 -8
- 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 +9 -8
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit-game.css +6 -6
- package/dist/ui-kit.css +6 -6
- package/package.json +1 -1
- package/src/Meta/Meta.module.css +6 -6
- package/src/Meta/Meta.types.ts +0 -1
- package/src/Meta/MetaContainer.tsx +129 -123
- package/src/Meta/index.tsx +2 -4
|
@@ -959,17 +959,16 @@ const Toolbar = ({
|
|
|
959
959
|
}, children));
|
|
960
960
|
};
|
|
961
961
|
|
|
962
|
-
var styles$s = {"
|
|
962
|
+
var styles$s = {"containerInDynamicBlock":"Meta-module_containerInDynamicBlock__YSh66","root":"Meta-module_root__H-Q4d","rich":"Meta-module_rich__dCkJK","podcast":"Meta-module_podcast__MI8gD","episode":"Meta-module_episode__0n9CF","simple":"Meta-module_simple__tztcr","slide":"Meta-module_slide__3OyIN","card":"Meta-module_card__2vqfN","game":"Meta-module_game__HNcgr","isInMaterial":"Meta-module_isInMaterial__vKcTK","isInSearchItem":"Meta-module_isInSearchItem__ENqHo","isInMediaBlock":"Meta-module_isInMediaBlock__TENZG","center":"Meta-module_center__seHro","half":"Meta-module_half__aoa9h","podcastMaterial":"Meta-module_podcastMaterial__GTPyD","light":"Meta-module_light__oW3kc","dark":"Meta-module_dark__tLQNJ","isDark":"Meta-module_isDark__xSl1J","hasSource":"Meta-module_hasSource__OZJ0y","bookmark":"Meta-module_bookmark__jcFWn","isInBookRelated":"Meta-module_isInBookRelated__Ohidg","mobile":"Meta-module_mobile__PbG8N","desktop":"Meta-module_desktop__W5AB7"};
|
|
963
963
|
|
|
964
964
|
const Meta = ({
|
|
965
965
|
hasSource,
|
|
966
966
|
theme,
|
|
967
967
|
children,
|
|
968
968
|
onlyOn,
|
|
969
|
-
styleContext
|
|
970
|
-
type
|
|
969
|
+
styleContext
|
|
971
970
|
}) => {
|
|
972
|
-
let classNames = [[styles$s.root, true], [styles$s[theme], !!theme && !!styles$s[theme]], [styles$s[onlyOn], !!onlyOn], [styles$s.hasSource, hasSource]
|
|
971
|
+
let classNames = [[styles$s.root, true], [styles$s[theme], !!theme && !!styles$s[theme]], [styles$s[onlyOn], !!onlyOn], [styles$s.hasSource, hasSource]];
|
|
973
972
|
if (styleContext) {
|
|
974
973
|
classNames = makeStyleContext(classNames, styleContext, styles$s);
|
|
975
974
|
}
|
|
@@ -1825,12 +1824,14 @@ const MetaContainer = ({
|
|
|
1825
1824
|
});
|
|
1826
1825
|
}
|
|
1827
1826
|
const hasSource = !!components.find(item => item.type === 'source_name');
|
|
1828
|
-
|
|
1827
|
+
const classNames = [[styles$s.containerInDynamicBlock, styleContext === 'isInDynamicBlock']];
|
|
1828
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1829
|
+
className: makeClassName(classNames)
|
|
1830
|
+
}, /*#__PURE__*/React.createElement(Meta, {
|
|
1829
1831
|
styleContext: context,
|
|
1830
1832
|
theme: theme || themeColor,
|
|
1831
1833
|
onlyOn: block.only_on,
|
|
1832
|
-
hasSource: hasSource
|
|
1833
|
-
type: styleContext
|
|
1834
|
+
hasSource: hasSource
|
|
1834
1835
|
}, components.map(component => {
|
|
1835
1836
|
switch (component.type) {
|
|
1836
1837
|
case 'source_name':
|
|
@@ -1933,7 +1934,7 @@ const MetaContainer = ({
|
|
|
1933
1934
|
}, /*#__PURE__*/React.createElement(BookmarkButton, {
|
|
1934
1935
|
isInBookmarks: isInBookmarks,
|
|
1935
1936
|
onClick: () => bookmarkAction('bookmark', 'top')
|
|
1936
|
-
}))));
|
|
1937
|
+
})))));
|
|
1937
1938
|
};
|
|
1938
1939
|
|
|
1939
1940
|
var styles$b = {"root":"DonatesTeaser-module_root__XQCVy","main":"DonatesTeaser-module_main__eN9kd","title":"DonatesTeaser-module_title__9umo1","text":"DonatesTeaser-module_text__s6tyf","cta":"DonatesTeaser-module_cta__-50aB","center":"DonatesTeaser-module_center__gxLvW","isInCard":"DonatesTeaser-module_isInCard__vaUhd","isInSlide":"DonatesTeaser-module_isInSlide__Dh4NH","ru":"DonatesTeaser-module_ru__y-PlJ","en":"DonatesTeaser-module_en__0Iisr"};
|