glintly-ui 1.0.0 → 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,74 @@ 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
+
719
+ export declare const Skeleton: default_2.FC<SkeletonProps>;
720
+
721
+ declare interface SkeletonProps {
722
+ variant?: SkeletonVariant;
723
+ size?: SkeletonSize;
724
+ width?: string | number;
725
+ height?: string | number;
726
+ lines?: number;
727
+ animated?: boolean;
728
+ className?: string;
729
+ }
730
+
731
+ declare type SkeletonSize = "xs" | "sm" | "md" | "lg" | "xl";
732
+
733
+ declare type SkeletonVariant = "text" | "avatar" | "image" | "rectangular" | "circular";
734
+
669
735
  export declare const SortBar: default_2.FC<SortBarProps>;
670
736
 
671
737
  declare interface SortBarProps {
@@ -839,14 +905,14 @@ declare interface ThemeContextType {
839
905
  theme: Theme;
840
906
  mode: ModeType;
841
907
  toggleMode: () => void;
842
- setCustomTheme: (theme: Partial<ThemeSet> | any) => void;
908
+ setCustomTheme: (theme: Partial<ThemeSet>) => void;
843
909
  }
844
910
 
845
- export declare const ThemeProvider: default_2.FC<ThemeProviderProps | any>;
911
+ export declare const ThemeProvider: default_2.FC<ThemeProviderProps>;
846
912
 
847
913
  declare interface ThemeProviderProps {
848
914
  children: ReactNode;
849
- theme?: Partial<ThemeSet> | any;
915
+ theme?: Partial<ThemeSet>;
850
916
  }
851
917
 
852
918
  declare interface ThemeSet {
@@ -862,11 +928,7 @@ declare interface ThemeSet {
862
928
  dark: {
863
929
  [key: string]: string;
864
930
  };
865
- [key: string]: {
866
- [key: string]: string;
867
- };
868
931
  };
869
- [key: string]: any;
870
932
  }
871
933
 
872
934
  export declare const toast: ((content: ReactNode, options?: ToastOptions) => string) & {
@@ -962,6 +1024,12 @@ declare interface TypographyProps extends default_2.HTMLAttributes<HTMLElement>
962
1024
 
963
1025
  declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline';
964
1026
 
965
- export declare const useTheme: () => ThemeContextType | any;
1027
+ export declare const useTheme: () => ThemeContextType;
966
1028
 
967
1029
  export { }
1030
+
1031
+
1032
+
1033
+ declare module 'styled-components' {
1034
+ export type DefaultTheme = Theme;
1035
+ }