diff --git a/.github/workflows/upgrade-sandbox-packages.yml b/.github/workflows/upgrade-sandbox-packages.yml new file mode 100644 index 000000000000..3c3a5c43911d --- /dev/null +++ b/.github/workflows/upgrade-sandbox-packages.yml @@ -0,0 +1,33 @@ +name: Upgrade sandbox packages + +on: + workflow_dispatch: + schedule: + - cron: 0 12 * * 1 + +jobs: + upgrade: + permissions: + pull-requests: write + contents: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - name: Upgrade sandbox packages + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + npm i @gravity-ui/uikit@latest @gravity-ui/components@latest @gravity-ui/date-components@latest @gravity-ui/icons + git config user.email "" + git config user.name "Upgrade sandbox packages action" + git checkout -b upgrade-sandbox-packages + git add package.json package-lock.json + export COMMIT_MESSAGE="chore(sandbox): upgrade sandbox packages" + git commit -m "$COMMIT_MESSAGE" + git push --set-upstream origin upgrade-sandbox-packages --force + gh pr create --title "$COMMIT_MESSAGE" --body "" -a "imsitnikov" -a "amje" -a "korvin89" || gh pr edit --title "$COMMIT_MESSAGE" --body "" diff --git a/package-lock.json b/package-lock.json index eaf503119263..870e43b9782c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,9 +11,9 @@ "@diplodoc/transform": "^4.11.0", "@gravity-ui/components": "^3.0.0", "@gravity-ui/date-components": "^2.0.1", - "@gravity-ui/icons": "^2.8.1", + "@gravity-ui/icons": "^2.10.0", "@gravity-ui/page-constructor": "^5.2.0", - "@gravity-ui/uikit": "^6.17.0", + "@gravity-ui/uikit": "^6.20.0", "@mdx-js/mdx": "^2.3.0", "@mdx-js/react": "^2.3.0", "@octokit/rest": "^20.1.1", @@ -24,6 +24,8 @@ "husky": "^8.0.3", "i18next": "^23.8.3", "javascript-time-ago": "^2.5.9", + "landing-icons": "npm:@gravity-ui/icons@^2.8.1", + "landing-uikit": "npm:@gravity-ui/uikit@^6.17.0", "lint-staged": "^14.0.1", "lodash": "^4.17.21", "micromatch": "^4.0.7", @@ -2315,9 +2317,9 @@ } }, "node_modules/@gravity-ui/date-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@gravity-ui/date-utils/-/date-utils-2.1.0.tgz", - "integrity": "sha512-f7PsINb3/Q4gDDNZnZkE5SjDQqCba6NKa1e4W6976Zc7MkJ8fNTDnhC8sQP3Xpgme/yXAOx6U1rAJiijFaJY9Q==", + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/@gravity-ui/date-utils/-/date-utils-2.5.3.tgz", + "integrity": "sha512-WetzttqlW454yGsh/LBo0AxuqIFT0erENCMYAfemhu6qLiuqy35NdDGP6VA4iDkWiSPFuQ1sRoVU8tC+OwiPEg==", "dependencies": { "dayjs": "1.11.10", "lodash": "^4.17.0" @@ -2371,9 +2373,17 @@ "integrity": "sha512-xrTl0vq6L06RpsT+u5Kq5fuH5kuKT5R88lo79+9HYLtS/dPseFzw0qnN+a4q/6Rlu9ZKxtZaIv7dTQxH1/ozlQ==" }, "node_modules/@gravity-ui/icons": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/@gravity-ui/icons/-/icons-2.8.1.tgz", - "integrity": "sha512-cldaFAN3W2OAzEZBiurD7RsqyqGhS7xoVS9TC4DrOG9bXy8dWUvNEeeOnKgpIvZgAGFlTmg01BK6jMH0IFFSPw==" + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/@gravity-ui/icons/-/icons-2.10.0.tgz", + "integrity": "sha512-xS0G4+TM7cD2cCKS4wVc01c4lLe/OreKjm4sHwrOtJWH4EawaRbpkuwtgUDcUvY2EryIcI6lgV+8o714m6lcyQ==", + "peerDependencies": { + "react": "*" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + } + } }, "node_modules/@gravity-ui/page-constructor": { "version": "5.2.0", @@ -2474,9 +2484,9 @@ "dev": true }, "node_modules/@gravity-ui/uikit": { - "version": "6.17.0", - "resolved": "https://registry.npmjs.org/@gravity-ui/uikit/-/uikit-6.17.0.tgz", - "integrity": "sha512-aelbGQh0DxgZ/b3hbjZNBPc417mmoL4P5vq6yYOvUol/4GKimofgs7kOB2IjIVOAaEYivGgoVjmLQxREJfM15A==", + "version": "6.20.0", + "resolved": "https://registry.npmjs.org/@gravity-ui/uikit/-/uikit-6.20.0.tgz", + "integrity": "sha512-ngeFZH0CgF+6cNwWTrtwecYkb1Rb7TWFg3eUg87TGLvXiEemepJuwLvM4t9WX3yZFzFCzIoHML2h/SM6VXhjyQ==", "dependencies": { "@bem-react/classname": "^1.6.0", "@gravity-ui/i18n": "^1.3.0", @@ -8470,6 +8480,40 @@ "integrity": "sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg==", "dev": true }, + "node_modules/landing-icons": { + "name": "@gravity-ui/icons", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/@gravity-ui/icons/-/icons-2.8.1.tgz", + "integrity": "sha512-cldaFAN3W2OAzEZBiurD7RsqyqGhS7xoVS9TC4DrOG9bXy8dWUvNEeeOnKgpIvZgAGFlTmg01BK6jMH0IFFSPw==" + }, + "node_modules/landing-uikit": { + "name": "@gravity-ui/uikit", + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/@gravity-ui/uikit/-/uikit-6.17.0.tgz", + "integrity": "sha512-aelbGQh0DxgZ/b3hbjZNBPc417mmoL4P5vq6yYOvUol/4GKimofgs7kOB2IjIVOAaEYivGgoVjmLQxREJfM15A==", + "dependencies": { + "@bem-react/classname": "^1.6.0", + "@gravity-ui/i18n": "^1.3.0", + "@gravity-ui/icons": "^2.8.1", + "@popperjs/core": "^2.11.8", + "blueimp-md5": "^2.19.0", + "focus-trap": "^7.5.4", + "lodash": "^4.17.21", + "rc-slider": "^10.5.0", + "react-beautiful-dnd": "^13.1.1", + "react-copy-to-clipboard": "^5.1.0", + "react-popper": "^2.3.0", + "react-transition-group": "^4.4.5", + "react-virtualized-auto-sizer": "^1.0.21", + "react-window": "^1.8.10", + "tabbable": "^6.2.0", + "tslib": "^2.6.2" + }, + "peerDependencies": { + "react": "^16.0.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/levn": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", diff --git a/package.json b/package.json index a0988c0518e0..4c2761835d34 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,9 @@ "@diplodoc/transform": "^4.11.0", "@gravity-ui/components": "^3.0.0", "@gravity-ui/date-components": "^2.0.1", - "@gravity-ui/icons": "^2.8.1", + "@gravity-ui/icons": "^2.10.0", "@gravity-ui/page-constructor": "^5.2.0", - "@gravity-ui/uikit": "^6.17.0", + "@gravity-ui/uikit": "^6.20.0", "@mdx-js/mdx": "^2.3.0", "@mdx-js/react": "^2.3.0", "@octokit/rest": "^20.1.1", @@ -20,6 +20,8 @@ "husky": "^8.0.3", "i18next": "^23.8.3", "javascript-time-ago": "^2.5.9", + "landing-icons": "npm:@gravity-ui/icons@^2.8.1", + "landing-uikit": "npm:@gravity-ui/uikit@^6.17.0", "lint-staged": "^14.0.1", "lodash": "^4.17.21", "micromatch": "^4.0.7", diff --git a/src/blocks/Contributors/Contributors.tsx b/src/blocks/Contributors/Contributors.tsx index f4060a1a7900..604ab41486b1 100644 --- a/src/blocks/Contributors/Contributors.tsx +++ b/src/blocks/Contributors/Contributors.tsx @@ -1,5 +1,5 @@ import {Animatable, AnimateBlock, HTML} from '@gravity-ui/page-constructor'; -import {Button} from '@gravity-ui/uikit'; +import {Button} from 'landing-uikit'; import React from 'react'; import {ExpandableContributorList} from '../../components/ExpandableContributorList'; diff --git a/src/blocks/CustomExtendedFeatures/components/FeatureItem/FeatureItem.tsx b/src/blocks/CustomExtendedFeatures/components/FeatureItem/FeatureItem.tsx index cc460d09f43a..40f12e3e1388 100644 --- a/src/blocks/CustomExtendedFeatures/components/FeatureItem/FeatureItem.tsx +++ b/src/blocks/CustomExtendedFeatures/components/FeatureItem/FeatureItem.tsx @@ -1,5 +1,5 @@ import {HTML, Image, ThemedImage, useTheme} from '@gravity-ui/page-constructor'; -import {Icon} from '@gravity-ui/uikit'; +import {Icon} from 'landing-uikit'; import Link from 'next/link'; import React from 'react'; diff --git a/src/blocks/CustomHeader/CustomHeader.tsx b/src/blocks/CustomHeader/CustomHeader.tsx index cc0b51359119..258d7a13f9fb 100644 --- a/src/blocks/CustomHeader/CustomHeader.tsx +++ b/src/blocks/CustomHeader/CustomHeader.tsx @@ -1,6 +1,6 @@ import {Animatable, AnimateBlock, Col, Grid, HTML, Row} from '@gravity-ui/page-constructor'; -import {Button, ButtonProps, Icon} from '@gravity-ui/uikit'; import {SVGIconData} from '@gravity-ui/uikit/build/esm/components/Icon/types'; +import {Button, ButtonProps, Icon} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; import ReactTimeAgo from 'react-time-ago'; diff --git a/src/blocks/Examples/Examples.tsx b/src/blocks/Examples/Examples.tsx index 9dd3f7cf480f..92806cd3107a 100644 --- a/src/blocks/Examples/Examples.tsx +++ b/src/blocks/Examples/Examples.tsx @@ -1,5 +1,5 @@ import {Animatable, AnimateBlock, HTML} from '@gravity-ui/page-constructor'; -import {Button, Icon, RadioButton, Select, SelectOption, Theme} from '@gravity-ui/uikit'; +import {Button, Icon, RadioButton, Select, SelectOption, Theme} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/blocks/Examples/components/Showcase/Showcase.tsx b/src/blocks/Examples/components/Showcase/Showcase.tsx index fd9b4563084e..eb2210fbf5d9 100644 --- a/src/blocks/Examples/components/Showcase/Showcase.tsx +++ b/src/blocks/Examples/components/Showcase/Showcase.tsx @@ -14,7 +14,7 @@ import { Theme, ThemeProvider, withTableSelection, -} from '@gravity-ui/uikit'; +} from 'landing-uikit'; import React from 'react'; import avatar1Asset from '../../../../assets/avatar-1.png'; diff --git a/src/blocks/GithubStarsBlock/GithubStarsBlock.tsx b/src/blocks/GithubStarsBlock/GithubStarsBlock.tsx index a0abd8290112..9e54dabb13b4 100644 --- a/src/blocks/GithubStarsBlock/GithubStarsBlock.tsx +++ b/src/blocks/GithubStarsBlock/GithubStarsBlock.tsx @@ -1,6 +1,6 @@ -import {ChevronRight} from '@gravity-ui/icons'; import {Animatable, HTML} from '@gravity-ui/page-constructor'; -import {Icon, Text} from '@gravity-ui/uikit'; +import {ChevronRight} from 'landing-icons'; +import {Icon, Text} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import {useRouter} from 'next/router'; import React, {useEffect, useState} from 'react'; diff --git a/src/components/ArticleNavigation/ArticleNavigation.tsx b/src/components/ArticleNavigation/ArticleNavigation.tsx index fe5a378cdd90..1b84ef05cfdc 100644 --- a/src/components/ArticleNavigation/ArticleNavigation.tsx +++ b/src/components/ArticleNavigation/ArticleNavigation.tsx @@ -1,5 +1,5 @@ -import {ArrowLeft, ArrowRight} from '@gravity-ui/icons'; -import {Flex, Icon, Text} from '@gravity-ui/uikit'; +import {ArrowLeft, ArrowRight} from 'landing-icons'; +import {Flex, Icon, Text} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; import {CONTENT_WRAPPER_ID} from 'src/constants'; diff --git a/src/components/BaseContributorList/BaseContributorList.tsx b/src/components/BaseContributorList/BaseContributorList.tsx index 25611f44b563..20815f708edd 100644 --- a/src/components/BaseContributorList/BaseContributorList.tsx +++ b/src/components/BaseContributorList/BaseContributorList.tsx @@ -1,4 +1,4 @@ -import {Avatar, AvatarSize, Link} from '@gravity-ui/uikit'; +import {Avatar, AvatarSize, Link} from 'landing-uikit'; import React from 'react'; import {Contributor, block} from '../../utils'; diff --git a/src/components/ClipboardArea/ClipboardArea.tsx b/src/components/ClipboardArea/ClipboardArea.tsx index 67373b944562..b2653065bd7b 100644 --- a/src/components/ClipboardArea/ClipboardArea.tsx +++ b/src/components/ClipboardArea/ClipboardArea.tsx @@ -1,4 +1,4 @@ -import {CopyToClipboard, CopyToClipboardStatus, Popover} from '@gravity-ui/uikit'; +import {CopyToClipboard, CopyToClipboardStatus, Popover} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/components/ClipboardIcon/ClipboardIcon.tsx b/src/components/ClipboardIcon/ClipboardIcon.tsx index 3cfaec34b7ee..ad6311ffe000 100644 --- a/src/components/ClipboardIcon/ClipboardIcon.tsx +++ b/src/components/ClipboardIcon/ClipboardIcon.tsx @@ -1,5 +1,5 @@ -import {Copy, CopyCheck} from '@gravity-ui/icons'; -import {type CopyToClipboardStatus, Icon} from '@gravity-ui/uikit'; +import {Copy, CopyCheck} from 'landing-icons'; +import {type CopyToClipboardStatus, Icon} from 'landing-uikit'; import React from 'react'; import {block} from '../../utils'; diff --git a/src/components/ColorPickerInput/ColorPickerInput.tsx b/src/components/ColorPickerInput/ColorPickerInput.tsx index d42d419eb12e..d3dea9c30fd9 100644 --- a/src/components/ColorPickerInput/ColorPickerInput.tsx +++ b/src/components/ColorPickerInput/ColorPickerInput.tsx @@ -1,5 +1,5 @@ -import {Palette} from '@gravity-ui/icons'; -import {Button, Flex, Icon, TextInput, TextInputProps} from '@gravity-ui/uikit'; +import {Palette} from 'landing-icons'; +import {Button, Flex, Icon, TextInput, TextInputProps} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React, {ChangeEventHandler, useCallback, useRef, useState} from 'react'; diff --git a/src/components/Component/Component.tsx b/src/components/Component/Component.tsx index 9ba4541fe635..838412e49efb 100644 --- a/src/components/Component/Component.tsx +++ b/src/components/Component/Component.tsx @@ -1,4 +1,4 @@ -import {Button, Icon, Tabs} from '@gravity-ui/uikit'; +import {Button, Icon, Tabs} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import {useRouter} from 'next/router'; import React from 'react'; diff --git a/src/components/ComponentsLibrary/ComponentsLibrary.tsx b/src/components/ComponentsLibrary/ComponentsLibrary.tsx index ccbb46e30274..8805eef03c41 100644 --- a/src/components/ComponentsLibrary/ComponentsLibrary.tsx +++ b/src/components/ComponentsLibrary/ComponentsLibrary.tsx @@ -1,5 +1,5 @@ import {Col, Grid, Row} from '@gravity-ui/page-constructor'; -import {Icon} from '@gravity-ui/uikit'; +import {Icon} from 'landing-uikit'; import {useRouter} from 'next/router'; import React from 'react'; diff --git a/src/components/ContributorList/ContributorList.tsx b/src/components/ContributorList/ContributorList.tsx index 780949b2ce71..88e3c73218a2 100644 --- a/src/components/ContributorList/ContributorList.tsx +++ b/src/components/ContributorList/ContributorList.tsx @@ -1,4 +1,4 @@ -import {Button} from '@gravity-ui/uikit'; +import {Button} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/components/ExpandableContributorList/ExpandableContributorList.tsx b/src/components/ExpandableContributorList/ExpandableContributorList.tsx index 9669b0c64bc5..4232ace5d2e2 100644 --- a/src/components/ExpandableContributorList/ExpandableContributorList.tsx +++ b/src/components/ExpandableContributorList/ExpandableContributorList.tsx @@ -1,4 +1,4 @@ -import {Button} from '@gravity-ui/uikit'; +import {Button} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React, {useState} from 'react'; diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx index d4168cda7825..7d0feebabec4 100644 --- a/src/components/Footer/Footer.tsx +++ b/src/components/Footer/Footer.tsx @@ -1,5 +1,5 @@ import {Col, Grid, Row} from '@gravity-ui/page-constructor'; -import {Icon} from '@gravity-ui/uikit'; +import {Icon} from 'landing-uikit'; import React from 'react'; import linkArrowIcon from '../../assets/icons/link-arrow.svg'; diff --git a/src/components/HeaderMaintainerList/HeaderMaintainerList.tsx b/src/components/HeaderMaintainerList/HeaderMaintainerList.tsx index 97274279b27f..49b8883af435 100644 --- a/src/components/HeaderMaintainerList/HeaderMaintainerList.tsx +++ b/src/components/HeaderMaintainerList/HeaderMaintainerList.tsx @@ -1,4 +1,4 @@ -import {Avatar, Link} from '@gravity-ui/uikit'; +import {Avatar, Link} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import {Contributor, block} from '../../utils'; diff --git a/src/components/Icons/IconCollection/IconButton/IconButton.tsx b/src/components/Icons/IconCollection/IconButton/IconButton.tsx index 7b3e88cd8638..9c7b23b4a8f3 100644 --- a/src/components/Icons/IconCollection/IconButton/IconButton.tsx +++ b/src/components/Icons/IconCollection/IconButton/IconButton.tsx @@ -1,4 +1,4 @@ -import {Button, Icon} from '@gravity-ui/uikit'; +import {Button, Icon} from 'landing-uikit'; import React from 'react'; import {block} from '../../../../utils'; diff --git a/src/components/Icons/IconDialog/IconContent/IconContent.tsx b/src/components/Icons/IconDialog/IconContent/IconContent.tsx index fbe57efa549d..1d2224c8eaa0 100644 --- a/src/components/Icons/IconDialog/IconContent/IconContent.tsx +++ b/src/components/Icons/IconDialog/IconContent/IconContent.tsx @@ -1,4 +1,4 @@ -import {Icon} from '@gravity-ui/uikit'; +import {Icon} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/components/Icons/IconDialog/IconDialog.tsx b/src/components/Icons/IconDialog/IconDialog.tsx index a69970ad6a84..eebb6751c23a 100644 --- a/src/components/Icons/IconDialog/IconDialog.tsx +++ b/src/components/Icons/IconDialog/IconDialog.tsx @@ -1,4 +1,4 @@ -import {Dialog, Sheet} from '@gravity-ui/uikit'; +import {Dialog, Sheet} from 'landing-uikit'; import React from 'react'; import {useIsMobile} from '../../../hooks/useIsMobile'; diff --git a/src/components/Icons/IconDialog/IconDialogActions/IconDialogActions.tsx b/src/components/Icons/IconDialog/IconDialogActions/IconDialogActions.tsx index ac439c3295e9..44701c1e6c4c 100644 --- a/src/components/Icons/IconDialog/IconDialogActions/IconDialogActions.tsx +++ b/src/components/Icons/IconDialog/IconDialogActions/IconDialogActions.tsx @@ -1,5 +1,5 @@ -import {ArrowDownToLine, ArrowShapeTurnUpRight, Check, Link} from '@gravity-ui/icons'; -import {Button, CopyToClipboard, Icon} from '@gravity-ui/uikit'; +import {ArrowDownToLine, ArrowShapeTurnUpRight, Check, Link} from 'landing-icons'; +import {Button, CopyToClipboard, Icon} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/components/Icons/Icons.tsx b/src/components/Icons/Icons.tsx index 03968bce8833..e058aa5b4301 100644 --- a/src/components/Icons/Icons.tsx +++ b/src/components/Icons/Icons.tsx @@ -1,6 +1,6 @@ -import {ArrowUpRightFromSquare, Magnifier} from '@gravity-ui/icons'; import {Col, Grid, Row} from '@gravity-ui/page-constructor'; -import {Button, Icon, TextInput} from '@gravity-ui/uikit'; +import {ArrowUpRightFromSquare, Magnifier} from 'landing-icons'; +import {Button, Icon, TextInput} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/components/Icons/types.ts b/src/components/Icons/types.ts index 4f3e4724eeb3..cd365043d7a8 100644 --- a/src/components/Icons/types.ts +++ b/src/components/Icons/types.ts @@ -1,4 +1,4 @@ -import type {IconProps} from '@gravity-ui/uikit'; +import type {IconProps} from 'landing-uikit'; export type IconMeta = { name: string; diff --git a/src/components/Interactive/Interactive.tsx b/src/components/Interactive/Interactive.tsx index 40c5946fd9fb..48b4383124e1 100644 --- a/src/components/Interactive/Interactive.tsx +++ b/src/components/Interactive/Interactive.tsx @@ -1,4 +1,4 @@ -import {Theme} from '@gravity-ui/uikit'; +import {Theme} from 'landing-uikit'; import React from 'react'; import 'swiper/css'; import {Autoplay, EffectCreative} from 'swiper/modules'; diff --git a/src/components/Interactive/InteractiveContext/InteractiveContext.ts b/src/components/Interactive/InteractiveContext/InteractiveContext.ts index f06e5a442764..9f145f6925de 100644 --- a/src/components/Interactive/InteractiveContext/InteractiveContext.ts +++ b/src/components/Interactive/InteractiveContext/InteractiveContext.ts @@ -1,4 +1,4 @@ -import {Theme} from '@gravity-ui/uikit'; +import {Theme} from 'landing-uikit'; import React from 'react'; import {ColorTheme} from '../constants'; diff --git a/src/components/Interactive/Settings/Settings.tsx b/src/components/Interactive/Settings/Settings.tsx index 1382bfb8f0fd..cea2a01474a4 100644 --- a/src/components/Interactive/Settings/Settings.tsx +++ b/src/components/Interactive/Settings/Settings.tsx @@ -1,5 +1,5 @@ -import {HandPointUp, Moon, Sun} from '@gravity-ui/icons'; -import {Icon} from '@gravity-ui/uikit'; +import {HandPointUp, Moon, Sun} from 'landing-icons'; +import {Icon} from 'landing-uikit'; import React from 'react'; import {block} from '../../../utils'; diff --git a/src/components/Interactive/components/AlertCard/AlertCard.tsx b/src/components/Interactive/components/AlertCard/AlertCard.tsx index 59aed129cad5..d822028eb336 100644 --- a/src/components/Interactive/components/AlertCard/AlertCard.tsx +++ b/src/components/Interactive/components/AlertCard/AlertCard.tsx @@ -1,4 +1,4 @@ -import {Alert, AlertProps, Button} from '@gravity-ui/uikit'; +import {Alert, AlertProps, Button} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/BreadcrumbsCard/BreadcrumbsCard.tsx b/src/components/Interactive/components/BreadcrumbsCard/BreadcrumbsCard.tsx index 7ead6d6efb26..79fc743e9adb 100644 --- a/src/components/Interactive/components/BreadcrumbsCard/BreadcrumbsCard.tsx +++ b/src/components/Interactive/components/BreadcrumbsCard/BreadcrumbsCard.tsx @@ -1,4 +1,4 @@ -import {Breadcrumbs, Flex} from '@gravity-ui/uikit'; +import {Breadcrumbs, Flex} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/ButtonsCard/ButtonsCard.tsx b/src/components/Interactive/components/ButtonsCard/ButtonsCard.tsx index 0be370ec72a6..3c4214327587 100644 --- a/src/components/Interactive/components/ButtonsCard/ButtonsCard.tsx +++ b/src/components/Interactive/components/ButtonsCard/ButtonsCard.tsx @@ -1,4 +1,4 @@ -import {Button, Col, Flex, Row} from '@gravity-ui/uikit'; +import {Button, Col, Flex, Row} from 'landing-uikit'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/CheckboxCard/CheckboxCard.tsx b/src/components/Interactive/components/CheckboxCard/CheckboxCard.tsx index 324338b404fc..1cc35532a500 100644 --- a/src/components/Interactive/components/CheckboxCard/CheckboxCard.tsx +++ b/src/components/Interactive/components/CheckboxCard/CheckboxCard.tsx @@ -1,4 +1,4 @@ -import {Checkbox, Flex} from '@gravity-ui/uikit'; +import {Checkbox, Flex} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/IconsPromoCard/IconsPromoCard.tsx b/src/components/Interactive/components/IconsPromoCard/IconsPromoCard.tsx index 3599694eae71..6b56d600f73f 100644 --- a/src/components/Interactive/components/IconsPromoCard/IconsPromoCard.tsx +++ b/src/components/Interactive/components/IconsPromoCard/IconsPromoCard.tsx @@ -9,8 +9,8 @@ import { Person, ThumbsUp, Volume, -} from '@gravity-ui/icons'; -import {Col, Flex, Icon, Row} from '@gravity-ui/uikit'; +} from 'landing-icons'; +import {Col, Flex, Icon, Row} from 'landing-uikit'; import {block} from '../../../../utils'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/InputCard/InputCard.tsx b/src/components/Interactive/components/InputCard/InputCard.tsx index 439b4cebd47e..1302dd6465a1 100644 --- a/src/components/Interactive/components/InputCard/InputCard.tsx +++ b/src/components/Interactive/components/InputCard/InputCard.tsx @@ -1,4 +1,4 @@ -import {TextInput} from '@gravity-ui/uikit'; +import {TextInput} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/InteractiveCard/InteractiveCard.tsx b/src/components/Interactive/components/InteractiveCard/InteractiveCard.tsx index 992bdf732bec..c2e0bd54ec2e 100644 --- a/src/components/Interactive/components/InteractiveCard/InteractiveCard.tsx +++ b/src/components/Interactive/components/InteractiveCard/InteractiveCard.tsx @@ -1,4 +1,4 @@ -import {Theme, ThemeProvider, ToasterComponent, ToasterProvider} from '@gravity-ui/uikit'; +import {Theme, ThemeProvider, ToasterComponent, ToasterProvider} from 'landing-uikit'; import React from 'react'; import {block} from '../../../../utils'; diff --git a/src/components/Interactive/components/LabelsCard/LabelsCard.tsx b/src/components/Interactive/components/LabelsCard/LabelsCard.tsx index 5fcd953c39d0..b3feeed5f68d 100644 --- a/src/components/Interactive/components/LabelsCard/LabelsCard.tsx +++ b/src/components/Interactive/components/LabelsCard/LabelsCard.tsx @@ -1,5 +1,5 @@ -import {ArrowDown, ArrowLeft, ArrowRight, ArrowUp} from '@gravity-ui/icons'; -import {Flex, Icon, Label} from '@gravity-ui/uikit'; +import {ArrowDown, ArrowLeft, ArrowRight, ArrowUp} from 'landing-icons'; +import {Flex, Icon, Label} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/ListCard/ListCard.tsx b/src/components/Interactive/components/ListCard/ListCard.tsx index 0508efebe175..fd17aab4b6c5 100644 --- a/src/components/Interactive/components/ListCard/ListCard.tsx +++ b/src/components/Interactive/components/ListCard/ListCard.tsx @@ -1,4 +1,4 @@ -import {List} from '@gravity-ui/uikit'; +import {List} from 'landing-uikit'; import React from 'react'; import {block} from '../../../../utils'; diff --git a/src/components/Interactive/components/LoaderCard/LoaderCard.tsx b/src/components/Interactive/components/LoaderCard/LoaderCard.tsx index bdbe90738141..fbb1068d0adf 100644 --- a/src/components/Interactive/components/LoaderCard/LoaderCard.tsx +++ b/src/components/Interactive/components/LoaderCard/LoaderCard.tsx @@ -1,4 +1,4 @@ -import {Loader} from '@gravity-ui/uikit'; +import {Loader} from 'landing-uikit'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/MenuCard/MenuCard.tsx b/src/components/Interactive/components/MenuCard/MenuCard.tsx index 5b0c0b44d0b9..d0ed127896a9 100644 --- a/src/components/Interactive/components/MenuCard/MenuCard.tsx +++ b/src/components/Interactive/components/MenuCard/MenuCard.tsx @@ -1,4 +1,4 @@ -import {Menu} from '@gravity-ui/uikit'; +import {Menu} from 'landing-uikit'; import {block} from '../../../../utils'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/PaginationCard/PaginationCard.tsx b/src/components/Interactive/components/PaginationCard/PaginationCard.tsx index 3c5443f8d0eb..8b9538dc0c6a 100644 --- a/src/components/Interactive/components/PaginationCard/PaginationCard.tsx +++ b/src/components/Interactive/components/PaginationCard/PaginationCard.tsx @@ -1,4 +1,4 @@ -import {Pagination} from '@gravity-ui/uikit'; +import {Pagination} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/PopupCard/PopupCard.tsx b/src/components/Interactive/components/PopupCard/PopupCard.tsx index 92a28d6c5e2d..ad2013c4318f 100644 --- a/src/components/Interactive/components/PopupCard/PopupCard.tsx +++ b/src/components/Interactive/components/PopupCard/PopupCard.tsx @@ -1,4 +1,4 @@ -import {Popup} from '@gravity-ui/uikit'; +import {Popup} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/ProgressCard/ProgressCard.tsx b/src/components/Interactive/components/ProgressCard/ProgressCard.tsx index cb913b750695..27a4248abdcf 100644 --- a/src/components/Interactive/components/ProgressCard/ProgressCard.tsx +++ b/src/components/Interactive/components/ProgressCard/ProgressCard.tsx @@ -1,4 +1,4 @@ -import {Flex, Progress} from '@gravity-ui/uikit'; +import {Flex, Progress} from 'landing-uikit'; import React from 'react'; import {block} from '../../../../utils'; diff --git a/src/components/Interactive/components/RadioCard/RadioCard.tsx b/src/components/Interactive/components/RadioCard/RadioCard.tsx index caea7e7d39b2..9c91b1559329 100644 --- a/src/components/Interactive/components/RadioCard/RadioCard.tsx +++ b/src/components/Interactive/components/RadioCard/RadioCard.tsx @@ -1,4 +1,4 @@ -import {RadioGroup, RadioGroupOption} from '@gravity-ui/uikit'; +import {RadioGroup, RadioGroupOption} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/SegmentCard/SegmentCard.tsx b/src/components/Interactive/components/SegmentCard/SegmentCard.tsx index e6ae8e28a797..7fdeb6bcc816 100644 --- a/src/components/Interactive/components/SegmentCard/SegmentCard.tsx +++ b/src/components/Interactive/components/SegmentCard/SegmentCard.tsx @@ -1,4 +1,4 @@ -import {RadioButton, RadioButtonOption} from '@gravity-ui/uikit'; +import {RadioButton, RadioButtonOption} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/SkeletonCard/SkeletonCard.tsx b/src/components/Interactive/components/SkeletonCard/SkeletonCard.tsx index bc67fd777140..308d6d9c0570 100644 --- a/src/components/Interactive/components/SkeletonCard/SkeletonCard.tsx +++ b/src/components/Interactive/components/SkeletonCard/SkeletonCard.tsx @@ -1,4 +1,4 @@ -import {Flex, Skeleton} from '@gravity-ui/uikit'; +import {Flex, Skeleton} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/SpinnerCard/SpinnerCard.tsx b/src/components/Interactive/components/SpinnerCard/SpinnerCard.tsx index 124c50efcb46..154ad4733e2b 100644 --- a/src/components/Interactive/components/SpinnerCard/SpinnerCard.tsx +++ b/src/components/Interactive/components/SpinnerCard/SpinnerCard.tsx @@ -1,4 +1,4 @@ -import {Spin} from '@gravity-ui/uikit'; +import {Spin} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/SwitchCard/SwitchCard.tsx b/src/components/Interactive/components/SwitchCard/SwitchCard.tsx index e79a5122f24c..ab451b2c9a5e 100644 --- a/src/components/Interactive/components/SwitchCard/SwitchCard.tsx +++ b/src/components/Interactive/components/SwitchCard/SwitchCard.tsx @@ -1,4 +1,4 @@ -import {Flex, Switch} from '@gravity-ui/uikit'; +import {Flex, Switch} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/TableCard/TableCard.tsx b/src/components/Interactive/components/TableCard/TableCard.tsx index f0f16d94a3fc..054549e23327 100644 --- a/src/components/Interactive/components/TableCard/TableCard.tsx +++ b/src/components/Interactive/components/TableCard/TableCard.tsx @@ -1,5 +1,5 @@ -import {Gear, Star, StarFill} from '@gravity-ui/icons'; -import {Button, Checkbox, Icon, Table, TableColumnConfig} from '@gravity-ui/uikit'; +import {Gear, Star, StarFill} from 'landing-icons'; +import {Button, Checkbox, Icon, Table, TableColumnConfig} from 'landing-uikit'; import React from 'react'; import avatar1Asset from '../../../../assets/avatar-1.png'; diff --git a/src/components/Interactive/components/TabsCard/TabsCard.tsx b/src/components/Interactive/components/TabsCard/TabsCard.tsx index c6c20f15dc92..8eed5bddf872 100644 --- a/src/components/Interactive/components/TabsCard/TabsCard.tsx +++ b/src/components/Interactive/components/TabsCard/TabsCard.tsx @@ -1,4 +1,4 @@ -import {Tabs} from '@gravity-ui/uikit'; +import {Tabs} from 'landing-uikit'; import React from 'react'; import {InteractiveCard} from '../InteractiveCard'; diff --git a/src/components/Interactive/components/ToastersCard/ToastersCard.tsx b/src/components/Interactive/components/ToastersCard/ToastersCard.tsx index cf3d58e65962..afef8e172f0d 100644 --- a/src/components/Interactive/components/ToastersCard/ToastersCard.tsx +++ b/src/components/Interactive/components/ToastersCard/ToastersCard.tsx @@ -1,4 +1,4 @@ -import {useToaster} from '@gravity-ui/uikit'; +import {useToaster} from 'landing-uikit'; import React from 'react'; import {block} from '../../../../utils'; diff --git a/src/components/Interactive/components/UserLabelCard/UserLabelCard.tsx b/src/components/Interactive/components/UserLabelCard/UserLabelCard.tsx index 6648bd279f3e..25d31ebe5b7a 100644 --- a/src/components/Interactive/components/UserLabelCard/UserLabelCard.tsx +++ b/src/components/Interactive/components/UserLabelCard/UserLabelCard.tsx @@ -1,4 +1,4 @@ -import {Flex, UserLabel} from '@gravity-ui/uikit'; +import {Flex, UserLabel} from 'landing-uikit'; import React from 'react'; import avatar1Asset from '../../../../assets/avatar-1.png'; diff --git a/src/components/Layout/Layout.tsx b/src/components/Layout/Layout.tsx index c537e7c17024..dcd3ab3585b1 100644 --- a/src/components/Layout/Layout.tsx +++ b/src/components/Layout/Layout.tsx @@ -1,8 +1,8 @@ import {PageConstructorProvider, Theme as PageConstructorTheme} from '@gravity-ui/page-constructor'; -import {Lang, ThemeProvider, configure as configureUiKit} from '@gravity-ui/uikit'; import TimeAgo from 'javascript-time-ago'; import en from 'javascript-time-ago/locale/en.json'; import ru from 'javascript-time-ago/locale/ru.json'; +import {Lang, ThemeProvider, configure as configureUiKit} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import Head from 'next/head'; import React from 'react'; diff --git a/src/components/Libraries/Libraries.tsx b/src/components/Libraries/Libraries.tsx index c223228271b7..591a8245380d 100644 --- a/src/components/Libraries/Libraries.tsx +++ b/src/components/Libraries/Libraries.tsx @@ -1,5 +1,5 @@ import {Col, Grid, HTML, Row} from '@gravity-ui/page-constructor'; -import {Icon, TextInput} from '@gravity-ui/uikit'; +import {Icon, TextInput} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/components/Library/Library.tsx b/src/components/Library/Library.tsx index a8d0ad9075e0..f62402324c3d 100644 --- a/src/components/Library/Library.tsx +++ b/src/components/Library/Library.tsx @@ -1,5 +1,5 @@ import {Col, Grid, HTML, Row} from '@gravity-ui/page-constructor'; -import {Button, Icon, Tabs} from '@gravity-ui/uikit'; +import {Button, Icon, Tabs} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/components/LibraryVersion/LibraryVersion.tsx b/src/components/LibraryVersion/LibraryVersion.tsx index 8479914176e6..295c34d9d113 100644 --- a/src/components/LibraryVersion/LibraryVersion.tsx +++ b/src/components/LibraryVersion/LibraryVersion.tsx @@ -1,4 +1,4 @@ -import {Card, Text} from '@gravity-ui/uikit'; +import {Card, Text} from 'landing-uikit'; import React, {FC} from 'react'; import {block, getLibVersion} from 'src/utils'; diff --git a/src/components/Menu/LocalePicker/LocalePicker.tsx b/src/components/Menu/LocalePicker/LocalePicker.tsx index 34353b1210ae..de8fe8e39298 100644 --- a/src/components/Menu/LocalePicker/LocalePicker.tsx +++ b/src/components/Menu/LocalePicker/LocalePicker.tsx @@ -1,4 +1,4 @@ -import {RadioButton} from '@gravity-ui/uikit'; +import {RadioButton} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import {useRouter} from 'next/router'; import React from 'react'; diff --git a/src/components/Menu/Menu.tsx b/src/components/Menu/Menu.tsx index 66dc05b95fe4..3722d7a13356 100644 --- a/src/components/Menu/Menu.tsx +++ b/src/components/Menu/Menu.tsx @@ -1,5 +1,5 @@ import {Col, Grid, Row} from '@gravity-ui/page-constructor'; -import {Icon} from '@gravity-ui/uikit'; +import {Icon} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import {useRouter} from 'next/router'; import React from 'react'; diff --git a/src/components/NavigationLayout/Navigation/Navigation.tsx b/src/components/NavigationLayout/Navigation/Navigation.tsx index 1073c6238332..90763409eabe 100644 --- a/src/components/NavigationLayout/Navigation/Navigation.tsx +++ b/src/components/NavigationLayout/Navigation/Navigation.tsx @@ -1,4 +1,4 @@ -import {TextInput} from '@gravity-ui/uikit'; +import {TextInput} from 'landing-uikit'; import React from 'react'; import {block} from '../../../utils'; diff --git a/src/components/NavigationLayout/NavigationLayout.tsx b/src/components/NavigationLayout/NavigationLayout.tsx index 6341da809c10..4bb1eac96530 100644 --- a/src/components/NavigationLayout/NavigationLayout.tsx +++ b/src/components/NavigationLayout/NavigationLayout.tsx @@ -1,5 +1,5 @@ import {Col, Grid, Row} from '@gravity-ui/page-constructor'; -import {Icon} from '@gravity-ui/uikit'; +import {Icon} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/components/NavigationLayout/SectionBlock/SectionBlock.tsx b/src/components/NavigationLayout/SectionBlock/SectionBlock.tsx index 24e48d280611..52034656e22f 100644 --- a/src/components/NavigationLayout/SectionBlock/SectionBlock.tsx +++ b/src/components/NavigationLayout/SectionBlock/SectionBlock.tsx @@ -1,4 +1,4 @@ -import {Icon} from '@gravity-ui/uikit'; +import {Icon} from 'landing-uikit'; import React from 'react'; import LibraryVersion from 'src/components/LibraryVersion/LibraryVersion'; diff --git a/src/components/Roadmap/RoadmapIcon/RoadmapIcon.tsx b/src/components/Roadmap/RoadmapIcon/RoadmapIcon.tsx index b09fc1f666e0..be4b0942de52 100644 --- a/src/components/Roadmap/RoadmapIcon/RoadmapIcon.tsx +++ b/src/components/Roadmap/RoadmapIcon/RoadmapIcon.tsx @@ -1,5 +1,5 @@ -import {CircleCheck, Clock} from '@gravity-ui/icons'; -import {Icon, IconProps} from '@gravity-ui/uikit'; +import {CircleCheck, Clock} from 'landing-icons'; +import {Icon, IconProps} from 'landing-uikit'; import React from 'react'; import RoadmapCicle from '../../../assets/icons/roadmap-circle.svg'; diff --git a/src/components/Roadmap/RoadmapItem/RoadmapItem.tsx b/src/components/Roadmap/RoadmapItem/RoadmapItem.tsx index 502a0c03075a..06c3c53b3e3a 100644 --- a/src/components/Roadmap/RoadmapItem/RoadmapItem.tsx +++ b/src/components/Roadmap/RoadmapItem/RoadmapItem.tsx @@ -1,7 +1,7 @@ import {dateTime} from '@gravity-ui/date-utils'; -import {ChevronRight} from '@gravity-ui/icons'; import {HTML} from '@gravity-ui/page-constructor'; -import {Icon, Link} from '@gravity-ui/uikit'; +import {ChevronRight} from 'landing-icons'; +import {Icon, Link} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/components/SandboxBlock/SandboxBlock.tsx b/src/components/SandboxBlock/SandboxBlock.tsx index 4c8b6609d186..acf0fc053e55 100644 --- a/src/components/SandboxBlock/SandboxBlock.tsx +++ b/src/components/SandboxBlock/SandboxBlock.tsx @@ -3,7 +3,7 @@ import { ChevronsExpandUpRight, TextAlignLeft, TextAlignRight, -} from '@gravity-ui/icons'; +} from 'landing-icons'; import { Col, Direction, @@ -17,7 +17,7 @@ import { TextInput, Theme, Tooltip, -} from '@gravity-ui/uikit'; +} from 'landing-uikit'; import {useTranslation} from 'next-i18next'; import React from 'react'; diff --git a/src/components/Templates/Templates.tsx b/src/components/Templates/Templates.tsx index 0d18f2f036b0..e3e8dfe57e44 100644 --- a/src/components/Templates/Templates.tsx +++ b/src/components/Templates/Templates.tsx @@ -1,4 +1,4 @@ -import {Button, ClipboardButton, Icon, Tabs} from '@gravity-ui/uikit'; +import {Button, ClipboardButton, Icon, Tabs} from 'landing-uikit'; import Prism from 'prismjs'; import 'prismjs/components/prism-bash.js'; import React from 'react'; diff --git a/src/constants.ts b/src/constants.ts index da45a994bde5..ed4400207295 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,4 +1,4 @@ -import type {Theme} from '@gravity-ui/uikit'; +import type {Theme} from 'landing-uikit'; export const IS_PRODUCTION = process.env.NODE_ENV === 'production';