Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tabs): add new tabs components #2002

Open
wants to merge 5 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
/src/components/Stories @DarkGenius
/src/components/Switch @zamkovskaya
/src/components/Table @Raubzeug
/src/components/Tabs @sofiushko
/src/components/tabs @sofiushko
/src/components/Text @IsaevAlexandr
/src/components/TreeList @IsaevAlexandr
/src/components/TreeSelect @IsaevAlexandr
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@
"default": "./build/cjs/unstable.js"
}
},
"./deprecated": {
korvin89 marked this conversation as resolved.
Show resolved Hide resolved
"types": "./build/esm/deprecated.d.ts",
"require": "./build/cjs/deprecated.js",
"import": "./build/esm/deprecated.js"
},
"./server": {
"import": {
"types": "./build/esm/server.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export * from './Spin';
export * from './Switch';
export * from './Table';
export * from './TableColumnSetup';
export * from './Tabs';
export * from './tabs';
export * from './Text';
export * from './Toaster';
export * from './Toc';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<!--/GITHUB_BLOCK-->

```tsx
import {Tabs} from '@gravity-ui/uikit';
import {deprecated_Tabs as Tabs} from '@gravity-ui/uikit/deprecated';
korvin89 marked this conversation as resolved.
Show resolved Hide resolved
```

The `Tabs` component is used to explore and organize content, as well as to switch across various views.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use '../variables';
@use '../../../styles/mixins';
@use '../../variables';
@use '../../../../styles/mixins';

$block: '.#{variables.$ns}tabs';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

import * as React from 'react';

import type {AriaLabelingProps, QAProps} from '../types';
import {block} from '../utils/cn';
import {filterDOMProps} from '../utils/filterDOMProps';
import type {AriaLabelingProps, QAProps} from '../../types';
import {block} from '../../utils/cn';
import {filterDOMProps} from '../../utils/filterDOMProps';

import {TabsContext} from './TabsContext';
import {TabsItem} from './TabsItem';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import * as React from 'react';

import {Label} from '../Label';
import type {LabelProps} from '../Label';
import type {QAProps} from '../types';
import {block} from '../utils/cn';
import {Label} from '../../Label';
import type {LabelProps} from '../../Label';
import type {QAProps} from '../../types';
import {block} from '../../utils/cn';

import {TabsContext} from './TabsContext';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {getTabsMock} from './getTabsMock';
import type {StoryParams} from './types';

const meta: Meta<typeof Tabs> = {
title: 'Components/Navigation/Tabs',
title: 'Deprecated/Tabs',
component: Tabs,
args: {
direction: TabsDirection.Horizontal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type * as React from 'react';

import userEvent from '@testing-library/user-event';

import {render, screen} from '../../../../test-utils/utils';
import {render, screen} from '../../../../../test-utils/utils';
import {Tabs, TabsDirection} from '../Tabs';
import type {TabsItemProps, TabsSize} from '../Tabs';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {smokeTest, test} from '~playwright/core';

import {createSmokeScenarios} from '../../../stories/tests-factory/create-smoke-scenarios';
import {createSmokeScenarios} from '../../../../stories/tests-factory/create-smoke-scenarios';
import type {TabsProps} from '../Tabs';

import {directionCases, sizeCases} from './cases';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Flame} from '@gravity-ui/icons';
import userEvent from '@testing-library/user-event';

import {render, screen} from '../../../../test-utils/utils';
import {render, screen} from '../../../../../test-utils/utils';
import {TabsItem} from '../TabsItem';

const tabId = 'tab-id';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {Cases} from '../../../stories/tests-factory/models';
import type {Cases} from '../../../../stories/tests-factory/models';
import type {TabsProps} from '../Tabs';
import {TabsDirection} from '../Tabs';

Expand Down
File renamed without changes.
Loading
Loading