Skip to content

Commit

Permalink
feat!: move to uikit 6 (#419)
Browse files Browse the repository at this point in the history
* feat!: move to uikit 6

* feat!: move to date-utils 2

* docs: remove documentation

* chore: update prettier configs

* chore: lint & prettier fixes

* fix: remove redundand d3-shape pkg

* fix: fix yagr styles import
  • Loading branch information
korvin89 authored Feb 13, 2024
1 parent 0dfb616 commit ea981f6
Show file tree
Hide file tree
Showing 248 changed files with 4,928 additions and 21,270 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
build
node_modules
src/i18n/keysets
documentation/babel.config.js
test-utils
tests
jest.config.js
11 changes: 9 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@
"extends": [
"@gravity-ui/eslint-config",
"@gravity-ui/eslint-config/client",
"@gravity-ui/eslint-config/prettier"
"@gravity-ui/eslint-config/prettier",
"@gravity-ui/eslint-config/import-order"
],
"rules": {
"valid-jsdoc": 0
},
"root": true
"root": true,
"overrides": [{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"project": ["./tsconfig.json"]
}
}]
}
22 changes: 0 additions & 22 deletions .github/workflows/docs-deploy-test.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/docs-deploy.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/release-v4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Release V4

on:
push:
branches: [v4]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: gravity-ui/release-action@v1
with:
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
node-version: 18
default-branch: v4
npm-dist-tag: untagged
skip-github-release: true
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
storybook-static
build
CHANGELOG.md
CONTRIBUTING.md
package-lock.json
20 changes: 9 additions & 11 deletions .storybook/decorators/withMobile.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import React from 'react';
import type {DecoratorFn} from '@storybook/react';
import {useMobile} from '@gravity-ui/uikit';
import type {Decorator} from '@storybook/react';
import {MobileProvider} from '@gravity-ui/uikit';

export const withMobile: DecoratorFn = (Story, context) => {
const mobileValue = context.globals.platform === 'mobile';
export const withMobile: Decorator = (Story, context) => {
const platform = context.globals.platform;

const [, setMobile] = useMobile(); // eslint-disable-line react-hooks/rules-of-hooks

React.useEffect(() => {
setMobile(mobileValue);
}, [mobileValue]);

return <Story {...context} />;
return (
<MobileProvider mobile={platform === 'mobile'} platform={platform}>
<Story key={platform} {...context} />
</MobileProvider>
);
};
21 changes: 8 additions & 13 deletions .storybook/decorators/withTheme.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import React from 'react';
import type {DecoratorFn} from '@storybook/react';
import {useTheme} from '@gravity-ui/uikit';
import type {Decorator} from '@storybook/react';
import {ThemeProvider} from '@gravity-ui/uikit';

export const withTheme: DecoratorFn = (Story, context) => {
const themeValue = context.globals.theme;
const [theme, setTheme] = useTheme();

React.useEffect(() => {
if (theme !== themeValue) {
setTheme(themeValue);
}
}, [theme, themeValue, setTheme]);

return <Story {...context} />;
export const WithTheme: Decorator = (Story, context) => {
return (
<ThemeProvider theme={context.globals.theme} direction={context.globals.direction}>
<Story {...context} />
</ThemeProvider>
);
};
13 changes: 0 additions & 13 deletions documentation/.editorconfig

This file was deleted.

16 changes: 0 additions & 16 deletions documentation/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion documentation/.npmrc

This file was deleted.

26 changes: 0 additions & 26 deletions documentation/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions documentation/babel.config.js

This file was deleted.

13 changes: 0 additions & 13 deletions documentation/docs/about.md

This file was deleted.

142 changes: 0 additions & 142 deletions documentation/docs/get-started.mdx

This file was deleted.

6 changes: 0 additions & 6 deletions documentation/docs/plugins/_category_.json

This file was deleted.

Loading

0 comments on commit ea981f6

Please sign in to comment.