@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.
@@ -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
- /** Destaca o card com borda mais grossa (câmera selecionada no mapa) */
24
- selected?: boolean;
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, selected, }: CameraCardProps) => import("react/jsx-runtime").JSX.Element;
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,3 +1,5 @@
1
1
  export { MapSpot } from './MapSpot';
2
2
  export { CAMERA_ALGORITHM_FACIAL, CAMERA_ALGORITHM_LPR } from './utils';
3
+ export { FacialIcon } from './FacialIcon';
4
+ export { LPRIcon } from './LPRIcon';
3
5
  export type { MapSpotProps } from '../GoogleMap/types';
@@ -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
- export declare const ControlMenu: <T>({ label, valueLabel, selectedValue, options, onChange, disabled, ariaLabel, }: ControlMenuProps<T>) => import("react/jsx-runtime").JSX.Element;
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 {};
@@ -0,0 +1,3 @@
1
+ export declare const Timestamp: import("react").MemoExoticComponent<({ show }: {
2
+ show: boolean;
3
+ }) => import("react/jsx-runtime").JSX.Element | null>;
@@ -0,0 +1,6 @@
1
+ type IconProps = {
2
+ width?: number;
3
+ height?: number;
4
+ } & React.SVGProps<SVGSVGElement>;
5
+ declare const SeekIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export { SeekIcon };
@@ -0,0 +1,6 @@
1
+ type IconProps = {
2
+ width?: number;
3
+ height?: number;
4
+ } & React.SVGProps<SVGSVGElement>;
5
+ declare const SeekForwardIcon: (props: IconProps) => import("react/jsx-runtime").JSX.Element;
6
+ export { SeekForwardIcon };
@@ -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";
@@ -1,5 +1,5 @@
1
1
  export declare const typographyTokens: {
2
- readonly fontFamily: "\"Inter\", \"Helvetica\", \"Arial\", sans-serif";
2
+ readonly fontFamily: "\"Suisse Intl\", \"Inter\", \"Helvetica\", \"Arial\", sans-serif";
3
3
  readonly fontSize: {
4
4
  readonly xs: 12;
5
5
  readonly sm: 14;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visio-io/design-system",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Visio Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -1,5 +1,5 @@
1
1
  export const typographyTokens = {
2
- fontFamily: '"Inter", "Helvetica", "Arial", sans-serif',
2
+ fontFamily: '"Suisse Intl", "Inter", "Helvetica", "Arial", sans-serif',
3
3
  fontSize: {
4
4
  xs: 12,
5
5
  sm: 14,