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>>;

0 commit comments

Comments
 (0)