@onesaz/ui 0.1.9 → 0.2.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/index.d.ts +51 -67
- package/dist/index.js +637 -473
- package/dist/index.js.map +1 -1
- package/package.json +2 -11
package/dist/index.d.ts
CHANGED
|
@@ -2,12 +2,6 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { Theme, AccentColor, GrayColor, RadiusPreset } from '@onesaz/tokens';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
6
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
7
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
8
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
9
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
10
|
-
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
11
5
|
|
|
12
6
|
interface ThemeProviderProps {
|
|
13
7
|
children: React.ReactNode;
|
|
@@ -42,7 +36,6 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
42
36
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
43
37
|
variant?: 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
|
|
44
38
|
size?: 'default' | 'sm' | 'lg' | 'icon';
|
|
45
|
-
asChild?: boolean;
|
|
46
39
|
}
|
|
47
40
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
48
41
|
|
|
@@ -66,66 +59,55 @@ interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
66
59
|
}
|
|
67
60
|
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
|
|
68
61
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
declare const
|
|
72
|
-
|
|
73
|
-
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
74
|
-
|
|
75
|
-
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
76
|
-
|
|
77
|
-
declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
-
declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
79
|
-
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
80
|
-
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
81
|
-
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
-
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
83
|
-
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
84
|
-
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
-
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
86
|
-
declare const SelectNamespace: React.FC<SelectPrimitive.SelectProps> & {
|
|
87
|
-
Group: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
88
|
-
Value: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
|
|
89
|
-
Trigger: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
90
|
-
Content: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
-
Label: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
92
|
-
Item: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
93
|
-
Separator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
94
|
-
ScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
-
ScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
-
};
|
|
62
|
+
interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
63
|
+
}
|
|
64
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
97
65
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
declare const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
66
|
+
interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
67
|
+
}
|
|
68
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
69
|
+
|
|
70
|
+
interface SwitchProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
71
|
+
}
|
|
72
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLInputElement>>;
|
|
73
|
+
|
|
74
|
+
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
75
|
+
orientation?: 'horizontal' | 'vertical';
|
|
76
|
+
}
|
|
77
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
|
|
79
|
+
interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
80
|
+
}
|
|
81
|
+
interface SelectOptionProps extends React.OptionHTMLAttributes<HTMLOptionElement> {
|
|
82
|
+
}
|
|
83
|
+
declare const SelectOption: React.ForwardRefExoticComponent<SelectOptionProps & React.RefAttributes<HTMLOptionElement>>;
|
|
84
|
+
interface SelectGroupProps extends React.OptgroupHTMLAttributes<HTMLOptGroupElement> {
|
|
85
|
+
}
|
|
86
|
+
declare const SelectGroup: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLOptGroupElement>>;
|
|
87
|
+
declare const SelectNamespace: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLSelectElement>> & {
|
|
88
|
+
Option: React.ForwardRefExoticComponent<SelectOptionProps & React.RefAttributes<HTMLOptionElement>>;
|
|
89
|
+
Group: React.ForwardRefExoticComponent<SelectGroupProps & React.RefAttributes<HTMLOptGroupElement>>;
|
|
110
90
|
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
91
|
+
|
|
92
|
+
interface DialogProps {
|
|
93
|
+
open?: boolean;
|
|
94
|
+
onOpenChange?: (open: boolean) => void;
|
|
95
|
+
children: React.ReactNode;
|
|
96
|
+
}
|
|
97
|
+
interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
98
|
+
onClose?: () => void;
|
|
99
|
+
}
|
|
100
|
+
declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
101
|
+
declare const DialogHeader: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
102
|
+
declare const DialogFooter: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
103
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
104
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
105
|
+
declare const DialogNamespace: React.FC<DialogProps> & {
|
|
106
|
+
Content: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
107
|
+
Header: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
108
|
+
Footer: React.FC<React.HTMLAttributes<HTMLDivElement>>;
|
|
109
|
+
Title: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
110
|
+
Description: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
129
111
|
};
|
|
130
112
|
|
|
131
113
|
interface SpinnerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -186,6 +168,8 @@ interface ComboboxProps {
|
|
|
186
168
|
disabled?: boolean;
|
|
187
169
|
className?: string;
|
|
188
170
|
}
|
|
189
|
-
declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<
|
|
171
|
+
declare const Combobox: React.ForwardRefExoticComponent<ComboboxProps & React.RefAttributes<HTMLInputElement>>;
|
|
172
|
+
|
|
173
|
+
declare const Playground: () => react_jsx_runtime.JSX.Element;
|
|
190
174
|
|
|
191
|
-
export { Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Combobox, type ComboboxOption, type ComboboxProps, DialogNamespace as Dialog,
|
|
175
|
+
export { Badge, type BadgeProps, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type CheckboxProps, Combobox, type ComboboxOption, type ComboboxProps, DialogNamespace as Dialog, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, Input, type InputProps, Label, type LabelProps, PaginationNamespace as Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious, type PaginationProps, Playground, SelectNamespace as Select, SelectGroup, type SelectGroupProps, SelectOption, type SelectOptionProps, type SelectProps, Separator, type SeparatorProps, Spinner, type SpinnerProps, Switch, type SwitchProps, TableNamespace as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Textarea, type TextareaProps, ThemeContext, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, cn, useTheme };
|