glintly-ui 1.0.1 → 1.0.2

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.
@@ -142,9 +142,9 @@ declare interface Breakpoints {
142
142
  [key: string]: string;
143
143
  }
144
144
 
145
- export declare const Button: default_2.FC<ButtonComponentProps>;
145
+ export declare const Button: default_2.FC<ButtonProps>;
146
146
 
147
- declare interface ButtonComponentProps extends Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
147
+ export declare interface ButtonProps extends Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
148
148
  children?: default_2.ReactNode;
149
149
  variant?: ButtonVariant;
150
150
  size?: ButtonSize;
@@ -237,7 +237,6 @@ export declare const Col: default_2.FC<ColProps>;
237
237
  declare interface Colors {
238
238
  light: ColorVariant;
239
239
  dark: ColorVariant;
240
- [key: string]: ColorVariant;
241
240
  }
242
241
 
243
242
  declare type ColorScale = {
@@ -268,10 +267,9 @@ declare interface ColorVariant {
268
267
  success: ColorScale;
269
268
  warning: ColorScale;
270
269
  gray: ColorScale;
270
+ yellow: ColorScale;
271
271
  iconButton: ColorScale;
272
- [key: string]: ColorScale | string | {
273
- [key: string]: string;
274
- };
272
+ info: ColorScale;
275
273
  }
276
274
 
277
275
  declare type ColProps = {
@@ -666,6 +664,58 @@ declare interface SearchBarProps {
666
664
 
667
665
  declare type ShadeKey = keyof ColorScale;
668
666
 
667
+ export declare const Sidebar: SidebarCompound;
668
+
669
+ declare interface SidebarCompound extends default_2.FC<SidebarProps> {
670
+ Header: typeof SidebarHeader;
671
+ Item: typeof SidebarItem;
672
+ Footer: typeof SidebarFooter;
673
+ }
674
+
675
+ declare const SidebarFooter: default_2.FC<SidebarFooterProps>;
676
+
677
+ declare interface SidebarFooterProps {
678
+ children?: ReactNode;
679
+ className?: string;
680
+ style?: default_2.CSSProperties;
681
+ }
682
+
683
+ declare const SidebarHeader: default_2.FC<SidebarHeaderProps>;
684
+
685
+ declare interface SidebarHeaderProps {
686
+ children?: ReactNode;
687
+ logo?: ReactNode;
688
+ logoText?: string;
689
+ className?: string;
690
+ style?: default_2.CSSProperties;
691
+ }
692
+
693
+ declare const SidebarItem: default_2.FC<SidebarItemProps>;
694
+
695
+ declare interface SidebarItemProps {
696
+ id: string;
697
+ label: string;
698
+ icon?: string;
699
+ children?: ReactNode;
700
+ badge?: string | number;
701
+ disabled?: boolean;
702
+ active?: boolean;
703
+ onClick?: () => void;
704
+ className?: string;
705
+ style?: default_2.CSSProperties;
706
+ }
707
+
708
+ declare interface SidebarProps {
709
+ children: ReactNode;
710
+ collapsed?: boolean;
711
+ onCollapse?: (collapsed: boolean) => void;
712
+ className?: string;
713
+ style?: default_2.CSSProperties;
714
+ variant?: "default" | "minimal" | "elevated";
715
+ width?: string;
716
+ collapsedWidth?: string;
717
+ }
718
+
669
719
  export declare const Skeleton: default_2.FC<SkeletonProps>;
670
720
 
671
721
  declare interface SkeletonProps {
@@ -855,14 +905,14 @@ declare interface ThemeContextType {
855
905
  theme: Theme;
856
906
  mode: ModeType;
857
907
  toggleMode: () => void;
858
- setCustomTheme: (theme: Partial<ThemeSet> | any) => void;
908
+ setCustomTheme: (theme: Partial<ThemeSet>) => void;
859
909
  }
860
910
 
861
- export declare const ThemeProvider: default_2.FC<ThemeProviderProps | any>;
911
+ export declare const ThemeProvider: default_2.FC<ThemeProviderProps>;
862
912
 
863
913
  declare interface ThemeProviderProps {
864
914
  children: ReactNode;
865
- theme?: Partial<ThemeSet> | any;
915
+ theme?: Partial<ThemeSet>;
866
916
  }
867
917
 
868
918
  declare interface ThemeSet {
@@ -878,11 +928,7 @@ declare interface ThemeSet {
878
928
  dark: {
879
929
  [key: string]: string;
880
930
  };
881
- [key: string]: {
882
- [key: string]: string;
883
- };
884
931
  };
885
- [key: string]: any;
886
932
  }
887
933
 
888
934
  export declare const toast: ((content: ReactNode, options?: ToastOptions) => string) & {
@@ -978,6 +1024,12 @@ declare interface TypographyProps extends default_2.HTMLAttributes<HTMLElement>
978
1024
 
979
1025
  declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline';
980
1026
 
981
- export declare const useTheme: () => ThemeContextType | any;
1027
+ export declare const useTheme: () => ThemeContextType;
982
1028
 
983
1029
  export { }
1030
+
1031
+
1032
+
1033
+ declare module 'styled-components' {
1034
+ export type DefaultTheme = Theme;
1035
+ }