Skip to content

Commit

Permalink
Generate v. 5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysiu-w committed Dec 19, 2022
1 parent 70a5c2a commit 2bf7854
Show file tree
Hide file tree
Showing 62 changed files with 293 additions and 285 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 5.0.0
Version: FREE 5.1.0

Documentation:
https://mdbootstrap.com/docs/b5/react/
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdb-react-ui-kit-demo",
"version": "5.0.0",
"version": "5.1.0",
"main": "index.js",
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion app/src/components/Accordion/AccordionItem/AccordionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const MDBAccordionItem: React.FC<AccordionItemProps> = React.forwardRef<HTMLAllC
collapseId,
headerTitle,
headerStyle,
btnClassName,
tag: Tag,
children,
...props
Expand All @@ -29,7 +30,8 @@ const MDBAccordionItem: React.FC<AccordionItemProps> = React.forwardRef<HTMLAllC
const bodyClasses = clsx('accordion-body', bodyClassName);
const buttonClasses = clsx(
'accordion-button',
alwaysOpen ? collapseId !== openState && 'collapsed' : collapseId !== activeItem && 'collapsed'
alwaysOpen ? collapseId !== openState && 'collapsed' : collapseId !== activeItem && 'collapsed',
btnClassName
);

const toggleAccordion = (value: number) => {
Expand Down
5 changes: 3 additions & 2 deletions app/src/components/Accordion/AccordionItem/types.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { BaseComponent } from "../../../types/baseComponent";
import React from 'react';
import { BaseComponent } from '../../../types/baseComponent';

interface AccordionItemProps extends BaseComponent {
bodyClassName?: string;
Expand All @@ -8,6 +8,7 @@ interface AccordionItemProps extends BaseComponent {
headerClassName?: string;
headerStyle?: React.CSSProperties;
headerTitle?: React.ReactNode;
btnClassName?: React.ReactNode;
ref?: React.ForwardedRef<HTMLAllCollection>;
tag?: React.ComponentProps<any>;
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/Accordion/types.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { BaseComponent } from "../../types/baseComponent";
import React from 'react';
import { BaseComponent } from '../../types/baseComponent';

interface AccordionProps extends BaseComponent {
alwaysOpen?: boolean;
Expand Down
7 changes: 3 additions & 4 deletions app/src/components/Badge/types.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from "react";
import { BaseComponent } from "../../types/baseComponent";

import { backgroundColor } from "../../types/colors";
import React from 'react';
import { BaseComponent } from '../../types/baseComponent';
import { backgroundColor } from '../../types/colors';

interface BadgeProps extends BaseComponent {
color?: backgroundColor;
Expand Down
7 changes: 3 additions & 4 deletions app/src/components/ButtonGroup/types.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
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>;
size?: size;
shadow?: "0" | "1" | "2" | "3" | "4" | "5";
shadow?: '0' | '1' | '2' | '3' | '4' | '5';
toolbar?: boolean;
vertical?: boolean;
tag?: React.ComponentProps<any>;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Card/CardBody/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface CardBodyProps extends BaseComponent {
tag?: React.ComponentProps<any>;
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/Card/CardFooter/types.tsx
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 CardFooterProps extends BaseComponent {
border?: string;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Card/CardGroup/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface CardGroupProps extends BaseComponent {
tag?: React.ComponentProps<any>;
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/Card/CardHeader/types.tsx
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 Down
2 changes: 1 addition & 1 deletion app/src/components/Card/CardOverlay/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface CardOverlayProps extends BaseComponent {
tag?: React.ComponentProps<any>;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Card/CardSubTitle/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface CardSubTitleProps extends BaseComponent {
tag?: React.ComponentProps<any>;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Card/CardText/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface CardTextProps extends BaseComponent {
tag?: React.ComponentProps<any>;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Card/CardTitle/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface CardTitleProps extends BaseComponent {
tag?: React.ComponentProps<any>;
Expand Down
6 changes: 3 additions & 3 deletions app/src/components/Card/types.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { backgroundColor } from "../../types/colors";
import { BaseComponent } from "../../types/baseComponent";
import { backgroundColor } from '../../types/colors';
import { BaseComponent } from '../../types/baseComponent';

interface CardProps extends BaseComponent {
alignment?: string;
border?: string;
background?: backgroundColor;
shadow?: "0" | "1" | "2" | "3" | "4" | "5";
shadow?: '0' | '1' | '2' | '3' | '4' | '5';
ref?: React.ForwardedRef<HTMLAllCollection>;
tag?: React.ComponentProps<any>;
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Carousel/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../types/baseComponent";
import { BaseComponent } from '../../types/baseComponent';

interface CarouselProps extends BaseComponent {
dark?: boolean;
Expand Down
3 changes: 2 additions & 1 deletion app/src/components/Dropdown/DropdownItem/DropdownItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ const MDBDropdownItem = ({
header,
disabled,
href,
preventCloseOnClick,
...props
}: DropdownItemProps) => {
const { setIsOpenState, onHide } = useDropdownContext();

const handleClose = (e: MouseEvent<HTMLElement>) => {
if (disabled) return;
if (disabled || preventCloseOnClick) return;

onHide?.();
setIsOpenState(false);
Expand Down
5 changes: 3 additions & 2 deletions app/src/components/Dropdown/DropdownItem/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BaseComponent } from "../../../../src/types/baseComponent";
import { ReactNode, ComponentProps } from "react";
import { BaseComponent } from '../../../../src/types/baseComponent';
import { ReactNode, ComponentProps } from 'react';

export interface DropdownItemProps extends BaseComponent {
tag?: ComponentProps<any>;
Expand All @@ -11,4 +11,5 @@ export interface DropdownItemProps extends BaseComponent {
href?: string;
disabled?: boolean;
className?: string;
preventCloseOnClick?: boolean;
}
30 changes: 15 additions & 15 deletions app/src/components/Dropdown/DropdownMenu/types.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import { BaseComponent } from "../../../types/baseComponent";
import { ReactElement, ComponentProps } from "react";
import { BaseComponent } from '../../../types/baseComponent';
import { ReactElement, ComponentProps } from 'react';

export interface DropdownMenuProps extends BaseComponent {
appendToBody?: boolean;
dark?: boolean;
responsive?:
| ""
| "start"
| "end"
| "sm-start"
| "md-start"
| "lg-start"
| "xl-start"
| "xxl-start"
| "sm-end"
| "md-end"
| "lg-end"
| "xl-end"
| "xxl-end";
| ''
| 'start'
| 'end'
| 'sm-start'
| 'md-start'
| 'lg-start'
| 'xl-start'
| 'xxl-start'
| 'sm-end'
| 'md-end'
| 'lg-end'
| 'xl-end'
| 'xxl-end';
tag?: ComponentProps<any>;
children: ReactElement[] | ReactElement;
alwaysOpen?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/Dropdown/DropdownToggle/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ComponentProps } from "react";
import { BaseComponent } from "../../../../src/types/baseComponent";
import { ComponentProps } from 'react';
import { BaseComponent } from '../../../../src/types/baseComponent';

export interface DropdownToggleProps extends BaseComponent {
split?: boolean;
Expand Down
5 changes: 2 additions & 3 deletions app/src/components/Dropdown/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { BaseComponent } from "../../types/baseComponent";

import { ReactNode, ComponentProps } from "react";
import { BaseComponent } from '../../types/baseComponent';
import { ReactNode, ComponentProps } from 'react';

export interface DropdownProps extends BaseComponent {
animation?: boolean;
Expand Down
6 changes: 3 additions & 3 deletions app/src/components/ListGroup/ListGroupItem/types.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { backgroundColor } from "../../../types/colors";
import { BaseComponent } from "../../../types/baseComponent";
import React from 'react';
import { backgroundColor } from '../../../types/colors';
import { BaseComponent } from '../../../types/baseComponent';

interface ListGroupItemProps extends BaseComponent {
action?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/ListGroup/types.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { BaseComponent } from "../../types/baseComponent";
import React from 'react';
import { BaseComponent } from '../../types/baseComponent';

interface ListGroupProps extends BaseComponent {
horizontal?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Modal/ModalBody/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface ModalBodyProps extends BaseComponent {
ref?: React.ForwardedRef<HTMLAllCollection>;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Modal/ModalContent/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface ModalContentProps extends BaseComponent {
ref?: React.ForwardedRef<HTMLAllCollection>;
Expand Down
20 changes: 10 additions & 10 deletions app/src/components/Modal/ModalDialog/types.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface ModalDialogProps extends BaseComponent {
centered?: boolean;
size?:
| "sm"
| "lg"
| "xl"
| "fullscreen"
| "fullscreen-sm-down"
| "fullscreen-md-down"
| "fullscreen-lg-down"
| "fullscreen-xl-down"
| "fullscreen-xxl-down";
| 'sm'
| 'lg'
| 'xl'
| 'fullscreen'
| 'fullscreen-sm-down'
| 'fullscreen-md-down'
| 'fullscreen-lg-down'
| 'fullscreen-xl-down'
| 'fullscreen-xxl-down';
scrollable?: boolean;
ref?: React.ForwardedRef<HTMLAllCollection>;
tag?: React.ComponentProps<any>;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Modal/ModalFooter/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface ModalFooterProps extends BaseComponent {
ref?: React.ForwardedRef<HTMLAllCollection>;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Modal/ModalHeader/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface ModalHeaderProps extends BaseComponent {
ref?: React.ForwardedRef<HTMLAllCollection>;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Modal/ModalTitle/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface ModalTitleProps extends BaseComponent {
ref?: React.ForwardedRef<HTMLAllCollection>;
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/Modal/types.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BaseComponent } from "../../types/baseComponent";
import { BaseComponent } from '../../types/baseComponent';

interface ModalProps extends BaseComponent {
animationDirection?: "top" | "bottom" | "right" | "left";
animationDirection?: 'top' | 'bottom' | 'right' | 'left';
appendToBody?: boolean;
backdrop?: boolean;
closeOnEsc?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Popover/PopoverBody/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../../types/baseComponent";
import { BaseComponent } from '../../../types/baseComponent';

interface PopoverBodyProps extends BaseComponent {
tag?: React.ComponentProps<any>;
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/Popover/types.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { placement } from "../../types/placement";
import { ButtonProps } from "../Button/types";
import { placement } from '../../types/placement';
import { ButtonProps } from '../Button/types';

interface PopoverProps extends ButtonProps {
btnChildren?: React.ReactNode;
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/Progress/ProgressBar/types.tsx
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 ProgressBarProps extends BaseComponent {
animated?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/Progress/types.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseComponent } from "../../types/baseComponent";
import { BaseComponent } from '../../types/baseComponent';

interface ProgressProps extends BaseComponent {
height?: number | string;
Expand Down
7 changes: 3 additions & 4 deletions app/src/components/Spinner/types.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { BaseComponent } from "../../types/baseComponent";

import { textColor } from "../../types/colors";
import { size } from "../../types/size";
import { BaseComponent } from '../../types/baseComponent';
import { textColor } from '../../types/colors';
import { size } from '../../types/size';

interface SpinnerProps extends BaseComponent {
color?: textColor;
Expand Down
5 changes: 2 additions & 3 deletions app/src/components/Tooltip/types.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { BaseComponent } from "../../types/baseComponent";

import { placement } from "../../types/placement";
import { BaseComponent } from '../../types/baseComponent';
import { placement } from '../../types/placement';

interface TooltipProps extends BaseComponent {
disableMouseDown?: boolean;
Expand Down
7 changes: 3 additions & 4 deletions app/src/data/Tables/types.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { backgroundColor, textColor } from "../../types/colors";
import { backgroundColor, textColor } from '../../types/colors';

interface TableProps
extends Omit<React.TableHTMLAttributes<HTMLTableElement>, "align"> {
align?: "top" | "middle" | "bottom";
interface TableProps extends Omit<React.TableHTMLAttributes<HTMLTableElement>, 'align'> {
align?: 'top' | 'middle' | 'bottom';
borderColor?: textColor;
color?: backgroundColor;
bordered?: boolean;
Expand Down
Loading

0 comments on commit 2bf7854

Please sign in to comment.