@appquality/unguess-design-system 3.1.87 → 3.1.88-bookmark-tooltip-changes
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 +13 -0
- package/build/index.js +82 -64
- package/build/stories/buttons/button/index.stories.d.ts +1 -0
- package/build/stories/buttons/utils.d.ts +27 -27
- package/build/stories/chat/index.stories.d.ts +1 -0
- package/build/stories/dropdowns/select/index.stories.d.ts +1 -0
- package/build/stories/editor/index.stories.d.ts +1 -0
- 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 +7 -7
- package/build/stories/player/_types.d.ts +2 -1
- package/build/stories/player/index.stories.d.ts +1 -0
- package/build/stories/player/parts/controlButton.d.ts +289 -0
- 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,3 +1,16 @@
|
|
|
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
|
+
|
|
1
14
|
# v3.1.87 (Mon May 13 2024)
|
|
2
15
|
|
|
3
16
|
#### 🐛 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;
|
|
@@ -3911,6 +3918,10 @@ const SvgVolumeUnmutedFill = props => /*#__PURE__*/React__namespace.createElemen
|
|
|
3911
3918
|
d: "M11.77 9.77c.45-.45.73-1.08.73-1.77s-.28-1.31-.73-1.77m2.17 5.6c.97-.99 1.56-2.34 1.56-3.83 0-1.52-.62-2.89-1.61-3.89"
|
|
3912
3919
|
})));
|
|
3913
3920
|
|
|
3921
|
+
const ControlButton = styled__default["default"](IconButton) `
|
|
3922
|
+
color: ${({ theme }) => theme.palette.grey[700]};
|
|
3923
|
+
`;
|
|
3924
|
+
|
|
3914
3925
|
const AudioButton = () => {
|
|
3915
3926
|
const [hasAudio, setHasAudio] = React.useState(false);
|
|
3916
3927
|
const { isMuted, setMuted, context } = Video.useVideoContext();
|
|
@@ -3935,8 +3946,8 @@ const AudioButton = () => {
|
|
|
3935
3946
|
setMuted(!hasVolume(player.ref.current));
|
|
3936
3947
|
checkAudio(player.ref.current);
|
|
3937
3948
|
}
|
|
3938
|
-
}, [context.isPlaying, isMuted]);
|
|
3939
|
-
return (jsxRuntime.jsx(
|
|
3949
|
+
}, [context.isPlaying, isMuted, player, setMuted]);
|
|
3950
|
+
return (jsxRuntime.jsx(ControlButton, Object.assign({ disabled: !hasAudio, onClick: () => {
|
|
3940
3951
|
if (player === null || player === void 0 ? void 0 : player.ref.current) {
|
|
3941
3952
|
player.ref.current.volume = player.ref.current.volume > 0 ? 0 : 1;
|
|
3942
3953
|
setMuted(!player.ref.current.volume);
|
|
@@ -4095,6 +4106,11 @@ const Rect = styled.styled.div `
|
|
|
4095
4106
|
|
|
4096
4107
|
transition: width 0.1s ease;
|
|
4097
4108
|
`;
|
|
4109
|
+
const StyledTooltip$1 = styled.styled(Tooltip) `
|
|
4110
|
+
margin-bottom: ${({ theme }) => theme.space.sm};
|
|
4111
|
+
color: ${({ tooltipColor }) => tooltipColor};
|
|
4112
|
+
|
|
4113
|
+
`;
|
|
4098
4114
|
const Grabber = (props) => {
|
|
4099
4115
|
const { observation } = props;
|
|
4100
4116
|
const { setIsGrabbing, setactiveBookmark, setFromEnd } = useProgressContext();
|
|
@@ -4109,7 +4125,7 @@ const Grabber = (props) => {
|
|
|
4109
4125
|
};
|
|
4110
4126
|
const Bookmark = (props) => {
|
|
4111
4127
|
var _a, _b;
|
|
4112
|
-
const { start, end, hue,
|
|
4128
|
+
const { start, end, hue, tooltipContent } = props;
|
|
4113
4129
|
const { context } = Video.useVideoContext();
|
|
4114
4130
|
const videoStart = context.part.start || 0;
|
|
4115
4131
|
const videoEnd = context.part.end || ((_a = context.player) === null || _a === void 0 ? void 0 : _a.totalTime) || 0;
|
|
@@ -4120,7 +4136,7 @@ const Bookmark = (props) => {
|
|
|
4120
4136
|
}
|
|
4121
4137
|
if (start > videoEnd || start < videoStart)
|
|
4122
4138
|
return null;
|
|
4123
|
-
return (jsxRuntime.jsx(
|
|
4139
|
+
return (jsxRuntime.jsx(StyledTooltip$1, Object.assign({ content: tooltipContent, type: "light", size: "large", isTransparent: true }, { children: jsxRuntime.jsxs(Rect, Object.assign({ isActive: activeBookmark && activeBookmark.id === props.id, hue: hue, style: {
|
|
4124
4140
|
left: `${((start - videoStart) / duration) * 100}%`,
|
|
4125
4141
|
width: `${((end - start) / duration) * 100}%`,
|
|
4126
4142
|
}, onClick: props.onClick }, { children: [jsxRuntime.jsx(Grabber, { observation: props }), jsxRuntime.jsx(Grabber, { isEnd: true, observation: props })] })) })));
|
|
@@ -4273,18 +4289,18 @@ const ControlsGroupCenter = (props) => {
|
|
|
4273
4289
|
const nextTime = videoRef.currentTime + 10;
|
|
4274
4290
|
videoRef.currentTime = nextTime;
|
|
4275
4291
|
};
|
|
4276
|
-
return (jsxRuntime.jsxs(StyledDiv$3, Object.assign({}, props, { children: [jsxRuntime.jsx(
|
|
4292
|
+
return (jsxRuntime.jsxs(StyledDiv$3, Object.assign({}, props, { children: [jsxRuntime.jsx(ControlButton, Object.assign({ onClick: (e) => {
|
|
4277
4293
|
if (videoRef) {
|
|
4278
4294
|
videoRef.currentTime = 0;
|
|
4279
4295
|
}
|
|
4280
4296
|
e.stopPropagation();
|
|
4281
|
-
} }, { children: jsxRuntime.jsx(SvgPreviousFill, {}) })), jsxRuntime.jsx(
|
|
4297
|
+
} }, { children: jsxRuntime.jsx(SvgPreviousFill, {}) })), jsxRuntime.jsx(ControlButton, Object.assign({ onClick: (e) => {
|
|
4282
4298
|
onRewind();
|
|
4283
4299
|
e.stopPropagation();
|
|
4284
|
-
} }, { children: jsxRuntime.jsx(SvgBackSecondsFill, {}) })), jsxRuntime.jsx(
|
|
4300
|
+
} }, { children: jsxRuntime.jsx(SvgBackSecondsFill, {}) })), jsxRuntime.jsx(ControlButton, Object.assign({ size: "large", onClick: togglePlay }, { children: isPlaying ? (jsxRuntime.jsx(SvgPauseFill, { style: { width: "24px", height: "24px" } })) : (jsxRuntime.jsx(SvgPlayFill, { style: { width: "24px", height: "24px" } })) })), jsxRuntime.jsx(ControlButton, Object.assign({ onClick: (e) => {
|
|
4285
4301
|
onForward();
|
|
4286
4302
|
e.stopPropagation();
|
|
4287
|
-
} }, { children: jsxRuntime.jsx(SvgForwardSecondsFill, {}) })), jsxRuntime.jsx(
|
|
4303
|
+
} }, { children: jsxRuntime.jsx(SvgForwardSecondsFill, {}) })), jsxRuntime.jsx(ControlButton, Object.assign({ isPill: true, onClick: (e) => {
|
|
4288
4304
|
const newSpeed = getNextPlaybackRate(playBackRate);
|
|
4289
4305
|
if (videoRef === null || videoRef === void 0 ? void 0 : videoRef.playbackRate) {
|
|
4290
4306
|
setPlayBackRate(newSpeed);
|
|
@@ -4294,9 +4310,9 @@ const ControlsGroupCenter = (props) => {
|
|
|
4294
4310
|
} }, { children: jsxRuntime.jsxs(SM, Object.assign({ isBold: true, style: { lineHeight: "16px" } }, { children: [playBackRate, "x"] })) }))] })));
|
|
4295
4311
|
};
|
|
4296
4312
|
|
|
4297
|
-
var _path$f;
|
|
4313
|
+
var _path$f, _circle$1;
|
|
4298
4314
|
function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
4299
|
-
const
|
|
4315
|
+
const SvgTagStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
4300
4316
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4301
4317
|
width: 16,
|
|
4302
4318
|
height: 16,
|
|
@@ -4305,19 +4321,54 @@ const SvgMaximizeStroke = props => /*#__PURE__*/React__namespace.createElement("
|
|
|
4305
4321
|
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4306
4322
|
fill: "none",
|
|
4307
4323
|
stroke: "currentColor",
|
|
4308
|
-
|
|
4309
|
-
|
|
4324
|
+
d: "M.5 1v5.3c0 .1.1.3.1.4l8.5 8.5c.2.2.5.2.7 0l5.3-5.3c.2-.2.2-.5 0-.7L6.6.6S6.4.5 6.3.5H1C.7.5.5.7.5 1z"
|
|
4325
|
+
})), _circle$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
4326
|
+
cx: 4,
|
|
4327
|
+
cy: 4,
|
|
4328
|
+
r: 1,
|
|
4329
|
+
fill: "currentColor"
|
|
4310
4330
|
})));
|
|
4311
4331
|
|
|
4332
|
+
const Cutter = ({ onCutHandler, isCutting, i18n, }) => {
|
|
4333
|
+
var _a;
|
|
4334
|
+
const { context } = Video.useVideoContext();
|
|
4335
|
+
const videoRef = (_a = context.player) === null || _a === void 0 ? void 0 : _a.ref.current;
|
|
4336
|
+
if (!onCutHandler)
|
|
4337
|
+
return null;
|
|
4338
|
+
return (jsxRuntime.jsxs(Button, Object.assign({ isPrimary: true, isAccent: true, size: "small", onClick: (e) => {
|
|
4339
|
+
if (videoRef) {
|
|
4340
|
+
onCutHandler(videoRef.currentTime);
|
|
4341
|
+
}
|
|
4342
|
+
e.stopPropagation();
|
|
4343
|
+
} }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgTagStroke, {}) }), isCutting
|
|
4344
|
+
? (i18n === null || i18n === void 0 ? void 0 : i18n.onHighlight) || "Click again to stop"
|
|
4345
|
+
: (i18n === null || i18n === void 0 ? void 0 : i18n.beforeHighlight) || "New highlight"] })));
|
|
4346
|
+
};
|
|
4347
|
+
|
|
4312
4348
|
var _path$e;
|
|
4313
4349
|
function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
4314
|
-
const
|
|
4350
|
+
const SvgMaximizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
4315
4351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4316
4352
|
width: 16,
|
|
4317
4353
|
height: 16,
|
|
4318
4354
|
focusable: "false",
|
|
4319
4355
|
viewBox: "0 0 16 16"
|
|
4320
4356
|
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4357
|
+
fill: "none",
|
|
4358
|
+
stroke: "currentColor",
|
|
4359
|
+
strokeLinecap: "round",
|
|
4360
|
+
d: "M4.5.5H1C.72.5.5.72.5 1v3.5m15 0V1c0-.28-.22-.5-.5-.5h-3.5m-11 11V15c0 .28.22.5.5.5h3.5m11-4V15c0 .28-.22.5-.5.5h-3.5m-7-11L1 1m10.5 3.5L15 1M4.5 11.5L1 15m10.5-3.5L15 15"
|
|
4361
|
+
})));
|
|
4362
|
+
|
|
4363
|
+
var _path$d;
|
|
4364
|
+
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
4365
|
+
const SvgMinimizeStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
4366
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4367
|
+
width: 16,
|
|
4368
|
+
height: 16,
|
|
4369
|
+
focusable: "false",
|
|
4370
|
+
viewBox: "0 0 16 16"
|
|
4371
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4321
4372
|
fill: "none",
|
|
4322
4373
|
stroke: "currentColor",
|
|
4323
4374
|
strokeLinecap: "round",
|
|
@@ -4360,7 +4411,7 @@ const FullScreenButton = ({ container, }) => {
|
|
|
4360
4411
|
setFullScreen(false);
|
|
4361
4412
|
}
|
|
4362
4413
|
}
|
|
4363
|
-
}), [ref, isFullScreen]);
|
|
4414
|
+
}), [ref, isFullScreen, setFullScreen]);
|
|
4364
4415
|
const canGoFullScreen = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
4365
4416
|
if (ref) {
|
|
4366
4417
|
return (requestFullscreen ||
|
|
@@ -4385,7 +4436,7 @@ const FullScreenButton = ({ container, }) => {
|
|
|
4385
4436
|
}
|
|
4386
4437
|
};
|
|
4387
4438
|
}, [ref]);
|
|
4388
|
-
return (jsxRuntime.jsx(
|
|
4439
|
+
return (jsxRuntime.jsx(ControlButton, Object.assign({ onClick: (e) => {
|
|
4389
4440
|
handleFullScreen();
|
|
4390
4441
|
e.stopPropagation();
|
|
4391
4442
|
}, disabled: !canGoFullScreen() }, { children: document.fullscreenElement || isFullScreen ? (jsxRuntime.jsx(SvgMinimizeStroke, {})) : (jsxRuntime.jsx(SvgMaximizeStroke, {})) })));
|
|
@@ -4420,7 +4471,7 @@ const ProgressBar = React.forwardRef((props, ref) => {
|
|
|
4420
4471
|
|
|
4421
4472
|
const StyledDiv$2 = styled__default["default"].div `
|
|
4422
4473
|
display: flex;
|
|
4423
|
-
color: ${({ theme }) => theme.palette.grey[
|
|
4474
|
+
color: ${({ theme }) => theme.palette.grey[700]};
|
|
4424
4475
|
`;
|
|
4425
4476
|
const TimeLabel = ({ current, duration, }) => (jsxRuntime.jsx(StyledDiv$2, { children: jsxRuntime.jsxs(SM, Object.assign({ tag: "span" }, { children: [formatDuration(current), "/", formatDuration(duration)] })) }));
|
|
4426
4477
|
|
|
@@ -4437,57 +4488,23 @@ const Content$1 = styled__default["default"].div `
|
|
|
4437
4488
|
padding: 2px 4px;
|
|
4438
4489
|
display: inline-flex;
|
|
4439
4490
|
color: white;
|
|
4491
|
+
font-size: ${({ theme }) => theme.fontSizes.xs};
|
|
4440
4492
|
align-items: center;
|
|
4441
4493
|
justify-content: center;
|
|
4442
|
-
min-height:
|
|
4494
|
+
min-height: 14px;
|
|
4443
4495
|
`;
|
|
4444
4496
|
const PlayerTooltip = (_a) => {
|
|
4445
4497
|
var { children } = _a, props = __rest(_a, ["children"]);
|
|
4446
4498
|
return (jsxRuntime.jsx(Wrapper$1, Object.assign({}, props, { children: jsxRuntime.jsx(Content$1, { children: children }) })));
|
|
4447
4499
|
};
|
|
4448
4500
|
|
|
4449
|
-
var _path$d, _circle$1;
|
|
4450
|
-
function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
4451
|
-
const SvgTagStroke = props => /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
4452
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4453
|
-
width: 16,
|
|
4454
|
-
height: 16,
|
|
4455
|
-
focusable: "false",
|
|
4456
|
-
viewBox: "0 0 16 16"
|
|
4457
|
-
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
4458
|
-
fill: "none",
|
|
4459
|
-
stroke: "currentColor",
|
|
4460
|
-
d: "M.5 1v5.3c0 .1.1.3.1.4l8.5 8.5c.2.2.5.2.7 0l5.3-5.3c.2-.2.2-.5 0-.7L6.6.6S6.4.5 6.3.5H1C.7.5.5.7.5 1z"
|
|
4461
|
-
})), _circle$1 || (_circle$1 = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
4462
|
-
cx: 4,
|
|
4463
|
-
cy: 4,
|
|
4464
|
-
r: 1,
|
|
4465
|
-
fill: "currentColor"
|
|
4466
|
-
})));
|
|
4467
|
-
|
|
4468
|
-
const Cutter = ({ onCutHandler, isCutting, i18n, }) => {
|
|
4469
|
-
var _a;
|
|
4470
|
-
const { context } = Video.useVideoContext();
|
|
4471
|
-
const videoRef = (_a = context.player) === null || _a === void 0 ? void 0 : _a.ref.current;
|
|
4472
|
-
if (!onCutHandler)
|
|
4473
|
-
return null;
|
|
4474
|
-
return (jsxRuntime.jsxs(Button, Object.assign({ isPrimary: true, isAccent: true, size: "small", onClick: (e) => {
|
|
4475
|
-
if (videoRef) {
|
|
4476
|
-
onCutHandler(videoRef.currentTime);
|
|
4477
|
-
}
|
|
4478
|
-
e.stopPropagation();
|
|
4479
|
-
} }, { children: [jsxRuntime.jsx(Button.StartIcon, { children: jsxRuntime.jsx(SvgTagStroke, {}) }), isCutting
|
|
4480
|
-
? (i18n === null || i18n === void 0 ? void 0 : i18n.onHighlight) || "Click again to stop"
|
|
4481
|
-
: (i18n === null || i18n === void 0 ? void 0 : i18n.beforeHighlight) || "New highlight"] })));
|
|
4482
|
-
};
|
|
4483
|
-
|
|
4484
4501
|
const ControlsWrapper = styled__default["default"].div `
|
|
4485
4502
|
position: absolute;
|
|
4486
4503
|
bottom: 0;
|
|
4487
4504
|
left: 0;
|
|
4488
4505
|
right: 0;
|
|
4489
4506
|
padding: ${({ theme }) => theme.space.xxs} 0;
|
|
4490
|
-
background-color: ${({ theme }) =>
|
|
4507
|
+
background-color: ${({ theme }) => theme.palette.grey[100]};
|
|
4491
4508
|
${({ isPlaying }) => isPlaying && "display: none;"}
|
|
4492
4509
|
z-index: 2;
|
|
4493
4510
|
`;
|
|
@@ -4627,6 +4644,10 @@ const BigButton = styled__default["default"](IconButton) `
|
|
|
4627
4644
|
min-width: ${({ theme }) => theme.space.base * 15}px;
|
|
4628
4645
|
width: 80px;
|
|
4629
4646
|
height: 80px;
|
|
4647
|
+
|
|
4648
|
+
box-shadow: ${({ theme }) => theme.shadows.boxShadow(theme)};
|
|
4649
|
+
|
|
4650
|
+
|
|
4630
4651
|
${PlayIcon} {
|
|
4631
4652
|
width: 60%;
|
|
4632
4653
|
height: 60%;
|
|
@@ -4693,8 +4714,7 @@ const Container$1 = styled__default["default"].div `
|
|
|
4693
4714
|
}
|
|
4694
4715
|
}
|
|
4695
4716
|
}
|
|
4696
|
-
|
|
4697
|
-
background-color: ${({ theme }) => theme.palette.grey[700]};
|
|
4717
|
+
background: ${({ theme }) => theme.palette.grey[400]};
|
|
4698
4718
|
`;
|
|
4699
4719
|
|
|
4700
4720
|
const UgSpinner = styled__default["default"](reactLoaders.Spinner) ``;
|
|
@@ -4722,11 +4742,7 @@ const VideoSpinner = () => (jsxRuntime.jsx(StyledDiv, { children: jsxRuntime.jsx
|
|
|
4722
4742
|
* Used for this:
|
|
4723
4743
|
- To display a video
|
|
4724
4744
|
*/
|
|
4725
|
-
const Player = React.forwardRef((props, forwardRef) => {
|
|
4726
|
-
const videoRef = React.useRef(null);
|
|
4727
|
-
React.useImperativeHandle(forwardRef, () => videoRef.current);
|
|
4728
|
-
return (jsxRuntime.jsx(Video__default["default"], Object.assign({ src: props.url }, props, { children: jsxRuntime.jsx(PlayerCore, Object.assign({ ref: videoRef }, props)) })));
|
|
4729
|
-
});
|
|
4745
|
+
const Player = React.forwardRef((props, forwardRef) => (jsxRuntime.jsx(Video__default["default"], Object.assign({ src: props.url }, props, { children: jsxRuntime.jsx(PlayerCore, Object.assign({ ref: forwardRef }, props)) }))));
|
|
4730
4746
|
const PlayerCore = React.forwardRef((props, forwardRef) => {
|
|
4731
4747
|
var _a;
|
|
4732
4748
|
const { context, togglePlay, setIsPlaying } = Video.useVideoContext();
|
|
@@ -4734,7 +4750,7 @@ const PlayerCore = React.forwardRef((props, forwardRef) => {
|
|
|
4734
4750
|
const videoRef = (_a = context.player) === null || _a === void 0 ? void 0 : _a.ref.current;
|
|
4735
4751
|
const isLoaded = !!videoRef;
|
|
4736
4752
|
const containerRef = React.useRef(null);
|
|
4737
|
-
React.useImperativeHandle(forwardRef, () => videoRef);
|
|
4753
|
+
React.useImperativeHandle(forwardRef, () => videoRef, [videoRef]);
|
|
4738
4754
|
React.useEffect(() => {
|
|
4739
4755
|
if (videoRef) {
|
|
4740
4756
|
videoRef.addEventListener("pause", () => {
|
|
@@ -5636,8 +5652,7 @@ const StyledWord = styled__default["default"](reactTypography.Span) `
|
|
|
5636
5652
|
var _a, _b;
|
|
5637
5653
|
return observation &&
|
|
5638
5654
|
` user-select: none;
|
|
5639
|
-
|
|
5640
|
-
background-color: ${(_a = observation.backgroundColor) !== null && _a !== void 0 ? _a : getColor(theme.palette.azure, 700, undefined, 0.5)};
|
|
5655
|
+
background-color: ${(_a = observation.hue) !== null && _a !== void 0 ? _a : getColor(theme.palette.azure, 700, undefined, 0.5)};
|
|
5641
5656
|
color: ${(_b = observation.color) !== null && _b !== void 0 ? _b : "white"};
|
|
5642
5657
|
box-sizing: border-box;
|
|
5643
5658
|
&:focus {
|
|
@@ -5705,6 +5720,9 @@ const Word = (props) => {
|
|
|
5705
5720
|
props.currentTime < props.end;
|
|
5706
5721
|
// Is there an observation that contains this word?
|
|
5707
5722
|
const observation = (_a = props.observations) === null || _a === void 0 ? void 0 : _a.find((obs) => props.start >= obs.start && props.end <= obs.end);
|
|
5723
|
+
if (props.tooltipContent !== undefined && !!observation) {
|
|
5724
|
+
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 })), " "] })) })));
|
|
5725
|
+
}
|
|
5708
5726
|
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 })), " "] })));
|
|
5709
5727
|
};
|
|
5710
5728
|
Highlight.Word = Word;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ButtonArgs } from "./_types";
|
|
2
3
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
3
4
|
export declare const Basic: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, ButtonArgs>;
|
|
@@ -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?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
12
|
+
alignItemsXs?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
13
|
+
alignItemsSm?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
14
|
+
alignItemsMd?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
15
|
+
alignItemsLg?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
16
|
+
alignItemsXl?: "center" | "start" | "end" | "baseline" | "stretch" | undefined;
|
|
17
|
+
justifyContent?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
18
|
+
justifyContentXs?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
19
|
+
justifyContentSm?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
20
|
+
justifyContentMd?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
21
|
+
justifyContentLg?: "center" | "start" | "end" | "between" | "around" | undefined;
|
|
22
|
+
justifyContentXl?: "center" | "start" | "end" | "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;
|
|
@@ -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?: "
|
|
76
|
+
inputMode?: "none" | "search" | "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;
|
|
@@ -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?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
303
|
+
alignSelfXs?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
304
|
+
alignSelfSm?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
305
|
+
alignSelfMd?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
306
|
+
alignSelfLg?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
307
|
+
alignSelfXl?: "center" | "start" | "end" | "baseline" | "stretch" | "auto" | undefined;
|
|
308
|
+
textAlign?: "center" | "start" | "end" | "justify" | undefined;
|
|
309
|
+
textAlignXs?: "center" | "start" | "end" | "justify" | undefined;
|
|
310
|
+
textAlignSm?: "center" | "start" | "end" | "justify" | undefined;
|
|
311
|
+
textAlignMd?: "center" | "start" | "end" | "justify" | undefined;
|
|
312
|
+
textAlignLg?: "center" | "start" | "end" | "justify" | undefined;
|
|
313
|
+
textAlignXl?: "center" | "start" | "end" | "justify" | undefined;
|
|
314
314
|
offset?: string | number | undefined;
|
|
315
315
|
offsetXs?: string | number | undefined;
|
|
316
316
|
offsetSm?: string | number | 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?: "
|
|
373
|
+
inputMode?: "none" | "search" | "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;
|
|
@@ -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?: "
|
|
643
|
+
inputMode?: "none" | "search" | "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;
|
|
@@ -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,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
end: number;
|
|
6
|
-
word: string;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HighlightArgs, WordProps } from "./_types";
|
|
3
|
+
export interface StoryArgs extends HighlightArgs {
|
|
4
|
+
words: Array<WordProps & {
|
|
7
5
|
speaker: number;
|
|
8
|
-
}
|
|
6
|
+
}>;
|
|
9
7
|
currentTime: number;
|
|
10
8
|
includeSearch?: boolean;
|
|
11
9
|
}
|
|
12
10
|
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
13
11
|
export declare const VideoSync: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
14
12
|
export declare const WithSearch: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
13
|
+
export declare const WithTooltip: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
14
|
+
export declare const Demo: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, StoryArgs>;
|
|
15
15
|
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, HighlightArgs & {
|
|
16
16
|
children?: import("react").ReactNode;
|
|
17
17
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
1
|
+
import { HTMLAttributes, ReactNode } from "react";
|
|
2
2
|
export interface PlayerArgs extends HTMLAttributes<HTMLVideoElement> {
|
|
3
3
|
url: string;
|
|
4
4
|
start?: number;
|
|
@@ -20,6 +20,7 @@ export interface IBookmark {
|
|
|
20
20
|
end: number;
|
|
21
21
|
hue?: string;
|
|
22
22
|
label?: string;
|
|
23
|
+
tooltipContent?: ReactNode;
|
|
23
24
|
onClick?: () => void;
|
|
24
25
|
}
|
|
25
26
|
export interface WrapperProps {
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ControlButton: import("styled-components").IStyledComponent<"web", {
|
|
3
|
+
isBright?: boolean | undefined;
|
|
4
|
+
isAccent?: boolean | undefined;
|
|
5
|
+
isRotated?: boolean | undefined;
|
|
6
|
+
isDanger?: boolean | undefined;
|
|
7
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
8
|
+
isNeutral?: boolean | undefined;
|
|
9
|
+
isPrimary?: boolean | undefined;
|
|
10
|
+
isBasic?: boolean | undefined;
|
|
11
|
+
isPill?: boolean | undefined;
|
|
12
|
+
focusInset?: boolean | undefined;
|
|
13
|
+
isSelected?: boolean | undefined;
|
|
14
|
+
disabled?: boolean | undefined;
|
|
15
|
+
form?: string | undefined;
|
|
16
|
+
formAction?: string | undefined;
|
|
17
|
+
formEncType?: string | undefined;
|
|
18
|
+
formMethod?: string | undefined;
|
|
19
|
+
formNoValidate?: boolean | undefined;
|
|
20
|
+
formTarget?: string | undefined;
|
|
21
|
+
name?: string | undefined;
|
|
22
|
+
type?: "button" | "submit" | "reset" | undefined;
|
|
23
|
+
value?: string | number | readonly string[] | undefined;
|
|
24
|
+
defaultChecked?: boolean | undefined;
|
|
25
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
26
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
27
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
28
|
+
accessKey?: string | undefined;
|
|
29
|
+
autoFocus?: boolean | undefined;
|
|
30
|
+
className?: string | undefined;
|
|
31
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
32
|
+
contextMenu?: string | undefined;
|
|
33
|
+
dir?: string | undefined;
|
|
34
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
35
|
+
hidden?: boolean | undefined;
|
|
36
|
+
id?: string | undefined;
|
|
37
|
+
lang?: string | undefined;
|
|
38
|
+
nonce?: string | undefined;
|
|
39
|
+
placeholder?: string | undefined;
|
|
40
|
+
slot?: string | undefined;
|
|
41
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
42
|
+
style?: import("react").CSSProperties | undefined;
|
|
43
|
+
tabIndex?: number | undefined;
|
|
44
|
+
title?: string | undefined;
|
|
45
|
+
translate?: "yes" | "no" | undefined;
|
|
46
|
+
radioGroup?: string | undefined;
|
|
47
|
+
role?: import("react").AriaRole | undefined;
|
|
48
|
+
about?: string | undefined;
|
|
49
|
+
content?: string | undefined;
|
|
50
|
+
datatype?: string | undefined;
|
|
51
|
+
inlist?: any;
|
|
52
|
+
prefix?: string | undefined;
|
|
53
|
+
property?: string | undefined;
|
|
54
|
+
rel?: string | undefined;
|
|
55
|
+
resource?: string | undefined;
|
|
56
|
+
rev?: string | undefined;
|
|
57
|
+
typeof?: string | undefined;
|
|
58
|
+
vocab?: string | undefined;
|
|
59
|
+
autoCapitalize?: string | undefined;
|
|
60
|
+
autoCorrect?: string | undefined;
|
|
61
|
+
autoSave?: string | undefined;
|
|
62
|
+
color?: string | undefined;
|
|
63
|
+
itemProp?: string | undefined;
|
|
64
|
+
itemScope?: boolean | undefined;
|
|
65
|
+
itemType?: string | undefined;
|
|
66
|
+
itemID?: string | undefined;
|
|
67
|
+
itemRef?: string | undefined;
|
|
68
|
+
results?: number | undefined;
|
|
69
|
+
security?: string | undefined;
|
|
70
|
+
unselectable?: "on" | "off" | undefined;
|
|
71
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
72
|
+
is?: string | undefined;
|
|
73
|
+
"aria-activedescendant"?: string | undefined;
|
|
74
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
75
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
76
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
77
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
78
|
+
"aria-colcount"?: number | undefined;
|
|
79
|
+
"aria-colindex"?: number | undefined;
|
|
80
|
+
"aria-colspan"?: number | undefined;
|
|
81
|
+
"aria-controls"?: string | undefined;
|
|
82
|
+
"aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
83
|
+
"aria-describedby"?: string | undefined;
|
|
84
|
+
"aria-details"?: string | undefined;
|
|
85
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
86
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
87
|
+
"aria-errormessage"?: string | undefined;
|
|
88
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
89
|
+
"aria-flowto"?: string | undefined;
|
|
90
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
91
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
92
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
93
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
94
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
95
|
+
"aria-label"?: string | undefined;
|
|
96
|
+
"aria-labelledby"?: string | undefined;
|
|
97
|
+
"aria-level"?: number | undefined;
|
|
98
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
99
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
100
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
101
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
102
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
103
|
+
"aria-owns"?: string | undefined;
|
|
104
|
+
"aria-placeholder"?: string | undefined;
|
|
105
|
+
"aria-posinset"?: number | undefined;
|
|
106
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
107
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
108
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
109
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
110
|
+
"aria-roledescription"?: string | undefined;
|
|
111
|
+
"aria-rowcount"?: number | undefined;
|
|
112
|
+
"aria-rowindex"?: number | undefined;
|
|
113
|
+
"aria-rowspan"?: number | undefined;
|
|
114
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
115
|
+
"aria-setsize"?: number | undefined;
|
|
116
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
117
|
+
"aria-valuemax"?: number | undefined;
|
|
118
|
+
"aria-valuemin"?: number | undefined;
|
|
119
|
+
"aria-valuenow"?: number | undefined;
|
|
120
|
+
"aria-valuetext"?: string | undefined;
|
|
121
|
+
children?: import("react").ReactNode;
|
|
122
|
+
dangerouslySetInnerHTML?: {
|
|
123
|
+
__html: string | TrustedHTML;
|
|
124
|
+
} | undefined;
|
|
125
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
126
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
127
|
+
onCut?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
128
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
129
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
130
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLButtonElement> | undefined;
|
|
131
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
132
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
133
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
134
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
135
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
136
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLButtonElement> | undefined;
|
|
137
|
+
onFocus?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
138
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
139
|
+
onBlur?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
140
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLButtonElement> | undefined;
|
|
141
|
+
onChange?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
142
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
143
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
144
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
145
|
+
onInput?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
146
|
+
onInputCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
147
|
+
onReset?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
148
|
+
onResetCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
149
|
+
onSubmit?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
150
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
151
|
+
onInvalid?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
152
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLButtonElement> | undefined;
|
|
153
|
+
onLoad?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
154
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
155
|
+
onError?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
156
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
157
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
158
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
159
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
160
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
161
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
162
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLButtonElement> | undefined;
|
|
163
|
+
onAbort?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
164
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
165
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
166
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
167
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
168
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
169
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
170
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
171
|
+
onEmptied?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
172
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
173
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
174
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
175
|
+
onEnded?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
176
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
177
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
178
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
179
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
180
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
181
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
182
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
183
|
+
onPause?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
184
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
185
|
+
onPlay?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
186
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
187
|
+
onPlaying?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
188
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
189
|
+
onProgress?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
190
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
191
|
+
onRateChange?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
192
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
193
|
+
onResize?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
194
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
195
|
+
onSeeked?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
196
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
197
|
+
onSeeking?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
198
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
199
|
+
onStalled?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
200
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
201
|
+
onSuspend?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
202
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
203
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
204
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
205
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
206
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
207
|
+
onWaiting?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
208
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
209
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
210
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
211
|
+
onClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
212
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
213
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
214
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
215
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
216
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
217
|
+
onDrag?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
218
|
+
onDragCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
219
|
+
onDragEnd?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
220
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
221
|
+
onDragEnter?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
222
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
223
|
+
onDragExit?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
224
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
225
|
+
onDragLeave?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
226
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
227
|
+
onDragOver?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
228
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
229
|
+
onDragStart?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
230
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
231
|
+
onDrop?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
232
|
+
onDropCapture?: import("react").DragEventHandler<HTMLButtonElement> | undefined;
|
|
233
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
234
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
235
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
236
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
237
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
238
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
239
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
240
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
241
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
242
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
243
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
244
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLButtonElement> | undefined;
|
|
245
|
+
onSelect?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
246
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLButtonElement> | undefined;
|
|
247
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
248
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
249
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
250
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
251
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
252
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
253
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
254
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLButtonElement> | undefined;
|
|
255
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
256
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
257
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
258
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
259
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
260
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
261
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
262
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
263
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
264
|
+
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
265
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
266
|
+
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
267
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
268
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
269
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
270
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
271
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
272
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
273
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
274
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLButtonElement> | undefined;
|
|
275
|
+
onScroll?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
|
|
276
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLButtonElement> | undefined;
|
|
277
|
+
onWheel?: import("react").WheelEventHandler<HTMLButtonElement> | undefined;
|
|
278
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLButtonElement> | undefined;
|
|
279
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
280
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
281
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
282
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
283
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
284
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLButtonElement> | undefined;
|
|
285
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
286
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLButtonElement> | undefined;
|
|
287
|
+
ref?: import("react").Ref<HTMLButtonElement> | undefined;
|
|
288
|
+
key?: import("react").Key | null | undefined;
|
|
289
|
+
}> & import("react").ForwardRefExoticComponent<import("../../buttons/icon-button/_types").IconButtonArgs & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -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;
|