funuicss 1.1.0 → 1.2.0

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.
Files changed (70) hide show
  1. package/component/Button.jsx +6 -5
  2. package/component/Col.jsx +74 -0
  3. package/component/Container.jsx +78 -0
  4. package/component/Grid.jsx +76 -0
  5. package/component/Icon.jsx +8 -4
  6. package/component/IconicInput.jsx +86 -0
  7. package/component/Input.jsx +196 -0
  8. package/component/Typography.jsx +1 -1
  9. package/package.json +1 -1
  10. package/src/Components/Alert.js +0 -68
  11. package/src/Components/Anchor.js +0 -12
  12. package/src/Components/Avatar.js +0 -11
  13. package/src/Components/Bg.js +0 -6
  14. package/src/Components/Breadcrumb.js +0 -24
  15. package/src/Components/Button.js +0 -44
  16. package/src/Components/Card.js +0 -37
  17. package/src/Components/CloseModal.jsx +0 -10
  18. package/src/Components/CloseSnackbar.js +0 -0
  19. package/src/Components/Col.js +0 -9
  20. package/src/Components/Color.js +0 -6
  21. package/src/Components/Container.js +0 -9
  22. package/src/Components/Div.js +0 -31
  23. package/src/Components/DropAction.js +0 -8
  24. package/src/Components/DropMenu.js +0 -8
  25. package/src/Components/Dropdown.js +0 -9
  26. package/src/Components/Dropitem.js +0 -8
  27. package/src/Components/Dropup.js +0 -9
  28. package/src/Components/Ellipsis.js +0 -10
  29. package/src/Components/Footer.js +0 -62
  30. package/src/Components/Grid.js +0 -11
  31. package/src/Components/Hr.js +0 -9
  32. package/src/Components/Icon.js +0 -6
  33. package/src/Components/IconicInput.js +0 -22
  34. package/src/Components/Input.js +0 -150
  35. package/src/Components/Layout.js +0 -30
  36. package/src/Components/LinkWrapper.js +0 -14
  37. package/src/Components/List.js +0 -9
  38. package/src/Components/ListItem.js +0 -9
  39. package/src/Components/LoadRing.js +0 -11
  40. package/src/Components/LoadSpan.js +0 -10
  41. package/src/Components/Logo.js +0 -15
  42. package/src/Components/Middle.js +0 -9
  43. package/src/Components/Modal.js +0 -39
  44. package/src/Components/Modalaction.js +0 -6
  45. package/src/Components/Modalcontent.js +0 -13
  46. package/src/Components/Modalheader.js +0 -12
  47. package/src/Components/NavBar.jsx +0 -12
  48. package/src/Components/NavLink.jsx +0 -10
  49. package/src/Components/NavLogo.js +0 -15
  50. package/src/Components/Navcenter.js +0 -14
  51. package/src/Components/Navleft.js +0 -14
  52. package/src/Components/Panelcontent.js +0 -11
  53. package/src/Components/Panelfront.js +0 -11
  54. package/src/Components/ProgressBar.js +0 -18
  55. package/src/Components/Roller.js +0 -10
  56. package/src/Components/RowFlex.js +0 -9
  57. package/src/Components/Section.js +0 -9
  58. package/src/Components/Sidebar.js +0 -203
  59. package/src/Components/SidebarTrigger.js +0 -15
  60. package/src/Components/Slidepanel.js +0 -11
  61. package/src/Components/Snackbar.js +0 -28
  62. package/src/Components/Table.js +0 -17
  63. package/src/Components/TableBody.js +0 -9
  64. package/src/Components/TableData.js +0 -9
  65. package/src/Components/TableHead.js +0 -9
  66. package/src/Components/TableRow.js +0 -9
  67. package/src/Components/Tip.js +0 -7
  68. package/src/Components/ToolTip.js +0 -9
  69. package/src/Components/Typography.js +0 -38
  70. package/src/index.js +0 -44
