@insticc/genericform 1.0.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 (2) hide show
  1. package/build/index.js +32 -0
  2. package/package.json +43 -0
package/build/index.js ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
11
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
12
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
14
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
15
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
17
+ var Button = function Button() {
18
+ var _useState = (0, _react.useState)('blue'),
19
+ _useState2 = _slicedToArray(_useState, 2),
20
+ color = _useState2[0],
21
+ setColor = _useState2[1];
22
+ var changeColor = function changeColor() {
23
+ setColor(color === 'blue' ? 'red' : 'blue');
24
+ };
25
+ return /*#__PURE__*/_react["default"].createElement("button", {
26
+ style: {
27
+ backgroundColor: color
28
+ },
29
+ onClick: changeColor
30
+ }, "Click me");
31
+ };
32
+ var _default = exports["default"] = Button;
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@insticc/genericform",
3
+ "version": "1.0.0",
4
+ "description": "a generic form with various types of fields",
5
+ "main": "build/index.js",
6
+ "scripts": {
7
+ "build": "babel src -d build --copy-files"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://set1.insticc.org/Bonobo.Git.Server/GenericForm.git"
12
+ },
13
+ "keywords": [
14
+ "generic",
15
+ "form"
16
+ ],
17
+ "author": "Bernardo Lagos",
18
+ "license": "ISC",
19
+ "dependencies": {
20
+ "react": "^18.2.0",
21
+ "react-dom": "^18.2.0",
22
+ "semantic-ui-react": "^2.1.5",
23
+ "react-bootstrap": "^2.10.2",
24
+ "semantic-ui-css": "^2.5.0",
25
+ "bootstrap": "^5.3.3",
26
+ "prop-types": "^15.6.1"
27
+ },
28
+ "devDependencies": {
29
+ "@babel/cli": "^7.26.4",
30
+ "@babel/core": "^7.26.0",
31
+ "@babel/preset-env": "^7.26.0",
32
+ "@babel/preset-react": "^7.26.3"
33
+ },
34
+ "peerDependencies": {
35
+ "react": "^18.2.0",
36
+ "react-dom": "^18.2.0",
37
+ "semantic-ui-react": "^2.1.5",
38
+ "react-bootstrap": "^2.10.2",
39
+ "semantic-ui-css": "^2.5.0",
40
+ "bootstrap": "^5.3.3",
41
+ "prop-types": "^15.6.1"
42
+ }
43
+ }