Skip to content

Commit 00d5e7a

Browse files
committed
release: v4.0.0-beta.1
1 parent 55d76de commit 00d5e7a

14 files changed

+144
-112
lines changed

dist/components/nav/CNavGroup.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface CNavGroupProps {
1010
*/
1111
icon?: string | ReactNode;
1212
/**
13-
* TODO: . [docs]
13+
* Set group toggler label. [docs]
1414
*/
1515
toggler?: string;
1616
/**

dist/components/nav/CNavLink.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export interface CNavLinkProps extends Omit<CLinkProps, 'idx'> {
2020
*/
2121
disabled?: boolean;
2222
/**
23-
* TODO:. [docs]
23+
* Set component's icon. [docs]
2424
*/
2525
icon?: string | ReactNode;
2626
/**

dist/components/popover/CPopover.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { FC, ReactNode } from 'react';
1+
import { FC, ReactElement, ReactNode } from 'react';
22
import { Placements, Triggers } from '../Types';
33
export interface CPopoverProps {
4-
children: JSX.Element;
4+
children: ReactElement;
55
/**
66
* Content node for your component. [docs]
77
*/

dist/components/progress/CProgressBar.d.ts

-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export interface CProgressBarProps extends HTMLAttributes<HTMLDivElement> {
1515
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
1616
*
1717
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
18-
* @default 'primary'
1918
*/
2019
color?: Colors;
2120
/**
@@ -26,8 +25,6 @@ export interface CProgressBarProps extends HTMLAttributes<HTMLDivElement> {
2625
value?: number;
2726
/**
2827
* Set the progress bar variant to optional striped. [docs]
29-
*
30-
* @default 'undefined'
3128
*/
3229
variant?: 'striped';
3330
}
+3-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import { FC, ElementType } from 'react';
2+
import { CNavLinkProps } from '../nav/CNavLink';
23
export interface CSidebarNavItemGeneratorProps {
34
anchor: string;
45
as: string | ElementType;
56
_component: string;
6-
items?: Array<object>;
7+
items?: CNavLinkProps[];
78
idx?: string;
89
}
910
interface CCreateNavItemProps {
1011
idx?: string;
11-
items: Array<object>;
12+
items: CNavLinkProps[];
1213
}
1314
export declare const CCreateNavItem: FC<CCreateNavItemProps>;
1415
export {};

dist/components/toast/CToast.d.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,16 @@ export interface CToastProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title
1515
* Sets the color context of the component to one of CoreUI’s themed colors. [docs]
1616
*
1717
* @type 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'dark' | 'light' | string
18-
* @default 'primary'
1918
*/
2019
color?: Colors;
2120
/**
2221
* Delay hiding the toast (ms). [docs]
2322
*/
2423
delay?: number;
24+
/**
25+
* @ignore
26+
*/
27+
index?: number;
2528
/**
2629
* @ignore
2730
*/
@@ -35,7 +38,7 @@ export interface CToastProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title
3538
/**
3639
* Method called before the dissmiss animation has started. [docs]
3740
*/
38-
onDismiss?: () => void;
41+
onDismiss?: (index: number | null) => void;
3942
}
4043
interface ContextProps extends CToastProps {
4144
visible?: boolean;

dist/components/toast/CToaster.d.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ export interface CToasterProps extends HTMLAttributes<HTMLDivElement> {
77
/**
88
* Describes the placement of your component. [docs]
99
*
10-
* @type 'top-start' | 'top' | 'top-end' | 'middle-start' | 'middle' | 'middle-end' | 'bottom-start' | 'bottom' | 'bottom-end' |
11-
* @default 'top-end'
10+
* @type 'top-start' | 'top' | 'top-end' | 'middle-start' | 'middle' | 'middle-end' | 'bottom-start' | 'bottom' | 'bottom-end' | string
1211
*/
1312
placement?: 'top-start' | 'top-center' | 'top-end' | 'middle-start' | 'middle-center' | 'middle-end' | 'bottom-start' | 'bottom-center' | 'bottom-end' | string;
1413
/**
15-
* TODO:. [docs]
14+
* Adds new `CToast` to `CToaster`. [docs]
1615
*/
1716
push?: ReactElement;
1817
}

dist/components/tooltip/CTooltip.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { FC, ReactNode } from 'react';
1+
import { FC, ReactElement, ReactNode } from 'react';
22
import { Placements, Triggers } from '../Types';
33
export interface CTooltipProps {
4-
children: JSX.Element;
4+
children: ReactElement;
55
/**
66
* Content node for your component. [docs]
77
*/

dist/components/widgets/CWidgetBrand.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { HTMLAttributes, ReactNode } from 'react';
22
import { Colors } from '../Types';
3+
declare type Values = number[] | string[];
34
export interface CWidgetBrandProps extends HTMLAttributes<HTMLDivElement> {
45
/**
56
* A string of all className you want applied to the base component. [docs]
@@ -12,6 +13,7 @@ export interface CWidgetBrandProps extends HTMLAttributes<HTMLDivElement> {
1213
*/
1314
color?: Colors;
1415
headerChildren?: string | ReactNode;
15-
values?: Array<string | number> | Array<Array<string | number>>;
16+
values?: Values | Values[];
1617
}
1718
export declare const CWidgetBrand: React.ForwardRefExoticComponent<CWidgetBrandProps & React.RefAttributes<HTMLDivElement>>;
19+
export {};

0 commit comments

Comments
 (0)