diff --git a/.eslintrc b/.eslintrc index f11af1b6e1..b38843c8a8 100644 --- a/.eslintrc +++ b/.eslintrc @@ -31,7 +31,8 @@ "import/no-extraneous-dependencies": "off", "import/consistent-type-specifier-style": ["error", "prefer-top-level"], "@typescript-eslint/prefer-ts-expect-error": "error", - "@typescript-eslint/consistent-type-imports": ["error", {"prefer": "type-imports", "fixStyle": "separate-type-imports"}] + "@typescript-eslint/consistent-type-imports": ["error", {"prefer": "type-imports", "fixStyle": "separate-type-imports"}], + "complexity": "off" }, "overrides": [ { diff --git a/CHANGELOG.md b/CHANGELOG.md index 995d14e03d..c8545d1fb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog +## [6.37.0](https://github.com/gravity-ui/uikit/compare/v6.36.0...v6.37.0) (2024-11-27) + + +### Features + +* **Breadcrunbs:** allow items to be disabled independently ([#1962](https://github.com/gravity-ui/uikit/issues/1962)) ([301e4ab](https://github.com/gravity-ui/uikit/commit/301e4ab365639188e010390d5b19da1df13d75fa)) +* **Select:** new label and value resize behaviour ([#1896](https://github.com/gravity-ui/uikit/issues/1896)) ([2be5eb8](https://github.com/gravity-ui/uikit/commit/2be5eb8dc21679154bbb924af5e1e1eefa8a7a58)) + +## [6.36.0](https://github.com/gravity-ui/uikit/compare/v6.35.2...v6.36.0) (2024-11-25) + + +### Features + +* **PasswordInput:** add component ([#1745](https://github.com/gravity-ui/uikit/issues/1745)) ([2e7f2c7](https://github.com/gravity-ui/uikit/commit/2e7f2c731c8cb2fd08993fc30ffed8b06a5f0ea2)) + + +### Bug Fixes + +* **Select:** do not reserve space for clear if empty ([#1956](https://github.com/gravity-ui/uikit/issues/1956)) ([11dd537](https://github.com/gravity-ui/uikit/commit/11dd537feaa230133f8051fd6c370e6e3ec7d54f)) +* **Toc:** correctly display content of no items.length and add event forward ([#1939](https://github.com/gravity-ui/uikit/issues/1939)) ([8d456c3](https://github.com/gravity-ui/uikit/commit/8d456c3d77d63674f20ebac82913d8a26c14f997)) + ## [6.35.2](https://github.com/gravity-ui/uikit/compare/v6.35.1...v6.35.2) (2024-11-14) diff --git a/package-lock.json b/package-lock.json index c10e57b538..f46cb70378 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gravity-ui/uikit", - "version": "6.35.2", + "version": "6.37.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gravity-ui/uikit", - "version": "6.35.2", + "version": "6.37.0", "license": "MIT", "dependencies": { "@bem-react/classname": "^1.6.0", diff --git a/package.json b/package.json index 8aeefdf126..a4aeb181c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gravity-ui/uikit", - "version": "6.35.2", + "version": "6.37.0", "description": "Gravity UI base styling and components", "keywords": [ "component", diff --git a/src/components/Button/Button.tsx b/src/components/Button/Button.tsx index 6ffa7adef4..173ffa2282 100644 --- a/src/components/Button/Button.tsx +++ b/src/components/Button/Button.tsx @@ -178,7 +178,6 @@ const isButtonIconComponent = isOfType(ButtonIcon); const isSpan = isOfType<{className?: string}>('span'); const buttonIconClassRe = RegExp(`^${b('icon')}($|\\s+\\w)`); -// eslint-disable-next-line complexity function prepareChildren(children: React.ReactNode) { const items = React.Children.toArray(children); diff --git a/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-dark-chromium-linux.png b/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-dark-chromium-linux.png deleted file mode 100644 index 45d40ecffd..0000000000 Binary files a/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-dark-chromium-linux.png and /dev/null differ diff --git a/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-dark-webkit-linux.png b/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-dark-webkit-linux.png deleted file mode 100644 index ae79506d9d..0000000000 Binary files a/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-dark-webkit-linux.png and /dev/null differ diff --git a/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-light-chromium-linux.png b/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-light-chromium-linux.png deleted file mode 100644 index b820409953..0000000000 Binary files a/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-light-chromium-linux.png and /dev/null differ diff --git a/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-light-webkit-linux.png b/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-light-webkit-linux.png deleted file mode 100644 index 04c500af53..0000000000 Binary files a/src/components/Select/__snapshots__/Select.visual.test.tsx-snapshots/Select-control-with-parent-flex-basis-0-light-webkit-linux.png and /dev/null differ diff --git a/src/components/Select/__tests__/Select.visual.test.tsx b/src/components/Select/__tests__/Select.visual.test.tsx deleted file mode 100644 index 5ef9a5e027..0000000000 --- a/src/components/Select/__tests__/Select.visual.test.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from 'react'; - -import {test} from '~playwright/core'; - -import {Select} from '../index'; -import type {SelectOption} from '../index'; - -test.describe('Select', {tag: '@Select'}, () => { - test('control-with-parent-flex-basis-0', async ({mount, expectScreenshot}) => { - const options: SelectOption[] = [{value: '1', content: 'Value 1'}]; - await mount( -
-
-