@optigrit/optigrit-ui 0.0.18 → 0.0.19

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.
@@ -123,6 +123,32 @@ declare function isValidPhoneLength(phone: string, country?: Country): {
123
123
  };
124
124
  declare function validatePhoneNumber(phone: string, country?: Country): string | null;
125
125
 
126
+ type DatePickerValue = Date | string | null;
127
+ type DatePickerProps = {
128
+ value?: DatePickerValue;
129
+ onChangeValue?: (date: Date | null, dateString: string) => void;
130
+ minDate?: Date | string;
131
+ maxDate?: Date | string;
132
+ format?: string;
133
+ optionsPosition?: PopoverProps['position'];
134
+ disabled?: boolean;
135
+ clearable?: boolean;
136
+ } & Omit<InputFieldProps, 'value' | 'readOnly' | 'onChange' | 'onChangeValue'>;
137
+ declare function DatePicker(props: DatePickerProps): react_jsx_runtime.JSX.Element;
138
+
139
+ type TimePickerValue = string | Date | null;
140
+ type TimePickerProps = {
141
+ value?: TimePickerValue;
142
+ onChangeValue?: (timeString: string, date: Date | null) => void;
143
+ format?: '12h' | '24h';
144
+ useSeconds?: boolean;
145
+ minuteInterval?: number;
146
+ optionsPosition?: PopoverProps['position'];
147
+ disabled?: boolean;
148
+ clearable?: boolean;
149
+ } & Omit<InputFieldProps, 'value' | 'readOnly' | 'onChange' | 'onChangeValue'>;
150
+ declare function TimePicker(props: TimePickerProps): react_jsx_runtime.JSX.Element;
151
+
126
152
  type TabListProps = {
127
153
  activeTabValue: string;
128
154
  onChangeActiveTabValue: (value: string) => void;
@@ -1143,4 +1169,4 @@ type FlagProps = HTMLAttributes<HTMLSpanElement> & {
1143
1169
  };
1144
1170
  declare function FlagIcon(props: FlagProps): react_jsx_runtime.JSX.Element;
1145
1171
 
1146
- export { Button, type ButtonColor, type ButtonProps, type ButtonRoundness, type ButtonSize, type ButtonVariant, Card, CardContent, type CardContentProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Carousel, type CarouselItem, type CarouselProps, type Column, type Country, DataTable, type DataTableProps, Dialog, DialogContent, DialogFooter, DialogHeader, type DialogProps, Drawer, DrawerContent, DrawerFooter, DrawerHeader, type DrawerProps, FlagIcon, type FlagName, type FlagProps, IconButton, type IconButtonProps, InputField, type InputFieldProps, MultiSelect, type MultiSelectProps, SearchBar, type SearchBarProps, Select, type SelectProps, Separator, type SeparatorProps, TabList, type TabListProps, TabPanel, type TabPanelProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableContainer, type TableContainerProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, type TablePaginationConfig, type TableProps, TableRow, type TableRowProps, TelInput, type TelInputProps, type TelInputValue, Tooltip, type TooltipProps, handleAlert, handleError, isValidPhoneChars, isValidPhoneLength, sanitizePhoneNumber, validatePhoneNumber };
1172
+ export { Button, type ButtonColor, type ButtonProps, type ButtonRoundness, type ButtonSize, type ButtonVariant, Card, CardContent, type CardContentProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Carousel, type CarouselItem, type CarouselProps, type Column, type Country, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, Dialog, DialogContent, DialogFooter, DialogHeader, type DialogProps, Drawer, DrawerContent, DrawerFooter, DrawerHeader, type DrawerProps, FlagIcon, type FlagName, type FlagProps, IconButton, type IconButtonProps, InputField, type InputFieldProps, MultiSelect, type MultiSelectProps, SearchBar, type SearchBarProps, Select, type SelectProps, Separator, type SeparatorProps, TabList, type TabListProps, TabPanel, type TabPanelProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableContainer, type TableContainerProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, type TablePaginationConfig, type TableProps, TableRow, type TableRowProps, TelInput, type TelInputProps, type TelInputValue, TimePicker, type TimePickerProps, type TimePickerValue, Tooltip, type TooltipProps, handleAlert, handleError, isValidPhoneChars, isValidPhoneLength, sanitizePhoneNumber, validatePhoneNumber };