pge-front-common 14.2.8 → 14.2.10

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.
@@ -13,4 +13,5 @@ export declare const ExibicaoEmChips: Story;
13
13
  export declare const ComIcones: Story;
14
14
  export declare const ComIconesMultiplo: Story;
15
15
  export declare const SemOpcoes: Story;
16
+ export declare const IncluirSubstituto: Story;
16
17
  export declare const TodosOsCenarios: Story;
package/lib/index.d.ts CHANGED
@@ -93,6 +93,8 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
93
93
  } & {
94
94
  style?: React__default.CSSProperties | undefined;
95
95
  disabled?: boolean | undefined | undefined;
96
+ className?: string | undefined | undefined;
97
+ value?: string | number | readonly string[] | undefined;
96
98
  form?: string | undefined | undefined;
97
99
  formAction?: string | ((formData: FormData) => void | Promise<void>) | undefined;
98
100
  formEncType?: string | undefined | undefined;
@@ -101,7 +103,6 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
101
103
  formTarget?: string | undefined | undefined;
102
104
  name?: string | undefined | undefined;
103
105
  type?: "submit" | "reset" | "button" | undefined | undefined;
104
- value?: string | number | readonly string[] | undefined;
105
106
  onChange?: React__default.FormEventHandler<HTMLButtonElement> | undefined;
106
107
  defaultChecked?: boolean | undefined | undefined;
107
108
  defaultValue?: string | number | readonly string[] | undefined;
@@ -110,7 +111,6 @@ declare const FileUpload: React__default.ForwardRefExoticComponent<{
110
111
  accessKey?: string | undefined | undefined;
111
112
  autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
112
113
  autoFocus?: boolean | undefined | undefined;
113
- className?: string | undefined | undefined;
114
114
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
115
115
  contextMenu?: string | undefined | undefined;
116
116
  dir?: string | undefined | undefined;
package/lib/index.esm.js CHANGED
@@ -1187,7 +1187,7 @@ function FooterPge(_a) {
1187
1187
  React__default.createElement("span", { className: styles$q.copyrightText }, "2025 \u00A9 Copyright - Todos os direitos reservados."))));
1188
1188
  }
1189
1189
 
