@qodo/design-system 0.4.0 → 0.5.1
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 +35 -35
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.esm.js +4916 -3925
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { PropsWithChildren } from 'react';
|
|
|
14
14
|
import * as React_2 from 'react';
|
|
15
15
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
16
16
|
import { SelectProps } from './types';
|
|
17
|
+
import { Steps as Steps_2 } from '@ark-ui/react/steps';
|
|
17
18
|
import { SubmitHandler } from 'react-hook-form';
|
|
18
19
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
19
20
|
import { TitleProps } from './types';
|
|
@@ -182,6 +183,10 @@ declare type FormProviderProps<T extends FieldValues> = PropsWithChildren<{
|
|
|
182
183
|
readOnly?: boolean;
|
|
183
184
|
}>;
|
|
184
185
|
|
|
186
|
+
declare type IndicatorProps = React.ComponentProps<typeof Steps_2.Indicator> & {
|
|
187
|
+
index: number;
|
|
188
|
+
};
|
|
189
|
+
|
|
185
190
|
export declare function Input({ className, variant, type, ...props }: InputProps): JSX_2.Element;
|
|
186
191
|
|
|
187
192
|
export declare interface InputProps extends React_2.ComponentProps<"input">, VariantProps<typeof inputVariants> {
|
|
@@ -213,6 +218,10 @@ export declare const SelectTrigger: React_2.ForwardRefExoticComponent<Omit<Selec
|
|
|
213
218
|
|
|
214
219
|
export declare const SelectValue: React_2.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React_2.RefAttributes<HTMLSpanElement>>;
|
|
215
220
|
|
|
221
|
+
declare type SeparatorProps = React.ComponentProps<typeof Steps_2.Separator> & {
|
|
222
|
+
index: number;
|
|
223
|
+
};
|
|
224
|
+
|
|
216
225
|
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX_2.Element;
|
|
217
226
|
|
|
218
227
|
export declare const spacing: {
|
|
@@ -224,6 +233,19 @@ export declare const spacing: {
|
|
|
224
233
|
readonly "2xl": "3rem";
|
|
225
234
|
};
|
|
226
235
|
|
|
236
|
+
export declare const Steps: {
|
|
237
|
+
Root: ({ className: propsClassName, step, ...rest }: React.ComponentProps<typeof Steps_2.Root>) => JSX_2.Element;
|
|
238
|
+
List: ({ className: propsClassName, ...rest }: React.ComponentProps<typeof Steps_2.List>) => JSX_2.Element;
|
|
239
|
+
Item: ({ className: propsClassName, ...rest }: React.ComponentProps<typeof Steps_2.Item>) => JSX_2.Element;
|
|
240
|
+
Trigger: ({ className: propsClassName, ...rest }: React.ComponentProps<typeof Steps_2.Trigger>) => JSX_2.Element;
|
|
241
|
+
Indicator: ({ index, className: propsClassName, ...rest }: IndicatorProps) => JSX_2.Element;
|
|
242
|
+
Separator: ({ index, className: propsClassName, ...rest }: SeparatorProps) => JSX_2.Element;
|
|
243
|
+
Content: ({ className: propsClassName, ...rest }: React.ComponentProps<typeof Steps_2.Content>) => JSX_2.Element;
|
|
244
|
+
CompletedContent: ({ className: propsClassName, ...rest }: React.ComponentProps<typeof Steps_2.CompletedContent>) => JSX_2.Element;
|
|
245
|
+
PrevTrigger: ({ className: propsClassName, ...rest }: React.ComponentProps<typeof Steps_2.PrevTrigger>) => JSX_2.Element;
|
|
246
|
+
NextTrigger: ({ className: propsClassName, ...rest }: React.ComponentProps<typeof Steps_2.NextTrigger>) => JSX_2.Element;
|
|
247
|
+
};
|
|
248
|
+
|
|
227
249
|
export declare function Switch({ className, ...props }: React_2.ComponentProps<typeof SwitchPrimitive.Root>): JSX_2.Element;
|
|
228
250
|
|
|
229
251
|
export declare function Toggle({ className, variant, size, ...props }: React_2.ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): JSX_2.Element;
|