@qodo/design-system 0.20.11 → 0.20.13

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,7 @@ import { FormState } from 'react-hook-form';
14
14
  import { ForwardRefExoticComponent } from 'react';
15
15
  import { FunctionComponent } from 'react';
16
16
  import { HTMLAttributes } from 'react';
17
+ import { IconType } from 'react-icons';
17
18
  import { JSX as JSX_2 } from 'react/jsx-runtime';
18
19
  import { LucideIcon } from 'lucide-react';
19
20
  import { MouseEvent as MouseEvent_2 } from 'react';
@@ -158,6 +159,8 @@ export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & Rea
158
159
 
159
160
  export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
160
161
  loading?: boolean;
162
+ icon?: LucideIcon | IconType;
163
+ iconPosition?: "left" | "right";
161
164
  }
162
165
 
163
166
  declare const buttonVariants: (props?: ({
@@ -552,7 +555,7 @@ declare const INSIGHT_VARIANTS: {
552
555
  ACTIVE: string;
553
556
  };
554
557
 
555
- export declare function InsightCard({ title, description, caption, additionalContent, titleClassName: propTitleClassName, descriptionClassName: propDescriptionClassName, variant, className, icon, iconClassName: propIconClassName, size, }: InsightCardProps): JSX_2.Element;
558
+ export declare function InsightCard({ title, description, caption, additionalContent, titleClassName: propTitleClassName, descriptionClassName: propDescriptionClassName, variant, className, icon, iconClassName: propIconClassName, size, rightContent, }: InsightCardProps): JSX_2.Element;
556
559
 
557
560
  export declare type InsightCardProps = {
558
561
  title: ReactNode;
@@ -566,6 +569,7 @@ export declare type InsightCardProps = {
566
569
  icon?: ReactNode;
567
570
  iconClassName?: string;
568
571
  size?: (typeof INSIGHT_SIZES)[keyof typeof INSIGHT_SIZES];
572
+ rightContent?: ReactNode;
569
573
  };
570
574
 
571
575
  export declare type LoadingSkeletonProps = {