mediacube-ui 0.1.352 → 0.1.353

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/CHANGELOG.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.353](https://github.com/MediaCubeCo/mcui/compare/v0.1.352...v0.1.353) (2025-01-14)
6
+
5
7
  ### [0.1.352](https://github.com/MediaCubeCo/mcui/compare/v0.1.351...v0.1.352) (2025-01-14)
6
8
 
7
9
  ### [0.1.351](https://github.com/MediaCubeCo/mcui/compare/v0.1.350...v0.1.351) (2025-01-08)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mediacube-ui",
3
- "version": "0.1.352",
3
+ "version": "0.1.353",
4
4
  "description": "Design system for Mediacube services",
5
5
  "author": "Mediacube",
6
6
  "private": false,
@@ -308,9 +308,10 @@ export default {
308
308
  /**
309
309
  * Так как сейчас мы используем светлую тему, то проверяем контраст цвета на основе белого
310
310
  * Проверяем только для main цветов, так как остальные должны подходить по стандарту
311
- * TODO: сделать проверку контраста для темных тем
311
+ * TODO: сделать проверку контраста для темных тем + убрать проверку на process.client
312
312
  * */
313
313
  isContrast() {
314
+ if (!process.client) return
314
315
  let [color] = this.variation.split('-') || []
315
316
  return color.includes('main') && checkContrastColor(color, [255, 255, 255])
316
317
  },