componenteshospitais 3.0.0 → 3.0.2

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/esm/index.js CHANGED
@@ -120,9 +120,9 @@ var styles$5 = {"inputSubmit":"input-module_inputSubmit__21-Pj","inputWrapper":"
120
120
  styleInject(css_248z$5);
121
121
 
122
122
  var Button = function (_a) {
123
- var empresa = _a.empresa, _b = _a.type, type = _b === void 0 ? 'submit' : _b, onClick = _a.onClick, texto = _a.texto, largura = _a.largura, borderRadius = _a.borderRadius;
123
+ var empresa = _a.empresa, _b = _a.type, type = _b === void 0 ? 'submit' : _b, onClick = _a.onClick, texto = _a.texto, largura = _a.largura, borderRadius = _a.borderRadius, disabled = _a.disabled;
124
124
  var empresaClass = styles$5["empresa".concat(empresa)];
125
- return (React$2.createElement("div", { className: "".concat(empresaClass) }, type === 'submit' ? (React$2.createElement("input", { type: "submit", className: styles$5.inputSubmit, style: { width: largura ? "".concat(largura) : '', borderRadius: borderRadius ? "".concat(borderRadius, "px") : '' }, value: texto })) : (React$2.createElement("button", { type: "button", className: styles$5.inputSubmit, onClick: onClick, style: { width: largura ? "".concat(largura) : '', borderRadius: borderRadius ? "".concat(borderRadius, "px") : '' }, dangerouslySetInnerHTML: { __html: texto } }))));
125
+ return (React$2.createElement("div", { className: "".concat(empresaClass) }, type === 'submit' ? (React$2.createElement("input", { type: "submit", className: styles$5.inputSubmit, style: { width: largura ? "".concat(largura) : '', borderRadius: borderRadius ? "".concat(borderRadius, "px") : '' }, value: texto, disabled: disabled })) : (React$2.createElement("button", { type: "button", className: styles$5.inputSubmit, onClick: onClick, style: { width: largura ? "".concat(largura) : '', borderRadius: borderRadius ? "".concat(borderRadius, "px") : '' }, dangerouslySetInnerHTML: { __html: texto }, disabled: disabled }))));
126
126
  };
127
127
 
128
128
  /******************************************************************************
@@ -1606,7 +1606,7 @@ var SelectField = function (_a) {
1606
1606
  };
1607
1607
 
1608
1608
  var Busca = function (_a) {
1609
- var options = _a.options; _a.value; var onChange = _a.onChange, label = _a.label, _b = _a.showIcon, showIcon = _b === void 0 ? false : _b, corLabel = _a.corLabel, corFundo = _a.corFundo;
1609
+ var options = _a.options; _a.value; var onChange = _a.onChange, label = _a.label, _b = _a.showIcon, showIcon = _b === void 0 ? false : _b, corLabel = _a.corLabel, corFundo = _a.corFundo, borderRadius = _a.borderRadius, border = _a.border;
1610
1610
  var _c = useState(options), filteredOptions = _c[0], setFilteredOptions = _c[1];
1611
1611
  var _d = useState(false), showOptions = _d[0], setShowOptions = _d[1];
1612
1612
  var _e = useState(''), inputValue = _e[0], setInputValue = _e[1];
@@ -1650,7 +1650,13 @@ var Busca = function (_a) {
1650
1650
  label && React$2.createElement("label", { htmlFor: "codigoCbhpm", style: { color: corLabel ? corLabel : '' } }, label),
1651
1651
  React$2.createElement("div", { style: { position: 'relative', display: 'flex', alignItems: 'center', gap: '10px', width: '100%' } },
1652
1652
  showIcon && React$2.createElement(FaSearch, { className: styles$5.searchIcon }),
1653
- React$2.createElement("input", { type: "text", id: "codigoCbhpm", value: inputValue, onChange: handleInputChange, onFocus: handleFocus, placeholder: "Digite para buscar...", autoComplete: "off", className: styles$5.inputPadrao, style: { width: '100%', paddingLeft: showIcon ? '30px' : '0', backgroundColor: (corFundo ? corFundo : '') } })),
1653
+ React$2.createElement("input", { type: "text", id: "codigoCbhpm", value: inputValue, onChange: handleInputChange, onFocus: handleFocus, placeholder: "Digite para buscar...", autoComplete: "off", className: styles$5.inputPadrao, style: {
1654
+ width: '100%',
1655
+ paddingLeft: showIcon ? '30px' : '0',
1656
+ backgroundColor: (corFundo ? corFundo : ''),
1657
+ borderRadius: (borderRadius ? "".concat(borderRadius, "px") : ''),
1658
+ border: (border ? border : '')
1659
+ } })),
1654
1660
  showOptions && filteredOptions.length > 0 && (React$2.createElement("ul", { style: {
1655
1661
  position: 'absolute',
1656
1662
  width: '100%',