@meduza/ui-kit-2 0.4.7 → 0.4.8

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.7",
2
+ "version": "0.4.8",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -104,6 +104,11 @@
104
104
  }
105
105
  }
106
106
 
107
+ .isCustom {
108
+ color: var(--metaText);
109
+ fill: var(--metaFill);
110
+ }
111
+
107
112
  /* VISIBILITY */
108
113
 
109
114
  .mobile {
@@ -65,6 +65,40 @@ const Example: React.FC = () => {
65
65
  isInBookmarks={false}
66
66
  />
67
67
  </div>
68
+ <div
69
+ className={styles.layout}
70
+ style={
71
+ {
72
+ '--metaText': `pink`,
73
+ '--metaFill': 'currentColor'
74
+ } as React.CSSProperties
75
+ }
76
+ >
77
+ <h3>CSS Props</h3>
78
+
79
+ <Meta styleContext="isCustom">
80
+ <MetaItem bullets>
81
+ <MetaItemLive /> Онлайн
82
+ </MetaItem>
83
+ <MetaItem bullets>
84
+ Источник: <a href="https://meduza.io">Meduza</a>
85
+ </MetaItem>
86
+ <MetaItem bullets>
87
+ <Timestamp publishedAt={1558353600} type="date" locale="en" />
88
+ </MetaItem>
89
+ </Meta>
90
+ <div className={styles.layout}>
91
+ <h3>Блочная</h3>
92
+ <MetaContainer
93
+ block={MetaMock}
94
+ lang="ru"
95
+ styleContext={[]}
96
+ isRead={false}
97
+ isListened={false}
98
+ isInBookmarks={false}
99
+ />
100
+ </div>
101
+ </div>
68
102
  </div>
69
103
  </div>
70
104
  )