@qodo/design-system 0.19.2 → 0.19.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.
package/dist/index.d.ts CHANGED
@@ -62,13 +62,19 @@ import { UseFormUnregister } from 'react-hook-form';
62
62
  import { UseFormWatch } from 'react-hook-form';
63
63
  import { VariantProps } from 'class-variance-authority';
64
64
 
65
- export declare function Accordion({ ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Root>): JSX_2.Element;
65
+ export declare function Accordion({ variant, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Root> & {
66
+ variant?: AccordionVariant;
67
+ }): JSX_2.Element;
66
68
 
67
69
  export declare function AccordionContent({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Content>): JSX_2.Element;
68
70
 
69
71
  export declare function AccordionItem({ className, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Item>): JSX_2.Element;
70
72
 
71
- export declare function AccordionTrigger({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Trigger>): JSX_2.Element;
73
+ export declare function AccordionTrigger({ className, children, iconPosition, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Trigger> & {
74
+ iconPosition?: "left" | "right";
75
+ }): JSX_2.Element;
76
+
77
+ declare type AccordionVariant = "default" | "outlined" | "filled";
72
78
 
73
79
  export declare interface ActionItemType extends BaseMenuItemType, TypeGuard<"ActionMenuItem"> {
74
80
  endAndornment?: ReactNode;
@@ -473,13 +479,18 @@ declare const inputVariants: (props?: ({
473
479
  variant?: "default" | "secondary" | "accent" | "success" | "warning" | "destructive" | null | undefined;
474
480
  } & ClassProp) | undefined) => string;
475
481
 
482
+ declare const INSIGHT_SIZES: {
483
+ readonly SM: "sm";
484
+ readonly MD: "md";
485
+ };
486
+
476
487
  declare const INSIGHT_VARIANTS: {
477
488
  DEFAULT: string;
478
489
  PRIMARY: string;
479
490
  ACTIVE: string;
480
491
  };
481
492
 
482
- export declare function InsightCard({ title, description, caption, additionalContent, titleClassName: propTitleClassName, descriptionClassName: propDescriptionClassName, variant, className, icon, iconClassName: propIconClassName, }: InsightCardProps): JSX_2.Element;
493
+ export declare function InsightCard({ title, description, caption, additionalContent, titleClassName: propTitleClassName, descriptionClassName: propDescriptionClassName, variant, className, icon, iconClassName: propIconClassName, size, }: InsightCardProps): JSX_2.Element;
483
494
 
484
495
  export declare type InsightCardProps = {
485
496
  title: ReactNode;
@@ -492,6 +503,7 @@ export declare type InsightCardProps = {
492
503
  className?: string;
493
504
  icon?: ReactNode;
494
505
  iconClassName?: string;
506
+ size?: (typeof INSIGHT_SIZES)[keyof typeof INSIGHT_SIZES];
495
507
  };
496
508
 
497
509
  export declare type LoadingSkeletonProps = {
@@ -815,6 +827,8 @@ declare type TypeGuard<T> = {
815
827
  type: T;
816
828
  };
817
829
 
830
+ export declare const Typography: React_2.ForwardRefExoticComponent<TypographyProps & React_2.RefAttributes<HTMLElement>>;
831
+
818
832
  export declare const typography: {
819
833
  readonly fontFamily: {
820
834
  readonly sans: readonly ["Inter", "system-ui", "sans-serif"];
@@ -830,6 +844,14 @@ export declare const typography: {
830
844
  };
831
845
  };
832
846
 
847
+ export declare interface TypographyProps extends React_2.HTMLAttributes<HTMLElement>, VariantProps<typeof typographyVariants> {
848
+ as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | "div" | "blockquote" | "ul" | "ol" | "code" | "pre";
849
+ }
850
+
851
+ export declare const typographyVariants: (props?: ({
852
+ variant?: "small" | "list" | "blockquote" | "body" | "caption" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "muted" | "large" | "lead" | "code-inline" | "code-block" | "list-ordered" | null | undefined;
853
+ } & ClassProp) | undefined) => string;
854
+
833
855
  /**
834
856
  * This hook is used to get the merged form context: react-hook-form context and the FormProvider custom context
835
857
  * @returns The form context and the react-hook-form context