@meduza/ui-kit-2 0.1.34 → 0.1.35
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 +1040 -1040
- package/package.json +1 -1
- package/src/Meta/MetaContainer.tsx +9 -1
|
@@ -1956,11 +1956,19 @@ var MetaContainer = function MetaContainer(_ref) {
|
|
|
1956
1956
|
var themeColor = styleContext && styleContext.indexOf('dark') !== -1 ? 'light' : 'unset';
|
|
1957
1957
|
var isPodcast = styleContext && styleContext.indexOf('podcast') !== -1;
|
|
1958
1958
|
var isSlides = styleContext && styleContext.indexOf('slide') !== -1;
|
|
1959
|
+
var context = [];
|
|
1960
|
+
|
|
1961
|
+
if (styleContext && Array.isArray(styleContext)) {
|
|
1962
|
+
context = styleContext.filter(function (item) {
|
|
1963
|
+
return item !== 'dark';
|
|
1964
|
+
});
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1959
1967
|
var hasSource = !!components.find(function (item) {
|
|
1960
1968
|
return item.type === 'source_name';
|
|
1961
1969
|
});
|
|
1962
1970
|
return React__default.createElement(Meta, {
|
|
1963
|
-
styleContext:
|
|
1971
|
+
styleContext: context,
|
|
1964
1972
|
theme: theme || themeColor,
|
|
1965
1973
|
onlyOn: block.only_on,
|
|
1966
1974
|
hasSource: hasSource
|