1190
- var css_248z$t = ".styles-module__accordion___BdbSg {\r\n border-radius: 15px;\r\n width: 100%;\r\n}\r\n\r\n.styles-module__accordionItem___AcHG1 {\r\n background-color: var(--background-color);\r\n border-radius: 15px;\r\n margin-bottom: 10px;\r\n}\r\n\r\n.styles-module__header___0zXFp {\r\n border-radius: 15px;\r\n margin: 0;\r\n}\r\n\r\n.styles-module__accordionButton___5W70F {\r\n width: 100%;\r\n background-color: var(--background-color);\r\n box-shadow: none;\r\n border: 1px solid var(--light-grey-color);\r\n font-size: var(--font-size-20);\r\n font-weight: var(--input-font-weight);\r\n line-height: 30px;\r\n text-align: left;\r\n color: var(--primary-color);\r\n padding: 12px 16px;\r\n position: relative;\r\n cursor: pointer;\r\n transition: all 0.3s ease;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n\r\n.styles-module__collapsed___7DjAi {\r\n border-radius: 15px;\r\n}\r\n\r\n.styles-module__accordionButton___5W70F:focus {\r\n border: 2px solid var(--color-weaker-blue);\r\n outline: none;\r\n box-shadow: none;\r\n}\r\n\r\n.styles-module__accordionButton___5W70F.styles-module__collapsed___7DjAi:focus {\r\n border-radius: 15px;\r\n}\r\n\r\n.styles-module__accordionButton___5W70F:not(.styles-module__collapsed___7DjAi):focus {\r\n border: 1px solid var();\r\n outline: none;\r\n box-shadow: none;\r\n border-top-left-radius: 15px;\r\n border-top-right-radius: 15px;\r\n}\r\n\r\n.styles-module__accordionIcon___s2ytc {\r\n display: inline-block;\r\n width: 24px;\r\n height: 24px;\r\n background-image: url('data:image/svg+xml,<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"24\" height=\"24\" rx=\"12\" fill=\"%23005A92\" fill-opacity=\"0.2\"/><path d=\"M12.5 17L6 10.5135L7.51667 9L12.5 13.973L17.4833 9L19 10.5135L12.5 17Z\" fill=\"white\"/></svg>');\r\n transition: transform 0.3s ease-in-out;\r\n transform: rotate(0deg);\r\n flex-shrink: 0;\r\n}\r\n\r\n.styles-module__collapsed___7DjAi .styles-module__accordionIcon___s2ytc {\r\n transform: rotate(180deg);\r\n}\r\n\r\n.styles-module__accordionCollapse___g1CA6 {\r\n max-height: 0;\r\n overflow: hidden;\r\n transition: max-height 0.2s ease-out;\r\n}\r\n\r\n.styles-module__accordionCollapse___g1CA6.styles-module__show___xeyUH {\r\n max-height: fit-content;\r\n}\r\n\r\n.styles-module__accordionBody___goPRU {\r\n background-color: var(--background-color);\r\n border: 1px solid var(--light-grey-color);\r\n border-top: none;\r\n border-bottom-left-radius: 15px;\r\n border-bottom-right-radius: 15px;\r\n padding: 16px;\r\n}\r\n";
1190
+ var css_248z$t = ".styles-module__accordion___BdbSg {\r\n border-radius: 15px;\r\n width: 100%;\r\n}\r\n\r\n.styles-module__accordionItem___AcHG1 {\r\n background-color: var(--background-color);\r\n border-radius: 15px;\r\n margin-bottom: 10px;\r\n}\r\n\r\n.styles-module__header___0zXFp {\r\n border-radius: 15px;\r\n margin: 0;\r\n}\r\n\r\n.styles-module__accordionButton___5W70F {\r\n width: 100%;\r\n background-color: var(--background-color);\r\n box-shadow: none;\r\n border: 1px solid var(--light-grey-color);\r\n font-size: var(--font-size-20);\r\n font-weight: var(--input-font-weight);\r\n line-height: 30px;\r\n text-align: left;\r\n color: var(--primary-color);\r\n padding: 12px 16px;\r\n position: relative;\r\n cursor: pointer;\r\n transition: all 0.3s ease;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n}\r\n\r\n.styles-module__collapsed___7DjAi {\r\n border-radius: 15px;\r\n}\r\n\r\n.styles-module__accordionButton___5W70F:focus {\r\n border: 2px solid var(--color-weaker-blue);\r\n outline: none;\r\n box-shadow: none;\r\n}\r\n\r\n.styles-module__accordionButton___5W70F.styles-module__collapsed___7DjAi:focus {\r\n border-radius: 15px;\r\n}\r\n\r\n.styles-module__accordionButton___5W70F:not(.styles-module__collapsed___7DjAi):focus {\r\n border: 1px solid var();\r\n outline: none;\r\n box-shadow: none;\r\n border-top-left-radius: 15px;\r\n border-top-right-radius: 15px;\r\n}\r\n\r\n.styles-module__accordionIcon___s2ytc {\r\n display: inline-block;\r\n width: 24px;\r\n height: 24px;\r\n background-image: url('data:image/svg+xml,<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"24\" height=\"24\" rx=\"12\" fill=\"%23005A92\" fill-opacity=\"0.2\"/><path d=\"M12.5 17L6 10.5135L7.51667 9L12.5 13.973L17.4833 9L19 10.5135L12.5 17Z\" fill=\"white\"/></svg>');\r\n transition: transform 0.3s ease-in-out;\r\n transform: rotate(180deg);\r\n flex-shrink: 0;\r\n}\r\n\r\n.styles-module__collapsed___7DjAi .styles-module__accordionIcon___s2ytc {\r\n transform: rotate(0deg);\r\n}\r\n\r\n.styles-module__accordionCollapse___g1CA6 {\r\n max-height: 0;\r\n overflow: hidden;\r\n transition: max-height 0.2s ease-out;\r\n}\r\n\r\n.styles-module__accordionCollapse___g1CA6.styles-module__show___xeyUH {\r\n max-height: fit-content;\r\n}\r\n\r\n.styles-module__accordionBody___goPRU {\r\n background-color: var(--background-color);\r\n border: 1px solid var(--light-grey-color);\r\n border-top: none;\r\n border-bottom-left-radius: 15px;\r\n border-bottom-right-radius: 15px;\r\n padding: 16px;\r\n}\r\n";
1191
1191
  var styles$p = {"accordion":"styles-module__accordion___BdbSg","accordionItem":"styles-module__accordionItem___AcHG1","header":"styles-module__header___0zXFp","accordionButton":"styles-module__accordionButton___5W70F","collapsed":"styles-module__collapsed___7DjAi","accordionIcon":"styles-module__accordionIcon___s2ytc","accordionCollapse":"styles-module__accordionCollapse___g1CA6","show":"styles-module__show___xeyUH","accordionBody":"styles-module__accordionBody___goPRU"};
