Skip to content

Commit

Permalink
update links
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielRin committed May 15, 2023
1 parent 6860a36 commit 02e7ae2
Show file tree
Hide file tree
Showing 44 changed files with 20,154 additions and 22,316 deletions.
4 changes: 2 additions & 2 deletions dist/components/Alert/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MouseEvent, ReactNode } from "react";
export declare type AlertTheme = {
export type AlertTheme = {
background: string;
};
export declare const variants: {
Expand All @@ -8,7 +8,7 @@ export declare const variants: {
readonly SUCCESS: "success";
readonly WARNING: "warning";
};
export declare type Variants = typeof variants[keyof typeof variants];
export type Variants = typeof variants[keyof typeof variants];
export interface AlertProps {
variant?: Variants;
title: string;
Expand Down
1 change: 0 additions & 1 deletion dist/components/Breadcrumbs/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="react" />
import { SpaceProps } from "styled-system";
export interface BreadcrumbsProps extends SpaceProps {
separator?: React.ReactNode;
Expand Down
14 changes: 7 additions & 7 deletions dist/components/Button/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,17 @@ export declare const variants: {
readonly SUCCESS: "success";
readonly LIGHT: "light";
};
export declare type Scale = typeof scales[keyof typeof scales];
export declare type Variant = typeof variants[keyof typeof variants];
export type Scale = typeof scales[keyof typeof scales];
export type Variant = typeof variants[keyof typeof variants];
/**
* @see https://www.benmvp.com/blog/polymorphic-react-components-typescript/
*/
export declare type AsProps<E extends ElementType = ElementType> = {
export type AsProps<E extends ElementType = ElementType> = {
as?: E;
};
export declare type MergeProps<E extends ElementType> = AsProps<E> & Omit<ComponentProps<E>, keyof AsProps>;
export declare type PolymorphicComponentProps<E extends ElementType, P> = P & MergeProps<E>;
export declare type PolymorphicComponent<P, D extends ElementType = "button"> = <E extends ElementType = D>(props: PolymorphicComponentProps<E, P>) => ReactElement | null;
export type MergeProps<E extends ElementType> = AsProps<E> & Omit<ComponentProps<E>, keyof AsProps>;
export type PolymorphicComponentProps<E extends ElementType, P> = P & MergeProps<E>;
export type PolymorphicComponent<P, D extends ElementType = "button"> = <E extends ElementType = D>(props: PolymorphicComponentProps<E, P>) => ReactElement | null;
export interface BaseButtonProps extends LayoutProps, SpaceProps {
as?: "a" | "button" | typeof Link;
external?: boolean;
Expand All @@ -37,4 +37,4 @@ export interface BaseButtonProps extends LayoutProps, SpaceProps {
startIcon?: ReactNode;
endIcon?: ReactNode;
}
export declare type ButtonProps<P extends ElementType = "button"> = PolymorphicComponentProps<P, BaseButtonProps>;
export type ButtonProps<P extends ElementType = "button"> = PolymorphicComponentProps<P, BaseButtonProps>;
2 changes: 1 addition & 1 deletion dist/components/Card/CardBody.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SpaceProps } from "styled-system";
export declare type CardBodyProps = SpaceProps;
export type CardBodyProps = SpaceProps;
declare const CardBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, CardBodyProps, never>;
export default CardBody;
2 changes: 1 addition & 1 deletion dist/components/Card/CardFooter.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SpaceProps } from "styled-system";
export declare type CardFooterProps = SpaceProps;
export type CardFooterProps = SpaceProps;
declare const CardFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, CardFooterProps, never>;
export default CardFooter;
2 changes: 1 addition & 1 deletion dist/components/Card/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export interface CardRibbonProps extends SpaceProps, HTMLAttributes<HTMLDivEleme
text: string;
ribbonPosition?: "right" | "left";
}
export declare type CardTheme = {
export type CardTheme = {
background: string;
boxShadow: string;
boxShadowActive: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/components/Checkbox/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export declare const scales: {
readonly SM: "sm";
readonly MD: "md";
};
export declare type Scales = typeof scales[keyof typeof scales];
export type Scales = typeof scales[keyof typeof scales];
export interface CheckboxProps {
scale?: Scales;
}
3 changes: 1 addition & 2 deletions dist/components/Dropdown/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="react" />
export declare type Position = "top" | "top-right" | "bottom";
export type Position = "top" | "top-right" | "bottom";
export interface PositionProps {
position?: Position;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/components/Heading/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export declare const scales: {
readonly XL: "xl";
readonly XXL: "xxl";
};
export declare type Tags = typeof tags[keyof typeof tags];
export declare type Scales = typeof scales[keyof typeof scales];
export type Tags = typeof tags[keyof typeof tags];
export type Scales = typeof scales[keyof typeof scales];
export interface HeadingProps {
as?: Tags;
scale?: Scales;
Expand Down
2 changes: 1 addition & 1 deletion dist/components/Image/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export declare const variants: {
readonly DEFAULT: "default";
readonly INVERTED: "inverted";
};
export declare type Variant = typeof variants[keyof typeof variants];
export type Variant = typeof variants[keyof typeof variants];
export interface TokenPairImageProps extends BoxProps {
primarySrc: string;
secondarySrc: string;
Expand Down
1 change: 0 additions & 1 deletion dist/components/Input/InputGroup.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="react" />
import { InputGroupProps } from "./types";
declare const InputGroup: ({ scale, startIcon, endIcon, children, ...props }: InputGroupProps) => JSX.Element;
export default InputGroup;
2 changes: 1 addition & 1 deletion dist/components/Input/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export declare const scales: {
readonly MD: "md";
readonly LG: "lg";
};
export declare type Scales = typeof scales[keyof typeof scales];
export type Scales = typeof scales[keyof typeof scales];
export interface InputProps extends SpaceProps {
scale?: Scales;
isSuccess?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion dist/components/Message/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export declare const variants: {
readonly WARNING: "warning";
readonly DANGER: "danger";
};
export declare type Variant = typeof variants[keyof typeof variants];
export type Variant = typeof variants[keyof typeof variants];
export interface MessageProps extends SpaceProps {
variant: Variant;
icon?: React.ReactNode;
Expand Down
1 change: 0 additions & 1 deletion dist/components/NotificationDot/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="react" />
export interface NotificationDotProps {
show?: boolean;
children: React.ReactElement | React.ReactElement[];
Expand Down
2 changes: 1 addition & 1 deletion dist/components/Overlay/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export declare type OverlayProps = {
export type OverlayProps = {
show: boolean;
zIndex?: number;
};
6 changes: 3 additions & 3 deletions dist/components/PancakeToggle/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { InputHTMLAttributes } from "react";
export declare type PancakeToggleTheme = {
export type PancakeToggleTheme = {
handleBackground: string;
handleShadow: string;
};
Expand All @@ -8,7 +8,7 @@ export declare const scales: {
readonly MD: "md";
readonly LG: "lg";
};
export declare type Scales = typeof scales[keyof typeof scales];
export type Scales = typeof scales[keyof typeof scales];
export interface PancakeToggleProps extends InputHTMLAttributes<HTMLInputElement> {
scale?: Scales;
checked?: boolean;
Expand Down Expand Up @@ -38,4 +38,4 @@ export declare const scaleKeys: {
readonly butterSmearTwoTop: "butterSmearTwoTop";
readonly butterSmearTwoRight: "butterSmearTwoRight";
};
export declare type ScaleKeys = typeof scaleKeys[keyof typeof scaleKeys];
export type ScaleKeys = typeof scaleKeys[keyof typeof scaleKeys];
4 changes: 2 additions & 2 deletions dist/components/Progress/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ export declare const scales: {
readonly MD: "md";
readonly SM: "sm";
};
export declare type Scale = typeof scales[keyof typeof scales];
export declare type Variant = typeof variants[keyof typeof variants];
export type Scale = typeof scales[keyof typeof scales];
export type Variant = typeof variants[keyof typeof variants];
export interface ProgressProps {
variant?: Variant;
scale?: Scale;
Expand Down
4 changes: 2 additions & 2 deletions dist/components/Radio/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { SpaceProps } from "styled-system";
export declare type RadioTheme = {
export type RadioTheme = {
handleBackground: string;
};
export declare const scales: {
readonly SM: "sm";
readonly MD: "md";
};
export declare type Scales = typeof scales[keyof typeof scales];
export type Scales = typeof scales[keyof typeof scales];
export interface RadioProps extends SpaceProps {
scale?: Scales;
}
4 changes: 2 additions & 2 deletions dist/components/Skeleton/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export declare const variant: {
readonly RECT: "rect";
readonly CIRCLE: "circle";
};
export declare type Animation = typeof animation[keyof typeof animation];
export declare type Variant = typeof variant[keyof typeof variant];
export type Animation = typeof animation[keyof typeof animation];
export type Variant = typeof variant[keyof typeof variant];
export interface SkeletonProps extends SpaceProps, LayoutProps {
animation?: Animation;
variant?: Variant;
Expand Down
2 changes: 1 addition & 1 deletion dist/components/Stepper/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DefaultTheme } from "styled-components";
export interface ThemedProps {
theme: DefaultTheme;
}
export declare type Status = "past" | "current" | "future";
export type Status = "past" | "current" | "future";
export interface StatusProps extends ThemedProps {
theme: DefaultTheme;
status: Status;
Expand Down
1 change: 0 additions & 1 deletion dist/components/TabMenu/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="react" />
import { ColorProps } from "styled-system";
export interface TabMenuProps {
activeIndex?: number;
Expand Down
27 changes: 13 additions & 14 deletions dist/components/Table/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="react" />
export declare type ColumnType<T> = {
export type ColumnType<T> = {
name: string;
label?: string;
hidden?: boolean;
Expand All @@ -10,7 +9,7 @@ export declare type ColumnType<T> = {
}) => React.ReactNode;
headerRender?: HeaderRenderType;
};
export declare type ColumnStateType<T> = {
export type ColumnStateType<T> = {
name: string;
label: string;
hidden: boolean;
Expand All @@ -21,10 +20,10 @@ export declare type ColumnStateType<T> = {
};
headerRender?: HeaderRenderType;
};
export declare type HeaderRenderType = ({ label }: {
export type HeaderRenderType = ({ label }: {
label: React.ReactNode;
}) => React.ReactNode;
export declare type HeaderType<T> = {
export type HeaderType<T> = {
name: string;
label?: string;
hidden?: boolean;
Expand All @@ -35,26 +34,26 @@ export declare type HeaderType<T> = {
sort?: ((a: RowType<T>, b: RowType<T>) => number) | undefined;
render: () => React.ReactNode;
};
export declare type DataType = {
export type DataType = {
[key: string]: any;
};
export declare type ColumnByNamesType<T> = {
export type ColumnByNamesType<T> = {
[key: string]: ColumnType<T>;
};
export declare type RenderFunctionType<T> = ({ value, row }: RenderFunctionArgsType<T>) => React.ReactNode | undefined;
declare type RenderFunctionArgsType<T> = {
export type RenderFunctionType<T> = ({ value, row }: RenderFunctionArgsType<T>) => React.ReactNode | undefined;
type RenderFunctionArgsType<T> = {
value: any;
row: T;
};
export declare type ColumnByNameType<T> = Omit<Required<ColumnType<T>>, "name" | "sort">;
export type ColumnByNameType<T> = Omit<Required<ColumnType<T>>, "name" | "sort">;
export interface RowType<T extends DataType> {
id: number;
cells: CellType[];
hidden?: boolean;
selected?: boolean;
original: T;
}
export declare type CellType = {
export type CellType = {
value: any;
render: () => React.ReactNode;
};
Expand Down Expand Up @@ -97,15 +96,15 @@ export interface UseTableReturnType<T> {
toggleAllState: boolean;
pagination: PaginatorType;
}
declare type PaginatorType = {
type PaginatorType = {
nextPage: () => void;
prevPage: () => void;
page: number;
perPage: number;
canNext: boolean;
canPrev: boolean;
};
export declare type TableState<T extends DataType> = {
export type TableState<T extends DataType> = {
columnsByName: ColumnByNamesType<T>;
columns: ColumnStateType<T>[];
rows: RowType<T>[];
Expand All @@ -117,7 +116,7 @@ export declare type TableState<T extends DataType> = {
pagination: PaginatorType;
paginationEnabled: boolean;
};
export declare type TableAction<T extends DataType> = {
export type TableAction<T extends DataType> = {
type: "TOGGLE_SORT";
columnName: string;
isAscOverride?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions dist/components/Tag/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export declare const scales: {
readonly MD: "md";
readonly SM: "sm";
};
export declare type Scale = typeof scales[keyof typeof scales];
export declare type Variant = typeof variants[keyof typeof variants];
export type Scale = typeof scales[keyof typeof scales];
export type Variant = typeof variants[keyof typeof variants];
export interface TagProps extends SpaceProps, TypographyProps {
variant?: Variant;
scale?: Scale;
Expand Down
6 changes: 3 additions & 3 deletions dist/components/Toggle/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { InputHTMLAttributes } from "react";
export declare type ToggleTheme = {
export type ToggleTheme = {
handleBackground: string;
};
export declare const scales: {
readonly SM: "sm";
readonly MD: "md";
readonly LG: "lg";
};
export declare type Scales = typeof scales[keyof typeof scales];
export type Scales = typeof scales[keyof typeof scales];
export interface ToggleProps extends InputHTMLAttributes<HTMLInputElement> {
scale?: Scales;
checked?: boolean;
Expand All @@ -27,4 +27,4 @@ export declare const scaleKeys: {
readonly toggleHeight: "toggleHeight";
readonly toggleWidth: "toggleWidth";
};
export declare type ScaleKeys = typeof scaleKeys[keyof typeof scaleKeys];
export type ScaleKeys = typeof scaleKeys[keyof typeof scaleKeys];
2 changes: 1 addition & 1 deletion dist/components/Tooltip/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export declare type TooltipTheme = {
export type TooltipTheme = {
background: string;
text: string;
boxShadow: string;
Expand Down
4 changes: 2 additions & 2 deletions dist/hooks/useMatchBreakpoints.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
declare type State = {
type State = {
[key: string]: boolean;
};
declare type BreakpointChecks = {
type BreakpointChecks = {
isMobile: boolean;
isTablet: boolean;
isDesktop: boolean;
Expand Down
4 changes: 2 additions & 2 deletions dist/hooks/useParticleBurst.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
declare type ParticleOptions = {
type ParticleOptions = {
size?: number;
distance?: number;
};
declare type Options = {
type Options = {
imgSrc: string;
selector?: string;
numberOfParticles?: number;
Expand Down
3 changes: 1 addition & 2 deletions dist/hooks/useTooltip/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="react" />
import { Placement, Padding } from "@popperjs/core";
export interface TooltipRefs {
targetRef: React.Dispatch<React.SetStateAction<HTMLElement | null>>;
Expand All @@ -12,4 +11,4 @@ export interface TooltipOptions {
tooltipPadding?: Padding;
tooltipOffset?: [number, number];
}
export declare type TriggerType = "click" | "hover" | "focus";
export type TriggerType = "click" | "hover" | "focus";
Loading

0 comments on commit 02e7ae2

Please sign in to comment.