@qodo/design-system 0.20.7 → 0.20.9
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 +53 -53
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +45 -4
- package/dist/index.esm.js +7315 -5846
- package/dist/index.esm.js.map +1 -1
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import { ClassProp } from 'class-variance-authority/types';
|
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
4
|
import { Column } from '@tanstack/react-table';
|
|
5
5
|
import { Control } from 'react-hook-form';
|
|
6
|
-
import { default as default_2 } from 'react';
|
|
6
|
+
import { default as default_2 } from 'embla-carousel-react';
|
|
7
|
+
import { default as default_3 } from 'react';
|
|
7
8
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
9
|
import { Dispatch } from 'react';
|
|
9
10
|
import { DropdownMenuContentProps } from '@radix-ui/react-dropdown-menu';
|
|
@@ -14,6 +15,7 @@ import { ForwardRefExoticComponent } from 'react';
|
|
|
14
15
|
import { FunctionComponent } from 'react';
|
|
15
16
|
import { HTMLAttributes } from 'react';
|
|
16
17
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
18
|
+
import { LucideIcon } from 'lucide-react';
|
|
17
19
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
18
20
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
19
21
|
import { PropsWithChildren } from 'react';
|
|
@@ -34,6 +36,7 @@ import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
|
34
36
|
import { TooltipContentProps } from '@radix-ui/react-tooltip';
|
|
35
37
|
import { TooltipProviderProps } from '@radix-ui/react-tooltip';
|
|
36
38
|
import { TooltipTriggerProps } from '@radix-ui/react-tooltip';
|
|
39
|
+
import { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
37
40
|
import { UseFormClearErrors } from 'react-hook-form';
|
|
38
41
|
import { UseFormGetFieldState } from 'react-hook-form';
|
|
39
42
|
import { UseFormGetValues } from 'react-hook-form';
|
|
@@ -141,7 +144,7 @@ declare type BaseSelectProps = {
|
|
|
141
144
|
renderValue?: (args: {
|
|
142
145
|
displayValues: string[];
|
|
143
146
|
}) => ReactNode;
|
|
144
|
-
} & Omit<
|
|
147
|
+
} & Omit<default_3.HTMLAttributes<HTMLDivElement>, "onSelect">;
|
|
145
148
|
|
|
146
149
|
export declare const borderRadius: {
|
|
147
150
|
readonly sm: "0.25rem";
|
|
@@ -177,12 +180,48 @@ export declare function CardHeader({ className, ...props }: React_2.ComponentPro
|
|
|
177
180
|
|
|
178
181
|
export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
|
|
179
182
|
|
|
183
|
+
export declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React_2.ComponentProps<"div"> & CarouselProps): JSX_2.Element;
|
|
184
|
+
|
|
185
|
+
export declare type CarouselApi = UseEmblaCarouselType[1];
|
|
186
|
+
|
|
187
|
+
export declare function CarouselContent({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
|
|
188
|
+
|
|
189
|
+
export declare function CarouselFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
|
|
190
|
+
|
|
191
|
+
export declare function CarouselIndicator({ className, children, index, isCurrent, ...props }: React_2.ComponentProps<typeof Button> & {
|
|
192
|
+
index: number;
|
|
193
|
+
isCurrent: boolean;
|
|
194
|
+
}): JSX_2.Element;
|
|
195
|
+
|
|
196
|
+
export declare function CarouselItem({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
|
|
197
|
+
|
|
198
|
+
export declare function CarouselNext({ className, variant, size, icon: Icon, screenReaderLabel, ...props }: React_2.ComponentProps<typeof Button> & {
|
|
199
|
+
icon?: LucideIcon;
|
|
200
|
+
screenReaderLabel?: string;
|
|
201
|
+
}): JSX_2.Element;
|
|
202
|
+
|
|
203
|
+
declare type CarouselOptions = UseCarouselParameters[0];
|
|
204
|
+
|
|
205
|
+
declare type CarouselPlugin = UseCarouselParameters[1];
|
|
206
|
+
|
|
207
|
+
export declare function CarouselPrevious({ className, variant, size, icon: Icon, screenReaderLabel, ...props }: React_2.ComponentProps<typeof Button> & {
|
|
208
|
+
icon?: LucideIcon;
|
|
209
|
+
screenReaderLabel?: string;
|
|
210
|
+
}): JSX_2.Element;
|
|
211
|
+
|
|
212
|
+
declare type CarouselProps = {
|
|
213
|
+
opts?: CarouselOptions;
|
|
214
|
+
plugins?: CarouselPlugin;
|
|
215
|
+
orientation?: "horizontal" | "vertical";
|
|
216
|
+
setApi?: (api: CarouselApi) => void;
|
|
217
|
+
};
|
|
218
|
+
|
|
180
219
|
export declare const Checkbox: {
|
|
181
220
|
({ disabled, error, name, checked, onCheckedChange, label, description, labelWrapperClassName, labelClassName, descriptionClassName, checkboxClassName, wrapperClassName, }: React.PropsWithChildren<CheckboxProps>): JSX_2.Element;
|
|
182
221
|
displayName: string;
|
|
183
222
|
};
|
|
184
223
|
|
|
185
|
-
export declare const CheckboxGroup:
|
|
224
|
+
export declare const CheckboxGroup: default_3.ForwardRefExoticComponent<CheckboxGroupProps & default_3.RefAttributes<HTMLDivElement>>;
|
|
186
225
|
|
|
187
226
|
export declare interface CheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
188
227
|
value?: string[];
|
|
@@ -581,7 +620,7 @@ export declare type PaginationStepperProps<T extends RowData> = {
|
|
|
581
620
|
|
|
582
621
|
export declare function Progress({ className, value, ...props }: React_2.ComponentProps<typeof ProgressPrimitive.Root>): JSX_2.Element;
|
|
583
622
|
|
|
584
|
-
export declare const RadioGroup:
|
|
623
|
+
export declare const RadioGroup: default_3.ForwardRefExoticComponent<RadioGroupProps & default_3.RefAttributes<HTMLDivElement>>;
|
|
585
624
|
|
|
586
625
|
export declare const RadioGroupItem: {
|
|
587
626
|
({ value, disabled, error, name, label, description, wrapperClassName, labelClassName, descriptionClassName, labelWrapperClassName, }: React.PropsWithChildren<RadioGroupItemProps>): JSX_2.Element;
|
|
@@ -910,6 +949,8 @@ export declare const typographyVariants: (props?: ({
|
|
|
910
949
|
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;
|
|
911
950
|
} & ClassProp) | undefined) => string;
|
|
912
951
|
|
|
952
|
+
declare type UseCarouselParameters = Parameters<typeof default_2>;
|
|
953
|
+
|
|
913
954
|
/**
|
|
914
955
|
* This hook is used to get the merged form context: react-hook-form context and the FormProvider custom context
|
|
915
956
|
* @returns The form context and the react-hook-form context
|