Skip to content

Commit 2018bde

Browse files
committed
release: v4.0.0-alpha.1
1 parent f0c0975 commit 2018bde

File tree

230 files changed

+17863
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

230 files changed

+17863
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
.docz
2-
dist/
32
coverage/
43
node_modules/

dist/components/Types.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import PropTypes from 'prop-types';
2+
export declare type Breakpoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
3+
export declare type Colors = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string;
4+
export declare const colorPropType: PropTypes.Requireable<string>;
5+
export declare type Placements = 'auto' | 'auto-start' | 'auto-end' | 'top-end' | 'top' | 'top-start' | 'bottom-end' | 'bottom' | 'bottom-start' | 'right-start' | 'right' | 'right-end' | 'left-start' | 'left' | 'left-end' | undefined;
6+
export declare const placementPropType: PropTypes.Requireable<Placements>;
7+
export declare type Shapes = 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string;
8+
export declare const shapePropType: PropTypes.Requireable<string>;
9+
export declare type Triggers = 'hover' | 'focus' | 'click';
10+
export declare const triggerPropType: PropTypes.Requireable<Triggers>;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React, { HTMLAttributes } from 'react';
2+
export interface CAccordionProps extends HTMLAttributes<HTMLDivElement> {
3+
/**
4+
* A string of all className you want applied to the base component. [docs]
5+
*/
6+
className?: string;
7+
/**
8+
* Removes the default background-color, some borders, and some rounded corners to render accordions edge-to-edge with their parent container. [docs]
9+
*/
10+
flush?: boolean;
11+
}
12+
export declare const CAccordion: React.ForwardRefExoticComponent<CAccordionProps & React.RefAttributes<HTMLDivElement>>;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React, { HTMLAttributes } from 'react';
2+
export interface CAccordionBodyProps extends HTMLAttributes<HTMLDivElement> {
3+
/**
4+
* A string of all className you want applied to the base component. [docs]
5+
*/
6+
className?: string;
7+
}
8+
export declare const CAccordionBody: React.ForwardRefExoticComponent<CAccordionBodyProps & React.RefAttributes<HTMLDivElement>>;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React, { HTMLAttributes } from 'react';
2+
export interface CAccordionButtonProps extends HTMLAttributes<HTMLButtonElement> {
3+
/**
4+
* A string of all className you want applied to the base component. [docs]
5+
*/
6+
className?: string;
7+
/**
8+
* Set button state to collapsed. [docs]
9+
*/
10+
collapsed?: boolean;
11+
}
12+
export declare const CAccordionButton: React.ForwardRefExoticComponent<CAccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import React from 'react';
2+
import { CCollapseProps } from '../collapse/CCollapse';
3+
export declare const CAccordionCollapse: React.ForwardRefExoticComponent<CCollapseProps & React.RefAttributes<HTMLDivElement>>;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React, { HTMLAttributes } from 'react';
2+
export interface CAccordionHeaderProps extends HTMLAttributes<HTMLDivElement> {
3+
/**
4+
* A string of all className you want applied to the base component. [docs]
5+
*/
6+
className?: string;
7+
}
8+
export declare const CAccordionHeader: React.ForwardRefExoticComponent<CAccordionHeaderProps & React.RefAttributes<HTMLDivElement>>;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React, { HTMLAttributes } from 'react';
2+
export interface CAccordionItemProps extends HTMLAttributes<HTMLDivElement> {
3+
/**
4+
* A string of all className you want applied to the base component. [docs]
5+
*/
6+
className?: string;
7+
}
8+
export declare const CAccordionItem: React.ForwardRefExoticComponent<CAccordionItemProps & React.RefAttributes<HTMLDivElement>>;

