@cyber-harbour/ui 1.0.54 → 1.0.55
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.d.mts +28 -2
- package/dist/index.d.ts +28 -2
- package/dist/index.js +251 -219
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +206 -174
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/src/Core/Drawer/Drawer.tsx +84 -0
- package/src/Core/Drawer/index.ts +1 -0
- package/src/Core/IconComponents/FolderAlertIcon.tsx +32 -0
- package/src/Core/IconComponents/RelationIcon.tsx +28 -0
- package/src/Core/IconComponents/index.ts +2 -0
- package/src/Core/index.ts +1 -0
- package/src/Theme/index.ts +1 -0
- package/src/Theme/themes/dark.ts +167 -0
- package/src/Theme/themes/light.ts +167 -0
- package/src/Theme/types.ts +6 -1
- package/src/Theme/useTheme.tsx +7 -0
package/dist/index.d.mts
CHANGED
|
@@ -17,7 +17,7 @@ type ThemeMode = 'light' | 'LIGHT' | 'dark' | 'DARK';
|
|
|
17
17
|
declare const ThemeProvider: ({ children, mode }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
18
18
|
|
|
19
19
|
type ButtonVariant = 'fill' | 'outlined' | 'empty';
|
|
20
|
-
type ButtonColor = 'default' | 'primary' | 'secondary' | 'error';
|
|
20
|
+
type ButtonColor = 'default' | 'primary' | 'secondary' | 'error' | 'soft' | 'light';
|
|
21
21
|
type ButtonState = 'default' | 'hover' | 'active' | 'disabled';
|
|
22
22
|
type ButtonSize = 'small' | 'medium';
|
|
23
23
|
type InputVariant = 'outlined' | 'empty';
|
|
@@ -291,6 +291,11 @@ type Theme = {
|
|
|
291
291
|
background: string;
|
|
292
292
|
color: string;
|
|
293
293
|
}>;
|
|
294
|
+
drawer: {
|
|
295
|
+
padding: string | number;
|
|
296
|
+
width: number;
|
|
297
|
+
shadow: string;
|
|
298
|
+
};
|
|
294
299
|
};
|
|
295
300
|
type ThemeColors = Theme['colors'];
|
|
296
301
|
type ColorCategory = keyof ThemeColors;
|
|
@@ -401,6 +406,8 @@ type FabricComponentOptions = {
|
|
|
401
406
|
declare const createComponent: <T extends object = {}>(component: React.ComponentType<T>, options?: FabricComponentOptions) => styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<T | (react.PropsWithoutRef<T> & react.RefAttributes<react.Component<T, any, any>>), T & object & SpaceProps>> & (string & (Omit<react.ComponentClass<T, any>, keyof react.Component<any, {}, any>> | Omit<react.FunctionComponent<T>, keyof react.Component<any, {}, any>>));
|
|
402
407
|
declare const destructSpaceProps: <T extends FabricComponent>(props: T) => SpaceProps;
|
|
403
408
|
|
|
409
|
+
declare const useTheme: () => Theme;
|
|
410
|
+
|
|
404
411
|
type BaseButtonProps = FabricComponent<{
|
|
405
412
|
children?: any;
|
|
406
413
|
variant?: ButtonVariant;
|
|
@@ -692,6 +699,16 @@ interface MicrosoftIconProps extends SVGProps<SVGSVGElement> {
|
|
|
692
699
|
}
|
|
693
700
|
declare const MicrosoftIcon: ({ fill, ...props }: MicrosoftIconProps) => react_jsx_runtime.JSX.Element;
|
|
694
701
|
|
|
702
|
+
interface FolderAlertIconProps extends SVGProps<SVGSVGElement> {
|
|
703
|
+
fill?: string;
|
|
704
|
+
}
|
|
705
|
+
declare const FolderAlertIcon: ({ fill, ...props }: FolderAlertIconProps) => react_jsx_runtime.JSX.Element;
|
|
706
|
+
|
|
707
|
+
interface RelationIconProps extends SVGProps<SVGSVGElement> {
|
|
708
|
+
fill?: string;
|
|
709
|
+
}
|
|
710
|
+
declare const RelationIcon: ({ fill, ...props }: RelationIconProps) => react_jsx_runtime.JSX.Element;
|
|
711
|
+
|
|
695
712
|
interface SidebarProps {
|
|
696
713
|
defaultCollapsed?: boolean;
|
|
697
714
|
children: any;
|
|
@@ -990,6 +1007,15 @@ declare const LinerProgress: ({ height, width, direction, value, ...props }: Lin
|
|
|
990
1007
|
type SwitchProps = FabricComponent<Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>>;
|
|
991
1008
|
declare const Switch: ({ className, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
992
1009
|
|
|
1010
|
+
type DrawerProps = {
|
|
1011
|
+
isOpen: boolean;
|
|
1012
|
+
onClose: () => void;
|
|
1013
|
+
children: any;
|
|
1014
|
+
header?: number;
|
|
1015
|
+
width?: number;
|
|
1016
|
+
};
|
|
1017
|
+
declare const Drawer: (props: DrawerProps) => react.ReactPortal | null;
|
|
1018
|
+
|
|
993
1019
|
interface PageLayoutProps {
|
|
994
1020
|
header?: any;
|
|
995
1021
|
sidebar?: any;
|
|
@@ -1133,4 +1159,4 @@ interface FullscreenCardProps {
|
|
|
1133
1159
|
}
|
|
1134
1160
|
declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
|
|
1135
1161
|
|
|
1136
|
-
export { type Action, Alert, AlertIcon, AndroidIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BugReportIcon, BusIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CarIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseCircleIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FileIcon, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, type Graph2DRef, type GraphData, type GraphState, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementProps, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, IosIcon, Label, type LabelSize, type LabelSizeStyle, Line, LinerProgress, type LinkObject, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MicrosoftIcon, MoonIcon, type NestedColorPaths, type NodeButton, type NodeObject, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlaneIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, ShipIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Switch, type SwitchState, Table, Tag, type TagColor, type TagElementStyle, type TagVariant, type TextAreaElementProps, type Theme, type ThemeMode, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, WayIcon, convertPaletteToRem, createComponent, darkTheme, darkThemePx, destructSpaceProps, generatePropertySpaceStyle, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, hexToRgba, lightTheme, lightThemePx, propToRem, pxToRem, remToPx, resolveThemeColor, useContextMenuControl };
|
|
1162
|
+
export { type Action, Alert, AlertIcon, AndroidIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BugReportIcon, BusIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CarIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseCircleIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, Drawer, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FileIcon, FiltersIcon, FlexContainer, FlexItem, FolderAlertIcon, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, type Graph2DRef, type GraphData, type GraphState, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementProps, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, IosIcon, Label, type LabelSize, type LabelSizeStyle, Line, LinerProgress, type LinkObject, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MicrosoftIcon, MoonIcon, type NestedColorPaths, type NodeButton, type NodeObject, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlaneIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, RelationIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, ShipIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Switch, type SwitchState, Table, Tag, type TagColor, type TagElementStyle, type TagVariant, type TextAreaElementProps, type Theme, type ThemeMode, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, WayIcon, convertPaletteToRem, createComponent, darkTheme, darkThemePx, destructSpaceProps, generatePropertySpaceStyle, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, hexToRgba, lightTheme, lightThemePx, propToRem, pxToRem, remToPx, resolveThemeColor, useContextMenuControl, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ type ThemeMode = 'light' | 'LIGHT' | 'dark' | 'DARK';
|
|
|
17
17
|
declare const ThemeProvider: ({ children, mode }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
18
18
|
|
|
19
19
|
type ButtonVariant = 'fill' | 'outlined' | 'empty';
|
|
20
|
-
type ButtonColor = 'default' | 'primary' | 'secondary' | 'error';
|
|
20
|
+
type ButtonColor = 'default' | 'primary' | 'secondary' | 'error' | 'soft' | 'light';
|
|
21
21
|
type ButtonState = 'default' | 'hover' | 'active' | 'disabled';
|
|
22
22
|
type ButtonSize = 'small' | 'medium';
|
|
23
23
|
type InputVariant = 'outlined' | 'empty';
|
|
@@ -291,6 +291,11 @@ type Theme = {
|
|
|
291
291
|
background: string;
|
|
292
292
|
color: string;
|
|
293
293
|
}>;
|
|
294
|
+
drawer: {
|
|
295
|
+
padding: string | number;
|
|
296
|
+
width: number;
|
|
297
|
+
shadow: string;
|
|
298
|
+
};
|
|
294
299
|
};
|
|
295
300
|
type ThemeColors = Theme['colors'];
|
|
296
301
|
type ColorCategory = keyof ThemeColors;
|
|
@@ -401,6 +406,8 @@ type FabricComponentOptions = {
|
|
|
401
406
|
declare const createComponent: <T extends object = {}>(component: React.ComponentType<T>, options?: FabricComponentOptions) => styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<T | (react.PropsWithoutRef<T> & react.RefAttributes<react.Component<T, any, any>>), T & object & SpaceProps>> & (string & (Omit<react.ComponentClass<T, any>, keyof react.Component<any, {}, any>> | Omit<react.FunctionComponent<T>, keyof react.Component<any, {}, any>>));
|
|
402
407
|
declare const destructSpaceProps: <T extends FabricComponent>(props: T) => SpaceProps;
|
|
403
408
|
|
|
409
|
+
declare const useTheme: () => Theme;
|
|
410
|
+
|
|
404
411
|
type BaseButtonProps = FabricComponent<{
|
|
405
412
|
children?: any;
|
|
406
413
|
variant?: ButtonVariant;
|
|
@@ -692,6 +699,16 @@ interface MicrosoftIconProps extends SVGProps<SVGSVGElement> {
|
|
|
692
699
|
}
|
|
693
700
|
declare const MicrosoftIcon: ({ fill, ...props }: MicrosoftIconProps) => react_jsx_runtime.JSX.Element;
|
|
694
701
|
|
|
702
|
+
interface FolderAlertIconProps extends SVGProps<SVGSVGElement> {
|
|
703
|
+
fill?: string;
|
|
704
|
+
}
|
|
705
|
+
declare const FolderAlertIcon: ({ fill, ...props }: FolderAlertIconProps) => react_jsx_runtime.JSX.Element;
|
|
706
|
+
|
|
707
|
+
interface RelationIconProps extends SVGProps<SVGSVGElement> {
|
|
708
|
+
fill?: string;
|
|
709
|
+
}
|
|
710
|
+
declare const RelationIcon: ({ fill, ...props }: RelationIconProps) => react_jsx_runtime.JSX.Element;
|
|
711
|
+
|
|
695
712
|
interface SidebarProps {
|
|
696
713
|
defaultCollapsed?: boolean;
|
|
697
714
|
children: any;
|
|
@@ -990,6 +1007,15 @@ declare const LinerProgress: ({ height, width, direction, value, ...props }: Lin
|
|
|
990
1007
|
type SwitchProps = FabricComponent<Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>>;
|
|
991
1008
|
declare const Switch: ({ className, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
992
1009
|
|
|
1010
|
+
type DrawerProps = {
|
|
1011
|
+
isOpen: boolean;
|
|
1012
|
+
onClose: () => void;
|
|
1013
|
+
children: any;
|
|
1014
|
+
header?: number;
|
|
1015
|
+
width?: number;
|
|
1016
|
+
};
|
|
1017
|
+
declare const Drawer: (props: DrawerProps) => react.ReactPortal | null;
|
|
1018
|
+
|
|
993
1019
|
interface PageLayoutProps {
|
|
994
1020
|
header?: any;
|
|
995
1021
|
sidebar?: any;
|
|
@@ -1133,4 +1159,4 @@ interface FullscreenCardProps {
|
|
|
1133
1159
|
}
|
|
1134
1160
|
declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
|
|
1135
1161
|
|
|
1136
|
-
export { type Action, Alert, AlertIcon, AndroidIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BugReportIcon, BusIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CarIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseCircleIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FileIcon, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, type Graph2DRef, type GraphData, type GraphState, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementProps, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, IosIcon, Label, type LabelSize, type LabelSizeStyle, Line, LinerProgress, type LinkObject, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MicrosoftIcon, MoonIcon, type NestedColorPaths, type NodeButton, type NodeObject, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlaneIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, ShipIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Switch, type SwitchState, Table, Tag, type TagColor, type TagElementStyle, type TagVariant, type TextAreaElementProps, type Theme, type ThemeMode, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, WayIcon, convertPaletteToRem, createComponent, darkTheme, darkThemePx, destructSpaceProps, generatePropertySpaceStyle, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, hexToRgba, lightTheme, lightThemePx, propToRem, pxToRem, remToPx, resolveThemeColor, useContextMenuControl };
|
|
1162
|
+
export { type Action, Alert, AlertIcon, AndroidIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BugReportIcon, BusIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CarIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CloseCircleIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, Drawer, EditUserIcon, EmptyData, type EmptyDataProps, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FileIcon, FiltersIcon, FlexContainer, FlexItem, FolderAlertIcon, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, type Graph2DRef, type GraphData, type GraphState, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementProps, type InputElementStyle, type InputProps, type InputSize, type InputSizeStyle, type InputState, type InputVariant, IosIcon, Label, type LabelSize, type LabelSizeStyle, Line, LinerProgress, type LinkObject, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MicrosoftIcon, MoonIcon, type NestedColorPaths, type NodeButton, type NodeObject, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlaneIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, RelationIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, ShipIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Switch, type SwitchState, Table, Tag, type TagColor, type TagElementStyle, type TagVariant, type TextAreaElementProps, type Theme, type ThemeMode, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, WayIcon, convertPaletteToRem, createComponent, darkTheme, darkThemePx, destructSpaceProps, generatePropertySpaceStyle, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getTypographyStyles, hexToRgba, lightTheme, lightThemePx, propToRem, pxToRem, remToPx, resolveThemeColor, useContextMenuControl, useTheme };
|