docthub-core-components 1.0.54 → 1.0.55
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/logoAnimation.gif +0 -0
- package/dist/src/components/overrides/ui/auto-complete.d.ts +47 -0
- package/dist/src/components/overrides/ui/chips/doct-chip.d.ts +20 -0
- package/dist/src/components/overrides/ui/circular-progress.d.ts +8 -0
- package/dist/src/components/overrides/ui/composed/address-form-section.d.ts +10 -0
- package/dist/src/components/overrides/ui/composed/contact-form-section.d.ts +11 -0
- package/dist/src/components/overrides/ui/composed/search-filter-section.d.ts +24 -0
- package/dist/src/components/overrides/ui/composed/user-registration-section.d.ts +11 -0
- package/dist/src/components/overrides/ui/currencyInput/currency-input.d.ts +10 -0
- package/dist/src/components/overrides/ui/doct-animation-loader.d.ts +1 -0
- package/dist/src/components/overrides/ui/expandable-card.d.ts +12 -0
- package/dist/src/components/overrides/ui/inputs/labeled-input.d.ts +21 -0
- package/dist/src/components/overrides/ui/inputs/otp-input.d.ts +12 -0
- package/dist/src/components/overrides/ui/inputs/password-input.d.ts +14 -0
- package/dist/src/components/overrides/ui/pickers/date-picker-field.d.ts +30 -0
- package/dist/src/components/overrides/ui/pickers/manual-date-picker-field.d.ts +19 -0
- package/dist/src/components/overrides/ui/pickers/select-field.d.ts +21 -0
- package/dist/src/components/overrides/ui/search/auto-complete.d.ts +15 -0
- package/dist/src/components/overrides/ui/search/search-input.d.ts +11 -0
- package/dist/src/components/overrides/ui/showcase/component-section.d.ts +15 -0
- package/dist/src/components/ui/alert.d.ts +8 -0
- package/dist/src/components/ui/avatar.d.ts +6 -0
- package/dist/src/components/ui/badge.d.ts +9 -0
- package/dist/src/components/ui/button.d.ts +18 -0
- package/dist/src/components/ui/calendar.d.ts +8 -0
- package/dist/src/components/ui/checkbox.d.ts +7 -0
- package/dist/src/components/ui/command.d.ts +80 -0
- package/dist/src/components/ui/dialog.d.ts +19 -0
- package/dist/src/components/ui/drawer.d.ts +22 -0
- package/dist/src/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/src/components/ui/input.d.ts +3 -0
- package/dist/src/components/ui/label.d.ts +5 -0
- package/dist/src/components/ui/popover.d.ts +7 -0
- package/dist/src/components/ui/progress.d.ts +4 -0
- package/dist/src/components/ui/radio-group.d.ts +5 -0
- package/dist/src/components/ui/select.d.ts +13 -0
- package/dist/src/components/ui/skeleton.d.ts +2 -0
- package/dist/src/components/ui/tabs.d.ts +7 -0
- package/dist/src/components/ui/textarea.d.ts +9 -0
- package/dist/src/components/ui/toast.d.ts +20 -0
- package/dist/src/components/ui/tooltip.d.ts +7 -0
- package/dist/src/components/ui/typography.d.ts +11 -0
- package/dist/src/index.d.ts +34 -0
- package/dist/src/lib/utils.d.ts +2 -0
- package/dist/src/util/getInputClasses.d.ts +5 -0
- package/dist/src/vite-env.d.ts +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +4 -7
|
Binary file
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type OptionType = string | {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
} | Record<string, unknown>;
|
|
6
|
+
interface AutocompleteProps<T> {
|
|
7
|
+
options?: T[];
|
|
8
|
+
dataSource?: T[];
|
|
9
|
+
value?: T | T[] | null;
|
|
10
|
+
onChange?: (event: React.SyntheticEvent | null, value: T | T[] | null) => void;
|
|
11
|
+
change?: (event: {
|
|
12
|
+
itemData: T | T[] | null;
|
|
13
|
+
}) => void;
|
|
14
|
+
onInputChange?: (event: React.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
multiple?: boolean;
|
|
17
|
+
freeSolo?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
size?: "small" | "medium" | "large";
|
|
21
|
+
variant?: "outlined" | "filled" | "standard";
|
|
22
|
+
label?: string;
|
|
23
|
+
helperText?: string;
|
|
24
|
+
error?: string;
|
|
25
|
+
required?: boolean;
|
|
26
|
+
fullWidth?: boolean;
|
|
27
|
+
clearable?: boolean;
|
|
28
|
+
disableCloseOnSelect?: boolean;
|
|
29
|
+
filterOptions?: (options: T[], state: {
|
|
30
|
+
inputValue: string;
|
|
31
|
+
}) => T[];
|
|
32
|
+
getOptionLabel?: (option: T) => string;
|
|
33
|
+
getOptionValue?: (option: T) => string | T;
|
|
34
|
+
isOptionEqualToValue?: (option: T, value: T) => boolean;
|
|
35
|
+
renderOption?: (option: T, index: number) => React.ReactNode;
|
|
36
|
+
renderTags?: (value: T[], handleTagRemove: (tag: T) => void) => React.ReactNode;
|
|
37
|
+
fields?: {
|
|
38
|
+
value: string | number;
|
|
39
|
+
text: string;
|
|
40
|
+
};
|
|
41
|
+
noOptionsText?: string;
|
|
42
|
+
emptyMessage?: string;
|
|
43
|
+
className?: string;
|
|
44
|
+
inputClassName?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const DoctAutocomplete: <T extends OptionType>({ options, dataSource, value, onChange, change, onInputChange, placeholder, multiple, freeSolo, disabled, loading, size, variant, label, helperText, error, required, fullWidth, clearable, disableCloseOnSelect, filterOptions, getOptionLabel, getOptionValue, isOptionEqualToValue, renderOption, renderTags, fields, noOptionsText, emptyMessage, className, inputClassName, ...props }: AutocompleteProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode, MouseEvent, FC } from 'react';
|
|
2
|
+
export interface ChipProps {
|
|
3
|
+
label: string;
|
|
4
|
+
variant?: 'filled' | 'outlined';
|
|
5
|
+
color?: 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error';
|
|
6
|
+
size?: 'small' | 'medium' | 'large';
|
|
7
|
+
deletable?: boolean;
|
|
8
|
+
onDelete?: (e: MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
+
onClick?: (e: MouseEvent<HTMLDivElement>) => void;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
avatar?: ReactNode | string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const Chip: FC<ChipProps>;
|
|
16
|
+
export interface ChipsContainerProps {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const ChipsContainer: FC<ChipsContainerProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface CircularProgressProps extends React.SVGProps<SVGSVGElement> {
|
|
3
|
+
size?: number;
|
|
4
|
+
strokeWidth?: number;
|
|
5
|
+
colorClassName?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const CircularProgress: React.ForwardRefExoticComponent<Omit<CircularProgressProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
8
|
+
export { CircularProgress };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface AddressFormSectionProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
countries?: Array<{
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}>;
|
|
7
|
+
onValueChange?: (field: string, value: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function AddressFormSection({ className, countries, onValueChange, }: AddressFormSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface ContactFormSectionProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
showDepartment?: boolean;
|
|
4
|
+
departmentOptions?: Array<{
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}>;
|
|
8
|
+
onValueChange?: (field: string, value: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function ContactFormSection({ className, showDepartment, departmentOptions, onValueChange, }: ContactFormSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
interface SearchFilterSectionProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
searchPlaceholder?: string;
|
|
4
|
+
categories?: Array<{
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}>;
|
|
8
|
+
sortOptions?: Array<{
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}>;
|
|
12
|
+
showDateFilter?: boolean;
|
|
13
|
+
onSearch?: (query: string) => void;
|
|
14
|
+
onFilter?: (filters: Record<string, unknown>) => void;
|
|
15
|
+
onClear?: () => void;
|
|
16
|
+
defaultFilters?: {
|
|
17
|
+
category?: string;
|
|
18
|
+
sort?: string;
|
|
19
|
+
dateFrom?: Date;
|
|
20
|
+
dateTo?: Date;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare const SearchFilterSection: React.FC<SearchFilterSectionProps>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface UserRegistrationSectionProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
showDateOfBirth?: boolean;
|
|
4
|
+
accountTypes?: Array<{
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}>;
|
|
8
|
+
onValueChange?: (field: string, value: string | Date) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function UserRegistrationSection({ className, showDateOfBirth, accountTypes, onValueChange, }: UserRegistrationSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
helperText?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
startAdornment?: React.ReactNode;
|
|
7
|
+
endAdornment?: React.ReactNode;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const CurrencyInput: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function DoctAnimationLoader(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DoctTypographyProps } from '../../ui/typography';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface ExpandableCardProps {
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
content: React.ReactNode;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
titleTypographyProps?: Partial<DoctTypographyProps>;
|
|
9
|
+
contentTypographyProps?: Partial<DoctTypographyProps>;
|
|
10
|
+
}
|
|
11
|
+
export declare function ExpandableCard({ title, content, defaultOpen, className, titleTypographyProps, contentTypographyProps, }: ExpandableCardProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
interface LabeledInputProps extends React.HTMLAttributes<HTMLInputElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
helperText?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
type?: "text" | "email" | "password" | "number" | "tel";
|
|
9
|
+
leftIcon?: ReactNode;
|
|
10
|
+
rightIcon?: ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
inputClassName?: string;
|
|
13
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
showCharCount?: boolean;
|
|
15
|
+
maxLength?: number;
|
|
16
|
+
value?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
fridged?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const LabeledInput: FC<LabeledInputProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface OtpInputProps {
|
|
2
|
+
length?: number;
|
|
3
|
+
label?: string;
|
|
4
|
+
value: string[];
|
|
5
|
+
onChange: (otp: string[]) => void;
|
|
6
|
+
onComplete?: (otp: string) => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
inputClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const OtpInput: React.FC<OtpInputProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface PasswordInputProps extends Omit<React.HTMLAttributes<HTMLInputElement>, 'onChange'> {
|
|
2
|
+
label?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
helperText?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
showPassword?: boolean;
|
|
9
|
+
onShowPasswordChange?: (show: boolean) => void;
|
|
10
|
+
value?: string;
|
|
11
|
+
onChange?: (value: string) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function PasswordInput({ label, placeholder, helperText, error, required, className, showPassword, onShowPasswordChange, value, onChange, ...restProps }: PasswordInputProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DayPickerSingleProps } from 'react-day-picker';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* DatePickerFieldProps supports all custom props and extra DayPicker props via dayPickerProps.
|
|
5
|
+
* - All custom props are explicit.
|
|
6
|
+
* - Extra DayPicker props can be passed via ...dayPickerProps.
|
|
7
|
+
* - All extra HTML div props can be passed via ...rest.
|
|
8
|
+
*/
|
|
9
|
+
export interface DatePickerFieldProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> {
|
|
10
|
+
label?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
helperText?: string;
|
|
13
|
+
error?: string;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
value?: Date;
|
|
16
|
+
onSelect?: (date: Date | undefined) => void;
|
|
17
|
+
className?: string;
|
|
18
|
+
minDate?: Date;
|
|
19
|
+
maxDate?: Date;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
locale?: string;
|
|
23
|
+
showOutsideDays?: boolean;
|
|
24
|
+
dayPickerProps?: Partial<DayPickerSingleProps>;
|
|
25
|
+
month?: Date;
|
|
26
|
+
onMonthChange?: (month: Date) => void;
|
|
27
|
+
open?: boolean;
|
|
28
|
+
onOpenChange?: (open: boolean) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare const DatePickerField: React.FC<DatePickerFieldProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type DateFormat = "MM/DD/YYYY" | "DD/MM/YYYY" | "YYYY-MM-DD" | "DD-MM-YYYY";
|
|
3
|
+
export interface ManualDatePickerFieldProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
helperText?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
value?: Date;
|
|
9
|
+
onSelect?: (date: Date | undefined) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
minDate?: Date;
|
|
12
|
+
maxDate?: Date;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
locale?: string;
|
|
16
|
+
dateFormat?: DateFormat;
|
|
17
|
+
inputClassName?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const ManualDatePickerField: React.FC<ManualDatePickerFieldProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface SelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface SelectFieldProps {
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
value?: string;
|
|
11
|
+
leadingIcon?: ReactNode;
|
|
12
|
+
helperText?: string;
|
|
13
|
+
error?: string;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
className?: string;
|
|
17
|
+
variant?: "default" | "gray";
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function SelectField({ label, placeholder, options, value, leadingIcon, helperText, error, required, onValueChange, className, variant, disabled, }: SelectFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type Option = Record<"value" | "label", string> & Record<string, string>;
|
|
2
|
+
type AutoCompleteProps = {
|
|
3
|
+
options: Option[];
|
|
4
|
+
emptyMessage: string;
|
|
5
|
+
value?: Option;
|
|
6
|
+
onValueChange?: (value: Option) => void;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
size?: "small" | "medium" | "large";
|
|
12
|
+
variant?: "white" | "grey";
|
|
13
|
+
};
|
|
14
|
+
export declare const AutoComplete: ({ options, placeholder, emptyMessage, value, onValueChange, disabled, isLoading, className, size, variant, }: AutoCompleteProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface SearchInputProps {
|
|
3
|
+
size?: "small" | "medium" | "large";
|
|
4
|
+
variant?: "white" | "grey";
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
query?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const SearchInput: React.FC<SearchInputProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface ComponentSectionProps {
|
|
3
|
+
title: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function ComponentSection({ title, children, className }: ComponentSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
interface ComponentVariantProps {
|
|
9
|
+
title: string;
|
|
10
|
+
variant?: "primary" | "secondary";
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function ComponentVariant({ title, variant, children, className }: ComponentVariantProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
7
|
+
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
+
export { Alert, AlertTitle, AlertDescription };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
+
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
4
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
5
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "outline" | "secondary" | "destructive" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
|
+
}
|
|
8
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const DoctButtonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "outline" | "ghost" | "error" | "success" | "warning" | "blue" | "disabled" | "brandBlue" | "primary" | null | undefined;
|
|
5
|
+
size?: "large" | "medium" | "small" | "icon.large" | "icon.medium" | "icon.small" | null | undefined;
|
|
6
|
+
iconSize?: "large" | "medium" | "small" | null | undefined;
|
|
7
|
+
iconPosition?: "left" | "right" | null | undefined;
|
|
8
|
+
fullWidth?: boolean | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
interface DoctButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof DoctButtonVariants> {
|
|
11
|
+
asChild?: boolean;
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
iconOnly?: boolean;
|
|
14
|
+
iconSize?: "large" | "medium" | "small";
|
|
15
|
+
iconPosition?: "left" | "right";
|
|
16
|
+
}
|
|
17
|
+
declare const DoctButton: React.ForwardRefExoticComponent<DoctButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
export { DoctButton, DoctButtonVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DayButton, DayPicker } from 'react-day-picker';
|
|
2
|
+
import { DoctButton } from './button';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
|
+
buttonVariant?: React.ComponentProps<typeof DoctButton>["variant"];
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Calendar, CalendarDayButton };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
+
export interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
4
|
+
color?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export { Checkbox };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
6
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
7
|
+
} & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
+
label?: string;
|
|
11
|
+
shouldFilter?: boolean;
|
|
12
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
13
|
+
defaultValue?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
loop?: boolean;
|
|
17
|
+
disablePointerSelection?: boolean;
|
|
18
|
+
vimBindings?: boolean;
|
|
19
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
declare const CommandDialog: ({ children, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
22
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
23
|
+
} & {
|
|
24
|
+
asChild?: boolean;
|
|
25
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
26
|
+
value?: string;
|
|
27
|
+
onValueChange?: (search: string) => void;
|
|
28
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
29
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
32
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
33
|
+
} & {
|
|
34
|
+
asChild?: boolean;
|
|
35
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
36
|
+
label?: string;
|
|
37
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
41
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
42
|
+
} & {
|
|
43
|
+
asChild?: boolean;
|
|
44
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
45
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
46
|
+
children?: React.ReactNode;
|
|
47
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
48
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
49
|
+
} & {
|
|
50
|
+
asChild?: boolean;
|
|
51
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
52
|
+
heading?: React.ReactNode;
|
|
53
|
+
value?: string;
|
|
54
|
+
forceMount?: boolean;
|
|
55
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
56
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
57
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
58
|
+
} & {
|
|
59
|
+
asChild?: boolean;
|
|
60
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
61
|
+
alwaysRender?: boolean;
|
|
62
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
64
|
+
children?: React.ReactNode;
|
|
65
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
66
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
67
|
+
} & {
|
|
68
|
+
asChild?: boolean;
|
|
69
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
onSelect?: (value: string) => void;
|
|
72
|
+
value?: string;
|
|
73
|
+
keywords?: string[];
|
|
74
|
+
forceMount?: boolean;
|
|
75
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
declare const CommandShortcut: {
|
|
77
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
78
|
+
displayName: string;
|
|
79
|
+
};
|
|
80
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
4
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
6
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DialogHeader: {
|
|
10
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
};
|
|
13
|
+
declare const DialogFooter: {
|
|
14
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
18
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
19
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Drawer as DrawerPrimitive } from 'vaul';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const Drawer: {
|
|
4
|
+
({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
declare const DrawerTrigger: React.ForwardRefExoticComponent<import('@radix-ui/react-dialog').DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const DrawerPortal: typeof import('vaul').Portal;
|
|
9
|
+
declare const DrawerClose: React.ForwardRefExoticComponent<import('@radix-ui/react-dialog').DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-dialog').DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DrawerHeader: {
|
|
13
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
declare const DrawerFooter: {
|
|
17
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
20
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-dialog').DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
21
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-dialog').DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
22
|
+
export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
4
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
7
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
8
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
10
|
+
inset?: boolean;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
15
|
+
inset?: boolean;
|
|
16
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
20
|
+
inset?: boolean;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const DropdownMenuShortcut: {
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import('class-variance-authority/types').ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
+
export { Label };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverAnchor: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3
|
+
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Progress };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
+
declare const Select: React.FC<SelectPrimitive.SelectProps>;
|
|
4
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
6
|
+
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
helperText?: string;
|
|
5
|
+
errorText?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
9
|
+
export { Textarea };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ToasterProps as SonnerToasterProps } from 'sonner';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export type ToastVariant = "error" | "info" | "warning" | "success";
|
|
4
|
+
export type ToastPosition = "top-right" | "top-center" | "top-left" | "bottom-right" | "bottom-center" | "bottom-left";
|
|
5
|
+
export interface ToastOptions {
|
|
6
|
+
description?: string;
|
|
7
|
+
variant?: ToastVariant;
|
|
8
|
+
action?: {
|
|
9
|
+
label: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
};
|
|
12
|
+
duration?: number;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
iconPosition?: "left" | "right";
|
|
15
|
+
}
|
|
16
|
+
export declare const toast: (message: string, options?: ToastOptions) => string | number;
|
|
17
|
+
export interface ToasterProps extends Omit<SonnerToasterProps, "position"> {
|
|
18
|
+
position?: ToastPosition;
|
|
19
|
+
}
|
|
20
|
+
export declare function Toaster(props: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
+
declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
4
|
+
declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
|
|
5
|
+
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface DoctTypographyProps {
|
|
3
|
+
variant: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "h7" | "h8" | "title1" | "title2" | "title3" | "title4" | "body1" | "body2" | "body3" | "body4" | "textLabel1" | "textLabel2" | "textLabel3" | "textLabel4";
|
|
4
|
+
weight?: "regular" | "medium" | "semiBold" | "bold" | "extraBold" | "light";
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
color?: string;
|
|
7
|
+
align?: "inherit" | "left" | "center" | "right" | "justify";
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const DoctTypography: React.FC<DoctTypographyProps>;
|
|
11
|
+
export { DoctTypography };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { DoctButton } from './components/ui/button';
|
|
2
|
+
export { DoctTypography } from './components/ui/typography';
|
|
3
|
+
export { DoctAnimationLoader } from './components/overrides/ui/doct-animation-loader';
|
|
4
|
+
export { CircularProgress as DoctCircularProgress } from './components/overrides/ui/circular-progress';
|
|
5
|
+
export { LabeledInput as DoctLabeledInput } from './components/overrides/ui/inputs/labeled-input';
|
|
6
|
+
export { OtpInput as DoctOtpInput } from './components/overrides/ui/inputs/otp-input';
|
|
7
|
+
export { PasswordInput as DoctPasswordInput } from './components/overrides/ui/inputs/password-input';
|
|
8
|
+
export { Textarea as DoctTextareaField } from './components/ui/textarea';
|
|
9
|
+
export { DatePickerField as DoctDatePickerField } from './components/overrides/ui/pickers/date-picker-field';
|
|
10
|
+
export { ManualDatePickerField as DoctManualDatePickerField } from './components/overrides/ui/pickers/manual-date-picker-field';
|
|
11
|
+
export { SelectField as DoctSelectField } from './components/overrides/ui/pickers/select-field';
|
|
12
|
+
export { Chip as DoctChip } from './components/overrides/ui/chips/doct-chip';
|
|
13
|
+
export { SearchFilterSection as DoctSearchFilterSection } from './components/overrides/ui/composed/search-filter-section';
|
|
14
|
+
export { UserRegistrationSection as DoctUserRegistrationSection } from './components/overrides/ui/composed/user-registration-section';
|
|
15
|
+
export { AddressFormSection as DoctAddressFormSection } from './components/overrides/ui/composed/address-form-section';
|
|
16
|
+
export { ContactFormSection as DoctContactFormSection } from './components/overrides/ui/composed/contact-form-section';
|
|
17
|
+
export { SearchInput as DoctSearchInput } from './components/overrides/ui/search/search-input';
|
|
18
|
+
export { AutoComplete as DoctAutoComplete, type Option, } from './components/overrides/ui/search/auto-complete';
|
|
19
|
+
export { ComponentSection as DoctComponentSection, ComponentVariant, } from './components/overrides/ui/showcase/component-section';
|
|
20
|
+
export { CurrencyInput as DoctCurrencyInput } from './components/overrides/ui/currencyInput/currency-input';
|
|
21
|
+
export { DoctAutocomplete } from './components/overrides/ui/auto-complete';
|
|
22
|
+
export { ExpandableCard as DoctExpandableCard } from './components/overrides/ui/expandable-card';
|
|
23
|
+
export { Alert as DoctAlert, AlertTitle as DoctAlertTitle, AlertDescription as DoctAlertDescription, } from './components/ui/alert';
|
|
24
|
+
export { Avatar as DoctAvatar, AvatarImage as DoctAvatarImage, AvatarFallback as DoctAvatarFallback, } from './components/ui/avatar';
|
|
25
|
+
export { Checkbox as DoctCheckbox } from './components/ui/checkbox';
|
|
26
|
+
export { Dialog as DoctDialog, DialogTrigger as DoctDialogTrigger, DialogContent as DoctDialogContent, DialogHeader as DoctDialogHeader, DialogTitle as DoctDialogTitle, DialogDescription as DoctDialogDescription, DialogFooter as DoctDialogFooter, DialogClose as DoctDialogClose, } from './components/ui/dialog';
|
|
27
|
+
export { Drawer as DoctDrawer, DrawerTrigger as DoctDrawerTrigger, DrawerContent as DoctDrawerContent, DrawerHeader as DoctDrawerHeader, DrawerFooter as DoctDrawerFooter, DrawerTitle as DoctDrawerTitle, DrawerDescription as DoctDrawerDescription, DrawerClose as DoctDrawerClose, } from './components/ui/drawer';
|
|
28
|
+
export { DropdownMenu as DoctDropdownMenu, DropdownMenuTrigger as DoctDropdownMenuTrigger, DropdownMenuContent as DoctDropdownMenuContent, DropdownMenuItem as DoctDropdownMenuItem, DropdownMenuCheckboxItem as DoctDropdownMenuCheckboxItem, DropdownMenuRadioItem as DoctDropdownMenuRadioItem, DropdownMenuLabel as DoctDropdownMenuLabel, DropdownMenuSeparator as DoctDropdownMenuSeparator, DropdownMenuShortcut as DoctDropdownMenuShortcut, DropdownMenuGroup as DoctDropdownMenuGroup, DropdownMenuSub as DoctDropdownMenuSub, DropdownMenuSubContent as DoctDropdownMenuSubContent, DropdownMenuSubTrigger as DoctDropdownMenuSubTrigger, DropdownMenuRadioGroup as DoctDropdownMenuRadioGroup, } from './components/ui/dropdown-menu';
|
|
29
|
+
export { Popover as DoctPopover, PopoverTrigger as DoctPopoverTrigger, PopoverContent as DoctPopoverContent, } from './components/ui/popover';
|
|
30
|
+
export { RadioGroup as DoctRadioGroup, RadioGroupItem as DoctRadioGroupItem, } from './components/ui/radio-group';
|
|
31
|
+
export { Tabs as DoctTabs, TabsList as DoctTabsList, TabsTrigger as DoctTabsTrigger, TabsContent as DoctTabsContent, } from './components/ui/tabs';
|
|
32
|
+
export { Progress as DoctProgress } from './components/ui/progress';
|
|
33
|
+
export { Toaster as DoctToaster, toast as doctToast, } from './components/ui/toast';
|
|
34
|
+
export { Tooltip as DoctTooltip, TooltipTrigger as DoctTooltipTrigger, TooltipContent as DoctTooltipContent, TooltipProvider as DoctTooltipProvider, } from './components/ui/tooltip';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docthub-core-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist
|
|
9
|
-
"dist/index.cjs.js",
|
|
10
|
-
"dist/index.d.ts",
|
|
11
|
-
"dist/docthub-core-components.css"
|
|
8
|
+
"dist"
|
|
12
9
|
],
|
|
13
10
|
"exports": {
|
|
14
11
|
".": {
|
|
@@ -19,8 +16,8 @@
|
|
|
19
16
|
},
|
|
20
17
|
"sideEffects": false,
|
|
21
18
|
"peerDependencies": {
|
|
22
|
-
"react": "^
|
|
23
|
-
"react-dom": "^
|
|
19
|
+
"react": "^18.0.0",
|
|
20
|
+
"react-dom": "^18.0.0"
|
|
24
21
|
},
|
|
25
22
|
"scripts": {
|
|
26
23
|
"dev": "vite",
|