funuicss 3.0.8 → 3.1.0
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 +11 -22
- package/package.json +1 -1
- package/ui/modal/Modal.js +3 -3
- package/ui/richtext/RichText.d.ts +0 -2
- package/ui/richtext/RichText.js +14 -2
- package/ui/video/Video.js +2 -2
package/css/fun.css
CHANGED
|
@@ -2774,7 +2774,7 @@ color: var(--text-color);
|
|
|
2774
2774
|
box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
|
|
2775
2775
|
}
|
|
2776
2776
|
|
|
2777
|
-
.
|
|
2777
|
+
._center-play-icon{
|
|
2778
2778
|
position: absolute;
|
|
2779
2779
|
top: 50%;
|
|
2780
2780
|
left: 50%;
|
|
@@ -2793,41 +2793,30 @@ color: var(--text-color);
|
|
|
2793
2793
|
|
|
2794
2794
|
|
|
2795
2795
|
|
|
2796
|
-
.
|
|
2796
|
+
._play-button {
|
|
2797
2797
|
display: flex;
|
|
2798
2798
|
align-items: center;
|
|
2799
2799
|
justify-content: center;
|
|
2800
|
-
width:
|
|
2801
|
-
height:
|
|
2802
|
-
border:
|
|
2800
|
+
width: 3rem;
|
|
2801
|
+
height: 3rem;
|
|
2802
|
+
border: 2px solid var(--borderColor) !important;
|
|
2803
2803
|
border-radius: 50%;
|
|
2804
|
-
background: var(--
|
|
2804
|
+
background-color: var(--raiseOpaque);
|
|
2805
2805
|
backdrop-filter: var(--raiseBackdrop) !important;
|
|
2806
2806
|
transition: transform 0.3s ease;
|
|
2807
|
-
animation: pulse 2s infinite;
|
|
2808
2807
|
cursor: pointer;
|
|
2808
|
+
z-index: 2;
|
|
2809
2809
|
|
|
2810
2810
|
}
|
|
2811
2811
|
|
|
2812
|
-
.
|
|
2813
|
-
|
|
2814
|
-
background: var(--primary);
|
|
2812
|
+
._play-button:hover {
|
|
2813
|
+
background-color: var(--primary) !important;
|
|
2815
2814
|
color: var(--white) !important;
|
|
2816
2815
|
border-color: var(--primary400);
|
|
2817
2816
|
color: var(--text-color);
|
|
2818
2817
|
}
|
|
2819
2818
|
|
|
2820
|
-
|
|
2821
|
-
0% {
|
|
2822
|
-
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
|
|
2823
|
-
}
|
|
2824
|
-
70% {
|
|
2825
|
-
box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
|
|
2826
|
-
}
|
|
2827
|
-
100% {
|
|
2828
|
-
box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
|
|
2829
|
-
}
|
|
2830
|
-
}
|
|
2819
|
+
|
|
2831
2820
|
|
|
2832
2821
|
.styled-slider {
|
|
2833
2822
|
appearance: none;
|
|
@@ -4272,7 +4261,6 @@ opacity: 0.9;
|
|
|
4272
4261
|
}
|
|
4273
4262
|
.modal-body {
|
|
4274
4263
|
height: 100%;
|
|
4275
|
-
overflow: auto;
|
|
4276
4264
|
}
|
|
4277
4265
|
|
|
4278
4266
|
.modal-action {
|
|
@@ -6662,3 +6650,4 @@ background-color: rgba(0, 0, 0, 0.2);
|
|
|
6662
6650
|
}
|
|
6663
6651
|
|
|
6664
6652
|
|
|
6653
|
+
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.0
|
|
2
|
+
"version": "3.1.0",
|
|
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/modal/Modal.js
CHANGED
|
@@ -87,10 +87,10 @@ function Modal(_a) {
|
|
|
87
87
|
return (React.createElement("div", { className: "modal ".concat(backdrop ? 'backdrop' : '', " ").concat(position || ''), id: modalId, onClick: handleClickOutside },
|
|
88
88
|
React.createElement("div", __assign({ className: "modal-content ".concat(funcss || '', " ").concat(flat ? 'flat' : ''), style: {
|
|
89
89
|
animation: "".concat(duration || 0.2, "s ").concat(animation || 'ScaleUp'),
|
|
90
|
-
maxWidth: maxWidth ||
|
|
91
|
-
maxHeight: maxHeight ||
|
|
90
|
+
maxWidth: maxWidth || "100%",
|
|
91
|
+
maxHeight: maxHeight || "fit-content",
|
|
92
92
|
width: width || '100%',
|
|
93
|
-
height: height ||
|
|
93
|
+
height: height || "fit-content",
|
|
94
94
|
} }, rest),
|
|
95
95
|
title && (React.createElement(Header_1.default, { funcss: titlecss || '', title: title, close: !hideClose ?
|
|
96
96
|
React.createElement("div", { onClick: function () { return setOpen(false); }, className: "".concat(closecss || '', " pointer hover-text-error") }, close || React.createElement(pi_1.PiX, { size: 25 }))
|
package/ui/richtext/RichText.js
CHANGED
|
@@ -39,8 +39,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
var react_1 = __importStar(require("react"));
|
|
41
41
|
var react_quilljs_1 = require("react-quilljs");
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
// import 'quill/dist/quill.bubble.css';
|
|
43
|
+
// import 'quill/dist/quill.snow.css';
|
|
44
44
|
var md_1 = require("react-icons/md");
|
|
45
45
|
var Emojis_1 = require("../../utils/Emojis");
|
|
46
46
|
var Dropdown_1 = __importDefault(require("../drop/Dropdown"));
|
|
@@ -60,6 +60,18 @@ var RichText = function (_a) {
|
|
|
60
60
|
placeholder: placeholder,
|
|
61
61
|
modules: modules || defaultModules,
|
|
62
62
|
}), quill = _f.quill, quillRef = _f.quillRef;
|
|
63
|
+
(0, react_1.useEffect)(function () {
|
|
64
|
+
var cssPath = theme === 'bubble' ?
|
|
65
|
+
'/node_modules/quill/dist/quill.bubble.css' :
|
|
66
|
+
'/node_modules/quill/dist/quill.snow.css';
|
|
67
|
+
var existingLink = document.querySelector("link[href*=\"".concat(theme, "\"]"));
|
|
68
|
+
if (!existingLink) {
|
|
69
|
+
var link = document.createElement('link');
|
|
70
|
+
link.rel = 'stylesheet';
|
|
71
|
+
link.href = cssPath;
|
|
72
|
+
document.head.appendChild(link);
|
|
73
|
+
}
|
|
74
|
+
}, [theme]);
|
|
63
75
|
(0, react_1.useEffect)(function () {
|
|
64
76
|
if (!quill)
|
|
65
77
|
return;
|
package/ui/video/Video.js
CHANGED
|
@@ -274,8 +274,8 @@ function Video(_a) {
|
|
|
274
274
|
react_1.default.createElement("input", { type: "range", min: 0, max: duration, value: currentTime, onChange: handleProgressBarChange, className: "width-100-p videoSlider styled-slider m-0", "aria-label": "Progress bar", style: { '--progress': "".concat((currentTime / duration) * 100) } })),
|
|
275
275
|
react_1.default.createElement("div", { className: "video_time" },
|
|
276
276
|
react_1.default.createElement(Text_1.default, { text: "".concat((0, videoFunctions_1.formatTime)(duration - currentTime)), funcss: 'm-0', size: "sm" })))),
|
|
277
|
-
react_1.default.createElement("div", { className: "
|
|
278
|
-
react_1.default.createElement("div", { className: '
|
|
277
|
+
react_1.default.createElement("div", { className: "_center-play-icon animated fade-in", onClick: handlePlayPauseToggle },
|
|
278
|
+
react_1.default.createElement("div", { className: '_play-button' }, isPlaying ? react_1.default.createElement(pi_1.PiPause, { size: 20 }) : react_1.default.createElement(pi_1.PiPlay, { size: 20 }))),
|
|
279
279
|
react_1.default.createElement(RowFlex_1.default, { funcss: 'animated slide-up', gap: 1, justify: "center" },
|
|
280
280
|
react_1.default.createElement(RowFlex_1.default, { gap: 0.5 },
|
|
281
281
|
react_1.default.createElement(ToolTip_1.default, null,
|