@formixru/b2b-ui 1.0.5 → 1.1.1

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
@@ -1,7 +1,15 @@
1
+ ## v1.1.1
2
+
3
+ - Переменная `--tab-bar-height` добавлена в `base.scss`
4
+
5
+ ## v1.1.0
6
+
7
+ - Использование cssVar() в ColorInput для работы с предустановленными цветами
8
+
1
9
  ## v1.0.5
2
10
 
3
11
  - Доработки по коду и документации
4
- - Функция __FORMIX__DIALOG__INIT_JSON переименована в __FORMIX__DIALOG__INTERCEPT_DATA
12
+ - Функция `__FORMIX__DIALOG__INIT_JSON` переименована в `__FORMIX__DIALOG__INTERCEPT_DATA`
5
13
  - Обновлена требуемая версия @advdominion/tooltip
6
14
  - Доработки по работе по .tabs
7
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formixru/b2b-ui",
3
- "version": "1.0.5",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
package/src/base.scss CHANGED
@@ -3,6 +3,8 @@
3
3
 
4
4
  /* stylelint-disable comment-empty-line-before, custom-property-empty-line-before */
5
5
  :root {
6
+ --tab-bar-height: 0px;
7
+
6
8
  --duration-micro-s: 100ms;
7
9
  --duration-micro-m: 175ms;
8
10
  --duration-micro-l: 250ms;
@@ -78,6 +78,8 @@
78
78
  import Color from 'color';
79
79
  import { computed, ref, toRefs, watch } from 'vue';
80
80
 
81
+ import { cssVar } from '../../helpers/css-var.js';
82
+
81
83
  const ICONS_PATH = window.ICONS_PATH;
82
84
 
83
85
  const emit = defineEmits(['input']);
@@ -129,11 +131,7 @@ const setColor = (color) => {
129
131
 
130
132
  const getHexColor = (color) => {
131
133
  if (color.charAt(0) === '$') {
132
- const $div = document.createElement('div');
133
- $div.classList.add(color.replace('$', 'theme-'));
134
- document.body.append($div);
135
- color = getComputedStyle($div).backgroundColor;
136
- $div.remove();
134
+ color = cssVar(color.replace('$', '--'));
137
135
  return Color(color).hex().toLowerCase();
138
136
  }
139
137
  return color;
@@ -88,7 +88,7 @@ export const get = async (id, url, showLoaderDelay) => {
88
88
  if (data.length > 0) {
89
89
  const $b = document.querySelector(id);
90
90
  $b.innerHTML = data;
91
- await show($b)
91
+ await show($b);
92
92
  hideLoader();
93
93
  initSidebarContent($b);
94
94
  } else {