@vritti/quantum-ui 0.1.22 → 0.1.23
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/Checkbox.js +2 -253
- package/dist/Checkbox.js.map +1 -1
- package/dist/Combination.js +3869 -0
- package/dist/Combination.js.map +1 -0
- package/dist/DataTable.d.ts +31 -0
- package/dist/DataTable.js +4989 -0
- package/dist/DataTable.js.map +1 -0
- package/dist/DatePicker.d.ts +68 -0
- package/dist/DatePicker.js +8229 -0
- package/dist/DatePicker.js.map +1 -0
- package/dist/Input.js +22 -0
- package/dist/Input.js.map +1 -0
- package/dist/Label.js +40 -0
- package/dist/Label.js.map +1 -0
- package/dist/Skeleton.d.ts +6 -0
- package/dist/Skeleton.js +18 -0
- package/dist/Skeleton.js.map +1 -0
- package/dist/TextField.js +2 -18
- package/dist/TextField.js.map +1 -1
- package/dist/assets/quantum-ui.css +22 -16
- package/dist/axios.d.ts +11 -6
- package/dist/axios.js +191 -147
- package/dist/axios.js.map +1 -1
- package/dist/check.js +15 -0
- package/dist/check.js.map +1 -0
- package/dist/components/Button.d.ts +7 -0
- package/dist/components/Card.d.ts +7 -0
- package/dist/components/Checkbox.d.ts +7 -0
- package/dist/components/DataTable.d.ts +9 -0
- package/dist/components/DataTable.js +2 -0
- package/dist/components/DataTable.js.map +1 -0
- package/dist/components/DatePicker.d.ts +9 -0
- package/dist/components/DatePicker.js +2 -0
- package/dist/components/DatePicker.js.map +1 -0
- package/dist/components/Form.d.ts +7 -0
- package/dist/components/OTPField.d.ts +7 -0
- package/dist/components/PasswordField.d.ts +7 -0
- package/dist/components/PhoneField.d.ts +7 -0
- package/dist/components/Progress.d.ts +7 -0
- package/dist/components/Skeleton.d.ts +9 -0
- package/dist/components/Skeleton.js +2 -0
- package/dist/components/Skeleton.js.map +1 -0
- package/dist/components/TextArea.d.ts +7 -0
- package/dist/components/TextField.d.ts +7 -0
- package/dist/components/ThemeToggle.d.ts +7 -0
- package/dist/components/Typography.d.ts +7 -0
- package/dist/field.js +1 -34
- package/dist/field.js.map +1 -1
- package/dist/index.d.ts +69 -38
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index5.js +5 -2
- package/dist/index5.js.map +1 -1
- package/dist/index6.js +246 -0
- package/dist/index6.js.map +1 -0
- package/dist/shadcn/shadcnField.d.ts +7 -0
- package/dist/utils/axios.d.ts +21 -6
- package/dist/utils/axios.js +1 -1
- package/package.json +20 -6
- package/dist/AuthProvider.d.ts +0 -34
- package/dist/OnboardingProvider.js +0 -113
- package/dist/OnboardingProvider.js.map +0 -1
- package/dist/context/AuthProvider.d.ts +0 -2
- package/dist/context/AuthProvider.js +0 -2
- package/dist/context/AuthProvider.js.map +0 -1
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { DayPicker } from 'react-day-picker';
|
|
2
|
+
import * as React_2 from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare function Button({
|
|
6
|
+
className,
|
|
7
|
+
variant,
|
|
8
|
+
size,
|
|
9
|
+
asChild = false,
|
|
10
|
+
...props
|
|
11
|
+
}: React_2.ComponentProps<'button'> &
|
|
12
|
+
VariantProps<typeof buttonVariants> & {
|
|
13
|
+
asChild?: boolean;
|
|
14
|
+
}) {
|
|
15
|
+
const Comp = asChild ? Slot : 'button';
|
|
16
|
+
|
|
17
|
+
return <Comp data-slot='button' className={cn(buttonVariants({ variant, size, className }))} {...props} />;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare const buttonVariants = cva(
|
|
21
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
22
|
+
{
|
|
23
|
+
variants: {
|
|
24
|
+
variant: {
|
|
25
|
+
default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90',
|
|
26
|
+
destructive:
|
|
27
|
+
'bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
|
|
28
|
+
outline:
|
|
29
|
+
'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
|
|
30
|
+
secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80',
|
|
31
|
+
ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
|
|
32
|
+
link: 'text-primary underline-offset-4 hover:underline',
|
|
33
|
+
},
|
|
34
|
+
size: {
|
|
35
|
+
default: 'h-9 px-4 py-2 has-[>svg]:px-3',
|
|
36
|
+
sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5',
|
|
37
|
+
lg: 'h-10 rounded-md px-6 has-[>svg]:px-4',
|
|
38
|
+
icon: 'size-9',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
defaultVariants: {
|
|
42
|
+
variant: 'default',
|
|
43
|
+
size: 'default',
|
|
44
|
+
},
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
declare type CalendarProps = React_2.ComponentProps<typeof DayPicker> & {
|
|
49
|
+
buttonVariant?: React_2.ComponentProps<typeof Button>["variant"]
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export declare const DatePicker: React_2.ForwardRefExoticComponent<DatePickerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
53
|
+
|
|
54
|
+
export declare interface DatePickerProps {
|
|
55
|
+
label?: string;
|
|
56
|
+
description?: React_2.ReactNode;
|
|
57
|
+
error?: string;
|
|
58
|
+
placeholder?: string;
|
|
59
|
+
value?: Date;
|
|
60
|
+
onValueChange?: (date: Date | undefined) => void;
|
|
61
|
+
open?: boolean;
|
|
62
|
+
onOpenChange?: (open: boolean) => void;
|
|
63
|
+
calendarProps?: CalendarProps;
|
|
64
|
+
className?: string;
|
|
65
|
+
id?: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { }
|