@jetbrains/ring-ui 7.0.37 → 7.0.38
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ButtonProps } from './button';
|
|
2
|
-
export declare function getButtonClasses({ className, active, disabled, loader, primary, success, error, secondary, ghost, short, inline, danger, delayed, icon, height, children, }: ButtonProps): string;
|
|
2
|
+
export declare function getButtonClasses({ className, active, disabled, loader, primary, success, error, secondary, ghost, short, inline, danger, delayed, icon, iconRight, height, children, }: ButtonProps): string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import classNames from 'classnames';
|
|
2
2
|
import styles from './button.css';
|
|
3
|
-
export function getButtonClasses({ className, active, disabled, loader, primary, success, error, secondary, ghost, short, inline, danger, delayed, icon, height, children, }) {
|
|
4
|
-
const iconOnly = icon && !children;
|
|
3
|
+
export function getButtonClasses({ className, active, disabled, loader, primary, success, error, secondary, ghost, short, inline, danger, delayed, icon, iconRight, height, children, }) {
|
|
4
|
+
const iconOnly = (icon || iconRight) && !children;
|
|
5
5
|
const primaryBlock = primary && !inline;
|
|
6
6
|
const withNormalIcon = iconOnly && inline && !active && !danger && !primary && !disabled;
|
|
7
7
|
return classNames(styles.button, className, styles[`height${height}`], inline ? styles.inline : styles.block, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.38",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "JetBrains"
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@eslint/compat": "^1.2.8",
|
|
94
94
|
"@eslint/eslintrc": "^3.2.0",
|
|
95
95
|
"@eslint/js": "^9.20.0",
|
|
96
|
-
"@figma/code-connect": "^1.3.
|
|
96
|
+
"@figma/code-connect": "^1.3.2",
|
|
97
97
|
"@jetbrains/eslint-config": "^6.0.4",
|
|
98
98
|
"@jetbrains/logos": "3.0.0-canary.734b213.0",
|
|
99
99
|
"@jetbrains/rollup-css-plugin": "./packages/rollup-css-plugin",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"@testing-library/user-event": "^14.6.1",
|
|
121
121
|
"@types/chai": "^5.2.1",
|
|
122
122
|
"@types/chai-as-promised": "^8.0.2",
|
|
123
|
-
"@types/chai-dom": "
|
|
123
|
+
"@types/chai-dom": "1.11.3",
|
|
124
124
|
"@types/eslint__js": "^8.42.3",
|
|
125
125
|
"@types/markdown-it": "^14.1.2",
|
|
126
126
|
"@types/react": "^18.3.12",
|
|
@@ -136,20 +136,20 @@
|
|
|
136
136
|
"caniuse-lite": "^1.0.30001709",
|
|
137
137
|
"chai": "^5.2.0",
|
|
138
138
|
"chai-as-promised": "^8.0.1",
|
|
139
|
-
"chai-dom": "^1.
|
|
140
|
-
"cheerio": "^1.0.0
|
|
141
|
-
"chromatic": "^11.
|
|
139
|
+
"chai-dom": "^1.12.1",
|
|
140
|
+
"cheerio": "^1.0.0",
|
|
141
|
+
"chromatic": "^11.28.0",
|
|
142
142
|
"core-js": "^3.41.0",
|
|
143
143
|
"cpy-cli": "^5.0.0",
|
|
144
144
|
"dotenv-cli": "^8.0.0",
|
|
145
|
-
"eslint": "^9.
|
|
145
|
+
"eslint": "^9.24.0",
|
|
146
146
|
"eslint-config-prettier": "^10.1.1",
|
|
147
147
|
"eslint-formatter-jslint-xml": "^8.40.0",
|
|
148
148
|
"eslint-import-resolver-webpack": "^0.13.10",
|
|
149
149
|
"eslint-plugin-import": "^2.31.0",
|
|
150
150
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
151
151
|
"eslint-plugin-prettier": "^5.2.6",
|
|
152
|
-
"eslint-plugin-react": "^7.37.
|
|
152
|
+
"eslint-plugin-react": "^7.37.5",
|
|
153
153
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
154
154
|
"eslint-plugin-storybook": "^0.12.0",
|
|
155
155
|
"events": "^3.3.0",
|
|
@@ -179,11 +179,11 @@
|
|
|
179
179
|
"sinon-chai": "^4.0.0",
|
|
180
180
|
"storage-mock": "^2.1.0",
|
|
181
181
|
"storybook": "8.6.12",
|
|
182
|
-
"stylelint": "^16.
|
|
182
|
+
"stylelint": "^16.18.0",
|
|
183
183
|
"svg-inline-loader": "^0.8.2",
|
|
184
184
|
"teamcity-service-messages": "^0.1.14",
|
|
185
185
|
"terser-webpack-plugin": "^5.3.14",
|
|
186
|
-
"typescript": "~5.8.
|
|
186
|
+
"typescript": "~5.8.3",
|
|
187
187
|
"typescript-eslint": "^8.29.0",
|
|
188
188
|
"vitest": "^3.1.1",
|
|
189
189
|
"vitest-teamcity-reporter": "^0.3.1",
|