pge-front-common 14.2.30 → 14.2.32

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/index.d.ts CHANGED
@@ -235,19 +235,19 @@ type BoxSuccessProps = {
235
235
  };
236
236
  declare const BoxSuccess: ({ message, handleClose }: BoxSuccessProps) => React__default.JSX.Element;
237
237
 
238
- interface Props$2 {
238
+ interface Props$1 {
239
239
  isOpen: boolean;
240
240
  text?: string;
241
241
  }
242
- declare function LoadingSpinner(props: Readonly<Props$2>): React$1.JSX.Element;
242
+ declare function LoadingSpinner(props: Readonly<Props$1>): React$1.JSX.Element;
243
243
 
244
- interface Props$1 {
244
+ interface PaginationTableProps {
245
245
  currentPage: number;
246
246
  countPage: number;
247
247
  itemsVisiblePage?: number;
248
- handleClickPage?: (page: any) => void;
248
+ handleClickPage?: (page: number | string) => void;
249
249
  }
250
- declare const PaginationTable: ({ currentPage, countPage, itemsVisiblePage, handleClickPage, }: Omit<Props$1, "header" | "body" | "footer">) => React__default.JSX.Element;
250
+ declare const PaginationTable: React__default.FC<PaginationTableProps>;
251
251
 
252
252
  interface PaginationProps {
253
253
  countPage: number;
@@ -265,7 +265,7 @@ interface PaginationProps {
265
265
  }[];
266
266
  dropdownDirection?: "down" | "up";
267
267
  }
268
- declare const Pagination: ({ countPage, currentPage, totalItems, itemsPerPage, handleNext, handlePrevious, handleItemPorPage, pagina, handlePage, defaultOptions, dropdownDirection, }: PaginationProps) => React__default.JSX.Element;
268
+ declare const Pagination: React__default.FC<PaginationProps>;
269
269
 
270
270
  interface SelectMultProps {
271
271
  name?: string;
@@ -435,6 +435,31 @@ interface InputBaseProps extends InputHTMLAttributes<HTMLInputElement> {
435
435
 
436
436
  declare const DateInput: ({ restrictionMessage, label, onChange, isError, valueDate, disabled, placeholder, required, inline, selectionMode, enabledDates, view, dateFormat, }: InputBaseProps) => React__default.JSX.Element;
437
437
 
438
+ /**
439
+ * Campo de hora com edição por teclado (`HH:mm` ou 4 dígitos), ícone decorativo e painel em portal
440
+ * (rodas + OK/Cancelar). Ao focar, o painel abre mantendo o foco no input; cliques nas rodas não
441
+ * retiram o foco. O valor controlado é `HH:mm` (24h), exposto em `onChange` como `e.target.value`.
442
+ * Demais atributos de `input` (ex.: `id`, `name`, `aria-*`) repassam ao `<input>`.
443
+ */
444
+ interface TimeInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "value" | "defaultValue" | "onChange"> {
445
+ restrictionMessage?: string;
446
+ label?: string;
447
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
448
+ isError?: boolean;
449
+ /** Valor no formato `HH:mm` (ex.: `09:00`). */
450
+ valueTime?: string | null;
451
+ disabled?: boolean;
452
+ required?: boolean | false;
453
+ /** Intervalo entre opções de minutos (padrão: 5). */
454
+ minutesStep?: number;
455
+ /** Faixa de horas `[início, fim]` inclusive (padrão: `[0, 23]`). */
456
+ hoursRange?: [number, number];
457
+ textoCancelar?: string;
458
+ textoConfirmar?: string;
459
+ }
460
+
461
+ declare const TimeInput: ({ restrictionMessage, label, onChange, isError, valueTime, disabled, placeholder, required, minutesStep, hoursRange: hoursRangeProp, textoCancelar, textoConfirmar, ...inputProps }: TimeInputProps) => React__default.JSX.Element;
462
+
438
463
  interface SelectDefaultProps {
439
464
  name: string;
440
465
  optionsSelect: OptionsProps[];
@@ -813,5 +838,5 @@ declare const IconBloco: ({ className, ...props }: SVGProps<SVGSVGElement>) => R
813
838
 
814
839
  declare function installPrimeReactStyles(): void;
815
840
 
816
- export { Accordion, AccordionItem, BasicSelect, Blanket, BoxError, BoxSuccess, Button, Checkbox, Chip, CommonDotIcon, DateInput, Dropdown, Fieldset, FileUpload, FloatingMenu, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconAlertInfo, IconAnalyze, IconAnalyzeDocument, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconBloco, IconCLose, IconCalculate, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconConfig, IconCopy, IconDebitoFiscal, IconDelete, IconDocumento, IconDotsVertical, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconFluxo, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLista, IconLoadingProgress, IconLogout, IconMail, IconMedalha, IconNewTab, IconParcelamento, IconPayment, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconReport, IconRequerimentoAdm, IconRightDirection, IconRoundAddCell, IconSearch, IconStatement, IconSwap, IconTriangleExpand, IconTriangleRecall, IconTwoUsers, IconTwoUsersSearch, IconUpAndDownArror, IconUpArrow, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconUsers, IconValue, IconView, IconVisibility, IconWarning, InformativeBox, InputBase, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, OverlayLoadingSpinner, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, ProgressCircle, RadioButton, RadioGroupBase, SelectDefault, SelectMult, SkeletonLoader, Switch, Table, TableBody, TableCell, TableComponent, TableFooter, TableHeader, TableRow, TextareaBase, Title, Tooltip, TooltipWithPortal, TreeSelect, installPrimeReactStyles };
817
- export type { AccordionItemProps, ButtonProps, ChipProps, Column, FieldsetProps, InformativeBoxProps, InputProps, OptionsProps$2 as OptionsProps, ProgressCircleProps, RadioButtonProps, RadioGroupBaseProps, SelectDefaultProps, SelectMultProps, TableComponentProps, TextareaBaseProps, TreeSelectOptions, TreeSelectProps };
841
+ export { Accordion, AccordionItem, BasicSelect, Blanket, BoxError, BoxSuccess, Button, Checkbox, Chip, CommonDotIcon, DateInput, Dropdown, Fieldset, FileUpload, FloatingMenu, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconAlertInfo, IconAnalyze, IconAnalyzeDocument, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconBloco, IconCLose, IconCalculate, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconConfig, IconCopy, IconDebitoFiscal, IconDelete, IconDocumento, IconDotsVertical, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconFluxo, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLista, IconLoadingProgress, IconLogout, IconMail, IconMedalha, IconNewTab, IconParcelamento, IconPayment, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconReport, IconRequerimentoAdm, IconRightDirection, IconRoundAddCell, IconSearch, IconStatement, IconSwap, IconTriangleExpand, IconTriangleRecall, IconTwoUsers, IconTwoUsersSearch, IconUpAndDownArror, IconUpArrow, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconUsers, IconValue, IconView, IconVisibility, IconWarning, InformativeBox, InputBase, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, OverlayLoadingSpinner, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, ProgressCircle, RadioButton, RadioGroupBase, SelectDefault, SelectMult, SkeletonLoader, Switch, Table, TableBody, TableCell, TableComponent, TableFooter, TableHeader, TableRow, TextareaBase, TimeInput, Title, Tooltip, TooltipWithPortal, TreeSelect, installPrimeReactStyles };
842
+ export type { AccordionItemProps, ButtonProps, ChipProps, Column, FieldsetProps, InformativeBoxProps, InputProps, OptionsProps$2 as OptionsProps, PaginationProps, PaginationTableProps, ProgressCircleProps, RadioButtonProps, RadioGroupBaseProps, SelectDefaultProps, SelectMultProps, TableComponentProps, TextareaBaseProps, TimeInputProps, TreeSelectOptions, TreeSelectProps };