@stackone/malachite 0.4.0 → 0.5.0

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.ts CHANGED
@@ -14,6 +14,9 @@ declare interface AlertProps {
14
14
  message: string;
15
15
  hasMargin?: boolean;
16
16
  className?: string;
17
+ children?: default_2.ReactNode;
18
+ isExpanded?: boolean;
19
+ onToggle?: (expanded: boolean) => void;
17
20
  }
18
21
 
19
22
  declare type AlertType = 'info' | 'success' | 'error' | 'warning';
@@ -126,6 +129,25 @@ declare interface CardProps {
126
129
  style?: default_2.CSSProperties;
127
130
  }
128
131
 
132
+ export declare const CodeBlock: default_2.FC<CodeBlockProps>;
133
+
134
+ declare interface CodeBlockProps {
135
+ /** The code content to display */
136
+ code?: string;
137
+ /** JSON object to display as formatted JSON */
138
+ json?: object;
139
+ /** Show line numbers */
140
+ showLineNumbers?: boolean;
141
+ /** Custom class name */
142
+ className?: string;
143
+ /** Custom styles */
144
+ style?: default_2.CSSProperties;
145
+ /** Height of the code block */
146
+ height?: string | number;
147
+ /** Enable copy functionality */
148
+ enableCopy?: boolean;
149
+ }
150
+
129
151
  declare interface CodeTextProps {
130
152
  bold?: boolean;
131
153
  size?: FontSize;
@@ -580,6 +602,17 @@ export declare interface MalachiteTheme {
580
602
  linkForeground: string;
581
603
  linkForegroundHover: string;
582
604
  };
605
+ codeBlock: {
606
+ background: string;
607
+ foreground: string;
608
+ border: string;
609
+ lineNumber: string;
610
+ keyword: string;
611
+ comment: string;
612
+ string: string;
613
+ number: string;
614
+ type: string;
615
+ };
583
616
  };
584
617
  }
585
618
 
@@ -587,6 +620,7 @@ declare interface MarkdownProps {
587
620
  text: string;
588
621
  color?: TextColor;
589
622
  size?: FontSize;
623
+ omitMargin?: boolean;
590
624
  }
591
625
 
592
626
  export declare const Padded: default_2.FC<PaddedProps>;
@@ -626,6 +660,7 @@ export declare interface PartialMalachiteTheme {
626
660
  buttonList?: Partial<MalachiteTheme['colors']['buttonList']>;
627
661
  pillButton?: Partial<MalachiteTheme['colors']['pillButton']>;
628
662
  text?: Partial<MalachiteTheme['colors']['text']>;
663
+ codeBlock?: Partial<MalachiteTheme['colors']['codeBlock']>;
629
664
  };
630
665
  }
631
666