@pushwoosh/kit-icons 2.2.6 → 2.3.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.
package/icon.styles.d.ts CHANGED
@@ -1,8 +1,7 @@
1
- import { UnitSize } from '@pushwoosh/kit-constants';
2
1
  export declare const SizeInPxByIconSizeMap: {
3
- small: UnitSize;
4
- medium: UnitSize;
5
- large: UnitSize;
2
+ small: "16px";
3
+ medium: "24px";
4
+ large: "48px";
6
5
  };
7
6
  export type IconBoxProps = {
8
7
  readonly size: 'small' | 'medium' | 'large';
package/icon.styles.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import styled from 'styled-components';
2
- import { Color, UnitSize } from '@pushwoosh/kit-constants';
2
+ import { ColorCurrent, ColorDanger, IconSizeInPx } from './tokens';
3
3
  export const SizeInPxByIconSizeMap = {
4
- small: UnitSize.ICON_SMALL,
5
- medium: UnitSize.ICON_MEDIUM,
6
- large: UnitSize.ICON_LARGE
4
+ small: IconSizeInPx.small,
5
+ medium: IconSizeInPx.medium,
6
+ large: IconSizeInPx.large
7
7
  };
8
8
  export const IconBox = styled.div.withConfig({
9
9
  displayName: "IconBox",
@@ -14,5 +14,5 @@ export const IconBox = styled.div.withConfig({
14
14
  size
15
15
  }) => SizeInPxByIconSizeMap[size], ({
16
16
  color
17
- }) => color || Color.CURRENT, Color.DANGER);
17
+ }) => color || ColorCurrent, ColorDanger);
18
18
  IconBox.displayName = 'IconBox';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/kit-icons",
3
- "version": "2.2.6",
3
+ "version": "2.3.0",
4
4
  "description": "React component for build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -23,7 +23,6 @@
23
23
  "pre-commit": "check",
24
24
  "devDependencies": {
25
25
  "@pushwoosh/frontend-builder-engine": "^3.1.0",
26
- "@pushwoosh/kit-typography": "^1.0.0",
27
26
  "@svgr/cli": "^8.1.0",
28
27
  "@svgr/core": "^8.1.0",
29
28
  "@svgr/webpack": "^8.1.0",
@@ -48,7 +47,6 @@
48
47
  "node": ">= 18"
49
48
  },
50
49
  "dependencies": {
51
- "@pushwoosh/kit-constants": "^1.5.1",
52
50
  "es-toolkit": "^1.30.1"
53
51
  }
54
52
  }
package/tokens.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ export declare const IconSizeInPx: {
2
+ readonly small: "16px";
3
+ readonly medium: "24px";
4
+ readonly large: "48px";
5
+ };
6
+ export declare const ColorCurrent = "currentColor";
7
+ export declare const ColorDanger = "var(--pw-color-danger, #E52E59)";
package/tokens.js ADDED
@@ -0,0 +1,8 @@
1
+ // Inlined from @pushwoosh/kit-constants during the package-scope migration; keep values in sync by hand.
2
+ export const IconSizeInPx = {
3
+ small: '16px',
4
+ medium: '24px',
5
+ large: '48px'
6
+ };
7
+ export const ColorCurrent = 'currentColor';
8
+ export const ColorDanger = 'var(--pw-color-danger, #E52E59)';