pixel-react 1.20.72 → 1.20.73
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 +75 -75
- package/lib/components/AddResourceButton/AddResourceButton.js +1 -9
- package/lib/components/AddResourceButton/AddResourceButton.js.map +1 -1
- package/lib/components/AppHeader/AppHeader.js +1 -1
- package/lib/components/AppHeader/AppHeader.js.map +1 -1
- package/lib/components/AppHeader/types.d.ts +0 -1
- package/lib/components/Charts/BarChart/BarChart.d.ts +1 -2
- package/lib/components/Charts/BarChart/BarChart.js +16 -16
- package/lib/components/Charts/BarChart/BarChart.js.map +1 -1
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js +12 -11
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.js.map +1 -1
- package/lib/components/Charts/DashboardDonutChart/types.d.ts +1 -1
- package/lib/components/Charts/IconRadialChart/IconRadialChart.js +4 -4
- package/lib/components/Charts/PieChart/PieChart.js +5 -5
- package/lib/components/ChatModalAi/ChatModalAi.js +32 -11
- package/lib/components/ChatModalAi/ChatModalAi.js.map +1 -1
- package/lib/components/ChatModalAi/types.d.ts +0 -5
- package/lib/components/Comments/Comments.js +14 -14
- package/lib/components/Comments/childComment/ChildComment.js +14 -14
- package/lib/components/Drawer/Drawer.js +1 -1
- package/lib/components/Drawer/Drawer.js.map +1 -1
- package/lib/components/EditLabel/EditLabel.d.ts +1 -1
- package/lib/components/EditLabel/EditLabel.js +3 -5
- package/lib/components/EditLabel/EditLabel.js.map +1 -1
- package/lib/components/EditLabel/types.d.ts +0 -1
- package/lib/components/EditTextField/EditTextField.js +2 -2
- package/lib/components/Excel/Data.d.ts +21 -66
- package/lib/components/Excel/Data.js +56 -392
- package/lib/components/Excel/Data.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFile.js +2 -2
- package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +13 -19
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js +3 -5
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js +8 -8
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.js +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/DataEditor.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js +4 -5
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +3 -37
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.d.ts +1 -9
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.js +0 -7
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.js.map +1 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js +18 -106
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js.map +1 -1
- package/lib/components/Excel/Types.d.ts +0 -2
- package/lib/components/Excel/dataConversion.d.ts +2 -2
- package/lib/components/Excel/dataConversion.js +2 -6
- package/lib/components/Excel/dataConversion.js.map +1 -1
- package/lib/components/Icon/iconList.js +0 -30
- package/lib/components/Icon/iconList.js.map +1 -1
- package/lib/components/LabelEditTextField/LabelEditTextField.js +4 -4
- package/lib/components/MenuOption/MenuOption.js +18 -19
- package/lib/components/MenuOption/MenuOption.js.map +1 -1
- package/lib/components/StatusIndicator/StatusIndicator.js +5 -5
- package/lib/components/StepsLandingTable/Components/StepInnerTable.js +57 -5
- package/lib/components/StepsLandingTable/Components/StepInnerTable.js.map +1 -1
- package/lib/components/TableTreeFn/Components/TableBody.d.ts +1 -1
- package/lib/components/TableTreeFn/Components/TableBody.js +2 -2
- package/lib/components/TableTreeFn/Components/TableBody.js.map +1 -1
- package/lib/components/TableTreeFn/Components/TableCell.d.ts +1 -1
- package/lib/components/TableTreeFn/Components/TableCell.js +5 -2
- package/lib/components/TableTreeFn/Components/TableCell.js.map +1 -1
- package/lib/components/TableTreeFn/Components/TableHead.d.ts +1 -1
- package/lib/components/TableTreeFn/Components/TableHead.js +17 -9
- package/lib/components/TableTreeFn/Components/TableHead.js.map +1 -1
- package/lib/components/TableTreeFn/Components/TableRow.d.ts +1 -1
- package/lib/components/TableTreeFn/Components/TableRow.js +2 -2
- package/lib/components/TableTreeFn/Components/TableRow.js.map +1 -1
- package/lib/components/TableTreeFn/TableTreeFn.js +2 -2
- package/lib/components/TableTreeFn/TableTreeFn.js.map +1 -1
- package/lib/components/TableTreeFn/types.d.ts +5 -0
- package/lib/hooks/useClickOutside.d.ts +1 -4
- package/lib/hooks/useClickOutside.js +5 -7
- package/lib/hooks/useClickOutside.js.map +1 -1
- package/lib/index.d.ts +22 -136
- package/lib/index.js +9 -9
- package/lib/index.js.map +1 -1
- package/lib/styles.css +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/validations/regex.d.ts +1 -2
- package/lib/validations/regex.js +1 -2
- package/lib/validations/regex.js.map +1 -1
- package/package.json +118 -118
- package/lib/components/Charts/StackedBarChart/StackedBarChart.d.ts +0 -5
- package/lib/components/Charts/StackedBarChart/StackedBarChart.js +0 -67
- package/lib/components/Charts/StackedBarChart/StackedBarChart.js.map +0 -1
- package/lib/components/Charts/StackedBarChart/index.d.ts +0 -1
- package/lib/components/Charts/StackedBarChart/index.js +0 -2
- package/lib/components/Charts/StackedBarChart/index.js.map +0 -1
- package/lib/components/Charts/StackedBarChart/types.d.ts +0 -34
- package/lib/components/Charts/StackedBarChart/types.js +0 -2
- package/lib/components/Charts/StackedBarChart/types.js.map +0 -1
- package/lib/components/HOC/LayoutWithDrawer/LayoutWithDrawer.d.ts +0 -11
- package/lib/components/HOC/LayoutWithDrawer/LayoutWithDrawer.js +0 -7
- package/lib/components/HOC/LayoutWithDrawer/LayoutWithDrawer.js.map +0 -1
- package/lib/components/HOC/LayoutWithDrawer/index.d.ts +0 -1
- package/lib/components/HOC/LayoutWithDrawer/index.js +0 -2
- package/lib/components/HOC/LayoutWithDrawer/index.js.map +0 -1
- package/lib/components/Loader/Loader.d.ts +0 -5
- package/lib/components/Loader/Loader.js +0 -8
- package/lib/components/Loader/Loader.js.map +0 -1
- package/lib/components/Loader/index.d.ts +0 -1
- package/lib/components/Loader/index.js +0 -2
- package/lib/components/Loader/index.js.map +0 -1
- package/lib/components/NetworkErrorBoundary/NetworkErrorBoundary.d.ts +0 -5
- package/lib/components/NetworkErrorBoundary/NetworkErrorBoundary.js +0 -19
- package/lib/components/NetworkErrorBoundary/NetworkErrorBoundary.js.map +0 -1
- package/lib/components/NetworkErrorBoundary/index.d.ts +0 -1
- package/lib/components/NetworkErrorBoundary/index.js +0 -2
- package/lib/components/NetworkErrorBoundary/index.js.map +0 -1
- package/lib/components/NetworkErrorBoundary/types.d.ts +0 -33
- package/lib/components/NetworkErrorBoundary/types.js +0 -2
- package/lib/components/NetworkErrorBoundary/types.js.map +0 -1
- package/lib/components/NoDataAvailable/NoDataAvailable.d.ts +0 -5
- package/lib/components/NoDataAvailable/NoDataAvailable.js +0 -11
- package/lib/components/NoDataAvailable/NoDataAvailable.js.map +0 -1
- package/lib/components/NoDataAvailable/index.d.ts +0 -1
- package/lib/components/NoDataAvailable/index.js +0 -2
- package/lib/components/NoDataAvailable/index.js.map +0 -1
- package/lib/components/NoDataAvailable/type.d.ts +0 -3
- package/lib/components/NoDataAvailable/type.js +0 -2
- package/lib/components/NoDataAvailable/type.js.map +0 -1
- package/lib/components/NoResultFound/NoResultFound.d.ts +0 -14
- package/lib/components/NoResultFound/NoResultFound.js +0 -7
- package/lib/components/NoResultFound/NoResultFound.js.map +0 -1
- package/lib/components/NoResultFound/index.d.ts +0 -1
- package/lib/components/NoResultFound/index.js +0 -2
- package/lib/components/NoResultFound/index.js.map +0 -1
- package/lib/utils/OnlineStatus/useOnlineStatus.d.ts +0 -1
- package/lib/utils/OnlineStatus/useOnlineStatus.js +0 -20
- package/lib/utils/OnlineStatus/useOnlineStatus.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './StackedBarChart';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Charts/StackedBarChart/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export type DynamicObj = {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
};
|
|
4
|
-
export type StackedBarSegment = {
|
|
5
|
-
key: string;
|
|
6
|
-
value: number;
|
|
7
|
-
color: string;
|
|
8
|
-
data?: DynamicObj;
|
|
9
|
-
};
|
|
10
|
-
export type StackedBarDataItem = {
|
|
11
|
-
label: string;
|
|
12
|
-
segments: StackedBarSegment[];
|
|
13
|
-
};
|
|
14
|
-
export type StackedBarChartProps = {
|
|
15
|
-
data: StackedBarDataItem[];
|
|
16
|
-
barWidth?: number;
|
|
17
|
-
height?: number;
|
|
18
|
-
barGap?: number;
|
|
19
|
-
barBorderRadius?: number;
|
|
20
|
-
xAxisLabel?: string;
|
|
21
|
-
yAxisLabel?: string;
|
|
22
|
-
yAxisDivisions?: number;
|
|
23
|
-
padding?: number;
|
|
24
|
-
legend?: boolean;
|
|
25
|
-
legendPosition?: 'top' | 'bottom';
|
|
26
|
-
showXAxisLabels?: boolean;
|
|
27
|
-
isTruncateText?: boolean;
|
|
28
|
-
isOnclick?: boolean;
|
|
29
|
-
onSelectedBar?: (colData: {
|
|
30
|
-
label: string;
|
|
31
|
-
segments: StackedBarSegment[];
|
|
32
|
-
}, index: number) => void;
|
|
33
|
-
onSegmentClick?: (label: string, segment: StackedBarSegment, segmentIndex: number) => void;
|
|
34
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/Charts/StackedBarChart/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Drawer from '../../Drawer';
|
|
3
|
-
type LayoutWithDrawerProps = {
|
|
4
|
-
drawerProps?: React.ComponentProps<typeof Drawer>;
|
|
5
|
-
showDrawer: boolean;
|
|
6
|
-
zIndex?: number;
|
|
7
|
-
top?: string;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
};
|
|
10
|
-
declare const LayoutWithDrawer: ({ drawerProps, showDrawer, children, zIndex, top, }: LayoutWithDrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default LayoutWithDrawer;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import Drawer from '../../Drawer';
|
|
3
|
-
const LayoutWithDrawer = ({ drawerProps, showDrawer, children, zIndex = 1200, top = '56px', }) => {
|
|
4
|
-
return showDrawer ? (_jsx(Drawer, { isOpen: drawerProps?.isOpen ?? true, ...drawerProps, zIndex: zIndex, top: top, children: children })) : (_jsx(_Fragment, { children: children }));
|
|
5
|
-
};
|
|
6
|
-
export default LayoutWithDrawer;
|
|
7
|
-
//# sourceMappingURL=LayoutWithDrawer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LayoutWithDrawer.js","sourceRoot":"","sources":["../../../../src/components/HOC/LayoutWithDrawer/LayoutWithDrawer.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,cAAc,CAAC;AAUlC,MAAM,gBAAgB,GAAG,CAAC,EACxB,WAAW,EACX,UAAU,EACV,QAAQ,EACR,MAAM,GAAG,IAAI,EACb,GAAG,GAAG,MAAM,GACU,EAAE,EAAE;IAC1B,OAAO,UAAU,CAAC,CAAC,CAAC,CAClB,KAAC,MAAM,IACL,MAAM,EAAE,WAAW,EAAE,MAAM,IAAI,IAAI,KAC/B,WAAW,EACf,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,GAAG,YAEP,QAAQ,GACF,CACV,CAAC,CAAC,CAAC,CACF,4BAAG,QAAQ,GAAI,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './LayoutWithDrawer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/HOC/LayoutWithDrawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import LineLoader from '../LineLoader';
|
|
3
|
-
import Icon from '../Icon';
|
|
4
|
-
const Loader = (details) => {
|
|
5
|
-
return (_jsx(LineLoader, { logo: () => details?.name === 'FireFlink' ? (_jsx(Icon, { height: 100, width: 100, name: "fire_flink_loader_logo" })) : (_jsx("img", { src: details?.loaderName, width: 100, height: 100, alt: "loader" })) }));
|
|
6
|
-
};
|
|
7
|
-
export default Loader;
|
|
8
|
-
//# sourceMappingURL=Loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,MAAM,MAAM,GAAG,CAAC,OAA6C,EAAE,EAAE;IAC/D,OAAO,CACL,KAAC,UAAU,IACT,IAAI,EAAE,GAAG,EAAE,CACT,OAAO,EAAE,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC,CAC9B,KAAC,IAAI,IAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAC,wBAAwB,GAAG,CAChE,CAAC,CAAC,CAAC,CACF,cACE,GAAG,EAAE,OAAO,EAAE,UAAU,EACxB,KAAK,EAAE,GAAG,EACV,MAAM,EAAE,GAAG,EACX,GAAG,EAAC,QAAQ,GACZ,CACH,GAEH,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Loader';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Loader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect } from 'react';
|
|
3
|
-
import Icon from '../Icon';
|
|
4
|
-
import './NetworkErrorBoundary.scss';
|
|
5
|
-
import { useOnlineStatus } from '../../utils/OnlineStatus/useOnlineStatus';
|
|
6
|
-
export const NetworkErrorBoundary = ({ children, offlineContent, hasError = false, onNetworkStatusChange, overlayClassName, overlayZIndex = 99998, iconWidth = 300, iconHeight = 300, }) => {
|
|
7
|
-
const isOnline = useOnlineStatus();
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
if (onNetworkStatusChange) {
|
|
10
|
-
onNetworkStatusChange(isOnline);
|
|
11
|
-
}
|
|
12
|
-
}, [isOnline, onNetworkStatusChange]);
|
|
13
|
-
if (hasError || !isOnline) {
|
|
14
|
-
return (_jsx("div", { className: `offlineOverlay ${overlayClassName ?? ''}`, style: { zIndex: overlayZIndex }, children: offlineContent || (_jsx(Icon, { name: "offline_404_icon", height: iconHeight, width: iconWidth })) }));
|
|
15
|
-
}
|
|
16
|
-
return _jsx(_Fragment, { children: children });
|
|
17
|
-
};
|
|
18
|
-
export default NetworkErrorBoundary;
|
|
19
|
-
//# sourceMappingURL=NetworkErrorBoundary.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkErrorBoundary.js","sourceRoot":"","sources":["../../../src/components/NetworkErrorBoundary/NetworkErrorBoundary.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAW,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,6BAA6B,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E,MAAM,CAAC,MAAM,oBAAoB,GAAkC,CAAC,EAClE,QAAQ,EACR,cAAc,EACd,QAAQ,GAAG,KAAK,EAChB,qBAAqB,EACrB,gBAAgB,EAChB,aAAa,GAAG,KAAK,EACrB,SAAS,GAAG,GAAG,EACf,UAAU,GAAG,GAAG,GACjB,EAAE,EAAE;IACH,MAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;IAEnC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,qBAAqB,EAAE,CAAC;YAC1B,qBAAqB,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC;IACH,CAAC,EAAE,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC,CAAC;IAEtC,IAAI,QAAQ,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC1B,OAAO,CACL,cACE,SAAS,EAAE,kBAAkB,gBAAgB,IAAI,EAAE,EAAE,EACrD,KAAK,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,YAE/B,cAAc,IAAI,CACjB,KAAC,IAAI,IAAC,IAAI,EAAC,kBAAkB,EAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,GAAI,CACvE,GACG,CACP,CAAC;IACJ,CAAC;IAED,OAAO,4BAAG,QAAQ,GAAI,CAAC;AACzB,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './NetworkErrorBoundary';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/NetworkErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export interface NetworkErrorBoundaryProps {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
/**
|
|
5
|
-
* Optional custom offline content to display
|
|
6
|
-
* If not provided, uses default offline SVG
|
|
7
|
-
*/
|
|
8
|
-
offlineContent?: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Optional callback when network status changes
|
|
11
|
-
*/
|
|
12
|
-
hasError?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* When set to `true`, the component will render the error/overlay UI
|
|
15
|
-
*/
|
|
16
|
-
onNetworkStatusChange?: (isOnline: boolean) => void;
|
|
17
|
-
/**
|
|
18
|
-
* Optional custom CSS class for the overlay
|
|
19
|
-
*/
|
|
20
|
-
overlayClassName?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Optional z-index override for the overlay
|
|
23
|
-
*/
|
|
24
|
-
overlayZIndex?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Width of the fallback icon (default: 300)
|
|
27
|
-
*/
|
|
28
|
-
iconWidth?: number;
|
|
29
|
-
/**
|
|
30
|
-
* Height of the fallback icon (default: 300)
|
|
31
|
-
*/
|
|
32
|
-
iconHeight?: number;
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/NetworkErrorBoundary/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import './NoDataAvailable.scss';
|
|
3
|
-
import Icon from '../Icon';
|
|
4
|
-
import Typography from '../Typography';
|
|
5
|
-
const NoDataAvailable = ({ isVisible }) => {
|
|
6
|
-
if (!isVisible)
|
|
7
|
-
return null;
|
|
8
|
-
return (_jsxs("div", { className: 'no_data_message', children: [_jsx(Icon, { name: "no_content", width: 120, height: 120 }), _jsx(Typography, { fontSize: "20px", lineHeight: "30px", fontWeight: "semi-bold", children: "No Data Available" })] }));
|
|
9
|
-
};
|
|
10
|
-
export default NoDataAvailable;
|
|
11
|
-
//# sourceMappingURL=NoDataAvailable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoDataAvailable.js","sourceRoot":"","sources":["../../../src/components/NoDataAvailable/NoDataAvailable.tsx"],"names":[],"mappings":";AAEA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,MAAM,eAAe,GAA2B,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE;IAChE,IAAI,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAC5B,OAAO,CACL,eAAK,SAAS,EAAE,iBAAiB,aAC/B,KAAC,IAAI,IAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,GAAI,EACnD,KAAC,UAAU,IAAC,QAAQ,EAAC,MAAM,EAAC,UAAU,EAAC,MAAM,EAAC,UAAU,EAAC,WAAW,kCAEvD,IACT,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './NoDataAvailable';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/NoDataAvailable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/components/NoDataAvailable/type.ts"],"names":[],"mappings":""}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
import './NoResultFound.scss';
|
|
3
|
-
type NoDataProps = {
|
|
4
|
-
text?: string;
|
|
5
|
-
iconName?: string;
|
|
6
|
-
fontSize?: string;
|
|
7
|
-
textAlign?: 'left' | 'right' | 'center' | 'justify' | undefined;
|
|
8
|
-
direction?: 'column' | 'row';
|
|
9
|
-
iconWidth?: number;
|
|
10
|
-
iconHeight?: number;
|
|
11
|
-
fontWeight?: 'semi-bold' | 'bold' | 'regular' | 'medium' | undefined;
|
|
12
|
-
};
|
|
13
|
-
declare const NoResultFound: FC<NoDataProps>;
|
|
14
|
-
export default NoResultFound;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import './NoResultFound.scss';
|
|
3
|
-
import Icon from '../Icon';
|
|
4
|
-
import Typography from '../Typography';
|
|
5
|
-
const NoResultFound = ({ text = ' No Results Found', iconName = 'no_license_found', fontSize = '24px', textAlign = 'left', direction = 'column', iconWidth = 120, iconHeight = 120, fontWeight = 'semi-bold', }) => (_jsx("article", { className: "no_results_container", children: _jsxs("div", { className: `no_results_container__${direction}`, children: [_jsx(Icon, { name: iconName, width: iconWidth, height: iconHeight }), _jsx("div", { children: _jsx(Typography, { as: "div", fontSize: fontSize, lineHeight: "36px", fontWeight: fontWeight, color: "var(--text-color)", textAlign: textAlign, children: text }) })] }) }));
|
|
6
|
-
export default NoResultFound;
|
|
7
|
-
//# sourceMappingURL=NoResultFound.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoResultFound.js","sourceRoot":"","sources":["../../../src/components/NoResultFound/NoResultFound.tsx"],"names":[],"mappings":";AAEA,OAAO,sBAAsB,CAAC;AAC9B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,UAAU,MAAM,eAAe,CAAC;AAYvC,MAAM,aAAa,GAAoB,CAAC,EACtC,IAAI,GAAG,mBAAmB,EAC1B,QAAQ,GAAG,kBAAkB,EAC7B,QAAQ,GAAG,MAAM,EACjB,SAAS,GAAG,MAAM,EAClB,SAAS,GAAG,QAAQ,EACpB,SAAS,GAAG,GAAG,EACf,UAAU,GAAG,GAAG,EAChB,UAAU,GAAG,WAAW,GACzB,EAAE,EAAE,CAAC,CACJ,kBAAS,SAAS,EAAC,sBAAsB,YACvC,eAAK,SAAS,EAAE,yBAAyB,SAAS,EAAE,aAClD,KAAC,IAAI,IAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,GAAI,EAC9D,wBACE,KAAC,UAAU,IACT,EAAE,EAAC,KAAK,EACR,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAC,MAAM,EACjB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAC,mBAAmB,EACzB,SAAS,EAAE,SAAS,YAEnB,IAAI,GACM,GACT,IACF,GACE,CACX,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './NoResultFound';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/NoResultFound/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useOnlineStatus(): boolean;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from 'react';
|
|
2
|
-
export function useOnlineStatus() {
|
|
3
|
-
const [isOnline, setIsOnline] = useState(navigator.onLine);
|
|
4
|
-
useEffect(() => {
|
|
5
|
-
const handleOnline = () => {
|
|
6
|
-
setIsOnline(true);
|
|
7
|
-
};
|
|
8
|
-
const handleOffline = () => {
|
|
9
|
-
setIsOnline(false);
|
|
10
|
-
};
|
|
11
|
-
window.addEventListener('online', handleOnline);
|
|
12
|
-
window.addEventListener('offline', handleOffline);
|
|
13
|
-
return () => {
|
|
14
|
-
window.removeEventListener('online', handleOnline);
|
|
15
|
-
window.removeEventListener('offline', handleOffline);
|
|
16
|
-
};
|
|
17
|
-
}, []);
|
|
18
|
-
return isOnline;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=useOnlineStatus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOnlineStatus.js","sourceRoot":"","sources":["../../../src/utils/OnlineStatus/useOnlineStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,UAAU,eAAe;IAC7B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAE3D,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,YAAY,GAAG,GAAG,EAAE;YACxB,WAAW,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,CAAC;QAEF,MAAM,aAAa,GAAG,GAAG,EAAE;YACzB,WAAW,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAChD,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAElD,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;YACnD,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACvD,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|