pge-front-common 14.2.5-beta.4 → 14.2.5-beta.6

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.
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { RadioButtonProps } from "./radioButton.types";
3
+ export declare const RadioButton: ({ name, label, value, checked, message, textError, hasError, required, disabled, onChange, customClass, id, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, ...props }: RadioButtonProps) => React.JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import RadioButton from "./RadioButton";
3
+ declare const meta: Meta<typeof RadioButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const Checked: Story;
8
+ export declare const WithError: Story;
9
+ export declare const Disabled: Story;
10
+ export declare const Required: Story;
11
+ export declare const WithoutLabel: Story;
@@ -0,0 +1,16 @@
1
+ import { ChangeEvent, InputHTMLAttributes, ReactNode } from "react";
2
+ export interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "checked" | "accept" | "alt" | "capture" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "pattern" | "placeholder" | "readOnly" | "size" | "src" | "step" | "width"> {
3
+ name: string;
4
+ label?: ReactNode;
5
+ value: string;
6
+ checked?: boolean;
7
+ hasError?: boolean;
8
+ textError?: string;
9
+ message?: string;
10
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
11
+ customClass?: string;
12
+ required?: boolean;
13
+ disabled?: boolean;
14
+ "aria-label"?: string;
15
+ "aria-describedby"?: string;
16
+ }
package/lib/index.d.ts CHANGED
@@ -446,6 +446,24 @@ type OptionsProps$3 = {
446
446
 
447
447
  declare const RadioGroupBase: ({ name, label, value, options, message, textError, hasError, orientation, required, disabled, onInput, customClass, ...props }: RadioGroupBaseProps) => React__default.JSX.Element;
448
448
 
449
+ interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onChange" | "type" | "checked" | "accept" | "alt" | "capture" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "list" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "pattern" | "placeholder" | "readOnly" | "size" | "src" | "step" | "width"> {
450
+ name: string;
451
+ label?: ReactNode;
452
+ value: string;
453
+ checked?: boolean;
454
+ hasError?: boolean;
455
+ textError?: string;
456
+ message?: string;
457
+ onChange: (event: ChangeEvent<HTMLInputElement>) => void;
458
+ customClass?: string;
459
+ required?: boolean;
460
+ disabled?: boolean;
461
+ "aria-label"?: string;
462
+ "aria-describedby"?: string;
463
+ }
464
+
465
+ declare const RadioButton: ({ name, label, value, checked, message, textError, hasError, required, disabled, onChange, customClass, id, "aria-label": ariaLabel, "aria-describedby": ariaDescribedBy, ...props }: RadioButtonProps) => React__default.JSX.Element;
466
+
449
467
  interface HeaderProps$1 {
450
468
  isRHDigital?: boolean;
451
469
  isHonorarios?: boolean;
@@ -1042,4 +1060,4 @@ declare const IconUpArrow: (props?: SVGProps<SVGSVGElement>) => React__default.J
1042
1060
 
1043
1061
  declare function installPrimeReactStyles(): void;
1044
1062
 
1045
- export { Accordion, AccordionItem, type AccordionItemProps, BasicSelect, Blanket, BoxError, BoxSuccess, Button, type ButtonProps, Checkbox, Chip, type ChipProps, type Column, CommonDotIcon, DateInput, Dropdown, Fieldset, type FieldsetProps, FileUpload, FloatingMenu, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconCLose, IconCalculate, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDebitoFiscal, IconDelete, IconDotsVertical, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLogout, IconMail, IconNewTab, IconParcelamento, IconPayment, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconRightDirection, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconTwoUsers, IconTwoUsersSearch, IconUpAndDownArror, IconUpArrow, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconUsers, IconView, IconVisibility, IconWarning, InformativeBox, type InformativeBoxProps, InputBase, type InputProps, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, type OptionsProps$2 as OptionsProps, OverlayLoadingSpinner, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, ProgressCircle, type ProgressCircleProps, RadioGroupBase, type RadioGroupBaseProps, SelectDefault, type SelectDefaultProps, SelectMult, type SelectMultProps, SkeletonLoader, Switch, Table, TableBody, TableCell, TableComponent, type TableComponentProps, TableFooter, TableHeader, TableRow, TextareaBase, type TextareaBaseProps, Title, Tooltip, TooltipWithPortal, TreeSelect, type TreeSelectOptions, type TreeSelectProps, installPrimeReactStyles };
1063
+ export { Accordion, AccordionItem, type AccordionItemProps, BasicSelect, Blanket, BoxError, BoxSuccess, Button, type ButtonProps, Checkbox, Chip, type ChipProps, type Column, CommonDotIcon, DateInput, Dropdown, Fieldset, type FieldsetProps, FileUpload, FloatingMenu, FooterPge as Footer, Header, HeaderPge, IconAdd, IconAddCell, IconArrowExpland, IconArrowLeft, IconArrowRecall, IconArrowRight, IconCLose, IconCalculate, IconCalendar, IconCertidaoRegularidade, IconCheck, IconCheckCircle, IconCircleExpland, IconCircleRecall, IconDebitoFiscal, IconDelete, IconDotsVertical, IconDownload, IconEdit, IconEmissaoDarj, IconEventAvaliable, IconExclude, IconHourglass, IconInfoRound, IconInvisibility, IconLeftDirection, IconLogout, IconMail, IconNewTab, IconParcelamento, IconPayment, IconPdf, IconPrint, IconProfile, IconQuestionMark, IconRemove, IconRightDirection, IconSearch, IconSwap, IconTriangleExpand, IconTriangleRecall, IconTwoUsers, IconTwoUsersSearch, IconUpAndDownArror, IconUpArrow, IconUpload, IconUploadFile, IconUploadFile2, IconUploadV2, IconUsers, IconView, IconVisibility, IconWarning, InformativeBox, type InformativeBoxProps, InputBase, type InputProps, LoadingSpinner, Menu, MenuAction, MenuList, Modal, ModalBody, ModalFooter, ModalHeader, ModalUI, Option, type OptionsProps$2 as OptionsProps, OverlayLoadingSpinner, PaginationTable, Pagination as PaginationV2, PasswordInput, PgeButton, ProgressCircle, type ProgressCircleProps, RadioButton, type RadioButtonProps, RadioGroupBase, type RadioGroupBaseProps, SelectDefault, type SelectDefaultProps, SelectMult, type SelectMultProps, SkeletonLoader, Switch, Table, TableBody, TableCell, TableComponent, type TableComponentProps, TableFooter, TableHeader, TableRow, TextareaBase, type TextareaBaseProps, Title, Tooltip, TooltipWithPortal, TreeSelect, type TreeSelectOptions, type TreeSelectProps, installPrimeReactStyles };