dist/components/alert/CAlert.d.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import React, { HTMLAttributes } from 'react';
2+
import { Colors } from '../Types';
3+
export interface CAlertProps extends HTMLAttributes<HTMLDivElement> {
4+
/**
5+
* A string of all className you want applied to the component. [docs]
6+
*/
7+
className?: string;
8+
/**
9+
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
10+
*
11+
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string }
12+
* @default 'primary'
13+
*/
14+
color: Colors;
15+
/**
16+
* Optionally add a close button to alert and allow it to self dismiss. [docs]
17+
*/
18+
dismissible?: boolean;
19+
/**
20+
* Method called before the dissmiss animation has started. [docs]
21+
*/
22+
onDismiss?: () => void;
23+
/**
24+
* Method called after the dissmiss animation has completed and the component is removed from the dom. [docs]
25+
*/
26+
onDismissed?: () => void;
27+
/**
28+
* Set the alert variant to a solid. [docs]
29+
*/
30+
variant?: 'solid' | string;
31+
/**
32+
* Toggle the visibility of component. [docs]
33+
*
34+
* @default true
35+
*/
36+
visible?: boolean;
37+
}
38+
export declare const CAlert: React.ForwardRefExoticComponent<CAlertProps & React.RefAttributes<HTMLDivElement>>;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React, { ElementType, HTMLAttributes } from 'react';
2+
export interface CAlertHeadingProps extends HTMLAttributes<HTMLHeadingElement> {
3+
/**
4+
* A string of all className you want applied to the base component. [docs]
5+
*/
6+
className?: string;
7+
/**
8+
* Component used for the root node. Either a string to use a HTML element or a component. [docs]
9+
*
10+
* @default 'h4'
11+
*/
12+
component?: string | ElementType;
13+
}
14+
export declare const CAlertHeading: React.ForwardRefExoticComponent<CAlertHeadingProps & React.RefAttributes<HTMLHeadingElement>>;

dist/components/alert/CAlertLink.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React, { AnchorHTMLAttributes } from 'react';
2+
export interface CAlertLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
3+
/**
4+
* A string of all className you want applied to the base component. [docs]
5+
*/
6+
className?: string;
7+
}
8+
export declare const CAlertLink: React.ForwardRefExoticComponent<CAlertLinkProps & React.RefAttributes<HTMLAnchorElement>>;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom/extend-expect';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom/extend-expect';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom/extend-expect';

dist/components/animations/CFade.d.ts

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import React from 'react';
2+
import { Transition } from 'react-transition-group';
3+
export interface CFadeProps {
4+
/**
5+
* Run the fade in animation when the component mounts, if it is initially
6+
* shown
7+
*/
8+
appear?: boolean;
9+
children: any;
10+
/**
11+
* A string of all className you want applied to the base component. [docs]
12+
*/
13+
className?: string;
14+
/**
15+
* Show the component; triggers the fade in or fade out animation
16+
*/
17+
in?: boolean;
18+
/**
19+
* Wait until the first "enter" transition to mount the component (add it to the DOM)
20+
*/
21+
mountOnEnter?: boolean;
22+
/**
23+
* Unmount the component (remove it from the DOM) when it is faded out
24+
*/
25+
unmountOnExit?: boolean;
26+
/**
27+
* Callback fired before the component fades in
28+
*/
29+
onEnter?(node: HTMLElement): any;
30+
/**
31+
* Callback fired after the component starts to fade in
32+
*/
33+
onEntering?(node: HTMLElement): any;
34+
/**
35+
* Callback fired after the has component faded in
36+
*/
37+
onEntered?(node: HTMLElement): any;
38+
/**
39+
* Callback fired before the component fades out
40+
*/
41+
onExit?(node: HTMLElement): any;
42+
/**
43+
* Callback fired after the component starts to fade out
44+
*/
45+
onExiting?(node: HTMLElement): any;
46+
/**
47+
* Callback fired after the component has faded out
48+
*/
49+
onExited?(node: HTMLElement): any;
50+
/**
51+
* Duration of the fade animation in milliseconds, to ensure that finishing
52+
* callbacks are fired even if the original browser transition end events are
53+
* canceled
54+
*/
55+
timeout?: number;
56+
}
57+
export declare const CFade: React.ForwardRefExoticComponent<CFadeProps & React.RefAttributes<Transition<any>>>;

dist/components/avatar/CAvatar.d.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import React, { HTMLAttributes } from 'react';
2+
import { Colors, Shapes } from '../Types';
3+
export interface CAvatarProps extends HTMLAttributes<HTMLDivElement> {
4+
/**
5+
* A string of all className you want applied to the component. [docs]
6+
*/
7+
className?: string;
8+
/**
9+
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
10+
*
11+
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
12+
*/
13+
color?: Colors;
14+
/**
15+
* Select the shape of the component. [docs]
16+
*
17+
* @type {'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string}
18+
*/
19+
shape?: Shapes;
20+
/**
21+
* Size the component small, large, or extra large. [docs]
22+
*/
23+
size?: string;
24+
/**
25+
* The src attribute for the img element. [docs]
26+
*/
27+
src?: string;
28+
/**
29+
* Sets the color context of the status indicator to one of CoreUI’s themed colors. [docs]
30+
*
31+
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
32+
*/
33+
status?: Colors;
34+
/**
35+
* Sets the text color of the component to one of CoreUI’s themed colors. [docs]
36+
*/
37+
textColor?: string;
38+
}
39+
export declare const CAvatar: React.ForwardRefExoticComponent<CAvatarProps & React.RefAttributes<HTMLDivElement>>;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom/extend-expect';
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React, { HTMLAttributes } from 'react';
2+
export interface CBackdropProps extends HTMLAttributes<HTMLDivElement> {
3+
/**
4+
* A string of all className you want applied to the base component. [docs]
5+
*/
6+
className?: string;
7+
/**
8+
* Toggle the visibility of modal component. [docs]
9+
*/
10+
visible?: boolean;
11+
}
12+
export declare const CBackdrop: React.ForwardRefExoticComponent<CBackdropProps & React.RefAttributes<HTMLDivElement>>;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom/extend-expect';