@@ -57,13 +57,12 @@ __webpack_require__.d(__webpack_exports__, {
57
57
  ;// CONCATENATED MODULE: external "react"
58
58
  const external_react_namespaceObject = require("react");
59
59
  var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
- ;// CONCATENATED MODULE: ./src/Components/Button.js
60
+ ;// CONCATENATED MODULE: ../Funcss/Components/Button.js
61
61
 
62
62
  function Button(_ref) {
63
63
  var color = _ref.color,
64
64
  bg = _ref.bg,
65
65
  funcss = _ref.funcss,
66
- size = _ref.size,
67
66
  onChange = _ref.onChange,
68
67
  onClick = _ref.onClick,
69
68
  startIcon = _ref.startIcon,
@@ -74,14 +73,16 @@ function Button(_ref) {
74
73
  raised = _ref.raised,
75
74
  height = _ref.height,
76
75
  width = _ref.width,
77
- _float = _ref["float"];
76
+ _float = _ref["float"],
77
+ hoverUp = _ref.hoverUp,
78
+ fullWidth = _ref.fullWidth;
78
79
  return /*#__PURE__*/external_react_default().createElement("button", {
79
- className: "button\ntext-".concat(color, "\n").concat(bg, " \n").concat(funcss, "\n").concat(size, "\n").concat(rounded ? "roundBtn" : "", "\n").concat(_float ? "floatBtn" : "", "\n").concat(raised ? "card" : "", "\n"),
80
+ className: "button\ntext-".concat(color, "\n").concat(bg, " \n").concat(funcss, "\n").concat(rounded ? "roundBtn" : "", "\n").concat(_float ? "floatBtn" : "", "\n").concat(raised ? "card" : "", "\n").concat(hoverUp ? "hover-up" : "", "\n"),
80
81
  onClick: onClick,
81
82
  onChange: onChange,
82
83
  style: {
83
84
  height: height ? height : "",
84
- width: width ? width : ""
85
+ width: fullWidth ? "100%" : width ? width : ""
85
86
  }
86
87
  }, startIcon, " \xA0", text, children, " \xA0", endIcon);
87
88
  }
@@ -0,0 +1,74 @@
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
5
+ /******/
6
+ /************************************************************************/
7
+ /******/ /* webpack/runtime/compat get default export */
8
+ /******/ (() => {
9
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
10
+ /******/ __webpack_require__.n = (module) => {
11
+ /******/ var getter = module && module.__esModule ?
12
+ /******/ () => (module['default']) :
13
+ /******/ () => (module);
14
+ /******/ __webpack_require__.d(getter, { a: getter });
15
+ /******/ return getter;
16
+ /******/ };
17
+ /******/ })();
18
+ /******/
19
+ /******/ /* webpack/runtime/define property getters */
20
+ /******/ (() => {
21
+ /******/ // define getter functions for harmony exports
22
+ /******/ __webpack_require__.d = (exports, definition) => {
23
+ /******/ for(var key in definition) {
24
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
+ /******/ }
27
+ /******/ }
28
+ /******/ };
29
+ /******/ })();
30
+ /******/
31
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
+ /******/ (() => {
33
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
34
+ /******/ })();
35
+ /******/
36
+ /******/ /* webpack/runtime/make namespace object */
37
+ /******/ (() => {
38
+ /******/ // define __esModule on exports
39
+ /******/ __webpack_require__.r = (exports) => {
40
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42
+ /******/ }
43
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
44
+ /******/ };
45
+ /******/ })();
46
+ /******/
47
+ /************************************************************************/
48
+ var __webpack_exports__ = {};
49
+ // ESM COMPAT FLAG
50
+ __webpack_require__.r(__webpack_exports__);
51
+
52
+ // EXPORTS
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ "default": () => (/* binding */ Col)
55
+ });
56
+
57
+ ;// CONCATENATED MODULE: external "react"
58
+ const external_react_namespaceObject = require("react");
59
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
+ ;// CONCATENATED MODULE: ../Funcss/Components/Col.js
61
+
62
+ function Col(_ref) {
63
+ var sm = _ref.sm,
64
+ md = _ref.md,
65
+ lg = _ref.lg,
66
+ children = _ref.children,
67
+ funcss = _ref.funcss;
68
+ return /*#__PURE__*/external_react_default().createElement("div", {
69
+ className: "col sm-".concat(sm, " md-").concat(md, " lg-").concat(lg, " ").concat(funcss)
70
+ }, children);
71
+ }
72
+ module.exports = __webpack_exports__;
73
+ /******/ })()
74
+ ;
@@ -0,0 +1,78 @@
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
5
+ /******/
6
+ /************************************************************************/
7
+ /******/ /* webpack/runtime/compat get default export */
8
+ /******/ (() => {
9
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
10
+ /******/ __webpack_require__.n = (module) => {
11
+ /******/ var getter = module && module.__esModule ?
12
+ /******/ () => (module['default']) :
13
+ /******/ () => (module);
14
+ /******/ __webpack_require__.d(getter, { a: getter });
15
+ /******/ return getter;
16
+ /******/ };
17
+ /******/ })();
18
+ /******/
19
+ /******/ /* webpack/runtime/define property getters */
20
+ /******/ (() => {
21
+ /******/ // define getter functions for harmony exports
22
+ /******/ __webpack_require__.d = (exports, definition) => {
23
+ /******/ for(var key in definition) {
24
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
+ /******/ }
27
+ /******/ }
28
+ /******/ };
29
+ /******/ })();
30
+ /******/
31
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
+ /******/ (() => {
33
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
34
+ /******/ })();
35
+ /******/
36
+ /******/ /* webpack/runtime/make namespace object */
37
+ /******/ (() => {
38
+ /******/ // define __esModule on exports
39
+ /******/ __webpack_require__.r = (exports) => {
40
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42
+ /******/ }
43
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
44
+ /******/ };
45
+ /******/ })();
46
+ /******/
47
+ /************************************************************************/
48
+ var __webpack_exports__ = {};
49
+ // ESM COMPAT FLAG
50
+ __webpack_require__.r(__webpack_exports__);
51
+
52
+ // EXPORTS
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ "default": () => (/* binding */ Components_Container)
55
+ });
56
+
57
+ ;// CONCATENATED MODULE: external "react"
58
+ const external_react_namespaceObject = require("react");
59
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
+ ;// CONCATENATED MODULE: ../Funcss/Components/Container.js
61
+
62
+ var Container = function Container(_ref) {
63
+ var children = _ref.children,
64
+ funcss = _ref.funcss,
65
+ margin = _ref.margin,
66
+ padding = _ref.padding;
67
+ return /*#__PURE__*/external_react_default().createElement("div", {
68
+ className: "container ".concat(funcss),
69
+ style: {
70
+ margin: margin ? margin : "",
71
+ padding: padding ? padding : ""
72
+ }
73
+ }, children);
74
+ };
75
+ /* harmony default export */ const Components_Container = (Container);
76
+ module.exports = __webpack_exports__;
77
+ /******/ })()
78
+ ;
@@ -0,0 +1,76 @@
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
5
+ /******/
6
+ /************************************************************************/
7
+ /******/ /* webpack/runtime/compat get default export */
8
+ /******/ (() => {
9
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
10
+ /******/ __webpack_require__.n = (module) => {
11
+ /******/ var getter = module && module.__esModule ?
12
+ /******/ () => (module['default']) :
13
+ /******/ () => (module);
14
+ /******/ __webpack_require__.d(getter, { a: getter });
15
+ /******/ return getter;
16
+ /******/ };
17
+ /******/ })();
18
+ /******/
19
+ /******/ /* webpack/runtime/define property getters */
20
+ /******/ (() => {
21
+ /******/ // define getter functions for harmony exports
22
+ /******/ __webpack_require__.d = (exports, definition) => {
23
+ /******/ for(var key in definition) {
24
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
+ /******/ }
27
+ /******/ }
28
+ /******/ };
29
+ /******/ })();
30
+ /******/
31
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
+ /******/ (() => {
33
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
34
+ /******/ })();
35
+ /******/
36
+ /******/ /* webpack/runtime/make namespace object */
37
+ /******/ (() => {
38
+ /******/ // define __esModule on exports
39
+ /******/ __webpack_require__.r = (exports) => {
40
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42
+ /******/ }
43
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
44
+ /******/ };
45
+ /******/ })();
46
+ /******/
47
+ /************************************************************************/
48
+ var __webpack_exports__ = {};
49
+ // ESM COMPAT FLAG
50
+ __webpack_require__.r(__webpack_exports__);
51
+
52
+ // EXPORTS
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ "default": () => (/* binding */ Grid)
55
+ });
56
+
57
+ ;// CONCATENATED MODULE: external "react"
58
+ const external_react_namespaceObject = require("react");
59
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
+ ;// CONCATENATED MODULE: ../Funcss/Components/Grid.js
61
+
62
+ function Grid(_ref) {
63
+ var children = _ref.children,
64
+ funcss = _ref.funcss,
65
+ gap = _ref.gap,
66
+ justify = _ref.justify;
67
+ return /*#__PURE__*/external_react_default().createElement("div", {
68
+ className: "row ".concat(funcss, " ").concat(gap, " "),
69
+ style: {
70
+ justifyContent: justify ? justify : ""
71
+ }
72
+ }, children);
73
+ }
74
+ module.exports = __webpack_exports__;
75
+ /******/ })()
76
+ ;
@@ -57,15 +57,19 @@ __webpack_require__.d(__webpack_exports__, {
57
57
  ;// CONCATENATED MODULE: external "react"
58
58
  const external_react_namespaceObject = require("react");
59
59
  var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
- ;// CONCATENATED MODULE: ./src/Components/Icon.js
60
+ ;// CONCATENATED MODULE: ../Funcss/Components/Icon.js
61
61
 
62
62
  function Icon(_ref) {
63
63
  var funcss = _ref.funcss,
64
- icon = _ref.icon,
65
64
  color = _ref.color,
66
- size = _ref.size;
65
+ size = _ref.size,
66
+ onClick = _ref.onClick,
67
+ onChange = _ref.onChange,
68
+ icon = _ref.icon;
67
69
  return /*#__PURE__*/external_react_default().createElement("i", {
68
- className: "icon ".concat(icon, " ").concat(funcss, " text-").concat(color, " size-").concat(size, " ")
70
+ className: "icon ".concat(icon, " ").concat(funcss, " text-").concat(color, " size-").concat(size, " "),
71
+ onClick: onClick,
72
+ onChange: onChange
69
73
  });
70
74
  }
71
75
  module.exports = __webpack_exports__;
@@ -0,0 +1,86 @@
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
5
+ /******/
6
+ /************************************************************************/
7
+ /******/ /* webpack/runtime/compat get default export */
8
+ /******/ (() => {
9
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
10
+ /******/ __webpack_require__.n = (module) => {
11
+ /******/ var getter = module && module.__esModule ?
12
+ /******/ () => (module['default']) :
13
+ /******/ () => (module);
14
+ /******/ __webpack_require__.d(getter, { a: getter });
15
+ /******/ return getter;
16
+ /******/ };
17
+ /******/ })();
18
+ /******/
19
+ /******/ /* webpack/runtime/define property getters */
20
+ /******/ (() => {
21
+ /******/ // define getter functions for harmony exports
22
+ /******/ __webpack_require__.d = (exports, definition) => {
23
+ /******/ for(var key in definition) {
24
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
+ /******/ }
27
+ /******/ }
28
+ /******/ };
29
+ /******/ })();
30
+ /******/
31
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
+ /******/ (() => {
33
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
34
+ /******/ })();
35
+ /******/
36
+ /******/ /* webpack/runtime/make namespace object */
37
+ /******/ (() => {
38
+ /******/ // define __esModule on exports
39
+ /******/ __webpack_require__.r = (exports) => {
40
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42
+ /******/ }
43
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
44
+ /******/ };
45
+ /******/ })();
46
+ /******/
47
+ /************************************************************************/
48
+ var __webpack_exports__ = {};
49
+ // ESM COMPAT FLAG
50
+ __webpack_require__.r(__webpack_exports__);
51
+
52
+ // EXPORTS
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ "default": () => (/* binding */ IconicInput)
55
+ });
56
+
57
+ ;// CONCATENATED MODULE: external "react"
58
+ const external_react_namespaceObject = require("react");
59
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
+ ;// CONCATENATED MODULE: ../Funcss/Components/IconicInput.js
61
+
62
+ function IconicInput(_ref) {
63
+ var funcss = _ref.funcss,
64
+ children = _ref.children,
65
+ position = _ref.position,
66
+ icon = _ref.icon,
67
+ input = _ref.input,
68
+ iconicBg = _ref.iconicBg;
69
+ return /*#__PURE__*/external_react_default().createElement("div", {
70
+ className: "icon-container ".concat(funcss, " ").concat(position)
71
+ }, position == "left" ? /*#__PURE__*/external_react_default().createElement("div", {
72
+ className: "leftIcon",
73
+ style: {
74
+ backgroundColor: iconicBg ? iconicBg : "",
75
+ border: iconicBg ? "0.1rem ".concat(iconicBg, " solid") : ""
76
+ }
77
+ }, position == "left" ? icon : "") : "", children, " ", input, position == "right" ? /*#__PURE__*/external_react_default().createElement("div", {
78
+ className: "rightIcon",
79
+ style: {
80
+ backgroundColor: iconicBg ? iconicBg : ""
81
+ }
82
+ }, position == "right" ? icon : "") : "");
83
+ }
84
+ module.exports = __webpack_exports__;
85
+ /******/ })()
86
+ ;
@@ -0,0 +1,196 @@
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
5
+ /******/
6
+ /************************************************************************/
7
+ /******/ /* webpack/runtime/compat get default export */
8
+ /******/ (() => {
9
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
10
+ /******/ __webpack_require__.n = (module) => {
11
+ /******/ var getter = module && module.__esModule ?
12
+ /******/ () => (module['default']) :
13
+ /******/ () => (module);
14
+ /******/ __webpack_require__.d(getter, { a: getter });
15
+ /******/ return getter;
16
+ /******/ };
17
+ /******/ })();
18
+ /******/
19
+ /******/ /* webpack/runtime/define property getters */
20
+ /******/ (() => {
21
+ /******/ // define getter functions for harmony exports
22
+ /******/ __webpack_require__.d = (exports, definition) => {
23
+ /******/ for(var key in definition) {
24
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
+ /******/ }
27
+ /******/ }
28
+ /******/ };
29
+ /******/ })();
30
+ /******/
31
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
+ /******/ (() => {
33
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
34
+ /******/ })();
35
+ /******/
36
+ /******/ /* webpack/runtime/make namespace object */
37
+ /******/ (() => {
38
+ /******/ // define __esModule on exports
39
+ /******/ __webpack_require__.r = (exports) => {
40
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42
+ /******/ }
43
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
44
+ /******/ };
45
+ /******/ })();
46
+ /******/
47
+ /************************************************************************/
48
+ var __webpack_exports__ = {};
49
+ // ESM COMPAT FLAG
50
+ __webpack_require__.r(__webpack_exports__);
51
+
52
+ // EXPORTS
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ "default": () => (/* binding */ Input)
55
+ });
56
+
57
+ ;// CONCATENATED MODULE: external "react"
58
+ const external_react_namespaceObject = require("react");
59
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
+ ;// CONCATENATED MODULE: ../Funcss/Components/Input.js
61
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
62
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
63
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
64
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
65
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
66
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
67
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
68
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
69
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
70
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
71
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
72
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
73
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
74
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
75
+
76
+ var Input = /*#__PURE__*/function (_Component) {
77
+ _inherits(Input, _Component);
78
+ var _super = _createSuper(Input);
79
+ function Input() {
80
+ _classCallCheck(this, Input);
81
+ return _super.apply(this, arguments);
82
+ }
83
+ _createClass(Input, [{
84
+ key: "render",
85
+ value: function render() {
86
+ if (this.props.select) {
87
+ if (this.props.bordered) {
88
+ return /*#__PURE__*/external_react_default().createElement("select", _extends({}, this.props.disabled ? "disabled" : "", {
89
+ className: "\n input\n ".concat(this.props.funcss, "\n bordered\n "),
90
+ onChange: this.props.onChange,
91
+ defaultValue: this.props.defaultValue,
92
+ type: this.props.type,
93
+ name: this.props.name,
94
+ style: {
95
+ borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
96
+ width: "".concat(this.props.fullWidth ? "100%" : "")
97
+ },
98
+ value: this.props.value
99
+ }), this.props.options ? this.props.options.map(function (doc) {
100
+ return /*#__PURE__*/external_react_default().createElement("option", {
101
+ value: doc.value,
102
+ key: doc.value
103
+ }, doc.text);
104
+ }) : "");
105
+ } else if (this.props.bordereless) {
106
+ return /*#__PURE__*/external_react_default().createElement("select", _extends({}, this.props.disabled ? "disabled" : "", {
107
+ className: "\n input\n ".concat(this.props.funcss, "\n borderless\n "),
108
+ onChange: this.props.onChange,
109
+ defaultValue: this.props.defaultValue,
110
+ type: this.props.type,
111
+ placeholder: this.props.label,
112
+ name: this.props.name,
113
+ value: this.props.value,
114
+ style: {
115
+ borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
116
+ width: "".concat(this.props.fullWidth ? "100%" : "")
117
+ }
118
+ }), this.props.options ? this.props.options.map(function (doc) {
119
+ return /*#__PURE__*/external_react_default().createElement("option", {
120
+ value: doc.value,
121
+ key: doc.value
122
+ }, doc.text);
123
+ }) : "");
124
+ } else {
125
+ return /*#__PURE__*/external_react_default().createElement("select", _extends({}, this.props.disabled ? "disabled" : "", {
126
+ className: "\n input\n ".concat(this.props.funcss, "\n "),
127
+ onChange: this.props.onChange,
128
+ defaultValue: this.props.defaultValue,
129
+ type: this.props.type,
130
+ placeholder: this.props.label,
131
+ name: this.props.name,
132
+ value: this.props.value,
133
+ style: {
134
+ borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
135
+ width: "".concat(this.props.fullWidth ? "100%" : "")
136
+ }
137
+ }), this.props.options ? this.props.options.map(function (doc) {
138
+ return /*#__PURE__*/external_react_default().createElement("option", {
139
+ value: doc.value,
140
+ key: doc.value
141
+ }, doc.text);
142
+ }) : "");
143
+ }
144
+ } else {
145
+ if (this.props.bordered) {
146
+ return /*#__PURE__*/external_react_default().createElement("input", _extends({}, this.props.disabled ? "disabled" : "", {
147
+ className: "\n input\n ".concat(this.props.funcss, "\n bordered\n "),
148
+ onChange: this.props.onChange,
149
+ defaultValue: this.props.defaultValue,
150
+ type: this.props.type,
151
+ placeholder: this.props.label,
152
+ name: this.props.name,
153
+ style: {
154
+ borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
155
+ width: "".concat(this.props.fullWidth ? "100%" : "")
156
+ },
157
+ value: this.props.value
158
+ }));
159
+ } else if (this.props.bordereless) {
160
+ return /*#__PURE__*/external_react_default().createElement("input", _extends({}, this.props.disabled ? "disabled" : "", {
161
+ className: "\n input\n ".concat(this.props.funcss, "\n borderless\n "),
162
+ onChange: this.props.onChange,
163
+ defaultValue: this.props.defaultValue,
164
+ type: this.props.type,
165
+ placeholder: this.props.label,
166
+ name: this.props.name,
167
+ value: this.props.value,
168
+ style: {
169
+ borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
170
+ width: "".concat(this.props.fullWidth ? "100%" : "")
171
+ }
172
+ }));
173
+ } else {
174
+ return /*#__PURE__*/external_react_default().createElement("input", _extends({}, this.props.disabled ? "disabled" : "", {
175
+ className: "\n input\n ".concat(this.props.funcss, "\n "),
176
+ onChange: this.props.onChange,
177
+ defaultValue: this.props.defaultValue,
178
+ type: this.props.type,
179
+ placeholder: this.props.label,
180
+ name: this.props.name,
181
+ value: this.props.value,
182
+ style: {
183
+ borderRadius: "".concat(this.props.rounded ? "400rem" : ""),
184
+ width: "".concat(this.props.fullWidth ? "100%" : "")
185
+ }
186
+ }));
187
+ }
188
+ }
189
+ }
190
+ }]);
191
+ return Input;
192
+ }(external_react_namespaceObject.Component);
193
+
194
+ module.exports = __webpack_exports__;
195
+ /******/ })()
196
+ ;
@@ -57,7 +57,7 @@ __webpack_require__.d(__webpack_exports__, {
57
57
  ;// CONCATENATED MODULE: external "react"
58
58
  const external_react_namespaceObject = require("react");
59
59
  var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
60
- ;// CONCATENATED MODULE: ./src/Components/Typography.js
60
+ ;// CONCATENATED MODULE: ../Funcss/Components/Typography.js
61
61
 
62
62
  function Typography(_ref) {
63
63
  var size = _ref.size,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "funuicss",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "React ui framework for creating reponsive and nice looking websites and apps.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,68 +0,0 @@
1
- import React from 'react'
2
- export default function Alert({message, funcss , type , outlined}) {
3
- return (
4
- <div>
5
- {
6
- outlined ?
7
- <div className={`alert ${type}-outline`}>
8
- <div className="alert-icon">
9
- {
10
- type === "success" &&
11
- <i className="fa fa-check"></i>
12
- }
13
- {
14
- type === "info" &&
15
- <i className="fa fa-info-circle"></i>
16
- }
17
- {
18
- type === "warning" &&
19
- <i className="fa fa-exclamation-triangle"></i>
20
- }
21
- {
22
- type === "danger" &&
23
- <i className="far fa-times-circle" ></i>
24
- }
25
- </div>
26
- <div className="alert-text">
27
- {message}
28
- </div>
29
- </div>
30
- :""
31
- }
32
-
33
- {
34
- !outlined ?
35
-
36
- <div className={`alert ${funcss} ${type} `}>
37
- <div className="alert-icon">
38
- {
39
- type === "success" &&
40
- <i className="fa fa-check"></i>
41
- }
42
- {
43
- type === "info" &&
44
- <i className="fa fa-info-circle"></i>
45
- }
46
- {
47
- type === "warning" &&
48
- <i className="fa fa-exclamation-triangle"></i>
49
- }
50
- {
51
- type === "danger" &&
52
- <i className="far fa-times-circle" ></i>
53
- }
54
- </div>
55
- <div className="alert-text">
56
- {message}
57
- </div>
58
- </div>
59
- :""
60
- }
61
- </div>
62
-
63
-
64
- )
65
-
66
-
67
-
68
- }