Skip to content

Commit

Permalink
release: 7.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mako3577 committed Nov 6, 2023
1 parent e0482e6 commit ee3d7c5
Show file tree
Hide file tree
Showing 294 changed files with 1,957 additions and 1,656 deletions.
2 changes: 1 addition & 1 deletion README.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MDB 5 React

Version: FREE 6.3.0
Version: FREE 7.0.0

Documentation:
https://mdbootstrap.com/docs/b5/react/
Expand Down
5 changes: 3 additions & 2 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdb-react-ui-kit-demo",
"version": "6.3.0",
"version": "7.0.0",
"main": "index.js",
"repository": {
"type": "git",
Expand All @@ -16,7 +16,8 @@
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-popper": "2.3.0",
"@popperjs/core": "2.11.5"
"@popperjs/core": "2.11.5",
"framer-motion": "^10.16.4"
},
"devDependencies": {
"@babel/core": "^7.12.9",
Expand Down
13 changes: 0 additions & 13 deletions app/src/components/Card/types.tsx

This file was deleted.

12 changes: 0 additions & 12 deletions app/src/components/Carousel/CarouselItem/types.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions app/src/components/Popover/PopoverBody/types.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import clsx from 'clsx';
import React, { useMemo, useState } from 'react';
import type { AccordionProps } from './types';
Expand Down Expand Up @@ -36,4 +38,5 @@ const MDBAccordion: React.FC<AccordionProps> = React.forwardRef<HTMLAllCollectio
}
);

MDBAccordion.displayName = 'MDBAccordion';
export default MDBAccordion;
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import React from 'react';

interface AccordionProps {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import clsx from 'clsx';
import React, { useContext, useMemo, useCallback } from 'react';
import { AccordionContext } from '../AccordionContext';
Expand Down Expand Up @@ -65,7 +67,7 @@ const MDBAccordionItem: React.FC<AccordionItemProps> = React.forwardRef<HTMLAllC
{headerTitle}
</button>
</h2>
<MDBCollapse id={collapseId.toString()} show={isCollapsed}>
<MDBCollapse id={collapseId.toString()} open={isCollapsed}>
<div className={bodyClasses} style={bodyStyle}>
{children}
</div>
Expand All @@ -75,4 +77,5 @@ const MDBAccordionItem: React.FC<AccordionItemProps> = React.forwardRef<HTMLAllC
}
);

MDBAccordionItem.displayName = 'MDBAccordionItem';
export default MDBAccordionItem;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { BaseComponent } from '../../../types/baseComponent';
import { BaseComponent } from '../../../../types/baseComponent';

interface AccordionItemProps extends BaseComponent {
bodyClassName?: string;
Expand All @@ -13,4 +13,4 @@ interface AccordionItemProps extends BaseComponent {
tag?: React.ComponentProps<any>;
}

export { AccordionItemProps };
export type { AccordionItemProps };
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { BaseComponent } from '../../types/baseComponent';
import { BaseComponent } from '../../../types/baseComponent';

interface AccordionProps extends BaseComponent {
alwaysOpen?: boolean;
Expand All @@ -12,4 +12,4 @@ interface AccordionProps extends BaseComponent {
tag?: React.ComponentProps<any>;
}

export { AccordionProps };
export type { AccordionProps };
1 change: 1 addition & 0 deletions app/src/components/Badge/Badge.tsx → app/src/free/components/Badge/Badge.tsx
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ const MDBBadge: React.FC<BadgeProps> = React.forwardRef<HTMLAllCollection, Badge
}
);

MDBBadge.displayName = 'MDBBadge';
export default MDBBadge;
6 changes: 3 additions & 3 deletions app/src/components/Badge/types.tsx → app/src/free/components/Badge/types.tsx
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { BaseComponent } from '../../types/baseComponent';
import { backgroundColor } from '../../types/colors';
import { BaseComponent } from '../../../types/baseComponent';
import { backgroundColor } from '../../../types/colors';

