@medway-ui/core 1.15.6 → 1.16.0

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.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
3
  import * as React from 'react';
4
- import { ComponentProps, ReactNode, HTMLAttributes, ButtonHTMLAttributes, ReactElement, TableHTMLAttributes, ThHTMLAttributes, ComponentPropsWithoutRef } from 'react';
4
+ import { ComponentProps, ReactNode, HTMLAttributes, ButtonHTMLAttributes, ReactElement, ComponentPropsWithoutRef, TableHTMLAttributes, ThHTMLAttributes } from 'react';
5
5
  import { VariantProps } from 'class-variance-authority';
6
6
  import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Avatar as Avatar$1, Progress as Progress$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, DropdownMenu as DropdownMenu$1, Label as Label$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Tabs as Tabs$1, Separator as Separator$1, Tooltip as Tooltip$1, Switch as Switch$1, Toast as Toast$2 } from 'radix-ui';
7
7
 
@@ -158,6 +158,7 @@ interface AutocompleteContentProps {
158
158
  interface AutocompleteItemProps {
159
159
  children: ReactNode;
160
160
  value: string;
161
+ name?: string;
161
162
  className?: string;
162
163
  disabled?: boolean;
163
164
  }
@@ -173,7 +174,7 @@ declare function AutocompleteWrapper({ className, ...props }: HTMLAttributes<HTM
173
174
  declare function AutocompleteTrigger({ className, placeholder, children, ...props }: AutocompleteTriggerProps): react_jsx_runtime.JSX.Element;
174
175
  declare function AutocompleteContentFooter({ className, cancelLabel, confirmLabel, onCancel, onConfirm, }: AutocompleteContentFooterProps): react_jsx_runtime.JSX.Element;
175
176
  declare function AutocompleteContent({ children, className, searchPlaceholder, emptyMessage, }: AutocompleteContentProps): react_jsx_runtime.JSX.Element;
176
- declare function AutocompleteItem({ children, value: itemValue, className, disabled: itemDisabled, }: AutocompleteItemProps): react_jsx_runtime.JSX.Element;
177
+ declare function AutocompleteItem({ children, value: itemValue, name, className, disabled: itemDisabled, }: AutocompleteItemProps): react_jsx_runtime.JSX.Element;
177
178
  declare function AutocompleteGroup({ className, ...props }: ComponentProps<typeof CommandGroup>): react_jsx_runtime.JSX.Element;
178
179
  declare function AutocompleteText({ className, ...props }: AutocompleteTextProps): react_jsx_runtime.JSX.Element;
179
180
 
@@ -320,7 +321,79 @@ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }
320
321
  }): react_jsx_runtime.JSX.Element;
