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,66 @@
|
|
|
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 = Button;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
var pi_1 = require("react-icons/pi");
|
|
29
|
+
function Button(_a) {
|
|
30
|
+
var color = _a.color, bg = _a.bg, funcss = _a.funcss, startIcon = _a.startIcon, endIcon = _a.endIcon, text = _a.text, rounded = _a.rounded, raised = _a.raised, height = _a.height, width = _a.width, float = _a.float, hoverUp = _a.hoverUp, fullWidth = _a.fullWidth, outlined = _a.outlined, small = _a.small, hoverless = _a.hoverless, smaller = _a.smaller, big = _a.big, bigger = _a.bigger, jumbo = _a.jumbo, flat = _a.flat, hoverNone = _a.hoverNone, fillAnimation = _a.fillAnimation, fillDirection = _a.fillDirection, fillTextColor = _a.fillTextColor, outlineSize = _a.outlineSize, isLoading = _a.isLoading, status = _a.status, children = _a.children, bold = _a.bold, style = _a.style, onClick = _a.onClick, rest = __rest(_a, ["color", "bg", "funcss", "startIcon", "endIcon", "text", "rounded", "raised", "height", "width", "float", "hoverUp", "fullWidth", "outlined", "small", "hoverless", "smaller", "big", "bigger", "jumbo", "flat", "hoverNone", "fillAnimation", "fillDirection", "fillTextColor", "outlineSize", "isLoading", "status", "children", "bold", "style", "onClick"]);
|
|
31
|
+
function removeNumbers(text) {
|
|
32
|
+
return text.replace(/[0-9]/g, '');
|
|
33
|
+
}
|
|
34
|
+
function hasNumberAbove(text) {
|
|
35
|
+
var matches = text.match(/\d+/g); // find all numbers in the string
|
|
36
|
+
if (!matches)
|
|
37
|
+
return false;
|
|
38
|
+
return matches.some(function (num) { return parseInt(num) >= 400; });
|
|
39
|
+
}
|
|
40
|
+
function hasNumber(text) {
|
|
41
|
+
return /\d/.test(text);
|
|
42
|
+
}
|
|
43
|
+
var classNames = [
|
|
44
|
+
'button',
|
|
45
|
+
"text-".concat(color ? color : !hasNumber(bg) && !outlined ? "white" : hasNumberAbove(bg) && !outlined ? "white" : removeNumbers(bg)),
|
|
46
|
+
funcss || '',
|
|
47
|
+
rounded ? 'roundBtn' : '',
|
|
48
|
+
hoverless ? 'hoverless' : '',
|
|
49
|
+
bold ? 'text-bold' : '',
|
|
50
|
+
float ? 'floatBtn' : '',
|
|
51
|
+
raised ? 'raisedBtn' : '',
|
|
52
|
+
hoverUp ? 'hover-up' : '',
|
|
53
|
+
flat ? 'flat' : '',
|
|
54
|
+
hoverNone ? 'hoverNone' : '',
|
|
55
|
+
small ? 'smallBtn' :
|
|
56
|
+
smaller ? 'smallerBtn' : '',
|
|
57
|
+
big ? 'bigBtn' : '',
|
|
58
|
+
bigger ? 'biggerBtn' : '',
|
|
59
|
+
jumbo ? 'jumboBtn' : '',
|
|
60
|
+
outlined ? "outlined outline-".concat(bg || '', " text-").concat(color ? color : removeNumbers(bg)) : bg || '',
|
|
61
|
+
"".concat(fillAnimation ? "".concat(fillTextColor ? "hover-text-".concat(fillTextColor) : '', " button-fill fill-").concat(fillDirection ? fillDirection : 'left') : '')
|
|
62
|
+
].join(' ');
|
|
63
|
+
return ((0, jsx_runtime_1.jsx)("span", { children: (0, jsx_runtime_1.jsxs)("button", __assign({ className: "".concat(classNames, " ").concat(startIcon || endIcon || status || isLoading ? 'iconic' : ''), style: __assign({ height: height || '', width: fullWidth ? '100%' : width || '', borderRadius: flat ? '0rem' : '' }, style), onClick: onClick }, rest, { children: [isLoading &&
|
|
64
|
+
(0, jsx_runtime_1.jsx)("span", { className: 'rotate btn_left_icon', style: { lineHeight: "0" }, children: (0, jsx_runtime_1.jsx)(pi_1.PiSpinner, {}) }), status &&
|
|
65
|
+
(0, jsx_runtime_1.jsxs)("span", { className: ' btn_left_icon', style: { lineHeight: "0" }, children: [status === "success" && (0, jsx_runtime_1.jsx)(pi_1.PiCheck, {}), status === "info" && (0, jsx_runtime_1.jsx)(pi_1.PiInfo, {}), status === "warning" && (0, jsx_runtime_1.jsx)(pi_1.PiWarning, {}), status === "danger" && (0, jsx_runtime_1.jsx)(pi_1.PiX, {})] }), fillAnimation ? (0, jsx_runtime_1.jsx)("span", { className: "button_fill_span ".concat(bg) }) : '', startIcon && (0, jsx_runtime_1.jsx)("span", { className: "btn_left_icon", style: { lineHeight: "0" }, children: startIcon }), text ? text : children, endIcon && (0, jsx_runtime_1.jsx)("span", { className: "btn_right_icon", style: { lineHeight: "0" }, children: endIcon })] })) }));
|
|
66
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface CardProps {
|
|
3
|
+
color?: string;
|
|
4
|
+
bg?: string;
|
|
5
|
+
width?: string;
|
|
6
|
+
height?: string;
|
|
7
|
+
minHeight?: string;
|
|
8
|
+
minWidth?: string;
|
|
9
|
+
margin?: string;
|
|
10
|
+
padding?: string;
|
|
11
|
+
funcss?: string;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
roundEdge?: boolean;
|
|
14
|
+
maxHeight?: string;
|
|
15
|
+
maxWidth?: string;
|
|
16
|
+
horizontal?: boolean;
|
|
17
|
+
flat?: boolean;
|
|
18
|
+
id?: string;
|
|
19
|
+
header?: ReactNode;
|
|
20
|
+
body?: ReactNode;
|
|
21
|
+
footer?: ReactNode;
|
|
22
|
+
image?: ReactNode;
|
|
23
|
+
noGap?: boolean;
|
|
24
|
+
shadowless?: boolean;
|
|
25
|
+
fab?: ReactNode;
|
|
26
|
+
responsiveSmall?: boolean;
|
|
27
|
+
responsiveMedium?: boolean;
|
|
28
|
+
xl?: boolean;
|
|
29
|
+
style?: React.CSSProperties;
|
|
30
|
+
}
|
|
31
|
+
export default function Card({ color, bg, width, height, minHeight, minWidth, margin, padding, funcss, children, roundEdge, maxHeight, maxWidth, horizontal, id, header, body, footer, noGap, fab, image, shadowless, flat, responsiveMedium, xl, responsiveSmall, style, ...rest }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = Card;
|
|
30
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
+
var CardHeader_1 = __importDefault(require("./CardHeader"));
|
|
32
|
+
var CardBody_1 = __importDefault(require("./CardBody"));
|
|
33
|
+
var CardFooter_1 = __importDefault(require("./CardFooter"));
|
|
34
|
+
function Card(_a) {
|
|
35
|
+
var color = _a.color, bg = _a.bg, width = _a.width, height = _a.height, minHeight = _a.minHeight, minWidth = _a.minWidth, margin = _a.margin, padding = _a.padding, funcss = _a.funcss, children = _a.children, roundEdge = _a.roundEdge, maxHeight = _a.maxHeight, maxWidth = _a.maxWidth, horizontal = _a.horizontal, id = _a.id, header = _a.header, body = _a.body, footer = _a.footer, noGap = _a.noGap, fab = _a.fab, image = _a.image, shadowless = _a.shadowless, flat = _a.flat, responsiveMedium = _a.responsiveMedium, xl = _a.xl, responsiveSmall = _a.responsiveSmall, style = _a.style, rest = __rest(_a, ["color", "bg", "width", "height", "minHeight", "minWidth", "margin", "padding", "funcss", "children", "roundEdge", "maxHeight", "maxWidth", "horizontal", "id", "header", "body", "footer", "noGap", "fab", "image", "shadowless", "flat", "responsiveMedium", "xl", "responsiveSmall", "style"]);
|
|
36
|
+
return ((0, jsx_runtime_1.jsxs)("div", __assign({ id: id || '', className: "\n card \n card_flex\n ".concat(noGap ? 'no-gap' : '', " \n ").concat(xl ? 'xl' : '', " \n text-").concat(color || '', " \n ").concat(bg || '', " \n ").concat(funcss || '', " \n ").concat(roundEdge ? 'round-edge' : '', " \n ").concat(shadowless ? 'shadowless' : '', " \n ").concat(flat ? 'flat' : '', " \n ").concat(horizontal ? 'horizontalCard' : '', "\n ").concat(responsiveMedium ? 'responsiveMedium' : '', "\n ").concat(responsiveSmall ? 'responsiveSmall' : '', "\n \n "), style: __assign({ width: "".concat(width || ''), height: "".concat(height || ''), minHeight: "".concat(minHeight || ''), minWidth: "".concat(minWidth || ''), maxHeight: maxHeight || '', maxWidth: maxWidth || '', margin: "".concat(margin || ''), padding: "".concat(padding || '') }, style) }, rest, { children: [image ? (0, jsx_runtime_1.jsxs)("div", { className: "".concat(fab ? 'relative' : ''), children: [image, " ", fab ? fab : ''] }) : '', header && !horizontal ? (0, jsx_runtime_1.jsx)(CardHeader_1.default, { children: header }) : '', body ?
|
|
37
|
+
(0, jsx_runtime_1.jsxs)("div", { children: [horizontal ? (0, jsx_runtime_1.jsx)(CardHeader_1.default, { children: header }) : '', (0, jsx_runtime_1.jsxs)(CardBody_1.default, { children: [" ", body, " "] }), horizontal ? (0, jsx_runtime_1.jsx)(CardFooter_1.default, { children: footer }) : ''] })
|
|
38
|
+
: '', footer && !horizontal ? (0, jsx_runtime_1.jsx)(CardFooter_1.default, { children: footer }) : '', children] })));
|
|
39
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode, HTMLProps } from 'react';
|
|
2
|
+
interface CardBodyProps extends HTMLProps<HTMLDivElement> {
|
|
3
|
+
funcss?: string;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export default function CardBody({ funcss, children, ...rest }: CardBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -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
|
+
exports.default = CardBody;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
function CardBody(_a) {
|
|
28
|
+
var funcss = _a.funcss, children = _a.children, rest = __rest(_a, ["funcss", "children"]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "card-body ".concat(funcss || '') }, rest, { children: children })));
|
|
30
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode, HTMLProps } from 'react';
|
|
2
|
+
interface CardFabProps extends HTMLProps<HTMLDivElement> {
|
|
3
|
+
funcss?: string;
|
|
4
|
+
position?: string;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export default function CardFab({ funcss, position, children, ...rest }: CardFabProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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 = CardFab;
|
|
27
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
+
function CardFab(_a) {
|
|
29
|
+
var funcss = _a.funcss, position = _a.position, children = _a.children, rest = __rest(_a, ["funcss", "position", "children"]);
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "card-fab ".concat(funcss || '', " ").concat(position || '') }, rest, { children: children })));
|
|
31
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode, HTMLProps } from 'react';
|
|
2
|
+
interface CardFooterProps extends HTMLProps<HTMLDivElement> {
|
|
3
|
+
funcss?: string;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export default function CardFooter({ funcss, children, ...rest }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -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
|
+
exports.default = CardFooter;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
function CardFooter(_a) {
|
|
28
|
+
var funcss = _a.funcss, children = _a.children, rest = __rest(_a, ["funcss", "children"]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "card-footer ".concat(funcss || '') }, rest, { children: children })));
|
|
30
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode, HTMLProps } from 'react';
|
|
2
|
+
interface CardHeaderProps extends HTMLProps<HTMLDivElement> {
|
|
3
|
+
funcss?: string;
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export default function CardHeader({ funcss, children, ...rest }: CardHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -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
|
+
exports.default = CardHeader;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
function CardHeader(_a) {
|
|
28
|
+
var funcss = _a.funcss, children = _a.children, rest = __rest(_a, ["funcss", "children"]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ className: "card-header ".concat(funcss || '') }, rest, { children: children })));
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties, HTMLProps } from 'react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface ContainerProps extends HTMLProps<HTMLDivElement> {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
funcss?: string;
|
|
6
|
+
margin?: string;
|
|
7
|
+
padding?: string;
|
|
8
|
+
customStyle?: CSSProperties;
|
|
9
|
+
}
|
|
10
|
+
declare const Container: React.FC<ContainerProps>;
|
|
11
|
+
export default Container;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
var Container = function (_a) {
|
|
28
|
+
var children = _a.children, funcss = _a.funcss, margin = _a.margin, padding = _a.padding, customStyle = _a.customStyle, id = _a.id, rest = __rest(_a, ["children", "funcss", "margin", "padding", "customStyle", "id"]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ id: id, className: "container ".concat(funcss), style: __assign({ margin: margin || "", padding: padding || "" }, customStyle) }, rest, { children: children })));
|
|
30
|
+
};
|
|
31
|
+
exports.default = Container;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type DivProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
funcss?: string;
|
|
5
|
+
content?: React.ReactNode;
|
|
6
|
+
minHeight?: string;
|
|
7
|
+
maxHeight?: string;
|
|
8
|
+
maxWidth?: string;
|
|
9
|
+
minWidth?: string;
|
|
10
|
+
height?: string;
|
|
11
|
+
width?: string;
|
|
12
|
+
padding?: string;
|
|
13
|
+
margin?: string;
|
|
14
|
+
fit?: boolean;
|
|
15
|
+
customStyle?: React.CSSProperties;
|
|
16
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
17
|
+
};
|
|
18
|
+
declare const Div: ({ children, funcss, content, minHeight, maxHeight, maxWidth, minWidth, height, width, padding, margin, fit, customStyle, ...rest }: DivProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default Div;
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
var Div = function (_a) {
|
|
28
|
+
var children = _a.children, funcss = _a.funcss, content = _a.content, minHeight = _a.minHeight, maxHeight = _a.maxHeight, maxWidth = _a.maxWidth, minWidth = _a.minWidth, height = _a.height, width = _a.width, padding = _a.padding, margin = _a.margin, fit = _a.fit, customStyle = _a.customStyle, rest = __rest(_a, ["children", "funcss", "content", "minHeight", "maxHeight", "maxWidth", "minWidth", "height", "width", "padding", "margin", "fit", "customStyle"]);
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", __assign({ className: "".concat(fit ? 'width-100-p height-100-p' : '', " ").concat(funcss), style: __assign({ height: height || '', maxHeight: maxHeight || '', minHeight: minHeight || '', maxWidth: maxWidth || '', minWidth: minWidth || '', width: width || '', padding: padding || '', margin: margin || '' }, customStyle) }, rest, { children: content || children })) }));
|
|
30
|
+
};
|
|
31
|
+
exports.default = Div;
|
|
@@ -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 DropAction = function (_a) {
|
|
5
|
+
var children = _a.children, funcss = _a.funcss;
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "drop-button ".concat(funcss), children: children }));
|
|
7
|
+
};
|
|
8
|
+
exports.default = DropAction;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type DropDownProps = {
|
|
3
|
+
funcss?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
id?: string;
|
|
6
|
+
side?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const DropDown: ({ funcss, children, id, side, }: DropDownProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default DropDown;
|
|
@@ -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 DropDown = function (_a) {
|
|
5
|
+
var funcss = _a.funcss, children = _a.children, id = _a.id, side = _a.side;
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "dropdown ".concat(side ? side : 'left', " ").concat(funcss), id: id, children: children }));
|
|
7
|
+
};
|
|
8
|
+
exports.default = DropDown;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Position = 'left' | 'right';
|
|
3
|
+
type Direction = 'dropdown' | 'dropup';
|
|
4
|
+
interface DropdownItem {
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
interface DropdownProps {
|
|
9
|
+
direction?: Direction;
|
|
10
|
+
position?: Position;
|
|
11
|
+
button: React.ReactNode;
|
|
12
|
+
items: DropdownItem[];
|
|
13
|
+
hoverable?: boolean;
|
|
14
|
+
openOnHover?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const Dropdown: React.FC<DropdownProps>;
|
|
18
|
+
export default Dropdown;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 Dropdown = function (_a) {
|
|
7
|
+
var _b = _a.direction, direction = _b === void 0 ? 'dropdown' : _b, _c = _a.position, position = _c === void 0 ? 'left' : _c, button = _a.button, items = _a.items, _d = _a.hoverable, hoverable = _d === void 0 ? true : _d, _e = _a.openOnHover, openOnHover = _e === void 0 ? true : _e, _f = _a.className, className = _f === void 0 ? '' : _f;
|
|
8
|
+
var containerRef = (0, react_1.useRef)(null);
|
|
9
|
+
var _g = (0, react_1.useState)(false), open = _g[0], setOpen = _g[1];
|
|
10
|
+
var containerClass = "".concat(direction, " ").concat(position, " ").concat(className).trim();
|
|
11
|
+
var menuClass = "drop-menu".concat(hoverable ? ' item-hoverable' : '');
|
|
12
|
+
(0, react_1.useEffect)(function () {
|
|
13
|
+
if (openOnHover)
|
|
14
|
+
return;
|
|
15
|
+
var handleClickOutside = function (event) {
|
|
16
|
+
if (containerRef.current && !containerRef.current.contains(event.target)) {
|
|
17
|
+
setOpen(false);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
21
|
+
return function () { return document.removeEventListener('mousedown', handleClickOutside); };
|
|
22
|
+
}, [openOnHover]);
|
|
23
|
+
var showMenu = openOnHover || open;
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ref: containerRef, className: containerClass, onMouseEnter: function () { return openOnHover && setOpen(true); }, onMouseLeave: function () { return openOnHover && setOpen(false); }, children: [(0, jsx_runtime_1.jsx)("div", { className: "drop-button", onClick: function () { return !openOnHover && setOpen(!open); }, style: { cursor: !openOnHover ? 'pointer' : undefined }, children: button }), (0, jsx_runtime_1.jsx)("div", { className: menuClass, style: { display: showMenu ? 'block' : 'none' }, children: items.map(function (item, index) { return ((0, jsx_runtime_1.jsx)("div", { className: "drop-item", onClick: function () {
|
|
25
|
+
var _a;
|
|
26
|
+
(_a = item.onClick) === null || _a === void 0 ? void 0 : _a.call(item);
|
|
27
|
+
if (!openOnHover)
|
|
28
|
+
setOpen(false);
|
|
29
|
+
}, children: item.label }, index)); }) })] }));
|
|
30
|
+
};
|
|
31
|
+
exports.default = Dropdown;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type DropItemProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
funcss?: string;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export default function DropItem({ children, funcss, onClick }: DropItemProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = DropItem;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function DropItem(_a) {
|
|
6
|
+
var children = _a.children, funcss = _a.funcss, onClick = _a.onClick;
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "".concat(funcss, " drop-item"), onClick: onClick, children: children }));
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type DropMenuProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
funcss?: string;
|
|
5
|
+
hoverable?: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
animation?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
width?: string;
|
|
10
|
+
};
|
|
11
|
+
export default function DropMenu({ children, funcss, hoverable, duration, animation, id, width, }: DropMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = DropMenu;
|
|
4
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
function DropMenu(_a) {
|
|
6
|
+
var children = _a.children, funcss = _a.funcss, hoverable = _a.hoverable, duration = _a.duration, animation = _a.animation, id = _a.id, width = _a.width;
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)("div", { id: id, className: "drop-menu ".concat(funcss, " item-").concat(hoverable ? hoverable : ''), style: {
|
|
8
|
+
animation: " ".concat(duration ? duration : 0.2, "s ").concat(animation ? animation : 'ScaleUp'),
|
|
9
|
+
width: width ? width : '100%',
|
|
10
|
+
}, children: children }) }));
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
type DropUpProps = {
|
|
3
|
+
funcss?: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
id?: string;
|
|
6
|
+
side?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const DropUp: ({ funcss, children, id, side, }: DropUpProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default DropUp;
|
|
@@ -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 DropUp = function (_a) {
|
|
5
|
+
var funcss = _a.funcss, children = _a.children, id = _a.id, side = _a.side;
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "dropup ".concat(side ? side : 'left', " ").concat(funcss), id: id, children: children }));
|
|
7
|
+
};
|
|
8
|
+
exports.default = DropUp;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode, HTMLProps } from 'react';
|
|
2
|
+
interface ColProps extends HTMLProps<HTMLDivElement> {
|
|
3
|
+
sm?: number;
|
|
4
|
+
md?: number;
|
|
5
|
+
lg?: number;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
funcss?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
smOrder?: number;
|
|
10
|
+
mdOrder?: number;
|
|
11
|
+
lgOrder?: number;
|
|
12
|
+
}
|
|
13
|
+
export default function Col({ sm, md, lg, children, funcss, id, smOrder, mdOrder, lgOrder, ...rest }: ColProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
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 = Col;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
function Col(_a) {
|
|
28
|
+
var sm = _a.sm, md = _a.md, lg = _a.lg, children = _a.children, funcss = _a.funcss, id = _a.id, smOrder = _a.smOrder, mdOrder = _a.mdOrder, lgOrder = _a.lgOrder, rest = __rest(_a, ["sm", "md", "lg", "children", "funcss", "id", "smOrder", "mdOrder", "lgOrder"]);
|
|
29
|
+
var classNames = [
|
|
30
|
+
'col',
|
|
31
|
+
sm ? "sm-".concat(sm) : '',
|
|
32
|
+
md ? "md-".concat(md) : '',
|
|
33
|
+
lg ? "lg-".concat(lg) : '',
|
|
34
|
+
smOrder ? "sm-order-".concat(smOrder) : '',
|
|
35
|
+
mdOrder ? "md-order-".concat(mdOrder) : '',
|
|
36
|
+
lgOrder ? "lg-order-".concat(lgOrder) : '',
|
|
37
|
+
funcss || '',
|
|
38
|
+
].join(' ');
|
|
39
|
+
return ((0, jsx_runtime_1.jsx)("div", __assign({ id: id || '', className: classNames }, rest, { children: children })));
|
|
40
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode, CSSProperties, HTMLProps } from 'react';
|
|
2
|
+
interface GridProps extends HTMLProps<HTMLDivElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
funcss?: string;
|
|
5
|
+
gap?: number;
|
|
6
|
+
justify?: CSSProperties['justifyContent'];
|
|
7
|
+
align?: CSSProperties['alignItems'];
|
|
8
|
+
id?: string;
|
|
9
|
+
direction?: CSSProperties['flexDirection'];
|
|
10
|
+
}
|
|
11
|
+
export default function Grid({ children, funcss, justify, align, id, direction, ...rest }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|