@fileverse/ui 4.1.6 → 4.1.7
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 +55 -42
- package/dist/index.es.js +16619 -15091
- 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>>;
|
|
@@ -884,13 +865,44 @@ declare type ThemeProviderProps = {
|
|
|
884
865
|
|
|
885
866
|
export declare const ThemeToggle: () => JSX_2.Element;
|
|
886
867
|
|
|
868
|
+
export declare const TimePeriodSelect: React_2.ForwardRefExoticComponent<PeriodSelectorProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
869
|
+
|
|
870
|
+
export declare const TimePicker: React_2.ForwardRefExoticComponent<TimePickerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
871
|
+
|
|
872
|
+
export declare const TimePickerInput: default_2.ForwardRefExoticComponent<TimePickerInputProps & default_2.RefAttributes<HTMLInputElement>>;
|
|
873
|
+
|
|
874
|
+
declare interface TimePickerInputProps extends default_2.InputHTMLAttributes<HTMLInputElement> {
|
|
875
|
+
picker: TimePickerType;
|
|
876
|
+
date: Date | undefined;
|
|
877
|
+
setDate: (date: Date | undefined) => void;
|
|
878
|
+
period?: Period;
|
|
879
|
+
onRightFocus?: () => void;
|
|
880
|
+
onLeftFocus?: () => void;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
declare interface TimePickerProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
884
|
+
/** The selected date */
|
|
885
|
+
date?: Date;
|
|
886
|
+
/** Callback function when date changes */
|
|
887
|
+
setDate: (date: Date | undefined) => void;
|
|
888
|
+
/** Display hours in 12 hour format with AM/PM selector */
|
|
889
|
+
use12Hours?: boolean;
|
|
890
|
+
/** Show seconds input */
|
|
891
|
+
showSeconds?: boolean;
|
|
892
|
+
/** Disable all inputs */
|
|
893
|
+
disabled?: boolean;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
declare type TimePickerType = "minutes" | "seconds" | "hours" | "12hours";
|
|
897
|
+
|
|
887
898
|
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;
|
|
899
|
+
variant?: "default" | "danger" | "secondary" | "success" | "mini" | null | undefined;
|
|
889
900
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom" | null | undefined;
|
|
890
901
|
} & ClassProp) | undefined) => string> & {
|
|
891
902
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
892
903
|
duration?: number;
|
|
893
904
|
hasIcon?: boolean;
|
|
905
|
+
customIcon?: string;
|
|
894
906
|
} & React_2.RefAttributes<HTMLLIElement>>;
|
|
895
907
|
|
|
896
908
|
export declare function toast({ ...props }: Toast_2): {
|
|
@@ -914,6 +926,7 @@ export declare const Toaster: ({ position, duration, }: ToasterProps) => JSX_2.E
|
|
|
914
926
|
export declare interface ToasterProps {
|
|
915
927
|
position?: "top-right" | "top-left" | "bottom-right" | "bottom-left" | "center-top" | "center-bottom";
|
|
916
928
|
duration?: number;
|
|
929
|
+
customIcon?: string;
|
|
917
930
|
}
|
|
918
931
|
|
|
919
932
|
declare type ToasterToast = ToastProps & {
|