@giro-ds/react 1.0.4 → 1.0.5

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/dist/index.d.ts CHANGED
@@ -239,7 +239,7 @@ interface DatePickerProps {
239
239
  'data-testid'?: string;
240
240
  }
241
241
 
242
- declare const _default: React__default.NamedExoticComponent<DatePickerProps>;
242
+ declare const _default$1: React__default.NamedExoticComponent<DatePickerProps>;
243
243
 
244
244
  interface DialogProps {
245
245
  children?: ReactNode;
@@ -849,29 +849,32 @@ interface TablePaginationProps {
849
849
  }
850
850
  declare const TablePagination: React__default.FC<TablePaginationProps>;
851
851
 
852
- interface TextFieldProps {
853
- name?: string;
854
- className?: string;
855
- value?: string | number;
852
+ type TextFieldType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url';
853
+ type TooltipPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
854
+ interface TextFieldProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value' | 'type'> {
855
+ /** Controlled value */
856
+ value?: string;
857
+ /** Change handler - receives string value */
858
+ onChange?: (value: string) => void;
859
+ /** Label text */
856
860
  label?: string;
857
- placeholder?: string;
858
- type?: string;
859
- onChange?: (value: string | number) => void;
860
- disabled?: boolean;
861
- maxLength?: number;
862
- required?: boolean;
863
- helper?: boolean;
861
+ /** Input type */
862
+ type?: TextFieldType;
863
+ /** Helper text (shown below input) */
864
864
  helperText?: string;
865
+ /** Show tooltip with info icon */
865
866
  tooltip?: boolean;
867
+ /** Tooltip content */
866
868
  tooltipText?: string;
867
- positionTooltip?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
869
+ /** Tooltip position */
870
+ positionTooltip?: TooltipPosition;
871
+ /** Custom error message for validation */
868
872
  errorMessage?: string;
869
- trailingIcon?: boolean;
870
- id?: string;
873
+ /** Leading icon */
871
874
  icon?: React__default.ReactNode;
872
875
  }
873
876
 
874
- declare const MemoizedTextField: React__default.NamedExoticComponent<TextFieldProps>;
877
+ declare const _default: React__default.NamedExoticComponent<TextFieldProps & React__default.RefAttributes<HTMLInputElement>>;
875
878
 
876
879
  type ToastType = 'success' | 'alert' | 'info';
877
880
  interface ToastMessage {
@@ -1042,5 +1045,5 @@ declare function useInfiniteScroll({ status, page, lastPage, onLoadMore, thresho
1042
1045
 
1043
1046
  declare const normalizeText: (text: React.ReactNode) => string;
1044
1047
 
1045
- export { Avatar, Badge, Button, MemoizedCalendar as Calendar, Callout, MemoizedCheckbox as Checkbox, CheckboxRadix, MemoizedChips as Chips, Container, _default as DatePicker, MemoizedDialog as Dialog, Drawer, MemoizedDropdown as Dropdown, Filter, ListItem, Menu, MenuRadix, memorizedQuantity as Quantity, MemoizedRadio as Radio, RadioRadix, Search, Select, SelectField, SelectRadix, Table, TableHeader, TablePagination, MemoizedTextField as TextField, ToastProvider as Toast, ToastProvider, Tooltip, VerificationCode, normalizeText, useApiSimulation, useInfiniteScroll, useToast };
1048
+ export { Avatar, Badge, Button, MemoizedCalendar as Calendar, Callout, MemoizedCheckbox as Checkbox, CheckboxRadix, MemoizedChips as Chips, Container, _default$1 as DatePicker, MemoizedDialog as Dialog, Drawer, MemoizedDropdown as Dropdown, Filter, ListItem, Menu, MenuRadix, memorizedQuantity as Quantity, MemoizedRadio as Radio, RadioRadix, Search, Select, SelectField, SelectRadix, Table, TableHeader, TablePagination, _default as TextField, ToastProvider as Toast, ToastProvider, Tooltip, VerificationCode, normalizeText, useApiSimulation, useInfiniteScroll, useToast };
1046
1049
  export type { AvatarProps, BadgeProps, ButtonProps, CalendarItem, CalendarProps, CalloutProps, CheckboxProps, CheckboxRadixProps, ChipsProps, ContainerProps, DateFormat, DatePickerProps, DayItem, DialogProps, DrawerProps, DropdownItem, DropdownProps, DropdownType, EmptyItem, FilterItem, FilterProps, ListItemProps, Locale, MenuItem, MenuProps, MenuRadixProps, QuantityProps, RadioProps$1 as RadioProps, RadioProps as RadioRadixItemProps, RadioGroupProps as RadioRadixProps, SearchProps, SelectFieldProps, SelectOption, SelectProps, SelectRadixProps, TableHeaderProps, TablePaginationProps, TableProps, TextFieldProps, ToastContextType, ToastMessage, ToastOptions, ToastType, TooltipProps, VerificationCodeProps, YearItem };