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/cjs/index.js +10 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +10 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/Busca.d.ts +2 -0
- package/dist/types/components/Button.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Busca.tsx +10 -2
- package/src/components/Button.tsx +4 -3
package/dist/cjs/index.js
CHANGED
|
@@ -122,9 +122,9 @@ var styles$5 = {"inputSubmit":"input-module_inputSubmit__21-Pj","inputWrapper":"
|
|
|
122
122
|
styleInject(css_248z$5);
|
|
123
123
|
|
|
124
124
|
var Button = function (_a) {
|
|
125
|
-
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;
|
|
125
|
+
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;
|
|
126
126
|
var empresaClass = styles$5["empresa".concat(empresa)];
|
|
127
|
-
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 } }))));
|
|
127
|
+
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 }))));
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
/******************************************************************************
|
|
@@ -1608,7 +1608,7 @@ var SelectField = function (_a) {
|
|
|
1608
1608
|
};
|
|
1609
1609
|
|
|
1610
1610
|
var Busca = function (_a) {
|
|
1611
|
-
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;
|
|
1611
|
+
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;
|
|
1612
1612
|
var _c = React$2.useState(options), filteredOptions = _c[0], setFilteredOptions = _c[1];
|
|
1613
1613
|
var _d = React$2.useState(false), showOptions = _d[0], setShowOptions = _d[1];
|
|
1614
1614
|
var _e = React$2.useState(''), inputValue = _e[0], setInputValue = _e[1];
|
|
@@ -1652,7 +1652,13 @@ var Busca = function (_a) {
|
|
|
1652
1652
|
label && React$2.createElement("label", { htmlFor: "codigoCbhpm", style: { color: corLabel ? corLabel : '' } }, label),
|
|
1653
1653
|
React$2.createElement("div", { style: { position: 'relative', display: 'flex', alignItems: 'center', gap: '10px', width: '100%' } },
|
|
1654
1654
|
showIcon && React$2.createElement(FaSearch, { className: styles$5.searchIcon }),
|
|
1655
|
-
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: {
|
|
1655
|
+
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: {
|
|
1656
|
+
width: '100%',
|
|
1657
|
+
paddingLeft: showIcon ? '30px' : '0',
|
|
1658
|
+
backgroundColor: (corFundo ? corFundo : ''),
|
|
1659
|
+
borderRadius: (borderRadius ? "".concat(borderRadius, "px") : ''),
|
|
1660
|
+
border: (border ? border : '')
|
|
1661
|
+
} })),
|
|
1656
1662
|
showOptions && filteredOptions.length > 0 && (React$2.createElement("ul", { style: {
|
|
1657
1663
|
position: 'absolute',
|
|
1658
1664
|
width: '100%',
|