Skip to content

Commit

Permalink
Build & Release v1.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
robuddybot committed Jan 4, 2025
1 parent a1c8ffb commit 7d592d6
Show file tree
Hide file tree
Showing 16 changed files with 442 additions and 364 deletions.
4 changes: 2 additions & 2 deletions dist/components/AnimatedNumber.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ type Props = {
* If provided, a function that formats the inner string. By default,
* attempts to match the numeric precision of `value`.
*/
format?: (value: number) => string;
format: (value: number) => string;
/**
* If provided, the initial value displayed. By default, the same as `value`.
* If `initial` and `value` are different, the component immediately starts
* animating.
*/
initial?: number;
initial: number;
}>;
/**
* ## AnimatedNumber
Expand Down
41 changes: 29 additions & 12 deletions dist/components/Button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,11 @@ type Props = Partial<{
/** Align content vertically using flex. Use lineHeight if the height is static. */
verticalAlignContent: string;
}> & EllipsisUnion & BoxProps;
/**
* ## Button
* Buttons allow users to take actions, and make choices, with a single click.
*/
export declare function Button(props: Props): import("react/jsx-runtime").JSX.Element;
export declare namespace Button {
var Checkbox: typeof ButtonCheckbox;
var Confirm: typeof ButtonConfirm;
var Input: typeof ButtonInput;
var File: typeof ButtonFile;
}
type CheckProps = Partial<{
checked: BooleanLike;
}> & Props;
export declare function ButtonCheckbox(props: CheckProps): import("react/jsx-runtime").JSX.Element;
declare function ButtonCheckbox(props: CheckProps): import("react/jsx-runtime").JSX.Element;
type ConfirmProps = Partial<{
confirmColor: string;
confirmContent: ReactNode;
Expand All @@ -78,7 +68,6 @@ declare function ButtonConfirm(props: ConfirmProps): import("react/jsx-runtime")
type InputProps = Partial<{
currentValue: string;
defaultValue: string;
fluid: boolean;
maxLength: number;
onCommit: (e: any, value: string) => void;
placeholder: string;
Expand All @@ -90,4 +79,32 @@ type FileProps = {
onSelectFiles: (files: string | string[]) => void;
} & Props;
declare function ButtonFile(props: FileProps): import("react/jsx-runtime").JSX.Element;
/**
* ## Button
* Buttons allow users to take actions, and make choices, with a single click.
*/
export declare namespace Button {
/**
* ## Button.Checkbox
* A ghetto checkbox, made entirely using existing Button API.
*/
const Checkbox: typeof ButtonCheckbox;
/**
* ## Button.Confirm
* A button with an extra confirmation step, using native button component.
*/
const Confirm: typeof ButtonConfirm;
/**
* ## Button.Input
* A button that turns into an input box after the first click.
*
* Turns back into a button after the user hits enter, defocuses, or hits escape. Enter and defocus commit, while escape cancels.
*/
const Input: typeof ButtonInput;
/**
* ## Button.File
* Accepts file input, based on the native element.
*/
const File: typeof ButtonFile;
}
export {};
Loading

0 comments on commit 7d592d6

Please sign in to comment.