@appquality/unguess-design-system 3.1.88 → 3.1.89-tooltip
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/CHANGELOG.md +0 -13
- package/build/index.js +12 -2
- package/build/stories/buttons/utils.d.ts +39 -39
- package/build/stories/highlight/_types.d.ts +4 -5
- package/build/stories/highlight/demo-parts/data.d.ts +49 -0
- package/build/stories/highlight/demo-parts/transcript-base.d.ts +5 -0
- package/build/stories/highlight/demo-parts/transcript-diarization.d.ts +5 -0
- package/build/stories/highlight/demo-parts/transcript-paragraph.d.ts +5 -0
- package/build/stories/highlight/index.stories.d.ts +6 -7
- package/build/stories/tooltip/_types.d.ts +1 -0
- package/build/stories/tooltip/index.d.ts +1 -0
- package/build/stories/tooltip/index.stories.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
# v3.1.88 (Mon May 13 2024)
|
|
2
|
-
|
|
3
|
-
#### 🐛 Bug Fix
|
|
4
|
-
|
|
5
|
-
- Player fixes [#343](https://github.com/AppQuality/unguess-design-system/pull/343) ([@cannarocks](https://github.com/cannarocks))
|
|
6
|
-
- Fix undefined state in player and reduce renders [#342](https://github.com/AppQuality/unguess-design-system/pull/342) ([@cannarocks](https://github.com/cannarocks))
|
|
7
|
-
|
|
8
|
-
#### Authors: 1
|
|
9
|
-
|
|
10
|
-
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
1
|
# v3.1.87 (Mon May 13 2024)
|
|
15
2
|
|
|
16
3
|
#### 🐛 Bug Fix
|
package/build/index.js
CHANGED
|
@@ -2978,10 +2978,17 @@ const FloatingMenu = (props) => {
|
|
|
2978
2978
|
const TooltipComponent = (props) => {
|
|
2979
2979
|
var _a;
|
|
2980
2980
|
const theme = React.useContext(styled.ThemeContext);
|
|
2981
|
-
return jsxRuntime.jsx(reactTooltips.Tooltip, Object.assign({}, props, { zIndex: (_a = props.zIndex) !== null && _a !== void 0 ? _a : theme.levels.front }));
|
|
2981
|
+
return (jsxRuntime.jsx(reactTooltips.Tooltip, Object.assign({}, props, { zIndex: (_a = props.zIndex) !== null && _a !== void 0 ? _a : theme.levels.front })));
|
|
2982
2982
|
};
|
|
2983
2983
|
const Tooltip = styled__default["default"](TooltipComponent) `
|
|
2984
2984
|
box-shadow: ${({ theme }) => theme.shadows.lg(`${theme.space.base * 3}px`, `${theme.space.base * 5}px`, getColor("neutralHue", 600, theme, 0.15))};
|
|
2985
|
+
|
|
2986
|
+
${({ isTransparent }) => isTransparent &&
|
|
2987
|
+
`
|
|
2988
|
+
box-shadow: none;
|
|
2989
|
+
background-color: transparent;
|
|
2990
|
+
border: none;
|
|
2991
|
+
`};
|
|
2985
2992
|
`;
|
|
2986
2993
|
|
|
2987
2994
|
var _path$t;
|
|
@@ -5633,7 +5640,7 @@ const StyledWord = styled__default["default"](reactTypography.Span) `
|
|
|
5633
5640
|
return observation &&
|
|
5634
5641
|
` user-select: none;
|
|
5635
5642
|
padding: 0;
|
|
5636
|
-
background-color: ${(_a = observation.
|
|
5643
|
+
background-color: ${(_a = observation.hue) !== null && _a !== void 0 ? _a : getColor(theme.palette.azure, 700, undefined, 0.5)};
|
|
5637
5644
|
color: ${(_b = observation.color) !== null && _b !== void 0 ? _b : "white"};
|
|
5638
5645
|
box-sizing: border-box;
|
|
5639
5646
|
&:focus {
|
|
@@ -5701,6 +5708,9 @@ const Word = (props) => {
|
|
|
5701
5708
|
props.currentTime < props.end;
|
|
5702
5709
|
// Is there an observation that contains this word?
|
|
5703
5710
|
const observation = (_a = props.observations) === null || _a === void 0 ? void 0 : _a.find((obs) => props.start >= obs.start && props.end <= obs.end);
|
|
5711
|
+
if (props.tooltipContent !== undefined && !!observation) {
|
|
5712
|
+
return (jsxRuntime.jsx(Tooltip, Object.assign({ content: props.tooltipContent(observation), isTransparent: true }, { children: jsxRuntime.jsxs(StyledWord, Object.assign({}, props, { observation: observation, "data-start": props.start, "data-end": props.end, className: !!observation ? "highlighted" : "" }, (!!observation ? { tag: "observation" } : {}), { children: [isActive ? (jsxRuntime.jsx(ActiveWord, { children: jsxRuntime.jsx(Searchable, { start: props.start, text: props.text }) })) : (jsxRuntime.jsx(Searchable, { start: props.start, text: props.text })), " "] })) })));
|
|
5713
|
+
}
|
|
5704
5714
|
return (jsxRuntime.jsxs(StyledWord, Object.assign({}, props, { observation: observation, "data-start": props.start, "data-end": props.end, className: !!observation ? "highlighted" : "" }, (!!observation ? { tag: "observation" } : {}), { children: [isActive ? (jsxRuntime.jsx(ActiveWord, { children: jsxRuntime.jsx(Searchable, { start: props.start, text: props.text }) })) : (jsxRuntime.jsx(Searchable, { start: props.start, text: props.text })), " "] })));
|
|
5705
5715
|
};
|
|
5706
5716
|
Highlight.Word = Word;
|
|
@@ -8,18 +8,18 @@ export declare const variants: readonly [{}, {
|
|
|
8
8
|
readonly disabled: true;
|
|
9
9
|
}];
|
|
10
10
|
export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
11
|
-
alignItems?: "
|
|
12
|
-
alignItemsXs?: "
|
|
13
|
-
alignItemsSm?: "
|
|
14
|
-
alignItemsMd?: "
|
|
15
|
-
alignItemsLg?: "
|
|
16
|
-
alignItemsXl?: "
|
|
17
|
-
justifyContent?: "
|
|
18
|
-
justifyContentXs?: "
|
|
19
|
-
justifyContentSm?: "
|
|
20
|
-
justifyContentMd?: "
|
|
21
|
-
justifyContentLg?: "
|
|
22
|
-
justifyContentXl?: "
|
|
11
|
+
alignItems?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
12
|
+
alignItemsXs?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
13
|
+
alignItemsSm?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
14
|
+
alignItemsMd?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
15
|
+
alignItemsLg?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
16
|
+
alignItemsXl?: "start" | "end" | "center" | "baseline" | "stretch" | undefined;
|
|
17
|
+
justifyContent?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
18
|
+
justifyContentXs?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
19
|
+
justifyContentSm?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
20
|
+
justifyContentMd?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
21
|
+
justifyContentLg?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
22
|
+
justifyContentXl?: "start" | "end" | "center" | "between" | "around" | undefined;
|
|
23
23
|
wrap?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
24
24
|
wrapXs?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
25
25
|
wrapSm?: "wrap" | "nowrap" | "wrap-reverse" | undefined;
|
|
@@ -33,7 +33,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
|
33
33
|
accessKey?: string | undefined;
|
|
34
34
|
autoFocus?: boolean | undefined;
|
|
35
35
|
className?: string | undefined;
|
|
36
|
-
contentEditable?:
|
|
36
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
37
37
|
contextMenu?: string | undefined;
|
|
38
38
|
dir?: string | undefined;
|
|
39
39
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -73,7 +73,7 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
|
73
73
|
results?: number | undefined;
|
|
74
74
|
security?: string | undefined;
|
|
75
75
|
unselectable?: "on" | "off" | undefined;
|
|
76
|
-
inputMode?: "search" | "
|
|
76
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
77
77
|
is?: string | undefined;
|
|
78
78
|
"aria-activedescendant"?: string | undefined;
|
|
79
79
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -84,16 +84,16 @@ export declare const Row: import("styled-components").IStyledComponent<"web", {
|
|
|
84
84
|
"aria-colindex"?: number | undefined;
|
|
85
85
|
"aria-colspan"?: number | undefined;
|
|
86
86
|
"aria-controls"?: string | undefined;
|
|
87
|
-
"aria-current"?: boolean | "
|
|
87
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
88
88
|
"aria-describedby"?: string | undefined;
|
|
89
89
|
"aria-details"?: string | undefined;
|
|
90
90
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
91
|
-
"aria-dropeffect"?: "link" | "
|
|
91
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
92
92
|
"aria-errormessage"?: string | undefined;
|
|
93
93
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
94
94
|
"aria-flowto"?: string | undefined;
|
|
95
95
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
96
|
-
"aria-haspopup"?: boolean | "
|
|
96
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
97
97
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
98
98
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
99
99
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -299,18 +299,18 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
299
299
|
md?: string | number | boolean | undefined;
|
|
300
300
|
lg?: string | number | boolean | undefined;
|
|
301
301
|
xl?: string | number | boolean | undefined;
|
|
302
|
-
alignSelf?: "
|
|
303
|
-
alignSelfXs?: "
|
|
304
|
-
alignSelfSm?: "
|
|
305
|
-
alignSelfMd?: "
|
|
306
|
-
alignSelfLg?: "
|
|
307
|
-
alignSelfXl?: "
|
|
308
|
-
textAlign?: "
|
|
309
|
-
textAlignXs?: "
|
|
310
|
-
textAlignSm?: "
|
|
311
|
-
textAlignMd?: "
|
|
312
|
-
textAlignLg?: "
|
|
313
|
-
textAlignXl?: "
|
|
302
|
+
alignSelf?: "start" | "end" | "center" | "auto" | "baseline" | "stretch" | undefined;
|
|
303
|
+
alignSelfXs?: "start" | "end" | "center" | "auto" | "baseline" | "stretch" | undefined;
|
|
304
|
+
alignSelfSm?: "start" | "end" | "center" | "auto" | "baseline" | "stretch" | undefined;
|
|
305
|
+
alignSelfMd?: "start" | "end" | "center" | "auto" | "baseline" | "stretch" | undefined;
|
|
306
|
+
alignSelfLg?: "start" | "end" | "center" | "auto" | "baseline" | "stretch" | undefined;
|
|
307
|
+
alignSelfXl?: "start" | "end" | "center" | "auto" | "baseline" | "stretch" | undefined;
|
|
308
|
+
textAlign?: "start" | "end" | "center" | "justify" | undefined;
|
|
309
|
+
textAlignXs?: "start" | "end" | "center" | "justify" | undefined;
|
|
310
|
+
textAlignSm?: "start" | "end" | "center" | "justify" | undefined;
|
|
311
|
+
textAlignMd?: "start" | "end" | "center" | "justify" | undefined;
|
|
312
|
+
textAlignLg?: "start" | "end" | "center" | "justify" | undefined;
|
|
313
|
+
textAlignXl?: "start" | "end" | "center" | "justify" | undefined;
|
|
314
314
|
offset?: string | number | undefined;
|
|
315
315
|
offsetXs?: string | number | undefined;
|
|
316
316
|
offsetSm?: string | number | undefined;
|
|
@@ -330,7 +330,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
330
330
|
accessKey?: string | undefined;
|
|
331
331
|
autoFocus?: boolean | undefined;
|
|
332
332
|
className?: string | undefined;
|
|
333
|
-
contentEditable?:
|
|
333
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
334
334
|
contextMenu?: string | undefined;
|
|
335
335
|
dir?: string | undefined;
|
|
336
336
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -370,7 +370,7 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
370
370
|
results?: number | undefined;
|
|
371
371
|
security?: string | undefined;
|
|
372
372
|
unselectable?: "on" | "off" | undefined;
|
|
373
|
-
inputMode?: "search" | "
|
|
373
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
374
374
|
is?: string | undefined;
|
|
375
375
|
"aria-activedescendant"?: string | undefined;
|
|
376
376
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -381,16 +381,16 @@ export declare const Col: import("styled-components").IStyledComponent<"web", {
|
|
|
381
381
|
"aria-colindex"?: number | undefined;
|
|
382
382
|
"aria-colspan"?: number | undefined;
|
|
383
383
|
"aria-controls"?: string | undefined;
|
|
384
|
-
"aria-current"?: boolean | "
|
|
384
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
385
385
|
"aria-describedby"?: string | undefined;
|
|
386
386
|
"aria-details"?: string | undefined;
|
|
387
387
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
388
|
-
"aria-dropeffect"?: "link" | "
|
|
388
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
389
389
|
"aria-errormessage"?: string | undefined;
|
|
390
390
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
391
391
|
"aria-flowto"?: string | undefined;
|
|
392
392
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
393
|
-
"aria-haspopup"?: boolean | "
|
|
393
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
394
394
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
395
395
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
396
396
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -600,7 +600,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
|
|
|
600
600
|
accessKey?: string | undefined;
|
|
601
601
|
autoFocus?: boolean | undefined;
|
|
602
602
|
className?: string | undefined;
|
|
603
|
-
contentEditable?:
|
|
603
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
604
604
|
contextMenu?: string | undefined;
|
|
605
605
|
dir?: string | undefined;
|
|
606
606
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
@@ -640,7 +640,7 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
|
|
|
640
640
|
results?: number | undefined;
|
|
641
641
|
security?: string | undefined;
|
|
642
642
|
unselectable?: "on" | "off" | undefined;
|
|
643
|
-
inputMode?: "search" | "
|
|
643
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
644
644
|
is?: string | undefined;
|
|
645
645
|
"aria-activedescendant"?: string | undefined;
|
|
646
646
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
@@ -651,16 +651,16 @@ export declare const MD: import("styled-components").IStyledComponent<"web", {
|
|
|
651
651
|
"aria-colindex"?: number | undefined;
|
|
652
652
|
"aria-colspan"?: number | undefined;
|
|
653
653
|
"aria-controls"?: string | undefined;
|
|
654
|
-
"aria-current"?: boolean | "
|
|
654
|
+
"aria-current"?: boolean | "true" | "false" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
655
655
|
"aria-describedby"?: string | undefined;
|
|
656
656
|
"aria-details"?: string | undefined;
|
|
657
657
|
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
658
|
-
"aria-dropeffect"?: "link" | "
|
|
658
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
659
659
|
"aria-errormessage"?: string | undefined;
|
|
660
660
|
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
661
661
|
"aria-flowto"?: string | undefined;
|
|
662
662
|
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
663
|
-
"aria-haspopup"?: boolean | "
|
|
663
|
+
"aria-haspopup"?: boolean | "true" | "false" | "dialog" | "grid" | "listbox" | "menu" | "tree" | undefined;
|
|
664
664
|
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
665
665
|
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
666
666
|
"aria-keyshortcuts"?: string | undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ISpanProps } from "@zendeskgarden/react-typography";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { IBookmark } from "../player/_types";
|
|
2
4
|
export interface HighlightArgs {
|
|
3
5
|
/**
|
|
4
6
|
* Applies a font color. Use [PALETTE](/components/palette#palette) colors
|
|
@@ -20,11 +22,7 @@ export interface HighlightArgs {
|
|
|
20
22
|
}) => void;
|
|
21
23
|
search?: string;
|
|
22
24
|
}
|
|
23
|
-
export interface Observation {
|
|
24
|
-
id: number;
|
|
25
|
-
start: number;
|
|
26
|
-
end: number;
|
|
27
|
-
backgroundColor?: string;
|
|
25
|
+
export interface Observation extends Omit<IBookmark, "onClick"> {
|
|
28
26
|
color?: string;
|
|
29
27
|
}
|
|
30
28
|
export interface WordProps extends ISpanProps {
|
|
@@ -35,4 +33,5 @@ export interface WordProps extends ISpanProps {
|
|
|
35
33
|
text: string;
|
|
36
34
|
/** Adjusts the font size. By default font size is medium */
|
|
37
35
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "xxl" | "xxxl";
|
|
36
|
+
tooltipContent?: (observation: Observation) => ReactNode;
|
|
38
37
|
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const DemoTranscript: {
|
|
2
|
+
metadata: {
|
|
3
|
+
transaction_key: string;
|
|
4
|
+
request_id: string;
|
|
5
|
+
sha256: string;
|
|
6
|
+
created: string;
|
|
7
|
+
duration: number;
|
|
8
|
+
channels: number;
|
|
9
|
+
models: string[];
|
|
10
|
+
model_info: {
|
|
11
|
+
"4accafca-a091-473d-8241-f5a847cb5766": {
|
|
12
|
+
name: string;
|
|
13
|
+
version: string;
|
|
14
|
+
arch: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
results: {
|
|
19
|
+
channels: {
|
|
20
|
+
alternatives: {
|
|
21
|
+
transcript: string;
|
|
22
|
+
confidence: number;
|
|
23
|
+
words: {
|
|
24
|
+
word: string;
|
|
25
|
+
start: number;
|
|
26
|
+
end: number;
|
|
27
|
+
confidence: number;
|
|
28
|
+
speaker: number;
|
|
29
|
+
speaker_confidence: number;
|
|
30
|
+
punctuated_word: string;
|
|
31
|
+
}[];
|
|
32
|
+
paragraphs: {
|
|
33
|
+
transcript: string;
|
|
34
|
+
paragraphs: {
|
|
35
|
+
sentences: {
|
|
36
|
+
text: string;
|
|
37
|
+
start: number;
|
|
38
|
+
end: number;
|
|
39
|
+
}[];
|
|
40
|
+
speaker: number;
|
|
41
|
+
num_words: number;
|
|
42
|
+
start: number;
|
|
43
|
+
end: number;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
}[];
|
|
47
|
+
}[];
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { HighlightArgs } from "./_types";
|
|
2
|
-
interface StoryArgs extends HighlightArgs {
|
|
3
|
-
words: {
|
|
4
|
-
start: number;
|
|
5
|
-
end: number;
|
|
6
|
-
word: string;
|
|
1
|
+
import { HighlightArgs, WordProps } from "./_types";
|
|
2
|
+
export interface StoryArgs extends HighlightArgs {
|
|
3
|
+
words: Array<WordProps & {
|
|
7
4
|
speaker: number;
|
|
8
|
-
}
|
|
5
|
+
}>;
|
|
9
6
|
currentTime: number;
|
|
10
7
|
includeSearch?: boolean;
|
|
11
8
|
}
|
|
12
9
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
13
10
|
export declare const VideoSync: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
14
11
|
export declare const WithSearch: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
12
|
+
export declare const WithTooltip: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
13
|
+
export declare const Demo: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
15
14
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, HighlightArgs & {
|
|
16
15
|
children?: import("react").ReactNode;
|
|
17
16
|
}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TooltipArgs } from "./_types";
|
|
3
3
|
declare const Tooltip: import("styled-components").IStyledComponent<"web", {
|
|
4
|
+
isTransparent?: boolean | undefined;
|
|
4
5
|
appendToNode?: Element | undefined;
|
|
5
6
|
hasArrow?: boolean | undefined;
|
|
6
7
|
delayMS?: number | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TooltipArgs } from "./_types";
|
|
2
2
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TooltipArgs>;
|
|
3
|
+
export declare const Transparent: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, TooltipArgs>;
|
|
3
4
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, TooltipArgs>;
|
|
4
5
|
export default _default;
|