interface BadgeProps extends BaseComponent {
color?: backgroundColor;
Expand All @@ -11,4 +11,4 @@ interface BadgeProps extends BaseComponent {
tag?: React.ComponentProps<any>;
}

export { BadgeProps };
export type { BadgeProps };
3 changes: 3 additions & 0 deletions app/src/components/Button/Button.tsx → app/src/free/components/Button/Button.tsx
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import React, { useState } from 'react';
import clsx from 'clsx';
import type { ButtonProps } from './types';
Expand Down Expand Up @@ -104,4 +106,5 @@ const MDBBtn: React.FC<ButtonProps> = React.forwardRef<HTMLAllCollection, Button
}
);

MDBBtn.displayName = 'MDBBtn';
export default MDBBtn;
2 changes: 1 addition & 1 deletion app/src/components/Button/types.tsx → app/src/free/components/Button/types.tsx
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ interface ButtonProps extends Omit<joinedTypes, 'size' | 'color'> {
to?: string;
}

export { ButtonProps };
export type { ButtonProps };
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ const MDBBtnGroup: React.FC<ButtonGroupProps> = React.forwardRef<HTMLAllCollecti
}
);

MDBBtnGroup.displayName = 'MDBBtnGroup';
export default MDBBtnGroup;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaseComponent } from '../../types/baseComponent';
import { size } from '../../types/size';
import { BaseComponent } from '../../../types/baseComponent';
import { size } from '../../../types/size';

interface ButtonGroupProps extends BaseComponent {
ref?: React.ForwardedRef<HTMLAllCollection>;
Expand All @@ -10,4 +10,4 @@ interface ButtonGroupProps extends BaseComponent {
tag?: React.ComponentProps<any>;
}

export { ButtonGroupProps };
export type { ButtonGroupProps };
1 change: 1 addition & 0 deletions app/src/components/Card/Card.tsx → app/src/free/components/Card/Card.tsx
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ const MDBCard: React.FC<CardProps> = React.forwardRef<HTMLAllCollection, CardPro
}
);

MDBCard.displayName = 'MDBCard';
export default MDBCard;
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ const MDBCardBody: React.FC<CardBodyProps> = React.forwardRef<HTMLAllCollection,
}
);

MDBCardBody.displayName = 'MDBCardBody';
export default MDBCardBody;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BaseComponent } from '../../../types/baseComponent';
import { BaseComponent } from '../../../../types/baseComponent';

interface CardBodyProps extends BaseComponent {
tag?: React.ComponentProps<any>;
ref?: React.ForwardedRef<HTMLAllCollection>;
}

export { CardBodyProps };
export type { CardBodyProps };
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ const MDBCardFooter: React.FC<CardFooterProps> = React.forwardRef<HTMLAllCollect
}
);

MDBCardFooter.displayName = 'MDBCardFooter';
export default MDBCardFooter;
11 changes: 11 additions & 0 deletions app/src/free/components/Card/CardFooter/types.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { BaseComponent } from '../../../../types/baseComponent';
import { backgroundColor } from '../../../../types/colors';

interface CardFooterProps extends BaseComponent {
border?: string;
background?: backgroundColor;
ref?: React.ForwardedRef<HTMLAllCollection>;
tag?: React.ComponentProps<any>;
}

export type { CardFooterProps };
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ const MDBCardGroup: React.FC<CardGroupProps> = React.forwardRef<HTMLAllCollectio
}
);

MDBCardGroup.displayName = 'MDBCardGroup';
export default MDBCardGroup;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BaseComponent } from '../../../types/baseComponent';
import { BaseComponent } from '../../../../types/baseComponent';

interface CardGroupProps extends BaseComponent {
tag?: React.ComponentProps<any>;
ref?: React.ForwardedRef<HTMLAllCollection>;
}

export { CardGroupProps };
export type { CardGroupProps };
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ const MDBCardHeader: React.FC<CardHeaderProps> = React.forwardRef<HTMLAllCollect
}
);

MDBCardHeader.displayName = 'MDBCardHeader';
export default MDBCardHeader;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaseComponent } from '../../../types/baseComponent';
import { backgroundColor } from '../../../types/colors';
import { BaseComponent } from '../../../../types/baseComponent';
import { backgroundColor } from '../../../../types/colors';

