componenteshospitais 3.0.1 → 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
CHANGED
|
@@ -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%',
|