@x-plat/design-system 0.15.6 → 0.16.1
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/components/Tour/index.cjs +338 -0
- package/dist/components/Tour/index.css +117 -0
- package/dist/components/Tour/index.d.cts +79 -0
- package/dist/components/Tour/index.d.ts +79 -0
- package/dist/components/Tour/index.js +301 -0
- package/dist/components/index.cjs +213 -53
- package/dist/components/index.css +116 -0
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +212 -53
- package/dist/index.cjs +237 -77
- package/dist/index.css +116 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +236 -77
- package/guidelines/Guidelines.md +1 -0
- package/guidelines/components/tour.md +93 -0
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -7486,7 +7486,7 @@ var Tooltip = (props) => {
|
|
|
7486
7486
|
const delayTimer = React43.useRef(0);
|
|
7487
7487
|
const rafRef = React43.useRef(0);
|
|
7488
7488
|
const cursor = React43.useRef(null);
|
|
7489
|
-
const
|
|
7489
|
+
const clamp2 = React43.useCallback((left, top, w, h) => {
|
|
7490
7490
|
const vw = window.innerWidth;
|
|
7491
7491
|
const vh = window.innerHeight;
|
|
7492
7492
|
return {
|
|
@@ -7503,8 +7503,8 @@ var Tooltip = (props) => {
|
|
|
7503
7503
|
let top = y - h - OFFSET;
|
|
7504
7504
|
if (left + w > window.innerWidth - GAP) left = x - w - OFFSET;
|
|
7505
7505
|
if (top < GAP) top = y + OFFSET;
|
|
7506
|
-
setPos(
|
|
7507
|
-
}, [
|
|
7506
|
+
setPos(clamp2(left, top, w, h));
|
|
7507
|
+
}, [clamp2]);
|
|
7508
7508
|
const placeAtTrigger = React43.useCallback(() => {
|
|
7509
7509
|
const el = tooltipRef.current;
|
|
7510
7510
|
const trigger = triggerRef.current;
|
|
@@ -7515,8 +7515,8 @@ var Tooltip = (props) => {
|
|
|
7515
7515
|
let top = rect.top - h - GAP;
|
|
7516
7516
|
if (top < GAP) top = rect.bottom + GAP;
|
|
7517
7517
|
const left = rect.left + rect.width / 2 - w / 2;
|
|
7518
|
-
setPos(
|
|
7519
|
-
}, [
|
|
7518
|
+
setPos(clamp2(left, top, w, h));
|
|
7519
|
+
}, [clamp2]);
|
|
7520
7520
|
const reposition = React43.useCallback(() => {
|
|
7521
7521
|
if (follow && cursor.current) {
|
|
7522
7522
|
placeAtCursor(cursor.current.x, cursor.current.y);
|
|
@@ -7603,12 +7603,170 @@ var Tooltip = (props) => {
|
|
|
7603
7603
|
Tooltip.displayName = "Tooltip";
|
|
7604
7604
|
var Tooltip_default = Tooltip;
|
|
7605
7605
|
|
|
7606
|
-
// src/components/
|
|
7606
|
+
// src/components/Tour/Tour.tsx
|
|
7607
7607
|
import React44 from "react";
|
|
7608
7608
|
import { jsx as jsx355, jsxs as jsxs225 } from "react/jsx-runtime";
|
|
7609
|
-
var
|
|
7610
|
-
|
|
7611
|
-
|
|
7609
|
+
var VIEWPORT_MARGIN = 16;
|
|
7610
|
+
var DEFAULT_PADDING = 8;
|
|
7611
|
+
var clamp = (v, min, max) => Math.max(min, Math.min(v, max));
|
|
7612
|
+
var resolve = (target) => {
|
|
7613
|
+
if (typeof target === "string") return document.querySelector(target);
|
|
7614
|
+
return target.current;
|
|
7615
|
+
};
|
|
7616
|
+
var Tour = (props) => {
|
|
7617
|
+
const {
|
|
7618
|
+
open,
|
|
7619
|
+
steps,
|
|
7620
|
+
onClose,
|
|
7621
|
+
current,
|
|
7622
|
+
onStepChange,
|
|
7623
|
+
nextLabel = "\uB2E4\uC74C",
|
|
7624
|
+
prevLabel = "\uC774\uC804",
|
|
7625
|
+
skipLabel = "\uAC74\uB108\uB6F0\uAE30",
|
|
7626
|
+
doneLabel = "\uB2E4 \uBD24\uC5B4\uC694"
|
|
7627
|
+
} = props;
|
|
7628
|
+
const [uncontrolled, setUncontrolled] = React44.useState(0);
|
|
7629
|
+
const index = current ?? uncontrolled;
|
|
7630
|
+
const step = steps[index];
|
|
7631
|
+
const isLast = index === steps.length - 1;
|
|
7632
|
+
const spotRef = React44.useRef(null);
|
|
7633
|
+
const cardRef = React44.useRef(null);
|
|
7634
|
+
const [targetFound, setTargetFound] = React44.useState(true);
|
|
7635
|
+
const goTo = React44.useCallback(
|
|
7636
|
+
(next) => {
|
|
7637
|
+
if (current === void 0) setUncontrolled(next);
|
|
7638
|
+
onStepChange?.(next);
|
|
7639
|
+
},
|
|
7640
|
+
[current, onStepChange]
|
|
7641
|
+
);
|
|
7642
|
+
useEscapeKey(open, () => onClose("skip"));
|
|
7643
|
+
useFocusTrap(cardRef, open, { trap: true });
|
|
7644
|
+
React44.useEffect(() => {
|
|
7645
|
+
if (!open || !step) return;
|
|
7646
|
+
const el = resolve(step.target);
|
|
7647
|
+
setTargetFound(!!el);
|
|
7648
|
+
el?.scrollIntoView({ block: "center", inline: "nearest", behavior: "smooth" });
|
|
7649
|
+
}, [open, step]);
|
|
7650
|
+
const place = React44.useCallback(() => {
|
|
7651
|
+
const spot = spotRef.current;
|
|
7652
|
+
const card = cardRef.current;
|
|
7653
|
+
if (!spot || !card || !step) return;
|
|
7654
|
+
const el = resolve(step.target);
|
|
7655
|
+
const pad = step.padding ?? DEFAULT_PADDING;
|
|
7656
|
+
let hole;
|
|
7657
|
+
if (el) {
|
|
7658
|
+
const r2 = el.getBoundingClientRect();
|
|
7659
|
+
hole = {
|
|
7660
|
+
top: r2.top - pad,
|
|
7661
|
+
left: r2.left - pad,
|
|
7662
|
+
width: r2.width + pad * 2,
|
|
7663
|
+
height: r2.height + pad * 2
|
|
7664
|
+
};
|
|
7665
|
+
spot.style.visibility = "visible";
|
|
7666
|
+
} else {
|
|
7667
|
+
hole = { top: window.innerHeight / 2, left: window.innerWidth / 2, width: 0, height: 0 };
|
|
7668
|
+
spot.style.visibility = "hidden";
|
|
7669
|
+
}
|
|
7670
|
+
spot.style.top = `${hole.top}px`;
|
|
7671
|
+
spot.style.left = `${hole.left}px`;
|
|
7672
|
+
spot.style.width = `${hole.width}px`;
|
|
7673
|
+
spot.style.height = `${hole.height}px`;
|
|
7674
|
+
const placed = computePlacement(
|
|
7675
|
+
{
|
|
7676
|
+
top: hole.top,
|
|
7677
|
+
bottom: hole.top + hole.height,
|
|
7678
|
+
left: hole.left,
|
|
7679
|
+
right: hole.left + hole.width
|
|
7680
|
+
},
|
|
7681
|
+
card.offsetWidth,
|
|
7682
|
+
Math.max(card.offsetHeight, card.scrollHeight),
|
|
7683
|
+
{
|
|
7684
|
+
top: VIEWPORT_MARGIN,
|
|
7685
|
+
bottom: window.innerHeight - VIEWPORT_MARGIN,
|
|
7686
|
+
left: VIEWPORT_MARGIN,
|
|
7687
|
+
right: window.innerWidth - VIEWPORT_MARGIN
|
|
7688
|
+
}
|
|
7689
|
+
);
|
|
7690
|
+
const limit = window.innerHeight - VIEWPORT_MARGIN * 2;
|
|
7691
|
+
const cardH = Math.min(placed.maxHeight ?? card.offsetHeight, limit);
|
|
7692
|
+
const cardW = card.offsetWidth;
|
|
7693
|
+
card.style.maxHeight = `${cardH}px`;
|
|
7694
|
+
card.style.top = `${clamp(placed.top, VIEWPORT_MARGIN, window.innerHeight - VIEWPORT_MARGIN - cardH)}px`;
|
|
7695
|
+
card.style.left = `${clamp(placed.left, VIEWPORT_MARGIN, window.innerWidth - VIEWPORT_MARGIN - cardW)}px`;
|
|
7696
|
+
}, [step]);
|
|
7697
|
+
React44.useLayoutEffect(() => {
|
|
7698
|
+
if (!open) return;
|
|
7699
|
+
place();
|
|
7700
|
+
const t = setTimeout(place, 400);
|
|
7701
|
+
return () => clearTimeout(t);
|
|
7702
|
+
}, [open, place]);
|
|
7703
|
+
React44.useEffect(() => {
|
|
7704
|
+
if (!open) return;
|
|
7705
|
+
const onMove = () => place();
|
|
7706
|
+
window.addEventListener("scroll", onMove, { passive: true, capture: true });
|
|
7707
|
+
window.addEventListener("resize", onMove, { passive: true });
|
|
7708
|
+
return () => {
|
|
7709
|
+
window.removeEventListener("scroll", onMove, true);
|
|
7710
|
+
window.removeEventListener("resize", onMove);
|
|
7711
|
+
};
|
|
7712
|
+
}, [open, place]);
|
|
7713
|
+
if (!open || !step) return null;
|
|
7714
|
+
return /* @__PURE__ */ jsx355(Portal_default, { children: /* @__PURE__ */ jsxs225("div", { className: "lib-xplat-tour", role: "presentation", children: [
|
|
7715
|
+
!targetFound && /* @__PURE__ */ jsx355("div", { className: "lib-xplat-tour-dim" }),
|
|
7716
|
+
/* @__PURE__ */ jsx355("div", { ref: spotRef, className: "lib-xplat-tour-spotlight", "aria-hidden": true }),
|
|
7717
|
+
/* @__PURE__ */ jsxs225(
|
|
7718
|
+
"div",
|
|
7719
|
+
{
|
|
7720
|
+
ref: cardRef,
|
|
7721
|
+
className: "lib-xplat-tour-card",
|
|
7722
|
+
role: "dialog",
|
|
7723
|
+
"aria-modal": "true",
|
|
7724
|
+
"aria-label": typeof step.title === "string" ? step.title : "\uD654\uBA74 \uC548\uB0B4",
|
|
7725
|
+
children: [
|
|
7726
|
+
/* @__PURE__ */ jsxs225("div", { className: "tour-card-progress", "aria-hidden": true, children: [
|
|
7727
|
+
index + 1,
|
|
7728
|
+
" / ",
|
|
7729
|
+
steps.length
|
|
7730
|
+
] }),
|
|
7731
|
+
step.title && /* @__PURE__ */ jsx355("div", { className: "tour-card-title", children: step.title }),
|
|
7732
|
+
step.description && /* @__PURE__ */ jsx355("div", { className: "tour-card-description", children: step.description }),
|
|
7733
|
+
/* @__PURE__ */ jsxs225("div", { className: "tour-card-actions", children: [
|
|
7734
|
+
/* @__PURE__ */ jsx355("button", { type: "button", className: "tour-skip", onClick: () => onClose("skip"), children: skipLabel }),
|
|
7735
|
+
/* @__PURE__ */ jsxs225("div", { className: "tour-card-nav", children: [
|
|
7736
|
+
index > 0 && /* @__PURE__ */ jsx355(
|
|
7737
|
+
"button",
|
|
7738
|
+
{
|
|
7739
|
+
type: "button",
|
|
7740
|
+
className: clsx_default("tour-nav", "secondary"),
|
|
7741
|
+
onClick: () => goTo(index - 1),
|
|
7742
|
+
children: prevLabel
|
|
7743
|
+
}
|
|
7744
|
+
),
|
|
7745
|
+
/* @__PURE__ */ jsx355(
|
|
7746
|
+
"button",
|
|
7747
|
+
{
|
|
7748
|
+
type: "button",
|
|
7749
|
+
className: clsx_default("tour-nav", "primary"),
|
|
7750
|
+
onClick: () => isLast ? onClose("done") : goTo(index + 1),
|
|
7751
|
+
children: isLast ? doneLabel : nextLabel
|
|
7752
|
+
}
|
|
7753
|
+
)
|
|
7754
|
+
] })
|
|
7755
|
+
] })
|
|
7756
|
+
]
|
|
7757
|
+
}
|
|
7758
|
+
)
|
|
7759
|
+
] }) });
|
|
7760
|
+
};
|
|
7761
|
+
Tour.displayName = "Tour";
|
|
7762
|
+
var Tour_default = Tour;
|
|
7763
|
+
|
|
7764
|
+
// src/components/Video/Video.tsx
|
|
7765
|
+
import React45 from "react";
|
|
7766
|
+
import { jsx as jsx356, jsxs as jsxs226 } from "react/jsx-runtime";
|
|
7767
|
+
var PipIcon = () => /* @__PURE__ */ jsxs226("svg", { viewBox: "0 0 24 24", width: "1em", height: "1em", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
|
|
7768
|
+
/* @__PURE__ */ jsx356("rect", { x: "3", y: "5", width: "18", height: "14", rx: "2" }),
|
|
7769
|
+
/* @__PURE__ */ jsx356("rect", { x: "12", y: "11", width: "7", height: "6", rx: "1", fill: "currentColor" })
|
|
7612
7770
|
] });
|
|
7613
7771
|
var formatTime = (sec) => {
|
|
7614
7772
|
if (!Number.isFinite(sec) || sec < 0) return "0:00";
|
|
@@ -7616,7 +7774,7 @@ var formatTime = (sec) => {
|
|
|
7616
7774
|
const s = Math.floor(sec % 60);
|
|
7617
7775
|
return `${m}:${s.toString().padStart(2, "0")}`;
|
|
7618
7776
|
};
|
|
7619
|
-
var Video =
|
|
7777
|
+
var Video = React45.forwardRef((props, ref) => {
|
|
7620
7778
|
const {
|
|
7621
7779
|
src,
|
|
7622
7780
|
poster,
|
|
@@ -7640,21 +7798,21 @@ var Video = React44.forwardRef((props, ref) => {
|
|
|
7640
7798
|
children,
|
|
7641
7799
|
...rest
|
|
7642
7800
|
} = props;
|
|
7643
|
-
const containerRef =
|
|
7644
|
-
const videoRef =
|
|
7645
|
-
const [isPlaying, setIsPlaying] =
|
|
7646
|
-
const [isLoaded, setIsLoaded] =
|
|
7647
|
-
const [currentTime, setCurrentTime] =
|
|
7648
|
-
const [duration, setDuration] =
|
|
7649
|
-
const [buffered, setBuffered] =
|
|
7650
|
-
const [volume, setVolume] =
|
|
7651
|
-
const [isMuted, setIsMuted] =
|
|
7652
|
-
const [isFullscreen, setIsFullscreen] =
|
|
7653
|
-
const [playbackRate, setPlaybackRate] =
|
|
7654
|
-
const [rateMenuOpen, setRateMenuOpen] =
|
|
7655
|
-
const [captionsOn, setCaptionsOn] =
|
|
7656
|
-
const [isPip, setIsPip] =
|
|
7657
|
-
const setRefs =
|
|
7801
|
+
const containerRef = React45.useRef(null);
|
|
7802
|
+
const videoRef = React45.useRef(null);
|
|
7803
|
+
const [isPlaying, setIsPlaying] = React45.useState(Boolean(autoPlay));
|
|
7804
|
+
const [isLoaded, setIsLoaded] = React45.useState(false);
|
|
7805
|
+
const [currentTime, setCurrentTime] = React45.useState(0);
|
|
7806
|
+
const [duration, setDuration] = React45.useState(0);
|
|
7807
|
+
const [buffered, setBuffered] = React45.useState(0);
|
|
7808
|
+
const [volume, setVolume] = React45.useState(1);
|
|
7809
|
+
const [isMuted, setIsMuted] = React45.useState(Boolean(muted));
|
|
7810
|
+
const [isFullscreen, setIsFullscreen] = React45.useState(false);
|
|
7811
|
+
const [playbackRate, setPlaybackRate] = React45.useState(1);
|
|
7812
|
+
const [rateMenuOpen, setRateMenuOpen] = React45.useState(false);
|
|
7813
|
+
const [captionsOn, setCaptionsOn] = React45.useState(false);
|
|
7814
|
+
const [isPip, setIsPip] = React45.useState(false);
|
|
7815
|
+
const setRefs = React45.useCallback(
|
|
7658
7816
|
(el) => {
|
|
7659
7817
|
videoRef.current = el;
|
|
7660
7818
|
if (typeof ref === "function") ref(el);
|
|
@@ -7662,14 +7820,14 @@ var Video = React44.forwardRef((props, ref) => {
|
|
|
7662
7820
|
},
|
|
7663
7821
|
[ref]
|
|
7664
7822
|
);
|
|
7665
|
-
|
|
7823
|
+
React45.useEffect(() => {
|
|
7666
7824
|
const onFsChange = () => {
|
|
7667
7825
|
setIsFullscreen(document.fullscreenElement === containerRef.current);
|
|
7668
7826
|
};
|
|
7669
7827
|
document.addEventListener("fullscreenchange", onFsChange);
|
|
7670
7828
|
return () => document.removeEventListener("fullscreenchange", onFsChange);
|
|
7671
7829
|
}, []);
|
|
7672
|
-
|
|
7830
|
+
React45.useEffect(() => {
|
|
7673
7831
|
const v = videoRef.current;
|
|
7674
7832
|
if (!v) return;
|
|
7675
7833
|
const onEnter = () => setIsPip(true);
|
|
@@ -7783,13 +7941,13 @@ var Video = React44.forwardRef((props, ref) => {
|
|
|
7783
7941
|
const volumePct = (isMuted ? 0 : volume) * 100;
|
|
7784
7942
|
const VolumeGlyph = isMuted || volume === 0 ? VolumeXIcon_default : volume < 0.5 ? VolumeIcon_default : Volume2Icon_default;
|
|
7785
7943
|
const pipSupported = typeof document !== "undefined" && "pictureInPictureEnabled" in document && document.pictureInPictureEnabled;
|
|
7786
|
-
return /* @__PURE__ */
|
|
7944
|
+
return /* @__PURE__ */ jsxs226(
|
|
7787
7945
|
"div",
|
|
7788
7946
|
{
|
|
7789
7947
|
ref: containerRef,
|
|
7790
7948
|
className: clsx_default("lib-xplat-video", showControls && "has-controls"),
|
|
7791
7949
|
children: [
|
|
7792
|
-
/* @__PURE__ */
|
|
7950
|
+
/* @__PURE__ */ jsx356(
|
|
7793
7951
|
"video",
|
|
7794
7952
|
{
|
|
7795
7953
|
ref: setRefs,
|
|
@@ -7810,7 +7968,7 @@ var Video = React44.forwardRef((props, ref) => {
|
|
|
7810
7968
|
children
|
|
7811
7969
|
}
|
|
7812
7970
|
),
|
|
7813
|
-
showCenterPlay && /* @__PURE__ */
|
|
7971
|
+
showCenterPlay && /* @__PURE__ */ jsx356(
|
|
7814
7972
|
"button",
|
|
7815
7973
|
{
|
|
7816
7974
|
type: "button",
|
|
@@ -7822,11 +7980,11 @@ var Video = React44.forwardRef((props, ref) => {
|
|
|
7822
7980
|
onClick: togglePlay,
|
|
7823
7981
|
"aria-label": isPlaying ? "\uC77C\uC2DC\uC815\uC9C0" : "\uC7AC\uC0DD",
|
|
7824
7982
|
tabIndex: -1,
|
|
7825
|
-
children: /* @__PURE__ */
|
|
7983
|
+
children: /* @__PURE__ */ jsx356("span", { className: "center-play-icon", children: /* @__PURE__ */ jsx356(PlayCircleIcon_default, {}) })
|
|
7826
7984
|
}
|
|
7827
7985
|
),
|
|
7828
|
-
showControls && /* @__PURE__ */
|
|
7829
|
-
/* @__PURE__ */
|
|
7986
|
+
showControls && /* @__PURE__ */ jsxs226("div", { className: "controls", onClick: (e) => e.stopPropagation(), children: [
|
|
7987
|
+
/* @__PURE__ */ jsx356(
|
|
7830
7988
|
"input",
|
|
7831
7989
|
{
|
|
7832
7990
|
type: "range",
|
|
@@ -7843,29 +8001,29 @@ var Video = React44.forwardRef((props, ref) => {
|
|
|
7843
8001
|
}
|
|
7844
8002
|
}
|
|
7845
8003
|
),
|
|
7846
|
-
/* @__PURE__ */
|
|
7847
|
-
/* @__PURE__ */
|
|
8004
|
+
/* @__PURE__ */ jsxs226("div", { className: "controls-row", children: [
|
|
8005
|
+
/* @__PURE__ */ jsx356(
|
|
7848
8006
|
"button",
|
|
7849
8007
|
{
|
|
7850
8008
|
type: "button",
|
|
7851
8009
|
className: "control-btn",
|
|
7852
8010
|
onClick: togglePlay,
|
|
7853
8011
|
"aria-label": isPlaying ? "\uC77C\uC2DC\uC815\uC9C0" : "\uC7AC\uC0DD",
|
|
7854
|
-
children: isPlaying ? /* @__PURE__ */
|
|
8012
|
+
children: isPlaying ? /* @__PURE__ */ jsx356(PauseIcon_default, {}) : /* @__PURE__ */ jsx356(PlayIcon_default, {})
|
|
7855
8013
|
}
|
|
7856
8014
|
),
|
|
7857
|
-
/* @__PURE__ */
|
|
7858
|
-
/* @__PURE__ */
|
|
8015
|
+
/* @__PURE__ */ jsxs226("div", { className: "volume-group", children: [
|
|
8016
|
+
/* @__PURE__ */ jsx356(
|
|
7859
8017
|
"button",
|
|
7860
8018
|
{
|
|
7861
8019
|
type: "button",
|
|
7862
8020
|
className: "control-btn",
|
|
7863
8021
|
onClick: toggleMute,
|
|
7864
8022
|
"aria-label": isMuted ? "\uC74C\uC18C\uAC70 \uD574\uC81C" : "\uC74C\uC18C\uAC70",
|
|
7865
|
-
children: /* @__PURE__ */
|
|
8023
|
+
children: /* @__PURE__ */ jsx356(VolumeGlyph, {})
|
|
7866
8024
|
}
|
|
7867
8025
|
),
|
|
7868
|
-
/* @__PURE__ */
|
|
8026
|
+
/* @__PURE__ */ jsx356(
|
|
7869
8027
|
"input",
|
|
7870
8028
|
{
|
|
7871
8029
|
type: "range",
|
|
@@ -7880,14 +8038,14 @@ var Video = React44.forwardRef((props, ref) => {
|
|
|
7880
8038
|
}
|
|
7881
8039
|
)
|
|
7882
8040
|
] }),
|
|
7883
|
-
/* @__PURE__ */
|
|
8041
|
+
/* @__PURE__ */ jsxs226("span", { className: "time", children: [
|
|
7884
8042
|
formatTime(currentTime),
|
|
7885
8043
|
" / ",
|
|
7886
8044
|
formatTime(duration)
|
|
7887
8045
|
] }),
|
|
7888
|
-
/* @__PURE__ */
|
|
7889
|
-
playbackRates && playbackRates.length > 0 && /* @__PURE__ */
|
|
7890
|
-
/* @__PURE__ */
|
|
8046
|
+
/* @__PURE__ */ jsx356("div", { className: "controls-spacer" }),
|
|
8047
|
+
playbackRates && playbackRates.length > 0 && /* @__PURE__ */ jsxs226("div", { className: clsx_default("rate-group", rateMenuOpen && "is-open"), children: [
|
|
8048
|
+
/* @__PURE__ */ jsxs226(
|
|
7891
8049
|
"button",
|
|
7892
8050
|
{
|
|
7893
8051
|
type: "button",
|
|
@@ -7901,7 +8059,7 @@ var Video = React44.forwardRef((props, ref) => {
|
|
|
7901
8059
|
]
|
|
7902
8060
|
}
|
|
7903
8061
|
),
|
|
7904
|
-
rateMenuOpen && /* @__PURE__ */
|
|
8062
|
+
rateMenuOpen && /* @__PURE__ */ jsx356("ul", { className: "rate-menu", role: "menu", children: playbackRates.map((r2) => /* @__PURE__ */ jsx356("li", { children: /* @__PURE__ */ jsxs226(
|
|
7905
8063
|
"button",
|
|
7906
8064
|
{
|
|
7907
8065
|
type: "button",
|
|
@@ -7915,7 +8073,7 @@ var Video = React44.forwardRef((props, ref) => {
|
|
|
7915
8073
|
}
|
|
7916
8074
|
) }, r2)) })
|
|
7917
8075
|
] }),
|
|
7918
|
-
showCaptions && /* @__PURE__ */
|
|
8076
|
+
showCaptions && /* @__PURE__ */ jsx356(
|
|
7919
8077
|
"button",
|
|
7920
8078
|
{
|
|
7921
8079
|
type: "button",
|
|
@@ -7923,37 +8081,37 @@ var Video = React44.forwardRef((props, ref) => {
|
|
|
7923
8081
|
onClick: toggleCaptions,
|
|
7924
8082
|
"aria-label": captionsOn ? "\uC790\uB9C9 \uB044\uAE30" : "\uC790\uB9C9 \uCF1C\uAE30",
|
|
7925
8083
|
"aria-pressed": captionsOn,
|
|
7926
|
-
children: /* @__PURE__ */
|
|
8084
|
+
children: /* @__PURE__ */ jsx356(TypeIcon_default, {})
|
|
7927
8085
|
}
|
|
7928
8086
|
),
|
|
7929
|
-
showPip && pipSupported && /* @__PURE__ */
|
|
8087
|
+
showPip && pipSupported && /* @__PURE__ */ jsx356(
|
|
7930
8088
|
"button",
|
|
7931
8089
|
{
|
|
7932
8090
|
type: "button",
|
|
7933
8091
|
className: clsx_default("control-btn", isPip && "is-active"),
|
|
7934
8092
|
onClick: togglePip,
|
|
7935
8093
|
"aria-label": isPip ? "PIP \uC885\uB8CC" : "PIP",
|
|
7936
|
-
children: /* @__PURE__ */
|
|
8094
|
+
children: /* @__PURE__ */ jsx356(PipIcon, {})
|
|
7937
8095
|
}
|
|
7938
8096
|
),
|
|
7939
|
-
showDownload && /* @__PURE__ */
|
|
8097
|
+
showDownload && /* @__PURE__ */ jsx356(
|
|
7940
8098
|
"a",
|
|
7941
8099
|
{
|
|
7942
8100
|
className: "control-btn",
|
|
7943
8101
|
href: src,
|
|
7944
8102
|
download: downloadFileName ?? true,
|
|
7945
8103
|
"aria-label": "\uB2E4\uC6B4\uB85C\uB4DC",
|
|
7946
|
-
children: /* @__PURE__ */
|
|
8104
|
+
children: /* @__PURE__ */ jsx356(DownloadIcon_default, {})
|
|
7947
8105
|
}
|
|
7948
8106
|
),
|
|
7949
|
-
/* @__PURE__ */
|
|
8107
|
+
/* @__PURE__ */ jsx356(
|
|
7950
8108
|
"button",
|
|
7951
8109
|
{
|
|
7952
8110
|
type: "button",
|
|
7953
8111
|
className: "control-btn",
|
|
7954
8112
|
onClick: toggleFullscreen,
|
|
7955
8113
|
"aria-label": isFullscreen ? "\uC804\uCCB4\uD654\uBA74 \uC885\uB8CC" : "\uC804\uCCB4\uD654\uBA74",
|
|
7956
|
-
children: isFullscreen ? /* @__PURE__ */
|
|
8114
|
+
children: isFullscreen ? /* @__PURE__ */ jsx356(MinimizeIcon_default, {}) : /* @__PURE__ */ jsx356(MaximizeIcon_default, {})
|
|
7957
8115
|
}
|
|
7958
8116
|
)
|
|
7959
8117
|
] })
|
|
@@ -8026,6 +8184,7 @@ export {
|
|
|
8026
8184
|
ToastProvider,
|
|
8027
8185
|
ToggleChip_default as ToggleChip,
|
|
8028
8186
|
Tooltip_default as Tooltip,
|
|
8187
|
+
Tour_default as Tour,
|
|
8029
8188
|
Video_default as Video,
|
|
8030
8189
|
hasError,
|
|
8031
8190
|
isInRange,
|