componenteshospitais 1.6.0 → 1.6.1
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/cjs/index.js +69 -65
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +69 -65
- package/dist/esm/index.js.map +1 -1
- package/package.json +8 -1
- package/src/components/InputField.tsx +4 -6
- package/rollup.config.mjs +0 -47
- package/tsconfig.json +0 -18
package/dist/cjs/index.js
CHANGED
|
@@ -1422,6 +1422,74 @@ if (process.env.NODE_ENV === 'production') {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
});
|
|
1424
1424
|
|
|
1425
|
+
var DefaultContext = {
|
|
1426
|
+
color: undefined,
|
|
1427
|
+
size: undefined,
|
|
1428
|
+
className: undefined,
|
|
1429
|
+
style: undefined,
|
|
1430
|
+
attr: undefined
|
|
1431
|
+
};
|
|
1432
|
+
var IconContext = React$2.createContext && /*#__PURE__*/React$2.createContext(DefaultContext);
|
|
1433
|
+
|
|
1434
|
+
var _excluded = ["attr", "size", "title"];
|
|
1435
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1436
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
1437
|
+
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); }
|
|
1438
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1439
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1440
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1441
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
1442
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1443
|
+
function Tree2Element(tree) {
|
|
1444
|
+
return tree && tree.map((node, i) => /*#__PURE__*/React$2.createElement(node.tag, _objectSpread({
|
|
1445
|
+
key: i
|
|
1446
|
+
}, node.attr), Tree2Element(node.child)));
|
|
1447
|
+
}
|
|
1448
|
+
function GenIcon(data) {
|
|
1449
|
+
return props => /*#__PURE__*/React$2.createElement(IconBase, _extends({
|
|
1450
|
+
attr: _objectSpread({}, data.attr)
|
|
1451
|
+
}, props), Tree2Element(data.child));
|
|
1452
|
+
}
|
|
1453
|
+
function IconBase(props) {
|
|
1454
|
+
var elem = conf => {
|
|
1455
|
+
var {
|
|
1456
|
+
attr,
|
|
1457
|
+
size,
|
|
1458
|
+
title
|
|
1459
|
+
} = props,
|
|
1460
|
+
svgProps = _objectWithoutProperties(props, _excluded);
|
|
1461
|
+
var computedSize = size || conf.size || "1em";
|
|
1462
|
+
var className;
|
|
1463
|
+
if (conf.className) className = conf.className;
|
|
1464
|
+
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
1465
|
+
return /*#__PURE__*/React$2.createElement("svg", _extends({
|
|
1466
|
+
stroke: "currentColor",
|
|
1467
|
+
fill: "currentColor",
|
|
1468
|
+
strokeWidth: "0"
|
|
1469
|
+
}, conf.attr, attr, svgProps, {
|
|
1470
|
+
className: className,
|
|
1471
|
+
style: _objectSpread(_objectSpread({
|
|
1472
|
+
color: props.color || conf.color
|
|
1473
|
+
}, conf.style), props.style),
|
|
1474
|
+
height: computedSize,
|
|
1475
|
+
width: computedSize,
|
|
1476
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1477
|
+
}), title && /*#__PURE__*/React$2.createElement("title", null, title), props.children);
|
|
1478
|
+
};
|
|
1479
|
+
return IconContext !== undefined ? /*#__PURE__*/React$2.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
// THIS FILE IS AUTO GENERATED
|
|
1483
|
+
function FaDownload (props) {
|
|
1484
|
+
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},"child":[]}]})(props);
|
|
1485
|
+
}function FaEyeSlash (props) {
|
|
1486
|
+
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 640 512"},"child":[{"tag":"path","attr":{"d":"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},"child":[]}]})(props);
|
|
1487
|
+
}function FaEye (props) {
|
|
1488
|
+
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 576 512"},"child":[{"tag":"path","attr":{"d":"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},"child":[]}]})(props);
|
|
1489
|
+
}function FaPen (props) {
|
|
1490
|
+
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"},"child":[]}]})(props);
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1425
1493
|
var InputField = function (_a) {
|
|
1426
1494
|
var type = _a.type, id = _a.id, placeholder = _a.placeholder, onChange = _a.onChange, value = _a.value, label = _a.label, largura = _a.largura, readonly = _a.readonly, disabled = _a.disabled, required = _a.required, maxLength = _a.maxLength, maskType = _a.maskType, onKeyPress = _a.onKeyPress;
|
|
1427
1495
|
var _b = React$2.useState(false), isPasswordVisible = _b[0], setIsPasswordVisible = _b[1];
|
|
@@ -1444,7 +1512,7 @@ var InputField = function (_a) {
|
|
|
1444
1512
|
label && React$2.createElement("label", { htmlFor: id }, label),
|
|
1445
1513
|
React$2.createElement("div", { className: styles$6.inputWrapper, style: { position: 'relative', display: 'flex', alignItems: 'center' } },
|
|
1446
1514
|
maskType ? (React$2.createElement(reactInputMask, { mask: mask, value: value, onChange: handleChange, disabled: disabled }, function (inputProps) { return (React$2.createElement("input", __assign({}, inputProps, { type: type === 'password' && isPasswordVisible ? 'text' : type, id: id, name: id, placeholder: placeholder, className: styles$6.inputPadrao, style: { width: largura ? "".concat(largura) : '', backgroundColor: disabled ? '#e5e5e5' : '' }, readOnly: readonly, required: required, onKeyPress: onKeyPress }))); })) : (React$2.createElement("input", { type: type === 'password' && isPasswordVisible ? 'text' : type, id: id, name: id, value: value, placeholder: placeholder, onChange: handleChange, className: styles$6.inputPadrao, style: { width: largura ? "".concat(largura) : '', backgroundColor: disabled ? '#e5e5e5' : '' }, readOnly: readonly, disabled: disabled, required: required, maxLength: type === 'text' ? appliedMaxLength : undefined, onKeyPress: onKeyPress })),
|
|
1447
|
-
type === 'password' && (React$2.createElement("
|
|
1515
|
+
type === 'password' && (React$2.createElement("div", { onClick: togglePasswordVisibility, style: { cursor: 'pointer', position: 'absolute', right: '10px' } }, isPasswordVisible ? React$2.createElement(FaEyeSlash, null) : React$2.createElement(FaEye, null))))));
|
|
1448
1516
|
};
|
|
1449
1517
|
|
|
1450
1518
|
var css_248z$5 = ".textPage-module_container__GBEF6{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:20px}.textPage-module_content__CpD68{display:flex;text-align:justify}.textPage-module_imageCabecalho__J6YFH{border-radius:8px}.textPage-module_imageCabecalho__J6YFH img{border-radius:8px;height:100%;object-fit:cover;width:100%}.textPage-module_contentWithLateralImage__-f5pQ{flex-direction:row}.textPage-module_imageLateral__Dy9Kx{align-self:flex-start;height:230px;margin-right:20px;margin-top:15px;width:300px}.textPage-module_imageLateral__Dy9Kx img{border-radius:8px;height:100%;object-fit:cover;width:100%}.textPage-module_text__3pwuU{color:#5d5d5d;flex:2;line-height:1.8;text-align:justify}.textPage-module_text__3pwuU p{line-height:1.6;margin:10px 0}.textPage-module_text__3pwuU .textPage-module_coordenacao__UypV-,.textPage-module_text__3pwuU .textPage-module_direcao__x5psb{font-weight:700;margin-top:20px}";
|
|
@@ -1559,70 +1627,6 @@ var CheckboxGroup = function (_a) {
|
|
|
1559
1627
|
option.description)); })));
|
|
1560
1628
|
};
|
|
1561
1629
|
|
|
1562
|
-
var DefaultContext = {
|
|
1563
|
-
color: undefined,
|
|
1564
|
-
size: undefined,
|
|
1565
|
-
className: undefined,
|
|
1566
|
-
style: undefined,
|
|
1567
|
-
attr: undefined
|
|
1568
|
-
};
|
|
1569
|
-
var IconContext = React$2.createContext && /*#__PURE__*/React$2.createContext(DefaultContext);
|
|
1570
|
-
|
|
1571
|
-
var _excluded = ["attr", "size", "title"];
|
|
1572
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1573
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
1574
|
-
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); }
|
|
1575
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1576
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1577
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1578
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
1579
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1580
|
-
function Tree2Element(tree) {
|
|
1581
|
-
return tree && tree.map((node, i) => /*#__PURE__*/React$2.createElement(node.tag, _objectSpread({
|
|
1582
|
-
key: i
|
|
1583
|
-
}, node.attr), Tree2Element(node.child)));
|
|
1584
|
-
}
|
|
1585
|
-
function GenIcon(data) {
|
|
1586
|
-
return props => /*#__PURE__*/React$2.createElement(IconBase, _extends({
|
|
1587
|
-
attr: _objectSpread({}, data.attr)
|
|
1588
|
-
}, props), Tree2Element(data.child));
|
|
1589
|
-
}
|
|
1590
|
-
function IconBase(props) {
|
|
1591
|
-
var elem = conf => {
|
|
1592
|
-
var {
|
|
1593
|
-
attr,
|
|
1594
|
-
size,
|
|
1595
|
-
title
|
|
1596
|
-
} = props,
|
|
1597
|
-
svgProps = _objectWithoutProperties(props, _excluded);
|
|
1598
|
-
var computedSize = size || conf.size || "1em";
|
|
1599
|
-
var className;
|
|
1600
|
-
if (conf.className) className = conf.className;
|
|
1601
|
-
if (props.className) className = (className ? className + " " : "") + props.className;
|
|
1602
|
-
return /*#__PURE__*/React$2.createElement("svg", _extends({
|
|
1603
|
-
stroke: "currentColor",
|
|
1604
|
-
fill: "currentColor",
|
|
1605
|
-
strokeWidth: "0"
|
|
1606
|
-
}, conf.attr, attr, svgProps, {
|
|
1607
|
-
className: className,
|
|
1608
|
-
style: _objectSpread(_objectSpread({
|
|
1609
|
-
color: props.color || conf.color
|
|
1610
|
-
}, conf.style), props.style),
|
|
1611
|
-
height: computedSize,
|
|
1612
|
-
width: computedSize,
|
|
1613
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
1614
|
-
}), title && /*#__PURE__*/React$2.createElement("title", null, title), props.children);
|
|
1615
|
-
};
|
|
1616
|
-
return IconContext !== undefined ? /*#__PURE__*/React$2.createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
// THIS FILE IS AUTO GENERATED
|
|
1620
|
-
function FaDownload (props) {
|
|
1621
|
-
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},"child":[]}]})(props);
|
|
1622
|
-
}function FaPen (props) {
|
|
1623
|
-
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"},"child":[]}]})(props);
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
1630
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
1627
1631
|
/* vim: set ts=2: */
|
|
1628
1632
|
/*exported XLSX */
|