@coreui/react 4.0.0-rc.4 → 4.0.1

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.
Files changed (40) hide show
  1. package/README.md +37 -24
  2. package/dist/components/form/CFormCheck.d.ts +4 -0
  3. package/dist/components/form/CFormSelect.d.ts +13 -0
  4. package/dist/components/popover/CPopover.d.ts +1 -1
  5. package/dist/components/tooltip/CTooltip.d.ts +1 -1
  6. package/dist/index.d.ts +1 -3
  7. package/dist/index.es.js +49 -50
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/index.js +48 -51
  10. package/dist/index.js.map +1 -1
  11. package/package.json +39 -77
  12. package/src/components/alert/CAlert.tsx +0 -1
  13. package/src/components/dropdown/CDropdown.tsx +18 -16
  14. package/src/components/form/CFormCheck.tsx +30 -3
  15. package/src/components/form/CFormSelect.tsx +28 -2
  16. package/src/components/popover/CPopover.tsx +24 -11
  17. package/src/components/tooltip/CTooltip.tsx +22 -12
  18. package/src/index.ts +0 -4
  19. package/dist/components/carousel/CCarouselControl.d.ts +0 -16
  20. package/dist/components/carousel/CCarouselIndicators.d.ts +0 -12
  21. package/dist/components/carousel/CCarouselInner.d.ts +0 -8
  22. package/dist/components/popover/CPopoverContent.d.ts +0 -10
  23. package/dist/components/tooltip/CTooltipContent.d.ts +0 -10
  24. package/dist/docs/components/CodeBlock copy.d.ts +0 -3
  25. package/dist/docs/components/CodeBlock.d.ts +0 -3
  26. package/dist/docs/components/Example.d.ts +0 -6
  27. package/dist/docs/components/Footer.d.ts +0 -3
  28. package/dist/docs/components/Header.d.ts +0 -3
  29. package/dist/docs/components/Seo.d.ts +0 -22
  30. package/dist/docs/components/Sidebar.d.ts +0 -6
  31. package/dist/docs/components/SidebarNav.d.ts +0 -24
  32. package/dist/docs/components/index.d.ts +0 -9
  33. package/dist/docs/index.d.ts +0 -1
  34. package/dist/docs/nav.d.ts +0 -20
  35. package/dist/docs/templates/Docs.d.ts +0 -6
  36. package/dist/docs/templates/Layout.d.ts +0 -4
  37. package/dist/pages/404.d.ts +0 -2
  38. package/src/components/popover/CPopoverContent.tsx +0 -41
  39. package/src/components/tooltip/CTooltipContent.tsx +0 -37
  40. package/tsconfig.json +0 -25
