@clidey/ux 0.5.1 → 0.10.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 +118 -0
- package/dist/index.js +1132 -278
- package/dist/styles.css +1 -120
- package/dist/styles.css.d.ts +1 -0
- package/package.json +4 -5
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,10 @@ 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 SelectPrimitive from '@radix-ui/react-select';
|
|
11
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
10
12
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
13
|
+
import { toast } from 'sonner';
|
|
11
14
|
import { ToasterProps } from 'sonner';
|
|
12
15
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
13
16
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -169,6 +172,110 @@ export declare function PopoverContent({ className, align, sideOffset, ...props
|
|
|
169
172
|
|
|
170
173
|
export declare function PopoverTrigger({ ...props }: React_2.ComponentProps<typeof PopoverPrimitive.Trigger>): JSX.Element;
|
|
171
174
|
|
|
175
|
+
export declare function Select({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Root>): JSX.Element;
|
|
176
|
+
|
|
177
|
+
export declare function SelectContent({ className, children, position, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Content>): JSX.Element;
|
|
178
|
+
|
|
179
|
+
export declare function SelectGroup({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Group>): JSX.Element;
|
|
180
|
+
|
|
181
|
+
export declare function SelectItem({ className, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Item>): JSX.Element;
|
|
182
|
+
|
|
183
|
+
export declare function SelectLabel({ className, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Label>): JSX.Element;
|
|
184
|
+
|
|
185
|
+
export declare function SelectTrigger({ className, size, children, ...props }: React_2.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
186
|
+
size?: "sm" | "default";
|
|
187
|
+
}): JSX.Element;
|
|
188
|
+
|
|
189
|
+
export declare function SelectValue({ ...props }: React_2.ComponentProps<typeof SelectPrimitive.Value>): JSX.Element;
|
|
190
|
+
|
|
191
|
+
declare function Separator({ className, orientation, decorative, ...props }: React_2.ComponentProps<typeof SeparatorPrimitive.Root>): JSX.Element;
|
|
192
|
+
|
|
193
|
+
export declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React_2.ComponentProps<"div"> & {
|
|
194
|
+
side?: "left" | "right";
|
|
195
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
196
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
197
|
+
}): JSX.Element;
|
|
198
|
+
|
|
199
|
+
export declare function SidebarContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
200
|
+
|
|
201
|
+
declare type SidebarContextProps = {
|
|
202
|
+
state: "expanded" | "collapsed";
|
|
203
|
+
open: boolean;
|
|
204
|
+
setOpen: (open: boolean) => void;
|
|
205
|
+
openMobile: boolean;
|
|
206
|
+
setOpenMobile: (open: boolean) => void;
|
|
207
|
+
isMobile: boolean;
|
|
208
|
+
toggleSidebar: () => void;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export declare function SidebarFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
212
|
+
|
|
213
|
+
export declare function SidebarGroup({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
214
|
+
|
|
215
|
+
export declare function SidebarGroupAction({ className, asChild, ...props }: React_2.ComponentProps<"button"> & {
|
|
216
|
+
asChild?: boolean;
|
|
217
|
+
}): JSX.Element;
|
|
218
|
+
|
|
219
|
+
export declare function SidebarGroupContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
220
|
+
|
|
221
|
+
export declare function SidebarGroupLabel({ className, asChild, ...props }: React_2.ComponentProps<"div"> & {
|
|
222
|
+
asChild?: boolean;
|
|
223
|
+
}): JSX.Element;
|
|
224
|
+
|
|
225
|
+
export declare function SidebarHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
226
|
+
|
|
227
|
+
export declare function SidebarInput({ className, ...props }: React_2.ComponentProps<typeof Input>): JSX.Element;
|
|
228
|
+
|
|
229
|
+
export declare function SidebarInset({ className, ...props }: React_2.ComponentProps<"main">): JSX.Element;
|
|
230
|
+
|
|
231
|
+
export declare function SidebarMenu({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
|
|
232
|
+
|
|
233
|
+
export declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React_2.ComponentProps<"button"> & {
|
|
234
|
+
asChild?: boolean;
|
|
235
|
+
showOnHover?: boolean;
|
|
236
|
+
}): JSX.Element;
|
|
237
|
+
|
|
238
|
+
export declare function SidebarMenuBadge({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
|
|
239
|
+
|
|
240
|
+
export declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React_2.ComponentProps<"button"> & {
|
|
241
|
+
asChild?: boolean;
|
|
242
|
+
isActive?: boolean;
|
|
243
|
+
tooltip?: string | React_2.ComponentProps<typeof TooltipContent>;
|
|
244
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): JSX.Element;
|
|
245
|
+
|
|
246
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
247
|
+
variant?: "default" | "outline" | null | undefined;
|
|
248
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
249
|
+
} & ClassProp) | undefined) => string;
|
|
250
|
+
|
|
251
|
+
export declare function SidebarMenuItem({ className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
|
|
252
|
+
|
|
253
|
+
export declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React_2.ComponentProps<"div"> & {
|
|
254
|
+
showIcon?: boolean;
|
|
255
|
+
}): JSX.Element;
|
|
256
|
+
|
|
257
|
+
export declare function SidebarMenuSub({ className, ...props }: React_2.ComponentProps<"ul">): JSX.Element;
|
|
258
|
+
|
|
259
|
+
export declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React_2.ComponentProps<"a"> & {
|
|
260
|
+
asChild?: boolean;
|
|
261
|
+
size?: "sm" | "md";
|
|
262
|
+
isActive?: boolean;
|
|
263
|
+
}): JSX.Element;
|
|
264
|
+
|
|
265
|
+
export declare function SidebarMenuSubItem({ className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
|
|
266
|
+
|
|
267
|
+
export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React_2.ComponentProps<"div"> & {
|
|
268
|
+
defaultOpen?: boolean;
|
|
269
|
+
open?: boolean;
|
|
270
|
+
onOpenChange?: (open: boolean) => void;
|
|
271
|
+
}): JSX.Element;
|
|
272
|
+
|
|
273
|
+
export declare function SidebarRail({ className, ...props }: React_2.ComponentProps<"button">): JSX.Element;
|
|
274
|
+
|
|
275
|
+
export declare function SidebarSeparator({ className, ...props }: React_2.ComponentProps<typeof Separator>): JSX.Element;
|
|
276
|
+
|
|
277
|
+
export declare function SidebarTrigger({ className, onClick, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element;
|
|
278
|
+
|
|
172
279
|
export declare function Skeleton({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
173
280
|
|
|
174
281
|
export declare function Table({ className, ...props }: React_2.ComponentProps<"table">): JSX.Element;
|
|
@@ -203,6 +310,13 @@ declare type ThemeProviderProps = {
|
|
|
203
310
|
storageKey?: string;
|
|
204
311
|
};
|
|
205
312
|
|
|
313
|
+
declare type ThemeProviderState = {
|
|
314
|
+
theme: Theme;
|
|
315
|
+
setTheme: (theme: Theme) => void;
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
export { toast }
|
|
319
|
+
|
|
206
320
|
export declare const Toaster: ({ ...props }: ToasterProps) => JSX.Element;
|
|
207
321
|
|
|
208
322
|
export declare function Tooltip({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Root>): JSX.Element;
|
|
@@ -213,4 +327,8 @@ export declare function TooltipProvider({ delayDuration, ...props }: React_2.Com
|
|
|
213
327
|
|
|
214
328
|
export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<typeof TooltipPrimitive.Trigger>): JSX.Element;
|
|
215
329
|
|
|
330
|
+
export declare function useSidebar(): SidebarContextProps;
|
|
331
|
+
|
|
332
|
+
export declare const useTheme: () => ThemeProviderState;
|
|
333
|
+
|
|
216
334
|
export { }
|