@meduza/ui-kit-2 0.4.6 → 0.4.7
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/DocumentItemsCount/DocumentItemsCount.types.d.ts +1 -0
- package/dist/Dropdown/Dropdown.types.d.ts +1 -0
- package/dist/Lazy/Lazy.types.d.ts +1 -0
- package/dist/ListBlock/ListBlock.types.d.ts +1 -0
- package/dist/Meta/Meta.mock.d.ts +12 -0
- package/dist/RichTitle/RichTitle.types.d.ts +1 -0
- package/dist/Tag/Tag.types.d.ts +1 -1
- package/dist/Toolbar/Toolbar.types.d.ts +1 -0
- package/dist/ui-kit-2.cjs.development.js +8 -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 +8 -1
- package/dist/ui-kit-2.esm.js.map +1 -1
- package/dist/ui-kit.css +3 -3
- package/package.json +1 -1
- package/src/Meta/Meta.mock.ts +19 -0
- package/src/Meta/Meta.stories.module.css +16 -0
- package/src/Meta/Meta.stories.tsx +17 -4
- package/src/Meta/MetaContainer.tsx +8 -0
- package/src/Tag/Tag.module.css +4 -3
- package/src/Tag/Tag.stories.tsx +16 -3
- package/src/Tag/Tag.types.ts +7 -1
package/dist/Tag/Tag.types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type TagSizes = 'small' | 'large';
|
|
3
|
-
export type TagThemes = 'dark' | 'gold' | 'gray' | 'light' | 'inherit';
|
|
3
|
+
export type TagThemes = 'dark' | 'gold' | 'gray' | 'light' | 'custom' | 'inherit';
|
|
4
4
|
export type TagStyleContexts = 'isInToolbar' | 'isInSpoiler' | 'isInDropdown';
|
|
5
5
|
export interface TagProps {
|
|
6
6
|
children: React.ReactNode | JSX.Element[] | JSX.Element;
|
|
@@ -730,7 +730,7 @@ const DotsOnImage = ({
|
|
|
730
730
|
})))));
|
|
731
731
|
};
|
|
732
732
|
|
|
733
|
-
var styles$x = {"root":"Tag-module_root__sGbnM","small":"Tag-module_small__hcPrf","large":"Tag-module_large__EKMu6","dark":"Tag-module_dark__9SHCb","light":"Tag-module_light__qlfy3","gold":"Tag-module_gold__u0bzS","gray":"Tag-module_gray__eazPk","inherit":"Tag-module_inherit__z21c-","is1to1":"Tag-module_is1to1__V-fH5","is1to2":"Tag-module_is1to2__b9Obh","isInSuperBlock":"Tag-module_isInSuperBlock__wrFUY","is1to3":"Tag-module_is1to3__vZT-R","is1to4":"Tag-module_is1to4__MBh5V","slide":"Tag-module_slide__gzptP","game":"Tag-module_game__NmKec","podcastMaterial":"Tag-module_podcastMaterial__O-LBI","richRelated":"Tag-module_richRelated__Qs6Ei","card":"Tag-module_card__TX87-","live":"Tag-module_live__ykyR7","episode":"Tag-module_episode__3OHmN","podcast":"Tag-module_podcast__K6dHn","rich":"Tag-module_rich__vPnWd","isInDynamicBlock":"Tag-module_isInDynamicBlock__WNleF","mobile":"Tag-module_mobile__19oMH","desktop":"Tag-module_desktop__cNyQs"};
|
|
733
|
+
var styles$x = {"root":"Tag-module_root__sGbnM","small":"Tag-module_small__hcPrf","large":"Tag-module_large__EKMu6","dark":"Tag-module_dark__9SHCb","light":"Tag-module_light__qlfy3","gold":"Tag-module_gold__u0bzS","gray":"Tag-module_gray__eazPk","inherit":"Tag-module_inherit__z21c-","custom":"Tag-module_custom__NU9-e","is1to1":"Tag-module_is1to1__V-fH5","is1to2":"Tag-module_is1to2__b9Obh","isInSuperBlock":"Tag-module_isInSuperBlock__wrFUY","is1to3":"Tag-module_is1to3__vZT-R","is1to4":"Tag-module_is1to4__MBh5V","slide":"Tag-module_slide__gzptP","game":"Tag-module_game__NmKec","podcastMaterial":"Tag-module_podcastMaterial__O-LBI","richRelated":"Tag-module_richRelated__Qs6Ei","card":"Tag-module_card__TX87-","live":"Tag-module_live__ykyR7","episode":"Tag-module_episode__3OHmN","podcast":"Tag-module_podcast__K6dHn","rich":"Tag-module_rich__vPnWd","isInDynamicBlock":"Tag-module_isInDynamicBlock__WNleF","mobile":"Tag-module_mobile__19oMH","desktop":"Tag-module_desktop__cNyQs"};
|
|
734
734
|
|
|
735
735
|
const Tag = ({
|
|
736
736
|
children,
|
|
@@ -1885,6 +1885,13 @@ const MetaContainer = ({
|
|
|
1885
1885
|
key: component.id
|
|
1886
1886
|
}, /*#__PURE__*/React.createElement(React.Fragment, null, component.with_icon && /*#__PURE__*/React.createElement(MetaItemLive, null), component.label));
|
|
1887
1887
|
}
|
|
1888
|
+
case 'string':
|
|
1889
|
+
{
|
|
1890
|
+
return /*#__PURE__*/React.createElement(MetaItem, {
|
|
1891
|
+
bullets: true,
|
|
1892
|
+
key: component.id
|
|
1893
|
+
}, component.text);
|
|
1894
|
+
}
|
|
1888
1895
|
default:
|
|
1889
1896
|
{
|
|
1890
1897
|
return null;
|