@meduza/ui-kit-2 1.2.0 → 1.3.0

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.
@@ -2,6 +2,6 @@ export interface MetaItemProps {
2
2
  bullets?: boolean;
3
3
  hasSource?: boolean;
4
4
  type?: string;
5
- mobileOnly?: boolean;
5
+ variant?: 'tag';
6
6
  children: React.ReactNode | JSX.Element[] | JSX.Element;
7
7
  }
@@ -1,3 +1,4 @@
1
1
  export interface MetaItemLiveProps {
2
2
  theme?: 'gold' | 'light' | 'inherit';
3
+ children?: React.ReactNode;
3
4
  }
@@ -1725,26 +1725,27 @@ const GroupedBlock = ({
1725
1725
  }))));
1726
1726
  };
1727
1727
 
1728
- var styles$f = {"root":"MetaItem-module_root__sRbrZ","hasBullets":"MetaItem-module_hasBullets__b1eW9","hasSource":"MetaItem-module_hasSource__35olm","datetime":"MetaItem-module_datetime__--O8c","mobileOnly":"MetaItem-module_mobileOnly__VJCjl"};
1728
+ var styles$f = {"root":"MetaItem-module_root__sRbrZ","hasBullets":"MetaItem-module_hasBullets__b1eW9","hasSource":"MetaItem-module_hasSource__35olm","datetime":"MetaItem-module_datetime__--O8c","tag":"MetaItem-module_tag__3HzOp"};
1729
1729
 
1730
1730
  const MetaItem = ({
1731
1731
  hasSource,
1732
1732
  type,
1733
1733
  children,
1734
1734
  bullets,
1735
- mobileOnly
1735
+ variant
1736
1736
  }) => {
1737
- const classNames = [[styles$f.root, true], [styles$f[type], !!type && !!styles$f[type]], [styles$f.hasSource, !!hasSource], [styles$f.hasBullets, !!bullets], [styles$f.mobileOnly, !!mobileOnly]];
1737
+ const classNames = [[styles$f.root, true], [styles$f[type], !!type && !!styles$f[type]], [styles$f.hasSource, !!hasSource], [styles$f.hasBullets, !!bullets], [styles$f[variant], !!variant && !!styles$f[variant]]];
1738
1738
  return /*#__PURE__*/React.createElement("div", {
1739
1739
  "data-testid": "meta-item",
1740
1740
  className: makeClassName(classNames)
1741
1741
  }, children);
1742
1742
  };
1743
1743
 
1744
- var styles$e = {"root":"MetaItemLive-module_root__XfQiW","gold":"MetaItemLive-module_gold__f1UOy","frame":"MetaItemLive-module_frame__FHByQ","liveMiddle":"MetaItemLive-module_liveMiddle__SX4Gs","liveFirstWave":"MetaItemLive-module_liveFirstWave__QqstP","liveSecondWave":"MetaItemLive-module_liveSecondWave__hlbpt"};
1744
+ var styles$e = {"root":"MetaItemLive-module_root__XfQiW","gold":"MetaItemLive-module_gold__f1UOy","icon":"MetaItemLive-module_icon__JIMLl","pulse":"MetaItemLive-module_pulse__zzrle","text":"MetaItemLive-module_text__wgLcT"};
1745
1745
 
1746
1746
  const MetaItemLive = ({
1747
- theme = 'gold'
1747
+ theme = 'gold',
1748
+ children
1748
1749
  }) => {
1749
1750
  const classNames = [[styles$e.root, true], [styles$e[theme], !!theme && styles$e[theme]]];
1750
1751
  return /*#__PURE__*/React.createElement("div", {
@@ -1752,8 +1753,10 @@ const MetaItemLive = ({
1752
1753
  "data-meta": "live",
1753
1754
  className: makeClassName(classNames)
1754
1755
  }, /*#__PURE__*/React.createElement("div", {
1755
- className: styles$e.frame
1756
- }));
1756
+ className: styles$e.icon
1757
+ }), children && /*#__PURE__*/React.createElement("span", {
1758
+ className: styles$e.text
1759
+ }, children));
1757
1760
  };
1758
1761
 
1759
1762
  const pluralize = (number, one, two, five) => {
@@ -1894,7 +1897,7 @@ const MetaContainer = ({
1894
1897
  hasSource: hasSource,
1895
1898
  bullets: true,
1896
1899
  key: component.id
1897
- }, /*#__PURE__*/React.createElement(MetaItemLive, null), " \u041F\u0440\u044F\u043C\u043E\u0439 \u044D\u0444\u0438\u0440");
1900
+ }, /*#__PURE__*/React.createElement(MetaItemLive, null, "\u041F\u0440\u044F\u043C\u043E\u0439 \u044D\u0444\u0438\u0440"));
1898
1901
  }
1899
1902
  case 'broadcast':
1900
1903
  {