From b95027ec458a4ab71f5eb32b2921d31ce2ba3488 Mon Sep 17 00:00:00 2001 From: Ilya Date: Tue, 24 Dec 2024 15:06:41 +0300 Subject: [PATCH] feat(docs): add badge for only sc components --- .../docs/components/AudioPlayer.mdx | 4 +- .../plasma-b2c-docs/docs/components/Card.mdx | 5 +- .../docs/components/Carousel.mdx | 5 +- .../docs/components/ElasticGrid.mdx | 4 +- .../plasma-b2c-docs/docs/components/Modal.mdx | 5 +- .../docs/components/Overlay.mdx | 5 +- .../docs/components/Portal.mdx | 5 +- .../docs/components/PreviewGallery.mdx | 4 +- .../docs/components/Upload.mdx | 4 +- .../docs/components/UploadAudio.mdx | 7 +- .../docs/components/UploadVisual.mdx | 4 +- .../plasma-b2c-docs/src/components/Badge.tsx | 29 + .../plasma-b2c-docs/src/components/index.ts | 1 + .../docs/components/Overlay.mdx | 4 +- .../docs/components/Portal.mdx | 5 +- website/plasma-giga-docs/package-lock.json | 724 +----------------- .../plasma-giga-docs/src/components/Badge.tsx | 29 + .../plasma-giga-docs/src/components/index.ts | 1 + .../docs/components/AudioPlayer.mdx | 4 +- .../plasma-web-docs/docs/components/Card.mdx | 5 +- .../docs/components/Carousel.mdx | 5 +- .../docs/components/ElasticGrid.mdx | 4 +- .../plasma-web-docs/docs/components/Modal.mdx | 4 +- .../docs/components/Overlay.mdx | 4 +- .../docs/components/Portal.mdx | 4 +- .../docs/components/PreviewGallery.mdx | 4 +- .../docs/components/Upload.mdx | 4 +- .../docs/components/UploadAudio.mdx | 6 +- .../docs/components/UploadVisual.mdx | 4 +- .../plasma-web-docs/src/components/Badge.tsx | 29 + .../plasma-web-docs/src/components/index.ts | 1 + website/sdds-cs-docs/src/components/Badge.tsx | 29 + website/sdds-cs-docs/src/components/index.ts | 1 + .../sdds-dfa-docs/src/components/Badge.tsx | 29 + website/sdds-dfa-docs/src/components/index.ts | 1 + .../docs/components/Overlay.mdx | 4 +- .../docs/components/Portal.mdx | 5 +- .../sdds-insol-docs/src/components/Badge.tsx | 29 + .../sdds-insol-docs/src/components/index.ts | 1 + .../docs/components/Overlay.mdx | 5 +- .../sdds-serv-docs/docs/components/Portal.mdx | 5 +- .../sdds-serv-docs/src/components/Badge.tsx | 29 + .../sdds-serv-docs/src/components/index.ts | 1 + 43 files changed, 313 insertions(+), 749 deletions(-) create mode 100644 website/plasma-b2c-docs/src/components/Badge.tsx create mode 100644 website/plasma-giga-docs/src/components/Badge.tsx create mode 100644 website/plasma-web-docs/src/components/Badge.tsx create mode 100644 website/sdds-cs-docs/src/components/Badge.tsx create mode 100644 website/sdds-dfa-docs/src/components/Badge.tsx create mode 100644 website/sdds-insol-docs/src/components/Badge.tsx create mode 100644 website/sdds-serv-docs/src/components/Badge.tsx diff --git a/website/plasma-b2c-docs/docs/components/AudioPlayer.mdx b/website/plasma-b2c-docs/docs/components/AudioPlayer.mdx index a65bcf06b3..8493066ec8 100644 --- a/website/plasma-b2c-docs/docs/components/AudioPlayer.mdx +++ b/website/plasma-b2c-docs/docs/components/AudioPlayer.mdx @@ -3,10 +3,12 @@ id: AudioPlayer title: AudioPlayer --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # AudioPlayer + + diff --git a/website/plasma-b2c-docs/docs/components/Card.mdx b/website/plasma-b2c-docs/docs/components/Card.mdx index 5efda50106..a6dae4ad52 100644 --- a/website/plasma-b2c-docs/docs/components/Card.mdx +++ b/website/plasma-b2c-docs/docs/components/Card.mdx @@ -3,9 +3,12 @@ id: card title: Card --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Card + + + Набор компонентов для создания карточек. diff --git a/website/plasma-b2c-docs/docs/components/Carousel.mdx b/website/plasma-b2c-docs/docs/components/Carousel.mdx index 07dae3c91f..0819d1a2ad 100644 --- a/website/plasma-b2c-docs/docs/components/Carousel.mdx +++ b/website/plasma-b2c-docs/docs/components/Carousel.mdx @@ -3,9 +3,12 @@ id: carousel title: Carousel --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Carousel + + + Набор компонентов для создания списков с прокруткой (галерей). diff --git a/website/plasma-b2c-docs/docs/components/ElasticGrid.mdx b/website/plasma-b2c-docs/docs/components/ElasticGrid.mdx index e106095a91..1940a97f97 100644 --- a/website/plasma-b2c-docs/docs/components/ElasticGrid.mdx +++ b/website/plasma-b2c-docs/docs/components/ElasticGrid.mdx @@ -3,10 +3,12 @@ id: ElasticGrid title: ElasticGrid --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # ElasticGrid + + diff --git a/website/plasma-b2c-docs/docs/components/Modal.mdx b/website/plasma-b2c-docs/docs/components/Modal.mdx index 2578d8fa70..82b3fe5789 100644 --- a/website/plasma-b2c-docs/docs/components/Modal.mdx +++ b/website/plasma-b2c-docs/docs/components/Modal.mdx @@ -3,9 +3,12 @@ id: modal title: Modal --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Modal + + + diff --git a/website/plasma-b2c-docs/docs/components/Overlay.mdx b/website/plasma-b2c-docs/docs/components/Overlay.mdx index 75bf1700de..4de0e7a476 100644 --- a/website/plasma-b2c-docs/docs/components/Overlay.mdx +++ b/website/plasma-b2c-docs/docs/components/Overlay.mdx @@ -3,9 +3,12 @@ id: overlay title: Overlay --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Overlay + + + diff --git a/website/plasma-b2c-docs/docs/components/Portal.mdx b/website/plasma-b2c-docs/docs/components/Portal.mdx index 1c1abbcfb6..1f05e1bf25 100644 --- a/website/plasma-b2c-docs/docs/components/Portal.mdx +++ b/website/plasma-b2c-docs/docs/components/Portal.mdx @@ -3,9 +3,12 @@ id: portal title: Portal --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Portal + + + diff --git a/website/plasma-b2c-docs/docs/components/PreviewGallery.mdx b/website/plasma-b2c-docs/docs/components/PreviewGallery.mdx index 491765d0f1..687cb641f8 100644 --- a/website/plasma-b2c-docs/docs/components/PreviewGallery.mdx +++ b/website/plasma-b2c-docs/docs/components/PreviewGallery.mdx @@ -3,10 +3,12 @@ id: PreviewGallery title: PreviewGallery --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # PreviewGallery + + diff --git a/website/plasma-b2c-docs/docs/components/Upload.mdx b/website/plasma-b2c-docs/docs/components/Upload.mdx index 9b65c2365b..fdbf76e796 100644 --- a/website/plasma-b2c-docs/docs/components/Upload.mdx +++ b/website/plasma-b2c-docs/docs/components/Upload.mdx @@ -3,10 +3,12 @@ id: Upload title: Upload --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Upload + + diff --git a/website/plasma-b2c-docs/docs/components/UploadAudio.mdx b/website/plasma-b2c-docs/docs/components/UploadAudio.mdx index 9e476c87b0..eceac212ad 100644 --- a/website/plasma-b2c-docs/docs/components/UploadAudio.mdx +++ b/website/plasma-b2c-docs/docs/components/UploadAudio.mdx @@ -3,9 +3,12 @@ id: UploadAudio title: UploadAudio --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; + +# UploadAudio + + -## UploadAudio diff --git a/website/plasma-b2c-docs/docs/components/UploadVisual.mdx b/website/plasma-b2c-docs/docs/components/UploadVisual.mdx index 3d172c3d1e..82837ef0e5 100644 --- a/website/plasma-b2c-docs/docs/components/UploadVisual.mdx +++ b/website/plasma-b2c-docs/docs/components/UploadVisual.mdx @@ -3,10 +3,12 @@ id: UploadVisual title: UploadVisual --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # UploadVisual + + diff --git a/website/plasma-b2c-docs/src/components/Badge.tsx b/website/plasma-b2c-docs/src/components/Badge.tsx new file mode 100644 index 0000000000..76bcabcd00 --- /dev/null +++ b/website/plasma-b2c-docs/src/components/Badge.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import type { FC } from 'react'; +import { Badge, Tooltip, BodyXS } from '@salutejs/plasma-b2c'; + +export const DocsBadge: FC<{ title: string; desctiption: string }> = ({ title, desctiption }) => ( +
+ + {title} + + } + text={desctiption} + placement="right-start" + trigger="hover" + hoverTimeout={500} + maxWidth="400px" + hasArrow={false} + style={{ + verticalAlign: 'middle', + }} + /> +
+); diff --git a/website/plasma-b2c-docs/src/components/index.ts b/website/plasma-b2c-docs/src/components/index.ts index cc8153c866..0014047f8f 100644 --- a/website/plasma-b2c-docs/src/components/index.ts +++ b/website/plasma-b2c-docs/src/components/index.ts @@ -2,3 +2,4 @@ export { CodeSandbox } from './CodeSandbox'; export { Description } from './Description'; export { PropsTable } from './PropsTable'; export { StorybookLink } from './Storybook'; +export { DocsBadge as Badge } from './Badge'; diff --git a/website/plasma-giga-docs/docs/components/Overlay.mdx b/website/plasma-giga-docs/docs/components/Overlay.mdx index dee1d2b430..e7c7baffec 100644 --- a/website/plasma-giga-docs/docs/components/Overlay.mdx +++ b/website/plasma-giga-docs/docs/components/Overlay.mdx @@ -3,8 +3,10 @@ id: overlay title: Overlay --- -import { PropsTable, Description } from '@site/src/components'; +import { PropsTable, Description, Badge } from '@site/src/components'; # Overlay + + diff --git a/website/plasma-giga-docs/docs/components/Portal.mdx b/website/plasma-giga-docs/docs/components/Portal.mdx index e39226d646..ae227cd279 100644 --- a/website/plasma-giga-docs/docs/components/Portal.mdx +++ b/website/plasma-giga-docs/docs/components/Portal.mdx @@ -3,9 +3,12 @@ id: portal title: Portal --- -import { PropsTable, Description } from '@site/src/components'; +import { PropsTable, Description, Badge } from '@site/src/components'; # Portal + + + diff --git a/website/plasma-giga-docs/package-lock.json b/website/plasma-giga-docs/package-lock.json index d5b3a54aa3..009c79d2d0 100644 --- a/website/plasma-giga-docs/package-lock.json +++ b/website/plasma-giga-docs/package-lock.json @@ -1,23 +1,18 @@ { "name": "@salutejs/plasma-giga-docs", - "version": "0.1.0", + "version": "0.3.0-dev.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@salutejs/plasma-giga-docs", - "version": "0.1.0", + "version": "0.3.0-dev.0", "license": "MIT", "dependencies": { "@docusaurus/core": "3.6.1", "@docusaurus/preset-classic": "3.6.1", "@docusaurus/theme-live-codeblock": "3.6.1", "@mdx-js/react": "3.0.0", - "@salutejs/plasma-docs-ui": "0.395.0-dev.0", - "@salutejs/plasma-giga": "0.209.0-dev.0", - "@salutejs/plasma-icons": "1.209.1-dev.0", - "@salutejs/plasma-themes": "0.27.0-dev.0", - "@salutejs/plasma-typo": "0.40.1-dev.0", "@svgr/webpack": "8.1.0", "clsx": "^1.1.1", "file-loader": "^6.2.0", @@ -157,12 +152,13 @@ }, "../../utils/plasma-docs-ui": { "name": "@salutejs/plasma-docs-ui", - "version": "0.395.0-dev.0", + "version": "0.397.0-dev.0", + "extraneous": true, "license": "MIT", "dependencies": { "@salutejs/plasma-core": "1.189.1-dev.0", "@salutejs/plasma-tokens-b2b": "1.43.1-dev.0", - "@salutejs/plasma-web": "1.484.0-dev.0", + "@salutejs/plasma-web": "1.486.0-dev.0", "@types/marked": "3.0.1", "codesandbox": "2.2.3", "marked": "3.0.7", @@ -3026,54 +3022,6 @@ "version": "0.7.5", "license": "MIT" }, - "node_modules/@floating-ui/core": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.8.tgz", - "integrity": "sha512-7XJ9cPU+yI2QeLS+FCSlqNFZJq8arvswefkZrYI1yQBbftw6FyrZOxYSh+9S7z7TpeWlRt9zJ5IhM1WIL334jA==", - "dependencies": { - "@floating-ui/utils": "^0.2.8" - } - }, - "node_modules/@floating-ui/dom": { - "version": "1.6.10", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.10.tgz", - "integrity": "sha512-fskgCFv8J8OamCmyun8MfjB1Olfn+uZKjOKZ0vhYF3gRmEUXcGOjxWL8bBr7i4kIuPZ2KD2S3EUIOxnjC8kl2A==", - "dependencies": { - "@floating-ui/core": "^1.6.0", - "@floating-ui/utils": "^0.2.7" - } - }, - "node_modules/@floating-ui/react": { - "version": "0.26.22", - "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.26.22.tgz", - "integrity": "sha512-LNv4azPt8SpT4WW7Kku5JNVjLk2GcS0bGGjFTAgqOONRFo9r/aaGHHPpdiIuQbB1t8shmWyWqTTUDmZ9fcNshg==", - "dependencies": { - "@floating-ui/react-dom": "^2.1.1", - "@floating-ui/utils": "^0.2.7", - "tabbable": "^6.0.0" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, - "node_modules/@floating-ui/react-dom": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.1.tgz", - "integrity": "sha512-4h84MJt3CHrtG18mGsXuLCHMrug49d7DFkU0RMIyshRveBeyV2hmV/pDaF2Uxtu8kgq5r46llp5E5FQiR0K2Yg==", - "dependencies": { - "@floating-ui/dom": "^1.0.0" - }, - "peerDependencies": { - "react": ">=16.8.0", - "react-dom": ">=16.8.0" - } - }, - "node_modules/@floating-ui/utils": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.8.tgz", - "integrity": "sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==" - }, "node_modules/@hapi/hoek": { "version": "9.3.0", "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", @@ -3206,84 +3154,6 @@ "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz", "integrity": "sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw==" }, - "node_modules/@linaria/core": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@linaria/core/-/core-5.0.2.tgz", - "integrity": "sha512-l5jQq7w9kDvonfr/0MBF47Dagx9Y9f/o5Q8j3zv7GepwG/yHQdbjKr0tq07rx2fSDDX7Nbqlxk6k9Ymir/NGpg==", - "dependencies": { - "@linaria/logger": "^5.0.0", - "@linaria/tags": "^5.0.2", - "@linaria/utils": "^5.0.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@linaria/logger": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@linaria/logger/-/logger-5.0.0.tgz", - "integrity": "sha512-PZd5H0I4F84U0kXSE+vD75ltIGDxEA6gMDNWS2aDZFitmdlQM5rIXqvKFrp5NsHa7a3AH+I2Hxm0dg60WZF7vg==", - "dependencies": { - "debug": "^4.3.4", - "picocolors": "^1.0.0" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@linaria/react": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@linaria/react/-/react-5.0.3.tgz", - "integrity": "sha512-faTQHnUlrAz0Lodu+rr6Yx59rX0nqFOrZ5/IdlfQcTRz9VebyVL4vtA3AOecmn1YFZjMpqjopT0OzNz6GknQSg==", - "dependencies": { - "@emotion/is-prop-valid": "^1.2.0", - "@linaria/core": "^5.0.2", - "@linaria/tags": "^5.0.2", - "@linaria/utils": "^5.0.2", - "minimatch": "^9.0.3", - "react-html-attributes": "^1.4.6", - "ts-invariant": "^0.10.3" - }, - "engines": { - "node": ">=16.0.0" - }, - "peerDependencies": { - "react": ">=16" - } - }, - "node_modules/@linaria/tags": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@linaria/tags/-/tags-5.0.2.tgz", - "integrity": "sha512-opcORl2sA6WkBjTNLHTgpet97dNKnwPRX/QGGZMykBsvGH3AsnEg/bT31cKBMBhL+YBGQsCdBmolxvCkWPOXQw==", - "dependencies": { - "@babel/generator": "^7.22.15", - "@linaria/logger": "^5.0.0", - "@linaria/utils": "^5.0.2" - }, - "engines": { - "node": ">=16.0.0" - } - }, - "node_modules/@linaria/utils": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@linaria/utils/-/utils-5.0.2.tgz", - "integrity": "sha512-ZL8Yz4IIr9A8a5+o5LRnEpgdzIkyj4yKJrhw5Zv8wwvL+d/MHUK0q+l/KvxBmuYdcF+YYVHZ9eeBHTQBSL7r/w==", - "dependencies": { - "@babel/core": "^7.22.15", - "@babel/generator": "^7.22.15", - "@babel/plugin-transform-modules-commonjs": "^7.22.15", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.22.15", - "@babel/types": "^7.22.15", - "@linaria/logger": "^5.0.0", - "babel-merge": "^3.0.0", - "find-up": "^5.0.0", - "minimatch": "^9.0.3" - }, - "engines": { - "node": ">=16.0.0" - } - }, "node_modules/@mdx-js/mdx": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-3.1.0.tgz", @@ -3517,130 +3387,6 @@ "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.28.tgz", "integrity": "sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==" }, - "node_modules/@popperjs/core": { - "version": "2.11.8", - "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", - "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/popperjs" - } - }, - "node_modules/@salutejs/input-core": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@salutejs/input-core/-/input-core-2.1.2.tgz", - "integrity": "sha512-Y4tNTtmz7R50DysojQac2Z8JIKK1JSRCc7P7D7IefQQeFaeLbBTXbXAkMuBipTRXDR3kLs2AHSMcbKbrQRW3qw==" - }, - "node_modules/@salutejs/plasma-core": { - "version": "1.189.1-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-core/-/plasma-core-1.189.1-dev.0.tgz", - "integrity": "sha512-87vSa/15SuQJaohlAmGNuRxPSL0J+u/d8v9WR0v4fX8xedyiW/ym6V+bqcGHusxczrby8OBUivsm2uSS+X/2Sg==", - "dependencies": { - "@popperjs/core": "2.9.2", - "@salutejs/plasma-typo": "0.40.1-dev.0", - "focus-visible": "5.2.0", - "lodash.throttle": "4.1.1", - "react-draggable": "4.4.3", - "react-popper": "2.3.0" - }, - "peerDependencies": { - "react": ">=16.13.1", - "react-dom": ">=16.13.1", - "styled-components": "^5.1.1" - } - }, - "node_modules/@salutejs/plasma-core/node_modules/@popperjs/core": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.9.2.tgz", - "integrity": "sha512-VZMYa7+fXHdwIq1TDhSXoVmSPEGM/aa+6Aiq3nVVJ9bXr24zScr+NlKFKC3iPljA7ho/GAZr+d2jOf5GIRC30Q==", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/popperjs" - } - }, - "node_modules/@salutejs/plasma-docs-ui": { - "resolved": "../../utils/plasma-docs-ui", - "link": true - }, - "node_modules/@salutejs/plasma-giga": { - "version": "0.209.0-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-giga/-/plasma-giga-0.209.0-dev.0.tgz", - "integrity": "sha512-B62nrKPbWwPKGTVIWK3/B/bFeIDIfLRom6iWrM4p7yBgS/QlnaL0NnRyZKgn2Phf684hXgORBVNy9fU+NHx7nQ==", - "dependencies": { - "@salutejs/plasma-new-hope": "0.229.0-dev.0", - "@salutejs/plasma-themes": "0.27.0-dev.0" - }, - "peerDependencies": { - "@emotion/react": ">=11", - "@emotion/styled": ">=11", - "react": ">=16.13.1", - "react-dom": ">=16.13.1", - "styled-components": "^5.3.1" - } - }, - "node_modules/@salutejs/plasma-icons": { - "version": "1.209.1-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-icons/-/plasma-icons-1.209.1-dev.0.tgz", - "integrity": "sha512-qX/Ka3wUtMlOIj6kIBdddxYyiDEJ8MeFsdbfSopl6ekXlpK4G6XlUk7gjKqYt3NTf5qYeh7s5XiAKmi/LNZVSg==", - "peerDependencies": { - "react": ">=16.13.1", - "react-dom": ">=16.13.1", - "styled-components": "^5.1.1" - } - }, - "node_modules/@salutejs/plasma-new-hope": { - "version": "0.229.0-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-new-hope/-/plasma-new-hope-0.229.0-dev.0.tgz", - "integrity": "sha512-ea4ALhknBuB5pk4tdkEmjI2hW9OaBA4OxsdX40dsm2Cl5I8uUZwznOXHhWHLCOzzVVkGdSWMp/2zkgG6scQSyQ==", - "dependencies": { - "@floating-ui/dom": "1.6.10", - "@floating-ui/react": "0.26.22", - "@floating-ui/react-dom": "2.1.1", - "@linaria/core": "5.0.2", - "@linaria/react": "5.0.3", - "@popperjs/core": "2.11.8", - "@salutejs/input-core": "2.1.2", - "@salutejs/plasma-core": "1.189.1-dev.0", - "@salutejs/react-maskinput": "3.2.6", - "classnames": "2.5.1", - "dayjs": "1.11.11", - "focus-visible": "5.2.0", - "lodash.throttle": "4.1.1", - "react-draggable": "4.4.3", - "react-popper": "2.3.0", - "storeon": "3.1.5" - }, - "peerDependencies": { - "react": ">=16.13.1", - "react-dom": ">=16.13.1" - } - }, - "node_modules/@salutejs/plasma-themes": { - "version": "0.27.0-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-themes/-/plasma-themes-0.27.0-dev.0.tgz", - "integrity": "sha512-2ISnEhEZaTMTLwlJ6oFZkVo3Skxz1w+JAORS4AX/A5LFnviuPxCDlk55VDj8ENKHZwg0JG/rYogi8Dd274IYRg==" - }, - "node_modules/@salutejs/plasma-typo": { - "version": "0.40.1-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-typo/-/plasma-typo-0.40.1-dev.0.tgz", - "integrity": "sha512-2upt63DI5kLdCtp5nfpsBuPCu4eSPDva/dg3ChnTLF0FrDW5Bbtp5CbylOnuKkvaxZ2CVr5fhRtXkL2hZniRBg==", - "peerDependencies": { - "react": ">=16.13.1", - "react-dom": ">=16.13.1", - "styled-components": "^5.1.1" - } - }, - "node_modules/@salutejs/react-maskinput": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/@salutejs/react-maskinput/-/react-maskinput-3.2.6.tgz", - "integrity": "sha512-2PCmEAISvTIERnLQ9h358a6f/Fj87Hjgw85h/T5TUUMTQXbCpHLzOeCdy9zyuj+SXqN58voajiQ05wE+8hrsGw==", - "dependencies": { - "@salutejs/input-core": "^2.1.2" - }, - "peerDependencies": { - "react": ">=16.8.0" - } - }, "node_modules/@sideway/address": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz", @@ -4829,27 +4575,6 @@ "webpack": ">=5" } }, - "node_modules/babel-merge": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/babel-merge/-/babel-merge-3.0.0.tgz", - "integrity": "sha512-eBOBtHnzt9xvnjpYNI5HmaPp/b2vMveE5XggzqHnQeHJ8mFIBrBv6WZEVIj5jJ2uwTItkqKo9gWzEEcBxEq0yw==", - "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.", - "dependencies": { - "deepmerge": "^2.2.1", - "object.omit": "^3.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/babel-merge/node_modules/deepmerge": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz", - "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/babel-plugin-dynamic-import-node": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", @@ -5344,11 +5069,6 @@ "node": ">=8" } }, - "node_modules/classnames": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", - "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==" - }, "node_modules/clean-css": { "version": "5.3.3", "license": "MIT", @@ -6097,11 +5817,6 @@ "version": "3.1.3", "license": "MIT" }, - "node_modules/dayjs": { - "version": "1.11.11", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.11.tgz", - "integrity": "sha512-okzr3f11N6WuqYtZSvm+F776mB41wRZMhKP+hc34YdW+KmtYYK9iqvHSwo2k9FEH3fhGXvOPV6yz2IcSrfRUDg==" - }, "node_modules/debounce": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", @@ -7153,11 +6868,6 @@ "flat": "cli.js" } }, - "node_modules/focus-visible": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/focus-visible/-/focus-visible-5.2.0.tgz", - "integrity": "sha512-Rwix9pBtC1Nuy5wysTmKy+UjbDJpIfg8eHjw0rjZ1mX4GNLz1Bmd16uDpI3Gk1i70Fgcs8Csg2lPm8HULFg9DQ==" - }, "node_modules/follow-redirects": { "version": "1.15.9", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", @@ -7973,11 +7683,6 @@ "safe-buffer": "~5.1.0" } }, - "node_modules/html-element-attributes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/html-element-attributes/-/html-element-attributes-1.3.1.tgz", - "integrity": "sha512-UrRKgp5sQmRnDy4TEwAUsu14XBUlzKB8U3hjIYDjcZ3Hbp86Jtftzxfgrv6E/ii/h78tsaZwAnAE8HwnHr0dPA==" - }, "node_modules/html-entities": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.5.2.tgz", @@ -8858,11 +8563,6 @@ "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" }, - "node_modules/lodash.throttle": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", - "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==" - }, "node_modules/lodash.uniq": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", @@ -11426,28 +11126,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object.omit": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-3.0.0.tgz", - "integrity": "sha512-EO+BCv6LJfu+gBIF3ggLicFebFLN5zqzz/WWJlMFfkMyGth+oBkhxzDl0wx2W4GkLzuQs/FsSkXZb2IMWQqmBQ==", - "dependencies": { - "is-extendable": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object.omit/node_modules/is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dependencies": { - "is-plain-object": "^2.0.4" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/obuf": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", @@ -12825,15 +12503,6 @@ "react": "^18.2.0" } }, - "node_modules/react-draggable": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/react-draggable/-/react-draggable-4.4.3.tgz", - "integrity": "sha512-jV4TE59MBuWm7gb6Ns3Q1mxX8Azffb7oTtDtBgFkxRvhDp38YAARmRplrj0+XGkhOJB5XziArX+4HUUABtyZ0w==", - "dependencies": { - "classnames": "^2.2.5", - "prop-types": "^15.6.0" - } - }, "node_modules/react-error-overlay": { "version": "6.0.11", "license": "MIT" @@ -12872,14 +12541,6 @@ "react": "^16.8.0 || ^17 || ^18 || ^19" } }, - "node_modules/react-html-attributes": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/react-html-attributes/-/react-html-attributes-1.4.6.tgz", - "integrity": "sha512-uS3MmThNKFH2EZUQQw4k5pIcU7XIr208UE5dktrj/GOH1CMagqxDl4DCLpt3o2l9x+IB5nVYBeN3Cr4IutBXAg==", - "dependencies": { - "html-element-attributes": "^1.0.0" - } - }, "node_modules/react-is": { "version": "16.13.1", "license": "MIT" @@ -12938,20 +12599,6 @@ "webpack": ">=4.41.1 || 5.x" } }, - "node_modules/react-popper": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-2.3.0.tgz", - "integrity": "sha512-e1hj8lL3uM+sgSR4Lxzn5h1GxBlpa4CQz0XLF8kx4MDrDRWY0Ena4c97PUeSX9i5W3UAfDP0z0FXCTQkoXUl3Q==", - "dependencies": { - "react-fast-compare": "^3.0.1", - "warning": "^4.0.2" - }, - "peerDependencies": { - "@popperjs/core": "^2.0.0", - "react": "^16.8.0 || ^17 || ^18", - "react-dom": "^16.8.0 || ^17 || ^18" - } - }, "node_modules/react-router": { "version": "5.3.4", "license": "MIT", @@ -14184,26 +13831,6 @@ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.8.0.tgz", "integrity": "sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==" }, - "node_modules/storeon": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/storeon/-/storeon-3.1.5.tgz", - "integrity": "sha512-VuW4GQr3LGQr+gqscqsOz2c9asK9N+B+8+sWs7Pj4OqU7bngYIqsPF3IYpkbmccKNWjs7wwxUAlR+gtL9cEMEg==", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "preact": ">=10.0.0", - "react": ">=16.8.0" - }, - "peerDependenciesMeta": { - "preact": { - "optional": true - }, - "react": { - "optional": true - } - } - }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -14510,11 +14137,6 @@ "node": ">= 10" } }, - "node_modules/tabbable": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", - "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==" - }, "node_modules/tapable": { "version": "2.2.1", "license": "MIT", @@ -14739,17 +14361,6 @@ "version": "0.1.13", "license": "Apache-2.0" }, - "node_modules/ts-invariant": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/ts-invariant/-/ts-invariant-0.10.3.tgz", - "integrity": "sha512-uivwYcQaxAucv1CzRp2n/QdYPo4ILf9VXgH19zEIjFx2EJufV16P0JtJVpYHy89DItG6Kwj2oIUjrcK5au+4tQ==", - "dependencies": { - "tslib": "^2.1.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/tslib": { "version": "2.6.2", "license": "0BSD" @@ -15263,14 +14874,6 @@ "url": "https://opencollective.com/unified" } }, - "node_modules/warning": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz", - "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", - "dependencies": { - "loose-envify": "^1.0.0" - } - }, "node_modules/watchpack": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", @@ -17913,46 +17516,6 @@ "@emotion/unitless": { "version": "0.7.5" }, - "@floating-ui/core": { - "version": "1.6.8", - "resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.6.8.tgz", - "integrity": "sha512-7XJ9cPU+yI2QeLS+FCSlqNFZJq8arvswefkZrYI1yQBbftw6FyrZOxYSh+9S7z7TpeWlRt9zJ5IhM1WIL334jA==", - "requires": { - "@floating-ui/utils": "^0.2.8" - } - }, - "@floating-ui/dom": { - "version": "1.6.10", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.6.10.tgz", - "integrity": "sha512-fskgCFv8J8OamCmyun8MfjB1Olfn+uZKjOKZ0vhYF3gRmEUXcGOjxWL8bBr7i4kIuPZ2KD2S3EUIOxnjC8kl2A==", - "requires": { - "@floating-ui/core": "^1.6.0", - "@floating-ui/utils": "^0.2.7" - } - }, - "@floating-ui/react": { - "version": "0.26.22", - "resolved": "https://registry.npmjs.org/@floating-ui/react/-/react-0.26.22.tgz", - "integrity": "sha512-LNv4azPt8SpT4WW7Kku5JNVjLk2GcS0bGGjFTAgqOONRFo9r/aaGHHPpdiIuQbB1t8shmWyWqTTUDmZ9fcNshg==", - "requires": { - "@floating-ui/react-dom": "^2.1.1", - "@floating-ui/utils": "^0.2.7", - "tabbable": "^6.0.0" - } - }, - "@floating-ui/react-dom": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@floating-ui/react-dom/-/react-dom-2.1.1.tgz", - "integrity": "sha512-4h84MJt3CHrtG18mGsXuLCHMrug49d7DFkU0RMIyshRveBeyV2hmV/pDaF2Uxtu8kgq5r46llp5E5FQiR0K2Yg==", - "requires": { - "@floating-ui/dom": "^1.0.0" - } - }, - "@floating-ui/utils": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.8.tgz", - "integrity": "sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==" - }, "@hapi/hoek": { "version": "9.3.0", "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", @@ -18051,66 +17614,6 @@ "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz", "integrity": "sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw==" }, - "@linaria/core": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@linaria/core/-/core-5.0.2.tgz", - "integrity": "sha512-l5jQq7w9kDvonfr/0MBF47Dagx9Y9f/o5Q8j3zv7GepwG/yHQdbjKr0tq07rx2fSDDX7Nbqlxk6k9Ymir/NGpg==", - "requires": { - "@linaria/logger": "^5.0.0", - "@linaria/tags": "^5.0.2", - "@linaria/utils": "^5.0.2" - } - }, - "@linaria/logger": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@linaria/logger/-/logger-5.0.0.tgz", - "integrity": "sha512-PZd5H0I4F84U0kXSE+vD75ltIGDxEA6gMDNWS2aDZFitmdlQM5rIXqvKFrp5NsHa7a3AH+I2Hxm0dg60WZF7vg==", - "requires": { - "debug": "^4.3.4", - "picocolors": "^1.0.0" - } - }, - "@linaria/react": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@linaria/react/-/react-5.0.3.tgz", - "integrity": "sha512-faTQHnUlrAz0Lodu+rr6Yx59rX0nqFOrZ5/IdlfQcTRz9VebyVL4vtA3AOecmn1YFZjMpqjopT0OzNz6GknQSg==", - "requires": { - "@emotion/is-prop-valid": "^1.2.0", - "@linaria/core": "^5.0.2", - "@linaria/tags": "^5.0.2", - "@linaria/utils": "^5.0.2", - "minimatch": "^9.0.3", - "react-html-attributes": "^1.4.6", - "ts-invariant": "^0.10.3" - } - }, - "@linaria/tags": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@linaria/tags/-/tags-5.0.2.tgz", - "integrity": "sha512-opcORl2sA6WkBjTNLHTgpet97dNKnwPRX/QGGZMykBsvGH3AsnEg/bT31cKBMBhL+YBGQsCdBmolxvCkWPOXQw==", - "requires": { - "@babel/generator": "^7.22.15", - "@linaria/logger": "^5.0.0", - "@linaria/utils": "^5.0.2" - } - }, - "@linaria/utils": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@linaria/utils/-/utils-5.0.2.tgz", - "integrity": "sha512-ZL8Yz4IIr9A8a5+o5LRnEpgdzIkyj4yKJrhw5Zv8wwvL+d/MHUK0q+l/KvxBmuYdcF+YYVHZ9eeBHTQBSL7r/w==", - "requires": { - "@babel/core": "^7.22.15", - "@babel/generator": "^7.22.15", - "@babel/plugin-transform-modules-commonjs": "^7.22.15", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.22.15", - "@babel/types": "^7.22.15", - "@linaria/logger": "^5.0.0", - "babel-merge": "^3.0.0", - "find-up": "^5.0.0", - "minimatch": "^9.0.3" - } - }, "@mdx-js/mdx": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/@mdx-js/mdx/-/mdx-3.1.0.tgz", @@ -18269,112 +17772,6 @@ "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.28.tgz", "integrity": "sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==" }, - "@popperjs/core": { - "version": "2.11.8", - "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", - "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==" - }, - "@salutejs/input-core": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@salutejs/input-core/-/input-core-2.1.2.tgz", - "integrity": "sha512-Y4tNTtmz7R50DysojQac2Z8JIKK1JSRCc7P7D7IefQQeFaeLbBTXbXAkMuBipTRXDR3kLs2AHSMcbKbrQRW3qw==" - }, - "@salutejs/plasma-core": { - "version": "1.189.1-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-core/-/plasma-core-1.189.1-dev.0.tgz", - "integrity": "sha512-87vSa/15SuQJaohlAmGNuRxPSL0J+u/d8v9WR0v4fX8xedyiW/ym6V+bqcGHusxczrby8OBUivsm2uSS+X/2Sg==", - "requires": { - "@popperjs/core": "2.9.2", - "@salutejs/plasma-typo": "0.40.1-dev.0", - "focus-visible": "5.2.0", - "lodash.throttle": "4.1.1", - "react-draggable": "4.4.3", - "react-popper": "2.3.0" - }, - "dependencies": { - "@popperjs/core": { - "version": "2.9.2", - "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.9.2.tgz", - "integrity": "sha512-VZMYa7+fXHdwIq1TDhSXoVmSPEGM/aa+6Aiq3nVVJ9bXr24zScr+NlKFKC3iPljA7ho/GAZr+d2jOf5GIRC30Q==" - } - } - }, - "@salutejs/plasma-docs-ui": { - "version": "file:../../utils/plasma-docs-ui", - "requires": { - "@salutejs/plasma-core": "1.189.1-dev.0", - "@salutejs/plasma-tokens-b2b": "1.43.1-dev.0", - "@salutejs/plasma-web": "1.484.0-dev.0", - "@types/marked": "3.0.1", - "@types/qs": "6.9.9", - "@types/react": "18.0.28", - "@types/react-dom": "18.0.11", - "@types/styled-components": "5.1.0", - "codesandbox": "2.2.3", - "marked": "3.0.7", - "qs": "6.10.1", - "react": "18.2.0", - "react-docgen-typescript": "2.1.1", - "react-dom": "18.2.0", - "styled-components": "5.3.1", - "typescript": "4.4.2" - } - }, - "@salutejs/plasma-giga": { - "version": "0.209.0-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-giga/-/plasma-giga-0.209.0-dev.0.tgz", - "integrity": "sha512-B62nrKPbWwPKGTVIWK3/B/bFeIDIfLRom6iWrM4p7yBgS/QlnaL0NnRyZKgn2Phf684hXgORBVNy9fU+NHx7nQ==", - "requires": { - "@salutejs/plasma-new-hope": "0.229.0-dev.0", - "@salutejs/plasma-themes": "0.27.0-dev.0" - } - }, - "@salutejs/plasma-icons": { - "version": "1.209.1-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-icons/-/plasma-icons-1.209.1-dev.0.tgz", - "integrity": "sha512-qX/Ka3wUtMlOIj6kIBdddxYyiDEJ8MeFsdbfSopl6ekXlpK4G6XlUk7gjKqYt3NTf5qYeh7s5XiAKmi/LNZVSg==" - }, - "@salutejs/plasma-new-hope": { - "version": "0.229.0-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-new-hope/-/plasma-new-hope-0.229.0-dev.0.tgz", - "integrity": "sha512-ea4ALhknBuB5pk4tdkEmjI2hW9OaBA4OxsdX40dsm2Cl5I8uUZwznOXHhWHLCOzzVVkGdSWMp/2zkgG6scQSyQ==", - "requires": { - "@floating-ui/dom": "1.6.10", - "@floating-ui/react": "0.26.22", - "@floating-ui/react-dom": "2.1.1", - "@linaria/core": "5.0.2", - "@linaria/react": "5.0.3", - "@popperjs/core": "2.11.8", - "@salutejs/input-core": "2.1.2", - "@salutejs/plasma-core": "1.189.1-dev.0", - "@salutejs/react-maskinput": "3.2.6", - "classnames": "2.5.1", - "dayjs": "1.11.11", - "focus-visible": "5.2.0", - "lodash.throttle": "4.1.1", - "react-draggable": "4.4.3", - "react-popper": "2.3.0", - "storeon": "3.1.5" - } - }, - "@salutejs/plasma-themes": { - "version": "0.27.0-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-themes/-/plasma-themes-0.27.0-dev.0.tgz", - "integrity": "sha512-2ISnEhEZaTMTLwlJ6oFZkVo3Skxz1w+JAORS4AX/A5LFnviuPxCDlk55VDj8ENKHZwg0JG/rYogi8Dd274IYRg==" - }, - "@salutejs/plasma-typo": { - "version": "0.40.1-dev.0", - "resolved": "https://registry.npmjs.org/@salutejs/plasma-typo/-/plasma-typo-0.40.1-dev.0.tgz", - "integrity": "sha512-2upt63DI5kLdCtp5nfpsBuPCu4eSPDva/dg3ChnTLF0FrDW5Bbtp5CbylOnuKkvaxZ2CVr5fhRtXkL2hZniRBg==" - }, - "@salutejs/react-maskinput": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/@salutejs/react-maskinput/-/react-maskinput-3.2.6.tgz", - "integrity": "sha512-2PCmEAISvTIERnLQ9h358a6f/Fj87Hjgw85h/T5TUUMTQXbCpHLzOeCdy9zyuj+SXqN58voajiQ05wE+8hrsGw==", - "requires": { - "@salutejs/input-core": "^2.1.2" - } - }, "@sideway/address": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz", @@ -19246,22 +18643,6 @@ "schema-utils": "^4.0.0" } }, - "babel-merge": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/babel-merge/-/babel-merge-3.0.0.tgz", - "integrity": "sha512-eBOBtHnzt9xvnjpYNI5HmaPp/b2vMveE5XggzqHnQeHJ8mFIBrBv6WZEVIj5jJ2uwTItkqKo9gWzEEcBxEq0yw==", - "requires": { - "deepmerge": "^2.2.1", - "object.omit": "^3.0.0" - }, - "dependencies": { - "deepmerge": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-2.2.1.tgz", - "integrity": "sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA==" - } - } - }, "babel-plugin-dynamic-import-node": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.3.tgz", @@ -19577,11 +18958,6 @@ "ci-info": { "version": "3.9.0" }, - "classnames": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", - "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==" - }, "clean-css": { "version": "5.3.3", "requires": { @@ -20045,11 +19421,6 @@ "csstype": { "version": "3.1.3" }, - "dayjs": { - "version": "1.11.11", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.11.tgz", - "integrity": "sha512-okzr3f11N6WuqYtZSvm+F776mB41wRZMhKP+hc34YdW+KmtYYK9iqvHSwo2k9FEH3fhGXvOPV6yz2IcSrfRUDg==" - }, "debounce": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz", @@ -20754,11 +20125,6 @@ "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==" }, - "focus-visible": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/focus-visible/-/focus-visible-5.2.0.tgz", - "integrity": "sha512-Rwix9pBtC1Nuy5wysTmKy+UjbDJpIfg8eHjw0rjZ1mX4GNLz1Bmd16uDpI3Gk1i70Fgcs8Csg2lPm8HULFg9DQ==" - }, "follow-redirects": { "version": "1.15.9", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", @@ -21311,11 +20677,6 @@ } } }, - "html-element-attributes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/html-element-attributes/-/html-element-attributes-1.3.1.tgz", - "integrity": "sha512-UrRKgp5sQmRnDy4TEwAUsu14XBUlzKB8U3hjIYDjcZ3Hbp86Jtftzxfgrv6E/ii/h78tsaZwAnAE8HwnHr0dPA==" - }, "html-entities": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.5.2.tgz", @@ -21840,11 +21201,6 @@ "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==" }, - "lodash.throttle": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", - "integrity": "sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==" - }, "lodash.uniq": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz", @@ -23309,24 +22665,6 @@ "object-keys": "^1.1.1" } }, - "object.omit": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-3.0.0.tgz", - "integrity": "sha512-EO+BCv6LJfu+gBIF3ggLicFebFLN5zqzz/WWJlMFfkMyGth+oBkhxzDl0wx2W4GkLzuQs/FsSkXZb2IMWQqmBQ==", - "requires": { - "is-extendable": "^1.0.0" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, "obuf": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/obuf/-/obuf-1.1.2.tgz", @@ -24171,15 +23509,6 @@ "scheduler": "^0.23.0" } }, - "react-draggable": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/react-draggable/-/react-draggable-4.4.3.tgz", - "integrity": "sha512-jV4TE59MBuWm7gb6Ns3Q1mxX8Azffb7oTtDtBgFkxRvhDp38YAARmRplrj0+XGkhOJB5XziArX+4HUUABtyZ0w==", - "requires": { - "classnames": "^2.2.5", - "prop-types": "^15.6.0" - } - }, "react-error-overlay": { "version": "6.0.11" }, @@ -24201,14 +23530,6 @@ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.53.0.tgz", "integrity": "sha512-M1n3HhqCww6S2hxLxciEXy2oISPnAzxY7gvwVPrtlczTM/1dDadXgUxDpHMrMTblDOcm/AXtXxHwZ3jpg1mqKQ==" }, - "react-html-attributes": { - "version": "1.4.6", - "resolved": "https://registry.npmjs.org/react-html-attributes/-/react-html-attributes-1.4.6.tgz", - "integrity": "sha512-uS3MmThNKFH2EZUQQw4k5pIcU7XIr208UE5dktrj/GOH1CMagqxDl4DCLpt3o2l9x+IB5nVYBeN3Cr4IutBXAg==", - "requires": { - "html-element-attributes": "^1.0.0" - } - }, "react-is": { "version": "16.13.1" }, @@ -24239,15 +23560,6 @@ "@babel/runtime": "^7.10.3" } }, - "react-popper": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-2.3.0.tgz", - "integrity": "sha512-e1hj8lL3uM+sgSR4Lxzn5h1GxBlpa4CQz0XLF8kx4MDrDRWY0Ena4c97PUeSX9i5W3UAfDP0z0FXCTQkoXUl3Q==", - "requires": { - "react-fast-compare": "^3.0.1", - "warning": "^4.0.2" - } - }, "react-router": { "version": "5.3.4", "requires": { @@ -25131,11 +24443,6 @@ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.8.0.tgz", "integrity": "sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==" }, - "storeon": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/storeon/-/storeon-3.1.5.tgz", - "integrity": "sha512-VuW4GQr3LGQr+gqscqsOz2c9asK9N+B+8+sWs7Pj4OqU7bngYIqsPF3IYpkbmccKNWjs7wwxUAlR+gtL9cEMEg==" - }, "string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -25321,11 +24628,6 @@ } } }, - "tabbable": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/tabbable/-/tabbable-6.2.0.tgz", - "integrity": "sha512-Cat63mxsVJlzYvN51JmVXIgNoUokrIaT2zLclCXjRd8boZ0004U4KCs/sToJ75C6sdlByWxpYnb5Boif1VSFew==" - }, "tapable": { "version": "2.2.1" }, @@ -25464,14 +24766,6 @@ "ts-interface-checker": { "version": "0.1.13" }, - "ts-invariant": { - "version": "0.10.3", - "resolved": "https://registry.npmjs.org/ts-invariant/-/ts-invariant-0.10.3.tgz", - "integrity": "sha512-uivwYcQaxAucv1CzRp2n/QdYPo4ILf9VXgH19zEIjFx2EJufV16P0JtJVpYHy89DItG6Kwj2oIUjrcK5au+4tQ==", - "requires": { - "tslib": "^2.1.0" - } - }, "tslib": { "version": "2.6.2" }, @@ -25780,14 +25074,6 @@ "unist-util-stringify-position": "^4.0.0" } }, - "warning": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz", - "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", - "requires": { - "loose-envify": "^1.0.0" - } - }, "watchpack": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.2.tgz", diff --git a/website/plasma-giga-docs/src/components/Badge.tsx b/website/plasma-giga-docs/src/components/Badge.tsx new file mode 100644 index 0000000000..6bd27d9f3d --- /dev/null +++ b/website/plasma-giga-docs/src/components/Badge.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import type { FC } from 'react'; +import { Badge, Tooltip, BodyXS } from '@salutejs/plasma-giga'; + +export const DocsBadge: FC<{ title: string; desctiption: string }> = ({ title, desctiption }) => ( +
+ + {title} + + } + text={desctiption} + placement="right-start" + trigger="hover" + hoverTimeout={500} + maxWidth="400px" + hasArrow={false} + style={{ + verticalAlign: 'middle', + }} + /> +
+); diff --git a/website/plasma-giga-docs/src/components/index.ts b/website/plasma-giga-docs/src/components/index.ts index 5c25fa7c12..700d3237be 100644 --- a/website/plasma-giga-docs/src/components/index.ts +++ b/website/plasma-giga-docs/src/components/index.ts @@ -1,3 +1,4 @@ export { CodeSandbox } from './CodeSandbox'; export { Description } from './Description'; export { PropsTable } from './PropsTable'; +export { DocsBadge as Badge } from './Badge'; diff --git a/website/plasma-web-docs/docs/components/AudioPlayer.mdx b/website/plasma-web-docs/docs/components/AudioPlayer.mdx index a3b35fa7e8..c1b7750565 100644 --- a/website/plasma-web-docs/docs/components/AudioPlayer.mdx +++ b/website/plasma-web-docs/docs/components/AudioPlayer.mdx @@ -3,10 +3,12 @@ id: AudioPlayer title: AudioPlayer --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # AudioPlayer + + diff --git a/website/plasma-web-docs/docs/components/Card.mdx b/website/plasma-web-docs/docs/components/Card.mdx index e744268142..935caca6a1 100644 --- a/website/plasma-web-docs/docs/components/Card.mdx +++ b/website/plasma-web-docs/docs/components/Card.mdx @@ -3,9 +3,12 @@ id: card title: Card --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Card + + + Набор компонентов для создания карточек. diff --git a/website/plasma-web-docs/docs/components/Carousel.mdx b/website/plasma-web-docs/docs/components/Carousel.mdx index e6bd67398c..e73924e673 100644 --- a/website/plasma-web-docs/docs/components/Carousel.mdx +++ b/website/plasma-web-docs/docs/components/Carousel.mdx @@ -3,9 +3,12 @@ id: carousel title: Carousel --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Carousel + + + Набор компонентов для создания списков с прокруткой (галерей). diff --git a/website/plasma-web-docs/docs/components/ElasticGrid.mdx b/website/plasma-web-docs/docs/components/ElasticGrid.mdx index 70ad46e401..5411eae48d 100644 --- a/website/plasma-web-docs/docs/components/ElasticGrid.mdx +++ b/website/plasma-web-docs/docs/components/ElasticGrid.mdx @@ -3,10 +3,12 @@ id: ElasticGrid title: ElasticGrid --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # ElasticGrid + + diff --git a/website/plasma-web-docs/docs/components/Modal.mdx b/website/plasma-web-docs/docs/components/Modal.mdx index 7dedf16e06..732a09bd14 100644 --- a/website/plasma-web-docs/docs/components/Modal.mdx +++ b/website/plasma-web-docs/docs/components/Modal.mdx @@ -3,9 +3,11 @@ id: modal title: Modal --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Modal + + diff --git a/website/plasma-web-docs/docs/components/Overlay.mdx b/website/plasma-web-docs/docs/components/Overlay.mdx index 75bf1700de..a3ce63c170 100644 --- a/website/plasma-web-docs/docs/components/Overlay.mdx +++ b/website/plasma-web-docs/docs/components/Overlay.mdx @@ -3,9 +3,11 @@ id: overlay title: Overlay --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Overlay + + diff --git a/website/plasma-web-docs/docs/components/Portal.mdx b/website/plasma-web-docs/docs/components/Portal.mdx index ba12c7d0b4..f5df252013 100644 --- a/website/plasma-web-docs/docs/components/Portal.mdx +++ b/website/plasma-web-docs/docs/components/Portal.mdx @@ -3,9 +3,11 @@ id: portal title: Portal --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Portal + + diff --git a/website/plasma-web-docs/docs/components/PreviewGallery.mdx b/website/plasma-web-docs/docs/components/PreviewGallery.mdx index 3f09833d5d..f8557b1caa 100644 --- a/website/plasma-web-docs/docs/components/PreviewGallery.mdx +++ b/website/plasma-web-docs/docs/components/PreviewGallery.mdx @@ -3,10 +3,12 @@ id: PreviewGallery title: PreviewGallery --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # PreviewGallery + + diff --git a/website/plasma-web-docs/docs/components/Upload.mdx b/website/plasma-web-docs/docs/components/Upload.mdx index 57e59a963f..12b9bed833 100644 --- a/website/plasma-web-docs/docs/components/Upload.mdx +++ b/website/plasma-web-docs/docs/components/Upload.mdx @@ -3,10 +3,12 @@ id: Upload title: Upload --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # Upload + + diff --git a/website/plasma-web-docs/docs/components/UploadAudio.mdx b/website/plasma-web-docs/docs/components/UploadAudio.mdx index 3303736370..f04e68a0dd 100644 --- a/website/plasma-web-docs/docs/components/UploadAudio.mdx +++ b/website/plasma-web-docs/docs/components/UploadAudio.mdx @@ -3,9 +3,11 @@ id: UploadAudio title: UploadAudio --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; -## UploadAudio +# UploadAudio + + diff --git a/website/plasma-web-docs/docs/components/UploadVisual.mdx b/website/plasma-web-docs/docs/components/UploadVisual.mdx index a991d11258..43124c7160 100644 --- a/website/plasma-web-docs/docs/components/UploadVisual.mdx +++ b/website/plasma-web-docs/docs/components/UploadVisual.mdx @@ -3,10 +3,12 @@ id: UploadVisual title: UploadVisual --- -import { PropsTable, Description, StorybookLink } from '@site/src/components'; +import { PropsTable, Description, StorybookLink, Badge } from '@site/src/components'; # UploadVisual + + diff --git a/website/plasma-web-docs/src/components/Badge.tsx b/website/plasma-web-docs/src/components/Badge.tsx new file mode 100644 index 0000000000..56e029ac52 --- /dev/null +++ b/website/plasma-web-docs/src/components/Badge.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import type { FC } from 'react'; +import { Badge, Tooltip, BodyXS } from '@salutejs/plasma-web'; + +export const DocsBadge: FC<{ title: string; desctiption: string }> = ({ title, desctiption }) => ( +
+ + {title} + + } + text={desctiption} + placement="right-start" + trigger="hover" + hoverTimeout={500} + maxWidth="400px" + hasArrow={false} + style={{ + verticalAlign: 'middle', + }} + /> +
+); diff --git a/website/plasma-web-docs/src/components/index.ts b/website/plasma-web-docs/src/components/index.ts index cc8153c866..0014047f8f 100644 --- a/website/plasma-web-docs/src/components/index.ts +++ b/website/plasma-web-docs/src/components/index.ts @@ -2,3 +2,4 @@ export { CodeSandbox } from './CodeSandbox'; export { Description } from './Description'; export { PropsTable } from './PropsTable'; export { StorybookLink } from './Storybook'; +export { DocsBadge as Badge } from './Badge'; diff --git a/website/sdds-cs-docs/src/components/Badge.tsx b/website/sdds-cs-docs/src/components/Badge.tsx new file mode 100644 index 0000000000..7169463b95 --- /dev/null +++ b/website/sdds-cs-docs/src/components/Badge.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import type { FC } from 'react'; +import { Badge, Tooltip, BodyXS } from '@salutejs/sdds-cs'; + +export const DocsBadge: FC<{ title: string; desctiption: string }> = ({ title, desctiption }) => ( +
+ + {title} + + } + text={desctiption} + placement="right-start" + trigger="hover" + hoverTimeout={500} + maxWidth="400px" + hasArrow={false} + style={{ + verticalAlign: 'middle', + }} + /> +
+); diff --git a/website/sdds-cs-docs/src/components/index.ts b/website/sdds-cs-docs/src/components/index.ts index 5c25fa7c12..700d3237be 100644 --- a/website/sdds-cs-docs/src/components/index.ts +++ b/website/sdds-cs-docs/src/components/index.ts @@ -1,3 +1,4 @@ export { CodeSandbox } from './CodeSandbox'; export { Description } from './Description'; export { PropsTable } from './PropsTable'; +export { DocsBadge as Badge } from './Badge'; diff --git a/website/sdds-dfa-docs/src/components/Badge.tsx b/website/sdds-dfa-docs/src/components/Badge.tsx new file mode 100644 index 0000000000..2df711db9c --- /dev/null +++ b/website/sdds-dfa-docs/src/components/Badge.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import type { FC } from 'react'; +import { Badge, Tooltip, BodyXS } from '@salutejs/sdds-dfa'; + +export const DocsBadge: FC<{ title: string; desctiption: string }> = ({ title, desctiption }) => ( +
+ + {title} + + } + text={desctiption} + placement="right-start" + trigger="hover" + hoverTimeout={500} + maxWidth="400px" + hasArrow={false} + style={{ + verticalAlign: 'middle', + }} + /> +
+); diff --git a/website/sdds-dfa-docs/src/components/index.ts b/website/sdds-dfa-docs/src/components/index.ts index 5c25fa7c12..700d3237be 100644 --- a/website/sdds-dfa-docs/src/components/index.ts +++ b/website/sdds-dfa-docs/src/components/index.ts @@ -1,3 +1,4 @@ export { CodeSandbox } from './CodeSandbox'; export { Description } from './Description'; export { PropsTable } from './PropsTable'; +export { DocsBadge as Badge } from './Badge'; diff --git a/website/sdds-insol-docs/docs/components/Overlay.mdx b/website/sdds-insol-docs/docs/components/Overlay.mdx index dee1d2b430..e7c7baffec 100644 --- a/website/sdds-insol-docs/docs/components/Overlay.mdx +++ b/website/sdds-insol-docs/docs/components/Overlay.mdx @@ -3,8 +3,10 @@ id: overlay title: Overlay --- -import { PropsTable, Description } from '@site/src/components'; +import { PropsTable, Description, Badge } from '@site/src/components'; # Overlay + + diff --git a/website/sdds-insol-docs/docs/components/Portal.mdx b/website/sdds-insol-docs/docs/components/Portal.mdx index 50e3947321..0ce6d11beb 100644 --- a/website/sdds-insol-docs/docs/components/Portal.mdx +++ b/website/sdds-insol-docs/docs/components/Portal.mdx @@ -3,9 +3,12 @@ id: portal title: Portal --- -import { PropsTable, Description } from '@site/src/components'; +import { PropsTable, Description, Badge } from '@site/src/components'; # Portal + + + diff --git a/website/sdds-insol-docs/src/components/Badge.tsx b/website/sdds-insol-docs/src/components/Badge.tsx new file mode 100644 index 0000000000..71594fac8d --- /dev/null +++ b/website/sdds-insol-docs/src/components/Badge.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import type { FC } from 'react'; +import { Badge, Tooltip, BodyXS } from '@salutejs/sdds-insol'; + +export const DocsBadge: FC<{ title: string; desctiption: string }> = ({ title, desctiption }) => ( +
+ + {title} + + } + text={desctiption} + placement="right-start" + trigger="hover" + hoverTimeout={500} + maxWidth="400px" + hasArrow={false} + style={{ + verticalAlign: 'middle', + }} + /> +
+); diff --git a/website/sdds-insol-docs/src/components/index.ts b/website/sdds-insol-docs/src/components/index.ts index 5c25fa7c12..700d3237be 100644 --- a/website/sdds-insol-docs/src/components/index.ts +++ b/website/sdds-insol-docs/src/components/index.ts @@ -1,3 +1,4 @@ export { CodeSandbox } from './CodeSandbox'; export { Description } from './Description'; export { PropsTable } from './PropsTable'; +export { DocsBadge as Badge } from './Badge'; diff --git a/website/sdds-serv-docs/docs/components/Overlay.mdx b/website/sdds-serv-docs/docs/components/Overlay.mdx index dee1d2b430..9a97f67c68 100644 --- a/website/sdds-serv-docs/docs/components/Overlay.mdx +++ b/website/sdds-serv-docs/docs/components/Overlay.mdx @@ -3,8 +3,11 @@ id: overlay title: Overlay --- -import { PropsTable, Description } from '@site/src/components'; +import { PropsTable, Description, Badge } from '@site/src/components'; # Overlay + + + diff --git a/website/sdds-serv-docs/docs/components/Portal.mdx b/website/sdds-serv-docs/docs/components/Portal.mdx index ba9d3abacd..f5724a38a6 100644 --- a/website/sdds-serv-docs/docs/components/Portal.mdx +++ b/website/sdds-serv-docs/docs/components/Portal.mdx @@ -3,9 +3,12 @@ id: portal title: Portal --- -import { PropsTable, Description } from '@site/src/components'; +import { PropsTable, Description, Badge } from '@site/src/components'; # Portal + + + diff --git a/website/sdds-serv-docs/src/components/Badge.tsx b/website/sdds-serv-docs/src/components/Badge.tsx new file mode 100644 index 0000000000..033e152c3d --- /dev/null +++ b/website/sdds-serv-docs/src/components/Badge.tsx @@ -0,0 +1,29 @@ +import React from 'react'; +import type { FC } from 'react'; +import { Badge, Tooltip, BodyXS } from '@salutejs/sdds-serv'; + +export const DocsBadge: FC<{ title: string; desctiption: string }> = ({ title, desctiption }) => ( +
+ + {title} + + } + text={desctiption} + placement="right-start" + trigger="hover" + hoverTimeout={500} + maxWidth="400px" + hasArrow={false} + style={{ + verticalAlign: 'middle', + }} + /> +
+); diff --git a/website/sdds-serv-docs/src/components/index.ts b/website/sdds-serv-docs/src/components/index.ts index 5c25fa7c12..700d3237be 100644 --- a/website/sdds-serv-docs/src/components/index.ts +++ b/website/sdds-serv-docs/src/components/index.ts @@ -1,3 +1,4 @@ export { CodeSandbox } from './CodeSandbox'; export { Description } from './Description'; export { PropsTable } from './PropsTable'; +export { DocsBadge as Badge } from './Badge';