componenteshospitais 3.1.1 → 3.1.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
@@ -334,7 +334,7 @@ var getArrowColorByEmpresa = function (empresa) {
334
334
  }
335
335
  };
336
336
  var SelectField = function (_a) {
337
- var id = _a.id, name = _a.name, options = _a.options, value = _a.value, onChange = _a.onChange, label = _a.label, optionDefault = _a.optionDefault, largura = _a.largura, disabled = _a.disabled, multiple = _a.multiple, required = _a.required, corFundo = _a.corFundo, corLabel = _a.corLabel, empresa = _a.empresa, borderRadius = _a.borderRadius, border = _a.border;
337
+ var id = _a.id, name = _a.name, options = _a.options, value = _a.value, onChange = _a.onChange, label = _a.label, optionDefault = _a.optionDefault, largura = _a.largura, disabled = _a.disabled, multiple = _a.multiple, required = _a.required, corFundo = _a.corFundo, corLabel = _a.corLabel, empresa = _a.empresa, borderRadius = _a.borderRadius, border = _a.border, size = _a.size;
338
338
  var handleSelectChange = function (e) {
339
339
  if (multiple) {
340
340
  var selectedOptions = Array.from(e.target.selectedOptions, function (option) { return option.value; });
@@ -348,7 +348,7 @@ var SelectField = function (_a) {
348
348
  var arrowSvg = encodeURIComponent("\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"".concat(arrowColor, "\">\n <path fill-rule=\"evenodd\" d=\"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z\" clip-rule=\"evenodd\"/>\n </svg>\n "));
349
349
  return (React.createElement("div", { className: styles$2["empresa".concat(empresa)] },
350
350
  label && React.createElement("label", { htmlFor: id, style: { color: corLabel ? corLabel : '' } }, label),
351
- React.createElement("select", { id: id, name: name, className: styles$2.selectPadrao, value: value, onChange: handleSelectChange, style: {
351
+ React.createElement("select", { id: id, name: name, className: styles$2.selectPadrao, value: value, size: size, onChange: handleSelectChange, style: {
352
352
  width: largura ? "".concat(largura) : '',
353
353
  backgroundColor: corFundo ? corFundo : '',
354
354
  backgroundImage: "url(\"data:image/svg+xml,".concat(arrowSvg, "\")"),
package/dist/esm/index.js CHANGED
@@ -332,7 +332,7 @@ var getArrowColorByEmpresa = function (empresa) {
332
332
  }
333
333
  };
334
334
  var SelectField = function (_a) {
335
- var id = _a.id, name = _a.name, options = _a.options, value = _a.value, onChange = _a.onChange, label = _a.label, optionDefault = _a.optionDefault, largura = _a.largura, disabled = _a.disabled, multiple = _a.multiple, required = _a.required, corFundo = _a.corFundo, corLabel = _a.corLabel, empresa = _a.empresa, borderRadius = _a.borderRadius, border = _a.border;
335
+ var id = _a.id, name = _a.name, options = _a.options, value = _a.value, onChange = _a.onChange, label = _a.label, optionDefault = _a.optionDefault, largura = _a.largura, disabled = _a.disabled, multiple = _a.multiple, required = _a.required, corFundo = _a.corFundo, corLabel = _a.corLabel, empresa = _a.empresa, borderRadius = _a.borderRadius, border = _a.border, size = _a.size;
336
336
  var handleSelectChange = function (e) {
337
337
  if (multiple) {
338
338
  var selectedOptions = Array.from(e.target.selectedOptions, function (option) { return option.value; });
@@ -346,7 +346,7 @@ var SelectField = function (_a) {
346
346
  var arrowSvg = encodeURIComponent("\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 20 20\" fill=\"".concat(arrowColor, "\">\n <path fill-rule=\"evenodd\" d=\"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z\" clip-rule=\"evenodd\"/>\n </svg>\n "));
347
347
  return (React.createElement("div", { className: styles$2["empresa".concat(empresa)] },
348
348
  label && React.createElement("label", { htmlFor: id, style: { color: corLabel ? corLabel : '' } }, label),
349
- React.createElement("select", { id: id, name: name, className: styles$2.selectPadrao, value: value, onChange: handleSelectChange, style: {
349
+ React.createElement("select", { id: id, name: name, className: styles$2.selectPadrao, value: value, size: size, onChange: handleSelectChange, style: {
350
350
  width: largura ? "".concat(largura) : '',
351
351
  backgroundColor: corFundo ? corFundo : '',
352
352
  backgroundImage: "url(\"data:image/svg+xml,".concat(arrowSvg, "\")"),
@@ -20,6 +20,7 @@ export interface SelectComponentProps {
20
20
  empresa?: '1' | '2' | '3' | '4' | '5';
21
21
  borderRadius?: string;
22
22
  border?: string;
23
+ size?: number;
23
24
  }
24
25
  declare const SelectField: React.FC<SelectComponentProps>;
25
26
  export default SelectField;
@@ -10,7 +10,7 @@ export interface TableStandardProps {
10
10
  onDownloadClick?: (rowId: string) => void;
11
11
  onViewClick?: (rowId: string) => void;
12
12
  showActionColumn?: boolean;
13
- showDownloadButton: boolean | ((rowId: string) => boolean) | undefined;
13
+ showDownloadButton?: boolean | ((rowId: string) => boolean) | undefined;
14
14
  showExcelDownloadButton?: boolean;
15
15
  showViewButton?: boolean;
16
16
  cor?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "componenteshospitais",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -23,6 +23,7 @@ export interface SelectComponentProps {
23
23
  empresa?: '1' | '2' | '3' | '4' | '5';
24
24
  borderRadius?: string;
25
25
  border?: string;
26
+ size?: number;
26
27
  }
27
28
 
28
29
  // Função para mapear empresa com a cor da seta
@@ -53,7 +54,8 @@ const SelectField: React.FC<SelectComponentProps> = ({
53
54
  corLabel,
54
55
  empresa,
55
56
  borderRadius,
56
- border
57
+ border,
58
+ size,
57
59
  }) => {
58
60
 
59
61
  const handleSelectChange = (e: React.ChangeEvent<HTMLSelectElement>) => {
@@ -81,6 +83,7 @@ const SelectField: React.FC<SelectComponentProps> = ({
81
83
  name={name}
82
84
  className={styles.selectPadrao}
83
85
  value={value}
86
+ size={size}
84
87
  onChange={handleSelectChange}
85
88
  style={{
86
89
  width: largura ? `${largura}` : '',
@@ -15,7 +15,7 @@ export interface TableStandardProps {
15
15
  onDownloadClick?: (rowId: string) => void;
16
16
  onViewClick?: (rowId: string) => void;
17
17
  showActionColumn?: boolean;
18
- showDownloadButton: boolean | ((rowId: string) => boolean) | undefined;
18
+ showDownloadButton?: boolean | ((rowId: string) => boolean) | undefined;
19
19
  showExcelDownloadButton?: boolean;
20
20
  showViewButton?: boolean;
21
21
  cor?: boolean;