@meduza/ui-kit-2 0.1.34 → 0.1.36
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 +9 -1
- 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 -1
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +632 -630
- package/package.json +1 -1
- package/src/Meta/Meta.module.css +4 -1
- package/src/Meta/MetaContainer.tsx +9 -1
- package/src/RelatedRichBlock/RelatedRichBlock.module.css +3 -3
package/dist/ui-kit-2.esm.js
CHANGED
|
@@ -1949,11 +1949,19 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
1949
1949
|
var themeColor = styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset';
|
|
1950
1950
|
var isPodcast = styleContext && styleContext.indexOf('podcast') !== -1;
|
|
1951
1951
|
var isSlides = styleContext && styleContext.indexOf('slide') !== -1;
|
|
1952
|
+
var context = [];
|
|
1953
|
+
|
|
1954
|
+
if (styleContext && Array.isArray(styleContext)) {
|
|
1955
|
+
context = styleContext.filter(function (item) {
|
|
1956
|
+
return item !== 'dark';
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
|
|
1952
1960
|
var hasSource = !!components.find(function (item) {
|
|
1953
1961
|
return item.type === 'source_name';
|
|
1954
1962
|
});
|
|
1955
1963
|
return React.createElement(Meta, {
|
|
1956
|
-
styleContext:
|
|
1964
|
+
styleContext: context,
|
|
1957
1965
|
theme: theme || themeColor,
|
|
1958
1966
|
onlyOn: block.only_on,
|
|
1959
1967
|
hasSource: hasSource
|