funuicss 3.8.10 → 3.8.12
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/css/fun.css +4 -3
- package/package.json +1 -1
- package/ui/video/Video.js +19 -2
package/css/fun.css
CHANGED
|
@@ -4161,9 +4161,10 @@ max-height: 10000px; /* large enough to contain most content */
|
|
|
4161
4161
|
opacity: 1;
|
|
4162
4162
|
}
|
|
4163
4163
|
|
|
4164
|
+
|
|
4165
|
+
|
|
4164
4166
|
.vista {
|
|
4165
4167
|
width: 100%;
|
|
4166
|
-
box-sizing: border-box;
|
|
4167
4168
|
}
|
|
4168
4169
|
|
|
4169
4170
|
/* Padding presets */
|
|
@@ -4188,7 +4189,7 @@ opacity: 1;
|
|
|
4188
4189
|
background-color: #1e1e1e;
|
|
4189
4190
|
color: white;
|
|
4190
4191
|
}
|
|
4191
|
-
|
|
4192
|
+
/*
|
|
4192
4193
|
.vista{
|
|
4193
4194
|
display: flex;
|
|
4194
4195
|
align-items: center;
|
|
@@ -4309,7 +4310,7 @@ opacity: 1;
|
|
|
4309
4310
|
.vista.reverse .vista-container {
|
|
4310
4311
|
flex-direction: column !important;
|
|
4311
4312
|
}
|
|
4312
|
-
}
|
|
4313
|
+
} */
|
|
4313
4314
|
|
|
4314
4315
|
|
|
4315
4316
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.8.
|
|
2
|
+
"version": "3.8.12",
|
|
3
3
|
"name": "funuicss",
|
|
4
4
|
"description": "React and Next.js component UI Library for creating Easy and good looking websites with fewer lines of code. Elevate your web development experience with our cutting-edge React/Next.js component UI Library. Craft stunning websites effortlessly, boasting both seamless functionality and aesthetic appeal—all achieved with minimal lines of code. Unleash the power of simplicity and style in your projects!",
|
|
5
5
|
"main": "index.js",
|
package/ui/video/Video.js
CHANGED
|
@@ -104,8 +104,25 @@ var RowFlex_1 = __importDefault(require("../specials/RowFlex"));
|
|
|
104
104
|
var ToolTip_1 = __importDefault(require("../tooltip/ToolTip"));
|
|
105
105
|
var Tip_1 = __importDefault(require("../tooltip/Tip"));
|
|
106
106
|
var videoFunctions_1 = require("./videoFunctions");
|
|
107
|
-
var videoShortcuts_1 = require("./videoShortcuts");
|
|
108
107
|
var getDynamicIcon_1 = require("../../utils/getDynamicIcon");
|
|
108
|
+
// Custom handleKeyDown function that checks if the target is an input field
|
|
109
|
+
var handleKeyDown = function (e, isPlaying, playVideo, pauseVideo, spacebarPlay) {
|
|
110
|
+
if (spacebarPlay === void 0) { spacebarPlay = true; }
|
|
111
|
+
// Check if the target is an input, textarea, or contenteditable element
|
|
112
|
+
var target = e.target;
|
|
113
|
+
var isInput = target.tagName === 'INPUT' ||
|
|
114
|
+
target.tagName === 'TEXTAREA' ||
|
|
115
|
+
target.isContentEditable;
|
|
116
|
+
// If spacebar is pressed and the target is an input, let it handle the event
|
|
117
|
+
if (e.code === 'Space' && isInput) {
|
|
118
|
+
return; // Don't prevent default, let the input handle the space
|
|
119
|
+
}
|
|
120
|
+
// Only handle video shortcuts if spacebarPlay is enabled and target is not an input
|
|
121
|
+
if (spacebarPlay && e.code === 'Space') {
|
|
122
|
+
e.preventDefault();
|
|
123
|
+
isPlaying ? pauseVideo() : playVideo();
|
|
124
|
+
}
|
|
125
|
+
};
|
|
109
126
|
// Configuration hook
|
|
110
127
|
var useComponentConfiguration = function (componentName, variant) {
|
|
111
128
|
if (variant === void 0) { variant = ''; }
|
|
@@ -493,7 +510,7 @@ function Video(_a) {
|
|
|
493
510
|
// Effects
|
|
494
511
|
(0, react_1.useEffect)(function () {
|
|
495
512
|
var handleKey = function (e) {
|
|
496
|
-
return
|
|
513
|
+
return handleKeyDown(e, isPlaying, playVideo, pauseVideo, final.spacebarPlay);
|
|
497
514
|
};
|
|
498
515
|
document.addEventListener('keydown', handleKey);
|
|
499
516
|
return function () { return document.removeEventListener('keydown', handleKey); };
|