frey-ui 1.0.16 → 1.2.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/cjs/Calendar/calendar.css +216 -0
- package/dist/cjs/Calendar/calendar.module.css.cjs +10 -0
- package/dist/cjs/Calendar/calendar.module.css.cjs.map +1 -0
- package/dist/cjs/Calendar/calendarInteractions.cjs +34 -0
- package/dist/cjs/Calendar/calendarInteractions.cjs.map +1 -0
- package/dist/cjs/Calendar/calendarModel.cjs +232 -0
- package/dist/cjs/Calendar/calendarModel.cjs.map +1 -0
- package/dist/cjs/Calendar/index.cjs +204 -0
- package/dist/cjs/Calendar/index.cjs.map +1 -0
- package/dist/cjs/DateField/DateFieldSegments.cjs +71 -0
- package/dist/cjs/DateField/DateFieldSegments.cjs.map +1 -0
- package/dist/cjs/DateField/DateSegmentInput.cjs +17 -0
- package/dist/cjs/DateField/DateSegmentInput.cjs.map +1 -0
- package/dist/cjs/DateField/dateFieldInteractions.cjs +205 -0
- package/dist/cjs/DateField/dateFieldInteractions.cjs.map +1 -0
- package/dist/cjs/DateField/dateFieldState.cjs +127 -0
- package/dist/cjs/DateField/dateFieldState.cjs.map +1 -0
- package/dist/cjs/DateField/datefield.css +134 -0
- package/dist/cjs/DateField/datefield.module.css.cjs +10 -0
- package/dist/cjs/DateField/datefield.module.css.cjs.map +1 -0
- package/dist/cjs/DateField/index.cjs +203 -0
- package/dist/cjs/DateField/index.cjs.map +1 -0
- package/dist/cjs/DatePicker/datepicker.css +24 -0
- package/dist/cjs/DatePicker/datepicker.module.css.cjs +10 -0
- package/dist/cjs/DatePicker/datepicker.module.css.cjs.map +1 -0
- package/dist/cjs/DatePicker/index.cjs +98 -0
- package/dist/cjs/DatePicker/index.cjs.map +1 -0
- package/dist/cjs/Icons/CalendarIcon.cjs +12 -0
- package/dist/cjs/Icons/CalendarIcon.cjs.map +1 -0
- package/dist/cjs/Popover/index.cjs +2 -2
- package/dist/cjs/Popover/index.cjs.map +1 -1
- package/dist/cjs/SegmentedControl/index.cjs +60 -0
- package/dist/cjs/SegmentedControl/index.cjs.map +1 -0
- package/dist/cjs/SegmentedControl/segmentedcontrol.css +131 -0
- package/dist/cjs/SegmentedControl/segmentedcontrol.module.css.cjs +10 -0
- package/dist/cjs/SegmentedControl/segmentedcontrol.module.css.cjs.map +1 -0
- package/dist/cjs/date/dateEngine.cjs +591 -0
- package/dist/cjs/date/dateEngine.cjs.map +1 -0
- package/dist/cjs/date/dateLocale.cjs +239 -0
- package/dist/cjs/date/dateLocale.cjs.map +1 -0
- package/dist/cjs/date/japaneseEraData.cjs +252 -0
- package/dist/cjs/date/japaneseEraData.cjs.map +1 -0
- package/dist/cjs/date/useDateLocale.cjs +24 -0
- package/dist/cjs/date/useDateLocale.cjs.map +1 -0
- package/dist/cjs/index.cjs +68 -58
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/theme.css +32 -0
- package/dist/esm/Calendar/calendar.css +216 -0
- package/dist/esm/Calendar/calendar.module.css.mjs +6 -0
- package/dist/esm/Calendar/calendar.module.css.mjs.map +1 -0
- package/dist/esm/Calendar/calendarInteractions.mjs +32 -0
- package/dist/esm/Calendar/calendarInteractions.mjs.map +1 -0
- package/dist/esm/Calendar/calendarModel.mjs +224 -0
- package/dist/esm/Calendar/calendarModel.mjs.map +1 -0
- package/dist/esm/Calendar/index.mjs +200 -0
- package/dist/esm/Calendar/index.mjs.map +1 -0
- package/dist/esm/DateField/DateFieldSegments.mjs +69 -0
- package/dist/esm/DateField/DateFieldSegments.mjs.map +1 -0
- package/dist/esm/DateField/DateSegmentInput.mjs +15 -0
- package/dist/esm/DateField/DateSegmentInput.mjs.map +1 -0
- package/dist/esm/DateField/dateFieldInteractions.mjs +198 -0
- package/dist/esm/DateField/dateFieldInteractions.mjs.map +1 -0
- package/dist/esm/DateField/dateFieldState.mjs +119 -0
- package/dist/esm/DateField/dateFieldState.mjs.map +1 -0
- package/dist/esm/DateField/datefield.css +134 -0
- package/dist/esm/DateField/datefield.module.css.mjs +6 -0
- package/dist/esm/DateField/datefield.module.css.mjs.map +1 -0
- package/dist/esm/DateField/index.mjs +198 -0
- package/dist/esm/DateField/index.mjs.map +1 -0
- package/dist/esm/DatePicker/datepicker.css +24 -0
- package/dist/esm/DatePicker/datepicker.module.css.mjs +6 -0
- package/dist/esm/DatePicker/datepicker.module.css.mjs.map +1 -0
- package/dist/esm/DatePicker/index.mjs +94 -0
- package/dist/esm/DatePicker/index.mjs.map +1 -0
- package/dist/esm/Icons/CalendarIcon.mjs +10 -0
- package/dist/esm/Icons/CalendarIcon.mjs.map +1 -0
- package/dist/esm/Popover/index.mjs +2 -2
- package/dist/esm/Popover/index.mjs.map +1 -1
- package/dist/esm/SegmentedControl/index.mjs +55 -0
- package/dist/esm/SegmentedControl/index.mjs.map +1 -0
- package/dist/esm/SegmentedControl/segmentedcontrol.css +131 -0
- package/dist/esm/SegmentedControl/segmentedcontrol.module.css.mjs +6 -0
- package/dist/esm/SegmentedControl/segmentedcontrol.module.css.mjs.map +1 -0
- package/dist/esm/date/dateEngine.mjs +573 -0
- package/dist/esm/date/dateEngine.mjs.map +1 -0
- package/dist/esm/date/dateLocale.mjs +226 -0
- package/dist/esm/date/dateLocale.mjs.map +1 -0
- package/dist/esm/date/japaneseEraData.mjs +250 -0
- package/dist/esm/date/japaneseEraData.mjs.map +1 -0
- package/dist/esm/date/useDateLocale.mjs +22 -0
- package/dist/esm/date/useDateLocale.mjs.map +1 -0
- package/dist/esm/index.mjs +5 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/theme.css +32 -0
- package/dist/index.d.ts +116 -3
- package/dist/types/src/Calendar/calendarInteractions.d.ts +9 -0
- package/dist/types/src/Calendar/calendarInteractions.d.ts.map +1 -0
- package/dist/types/src/Calendar/calendarModel.d.ts +81 -0
- package/dist/types/src/Calendar/calendarModel.d.ts.map +1 -0
- package/dist/types/src/Calendar/index.d.ts +26 -0
- package/dist/types/src/Calendar/index.d.ts.map +1 -0
- package/dist/types/src/DateField/DateFieldSegments.d.ts +28 -0
- package/dist/types/src/DateField/DateFieldSegments.d.ts.map +1 -0
- package/dist/types/src/DateField/DateSegmentInput.d.ts +23 -0
- package/dist/types/src/DateField/DateSegmentInput.d.ts.map +1 -0
- package/dist/types/src/DateField/dateFieldInteractions.d.ts +66 -0
- package/dist/types/src/DateField/dateFieldInteractions.d.ts.map +1 -0
- package/dist/types/src/DateField/dateFieldState.d.ts +32 -0
- package/dist/types/src/DateField/dateFieldState.d.ts.map +1 -0
- package/dist/types/src/DateField/index.d.ts +42 -0
- package/dist/types/src/DateField/index.d.ts.map +1 -0
- package/dist/types/src/DatePicker/index.d.ts +19 -0
- package/dist/types/src/DatePicker/index.d.ts.map +1 -0
- package/dist/types/src/Icons/CalendarIcon.d.ts +4 -0
- package/dist/types/src/Icons/CalendarIcon.d.ts.map +1 -0
- package/dist/types/src/Icons/index.d.ts +1 -0
- package/dist/types/src/Icons/index.d.ts.map +1 -1
- package/dist/types/src/Popover/index.d.ts +3 -1
- package/dist/types/src/Popover/index.d.ts.map +1 -1
- package/dist/types/src/SegmentedControl/index.d.ts +38 -0
- package/dist/types/src/SegmentedControl/index.d.ts.map +1 -0
- package/dist/types/src/date/dateEngine.d.ts +22 -0
- package/dist/types/src/date/dateEngine.d.ts.map +1 -0
- package/dist/types/src/date/dateLocale.d.ts +30 -0
- package/dist/types/src/date/dateLocale.d.ts.map +1 -0
- package/dist/types/src/date/japaneseEraData.d.ts +7 -0
- package/dist/types/src/date/japaneseEraData.d.ts.map +1 -0
- package/dist/types/src/date/types.d.ts +23 -0
- package/dist/types/src/date/types.d.ts.map +1 -0
- package/dist/types/src/date/useDateLocale.d.ts +2 -0
- package/dist/types/src/date/useDateLocale.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +10 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -185,6 +185,35 @@ type CardComponent = typeof CardRoot & {
|
|
|
185
185
|
};
|
|
186
186
|
declare const Card: CardComponent;
|
|
187
187
|
|
|
188
|
+
type DateValue = string;
|
|
189
|
+
type DateCalendar = 'gregory' | 'buddhist' | 'japanese' | 'roc' | 'persian' | 'islamic-civil' | 'hebrew';
|
|
190
|
+
type DateSegment = 'era' | 'year' | 'month' | 'day';
|
|
191
|
+
type DateSegmentLabels = Partial<Record<DateSegment, string>>;
|
|
192
|
+
type FirstDayOfWeek = 'sun' | 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat';
|
|
193
|
+
|
|
194
|
+
type CalendarProps = {
|
|
195
|
+
label: string;
|
|
196
|
+
value?: DateValue | null;
|
|
197
|
+
defaultValue?: DateValue | null;
|
|
198
|
+
onValueChange?: (value: DateValue | null) => void;
|
|
199
|
+
defaultFocusedValue?: DateValue;
|
|
200
|
+
today?: DateValue;
|
|
201
|
+
minValue?: DateValue;
|
|
202
|
+
maxValue?: DateValue;
|
|
203
|
+
isDateUnavailable?: (value: DateValue) => boolean;
|
|
204
|
+
locale?: string;
|
|
205
|
+
calendar?: DateCalendar;
|
|
206
|
+
firstDayOfWeek?: FirstDayOfWeek;
|
|
207
|
+
previousMonthLabel?: string;
|
|
208
|
+
nextMonthLabel?: string;
|
|
209
|
+
disabled?: boolean;
|
|
210
|
+
readOnly?: boolean;
|
|
211
|
+
className?: string;
|
|
212
|
+
style?: React.CSSProperties;
|
|
213
|
+
};
|
|
214
|
+
type CalendarComponent = React.ForwardRefExoticComponent<Readonly<CalendarProps> & React.RefAttributes<HTMLDivElement>>;
|
|
215
|
+
declare const Calendar: CalendarComponent;
|
|
216
|
+
|
|
188
217
|
type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
189
218
|
type CheckboxProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'size' | 'className' | 'style'> & {
|
|
190
219
|
label: string;
|
|
@@ -354,6 +383,50 @@ type CommandPaletteComponent = typeof CommandPaletteRoot & {
|
|
|
354
383
|
};
|
|
355
384
|
declare const CommandPalette: CommandPaletteComponent;
|
|
356
385
|
|
|
386
|
+
type DateFieldProps = {
|
|
387
|
+
label: string;
|
|
388
|
+
value?: DateValue | null;
|
|
389
|
+
defaultValue?: DateValue | null;
|
|
390
|
+
onValueChange?: (value: DateValue | null) => void;
|
|
391
|
+
minValue?: DateValue;
|
|
392
|
+
maxValue?: DateValue;
|
|
393
|
+
isDateUnavailable?: (value: DateValue) => boolean;
|
|
394
|
+
locale?: string;
|
|
395
|
+
calendar?: DateCalendar;
|
|
396
|
+
segmentLabels?: DateSegmentLabels;
|
|
397
|
+
showClearButton?: boolean;
|
|
398
|
+
clearButtonLabel?: string;
|
|
399
|
+
hideLabel?: boolean;
|
|
400
|
+
helperText?: string;
|
|
401
|
+
error?: string;
|
|
402
|
+
disabled?: boolean;
|
|
403
|
+
readOnly?: boolean;
|
|
404
|
+
required?: boolean;
|
|
405
|
+
name?: string;
|
|
406
|
+
id?: string;
|
|
407
|
+
className?: string;
|
|
408
|
+
style?: React.CSSProperties;
|
|
409
|
+
controlClassName?: string;
|
|
410
|
+
controlStyle?: React.CSSProperties;
|
|
411
|
+
};
|
|
412
|
+
type DateFieldComponent = React.ForwardRefExoticComponent<Readonly<DateFieldProps> & React.RefAttributes<HTMLDivElement>>;
|
|
413
|
+
declare const DateField: DateFieldComponent;
|
|
414
|
+
|
|
415
|
+
type DatePickerProps = DateFieldProps & {
|
|
416
|
+
open?: boolean;
|
|
417
|
+
defaultOpen?: boolean;
|
|
418
|
+
onOpenChange?: (open: boolean) => void;
|
|
419
|
+
defaultFocusedValue?: DateValue;
|
|
420
|
+
today?: DateValue;
|
|
421
|
+
firstDayOfWeek?: FirstDayOfWeek;
|
|
422
|
+
calendarLabel?: string;
|
|
423
|
+
previousMonthLabel?: string;
|
|
424
|
+
nextMonthLabel?: string;
|
|
425
|
+
getCalendarButtonLabel?: (formattedValue: string | null) => string;
|
|
426
|
+
};
|
|
427
|
+
type DatePickerComponent = React.ForwardRefExoticComponent<Readonly<DatePickerProps> & React.RefAttributes<HTMLDivElement>>;
|
|
428
|
+
declare const DatePicker: DatePickerComponent;
|
|
429
|
+
|
|
357
430
|
type DrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
|
|
358
431
|
type DrawerProps = {
|
|
359
432
|
open?: boolean;
|
|
@@ -499,6 +572,8 @@ type IconProps = {
|
|
|
499
572
|
|
|
500
573
|
declare function CheckIcon({ size, strokeWidth, title, className, style, }: Readonly<IconProps>): React.JSX.Element;
|
|
501
574
|
|
|
575
|
+
declare function CalendarIcon({ size, strokeWidth, title, className, style, }: Readonly<IconProps>): React.JSX.Element;
|
|
576
|
+
|
|
502
577
|
declare function ChevronDownIcon({ size, strokeWidth, title, className, style, }: Readonly<IconProps>): React.JSX.Element;
|
|
503
578
|
|
|
504
579
|
declare function CircleCheckIcon({ size, strokeWidth, title, className, style, }: Readonly<IconProps>): React.JSX.Element;
|
|
@@ -553,7 +628,9 @@ type PopoverTriggerProps = {
|
|
|
553
628
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
|
|
554
629
|
type PopoverTriggerComponent = React.ForwardRefExoticComponent<Readonly<PopoverTriggerProps> & React.RefAttributes<HTMLElement>>;
|
|
555
630
|
declare const PopoverTrigger: PopoverTriggerComponent;
|
|
556
|
-
type PopoverContentProps = React.HTMLAttributes<HTMLDivElement
|
|
631
|
+
type PopoverContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
632
|
+
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
633
|
+
};
|
|
557
634
|
type PopoverContentComponent = React.ForwardRefExoticComponent<Readonly<PopoverContentProps> & React.RefAttributes<HTMLDivElement>>;
|
|
558
635
|
declare const PopoverContent: PopoverContentComponent;
|
|
559
636
|
type PopoverComponent = typeof PopoverRoot & {
|
|
@@ -604,6 +681,42 @@ type RadioGroupProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | '
|
|
|
604
681
|
type RadioGroupComponent = React.ForwardRefExoticComponent<Readonly<RadioGroupProps> & React.RefAttributes<HTMLDivElement>>;
|
|
605
682
|
declare const RadioGroup: RadioGroupComponent;
|
|
606
683
|
|
|
684
|
+
type SegmentedControlSize = 'sm' | 'md' | 'lg';
|
|
685
|
+
type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'className' | 'defaultValue' | 'onChange' | 'style'> & {
|
|
686
|
+
children: React.ReactNode;
|
|
687
|
+
label: string;
|
|
688
|
+
value?: string;
|
|
689
|
+
defaultValue?: string;
|
|
690
|
+
onValueChange?: (value: string) => void;
|
|
691
|
+
hideLabel?: boolean;
|
|
692
|
+
helperText?: string;
|
|
693
|
+
error?: string;
|
|
694
|
+
disabled?: boolean;
|
|
695
|
+
required?: boolean;
|
|
696
|
+
name?: string;
|
|
697
|
+
size?: SegmentedControlSize;
|
|
698
|
+
className?: string;
|
|
699
|
+
style?: React.CSSProperties;
|
|
700
|
+
groupClassName?: string;
|
|
701
|
+
groupStyle?: React.CSSProperties;
|
|
702
|
+
};
|
|
703
|
+
type SegmentedControlItemProps = {
|
|
704
|
+
children: React.ReactNode;
|
|
705
|
+
value: string;
|
|
706
|
+
disabled?: boolean;
|
|
707
|
+
id?: string;
|
|
708
|
+
className?: string;
|
|
709
|
+
style?: React.CSSProperties;
|
|
710
|
+
};
|
|
711
|
+
type SegmentedControlRootComponent = React.ForwardRefExoticComponent<Readonly<SegmentedControlProps> & React.RefAttributes<HTMLDivElement>>;
|
|
712
|
+
declare const SegmentedControlRoot: SegmentedControlRootComponent;
|
|
713
|
+
type SegmentedControlItemComponent = React.ForwardRefExoticComponent<Readonly<SegmentedControlItemProps> & React.RefAttributes<HTMLInputElement>>;
|
|
714
|
+
declare const SegmentedControlItem: SegmentedControlItemComponent;
|
|
715
|
+
type SegmentedControlComponent = typeof SegmentedControlRoot & {
|
|
716
|
+
Item: typeof SegmentedControlItem;
|
|
717
|
+
};
|
|
718
|
+
declare const SegmentedControl: SegmentedControlComponent;
|
|
719
|
+
|
|
607
720
|
type SelectSize = 'sm' | 'md' | 'lg';
|
|
608
721
|
type SelectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'size' | 'className' | 'style'> & {
|
|
609
722
|
label: string;
|
|
@@ -812,5 +925,5 @@ type TooltipProps = {
|
|
|
812
925
|
};
|
|
813
926
|
declare function Tooltip({ children, asChild, content, open, defaultOpen, onOpenChange, placement, offset, delay, id, className, style, }: Readonly<TooltipProps>): React.JSX.Element;
|
|
814
927
|
|
|
815
|
-
export { Accordion, Alert, Avatar, Badge, Box, Breadcrumbs, Button, Card, CheckIcon, Checkbox, ChevronDownIcon, Chip, CircleCheckIcon, CircleInfoIcon, CircleXIcon, CloseIcon, Combobox, CommandPalette, Dialog, Drawer, DropdownMenu, Field, Flex, Grid, Link, MinusIcon, Pagination, Popover, Progress, RadioGroup, Select, Skeleton, Spinner, Stack, Switch, Table, Tabs, TextInput, Textarea, ThemeProvider, ToastProvider, Tooltip, TriangleAlertIcon, useTheme, useToast };
|
|
816
|
-
export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AccordionType, AlertProps, AlertVariant, AvatarProps, AvatarSize, AvatarStatus, BadgeProps, BadgeSize, BadgeTone, BadgeVariant, BoxProps, BreadcrumbsCurrentProps, BreadcrumbsItemProps, BreadcrumbsLinkProps, BreadcrumbsListProps, BreadcrumbsProps, ButtonProps, ButtonSize, ButtonVariant, CardContentProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CheckboxProps, CheckboxSize, ChipElement, ChipProps, ColorToken, ComboboxOption, ComboboxProps, ComboboxSize, CommandPaletteContentProps, CommandPaletteEmptyProps, CommandPaletteGroupProps, CommandPaletteInputProps, CommandPaletteItemProps, CommandPaletteListProps, CommandPaletteProps, CommandPaletteShortcutProps, CommandPaletteTriggerProps, DialogBodyProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTitleProps, DialogTriggerProps, DrawerBodyProps, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerPlacement, DrawerProps, DrawerTitleProps, DrawerTriggerProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuPlacement, DropdownMenuProps, DropdownMenuTriggerProps, FieldProps, FieldRenderProps, FlexProps, FreyTheme, GridProps, IconProps, IconSizeToken, IconStrokeToken, LinkColor, LinkProps, LinkUnderline, PaginationProps, PopoverContentProps, PopoverPlacement, PopoverProps, PopoverTriggerProps, ProgressProps, ProgressSize, RadioGroupOrientation, RadioGroupProps, RadioOption, RadiusToken, SelectProps, SelectSize, SkeletonProps, SkeletonShape, SpaceToken, SpinnerProps, SpinnerSize, StackProps, SwitchProps, SwitchSize, TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableProps, TableRowProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TextInputProps, TextareaProps, TextareaResize, ThemeContextValue, ThemeProviderProps, ToastAction, ToastOptions, ToastPlacement, ToastProviderProps, ToastVariant, TooltipPlacement, TooltipProps, Variant };
|
|
928
|
+
export { Accordion, Alert, Avatar, Badge, Box, Breadcrumbs, Button, Calendar, CalendarIcon, Card, CheckIcon, Checkbox, ChevronDownIcon, Chip, CircleCheckIcon, CircleInfoIcon, CircleXIcon, CloseIcon, Combobox, CommandPalette, DateField, DatePicker, Dialog, Drawer, DropdownMenu, Field, Flex, Grid, Link, MinusIcon, Pagination, Popover, Progress, RadioGroup, SegmentedControl, Select, Skeleton, Spinner, Stack, Switch, Table, Tabs, TextInput, Textarea, ThemeProvider, ToastProvider, Tooltip, TriangleAlertIcon, useTheme, useToast };
|
|
929
|
+
export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AccordionType, AlertProps, AlertVariant, AvatarProps, AvatarSize, AvatarStatus, BadgeProps, BadgeSize, BadgeTone, BadgeVariant, BoxProps, BreadcrumbsCurrentProps, BreadcrumbsItemProps, BreadcrumbsLinkProps, BreadcrumbsListProps, BreadcrumbsProps, ButtonProps, ButtonSize, ButtonVariant, CalendarProps, CardContentProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CheckboxProps, CheckboxSize, ChipElement, ChipProps, ColorToken, ComboboxOption, ComboboxProps, ComboboxSize, CommandPaletteContentProps, CommandPaletteEmptyProps, CommandPaletteGroupProps, CommandPaletteInputProps, CommandPaletteItemProps, CommandPaletteListProps, CommandPaletteProps, CommandPaletteShortcutProps, CommandPaletteTriggerProps, DateCalendar, DateFieldProps, DatePickerProps, DateSegment, DateSegmentLabels, DateValue, DialogBodyProps, DialogContentProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogTitleProps, DialogTriggerProps, DrawerBodyProps, DrawerContentProps, DrawerDescriptionProps, DrawerFooterProps, DrawerHeaderProps, DrawerPlacement, DrawerProps, DrawerTitleProps, DrawerTriggerProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuPlacement, DropdownMenuProps, DropdownMenuTriggerProps, FieldProps, FieldRenderProps, FirstDayOfWeek, FlexProps, FreyTheme, GridProps, IconProps, IconSizeToken, IconStrokeToken, LinkColor, LinkProps, LinkUnderline, PaginationProps, PopoverContentProps, PopoverPlacement, PopoverProps, PopoverTriggerProps, ProgressProps, ProgressSize, RadioGroupOrientation, RadioGroupProps, RadioOption, RadiusToken, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, SelectProps, SelectSize, SkeletonProps, SkeletonShape, SpaceToken, SpinnerProps, SpinnerSize, StackProps, SwitchProps, SwitchSize, TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableProps, TableRowProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TextInputProps, TextareaProps, TextareaResize, ThemeContextValue, ThemeProviderProps, ToastAction, ToastOptions, ToastPlacement, ToastProviderProps, ToastVariant, TooltipPlacement, TooltipProps, Variant };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CalendarFocusMovement } from './calendarModel';
|
|
2
|
+
export type CalendarKeyboardCommand = Readonly<{
|
|
3
|
+
type: 'move';
|
|
4
|
+
movement: CalendarFocusMovement;
|
|
5
|
+
}> | Readonly<{
|
|
6
|
+
type: 'activate';
|
|
7
|
+
}>;
|
|
8
|
+
export declare function resolveCalendarKeyboardCommand(key: string, shiftKey: boolean, direction: 'ltr' | 'rtl'): CalendarKeyboardCommand | null;
|
|
9
|
+
//# sourceMappingURL=calendarInteractions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendarInteractions.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/calendarInteractions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAG7D,MAAM,MAAM,uBAAuB,GAC/B,QAAQ,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,qBAAqB,CAAA;CAAE,CAAC,GAC3D,QAAQ,CAAC;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC;AAsBnC,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,OAAO,EACjB,SAAS,EAAE,KAAK,GAAG,KAAK,GACvB,uBAAuB,GAAG,IAAI,CAUhC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type WeekdayLabel } from '../date/dateLocale';
|
|
2
|
+
import type { CalendarDate, DateCalendar, DateValue, FirstDayOfWeek } from '../date/types';
|
|
3
|
+
export type CalendarCellModel = Readonly<{
|
|
4
|
+
gridKey: string;
|
|
5
|
+
value: DateValue | null;
|
|
6
|
+
calendarDate: CalendarDate | null;
|
|
7
|
+
dayLabel: string;
|
|
8
|
+
accessibleLabel: string;
|
|
9
|
+
isAdjacentMonth: boolean;
|
|
10
|
+
isFocused: boolean;
|
|
11
|
+
isSelected: boolean;
|
|
12
|
+
isToday: boolean;
|
|
13
|
+
isUnavailable: boolean;
|
|
14
|
+
isOutOfRange: boolean;
|
|
15
|
+
isOutsideSupportedRange: boolean;
|
|
16
|
+
isDisabled: boolean;
|
|
17
|
+
isReadOnly: boolean;
|
|
18
|
+
isFocusable: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
export type CalendarGridModel = Readonly<{
|
|
21
|
+
cells: readonly CalendarCellModel[];
|
|
22
|
+
heading: string;
|
|
23
|
+
firstDayOfWeek: FirstDayOfWeek;
|
|
24
|
+
monthStartValue: DateValue;
|
|
25
|
+
weekdayLabels: readonly WeekdayLabel[];
|
|
26
|
+
}>;
|
|
27
|
+
export type CreateCalendarGridModelOptions = Readonly<{
|
|
28
|
+
focusedValue: DateValue;
|
|
29
|
+
visibleMonthValue?: DateValue;
|
|
30
|
+
selectedValue?: DateValue | null;
|
|
31
|
+
todayValue?: DateValue;
|
|
32
|
+
minValue?: DateValue;
|
|
33
|
+
maxValue?: DateValue;
|
|
34
|
+
isDateUnavailable?: (value: DateValue) => boolean;
|
|
35
|
+
locale: string;
|
|
36
|
+
calendar: DateCalendar;
|
|
37
|
+
firstDayOfWeek?: FirstDayOfWeek;
|
|
38
|
+
disabled?: boolean;
|
|
39
|
+
readOnly?: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
export declare function createCalendarGridModel({ focusedValue, visibleMonthValue, selectedValue, todayValue, minValue, maxValue, isDateUnavailable, locale, calendar, firstDayOfWeek, disabled, readOnly, }: CreateCalendarGridModelOptions): CalendarGridModel;
|
|
42
|
+
export declare function canSelectCalendarCell(cell: CalendarCellModel): cell is CalendarCellModel & Readonly<{
|
|
43
|
+
value: DateValue;
|
|
44
|
+
}>;
|
|
45
|
+
export type ResolveInitialCalendarFocusOptions = Readonly<{
|
|
46
|
+
value?: DateValue | null;
|
|
47
|
+
defaultFocusedValue?: DateValue;
|
|
48
|
+
today: DateValue;
|
|
49
|
+
minValue?: DateValue;
|
|
50
|
+
maxValue?: DateValue;
|
|
51
|
+
}>;
|
|
52
|
+
export declare function resolveInitialCalendarFocus({ value, defaultFocusedValue, today, minValue, maxValue, }: ResolveInitialCalendarFocusOptions): DateValue;
|
|
53
|
+
export type CalendarFocusMovement = Readonly<{
|
|
54
|
+
unit: 'day' | 'week' | 'month' | 'year';
|
|
55
|
+
amount: number;
|
|
56
|
+
}> | Readonly<{
|
|
57
|
+
unit: 'week-start' | 'week-end';
|
|
58
|
+
}>;
|
|
59
|
+
export type MoveCalendarFocusOptions = Readonly<{
|
|
60
|
+
calendar: DateCalendar;
|
|
61
|
+
firstDayOfWeek: FirstDayOfWeek;
|
|
62
|
+
}>;
|
|
63
|
+
export declare function moveCalendarFocus(value: DateValue, movement: CalendarFocusMovement, { calendar, firstDayOfWeek }: MoveCalendarFocusOptions): DateValue;
|
|
64
|
+
export declare function getHorizontalDayDelta(key: 'ArrowLeft' | 'ArrowRight', direction: 'ltr' | 'rtl'): -1 | 1;
|
|
65
|
+
export type CalendarState = Readonly<{
|
|
66
|
+
focusedValue: DateValue;
|
|
67
|
+
visibleMonthValue: DateValue;
|
|
68
|
+
}>;
|
|
69
|
+
export type CalendarStateAction = Readonly<{
|
|
70
|
+
type: 'move-focus';
|
|
71
|
+
movement: CalendarFocusMovement;
|
|
72
|
+
calendar: DateCalendar;
|
|
73
|
+
firstDayOfWeek: FirstDayOfWeek;
|
|
74
|
+
}> | Readonly<{
|
|
75
|
+
type: 'set-focused-value';
|
|
76
|
+
value: DateValue;
|
|
77
|
+
calendar: DateCalendar;
|
|
78
|
+
}>;
|
|
79
|
+
export declare function createCalendarState(focusedValue: DateValue, calendar: DateCalendar): CalendarState;
|
|
80
|
+
export declare function calendarStateReducer(state: CalendarState, action: CalendarStateAction): CalendarState;
|
|
81
|
+
//# sourceMappingURL=calendarModel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendarModel.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/calendarModel.ts"],"names":[],"mappings":"AAYA,OAAO,EAOL,KAAK,YA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;IAC9C,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC,CAAC;AA4BH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,SAAS,EAChB,QAAQ,EAAE,qBAAqB,EAC/B,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,wBAAwB,GACrD,SAAS,CAuCX;AAED,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,WAAW,GAAG,YAAY,EAC/B,SAAS,EAAE,KAAK,GAAG,KAAK,GACvB,CAAC,CAAC,GAAG,CAAC,CAGR;AAED,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,YAAY,EAAE,SAAS,CAAC;IACxB,iBAAiB,EAAE,SAAS,CAAC;CAC9B,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAC3B,QAAQ,CAAC;IACP,IAAI,EAAE,YAAY,CAAC;IACnB,QAAQ,EAAE,qBAAqB,CAAC;IAChC,QAAQ,EAAE,YAAY,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAC,CAAC;AAEP,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,SAAS,EACvB,QAAQ,EAAE,YAAY,GACrB,aAAa,CAQf;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,aAAa,EACpB,MAAM,EAAE,mBAAmB,GAC1B,aAAa,CAcf"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DateCalendar, DateValue, FirstDayOfWeek } from '../date/types';
|
|
3
|
+
export type CalendarProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
value?: DateValue | null;
|
|
6
|
+
defaultValue?: DateValue | null;
|
|
7
|
+
onValueChange?: (value: DateValue | null) => void;
|
|
8
|
+
defaultFocusedValue?: DateValue;
|
|
9
|
+
today?: DateValue;
|
|
10
|
+
minValue?: DateValue;
|
|
11
|
+
maxValue?: DateValue;
|
|
12
|
+
isDateUnavailable?: (value: DateValue) => boolean;
|
|
13
|
+
locale?: string;
|
|
14
|
+
calendar?: DateCalendar;
|
|
15
|
+
firstDayOfWeek?: FirstDayOfWeek;
|
|
16
|
+
previousMonthLabel?: string;
|
|
17
|
+
nextMonthLabel?: string;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
readOnly?: boolean;
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
|
+
};
|
|
23
|
+
type CalendarComponent = React.ForwardRefExoticComponent<Readonly<CalendarProps> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
declare const Calendar: CalendarComponent;
|
|
25
|
+
export default Calendar;
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Calendar/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACf,MAAM,eAAe,CAAC;AAqBvB,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,YAAY,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAClD,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAwIF,KAAK,iBAAiB,GAAG,KAAK,CAAC,yBAAyB,CACtD,QAAQ,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAC9D,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAE,iBA0Rd,CAAC;AAIH,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { CalendarEraOption, DateSegmentLayoutPart } from '../date/dateLocale';
|
|
3
|
+
import type { CalendarDate, DateSegment, DateSegmentLabels } from '../date/types';
|
|
4
|
+
import type { DateDraft } from './dateFieldState';
|
|
5
|
+
type DateFieldPartProps = Readonly<{
|
|
6
|
+
part: DateSegmentLayoutPart;
|
|
7
|
+
draft: DateDraft;
|
|
8
|
+
segmentLabels?: DateSegmentLabels;
|
|
9
|
+
locale: string;
|
|
10
|
+
calendarDate: CalendarDate;
|
|
11
|
+
eraOptions: readonly CalendarEraOption[];
|
|
12
|
+
firstVisibleSegment: DateSegment;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
readOnly: boolean;
|
|
15
|
+
required: boolean;
|
|
16
|
+
invalid: boolean;
|
|
17
|
+
onInputRef: (segment: DateSegment, node: HTMLInputElement | null) => void;
|
|
18
|
+
onFocus: (segment: DateSegment) => void;
|
|
19
|
+
onChange: (segment: DateSegment, value: string) => void;
|
|
20
|
+
onKeyDown: (segment: DateSegment, event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
21
|
+
onPaste: (segment: DateSegment, event: React.ClipboardEvent<HTMLInputElement>) => void;
|
|
22
|
+
}>;
|
|
23
|
+
type DateFieldSegmentsProps = Omit<DateFieldPartProps, 'part'> & Readonly<{
|
|
24
|
+
layout: readonly DateSegmentLayoutPart[];
|
|
25
|
+
}>;
|
|
26
|
+
export declare function DateFieldSegments({ layout, ...partProps }: DateFieldSegmentsProps): React.JSX.Element;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=DateFieldSegments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateFieldSegments.d.ts","sourceRoot":"","sources":["../../../../src/DateField/DateFieldSegments.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,iBAAiB,EAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AA4ElD,KAAK,kBAAkB,GAAG,QAAQ,CAAC;IACjC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,KAAK,EAAE,SAAS,CAAC;IACjB,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;IAC3B,UAAU,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACzC,mBAAmB,EAAE,WAAW,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1E,OAAO,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,SAAS,EAAE,CACT,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KACzC,IAAI,CAAC;IACV,OAAO,EAAE,CACP,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,KAC1C,IAAI,CAAC;CACX,CAAC,CAAC;AA0DH,KAAK,sBAAsB,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,GAC5D,QAAQ,CAAC;IAAE,MAAM,EAAE,SAAS,qBAAqB,EAAE,CAAA;CAAE,CAAC,CAAC;AAEzD,wBAAgB,iBAAiB,CAAC,EAChC,MAAM,EACN,GAAG,SAAS,EACb,EAAE,sBAAsB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAgB5C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { DateSegment } from '../date/types';
|
|
3
|
+
export type DateSegmentInputProps = Readonly<{
|
|
4
|
+
segment: DateSegment;
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
tabIndex: number;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
readOnly: boolean;
|
|
10
|
+
required: boolean;
|
|
11
|
+
invalid: boolean;
|
|
12
|
+
valueMin?: number;
|
|
13
|
+
valueMax?: number;
|
|
14
|
+
valueNow?: number;
|
|
15
|
+
valueText?: string;
|
|
16
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
17
|
+
onChange: (segment: DateSegment, value: string) => void;
|
|
18
|
+
onFocus: (segment: DateSegment) => void;
|
|
19
|
+
onKeyDown: (segment: DateSegment, event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
20
|
+
onPaste: (segment: DateSegment, event: React.ClipboardEvent<HTMLInputElement>) => void;
|
|
21
|
+
}>;
|
|
22
|
+
export declare function DateSegmentInput({ segment, value, label, tabIndex, disabled, readOnly, required, invalid, valueMin, valueMax, valueNow, valueText, inputRef, onChange, onFocus, onKeyDown, onPaste, }: DateSegmentInputProps): React.JSX.Element;
|
|
23
|
+
//# sourceMappingURL=DateSegmentInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateSegmentInput.d.ts","sourceRoot":"","sources":["../../../../src/DateField/DateSegmentInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAIjD,MAAM,MAAM,qBAAqB,GAAG,QAAQ,CAAC;IAC3C,OAAO,EAAE,WAAW,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IACvC,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,OAAO,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACxC,SAAS,EAAE,CACT,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KACzC,IAAI,CAAC;IACV,OAAO,EAAE,CACP,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,KAC1C,IAAI,CAAC;CACX,CAAC,CAAC;AAEH,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,KAAK,EACL,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,SAAS,EACT,OAAO,GACR,EAAE,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA8B3C"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { CalendarEraOption, DateSegmentLayoutPart } from '../date/dateLocale';
|
|
2
|
+
import type { DateCalendar, DateSegment, DateValue, IsoDate } from '../date/types';
|
|
3
|
+
import { type DateDraft } from './dateFieldState';
|
|
4
|
+
export type DateFieldKeyCommand = Readonly<{
|
|
5
|
+
type: 'move';
|
|
6
|
+
target: DateSegment;
|
|
7
|
+
}> | Readonly<{
|
|
8
|
+
type: 'restore';
|
|
9
|
+
}> | Readonly<{
|
|
10
|
+
type: 'clear';
|
|
11
|
+
}> | Readonly<{
|
|
12
|
+
type: 'step';
|
|
13
|
+
segment: DateSegment;
|
|
14
|
+
amount: -1 | 1;
|
|
15
|
+
}>;
|
|
16
|
+
type ResolveDateFieldKeyCommandOptions = Readonly<{
|
|
17
|
+
key: string;
|
|
18
|
+
segment: DateSegment;
|
|
19
|
+
direction: 'ltr' | 'rtl';
|
|
20
|
+
visibleSegments: readonly DateSegment[];
|
|
21
|
+
editable: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
export declare function normalizeDateFieldValue<Value extends DateValue | null | undefined>(value: Value, propName: string): Value;
|
|
24
|
+
export declare function resolveDateFieldKeyCommand(options: ResolveDateFieldKeyCommandOptions): DateFieldKeyCommand | null;
|
|
25
|
+
export type DateDraftEdit = Readonly<{
|
|
26
|
+
draft: DateDraft;
|
|
27
|
+
shouldApply: boolean;
|
|
28
|
+
}>;
|
|
29
|
+
type CreateDateDraftEditOptions = Readonly<{
|
|
30
|
+
draft: DateDraft;
|
|
31
|
+
segment: DateSegment;
|
|
32
|
+
nextValue: string;
|
|
33
|
+
locale: string;
|
|
34
|
+
eraOptions: readonly CalendarEraOption[];
|
|
35
|
+
}>;
|
|
36
|
+
export declare function createDateDraftEdit(options: CreateDateDraftEditOptions): DateDraftEdit;
|
|
37
|
+
type StepDateDraftOptions = Readonly<{
|
|
38
|
+
draft: DateDraft;
|
|
39
|
+
segment: DateSegment;
|
|
40
|
+
amount: -1 | 1;
|
|
41
|
+
calendar: DateCalendar;
|
|
42
|
+
locale: string;
|
|
43
|
+
layout: DateSegmentLayoutPart[];
|
|
44
|
+
eraOptions: readonly CalendarEraOption[];
|
|
45
|
+
}>;
|
|
46
|
+
export declare function stepDateDraft(options: StepDateDraftOptions): DateDraft | null;
|
|
47
|
+
type ResolveDateDraftValueOptions = Readonly<{
|
|
48
|
+
draft: DateDraft;
|
|
49
|
+
locale: string;
|
|
50
|
+
calendar: DateCalendar;
|
|
51
|
+
minDate?: IsoDate;
|
|
52
|
+
maxDate?: IsoDate;
|
|
53
|
+
isDateUnavailable?: (value: DateValue) => boolean;
|
|
54
|
+
}>;
|
|
55
|
+
export declare function resolveDateDraftValue({ draft, locale, calendar, minDate, maxDate, isDateUnavailable, }: ResolveDateDraftValueOptions): DateValue | null | undefined;
|
|
56
|
+
type ParseDateFieldPasteOptions = Readonly<{
|
|
57
|
+
text: string;
|
|
58
|
+
draft: DateDraft;
|
|
59
|
+
calendar: DateCalendar;
|
|
60
|
+
locale: string;
|
|
61
|
+
layout: DateSegmentLayoutPart[];
|
|
62
|
+
eraOptions: readonly CalendarEraOption[];
|
|
63
|
+
}>;
|
|
64
|
+
export declare function parseDateFieldPaste(options: ParseDateFieldPasteOptions): DateDraft | null;
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=dateFieldInteractions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateFieldInteractions.d.ts","sourceRoot":"","sources":["../../../../src/DateField/dateFieldInteractions.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,SAAS,EACT,OAAO,EACR,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,mBAAmB,GAC3B,QAAQ,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,CAAC,GAC/C,QAAQ,CAAC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,GAC7B,QAAQ,CAAC;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,GAC3B,QAAQ,CAAC;IACP,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,WAAW,CAAC;IACrB,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC;CAChB,CAAC,CAAC;AAEP,KAAK,iCAAiC,GAAG,QAAQ,CAAC;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,WAAW,CAAC;IACrB,SAAS,EAAE,KAAK,GAAG,KAAK,CAAC;IACzB,eAAe,EAAE,SAAS,WAAW,EAAE,CAAC;IACxC,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAOH,wBAAgB,uBAAuB,CACrC,KAAK,SAAS,SAAS,GAAG,IAAI,GAAG,SAAS,EAC1C,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,KAAK,CAGvC;AAgBD,wBAAgB,0BAA0B,CACxC,OAAO,EA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,GAClB,EAAE,4BAA4B,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAO7D;AAED,KAAK,0BAA0B,GAAG,QAAQ,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,YAAY,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,qBAAqB,EAAE,CAAC;IAChC,UAAU,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAC1C,CAAC,CAAC;AAmFH,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,0BAA0B,GAClC,SAAS,GAAG,IAAI,CAelB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { CalendarEraOption, DateSegmentLayoutPart } from '../date/dateLocale';
|
|
3
|
+
import type { DateCalendar, DateSegment, DateValue } from '../date/types';
|
|
4
|
+
type SegmentValues = Record<DateSegment, string>;
|
|
5
|
+
export type DateDraft = Readonly<{
|
|
6
|
+
sourceKey: string;
|
|
7
|
+
sourceValue: DateValue | null;
|
|
8
|
+
eraId: string;
|
|
9
|
+
values: SegmentValues;
|
|
10
|
+
activeSegment: DateSegment;
|
|
11
|
+
eraTypeahead: string;
|
|
12
|
+
}>;
|
|
13
|
+
export type DateDraftAction = Readonly<{
|
|
14
|
+
type: 'replace';
|
|
15
|
+
draft: DateDraft;
|
|
16
|
+
}> | Readonly<{
|
|
17
|
+
type: 'set-active';
|
|
18
|
+
segment: DateSegment;
|
|
19
|
+
}> | Readonly<{
|
|
20
|
+
type: 'set-segment';
|
|
21
|
+
segment: DateSegment;
|
|
22
|
+
value: string;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const TEMPLATE_VALUE = "2024-11-22";
|
|
25
|
+
export declare function draftReducer(state: DateDraft, action: DateDraftAction): DateDraft;
|
|
26
|
+
export declare function getSourceKey(value: DateValue | null, calendar: DateCalendar, locale: string): string;
|
|
27
|
+
export declare function createDraft(value: DateValue | null, calendar: DateCalendar, locale: string, layout: DateSegmentLayoutPart[], eraOptions: CalendarEraOption[]): DateDraft;
|
|
28
|
+
export declare function areValuesEqual(left: SegmentValues, right: SegmentValues): boolean;
|
|
29
|
+
export declare function getDraftValue(draft: DateDraft, locale: string, calendar: DateCalendar): DateValue | null | undefined;
|
|
30
|
+
export declare function getSegmentWidth(segment: DateSegment, value: string): CSSProperties;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=dateFieldState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dateFieldState.d.ts","sourceRoot":"","sources":["../../../../src/DateField/dateFieldState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAW3C,OAAO,KAAK,EACV,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAEV,YAAY,EACZ,WAAW,EACX,SAAS,EACV,MAAM,eAAe,CAAC;AAEvB,KAAK,aAAa,GAAG,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;AASjD,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,SAAS,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,aAAa,CAAC;IACtB,aAAa,EAAE,WAAW,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,CAAC;AAEH,MAAM,MAAM,eAAe,GACvB,QAAQ,CAAC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC,GAC/C,QAAQ,CAAC;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,OAAO,EAAE,WAAW,CAAA;CAAE,CAAC,GACtD,QAAQ,CAAC;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAE3E,eAAO,MAAM,cAAc,eAAe,CAAC;AAE3C,wBAAgB,YAAY,CAC1B,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,eAAe,GACtB,SAAS,CAYX;AAED,wBAAgB,YAAY,CAC1B,KAAK,EAAE,SAAS,GAAG,IAAI,EACvB,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,MAAM,GACb,MAAM,CAER;AAMD,wBAAgB,WAAW,CACzB,KAAK,EAAE,SAAS,GAAG,IAAI,EACvB,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,qBAAqB,EAAE,EAC/B,UAAU,EAAE,iBAAiB,EAAE,GAC9B,SAAS,CAwCX;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,aAAa,EACnB,KAAK,EAAE,aAAa,GACnB,OAAO,CAIT;AAuCD,wBAAgB,aAAa,CAC3B,KAAK,EAAE,SAAS,EAChB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,YAAY,GACrB,SAAS,GAAG,IAAI,GAAG,SAAS,CAgB9B;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,MAAM,GACZ,aAAa,CAEf"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DateCalendar, DateSegment, DateSegmentLabels, DateValue } from '../date/types';
|
|
3
|
+
export type DateFieldProps = {
|
|
4
|
+
label: string;
|
|
5
|
+
value?: DateValue | null;
|
|
6
|
+
defaultValue?: DateValue | null;
|
|
7
|
+
onValueChange?: (value: DateValue | null) => void;
|
|
8
|
+
minValue?: DateValue;
|
|
9
|
+
maxValue?: DateValue;
|
|
10
|
+
isDateUnavailable?: (value: DateValue) => boolean;
|
|
11
|
+
locale?: string;
|
|
12
|
+
calendar?: DateCalendar;
|
|
13
|
+
segmentLabels?: DateSegmentLabels;
|
|
14
|
+
showClearButton?: boolean;
|
|
15
|
+
clearButtonLabel?: string;
|
|
16
|
+
hideLabel?: boolean;
|
|
17
|
+
helperText?: string;
|
|
18
|
+
error?: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
readOnly?: boolean;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
name?: string;
|
|
23
|
+
id?: string;
|
|
24
|
+
className?: string;
|
|
25
|
+
style?: React.CSSProperties;
|
|
26
|
+
controlClassName?: string;
|
|
27
|
+
controlStyle?: React.CSSProperties;
|
|
28
|
+
};
|
|
29
|
+
export type DateFieldControlProps = Omit<DateFieldProps, 'label' | 'hideLabel' | 'helperText' | 'error' | 'id' | 'className' | 'style'> & {
|
|
30
|
+
inputId: string;
|
|
31
|
+
labelId: string;
|
|
32
|
+
describedBy?: string;
|
|
33
|
+
hasConsumerError: boolean;
|
|
34
|
+
endAdornment?: React.ReactNode;
|
|
35
|
+
onSegmentKeyDown?: (segment: DateSegment, event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
36
|
+
};
|
|
37
|
+
type DateFieldControlComponent = React.ForwardRefExoticComponent<Readonly<DateFieldControlProps> & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
export declare const DateFieldControl: DateFieldControlComponent;
|
|
39
|
+
type DateFieldComponent = React.ForwardRefExoticComponent<Readonly<DateFieldProps> & React.RefAttributes<HTMLDivElement>>;
|
|
40
|
+
declare const DateField: DateFieldComponent;
|
|
41
|
+
export default DateField;
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/DateField/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAetE,OAAO,KAAK,EACV,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,SAAS,EAEV,MAAM,eAAe,CAAC;AAwBvB,MAAM,MAAM,cAAc,GAAG;I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C,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,gBAAgB,CAAC,EAAE,CACjB,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,KACzC,IAAI,CAAC;CACX,CAAC;AA0CF,KAAK,yBAAyB,GAAG,KAAK,CAAC,yBAAyB,CAC9D,QAAQ,CAAC,qBAAqB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CACtE,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,yBAoU7B,CAAC;AAIH,KAAK,kBAAkB,GAAG,KAAK,CAAC,yBAAyB,CACvD,QAAQ,CAAC,cAAc,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAC/D,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,kBA6Cf,CAAC;AAIH,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DateFieldProps } from '../DateField';
|
|
3
|
+
import type { DateValue, FirstDayOfWeek } from '../date/types';
|
|
4
|
+
export type DatePickerProps = DateFieldProps & {
|
|
5
|
+
open?: boolean;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
defaultFocusedValue?: DateValue;
|
|
9
|
+
today?: DateValue;
|
|
10
|
+
firstDayOfWeek?: FirstDayOfWeek;
|
|
11
|
+
calendarLabel?: string;
|
|
12
|
+
previousMonthLabel?: string;
|
|
13
|
+
nextMonthLabel?: string;
|
|
14
|
+
getCalendarButtonLabel?: (formattedValue: string | null) => string;
|
|
15
|
+
};
|
|
16
|
+
type DatePickerComponent = React.ForwardRefExoticComponent<Readonly<DatePickerProps> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const DatePicker: DatePickerComponent;
|
|
18
|
+
export default DatePicker;
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/DatePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAWtB,OAAO,KAAK,EAEV,SAAS,EACT,cAAc,EACf,MAAM,eAAe,CAAC;AAKvB,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC;CACpE,CAAC;AAEF,KAAK,mBAAmB,GAAG,KAAK,CAAC,yBAAyB,CACxD,QAAQ,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAChE,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,mBA6NhB,CAAC;AAIH,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalendarIcon.d.ts","sourceRoot":"","sources":["../../../../src/Icons/CalendarIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,WAAW,CAAC;AAEpD,wBAAgB,YAAY,CAAC,EAC3B,IAAW,EACX,WAAuB,EACvB,KAAK,EACL,SAAS,EACT,KAAK,GACN,EAAE,QAAQ,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAezC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"}
|
|
@@ -21,7 +21,9 @@ export type PopoverTriggerProps = {
|
|
|
21
21
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>;
|
|
22
22
|
type PopoverTriggerComponent = React.ForwardRefExoticComponent<Readonly<PopoverTriggerProps> & React.RefAttributes<HTMLElement>>;
|
|
23
23
|
declare const PopoverTrigger: PopoverTriggerComponent;
|
|
24
|
-
export type PopoverContentProps = React.HTMLAttributes<HTMLDivElement
|
|
24
|
+
export type PopoverContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
25
|
+
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
26
|
+
};
|
|
25
27
|
type PopoverContentComponent = React.ForwardRefExoticComponent<Readonly<PopoverContentProps> & React.RefAttributes<HTMLDivElement>>;
|
|
26
28
|
declare const PopoverContent: PopoverContentComponent;
|
|
27
29
|
type PopoverComponent = typeof PopoverRoot & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Popover/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAkC,MAAM,OAAO,CAAC;AAWvD,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAyBnE,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,CAAC,KAAK,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IACnD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,oBAwGlB,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,CAAC;AAEpE,KAAK,uBAAuB,GAAG,KA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AAK,uBAAuB,GAAG,KAAK,CAAC,yBAAyB,CAC5D,QAAQ,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CACjE,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,uBAyDpB,CAAC;AAGH,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACvE,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACvD,CAAC;AAEF,KAAK,uBAAuB,GAAG,KAAK,CAAC,yBAAyB,CAC5D,QAAQ,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CACpE,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,uBA6CpB,CAAC;AAGH,KAAK,gBAAgB,GAAG,OAAO,WAAW,GAAG;IAC3C,OAAO,EAAE,OAAO,cAAc,CAAC;IAC/B,OAAO,EAAE,OAAO,cAAc,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,gBAGpB,CAAC;AAEH,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SegmentedControlSize = 'sm' | 'md' | 'lg';
|
|
3
|
+
export type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'className' | 'defaultValue' | 'onChange' | 'style'> & {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
label: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
onValueChange?: (value: string) => void;
|
|
9
|
+
hideLabel?: boolean;
|
|
10
|
+
helperText?: string;
|
|
11
|
+
error?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
name?: string;
|
|
15
|
+
size?: SegmentedControlSize;
|
|
16
|
+
className?: string;
|
|
17
|
+
style?: React.CSSProperties;
|
|
18
|
+
groupClassName?: string;
|
|
19
|
+
groupStyle?: React.CSSProperties;
|
|
20
|
+
};
|
|
21
|
+
export type SegmentedControlItemProps = {
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
value: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
id?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
};
|
|
29
|
+
type SegmentedControlRootComponent = React.ForwardRefExoticComponent<Readonly<SegmentedControlProps> & React.RefAttributes<HTMLDivElement>>;
|
|
30
|
+
declare const SegmentedControlRoot: SegmentedControlRootComponent;
|
|
31
|
+
type SegmentedControlItemComponent = React.ForwardRefExoticComponent<Readonly<SegmentedControlItemProps> & React.RefAttributes<HTMLInputElement>>;
|
|
32
|
+
declare const SegmentedControlItem: SegmentedControlItemComponent;
|
|
33
|
+
type SegmentedControlComponent = typeof SegmentedControlRoot & {
|
|
34
|
+
Item: typeof SegmentedControlItem;
|
|
35
|
+
};
|
|
36
|
+
export declare const SegmentedControl: SegmentedControlComponent;
|
|
37
|
+
export default SegmentedControl;
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|