funuicss 2.5.9 → 2.5.10
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 +3 -2
- package/package.json +1 -2
- package/tsconfig.json +1 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/ui/alert/Alert.d.ts +1 -1
- package/ui/alert/Alert.js +1 -1
- package/ui/appbar/AppBar.js +2 -2
- package/ui/appbar/AppBar.tsx +1 -1
- package/ui/appbar/Hamburger.js +1 -1
- package/ui/avatar/Avatar.js +1 -1
- package/ui/breadcrumb/BreadCrumb.js +1 -1
- package/ui/button/Button.js +1 -1
- package/ui/card/Card.js +1 -1
- package/ui/card/CardFab.js +1 -1
- package/ui/container/Container.js +1 -1
- package/ui/div/Div.js +1 -1
- package/ui/drop/Dropdown.js +1 -1
- package/ui/input/Input.js +1 -1
- package/ui/modal/Modal.d.ts +1 -1
- package/ui/modal/Modal.js +1 -1
- package/ui/notification/Notification.d.ts +1 -1
- package/ui/notification/Notification.js +1 -1
- package/ui/page/NotFound.js +1 -1
- package/ui/progress/Bar.js +1 -1
- package/ui/snackbar/SnackBar.js +1 -1
- package/ui/specials/Circle.js +1 -1
- package/ui/step/Line.js +1 -1
- package/ui/step/Step.js +1 -1
- package/ui/table/Table.js +1 -1
- package/ui/theme/theme.js +1 -1
- package/ui/video/FunPlayer.js +1 -0
- package/dist/assets/colors/colors.d.ts +0 -347
- package/dist/assets/colors/colors.js +0 -348
- package/dist/index.d.ts +0 -37
- package/dist/index.js +0 -80
- package/dist/js/Fun.d.ts +0 -38
- package/dist/js/Fun.js +0 -235
- package/dist/js/Theme.d.ts +0 -2
- package/dist/js/Theme.js +0 -42
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/ui/alert/Alert.d.ts +0 -24
- package/dist/ui/alert/Alert.js +0 -48
- package/dist/ui/aos/AOS.d.ts +0 -9
- package/dist/ui/aos/AOS.js +0 -30
- package/dist/ui/appbar/AppBar.d.ts +0 -17
- package/dist/ui/appbar/AppBar.js +0 -43
- package/dist/ui/appbar/Hamburger.d.ts +0 -7
- package/dist/ui/appbar/Hamburger.js +0 -20
- package/dist/ui/avatar/Avatar.d.ts +0 -10
- package/dist/ui/avatar/Avatar.js +0 -12
- package/dist/ui/blob/Blob.d.ts +0 -10
- package/dist/ui/blob/Blob.js +0 -16
- package/dist/ui/breadcrumb/BreadCrumb.d.ts +0 -7
- package/dist/ui/breadcrumb/BreadCrumb.js +0 -10
- package/dist/ui/button/Button.d.ts +0 -39
- package/dist/ui/button/Button.js +0 -66
- package/dist/ui/card/Card.d.ts +0 -32
- package/dist/ui/card/Card.js +0 -39
- package/dist/ui/card/CardBody.d.ts +0 -7
- package/dist/ui/card/CardBody.js +0 -30
- package/dist/ui/card/CardFab.d.ts +0 -8
- package/dist/ui/card/CardFab.js +0 -31
- package/dist/ui/card/CardFooter.d.ts +0 -7
- package/dist/ui/card/CardFooter.js +0 -30
- package/dist/ui/card/CardHeader.d.ts +0 -7
- package/dist/ui/card/CardHeader.js +0 -30
- package/dist/ui/container/Container.d.ts +0 -11
- package/dist/ui/container/Container.js +0 -31
- package/dist/ui/div/Div.d.ts +0 -19
- package/dist/ui/div/Div.js +0 -31
- package/dist/ui/drop/Action.d.ts +0 -7
- package/dist/ui/drop/Action.js +0 -8
- package/dist/ui/drop/Down.d.ts +0 -9
- package/dist/ui/drop/Down.js +0 -8
- package/dist/ui/drop/Dropdown.d.ts +0 -18
- package/dist/ui/drop/Dropdown.js +0 -31
- package/dist/ui/drop/Item.d.ts +0 -8
- package/dist/ui/drop/Item.js +0 -8
- package/dist/ui/drop/Menu.d.ts +0 -12
- package/dist/ui/drop/Menu.js +0 -11
- package/dist/ui/drop/Up.d.ts +0 -9
- package/dist/ui/drop/Up.js +0 -8
- package/dist/ui/grid/Col.d.ts +0 -14
- package/dist/ui/grid/Col.js +0 -40
- package/dist/ui/grid/Grid.d.ts +0 -12
- package/dist/ui/grid/Grid.js +0 -34
- package/dist/ui/input/Iconic.d.ts +0 -11
- package/dist/ui/input/Iconic.js +0 -15
- package/dist/ui/input/Input.d.ts +0 -35
- package/dist/ui/input/Input.js +0 -110
- package/dist/ui/list/Item.d.ts +0 -7
- package/dist/ui/list/Item.js +0 -30
- package/dist/ui/list/List.d.ts +0 -14
- package/dist/ui/list/List.js +0 -30
- package/dist/ui/loader/Loader.d.ts +0 -10
- package/dist/ui/loader/Loader.js +0 -37
- package/dist/ui/modal/Action.d.ts +0 -7
- package/dist/ui/modal/Action.js +0 -30
- package/dist/ui/modal/Close.d.ts +0 -6
- package/dist/ui/modal/Close.js +0 -31
- package/dist/ui/modal/Content.d.ts +0 -7
- package/dist/ui/modal/Content.js +0 -8
- package/dist/ui/modal/Header.d.ts +0 -9
- package/dist/ui/modal/Header.js +0 -30
- package/dist/ui/modal/Modal.d.ts +0 -32
- package/dist/ui/modal/Modal.js +0 -61
- package/dist/ui/notification/Content.d.ts +0 -7
- package/dist/ui/notification/Content.js +0 -8
- package/dist/ui/notification/Footer.d.ts +0 -7
- package/dist/ui/notification/Footer.js +0 -8
- package/dist/ui/notification/Header.d.ts +0 -7
- package/dist/ui/notification/Header.js +0 -8
- package/dist/ui/notification/Notification.d.ts +0 -15
- package/dist/ui/notification/Notification.js +0 -23
- package/dist/ui/page/NotFound.d.ts +0 -9
- package/dist/ui/page/NotFound.js +0 -23
- package/dist/ui/page/UnAuthorized.d.ts +0 -9
- package/dist/ui/page/UnAuthorized.js +0 -21
- package/dist/ui/progress/Bar.d.ts +0 -17
- package/dist/ui/progress/Bar.js +0 -87
- package/dist/ui/sidebar/SideBar.d.ts +0 -14
- package/dist/ui/sidebar/SideBar.js +0 -42
- package/dist/ui/sidebar/SideContent.d.ts +0 -6
- package/dist/ui/sidebar/SideContent.js +0 -8
- package/dist/ui/snackbar/SnackBar.d.ts +0 -16
- package/dist/ui/snackbar/SnackBar.js +0 -53
- package/dist/ui/specials/Circle.d.ts +0 -15
- package/dist/ui/specials/Circle.js +0 -34
- package/dist/ui/specials/FullCenteredPage.d.ts +0 -8
- package/dist/ui/specials/FullCenteredPage.js +0 -30
- package/dist/ui/specials/Hr.d.ts +0 -7
- package/dist/ui/specials/Hr.js +0 -8
- package/dist/ui/specials/RowFlex.d.ts +0 -14
- package/dist/ui/specials/RowFlex.js +0 -34
- package/dist/ui/specials/Section.d.ts +0 -8
- package/dist/ui/specials/Section.js +0 -30
- package/dist/ui/step/Container.d.ts +0 -9
- package/dist/ui/step/Container.js +0 -8
- package/dist/ui/step/Header.d.ts +0 -7
- package/dist/ui/step/Header.js +0 -8
- package/dist/ui/step/Line.d.ts +0 -7
- package/dist/ui/step/Line.js +0 -9
- package/dist/ui/step/Step.d.ts +0 -7
- package/dist/ui/step/Step.js +0 -9
- package/dist/ui/table/Body.d.ts +0 -7
- package/dist/ui/table/Body.js +0 -8
- package/dist/ui/table/Data.d.ts +0 -8
- package/dist/ui/table/Data.js +0 -8
- package/dist/ui/table/Head.d.ts +0 -7
- package/dist/ui/table/Head.js +0 -8
- package/dist/ui/table/Row.d.ts +0 -9
- package/dist/ui/table/Row.js +0 -8
- package/dist/ui/table/Table.d.ts +0 -33
- package/dist/ui/table/Table.js +0 -133
- package/dist/ui/text/Text.d.ts +0 -44
- package/dist/ui/text/Text.js +0 -63
- package/dist/ui/theme/dark.d.ts +0 -5
- package/dist/ui/theme/dark.js +0 -34
- package/dist/ui/theme/theme.d.ts +0 -7
- package/dist/ui/theme/theme.js +0 -34
- package/dist/ui/tooltip/Tip.d.ts +0 -12
- package/dist/ui/tooltip/Tip.js +0 -31
- package/dist/ui/tooltip/ToolTip.d.ts +0 -7
- package/dist/ui/tooltip/ToolTip.js +0 -30
- package/dist/ui/video/FunPlayer.d.ts +0 -0
- package/dist/ui/video/FunPlayer.js +0 -203
- package/dist/webpack.config.d.ts +0 -23
- /package/{types/next-env.d.ts → next-env.d.ts} +0 -0
package/dist/ui/text/Text.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
26
|
-
var pi_1 = require("react-icons/pi");
|
|
27
|
-
var Text = function (_a) {
|
|
28
|
-
var id = _a.id, bg = _a.bg, color = _a.color, children = _a.children, hoverBg = _a.hoverBg, hoverText = _a.hoverText, text = _a.text, funcss = _a.funcss, emp = _a.emp, bold = _a.bold, block = _a.block, body = _a.body, article = _a.article, light = _a.light, lighter = _a.lighter, italic = _a.italic, weight = _a.weight, underline = _a.underline, align = _a.align, lineHeight = _a.lineHeight, letterSpacing = _a.letterSpacing, uppercase = _a.uppercase, lowercase = _a.lowercase, capitalize = _a.capitalize, textDecoration = _a.textDecoration, textTransform = _a.textTransform, whiteSpace = _a.whiteSpace, wordBreak = _a.wordBreak, fontFamily = _a.fontFamily, textShadow = _a.textShadow, textAlign = _a.textAlign, customStyles = _a.customStyles, monospace = _a.monospace, quote = _a.quote, _b = _a.size, size = _b === void 0 ? 'base' : _b, // default
|
|
29
|
-
rest = __rest(_a, ["id", "bg", "color", "children", "hoverBg", "hoverText", "text", "funcss", "emp", "bold", "block", "body", "article", "light", "lighter", "italic", "weight", "underline", "align", "lineHeight", "letterSpacing", "uppercase", "lowercase", "capitalize", "textDecoration", "textTransform", "whiteSpace", "wordBreak", "fontFamily", "textShadow", "textAlign", "customStyles", "monospace", "quote", "size"]);
|
|
30
|
-
var Tag = block ? 'div' : 'span';
|
|
31
|
-
var sizeClass = "".concat(size === 'h1' ? "h1" :
|
|
32
|
-
size === 'h2' ? "h2" :
|
|
33
|
-
size === 'h3' ? "h3" :
|
|
34
|
-
size === 'h4' ? "h4" :
|
|
35
|
-
size === 'h5' ? "h5" :
|
|
36
|
-
size === 'h6' ? "h6" :
|
|
37
|
-
"text-".concat(size));
|
|
38
|
-
var mergedStyles = __assign({ display: block ? 'block' : undefined, fontWeight: bold ? 'bold' : weight ? weight : undefined, lineHeight: lineHeight, letterSpacing: letterSpacing, textTransform: textTransform, textDecoration: textDecoration, fontFamily: fontFamily, textShadow: textShadow, textAlign: textAlign, whiteSpace: whiteSpace, wordBreak: wordBreak, transform: customStyles === null || customStyles === void 0 ? void 0 : customStyles.transform }, customStyles);
|
|
39
|
-
var classNames = [
|
|
40
|
-
funcss || '',
|
|
41
|
-
sizeClass,
|
|
42
|
-
color ? "text-".concat(color) : '',
|
|
43
|
-
align ? "text-".concat(align) : '',
|
|
44
|
-
monospace ? 'monospace' : '',
|
|
45
|
-
bg || '',
|
|
46
|
-
hoverText ? "hover-text-".concat(hoverText) : '',
|
|
47
|
-
hoverBg ? "hover-".concat(hoverBg) : '',
|
|
48
|
-
light ? 'lightText' : lighter ? 'lighterText' : '',
|
|
49
|
-
italic ? 'italicText' : '',
|
|
50
|
-
underline ? 'underlineText' : '',
|
|
51
|
-
body ? 'body' : '',
|
|
52
|
-
article ? 'article' : '',
|
|
53
|
-
emp ? 'emp' : '',
|
|
54
|
-
bold ? 'bold' : '',
|
|
55
|
-
uppercase ? 'uppercase' : '',
|
|
56
|
-
lowercase ? 'lowercase' : '',
|
|
57
|
-
capitalize ? 'capitalize' : '',
|
|
58
|
-
]
|
|
59
|
-
.filter(Boolean)
|
|
60
|
-
.join(' ');
|
|
61
|
-
return ((0, jsx_runtime_1.jsxs)(Tag, __assign({ id: id, className: classNames, style: mergedStyles }, rest, { children: [quote && ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(pi_1.PiQuotesLight, {}) })), children, text] })));
|
|
62
|
-
};
|
|
63
|
-
exports.default = Text;
|
package/dist/ui/theme/dark.d.ts
DELETED
package/dist/ui/theme/dark.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = DarkMode;
|
|
4
|
-
function DarkMode(_a) {
|
|
5
|
-
var state = _a.state;
|
|
6
|
-
if (state) {
|
|
7
|
-
var root = document.querySelector(':root'); // Properly declare the type of root
|
|
8
|
-
var bdColor = "#FFFFFFD9";
|
|
9
|
-
var borderColor = void 0;
|
|
10
|
-
var raiseColor = void 0;
|
|
11
|
-
borderColor = "#444654";
|
|
12
|
-
raiseColor = "#1e1e1e";
|
|
13
|
-
root.style.setProperty('--bd-theme', "#141414");
|
|
14
|
-
root.style.setProperty('--bd-color', bdColor);
|
|
15
|
-
root.style.setProperty('--borderColor', borderColor);
|
|
16
|
-
root.style.setProperty('--raiseThemes', raiseColor);
|
|
17
|
-
root.style.setProperty('--lighter', "#33333349");
|
|
18
|
-
root.style.setProperty('--inputOutline', "#1e1e1e");
|
|
19
|
-
root.style.setProperty('--lightThemeDark', bdColor);
|
|
20
|
-
// Dark theme for all the colors
|
|
21
|
-
root.style.setProperty('--success', "#1d6640");
|
|
22
|
-
root.style.setProperty('--successLight', " #c7e6c8");
|
|
23
|
-
root.style.setProperty('--info', "#2471a3");
|
|
24
|
-
root.style.setProperty('--infoLight', "#b3d9ed");
|
|
25
|
-
root.style.setProperty('--warning', "#8c3d00");
|
|
26
|
-
root.style.setProperty('--warningLight', "#d8b69c");
|
|
27
|
-
root.style.setProperty('--danger', "#6b0600");
|
|
28
|
-
root.style.setProperty('--dangerLight', "#bfbfbf");
|
|
29
|
-
// root.style.setProperty('--info', "#2471a3");
|
|
30
|
-
// root.style.setProperty('--infoLight', "#b3d9ed");
|
|
31
|
-
root.style.setProperty('--light', "#c5d8e0");
|
|
32
|
-
root.style.setProperty('--deepLight', "#154556");
|
|
33
|
-
}
|
|
34
|
-
}
|
package/dist/ui/theme/theme.d.ts
DELETED
package/dist/ui/theme/theme.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
var react_1 = require("react");
|
|
6
|
-
var ThemeProvider = function (_a) {
|
|
7
|
-
var theme = _a.theme, children = _a.children;
|
|
8
|
-
(0, react_1.useEffect)(function () {
|
|
9
|
-
var root = document.documentElement;
|
|
10
|
-
var lightTheme = {
|
|
11
|
-
'--page-bg': '#FFFFFF',
|
|
12
|
-
'--text-color': '#000000',
|
|
13
|
-
'--raiseThemes': '#FFFFFF',
|
|
14
|
-
};
|
|
15
|
-
var darkTheme = {
|
|
16
|
-
'--page-bg': '#121212',
|
|
17
|
-
'--text-color': '#FFFFFF',
|
|
18
|
-
'--raiseThemes': '#202020',
|
|
19
|
-
'--borderColor': '#333333',
|
|
20
|
-
'--lighter': '#202020',
|
|
21
|
-
};
|
|
22
|
-
var selectedTheme = theme === 'dark' ? darkTheme : lightTheme;
|
|
23
|
-
Object.entries(selectedTheme).forEach(function (_a) {
|
|
24
|
-
var key = _a[0], value = _a[1];
|
|
25
|
-
root.style.setProperty(key, value);
|
|
26
|
-
});
|
|
27
|
-
}, [theme]);
|
|
28
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: "theme-".concat(theme), style: {
|
|
29
|
-
backgroundColor: 'var(--page-bg)',
|
|
30
|
-
color: 'var(--text-color)',
|
|
31
|
-
minHeight: '100vh',
|
|
32
|
-
}, children: children }));
|
|
33
|
-
};
|
|
34
|
-
exports.default = ThemeProvider;
|
package/dist/ui/tooltip/Tip.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
interface TipProps {
|
|
3
|
-
tip: string;
|
|
4
|
-
funcss?: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
content?: React.ReactNode;
|
|
7
|
-
message?: React.ReactNode;
|
|
8
|
-
animation?: string;
|
|
9
|
-
duration?: number;
|
|
10
|
-
}
|
|
11
|
-
export default function Tip({ tip, funcss, children, content, message, animation, duration, ...rest }: TipProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
package/dist/ui/tooltip/Tip.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.default = Tip;
|
|
26
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
-
function Tip(_a) {
|
|
28
|
-
var tip = _a.tip, funcss = _a.funcss, children = _a.children, content = _a.content, message = _a.message, animation = _a.animation, duration = _a.duration, rest = __rest(_a, ["tip", "funcss", "children", "content", "message", "animation", "duration"]);
|
|
29
|
-
var text = message || content || children;
|
|
30
|
-
return ((0, jsx_runtime_1.jsx)("span", __assign({ className: "tip-".concat(tip, " tip ").concat(funcss ? funcss : ''), style: { animation: " ".concat(duration ? duration : 0, "s ").concat(animation ? animation : '') } }, rest, { children: text })));
|
|
31
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
-
var t = {};
|
|
15
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
-
t[p] = s[p];
|
|
17
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
-
t[p[i]] = s[p[i]];
|
|
21
|
-
}
|
|
22
|
-
return t;
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.default = ToolTip;
|
|
26
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
-
function ToolTip(_a) {
|
|
28
|
-
var funcss = _a.funcss, children = _a.children, rest = __rest(_a, ["funcss", "children"]);
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)("span", __assign({ className: "tooltip ".concat(funcss !== null && funcss !== void 0 ? funcss : '') }, rest, { children: children })));
|
|
30
|
-
}
|
|
File without changes
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import React, { useState, useRef, useEffect } from 'react';
|
|
3
|
-
// import { PiCornersOut, PiDownload, PiFastForward, PiFileAudio, PiPause, PiPlay, PiRewind, PiSpeakerHifi, PiSpeakerLow } from 'react-icons/pi';
|
|
4
|
-
// import ToolTip from "../tooltip/ToolTip"
|
|
5
|
-
// import RowFlex from '../specials/RowFlex';
|
|
6
|
-
// import Button from '../button/Button'
|
|
7
|
-
// import Text from '../text/Text'
|
|
8
|
-
// import Tip from '../tooltip/Tip'
|
|
9
|
-
// interface VideoProps {
|
|
10
|
-
// src: string;
|
|
11
|
-
// autoPlay: boolean;
|
|
12
|
-
// onDuration?: (duration: number) => void;
|
|
13
|
-
// }
|
|
14
|
-
// export default function Video({ src, autoPlay, onDuration }: VideoProps) {
|
|
15
|
-
// const videoRef = useRef<HTMLVideoElement>(null);
|
|
16
|
-
// const [isPlaying, setIsPlaying] = useState<boolean>(autoPlay);
|
|
17
|
-
// const [currentTime, setCurrentTime] = useState<number>(0);
|
|
18
|
-
// const [duration, setDuration] = useState<number>(0);
|
|
19
|
-
// const [volume, setVolume] = useState<number>(1);
|
|
20
|
-
// const [isFullScreen, setIsFullScreen] = useState<boolean>(false);
|
|
21
|
-
// const [showVolume, setShowVolume] = useState<boolean>(false);
|
|
22
|
-
// useEffect(() => {
|
|
23
|
-
// if (!videoRef.current) return;
|
|
24
|
-
// const handleTimeUpdate = () => {
|
|
25
|
-
// setCurrentTime(videoRef.current.currentTime);
|
|
26
|
-
// };
|
|
27
|
-
// const handleDurationChange = () => {
|
|
28
|
-
// const newDuration = videoRef.current.duration;
|
|
29
|
-
// setDuration(newDuration);
|
|
30
|
-
// onDuration && onDuration(newDuration);
|
|
31
|
-
// };
|
|
32
|
-
// videoRef.current.addEventListener('timeupdate', handleTimeUpdate);
|
|
33
|
-
// videoRef.current.addEventListener('durationchange', handleDurationChange);
|
|
34
|
-
// return () => {
|
|
35
|
-
// videoRef.current?.removeEventListener('timeupdate', handleTimeUpdate);
|
|
36
|
-
// videoRef.current?.removeEventListener('durationchange', handleDurationChange);
|
|
37
|
-
// };
|
|
38
|
-
// }, [onDuration]);
|
|
39
|
-
// const formatTime = (time: number) => {
|
|
40
|
-
// const minutes = Math.floor(time / 60);
|
|
41
|
-
// const seconds = Math.floor(time % 60);
|
|
42
|
-
// return `${String(minutes).padStart(2, '0')}:${String(seconds).padStart(2, '0')}`;
|
|
43
|
-
// };
|
|
44
|
-
// const handlePlay = () => {
|
|
45
|
-
// videoRef.current?.play();
|
|
46
|
-
// setIsPlaying(true);
|
|
47
|
-
// };
|
|
48
|
-
// const handlePause = () => {
|
|
49
|
-
// videoRef.current?.pause();
|
|
50
|
-
// setIsPlaying(false);
|
|
51
|
-
// };
|
|
52
|
-
// const handleStop = () => {
|
|
53
|
-
// videoRef.current?.pause();
|
|
54
|
-
// videoRef.current.currentTime = 0;
|
|
55
|
-
// setIsPlaying(false);
|
|
56
|
-
// };
|
|
57
|
-
// const handleRewind = () => {
|
|
58
|
-
// if (videoRef.current) videoRef.current.currentTime -= 10; // Rewind 10 seconds
|
|
59
|
-
// };
|
|
60
|
-
// const handleForward = () => {
|
|
61
|
-
// if (videoRef.current) videoRef.current.currentTime += 10; // Forward 10 seconds
|
|
62
|
-
// };
|
|
63
|
-
// const handleToggleFullScreen = () => {
|
|
64
|
-
// if (videoRef.current) {
|
|
65
|
-
// if (videoRef.current.requestFullscreen) {
|
|
66
|
-
// videoRef.current.requestFullscreen();
|
|
67
|
-
// } else if (videoRef.current.mozRequestFullScreen) {
|
|
68
|
-
// videoRef.current.mozRequestFullScreen();
|
|
69
|
-
// } else if (videoRef.current.webkitRequestFullscreen) {
|
|
70
|
-
// videoRef.current.webkitRequestFullscreen();
|
|
71
|
-
// } else if (videoRef.current.msRequestFullscreen) {
|
|
72
|
-
// videoRef.current.msRequestFullscreen();
|
|
73
|
-
// }
|
|
74
|
-
// setIsFullScreen(true);
|
|
75
|
-
// }
|
|
76
|
-
// };
|
|
77
|
-
// // const handleExitFullScreen = () => {
|
|
78
|
-
// // if (document.exitFullscreen) {
|
|
79
|
-
// // document.exitFullscreen();
|
|
80
|
-
// // } else if (document.mozCancelFullScreen) {
|
|
81
|
-
// // document.mozCancelFullScreen();
|
|
82
|
-
// // } else if (document.webkitExitFullscreen) {
|
|
83
|
-
// // document.webkitExitFullscreen();
|
|
84
|
-
// // } else if (document.msExitFullscreen) {
|
|
85
|
-
// // document.msExitFullscreen();
|
|
86
|
-
// // }
|
|
87
|
-
// // setIsFullScreen(false);
|
|
88
|
-
// // };
|
|
89
|
-
// const handleProgressBarChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
90
|
-
// const newTime = parseFloat(e.target.value);
|
|
91
|
-
// setCurrentTime(newTime);
|
|
92
|
-
// if (videoRef.current) videoRef.current.currentTime = newTime;
|
|
93
|
-
// };
|
|
94
|
-
// const handleVolumeChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
95
|
-
// const newVolume = parseFloat(e.target.value);
|
|
96
|
-
// setVolume(newVolume);
|
|
97
|
-
// if (videoRef.current) videoRef.current.volume = newVolume;
|
|
98
|
-
// };
|
|
99
|
-
// const timePlayed = formatTime(currentTime);
|
|
100
|
-
// const timeLeft = formatTime(duration - currentTime);
|
|
101
|
-
// return (
|
|
102
|
-
// <div className="vide_container">
|
|
103
|
-
// <video
|
|
104
|
-
// ref={videoRef}
|
|
105
|
-
// autoPlay={autoPlay}
|
|
106
|
-
// src={src}
|
|
107
|
-
// className="fit"
|
|
108
|
-
// ></video>
|
|
109
|
-
// <div className="video_controls" onDoubleClick={isPlaying ? handlePause : handlePlay}>
|
|
110
|
-
// <RowFlex gap={0.3} funcss="padding-5">
|
|
111
|
-
// <div>
|
|
112
|
-
// <Text
|
|
113
|
-
// text={timePlayed}
|
|
114
|
-
// size="small"
|
|
115
|
-
// bold
|
|
116
|
-
// />
|
|
117
|
-
// </div>
|
|
118
|
-
// <div className="col width-100-p">
|
|
119
|
-
// <input
|
|
120
|
-
// type="range"
|
|
121
|
-
// min={0}
|
|
122
|
-
// max={duration}
|
|
123
|
-
// value={currentTime}
|
|
124
|
-
// className="width-100-p"
|
|
125
|
-
// style={{ height: "3px" }}
|
|
126
|
-
// onChange={handleProgressBarChange}
|
|
127
|
-
// />
|
|
128
|
-
// </div>
|
|
129
|
-
// <div>
|
|
130
|
-
// <Text
|
|
131
|
-
// text={timeLeft}
|
|
132
|
-
// size="small"
|
|
133
|
-
// bold
|
|
134
|
-
// />
|
|
135
|
-
// </div>
|
|
136
|
-
// </RowFlex>
|
|
137
|
-
// <div className="margin-top-5"></div>
|
|
138
|
-
// <RowFlex gap={1} justify="space-between">
|
|
139
|
-
// <div>
|
|
140
|
-
// <RowFlex gap={0.5}>
|
|
141
|
-
// <ToolTip>
|
|
142
|
-
// <div className="width-30 height-30 pointer padding-5" onClick={isPlaying ? handlePause : handlePlay}>
|
|
143
|
-
// {isPlaying ? <PiPause /> : <PiPlay />}
|
|
144
|
-
// </div>
|
|
145
|
-
// <Tip tip="top" animation="ScaleUp" duration={0.5} content={isPlaying ? "Pause" : "Play"} />
|
|
146
|
-
// </ToolTip>
|
|
147
|
-
// <ToolTip>
|
|
148
|
-
// <div className="width-30 height-30 pointer padding-5" onClick={handleRewind}>
|
|
149
|
-
// <PiRewind />
|
|
150
|
-
// </div>
|
|
151
|
-
// <Tip tip="top" animation="ScaleUp" duration={0.5} content={"10 sec Back"} />
|
|
152
|
-
// </ToolTip>
|
|
153
|
-
// <ToolTip>
|
|
154
|
-
// <div className="width-30 height-30 pointer padding-5" onClick={handleForward}>
|
|
155
|
-
// <PiFastForward />
|
|
156
|
-
// </div>
|
|
157
|
-
// <Tip tip="top" animation="ScaleUp" duration={0.5} content={"10 sec Forward"} />
|
|
158
|
-
// </ToolTip>
|
|
159
|
-
// <div onMouseEnter={() => setShowVolume(true)} onMouseLeave={() => setShowVolume(false)}>
|
|
160
|
-
// <RowFlex >
|
|
161
|
-
// <ToolTip>
|
|
162
|
-
// <div className="width-30 height-30 pointer padding-5">
|
|
163
|
-
// <PiSpeakerLow />
|
|
164
|
-
// </div>
|
|
165
|
-
// <Tip tip="top" animation="ScaleUp" duration={0.5} content={"Volume"} />
|
|
166
|
-
// </ToolTip>
|
|
167
|
-
// {showVolume &&
|
|
168
|
-
// <input
|
|
169
|
-
// type="range"
|
|
170
|
-
// min={0}
|
|
171
|
-
// max={1}
|
|
172
|
-
// step={0.01}
|
|
173
|
-
// value={volume}
|
|
174
|
-
// className="width-100"
|
|
175
|
-
// style={{ height: "3px" }}
|
|
176
|
-
// onChange={handleVolumeChange}
|
|
177
|
-
// />
|
|
178
|
-
// }
|
|
179
|
-
// </RowFlex>
|
|
180
|
-
// </div>
|
|
181
|
-
// </RowFlex>
|
|
182
|
-
// </div>
|
|
183
|
-
// <div>
|
|
184
|
-
// <RowFlex gap={0.3}>
|
|
185
|
-
// <ToolTip>
|
|
186
|
-
// <div className="width-30 height-30 pointer padding-5" onClick={handleToggleFullScreen}>
|
|
187
|
-
// <PiCornersOut />
|
|
188
|
-
// </div>
|
|
189
|
-
// <Tip tip="top" animation="ScaleUp" duration={0.5} content={"Expand"} />
|
|
190
|
-
// </ToolTip>
|
|
191
|
-
// <ToolTip>
|
|
192
|
-
// <div className="width-30 height-30 pointer padding-5" onClick={() => { window.open(src || "", '_blank'); }}>
|
|
193
|
-
// <PiDownload />
|
|
194
|
-
// </div>
|
|
195
|
-
// <Tip tip="top" animation="ScaleUp" duration={0.5} content={"Download"} />
|
|
196
|
-
// </ToolTip>
|
|
197
|
-
// </RowFlex>
|
|
198
|
-
// </div>
|
|
199
|
-
// </RowFlex>
|
|
200
|
-
// </div>
|
|
201
|
-
// </div>
|
|
202
|
-
// );
|
|
203
|
-
// }
|
package/dist/webpack.config.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import TerserPlugin = require("terser-webpack-plugin");
|
|
2
|
-
export let mode: string;
|
|
3
|
-
export let devtool: string;
|
|
4
|
-
export let entry: string;
|
|
5
|
-
export namespace output {
|
|
6
|
-
let path: string;
|
|
7
|
-
let filename: string;
|
|
8
|
-
}
|
|
9
|
-
export namespace resolve {
|
|
10
|
-
let extensions: string[];
|
|
11
|
-
}
|
|
12
|
-
export namespace module {
|
|
13
|
-
let rules: {
|
|
14
|
-
test: RegExp;
|
|
15
|
-
use: string;
|
|
16
|
-
exclude: RegExp;
|
|
17
|
-
}[];
|
|
18
|
-
}
|
|
19
|
-
export namespace optimization {
|
|
20
|
-
let minimize: boolean;
|
|
21
|
-
let minimizer: TerserPlugin<import("terser").MinifyOptions>[];
|
|
22
|
-
}
|
|
23
|
-
export let plugins: any[];
|
|
File without changes
|