@coreui/react 4.1.2 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/accordion/index.d.ts +7 -0
- package/dist/components/alert/index.d.ts +4 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/backdrop/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/breadcrumb/index.d.ts +3 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button-group/index.d.ts +3 -0
- package/dist/components/callout/index.d.ts +2 -0
- package/dist/components/card/CCardImage.d.ts +2 -2
- package/dist/components/card/index.d.ts +12 -0
- package/dist/components/carousel/index.d.ts +4 -0
- package/dist/components/close-button/index.d.ts +2 -0
- package/dist/components/collapse/index.d.ts +2 -0
- package/dist/components/dropdown/CDropdown.d.ts +10 -1
- package/dist/components/dropdown/CDropdownToggle.d.ts +4 -0
- package/dist/components/dropdown/index.d.ts +8 -0
- package/dist/components/footer/index.d.ts +2 -0
- package/dist/components/form/CForm.d.ts +2 -2
- package/dist/components/form/CFormCheck.d.ts +2 -1
- package/dist/components/form/CFormControlValidation.d.ts +46 -0
- package/dist/components/form/CFormControlWrapper.d.ts +31 -0
- package/dist/components/form/CFormInput.d.ts +6 -9
- package/dist/components/form/CFormRange.d.ts +7 -1
- package/dist/components/form/CFormSelect.d.ts +3 -10
- package/dist/components/form/CFormTextarea.d.ts +2 -9
- package/dist/components/form/index.d.ts +14 -0
- package/dist/components/grid/index.d.ts +4 -0
- package/dist/components/header/index.d.ts +7 -0
- package/dist/components/image/index.d.ts +2 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/list-group/index.d.ts +3 -0
- package/dist/components/modal/CModal.d.ts +3 -0
- package/dist/components/modal/index.d.ts +8 -0
- package/dist/components/nav/index.d.ts +7 -0
- package/dist/components/navbar/index.d.ts +6 -0
- package/dist/components/offcanvas/index.d.ts +5 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/placeholder/index.d.ts +2 -0
- package/dist/components/popover/CPopover.d.ts +2 -2
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/progress/index.d.ts +3 -0
- package/dist/components/sidebar/index.d.ts +7 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/table/index.d.ts +9 -0
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/toast/index.d.ts +6 -0
- package/dist/components/tooltip/CTooltip.d.ts +6 -2
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/index.d.ts +0 -120
- package/dist/index.es.js +3039 -2179
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3034 -2174
- package/dist/index.js.map +1 -1
- package/package.json +17 -16
- package/src/components/accordion/CAccordionButton.tsx +2 -1
- package/src/components/accordion/__tests__/__snapshots__/CAccordionButton.spec.tsx.snap +2 -0
- package/src/components/accordion/__tests__/__snapshots__/CAccordionHeader.spec.tsx.snap +2 -0
- package/src/components/accordion/index.ts +15 -0
- package/src/components/alert/CAlert.tsx +14 -3
- package/src/components/alert/index.ts +5 -0
- package/src/components/avatar/index.ts +3 -0
- package/src/components/backdrop/CBackdrop.tsx +10 -3
- package/src/components/backdrop/index.ts +3 -0
- package/src/components/badge/index.ts +3 -0
- package/src/components/breadcrumb/index.ts +4 -0
- package/src/components/button/index.ts +3 -0
- package/src/components/button-group/index.ts +4 -0
- package/src/components/callout/index.ts +3 -0
- package/src/components/card/CCardImage.tsx +2 -2
- package/src/components/card/index.ts +25 -0
- package/src/components/carousel/index.ts +5 -0
- package/src/components/close-button/CCloseButton.tsx +8 -1
- package/src/components/close-button/index.ts +3 -0
- package/src/components/collapse/CCollapse.tsx +1 -0
- package/src/components/collapse/index.ts +3 -0
- package/src/components/dropdown/CDropdown.tsx +19 -24
- package/src/components/dropdown/CDropdownItem.tsx +1 -1
- package/src/components/dropdown/CDropdownMenu.tsx +55 -3
- package/src/components/dropdown/CDropdownToggle.tsx +28 -5
- package/src/components/dropdown/index.ts +17 -0
- package/src/components/footer/index.ts +3 -0
- package/src/components/form/CForm.tsx +2 -2
- package/src/components/form/CFormCheck.tsx +32 -7
- package/src/components/form/CFormControlValidation.tsx +97 -0
- package/src/components/form/CFormControlWrapper.tsx +85 -0
- package/src/components/form/CFormInput.tsx +75 -19
- package/src/components/form/CFormRange.tsx +18 -4
- package/src/components/form/CFormSelect.tsx +60 -32
- package/src/components/form/CFormTextarea.tsx +45 -17
- package/src/components/form/index.ts +29 -0
- package/src/components/grid/index.ts +5 -0
- package/src/components/header/index.ts +8 -0
- package/src/components/image/index.ts +3 -0
- package/src/components/index.ts +35 -0
- package/src/components/link/index.ts +3 -0
- package/src/components/list-group/index.ts +4 -0
- package/src/components/modal/CModal.tsx +4 -3
- package/src/components/modal/index.ts +9 -0
- package/src/components/nav/CNavGroup.tsx +1 -0
- package/src/components/nav/index.ts +8 -0
- package/src/components/navbar/index.ts +7 -0
- package/src/components/offcanvas/COffcanvas.tsx +2 -1
- package/src/components/offcanvas/index.ts +6 -0
- package/src/components/pagination/index.ts +4 -0
- package/src/components/placeholder/index.ts +3 -0
- package/src/components/popover/CPopover.tsx +59 -57
- package/src/components/popover/__tests__/__snapshots__/CPopover.spec.tsx.snap +1 -1
- package/src/components/popover/index.ts +3 -0
- package/src/components/progress/index.ts +4 -0
- package/src/components/sidebar/index.ts +8 -0
- package/src/components/spinner/index.ts +3 -0
- package/src/components/table/index.ts +19 -0
- package/src/components/tabs/CTabPane.tsx +7 -3
- package/src/components/tabs/index.ts +4 -0
- package/src/components/toast/CToast.tsx +6 -1
- package/src/components/toast/index.ts +7 -0
- package/src/components/tooltip/CTooltip.tsx +63 -45
- package/src/components/tooltip/index.ts +3 -0
- package/src/index.ts +0 -242
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
Several quick start options are available:
|
|
45
45
|
|
|
46
|
-
- [Download the latest release](https://github.com/coreui/coreui-react/archive/v4.
|
|
46
|
+
- [Download the latest release](https://github.com/coreui/coreui-react/archive/v4.2.2.zip)
|
|
47
47
|
- Clone the repo: `git clone https://github.com/coreui/coreui-react.git`
|
|
48
48
|
- Install with [npm](https://www.npmjs.com/): `npm install @coreui/react`
|
|
49
49
|
- Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/react`
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CAccordion } from './CAccordion';
|
|
2
|
+
import { CAccordionBody } from './CAccordionBody';
|
|
3
|
+
import { CAccordionButton } from './CAccordionButton';
|
|
4
|
+
import { CAccordionCollapse } from './CAccordionCollapse';
|
|
5
|
+
import { CAccordionHeader } from './CAccordionHeader';
|
|
6
|
+
import { CAccordionItem } from './CAccordionItem';
|
|
7
|
+
export { CAccordion, CAccordionBody, CAccordionButton, CAccordionCollapse, CAccordionHeader, CAccordionItem, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, { ElementType,
|
|
2
|
-
export interface CCardImageProps extends
|
|
1
|
+
import React, { ElementType, ImgHTMLAttributes } from 'react';
|
|
2
|
+
export interface CCardImageProps extends ImgHTMLAttributes<HTMLImageElement | HTMLOrSVGElement | HTMLOrSVGImageElement> {
|
|
3
3
|
/**
|
|
4
4
|
* A string of all className you want applied to the base component.
|
|
5
5
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CCard } from './CCard';
|
|
2
|
+
import { CCardBody } from './CCardBody';
|
|
3
|
+
import { CCardFooter } from './CCardFooter';
|
|
4
|
+
import { CCardGroup } from './CCardGroup';
|
|
5
|
+
import { CCardHeader } from './CCardHeader';
|
|
6
|
+
import { CCardImage } from './CCardImage';
|
|
7
|
+
import { CCardImageOverlay } from './CCardImageOverlay';
|
|
8
|
+
import { CCardLink } from './CCardLink';
|
|
9
|
+
import { CCardSubtitle } from './CCardSubtitle';
|
|
10
|
+
import { CCardText } from './CCardText';
|
|
11
|
+
import { CCardTitle } from './CCardTitle';
|
|
12
|
+
export { CCard, CCardBody, CCardFooter, CCardGroup, CCardHeader, CCardImage, CCardImageOverlay, CCardLink, CCardSubtitle, CCardText, CCardTitle, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ElementType, HTMLAttributes } from 'react';
|
|
1
|
+
import React, { ElementType, HTMLAttributes, RefObject } from 'react';
|
|
2
2
|
import { Placements } from '../Types';
|
|
3
3
|
export declare type Directions = 'start' | 'end';
|
|
4
4
|
export declare type Breakpoints = {
|
|
@@ -22,6 +22,14 @@ export interface CDropdownProps extends HTMLAttributes<HTMLDivElement | HTMLLIEl
|
|
|
22
22
|
* @type 'start' | 'end' | { xs: 'start' | 'end' } | { sm: 'start' | 'end' } | { md: 'start' | 'end' } | { lg: 'start' | 'end' } | { xl: 'start' | 'end'} | { xxl: 'start' | 'end'}
|
|
23
23
|
*/
|
|
24
24
|
alignment?: Alignments;
|
|
25
|
+
/**
|
|
26
|
+
* Configure the auto close behavior of the dropdown:
|
|
27
|
+
* - `true` - the dropdown will be closed by clicking outside or inside the dropdown menu.
|
|
28
|
+
* - `false` - the dropdown will be closed by clicking the toggle button and manually calling hide or toggle method. (Also will not be closed by pressing esc key)
|
|
29
|
+
* - `'inside'` - the dropdown will be closed (only) by clicking inside the dropdown menu.
|
|
30
|
+
* - `'outside'` - the dropdown will be closed (only) by clicking outside the dropdown menu.
|
|
31
|
+
*/
|
|
32
|
+
autoClose?: 'inside' | 'outside' | boolean;
|
|
25
33
|
/**
|
|
26
34
|
* A string of all className you want applied to the base component.
|
|
27
35
|
*/
|
|
@@ -68,6 +76,7 @@ export interface CDropdownProps extends HTMLAttributes<HTMLDivElement | HTMLLIEl
|
|
|
68
76
|
visible?: boolean;
|
|
69
77
|
}
|
|
70
78
|
interface ContextProps extends CDropdownProps {
|
|
79
|
+
dropdownToggleRef: RefObject<any> | undefined;
|
|
71
80
|
setVisible: React.Dispatch<React.SetStateAction<boolean | undefined>>;
|
|
72
81
|
}
|
|
73
82
|
export declare const CDropdownContext: React.Context<ContextProps>;
|
|
@@ -6,6 +6,10 @@ export interface CDropdownToggleProps extends Omit<CButtonProps, 'type'> {
|
|
|
6
6
|
* Enables pseudo element caret on toggler.
|
|
7
7
|
*/
|
|
8
8
|
caret?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Create a custom toggler which accepts any content.
|
|
11
|
+
*/
|
|
12
|
+
custom?: boolean;
|
|
9
13
|
/**
|
|
10
14
|
* Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of `.dropdown-toggle-split` className for proper spacing around the dropdown caret.
|
|
11
15
|
*/
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CDropdown } from './CDropdown';
|
|
2
|
+
import { CDropdownDivider } from './CDropdownDivider';
|
|
3
|
+
import { CDropdownHeader } from './CDropdownHeader';
|
|
4
|
+
import { CDropdownItem } from './CDropdownItem';
|
|
5
|
+
import { CDropdownItemPlain } from './CDropdownItemPlain';
|
|
6
|
+
import { CDropdownMenu } from './CDropdownMenu';
|
|
7
|
+
import { CDropdownToggle } from './CDropdownToggle';
|
|
8
|
+
export { CDropdown, CDropdownDivider, CDropdownHeader, CDropdownItem, CDropdownItemPlain, CDropdownMenu, CDropdownToggle, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
export interface CFormProps extends
|
|
1
|
+
import React, { FormHTMLAttributes } from 'react';
|
|
2
|
+
export interface CFormProps extends FormHTMLAttributes<HTMLFormElement> {
|
|
3
3
|
/**
|
|
4
4
|
* A string of all className you want applied to the component.
|
|
5
5
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { Colors, Shapes } from '../Types';
|
|
3
|
+
import { CFormControlValidationProps } from './CFormControlValidation';
|
|
3
4
|
export declare type ButtonObject = {
|
|
4
5
|
/**
|
|
5
6
|
* Sets the color context of the component to one of CoreUI’s themed colors.
|
|
@@ -22,7 +23,7 @@ export declare type ButtonObject = {
|
|
|
22
23
|
*/
|
|
23
24
|
variant?: 'outline' | 'ghost';
|
|
24
25
|
};
|
|
25
|
-
export interface CFormCheckProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
26
|
+
export interface CFormCheckProps extends CFormControlValidationProps, InputHTMLAttributes<HTMLInputElement> {
|
|
26
27
|
/**
|
|
27
28
|
* Create button-like checkboxes and radio buttons.
|
|
28
29
|
*/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export interface CFormControlValidationProps {
|
|
3
|
+
/**
|
|
4
|
+
* @ignore
|
|
5
|
+
*/
|
|
6
|
+
describedby?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Provide valuable, actionable feedback.
|
|
9
|
+
*
|
|
10
|
+
* @since 4.2.0
|
|
11
|
+
*/
|
|
12
|
+
feedback?: ReactNode | string;
|
|
13
|
+
/**
|
|
14
|
+
* Provide valuable, actionable feedback.
|
|
15
|
+
*
|
|
16
|
+
* @since 4.2.0
|
|
17
|
+
*/
|
|
18
|
+
feedbackInvalid?: ReactNode | string;
|
|
19
|
+
/**
|
|
20
|
+
* Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
21
|
+
*
|
|
22
|
+
* @since 4.2.0
|
|
23
|
+
*/
|
|
24
|
+
feedbackValid?: ReactNode | string;
|
|
25
|
+
/**
|
|
26
|
+
* Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
27
|
+
*
|
|
28
|
+
* @since 4.2.0
|
|
29
|
+
*/
|
|
30
|
+
floatingLabel?: ReactNode | string;
|
|
31
|
+
/**
|
|
32
|
+
* Set component validation state to invalid.
|
|
33
|
+
*/
|
|
34
|
+
invalid?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Display validation feedback in a styled tooltip.
|
|
37
|
+
*
|
|
38
|
+
* @since 4.2.0
|
|
39
|
+
*/
|
|
40
|
+
tooltipFeedback?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Set component validation state to valid.
|
|
43
|
+
*/
|
|
44
|
+
valid?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare const CFormControlValidation: FC<CFormControlValidationProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { CFormControlValidationProps } from './CFormControlValidation';
|
|
3
|
+
export interface CFormControlWrapperProps extends CFormControlValidationProps {
|
|
4
|
+
/**
|
|
5
|
+
* @ignore
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
|
|
10
|
+
*
|
|
11
|
+
* @since 4.2.0
|
|
12
|
+
*/
|
|
13
|
+
floatingLabel?: ReactNode | string;
|
|
14
|
+
/**
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Add a caption for a component.
|
|
20
|
+
*
|
|
21
|
+
* @since 4.2.0
|
|
22
|
+
*/
|
|
23
|
+
label?: ReactNode | string;
|
|
24
|
+
/**
|
|
25
|
+
* Add helper text to the component.
|
|
26
|
+
*
|
|
27
|
+
* @since 4.2.0
|
|
28
|
+
*/
|
|
29
|
+
text?: ReactNode | string;
|
|
30
|
+
}
|
|
31
|
+
export declare const CFormControlWrapper: FC<CFormControlWrapperProps>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import React, { ChangeEventHandler, InputHTMLAttributes } from 'react';
|
|
2
|
-
|
|
2
|
+
import { CFormControlWrapperProps } from './CFormControlWrapper';
|
|
3
|
+
export interface CFormInputProps extends CFormControlWrapperProps, Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
3
4
|
/**
|
|
4
5
|
* A string of all className you want applied to the component.
|
|
5
6
|
*/
|
|
6
7
|
className?: string;
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* Delay onChange event while typing. If set to true onChange event will be delayed 500ms, you can also provide the number of milliseconds you want to delay the onChange event.
|
|
9
10
|
*/
|
|
10
|
-
|
|
11
|
+
delay?: boolean | number;
|
|
11
12
|
/**
|
|
12
|
-
*
|
|
13
|
+
* Toggle the disabled state for the component.
|
|
13
14
|
*/
|
|
14
|
-
|
|
15
|
+
disabled?: boolean;
|
|
15
16
|
/**
|
|
16
17
|
* Method called immediately after the `value` prop changes.
|
|
17
18
|
*/
|
|
@@ -32,10 +33,6 @@ export interface CFormInputProps extends Omit<InputHTMLAttributes<HTMLInputEleme
|
|
|
32
33
|
* Specifies the type of component.
|
|
33
34
|
*/
|
|
34
35
|
type?: 'color' | 'file' | 'text' | string;
|
|
35
|
-
/**
|
|
36
|
-
* Set component validation state to valid.
|
|
37
|
-
*/
|
|
38
|
-
valid?: boolean;
|
|
39
36
|
/**
|
|
40
37
|
* The `value` attribute of component.
|
|
41
38
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ChangeEventHandler, InputHTMLAttributes } from 'react';
|
|
1
|
+
import React, { ChangeEventHandler, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
export interface CFormRangeProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
3
|
/**
|
|
4
4
|
* A string of all className you want applied to the component.
|
|
@@ -8,6 +8,12 @@ export interface CFormRangeProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
8
8
|
* Toggle the disabled state for the component.
|
|
9
9
|
*/
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Add a caption for a component.
|
|
13
|
+
*
|
|
14
|
+
* @since 4.2.0
|
|
15
|
+
*/
|
|
16
|
+
label?: ReactNode | string;
|
|
11
17
|
/**
|
|
12
18
|
* Specifies the maximum value for the component.
|
|
13
19
|
*/
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React, { ChangeEventHandler, InputHTMLAttributes } from 'react';
|
|
2
|
+
import { CFormControlWrapperProps } from './CFormControlWrapper';
|
|
2
3
|
declare type Option = {
|
|
3
4
|
disabled?: boolean;
|
|
4
5
|
label?: string;
|
|
5
6
|
value?: string;
|
|
6
7
|
};
|
|
7
|
-
export interface CFormSelectProps extends Omit<InputHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
8
|
+
export interface CFormSelectProps extends CFormControlWrapperProps, Omit<InputHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
8
9
|
/**
|
|
9
10
|
* A string of all className you want applied to the component.
|
|
10
11
|
*/
|
|
@@ -13,10 +14,6 @@ export interface CFormSelectProps extends Omit<InputHTMLAttributes<HTMLSelectEle
|
|
|
13
14
|
* Specifies the number of visible options in a drop-down list.
|
|
14
15
|
*/
|
|
15
16
|
htmlSize?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Set component validation state to invalid.
|
|
18
|
-
*/
|
|
19
|
-
invalid?: boolean;
|
|
20
17
|
/**
|
|
21
18
|
* Method called immediately after the `value` prop changes.
|
|
22
19
|
*/
|
|
@@ -32,15 +29,11 @@ export interface CFormSelectProps extends Omit<InputHTMLAttributes<HTMLSelectEle
|
|
|
32
29
|
* Size the component small or large.
|
|
33
30
|
*/
|
|
34
31
|
size?: 'sm' | 'lg';
|
|
35
|
-
/**
|
|
36
|
-
* Set component validation state to valid.
|
|
37
|
-
*/
|
|
38
|
-
valid?: boolean;
|
|
39
32
|
/**
|
|
40
33
|
* The `value` attribute of component.
|
|
41
34
|
*
|
|
42
35
|
* @controllable onChange
|
|
43
|
-
|
|
36
|
+
*/
|
|
44
37
|
value?: string | string[] | number;
|
|
45
38
|
}
|
|
46
39
|
export declare const CFormSelect: React.ForwardRefExoticComponent<CFormSelectProps & React.RefAttributes<HTMLSelectElement>>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ChangeEventHandler, InputHTMLAttributes } from 'react';
|
|
2
|
-
|
|
2
|
+
import { CFormControlWrapperProps } from './CFormControlWrapper';
|
|
3
|
+
export interface CFormTextareaProps extends CFormControlWrapperProps, InputHTMLAttributes<HTMLTextAreaElement> {
|
|
3
4
|
/**
|
|
4
5
|
* A string of all className you want applied to the component.
|
|
5
6
|
*/
|
|
@@ -8,10 +9,6 @@ export interface CFormTextareaProps extends InputHTMLAttributes<HTMLTextAreaElem
|
|
|
8
9
|
* Toggle the disabled state for the component.
|
|
9
10
|
*/
|
|
10
11
|
disabled?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Set component validation state to invalid.
|
|
13
|
-
*/
|
|
14
|
-
invalid?: boolean;
|
|
15
12
|
/**
|
|
16
13
|
* Method called immediately after the `value` prop changes.
|
|
17
14
|
*/
|
|
@@ -24,10 +21,6 @@ export interface CFormTextareaProps extends InputHTMLAttributes<HTMLTextAreaElem
|
|
|
24
21
|
* Toggle the readonly state for the component.
|
|
25
22
|
*/
|
|
26
23
|
readOnly?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Set component validation state to valid.
|
|
29
|
-
*/
|
|
30
|
-
valid?: boolean;
|
|
31
24
|
/**
|
|
32
25
|
* The `value` attribute of component.
|
|
33
26
|
*
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CForm } from './CForm';
|
|
2
|
+
import { CFormCheck } from './CFormCheck';
|
|
3
|
+
import { CFormFeedback } from './CFormFeedback';
|
|
4
|
+
import { CFormFloating } from './CFormFloating';
|
|
5
|
+
import { CFormInput } from './CFormInput';
|
|
6
|
+
import { CFormLabel } from './CFormLabel';
|
|
7
|
+
import { CFormRange } from './CFormRange';
|
|
8
|
+
import { CFormSelect } from './CFormSelect';
|
|
9
|
+
import { CFormSwitch } from './CFormSwitch';
|
|
10
|
+
import { CFormText } from './CFormText';
|
|
11
|
+
import { CFormTextarea } from './CFormTextarea';
|
|
12
|
+
import { CInputGroup } from './CInputGroup';
|
|
13
|
+
import { CInputGroupText } from './CInputGroupText';
|
|
14
|
+
export { CForm, CFormCheck, CFormFeedback, CFormFloating, CFormInput, CFormLabel, CFormRange, CFormSelect, CFormSwitch, CFormText, CFormTextarea, CInputGroup, CInputGroupText, };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CHeader } from './CHeader';
|
|
2
|
+
import { CHeaderBrand } from './CHeaderBrand';
|
|
3
|
+
import { CHeaderDivider } from './CHeaderDivider';
|
|
4
|
+
import { CHeaderNav } from './CHeaderNav';
|
|
5
|
+
import { CHeaderText } from './CHeaderText';
|
|
6
|
+
import { CHeaderToggler } from './CHeaderToggler';
|
|
7
|
+
export { CHeader, CHeaderBrand, CHeaderDivider, CHeaderNav, CHeaderText, CHeaderToggler };
|
|
@@ -1 +1,36 @@
|
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './alert';
|
|
3
|
+
export * from './avatar';
|
|
4
|
+
export * from './backdrop';
|
|
5
|
+
export * from './badge';
|
|
6
|
+
export * from './breadcrumb';
|
|
7
|
+
export * from './button';
|
|
8
|
+
export * from './button-group';
|
|
9
|
+
export * from './callout';
|
|
10
|
+
export * from './card';
|
|
11
|
+
export * from './carousel';
|
|
12
|
+
export * from './close-button';
|
|
13
|
+
export * from './collapse';
|
|
14
|
+
export * from './dropdown';
|
|
15
|
+
export * from './footer';
|
|
16
|
+
export * from './form';
|
|
17
|
+
export * from './grid';
|
|
18
|
+
export * from './header';
|
|
19
|
+
export * from './image';
|
|
20
|
+
export * from './link';
|
|
21
|
+
export * from './list-group';
|
|
22
|
+
export * from './modal';
|
|
23
|
+
export * from './nav';
|
|
24
|
+
export * from './navbar';
|
|
25
|
+
export * from './offcanvas';
|
|
26
|
+
export * from './pagination';
|
|
27
|
+
export * from './placeholder';
|
|
28
|
+
export * from './progress';
|
|
29
|
+
export * from './popover';
|
|
30
|
+
export * from './sidebar';
|
|
31
|
+
export * from './spinner';
|
|
32
|
+
export * from './table';
|
|
33
|
+
export * from './tabs';
|
|
34
|
+
export * from './toast';
|
|
35
|
+
export * from './tooltip';
|
|
1
36
|
export * from './widgets';
|
|
@@ -52,6 +52,9 @@ export interface CModalProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
52
52
|
* Remove animation to create modal that simply appear rather than fade in to view.
|
|
53
53
|
*/
|
|
54
54
|
transition?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* By default the component is unmounted after close animation, if you want to keep the component mounted set this property to false.
|
|
57
|
+
*/
|
|
55
58
|
unmountOnClose?: boolean;
|
|
56
59
|
/**
|
|
57
60
|
* Toggle the visibility of modal component.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CModal } from './CModal';
|
|
2
|
+
import { CModalBody } from './CModalBody';
|
|
3
|
+
import { CModalContent } from './CModalContent';
|
|
4
|
+
import { CModalDialog } from './CModalDialog';
|
|
5
|
+
import { CModalFooter } from './CModalFooter';
|
|
6
|
+
import { CModalHeader } from './CModalHeader';
|
|
7
|
+
import { CModalTitle } from './CModalTitle';
|
|
8
|
+
export { CModal, CModalBody, CModalContent, CModalDialog, CModalFooter, CModalHeader, CModalTitle };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CNav } from './CNav';
|
|
2
|
+
import { CNavGroupItems } from './CNavGroupItems';
|
|
3
|
+
import { CNavGroup } from './CNavGroup';
|
|
4
|
+
import { CNavItem } from './CNavItem';
|
|
5
|
+
import { CNavLink } from './CNavLink';
|
|
6
|
+
import { CNavTitle } from './CNavTitle';
|
|
7
|
+
export { CNav, CNavGroup, CNavGroupItems, CNavItem, CNavLink, CNavTitle };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CNavbar } from './CNavbar';
|
|
2
|
+
import { CNavbarBrand } from './CNavbarBrand';
|
|
3
|
+
import { CNavbarNav } from './CNavbarNav';
|
|
4
|
+
import { CNavbarText } from './CNavbarText';
|
|
5
|
+
import { CNavbarToggler } from './CNavbarToggler';
|
|
6
|
+
export { CNavbar, CNavbarBrand, CNavbarNav, CNavbarText, CNavbarToggler };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { COffcanvas } from './COffcanvas';
|
|
2
|
+
import { COffcanvasBody } from './COffcanvasBody';
|
|
3
|
+
import { COffcanvasHeader } from './COffcanvasHeader';
|
|
4
|
+
import { COffcanvasTitle } from './COffcanvasTitle';
|
|
5
|
+
export { COffcanvas, COffcanvasBody, COffcanvasHeader, COffcanvasTitle };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CSidebar } from './CSidebar';
|
|
2
|
+
import { CSidebarBrand } from './CSidebarBrand';
|
|
3
|
+
import { CSidebarFooter } from './CSidebarFooter';
|
|
4
|
+
import { CSidebarToggler } from './CSidebarToggler';
|
|
5
|
+
import { CSidebarHeader } from './CSidebarHeader';
|
|
6
|
+
import { CSidebarNav } from './CSidebarNav';
|
|
7
|
+
export { CSidebar, CSidebarBrand, CSidebarFooter, CSidebarToggler, CSidebarHeader, CSidebarNav };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CTable } from './CTable';
|
|
2
|
+
import { CTableBody } from './CTableBody';
|
|
3
|
+
import { CTableCaption } from './CTableCaption';
|
|
4
|
+
import { CTableDataCell } from './CTableDataCell';
|
|
5
|
+
import { CTableFoot } from './CTableFoot';
|
|
6
|
+
import { CTableHead } from './CTableHead';
|
|
7
|
+
import { CTableHeaderCell } from './CTableHeaderCell';
|
|
8
|
+
import { CTableRow } from './CTableRow';
|
|
9
|
+
export { CTable, CTableBody, CTableCaption, CTableDataCell, CTableFoot, CTableHead, CTableHeaderCell, CTableRow, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CToast } from './CToast';
|
|
2
|
+
import { CToastBody } from './CToastBody';
|
|
3
|
+
import { CToastClose } from './CToastClose';
|
|
4
|
+
import { CToastHeader } from './CToastHeader';
|
|
5
|
+
import { CToaster } from './CToaster';
|
|
6
|
+
export { CToast, CToastBody, CToastClose, CToastHeader, CToaster };
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { FC,
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { Triggers } from '../Types';
|
|
3
3
|
export interface CTooltipProps {
|
|
4
|
-
children:
|
|
4
|
+
children: any;
|
|
5
5
|
/**
|
|
6
6
|
* Content node for your component.
|
|
7
7
|
*/
|
|
8
8
|
content: ReactNode | string;
|
|
9
|
+
/**
|
|
10
|
+
* Offset of the popover relative to its target.
|
|
11
|
+
*/
|
|
12
|
+
offset?: [number, number];
|
|
9
13
|
/**
|
|
10
14
|
* Callback fired when the component requests to be hidden.
|
|
11
15
|
*/
|