dist/components/badge/CBadge.d.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import React, { ElementType, HTMLAttributes } from 'react';
2+
import { Colors, Shapes } from '../Types';
3+
export interface CBadgeProps extends HTMLAttributes<HTMLDivElement | HTMLSpanElement> {
4+
/**
5+
* A string of all className you want applied to the component. [docs]
6+
*/
7+
className?: string;
8+
/**
9+
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
10+
*
11+
* @type {'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string}
12+
*/
13+
color?: Colors;
14+
/**
15+
* Component used for the root node. Either a string to use a HTML element or a component. [docs]
16+
*
17+
* @default 'span'
18+
*/
19+
component?: string | ElementType;
20+
/**
21+
* Select the shape of the component. [docs]
22+
*
23+
* @type 'rounded' | 'rounded-top' | 'rounded-end' | 'rounded-bottom' | 'rounded-start' | 'rounded-circle' | 'rounded-pill' | 'rounded-0' | 'rounded-1' | 'rounded-2' | 'rounded-3' | string
24+
*/
25+
shape?: Shapes;
26+
/**
27+
* Size the component small. [docs]
28+
*
29+
* @type 'sm'
30+
*/
31+
size?: 'sm';
32+
/**
33+
* Sets the text color of the component to one of CoreUI’s themed colors. [docs]
34+
*/
35+
textColor?: string;
36+
}
37+
export declare const CBadge: React.ForwardRefExoticComponent<CBadgeProps & React.RefAttributes<HTMLDivElement | HTMLSpanElement>>;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom/extend-expect';
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React, { HTMLAttributes } from 'react';
2+
export interface CBreadcrumbProps extends HTMLAttributes<HTMLOListElement> {
3+
/**
4+
* A string of all className you want applied to the component. [docs]
5+
*/
6+
className?: string;
7+
}
8+
export declare const CBreadcrumb: React.ForwardRefExoticComponent<CBreadcrumbProps & React.RefAttributes<HTMLOListElement>>;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React, { HTMLAttributes } from 'react';
2+
export interface CBreadcrumbItemProps extends HTMLAttributes<HTMLLIElement> {
3+
/**
4+
* Toggle the active state for the component. [docs]
5+
*/
6+
active?: boolean;
7+
/**
8+
* A string of all className you want applied to the base component. [docs]
9+
*/
10+
className?: string;
11+
/**
12+
* The `href` attribute for the inner `<CLink>` component. [docs]
13+
*/
14+
href?: string;
15+
}
16+
export declare const CBreadcrumbItem: React.ForwardRefExoticComponent<CBreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom/extend-expect';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom/extend-expect';
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React, { HTMLAttributes } from 'react';
2+
export interface CButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
3+
/**
4+
* A string of all className you want applied to the base component. [docs]
5+
*/
6+
className?: string;
7+
/**
8+
* Size the component small or large. [docs]
9+
*
10+
* @type {'sm' | 'lg'}
11+
*/
12+
size?: 'sm' | 'lg';
13+
/**
14+
* Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here. [docs]
15+
*/
16+
vertical?: boolean;
17+
}
18+
export declare const CButtonGroup: React.ForwardRefExoticComponent<CButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React, { HTMLAttributes } from 'react';
2+
export interface CButtonToolbarProps extends HTMLAttributes<HTMLDivElement> {
3+
/**
4+
* A string of all className you want applied to the base component. [docs]
5+
*/
6+
className?: string;
7+
}
8+
export declare const CButtonToolbar: React.ForwardRefExoticComponent<CButtonToolbarProps & React.RefAttributes<HTMLDivElement>>;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom/extend-expect';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@testing-library/jest-dom/extend-expect';

0 commit comments

Comments
 (0)