@cyber-harbour/ui 1.0.59 → 1.0.61

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 (36) hide show
  1. package/dist/index.d.mts +513 -43
  2. package/dist/index.d.ts +513 -43
  3. package/dist/index.js +343 -310
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +276 -243
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/Core/Alert/Alert.tsx +11 -5
  9. package/src/Core/Box/Box.tsx +19 -17
  10. package/src/Core/Button/Button.tsx +59 -55
  11. package/src/Core/Checkbox/Checkbox.tsx +6 -7
  12. package/src/Core/ContentLoader/ContentLoader.tsx +13 -0
  13. package/src/Core/ContentLoader/index.ts +1 -0
  14. package/src/Core/Drawer/Drawer.tsx +29 -14
  15. package/src/Core/Flex/FlexContainer.tsx +47 -45
  16. package/src/Core/Flex/FlexItem.tsx +19 -26
  17. package/src/Core/IconComponents/PencilIcon.tsx +16 -0
  18. package/src/Core/IconComponents/PointIcon.tsx +16 -0
  19. package/src/Core/IconComponents/index.ts +2 -0
  20. package/src/Core/Label/Label.tsx +31 -30
  21. package/src/Core/Line/Line.tsx +5 -5
  22. package/src/Core/LinerProgress/LinerProgress.tsx +14 -20
  23. package/src/Core/Switch/Switch.tsx +4 -4
  24. package/src/Core/Tag/Tag.tsx +29 -36
  25. package/src/Core/Tooltip/Tooltip.tsx +93 -0
  26. package/src/Core/Tooltip/index.ts +1 -0
  27. package/src/Core/Typography/Typography.tsx +31 -33
  28. package/src/Core/index.ts +2 -0
  29. package/src/Layouts/Container/Container.tsx +13 -7
  30. package/src/Theme/Breakpoint.tsx +50 -0
  31. package/src/Theme/ThemeProvider.tsx +5 -2
  32. package/src/Theme/{componentFabric.ts → componentFabric.tsx} +90 -36
  33. package/src/Theme/index.ts +1 -0
  34. package/src/Theme/themes/dark.ts +11 -0
  35. package/src/Theme/themes/light.ts +11 -0
  36. package/src/Theme/types.ts +11 -0
