glintly-ui 1.0.1 → 1.0.3

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.
@@ -134,6 +134,7 @@ export declare const BoxIcon: default_2.FC<{
134
134
  height?: string;
135
135
  width?: string;
136
136
  style?: default_2.CSSProperties;
137
+ className?: string;
137
138
  }>;
138
139
 
139
140
  declare type BreakpointKey = "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
@@ -142,9 +143,9 @@ declare interface Breakpoints {
142
143
  [key: string]: string;
143
144
  }
144
145
 
145
- export declare const Button: default_2.FC<ButtonComponentProps>;
146
+ export declare const Button: default_2.FC<ButtonProps>;
146
147
 
147
- declare interface ButtonComponentProps extends Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
148
+ export declare interface ButtonProps extends Omit<default_2.ButtonHTMLAttributes<HTMLButtonElement>, "onSelect"> {
148
149
  children?: default_2.ReactNode;
149
150
  variant?: ButtonVariant;
150
151
  size?: ButtonSize;
@@ -158,9 +159,9 @@ declare interface ButtonComponentProps extends Omit<default_2.ButtonHTMLAttribut
158
159
 
159
160
  declare type ButtonShadow = "sm" | "md" | "lg";
160
161
 
161
- declare type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
162
+ export declare type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
162
163
 
163
- declare type ButtonVariant = "primary" | "secondary" | "gray" | "transparent";
164
+ export declare type ButtonVariant = "primary" | "outline" | "gray" | "ghost" | "danger";
164
165
 
165
166
  export declare const Card: default_2.FC<CardProps>;
166
167
 
@@ -237,7 +238,6 @@ export declare const Col: default_2.FC<ColProps>;
237
238
  declare interface Colors {
238
239
  light: ColorVariant;
239
240
  dark: ColorVariant;
240
- [key: string]: ColorVariant;
241
241
  }
242
242
 
243
243
  declare type ColorScale = {
@@ -268,10 +268,9 @@ declare interface ColorVariant {
268
268
  success: ColorScale;
269
269
  warning: ColorScale;
270
270
  gray: ColorScale;
271
+ yellow: ColorScale;
271
272
  iconButton: ColorScale;
272
- [key: string]: ColorScale | string | {
273
- [key: string]: string;
274
- };
273
+ info: ColorScale;
275
274
  }
276
275
 
277
276
  declare type ColProps = {
@@ -575,16 +574,55 @@ export { ListSectionHeader }
575
574
 
576
575
  export declare const Modal: default_2.FC<ModalProps>;
577
576
 
578
- declare interface ModalProps {
577
+ export declare interface ModalProps {
578
+ /** Whether the modal is open */
579
579
  isOpen: boolean;
580
- title?: string;
580
+ /** Modal title */
581
+ title?: default_2.ReactNode;
582
+ /** Modal content */
581
583
  children: default_2.ReactNode;
584
+ /** Callback when modal is closed */
582
585
  onClose: () => void;
586
+ /** Callback when confirm button is clicked */
583
587
  onConfirm?: () => void;
588
+ /** Whether to show footer with confirm/cancel buttons */
584
589
  showFooter?: boolean;
590
+ /** Confirm button text */
585
591
  confirmText?: string;
592
+ /** Cancel button text */
586
593
  cancelText?: string;
587
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "fullWidth";
594
+ /** Modal size */
595
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "fullWidth";
596
+ /** Background color of the modal */
597
+ backgroundColor?: string;
598
+ /** Background color of the overlay/backdrop */
599
+ overlayColor?: string;
600
+ /** Custom className for the modal container */
601
+ className?: string;
602
+ /** Custom className for the overlay */
603
+ overlayClassName?: string;
604
+ /** Whether to center the modal vertically */
605
+ centered?: boolean;
606
+ /** Whether to show close button */
607
+ closable?: boolean;
608
+ /** Whether to close modal when clicking mask/overlay */
609
+ maskClosable?: boolean;
610
+ /** Custom close icon */
611
+ closeIcon?: default_2.ReactNode;
612
+ /** Custom footer */
613
+ footer?: default_2.ReactNode | null;
614
+ /** Z-index of the modal */
615
+ zIndex?: number;
616
+ /** Custom styles for modal container */
617
+ style?: default_2.CSSProperties;
618
+ /** Custom styles for overlay */
619
+ overlayStyle?: default_2.CSSProperties;
620
+ /** Width of the modal */
621
+ width?: string | number;
622
+ /** Whether to destroy modal on close */
623
+ destroyOnClose?: boolean;
624
+ /** Animation duration in milliseconds */
625
+ animationDuration?: number;
588
626
  }
589
627
 
590
628
  declare type ModeType = 'light' | 'dark';
@@ -666,6 +704,58 @@ declare interface SearchBarProps {
666
704
 
667
705
  declare type ShadeKey = keyof ColorScale;
668
706
 
707
+ export declare const Sidebar: SidebarCompound;
708
+
709
+ declare interface SidebarCompound extends default_2.FC<SidebarProps> {
710
+ Header: typeof SidebarHeader;
711
+ Item: typeof SidebarItem;
712
+ Footer: typeof SidebarFooter;
713
+ }
714
+
715
+ declare const SidebarFooter: default_2.FC<SidebarFooterProps>;
716
+
717
+ declare interface SidebarFooterProps {
718
+ children?: ReactNode;
719
+ className?: string;
720
+ style?: default_2.CSSProperties;
721
+ }
722
+
723
+ declare const SidebarHeader: default_2.FC<SidebarHeaderProps>;
724
+
725
+ declare interface SidebarHeaderProps {
726
+ children?: ReactNode;
727
+ logo?: ReactNode;
728
+ logoText?: string;
729
+ className?: string;
730
+ style?: default_2.CSSProperties;
731
+ }
732
+
733
+ declare const SidebarItem: default_2.FC<SidebarItemProps>;
734
+
735
+ declare interface SidebarItemProps {
736
+ id: string;
737
+ label: string;
738
+ icon?: string;
739
+ children?: ReactNode;
740
+ badge?: string | number;
741
+ disabled?: boolean;
742
+ active?: boolean;
743
+ onClick?: () => void;
744
+ className?: string;
745
+ style?: default_2.CSSProperties;
746
+ }
747
+
748
+ declare interface SidebarProps {
749
+ children: ReactNode;
750
+ collapsed?: boolean;
751
+ onCollapse?: (collapsed: boolean) => void;
752
+ className?: string;
753
+ style?: default_2.CSSProperties;
754
+ variant?: "default" | "minimal" | "elevated";
755
+ width?: string;
756
+ collapsedWidth?: string;
757
+ }
758
+
669
759
  export declare const Skeleton: default_2.FC<SkeletonProps>;
670
760
 
671
761
  declare interface SkeletonProps {
@@ -855,14 +945,14 @@ declare interface ThemeContextType {
855
945
  theme: Theme;
856
946
  mode: ModeType;
857
947
  toggleMode: () => void;
858
- setCustomTheme: (theme: Partial<ThemeSet> | any) => void;
948
+ setCustomTheme: (theme: Partial<ThemeSet>) => void;
859
949
  }
860
950
 
861
- export declare const ThemeProvider: default_2.FC<ThemeProviderProps | any>;
951
+ export declare const ThemeProvider: default_2.FC<ThemeProviderProps>;
862
952
 
863
953
  declare interface ThemeProviderProps {
864
954
  children: ReactNode;
865
- theme?: Partial<ThemeSet> | any;
955
+ theme?: Partial<ThemeSet>;
866
956
  }
867
957
 
868
958
  declare interface ThemeSet {
@@ -878,11 +968,7 @@ declare interface ThemeSet {
878
968
  dark: {
879
969
  [key: string]: string;
880
970
  };
881
- [key: string]: {
882
- [key: string]: string;
883
- };
884
971
  };
885
- [key: string]: any;
886
972
  }
887
973
 
888
974
  export declare const toast: ((content: ReactNode, options?: ToastOptions) => string) & {
@@ -978,6 +1064,12 @@ declare interface TypographyProps extends default_2.HTMLAttributes<HTMLElement>
978
1064
 
979
1065
  declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'overline';
980
1066
 
981
- export declare const useTheme: () => ThemeContextType | any;
1067
+ export declare const useTheme: () => ThemeContextType;
982
1068
 
983
1069
  export { }
1070
+
1071
+
1072
+
1073
+ declare module 'styled-components' {
1074
+ export type DefaultTheme = Theme;
1075
+ }