@visio-io/design-system 1.8.13 → 1.8.15

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.
Files changed (29) hide show
  1. package/dist/index.cjs.js +78 -78
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.es.js +8145 -8611
  4. package/dist/index.es.js.map +1 -1
  5. package/dist/style.css +1 -1
  6. package/dist/types/components/GoogleMap/types.d.ts +1 -0
  7. package/dist/types/components/index.d.ts +0 -10
  8. package/package.json +1 -1
  9. package/dist/types/components/ContentCard/ContentCard.d.ts +0 -2
  10. package/dist/types/components/ContentCard/ContentCard.stories.d.ts +0 -12
  11. package/dist/types/components/ContentCard/index.d.ts +0 -2
  12. package/dist/types/components/ContentCard/types.d.ts +0 -13
  13. package/dist/types/components/ListPageLayout/ListPageActionBar.d.ts +0 -2
  14. package/dist/types/components/ListPageLayout/ListPageActionBar.stories.d.ts +0 -10
  15. package/dist/types/components/ListPageLayout/ListPageLayout.d.ts +0 -2
  16. package/dist/types/components/ListPageLayout/ListPageLayout.stories.d.ts +0 -9
  17. package/dist/types/components/ListPageLayout/index.d.ts +0 -3
  18. package/dist/types/components/ListPageLayout/types.d.ts +0 -23
  19. package/dist/types/components/PageHeader/PageHeader.d.ts +0 -2
  20. package/dist/types/components/PageHeader/PageHeader.stories.d.ts +0 -11
  21. package/dist/types/components/PageHeader/index.d.ts +0 -2
  22. package/dist/types/components/PageHeader/types.d.ts +0 -8
  23. package/dist/types/components/Pagination/Pagination.d.ts +0 -2
  24. package/dist/types/components/Pagination/Pagination.stories.d.ts +0 -11
  25. package/dist/types/components/Pagination/index.d.ts +0 -2
  26. package/dist/types/components/Pagination/types.d.ts +0 -9
  27. package/dist/types/components/SortDropdown/SortDropdown.d.ts +0 -2
  28. package/dist/types/components/SortDropdown/index.d.ts +0 -2
  29. package/dist/types/components/SortDropdown/types.d.ts +0 -11
@@ -33,6 +33,7 @@ export interface MapSpotData {
33
33
  lng: number;
34
34
  count: number;
35
35
  id: string | number;
36
+ name?: string;
36
37
  addressText?: string;
37
38
  cameras?: Array<RawCameraData> | null;
38
39
  }
@@ -47,13 +47,3 @@ export type { FormInputProps } from "./FormInput/types";
47
47
  export { CancelIcon, ErrorIcon, SearchIcon, HomeIcon, VideocamIcon, FacialIcon as FacialNewIcon, CarIcon, TodayIcon, PhotoIcon, PlateCloneIcon, SettingsIcon, InboxIcon, LprIcon, LogoutIcon, DarkModeIcon, LightModeIcon, NotificationsIcon, PersonIcon, } from "./Icons";
48
48
  export { ViewChip } from "./ViewChip";
49
49
  export type { ViewChipProps } from "./ViewChip/types";
50
- export { SortDropdown } from "./SortDropdown";
51
- export type { SortDropdownProps, SortOption } from "./SortDropdown/types";
52
- export { PageHeader } from "./PageHeader";
53
- export type { PageHeaderProps } from "./PageHeader/types";
54
- export { Pagination } from "./Pagination";
55
- export type { PaginationProps } from "./Pagination/types";
56
- export { ContentCard } from "./ContentCard";
57
- export type { ContentCardProps, ContentCardSection } from "./ContentCard/types";
58
- export { ListPageLayout, ListPageActionBar } from "./ListPageLayout";
59
- export type { ListPageLayoutProps, ListPageActionBarProps, FilterChipData } from "./ListPageLayout/types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visio-io/design-system",
3
- "version": "1.8.13",
3
+ "version": "1.8.15",
4
4
  "description": "Visio Design System",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -1,2 +0,0 @@
