@cyber-harbour/ui 1.0.27 → 1.0.29
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/README.md +0 -6
- package/dist/index.d.mts +151 -12
- package/dist/index.d.ts +151 -12
- package/dist/index.js +217 -107
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +217 -107
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/Box/Box.tsx +17 -0
- package/src/Core/Box/index.ts +1 -0
- package/src/Core/Button/Button.tsx +78 -10
- package/src/Core/Flex/FlexContainer.tsx +83 -0
- package/src/Core/Flex/FlexItem.tsx +65 -0
- package/src/Core/Flex/index.ts +4 -0
- package/src/Core/IconComponents/MaximizeIcon.tsx +28 -0
- package/src/Core/IconComponents/SearchIcon.tsx +14 -0
- package/src/Core/IconComponents/index.ts +2 -0
- package/src/Core/Line/Line.tsx +24 -0
- package/src/Core/Line/index.ts +1 -0
- package/src/Core/Typography/Typography.tsx +10 -7
- package/src/Core/Typography/index.ts +1 -2
- package/src/Core/index.ts +3 -0
- package/src/FullscreenCard/FullscreenCard.tsx +30 -0
- package/src/FullscreenCard/index.ts +1 -0
- package/src/Layouts/Container/Container.tsx +18 -0
- package/src/Layouts/Container/index.ts +1 -0
- package/src/Layouts/index.ts +1 -0
- package/src/Theme/ThemeProvider.tsx +14 -5
- package/src/Theme/componentFabric.ts +70 -0
- package/src/Theme/index.ts +1 -0
- package/src/Theme/theme.ts +30 -0
- package/src/Theme/types.ts +19 -0
- package/src/index.ts +1 -0
- package/tsconfig.paths.json +1 -7
- package/tsup.config.ts +0 -7
package/README.md
CHANGED
|
@@ -66,9 +66,3 @@ The project uses various optimizations for efficient building:
|
|
|
66
66
|
- Inline source maps for easier debugging
|
|
67
67
|
- No minification for faster builds
|
|
68
68
|
- No type generation for speed
|
|
69
|
-
|
|
70
|
-
### Code Organization
|
|
71
|
-
|
|
72
|
-
- Path aliases for cleaner imports (`@core/`, `@theme/`, etc.)
|
|
73
|
-
- Separate development and production configs
|
|
74
|
-
- CSS/SCSS support via injection
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { SVGProps,
|
|
3
|
+
import react__default, { SVGProps, CSSProperties as CSSProperties$1, ElementType, InputHTMLAttributes } from 'react';
|
|
4
4
|
import * as styled_components from 'styled-components';
|
|
5
|
-
import { CSSProperties, DefaultTheme } from 'styled-components';
|
|
6
|
-
import { PopoverPosition, PopoverAlign } from 'react-tiny-popover';
|
|
5
|
+
import { CSSProperties, DefaultTheme, WebTarget } from 'styled-components';
|
|
7
6
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
8
7
|
import { DefaultTheme as DefaultTheme$1 } from 'styled-components/dist/types';
|
|
8
|
+
import { PopoverPosition, PopoverAlign } from 'react-tiny-popover';
|
|
9
9
|
import { GraphData } from 'react-force-graph-2d';
|
|
10
10
|
|
|
11
11
|
declare const GlobalStyle: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
@@ -27,6 +27,10 @@ type ButtonElementStyle = {
|
|
|
27
27
|
text: string;
|
|
28
28
|
border: string;
|
|
29
29
|
boxShadow: string;
|
|
30
|
+
filledIcon?: {
|
|
31
|
+
background: string;
|
|
32
|
+
color: string;
|
|
33
|
+
};
|
|
30
34
|
};
|
|
31
35
|
type ButtonSizeStyle = {
|
|
32
36
|
fontSize: number | string;
|
|
@@ -81,6 +85,10 @@ type Theme = {
|
|
|
81
85
|
warning: string;
|
|
82
86
|
info: string;
|
|
83
87
|
};
|
|
88
|
+
line: {
|
|
89
|
+
size: string | number;
|
|
90
|
+
color: string;
|
|
91
|
+
};
|
|
84
92
|
typography: {
|
|
85
93
|
fontFamily: string;
|
|
86
94
|
lineHeight: number;
|
|
@@ -188,6 +196,16 @@ type Theme = {
|
|
|
188
196
|
sizes: Record<InputSize, InputSizeStyle>;
|
|
189
197
|
outlined: Record<InputState, InputElementStyle>;
|
|
190
198
|
};
|
|
199
|
+
box: {
|
|
200
|
+
padding: number | string;
|
|
201
|
+
background: string;
|
|
202
|
+
borderRadius: number | string;
|
|
203
|
+
border: {
|
|
204
|
+
width: number | string;
|
|
205
|
+
style: string;
|
|
206
|
+
color: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
191
209
|
};
|
|
192
210
|
type ThemeColors = Theme['colors'];
|
|
193
211
|
type ColorCategory = keyof ThemeColors;
|
|
@@ -250,7 +268,26 @@ declare const lightThemePx: Theme;
|
|
|
250
268
|
declare const lightTheme: DefaultTheme$1;
|
|
251
269
|
declare const darkTheme: DefaultTheme$1;
|
|
252
270
|
|
|
253
|
-
|
|
271
|
+
type MarginProps = {
|
|
272
|
+
m?: string | number;
|
|
273
|
+
mt?: string | number;
|
|
274
|
+
mr?: string | number;
|
|
275
|
+
mb?: string | number;
|
|
276
|
+
ml?: string | number;
|
|
277
|
+
mx?: string | number;
|
|
278
|
+
my?: string | number;
|
|
279
|
+
p?: string | number;
|
|
280
|
+
pt?: string | number;
|
|
281
|
+
pr?: string | number;
|
|
282
|
+
pb?: string | number;
|
|
283
|
+
pl?: string | number;
|
|
284
|
+
px?: string | number;
|
|
285
|
+
py?: string | number;
|
|
286
|
+
};
|
|
287
|
+
type FabricComponent<T = object> = T & MarginProps;
|
|
288
|
+
declare const createComponent: <T = object>(element: WebTarget) => styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<any, FabricComponent<T>>> & (string & (styled_components_dist_types.BaseObject | Omit<styled_components_dist_types.ExoticComponentWithDisplayName<any>, keyof react.Component<any, {}, any>> | Omit<react.ComponentClass<any, any>, keyof react.Component<any, {}, any>> | Omit<react.FunctionComponent<any>, keyof react.Component<any, {}, any>>));
|
|
289
|
+
|
|
290
|
+
type BaseButtonProps = FabricComponent<{
|
|
254
291
|
children?: any;
|
|
255
292
|
variant?: ButtonVariant;
|
|
256
293
|
color?: ButtonColor;
|
|
@@ -260,9 +297,10 @@ interface BaseButtonProps {
|
|
|
260
297
|
className?: string;
|
|
261
298
|
icon?: any;
|
|
262
299
|
iconPosition?: 'left' | 'right';
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
300
|
+
iconVariant?: 'filled' | 'empty';
|
|
301
|
+
}>;
|
|
302
|
+
type ButtonProps = (Omit<react__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> | Omit<react__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>) & BaseButtonProps;
|
|
303
|
+
declare const Button: ({ children, variant, color, size, disabled, fullWidth, className, icon, iconPosition, iconVariant, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
266
304
|
|
|
267
305
|
interface AlertIconProps extends SVGProps<SVGSVGElement> {
|
|
268
306
|
fill?: string;
|
|
@@ -414,6 +452,11 @@ interface SandBoxIconProps extends SVGProps<SVGSVGElement> {
|
|
|
414
452
|
}
|
|
415
453
|
declare const SandBoxIcon: ({ fill, ...props }: SandBoxIconProps) => react_jsx_runtime.JSX.Element;
|
|
416
454
|
|
|
455
|
+
interface SearchIconProps extends SVGProps<SVGSVGElement> {
|
|
456
|
+
stroke?: string;
|
|
457
|
+
}
|
|
458
|
+
declare const SearchIcon: ({ stroke, ...props }: SearchIconProps) => react_jsx_runtime.JSX.Element;
|
|
459
|
+
|
|
417
460
|
interface StatisticIconProps extends SVGProps<SVGSVGElement> {
|
|
418
461
|
fill?: string;
|
|
419
462
|
}
|
|
@@ -480,6 +523,11 @@ interface DataSetsIconProps extends SVGProps<SVGSVGElement> {
|
|
|
480
523
|
}
|
|
481
524
|
declare const CrossIcon: ({ fill, ...props }: DataSetsIconProps) => react_jsx_runtime.JSX.Element;
|
|
482
525
|
|
|
526
|
+
interface MaximizeIconProps extends SVGProps<SVGSVGElement> {
|
|
527
|
+
fill?: string;
|
|
528
|
+
}
|
|
529
|
+
declare const MaximizeIcon: ({ fill, ...props }: MaximizeIconProps) => react_jsx_runtime.JSX.Element;
|
|
530
|
+
|
|
483
531
|
interface SidebarProps {
|
|
484
532
|
defaultCollapsed?: boolean;
|
|
485
533
|
children: any;
|
|
@@ -519,16 +567,17 @@ interface SidebarSectionProps {
|
|
|
519
567
|
}
|
|
520
568
|
declare const SidebarSection: ({ grow, shrink, basis, items }: SidebarSectionProps) => react_jsx_runtime.JSX.Element;
|
|
521
569
|
|
|
522
|
-
|
|
570
|
+
type TypographyProps = FabricComponent<{
|
|
571
|
+
style?: CSSProperties$1;
|
|
523
572
|
variant?: TypographyVariant;
|
|
524
573
|
element?: ElementType;
|
|
525
574
|
children: any;
|
|
526
575
|
weight?: CSSProperties$1['fontWeight'];
|
|
527
|
-
|
|
576
|
+
fontStyle?: CSSProperties$1['fontStyle'];
|
|
528
577
|
color?: ColorVariant | string;
|
|
529
578
|
className?: string;
|
|
530
|
-
}
|
|
531
|
-
declare const Typography: ({ variant, element, children, weight,
|
|
579
|
+
}>;
|
|
580
|
+
declare const Typography: ({ variant, element, children, weight, fontStyle, color, className, style, }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
532
581
|
|
|
533
582
|
interface ListMenuProps {
|
|
534
583
|
children: any;
|
|
@@ -675,6 +724,83 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
|
|
|
675
724
|
};
|
|
676
725
|
declare const Input: ({ error, append, prepend, size, disabled, className, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
677
726
|
|
|
727
|
+
type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
728
|
+
type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
729
|
+
type FlexJustify = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
730
|
+
type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
731
|
+
type FlexGap = string | number;
|
|
732
|
+
interface FlexContainerProps {
|
|
733
|
+
children: any;
|
|
734
|
+
direction?: FlexDirection;
|
|
735
|
+
wrap?: FlexWrap;
|
|
736
|
+
justify?: FlexJustify;
|
|
737
|
+
align?: FlexAlign;
|
|
738
|
+
alignContent?: FlexAlign;
|
|
739
|
+
gap?: FlexGap;
|
|
740
|
+
rowGap?: FlexGap;
|
|
741
|
+
columnGap?: FlexGap;
|
|
742
|
+
className?: string;
|
|
743
|
+
style?: CSSProperties$1;
|
|
744
|
+
as?: any;
|
|
745
|
+
}
|
|
746
|
+
declare const FlexContainer: ({ children, direction, wrap, justify, align, alignContent, gap, rowGap, columnGap, className, style, as, }: FlexContainerProps) => react_jsx_runtime.JSX.Element;
|
|
747
|
+
|
|
748
|
+
type FlexItemGrow = number;
|
|
749
|
+
type FlexItemShrink = number;
|
|
750
|
+
type FlexItemBasis = string | number;
|
|
751
|
+
type FlexItemAlign = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
752
|
+
interface FlexItemProps {
|
|
753
|
+
children?: any;
|
|
754
|
+
grow?: FlexItemGrow;
|
|
755
|
+
shrink?: FlexItemShrink;
|
|
756
|
+
basis?: FlexItemBasis;
|
|
757
|
+
align?: FlexItemAlign;
|
|
758
|
+
order?: number;
|
|
759
|
+
className?: string;
|
|
760
|
+
style?: CSSProperties$1;
|
|
761
|
+
as?: any;
|
|
762
|
+
}
|
|
763
|
+
declare const FlexItem: ({ children, grow, shrink, basis, align, order, className, style, as, }: FlexItemProps) => react_jsx_runtime.JSX.Element;
|
|
764
|
+
|
|
765
|
+
declare const Box: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components.FastOmit<any, "children" | keyof {
|
|
766
|
+
m?: string | number;
|
|
767
|
+
mt?: string | number;
|
|
768
|
+
mr?: string | number;
|
|
769
|
+
mb?: string | number;
|
|
770
|
+
ml?: string | number;
|
|
771
|
+
mx?: string | number;
|
|
772
|
+
my?: string | number;
|
|
773
|
+
p?: string | number;
|
|
774
|
+
pt?: string | number;
|
|
775
|
+
pr?: string | number;
|
|
776
|
+
pb?: string | number;
|
|
777
|
+
pl?: string | number;
|
|
778
|
+
px?: string | number;
|
|
779
|
+
py?: string | number;
|
|
780
|
+
}> & {
|
|
781
|
+
children: any;
|
|
782
|
+
} & {
|
|
783
|
+
m?: string | number;
|
|
784
|
+
mt?: string | number;
|
|
785
|
+
mr?: string | number;
|
|
786
|
+
mb?: string | number;
|
|
787
|
+
ml?: string | number;
|
|
788
|
+
mx?: string | number;
|
|
789
|
+
my?: string | number;
|
|
790
|
+
p?: string | number;
|
|
791
|
+
pt?: string | number;
|
|
792
|
+
pr?: string | number;
|
|
793
|
+
pb?: string | number;
|
|
794
|
+
pl?: string | number;
|
|
795
|
+
px?: string | number;
|
|
796
|
+
py?: string | number;
|
|
797
|
+
}, never>> & string;
|
|
798
|
+
|
|
799
|
+
type LineProps = FabricComponent<{
|
|
800
|
+
direction?: 'horizontal' | 'vertical';
|
|
801
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'children'>>;
|
|
802
|
+
declare const Line: ({ direction, ...props }: LineProps) => react_jsx_runtime.JSX.Element;
|
|
803
|
+
|
|
678
804
|
interface PageLayoutProps {
|
|
679
805
|
header?: any;
|
|
680
806
|
sidebar?: any;
|
|
@@ -687,6 +813,12 @@ interface StyledContainerProps {
|
|
|
687
813
|
}
|
|
688
814
|
declare const StyledContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledContainerProps>> & string;
|
|
689
815
|
|
|
816
|
+
type ContainerProps = FabricComponent<{
|
|
817
|
+
children: any;
|
|
818
|
+
maxWidth?: string | number;
|
|
819
|
+
}>;
|
|
820
|
+
declare const Container: ({ ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
821
|
+
|
|
690
822
|
interface Graph2DProps {
|
|
691
823
|
graphData?: GraphData;
|
|
692
824
|
linkSource?: string;
|
|
@@ -708,4 +840,11 @@ interface Graph2DProps {
|
|
|
708
840
|
|
|
709
841
|
declare const Graph2D: ({ graphData, width, height, linkTarget, linkSource, config, onNodeClick, onLinkClick, }: Graph2DProps) => react_jsx_runtime.JSX.Element;
|
|
710
842
|
|
|
711
|
-
|
|
843
|
+
interface FullscreenCardProps {
|
|
844
|
+
children: any;
|
|
845
|
+
position: 'absolute' | 'fixed';
|
|
846
|
+
isActive: boolean;
|
|
847
|
+
}
|
|
848
|
+
declare const FullscreenCard: ({ isActive, position, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
|
|
849
|
+
|
|
850
|
+
export { type Action, AlertIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BugReportIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementStyle, type InputSize, type InputSizeStyle, type InputState, type InputVariant, Line, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MoonIcon, type NestedColorPaths, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, type Theme, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, createComponent, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import react__default, { SVGProps,
|
|
3
|
+
import react__default, { SVGProps, CSSProperties as CSSProperties$1, ElementType, InputHTMLAttributes } from 'react';
|
|
4
4
|
import * as styled_components from 'styled-components';
|
|
5
|
-
import { CSSProperties, DefaultTheme } from 'styled-components';
|
|
6
|
-
import { PopoverPosition, PopoverAlign } from 'react-tiny-popover';
|
|
5
|
+
import { CSSProperties, DefaultTheme, WebTarget } from 'styled-components';
|
|
7
6
|
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
8
7
|
import { DefaultTheme as DefaultTheme$1 } from 'styled-components/dist/types';
|
|
8
|
+
import { PopoverPosition, PopoverAlign } from 'react-tiny-popover';
|
|
9
9
|
import { GraphData } from 'react-force-graph-2d';
|
|
10
10
|
|
|
11
11
|
declare const GlobalStyle: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
@@ -27,6 +27,10 @@ type ButtonElementStyle = {
|
|
|
27
27
|
text: string;
|
|
28
28
|
border: string;
|
|
29
29
|
boxShadow: string;
|
|
30
|
+
filledIcon?: {
|
|
31
|
+
background: string;
|
|
32
|
+
color: string;
|
|
33
|
+
};
|
|
30
34
|
};
|
|
31
35
|
type ButtonSizeStyle = {
|
|
32
36
|
fontSize: number | string;
|
|
@@ -81,6 +85,10 @@ type Theme = {
|
|
|
81
85
|
warning: string;
|
|
82
86
|
info: string;
|
|
83
87
|
};
|
|
88
|
+
line: {
|
|
89
|
+
size: string | number;
|
|
90
|
+
color: string;
|
|
91
|
+
};
|
|
84
92
|
typography: {
|
|
85
93
|
fontFamily: string;
|
|
86
94
|
lineHeight: number;
|
|
@@ -188,6 +196,16 @@ type Theme = {
|
|
|
188
196
|
sizes: Record<InputSize, InputSizeStyle>;
|
|
189
197
|
outlined: Record<InputState, InputElementStyle>;
|
|
190
198
|
};
|
|
199
|
+
box: {
|
|
200
|
+
padding: number | string;
|
|
201
|
+
background: string;
|
|
202
|
+
borderRadius: number | string;
|
|
203
|
+
border: {
|
|
204
|
+
width: number | string;
|
|
205
|
+
style: string;
|
|
206
|
+
color: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
191
209
|
};
|
|
192
210
|
type ThemeColors = Theme['colors'];
|
|
193
211
|
type ColorCategory = keyof ThemeColors;
|
|
@@ -250,7 +268,26 @@ declare const lightThemePx: Theme;
|
|
|
250
268
|
declare const lightTheme: DefaultTheme$1;
|
|
251
269
|
declare const darkTheme: DefaultTheme$1;
|
|
252
270
|
|
|
253
|
-
|
|
271
|
+
type MarginProps = {
|
|
272
|
+
m?: string | number;
|
|
273
|
+
mt?: string | number;
|
|
274
|
+
mr?: string | number;
|
|
275
|
+
mb?: string | number;
|
|
276
|
+
ml?: string | number;
|
|
277
|
+
mx?: string | number;
|
|
278
|
+
my?: string | number;
|
|
279
|
+
p?: string | number;
|
|
280
|
+
pt?: string | number;
|
|
281
|
+
pr?: string | number;
|
|
282
|
+
pb?: string | number;
|
|
283
|
+
pl?: string | number;
|
|
284
|
+
px?: string | number;
|
|
285
|
+
py?: string | number;
|
|
286
|
+
};
|
|
287
|
+
type FabricComponent<T = object> = T & MarginProps;
|
|
288
|
+
declare const createComponent: <T = object>(element: WebTarget) => styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<any, FabricComponent<T>>> & (string & (styled_components_dist_types.BaseObject | Omit<styled_components_dist_types.ExoticComponentWithDisplayName<any>, keyof react.Component<any, {}, any>> | Omit<react.ComponentClass<any, any>, keyof react.Component<any, {}, any>> | Omit<react.FunctionComponent<any>, keyof react.Component<any, {}, any>>));
|
|
289
|
+
|
|
290
|
+
type BaseButtonProps = FabricComponent<{
|
|
254
291
|
children?: any;
|
|
255
292
|
variant?: ButtonVariant;
|
|
256
293
|
color?: ButtonColor;
|
|
@@ -260,9 +297,10 @@ interface BaseButtonProps {
|
|
|
260
297
|
className?: string;
|
|
261
298
|
icon?: any;
|
|
262
299
|
iconPosition?: 'left' | 'right';
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
300
|
+
iconVariant?: 'filled' | 'empty';
|
|
301
|
+
}>;
|
|
302
|
+
type ButtonProps = (Omit<react__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> | Omit<react__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>) & BaseButtonProps;
|
|
303
|
+
declare const Button: ({ children, variant, color, size, disabled, fullWidth, className, icon, iconPosition, iconVariant, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
266
304
|
|
|
267
305
|
interface AlertIconProps extends SVGProps<SVGSVGElement> {
|
|
268
306
|
fill?: string;
|
|
@@ -414,6 +452,11 @@ interface SandBoxIconProps extends SVGProps<SVGSVGElement> {
|
|
|
414
452
|
}
|
|
415
453
|
declare const SandBoxIcon: ({ fill, ...props }: SandBoxIconProps) => react_jsx_runtime.JSX.Element;
|
|
416
454
|
|
|
455
|
+
interface SearchIconProps extends SVGProps<SVGSVGElement> {
|
|
456
|
+
stroke?: string;
|
|
457
|
+
}
|
|
458
|
+
declare const SearchIcon: ({ stroke, ...props }: SearchIconProps) => react_jsx_runtime.JSX.Element;
|
|
459
|
+
|
|
417
460
|
interface StatisticIconProps extends SVGProps<SVGSVGElement> {
|
|
418
461
|
fill?: string;
|
|
419
462
|
}
|
|
@@ -480,6 +523,11 @@ interface DataSetsIconProps extends SVGProps<SVGSVGElement> {
|
|
|
480
523
|
}
|
|
481
524
|
declare const CrossIcon: ({ fill, ...props }: DataSetsIconProps) => react_jsx_runtime.JSX.Element;
|
|
482
525
|
|
|
526
|
+
interface MaximizeIconProps extends SVGProps<SVGSVGElement> {
|
|
527
|
+
fill?: string;
|
|
528
|
+
}
|
|
529
|
+
declare const MaximizeIcon: ({ fill, ...props }: MaximizeIconProps) => react_jsx_runtime.JSX.Element;
|
|
530
|
+
|
|
483
531
|
interface SidebarProps {
|
|
484
532
|
defaultCollapsed?: boolean;
|
|
485
533
|
children: any;
|
|
@@ -519,16 +567,17 @@ interface SidebarSectionProps {
|
|
|
519
567
|
}
|
|
520
568
|
declare const SidebarSection: ({ grow, shrink, basis, items }: SidebarSectionProps) => react_jsx_runtime.JSX.Element;
|
|
521
569
|
|
|
522
|
-
|
|
570
|
+
type TypographyProps = FabricComponent<{
|
|
571
|
+
style?: CSSProperties$1;
|
|
523
572
|
variant?: TypographyVariant;
|
|
524
573
|
element?: ElementType;
|
|
525
574
|
children: any;
|
|
526
575
|
weight?: CSSProperties$1['fontWeight'];
|
|
527
|
-
|
|
576
|
+
fontStyle?: CSSProperties$1['fontStyle'];
|
|
528
577
|
color?: ColorVariant | string;
|
|
529
578
|
className?: string;
|
|
530
|
-
}
|
|
531
|
-
declare const Typography: ({ variant, element, children, weight,
|
|
579
|
+
}>;
|
|
580
|
+
declare const Typography: ({ variant, element, children, weight, fontStyle, color, className, style, }: TypographyProps) => react_jsx_runtime.JSX.Element;
|
|
532
581
|
|
|
533
582
|
interface ListMenuProps {
|
|
534
583
|
children: any;
|
|
@@ -675,6 +724,83 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> & {
|
|
|
675
724
|
};
|
|
676
725
|
declare const Input: ({ error, append, prepend, size, disabled, className, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
677
726
|
|
|
727
|
+
type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
728
|
+
type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
729
|
+
type FlexJustify = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
730
|
+
type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
731
|
+
type FlexGap = string | number;
|
|
732
|
+
interface FlexContainerProps {
|
|
733
|
+
children: any;
|
|
734
|
+
direction?: FlexDirection;
|
|
735
|
+
wrap?: FlexWrap;
|
|
736
|
+
justify?: FlexJustify;
|
|
737
|
+
align?: FlexAlign;
|
|
738
|
+
alignContent?: FlexAlign;
|
|
739
|
+
gap?: FlexGap;
|
|
740
|
+
rowGap?: FlexGap;
|
|
741
|
+
columnGap?: FlexGap;
|
|
742
|
+
className?: string;
|
|
743
|
+
style?: CSSProperties$1;
|
|
744
|
+
as?: any;
|
|
745
|
+
}
|
|
746
|
+
declare const FlexContainer: ({ children, direction, wrap, justify, align, alignContent, gap, rowGap, columnGap, className, style, as, }: FlexContainerProps) => react_jsx_runtime.JSX.Element;
|
|
747
|
+
|
|
748
|
+
type FlexItemGrow = number;
|
|
749
|
+
type FlexItemShrink = number;
|
|
750
|
+
type FlexItemBasis = string | number;
|
|
751
|
+
type FlexItemAlign = 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';
|
|
752
|
+
interface FlexItemProps {
|
|
753
|
+
children?: any;
|
|
754
|
+
grow?: FlexItemGrow;
|
|
755
|
+
shrink?: FlexItemShrink;
|
|
756
|
+
basis?: FlexItemBasis;
|
|
757
|
+
align?: FlexItemAlign;
|
|
758
|
+
order?: number;
|
|
759
|
+
className?: string;
|
|
760
|
+
style?: CSSProperties$1;
|
|
761
|
+
as?: any;
|
|
762
|
+
}
|
|
763
|
+
declare const FlexItem: ({ children, grow, shrink, basis, align, order, className, style, as, }: FlexItemProps) => react_jsx_runtime.JSX.Element;
|
|
764
|
+
|
|
765
|
+
declare const Box: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<styled_components.FastOmit<any, "children" | keyof {
|
|
766
|
+
m?: string | number;
|
|
767
|
+
mt?: string | number;
|
|
768
|
+
mr?: string | number;
|
|
769
|
+
mb?: string | number;
|
|
770
|
+
ml?: string | number;
|
|
771
|
+
mx?: string | number;
|
|
772
|
+
my?: string | number;
|
|
773
|
+
p?: string | number;
|
|
774
|
+
pt?: string | number;
|
|
775
|
+
pr?: string | number;
|
|
776
|
+
pb?: string | number;
|
|
777
|
+
pl?: string | number;
|
|
778
|
+
px?: string | number;
|
|
779
|
+
py?: string | number;
|
|
780
|
+
}> & {
|
|
781
|
+
children: any;
|
|
782
|
+
} & {
|
|
783
|
+
m?: string | number;
|
|
784
|
+
mt?: string | number;
|
|
785
|
+
mr?: string | number;
|
|
786
|
+
mb?: string | number;
|
|
787
|
+
ml?: string | number;
|
|
788
|
+
mx?: string | number;
|
|
789
|
+
my?: string | number;
|
|
790
|
+
p?: string | number;
|
|
791
|
+
pt?: string | number;
|
|
792
|
+
pr?: string | number;
|
|
793
|
+
pb?: string | number;
|
|
794
|
+
pl?: string | number;
|
|
795
|
+
px?: string | number;
|
|
796
|
+
py?: string | number;
|
|
797
|
+
}, never>> & string;
|
|
798
|
+
|
|
799
|
+
type LineProps = FabricComponent<{
|
|
800
|
+
direction?: 'horizontal' | 'vertical';
|
|
801
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'children'>>;
|
|
802
|
+
declare const Line: ({ direction, ...props }: LineProps) => react_jsx_runtime.JSX.Element;
|
|
803
|
+
|
|
678
804
|
interface PageLayoutProps {
|
|
679
805
|
header?: any;
|
|
680
806
|
sidebar?: any;
|
|
@@ -687,6 +813,12 @@ interface StyledContainerProps {
|
|
|
687
813
|
}
|
|
688
814
|
declare const StyledContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledContainerProps>> & string;
|
|
689
815
|
|
|
816
|
+
type ContainerProps = FabricComponent<{
|
|
817
|
+
children: any;
|
|
818
|
+
maxWidth?: string | number;
|
|
819
|
+
}>;
|
|
820
|
+
declare const Container: ({ ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
|
|
821
|
+
|
|
690
822
|
interface Graph2DProps {
|
|
691
823
|
graphData?: GraphData;
|
|
692
824
|
linkSource?: string;
|
|
@@ -708,4 +840,11 @@ interface Graph2DProps {
|
|
|
708
840
|
|
|
709
841
|
declare const Graph2D: ({ graphData, width, height, linkTarget, linkSource, config, onNodeClick, onLinkClick, }: Graph2DProps) => react_jsx_runtime.JSX.Element;
|
|
710
842
|
|
|
711
|
-
|
|
843
|
+
interface FullscreenCardProps {
|
|
844
|
+
children: any;
|
|
845
|
+
position: 'absolute' | 'fixed';
|
|
846
|
+
isActive: boolean;
|
|
847
|
+
}
|
|
848
|
+
declare const FullscreenCard: ({ isActive, position, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
|
|
849
|
+
|
|
850
|
+
export { type Action, AlertIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BugReportIcon, Button, type ButtonColor, type ButtonElementStyle, type ButtonProps, type ButtonSize, type ButtonSizeStyle, type ButtonState, type ButtonVariant, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ClosedLockIcon, type ColorVariant, type ColumnTable, Container, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, EditUserIcon, EnableVisibleIcon, EnterArrowLeftIcon, type FabricComponent, FiltersIcon, FlexContainer, FlexItem, FullscreenCard, GlobalStyle, Graph2D, type Graph2DProps, Header, HeaderDelimeter, HeaderSection, HomepageIcon, InfoCircleFilledIcon, InfoCircleIcon, Input, type InputElementStyle, type InputSize, type InputSizeStyle, type InputState, type InputVariant, Line, ListMenu, ListMenuItem, type ListMenuItemAnchorProps, type ListMenuItemBase, type ListMenuItemButtonProps, type ListMenuItemProps, type ListMenuProps, ListMenuSection, type ListMenuSectionProps, MapRadarIcon, MaximizeIcon, MoonIcon, type NestedColorPaths, OpenLockIcon, OrganizationIcon, PageLayout, Pagination, type PaginationProps, PasswordFinderIcon, PhonebookIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, SunIcon, Table, type Theme, ThemeProvider, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, convertPaletteToRem, createComponent, darkTheme, getBreakpoint, getButtonSizeStyles, getButtonStyles, getTypographyStyles, lightTheme, lightThemePx, pxToRem, resolveThemeColor, useContextMenuControl };
|