1192
1192
  styleInject(css_248z$t);
1193
1193
 
@@ -24116,9 +24116,14 @@ function Modal(_a) {
24116
24116
  var els = contentRef.current.querySelectorAll(ELEMENTOS_COM_FOCO);
24117
24117
  els.length && els[els.length - 1].focus();
24118
24118
  };
24119
- return (React__default.createElement("div", { className: style.modalOverlay, onClick: closeOnClickOutside ? onClose : undefined, role: "presentation" },
24119
+ var handleOverlayClick = function (e) {
24120
+ if (closeOnClickOutside && e.target === e.currentTarget) {
24121
+ onClose();
24122
+ }
24123
+ };
24124
+ return (React__default.createElement("div", { className: style.modalOverlay, onClick: handleOverlayClick, role: "presentation" },
24120
24125
  React__default.createElement("div", { tabIndex: 0, onFocus: moveToLast, "aria-hidden": "true" }),
24121
- React__default.createElement("div", { ref: contentRef, className: "".concat(style.modal, " ").concat(className), role: "dialog", "aria-modal": "true", tabIndex: -1, onClick: function (e) { return e.stopPropagation(); }, onKeyDown: function (e) {
24126
+ React__default.createElement("div", { ref: contentRef, className: "".concat(style.modal, " ").concat(className), role: "dialog", "aria-modal": "true", tabIndex: -1, onKeyDown: function (e) {
24122
24127
  if (e.key === "Escape" && closeOnClickOutside)
24123
24128
  onClose();
24124
24129
  if (e.key === "Escape" && !closeOnClickOutside)
@@ -24647,7 +24652,7 @@ function Fieldset(_a) {
24647
24652
  children)));
24648
24653
  }
24649
24654
 
24650
- var css_248z$2 = ".styles-module__inputContainer___RtwTT {\r\n width: 100%;\r\n color: var(--color-input);\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n}\r\n\r\n.styles-module__inputContainer___RtwTT input {\r\n border-top-left-radius: 8px;\r\n border-bottom-left-radius: 8px;\r\n}\r\n\r\n.styles-module__labelRequired___28CTx::after {\r\n content: \" *\";\r\n color: var(--color-danger);\r\n}\r\n\r\n.styles-module__labelInput___uFjhd {\r\n color: var(--color-label);\r\n line-height: 24px;\r\n font-size: 16px;\r\n bottom: 5px;\r\n font-weight: 700;\r\n}\r\n\r\n.styles-module__restrictionMessage___uLp6K {\r\n color: var(--alert-color);\r\n font-size: var(--font-size-12, 12px);\r\n font-weight: 700;\r\n line-height: 15px;\r\n text-align: left;\r\n margin-left: 8px;\r\n font-family: var(--font-open-sans-serif);\r\n}\r\n\r\n.p-disabled {\r\n background-color: #eeeeee !important;\r\n cursor: not-allowed;\r\n}\r\n\r\n.p-focus {\r\n color: var(--color-gray-medium);\r\n outline: none;\r\n border: 1px solid var(--color-primary);\r\n box-shadow: 0px 0px 0px 2px var(--color-focus-outline);\r\n}\r\n\r\n.p-placeholder {\r\n font-weight: 700;\r\n color: var(--input-placeholder-color);\r\n font-size: var(--font-size-14, 14px);\r\n line-height: 24px;\r\n}\r\n\r\n.p-tree-toggler {\r\n margin-right: 0 !important;\r\n color: inherit !important;\r\n}\r\n\r\n.p-treenode:focus {\r\n box-shadow: inset 0 0 0 0 !important;\r\n}\r\n\r\n.p-inputtext:enabled:focus,\r\n.p-treenode-selectable,\r\n.p-treenode-content {\r\n box-shadow: 0 0 0 0 !important;\r\n}\r\n\r\n.p-checkbox .p-checkbox-box {\r\n border-color: var(--checkbox-border-color) !important;\r\n}\r\n\r\n.p-checkbox .p-checkbox-box.p-highlight,\r\n.p-checkbox.p-indeterminate .p-checkbox-box,\r\n.p-checkbox.p-highlight .p-checkbox-box,\r\n.p-checkbox[data-p-checked=\"true\"] .p-checkbox-box {\r\n border-color: var(--checkbox-checked-bg-color) !important;\r\n background: var(--checkbox-checked-bg-color) !important;\r\n}\r\n\r\n.p-checkbox .p-checkbox-box.p-highlight .p-checkbox-icon,\r\n.p-checkbox.p-indeterminate .p-checkbox-box .p-checkbox-icon,\r\n.p-checkbox.p-highlight .p-checkbox-box .p-checkbox-icon {\r\n color: #ffffff !important;\r\n}\r\n\r\n.p-checkbox .p-checkbox-box.p-highlight .p-icon.p-checkbox-icon,\r\n.p-checkbox.p-indeterminate .p-checkbox-box .p-icon.p-checkbox-icon,\r\n.p-checkbox.p-highlight .p-checkbox-box .p-icon.p-checkbox-icon {\r\n color: #ffffff !important;\r\n}\r\n\r\n.p-checkbox .p-checkbox-box[data-p-highlight=\"true\"] .p-checkbox-icon {\r\n color: #ffffff !important;\r\n}\r\n\r\n.p-checkbox[data-p-checked=\"true\"] .p-checkbox-box .p-checkbox-icon {\r\n color: #ffffff !important;\r\n}\r\n\r\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight,\r\n.p-tree\r\n .p-tree-container\r\n .p-treenode\r\n .p-treenode-content.p-highlight\r\n .p-treenode-icon {\r\n color: #4b5563 !important;\r\n}\r\n\r\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight {\r\n background: #005a921a !important;\r\n}\r\n";
24655
+ var css_248z$2 = ".styles-module__inputContainer___RtwTT {\r\n width: 100%;\r\n color: var(--color-input);\r\n position: relative;\r\n display: flex;\r\n flex-direction: column;\r\n gap: 8px;\r\n}\r\n\r\n.styles-module__inputContainer___RtwTT input {\r\n border-top-left-radius: 8px;\r\n border-bottom-left-radius: 8px;\r\n}\r\n\r\n.styles-module__labelRequired___28CTx::after {\r\n content: \" *\";\r\n color: var(--color-danger);\r\n}\r\n\r\n.styles-module__labelInput___uFjhd {\r\n color: var(--color-label);\r\n line-height: 24px;\r\n font-size: 16px;\r\n bottom: 5px;\r\n font-weight: 700;\r\n}\r\n\r\n.styles-module__restrictionMessage___uLp6K {\r\n color: var(--alert-color);\r\n font-size: var(--font-size-12, 12px);\r\n font-weight: 700;\r\n line-height: 15px;\r\n text-align: left;\r\n margin-left: 8px;\r\n font-family: var(--font-open-sans-serif);\r\n}\r\n\r\n.p-treeselect {\r\n min-height: 48px !important;\r\n}\r\n\r\n.p-treeselect .p-treeselect-label {\r\n line-height: normal !important;\r\n}\r\n\r\n.p-disabled {\r\n background-color: #eeeeee !important;\r\n cursor: not-allowed;\r\n}\r\n\r\n.p-focus {\r\n color: var(--color-gray-medium);\r\n outline: none;\r\n border: 1px solid var(--color-primary);\r\n box-shadow: 0px 0px 0px 2px var(--color-focus-outline);\r\n}\r\n\r\n.p-placeholder {\r\n font-weight: 700;\r\n color: var(--input-placeholder-color);\r\n font-size: var(--font-size-14, 14px);\r\n line-height: 24px;\r\n}\r\n\r\n.p-tree-toggler {\r\n margin-right: 0 !important;\r\n color: inherit !important;\r\n}\r\n\r\n.p-treenode:focus {\r\n box-shadow: inset 0 0 0 0 !important;\r\n}\r\n\r\n.p-inputtext:enabled:focus,\r\n.p-treenode-selectable,\r\n.p-treenode-content {\r\n box-shadow: 0 0 0 0 !important;\r\n}\r\n\r\n.p-checkbox .p-checkbox-box {\r\n border-color: var(--checkbox-border-color) !important;\r\n}\r\n\r\n.p-checkbox .p-checkbox-box.p-highlight,\r\n.p-checkbox.p-indeterminate .p-checkbox-box,\r\n.p-checkbox.p-highlight .p-checkbox-box,\r\n.p-checkbox[data-p-checked=\"true\"] .p-checkbox-box {\r\n border-color: var(--checkbox-checked-bg-color) !important;\r\n background: var(--checkbox-checked-bg-color) !important;\r\n}\r\n\r\n.p-checkbox .p-checkbox-box.p-highlight .p-checkbox-icon,\r\n.p-checkbox.p-indeterminate .p-checkbox-box .p-checkbox-icon,\r\n.p-checkbox.p-highlight .p-checkbox-box .p-checkbox-icon {\r\n color: #ffffff !important;\r\n}\r\n\r\n.p-checkbox .p-checkbox-box.p-highlight .p-icon.p-checkbox-icon,\r\n.p-checkbox.p-indeterminate .p-checkbox-box .p-icon.p-checkbox-icon,\r\n.p-checkbox.p-highlight .p-checkbox-box .p-icon.p-checkbox-icon {\r\n color: #ffffff !important;\r\n}\r\n\r\n.p-checkbox .p-checkbox-box[data-p-highlight=\"true\"] .p-checkbox-icon {\r\n color: #ffffff !important;\r\n}\r\n\r\n.p-checkbox[data-p-checked=\"true\"] .p-checkbox-box .p-checkbox-icon {\r\n color: #ffffff !important;\r\n}\r\n\r\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight,\r\n.p-tree\r\n .p-tree-container\r\n .p-treenode\r\n .p-treenode-content.p-highlight\r\n .p-treenode-icon {\r\n color: #4b5563 !important;\r\n}\r\n\r\n.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight {\r\n background: #005a921a !important;\r\n}\r\n";
24651
24656
  var styles$1 = {"inputContainer":"styles-module__inputContainer___RtwTT","labelRequired":"styles-module__labelRequired___28CTx","labelInput":"styles-module__labelInput___uFjhd","restrictionMessage":"styles-module__restrictionMessage___uLp6K"};
24652
24657
  styleInject(css_248z$2);
24653
24658