react-frontend-common-components 0.0.95 → 0.0.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-frontend-common-components",
3
- "version": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "description": "Reusable frontend library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Breadcrumb, BreadcrumbProps } from "antd";
3
2
 
4
3
  interface AppBreadcrumbProps extends BreadcrumbProps {
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Bar, Line, Pie, Doughnut } from "react-chartjs-2";
3
2
  import {
4
3
  Chart as ChartJS,
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Checkbox } from "antd";
3
2
  import { CheckboxChangeEvent } from "antd/es/checkbox";
4
3
  import "./app-checkbox-text.css";
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Divider, DividerProps } from "antd";
3
2
 
4
3
  interface AppDividerProps extends DividerProps {
@@ -1,4 +1,4 @@
1
- import React, { MouseEventHandler } from "react";
1
+ import { MouseEventHandler } from "react";
2
2
  import { Image } from "antd";
3
3
  import "./app-image-box.css";
4
4
 
@@ -14,6 +14,7 @@ interface AppModalProps {
14
14
  className?: string;
15
15
  closeIcon?: React.ReactNode;
16
16
  width?: number;
17
+ centered?: boolean
17
18
  }
18
19
 
19
20
  const AppModal = ({
@@ -27,6 +28,7 @@ const AppModal = ({
27
28
  className,
28
29
  closeIcon,
29
30
  width,
31
+ centered
30
32
  }: AppModalProps) => {
31
33
  return (
32
34
  <div>
@@ -37,6 +39,7 @@ const AppModal = ({
37
39
  footer={null}
38
40
  closeIcon={closeIcon || <CloseOutlined />}
39
41
  className={className}
42
+ centered={centered}
40
43
  >
41
44
  <div className={"header"}>
42
45
  {title && (
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Pagination } from "antd";
3
2
  import { PaginationProps } from "antd/lib/pagination";
4
3
 
@@ -1,4 +1,4 @@
1
- import React, { ReactElement, useState } from "react";
1
+ import React, { useState } from "react";
2
2
  import { Input } from "antd";
3
3
  import {
4
4
  ChangeEventHandler,
@@ -1,4 +1,4 @@
1
- import React, { useEffect, useRef } from "react";
1
+ import { useEffect, useRef } from "react";
2
2
  import "react-phone-input-2/lib/style.css";
3
3
  import PhoneInput, { CountryData } from "react-phone-input-2";
4
4
  import "./app-phone-input.css";
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Progress } from "antd";
3
2
 
4
3
  interface AppProgressProps {
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Radio } from "antd";
3
2
  import type { RadioChangeEvent } from "antd";
4
3
  import "./app-radio-group.css";
@@ -1,4 +1,4 @@
1
- import React, { useState, useEffect, useRef } from "react";
1
+ import { useState, useEffect, useRef } from "react";
2
2
  import { Select, SelectProps } from "antd";
3
3
  import { MouseEventHandler } from "react";
4
4
  import "./app-select.css";
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Select } from "antd";
3
2
  import type { SelectProps } from "antd";
4
3
  import "./app-select-add.css";
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { Tabs } from "antd";
3
2
  import type { TabsProps } from "antd";
4
3
  import "./app-tab.css";
@@ -1,4 +1,4 @@
1
- import React, { useState } from "react";
1
+ import { useState } from "react";
2
2
  import { Switch } from "antd";
3
3
  import "./app-toggle-button.css";
4
4
 
@@ -1,9 +1,5 @@
1
- import React from "react";
2
- import { Typography } from "antd";
3
1
  import "./over-view-card.css";
4
2
 
5
- const { Text } = Typography;
6
-
7
3
  interface OverViewCardProps {
8
4
  className?: string;
9
5
  text?: string;