@guardian/stand 0.0.61 → 0.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Tooltip.cjs +5 -0
- package/dist/Tooltip.d.cts +5 -0
- package/dist/Tooltip.d.ts +5 -0
- package/dist/Tooltip.js +3 -0
- package/dist/components/Tooltip/Tooltip.cjs +42 -0
- package/dist/components/Tooltip/Tooltip.d.cts +5 -0
- package/dist/components/Tooltip/Tooltip.d.ts +5 -0
- package/dist/components/Tooltip/Tooltip.js +42 -0
- package/dist/components/Tooltip/styles.cjs +58 -0
- package/dist/components/Tooltip/styles.d.cts +8 -0
- package/dist/components/Tooltip/styles.d.ts +8 -0
- package/dist/components/Tooltip/styles.js +55 -0
- package/dist/components/Tooltip/types.d.cts +8 -0
- package/dist/components/Tooltip/types.d.ts +8 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/styleD/build/css/component/tooltip.css +13 -0
- package/dist/styleD/build/typescript/component/tooltip.cjs +19 -0
- package/dist/styleD/build/typescript/component/tooltip.d.cts +22 -0
- package/dist/styleD/build/typescript/component/tooltip.d.ts +22 -0
- package/dist/styleD/build/typescript/component/tooltip.js +19 -0
- package/package.json +16 -2
package/dist/Tooltip.cjs
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_tooltip = require("./styleD/build/typescript/component/tooltip.cjs");
|
|
3
|
+
const require_Tooltip = require("./components/Tooltip/Tooltip.cjs");
|
|
4
|
+
exports.Tooltip = require_Tooltip.Tooltip;
|
|
5
|
+
exports.componentTooltip = require_tooltip.componentTooltip;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentTooltip, componentTooltip } from "./styleD/build/typescript/component/tooltip.cjs";
|
|
2
|
+
import { PartialTooltipTheme } from "./components/Tooltip/styles.cjs";
|
|
3
|
+
import { TooltipProps } from "./components/Tooltip/types.cjs";
|
|
4
|
+
import { Tooltip } from "./components/Tooltip/Tooltip.cjs";
|
|
5
|
+
export { type ComponentTooltip, Tooltip, type TooltipProps, type PartialTooltipTheme as TooltipTheme, componentTooltip };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ComponentTooltip, componentTooltip } from "./styleD/build/typescript/component/tooltip.js";
|
|
2
|
+
import { PartialTooltipTheme } from "./components/Tooltip/styles.js";
|
|
3
|
+
import { TooltipProps } from "./components/Tooltip/types.js";
|
|
4
|
+
import { Tooltip } from "./components/Tooltip/Tooltip.js";
|
|
5
|
+
export { type ComponentTooltip, Tooltip, type TooltipProps, type PartialTooltipTheme as TooltipTheme, componentTooltip };
|
package/dist/Tooltip.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_mergeDeep = require("../../util/mergeDeep.cjs");
|
|
2
|
+
const require_Icon = require("../Icon/Icon.cjs");
|
|
3
|
+
const require_Typography = require("../Typography/Typography.cjs");
|
|
4
|
+
const require_styles = require("./styles.cjs");
|
|
5
|
+
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
|
|
6
|
+
let react_aria_components = require("react-aria-components");
|
|
7
|
+
//#region src/components/Tooltip/Tooltip.tsx
|
|
8
|
+
const Tooltip = ({ children, placement = "end", theme = {}, cssOverrides, className, ...props }) => {
|
|
9
|
+
const mergedTheme = require_mergeDeep.mergeDeep(require_styles.defaultTooltipTheme, theme);
|
|
10
|
+
return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)(react_aria_components.TooltipTrigger, {
|
|
11
|
+
delay: 0,
|
|
12
|
+
closeDelay: 0,
|
|
13
|
+
...props,
|
|
14
|
+
children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(react_aria_components.Button, {
|
|
15
|
+
"aria-label": "Information",
|
|
16
|
+
css: require_styles.tooltipTriggerStyles(mergedTheme),
|
|
17
|
+
children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Icon.Icon, {
|
|
18
|
+
size: "xs",
|
|
19
|
+
symbol: "question_mark"
|
|
20
|
+
})
|
|
21
|
+
}), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)(react_aria_components.Tooltip, {
|
|
22
|
+
css: [require_styles.tooltipStyles(mergedTheme), cssOverrides],
|
|
23
|
+
placement,
|
|
24
|
+
className,
|
|
25
|
+
children: [/* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(TooltipArrow, { theme: mergedTheme }), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_Typography.Typography, {
|
|
26
|
+
variant: "metaMd",
|
|
27
|
+
theme: { color: mergedTheme.shared.color },
|
|
28
|
+
children
|
|
29
|
+
})]
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
const TooltipArrow = ({ theme }) => /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(react_aria_components.OverlayArrow, { children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("svg", {
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: "9",
|
|
36
|
+
height: "14",
|
|
37
|
+
viewBox: "0 0 9 14",
|
|
38
|
+
css: require_styles.tooltipArrowStyles(theme),
|
|
39
|
+
children: /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)("path", { d: "M0 6.928 9 0v13.856z" })
|
|
40
|
+
}) });
|
|
41
|
+
//#endregion
|
|
42
|
+
exports.Tooltip = Tooltip;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TooltipProps } from "./types.cjs";
|
|
2
|
+
//#region src/components/Tooltip/Tooltip.d.ts
|
|
3
|
+
declare const Tooltip: ({ children, placement, theme, cssOverrides, className, ...props }: TooltipProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Tooltip };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TooltipProps } from "./types.js";
|
|
2
|
+
//#region src/components/Tooltip/Tooltip.d.ts
|
|
3
|
+
declare const Tooltip: ({ children, placement, theme, cssOverrides, className, ...props }: TooltipProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { Tooltip };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { mergeDeep } from "../../util/mergeDeep.js";
|
|
2
|
+
import { Icon } from "../Icon/Icon.js";
|
|
3
|
+
import { Typography } from "../Typography/Typography.js";
|
|
4
|
+
import { defaultTooltipTheme, tooltipArrowStyles, tooltipStyles, tooltipTriggerStyles } from "./styles.js";
|
|
5
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Button, OverlayArrow, Tooltip, TooltipTrigger } from "react-aria-components";
|
|
7
|
+
//#region src/components/Tooltip/Tooltip.tsx
|
|
8
|
+
const Tooltip$1 = ({ children, placement = "end", theme = {}, cssOverrides, className, ...props }) => {
|
|
9
|
+
const mergedTheme = mergeDeep(defaultTooltipTheme, theme);
|
|
10
|
+
return /* @__PURE__ */ jsxs(TooltipTrigger, {
|
|
11
|
+
delay: 0,
|
|
12
|
+
closeDelay: 0,
|
|
13
|
+
...props,
|
|
14
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
15
|
+
"aria-label": "Information",
|
|
16
|
+
css: tooltipTriggerStyles(mergedTheme),
|
|
17
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
18
|
+
size: "xs",
|
|
19
|
+
symbol: "question_mark"
|
|
20
|
+
})
|
|
21
|
+
}), /* @__PURE__ */ jsxs(Tooltip, {
|
|
22
|
+
css: [tooltipStyles(mergedTheme), cssOverrides],
|
|
23
|
+
placement,
|
|
24
|
+
className,
|
|
25
|
+
children: [/* @__PURE__ */ jsx(TooltipArrow, { theme: mergedTheme }), /* @__PURE__ */ jsx(Typography, {
|
|
26
|
+
variant: "metaMd",
|
|
27
|
+
theme: { color: mergedTheme.shared.color },
|
|
28
|
+
children
|
|
29
|
+
})]
|
|
30
|
+
})]
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
const TooltipArrow = ({ theme }) => /* @__PURE__ */ jsx(OverlayArrow, { children: /* @__PURE__ */ jsx("svg", {
|
|
34
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
+
width: "9",
|
|
36
|
+
height: "14",
|
|
37
|
+
viewBox: "0 0 9 14",
|
|
38
|
+
css: tooltipArrowStyles(theme),
|
|
39
|
+
children: /* @__PURE__ */ jsx("path", { d: "M0 6.928 9 0v13.856z" })
|
|
40
|
+
}) });
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Tooltip$1 as Tooltip };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const require_tooltip = require("../../styleD/build/typescript/component/tooltip.cjs");
|
|
2
|
+
let _emotion_react = require("@emotion/react");
|
|
3
|
+
//#region src/components/Tooltip/styles.ts
|
|
4
|
+
const defaultTooltipTheme = require_tooltip.componentTooltip;
|
|
5
|
+
const tooltipTriggerStyles = (theme) => _emotion_react.css`
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
appearance: none;
|
|
8
|
+
border: none;
|
|
9
|
+
padding: 0;
|
|
10
|
+
width: ${theme.trigger.size};
|
|
11
|
+
height: ${theme.trigger.size};
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
color: ${theme.shared.color};
|
|
16
|
+
background-color: ${theme.shared.backgroundColor};
|
|
17
|
+
`;
|
|
18
|
+
const tooltipStyles = (theme) => _emotion_react.css`
|
|
19
|
+
padding: ${theme.tooltip.padding};
|
|
20
|
+
max-width: ${theme.tooltip.maxWidth};
|
|
21
|
+
background-color: ${theme.shared.backgroundColor};
|
|
22
|
+
border-radius: ${theme.tooltip.borderRadius};
|
|
23
|
+
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
|
|
24
|
+
|
|
25
|
+
&[data-placement='top'] {
|
|
26
|
+
margin-bottom: ${theme.tooltip.offset};
|
|
27
|
+
svg {
|
|
28
|
+
transform: rotate(-90deg) translateX(3px);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[data-placement='bottom'] {
|
|
33
|
+
margin-top: ${theme.tooltip.offset};
|
|
34
|
+
svg {
|
|
35
|
+
transform: rotate(90deg) translateX(3px);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[data-placement='right'] {
|
|
40
|
+
margin-left: ${theme.tooltip.offset};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-placement='left'] {
|
|
44
|
+
margin-right: ${theme.tooltip.offset};
|
|
45
|
+
svg {
|
|
46
|
+
transform: rotate(180deg);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
const tooltipArrowStyles = (theme) => _emotion_react.css`
|
|
51
|
+
display: block;
|
|
52
|
+
fill: ${theme.shared.backgroundColor};
|
|
53
|
+
`;
|
|
54
|
+
//#endregion
|
|
55
|
+
exports.defaultTooltipTheme = defaultTooltipTheme;
|
|
56
|
+
exports.tooltipArrowStyles = tooltipArrowStyles;
|
|
57
|
+
exports.tooltipStyles = tooltipStyles;
|
|
58
|
+
exports.tooltipTriggerStyles = tooltipTriggerStyles;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.cjs";
|
|
2
|
+
import { ComponentTooltip } from "../../styleD/build/typescript/component/tooltip.cjs";
|
|
3
|
+
import { SerializedStyles } from "@emotion/react";
|
|
4
|
+
//#region src/components/Tooltip/styles.d.ts
|
|
5
|
+
type TooltipTheme = Prettify<ComponentTooltip>;
|
|
6
|
+
type PartialTooltipTheme = Prettify<DeepPartial<TooltipTheme>>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { PartialTooltipTheme, TooltipTheme };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DeepPartial, Prettify } from "../../util/types.js";
|
|
2
|
+
import { ComponentTooltip } from "../../styleD/build/typescript/component/tooltip.js";
|
|
3
|
+
import { SerializedStyles } from "@emotion/react";
|
|
4
|
+
//#region src/components/Tooltip/styles.d.ts
|
|
5
|
+
type TooltipTheme = Prettify<ComponentTooltip>;
|
|
6
|
+
type PartialTooltipTheme = Prettify<DeepPartial<TooltipTheme>>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { PartialTooltipTheme, TooltipTheme };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { componentTooltip } from "../../styleD/build/typescript/component/tooltip.js";
|
|
2
|
+
import { css } from "@emotion/react";
|
|
3
|
+
//#region src/components/Tooltip/styles.ts
|
|
4
|
+
const defaultTooltipTheme = componentTooltip;
|
|
5
|
+
const tooltipTriggerStyles = (theme) => css`
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
appearance: none;
|
|
8
|
+
border: none;
|
|
9
|
+
padding: 0;
|
|
10
|
+
width: ${theme.trigger.size};
|
|
11
|
+
height: ${theme.trigger.size};
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
border-radius: 50%;
|
|
15
|
+
color: ${theme.shared.color};
|
|
16
|
+
background-color: ${theme.shared.backgroundColor};
|
|
17
|
+
`;
|
|
18
|
+
const tooltipStyles = (theme) => css`
|
|
19
|
+
padding: ${theme.tooltip.padding};
|
|
20
|
+
max-width: ${theme.tooltip.maxWidth};
|
|
21
|
+
background-color: ${theme.shared.backgroundColor};
|
|
22
|
+
border-radius: ${theme.tooltip.borderRadius};
|
|
23
|
+
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
|
|
24
|
+
|
|
25
|
+
&[data-placement='top'] {
|
|
26
|
+
margin-bottom: ${theme.tooltip.offset};
|
|
27
|
+
svg {
|
|
28
|
+
transform: rotate(-90deg) translateX(3px);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[data-placement='bottom'] {
|
|
33
|
+
margin-top: ${theme.tooltip.offset};
|
|
34
|
+
svg {
|
|
35
|
+
transform: rotate(90deg) translateX(3px);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[data-placement='right'] {
|
|
40
|
+
margin-left: ${theme.tooltip.offset};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-placement='left'] {
|
|
44
|
+
margin-right: ${theme.tooltip.offset};
|
|
45
|
+
svg {
|
|
46
|
+
transform: rotate(180deg);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
const tooltipArrowStyles = (theme) => css`
|
|
51
|
+
display: block;
|
|
52
|
+
fill: ${theme.shared.backgroundColor};
|
|
53
|
+
`;
|
|
54
|
+
//#endregion
|
|
55
|
+
export { defaultTooltipTheme, tooltipArrowStyles, tooltipStyles, tooltipTriggerStyles };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefaultPropsWithChildren } from "../../util/types.cjs";
|
|
2
|
+
import { TooltipTheme } from "./styles.cjs";
|
|
3
|
+
//#region src/components/Tooltip/types.d.ts
|
|
4
|
+
type TooltipProps = DefaultPropsWithChildren<TooltipTheme> & {
|
|
5
|
+
placement?: 'top' | 'bottom' | 'start' | 'end';
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { TooltipProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefaultPropsWithChildren } from "../../util/types.js";
|
|
2
|
+
import { TooltipTheme } from "./styles.js";
|
|
3
|
+
//#region src/components/Tooltip/types.d.ts
|
|
4
|
+
type TooltipProps = DefaultPropsWithChildren<TooltipTheme> & {
|
|
5
|
+
placement?: 'top' | 'bottom' | 'start' | 'end';
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { TooltipProps };
|
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,7 @@ const require_radioGroup = require("./styleD/build/typescript/component/radioGro
|
|
|
24
24
|
const require_select = require("./styleD/build/typescript/component/select.cjs");
|
|
25
25
|
const require_textArea = require("./styleD/build/typescript/component/textArea.cjs");
|
|
26
26
|
const require_textInput = require("./styleD/build/typescript/component/textInput.cjs");
|
|
27
|
+
const require_tooltip = require("./styleD/build/typescript/component/tooltip.cjs");
|
|
27
28
|
const require_topBar = require("./styleD/build/typescript/component/topBar.cjs");
|
|
28
29
|
const require_typography = require("./styleD/build/typescript/component/typography.cjs");
|
|
29
30
|
const require_tabs = require("./styleD/build/typescript/component/tabs.cjs");
|
|
@@ -68,6 +69,7 @@ exports.componentTabs = require_tabs.componentTabs;
|
|
|
68
69
|
exports.componentTagTable = require_tagTable.componentTagTable;
|
|
69
70
|
exports.componentTextArea = require_textArea.componentTextArea;
|
|
70
71
|
exports.componentTextInput = require_textInput.componentTextInput;
|
|
72
|
+
exports.componentTooltip = require_tooltip.componentTooltip;
|
|
71
73
|
exports.componentTopBar = require_topBar.componentTopBar;
|
|
72
74
|
exports.componentTypography = require_typography.componentTypography;
|
|
73
75
|
exports.componentUserMenu = require_userMenu.componentUserMenu;
|
package/dist/index.d.cts
CHANGED
|
@@ -25,6 +25,7 @@ import { ComponentAutocomplete, componentAutocomplete } from "./styleD/build/typ
|
|
|
25
25
|
import { ComponentTagTable, componentTagTable } from "./styleD/build/typescript/component/tagTable.cjs";
|
|
26
26
|
import { ComponentTextArea, componentTextArea } from "./styleD/build/typescript/component/textArea.cjs";
|
|
27
27
|
import { ComponentTextInput, componentTextInput } from "./styleD/build/typescript/component/textInput.cjs";
|
|
28
|
+
import { ComponentTooltip, componentTooltip } from "./styleD/build/typescript/component/tooltip.cjs";
|
|
28
29
|
import { ComponentTopBar, componentTopBar } from "./styleD/build/typescript/component/topBar.cjs";
|
|
29
30
|
import { ComponentUserMenu, componentUserMenu } from "./styleD/build/typescript/component/userMenu.cjs";
|
|
30
31
|
import { BaseColors, baseColors } from "./styleD/build/typescript/base/colors.cjs";
|
|
@@ -38,4 +39,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
|
|
|
38
39
|
import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.cjs";
|
|
39
40
|
import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.cjs";
|
|
40
41
|
import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.cjs";
|
|
41
|
-
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTopBar, type ComponentTypography, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
42
|
+
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { ComponentAutocomplete, componentAutocomplete } from "./styleD/build/typ
|
|
|
25
25
|
import { ComponentTagTable, componentTagTable } from "./styleD/build/typescript/component/tagTable.js";
|
|
26
26
|
import { ComponentTextArea, componentTextArea } from "./styleD/build/typescript/component/textArea.js";
|
|
27
27
|
import { ComponentTextInput, componentTextInput } from "./styleD/build/typescript/component/textInput.js";
|
|
28
|
+
import { ComponentTooltip, componentTooltip } from "./styleD/build/typescript/component/tooltip.js";
|
|
28
29
|
import { ComponentTopBar, componentTopBar } from "./styleD/build/typescript/component/topBar.js";
|
|
29
30
|
import { ComponentUserMenu, componentUserMenu } from "./styleD/build/typescript/component/userMenu.js";
|
|
30
31
|
import { BaseColors, baseColors } from "./styleD/build/typescript/base/colors.js";
|
|
@@ -38,4 +39,4 @@ import { SemanticSizing, semanticSizing } from "./styleD/build/typescript/semant
|
|
|
38
39
|
import { SemanticShadow, semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
|
|
39
40
|
import { SemanticRadius, semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
|
|
40
41
|
import { SemanticSpacing, semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
|
|
41
|
-
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTopBar, type ComponentTypography, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
42
|
+
export { type BaseColors, type BaseRadius, type BaseSizing, type BaseSpacing, type BaseTypography, type ComponentAlertBanner, type ComponentAutocomplete, type ComponentAvatar, type ComponentButton, type ComponentButtonGroup, type ComponentByline, type ComponentCheckbox, type ComponentDatePicker, type ComponentFavicon, type ComponentForm, type ComponentGrid, type ComponentIcon, type ComponentInlineMessage, type ComponentIntendedAudienceSignifier, type ComponentLayout, type ComponentLink, type ComponentMenu, type ComponentModal, type ComponentRadioGroup, type ComponentSelect, type ComponentTabs, type ComponentTagTable, type ComponentTextArea, type ComponentTextInput, type ComponentTooltip, type ComponentTopBar, type ComponentTypography, type ComponentUserMenu, type SemanticBreakpoints, type SemanticColors, type SemanticGrid, type SemanticRadius, type SemanticShadow, type SemanticSizing, type SemanticSpacing, type SemanticTypography, baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ import { componentRadioGroup } from "./styleD/build/typescript/component/radioGr
|
|
|
23
23
|
import { componentSelect } from "./styleD/build/typescript/component/select.js";
|
|
24
24
|
import { componentTextArea } from "./styleD/build/typescript/component/textArea.js";
|
|
25
25
|
import { componentTextInput } from "./styleD/build/typescript/component/textInput.js";
|
|
26
|
+
import { componentTooltip } from "./styleD/build/typescript/component/tooltip.js";
|
|
26
27
|
import { componentTopBar } from "./styleD/build/typescript/component/topBar.js";
|
|
27
28
|
import { componentTypography } from "./styleD/build/typescript/component/typography.js";
|
|
28
29
|
import { componentTabs } from "./styleD/build/typescript/component/tabs.js";
|
|
@@ -38,4 +39,4 @@ import { semanticSizing } from "./styleD/build/typescript/semantic/sizing.js";
|
|
|
38
39
|
import { semanticShadow } from "./styleD/build/typescript/semantic/shadow.js";
|
|
39
40
|
import { semanticRadius } from "./styleD/build/typescript/semantic/radius.js";
|
|
40
41
|
import { semanticSpacing } from "./styleD/build/typescript/semantic/spacing.js";
|
|
41
|
-
export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
42
|
+
export { baseColors, baseRadius, baseSizing, baseSpacing, baseTypography, componentAlertBanner, componentAutocomplete, componentAvatar, componentButton, componentButtonGroup, componentByline, componentCheckbox, componentDatePicker, componentFavicon, componentForm, componentGrid, componentIcon, componentInlineMessage, componentIntendedAudienceSignifier, componentLayout, componentLink, componentMenu, componentModal, componentRadioGroup, componentSelect, componentTabs, componentTagTable, componentTextArea, componentTextInput, componentTooltip, componentTopBar, componentTypography, componentUserMenu, semanticBreakpoints, semanticColors, semanticGrid, semanticRadius, semanticShadow, semanticSizing, semanticSpacing, semanticTypography };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--component-tooltip-shared-color: #000000;
|
|
7
|
+
--component-tooltip-shared-background-color: #e8f0fb;
|
|
8
|
+
--component-tooltip-trigger-size: 1.25rem;
|
|
9
|
+
--component-tooltip-tooltip-offset: 1rem;
|
|
10
|
+
--component-tooltip-tooltip-padding: 1rem;
|
|
11
|
+
--component-tooltip-tooltip-max-width: 26ch;
|
|
12
|
+
--component-tooltip-tooltip-border-radius: 0.25rem;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/tooltip.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
const componentTooltip = {
|
|
6
|
+
shared: {
|
|
7
|
+
color: "#000000",
|
|
8
|
+
backgroundColor: "#e8f0fb"
|
|
9
|
+
},
|
|
10
|
+
trigger: { size: "1.25rem" },
|
|
11
|
+
tooltip: {
|
|
12
|
+
offset: "1rem",
|
|
13
|
+
padding: "1rem",
|
|
14
|
+
maxWidth: "26ch",
|
|
15
|
+
borderRadius: "0.25rem"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.componentTooltip = componentTooltip;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/tooltip.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
declare const componentTooltip: {
|
|
6
|
+
shared: {
|
|
7
|
+
color: string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
trigger: {
|
|
11
|
+
size: string;
|
|
12
|
+
};
|
|
13
|
+
tooltip: {
|
|
14
|
+
offset: string;
|
|
15
|
+
padding: string;
|
|
16
|
+
maxWidth: string;
|
|
17
|
+
borderRadius: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type ComponentTooltip = typeof componentTooltip;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ComponentTooltip, componentTooltip };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/tooltip.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
declare const componentTooltip: {
|
|
6
|
+
shared: {
|
|
7
|
+
color: string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
};
|
|
10
|
+
trigger: {
|
|
11
|
+
size: string;
|
|
12
|
+
};
|
|
13
|
+
tooltip: {
|
|
14
|
+
offset: string;
|
|
15
|
+
padding: string;
|
|
16
|
+
maxWidth: string;
|
|
17
|
+
borderRadius: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
type ComponentTooltip = typeof componentTooltip;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ComponentTooltip, componentTooltip };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/styleD/build/typescript/component/tooltip.ts
|
|
2
|
+
/**
|
|
3
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
|
+
*/
|
|
5
|
+
const componentTooltip = {
|
|
6
|
+
shared: {
|
|
7
|
+
color: "#000000",
|
|
8
|
+
backgroundColor: "#e8f0fb"
|
|
9
|
+
},
|
|
10
|
+
trigger: { size: "1.25rem" },
|
|
11
|
+
tooltip: {
|
|
12
|
+
offset: "1rem",
|
|
13
|
+
padding: "1rem",
|
|
14
|
+
maxWidth: "26ch",
|
|
15
|
+
borderRadius: "0.25rem"
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { componentTooltip };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guardian/stand",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.62",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/guardian/stand"
|
|
6
6
|
},
|
|
@@ -337,6 +337,16 @@
|
|
|
337
337
|
"default": "./dist/HtmlPreviewLoader.cjs"
|
|
338
338
|
}
|
|
339
339
|
},
|
|
340
|
+
"./Tooltip": {
|
|
341
|
+
"import": {
|
|
342
|
+
"types": "./dist/Tooltip.d.ts",
|
|
343
|
+
"default": "./dist/Tooltip.js"
|
|
344
|
+
},
|
|
345
|
+
"require": {
|
|
346
|
+
"types": "./dist/Tooltip.d.cts",
|
|
347
|
+
"default": "./dist/Tooltip.cjs"
|
|
348
|
+
}
|
|
349
|
+
},
|
|
340
350
|
"./utils": {
|
|
341
351
|
"import": {
|
|
342
352
|
"types": "./dist/utils.d.ts",
|
|
@@ -391,7 +401,8 @@
|
|
|
391
401
|
"./component/grid.css": "./dist/styleD/build/css/component/grid.css",
|
|
392
402
|
"./component/layout.css": "./dist/styleD/build/css/component/layout.css",
|
|
393
403
|
"./component/modal.css": "./dist/styleD/build/css/component/modal.css",
|
|
394
|
-
"./component/tabs.css": "./dist/styleD/build/css/component/tabs.css"
|
|
404
|
+
"./component/tabs.css": "./dist/styleD/build/css/component/tabs.css",
|
|
405
|
+
"./component/tooltip.css": "./dist/styleD/build/css/component/tooltip.css"
|
|
395
406
|
},
|
|
396
407
|
"main": "./dist/index.cjs",
|
|
397
408
|
"module": "./dist/index.js",
|
|
@@ -496,6 +507,9 @@
|
|
|
496
507
|
],
|
|
497
508
|
"HtmlPreviewLoader": [
|
|
498
509
|
"./dist/HtmlPreviewLoader.d.ts"
|
|
510
|
+
],
|
|
511
|
+
"Tooltip": [
|
|
512
|
+
"./dist/Tooltip.d.ts"
|
|
499
513
|
]
|
|
500
514
|
}
|
|
501
515
|
},
|