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.
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { JSX } from "react";
2
2
  export interface IFuncionalidade {
3
3
  id: number;
4
4
  nome: string;
@@ -1,13 +1,13 @@
1
- import React, { ReactNode } from "react";
2
- declare const Option: (props: any) => React.JSX.Element;
3
- declare const MenuList: (props: any) => React.JSX.Element;
4
- declare const Menu: (props: JSX.IntrinsicElements["div"]) => React.JSX.Element;
5
- declare const Blanket: (props: JSX.IntrinsicElements["div"]) => React.JSX.Element;
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
- }) => React.JSX.Element;
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[]) => void;
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) => React__default.JSX.Element;
582
- declare const MenuList: (props: any) => React__default.JSX.Element;
583
- declare const Menu: (props: JSX.IntrinsicElements["div"]) => React__default.JSX.Element;
584
- declare const Blanket: (props: JSX.IntrinsicElements["div"]) => React__default.JSX.Element;
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
- }) => React__default.JSX.Element;
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[]) => void;
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) { return (itemRefs.current[index] = el); }, onKeyDown: function (e) {
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();