scorer-ui-kit 2.1.1 → 2.2.0
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/Form/atoms/IconButton.d.ts +1 -1
- package/dist/Global/atoms/Layout.d.ts +1 -0
- package/dist/Global/templates/GlobalUI.d.ts +1 -0
- package/dist/Layouts/atoms/FullWidthContentBlock.d.ts +3 -0
- package/dist/Layouts/index.d.ts +22 -0
- package/dist/Layouts/molecules/UtilityHeader.d.ts +4 -0
- package/dist/Layouts/organisms/ContentLayout.d.ts +8 -0
- package/dist/Misc/index.d.ts +3 -2
- package/dist/Misc/molecules/Pagination.d.ts +20 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.js +911 -553
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +903 -550
- package/dist/index.modern.js.map +1 -1
- package/dist/theme/ThemeVariables.d.ts +2 -0
- package/dist/theme/variables/Layout.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/{themes → theme}/common.d.ts +0 -0
- /package/dist/{themes/light/light.d.ts → theme/index.d.ts} +0 -0
- /package/dist/{themes/light → theme/legacy}/colors.d.ts +0 -0
- /package/dist/{themes/light → theme/legacy}/custom.d.ts +0 -0
- /package/dist/{themes/light → theme/legacy}/styles.d.ts +0 -0
- /package/dist/{themes/light → theme/legacy}/typography.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import { IconProps } from '../../Icons/Icon';
|
|
3
3
|
interface OwnProps {
|
|
4
|
-
hoverColor?:
|
|
4
|
+
hoverColor?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare type IconButtonData = OwnProps & IconProps & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
7
7
|
declare const IconButton: React.FC<IconButtonData>;
|
|
@@ -10,4 +10,5 @@ export declare const MainContainer: import("styled-components").StyledComponent<
|
|
|
10
10
|
export declare const ContentArea: import("styled-components").StyledComponent<"div", any, {
|
|
11
11
|
maxWidth?: string | undefined;
|
|
12
12
|
paddingOverride?: string | undefined;
|
|
13
|
+
legacyLayout?: boolean | undefined;
|
|
13
14
|
}, never>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import ContentLayout from './organisms/ContentLayout';
|
|
3
|
+
import FullWidthContentBlock from './atoms/FullWidthContentBlock';
|
|
4
|
+
import UtilityHeader from './molecules/UtilityHeader';
|
|
5
|
+
interface IBreadcrumb {
|
|
6
|
+
text: string;
|
|
7
|
+
href: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IUtilityHeader {
|
|
10
|
+
$iconInGutter?: boolean;
|
|
11
|
+
backLink?: string;
|
|
12
|
+
showBreadcrumbs?: boolean;
|
|
13
|
+
breadcrumbs?: IBreadcrumb[];
|
|
14
|
+
showShareLink?: boolean;
|
|
15
|
+
shareLink?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface IHeaderContent {
|
|
18
|
+
UtilityHeaderOptions?: IUtilityHeader;
|
|
19
|
+
PageHeaderArea?: React.ReactNode | React.FC;
|
|
20
|
+
TabsElementArea?: React.ReactNode | React.FC;
|
|
21
|
+
}
|
|
22
|
+
export { ContentLayout, FullWidthContentBlock, UtilityHeader };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IHeaderContent } from "..";
|
|
3
|
+
interface IContentLayout {
|
|
4
|
+
layout?: 'default' | 'fullscreen' | 'dashboard';
|
|
5
|
+
HeaderContent?: IHeaderContent;
|
|
6
|
+
}
|
|
7
|
+
declare const ContentLayout: React.FC<IContentLayout>;
|
|
8
|
+
export default ContentLayout;
|
package/dist/Misc/index.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ import BigIconsSummary from './atoms/BigIconsSummary';
|
|
|
5
5
|
import MediaBox from './atoms/MediaBox';
|
|
6
6
|
import DebouncedSearcher from './molecules/DebouncedSearcher';
|
|
7
7
|
import ActionsBar, { IActionsBar, IActionsButton } from './atoms/ActionsBar';
|
|
8
|
-
|
|
9
|
-
export
|
|
8
|
+
import Pagination, { IItemsOption, IPagination } from './molecules/Pagination';
|
|
9
|
+
export { Tag, TagList, TagListWrapper, MediaBox, BasicSearchInput, BigIconsSummary, DebouncedSearcher, ActionsBar, Pagination };
|
|
10
|
+
export type { ITagList, ITag, IActionsBar, IActionsButton, IItemsOption, IPagination };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface IItemsOption {
|
|
3
|
+
value: number;
|
|
4
|
+
textValue: string;
|
|
5
|
+
}
|
|
6
|
+
interface OwnProps {
|
|
7
|
+
pageText?: string;
|
|
8
|
+
totalPages: number;
|
|
9
|
+
activePage?: number;
|
|
10
|
+
buttonText?: string;
|
|
11
|
+
itemsText?: string;
|
|
12
|
+
selectWidth?: string;
|
|
13
|
+
selectDisabled?: boolean;
|
|
14
|
+
itemsOptions: IItemsOption[];
|
|
15
|
+
onPageChange: (page: number) => void;
|
|
16
|
+
onItemsChange: (items: number) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare type IPagination = OwnProps & HTMLAttributes<HTMLDivElement>;
|
|
19
|
+
declare const Pagination: React.FC<IPagination>;
|
|
20
|
+
export default Pagination;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import defaultTheme from './
|
|
1
|
+
import defaultTheme from './theme';
|
|
2
|
+
import ThemeVariables from './theme/ThemeVariables';
|
|
2
3
|
import { AlertBar, Notification, INotificationProps, AlertWrapper } from './Alerts';
|
|
3
4
|
import { Form, Button, ButtonWithIcon, ButtonWithLoading, IconButton, IconButtonData, ActionButtons, SmallInput, Input, Label, Switch, Checkbox, PasswordField, TextField, TextArea, TextAreaField, SliderInput, ISliderMark, DurationSlider, PercentageSlider, InputFileButton, DropArea, CropTool, AvatarUploader, SelectField, SelectWrapper, AreaUploadManager, RadioButton, SplitButton, ISplitButtonProps } from './Form';
|
|
4
5
|
import { DatePicker, DateInterval, isDateInterval, IFilterDatePicker, FilterDropdownContainer, FilterButton, FilterDropdown, SortDropdown, FilterLayout, FilterInputs, ISearchFilter, IFilterDropdownExt, FiltersResults, IFilterLabel, FilterBar, IFilterDropdownConfig, IFilterType, IFilterItem, IFilterValue, IFilterResult, isFilterItem } from './Filters';
|
|
@@ -9,16 +10,17 @@ import { IntroductionText, PageHeader, PageTitle, MultilineContent } from './Pag
|
|
|
9
10
|
import { TypeTable, TableRowThumbnail, TableHeaderTitle, EditCell } from './Tables';
|
|
10
11
|
import { Controls, PTZProvider, PTZReducer, usePTZ, PTZContext } from './PTZControl';
|
|
11
12
|
import { CameraPanels, CameraPanelWrapper, ICameraPanel, IMediaStream, IPanelMetaData } from './CameraPanels';
|
|
12
|
-
import { Tag, TagList, ITag, ITagList, TagListWrapper, MediaBox, BasicSearchInput, DebouncedSearcher, ActionsBar, IActionsButton } from './Misc';
|
|
13
|
+
import { Tag, TagList, ITag, ITagList, TagListWrapper, MediaBox, BasicSearchInput, DebouncedSearcher, ActionsBar, IActionsButton, Pagination, IItemsOption, IPagination } from './Misc';
|
|
13
14
|
import { ConfirmationModal } from './Modals';
|
|
14
15
|
import { useInterval, useTo, useTitle, useCopyToClipboard, useModal, useNotification, useClickOutside, useMediaModal, IModal, usePoll, useThemeToggle } from './hooks';
|
|
15
16
|
import { NotificationProvider, ModalContext, ModalProvider } from './context';
|
|
16
17
|
import { resetButtonStyles } from './common';
|
|
17
18
|
import Spinner from './Indicators/Spinner';
|
|
18
19
|
import WebRTCClient from './WebRTCClient';
|
|
20
|
+
import { ContentLayout, FullWidthContentBlock, UtilityHeader, IHeaderContent, IUtilityHeader } from './Layouts';
|
|
19
21
|
import { MainMenu, TopBar, Content, Layout, MainContainer, SidebarBox, SidebarLink, SidebarHeading, Logo, SidebarLinkHeading, BackLink, Sidebar, GlobalUI, INotificationItem, INotificationsHistory, ICustomDrawer } from './Global';
|
|
20
22
|
import { Tabs, TabContext, Tab, TabList, TabContent, TabWithIcon, TabsWithIconBar, ITabIcon } from './Tabs';
|
|
21
|
-
export { defaultTheme, AlertBar, Notification, AlertWrapper, LineUI, LineUIVideo, LineUIRTC, LineSetContext, LineReducer, Form, Button, ButtonWithIcon, ButtonWithLoading, IconButton, ActionButtons, Input, SmallInput, Label, Switch, Checkbox, PasswordField, TextField, TextArea, TextAreaField, SliderInput, DurationSlider, PercentageSlider, InputFileButton, DropArea, CropTool, AvatarUploader, SelectField, SelectWrapper, AreaUploadManager, RadioButton, SplitButton, ConfirmationModal, DatePicker, FilterDropdownContainer, FilterButton, FilterDropdown, SortDropdown, FilterLayout, FilterInputs, FiltersResults, FilterBar, isFilterItem, isDateInterval, Icon, IconSVGs, StatusIcon, IntroductionText, PageHeader, PageTitle, MultilineContent, Controls, PTZProvider, PTZContext, PTZReducer, usePTZ, TypeTable, TableRowThumbnail, TableHeaderTitle, EditCell, useInterval, useTo, useTitle, useCopyToClipboard, useClickOutside, usePoll, useMediaModal, useThemeToggle, resetButtonStyles, Spinner, WebRTCClient, MainMenu, TopBar, MainContainer, Layout, Content, SidebarBox, SidebarLink, SidebarHeading, Logo, SidebarLinkHeading, BackLink, Sidebar, GlobalUI, Tabs, TabContext, Tab, TabList, TabContent, TabWithIcon, TabsWithIconBar, CameraPanels, CameraPanelWrapper, Tag, TagList, TagListWrapper, MediaBox, BasicSearchInput, DebouncedSearcher, ActionsBar, NotificationProvider, useNotification, ModalContext, ModalProvider, useModal };
|
|
23
|
+
export { defaultTheme, ThemeVariables, AlertBar, Notification, AlertWrapper, LineUI, LineUIVideo, LineUIRTC, LineSetContext, LineReducer, Form, Button, ButtonWithIcon, ButtonWithLoading, IconButton, ActionButtons, Input, SmallInput, Label, Switch, Checkbox, PasswordField, TextField, TextArea, TextAreaField, SliderInput, DurationSlider, PercentageSlider, InputFileButton, DropArea, CropTool, AvatarUploader, SelectField, SelectWrapper, AreaUploadManager, RadioButton, SplitButton, ConfirmationModal, DatePicker, FilterDropdownContainer, FilterButton, FilterDropdown, SortDropdown, FilterLayout, FilterInputs, FiltersResults, FilterBar, isFilterItem, isDateInterval, Icon, IconSVGs, StatusIcon, IntroductionText, PageHeader, PageTitle, MultilineContent, Controls, PTZProvider, PTZContext, PTZReducer, usePTZ, TypeTable, TableRowThumbnail, TableHeaderTitle, EditCell, useInterval, useTo, useTitle, useCopyToClipboard, useClickOutside, usePoll, useMediaModal, useThemeToggle, resetButtonStyles, Spinner, WebRTCClient, MainMenu, TopBar, MainContainer, Layout, Content, SidebarBox, SidebarLink, SidebarHeading, Logo, SidebarLinkHeading, BackLink, Sidebar, GlobalUI, ContentLayout, FullWidthContentBlock, UtilityHeader, Tabs, TabContext, Tab, TabList, TabContent, TabWithIcon, TabsWithIconBar, CameraPanels, CameraPanelWrapper, Tag, TagList, TagListWrapper, MediaBox, BasicSearchInput, DebouncedSearcher, ActionsBar, Pagination, NotificationProvider, useNotification, ModalContext, ModalProvider, useModal };
|
|
22
24
|
/**
|
|
23
25
|
* Values based on colors.feedback from theme
|
|
24
26
|
*/
|
|
@@ -26,4 +28,4 @@ export declare type IFeedbackColor = 'error' | 'warning' | 'info' | 'success' |
|
|
|
26
28
|
export declare type ITimeUnit = 'seconds' | 'minutes' | 'hours';
|
|
27
29
|
export declare type IMediaType = 'img' | 'video';
|
|
28
30
|
export declare type IStatusDot = 'caution' | 'danger' | 'good' | 'neutral' | 'highlight';
|
|
29
|
-
export type { IModal, INotificationProps, IconButtonData, ITag, ITagList, ISliderMark, INotificationItem, INotificationsHistory, ICustomDrawer, ISearchFilter, IFilterDropdownExt, IFilterLabel, IFilterDropdownConfig, ITabIcon, IFilterType, IFilterItem, IFilterValue, IFilterResult, DateInterval, IFilterDatePicker, ICameraPanel, IMediaStream, IPanelMetaData, IActionsButton, ISplitButtonProps };
|
|
31
|
+
export type { IModal, INotificationProps, IconButtonData, ITag, ITagList, ISliderMark, INotificationItem, INotificationsHistory, ICustomDrawer, ISearchFilter, IFilterDropdownExt, IFilterLabel, IFilterDropdownConfig, ITabIcon, IFilterType, IFilterItem, IFilterValue, IFilterResult, DateInterval, IFilterDatePicker, ICameraPanel, IMediaStream, IPanelMetaData, IActionsButton, ISplitButtonProps, IItemsOption, IPagination, IHeaderContent, IUtilityHeader };
|