pge-front-common 14.1.43 → 14.2.1
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/lib/components/DropDown/Dropdown.d.ts +1 -1
- package/lib/components/MultiSelect/components.d.ts +6 -6
- package/lib/components/Select/index.types.d.ts +1 -1
- package/lib/index.d.ts +7 -7
- package/lib/index.esm.js +1 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const Option: (props: any) =>
|
|
3
|
-
declare const MenuList: (props: any) =>
|
|
4
|
-
declare const Menu: (props: JSX.IntrinsicElements["div"]) =>
|
|
5
|
-
declare const Blanket: (props: JSX.IntrinsicElements["div"]) =>
|
|
1
|
+
import { ReactNode, JSX } from "react";
|
|
2
|
+
declare const Option: (props: any) => JSX.Element;
|
|
3
|
+
declare const MenuList: (props: any) => JSX.Element;
|
|
4
|
+
declare const Menu: (props: JSX.IntrinsicElements["div"]) => JSX.Element;
|
|
5
|
+
declare const Blanket: (props: JSX.IntrinsicElements["div"]) => JSX.Element;
|
|
6
6
|
declare const Dropdown: ({ children, isOpen, target, onClose, }: {
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
readonly isOpen: boolean;
|
|
9
9
|
readonly target: ReactNode;
|
|
10
10
|
readonly onClose: () => void;
|
|
11
11
|
readonly selecionados: any[];
|
|
12
|
-
}) =>
|
|
12
|
+
}) => JSX.Element;
|
|
13
13
|
export { Option, MenuList, Menu, Blanket, Dropdown };
|
|
@@ -7,7 +7,7 @@ export interface SelectDefaultProps {
|
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
className?: string;
|
|
9
9
|
label?: string;
|
|
10
|
-
handleChange: (selectedOptions: OptionsProps
|
|
10
|
+
handleChange: (selectedOptions: OptionsProps) => void;
|
|
11
11
|
handleInputChange?: (inputValue: string) => void;
|
|
12
12
|
isDisabled?: boolean;
|
|
13
13
|
isRequired?: boolean;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { InputHTMLAttributes, ReactNode, HtmlHTMLAttributes, ChangeEvent, HTMLAttributes, SVGProps } from 'react';
|
|
2
|
+
import React__default, { InputHTMLAttributes, ReactNode, HtmlHTMLAttributes, ChangeEvent, JSX, HTMLAttributes, SVGProps } from 'react';
|
|
3
3
|
import { Control } from 'react-hook-form';
|
|
4
4
|
import { FormatOptionLabelMeta } from 'react-select';
|
|
5
5
|
import { TreeSelectSelectionKeysType, TreeSelectChangeEvent } from 'primereact/treeselect';
|
|
@@ -578,17 +578,17 @@ interface Props$1 {
|
|
|
578
578
|
}
|
|
579
579
|
declare function OverlayLoadingSpinner({ isOpen, text, mini, }: Readonly<Props$1>): React$1.JSX.Element;
|
|
580
580
|
|
|
581
|
-
declare const Option: (props: any) =>
|
|
582
|
-
declare const MenuList: (props: any) =>
|
|
583
|
-
declare const Menu: (props: JSX.IntrinsicElements["div"]) =>
|
|
584
|
-
declare const Blanket: (props: JSX.IntrinsicElements["div"]) =>
|
|
581
|
+
declare const Option: (props: any) => JSX.Element;
|
|
582
|
+
declare const MenuList: (props: any) => JSX.Element;
|
|
583
|
+
declare const Menu: (props: JSX.IntrinsicElements["div"]) => JSX.Element;
|
|
584
|
+
declare const Blanket: (props: JSX.IntrinsicElements["div"]) => JSX.Element;
|
|
585
585
|
declare const Dropdown: ({ children, isOpen, target, onClose, }: {
|
|
586
586
|
children?: ReactNode;
|
|
587
587
|
readonly isOpen: boolean;
|
|
588
588
|
readonly target: ReactNode;
|
|
589
589
|
readonly onClose: () => void;
|
|
590
590
|
readonly selecionados: any[];
|
|
591
|
-
}) =>
|
|
591
|
+
}) => JSX.Element;
|
|
592
592
|
|
|
593
593
|
interface IFuncionalidade {
|
|
594
594
|
id: number;
|
|
@@ -693,7 +693,7 @@ interface SelectDefaultProps {
|
|
|
693
693
|
placeholder?: string;
|
|
694
694
|
className?: string;
|
|
695
695
|
label?: string;
|
|
696
|
-
handleChange: (selectedOptions: OptionsProps
|
|
696
|
+
handleChange: (selectedOptions: OptionsProps) => void;
|
|
697
697
|
handleInputChange?: (inputValue: string) => void;
|
|
698
698
|
isDisabled?: boolean;
|
|
699
699
|
isRequired?: boolean;
|
package/lib/index.esm.js
CHANGED
|
@@ -911,7 +911,7 @@ var DropDown = function (_a) {
|
|
|
911
911
|
return (React__default.createElement("div", { key: item.id, className: styles$u.menuItem },
|
|
912
912
|
React__default.createElement("button", { className: "".concat(styles$u.primaryDropdown, " ").concat(item.checked
|
|
913
913
|
? styles$u.primaryDropdown__menu
|
|
914
|
-
: styles$u.primaryDropdown__disabled), onClick: function (ev) { return handleMenuClick(item, ev); }, ref: function (el) {
|
|
914
|
+
: styles$u.primaryDropdown__disabled), onClick: function (ev) { return handleMenuClick(item, ev); }, ref: function (el) { itemRefs.current[index] = el; }, onKeyDown: function (e) {
|
|
915
915
|
var _a, _b;
|
|
916
916
|
if (e.key === "ArrowDown") {
|
|
917
917
|
e.preventDefault();
|