analytica-frontend-lib 1.1.70 → 1.1.71
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/VideoPlayer/index.js +2 -2
- package/dist/VideoPlayer/index.js.map +1 -1
- package/dist/VideoPlayer/index.mjs +2 -2
- package/dist/VideoPlayer/index.mjs.map +1 -1
- package/dist/index.css +0 -16
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -2
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +0 -16
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4,6 +4,26 @@ import { twMerge } from "tailwind-merge";
|
|
|
4
4
|
function cn(...inputs) {
|
|
5
5
|
return twMerge(clsx(inputs));
|
|
6
6
|
}
|
|
7
|
+
function getSubjectColorWithOpacity(hexColor, isDark) {
|
|
8
|
+
if (!hexColor) return void 0;
|
|
9
|
+
let color = hexColor.replace(/^#/, "").toLowerCase();
|
|
10
|
+
if (isDark) {
|
|
11
|
+
if (color.length === 8) {
|
|
12
|
+
color = color.slice(0, 6);
|
|
13
|
+
}
|
|
14
|
+
return `#${color}`;
|
|
15
|
+
} else {
|
|
16
|
+
let resultColor;
|
|
17
|
+
if (color.length === 6) {
|
|
18
|
+
resultColor = `#${color}b3`;
|
|
19
|
+
} else if (color.length === 8) {
|
|
20
|
+
resultColor = `#${color}`;
|
|
21
|
+
} else {
|
|
22
|
+
resultColor = `#${color}`;
|
|
23
|
+
}
|
|
24
|
+
return resultColor;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
7
27
|
|
|
8
28
|
// src/components/Text/Text.tsx
|
|
9
29
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -7705,7 +7725,7 @@ var SpeedMenu = ({
|
|
|
7705
7725
|
ref: speedMenuRef,
|
|
7706
7726
|
role: "menu",
|
|
7707
7727
|
"aria-label": "Playback speed",
|
|
7708
|
-
className: isFullscreen ? "absolute bottom-12 right-0 bg-
|
|
7728
|
+
className: isFullscreen ? "absolute bottom-12 right-0 bg-background border border-border-100 rounded-lg shadow-lg p-2 min-w-24 z-[9999]" : "fixed bg-background border border-border-100 rounded-lg shadow-lg p-2 min-w-24 z-[9999]",
|
|
7709
7729
|
style: !isFullscreen ? {
|
|
7710
7730
|
top: `${position.top}px`,
|
|
7711
7731
|
left: `${position.left}px`
|
|
@@ -7716,7 +7736,7 @@ var SpeedMenu = ({
|
|
|
7716
7736
|
role: "menuitemradio",
|
|
7717
7737
|
"aria-checked": playbackRate === speed,
|
|
7718
7738
|
onClick: () => onSpeedChange(speed),
|
|
7719
|
-
className: `block w-full text-left px-3 py-1 text-sm rounded hover:bg-
|
|
7739
|
+
className: `block w-full text-left px-3 py-1 text-sm rounded hover:bg-border-50 transition-colors ${playbackRate === speed ? "bg-primary-950 text-secondary-100 font-medium" : "text-text-950"}`,
|
|
7720
7740
|
children: [
|
|
7721
7741
|
speed,
|
|
7722
7742
|
"x"
|
|
@@ -12095,6 +12115,7 @@ export {
|
|
|
12095
12115
|
getRootDomain,
|
|
12096
12116
|
getStatusBadge,
|
|
12097
12117
|
getSubjectColorClass,
|
|
12118
|
+
getSubjectColorWithOpacity,
|
|
12098
12119
|
getSubjectIcon,
|
|
12099
12120
|
getSubjectInfo,
|
|
12100
12121
|
getSubjectName,
|