@jetbrains/ring-ui 5.0.124 → 5.0.125

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.
@@ -15,7 +15,7 @@ export declare enum Size {
15
15
  }
16
16
  export interface AvatarProps extends ImgHTMLAttributes<HTMLImageElement> {
17
17
  dpr: number;
18
- size: Size;
18
+ size: Size | number;
19
19
  subavatarSize: number;
20
20
  url?: string | null | undefined;
21
21
  round?: boolean | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import 'focus-visible';
2
2
  import React, { PureComponent, ButtonHTMLAttributes } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { IconType, Size } from '../icon/icon';
4
+ import { IconProps, IconType, Size } from '../icon/icon';
5
5
  import { ClickableLinkProps } from '../link/clickableLink';
6
6
  import { ControlsHeight, ControlsHeightContext } from '../global/controls-height';
7
7
  export interface ButtonBaseProps {
@@ -17,7 +17,7 @@ export interface ButtonBaseProps {
17
17
  dropdown?: boolean | null | undefined;
18
18
  disabled?: boolean | undefined;
19
19
  icon?: string | IconType | null | undefined;
20
- iconSize?: Size | null | undefined;
20
+ iconSize?: IconProps['size'];
21
21
  iconClassName?: string | null | undefined;
22
22
  iconSuppressSizeWarning?: boolean | null | undefined;
23
23
  }
@@ -9,7 +9,7 @@ export interface IconProps extends HTMLAttributes<HTMLElement> {
9
9
  color: Color;
10
10
  glyph: string | IconType | null;
11
11
  height?: number | undefined;
12
- size?: Size | null | undefined;
12
+ size?: Size | number | null | undefined;
13
13
  width?: number | undefined;
14
14
  loading?: boolean | null | undefined;
15
15
  suppressSizeWarning?: boolean | null | undefined;
@@ -15,7 +15,7 @@ export declare enum Size {
15
15
  }
16
16
  export interface AvatarProps extends ImgHTMLAttributes<HTMLImageElement> {
17
17
  dpr: number;
18
- size: Size;
18
+ size: Size | number;
19
19
  subavatarSize: number;
20
20
  url?: string | null | undefined;
21
21
  round?: boolean | null | undefined;
@@ -1,7 +1,7 @@
1
1
  import 'focus-visible';
2
2
  import React, { PureComponent, ButtonHTMLAttributes } from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { IconType, Size } from '../icon/icon';
4
+ import { IconProps, IconType, Size } from '../icon/icon';
5
5
  import { ClickableLinkProps } from '../link/clickableLink';
6
6
  import { ControlsHeight, ControlsHeightContext } from '../global/controls-height';
7
7
  export interface ButtonBaseProps {
@@ -17,7 +17,7 @@ export interface ButtonBaseProps {
17
17
  dropdown?: boolean | null | undefined;
18
18
  disabled?: boolean | undefined;
19
19
  icon?: string | IconType | null | undefined;
20
- iconSize?: Size | null | undefined;
20
+ iconSize?: IconProps['size'];
21
21
  iconClassName?: string | null | undefined;
22
22
  iconSuppressSizeWarning?: boolean | null | undefined;
23
23
  }
@@ -9,7 +9,7 @@ export interface IconProps extends HTMLAttributes<HTMLElement> {
9
9
  color: Color;
10
10
  glyph: string | IconType | null;
11
11
  height?: number | undefined;
12
- size?: Size | null | undefined;
12
+ size?: Size | number | null | undefined;
13
13
  width?: number | undefined;
14
14
  loading?: boolean | null | undefined;
15
15
  suppressSizeWarning?: boolean | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetbrains/ring-ui",
3
- "version": "5.0.124",
3
+ "version": "5.0.125",
4
4
  "description": "JetBrains UI library",
5
5
  "author": "JetBrains",
6
6
  "license": "Apache-2.0",
@@ -78,7 +78,7 @@
78
78
  "@babel/eslint-parser": "^7.21.3",
79
79
  "@jetbrains/eslint-config": "^5.4.1",
80
80
  "@jetbrains/stylelint-config": "^3.0.2",
81
- "@primer/octicons": "^18.2.0",
81
+ "@primer/octicons": "^18.3.0",
82
82
  "@rollup/plugin-babel": "^6.0.3",
83
83
  "@rollup/plugin-node-resolve": "^15.0.1",
84
84
  "@rollup/plugin-replace": "^5.0.2",
@@ -133,7 +133,7 @@
133
133
  "eslint-plugin-jsx-a11y": "^6.7.1",
134
134
  "eslint-plugin-react": "^7.32.2",
135
135
  "events": "^3.3.0",
136
- "glob": "^9.3.1",
136
+ "glob": "^9.3.2",
137
137
  "html-webpack-plugin": "^5.5.0",
138
138
  "husky": "^8.0.3",
139
139
  "identity-obj-proxy": "^3.0.0",
@@ -157,21 +157,22 @@
157
157
  "react-dom": "^18.2.0",
158
158
  "react-test-renderer": "^18.2.0",
159
159
  "regenerator-runtime": "^0.13.11",
160
- "rimraf": "^4.4.0",
161
- "rollup": "^3.20.0",
160
+ "rimraf": "^4.4.1",
161
+ "rollup": "^3.20.2",
162
162
  "rollup-plugin-clear": "^2.0.7",
163
163
  "rollup-plugin-styles": "^4.0.0",
164
164
  "sinon": "^15.0.2",
165
165
  "sinon-chai": "^3.7.0",
166
166
  "storage-mock": "^2.1.0",
167
167
  "storybook-addon-themes": "^6.1.0",
168
+ "storybook-zeplin": "^1.7.3",
168
169
  "stylelint": "^15.3.0",
169
170
  "svg-inline-loader": "^0.8.2",
170
171
  "teamcity-service-messages": "^0.1.14",
171
172
  "terser-webpack-plugin": "^5.3.7",
172
173
  "typescript": "~4.9.5",
173
174
  "wallaby-webpack": "^3.9.16",
174
- "webpack": "^5.76.2",
175
+ "webpack": "^5.76.3",
175
176
  "webpack-cli": "^5.0.1",
176
177
  "xmlappend": "^1.0.4",
177
178
  "yo": "^4.3.1"
@@ -251,7 +252,6 @@
251
252
  "scrollbar-width": "^3.1.1",
252
253
  "simply-uuid": "^1.0.1",
253
254
  "sniffr": "^1.2.0",
254
- "storybook-zeplin": "^1.7.3",
255
255
  "style-inject": "^0.3.0",
256
256
  "style-loader": "~3.3.2",
257
257
  "url-loader": "^4.1.1",