@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/components/TextField/TextField.d.ts +2 -2
- package/dist/components/TextField/TextField.types.d.ts +24 -14
- package/dist/components/TextField/__tests__/Textfield.test.d.ts +1 -0
- package/dist/components/TextField/utils/__tests__/validation.test.d.ts +1 -0
- package/dist/components/TextField/utils/index.d.ts +2 -0
- package/dist/components/TextField/utils/validation.d.ts +8 -0
- package/dist/index.cjs +150 -157
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +20 -17
- package/dist/index.esm.js +152 -159
- package/dist/index.esm.js.map +1 -1
- package/dist/shared/Label/index.d.ts +2 -1
- package/dist/styles.css +1 -1
- package/package.json +15 -13
- package/dist/components/TextField/ValidationUtils.d.ts +0 -8
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
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
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
|
-
|
|
858
|
-
type?:
|
|
859
|
-
|
|
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
|
-
|
|
869
|
+
/** Tooltip position */
|
|
870
|
+
positionTooltip?: TooltipPosition;
|
|
871
|
+
/** Custom error message for validation */
|
|
868
872
|
errorMessage?: string;
|
|
869
|
-
|
|
870
|
-
id?: string;
|
|
873
|
+
/** Leading icon */
|
|
871
874
|
icon?: React__default.ReactNode;
|
|
872
875
|
}
|
|
873
876
|
|
|
874
|
-
declare const
|
|
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,
|
|
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 };
|