@visio-io/design-system 1.8.0 → 1.8.2
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/index.cjs.js +76 -76
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8287 -8229
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/CameraCard/CameraCard.d.ts +7 -3
- package/dist/types/components/CameraCard/CameraCard.stories.d.ts +3 -0
- package/dist/types/components/MapSpot/index.d.ts +2 -0
- package/dist/types/components/VideoPlayer/components/ControlMenu.d.ts +4 -1
- package/dist/types/components/VideoPlayer/components/Timestamp.d.ts +3 -0
- package/dist/types/components/VideoPlayer/icons/Seek.d.ts +6 -0
- package/dist/types/components/VideoPlayer/icons/SeekForward.d.ts +6 -0
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/styles/tokens/typography.d.ts +1 -1
- package/package.json +1 -1
- package/src/styles/tokens/typography.ts +1 -1
|
@@ -20,7 +20,11 @@ export interface CameraCardProps {
|
|
|
20
20
|
};
|
|
21
21
|
/** Callback ao clicar no botão de fechar (X). Usado apenas quando recordingButton está definido. */
|
|
22
22
|
onClose?: () => void;
|
|
23
|
-
/**
|
|
24
|
-
|
|
23
|
+
/** Callback ao clicar no card (ex.: navegar para a câmera) */
|
|
24
|
+
onClick?: () => void;
|
|
25
|
+
/** Exibe as ações (menu, botões) no estado desativado */
|
|
26
|
+
actionsDisabled?: boolean;
|
|
27
|
+
/** Câmera offline - exibe placeholder "Imagem não disponível" no lugar da thumbnail */
|
|
28
|
+
offline?: boolean;
|
|
25
29
|
}
|
|
26
|
-
export declare const CameraCard: ({ cameraName, streetName, pointName, neighborhoodAndCity, tags, imageUrl, algorithm, menuItems, onMenuClick, className, recordingButton, onClose,
|
|
30
|
+
export declare const CameraCard: ({ cameraName, streetName, pointName, neighborhoodAndCity, tags, imageUrl, algorithm, menuItems, onMenuClick, className, recordingButton, onClose, onClick, actionsDisabled, offline, }: CameraCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,3 +14,6 @@ export declare const WithRecordingButtonDark: Story;
|
|
|
14
14
|
export declare const HoverLight: Story;
|
|
15
15
|
export declare const HoverDark: Story;
|
|
16
16
|
export declare const SingleTag: Story;
|
|
17
|
+
export declare const Offline: Story;
|
|
18
|
+
export declare const OfflineDark: Story;
|
|
19
|
+
export declare const OfflineWithDisabledActions: Story;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
type ControlMenuOption<T> = {
|
|
2
3
|
value: T;
|
|
3
4
|
label: string;
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
};
|
|
6
7
|
interface ControlMenuProps<T> {
|
|
8
|
+
icon?: ReactNode;
|
|
7
9
|
label: string;
|
|
8
10
|
valueLabel: string;
|
|
9
11
|
selectedValue: T;
|
|
@@ -12,5 +14,6 @@ interface ControlMenuProps<T> {
|
|
|
12
14
|
disabled?: boolean;
|
|
13
15
|
ariaLabel: string;
|
|
14
16
|
}
|
|
15
|
-
|
|
17
|
+
declare const ControlMenuInner: <T>({ icon, label, valueLabel, selectedValue, options, onChange, disabled, ariaLabel, }: ControlMenuProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const ControlMenu: typeof ControlMenuInner;
|
|
16
19
|
export {};
|
|
@@ -16,7 +16,7 @@ export { GoogleMap, MapMarkers, MapContent } from "./GoogleMap";
|
|
|
16
16
|
export type { GoogleMapProps, MapSpotData, MapMarkersProps, MapSpotProps, CameraTypeInfo, RawCameraData, } from "./GoogleMap/types";
|
|
17
17
|
export { useGoogleMapContext } from "./GoogleMap/context/GoogleMapContext";
|
|
18
18
|
export type { GoogleMapContextValue } from "./GoogleMap/context/GoogleMapContext";
|
|
19
|
-
export { MapSpot, CAMERA_ALGORITHM_FACIAL, CAMERA_ALGORITHM_LPR, } from "./MapSpot";
|
|
19
|
+
export { MapSpot, CAMERA_ALGORITHM_FACIAL, CAMERA_ALGORITHM_LPR, FacialIcon, LPRIcon, } from "./MapSpot";
|
|
20
20
|
export { SearchBar } from "./SearchBar";
|
|
21
21
|
export type { SearchBarProps } from "./SearchBar/types";
|
|
22
22
|
export { NotFoundContent } from "./NotFoundContent";
|
package/package.json
CHANGED