interface CardHeaderProps extends BaseComponent {
border?: string;
Expand All @@ -8,4 +8,4 @@ interface CardHeaderProps extends BaseComponent {
tag?: React.ComponentProps<any>;
}

export { CardHeaderProps };
export type { CardHeaderProps };
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ interface CardImageProps extends React.ImgHTMLAttributes<HTMLImageElement> {
fluid?: boolean;
}

export { CardImageProps };
export type { CardImageProps };
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
type CardLinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement>;

export { CardLinkProps };
export type { CardLinkProps };
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ const MDBCardOverlay: React.FC<CardOverlayProps> = React.forwardRef<HTMLAllColle
}
);

MDBCardOverlay.displayName = 'MDBCardOverlay';
export default MDBCardOverlay;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BaseComponent } from '../../../types/baseComponent';
import { BaseComponent } from '../../../../types/baseComponent';

interface CardOverlayProps extends BaseComponent {
tag?: React.ComponentProps<any>;
ref?: React.ForwardedRef<HTMLAllCollection>;
}

export { CardOverlayProps };
export type { CardOverlayProps };
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ const MDBCardSubTitle: React.FC<CardSubTitleProps> = React.forwardRef<HTMLAllCol
}
);

MDBCardSubTitle.displayName = 'MDBCardSubTitle';
export default MDBCardSubTitle;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BaseComponent } from '../../../types/baseComponent';
import { BaseComponent } from '../../../../types/baseComponent';

interface CardSubTitleProps extends BaseComponent {
tag?: React.ComponentProps<any>;
ref?: React.ForwardedRef<HTMLAllCollection>;
}

export { CardSubTitleProps };
export type { CardSubTitleProps };
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ const MDBCardText: React.FC<CardTextProps> = React.forwardRef<HTMLAllCollection,
}
);

MDBCardText.displayName = 'MDBCardText';
export default MDBCardText;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BaseComponent } from '../../../types/baseComponent';
import { BaseComponent } from '../../../../types/baseComponent';

interface CardTextProps extends BaseComponent {
tag?: React.ComponentProps<any>;
ref?: React.ForwardedRef<HTMLAllCollection>;
}

export { CardTextProps };
export type { CardTextProps };
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ const MDBCardTitle: React.FC<CardTitleProps> = React.forwardRef<HTMLAllCollectio
}
);

MDBCardTitle.displayName = 'MDBCardTitle';
export default MDBCardTitle;
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BaseComponent } from '../../../types/baseComponent';
import { BaseComponent } from '../../../../types/baseComponent';

interface CardTitleProps extends BaseComponent {
tag?: React.ComponentProps<any>;
ref?: React.ForwardedRef<HTMLAllCollection>;
}

export { CardTitleProps };
export type { CardTitleProps };
8 changes: 5 additions & 3 deletions app/src/components/Card/CardFooter/types.tsx → app/src/free/components/Card/types.tsx
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { BaseComponent } from '../../../types/baseComponent';
import { backgroundColor } from '../../../types/colors';
import { BaseComponent } from '../../../types/baseComponent';

interface CardFooterProps extends BaseComponent {
interface CardProps extends BaseComponent {
alignment?: string;
border?: string;
background?: backgroundColor;
shadow?: '0' | '1' | '2' | '3' | '4' | '5';
ref?: React.ForwardedRef<HTMLAllCollection>;
tag?: React.ComponentProps<any>;
}

export { CardFooterProps };
export type { CardProps };
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import clsx from 'clsx';
import React, { ReactElement, useCallback, useEffect, useRef, useState } from 'react';
import type { CarouselProps } from './types';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';
import { CarouselCaptionProps } from './types';
import clsx from 'clsx';

const MDBCarouselCaption: React.FC<CarouselCaptionProps> = ({ className, children, ...props }) => {
const classes = clsx('carousel-caption d-none d-md-block', className);

return (
<div className={classes} {...props}>
{children}
</div>
);
};

export default MDBCarouselCaption;
8 changes: 8 additions & 0 deletions app/src/free/components/Carousel/CarouselCaption/types.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { BaseComponent } from 'src/types/baseComponent';

type CarouselCaptionProps = BaseComponent & {
className?: string;
children?: React.ReactNode;
};

export { CarouselCaptionProps };
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ type CarouselControlsProps = {
move: (direction: 'prev' | 'next') => void;
};

export { CarouselControlsProps };
export type { CarouselControlsProps };
Loading

0 comments on commit ee3d7c5

Please sign in to comment.