@@ -1,24 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- export declare type Badge = {
3
- color: string;
4
- text: string;
5
- };
6
- export declare type NavItem = {
7
- name: string | JSX.Element;
8
- icon?: string | JSX.Element;
9
- badge?: Badge;
10
- to: string;
11
- items?: NavItem[];
12
- };
13
- interface SidebarNavProps {
14
- items: NavItem[];
15
- currentRoute: string;
16
- }
17
- export declare const SidebarNav: {
18
- ({ items, currentRoute }: SidebarNavProps): JSX.Element;
19
- propTypes: {
20
- items: PropTypes.Validator<any[]>;
21
- currentRoute: PropTypes.Validator<string>;
22
- };
23
- };
24
- export {};
@@ -1,9 +0,0 @@
1
- import CodeBlock from './CodeBlock';
2
- import Example from './Example';
3
- import Footer from './Footer';
4
- import Header from './Header';
5
- import Seo from './Seo';
6
- import Sidebar from './Sidebar';
7
- import { SidebarNav } from './SidebarNav';
8
- import Toc from './Toc';
9
- export { CodeBlock, Example, Footer, Header, Seo, Sidebar, SidebarNav, Toc };
@@ -1 +0,0 @@
1
- export * from './components';
@@ -1,20 +0,0 @@
1
- declare const nav: {
2
- name: string;
3
- to: string;
4
- icon: JSX.Element;
5
- items: ({
6
- name: string;
7
- to: string;
8
- disabled?: undefined;
9
- badge?: undefined;
10
- } | {
11
- name: string;
12
- to: string;
13
- disabled: boolean;
14
- badge: {
15
- color: string;
16
- text: string;
17
- };
18
- })[];
19
- }[];
20
- export default nav;
@@ -1,6 +0,0 @@
1
- import React, { FC } from 'react';
2
- import './../styles/styles.scss';
3
- export declare const myContext: React.Context<unknown>;
4
- declare const DocsLayout: FC;
5
- export default DocsLayout;
6
- export declare const pageQuery: void;
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import './../styles/styles.scss';
3
- declare const DefaultLayout: FC;
4
- export default DefaultLayout;
@@ -1,2 +0,0 @@
1
- declare const NotFoundPage: () => JSX.Element;
2
- export default NotFoundPage;
@@ -1,41 +0,0 @@
1
- import React, { CSSProperties, forwardRef } from 'react'
2
- import PropTypes from 'prop-types'
3
- import classNames from 'classnames'
4
- import { CPopoverProps } from './CPopover'
5
- import { PopperChildrenProps } from 'react-popper'
6
-
7
- interface CPopoverContentProps
8
- extends Omit<CPopoverProps, 'placement' | 'children' | 'trigger'>,
9
- Omit<PopperChildrenProps, 'placementPostfix' | 'style'> {
10
- transitionClass?: string
11
- style?: CSSProperties
12
- placementClassNamePostfix?: string
13
- }
14
-
15
- export const CPopoverContent = forwardRef<HTMLDivElement, CPopoverContentProps>(
16
- ({ content, title, placementClassNamePostfix, arrowProps, style, transitionClass }, ref) => (
17
- <>
18
- <div
19
- className={classNames(`popover bs-popover-${placementClassNamePostfix}`, transitionClass)}
20
- ref={ref}
21
- style={style}
22
- role="tooltip"
23
- >
24
- <div className="popover-arrow" {...arrowProps}></div>
25
- <div className="popover-header">{title}</div>
26
- <div className="popover-body">{content}</div>
27
- </div>
28
- </>
29
- ),
30
- )
31
-
32
- CPopoverContent.propTypes = {
33
- arrowProps: PropTypes.any,
34
- content: PropTypes.node,
35
- placementClassNamePostfix: PropTypes.string,
36
- style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
37
- title: PropTypes.string,
38
- transitionClass: PropTypes.string,
39
- }
40
-
41
- CPopoverContent.displayName = 'CPopoverContent'
@@ -1,37 +0,0 @@
1
- import React, { CSSProperties, forwardRef } from 'react'
2
- import PropTypes from 'prop-types'
3
- import classNames from 'classnames'
4
- import { CTooltipProps } from './CTooltip'
5
- import { PopperChildrenProps } from 'react-popper'
6
-
7
- interface CTooltipContentProps
8
- extends Omit<CTooltipProps, 'placement' | 'children' | 'trigger'>,
9
- Omit<PopperChildrenProps, 'placementPostfix' | 'style'> {
10
- transitionClass?: string
11
- style?: CSSProperties
12
- placementClassNamePostfix?: string
13
- }
14
-
15
- export const CTooltipContent = forwardRef<HTMLDivElement, CTooltipContentProps>(
16
- ({ content, placementClassNamePostfix, arrowProps, transitionClass, style }, ref) => (
17
- <div
18
- className={classNames(`tooltip bs-tooltip-${placementClassNamePostfix}`, transitionClass)}
19
- ref={ref}
20
- style={style}
21
- role="tooltip"
22
- >
23
- <div className="tooltip-arrow" {...arrowProps}></div>
24
- <div className="tooltip-inner">{content}</div>
25
- </div>
26
- ),
27
- )
28
-
29
- CTooltipContent.propTypes = {
30
- arrowProps: PropTypes.any,
31
- content: PropTypes.node,
32
- placementClassNamePostfix: PropTypes.string,
33
- style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
34
- transitionClass: PropTypes.string,
35
- }
36
-
37
- CTooltipContent.displayName = 'CTooltipContent'
package/tsconfig.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "jsx": "react",
4
- "outDir": "dist",
5
- "module": "esnext",
6
- "target": "es5",
7
- "lib": ["es6", "dom", "es2016", "es2017"],
8
- "sourceMap": true,
9
- "allowJs": false,
10
- "declaration": true,
11
- "declarationDir": ".",
12
- "moduleResolution": "node",
13
- "forceConsistentCasingInFileNames": true,
14
- "noImplicitReturns": true,
15
- "noImplicitThis": true,
16
- "noImplicitAny": true,
17
- "strictNullChecks": true,
18
- "suppressImplicitAnyIndexErrors": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "esModuleInterop": true
22
- },
23
- "include": ["src"],
24
- "exclude": ["node_modules", "dist", "src/docs", "src/pages"]
25
- }