@qodo/design-system 0.19.4 → 0.20.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/design-system.css +1 -1
- package/dist/index.cjs.js +75 -62
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +32 -8
- package/dist/index.esm.js +14736 -7905
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ import { SetStateAction } from 'react';
|
|
|
35
35
|
import { Steps as Steps_2 } from '@ark-ui/react/steps';
|
|
36
36
|
import { SubmitHandler } from 'react-hook-form';
|
|
37
37
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
38
|
-
import { Table as
|
|
38
|
+
import { Table as Table_3 } from '@tanstack/react-table';
|
|
39
39
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
40
40
|
import { TagsInputProps as TagsInputProps_2 } from '..';
|
|
41
41
|
import { TextareaProps } from './types';
|
|
@@ -132,6 +132,7 @@ declare type BasePaginationProps = {
|
|
|
132
132
|
|
|
133
133
|
declare type BaseSelectProps = {
|
|
134
134
|
disabled?: boolean;
|
|
135
|
+
readOnly?: boolean;
|
|
135
136
|
options: Option_2[];
|
|
136
137
|
placeholder?: string;
|
|
137
138
|
triggerClassName?: string;
|
|
@@ -144,6 +145,9 @@ declare type BaseSelectProps = {
|
|
|
144
145
|
emptyState?: ReactNode;
|
|
145
146
|
dir?: string;
|
|
146
147
|
mode?: (typeof SELECT_MODE)[keyof typeof SELECT_MODE];
|
|
148
|
+
variant?: (typeof SELECT_VARIANT)[keyof typeof SELECT_VARIANT];
|
|
149
|
+
iconPosition?: "left" | "right";
|
|
150
|
+
selectionIndicator?: "checkmark" | "checkbox";
|
|
147
151
|
} & Omit<default_2.HTMLAttributes<HTMLDivElement>, "onSelect">;
|
|
148
152
|
|
|
149
153
|
export declare const borderRadius: {
|
|
@@ -476,7 +480,7 @@ export declare interface InputProps extends React_2.ComponentProps<"input">, Var
|
|
|
476
480
|
}
|
|
477
481
|
|
|
478
482
|
declare const inputVariants: (props?: ({
|
|
479
|
-
variant?: "default" | "secondary" | "accent" | "success" | "warning" | "destructive" | null | undefined;
|
|
483
|
+
variant?: "default" | "secondary" | "ghost" | "accent" | "success" | "warning" | "destructive" | null | undefined;
|
|
480
484
|
} & ClassProp) | undefined) => string;
|
|
481
485
|
|
|
482
486
|
declare const INSIGHT_SIZES: {
|
|
@@ -511,6 +515,17 @@ export declare type LoadingSkeletonProps = {
|
|
|
511
515
|
rowsCount?: number;
|
|
512
516
|
};
|
|
513
517
|
|
|
518
|
+
/**
|
|
519
|
+
* A reusable markdown preview component that renders markdown content with consistent styling.
|
|
520
|
+
* Can be used in textareas, forms, or any other component that needs markdown display.
|
|
521
|
+
*/
|
|
522
|
+
export declare function MarkdownPreview({ content, className }: MarkdownPreviewProps): JSX_2.Element;
|
|
523
|
+
|
|
524
|
+
declare type MarkdownPreviewProps = {
|
|
525
|
+
content: string;
|
|
526
|
+
className?: string;
|
|
527
|
+
};
|
|
528
|
+
|
|
514
529
|
declare interface MenuLabelType extends TypeGuard<"MenuLabel"> {
|
|
515
530
|
label: ReactNode;
|
|
516
531
|
}
|
|
@@ -547,11 +562,11 @@ export declare type PaginationMode = (typeof PAGINATION_MODE)[keyof typeof PAGIN
|
|
|
547
562
|
declare type PaginationModeProps = BasePaginationProps | InfiniteScrollProps;
|
|
548
563
|
|
|
549
564
|
export declare type PaginationProps<T extends RowData> = {
|
|
550
|
-
table:
|
|
565
|
+
table: Table_3<T>;
|
|
551
566
|
};
|
|
552
567
|
|
|
553
568
|
export declare type PaginationStepperProps<T extends RowData> = {
|
|
554
|
-
table:
|
|
569
|
+
table: Table_3<T>;
|
|
555
570
|
isLoading?: boolean;
|
|
556
571
|
};
|
|
557
572
|
|
|
@@ -622,13 +637,18 @@ declare const SearchSize: {
|
|
|
622
637
|
LARGE: string;
|
|
623
638
|
};
|
|
624
639
|
|
|
625
|
-
export declare function Select({ value, options, onSelect: propsOnSelect, disabled, mode, placeholder, inputPlaceholder, emptyState, triggerClassName, triggerWrapperClassName, badgeClassName, badgeVariant, searchable, toggleIcon, dir, ...rest }: SelectProps): JSX_2.Element;
|
|
640
|
+
export declare function Select({ value, options, onSelect: propsOnSelect, disabled, readOnly, mode, placeholder, inputPlaceholder, emptyState, triggerClassName, triggerWrapperClassName, badgeClassName, badgeVariant, searchable, toggleIcon, dir, variant, iconPosition, selectionIndicator, ...rest }: SelectProps): JSX_2.Element;
|
|
626
641
|
|
|
627
642
|
declare const SELECT_MODE: {
|
|
628
643
|
SINGLE: string;
|
|
629
644
|
MULTIPLE: string;
|
|
630
645
|
};
|
|
631
646
|
|
|
647
|
+
declare const SELECT_VARIANT: {
|
|
648
|
+
DEFAULT: string;
|
|
649
|
+
GHOST: string;
|
|
650
|
+
};
|
|
651
|
+
|
|
632
652
|
export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
633
653
|
container?: HTMLElement | null;
|
|
634
654
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -713,10 +733,14 @@ declare const switchVariants: (props?: ({
|
|
|
713
733
|
size?: "small" | "large" | null | undefined;
|
|
714
734
|
} & ClassProp) | undefined) => string;
|
|
715
735
|
|
|
716
|
-
export declare const Table: <T extends RowData>({ table, emptyStateComponent, noResultsComponent, errorComponent, isLoading, isError, onRowClick, emptyStateTitle, emptyStateDescription, noResultsTitle, wrapperClassName, loadingRowsCount, activeRowId, paginationMode, onLoadMore, hasMore, loadMoreThreshold, endOfResultsMessage, }: TableProps<T & WithId>) => JSX_2.Element;
|
|
736
|
+
export declare const Table: <T extends RowData>({ table, emptyStateComponent, noResultsComponent, errorComponent, isLoading, isError, onRowClick, emptyStateTitle, emptyStateDescription, noResultsTitle, wrapperClassName, loadingRowsCount, activeRowId, paginationMode, onLoadMore, hasMore, loadMoreThreshold, endOfResultsMessage, className: propsClassName, ...restTableProps }: TableProps<T & WithId>) => JSX_2.Element;
|
|
737
|
+
|
|
738
|
+
declare const Table_2: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLTableElement> & {
|
|
739
|
+
wrapperClassName?: string;
|
|
740
|
+
} & React_2.RefAttributes<HTMLTableElement>>;
|
|
717
741
|
|
|
718
742
|
export declare type TableProps<T extends RowData> = {
|
|
719
|
-
table:
|
|
743
|
+
table: Table_3<T>;
|
|
720
744
|
emptyStateComponent?: () => ReactNode;
|
|
721
745
|
noResultsComponent?: () => ReactNode;
|
|
722
746
|
errorComponent?: () => ReactNode;
|
|
@@ -729,7 +753,7 @@ export declare type TableProps<T extends RowData> = {
|
|
|
729
753
|
wrapperClassName?: string;
|
|
730
754
|
loadingRowsCount?: number;
|
|
731
755
|
activeRowId?: number | string;
|
|
732
|
-
} & PaginationModeProps
|
|
756
|
+
} & PaginationModeProps & React.ComponentPropsWithoutRef<typeof Table_2>;
|
|
733
757
|
|
|
734
758
|
export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX_2.Element;
|
|
735
759
|
|