@clidey/ux 0.9.0 → 0.11.0
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 +138 -0
- package/dist/index.js +2094 -470
- package/dist/styles.css +1 -1
- package/package.json +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,12 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
7
7
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
8
8
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
9
9
|
import * as React_2 from 'react';
|
|
10
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
11
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
12
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
13
|
+
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
10
14
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
15
|
+
import { toast } from 'sonner';
|
|
11
16
|
import { ToasterProps } from 'sonner';
|
|
12
17
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
13
18
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -169,6 +174,128 @@ export declare function PopoverContent({ className, align, sideOffset, ...props
|
|
|
169
174
|
|
|
170
175
|
export declare function PopoverTrigger({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Trigger>): JSX.Element;
|
|
171
176
|
|
|
177
|
+
export declare function ScrollArea({ className, children, ...props }: React_2.ComponentProps<typeof ScrollAreaPrimitive.Root>): JSX.Element;
|
|
178
|
+
|
|
179
|
+
export declare function Select({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Root>): JSX.Element;
|
|
180
|
+
|
|
181
|
+
export declare function SelectContent({ className, children, position, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Content>): JSX.Element;
|
|
182
|
+
|
|
183
|
+
export declare function SelectGroup({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Group>): JSX.Element;
|
|
184
|
+
|
|
185
|
+
export declare function SelectItem({ className, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Item>): JSX.Element;
|
|
186
|
+
|
|
187
|
+
export declare function SelectLabel({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Label>): JSX.Element;
|
|
188
|
+
|
|
189
|
+
export declare function SelectTrigger({ className, size, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
190
|
+
size?: "sm" | "default";
|
|
191
|
+
}): JSX.Element;
|
|
192
|
+
|
|
193
|
+
export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Value>): JSX.Element;
|
|
194
|
+
|
|
195
|
+
export declare function Separator({ className, orientation, decorative, ...props }: React_2.ComponentProps<typeof SeparatorPrimitive.Root>): JSX.Element;
|
|
196
|
+
|
|
197
|
+
export declare function Sheet({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Root>): JSX.Element;
|
|
198
|
+
|
|
199
|
+
export declare function SheetContent({ className, children, side, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
200
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
201
|
+
}): JSX.Element;
|
|
202
|
+
|
|
203
|
+
export declare function SheetDescription({ className, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Description>): JSX.Element;
|
|
204
|
+
|
|
205
|
+
export declare function SheetFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
206
|
+
|
|
207
|
+
export declare function SheetHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
208
|
+
|
|
209
|
+
export declare function SheetTitle({ className, ...props }: React_2.ComponentProps<typeof SheetPrimitive.Title>): JSX.Element;
|
|
210
|
+
|
|
211
|
+
export declare function SheetTrigger({ ...props }: React_2.ComponentProps<typeof SheetPrimitive.Trigger>): JSX.Element;
|
|
212
|
+
|
|
213
|
+
export declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React_2.ComponentProps<"div"> & {
|
|
214
|
+
side?: "left" | "right";
|
|
215
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
216
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
217
|
+
}): JSX.Element;
|
|
218
|
+
|
|
219
|
+
export declare function SidebarContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
220
|
+
|
|
221
|
+
declare type SidebarContextProps = {
|
|
222
|
+
state: "expanded" | "collapsed";
|
|
223
|
+
open: boolean;
|
|
224
|
+
setOpen: (open: boolean) => void;
|
|
225
|
+
openMobile: boolean;
|
|
226
|
+
setOpenMobile: (open: boolean) => void;
|
|
227
|
+
isMobile: boolean;
|
|
228
|
+
toggleSidebar: () => void;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export declare function SidebarFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
232
|
+
|
|
233
|
+
export declare function SidebarGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
234
|
+
|
|
235
|
+
export declare function SidebarGroupAction({ className, asChild, ...props }: React_2.ComponentProps<"button"> & {
|
|
236
|
+
asChild?: boolean;
|
|
237
|
+
}): JSX.Element;
|
|
238
|
+
|
|
239
|
+
export declare function SidebarGroupContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
240
|
+
|
|
241
|
+
export declare function SidebarGroupLabel({ className, asChild, ...props }: React_2.ComponentProps<"div"> & {
|
|
242
|
+
asChild?: boolean;
|
|
243
|
+
}): JSX.Element;
|
|
244
|
+
|
|
245
|
+
export declare function SidebarHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
246
|
+
|
|
247
|
+
export declare function SidebarInput({ className, ...props }: React_2.ComponentProps<typeof Input>): JSX.Element;
|
|
248
|
+
|
|
249
|
+
export declare function SidebarInset({ className, ...props }: React_2.ComponentProps<"main">): JSX.Element;
|
|
250
|
+
|
|
251
|
+
export declare function SidebarMenu({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
|
|
252
|
+
|
|
253
|
+
export declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React_2.ComponentProps<"button"> & {
|
|
254
|
+
asChild?: boolean;
|
|
255
|
+
showOnHover?: boolean;
|
|
256
|
+
}): JSX.Element;
|
|
257
|
+
|
|
258
|
+
export declare function SidebarMenuBadge({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
259
|
+
|
|
260
|
+
export declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React_2.ComponentProps<"button"> & {
|
|
261
|
+
asChild?: boolean;
|
|
262
|
+
isActive?: boolean;
|
|
263
|
+
tooltip?: string | React_2.ComponentProps<typeof TooltipContent>;
|
|
264
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): JSX.Element;
|
|
265
|
+
|
|
266
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
267
|
+
variant?: "default" | "outline" | null | undefined;
|
|
268
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
269
|
+
} & ClassProp) | undefined) => string;
|
|
270
|
+
|
|
271
|
+
export declare function SidebarMenuItem({ className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
|
|
272
|
+
|
|
273
|
+
export declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React_2.ComponentProps<"div"> & {
|
|
274
|
+
showIcon?: boolean;
|
|
275
|
+
}): JSX.Element;
|
|
276
|
+
|
|
277
|
+
export declare function SidebarMenuSub({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
|
|
278
|
+
|
|
279
|
+
export declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React_2.ComponentProps<"a"> & {
|
|
280
|
+
asChild?: boolean;
|
|
281
|
+
size?: "sm" | "md";
|
|
282
|
+
isActive?: boolean;
|
|
283
|
+
}): JSX.Element;
|
|
284
|
+
|
|
285
|
+
export declare function SidebarMenuSubItem({ className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
|
|
286
|
+
|
|
287
|
+
export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React_2.ComponentProps<"div"> & {
|
|
288
|
+
defaultOpen?: boolean;
|
|
289
|
+
open?: boolean;
|
|
290
|
+
onOpenChange?: (open: boolean) => void;
|
|
291
|
+
}): JSX.Element;
|
|
292
|
+
|
|
293
|
+
export declare function SidebarRail({ className, ...props }: React_2.ComponentProps<"button">): JSX.Element;
|
|
294
|
+
|
|
295
|
+
export declare function SidebarSeparator({ className, ...props }: React_2.ComponentProps<typeof Separator>): JSX.Element;
|
|
296
|
+
|
|
297
|
+
export declare function SidebarTrigger({ className, onClick, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
|
|
298
|
+
|
|
172
299
|
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
173
300
|
|
|
174
301
|
export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
|
|
@@ -203,6 +330,13 @@ declare type ThemeProviderProps = {
|
|
|
203
330
|
storageKey?: string;
|
|
204
331
|
};
|
|
205
332
|
|
|
333
|
+
declare type ThemeProviderState = {
|
|
334
|
+
theme: Theme;
|
|
335
|
+
setTheme: (theme: Theme) => void;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
export { toast }
|
|
339
|
+
|
|
206
340
|
export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
|
|
207
341
|
|
|
208
342
|
export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
|
|
@@ -213,4 +347,8 @@ export declare function TooltipProvider({ delayDuration, ...props }: React_2.Com
|
|
|
213
347
|
|
|
214
348
|
export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element;
|
|
215
349
|
|
|
350
|
+
export declare function useSidebar(): SidebarContextProps;
|
|
351
|
+
|
|
352
|
+
export declare const useTheme: () => ThemeProviderState;
|
|
353
|
+
|
|
216
354
|
export { }
|