@cyber-harbour/ui 1.0.63 → 1.0.65
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 +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +86 -84
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +125 -123
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Core/Pagination/Pagination.tsx +18 -13
- package/src/Core/Sidebar/Sidebar.tsx +11 -6
- package/src/Core/Sidebar/SidebarContext.tsx +2 -0
- package/src/Core/Sidebar/SidebarDelimeter.tsx +5 -3
- package/src/Core/Sidebar/SidebarItem.tsx +10 -7
- package/src/Theme/themes/dark.ts +9 -0
- package/src/Theme/themes/light.ts +9 -0
- package/src/Theme/types.ts +9 -0
package/dist/index.d.mts
CHANGED
|
@@ -312,6 +312,15 @@ type Theme = {
|
|
|
312
312
|
color: string;
|
|
313
313
|
background: string;
|
|
314
314
|
};
|
|
315
|
+
pagination: {
|
|
316
|
+
fontSize: string | number;
|
|
317
|
+
paddingBlock: string | number;
|
|
318
|
+
paddingInline: string | number;
|
|
319
|
+
borderRadius: string | number;
|
|
320
|
+
gap: string | number;
|
|
321
|
+
height: string | number;
|
|
322
|
+
iconSize: string | number;
|
|
323
|
+
};
|
|
315
324
|
};
|
|
316
325
|
type ThemeColors = Theme['colors'];
|
|
317
326
|
type ColorCategory = keyof ThemeColors;
|
|
@@ -777,12 +786,37 @@ declare const FlashIcon: ({ fill, ...props }: FlashIconProps) => react_jsx_runti
|
|
|
777
786
|
interface SidebarProps {
|
|
778
787
|
defaultCollapsed?: boolean;
|
|
779
788
|
children: any;
|
|
789
|
+
canGrow: boolean;
|
|
780
790
|
}
|
|
781
|
-
declare const Sidebar:
|
|
791
|
+
declare const Sidebar: React__default.ForwardRefExoticComponent<SidebarProps & {
|
|
792
|
+
m?: string | number;
|
|
793
|
+
mt?: string | number;
|
|
794
|
+
mr?: string | number;
|
|
795
|
+
mb?: string | number;
|
|
796
|
+
ml?: string | number;
|
|
797
|
+
mx?: string | number;
|
|
798
|
+
my?: string | number;
|
|
799
|
+
p?: string | number;
|
|
800
|
+
pt?: string | number;
|
|
801
|
+
pr?: string | number;
|
|
802
|
+
pb?: string | number;
|
|
803
|
+
pl?: string | number;
|
|
804
|
+
px?: string | number;
|
|
805
|
+
py?: string | number;
|
|
806
|
+
} & {
|
|
807
|
+
media?: {
|
|
808
|
+
xs?: Partial<SidebarProps> | undefined;
|
|
809
|
+
s?: Partial<SidebarProps> | undefined;
|
|
810
|
+
m?: Partial<SidebarProps> | undefined;
|
|
811
|
+
l?: Partial<SidebarProps> | undefined;
|
|
812
|
+
xl?: Partial<SidebarProps> | undefined;
|
|
813
|
+
} | undefined;
|
|
814
|
+
} & React__default.RefAttributes<unknown>>;
|
|
782
815
|
|
|
783
816
|
interface SidebarContext {
|
|
784
817
|
collapsed: boolean;
|
|
785
818
|
setCollapsed: React.Dispatch<React.SetStateAction<boolean>>;
|
|
819
|
+
canGrow: boolean;
|
|
786
820
|
}
|
|
787
821
|
declare const SidebarContext: React$1.Context<SidebarContext>;
|
|
788
822
|
|
package/dist/index.d.ts
CHANGED
|
@@ -312,6 +312,15 @@ type Theme = {
|
|
|
312
312
|
color: string;
|
|
313
313
|
background: string;
|
|
314
314
|
};
|
|
315
|
+
pagination: {
|
|
316
|
+
fontSize: string | number;
|
|
317
|
+
paddingBlock: string | number;
|
|
318
|
+
paddingInline: string | number;
|
|
319
|
+
borderRadius: string | number;
|
|
320
|
+
gap: string | number;
|
|
321
|
+
height: string | number;
|
|
322
|
+
iconSize: string | number;
|
|
323
|
+
};
|
|
315
324
|
};
|
|
316
325
|
type ThemeColors = Theme['colors'];
|
|
317
326
|
type ColorCategory = keyof ThemeColors;
|
|
@@ -777,12 +786,37 @@ declare const FlashIcon: ({ fill, ...props }: FlashIconProps) => react_jsx_runti
|
|
|
777
786
|
interface SidebarProps {
|
|
778
787
|
defaultCollapsed?: boolean;
|
|
779
788
|
children: any;
|
|
789
|
+
canGrow: boolean;
|
|
780
790
|
}
|
|
781
|
-
declare const Sidebar:
|
|
791
|
+
declare const Sidebar: React__default.ForwardRefExoticComponent<SidebarProps & {
|
|
792
|
+
m?: string | number;
|
|
793
|
+
mt?: string | number;
|
|
794
|
+
mr?: string | number;
|
|
795
|
+
mb?: string | number;
|
|
796
|
+
ml?: string | number;
|
|
797
|
+
mx?: string | number;
|
|
798
|
+
my?: string | number;
|
|
799
|
+
p?: string | number;
|
|
800
|
+
pt?: string | number;
|
|
801
|
+
pr?: string | number;
|
|
802
|
+
pb?: string | number;
|
|
803
|
+
pl?: string | number;
|
|
804
|
+
px?: string | number;
|
|
805
|
+
py?: string | number;
|
|
806
|
+
} & {
|
|
807
|
+
media?: {
|
|
808
|
+
xs?: Partial<SidebarProps> | undefined;
|
|
809
|
+
s?: Partial<SidebarProps> | undefined;
|
|
810
|
+
m?: Partial<SidebarProps> | undefined;
|
|
811
|
+
l?: Partial<SidebarProps> | undefined;
|
|
812
|
+
xl?: Partial<SidebarProps> | undefined;
|
|
813
|
+
} | undefined;
|
|
814
|
+
} & React__default.RefAttributes<unknown>>;
|
|
782
815
|
|
|
783
816
|
interface SidebarContext {
|
|
784
817
|
collapsed: boolean;
|
|
785
818
|
setCollapsed: React.Dispatch<React.SetStateAction<boolean>>;
|
|
819
|
+
canGrow: boolean;
|
|
786
820
|
}
|
|
787
821
|
declare const SidebarContext: React$1.Context<SidebarContext>;
|
|
788
822
|
|