@optigrit/optigrit-ui 0.0.18 → 0.0.20

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;
@@ -319,6 +345,40 @@ interface CardFooterProps extends React__default.HTMLAttributes<HTMLDivElement>
319
345
  }
320
346
  declare const CardFooter: React__default.ForwardRefExoticComponent<CardFooterProps & React__default.RefAttributes<HTMLDivElement>>;
321
347
 
348
+ type AvatarProps = IconButtonProps & {
349
+ src?: string;
350
+ alt?: string;
351
+ label?: string;
352
+ labelProps?: Omit<TooltipProps, 'label'>;
353
+ };
354
+ declare function Avatar(props: AvatarProps): react_jsx_runtime.JSX.Element;
355
+
356
+ type AvatarStackProps = {
357
+ avatars: Array<Pick<AvatarProps, 'alt' | 'src' | 'label' | 'color' | 'variant'> & {
358
+ id: string;
359
+ }>;
360
+ max?: number;
361
+ size?: AvatarProps['size'];
362
+ onClickAvatar?: (id: string) => void;
363
+ };
364
+ declare function AvatarStack(props: AvatarStackProps): react_jsx_runtime.JSX.Element;
365
+
366
+ declare const SearchIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
367
+
368
+ declare const CrossIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
369
+
370
+ declare const SuccessIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
371
+
372
+ declare const ErrorIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
373
+
374
+ declare const WarningIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
375
+
376
+ declare const InfoIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
377
+
378
+ declare const CloseIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
379
+
380
+ declare const ChevronDownIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
381
+
322
382
  declare function FlagAD(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
323
383
 
324
384
  declare function FlagAE(props: SVGProps<SVGSVGElement>): react_jsx_runtime.JSX.Element;
@@ -1143,4 +1203,12 @@ type FlagProps = HTMLAttributes<HTMLSpanElement> & {
1143
1203
  };
1144
1204
  declare function FlagIcon(props: FlagProps): react_jsx_runtime.JSX.Element;
1145
1205
 
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 };
1206
+ declare const CalendarIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
1207
+
1208
+ declare const ClockIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
1209
+
1210
+ declare const ChevronLeftIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
1211
+
1212
+ declare const ChevronRightIcon: React__default.FC<React__default.SVGProps<SVGSVGElement>>;
1213
+
1214
+ export { Avatar, type AvatarProps, AvatarStack, type AvatarStackProps, Button, type ButtonColor, type ButtonProps, type ButtonRoundness, type ButtonSize, type ButtonVariant, CalendarIcon, Card, CardContent, type CardContentProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, Carousel, type CarouselItem, type CarouselProps, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ClockIcon, CloseIcon, type Column, type Country, CrossIcon, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerValue, Dialog, DialogContent, DialogFooter, DialogHeader, type DialogProps, Drawer, DrawerContent, DrawerFooter, DrawerHeader, type DrawerProps, ErrorIcon, FlagIcon, type FlagName, type FlagProps, IconButton, type IconButtonProps, InfoIcon, InputField, type InputFieldProps, MultiSelect, type MultiSelectProps, SearchBar, type SearchBarProps, SearchIcon, Select, type SelectProps, Separator, type SeparatorProps, SuccessIcon, 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, WarningIcon, handleAlert, handleError, isValidPhoneChars, isValidPhoneLength, sanitizePhoneNumber, validatePhoneNumber };