@qodo/design-system 0.20.6 → 0.20.8
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 -63
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +51 -5
- package/dist/index.esm.js +7399 -5933
- 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';
|
|
@@ -138,7 +141,10 @@ declare type BaseSelectProps = {
|
|
|
138
141
|
iconPosition?: "left" | "right";
|
|
139
142
|
selectionIndicator?: "checkmark" | "checkbox";
|
|
140
143
|
onSearchChange?: (search: string) => void;
|
|
141
|
-
|
|
144
|
+
renderValue?: (args: {
|
|
145
|
+
displayValues: string[];
|
|
146
|
+
}) => ReactNode;
|
|
147
|
+
} & Omit<default_3.HTMLAttributes<HTMLDivElement>, "onSelect">;
|
|
142
148
|
|
|
143
149
|
export declare const borderRadius: {
|
|
144
150
|
readonly sm: "0.25rem";
|
|
@@ -174,12 +180,48 @@ export declare function CardHeader({ className, ...props }: React_2.ComponentPro
|
|
|
174
180
|
|
|
175
181
|
export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX_2.Element;
|
|
176
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
|
+
|
|
177
219
|
export declare const Checkbox: {
|
|
178
220
|
({ disabled, error, name, checked, onCheckedChange, label, description, labelWrapperClassName, labelClassName, descriptionClassName, checkboxClassName, wrapperClassName, }: React.PropsWithChildren<CheckboxProps>): JSX_2.Element;
|
|
179
221
|
displayName: string;
|
|
180
222
|
};
|
|
181
223
|
|
|
182
|
-
export declare const CheckboxGroup:
|
|
224
|
+
export declare const CheckboxGroup: default_3.ForwardRefExoticComponent<CheckboxGroupProps & default_3.RefAttributes<HTMLDivElement>>;
|
|
183
225
|
|
|
184
226
|
export declare interface CheckboxGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
185
227
|
value?: string[];
|
|
@@ -553,6 +595,8 @@ declare type Option_2 = {
|
|
|
553
595
|
icon?: ReactNode;
|
|
554
596
|
children?: Option_2[];
|
|
555
597
|
disabled?: boolean;
|
|
598
|
+
description?: string;
|
|
599
|
+
disableChildrenOnParentSelect?: boolean;
|
|
556
600
|
};
|
|
557
601
|
export { Option_2 as Option }
|
|
558
602
|
|
|
@@ -576,7 +620,7 @@ export declare type PaginationStepperProps<T extends RowData> = {
|
|
|
576
620
|
|
|
577
621
|
export declare function Progress({ className, value, ...props }: React_2.ComponentProps<typeof ProgressPrimitive.Root>): JSX_2.Element;
|
|
578
622
|
|
|
579
|
-
export declare const RadioGroup:
|
|
623
|
+
export declare const RadioGroup: default_3.ForwardRefExoticComponent<RadioGroupProps & default_3.RefAttributes<HTMLDivElement>>;
|
|
580
624
|
|
|
581
625
|
export declare const RadioGroupItem: {
|
|
582
626
|
({ value, disabled, error, name, label, description, wrapperClassName, labelClassName, descriptionClassName, labelWrapperClassName, }: React.PropsWithChildren<RadioGroupItemProps>): JSX_2.Element;
|
|
@@ -650,7 +694,7 @@ declare const SearchSize: {
|
|
|
650
694
|
LARGE: string;
|
|
651
695
|
};
|
|
652
696
|
|
|
653
|
-
export declare function Select({ value, options, onSelect: propsOnSelect, disabled, readOnly, mode, placeholder, inputPlaceholder, emptyState, triggerClassName, triggerWrapperClassName, badgeClassName, badgeVariant, searchable, toggleIcon, dir, variant, iconPosition, selectionIndicator, onSearchChange, ...rest }: SelectProps): JSX_2.Element;
|
|
697
|
+
export declare function Select({ value, options, onSelect: propsOnSelect, disabled, readOnly, mode, placeholder, inputPlaceholder, emptyState, triggerClassName, triggerWrapperClassName, badgeClassName, badgeVariant, searchable, toggleIcon, dir, variant, iconPosition, selectionIndicator, onSearchChange, renderValue, ...rest }: SelectProps): JSX_2.Element;
|
|
654
698
|
|
|
655
699
|
declare const SELECT_MODE: {
|
|
656
700
|
SINGLE: string;
|
|
@@ -905,6 +949,8 @@ export declare const typographyVariants: (props?: ({
|
|
|
905
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;
|
|
906
950
|
} & ClassProp) | undefined) => string;
|
|
907
951
|
|
|
952
|
+
declare type UseCarouselParameters = Parameters<typeof default_2>;
|
|
953
|
+
|
|
908
954
|
/**
|
|
909
955
|
* This hook is used to get the merged form context: react-hook-form context and the FormProvider custom context
|
|
910
956
|
* @returns The form context and the react-hook-form context
|