package/dist/index.d.mts CHANGED
@@ -1,13 +1,14 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
3
- import react__default, { SVGProps, CSSProperties as CSSProperties$1, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
1
+ import * as React$1 from 'react';
2
+ import React__default, { SVGProps, CSSProperties as CSSProperties$1, ElementType, InputHTMLAttributes, TextareaHTMLAttributes } from 'react';
4
3
  import * as styled_components from 'styled-components';
5
4
  import { CSSProperties, DefaultTheme } from 'styled-components';
6
5
  import * as styled_components_dist_types from 'styled-components/dist/types';
7
6
  import { DefaultTheme as DefaultTheme$1 } from 'styled-components/dist/types';
7
+ import * as react_jsx_runtime from 'react/jsx-runtime';
8
8
  import { PopoverPosition, PopoverAlign } from 'react-tiny-popover';
9
+ import { IContentLoaderProps } from 'react-content-loader';
9
10
 
10
- declare const GlobalStyle: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
11
+ declare const GlobalStyle: React$1.NamedExoticComponent<styled_components.ExecutionProps & object>;
11
12
 
12
13
  interface ThemeProviderProps {
13
14
  children: any;
@@ -98,6 +99,8 @@ type Theme = {
98
99
  light: string;
99
100
  lighter: string;
100
101
  invert: string;
102
+ success: string;
103
+ error: string;
101
104
  };
102
105
  stroke: {
103
106
  main: string;
@@ -300,6 +303,15 @@ type Theme = {
300
303
  width: number;
301
304
  shadow: string;
302
305
  };
306
+ tooltip: {
307
+ fontSize: string | number;
308
+ padding: string | number;
309
+ maxWidth: string | number;
310
+ borderRadius: string | number;
311
+ shadow: string;
312
+ color: string;
313
+ background: string;
314
+ };
303
315
  };
304
316
  type ThemeColors = Theme['colors'];
305
317
  type ColorCategory = keyof ThemeColors;
@@ -401,18 +413,35 @@ type SpaceProps = {
401
413
  px?: string | number;
402
414
  py?: string | number;
403
415
  };
404
- type FabricComponent<T = object> = T & SpaceProps;
405
416
  type GeneratedFabricMarginProperties = 'margin' | 'margin-top' | 'margin-right' | 'margin-bottom' | 'margin-left' | 'margin-inline' | 'margin-block' | 'padding' | 'padding-top' | 'padding-right' | 'padding-bottom' | 'padding-left' | 'padding-inline' | 'padding-block';
406
- declare const generatePropertySpaceStyle: (theme: DefaultTheme, property: GeneratedFabricMarginProperties, value?: string | number, ignoredOptions?: GeneratedFabricMarginProperties[]) => string;
407
- type FabricComponentOptions = {
417
+ type MediaProps<T = object> = {
418
+ media?: {
419
+ [key in Breakpoint]?: Partial<T>;
420
+ };
421
+ };
422
+ type FabricStyledComponentOptions = {
408
423
  ignoreStyles?: GeneratedFabricMarginProperties[] | undefined;
409
424
  };
410
- 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>>));
425
+ type CreatedFabricComponent<T extends FabricComponent> = React__default.ComponentType<Omit<T, 'media'>> | React__default.ForwardRefExoticComponent<Omit<T, 'media'>>;
426
+ type FabricComponent<T = object> = T & SpaceProps & MediaProps<T>;
427
+ type StyledFabricComponent<T = object> = T & SpaceProps;
411
428
  declare const destructSpaceProps: <T extends FabricComponent>(props: T) => SpaceProps;
429
+ declare const generatePropertySpaceStyle: (theme: DefaultTheme, property: GeneratedFabricMarginProperties, value?: string | number, ignoredOptions?: GeneratedFabricMarginProperties[]) => string;
430
+ declare function getResponsiveProps<T = object>({ media, ...props }: T & MediaProps<T>, currentBreakpoint: Breakpoint, breakpointOrder: Breakpoint[]): Omit<T & MediaProps<T>, "media">;
431
+ declare const createComponent: <T extends FabricComponent, R = unknown>(Component: CreatedFabricComponent<T>) => React__default.ForwardRefExoticComponent<React__default.PropsWithoutRef<FabricComponent<T>> & React__default.RefAttributes<R>>;
432
+ declare const createStyledComponent: <T extends object = StyledFabricComponent>(component: React__default.ComponentType<T>, options?: FabricStyledComponentOptions) => styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<T | (React__default.PropsWithoutRef<T> & React__default.RefAttributes<React__default.Component<T, any, any>>), StyledFabricComponent<T>>> & (string & (Omit<React__default.ComponentClass<T, any>, keyof React__default.Component<any, {}, any>> | Omit<React__default.FunctionComponent<T>, keyof React__default.Component<any, {}, any>>));
412
433
 
413
434
  declare const useTheme: () => Theme;
414
435
 
415
- type BaseButtonProps = FabricComponent<{
436
+ declare const BreakpointProvider: ({ children }: {
437
+ children: any;
438
+ }) => react_jsx_runtime.JSX.Element;
439
+ declare const useBreakpoint: () => {
440
+ currentBreakpoint: Breakpoint;
441
+ breakpointsOrder: Breakpoint[];
442
+ };
443
+
444
+ type BaseButtonProps = {
416
445
  children?: any;
417
446
  variant?: ButtonVariant;
418
447
  color?: ButtonColor;
@@ -423,9 +452,9 @@ type BaseButtonProps = FabricComponent<{
423
452
  icon?: any;
424
453
  iconPosition?: 'left' | 'right';
425
454
  iconVariant?: 'filled' | 'empty';
426
- }>;
427
- type ButtonProps = (Omit<react__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'children'> | Omit<react__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>) & BaseButtonProps;
428
- declare const Button: ({ children, variant, color, size, disabled, fullWidth, className, icon, iconPosition, iconVariant, ...props }: ButtonProps) => react_jsx_runtime.JSX.Element;
455
+ };
456
+ type ButtonProps = (Omit<React__default.AnchorHTMLAttributes<HTMLAnchorElement>, 'children' | 'media'> | Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'media'>) & BaseButtonProps;
457
+ declare const Button: React__default.ForwardRefExoticComponent<FabricComponent<ButtonProps> & React__default.RefAttributes<unknown>>;
429
458
 
430
459
  interface AlertIconProps extends SVGProps<SVGSVGElement> {
431
460
  fill?: string;
@@ -723,6 +752,16 @@ interface PassportIconProps extends SVGProps<SVGSVGElement> {
723
752
  }
724
753
  declare const PassportIcon: ({ fill, ...props }: PassportIconProps) => react_jsx_runtime.JSX.Element;
725
754
 
755
+ interface PointIconProps extends SVGProps<SVGSVGElement> {
756
+ fill?: string;
757
+ }
758
+ declare const PointIcon: ({ fill, ...props }: PointIconProps) => react_jsx_runtime.JSX.Element;
759
+
760
+ interface PencilIconProps extends SVGProps<SVGSVGElement> {
761
+ fill?: string;
762
+ }
763
+ declare const PencilIcon: ({ fill, ...props }: PencilIconProps) => react_jsx_runtime.JSX.Element;
764
+
726
765
  interface SidebarProps {
727
766
  defaultCollapsed?: boolean;
728
767
  children: any;
@@ -733,7 +772,7 @@ interface SidebarContext {
733
772
  collapsed: boolean;
734
773
  setCollapsed: React.Dispatch<React.SetStateAction<boolean>>;
735
774
  }
736
- declare const SidebarContext: react.Context<SidebarContext>;
775
+ declare const SidebarContext: React$1.Context<SidebarContext>;
737
776
 
738
777
  interface SidebarItemBase {
739
778
  active?: boolean;
@@ -773,7 +812,98 @@ type TypographyProps = FabricComponent<{
773
812
  className?: string;
774
813
  ellipsis?: boolean;
775
814
  }> & Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>;
776
- declare const Typography: ({ variant, element, children, weight, fontStyle, color, className, style, ellipsis, ...props }: TypographyProps) => react_jsx_runtime.JSX.Element;
815
+ declare const Typography: React$1.ForwardRefExoticComponent<{
816
+ style?: CSSProperties$1;
817
+ variant?: TypographyVariant;
818
+ element?: ElementType;
819
+ children: any;
820
+ weight?: CSSProperties$1["fontWeight"];
821
+ fontStyle?: CSSProperties$1["fontStyle"];
822
+ color?: ColorVariant | string;
823
+ className?: string;
824
+ ellipsis?: boolean;
825
+ } & {
826
+ m?: string | number;
827
+ mt?: string | number;
828
+ mr?: string | number;
829
+ mb?: string | number;
830
+ ml?: string | number;
831
+ mx?: string | number;
832
+ my?: string | number;
833
+ p?: string | number;
834
+ pt?: string | number;
835
+ pr?: string | number;
836
+ pb?: string | number;
837
+ pl?: string | number;
838
+ px?: string | number;
839
+ py?: string | number;
840
+ } & {
841
+ media?: {
842
+ xs?: Partial<{
843
+ style?: CSSProperties$1;
844
+ variant?: TypographyVariant;
845
+ element?: ElementType;
846
+ children: any;
847
+ weight?: CSSProperties$1["fontWeight"];
848
+ fontStyle?: CSSProperties$1["fontStyle"];
849
+ color?: ColorVariant | string;
850
+ className?: string;
851
+ ellipsis?: boolean;
852
+ }> | undefined;
853
+ s?: Partial<{
854
+ style?: CSSProperties$1;
855
+ variant?: TypographyVariant;
856
+ element?: ElementType;
857
+ children: any;
858
+ weight?: CSSProperties$1["fontWeight"];
859
+ fontStyle?: CSSProperties$1["fontStyle"];
860
+ color?: ColorVariant | string;
861
+ className?: string;
862
+ ellipsis?: boolean;
863
+ }> | undefined;
864
+ m?: Partial<{
865
+ style?: CSSProperties$1;
866
+ variant?: TypographyVariant;
867
+ element?: ElementType;
868
+ children: any;
869
+ weight?: CSSProperties$1["fontWeight"];
870
+ fontStyle?: CSSProperties$1["fontStyle"];
871
+ color?: ColorVariant | string;
872
+ className?: string;
873
+ ellipsis?: boolean;
874
+ }> | undefined;
875
+ l?: Partial<{
876
+ style?: CSSProperties$1;
877
+ variant?: TypographyVariant;
878
+ element?: ElementType;
879
+ children: any;
880
+ weight?: CSSProperties$1["fontWeight"];
881
+ fontStyle?: CSSProperties$1["fontStyle"];
882
+ color?: ColorVariant | string;
883
+ className?: string;
884
+ ellipsis?: boolean;
885
+ }> | undefined;
886
+ xl?: Partial<{
887
+ style?: CSSProperties$1;
888
+ variant?: TypographyVariant;
889
+ element?: ElementType;
890
+ children: any;
891
+ weight?: CSSProperties$1["fontWeight"];
892
+ fontStyle?: CSSProperties$1["fontStyle"];
893
+ color?: ColorVariant | string;
894
+ className?: string;
895
+ ellipsis?: boolean;
896
+ }> | undefined;
897
+ } | undefined;
898
+ } & Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
899
+ media?: {
900
+ xs?: Partial<TypographyProps> | undefined;
901
+ s?: Partial<TypographyProps> | undefined;
902
+ m?: Partial<TypographyProps> | undefined;
903
+ l?: Partial<TypographyProps> | undefined;
904
+ xl?: Partial<TypographyProps> | undefined;
905
+ } | undefined;
906
+ } & React$1.RefAttributes<unknown>>;
777
907
 
778
908
  interface ListMenuProps {
779
909
  children: any;
@@ -872,7 +1002,7 @@ declare const ContextMenu: ({ isOpen, onClickOutside, onClick, anchor, size, dis
872
1002
 
873
1003
  interface StyledProps {
874
1004
  }
875
- declare const ContextMenuDelimiter: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProps>> & string;
1005
+ declare const ContextMenuDelimiter: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledProps>> & string;
876
1006
 
877
1007
  declare const useContextMenuControl: () => {
878
1008
  isOpen: boolean;
@@ -940,7 +1070,49 @@ type TextAreaElementProps = BaseInputProps & TextareaHTMLAttributes<HTMLTextArea
940
1070
  type InputProps = InputElementProps | TextAreaElementProps;
941
1071
  declare const Input: any;
942
1072
 
943
- declare const FlexContainer: any;
1073
+ type FlexDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
1074
+ type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
1075
+ type FlexJustify = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
1076
+ type FlexAlign = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
1077
+ type FlexGap = string | number;
1078
+ interface FlexContainerProps extends FabricComponent<Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>> {
1079
+ children: any;
1080
+ direction?: FlexDirection;
1081
+ wrap?: FlexWrap;
1082
+ justify?: FlexJustify;
1083
+ align?: FlexAlign;
1084
+ alignContent?: FlexAlign;
1085
+ gap?: FlexGap;
1086
+ rowGap?: FlexGap;
1087
+ columnGap?: FlexGap;
1088
+ className?: string;
1089
+ style?: CSSProperties$1;
1090
+ as?: any;
1091
+ }
1092
+ declare const FlexContainer: React$1.ForwardRefExoticComponent<FlexContainerProps & {
1093
+ m?: string | number;
1094
+ mt?: string | number;
1095
+ mr?: string | number;
1096
+ mb?: string | number;
1097
+ ml?: string | number;
1098
+ mx?: string | number;
1099
+ my?: string | number;
1100
+ p?: string | number;
1101
+ pt?: string | number;
1102
+ pr?: string | number;
1103
+ pb?: string | number;
1104
+ pl?: string | number;
1105
+ px?: string | number;
1106
+ py?: string | number;
1107
+ } & {
1108
+ media?: {
1109
+ xs?: Partial<FlexContainerProps> | undefined;
1110
+ s?: Partial<FlexContainerProps> | undefined;
1111
+ m?: Partial<FlexContainerProps> | undefined;
1112
+ l?: Partial<FlexContainerProps> | undefined;
1113
+ xl?: Partial<FlexContainerProps> | undefined;
1114
+ } | undefined;
1115
+ } & React$1.RefAttributes<HTMLDivElement>>;
944
1116
 
945
1117
  type FlexItemGrow = number;
946
1118
  type FlexItemShrink = number;
@@ -957,20 +1129,43 @@ interface FlexItemProps {
957
1129
  style?: CSSProperties$1;
958
1130
  as?: any;
959
1131
  }
960
- declare const FlexItem: ({ children, grow, shrink, basis, align, order, className, style, as, }: FlexItemProps) => react_jsx_runtime.JSX.Element;
961
-
962
- type BoxProps = FabricComponent<{
963
- children: any;
1132
+ declare const FlexItem: React$1.ForwardRefExoticComponent<FlexItemProps & {
1133
+ m?: string | number;
1134
+ mt?: string | number;
1135
+ mr?: string | number;
1136
+ mb?: string | number;
1137
+ ml?: string | number;
1138
+ mx?: string | number;
1139
+ my?: string | number;
1140
+ p?: string | number;
1141
+ pt?: string | number;
1142
+ pr?: string | number;
1143
+ pb?: string | number;
1144
+ pl?: string | number;
1145
+ px?: string | number;
1146
+ py?: string | number;
1147
+ } & {
1148
+ media?: {
1149
+ xs?: Partial<FlexItemProps> | undefined;
1150
+ s?: Partial<FlexItemProps> | undefined;
1151
+ m?: Partial<FlexItemProps> | undefined;
1152
+ l?: Partial<FlexItemProps> | undefined;
1153
+ xl?: Partial<FlexItemProps> | undefined;
1154
+ } | undefined;
1155
+ } & React$1.RefAttributes<unknown>>;
1156
+
1157
+ type BoxProps = {
1158
+ children?: any;
964
1159
  element?: 'div' | 'section';
965
1160
  hasBorder?: boolean;
966
1161
  color?: ColorVariant | string;
967
- } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
968
- declare const Box: ({ children, element, hasBorder, color, ...props }: BoxProps) => react_jsx_runtime.JSX.Element;
1162
+ } & React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
1163
+ declare const Box: React$1.ForwardRefExoticComponent<Omit<FabricComponent<BoxProps>, "ref"> & React$1.RefAttributes<unknown>>;
969
1164
 
970
1165
  type LineProps = FabricComponent<{
971
1166
  direction?: 'horizontal' | 'vertical';
972
1167
  } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'children'>>;
973
- declare const Line: ({ direction, ...props }: LineProps) => react_jsx_runtime.JSX.Element;
1168
+ declare const Line: React$1.ForwardRefExoticComponent<Omit<FabricComponent<LineProps>, "ref"> & React$1.RefAttributes<unknown>>;
974
1169
 
975
1170
  interface EmptyDataProps {
976
1171
  children?: any;
@@ -989,14 +1184,148 @@ type TagProps = FabricComponent<{
989
1184
  disabled?: boolean;
990
1185
  onClick?: () => void;
991
1186
  onDelete?: () => void;
992
- }> & Omit<react__default.HTMLAttributes<HTMLDivElement>, 'children'>;
993
- declare const Tag: ({ children, variant, color, className, disabled, icon, onClick, onDelete, ...props }: TagProps) => react_jsx_runtime.JSX.Element;
1187
+ }> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'>;
1188
+ declare const Tag: React__default.ForwardRefExoticComponent<{
1189
+ children?: any;
1190
+ variant?: TagVariant;
1191
+ color?: TagColor;
1192
+ className?: string;
1193
+ icon?: any;
1194
+ disabled?: boolean;
1195
+ onClick?: () => void;
1196
+ onDelete?: () => void;
1197
+ } & {
1198
+ m?: string | number;
1199
+ mt?: string | number;
1200
+ mr?: string | number;
1201
+ mb?: string | number;
1202
+ ml?: string | number;
1203
+ mx?: string | number;
1204
+ my?: string | number;
1205
+ p?: string | number;
1206
+ pt?: string | number;
1207
+ pr?: string | number;
1208
+ pb?: string | number;
1209
+ pl?: string | number;
1210
+ px?: string | number;
1211
+ py?: string | number;
1212
+ } & {
1213
+ media?: {
1214
+ xs?: Partial<{
1215
+ children?: any;
1216
+ variant?: TagVariant;
1217
+ color?: TagColor;
1218
+ className?: string;
1219
+ icon?: any;
1220
+ disabled?: boolean;
1221
+ onClick?: () => void;
1222
+ onDelete?: () => void;
1223
+ }> | undefined;
1224
+ s?: Partial<{
1225
+ children?: any;
1226
+ variant?: TagVariant;
1227
+ color?: TagColor;
1228
+ className?: string;
1229
+ icon?: any;
1230
+ disabled?: boolean;
1231
+ onClick?: () => void;
1232
+ onDelete?: () => void;
1233
+ }> | undefined;
1234
+ m?: Partial<{
1235
+ children?: any;
1236
+ variant?: TagVariant;
1237
+ color?: TagColor;
1238
+ className?: string;
1239
+ icon?: any;
1240
+ disabled?: boolean;
1241
+ onClick?: () => void;
1242
+ onDelete?: () => void;
1243
+ }> | undefined;
1244
+ l?: Partial<{
1245
+ children?: any;
1246
+ variant?: TagVariant;
1247
+ color?: TagColor;
1248
+ className?: string;
1249
+ icon?: any;
1250
+ disabled?: boolean;
1251
+ onClick?: () => void;
1252
+ onDelete?: () => void;
1253
+ }> | undefined;
1254
+ xl?: Partial<{
1255
+ children?: any;
1256
+ variant?: TagVariant;
1257
+ color?: TagColor;
1258
+ className?: string;
1259
+ icon?: any;
1260
+ disabled?: boolean;
1261
+ onClick?: () => void;
1262
+ onDelete?: () => void;
1263
+ }> | undefined;
1264
+ } | undefined;
1265
+ } & Omit<React__default.HTMLAttributes<HTMLDivElement>, "children"> & {
1266
+ media?: {
1267
+ xs?: Partial<TagProps> | undefined;
1268
+ s?: Partial<TagProps> | undefined;
1269
+ m?: Partial<TagProps> | undefined;
1270
+ l?: Partial<TagProps> | undefined;
1271
+ xl?: Partial<TagProps> | undefined;
1272
+ } | undefined;
1273
+ } & React__default.RefAttributes<unknown>>;
994
1274
 
995
1275
  type AlertProps = FabricComponent<{
996
1276
  title?: any;
997
1277
  note?: any;
998
- }> & Omit<react__default.HTMLAttributes<HTMLDivElement>, 'children'>;
999
- declare const Alert: ({ title, note, ...props }: AlertProps) => react_jsx_runtime.JSX.Element;
1278
+ }> & Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'>;
1279
+ declare const Alert: React__default.ForwardRefExoticComponent<{
1280
+ title?: any;
1281
+ note?: any;
1282
+ } & {
1283
+ m?: string | number;
1284
+ mt?: string | number;
1285
+ mr?: string | number;
1286
+ mb?: string | number;
1287
+ ml?: string | number;
1288
+ mx?: string | number;
1289
+ my?: string | number;
1290
+ p?: string | number;
1291
+ pt?: string | number;
1292
+ pr?: string | number;
1293
+ pb?: string | number;
1294
+ pl?: string | number;
1295
+ px?: string | number;
1296
+ py?: string | number;
1297
+ } & {
1298
+ media?: {
1299
+ xs?: Partial<{
1300
+ title?: any;
1301
+ note?: any;
1302
+ }> | undefined;
1303
+ s?: Partial<{
1304
+ title?: any;
1305
+ note?: any;
1306
+ }> | undefined;
1307
+ m?: Partial<{
1308
+ title?: any;
1309
+ note?: any;
1310
+ }> | undefined;
1311
+ l?: Partial<{
1312
+ title?: any;
1313
+ note?: any;
1314
+ }> | undefined;
1315
+ xl?: Partial<{
1316
+ title?: any;
1317
+ note?: any;
1318
+ }> | undefined;
1319
+ } | undefined;
1320
+ } & Omit<React__default.HTMLAttributes<HTMLDivElement>, "children"> & {
1321
+ media?: {
1322
+ xs?: Partial<AlertProps> | undefined;
1323
+ s?: Partial<AlertProps> | undefined;
1324
+ m?: Partial<AlertProps> | undefined;
1325
+ l?: Partial<AlertProps> | undefined;
1326
+ xl?: Partial<AlertProps> | undefined;
1327
+ } | undefined;
1328
+ } & React__default.RefAttributes<unknown>>;
1000
1329
 
1001
1330
  type LabelProps = FabricComponent<{
1002
1331
  label?: any;
@@ -1005,32 +1334,88 @@ type LabelProps = FabricComponent<{
1005
1334
  size?: LabelSize;
1006
1335
  children: any;
1007
1336
  fullWidth?: boolean;
1008
- }> & Omit<react__default.LabelHTMLAttributes<HTMLLabelElement>, 'children'> & (LabelDirection | LabelDirectionRaw);
1337
+ }> & Omit<React__default.LabelHTMLAttributes<HTMLLabelElement>, 'children'> & (LabelDirection | LabelDirectionRaw);
1009
1338
  type LabelDirectionRaw = {
1010
1339
  direction?: 'row' | 'row-reverse';
1011
1340
  childrenWidth?: number | string;
1012
1341
  };
1013
1342
  type LabelDirection = {
1014
- direction?: Omit<react__default.CSSProperties['flexDirection'], 'row' | 'row-reverse'>;
1343
+ direction?: Omit<React__default.CSSProperties['flexDirection'], 'row' | 'row-reverse'>;
1015
1344
  };
1016
- declare const Label: ({ label, helpText, children, direction, size, errorText, fullWidth, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
1345
+ declare const Label: React__default.ForwardRefExoticComponent<FabricComponent<LabelProps> & React__default.RefAttributes<unknown>>;
1017
1346
 
1018
- type CheckboxProps = FabricComponent<{
1347
+ type CheckboxProps = {
1348
+ label?: any;
1349
+ } & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'type'>;
1350
+ declare const Checkbox: React__default.ForwardRefExoticComponent<{
1019
1351
  label?: any;
1020
- }> & Omit<react__default.InputHTMLAttributes<HTMLInputElement>, 'type'>;
1021
- declare const Checkbox: ({ label, className, disabled, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
1352
+ } & Omit<React__default.InputHTMLAttributes<HTMLInputElement>, "type"> & {
1353
+ m?: string | number;
1354
+ mt?: string | number;
1355
+ mr?: string | number;
1356
+ mb?: string | number;
1357
+ ml?: string | number;
1358
+ mx?: string | number;
1359
+ my?: string | number;
1360
+ p?: string | number;
1361
+ pt?: string | number;
1362
+ pr?: string | number;
1363
+ pb?: string | number;
1364
+ pl?: string | number;
1365
+ px?: string | number;
1366
+ py?: string | number;
1367
+ } & {
1368
+ media?: {
1369
+ xs?: Partial<CheckboxProps> | undefined;
1370
+ s?: Partial<CheckboxProps> | undefined;
1371
+ m?: Partial<CheckboxProps> | undefined;
1372
+ l?: Partial<CheckboxProps> | undefined;
1373
+ xl?: Partial<CheckboxProps> | undefined;
1374
+ } | undefined;
1375
+ } & React__default.RefAttributes<unknown>>;
1022
1376
 
1023
1377
  type Direction = 'horizontal' | 'vertical';
1024
- type LinerProgressProps = FabricComponent<{
1378
+ type LinerProgressProps = {
1025
1379
  height?: number;
1026
1380
  width?: string | number;
1027
1381
  direction?: Direction;
1028
1382
  value: number;
1029
- } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'children'>>;
1030
- declare const LinerProgress: ({ height, width, direction, value, ...props }: LinerProgressProps) => react_jsx_runtime.JSX.Element;
1383
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'children'>;
1384
+ declare const LinerProgress: React$1.ForwardRefExoticComponent<Omit<FabricComponent<LinerProgressProps>, "ref"> & React$1.RefAttributes<unknown>>;
1031
1385
 
1032
1386
  type SwitchProps = FabricComponent<Omit<InputHTMLAttributes<HTMLInputElement>, 'type'>>;
1033
- declare const Switch: ({ className, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
1387
+ declare const Switch: React$1.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type"> & {
1388
+ m?: string | number;
1389
+ mt?: string | number;
1390
+ mr?: string | number;
1391
+ mb?: string | number;
1392
+ ml?: string | number;
1393
+ mx?: string | number;
1394
+ my?: string | number;
1395
+ p?: string | number;
1396
+ pt?: string | number;
1397
+ pr?: string | number;
1398
+ pb?: string | number;
1399
+ pl?: string | number;
1400
+ px?: string | number;
1401
+ py?: string | number;
1402
+ } & {
1403
+ media?: {
1404
+ xs?: Partial<Omit<InputHTMLAttributes<HTMLInputElement>, "type">> | undefined;
1405
+ s?: Partial<Omit<InputHTMLAttributes<HTMLInputElement>, "type">> | undefined;
1406
+ m?: Partial<Omit<InputHTMLAttributes<HTMLInputElement>, "type">> | undefined;
1407
+ l?: Partial<Omit<InputHTMLAttributes<HTMLInputElement>, "type">> | undefined;
1408
+ xl?: Partial<Omit<InputHTMLAttributes<HTMLInputElement>, "type">> | undefined;
1409
+ } | undefined;
1410
+ } & {
1411
+ media?: {
1412
+ xs?: Partial<SwitchProps> | undefined;
1413
+ s?: Partial<SwitchProps> | undefined;
1414
+ m?: Partial<SwitchProps> | undefined;
1415
+ l?: Partial<SwitchProps> | undefined;
1416
+ xl?: Partial<SwitchProps> | undefined;
1417
+ } | undefined;
1418
+ } & React$1.RefAttributes<unknown>>;
1034
1419
 
1035
1420
  type DrawerProps = {
1036
1421
  isOpen: boolean;
@@ -1039,10 +1424,72 @@ type DrawerProps = {
1039
1424
  header?: number;
1040
1425
  width?: string | number;
1041
1426
  };
1042
- declare const Drawer: (props: DrawerProps) => react.ReactPortal | null;
1427
+ declare const Drawer: React$1.ForwardRefExoticComponent<DrawerProps & {
1428
+ m?: string | number;
1429
+ mt?: string | number;
1430
+ mr?: string | number;
1431
+ mb?: string | number;
1432
+ ml?: string | number;
1433
+ mx?: string | number;
1434
+ my?: string | number;
1435
+ p?: string | number;
1436
+ pt?: string | number;
1437
+ pr?: string | number;
1438
+ pb?: string | number;
1439
+ pl?: string | number;
1440
+ px?: string | number;
1441
+ py?: string | number;
1442
+ } & {
1443
+ media?: {
1444
+ xs?: Partial<DrawerProps> | undefined;
1445
+ s?: Partial<DrawerProps> | undefined;
1446
+ m?: Partial<DrawerProps> | undefined;
1447
+ l?: Partial<DrawerProps> | undefined;
1448
+ xl?: Partial<DrawerProps> | undefined;
1449
+ } | undefined;
1450
+ } & React$1.RefAttributes<unknown>>;
1043
1451
  declare const DrawerHeader: any;
1044
1452
  declare const DrawerBody: any;
1045
1453
 
1454
+ interface TooltipProps {
1455
+ className?: string;
1456
+ children?: any;
1457
+ content?: any;
1458
+ positions?: PopoverPosition[] | PopoverPosition;
1459
+ align?: PopoverAlign;
1460
+ anchorClassName?: string;
1461
+ offset?: number;
1462
+ }
1463
+ declare const Tooltip: React$1.ForwardRefExoticComponent<TooltipProps & {
1464
+ m?: string | number;
1465
+ mt?: string | number;
1466
+ mr?: string | number;
1467
+ mb?: string | number;
1468
+ ml?: string | number;
1469
+ mx?: string | number;
1470
+ my?: string | number;
1471
+ p?: string | number;
1472
+ pt?: string | number;
1473
+ pr?: string | number;
1474
+ pb?: string | number;
1475
+ pl?: string | number;
1476
+ px?: string | number;
1477
+ py?: string | number;
1478
+ } & {
1479
+ media?: {
1480
+ xs?: Partial<TooltipProps> | undefined;
1481
+ s?: Partial<TooltipProps> | undefined;
1482
+ m?: Partial<TooltipProps> | undefined;
1483
+ l?: Partial<TooltipProps> | undefined;
1484
+ xl?: Partial<TooltipProps> | undefined;
1485
+ } | undefined;
1486
+ } & React$1.RefAttributes<unknown>>;
1487
+
1488
+ interface ContentLoaderProps extends Omit<IContentLoaderProps, 'backgroundColor' | 'foregroundColor'> {
1489
+ children?: any;
1490
+ }
1491
+ declare const ContentLoader: (props: ContentLoaderProps) => react_jsx_runtime.JSX.Element;
1492
+
1046
1493
  interface PageLayoutProps {
1047
1494
  header?: any;
1048
1495
  sidebar?: any;
@@ -1054,13 +1501,36 @@ interface StyledContainerProps {
1054
1501
  $withHeader?: boolean;
1055
1502
  $withSidebar?: boolean;
1056
1503
  }
1057
- declare const StyledContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledContainerProps>> & string;
1504
+ declare const StyledContainer: styled_components_dist_types.IStyledComponentBase<"web", styled_components_dist_types.Substitute<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, StyledContainerProps>> & string;
1058
1505
 
1059
- type ContainerProps = FabricComponent<{
1506
+ type ContainerProps = {
1060
1507
  children: any;
1061
1508
  maxWidth?: string | number;
1062
- }>;
1063
- declare const Container: ({ maxWidth, ...props }: ContainerProps) => react_jsx_runtime.JSX.Element;
1509
+ };
1510
+ declare const Container: React$1.ForwardRefExoticComponent<ContainerProps & {
1511
+ m?: string | number;
1512
+ mt?: string | number;
1513
+ mr?: string | number;
1514
+ mb?: string | number;
1515
+ ml?: string | number;
1516
+ mx?: string | number;
1517
+ my?: string | number;
1518
+ p?: string | number;
1519
+ pt?: string | number;
1520
+ pr?: string | number;
1521
+ pb?: string | number;
1522
+ pl?: string | number;
1523
+ px?: string | number;
1524
+ py?: string | number;
1525
+ } & {
1526
+ media?: {
1527
+ xs?: Partial<ContainerProps> | undefined;
1528
+ s?: Partial<ContainerProps> | undefined;
1529
+ m?: Partial<ContainerProps> | undefined;
1530
+ l?: Partial<ContainerProps> | undefined;
1531
+ xl?: Partial<ContainerProps> | undefined;
1532
+ } | undefined;
1533
+ } & React$1.RefAttributes<unknown>>;
1064
1534
 
1065
1535
  declare const Graph2D: any;
1066
1536
 
@@ -1186,4 +1656,4 @@ interface FullscreenCardProps {
1186
1656
  }
1187
1657
  declare const FullscreenCard: ({ isActive, position, top, left, right, bottom, ...props }: FullscreenCardProps) => react_jsx_runtime.JSX.Element;
1188
1658
 
1189
- 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, DrawerBody, DrawerHeader, 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, PassportIcon, PasswordFinderIcon, PhonebookIcon, PlaneIcon, PlusIcon, PrintIcon, Profiler2Icon, ProfilerIcon, RelationIcon, RelationPointsIcon, 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 };
1659
+ export { type Action, Alert, AlertIcon, AndroidIcon, ApiIcon, ArrowCircleTopRightIcon, ArrowRightIcon, BallsMenu, Box, type Breakpoint, BreakpointProvider, 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, ContentLoader, type ContentLoaderProps, ContextMenu, ContextMenuDelimiter, CrossIcon, DataSetsIcon, DeepSearchIcon, DisabledVisibleIcon, DocsIcon, DownloadIcon, Drawer, DrawerBody, DrawerHeader, 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, PassportIcon, PasswordFinderIcon, PencilIcon, PhonebookIcon, PlaneIcon, PlusIcon, PointIcon, PrintIcon, Profiler2Icon, ProfilerIcon, RelationIcon, RelationPointsIcon, type RenderCellProps, type RenderHeaderCellProps, RowActionsMenu, SandBoxIcon, SearchIcon, Select, ShipIcon, Sidebar, SidebarContext, SidebarDelimeter, SidebarItem, type SidebarItemProps, type SidebarProps, SidebarSection, type SidebarSectionProps, StatisticIcon, StyledContainer, type StyledFabricComponent, SunIcon, Switch, type SwitchState, Table, Tag, type TagColor, type TagElementStyle, type TagVariant, type TextAreaElementProps, type Theme, type ThemeMode, ThemeProvider, Tooltip, Typography, type TypographyVariant, UnfoldIcon, UpRightArrowCircleIcon, UsersIcon, VectorIcon, WayIcon, convertPaletteToRem, createComponent, createStyledComponent, darkTheme, darkThemePx, destructSpaceProps, generatePropertySpaceStyle, getBreakpoint, getButtonSizeStyles, getButtonStyles, getInputStyles, getResponsiveProps, getTypographyStyles, hexToRgba, lightTheme, lightThemePx, propToRem, pxToRem, remToPx, resolveThemeColor, useBreakpoint, useContextMenuControl, useTheme };