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
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = NotificationHeader;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function NotificationHeader(_a) {
|
|
6
|
+
var funcss = _a.funcss, children = _a.children;
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "notificationHeader ".concat(funcss ? funcss : ''), children: children }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type NotificationProps = {
|
|
3
|
+
position: string;
|
|
4
|
+
funcss?: string;
|
|
5
|
+
animation?: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
state: boolean;
|
|
9
|
+
width?: string;
|
|
10
|
+
header?: React.ReactNode;
|
|
11
|
+
content?: React.ReactNode;
|
|
12
|
+
footer?: React.ReactNode;
|
|
13
|
+
};
|
|
14
|
+
export default function Notification({ position, funcss, animation, duration, children, state, width, header, content, footer }: NotificationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = Notification;
|
|
8
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
+
var Header_1 = __importDefault(require("./Header"));
|
|
10
|
+
var Content_1 = __importDefault(require("./Content"));
|
|
11
|
+
var Footer_1 = __importDefault(require("./Footer"));
|
|
12
|
+
function Notification(_a) {
|
|
13
|
+
var position = _a.position, funcss = _a.funcss, animation = _a.animation, duration = _a.duration, children = _a.children, state = _a.state, width = _a.width, header = _a.header, content = _a.content, footer = _a.footer;
|
|
14
|
+
if (state) {
|
|
15
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "notification ".concat(position, " ").concat(funcss), style: { animation: " ".concat(duration ? duration : 0.2, "s ").concat(animation), width: width ? width : '450px' }, children: [header &&
|
|
16
|
+
(0, jsx_runtime_1.jsx)(Header_1.default, { children: header }), content &&
|
|
17
|
+
(0, jsx_runtime_1.jsx)(Content_1.default, { children: content }), footer &&
|
|
18
|
+
(0, jsx_runtime_1.jsx)(Footer_1.default, { children: footer }), children] }));
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface NotFoundProps {
|
|
3
|
+
header?: React.ReactNode;
|
|
4
|
+
code?: number;
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
action?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export default function NotFound({ header, code, content, action }: NotFoundProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
+
};
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.default = NotFound;
|
|
8
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
9
|
+
var Button_1 = __importDefault(require("../button/Button"));
|
|
10
|
+
var pi_1 = require("react-icons/pi");
|
|
11
|
+
var Text_1 = __importDefault(require("../text/Text"));
|
|
12
|
+
function NotFound(_a) {
|
|
13
|
+
var header = _a.header, code = _a.code, content = _a.content, action = _a.action;
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", { className: "central", style: { minHeight: "100vh", width: "100%", padding: "4rem 0px" }, children: (0, jsx_runtime_1.jsxs)("div", { className: "text-center width-600-max", children: [code ?
|
|
15
|
+
code :
|
|
16
|
+
(0, jsx_runtime_1.jsx)("div", { className: "h2 text-warning round-edge", children: "404" }), (0, jsx_runtime_1.jsx)("div", { style: { margin: "1.4rem 0px" }, children: header ? header
|
|
17
|
+
:
|
|
18
|
+
(0, jsx_runtime_1.jsx)("div", { className: "text-big text-bold text-dark300", style: { display: "block", transition: "all 0.2s linear 0s" }, children: "Page Not Found" }) }), content ? content :
|
|
19
|
+
(0, jsx_runtime_1.jsx)("div", { className: "article", children: (0, jsx_runtime_1.jsx)(Text_1.default, { article: true, text: "Sorry, we couldn't find the page you're looking for.", color: "dark300", block: true }) }), (0, jsx_runtime_1.jsx)("div", { style: { margin: "2rem 0px" }, children: action ? action :
|
|
20
|
+
(0, jsx_runtime_1.jsx)("div", { className: "row-flex gap", style: { justifyContent: "center", gap: "0.4rem" }, children: (0, jsx_runtime_1.jsx)(Button_1.default, { raised: true, rounded: true, startIcon: (0, jsx_runtime_1.jsx)(pi_1.PiArrowLeft, {}), bg: 'primary', onClick: function () {
|
|
21
|
+
window.history.back();
|
|
22
|
+
}, children: "Go Back" }) }) })] }) }) }) }));
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface UnAuthorizedProps {
|
|
3
|
+
header?: React.ReactNode;
|
|
4
|
+
code?: number;
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
action?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export default function UnAuthorized({ header, code, content, action }: UnAuthorizedProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = UnAuthorized;
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var Button_1 = __importDefault(require("../button/Button"));
|
|
9
|
+
var pi_1 = require("react-icons/pi");
|
|
10
|
+
function UnAuthorized(_a) {
|
|
11
|
+
var header = _a.header, code = _a.code, content = _a.content, action = _a.action;
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", { className: "central", style: { minHeight: "100vh", width: "100%", padding: "4rem 0px" }, children: (0, jsx_runtime_1.jsxs)("div", { className: "text-center width-600-max", children: [code ?
|
|
13
|
+
code :
|
|
14
|
+
(0, jsx_runtime_1.jsx)("div", { className: "h2 text-warning round-edge", children: "401" }), (0, jsx_runtime_1.jsx)("div", { style: { margin: "1.4rem 0px" }, children: header ? header
|
|
15
|
+
:
|
|
16
|
+
(0, jsx_runtime_1.jsx)("div", { className: "text-bigger text-bold text-dark300", style: { display: "block", transition: "all 0.2s linear 0s" }, children: "Unauthorized Access" }) }), content ? content :
|
|
17
|
+
(0, jsx_runtime_1.jsx)("div", { className: "article", children: "Sorry! You do not have access to this resource." }), (0, jsx_runtime_1.jsx)("div", { style: { margin: "2rem 0px" }, children: action ? action :
|
|
18
|
+
(0, jsx_runtime_1.jsx)("div", { className: "row-flex gap", style: { justifyContent: "center", gap: "0.4rem" }, children: (0, jsx_runtime_1.jsx)(Button_1.default, { raised: true, rounded: true, startIcon: (0, jsx_runtime_1.jsx)(pi_1.PiArrowLeft, {}), bg: 'primary', onClick: function () {
|
|
19
|
+
window.history.back();
|
|
20
|
+
}, children: "Go Back" }) }) })] }) }) }) }));
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ProgressBarProps {
|
|
3
|
+
funcss?: string;
|
|
4
|
+
progress: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
content?: ((progress: number) => React.ReactNode) | React.ReactNode;
|
|
8
|
+
bg?: string;
|
|
9
|
+
raised?: boolean;
|
|
10
|
+
rounded?: boolean;
|
|
11
|
+
type?: 'linear' | 'circle';
|
|
12
|
+
size?: number;
|
|
13
|
+
strokeWidth?: number;
|
|
14
|
+
}
|
|
15
|
+
export default function ProgressBar({ funcss, progress, height, children, content, raised, rounded, bg, // default CSS class name
|
|
16
|
+
type, size, strokeWidth, }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
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
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.default = ProgressBar;
|
|
38
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
+
var React = __importStar(require("react"));
|
|
40
|
+
var pi_1 = require("react-icons/pi");
|
|
41
|
+
function ProgressBar(_a) {
|
|
42
|
+
var funcss = _a.funcss, progress = _a.progress, _b = _a.height, height = _b === void 0 ? 16 : _b, children = _a.children, content = _a.content, raised = _a.raised, rounded = _a.rounded, _c = _a.bg, bg = _c === void 0 ? 'primary' : _c, // default CSS class name
|
|
43
|
+
_d = _a.type, // default CSS class name
|
|
44
|
+
type = _d === void 0 ? 'linear' : _d, _e = _a.size, size = _e === void 0 ? 60 : _e, _f = _a.strokeWidth, strokeWidth = _f === void 0 ? 6 : _f;
|
|
45
|
+
var clampedProgress = Math.min(100, Math.max(0, progress));
|
|
46
|
+
var isComplete = clampedProgress >= 100;
|
|
47
|
+
var effectiveBg = isComplete ? 'success' : bg;
|
|
48
|
+
var renderContent = function () {
|
|
49
|
+
if (React.isValidElement(content))
|
|
50
|
+
return content;
|
|
51
|
+
if (typeof content === 'function')
|
|
52
|
+
return content(clampedProgress);
|
|
53
|
+
if (typeof content === 'string')
|
|
54
|
+
return content;
|
|
55
|
+
return "".concat(clampedProgress, "%");
|
|
56
|
+
};
|
|
57
|
+
if (type === 'circle') {
|
|
58
|
+
var radius = (size - strokeWidth) / 2;
|
|
59
|
+
var circumference = 2 * Math.PI * radius;
|
|
60
|
+
var offset = circumference - (clampedProgress / 100) * circumference;
|
|
61
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "relative flex justify-center items-center ".concat(funcss), style: { width: size, height: size }, children: [(0, jsx_runtime_1.jsxs)("svg", { width: size, height: size, className: "rotate-[-90deg]", children: [(0, jsx_runtime_1.jsx)("circle", { cx: size / 2, cy: size / 2, r: radius, strokeWidth: strokeWidth, fill: "none", stroke: "#e5e7eb" // light gray background stroke
|
|
62
|
+
}), (0, jsx_runtime_1.jsx)("circle", { cx: size / 2, cy: size / 2, r: radius, strokeWidth: strokeWidth, fill: "none", className: effectiveBg, strokeDasharray: circumference, strokeDashoffset: offset, strokeLinecap: "round", style: { transition: 'stroke-dashoffset 0.4s ease, stroke 0.3s ease' } })] }), (0, jsx_runtime_1.jsx)("div", { className: "absolute text-center font-bold text-sm", style: {
|
|
63
|
+
top: '50%',
|
|
64
|
+
left: '50%',
|
|
65
|
+
transform: 'translate(-50%, -50%)',
|
|
66
|
+
display: 'flex',
|
|
67
|
+
alignItems: 'center',
|
|
68
|
+
justifyContent: 'center',
|
|
69
|
+
width: size,
|
|
70
|
+
height: size,
|
|
71
|
+
}, children: isComplete ? (0, jsx_runtime_1.jsx)(pi_1.PiCheck, { className: "text-success800", size: size / 2.2 }) : renderContent() })] }));
|
|
72
|
+
}
|
|
73
|
+
// Linear bar
|
|
74
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "progressBar ".concat(raised ? 'raised' : '', " ").concat(rounded ? 'rounded' : '', " ").concat(funcss || ''), children: (0, jsx_runtime_1.jsxs)("div", { className: "progressInner ".concat(rounded ? 'rounded' : '', " ").concat(effectiveBg), style: {
|
|
75
|
+
width: "".concat(clampedProgress, "%"),
|
|
76
|
+
height: "".concat(height, "px"),
|
|
77
|
+
padding: '0 1rem',
|
|
78
|
+
transition: 'width 0.3s ease, background-color 0.3s ease',
|
|
79
|
+
display: 'flex',
|
|
80
|
+
alignItems: 'center',
|
|
81
|
+
justifyContent: 'flex-end',
|
|
82
|
+
fontWeight: 'bold',
|
|
83
|
+
color: '#fff',
|
|
84
|
+
overflow: 'hidden',
|
|
85
|
+
whiteSpace: 'nowrap',
|
|
86
|
+
}, children: [isComplete ? (0, jsx_runtime_1.jsx)(pi_1.PiCheck, {}) : renderContent(), " ", children] }) }));
|
|
87
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface FunLoaderProps {
|
|
3
|
+
funcss?: string;
|
|
4
|
+
position?: "left" | "right";
|
|
5
|
+
glassy?: boolean;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
header?: ReactNode;
|
|
8
|
+
content?: ReactNode;
|
|
9
|
+
close?: ReactNode;
|
|
10
|
+
footer?: ReactNode;
|
|
11
|
+
fixed?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export default function SideBar({ funcss, position, glassy, header, open, content, close, footer, fixed, ...rest }: FunLoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.default = SideBar;
|
|
29
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
30
|
+
var RowFlex_1 = __importDefault(require("../specials/RowFlex"));
|
|
31
|
+
function SideBar(_a) {
|
|
32
|
+
var funcss = _a.funcss, position = _a.position, glassy = _a.glassy, header = _a.header, open = _a.open, content = _a.content, close = _a.close, footer = _a.footer, fixed = _a.fixed, rest = __rest(_a, ["funcss", "position", "glassy", "header", "open", "content", "close", "footer", "fixed"]);
|
|
33
|
+
if (open) {
|
|
34
|
+
return ((0, jsx_runtime_1.jsx)("aside", __assign({ className: "fun_side_bar_wrapper ".concat(fixed ? "fixed_sidebar" : "", " ").concat(glassy ? "glassy" : "") }, rest, { children: (0, jsx_runtime_1.jsxs)("div", { className: "\n fun_sidebar_content ".concat(funcss || "", " ").concat(position || "", " \n "), children: [(0, jsx_runtime_1.jsxs)(RowFlex_1.default, { justify: 'space-between', children: [header &&
|
|
35
|
+
(0, jsx_runtime_1.jsxs)("div", { className: "col fit", children: [" ", header, " "] }), close && (0, jsx_runtime_1.jsxs)("div", { className: "close_sidebar", children: [close, " "] })] }), content &&
|
|
36
|
+
(0, jsx_runtime_1.jsx)("div", { children: content }), footer &&
|
|
37
|
+
(0, jsx_runtime_1.jsx)("div", { children: footer })] }) })));
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = SideContent;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function SideContent(_a) {
|
|
6
|
+
var content = _a.content;
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("main", { className: "fun_main_content", children: content && (0, jsx_runtime_1.jsx)("div", { children: content }) }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface SnackbarProps {
|
|
3
|
+
message: string;
|
|
4
|
+
close?: React.ReactNode;
|
|
5
|
+
open: boolean;
|
|
6
|
+
setOpen: (val: boolean) => void;
|
|
7
|
+
position: string;
|
|
8
|
+
funcss?: string;
|
|
9
|
+
animation?: string;
|
|
10
|
+
duration?: number;
|
|
11
|
+
autoHide?: boolean;
|
|
12
|
+
autoHideDuration?: number;
|
|
13
|
+
flat?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const SnackBar: React.FC<SnackbarProps>;
|
|
16
|
+
export default SnackBar;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
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
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
38
|
+
var React = __importStar(require("react"));
|
|
39
|
+
var SnackBar = function (_a) {
|
|
40
|
+
var message = _a.message, close = _a.close, open = _a.open, setOpen = _a.setOpen, position = _a.position, funcss = _a.funcss, animation = _a.animation, _b = _a.duration, duration = _b === void 0 ? 0.3 : _b, _c = _a.autoHide, autoHide = _c === void 0 ? false : _c, _d = _a.autoHideDuration, autoHideDuration = _d === void 0 ? 3000 : _d, flat = _a.flat;
|
|
41
|
+
React.useEffect(function () {
|
|
42
|
+
if (open && autoHide) {
|
|
43
|
+
var timer_1 = setTimeout(function () {
|
|
44
|
+
setOpen(false);
|
|
45
|
+
}, autoHideDuration);
|
|
46
|
+
return function () { return clearTimeout(timer_1); };
|
|
47
|
+
}
|
|
48
|
+
}, [open, autoHide, autoHideDuration, setOpen]);
|
|
49
|
+
if (!open)
|
|
50
|
+
return null;
|
|
51
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "snackbar ".concat(position, " ").concat(funcss || '', " ").concat(flat ? 'flat' : ''), style: { animation: "".concat(duration, "s ").concat(animation || 'SlideUp') }, children: (0, jsx_runtime_1.jsxs)("div", { className: "snackbar-content", children: [(0, jsx_runtime_1.jsx)("div", { className: "snackbar-body", children: message }), close && ((0, jsx_runtime_1.jsx)("div", { className: "close-snackbar pointer", onClick: function () { return setOpen ? setOpen(false) : null; }, children: close }))] }) }));
|
|
52
|
+
};
|
|
53
|
+
exports.default = SnackBar;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, HTMLProps } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface Circle_Props extends HTMLProps<HTMLDivElement> {
|
|
4
|
+
size?: number;
|
|
5
|
+
funcss?: string;
|
|
6
|
+
bg?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
hoverable?: boolean;
|
|
10
|
+
raised?: boolean;
|
|
11
|
+
key?: React.Key;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
}
|
|
14
|
+
export default function Circle({ size, funcss, bg, color, children, hoverable, raised, key, onClick, ...rest }: Circle_Props): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
var __assign = (this && this.__assign) || function () {
|
|
4
|
+
__assign = Object.assign || function(t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
8
|
+
t[p] = s[p];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
return __assign.apply(this, arguments);
|
|
13
|
+
};
|
|
14
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
15
|
+
var t = {};
|
|
16
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
17
|
+
t[p] = s[p];
|
|
18
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
19
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
20
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
21
|
+
t[p[i]] = s[p[i]];
|
|
22
|
+
}
|
|
23
|
+
return t;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.default = Circle;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
function Circle(_a) {
|
|
29
|
+
var _b = _a.size, size = _b === void 0 ? 2 : _b, funcss = _a.funcss, bg = _a.bg, color = _a.color, children = _a.children, hoverable = _a.hoverable, raised = _a.raised, key = _a.key, onClick = _a.onClick, rest = __rest(_a, ["size", "funcss", "bg", "color", "children", "hoverable", "raised", "key", "onClick"]);
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "pointer avatar ".concat(funcss || '', " ").concat("text-" + (color === null || color === void 0 ? void 0 : color.trim()) || '', " ").concat(raised ? "raised" : '', " ").concat(bg || '', " ").concat(hoverable ? 'hoverable' : ''), style: {
|
|
31
|
+
width: "".concat(size + "rem" || '2.3rem'),
|
|
32
|
+
height: "".concat(size + "rem" || '2.3rem'),
|
|
33
|
+
}, onClick: onClick }, rest, { children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: children }) }), key));
|
|
34
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type HrProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
funcss?: string;
|
|
5
|
+
style?: object;
|
|
6
|
+
};
|
|
7
|
+
declare const FullCenteredPage: ({ children, funcss, style, ...rest }: HrProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default FullCenteredPage;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 FullCenteredPage = function (_a) {
|
|
27
|
+
var children = _a.children, funcss = _a.funcss, style = _a.style, rest = __rest(_a, ["children", "funcss", "style"]);
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "flex central ".concat(funcss), style: __assign({ minHeight: "100vh", minWidth: "100%", maxWidth: "100%", overflow: "auto" }, style) }, rest, { children: children })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = FullCenteredPage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var Hr = function (_a) {
|
|
5
|
+
var children = _a.children, funcss = _a.funcss;
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "hr ".concat(funcss), children: children }));
|
|
7
|
+
};
|
|
8
|
+
exports.default = Hr;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface RowFlexProps {
|
|
3
|
+
funcss?: string;
|
|
4
|
+
content?: React.ReactNode;
|
|
5
|
+
justify?: string;
|
|
6
|
+
gap?: number;
|
|
7
|
+
alignItems?: string;
|
|
8
|
+
responsiveSmall?: boolean;
|
|
9
|
+
responsiveMedium?: boolean;
|
|
10
|
+
id?: string;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export default function RowFlex({ funcss, content, justify, gap, alignItems, responsiveSmall, responsiveMedium, id, children, ...rest }: RowFlexProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
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 = RowFlex;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
function RowFlex(_a) {
|
|
28
|
+
var funcss = _a.funcss, content = _a.content, justify = _a.justify, gap = _a.gap, alignItems = _a.alignItems, responsiveSmall = _a.responsiveSmall, responsiveMedium = _a.responsiveMedium, id = _a.id, children = _a.children, rest = __rest(_a, ["funcss", "content", "justify", "gap", "alignItems", "responsiveSmall", "responsiveMedium", "id", "children"]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ id: id ? id : '', className: "\n row-flex ".concat(funcss ? funcss : '', "\n ").concat(responsiveSmall ? 'responsiveSmall' : responsiveMedium ? 'responsiveMedium' : '', "\n "), style: {
|
|
30
|
+
justifyContent: justify ? justify : '',
|
|
31
|
+
gap: gap ? gap + "rem" : '',
|
|
32
|
+
alignItems: alignItems ? alignItems : '',
|
|
33
|
+
} }, rest, { children: [children, " ", content] })));
|
|
34
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type SectionProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
funcss?: string;
|
|
5
|
+
gap?: number;
|
|
6
|
+
};
|
|
7
|
+
declare const Section: ({ children, funcss, gap, ...rest }: SectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Section;
|
|
@@ -0,0 +1,30 @@
|
|
|
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 Section = function (_a) {
|
|
27
|
+
var children = _a.children, funcss = _a.funcss, gap = _a.gap, rest = __rest(_a, ["children", "funcss", "gap"]);
|
|
28
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "".concat(funcss), style: { marginTop: gap ? gap + "rem" : "0.5rem", marginBottom: gap ? gap + "rem" : "0.5rem" } }, rest, { children: children })));
|
|
29
|
+
};
|
|
30
|
+
exports.default = Section;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface StepContainerProps {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
funcss?: string;
|
|
5
|
+
responsiveMedium?: boolean;
|
|
6
|
+
responsiveSmall?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const StepContainer: React.FC<StepContainerProps>;
|
|
9
|
+
export default StepContainer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var StepContainer = function (_a) {
|
|
5
|
+
var children = _a.children, funcss = _a.funcss, responsiveMedium = _a.responsiveMedium, responsiveSmall = _a.responsiveSmall;
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "".concat(funcss ? funcss : '', " stepContainer ").concat(responsiveMedium ? 'stepResponsiveMedium' : responsiveSmall ? 'stepResponsiveSmall' : ''), children: children }));
|
|
7
|
+
};
|
|
8
|
+
exports.default = StepContainer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
+
var StepTitle = function (_a) {
|
|
5
|
+
var children = _a.children, funcss = _a.funcss;
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "stepHeader ".concat(funcss ? funcss : ''), children: children }));
|
|
7
|
+
};
|
|
8
|
+
exports.default = StepTitle;
|