321
322
  declare function DropdownMenuSubContent({ className, ...props }: ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
322
323
 
323
- declare function Input({ className, type, ...props }: ComponentProps<"input">): react_jsx_runtime.JSX.Element;
324
+ type DatePickerValue = Date | null;
325
+ type DateRangeValue = {
326
+ start: Date | null;
327
+ end: Date | null;
328
+ } | null;
329
+ interface DatePickerLabelProps extends HTMLAttributes<HTMLLabelElement> {
330
+ htmlFor?: string;
331
+ }
332
+ interface DatePickerProps extends Omit<ComponentPropsWithoutRef<"button">, "value" | "defaultValue" | "onChange"> {
333
+ value?: DatePickerValue;
334
+ defaultValue?: DatePickerValue;
335
+ onValueChange?: (value: DatePickerValue) => void;
336
+ placeholder?: string;
337
+ disabled?: boolean;
338
+ min?: Date;
339
+ max?: Date;
340
+ format?: (date: Date) => string;
341
+ inputClassName?: string;
342
+ contentClassName?: string;
343
+ yearRange?: {
344
+ start: number;
345
+ end: number;
346
+ };
347
+ showYearSelector?: boolean;
348
+ invalid?: boolean;
349
+ }
350
+ interface DateRangePickerProps extends Omit<ComponentPropsWithoutRef<"button">, "value" | "defaultValue" | "onChange"> {
351
+ value?: DateRangeValue;
352
+ defaultValue?: DateRangeValue;
353
+ onValueChange?: (value: DateRangeValue) => void;
354
+ placeholder?: string;
355
+ disabled?: boolean;
356
+ min?: Date;
357
+ max?: Date;
358
+ format?: (date: Date) => string;
359
+ inputClassName?: string;
360
+ contentClassName?: string;
361
+ yearRange?: {
362
+ start: number;
363
+ end: number;
364
+ };
365
+ showYearSelector?: boolean;
366
+ invalid?: boolean;
367
+ }
368
+ declare function DatePickerWrapper({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
369
+ declare function DatePickerLabel({ className, children, ...props }: DatePickerLabelProps): react_jsx_runtime.JSX.Element;
370
+ declare function DatePickerText({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
371
+ declare function DatePicker({ value, defaultValue, onValueChange, placeholder, disabled, min, max, format, className, inputClassName, contentClassName, yearRange, showYearSelector, invalid, children, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
372
+ declare function DateRangePicker({ value, defaultValue, onValueChange, placeholder, disabled, min, max, format, className, inputClassName, contentClassName, yearRange, showYearSelector, invalid, children, ...props }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
373
+
374
+ type InputType = "text" | "email" | "numeric" | "password";
375
+ type InputSize = "sm" | "lg";
376
+ interface InputProps extends Omit<ComponentProps<"input">, "type" | "size"> {
377
+ type?: InputType;
378
+ size?: InputSize;
379
+ invalid?: boolean;
380
+ iconLeft?: ReactElement;
381
+ iconRight?: ReactElement;
382
+ }
383
+ declare function InputWrapper({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
384
+ declare function InputField({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
385
+ interface InputLabelProps extends HTMLAttributes<HTMLLabelElement> {
386
+ htmlFor?: string;
387
+ }
388
+ declare function InputLabel({ className, children, ...props }: InputLabelProps): react_jsx_runtime.JSX.Element;
389
+ interface InputTextProps extends HTMLAttributes<HTMLSpanElement> {
390
+ invalid?: boolean;
391
+ }
392
+ declare function InputText({ className, invalid, ...props }: InputTextProps): react_jsx_runtime.JSX.Element;
393
+ declare function InputAdornment({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
394
+ declare function InputStartIcon({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
395
+ declare function InputEndIcon({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
396
+ declare function Input({ className, type, size, invalid, iconLeft, iconRight, ...props }: InputProps): react_jsx_runtime.JSX.Element;
324
397
 
325
398
  interface LabelProps extends ComponentProps<typeof Label$1.Root>, VariantProps<typeof labelVariants> {
326
399
  block?: boolean;
@@ -449,20 +522,20 @@ interface RankingQuestionsProps extends HTMLAttributes<HTMLTableCellElement> {
449
522
  answered: number;
450
523
  }
451
524
  interface RankingPerformanceProps extends HTMLAttributes<HTMLTableCellElement> {
452
- questions: number;
453
525
  answered: number;
454
526
  correct: number;
527
+ minQuestions: number;
455
528
  }
456
529
  interface RankingButtonProps extends Omit<ComponentProps<typeof Button>, "iconRight" | "onClick"> {
457
530
  onClick?: () => void;
458
531
  }
459
532
  interface PerformanceData {
460
- percentage: number;
533
+ progress: number;
461
534
  correct: number;
462
535
  answered: number;
463
536
  remainingQuestions: number;
464
537
  }
465
- type PercentageStatusKey = "notStarted" | "minNotReached" | "dominated" | "notDominated";
538
+ type ProgressStatusKey = "notStarted" | "minNotReached" | "dominated" | "notDominated";
466
539
  declare function Ranking({ children, className, ...props }: RankingProps): react_jsx_runtime.JSX.Element;
467
540
  declare function RankingHeader({ children, className, ...props }: RankingHeaderProps): react_jsx_runtime.JSX.Element;
468
541
  declare function RankingHeaderCell({ children, className, tooltip, highlight, ...props }: RankingHeaderCellProps): react_jsx_runtime.JSX.Element;
@@ -480,7 +553,7 @@ declare function RankingAssigneeGroup({ children, className, ...props }: Ranking
480
553
  declare function RankingAssigneeItem({ src, alt, fallback, className, tooltip, ...props }: RankingAssigneeItemProps): react_jsx_runtime.JSX.Element;
481
554
  declare function RankingPriority({ children, className, icon, ...props }: RankingPriorityProps): react_jsx_runtime.JSX.Element;
482
555
  declare function RankingQuestions({ questions, answered, className, ...props }: RankingQuestionsProps): react_jsx_runtime.JSX.Element;
483
- declare function RankingPerformance({ questions, answered, correct, className, ...props }: RankingPerformanceProps): react_jsx_runtime.JSX.Element;
556
+ declare function RankingPerformance({ answered, correct, minQuestions, className, ...props }: RankingPerformanceProps): react_jsx_runtime.JSX.Element;
484
557
  declare function RankingButton({ children, className, onClick, ...props }: RankingButtonProps): react_jsx_runtime.JSX.Element;
485
558
 
486
559
  type RatingSize = "sm" | "md" | "lg";
@@ -813,4 +886,4 @@ declare function useToast(): {
813
886
 
814
887
  declare function useIsMobile(): boolean;
815
888
 
816
- export { Alert, AlertActions, AlertButton, type AlertButtonProps, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, type AlertProps, AlertTitle, type AnimationType, Autocomplete, AutocompleteContent, AutocompleteContentFooter, type AutocompleteContentFooterProps, type AutocompleteContentProps, type AutocompleteContextValue, AutocompleteGroup, AutocompleteItem, type AutocompleteItemProps, type AutocompleteProps, AutocompleteText, AutocompleteTrigger, type AutocompleteTriggerProps, AutocompleteWrapper, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeAnimation, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CardWeek, CardWeekActions, CardWeekBreadcrumb, type CardWeekBreadcrumbProps, CardWeekContainer, CardWeekContent, CardWeekDescription, CardWeekFooter, CardWeekHeader, CardWeekProgress, CardWeekProgressCircle, type CardWeekProps, CardWeekStatus, CardWeekTags, CardWeekText, type CardWeekTextProps, CardWeekTitle, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, Dialog, DialogClose, DialogContainer, type DialogContainerProps, DialogContent, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, type LabelProps, Loading, type LoadingProps, Logo, type LogoProps, LogoShort, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationProps, PaginationRoot, type PercentageStatusKey, type PerformanceData, Progress, ProgressCircle, type ProgressCircleProps, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, Ranking, RankingAssigneeGroup, type RankingAssigneeGroupProps, RankingAssigneeItem, type RankingAssigneeItemProps, RankingAssigneeLabel, type RankingAssigneeLabelProps, RankingAssigneesColumn, type RankingAssigneesColumnProps, RankingBody, RankingButton, type RankingButtonProps, RankingHeader, RankingHeaderCell, type RankingHeaderCellProps, type RankingHeaderProps, RankingItem, type RankingItemProps, RankingNumber, type RankingNumberProps, RankingPerformance, type RankingPerformanceProps, RankingPriority, type RankingPriorityProps, type RankingProps, RankingQuestions, type RankingQuestionsProps, RankingSpecialty, type RankingSpecialtyProps, RankingSuperFocus, type RankingSuperFocusProps, RankingTopic, RankingTopicColumn, type RankingTopicColumnProps, RankingTopicContent, type RankingTopicContentProps, type RankingTopicProps, Rating, RatingButtonVariants, RatingLabelVariants, type RatingProps, type RatingSize, type RatingStarState, RatingStarVariants, ScrollArea, ScrollBar, SegmentControl, SegmentControlContent, SegmentControlList, type SegmentControlListProps, SegmentControlTrigger, type SegmentControlTriggerProps, Select, SelectContent, SelectGroup, SelectHeader, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectText, SelectTrigger, SelectValue, SelectWrapper, Separator, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switch, type SwitchProps, Switcher, SwitcherContent, type SwitcherContentProps, SwitcherFooter, type SwitcherFooterProps, SwitcherGroup, type SwitcherGroupProps, SwitcherItem, type SwitcherItemProps, type SwitcherProps, SwitcherSeparator, SwitcherTrigger, type SwitcherTriggerProps, Tabs, TabsContent, TabsList, type TabsProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, Tag, type TagProps, Tile, TileDescription, TileIcon, type TileProps, TileTitle, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertButtonVariants, alertVariants, avatarVariants, badgeVariants, buttonVariants, calculatePageNumbers, checkboxVariants, labelVariants, radioGroupVariants, segmentControlTriggerVariants, switchVariants, tabsContentVariants, tabsListVariants, tabsTriggerVariants, tagVariants, tileVariants, toastVariants, useIsMobile, useSidebar, useTabsContext, useToast };
889
+ export { Alert, AlertActions, AlertButton, type AlertButtonProps, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, type AlertProps, AlertTitle, type AnimationType, Autocomplete, AutocompleteContent, AutocompleteContentFooter, type AutocompleteContentFooterProps, type AutocompleteContentProps, type AutocompleteContextValue, AutocompleteGroup, AutocompleteItem, type AutocompleteItemProps, type AutocompleteProps, AutocompleteText, AutocompleteTrigger, type AutocompleteTriggerProps, AutocompleteWrapper, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeAnimation, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CardWeek, CardWeekActions, CardWeekBreadcrumb, type CardWeekBreadcrumbProps, CardWeekContainer, CardWeekContent, CardWeekDescription, CardWeekFooter, CardWeekHeader, CardWeekProgress, CardWeekProgressCircle, type CardWeekProps, CardWeekStatus, CardWeekTags, CardWeekText, type CardWeekTextProps, CardWeekTitle, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, DatePicker, DatePickerLabel, type DatePickerLabelProps, type DatePickerProps, DatePickerText, type DatePickerValue, DatePickerWrapper, DateRangePicker, type DateRangePickerProps, type DateRangeValue, Dialog, DialogClose, DialogContainer, type DialogContainerProps, DialogContent, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, InputAdornment, InputEndIcon, InputField, InputLabel, type InputLabelProps, type InputProps, InputStartIcon, InputText, type InputTextProps, type InputType, InputWrapper, Label, type LabelProps, Loading, type LoadingProps, Logo, type LogoProps, LogoShort, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationProps, PaginationRoot, type PerformanceData, Progress, ProgressCircle, type ProgressCircleProps, type ProgressProps, type ProgressStatusKey, RadioGroup, RadioGroupItem, type RadioGroupItemProps, Ranking, RankingAssigneeGroup, type RankingAssigneeGroupProps, RankingAssigneeItem, type RankingAssigneeItemProps, RankingAssigneeLabel, type RankingAssigneeLabelProps, RankingAssigneesColumn, type RankingAssigneesColumnProps, RankingBody, RankingButton, type RankingButtonProps, RankingHeader, RankingHeaderCell, type RankingHeaderCellProps, type RankingHeaderProps, RankingItem, type RankingItemProps, RankingNumber, type RankingNumberProps, RankingPerformance, type RankingPerformanceProps, RankingPriority, type RankingPriorityProps, type RankingProps, RankingQuestions, type RankingQuestionsProps, RankingSpecialty, type RankingSpecialtyProps, RankingSuperFocus, type RankingSuperFocusProps, RankingTopic, RankingTopicColumn, type RankingTopicColumnProps, RankingTopicContent, type RankingTopicContentProps, type RankingTopicProps, Rating, RatingButtonVariants, RatingLabelVariants, type RatingProps, type RatingSize, type RatingStarState, RatingStarVariants, ScrollArea, ScrollBar, SegmentControl, SegmentControlContent, SegmentControlList, type SegmentControlListProps, SegmentControlTrigger, type SegmentControlTriggerProps, Select, SelectContent, SelectGroup, SelectHeader, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectText, SelectTrigger, SelectValue, SelectWrapper, Separator, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switch, type SwitchProps, Switcher, SwitcherContent, type SwitcherContentProps, SwitcherFooter, type SwitcherFooterProps, SwitcherGroup, type SwitcherGroupProps, SwitcherItem, type SwitcherItemProps, type SwitcherProps, SwitcherSeparator, SwitcherTrigger, type SwitcherTriggerProps, Tabs, TabsContent, TabsList, type TabsProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, Tag, type TagProps, Tile, TileDescription, TileIcon, type TileProps, TileTitle, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertButtonVariants, alertVariants, avatarVariants, badgeVariants, buttonVariants, calculatePageNumbers, checkboxVariants, labelVariants, radioGroupVariants, segmentControlTriggerVariants, switchVariants, tabsContentVariants, tabsListVariants, tabsTriggerVariants, tagVariants, tileVariants, toastVariants, useIsMobile, useSidebar, useTabsContext, useToast };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as class_variance_authority_types from 'class-variance-authority/types';
3
3
  import * as React from 'react';
4
- import { ComponentProps, ReactNode, HTMLAttributes, ButtonHTMLAttributes, ReactElement, TableHTMLAttributes, ThHTMLAttributes, ComponentPropsWithoutRef } from 'react';
4
+ import { ComponentProps, ReactNode, HTMLAttributes, ButtonHTMLAttributes, ReactElement, ComponentPropsWithoutRef, TableHTMLAttributes, ThHTMLAttributes } from 'react';
5
5
  import { VariantProps } from 'class-variance-authority';
6
6
  import { AlertDialog as AlertDialog$1, Dialog as Dialog$1, Avatar as Avatar$1, Progress as Progress$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, DropdownMenu as DropdownMenu$1, Label as Label$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Tabs as Tabs$1, Separator as Separator$1, Tooltip as Tooltip$1, Switch as Switch$1, Toast as Toast$2 } from 'radix-ui';
7
7
 
@@ -158,6 +158,7 @@ interface AutocompleteContentProps {
158
158
  interface AutocompleteItemProps {
159
159
  children: ReactNode;
160
160
  value: string;
161
+ name?: string;
161
162
  className?: string;
162
163
  disabled?: boolean;
163
164
  }
@@ -173,7 +174,7 @@ declare function AutocompleteWrapper({ className, ...props }: HTMLAttributes<HTM
173
174
  declare function AutocompleteTrigger({ className, placeholder, children, ...props }: AutocompleteTriggerProps): react_jsx_runtime.JSX.Element;
174
175
  declare function AutocompleteContentFooter({ className, cancelLabel, confirmLabel, onCancel, onConfirm, }: AutocompleteContentFooterProps): react_jsx_runtime.JSX.Element;
175
176
  declare function AutocompleteContent({ children, className, searchPlaceholder, emptyMessage, }: AutocompleteContentProps): react_jsx_runtime.JSX.Element;
176
- declare function AutocompleteItem({ children, value: itemValue, className, disabled: itemDisabled, }: AutocompleteItemProps): react_jsx_runtime.JSX.Element;
177
+ declare function AutocompleteItem({ children, value: itemValue, name, className, disabled: itemDisabled, }: AutocompleteItemProps): react_jsx_runtime.JSX.Element;
177
178
  declare function AutocompleteGroup({ className, ...props }: ComponentProps<typeof CommandGroup>): react_jsx_runtime.JSX.Element;
178
179
  declare function AutocompleteText({ className, ...props }: AutocompleteTextProps): react_jsx_runtime.JSX.Element;
179
180
 
@@ -320,7 +321,79 @@ declare function DropdownMenuSubTrigger({ className, inset, children, ...props }
320
321
  }): react_jsx_runtime.JSX.Element;
321
322
  declare function DropdownMenuSubContent({ className, ...props }: ComponentProps<typeof DropdownMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
322
323
 
323
- declare function Input({ className, type, ...props }: ComponentProps<"input">): react_jsx_runtime.JSX.Element;
324
+ type DatePickerValue = Date | null;
325
+ type DateRangeValue = {
326
+ start: Date | null;
327
+ end: Date | null;
328
+ } | null;
329
+ interface DatePickerLabelProps extends HTMLAttributes<HTMLLabelElement> {
330
+ htmlFor?: string;
331
+ }
332
+ interface DatePickerProps extends Omit<ComponentPropsWithoutRef<"button">, "value" | "defaultValue" | "onChange"> {
333
+ value?: DatePickerValue;
334
+ defaultValue?: DatePickerValue;
335
+ onValueChange?: (value: DatePickerValue) => void;
336
+ placeholder?: string;
337
+ disabled?: boolean;
338
+ min?: Date;
339
+ max?: Date;
340
+ format?: (date: Date) => string;
341
+ inputClassName?: string;
342
+ contentClassName?: string;
343
+ yearRange?: {
344
+ start: number;
345
+ end: number;
346
+ };
347
+ showYearSelector?: boolean;
348
+ invalid?: boolean;
349
+ }
350
+ interface DateRangePickerProps extends Omit<ComponentPropsWithoutRef<"button">, "value" | "defaultValue" | "onChange"> {
351
+ value?: DateRangeValue;
352
+ defaultValue?: DateRangeValue;
353
+ onValueChange?: (value: DateRangeValue) => void;
354
+ placeholder?: string;
355
+ disabled?: boolean;
356
+ min?: Date;
357
+ max?: Date;
358
+ format?: (date: Date) => string;
359
+ inputClassName?: string;
360
+ contentClassName?: string;
361
+ yearRange?: {
362
+ start: number;
363
+ end: number;
364
+ };
365
+ showYearSelector?: boolean;
366
+ invalid?: boolean;
367
+ }
368
+ declare function DatePickerWrapper({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
369
+ declare function DatePickerLabel({ className, children, ...props }: DatePickerLabelProps): react_jsx_runtime.JSX.Element;
370
+ declare function DatePickerText({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
371
+ declare function DatePicker({ value, defaultValue, onValueChange, placeholder, disabled, min, max, format, className, inputClassName, contentClassName, yearRange, showYearSelector, invalid, children, ...props }: DatePickerProps): react_jsx_runtime.JSX.Element;
372
+ declare function DateRangePicker({ value, defaultValue, onValueChange, placeholder, disabled, min, max, format, className, inputClassName, contentClassName, yearRange, showYearSelector, invalid, children, ...props }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
373
+
374
+ type InputType = "text" | "email" | "numeric" | "password";
375
+ type InputSize = "sm" | "lg";
376
+ interface InputProps extends Omit<ComponentProps<"input">, "type" | "size"> {
377
+ type?: InputType;
378
+ size?: InputSize;
379
+ invalid?: boolean;
380
+ iconLeft?: ReactElement;
381
+ iconRight?: ReactElement;
382
+ }
383
+ declare function InputWrapper({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
384
+ declare function InputField({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
385
+ interface InputLabelProps extends HTMLAttributes<HTMLLabelElement> {
386
+ htmlFor?: string;
387
+ }
388
+ declare function InputLabel({ className, children, ...props }: InputLabelProps): react_jsx_runtime.JSX.Element;
389
+ interface InputTextProps extends HTMLAttributes<HTMLSpanElement> {
390
+ invalid?: boolean;
391
+ }
392
+ declare function InputText({ className, invalid, ...props }: InputTextProps): react_jsx_runtime.JSX.Element;
393
+ declare function InputAdornment({ className, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
394
+ declare function InputStartIcon({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
395
+ declare function InputEndIcon({ className, ...props }: HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
396
+ declare function Input({ className, type, size, invalid, iconLeft, iconRight, ...props }: InputProps): react_jsx_runtime.JSX.Element;
324
397
 
325
398
  interface LabelProps extends ComponentProps<typeof Label$1.Root>, VariantProps<typeof labelVariants> {
326
399
  block?: boolean;
@@ -449,20 +522,20 @@ interface RankingQuestionsProps extends HTMLAttributes<HTMLTableCellElement> {
449
522
  answered: number;
450
523
  }
451
524
  interface RankingPerformanceProps extends HTMLAttributes<HTMLTableCellElement> {
452
- questions: number;
453
525
  answered: number;
454
526
  correct: number;
527
+ minQuestions: number;
455
528
  }
456
529
  interface RankingButtonProps extends Omit<ComponentProps<typeof Button>, "iconRight" | "onClick"> {
457
530
  onClick?: () => void;
458
531
  }
459
532
  interface PerformanceData {
460
- percentage: number;
533
+ progress: number;
461
534
  correct: number;
462
535
  answered: number;
463
536
  remainingQuestions: number;
464
537
  }
465
- type PercentageStatusKey = "notStarted" | "minNotReached" | "dominated" | "notDominated";
538
+ type ProgressStatusKey = "notStarted" | "minNotReached" | "dominated" | "notDominated";
466
539
  declare function Ranking({ children, className, ...props }: RankingProps): react_jsx_runtime.JSX.Element;
467
540
  declare function RankingHeader({ children, className, ...props }: RankingHeaderProps): react_jsx_runtime.JSX.Element;
468
541
  declare function RankingHeaderCell({ children, className, tooltip, highlight, ...props }: RankingHeaderCellProps): react_jsx_runtime.JSX.Element;
@@ -480,7 +553,7 @@ declare function RankingAssigneeGroup({ children, className, ...props }: Ranking
480
553
  declare function RankingAssigneeItem({ src, alt, fallback, className, tooltip, ...props }: RankingAssigneeItemProps): react_jsx_runtime.JSX.Element;
481
554
  declare function RankingPriority({ children, className, icon, ...props }: RankingPriorityProps): react_jsx_runtime.JSX.Element;
482
555
  declare function RankingQuestions({ questions, answered, className, ...props }: RankingQuestionsProps): react_jsx_runtime.JSX.Element;
483
- declare function RankingPerformance({ questions, answered, correct, className, ...props }: RankingPerformanceProps): react_jsx_runtime.JSX.Element;
556
+ declare function RankingPerformance({ answered, correct, minQuestions, className, ...props }: RankingPerformanceProps): react_jsx_runtime.JSX.Element;
484
557
  declare function RankingButton({ children, className, onClick, ...props }: RankingButtonProps): react_jsx_runtime.JSX.Element;
485
558
 
486
559
  type RatingSize = "sm" | "md" | "lg";
@@ -813,4 +886,4 @@ declare function useToast(): {
813
886
 
814
887
  declare function useIsMobile(): boolean;
815
888
 
816
- export { Alert, AlertActions, AlertButton, type AlertButtonProps, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, type AlertProps, AlertTitle, type AnimationType, Autocomplete, AutocompleteContent, AutocompleteContentFooter, type AutocompleteContentFooterProps, type AutocompleteContentProps, type AutocompleteContextValue, AutocompleteGroup, AutocompleteItem, type AutocompleteItemProps, type AutocompleteProps, AutocompleteText, AutocompleteTrigger, type AutocompleteTriggerProps, AutocompleteWrapper, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeAnimation, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CardWeek, CardWeekActions, CardWeekBreadcrumb, type CardWeekBreadcrumbProps, CardWeekContainer, CardWeekContent, CardWeekDescription, CardWeekFooter, CardWeekHeader, CardWeekProgress, CardWeekProgressCircle, type CardWeekProps, CardWeekStatus, CardWeekTags, CardWeekText, type CardWeekTextProps, CardWeekTitle, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, Dialog, DialogClose, DialogContainer, type DialogContainerProps, DialogContent, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, type LabelProps, Loading, type LoadingProps, Logo, type LogoProps, LogoShort, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationProps, PaginationRoot, type PercentageStatusKey, type PerformanceData, Progress, ProgressCircle, type ProgressCircleProps, type ProgressProps, RadioGroup, RadioGroupItem, type RadioGroupItemProps, Ranking, RankingAssigneeGroup, type RankingAssigneeGroupProps, RankingAssigneeItem, type RankingAssigneeItemProps, RankingAssigneeLabel, type RankingAssigneeLabelProps, RankingAssigneesColumn, type RankingAssigneesColumnProps, RankingBody, RankingButton, type RankingButtonProps, RankingHeader, RankingHeaderCell, type RankingHeaderCellProps, type RankingHeaderProps, RankingItem, type RankingItemProps, RankingNumber, type RankingNumberProps, RankingPerformance, type RankingPerformanceProps, RankingPriority, type RankingPriorityProps, type RankingProps, RankingQuestions, type RankingQuestionsProps, RankingSpecialty, type RankingSpecialtyProps, RankingSuperFocus, type RankingSuperFocusProps, RankingTopic, RankingTopicColumn, type RankingTopicColumnProps, RankingTopicContent, type RankingTopicContentProps, type RankingTopicProps, Rating, RatingButtonVariants, RatingLabelVariants, type RatingProps, type RatingSize, type RatingStarState, RatingStarVariants, ScrollArea, ScrollBar, SegmentControl, SegmentControlContent, SegmentControlList, type SegmentControlListProps, SegmentControlTrigger, type SegmentControlTriggerProps, Select, SelectContent, SelectGroup, SelectHeader, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectText, SelectTrigger, SelectValue, SelectWrapper, Separator, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switch, type SwitchProps, Switcher, SwitcherContent, type SwitcherContentProps, SwitcherFooter, type SwitcherFooterProps, SwitcherGroup, type SwitcherGroupProps, SwitcherItem, type SwitcherItemProps, type SwitcherProps, SwitcherSeparator, SwitcherTrigger, type SwitcherTriggerProps, Tabs, TabsContent, TabsList, type TabsProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, Tag, type TagProps, Tile, TileDescription, TileIcon, type TileProps, TileTitle, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertButtonVariants, alertVariants, avatarVariants, badgeVariants, buttonVariants, calculatePageNumbers, checkboxVariants, labelVariants, radioGroupVariants, segmentControlTriggerVariants, switchVariants, tabsContentVariants, tabsListVariants, tabsTriggerVariants, tagVariants, tileVariants, toastVariants, useIsMobile, useSidebar, useTabsContext, useToast };
889
+ export { Alert, AlertActions, AlertButton, type AlertButtonProps, AlertContainer, AlertContent, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertIcon, type AlertProps, AlertTitle, type AnimationType, Autocomplete, AutocompleteContent, AutocompleteContentFooter, type AutocompleteContentFooterProps, type AutocompleteContentProps, type AutocompleteContextValue, AutocompleteGroup, AutocompleteItem, type AutocompleteItemProps, type AutocompleteProps, AutocompleteText, AutocompleteTrigger, type AutocompleteTriggerProps, AutocompleteWrapper, Avatar, AvatarFallback, AvatarImage, type AvatarProps, Badge, type BadgeAnimation, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CardWeek, CardWeekActions, CardWeekBreadcrumb, type CardWeekBreadcrumbProps, CardWeekContainer, CardWeekContent, CardWeekDescription, CardWeekFooter, CardWeekHeader, CardWeekProgress, CardWeekProgressCircle, type CardWeekProps, CardWeekStatus, CardWeekTags, CardWeekText, type CardWeekTextProps, CardWeekTitle, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, DatePicker, DatePickerLabel, type DatePickerLabelProps, type DatePickerProps, DatePickerText, type DatePickerValue, DatePickerWrapper, DateRangePicker, type DateRangePickerProps, type DateRangeValue, Dialog, DialogClose, DialogContainer, type DialogContainerProps, DialogContent, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, InputAdornment, InputEndIcon, InputField, InputLabel, type InputLabelProps, type InputProps, InputStartIcon, InputText, type InputTextProps, type InputType, InputWrapper, Label, type LabelProps, Loading, type LoadingProps, Logo, type LogoProps, LogoShort, Pagination, PaginationContent, PaginationEllipsis, PaginationInfo, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PaginationProps, PaginationRoot, type PerformanceData, Progress, ProgressCircle, type ProgressCircleProps, type ProgressProps, type ProgressStatusKey, RadioGroup, RadioGroupItem, type RadioGroupItemProps, Ranking, RankingAssigneeGroup, type RankingAssigneeGroupProps, RankingAssigneeItem, type RankingAssigneeItemProps, RankingAssigneeLabel, type RankingAssigneeLabelProps, RankingAssigneesColumn, type RankingAssigneesColumnProps, RankingBody, RankingButton, type RankingButtonProps, RankingHeader, RankingHeaderCell, type RankingHeaderCellProps, type RankingHeaderProps, RankingItem, type RankingItemProps, RankingNumber, type RankingNumberProps, RankingPerformance, type RankingPerformanceProps, RankingPriority, type RankingPriorityProps, type RankingProps, RankingQuestions, type RankingQuestionsProps, RankingSpecialty, type RankingSpecialtyProps, RankingSuperFocus, type RankingSuperFocusProps, RankingTopic, RankingTopicColumn, type RankingTopicColumnProps, RankingTopicContent, type RankingTopicContentProps, type RankingTopicProps, Rating, RatingButtonVariants, RatingLabelVariants, type RatingProps, type RatingSize, type RatingStarState, RatingStarVariants, ScrollArea, ScrollBar, SegmentControl, SegmentControlContent, SegmentControlList, type SegmentControlListProps, SegmentControlTrigger, type SegmentControlTriggerProps, Select, SelectContent, SelectGroup, SelectHeader, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectText, SelectTrigger, SelectValue, SelectWrapper, Separator, Sheet, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuItemCollapse, SidebarMenuItemTitle, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Switch, type SwitchProps, Switcher, SwitcherContent, type SwitcherContentProps, SwitcherFooter, type SwitcherFooterProps, SwitcherGroup, type SwitcherGroupProps, SwitcherItem, type SwitcherItemProps, type SwitcherProps, SwitcherSeparator, SwitcherTrigger, type SwitcherTriggerProps, Tabs, TabsContent, TabsList, type TabsProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, Tag, type TagProps, Tile, TileDescription, TileIcon, type TileProps, TileTitle, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertButtonVariants, alertVariants, avatarVariants, badgeVariants, buttonVariants, calculatePageNumbers, checkboxVariants, labelVariants, radioGroupVariants, segmentControlTriggerVariants, switchVariants, tabsContentVariants, tabsListVariants, tabsTriggerVariants, tagVariants, tileVariants, toastVariants, useIsMobile, useSidebar, useTabsContext, useToast };