@v1nt1248/3nclient-lib 0.1.83 → 0.1.85

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.
@@ -210,7 +210,7 @@
210
210
  --s-accent-fill-default: var(--white-100);
211
211
  --s-accent-fill-hover: var(--blue-10);
212
212
  --s-accent-fill-focused: var(--white-100);
213
- --s-accent-fill-pressed: var(--blue-70);
213
+ --s-accent-fill-pressed: var(--blue-20);
214
214
  --s-accent-fill-disabled: var(--blue-0);
215
215
  --s-accent-content-default: var(--blue-50);
216
216
  --s-accent-content-hover: var(--blue-50);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.1.83",
5
+ "version": "0.1.85",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -24,14 +24,24 @@ const slots = useSlots();
24
24
  const $css = useCssModule();
25
25
 
26
26
  const height = computed(() => `${props.height}px`);
27
- const iconHeight = computed(() => props.height ? Number(props.height) - 2 : Number(props.height));
28
- const padding = computed(() => `${Math.round(Number(props.height) / 3)}px`);
27
+ const iconHeight = computed(() => Number(props.height) - 4);
28
+
29
29
  const maxWidth = computed(() => `${props.maxWidth}px`);
30
30
  const bgColor = computed(() => props.color);
31
31
  const textSize = computed(() => `${props.textSize}px`);
32
32
  const textColor = computed(() => props.textColor);
33
33
  const hasLeftSlot = computed(() => !!slots.left);
34
34
 
35
+ const padding = computed(() => {
36
+ const padValue = Math.round(Number(props.height) / 3);
37
+
38
+ if (hasLeftSlot.value) {
39
+ return `0 ${padValue}px 0 4px`;
40
+ }
41
+
42
+ return `0 ${padValue}px`;
43
+ });
44
+
35
45
  const mainCssClasses = computed(() => {
36
46
  const val = [$css.ui3nChip];
37
47
 
@@ -76,7 +86,7 @@ function onClick() {
76
86
  position: relative;
77
87
  display: flex;
78
88
  height: v-bind('height');
79
- padding: 0 v-bind('padding');
89
+ padding: v-bind('padding');
80
90
  width: max-content;
81
91
  max-width: v-bind('maxWidth');
82
92
  background-color: v-bind('bgColor');