funuicss 2.5.8 → 2.5.9
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/assets/colors/colors.d.ts +347 -0
- package/dist/assets/colors/colors.js +348 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +80 -0
- package/dist/js/Fun.d.ts +38 -0
- package/dist/js/Fun.js +235 -0
- package/dist/js/Theme.d.ts +2 -0
- package/dist/js/Theme.js +42 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/ui/alert/Alert.d.ts +24 -0
- package/dist/ui/alert/Alert.js +48 -0
- package/dist/ui/aos/AOS.d.ts +9 -0
- package/dist/ui/aos/AOS.js +30 -0
- package/dist/ui/appbar/AppBar.d.ts +17 -0
- package/dist/ui/appbar/AppBar.js +43 -0
- package/dist/ui/appbar/Hamburger.d.ts +7 -0
- package/dist/ui/appbar/Hamburger.js +20 -0
- package/dist/ui/avatar/Avatar.d.ts +10 -0
- package/dist/ui/avatar/Avatar.js +12 -0
- package/dist/ui/blob/Blob.d.ts +10 -0
- package/dist/ui/blob/Blob.js +16 -0
- package/dist/ui/breadcrumb/BreadCrumb.d.ts +7 -0
- package/dist/ui/breadcrumb/BreadCrumb.js +10 -0
- package/dist/ui/button/Button.d.ts +39 -0
- package/dist/ui/button/Button.js +66 -0
- package/dist/ui/card/Card.d.ts +32 -0
- package/dist/ui/card/Card.js +39 -0
- package/dist/ui/card/CardBody.d.ts +7 -0
- package/dist/ui/card/CardBody.js +30 -0
- package/dist/ui/card/CardFab.d.ts +8 -0
- package/dist/ui/card/CardFab.js +31 -0
- package/dist/ui/card/CardFooter.d.ts +7 -0
- package/dist/ui/card/CardFooter.js +30 -0
- package/dist/ui/card/CardHeader.d.ts +7 -0
- package/dist/ui/card/CardHeader.js +30 -0
- package/dist/ui/container/Container.d.ts +11 -0
- package/dist/ui/container/Container.js +31 -0
- package/dist/ui/div/Div.d.ts +19 -0
- package/dist/ui/div/Div.js +31 -0
- package/dist/ui/drop/Action.d.ts +7 -0
- package/dist/ui/drop/Action.js +8 -0
- package/dist/ui/drop/Down.d.ts +9 -0
- package/dist/ui/drop/Down.js +8 -0
- package/dist/ui/drop/Dropdown.d.ts +18 -0
- package/dist/ui/drop/Dropdown.js +31 -0
- package/dist/ui/drop/Item.d.ts +8 -0
- package/dist/ui/drop/Item.js +8 -0
- package/dist/ui/drop/Menu.d.ts +12 -0
- package/dist/ui/drop/Menu.js +11 -0
- package/dist/ui/drop/Up.d.ts +9 -0
- package/dist/ui/drop/Up.js +8 -0
- package/dist/ui/grid/Col.d.ts +14 -0
- package/dist/ui/grid/Col.js +40 -0
- package/dist/ui/grid/Grid.d.ts +12 -0
- package/dist/ui/grid/Grid.js +34 -0
- package/dist/ui/input/Iconic.d.ts +11 -0
- package/dist/ui/input/Iconic.js +15 -0
- package/dist/ui/input/Input.d.ts +35 -0
- package/dist/ui/input/Input.js +110 -0
- package/dist/ui/list/Item.d.ts +7 -0
- package/dist/ui/list/Item.js +30 -0
- package/dist/ui/list/List.d.ts +14 -0
- package/dist/ui/list/List.js +30 -0
- package/dist/ui/loader/Loader.d.ts +10 -0
- package/dist/ui/loader/Loader.js +37 -0
- package/dist/ui/modal/Action.d.ts +7 -0
- package/dist/ui/modal/Action.js +30 -0
- package/dist/ui/modal/Close.d.ts +6 -0
- package/dist/ui/modal/Close.js +31 -0
- package/dist/ui/modal/Content.d.ts +7 -0
- package/dist/ui/modal/Content.js +8 -0
- package/dist/ui/modal/Header.d.ts +9 -0
- package/dist/ui/modal/Header.js +30 -0
- package/dist/ui/modal/Modal.d.ts +32 -0
- package/dist/ui/modal/Modal.js +61 -0
- package/dist/ui/notification/Content.d.ts +7 -0
- package/dist/ui/notification/Content.js +8 -0
- package/dist/ui/notification/Footer.d.ts +7 -0
- package/dist/ui/notification/Footer.js +8 -0
- package/dist/ui/notification/Header.d.ts +7 -0
- package/dist/ui/notification/Header.js +8 -0
- package/dist/ui/notification/Notification.d.ts +15 -0
- package/dist/ui/notification/Notification.js +23 -0
- package/dist/ui/page/NotFound.d.ts +9 -0
- package/dist/ui/page/NotFound.js +23 -0
- package/dist/ui/page/UnAuthorized.d.ts +9 -0
- package/dist/ui/page/UnAuthorized.js +21 -0
- package/dist/ui/progress/Bar.d.ts +17 -0
- package/dist/ui/progress/Bar.js +87 -0
- package/dist/ui/sidebar/SideBar.d.ts +14 -0
- package/dist/ui/sidebar/SideBar.js +42 -0
- package/dist/ui/sidebar/SideContent.d.ts +6 -0
- package/dist/ui/sidebar/SideContent.js +8 -0
- package/dist/ui/snackbar/SnackBar.d.ts +16 -0
- package/dist/ui/snackbar/SnackBar.js +53 -0
- package/dist/ui/specials/Circle.d.ts +15 -0
- package/dist/ui/specials/Circle.js +34 -0
- package/dist/ui/specials/FullCenteredPage.d.ts +8 -0
- package/dist/ui/specials/FullCenteredPage.js +30 -0
- package/dist/ui/specials/Hr.d.ts +7 -0
- package/dist/ui/specials/Hr.js +8 -0
- package/dist/ui/specials/RowFlex.d.ts +14 -0
- package/dist/ui/specials/RowFlex.js +34 -0
- package/dist/ui/specials/Section.d.ts +8 -0
- package/dist/ui/specials/Section.js +30 -0
- package/dist/ui/step/Container.d.ts +9 -0
- package/dist/ui/step/Container.js +8 -0
- package/dist/ui/step/Header.d.ts +7 -0
- package/dist/ui/step/Header.js +8 -0
- package/dist/ui/step/Line.d.ts +7 -0
- package/dist/ui/step/Line.js +9 -0
- package/dist/ui/step/Step.d.ts +7 -0
- package/dist/ui/step/Step.js +9 -0
- package/dist/ui/table/Body.d.ts +7 -0
- package/dist/ui/table/Body.js +8 -0
- package/dist/ui/table/Data.d.ts +8 -0
- package/dist/ui/table/Data.js +8 -0
- package/dist/ui/table/Head.d.ts +7 -0
- package/dist/ui/table/Head.js +8 -0
- package/dist/ui/table/Row.d.ts +9 -0
- package/dist/ui/table/Row.js +8 -0
- package/dist/ui/table/Table.d.ts +33 -0
- package/dist/ui/table/Table.js +133 -0
- package/dist/ui/text/Text.d.ts +44 -0
- package/dist/ui/text/Text.js +63 -0
- package/dist/ui/theme/dark.d.ts +5 -0
- package/dist/ui/theme/dark.js +34 -0
- package/dist/ui/theme/theme.d.ts +7 -0
- package/dist/ui/theme/theme.js +34 -0
- package/dist/ui/tooltip/Tip.d.ts +12 -0
- package/dist/ui/tooltip/Tip.js +31 -0
- package/dist/ui/tooltip/ToolTip.d.ts +7 -0
- package/dist/ui/tooltip/ToolTip.js +30 -0
- package/dist/ui/video/FunPlayer.d.ts +0 -0
- package/dist/ui/video/FunPlayer.js +203 -0
- package/dist/webpack.config.d.ts +23 -0
- package/package.json +13 -12
- package/tsconfig.json +12 -10
- package/tsconfig.tsbuildinfo +1 -1
- package/types/next-env.d.ts +3 -0
- package/types/react-easy-export.d.ts +4 -0
- package/ui/alert/Alert.js +18 -8
- package/ui/alert/Alert.tsx +1 -1
- package/ui/aos/AOS.js +18 -8
- package/ui/appbar/AppBar.js +23 -19
- package/ui/appbar/AppBar.tsx +5 -12
- package/ui/appbar/Hamburger.js +17 -7
- package/ui/avatar/Avatar.js +19 -8
- package/ui/avatar/Avatar.tsx +1 -0
- package/ui/blob/Blob.js +17 -7
- package/ui/breadcrumb/BreadCrumb.js +19 -8
- package/ui/breadcrumb/BreadCrumb.tsx +1 -0
- package/ui/button/Button.js +19 -8
- package/ui/button/Button.tsx +5 -6
- package/ui/card/Card.js +2 -1
- package/ui/card/Card.tsx +1 -0
- package/ui/card/CardBody.js +1 -1
- package/ui/card/CardFab.js +1 -1
- package/ui/card/CardFooter.js +1 -1
- package/ui/card/CardHeader.js +1 -1
- package/ui/container/Container.js +17 -7
- package/ui/container/Container.tsx +1 -1
- package/ui/div/Div.js +18 -7
- package/ui/div/Div.tsx +1 -0
- package/ui/drop/Action.js +17 -7
- package/ui/drop/Down.js +17 -7
- package/ui/drop/Dropdown.js +17 -7
- package/ui/drop/Dropdown.tsx +1 -2
- package/ui/drop/Item.js +18 -8
- package/ui/drop/Menu.js +18 -8
- package/ui/drop/Up.js +17 -7
- package/ui/grid/Col.js +18 -8
- package/ui/grid/Grid.js +18 -8
- package/ui/input/Iconic.js +1 -1
- package/ui/input/Input.js +17 -7
- package/ui/list/Item.js +18 -8
- package/ui/list/List.js +18 -8
- package/ui/loader/Loader.js +18 -8
- package/ui/modal/Action.js +18 -8
- package/ui/modal/Close.js +18 -8
- package/ui/modal/Content.js +18 -8
- package/ui/modal/Header.js +18 -8
- package/ui/modal/Modal.js +18 -8
- package/ui/notification/Content.js +18 -8
- package/ui/notification/Footer.js +18 -8
- package/ui/notification/Header.js +18 -8
- package/ui/notification/Notification.js +19 -8
- package/ui/notification/Notification.tsx +1 -0
- package/ui/page/NotFound.js +18 -8
- package/ui/page/UnAuthorized.js +18 -8
- package/ui/progress/Bar.js +19 -8
- package/ui/progress/Bar.tsx +1 -0
- package/ui/sidebar/SideBar.js +18 -8
- package/ui/sidebar/SideContent.js +1 -1
- package/ui/snackbar/SnackBar.js +17 -7
- package/ui/specials/Circle.js +18 -8
- package/ui/specials/FullCenteredPage.js +17 -7
- package/ui/specials/Hr.js +17 -7
- package/ui/specials/RowFlex.js +18 -8
- package/ui/specials/Section.js +17 -7
- package/ui/step/Line.js +1 -0
- package/ui/step/Line.tsx +1 -0
- package/ui/step/Step.js +1 -0
- package/ui/step/Step.tsx +1 -0
- package/ui/table/Body.js +18 -8
- package/ui/table/Data.js +18 -8
- package/ui/table/Head.js +18 -8
- package/ui/table/Row.js +18 -8
- package/ui/table/Table.js +21 -9
- package/ui/table/Table.tsx +4 -1
- package/ui/theme/dark.js +1 -1
- package/ui/theme/theme.js +17 -7
- package/ui/tooltip/Tip.js +18 -8
- package/ui/tooltip/ToolTip.js +18 -8
package/ui/appbar/AppBar.js
CHANGED
|
@@ -16,26 +16,37 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28
38
|
};
|
|
29
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.default = AppBar;
|
|
30
41
|
var React = __importStar(require("react"));
|
|
31
42
|
var react_1 = require("react");
|
|
32
|
-
var
|
|
43
|
+
var navigation_1 = require("next/navigation"); // <-- Updated import
|
|
33
44
|
var Hamburger_1 = __importDefault(require("./Hamburger"));
|
|
34
45
|
function AppBar(_a) {
|
|
35
46
|
var fixedTop = _a.fixedTop, funcss = _a.funcss, padding = _a.padding, fixedBottom = _a.fixedBottom, justify = _a.justify, left = _a.left, center = _a.center, right = _a.right, sideBar = _a.sideBar, sidebarTrigger = _a.sidebarTrigger, transparent = _a.transparent;
|
|
36
47
|
var _b = (0, react_1.useState)(false), isMobileMenuOpen = _b[0], setIsMobileMenuOpen = _b[1];
|
|
37
48
|
var _c = (0, react_1.useState)(false), isMobileScreen = _c[0], setIsMobileScreen = _c[1];
|
|
38
|
-
var
|
|
49
|
+
var pathname = (0, navigation_1.usePathname)(); // <-- New hook to detect path changes
|
|
39
50
|
var toggleMenu = function () { return setIsMobileMenuOpen(function (prev) { return !prev; }); };
|
|
40
51
|
var closeMenu = function () { return setIsMobileMenuOpen(false); };
|
|
41
52
|
(0, react_1.useEffect)(function () {
|
|
@@ -50,16 +61,10 @@ function AppBar(_a) {
|
|
|
50
61
|
window.addEventListener('resize', handleResize);
|
|
51
62
|
return function () { return window.removeEventListener('resize', handleResize); };
|
|
52
63
|
}, []);
|
|
53
|
-
//
|
|
64
|
+
// Automatically close menu on route (pathname) change
|
|
54
65
|
(0, react_1.useEffect)(function () {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
};
|
|
58
|
-
router.events.on('routeChangeStart', handleRouteChange);
|
|
59
|
-
return function () {
|
|
60
|
-
router.events.off('routeChangeStart', handleRouteChange);
|
|
61
|
-
};
|
|
62
|
-
}, [router]);
|
|
66
|
+
closeMenu();
|
|
67
|
+
}, [pathname]);
|
|
63
68
|
var Trigger = function (_a) {
|
|
64
69
|
var isOpen = _a.isOpen;
|
|
65
70
|
return React.createElement(Hamburger_1.default, { isOpen: isOpen });
|
|
@@ -76,4 +81,3 @@ function AppBar(_a) {
|
|
|
76
81
|
React.createElement("div", { className: "linkWrapper" }, right),
|
|
77
82
|
isMobileScreen && !isMobileMenuOpen && (React.createElement("span", { className: "sidebar-trigger pointer hover-text-primary", onClick: toggleMenu }, sidebarTrigger || React.createElement(Trigger, { isOpen: isMobileMenuOpen })))));
|
|
78
83
|
}
|
|
79
|
-
exports.default = AppBar;
|
package/ui/appbar/AppBar.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { useState, useEffect } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { usePathname } from 'next/navigation'; // <-- Updated import
|
|
5
5
|
import Hamburger from './Hamburger';
|
|
6
6
|
|
|
7
7
|
interface NavbarProps {
|
|
@@ -34,7 +34,7 @@ export default function AppBar({
|
|
|
34
34
|
}: NavbarProps) {
|
|
35
35
|
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
|
|
36
36
|
const [isMobileScreen, setIsMobileScreen] = useState(false);
|
|
37
|
-
const
|
|
37
|
+
const pathname = usePathname(); // <-- New hook to detect path changes
|
|
38
38
|
|
|
39
39
|
const toggleMenu = () => setIsMobileMenuOpen((prev) => !prev);
|
|
40
40
|
const closeMenu = () => setIsMobileMenuOpen(false);
|
|
@@ -53,17 +53,10 @@ export default function AppBar({
|
|
|
53
53
|
return () => window.removeEventListener('resize', handleResize);
|
|
54
54
|
}, []);
|
|
55
55
|
|
|
56
|
-
//
|
|
56
|
+
// Automatically close menu on route (pathname) change
|
|
57
57
|
useEffect(() => {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
router.events.on('routeChangeStart', handleRouteChange);
|
|
63
|
-
return () => {
|
|
64
|
-
router.events.off('routeChangeStart', handleRouteChange);
|
|
65
|
-
};
|
|
66
|
-
}, [router]);
|
|
58
|
+
closeMenu();
|
|
59
|
+
}, [pathname]);
|
|
67
60
|
|
|
68
61
|
const Trigger = ({ isOpen }: { isOpen: boolean }) => {
|
|
69
62
|
return <Hamburger isOpen={isOpen} />;
|
package/ui/appbar/Hamburger.js
CHANGED
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
37
|
var react_1 = __importStar(require("react"));
|
|
28
38
|
var Hamburger = function (_a) {
|
package/ui/avatar/Avatar.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
"use strict";
|
|
2
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
4
|
if (k2 === undefined) k2 = k;
|
|
@@ -15,14 +16,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
16
|
}) : function(o, v) {
|
|
16
17
|
o["default"] = v;
|
|
17
18
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
25
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.default = Avatar;
|
|
26
38
|
var React = __importStar(require("react"));
|
|
27
39
|
function Avatar(_a) {
|
|
28
40
|
var funcss = _a.funcss, children = _a.children, size = _a.size, bg = _a.bg, content = _a.content;
|
|
@@ -32,4 +44,3 @@ function Avatar(_a) {
|
|
|
32
44
|
} },
|
|
33
45
|
React.createElement(React.Fragment, null, content ? content : children)));
|
|
34
46
|
}
|
|
35
|
-
exports.default = Avatar;
|
package/ui/avatar/Avatar.tsx
CHANGED
package/ui/blob/Blob.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
var React = __importStar(require("react"));
|
|
27
37
|
var Blob = function (_a) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
"use strict";
|
|
2
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
4
|
if (k2 === undefined) k2 = k;
|
|
@@ -15,14 +16,25 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
16
|
}) : function(o, v) {
|
|
16
17
|
o["default"] = v;
|
|
17
18
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
25
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.default = BreadCrumb;
|
|
26
38
|
var React = __importStar(require("react"));
|
|
27
39
|
var pi_1 = require("react-icons/pi");
|
|
28
40
|
function BreadCrumb(_a) {
|
|
@@ -38,4 +50,3 @@ function BreadCrumb(_a) {
|
|
|
38
50
|
React.createElement(pi_1.PiCaretLeft, null)))),
|
|
39
51
|
type === 'straight' && (React.createElement("span", { style: { lineHeight: "0" }, className: " ".concat(funcss ? funcss : '', " ").concat(color ? 'text-' + color : '') }, ' | '))));
|
|
40
52
|
}
|
|
41
|
-
exports.default = BreadCrumb;
|
package/ui/button/Button.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
"use strict";
|
|
2
3
|
var __assign = (this && this.__assign) || function () {
|
|
3
4
|
__assign = Object.assign || function(t) {
|
|
@@ -26,13 +27,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
27
|
}) : function(o, v) {
|
|
27
28
|
o["default"] = v;
|
|
28
29
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
30
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
31
|
+
var ownKeys = function(o) {
|
|
32
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
37
|
+
return ownKeys(o);
|
|
38
|
+
};
|
|
39
|
+
return function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
36
47
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
48
|
var t = {};
|
|
38
49
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -45,6 +56,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
45
56
|
return t;
|
|
46
57
|
};
|
|
47
58
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
|
+
exports.default = Button;
|
|
48
60
|
var React = __importStar(require("react"));
|
|
49
61
|
var pi_1 = require("react-icons/pi");
|
|
50
62
|
function Button(_a) {
|
|
@@ -97,4 +109,3 @@ function Button(_a) {
|
|
|
97
109
|
text ? text : children,
|
|
98
110
|
endIcon && React.createElement("span", { className: "btn_right_icon", style: { lineHeight: "0" } }, endIcon))));
|
|
99
111
|
}
|
|
100
|
-
exports.default = Button;
|
package/ui/button/Button.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
import { ReactNode, HTMLProps, MouseEvent, ChangeEvent } from 'react';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { PiInfo , PiCheck , PiWarning , PiX , PiSpinner } from "react-icons/pi";
|
|
@@ -75,17 +75,16 @@ export default function Button({
|
|
|
75
75
|
onClick,
|
|
76
76
|
...rest
|
|
77
77
|
}: ButtonProps) {
|
|
78
|
-
function removeNumbers(text:
|
|
78
|
+
function removeNumbers(text:any) {
|
|
79
79
|
return text.replace(/[0-9]/g, '');
|
|
80
80
|
}
|
|
81
|
-
function hasNumberAbove(text:
|
|
81
|
+
function hasNumberAbove(text:any) {
|
|
82
82
|
const matches = text.match(/\d+/g); // find all numbers in the string
|
|
83
83
|
if (!matches) return false;
|
|
84
|
-
|
|
85
|
-
return matches.some(num => parseInt(num) >= 400);
|
|
84
|
+
return matches.some((num: string) => parseInt(num) >= 400);
|
|
86
85
|
}
|
|
87
86
|
|
|
88
|
-
function hasNumber(text:
|
|
87
|
+
function hasNumber(text:any) {
|
|
89
88
|
return /\d/.test(text);
|
|
90
89
|
}
|
|
91
90
|
|
package/ui/card/Card.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
"use strict";
|
|
2
3
|
var __assign = (this && this.__assign) || function () {
|
|
3
4
|
__assign = Object.assign || function(t) {
|
|
@@ -25,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
27
|
};
|
|
27
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = Card;
|
|
28
30
|
var react_1 = __importDefault(require("react"));
|
|
29
31
|
var CardHeader_1 = __importDefault(require("./CardHeader"));
|
|
30
32
|
var CardBody_1 = __importDefault(require("./CardBody"));
|
|
@@ -49,4 +51,3 @@ function Card(_a) {
|
|
|
49
51
|
footer && !horizontal ? react_1.default.createElement(CardFooter_1.default, null, footer) : '',
|
|
50
52
|
children));
|
|
51
53
|
}
|
|
52
|
-
exports.default = Card;
|
package/ui/card/Card.tsx
CHANGED
package/ui/card/CardBody.js
CHANGED
|
@@ -25,9 +25,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.default = CardBody;
|
|
28
29
|
var react_1 = __importDefault(require("react"));
|
|
29
30
|
function CardBody(_a) {
|
|
30
31
|
var funcss = _a.funcss, children = _a.children, rest = __rest(_a, ["funcss", "children"]);
|
|
31
32
|
return (react_1.default.createElement("div", __assign({ className: "card-body ".concat(funcss || '') }, rest), children));
|
|
32
33
|
}
|
|
33
|
-
exports.default = CardBody;
|
package/ui/card/CardFab.js
CHANGED
|
@@ -26,9 +26,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = CardFab;
|
|
29
30
|
var react_1 = __importDefault(require("react"));
|
|
30
31
|
function CardFab(_a) {
|
|
31
32
|
var funcss = _a.funcss, position = _a.position, children = _a.children, rest = __rest(_a, ["funcss", "position", "children"]);
|
|
32
33
|
return (react_1.default.createElement("div", __assign({ className: "card-fab ".concat(funcss || '', " ").concat(position || '') }, rest), children));
|
|
33
34
|
}
|
|
34
|
-
exports.default = CardFab;
|
package/ui/card/CardFooter.js
CHANGED
|
@@ -25,9 +25,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.default = CardFooter;
|
|
28
29
|
var react_1 = __importDefault(require("react"));
|
|
29
30
|
function CardFooter(_a) {
|
|
30
31
|
var funcss = _a.funcss, children = _a.children, rest = __rest(_a, ["funcss", "children"]);
|
|
31
32
|
return (react_1.default.createElement("div", __assign({ className: "card-footer ".concat(funcss || '') }, rest), children));
|
|
32
33
|
}
|
|
33
|
-
exports.default = CardFooter;
|
package/ui/card/CardHeader.js
CHANGED
|
@@ -25,9 +25,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.default = CardHeader;
|
|
28
29
|
var react_1 = __importDefault(require("react"));
|
|
29
30
|
function CardHeader(_a) {
|
|
30
31
|
var funcss = _a.funcss, children = _a.children, rest = __rest(_a, ["funcss", "children"]);
|
|
31
32
|
return (react_1.default.createElement("div", __assign({ className: "card-header ".concat(funcss || '') }, rest), children));
|
|
32
33
|
}
|
|
33
|
-
exports.default = CardHeader;
|
|
@@ -27,13 +27,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
27
27
|
}) : function(o, v) {
|
|
28
28
|
o["default"] = v;
|
|
29
29
|
});
|
|
30
|
-
var __importStar = (this && this.__importStar) || function (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
30
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
31
|
+
var ownKeys = function(o) {
|
|
32
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
37
|
+
return ownKeys(o);
|
|
38
|
+
};
|
|
39
|
+
return function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
37
47
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
38
48
|
var t = {};
|
|
39
49
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
package/ui/div/Div.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
"use strict";
|
|
2
3
|
var __assign = (this && this.__assign) || function () {
|
|
3
4
|
__assign = Object.assign || function(t) {
|
|
@@ -26,13 +27,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
27
|
}) : function(o, v) {
|
|
27
28
|
o["default"] = v;
|
|
28
29
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
30
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
31
|
+
var ownKeys = function(o) {
|
|
32
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
33
|
+
var ar = [];
|
|
34
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
37
|
+
return ownKeys(o);
|
|
38
|
+
};
|
|
39
|
+
return function (mod) {
|
|
40
|
+
if (mod && mod.__esModule) return mod;
|
|
41
|
+
var result = {};
|
|
42
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
43
|
+
__setModuleDefault(result, mod);
|
|
44
|
+
return result;
|
|
45
|
+
};
|
|
46
|
+
})();
|
|
36
47
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
48
|
var t = {};
|
|
38
49
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
package/ui/div/Div.tsx
CHANGED
package/ui/drop/Action.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
var React = __importStar(require("react"));
|
|
27
37
|
var DropAction = function (_a) {
|
package/ui/drop/Down.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
var React = __importStar(require("react"));
|
|
27
37
|
var DropDown = function (_a) {
|
package/ui/drop/Dropdown.js
CHANGED
|
@@ -16,13 +16,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
16
16
|
}) : function(o, v) {
|
|
17
17
|
o["default"] = v;
|
|
18
18
|
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
26
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
37
|
var react_1 = __importStar(require("react"));
|
|
28
38
|
var Dropdown = function (_a) {
|
package/ui/drop/Dropdown.tsx
CHANGED