@fileverse/ui 4.1.6 → 4.1.7-patch-2
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.css +312 -187
- package/dist/index.es.d.ts +58 -43
- package/dist/index.es.js +16629 -15093
- package/dist/style.css +1 -1
- package/package.json +3 -1
package/dist/index.es.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
|
2
2
|
import { ClassProp } from 'class-variance-authority/types';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
import { Command as Command_2 } from 'cmdk';
|
|
5
|
+
import { DayPicker } from 'react-day-picker';
|
|
5
6
|
import { default as default_2 } from 'react';
|
|
6
7
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
7
8
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
@@ -253,6 +254,13 @@ export declare interface CounterProps {
|
|
|
253
254
|
count: number;
|
|
254
255
|
}
|
|
255
256
|
|
|
257
|
+
export declare const DatePicker: {
|
|
258
|
+
({ className, classNames, showOutsideDays, ...props }: DatePickerProps): JSX_2.Element;
|
|
259
|
+
displayName: string;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
declare type DatePickerProps = React_2.ComponentProps<typeof DayPicker>;
|
|
263
|
+
|
|
256
264
|
export declare const Dialog: React_2.FC<DialogPrimitive.DialogProps>;
|
|
257
265
|
|
|
258
266
|
export declare const DialogClose: React_2.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
@@ -514,52 +522,14 @@ export declare interface IconButtonProps extends React.ButtonHTMLAttributes<HTML
|
|
|
514
522
|
fill?: string;
|
|
515
523
|
}
|
|
516
524
|
|
|
525
|
+
declare type IconComponent = default_2.FC<IconProps>;
|
|
526
|
+
|
|
517
527
|
export declare interface IconProps extends SvgProps, VariantProps<typeof iconVariants> {
|
|
518
528
|
name: keyof typeof Icons;
|
|
519
529
|
className?: string;
|
|
520
530
|
}
|
|
521
531
|
|
|
522
|
-
declare const Icons:
|
|
523
|
-
Camera: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
524
|
-
Check: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
525
|
-
CheckboxEmpty: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
526
|
-
Comment: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
527
|
-
ExternalLink: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
528
|
-
FilePlus: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
529
|
-
FileText: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
530
|
-
Download: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
531
|
-
Grid: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
532
|
-
Heart: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
533
|
-
HeartBeat: ({ width, height, ...props }: IconProps) => JSX_2.Element;
|
|
534
|
-
ImagePlus: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
535
|
-
InfoCircle: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
536
|
-
Dashboard: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
537
|
-
Link: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
538
|
-
List: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
539
|
-
Notification: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
540
|
-
PanelLeft: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
541
|
-
Paperclip: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
542
|
-
PenLine: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
543
|
-
Pencil: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
544
|
-
Placeholder: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
545
|
-
Play: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
546
|
-
Plus: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
547
|
-
Question: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
548
|
-
Search: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
549
|
-
Section: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
550
|
-
Settings: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
551
|
-
Share2: default_2.ForwardRefExoticComponent<Omit<IconProps, "ref"> & default_2.RefAttributes<SVGSVGElement>>;
|
|
552
|
-
Share: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
553
|
-
Facebook: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
554
|
-
Instagram: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
555
|
-
Linkedin: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
556
|
-
X: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
557
|
-
Trash: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
558
|
-
Type: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
559
|
-
Upload: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
560
|
-
Users: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
561
|
-
Close: ({ fill, width, height, ...props }: IconProps) => JSX_2.Element;
|
|
562
|
-
};
|
|
532
|
+
declare const Icons: Record<string, IconComponent>;
|
|
563
533
|
|
|
564
534
|
declare const iconVariants: (props?: ({
|
|
565
535
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
@@ -592,6 +562,17 @@ export declare interface LucideIconProps extends Omit<SvgProps_2, "name">, Varia
|
|
|
592
562
|
strokeWidth?: number;
|
|
593
563
|
}
|
|
594
564
|
|
|
565
|
+
declare type Period = "AM" | "PM";
|
|
566
|
+
|
|
567
|
+
declare interface PeriodSelectorProps {
|
|
568
|
+
period: Period;
|
|
569
|
+
setPeriod: (m: Period) => void;
|
|
570
|
+
date: Date | undefined;
|
|
571
|
+
setDate: (date: Date | undefined) => void;
|
|
572
|
+
onRightFocus?: () => void;
|
|
573
|
+
onLeftFocus?: () => void;
|
|
574
|
+
}
|
|
575
|
+
|
|
595
576
|
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
596
577
|
|
|
597
578
|
export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -639,7 +620,9 @@ export declare interface SegmentedControlProps extends default_2.AllHTMLAttribut
|
|
|
639
620
|
|
|
640
621
|
export declare const Select: React_2.FC<SelectPrimitive.SelectProps>;
|
|
641
622
|
|
|
642
|
-
export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> &
|
|
623
|
+
export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
624
|
+
showScrollButtons?: boolean;
|
|
625
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
643
626
|
|
|
644
627
|
export declare const SelectGroup: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
645
628
|
|
|
@@ -884,13 +867,44 @@ declare type ThemeProviderProps = {
|
|
|
884
867
|
|
|
885
868
|
export declare const ThemeToggle: () => JSX_2.Element;
|
|
886
869
|
|
|
870
|
+
export declare const TimePeriodSelect: React_2.ForwardRefExoticComponent<PeriodSelectorProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
871
|
+
|
|
872
|
+
export declare const TimePicker: React_2.ForwardRefExoticComponent<TimePickerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
873
|
+
|
|
874
|
+
export declare const TimePickerInput: default_2.ForwardRefExoticComponent<TimePickerInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
875
|
+
|
|
876
|
+
declare interface TimePickerInputProps extends default_2.InputHTMLAttributes<HTMLInputElement> {
|
|
877
|
+
picker: TimePickerType;
|
|
878
|
+
date: Date | undefined;
|
|
879
|
+
setDate: (date: Date | undefined) => void;
|
|
880
|
+
period?: Period;
|
|
881
|
+
onRightFocus?: () => void;
|
|
882
|
+
onLeftFocus?: () => void;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
declare interface TimePickerProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
886
|
+
/** The selected date */
|
|
887
|
+
date?: Date;
|
|
888
|
+
/** Callback function when date changes */
|
|
889
|
+
setDate: (date: Date | undefined) => void;
|
|
890
|
+
/** Display hours in 12 hour format with AM/PM selector */
|
|
891
|
+
use12Hours?: boolean;
|
|
892
|
+
/** Show seconds input */
|
|
893
|
+
showSeconds?: boolean;
|
|
894
|
+
/** Disable all inputs */
|
|
895
|
+
disabled?: boolean;
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
declare type TimePickerType = "minutes" | "seconds" | "hours" | "12hours";
|
|
899
|
+
|
|
887
900
|
export declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
888
|
-
variant?: "default" | "danger" | "secondary" | "success" | null | undefined;
|
|
901
|
+
variant?: "default" | "danger" | "secondary" | "success" | "mini" | null | undefined;
|
|
889
902
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom" | null | undefined;
|
|
890
903
|
} & ClassProp) | undefined) => string> & {
|
|
891
904
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
892
905
|
duration?: number;
|
|
893
906
|
hasIcon?: boolean;
|
|
907
|
+
customIcon?: string;
|
|
894
908
|
} & React_2.RefAttributes<HTMLLIElement>>;
|
|
895
909
|
|
|
896
910
|
export declare function toast({ ...props }: Toast_2): {
|
|
@@ -914,6 +928,7 @@ export declare const Toaster: ({ position, duration, }: ToasterProps) => JSX_2.E
|
|
|
914
928
|
export declare interface ToasterProps {
|
|
915
929
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
916
930
|
duration?: number;
|
|
931
|
+
customIcon?: string;
|
|
917
932
|
}
|
|
918
933
|
|
|
919
934
|
declare type ToasterToast = ToastProps & {
|