@cloud-ru/ds-tooltip 1.0.5 → 1.0.6-preview-a2208aeb.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.
@@ -44,8 +44,16 @@ $sizes: 'xs', 's';
44
44
 
45
45
  @each $size in $sizes {
46
46
  &[data-size='#{$size}'] {
47
- width: base.simple-var(base.$sn-density, 'size', 'icon', $size);
48
- height: base.simple-var(base.$sn-density, 'size', 'icon', $size);
47
+ $icon-size: base.simple-var(base.$sn-density, 'icon', $size);
48
+
49
+ width: $icon-size;
50
+ height: $icon-size;
51
+
52
+ // !important — иконки `@cloud-ru/ds-icons` проставляют width/height инлайн-стилем.
53
+ svg {
54
+ width: $icon-size !important;
55
+ height: $icon-size !important;
56
+ }
49
57
  }
50
58
  }
51
59
  }
@@ -1,2 +0,0 @@
1
- import { Size } from './types';
2
- export declare function getIconSize(size?: Size): 16 | 24;
package/dist/cjs/utils.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getIconSize = getIconSize;
4
- const constants_1 = require("./constants");
5
- function getIconSize(size) {
6
- switch (size) {
7
- case constants_1.SIZE.XS: {
8
- return 16;
9
- }
10
- case constants_1.SIZE.S:
11
- default: {
12
- return 24;
13
- }
14
- }
15
- }
@@ -1,2 +0,0 @@
1
- import { Size } from './types.js';
2
- export declare function getIconSize(size?: Size): 16 | 24;
package/dist/esm/utils.js DELETED
@@ -1,12 +0,0 @@
1
- import { SIZE } from './constants.js';
2
- export function getIconSize(size) {
3
- switch (size) {
4
- case SIZE.XS: {
5
- return 16;
6
- }
7
- case SIZE.S:
8
- default: {
9
- return 24;
10
- }
11
- }
12
- }
package/src/utils.ts DELETED
@@ -1,14 +0,0 @@
1
- import { SIZE } from './constants';
2
- import { Size } from './types';
3
-
4
- export function getIconSize(size?: Size) {
5
- switch (size) {
6
- case SIZE.XS: {
7
- return 16;
8
- }
9
- case SIZE.S:
10
- default: {
11
- return 24;
12
- }
13
- }
14
- }