-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40ca5be
commit 07900ce
Showing
29 changed files
with
191 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import React from "react"; | ||
type BoxContentProps = React.HTMLAttributes<HTMLDivElement>; | ||
export declare function BoxContent({ className, children }: BoxContentProps): import("react/jsx-runtime").JSX.Element; | ||
export declare function BoxContent({ className, children, ...rest }: BoxContentProps): import("react/jsx-runtime").JSX.Element; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
type BoxHeaderProps = React.HTMLAttributes<HTMLDivElement>; | ||
export declare function BoxHeader({ className, children }: BoxHeaderProps): import("react/jsx-runtime").JSX.Element; | ||
export declare function BoxHeader({ className, children, ...rest }: BoxHeaderProps): import("react/jsx-runtime").JSX.Element; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import React from "react"; | ||
type BoxRootProps = React.HTMLAttributes<HTMLDivElement>; | ||
export declare function BoxRoot({ className, children }: BoxRootProps): import("react/jsx-runtime").JSX.Element; | ||
export declare function BoxRoot({ className, children, ...rest }: BoxRootProps): import("react/jsx-runtime").JSX.Element; | ||
export {}; |
2 changes: 1 addition & 1 deletion
2
packages/kamalion-ui/types/components/Button/ButtonVariants.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export declare const buttonVariants: (props?: ({ | ||
variant?: "default" | "accent" | "success" | "danger" | "ghost" | null | undefined; | ||
size?: "icon" | "default" | "sm" | "lg" | null | undefined; | ||
size?: "default" | "sm" | "lg" | "icon" | null | undefined; | ||
} & import("class-variance-authority/types").ClassProp) | undefined) => string; |
4 changes: 4 additions & 0 deletions
4
packages/kamalion-ui/types/components/Dialog/DialogContent.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import * as DialogPrimitive from "@radix-ui/react-dialog"; | ||
import React from "react"; | ||
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; | ||
export { DialogContent }; |
4 changes: 4 additions & 0 deletions
4
packages/kamalion-ui/types/components/Dialog/DialogDescription.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import * as DialogPrimitive from "@radix-ui/react-dialog"; | ||
import React from "react"; | ||
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>; | ||
export { DialogDescription }; |
5 changes: 5 additions & 0 deletions
5
packages/kamalion-ui/types/components/Dialog/DialogFooter.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
declare const DialogFooter: { | ||
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; | ||
displayName: string; | ||
}; | ||
export { DialogFooter }; |
6 changes: 6 additions & 0 deletions
6
packages/kamalion-ui/types/components/Dialog/DialogHeader.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import React from "react"; | ||
declare const DialogHeader: { | ||
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; | ||
displayName: string; | ||
}; | ||
export { DialogHeader }; |
4 changes: 4 additions & 0 deletions
4
packages/kamalion-ui/types/components/Dialog/DialogOverlay.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import * as DialogPrimitive from "@radix-ui/react-dialog"; | ||
import React from "react"; | ||
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; | ||
export { DialogOverlay }; |
6 changes: 6 additions & 0 deletions
6
packages/kamalion-ui/types/components/Dialog/DialogPortal.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import * as DialogPrimitive from "@radix-ui/react-dialog"; | ||
declare const DialogPortal: { | ||
({ ...props }: DialogPrimitive.DialogPortalProps): import("react/jsx-runtime").JSX.Element; | ||
displayName: string | undefined; | ||
}; | ||
export { DialogPortal }; |
4 changes: 4 additions & 0 deletions
4
packages/kamalion-ui/types/components/Dialog/DialogTitle.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import * as DialogPrimitive from "@radix-ui/react-dialog"; | ||
import React from "react"; | ||
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>; | ||
export { DialogTitle }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import * as DialogPrimitive from "@radix-ui/react-dialog"; | ||
export declare const Dialog: { | ||
Root: import("react").FC<DialogPrimitive.DialogProps>; | ||
Trigger: import("react").ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>; | ||
Portal: { | ||
({ ...props }: DialogPrimitive.DialogPortalProps): import("react/jsx-runtime").JSX.Element; | ||
displayName: string | undefined; | ||
}; | ||
Overlay: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>; | ||
Content: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>; | ||
Header: { | ||
({ className, ...props }: import("react").HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; | ||
displayName: string; | ||
}; | ||
Footer: { | ||
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; | ||
displayName: string; | ||
}; | ||
Title: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>; | ||
Description: import("react").ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>; | ||
}; |
8 changes: 8 additions & 0 deletions
8
packages/kamalion-ui/types/components/Input/InputCheckbox.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import * as React from "react"; | ||
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"; | ||
export type InputCheckboxState = CheckboxPrimitive.CheckedState; | ||
type InputCheckboxProps = { | ||
noControl?: boolean; | ||
}; | ||
declare const InputCheckbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & InputCheckboxProps & React.RefAttributes<HTMLButtonElement>>; | ||
export { InputCheckbox }; |
6 changes: 2 additions & 4 deletions
6
packages/kamalion-ui/types/components/Input/InputDatePicker.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import * as React from "react"; | ||
import { DayPickerSingleProps } from "react-day-picker"; | ||
export interface InputDatePickerProps extends Omit<DayPickerSingleProps, "mode"> { | ||
triggerClassName?: string; | ||
name?: string; | ||
mode?: "single"; | ||
} | ||
declare const InputDatePicker: { | ||
({ className, triggerClassName, name, ...props }: InputDatePickerProps): import("react/jsx-runtime").JSX.Element | null; | ||
displayName: string; | ||
}; | ||
declare const InputDatePicker: React.ForwardRefExoticComponent<import("@radix-ui/react-popover").PopoverProps & InputDatePickerProps & React.RefAttributes<never>>; | ||
export { InputDatePicker }; |
19 changes: 19 additions & 0 deletions
19
packages/kamalion-ui/types/components/Input/InputMask.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as React from "react"; | ||
import { PatternFormatProps } from "react-number-format"; | ||
type MaskType = "date" | "tel" | "cel" | "hiddenCel" | "cpf" | "cnpj" | "cep"; | ||
type MaskPropsType = { | ||
[key in MaskType]: PatternFormatProps & { | ||
returnFormattedValue?: boolean; | ||
}; | ||
}; | ||
declare const maskProps: MaskPropsType; | ||
type InputMaskType = keyof typeof maskProps; | ||
export type InputMaskProps = Omit<PatternFormatProps, "type" | "format"> & { | ||
type: InputMaskType; | ||
noControl?: boolean; | ||
}; | ||
declare const InputMask: React.ForwardRefExoticComponent<Omit<PatternFormatProps, "type" | "format"> & { | ||
type: InputMaskType; | ||
noControl?: boolean; | ||
} & React.RefAttributes<HTMLInputElement>>; | ||
export { InputMask }; |
17 changes: 17 additions & 0 deletions
17
packages/kamalion-ui/types/components/Input/InputNumber.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from "react"; | ||
import { NumericFormatProps } from "react-number-format"; | ||
type MaskType = "money" | "percent" | "number"; | ||
type MaskPropsType = { | ||
[key in MaskType]: NumericFormatProps; | ||
}; | ||
declare const maskProps: MaskPropsType; | ||
type InputNumberType = keyof typeof maskProps; | ||
export type InputNumberProps = Omit<NumericFormatProps, "type"> & { | ||
type?: InputNumberType; | ||
noControl?: boolean; | ||
}; | ||
declare const InputNumber: React.ForwardRefExoticComponent<Omit<NumericFormatProps, "type"> & { | ||
type?: InputNumberType; | ||
noControl?: boolean; | ||
} & React.RefAttributes<HTMLInputElement>>; | ||
export { InputNumber }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import * as React from "react"; | ||
type InputProps = React.InputHTMLAttributes<HTMLInputElement>; | ||
declare const InputText: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>; | ||
declare const InputText: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & { | ||
displayType?: "input" | "text"; | ||
noControl?: boolean; | ||
} & React.RefAttributes<HTMLInputElement>>; | ||
export { InputText }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import * as React from "react"; | ||
import * as ProgressPrimitive from "@radix-ui/react-progress"; | ||
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>; | ||
export { Progress }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element; | ||
export { Skeleton }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ReactNode } from "react"; | ||
export type ToastType = "success" | "danger" | "info" | "warning"; | ||
export type ToastTypeMap = { | ||
[key in ToastType]: { | ||
color: string; | ||
icon: ReactNode; | ||
iconBg: string; | ||
border: string; | ||
}; | ||
}; | ||
interface Props { | ||
message: string; | ||
type: ToastType; | ||
isVisible: boolean; | ||
onClose: () => void; | ||
onFinished: (e: unknown) => void; | ||
} | ||
export declare function Toast({ message, type, isVisible, onClose, onFinished, }: Props): import("react/jsx-runtime").JSX.Element; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./useDialog"; | ||
export * from "./useToast"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { ReactNode } from "react"; | ||
type ShowDialogProps = { | ||
content: React.ReactNode; | ||
title?: string; | ||
contentClassName?: string; | ||
onClose?: () => void; | ||
}; | ||
interface DialogContextProps { | ||
showDialog: (props: ShowDialogProps) => void; | ||
closeDialog: () => void; | ||
} | ||
export declare function DialogProvider({ children }: { | ||
children: ReactNode; | ||
}): import("react/jsx-runtime").JSX.Element; | ||
export declare function useDialog(): DialogContextProps; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { ReactNode } from "react"; | ||
import { ToastType } from "../components"; | ||
interface ToastProviderProps { | ||
showToast: ({ message, type }: { | ||
message: string; | ||
type?: ToastType; | ||
}) => void; | ||
} | ||
export declare const ToastContext: import("react").Context<ToastProviderProps | null>; | ||
export declare function ToastProvider({ children }: { | ||
children: ReactNode; | ||
}): import("react/jsx-runtime").JSX.Element; | ||
export declare function useToast(): ToastProviderProps; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export * from "./components"; | ||
export * from "./stores"; | ||
export * from "./util"; | ||
export * from "./hooks"; |