mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
Add new overlay ui module with tooltip component
Our current tooltip component has been causing ui glitches for over a year now because it did not use react portal to render the tooltip content outside the react render tree which interfered with html/css. The new component is based on a fully accessible component by radix-ui. The styling, for now, has been kept from the original tooltip. Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
This commit is contained in:
committed by
SCM-Manager
parent
05451d4b49
commit
d5e5490b53
4
gradle/changelog/tooltip.yaml
Normal file
4
gradle/changelog/tooltip.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
- type: added
|
||||||
|
description: New overlay ui module with tooltip component
|
||||||
|
- type: fixed
|
||||||
|
description: Buttons in diff panel headers stuck together
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -26,7 +26,7 @@ import { FC, ReactNode, useState } from "react";
|
|||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import FullscreenModal from "../modals/FullscreenModal";
|
import FullscreenModal from "../modals/FullscreenModal";
|
||||||
import Tooltip from "../Tooltip";
|
import { Tooltip } from "@scm-manager/ui-overlays";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
modalTitle: string;
|
modalTitle: string;
|
||||||
@@ -46,34 +46,36 @@ const OpenInFullscreenButton: FC<Props> = ({ modalTitle, modalBody, tooltipStyle
|
|||||||
const [showModal, setShowModal] = useState(false);
|
const [showModal, setShowModal] = useState(false);
|
||||||
|
|
||||||
const tooltip = t("diff.fullscreen.open");
|
const tooltip = t("diff.fullscreen.open");
|
||||||
const content = (
|
const button = (
|
||||||
<>
|
<Button
|
||||||
<Button
|
title={tooltipStyle === "htmlTitle" ? tooltip : undefined}
|
||||||
title={tooltipStyle === "htmlTitle" ? tooltip : undefined}
|
className="button"
|
||||||
className="button"
|
onClick={() => setShowModal(true)}
|
||||||
onClick={() => setShowModal(true)}
|
aria-label={tooltip}
|
||||||
aria-label={tooltip}
|
>
|
||||||
>
|
<i className="fas fa-search-plus" />
|
||||||
<i className="fas fa-search-plus" />
|
</Button>
|
||||||
</Button>
|
);
|
||||||
{showModal && (
|
const modal = showModal && (
|
||||||
<FullscreenModal
|
<FullscreenModal title={modalTitle} closeFunction={() => setShowModal(false)} body={modalBody} active={showModal} />
|
||||||
title={modalTitle}
|
|
||||||
closeFunction={() => setShowModal(false)}
|
|
||||||
body={modalBody}
|
|
||||||
active={showModal}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (tooltipStyle === "htmlTitle") {
|
if (tooltipStyle === "htmlTitle") {
|
||||||
return <>{content}</>;
|
return (
|
||||||
|
<>
|
||||||
|
{button}
|
||||||
|
{modal}
|
||||||
|
</>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip message={tooltip} location="bottom">
|
<>
|
||||||
{content}
|
{modal}
|
||||||
</Tooltip>
|
<Tooltip message={tooltip} side="top">
|
||||||
|
{button}
|
||||||
|
</Tooltip>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
import React, { FC, MouseEvent } from "react";
|
import React, { FC, MouseEvent } from "react";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import Tooltip from "../Tooltip";
|
import { Tooltip } from "@scm-manager/ui-overlays";
|
||||||
|
|
||||||
const Button = styled.button`
|
const Button = styled.button`
|
||||||
width: 50px;
|
width: 50px;
|
||||||
@@ -45,7 +45,7 @@ const DiffButton: FC<Props> = ({ icon, tooltip, onClick }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tooltip message={tooltip} location="bottom">
|
<Tooltip message={tooltip} side="top">
|
||||||
<Button aria-label={tooltip} className="button is-clickable" onClick={handleClick}>
|
<Button aria-label={tooltip} className="button is-clickable" onClick={handleClick}>
|
||||||
<i className={`fas fa-${icon}`} />
|
<i className={`fas fa-${icon}`} />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
import React, { FC } from "react";
|
import React, { FC } from "react";
|
||||||
import styled from "styled-components";
|
import styled from "styled-components";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import Tooltip from "../Tooltip";
|
import { Tooltip } from "@scm-manager/ui-overlays";
|
||||||
import Icon from "../Icon";
|
import Icon from "../Icon";
|
||||||
|
|
||||||
const Button = styled(Link)`
|
const Button = styled(Link)`
|
||||||
@@ -41,7 +41,7 @@ type Props = {
|
|||||||
|
|
||||||
const JumpToFileButton: FC<Props> = ({ link, tooltip }) => {
|
const JumpToFileButton: FC<Props> = ({ link, tooltip }) => {
|
||||||
return (
|
return (
|
||||||
<Tooltip message={tooltip} location="bottom">
|
<Tooltip message={tooltip} side="top">
|
||||||
<Button aria-label={tooltip} className="button is-clickable" to={link}>
|
<Button aria-label={tooltip} className="button is-clickable" to={link}>
|
||||||
<Icon name="file-code" color="inherit" alt="" />
|
<Icon name="file-code" color="inherit" alt="" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
57
scm-ui/ui-overlays/.storybook/RemoveThemesPlugin.js
Normal file
57
scm-ui/ui-overlays/.storybook/RemoveThemesPlugin.js
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
/*
|
||||||
|
* MIT License
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||||
|
|
||||||
|
class RemoveThemesPlugin {
|
||||||
|
apply (compiler) {
|
||||||
|
compiler.hooks.compilation.tap('RemoveThemesPlugin', (compilation) => {
|
||||||
|
|
||||||
|
HtmlWebpackPlugin.getHooks(compilation).beforeAssetTagGeneration.tapAsync(
|
||||||
|
'RemoveThemesPlugin',
|
||||||
|
(data, cb) => {
|
||||||
|
|
||||||
|
// remove generated style-loader bundles from the page
|
||||||
|
// there should be a better way, which does not generate the bundles at all
|
||||||
|
// but for now it works
|
||||||
|
if (data.assets.js) {
|
||||||
|
data.assets.js = data.assets.js.filter(bundle => !bundle.startsWith("ui-theme-"))
|
||||||
|
.filter(bundle => !bundle.startsWith("runtime~ui-theme-"))
|
||||||
|
}
|
||||||
|
|
||||||
|
// remove css links to avoid conflicts with the themes
|
||||||
|
// so we remove all and add our own via preview-head.html
|
||||||
|
if (data.assets.css) {
|
||||||
|
data.assets.css = data.assets.css.filter(css => !css.startsWith("ui-theme-"))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tell webpack to move on
|
||||||
|
cb(null, data)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = RemoveThemesPlugin
|
||||||
89
scm-ui/ui-overlays/.storybook/main.js
Normal file
89
scm-ui/ui-overlays/.storybook/main.js
Normal file
@@ -0,0 +1,89 @@
|
|||||||
|
/*
|
||||||
|
* MIT License
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const path = require("path");
|
||||||
|
const fs = require("fs");
|
||||||
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||||
|
const RemoveThemesPlugin = require("./RemoveThemesPlugin");
|
||||||
|
|
||||||
|
const root = path.resolve("..");
|
||||||
|
|
||||||
|
const themedir = path.join(root, "ui-styles", "src");
|
||||||
|
|
||||||
|
const themes = fs
|
||||||
|
.readdirSync(themedir)
|
||||||
|
.map((filename) => path.parse(filename))
|
||||||
|
.filter((p) => p.ext === ".scss")
|
||||||
|
.reduce((entries, current) => ({ ...entries, [`ui-theme-${current.name}`]: path.join(themedir, current.base) }), {});
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
typescript: { reactDocgen: false },
|
||||||
|
core: {
|
||||||
|
builder: "webpack5",
|
||||||
|
},
|
||||||
|
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx|mdx)"],
|
||||||
|
addons: [
|
||||||
|
"storybook-addon-i18next",
|
||||||
|
"storybook-addon-themes",
|
||||||
|
"@storybook/addon-links",
|
||||||
|
"@storybook/addon-essentials",
|
||||||
|
"@storybook/addon-interactions",
|
||||||
|
"@storybook/addon-a11y",
|
||||||
|
"storybook-addon-pseudo-states",
|
||||||
|
"storybook-addon-mock",
|
||||||
|
],
|
||||||
|
framework: "@storybook/react",
|
||||||
|
webpackFinal: async (config) => {
|
||||||
|
// add our themes to webpack entry points
|
||||||
|
config.entry = {
|
||||||
|
main: config.entry,
|
||||||
|
...themes,
|
||||||
|
};
|
||||||
|
|
||||||
|
// create separate css files for our themes
|
||||||
|
config.plugins.push(
|
||||||
|
new MiniCssExtractPlugin({
|
||||||
|
filename: "[name].css",
|
||||||
|
ignoreOrder: false,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
|
config.module.rules.push({
|
||||||
|
test: /\.scss$/,
|
||||||
|
use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
|
||||||
|
});
|
||||||
|
|
||||||
|
// the html-webpack-plugin adds the generated css and js files to the iframe,
|
||||||
|
// which overrides our manually loaded css files.
|
||||||
|
// So we use a custom plugin which uses a hook of html-webpack-plugin
|
||||||
|
// to filter our themes from the output.
|
||||||
|
config.plugins.push(new RemoveThemesPlugin());
|
||||||
|
|
||||||
|
// force cjs instead of esm
|
||||||
|
// https://github.com/tannerlinsley/react-query/issues/3513
|
||||||
|
config.resolve.alias["react-query/devtools"] = require.resolve("react-query/devtools");
|
||||||
|
|
||||||
|
return config;
|
||||||
|
},
|
||||||
|
};
|
||||||
26
scm-ui/ui-overlays/.storybook/preview-head.html
Normal file
26
scm-ui/ui-overlays/.storybook/preview-head.html
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<!--
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2020-present Cloudogu GmbH and Contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<link id="ui-theme" data-theme="light" rel="stylesheet" type="text/css" href="/ui-theme-light.css">
|
||||||
|
|
||||||
72
scm-ui/ui-overlays/.storybook/preview.js
Normal file
72
scm-ui/ui-overlays/.storybook/preview.js
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* MIT License
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import React, { useEffect } from "react";
|
||||||
|
import { I18nextProvider, initReactI18next } from "react-i18next";
|
||||||
|
import i18n from "i18next";
|
||||||
|
|
||||||
|
i18n.use(initReactI18next).init({
|
||||||
|
whitelist: ["en", "de"],
|
||||||
|
lng: "en",
|
||||||
|
fallbackLng: "en",
|
||||||
|
interpolation: {
|
||||||
|
escapeValue: false,
|
||||||
|
},
|
||||||
|
react: {
|
||||||
|
useSuspense: false,
|
||||||
|
},
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
const Decorator = ({ children, themeName }) => {
|
||||||
|
useEffect(() => {
|
||||||
|
const link = document.querySelector("#ui-theme");
|
||||||
|
if (link && link["data-theme"] !== themeName) {
|
||||||
|
link.href = `ui-theme-${themeName}.css`;
|
||||||
|
link["data-theme"] = themeName;
|
||||||
|
}
|
||||||
|
}, [themeName]);
|
||||||
|
return <>{children}</>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const parameters = {
|
||||||
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
||||||
|
decorators: [
|
||||||
|
(Story) => (
|
||||||
|
<I18nextProvider i18n={i18n}>
|
||||||
|
<Story />
|
||||||
|
</I18nextProvider>
|
||||||
|
),
|
||||||
|
],
|
||||||
|
themes: {
|
||||||
|
Decorator,
|
||||||
|
clearable: false,
|
||||||
|
default: "light",
|
||||||
|
list: [
|
||||||
|
{ name: "light", color: "#fff" },
|
||||||
|
{ name: "highcontrast", color: "#050514" },
|
||||||
|
{ name: "dark", color: "#121212" },
|
||||||
|
],
|
||||||
|
},
|
||||||
|
};
|
||||||
49
scm-ui/ui-overlays/package.json
Normal file
49
scm-ui/ui-overlays/package.json
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
{
|
||||||
|
"name": "@scm-manager/ui-overlays",
|
||||||
|
"private": false,
|
||||||
|
"version": "2.40.2-SNAPSHOT",
|
||||||
|
"main": "build/index.js",
|
||||||
|
"types": "build/index.d.ts",
|
||||||
|
"module": "build/index.mjs",
|
||||||
|
"license": "MIT",
|
||||||
|
"scripts": {
|
||||||
|
"build": "tsup ./src/index.ts -d build --format esm,cjs --dts",
|
||||||
|
"storybook": "start-storybook -p 6006",
|
||||||
|
"build-storybook": "build-storybook"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@babel/core": "^7.19.0",
|
||||||
|
"@scm-manager/eslint-config": "^2.16.0",
|
||||||
|
"@scm-manager/prettier-config": "^2.10.1",
|
||||||
|
"@scm-manager/tsconfig": "^2.13.0",
|
||||||
|
"@scm-manager/ui-styles": "2.40.2-SNAPSHOT",
|
||||||
|
"@storybook/addon-actions": "^6.5.10",
|
||||||
|
"@storybook/addon-essentials": "^6.5.10",
|
||||||
|
"@storybook/addon-interactions": "^6.5.10",
|
||||||
|
"@storybook/addon-links": "^6.5.10",
|
||||||
|
"@storybook/builder-webpack5": "^6.5.10",
|
||||||
|
"@storybook/manager-webpack5": "^6.5.10",
|
||||||
|
"@storybook/react": "^6.5.10",
|
||||||
|
"@storybook/testing-library": "^0.0.13",
|
||||||
|
"@storybook/addon-docs": "^6.5.14",
|
||||||
|
"babel-loader": "^8.2.5",
|
||||||
|
"storybook-addon-mock": "^3.2.0",
|
||||||
|
"storybook-addon-themes": "^6.1.0",
|
||||||
|
"tsup": "^6.2.3"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"classnames": "^2.3.1",
|
||||||
|
"react": "17",
|
||||||
|
"styled-components": "^5.3.6"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@radix-ui/react-tooltip": "1.0.2"
|
||||||
|
},
|
||||||
|
"prettier": "@scm-manager/prettier-config",
|
||||||
|
"eslintConfig": {
|
||||||
|
"extends": "@scm-manager/eslint-config"
|
||||||
|
},
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
|
}
|
||||||
|
}
|
||||||
25
scm-ui/ui-overlays/src/index.ts
Normal file
25
scm-ui/ui-overlays/src/index.ts
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* MIT License
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export { default as Tooltip } from "./tooltip/Tooltip";
|
||||||
41
scm-ui/ui-overlays/src/tooltip/Tooltip.examples.js
Normal file
41
scm-ui/ui-overlays/src/tooltip/Tooltip.examples.js
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
/*
|
||||||
|
* MIT License
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export const LongText =
|
||||||
|
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.";
|
||||||
|
|
||||||
|
export const ShortList = ` * a
|
||||||
|
* b
|
||||||
|
* c
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const List = ` Characters:
|
||||||
|
|
||||||
|
- Arthur Dent
|
||||||
|
- Ford Prefect
|
||||||
|
- Zaphod Beeblebrox
|
||||||
|
- Marvin the Paranoid Android
|
||||||
|
- Trillian
|
||||||
|
- Slartibartfast
|
||||||
|
`;
|
||||||
52
scm-ui/ui-overlays/src/tooltip/Tooltip.stories.mdx
Normal file
52
scm-ui/ui-overlays/src/tooltip/Tooltip.stories.mdx
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
import { Meta, Story } from "@storybook/addon-docs";
|
||||||
|
import Tooltip from "./Tooltip"
|
||||||
|
import { List, LongText, ShortList } from "./Tooltip.examples";
|
||||||
|
|
||||||
|
<Meta title="Tooltip"/>
|
||||||
|
|
||||||
|
Here will be some documentation for the Tooltip component.
|
||||||
|
|
||||||
|
<Story name="Default">
|
||||||
|
<Tooltip message="I am a tooltip!">
|
||||||
|
<button>Hover me</button>
|
||||||
|
</Tooltip>
|
||||||
|
</Story>
|
||||||
|
|
||||||
|
<Story name="With Styling">
|
||||||
|
<Tooltip message="I am a tooltip!" className="has-text-warning">
|
||||||
|
<button>Hover me</button>
|
||||||
|
</Tooltip>
|
||||||
|
</Story>
|
||||||
|
|
||||||
|
<Story name="Long Text">
|
||||||
|
<Tooltip
|
||||||
|
message={LongText}>
|
||||||
|
<button>Hover me</button>
|
||||||
|
</Tooltip>
|
||||||
|
</Story>
|
||||||
|
|
||||||
|
<Story name="List">
|
||||||
|
<Tooltip message={List}>
|
||||||
|
<button>Hover me</button>
|
||||||
|
</Tooltip>
|
||||||
|
</Story>
|
||||||
|
|
||||||
|
<Story name="Short List">
|
||||||
|
<Tooltip message={ShortList}>
|
||||||
|
<button>Hover me</button>
|
||||||
|
</Tooltip>
|
||||||
|
</Story>
|
||||||
|
|
||||||
|
<Story name="With Link">
|
||||||
|
<Tooltip message={<p>
|
||||||
|
For more information look up the documentation on the <a href="https://scm-manager.org">SCM-Manager</a> Website.
|
||||||
|
</p>}>
|
||||||
|
<button>Hover me</button>
|
||||||
|
</Tooltip>
|
||||||
|
</Story>
|
||||||
|
|
||||||
|
<Story name="Adjust Position">
|
||||||
|
<Tooltip message="I should show where there is space" side="left">
|
||||||
|
<button>Hover me</button>
|
||||||
|
</Tooltip>
|
||||||
|
</Story>
|
||||||
95
scm-ui/ui-overlays/src/tooltip/Tooltip.tsx
Normal file
95
scm-ui/ui-overlays/src/tooltip/Tooltip.tsx
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
/*
|
||||||
|
* MIT License
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in all
|
||||||
|
* copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
* SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import React, { ReactElement, ReactNode } from "react";
|
||||||
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
||||||
|
import classNames from "classnames";
|
||||||
|
import styled from "styled-components";
|
||||||
|
|
||||||
|
const StyledContent = styled(RadixTooltip.Content)`
|
||||||
|
overflow: hidden;
|
||||||
|
hyphens: auto;
|
||||||
|
text-overflow: clip;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
max-width: 15rem;
|
||||||
|
word-break: keep-all;
|
||||||
|
z-index: 1020;
|
||||||
|
`;
|
||||||
|
|
||||||
|
const StyledArrow = styled(RadixTooltip.Arrow)`
|
||||||
|
z-index: 1020;
|
||||||
|
`;
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
/**
|
||||||
|
* The message to be displayed in the overlay.
|
||||||
|
*/
|
||||||
|
message: ReactNode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* It is required to provide a {@link ReactElement} as the single child because listeners and metadata is going to be
|
||||||
|
* attached to it automatically.
|
||||||
|
*/
|
||||||
|
children: ReactElement;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class to be applied to the content container.
|
||||||
|
*/
|
||||||
|
className?: string;
|
||||||
|
} & Pick<RadixTooltip.TooltipContentProps, "side">;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Displays the given {@link Props#message} whenever the provided {@link Props#children} is hovered or focused.
|
||||||
|
*
|
||||||
|
* @since 2.41.0
|
||||||
|
* @beta
|
||||||
|
*/
|
||||||
|
const Tooltip = React.forwardRef<HTMLDivElement, Props>(({ children, className, message, side }, ref) => (
|
||||||
|
<RadixTooltip.Provider>
|
||||||
|
<RadixTooltip.Root>
|
||||||
|
<RadixTooltip.Trigger asChild>{children}</RadixTooltip.Trigger>
|
||||||
|
<RadixTooltip.Portal>
|
||||||
|
<StyledContent
|
||||||
|
className={classNames(
|
||||||
|
"is-size-7",
|
||||||
|
"is-family-primary",
|
||||||
|
"has-rounded-border",
|
||||||
|
"has-text-white",
|
||||||
|
"has-background-grey-dark",
|
||||||
|
"has-text-weight-semibold",
|
||||||
|
"p-2",
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
side={side}
|
||||||
|
sideOffset={5}
|
||||||
|
ref={ref}
|
||||||
|
>
|
||||||
|
{message}
|
||||||
|
<StyledArrow className="tooltip-arrow-fill-color" />
|
||||||
|
</StyledContent>
|
||||||
|
</RadixTooltip.Portal>
|
||||||
|
</RadixTooltip.Root>
|
||||||
|
</RadixTooltip.Provider>
|
||||||
|
));
|
||||||
|
export default Tooltip;
|
||||||
3
scm-ui/ui-overlays/tsconfig.json
Normal file
3
scm-ui/ui-overlays/tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "@scm-manager/tsconfig"
|
||||||
|
}
|
||||||
@@ -61,6 +61,7 @@ module.exports = function (mode) {
|
|||||||
"@scm-manager/ui-components",
|
"@scm-manager/ui-components",
|
||||||
"@scm-manager/ui-forms",
|
"@scm-manager/ui-forms",
|
||||||
"@scm-manager/ui-buttons",
|
"@scm-manager/ui-buttons",
|
||||||
|
"@scm-manager/ui-overlays",
|
||||||
"classnames",
|
"classnames",
|
||||||
"query-string",
|
"query-string",
|
||||||
"redux",
|
"redux",
|
||||||
|
|||||||
@@ -37,3 +37,7 @@
|
|||||||
.tooltip-arrow-left-border-color {
|
.tooltip-arrow-left-border-color {
|
||||||
border-color: transparent transparent transparent $grey-dark;
|
border-color: transparent transparent transparent $grey-dark;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tooltip-arrow-fill-color {
|
||||||
|
fill: $grey-dark;
|
||||||
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
"@scm-manager/ui-legacy": "2.40.2-SNAPSHOT",
|
"@scm-manager/ui-legacy": "2.40.2-SNAPSHOT",
|
||||||
"@scm-manager/ui-forms": "2.40.2-SNAPSHOT",
|
"@scm-manager/ui-forms": "2.40.2-SNAPSHOT",
|
||||||
"@scm-manager/ui-buttons": "2.40.2-SNAPSHOT",
|
"@scm-manager/ui-buttons": "2.40.2-SNAPSHOT",
|
||||||
|
"@scm-manager/ui-overlays": "2.40.2-SNAPSHOT",
|
||||||
"classnames": "^2.2.5",
|
"classnames": "^2.2.5",
|
||||||
"history": "^4.10.1",
|
"history": "^4.10.1",
|
||||||
"i18next": "21",
|
"i18next": "21",
|
||||||
|
|||||||
210
yarn.lock
210
yarn.lock
@@ -1250,6 +1250,13 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
regenerator-runtime "^0.13.11"
|
regenerator-runtime "^0.13.11"
|
||||||
|
|
||||||
|
"@babel/runtime@^7.13.10":
|
||||||
|
version "7.20.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.7.tgz#fcb41a5a70550e04a7b708037c7c32f7f356d8fd"
|
||||||
|
integrity sha512-UF0tvkUtxwAgZ5W/KrkHf0Rn0fdnLDU9ScxBrEVNUprE/MzirjK4MJUX1/BVDv00Sv8cljtukVK1aky++X1SjQ==
|
||||||
|
dependencies:
|
||||||
|
regenerator-runtime "^0.13.11"
|
||||||
|
|
||||||
"@babel/runtime@~7.5.4":
|
"@babel/runtime@~7.5.4":
|
||||||
version "7.5.5"
|
version "7.5.5"
|
||||||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.5.5.tgz#74fba56d35efbeca444091c7850ccd494fd2f132"
|
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.5.5.tgz#74fba56d35efbeca444091c7850ccd494fd2f132"
|
||||||
@@ -1675,6 +1682,26 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@ffmpeg-installer/win32-x64/-/win32-x64-4.1.0.tgz#17e8699b5798d4c60e36e2d6326a8ebe5e95a2c5"
|
resolved "https://registry.yarnpkg.com/@ffmpeg-installer/win32-x64/-/win32-x64-4.1.0.tgz#17e8699b5798d4c60e36e2d6326a8ebe5e95a2c5"
|
||||||
integrity sha512-Drt5u2vzDnIONf4ZEkKtFlbvwj6rI3kxw1Ck9fpudmtgaZIHD4ucsWB2lCZBXRxJgXR+2IMSti+4rtM4C4rXgg==
|
integrity sha512-Drt5u2vzDnIONf4ZEkKtFlbvwj6rI3kxw1Ck9fpudmtgaZIHD4ucsWB2lCZBXRxJgXR+2IMSti+4rtM4C4rXgg==
|
||||||
|
|
||||||
|
"@floating-ui/core@^0.7.3":
|
||||||
|
version "0.7.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/@floating-ui/core/-/core-0.7.3.tgz#d274116678ffae87f6b60e90f88cc4083eefab86"
|
||||||
|
integrity sha512-buc8BXHmG9l82+OQXOFU3Kr2XQx9ys01U/Q9HMIrZ300iLc8HLMgh7dcCqgYzAzf4BkoQvDcXf5Y+CuEZ5JBYg==
|
||||||
|
|
||||||
|
"@floating-ui/dom@^0.5.3":
|
||||||
|
version "0.5.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/@floating-ui/dom/-/dom-0.5.4.tgz#4eae73f78bcd4bd553ae2ade30e6f1f9c73fe3f1"
|
||||||
|
integrity sha512-419BMceRLq0RrmTSDxn8hf9R3VCJv2K9PUfugh5JyEFmdjzDo+e8U5EdR8nzKq8Yj1htzLm3b6eQEEam3/rrtg==
|
||||||
|
dependencies:
|
||||||
|
"@floating-ui/core" "^0.7.3"
|
||||||
|
|
||||||
|
"@floating-ui/react-dom@0.7.2":
|
||||||
|
version "0.7.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@floating-ui/react-dom/-/react-dom-0.7.2.tgz#0bf4ceccb777a140fc535c87eb5d6241c8e89864"
|
||||||
|
integrity sha512-1T0sJcpHgX/u4I1OzIEhlcrvkUN8ln39nz7fMoE/2HDHrPiMFoOGR7++GYyfUmIQHkkrTinaeQsO3XWubjSvGg==
|
||||||
|
dependencies:
|
||||||
|
"@floating-ui/dom" "^0.5.3"
|
||||||
|
use-isomorphic-layout-effect "^1.1.1"
|
||||||
|
|
||||||
"@fortawesome/fontawesome-free@^5.11.2":
|
"@fortawesome/fontawesome-free@^5.11.2":
|
||||||
version "5.15.4"
|
version "5.15.4"
|
||||||
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz#ecda5712b61ac852c760d8b3c79c96adca5554e5"
|
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz#ecda5712b61ac852c760d8b3c79c96adca5554e5"
|
||||||
@@ -2343,6 +2370,184 @@
|
|||||||
resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.21.tgz#5de5a2385a35309427f6011992b544514d559aa1"
|
resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.21.tgz#5de5a2385a35309427f6011992b544514d559aa1"
|
||||||
integrity sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==
|
integrity sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==
|
||||||
|
|
||||||
|
"@radix-ui/primitive@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/primitive/-/primitive-1.0.0.tgz#e1d8ef30b10ea10e69c76e896f608d9276352253"
|
||||||
|
integrity sha512-3e7rn8FDMin4CgeL7Z/49smCA3rFYY3Ha2rUQ7HRWFadS5iCRw08ZgVT1LaNTCNqgvrUiyczLflrVrF0SRQtNA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
|
||||||
|
"@radix-ui/react-arrow@1.0.1":
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-arrow/-/react-arrow-1.0.1.tgz#5246adf79e97f89e819af68da51ddcf349ecf1c4"
|
||||||
|
integrity sha512-1yientwXqXcErDHEv8av9ZVNEBldH8L9scVR3is20lL+jOCfcJyMFZFEY5cgIrgexsq1qggSXqiEL/d/4f+QXA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/react-primitive" "1.0.1"
|
||||||
|
|
||||||
|
"@radix-ui/react-compose-refs@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-compose-refs/-/react-compose-refs-1.0.0.tgz#37595b1f16ec7f228d698590e78eeed18ff218ae"
|
||||||
|
integrity sha512-0KaSv6sx787/hK3eF53iOkiSLwAGlFMx5lotrqD2pTjB18KbybKoEIgkNZTKC60YECDQTKGTRcDBILwZVqVKvA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
|
||||||
|
"@radix-ui/react-context@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-context/-/react-context-1.0.0.tgz#f38e30c5859a9fb5e9aa9a9da452ee3ed9e0aee0"
|
||||||
|
integrity sha512-1pVM9RfOQ+n/N5PJK33kRSKsr1glNxomxONs5c49MliinBY6Yw2Q995qfBUUo0/Mbg05B/sGA0gkgPI7kmSHBg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
|
||||||
|
"@radix-ui/react-dismissable-layer@1.0.2":
|
||||||
|
version "1.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-dismissable-layer/-/react-dismissable-layer-1.0.2.tgz#f04d1061bddf00b1ca304148516b9ddc62e45fb2"
|
||||||
|
integrity sha512-WjJzMrTWROozDqLB0uRWYvj4UuXsM/2L19EmQ3Au+IJWqwvwq9Bwd+P8ivo0Deg9JDPArR1I6MbWNi1CmXsskg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/primitive" "1.0.0"
|
||||||
|
"@radix-ui/react-compose-refs" "1.0.0"
|
||||||
|
"@radix-ui/react-primitive" "1.0.1"
|
||||||
|
"@radix-ui/react-use-callback-ref" "1.0.0"
|
||||||
|
"@radix-ui/react-use-escape-keydown" "1.0.2"
|
||||||
|
|
||||||
|
"@radix-ui/react-id@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-id/-/react-id-1.0.0.tgz#8d43224910741870a45a8c9d092f25887bb6d11e"
|
||||||
|
integrity sha512-Q6iAB/U7Tq3NTolBBQbHTgclPmGWE3OlktGGqrClPozSw4vkQ1DfQAOtzgRPecKsMdJINE05iaoDUG8tRzCBjw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/react-use-layout-effect" "1.0.0"
|
||||||
|
|
||||||
|
"@radix-ui/react-popper@1.0.1":
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-popper/-/react-popper-1.0.1.tgz#9fa8a6a493404afa225866a5cd75af23d141baa0"
|
||||||
|
integrity sha512-J4Vj7k3k+EHNWgcKrE+BLlQfpewxA7Zd76h5I0bIa+/EqaIZ3DuwrbPj49O3wqN+STnXsBuxiHLiF0iU3yfovw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@floating-ui/react-dom" "0.7.2"
|
||||||
|
"@radix-ui/react-arrow" "1.0.1"
|
||||||
|
"@radix-ui/react-compose-refs" "1.0.0"
|
||||||
|
"@radix-ui/react-context" "1.0.0"
|
||||||
|
"@radix-ui/react-primitive" "1.0.1"
|
||||||
|
"@radix-ui/react-use-layout-effect" "1.0.0"
|
||||||
|
"@radix-ui/react-use-rect" "1.0.0"
|
||||||
|
"@radix-ui/react-use-size" "1.0.0"
|
||||||
|
"@radix-ui/rect" "1.0.0"
|
||||||
|
|
||||||
|
"@radix-ui/react-portal@1.0.1":
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-portal/-/react-portal-1.0.1.tgz#169c5a50719c2bb0079cf4c91a27aa6d37e5dd33"
|
||||||
|
integrity sha512-NY2vUWI5WENgAT1nfC6JS7RU5xRYBfjZVLq0HmgEN1Ezy3rk/UruMV4+Rd0F40PEaFC5SrLS1ixYvcYIQrb4Ig==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/react-primitive" "1.0.1"
|
||||||
|
|
||||||
|
"@radix-ui/react-presence@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-presence/-/react-presence-1.0.0.tgz#814fe46df11f9a468808a6010e3f3ca7e0b2e84a"
|
||||||
|
integrity sha512-A+6XEvN01NfVWiKu38ybawfHsBjWum42MRPnEuqPsBZ4eV7e/7K321B5VgYMPv3Xx5An6o1/l9ZuDBgmcmWK3w==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/react-compose-refs" "1.0.0"
|
||||||
|
"@radix-ui/react-use-layout-effect" "1.0.0"
|
||||||
|
|
||||||
|
"@radix-ui/react-primitive@1.0.1":
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-primitive/-/react-primitive-1.0.1.tgz#c1ebcce283dd2f02e4fbefdaa49d1cb13dbc990a"
|
||||||
|
integrity sha512-fHbmislWVkZaIdeF6GZxF0A/NH/3BjrGIYj+Ae6eTmTCr7EB0RQAAVEiqsXK6p3/JcRqVSBQoceZroj30Jj3XA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/react-slot" "1.0.1"
|
||||||
|
|
||||||
|
"@radix-ui/react-slot@1.0.1":
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-slot/-/react-slot-1.0.1.tgz#e7868c669c974d649070e9ecbec0b367ee0b4d81"
|
||||||
|
integrity sha512-avutXAFL1ehGvAXtPquu0YK5oz6ctS474iM3vNGQIkswrVhdrS52e3uoMQBzZhNRAIE0jBnUyXWNmSjGHhCFcw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/react-compose-refs" "1.0.0"
|
||||||
|
|
||||||
|
"@radix-ui/react-tooltip@1.0.2":
|
||||||
|
version "1.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-tooltip/-/react-tooltip-1.0.2.tgz#8e10b075767f785bf013146fdc954ac6885efda3"
|
||||||
|
integrity sha512-11gUlok2rv5mu+KBtxniOKKNKjqC/uTbgFHWoQdbF46vMV+zjDaBvCtVDK9+MTddlpmlisGPGvvojX7Qm0yr+g==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/primitive" "1.0.0"
|
||||||
|
"@radix-ui/react-compose-refs" "1.0.0"
|
||||||
|
"@radix-ui/react-context" "1.0.0"
|
||||||
|
"@radix-ui/react-dismissable-layer" "1.0.2"
|
||||||
|
"@radix-ui/react-id" "1.0.0"
|
||||||
|
"@radix-ui/react-popper" "1.0.1"
|
||||||
|
"@radix-ui/react-portal" "1.0.1"
|
||||||
|
"@radix-ui/react-presence" "1.0.0"
|
||||||
|
"@radix-ui/react-primitive" "1.0.1"
|
||||||
|
"@radix-ui/react-slot" "1.0.1"
|
||||||
|
"@radix-ui/react-use-controllable-state" "1.0.0"
|
||||||
|
"@radix-ui/react-visually-hidden" "1.0.1"
|
||||||
|
|
||||||
|
"@radix-ui/react-use-callback-ref@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-use-callback-ref/-/react-use-callback-ref-1.0.0.tgz#9e7b8b6b4946fe3cbe8f748c82a2cce54e7b6a90"
|
||||||
|
integrity sha512-GZtyzoHz95Rhs6S63D2t/eqvdFCm7I+yHMLVQheKM7nBD8mbZIt+ct1jz4536MDnaOGKIxynJ8eHTkVGVVkoTg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
|
||||||
|
"@radix-ui/react-use-controllable-state@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-use-controllable-state/-/react-use-controllable-state-1.0.0.tgz#a64deaafbbc52d5d407afaa22d493d687c538b7f"
|
||||||
|
integrity sha512-FohDoZvk3mEXh9AWAVyRTYR4Sq7/gavuofglmiXB2g1aKyboUD4YtgWxKj8O5n+Uak52gXQ4wKz5IFST4vtJHg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/react-use-callback-ref" "1.0.0"
|
||||||
|
|
||||||
|
"@radix-ui/react-use-escape-keydown@1.0.2":
|
||||||
|
version "1.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-use-escape-keydown/-/react-use-escape-keydown-1.0.2.tgz#09ab6455ab240b4f0a61faf06d4e5132c4d639f6"
|
||||||
|
integrity sha512-DXGim3x74WgUv+iMNCF+cAo8xUHHeqvjx8zs7trKf+FkQKPQXLk2sX7Gx1ysH7Q76xCpZuxIJE7HLPxRE+Q+GA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/react-use-callback-ref" "1.0.0"
|
||||||
|
|
||||||
|
"@radix-ui/react-use-layout-effect@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-use-layout-effect/-/react-use-layout-effect-1.0.0.tgz#2fc19e97223a81de64cd3ba1dc42ceffd82374dc"
|
||||||
|
integrity sha512-6Tpkq+R6LOlmQb1R5NNETLG0B4YP0wc+klfXafpUCj6JGyaUc8il7/kUZ7m59rGbXGczE9Bs+iz2qloqsZBduQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
|
||||||
|
"@radix-ui/react-use-rect@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-use-rect/-/react-use-rect-1.0.0.tgz#b040cc88a4906b78696cd3a32b075ed5b1423b3e"
|
||||||
|
integrity sha512-TB7pID8NRMEHxb/qQJpvSt3hQU4sqNPM1VCTjTRjEOa7cEop/QMuq8S6fb/5Tsz64kqSvB9WnwsDHtjnrM9qew==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/rect" "1.0.0"
|
||||||
|
|
||||||
|
"@radix-ui/react-use-size@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-use-size/-/react-use-size-1.0.0.tgz#a0b455ac826749419f6354dc733e2ca465054771"
|
||||||
|
integrity sha512-imZ3aYcoYCKhhgNpkNDh/aTiU05qw9hX+HHI1QDBTyIlcFjgeFlKKySNGMwTp7nYFLQg/j0VA2FmCY4WPDDHMg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/react-use-layout-effect" "1.0.0"
|
||||||
|
|
||||||
|
"@radix-ui/react-visually-hidden@1.0.1":
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/react-visually-hidden/-/react-visually-hidden-1.0.1.tgz#9a4ac4fc97ae8d72a10e727f16b3121b5f0aa469"
|
||||||
|
integrity sha512-K1hJcCMfWfiYUibRqf3V8r5Drpyf7rh44jnrwAbdvI5iCCijilBBeyQv9SKidYNZIopMdCyR9FnIjkHxHN0FcQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
"@radix-ui/react-primitive" "1.0.1"
|
||||||
|
|
||||||
|
"@radix-ui/rect@1.0.0":
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/@radix-ui/rect/-/rect-1.0.0.tgz#0dc8e6a829ea2828d53cbc94b81793ba6383bf3c"
|
||||||
|
integrity sha512-d0O68AYy/9oeEy1DdC07bz1/ZXX+DqCskRd3i4JzLSTXwefzaepQrKjXC7aNM8lTHjFLDO0pDgaEiQ7jEk+HVg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.13.10"
|
||||||
|
|
||||||
"@reach/router@^1.2.1":
|
"@reach/router@^1.2.1":
|
||||||
version "1.3.4"
|
version "1.3.4"
|
||||||
resolved "https://registry.yarnpkg.com/@reach/router/-/router-1.3.4.tgz#d2574b19370a70c80480ed91f3da840136d10f8c"
|
resolved "https://registry.yarnpkg.com/@reach/router/-/router-1.3.4.tgz#d2574b19370a70c80480ed91f3da840136d10f8c"
|
||||||
@@ -20503,6 +20708,11 @@ use-callback-ref@^1.3.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
tslib "^2.0.0"
|
tslib "^2.0.0"
|
||||||
|
|
||||||
|
use-isomorphic-layout-effect@^1.1.1:
|
||||||
|
version "1.1.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.2.tgz#497cefb13d863d687b08477d9e5a164ad8c1a6fb"
|
||||||
|
integrity sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==
|
||||||
|
|
||||||
use-sidecar@^1.1.2:
|
use-sidecar@^1.1.2:
|
||||||
version "1.1.2"
|
version "1.1.2"
|
||||||
resolved "https://registry.yarnpkg.com/use-sidecar/-/use-sidecar-1.1.2.tgz#2f43126ba2d7d7e117aa5855e5d8f0276dfe73c2"
|
resolved "https://registry.yarnpkg.com/use-sidecar/-/use-sidecar-1.1.2.tgz#2f43126ba2d7d7e117aa5855e5d8f0276dfe73c2"
|
||||||
|
|||||||
Reference in New Issue
Block a user