@visio-io/design-system 1.8.21 → 1.8.23

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.
@@ -12,6 +12,8 @@ export interface NearbyEvent {
12
12
  export interface EventLocationProps extends BoxProps {
13
13
  address?: string | null;
14
14
  mapContent?: ReactNode;
15
+ cameraCount?: number;
16
+ spotCount?: number;
15
17
  nearbyAfterEvents?: NearbyEvent[];
16
18
  nearbyBeforeEvents?: NearbyEvent[];
17
19
  sentinelAfterRef?: (node: HTMLElement | null) => void;
@@ -1,2 +1,2 @@
1
- import { EventVideoPreviewProps } from './types';
1
+ import { EventVideoPreviewProps } from "./types";
2
2
  export declare const EventVideoPreview: import("react").ForwardRefExoticComponent<Omit<EventVideoPreviewProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -6,4 +6,5 @@ export interface EventVideoPreviewProps extends BoxProps {
6
6
  onViewVideo?: () => void;
7
7
  icon?: ReactNode;
8
8
  cropUrl?: string | null;
9
+ cameraId?: string;
9
10
  }
@@ -0,0 +1,7 @@
1
+ import 'dayjs/locale/pt-br';
2
+ import { FieldValues } from 'react-hook-form';
3
+ import { FormDatePickerProps } from './types';
4
+ export declare const FormDatePicker: {
5
+ <TFieldValues extends FieldValues = FieldValues>({ control, name, label, helperText, required, fullWidth, disabled, className, format, minDate, maxDate, disableFuture, disablePast, }: FormDatePickerProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
6
+ displayName: string;
7
+ };
@@ -0,0 +1,14 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { FormDatePicker } from './FormDatePicker';
3
+ import '../../styles/index.scss';
4
+ declare const meta: Meta<typeof FormDatePicker>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof FormDatePicker>;
7
+ export declare const Default: Story;
8
+ export declare const Required: Story;
9
+ export declare const DisableFuture: Story;
10
+ export declare const WithPrefilledValue: Story;
11
+ export declare const Disabled: Story;
12
+ export declare const WithMinMaxDate: Story;
13
+ export declare const DateRange: Story;
14
+ export declare const AllVariations: Story;
@@ -0,0 +1,2 @@
1
+ export { FormDatePicker } from './FormDatePicker';
2
+ export type { FormDatePickerProps } from './types';
@@ -0,0 +1,63 @@
1
+ import { Control, FieldValues, Path } from 'react-hook-form';
2
+ import { Dayjs } from 'dayjs';
3
+ /**
4
+ * Props do componente FormDatePicker
5
+ *
6
+ * @template TFieldValues - Tipo do formulário (inferido do schema Zod)
7
+ */
8
+ export interface FormDatePickerProps<TFieldValues extends FieldValues> {
9
+ /**
10
+ * Instância do control do React Hook Form
11
+ */
12
+ control: Control<TFieldValues>;
13
+ /**
14
+ * Nome do campo no formulário (tipado com Path para autocomplete)
15
+ */
16
+ name: Path<TFieldValues>;
17
+ /**
18
+ * Label do campo
19
+ */
20
+ label: string;
21
+ /**
22
+ * Texto de ajuda exibido abaixo do input (não sobrescreve erros)
23
+ */
24
+ helperText?: string;
25
+ /**
26
+ * Marca o campo como obrigatório visualmente (asterisco no label)
27
+ */
28
+ required?: boolean;
29
+ /**
30
+ * Ocupar largura total do container
31
+ * @default true
32
+ */
33
+ fullWidth?: boolean;
34
+ /**
35
+ * Desabilita o campo
36
+ */
37
+ disabled?: boolean;
38
+ /**
39
+ * Classe CSS adicional
40
+ */
41
+ className?: string;
42
+ /**
43
+ * Formato de exibição da data
44
+ * @default "DD/MM/YYYY"
45
+ */
46
+ format?: string;
47
+ /**
48
+ * Data mínima selecionável
49
+ */
50
+ minDate?: Dayjs;
51
+ /**
52
+ * Data máxima selecionável
53
+ */
54
+ maxDate?: Dayjs;
55
+ /**
56
+ * Desabilita datas futuras (útil para data de nascimento)
57
+ */
58
+ disableFuture?: boolean;
59
+ /**
60
+ * Desabilita datas passadas
61
+ */
62
+ disablePast?: boolean;
63
+ }
@@ -1,5 +1,5 @@
1
1
  import { VideoPlayerProps } from "./types";
2
2
  export declare const VideoPlayer: {
3
- ({ stream, availableQualities, initialQuality, onQualityChange, autoPlay, playsInline, muted, poster, className, sx, liveThresholdSeconds, allowPlaybackRateForStream, playbackRates, zoomLevels, width, height, aspectRatio, showTimestamp, showTimeline, isRecording, recordingLabel, borderRadius, loading, unavailable, unavailableIcon, unavailableMessage, }: VideoPlayerProps): import("react/jsx-runtime").JSX.Element;
3
+ ({ stream, availableQualities, initialQuality, onQualityChange, autoPlay, playsInline, muted, poster, className, sx, liveThresholdSeconds, allowPlaybackRateForStream, playbackRates, zoomLevels, width, height, aspectRatio, showTimestamp, showTimeline, isRecording, recordingLabel, borderRadius, loading, unavailable, unavailableIcon, unavailableMessage, showSeekButtons, showPlaybackRate, }: VideoPlayerProps): import("react/jsx-runtime").JSX.Element;
4
4
  displayName: string;
5
5
  };
@@ -44,6 +44,8 @@ export { FormMultiSelect } from "./FormMultiSelect";
44
44
  export type { FormMultiSelectProps } from "./FormMultiSelect/types";
45
45
  export { FormInput } from "./FormInput";
46
46
  export type { FormInputProps } from "./FormInput/types";
47
+ export { FormDatePicker } from "./FormDatePicker";
48
+ export type { FormDatePickerProps } from "./FormDatePicker/types";
47
49
  export { FormSection } from "./FormSection";
48
50
  export type { FormSectionProps } from "./FormSection/types";
49
51
  export { PhotoUpload } from "./PhotoUpload";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visio-io/design-system",
3
- "version": "1.8.21",
3
+ "version": "1.8.23",
4
4
  "description": "Visio Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -24,6 +24,17 @@
24
24
  "**/*.scss",
25
25
  "**/*.css"
26
26
  ],
27
+ "scripts": {
28
+ "dev": "storybook dev -p 6006",
29
+ "start": "storybook dev -p 6066 --host 0.0.0.0 --no-open",
30
+ "build": "vite build && tsc -p tsconfig.build.json",
31
+ "build-storybook": "storybook build",
32
+ "storybook": "storybook dev -p 6006",
33
+ "prepare": "npm run build",
34
+ "type-check": "tsc --noEmit",
35
+ "release": "pnpm build && changeset publish",
36
+ "dev:yalc": "YALC=1 vite build --watch"
37
+ },
27
38
  "publishConfig": {
28
39
  "registry": "https://registry.npmjs.org/",
29
40
  "access": "public"
@@ -72,15 +83,5 @@
72
83
  "framer-motion": "^12.29.2",
73
84
  "hls.js": "^1.6.15",
74
85
  "supercluster": "^8.0.1"
75
- },
76
- "scripts": {
77
- "dev": "storybook dev -p 6006",
78
- "start": "storybook dev -p 6066 --host 0.0.0.0 --no-open",
79
- "build": "vite build && tsc -p tsconfig.build.json",
80
- "build-storybook": "storybook build",
81
- "storybook": "storybook dev -p 6006",
82
- "type-check": "tsc --noEmit",
83
- "release": "pnpm build && changeset publish",
84
- "dev:yalc": "YALC=1 vite build --watch"
85
86
  }
86
- }
87
+ }