@conboai/storybook.components 0.5.8 → 0.5.9
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/dist/assets/icons/ErrorIcon.d.ts +1 -3
- package/dist/assets/icons/InfoIcon.d.ts +1 -3
- package/dist/assets/icons/SuccessIcon.d.ts +1 -3
- package/dist/assets/icons/ThreeDotsIcon.d.ts +1 -3
- package/dist/assets/icons/WarningIcon.d.ts +1 -3
- package/dist/build/index.d.ts +0 -1
- package/dist/components/ActionButton/ActionButton.d.ts +1 -2
- package/dist/components/ActionSelect/ActionSelect.d.ts +1 -2
- package/dist/components/AppTitleBar/AppTitleBar.d.ts +1 -2
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts +1 -3
- package/dist/components/ChipsMultiSelect/ChipsMultiSelect.d.ts +1 -3
- package/dist/components/CircularProgressBar/CircularProgressBar.d.ts +1 -2
- package/dist/components/CircularProgressBar/CircularProgressWithLabel.d.ts +1 -2
- package/dist/components/CustomInput/CustomInput.d.ts +5 -5
- package/dist/components/CustomSelect/CustomSelect.d.ts +0 -1
- package/dist/components/DatePicker/ActionBar.d.ts +1 -2
- package/dist/components/DatePicker/DatePicker.d.ts +1 -2
- package/dist/components/DatePicker/constants.d.ts +4 -5
- package/dist/components/Delimiter/Delimiter.d.ts +1 -3
- package/dist/components/Filter/components/Filter.d.ts +1 -2
- package/dist/components/Filter/components/FilterActionButtons.d.ts +1 -2
- package/dist/components/Filter/components/FilterBody.d.ts +1 -2
- package/dist/components/Filter/components/FilterContent.d.ts +2 -2
- package/dist/components/Filter/components/FilterContentFooter.d.ts +1 -2
- package/dist/components/Filter/components/FilterFooter.d.ts +1 -2
- package/dist/components/Filter/components/FilterHeader.d.ts +1 -2
- package/dist/components/Filter/components/FilterTabPanels.d.ts +1 -2
- package/dist/components/Filter/components/FilterTabs.d.ts +1 -2
- package/dist/components/FilterBox/FilterBox.d.ts +1 -2
- package/dist/components/Geo/Geo.d.ts +1 -2
- package/dist/components/Geo/components/NumericMarker/index.d.ts +1 -2
- package/dist/components/Geo/components/PointMarker/index.d.ts +1 -2
- package/dist/components/Geo/components/Polygon/index.d.ts +1 -2
- package/dist/components/Geo/components/Polyline/index.d.ts +1 -2
- package/dist/components/Geo/components/ShapeDrawer/index.d.ts +2 -2
- package/dist/components/Geo/types.d.ts +5 -3
- package/dist/components/Geo/utils.d.ts +1 -1
- package/dist/components/Header/Header.d.ts +2 -2
- package/dist/components/HomeLink/HomeLink.d.ts +2 -2
- package/dist/components/ImageBox/ImageBox.d.ts +0 -2
- package/dist/components/ImagePlayer/ImagePlayer.d.ts +0 -1
- package/dist/components/MapPlayer/MapPlayer.d.ts +2 -2
- package/dist/components/MediaModal/MediaModal.d.ts +2 -2
- package/dist/components/MetroMap/MetroMap.d.ts +2 -3
- package/dist/components/NotificationBar/NotificationBar.d.ts +1 -3
- package/dist/components/OptimusWidgetBar/OptimusWidgetBar.d.ts +1 -3
- package/dist/components/PlayerPanel/PlayerPanel.d.ts +2 -2
- package/dist/components/SearchInput/SearchInput.d.ts +1 -3
- package/dist/components/Shapes/Header/index.d.ts +1 -2
- package/dist/components/Shapes/Menu/index.d.ts +1 -2
- package/dist/components/Shapes/MousePoint/index.d.ts +1 -2
- package/dist/components/Shapes/NumericMarker/index.d.ts +1 -2
- package/dist/components/Shapes/Shapes.d.ts +1 -2
- package/dist/components/Shapes/Text/index.d.ts +1 -2
- package/dist/components/Svg/Svg.d.ts +1 -2
- package/dist/components/TimelineChart/TimelineChart.d.ts +0 -2
- package/dist/components/Toggle/Toggle.d.ts +3 -3
- package/dist/components/TrailPathView/TrailPathView.d.ts +0 -2
- package/dist/interfaces/actionButton.d.ts +2 -1
- package/dist/interfaces/detailsView.d.ts +3 -3
- package/dist/interfaces/tabsContainer.d.ts +4 -4
- package/dist/mocks/detailsView.d.ts +1 -2
- package/dist/storybook.components.mjs +12163 -11869
- package/package.json +2 -4
- package/dist/components/Geo/LoadScriptWrapper.d.ts +0 -8
package/dist/build/index.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export { CustomInput } from '../components/CustomInput';
|
|
|
29
29
|
export { extractPrefix, extractZip, startsWithAny, parseSvg, getParsedSvgViewsFromZip, } from '../components/MetroMap/MetroMapUtils';
|
|
30
30
|
export { TimelineChart } from '../components/TimelineChart';
|
|
31
31
|
export { TrailPathView } from '../components/TrailPathView';
|
|
32
|
-
export { LoadScriptWrapper } from '../components/Geo/LoadScriptWrapper';
|
|
33
32
|
export { Geo } from '../components/Geo';
|
|
34
33
|
export { Shapes } from '../components/Shapes';
|
|
35
34
|
export { CustomDataGrid } from '../components/CustomDataGrid';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IActionButton } from '../../interfaces/actionButton';
|
|
3
2
|
|
|
4
|
-
export declare const ActionButton: ({ children, disabled, onClick, variant, size, sx, ...props }: IActionButton) =>
|
|
3
|
+
export declare const ActionButton: ({ children, disabled, onClick, variant, size, sx, ...props }: IActionButton) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default ActionButton;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IActionSelect } from '../../interfaces/actionSelect';
|
|
3
2
|
|
|
4
|
-
declare const ActionSelect: ({ options, setValue, value, disabled }: IActionSelect) =>
|
|
3
|
+
declare const ActionSelect: ({ options, setValue, value, disabled }: IActionSelect) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default ActionSelect;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IAppTitleBar } from '../../interfaces/appTitleBar';
|
|
3
2
|
|
|
4
|
-
declare function AppTitleBar({ label, imageSrc, onClick }: IAppTitleBar):
|
|
3
|
+
declare function AppTitleBar({ label, imageSrc, onClick }: IAppTitleBar): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default AppTitleBar;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
1
|
interface IBreadCrumbs {
|
|
4
2
|
home: string;
|
|
5
3
|
current: string;
|
|
6
4
|
}
|
|
7
|
-
declare function BreadCrumbs({ home, current }: IBreadCrumbs):
|
|
5
|
+
declare function BreadCrumbs({ home, current }: IBreadCrumbs): import("react/jsx-runtime").JSX.Element;
|
|
8
6
|
export default BreadCrumbs;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
1
|
export interface IChipsMultiSelect {
|
|
4
2
|
options: string[];
|
|
5
3
|
label: string;
|
|
@@ -11,5 +9,5 @@ export interface IChipsMultiSelect {
|
|
|
11
9
|
clearIconVisible?: boolean;
|
|
12
10
|
disabled?: boolean;
|
|
13
11
|
}
|
|
14
|
-
declare function ChipsMultiSelect({ options, label, value, onChange, size, isSingle, isRequired, clearIconVisible, disabled, }: IChipsMultiSelect):
|
|
12
|
+
declare function ChipsMultiSelect({ options, label, value, onChange, size, isSingle, isRequired, clearIconVisible, disabled, }: IChipsMultiSelect): import("react/jsx-runtime").JSX.Element;
|
|
15
13
|
export default ChipsMultiSelect;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CircularProgressProps } from '@mui/material/CircularProgress';
|
|
2
2
|
|
|
3
|
-
import * as React from "react";
|
|
4
3
|
declare const CircularProgressWithLabel: (props: CircularProgressProps & {
|
|
5
4
|
value: number;
|
|
6
|
-
}) =>
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export default CircularProgressWithLabel;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode, ChangeEvent } from 'react';
|
|
2
2
|
|
|
3
3
|
export interface ICustomInputProps {
|
|
4
|
-
startAdornment?:
|
|
5
|
-
endAdornment?:
|
|
4
|
+
startAdornment?: ReactNode;
|
|
5
|
+
endAdornment?: ReactNode;
|
|
6
6
|
label?: string;
|
|
7
|
-
onChange?: (event:
|
|
7
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
8
8
|
type?: string;
|
|
9
9
|
variant?: "light" | "dark";
|
|
10
10
|
}
|
|
11
|
-
declare const CustomInput:
|
|
11
|
+
declare const CustomInput: import('react').ForwardRefExoticComponent<Omit<ICustomInputProps & import('@mui/material/TextField').StandardTextFieldProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
12
12
|
export default CustomInput;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { PickersActionBarProps } from '@mui/x-date-pickers';
|
|
3
2
|
|
|
4
|
-
declare const ActionBar: ({ onClear, onSetToday, className }: PickersActionBarProps) =>
|
|
3
|
+
declare const ActionBar: ({ onClear, onSetToday, className }: PickersActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default ActionBar;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IDatePicker } from '../../interfaces/datePicker';
|
|
3
2
|
|
|
4
|
-
declare const DatePicker: ({ label, onChange, value, showShortcuts, showAmPmFormat, shortcuts, selectOptions, showActionSelect, format, readonly, disabled, timezone, onError, }: IDatePicker) =>
|
|
3
|
+
declare const DatePicker: ({ label, onChange, value, showShortcuts, showAmPmFormat, shortcuts, selectOptions, showActionSelect, format, readonly, disabled, timezone, onError, }: IDatePicker) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default DatePicker;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { TypeShortcuts } from '../../interfaces/datePicker';
|
|
3
2
|
|
|
4
3
|
export declare const DEFAULT_DATE_FORMAT = "MM/DD/YYYY HH:mm";
|
|
5
4
|
export declare const VIEWS_WITH_NO_TIME: string[];
|
|
6
5
|
export declare const VIEWS_WITH_TIME: string[];
|
|
7
6
|
export declare const slots: {
|
|
8
|
-
openPickerIcon: () =>
|
|
9
|
-
leftArrowIcon: () =>
|
|
10
|
-
rightArrowIcon: () =>
|
|
11
|
-
actionBar: ({ onClear, onSetToday, className }: import('@mui/x-date-pickers').PickersActionBarProps) =>
|
|
7
|
+
openPickerIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
leftArrowIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
rightArrowIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
actionBar: ({ onClear, onSetToday, className }: import('@mui/x-date-pickers').PickersActionBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
};
|
|
13
12
|
export declare const slotProps: (showShortcuts: boolean, shortcuts: TypeShortcuts) => {
|
|
14
13
|
shortcuts: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IFilter } from '../../../interfaces/filter';
|
|
3
2
|
|
|
4
|
-
declare const _default:
|
|
3
|
+
declare const _default: import('react').MemoExoticComponent<({ open, anchor, title, placement, width, height, onClose, onDone, data, readonly, notificationText, filterData }: IFilter) => import("react/jsx-runtime").JSX.Element>;
|
|
5
4
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IFilterActionButtons } from '../../../interfaces/filter';
|
|
3
2
|
|
|
4
|
-
declare const FilterActionButtons: ({ onAdd, onRemove, onAddDisabled, onRemovedDisabled }: IFilterActionButtons) =>
|
|
3
|
+
declare const FilterActionButtons: ({ onAdd, onRemove, onAddDisabled, onRemovedDisabled }: IFilterActionButtons) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default FilterActionButtons;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IFilterBody } from '../../../interfaces/filter';
|
|
3
2
|
|
|
4
|
-
declare const FilterBody: ({ data, helperText, setSelectedValues, selectedItems, readonly, filterData, subItemsFlag, setSubItemsFlag, isFilterBlock }: IFilterBody) =>
|
|
3
|
+
declare const FilterBody: ({ data, helperText, setSelectedValues, selectedItems, readonly, filterData, subItemsFlag, setSubItemsFlag, isFilterBlock }: IFilterBody) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default FilterBody;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
import { IFilterContent } from '../../../interfaces/filter';
|
|
3
3
|
|
|
4
|
-
declare const FilterContent:
|
|
4
|
+
declare const FilterContent: FC<IFilterContent>;
|
|
5
5
|
export default FilterContent;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IFilterContentFooter } from '../../../interfaces/filter';
|
|
3
2
|
|
|
4
|
-
declare const _default:
|
|
3
|
+
declare const _default: import('react').MemoExoticComponent<({ checkedItems, setCheckedItems, data, setMasterCheckboxStates }: IFilterContentFooter) => import("react/jsx-runtime").JSX.Element>;
|
|
5
4
|
export default _default;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IFilterFooter } from '../../../interfaces/filter';
|
|
3
2
|
|
|
4
|
-
declare const FilterFooter: ({ onCancel, onDone, isNotificationShown, notificationText, onDoneDisabled }: IFilterFooter) =>
|
|
3
|
+
declare const FilterFooter: ({ onCancel, onDone, isNotificationShown, notificationText, onDoneDisabled }: IFilterFooter) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default FilterFooter;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IFilterHeader } from '../../../interfaces/filter';
|
|
3
2
|
|
|
4
|
-
declare const FilterHeader: ({ title, onClose }: IFilterHeader) =>
|
|
3
|
+
declare const FilterHeader: ({ title, onClose }: IFilterHeader) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default FilterHeader;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IFilterTabPanels } from '../../../interfaces/filter';
|
|
3
2
|
|
|
4
|
-
declare const FilterTabPanels: ({ tabs, filterKey, data }: IFilterTabPanels) =>
|
|
3
|
+
declare const FilterTabPanels: ({ tabs, filterKey, data }: IFilterTabPanels) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default FilterTabPanels;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IFilterTabs } from '../../../interfaces/filter';
|
|
3
2
|
|
|
4
|
-
declare const FilterTabs: ({ value, setValue, data, setFilterKey, setSubItemsFlag }: IFilterTabs) =>
|
|
3
|
+
declare const FilterTabs: ({ value, setValue, data, setFilterKey, setSubItemsFlag }: IFilterTabs) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default FilterTabs;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IFilterBox } from '../../interfaces/filter';
|
|
3
2
|
|
|
4
|
-
declare const FilterBox: ({ title, filterTitle, data, readonly }: IFilterBox) =>
|
|
3
|
+
declare const FilterBox: ({ title, filterTitle, data, readonly }: IFilterBox) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default FilterBox;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { GeoComponentProps } from './types';
|
|
3
2
|
|
|
4
|
-
declare const Geo: (
|
|
3
|
+
declare const Geo: ({ mode: modeFromProps, resetKey: resetKeyFromProps, onChange: onChangeFromProps, onComplete, data, selectedGeoId: selectedGeoIdFromProps, onSelect, onMouseMove, onDragEnd, showDirection, showNumbers, allowDelete, allowAdd, disableControls, fitZoom, mapCentering, showOnlyPoints, initialCenter, zoom: zoomFromProps }: GeoComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default Geo;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { NumericMarkerPropsType } from './types';
|
|
3
2
|
|
|
4
|
-
export default function NumericMarker({ coordinates: { lat, lng }, index }: NumericMarkerPropsType):
|
|
3
|
+
export default function NumericMarker({ coordinates: { lat, lng }, index }: NumericMarkerPropsType): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { GeoType } from '../../types';
|
|
3
2
|
|
|
4
3
|
interface IPointMarker {
|
|
@@ -7,5 +6,5 @@ interface IPointMarker {
|
|
|
7
6
|
index: number;
|
|
8
7
|
selectedGeoId: string | null;
|
|
9
8
|
}
|
|
10
|
-
declare const PointMarker: ({ entity, onSelect, index, selectedGeoId, }: IPointMarker) =>
|
|
9
|
+
declare const PointMarker: ({ entity, onSelect, index, selectedGeoId, }: IPointMarker) => import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export default PointMarker;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { CoordinatePoint, GeoMode, GeoType } from '../../types';
|
|
3
2
|
|
|
4
3
|
export interface IPolygonProps {
|
|
@@ -11,5 +10,5 @@ export interface IPolygonProps {
|
|
|
11
10
|
showOnlyPoints?: boolean;
|
|
12
11
|
showNumbers?: boolean;
|
|
13
12
|
}
|
|
14
|
-
declare const Polygon:
|
|
13
|
+
declare const Polygon: import('react').MemoExoticComponent<({ selected, onChange: onChangeFromProps, onClick: onClickFromProps, data, mode, color, showNumbers, showOnlyPoints }: IPolygonProps) => import("react/jsx-runtime").JSX.Element>;
|
|
15
14
|
export default Polygon;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { CoordinatePoint, GeoType } from '../../types';
|
|
3
2
|
|
|
4
3
|
interface IPolyline {
|
|
@@ -9,5 +8,5 @@ interface IPolyline {
|
|
|
9
8
|
showNumbers?: boolean;
|
|
10
9
|
showOnlyPoints?: boolean;
|
|
11
10
|
}
|
|
12
|
-
declare const Polyline:
|
|
11
|
+
declare const Polyline: import('react').MemoExoticComponent<({ zoom: zoomFromProps, showDirection, onChange: onChangeFromProps, data, showNumbers, showOnlyPoints }: IPolyline) => import("react/jsx-runtime").JSX.Element>;
|
|
13
12
|
export default Polyline;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
2
|
import { CoordinatePoint, GeoMode } from '../../types';
|
|
3
3
|
|
|
4
4
|
interface ShapeDrawerProps {
|
|
@@ -12,5 +12,5 @@ interface ShapeDrawerProps {
|
|
|
12
12
|
showNumbers?: boolean;
|
|
13
13
|
showOnlyPoints?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare const ShapeDrawer:
|
|
15
|
+
export declare const ShapeDrawer: import('react').MemoExoticComponent<({ mapInstance, onComplete, onChange, resetKey, mode, zoom, setMode, showNumbers, showOnlyPoints }: ShapeDrawerProps) => import("react/jsx-runtime").JSX.Element>;
|
|
16
16
|
export {};
|
|
@@ -2,12 +2,14 @@ export declare enum EntityTypes {
|
|
|
2
2
|
Marker = "marker",
|
|
3
3
|
Infobox = "infobox",
|
|
4
4
|
Polygon = "polygon",
|
|
5
|
-
Polyline = "polyline"
|
|
5
|
+
Polyline = "polyline",
|
|
6
|
+
Circle = "circle"
|
|
6
7
|
}
|
|
7
8
|
export interface GeoType {
|
|
8
9
|
id: string;
|
|
9
10
|
name?: string;
|
|
10
11
|
type: EntityTypes;
|
|
12
|
+
color?: string;
|
|
11
13
|
coordinates: CoordinatePoint[];
|
|
12
14
|
zoom?: number;
|
|
13
15
|
isInFov?: boolean;
|
|
@@ -37,12 +39,12 @@ export interface GeoComponentProps {
|
|
|
37
39
|
mode?: GeoMode;
|
|
38
40
|
showDirection?: boolean;
|
|
39
41
|
resetKey?: number;
|
|
40
|
-
data?: GeoType[];
|
|
42
|
+
data?: GeoType[] | null;
|
|
41
43
|
onMouseMove?: (coordinatePoint: CoordinatePoint) => void;
|
|
42
44
|
showNumbers?: boolean;
|
|
43
45
|
allowDelete?: boolean;
|
|
44
46
|
allowAdd?: boolean;
|
|
45
|
-
selectedGeoId?: string;
|
|
47
|
+
selectedGeoId?: string | null;
|
|
46
48
|
zoom?: number;
|
|
47
49
|
fitZoom?: boolean;
|
|
48
50
|
mapCentering?: boolean;
|
|
@@ -2,7 +2,7 @@ import { CoordinatePoint } from './types';
|
|
|
2
2
|
|
|
3
3
|
export declare const getLatLngArray: (path: google.maps.LatLng[]) => CoordinatePoint[];
|
|
4
4
|
export declare const pointsAreClose: (p1: google.maps.LatLng, p2: google.maps.LatLng, threshold?: number) => boolean;
|
|
5
|
-
export declare const findPolygonCenter: (points
|
|
5
|
+
export declare const findPolygonCenter: (points?: CoordinatePoint[]) => CoordinatePoint | undefined;
|
|
6
6
|
export declare const findPolylineCenter: (points: CoordinatePoint[]) => CoordinatePoint;
|
|
7
7
|
export declare const fitBoundsToPoints: (mapInstance: google.maps.Map | null, points: CoordinatePoint[]) => void;
|
|
8
8
|
export declare const addRandomDecimal: (number: number) => number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC } from 'react';
|
|
2
2
|
import { SxProps } from '@mui/material';
|
|
3
3
|
import { CoordinatePoint, GeoMode, GeoType } from '../Geo/types';
|
|
4
4
|
|
|
@@ -27,5 +27,5 @@ export interface IMapPlayerProps {
|
|
|
27
27
|
allowAdd?: boolean;
|
|
28
28
|
mode?: GeoMode;
|
|
29
29
|
}
|
|
30
|
-
declare const MapPlayer:
|
|
30
|
+
declare const MapPlayer: FC<IMapPlayerProps>;
|
|
31
31
|
export default MapPlayer;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
interface IMediaModalProps {
|
|
4
4
|
open: boolean;
|
|
5
5
|
handleClose: () => void;
|
|
6
|
-
children:
|
|
6
|
+
children: ReactNode;
|
|
7
7
|
arrows?: boolean;
|
|
8
8
|
onPrevClick?: () => void;
|
|
9
9
|
onNextClick?: () => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MetromapPalleteData } from './MetroMapUtils';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
|
|
4
3
|
interface IMetroMap {
|
|
5
4
|
elements: IElement;
|
|
@@ -40,6 +39,6 @@ interface IElement {
|
|
|
40
39
|
children: IElement[];
|
|
41
40
|
className?: string;
|
|
42
41
|
}
|
|
43
|
-
declare function MetroMap({ elements, onSelect, selectedCluster, minor, major, isMultiSelect, onHover, svgAttributes, showFullNames, isMap, pollutions, timing, disabledSectors }: IMetroMap):
|
|
44
|
-
declare const _default:
|
|
42
|
+
declare function MetroMap({ elements, onSelect, selectedCluster, minor, major, isMultiSelect, onHover, svgAttributes, showFullNames, isMap, pollutions, timing, disabledSectors }: IMetroMap): import("react/jsx-runtime").JSX.Element | null;
|
|
43
|
+
declare const _default: import('react').MemoExoticComponent<typeof MetroMap>;
|
|
45
44
|
export default _default;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
1
|
interface INotificationBar {
|
|
4
2
|
text: string;
|
|
5
3
|
isShown?: boolean;
|
|
6
4
|
}
|
|
7
|
-
declare const NotificationBar: ({ text, isShown }: INotificationBar) => false |
|
|
5
|
+
declare const NotificationBar: ({ text, isShown }: INotificationBar) => false | import("react/jsx-runtime").JSX.Element | undefined;
|
|
8
6
|
export default NotificationBar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
interface IPlayerPanel {
|
|
4
4
|
disabled?: boolean;
|
|
@@ -20,5 +20,5 @@ interface IPlayerPanel {
|
|
|
20
20
|
stepForAutoPlay: number;
|
|
21
21
|
maxSliderValue?: number;
|
|
22
22
|
}
|
|
23
|
-
declare const PlayerPanel: ({ disabled, startTime, currentTime, endTime, delay,
|
|
23
|
+
declare const PlayerPanel: ({ disabled, startTime, currentTime, endTime, delay, isPlayingBackward, isPlayingForward, currentIndex, onSliderChange, onSliderChangeCommitted, onValueLabelFormat, onStep, onPlayingBackwardClick, onPlayingForwardClick, onSetStepForAutoPlay, stepForAutoPlay, maxSliderValue, }: IPlayerPanel) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
export default PlayerPanel;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
1
|
interface ISearchInput {
|
|
4
2
|
onChange: (value: string) => void;
|
|
5
3
|
disabled?: boolean;
|
|
6
4
|
options: Array<string>;
|
|
7
5
|
}
|
|
8
|
-
declare const SearchInput: ({ onChange, disabled, options, ...props }: ISearchInput) =>
|
|
6
|
+
declare const SearchInput: ({ onChange, disabled, options, ...props }: ISearchInput) => import("react/jsx-runtime").JSX.Element;
|
|
9
7
|
export default SearchInput;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IHeaderProps } from './types';
|
|
3
2
|
|
|
4
|
-
export declare const Header: ({ header, point, rect, styles }: IHeaderProps) =>
|
|
3
|
+
export declare const Header: ({ header, point, rect, styles }: IHeaderProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { IMenuProps } from './types';
|
|
3
2
|
|
|
4
|
-
export declare const Menu: ({ onClear, mode, onModeChange, drawCoordinates, setDrawCoordinates, selectedShape, allowAdd, allowEdit, allowDelete }: IMenuProps) =>
|
|
3
|
+
export declare const Menu: ({ onClear, mode, onModeChange, drawCoordinates, setDrawCoordinates, selectedShape, allowAdd, allowEdit, allowDelete }: IMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { Point } from '../types';
|
|
3
2
|
|
|
4
3
|
export declare const MousePoint: ({ coordinates, rect, isInFov }: {
|
|
5
4
|
coordinates: Point;
|
|
6
5
|
rect: DOMRect | null;
|
|
7
6
|
isInFov?: boolean;
|
|
8
|
-
}) =>
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { Point } from '../types';
|
|
3
2
|
|
|
4
3
|
export declare const NumericMarker: ({ point, number, rect }: {
|
|
5
4
|
point: Point;
|
|
6
5
|
number: number;
|
|
7
6
|
rect: DOMRect;
|
|
8
|
-
}) =>
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IShapesProps } from './types';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
2
|
|
|
4
|
-
declare const Shapes: ({ children, mode: modeFromProps, onModeChange: _onModeChange, shapes: shapesFromProps, selected, onShapeChange, onShapeSelect, onMouseMove, menu, showNumbers, showId, showOnlyPoints, showPoints, showDirection, selectedShapeZIndex, styles, }: IShapesProps) =>
|
|
3
|
+
declare const Shapes: ({ children, mode: modeFromProps, onModeChange: _onModeChange, shapes: shapesFromProps, selected, onShapeChange, onShapeSelect, onMouseMove, menu, showNumbers, showId, showOnlyPoints, showPoints, showDirection, selectedShapeZIndex, styles, }: IShapesProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export default Shapes;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { Shape } from '../types';
|
|
3
2
|
|
|
4
3
|
interface TextProps {
|
|
5
4
|
shape: Shape;
|
|
6
5
|
rect: DOMRect | null;
|
|
7
6
|
}
|
|
8
|
-
export declare const Text: ({ shape, rect }: TextProps) =>
|
|
7
|
+
export declare const Text: ({ shape, rect }: TextProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
9
8
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { default as icons } from './icons';
|
|
3
2
|
|
|
4
3
|
interface ISvg {
|
|
@@ -8,5 +7,5 @@ interface ISvg {
|
|
|
8
7
|
height?: number;
|
|
9
8
|
fillOpacity?: string;
|
|
10
9
|
}
|
|
11
|
-
declare function Svg({ fill, icon, width, height, fillOpacity }: ISvg):
|
|
10
|
+
declare function Svg({ fill, icon, width, height, fillOpacity }: ISvg): import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
export default Svg;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
2
|
import { SxProps } from '@mui/material';
|
|
3
3
|
|
|
4
4
|
interface IToggle {
|
|
5
5
|
checked: boolean;
|
|
6
|
-
onChange: (event:
|
|
6
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
7
7
|
leftLabel?: string;
|
|
8
8
|
rightLabel?: string;
|
|
9
9
|
sx?: SxProps;
|
|
@@ -11,5 +11,5 @@ interface IToggle {
|
|
|
11
11
|
rightLabelDisabled?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const Toggle:
|
|
14
|
+
declare const Toggle: import('react').ForwardRefExoticComponent<IToggle & import('react').RefAttributes<HTMLInputElement>>;
|
|
15
15
|
export default Toggle;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SxProps } from '@mui/material';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
2
3
|
|
|
3
4
|
export interface IActionButton {
|
|
4
|
-
children:
|
|
5
|
+
children: ReactNode;
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
7
8
|
variant?: string;
|