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/table/Head.js
CHANGED
|
@@ -15,17 +15,27 @@ 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 });
|
|
36
|
+
exports.default = TableHead;
|
|
26
37
|
var React = __importStar(require("react"));
|
|
27
38
|
function TableHead(_a) {
|
|
28
39
|
var children = _a.children, funcss = _a.funcss;
|
|
29
40
|
return React.createElement("thead", { className: "".concat(funcss ? funcss : '') }, children);
|
|
30
41
|
}
|
|
31
|
-
exports.default = TableHead;
|
package/ui/table/Row.js
CHANGED
|
@@ -15,17 +15,27 @@ 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 });
|
|
36
|
+
exports.default = TableRow;
|
|
26
37
|
var React = __importStar(require("react"));
|
|
27
38
|
function TableRow(_a) {
|
|
28
39
|
var children = _a.children, funcss = _a.funcss, rowKey = _a.rowKey, key = _a.key;
|
|
29
40
|
return (React.createElement("tr", { className: "".concat(funcss ? funcss : ''), key: key ? key : rowKey }, children));
|
|
30
41
|
}
|
|
31
|
-
exports.default = TableRow;
|
package/ui/table/Table.js
CHANGED
|
@@ -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)
|
|
@@ -49,6 +59,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
49
59
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
50
60
|
};
|
|
51
61
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
+
exports.default = Table;
|
|
52
63
|
var React = __importStar(require("react"));
|
|
53
64
|
var Head_1 = __importDefault(require("./Head"));
|
|
54
65
|
var Body_1 = __importDefault(require("./Body"));
|
|
@@ -127,7 +138,9 @@ function Table(_a) {
|
|
|
127
138
|
// Extract the data array
|
|
128
139
|
var dataArray = data ? data.data : [];
|
|
129
140
|
// Remove duplicate values
|
|
130
|
-
var uniqueValues =
|
|
141
|
+
var uniqueValues = selectedField
|
|
142
|
+
? Array.from(new Set(dataArray.map(function (item) { return item[selectedField]; })))
|
|
143
|
+
: [];
|
|
131
144
|
return (React.createElement("div", { className: "".concat(funcss ? funcss : '', " roundEdge") },
|
|
132
145
|
data &&
|
|
133
146
|
React.createElement("div", { className: "padding bb" },
|
|
@@ -189,4 +202,3 @@ function Table(_a) {
|
|
|
189
202
|
React.createElement("div", { className: "pagination" }, Array.from({ length: endPage - startPage + 1 }, function (_, i) { return (React.createElement(Circle_1.default, { size: 2.5, key: startPage + i, onClick: function () { return handleChangePage(startPage + i); }, funcss: currentPage === startPage + i ? 'primary pageCircle' : 'dark800 pageCircle text-primary' },
|
|
190
203
|
React.createElement(Text_1.default, { text: "".concat(startPage + i), bold: true, size: 'sm' }))); }))))))));
|
|
191
204
|
}
|
|
192
|
-
exports.default = Table;
|
package/ui/table/Table.tsx
CHANGED
|
@@ -130,7 +130,10 @@ export default function Table({
|
|
|
130
130
|
const dataArray = data ? data.data : []
|
|
131
131
|
|
|
132
132
|
// Remove duplicate values
|
|
133
|
-
|
|
133
|
+
const uniqueValues = selectedField
|
|
134
|
+
? Array.from(new Set(dataArray.map(item => item[selectedField])))
|
|
135
|
+
: [];
|
|
136
|
+
|
|
134
137
|
|
|
135
138
|
|
|
136
139
|
return (
|
package/ui/theme/dark.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = DarkMode;
|
|
3
4
|
function DarkMode(_a) {
|
|
4
5
|
var state = _a.state;
|
|
5
6
|
if (state) {
|
|
@@ -31,4 +32,3 @@ function DarkMode(_a) {
|
|
|
31
32
|
root.style.setProperty('--deepLight', "#154556");
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
exports.default = DarkMode;
|
package/ui/theme/theme.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 ThemeProvider = function (_a) {
|
package/ui/tooltip/Tip.js
CHANGED
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
47
|
var t = {};
|
|
38
48
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -45,10 +55,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
45
55
|
return t;
|
|
46
56
|
};
|
|
47
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
+
exports.default = Tip;
|
|
48
59
|
var React = __importStar(require("react"));
|
|
49
60
|
function Tip(_a) {
|
|
50
61
|
var tip = _a.tip, funcss = _a.funcss, children = _a.children, content = _a.content, message = _a.message, animation = _a.animation, duration = _a.duration, rest = __rest(_a, ["tip", "funcss", "children", "content", "message", "animation", "duration"]);
|
|
51
62
|
var text = message || content || children;
|
|
52
63
|
return (React.createElement("span", __assign({ className: "tip-".concat(tip, " tip ").concat(funcss ? funcss : ''), style: { animation: " ".concat(duration ? duration : 0, "s ").concat(animation ? animation : '') } }, rest), text));
|
|
53
64
|
}
|
|
54
|
-
exports.default = Tip;
|
package/ui/tooltip/ToolTip.js
CHANGED
|
@@ -26,13 +26,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
26
|
}) : function(o, v) {
|
|
27
27
|
o["default"] = v;
|
|
28
28
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
36
46
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
37
47
|
var t = {};
|
|
38
48
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -45,9 +55,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
45
55
|
return t;
|
|
46
56
|
};
|
|
47
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
|
+
exports.default = ToolTip;
|
|
48
59
|
var React = __importStar(require("react"));
|
|
49
60
|
function ToolTip(_a) {
|
|
50
61
|
var funcss = _a.funcss, children = _a.children, rest = __rest(_a, ["funcss", "children"]);
|
|
51
62
|
return (React.createElement("span", __assign({ className: "tooltip ".concat(funcss !== null && funcss !== void 0 ? funcss : '') }, rest), children));
|
|
52
63
|
}
|
|
53
|
-
exports.default = ToolTip;
|