1
- import { ContentCardProps } from './types';
2
- export declare const ContentCard: import("react").ForwardRefExoticComponent<Omit<ContentCardProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,12 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { ContentCard } from './ContentCard';
3
- import '../../styles/index.scss';
4
- declare const meta: Meta<typeof ContentCard>;
5
- export default meta;
6
- type Story = StoryObj<typeof ContentCard>;
7
- export declare const ThreeSectionsWithDividers: Story;
8
- export declare const TwoSectionsWithDivider: Story;
9
- export declare const ThreeSectionsNoDividers: Story;
10
- export declare const CustomFlexDistribution: Story;
11
- export declare const FixedWidthSection: Story;
12
- export declare const CustomMinHeight: Story;
@@ -1,2 +0,0 @@
1
- export { ContentCard } from './ContentCard';
2
- export type { ContentCardProps, ContentCardSection } from './types';
@@ -1,13 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- import { ReactNode } from 'react';
3
- export interface ContentCardSection {
4
- content: ReactNode;
5
- flex?: number | string;
6
- dividerAfter?: boolean;
7
- }
8
- export interface ContentCardProps extends BoxProps {
9
- sections: ContentCardSection[];
10
- minHeight?: number | string;
11
- cardPadding?: number | string;
12
- sectionGap?: number | string;
13
- }
@@ -1,2 +0,0 @@
1
- import { ListPageActionBarProps } from './types';
2
- export declare const ListPageActionBar: import("react").ForwardRefExoticComponent<ListPageActionBarProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,10 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { ListPageActionBar } from './ListPageActionBar';
3
- import '../../styles/index.scss';
4
- declare const meta: Meta<typeof ListPageActionBar>;
5
- export default meta;
6
- type Story = StoryObj<typeof ListPageActionBar>;
7
- export declare const Default: Story;
8
- export declare const WithActions: Story;
9
- export declare const WithChips: Story;
10
- export declare const WithoutFilterButton: Story;
@@ -1,2 +0,0 @@
1
- import { ListPageLayoutProps } from './types';
2
- export declare const ListPageLayout: import("react").ForwardRefExoticComponent<ListPageLayoutProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,9 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { ListPageLayout } from './ListPageLayout';
3
- import '../../styles/index.scss';
4
- declare const meta: Meta<typeof ListPageLayout>;
5
- export default meta;
6
- type Story = StoryObj<typeof ListPageLayout>;
7
- export declare const Default: Story;
8
- export declare const WithFilterChips: Story;
9
- export declare const MinimalLayout: Story;
@@ -1,3 +0,0 @@
1
- export { ListPageLayout } from './ListPageLayout';
2
- export { ListPageActionBar } from './ListPageActionBar';
3
- export type { ListPageLayoutProps, ListPageActionBarProps, FilterChipData } from './types';
@@ -1,23 +0,0 @@
1
- import { ReactNode } from 'react';
2
- export interface FilterChipData {
3
- filterId: string;
4
- value: string;
5
- label: string;
6
- }
7
- export interface ListPageLayoutProps {
8
- actionBar: ReactNode;
9
- pageHeader?: ReactNode;
10
- pagination?: ReactNode;
11
- children?: ReactNode;
12
- }
13
- export interface ListPageActionBarProps {
14
- searchValue: string;
15
- onSearchChange: (value: string) => void;
16
- onSearch?: () => void;
17
- searchPlaceholder?: string;
18
- onFilterClick?: () => void;
19
- actions?: ReactNode;
20
- chips?: FilterChipData[];
21
- onRemoveChip?: (filterId: string, value: string) => void;
22
- onClearFilters?: () => void;
23
- }
@@ -1,2 +0,0 @@
1
- import { PageHeaderProps } from './types';
2
- export declare const PageHeader: import("react").ForwardRefExoticComponent<Omit<PageHeaderProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,11 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { PageHeader } from './PageHeader';
3
- import '../../styles/index.scss';
4
- declare const meta: Meta<typeof PageHeader>;
5
- export default meta;
6
- type Story = StoryObj<typeof PageHeader>;
7
- export declare const Default: Story;
8
- export declare const WithCount: Story;
9
- export declare const WithDescription: Story;
10
- export declare const WithActions: Story;
11
- export declare const TitleOnly: Story;
@@ -1,2 +0,0 @@
1
- export { PageHeader } from './PageHeader';
2
- export type { PageHeaderProps } from './types';
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { BoxProps } from '@mui/material';
3
- export interface PageHeaderProps extends Omit<BoxProps, 'title'> {
4
- title: string;
5
- count?: number;
6
- description?: string;
7
- actions?: ReactNode;
8
- }
@@ -1,2 +0,0 @@
1
- import { PaginationProps } from './types';
2
- export declare const Pagination: import("react").ForwardRefExoticComponent<Omit<PaginationProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,11 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
2
- import { Pagination } from './Pagination';
3
- import '../../styles/index.scss';
4
- declare const meta: Meta<typeof Pagination>;
5
- export default meta;
6
- type Story = StoryObj<typeof Pagination>;
7
- export declare const Default: Story;
8
- export declare const FewPages: Story;
9
- export declare const ManyPages: Story;
10
- export declare const WithoutPageSizeSelector: Story;
11
- export declare const CustomPageSizeOptions: Story;
@@ -1,2 +0,0 @@
1
- export { Pagination } from './Pagination';
2
- export type { PaginationProps } from './types';
@@ -1,9 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- export interface PaginationProps extends Omit<BoxProps, 'onChange'> {
3
- page: number;
4
- totalPages: number;
5
- pageSize: number;
6
- pageSizeOptions?: number[];
7
- onPageChange: (page: number) => void;
8
- onPageSizeChange?: (pageSize: number) => void;
9
- }
@@ -1,2 +0,0 @@
1
- import { SortDropdownProps } from './types';
2
- export declare const SortDropdown: import("react").ForwardRefExoticComponent<Omit<SortDropdownProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,2 +0,0 @@
1
- export { SortDropdown } from './SortDropdown';
2
- export type { SortDropdownProps, SortOption } from './types';
@@ -1,11 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- export interface SortOption {
3
- label: string;
4
- value: string;
5
- }
6
- export interface SortDropdownProps extends Omit<BoxProps, 'onChange'> {
7
- options: SortOption[];
8
- value: string;
9
- onChange: (value: string) => void;
10
- prefix?: string;
11
- }