@pebble-software/bonsai 0.2.0 → 0.3.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/README.md +33 -6
- package/dist/chunks/builder.meta-B7Y9M7Ab.js.map +1 -1
- package/dist/chunks/{create-renderer-C4nV9RV6.js → create-renderer-kgClEYyp.js} +55 -55
- package/dist/chunks/create-renderer-kgClEYyp.js.map +1 -0
- package/dist/chunks/{render-shared-Cwb527d4.js → render-shared-CrG0OFhJ.js} +2 -2
- package/dist/chunks/render-shared-CrG0OFhJ.js.map +1 -0
- package/dist/classes.d.ts +33 -0
- package/dist/classes.js +18 -0
- package/dist/classes.js.map +1 -0
- package/dist/classes.json +1 -0
- package/dist/core.js +3 -3
- package/dist/index.css +8 -0
- package/dist/index.js +244 -189
- package/dist/index.js.map +1 -1
- package/dist/lib/ast/class-names.d.ts +13 -0
- package/dist/lib/registry/json-schema-to-zod.d.ts +2 -2
- package/dist/library/schemas/src/bonsai.schema.d.ts +1 -2
- package/dist/presets/signature.js +1 -1
- package/dist/styles/css/theme.css +8 -0
- package/package.json +8 -4
- package/dist/chunks/create-renderer-C4nV9RV6.js.map +0 -1
- package/dist/chunks/render-shared-Cwb527d4.js.map +0 -1
- package/dist/components/ui/alert-dialog.d.ts +0 -23
- package/dist/components/ui/breadcrumb.d.ts +0 -10
- package/dist/components/ui/combobox.d.ts +0 -31
- package/dist/components/ui/command.d.ts +0 -23
- package/dist/components/ui/dialog.d.ts +0 -23
- package/dist/components/ui/drawer.d.ts +0 -22
- package/dist/components/ui/dropdown-menu.d.ts +0 -29
- package/dist/components/ui/form.d.ts +0 -24
- package/dist/components/ui/popover.d.ts +0 -9
- package/dist/components/ui/scroll-area.d.ts +0 -13
- package/dist/components/ui/sidebar.d.ts +0 -70
- package/dist/components/ui/toast.d.ts +0 -46
- package/dist/components/ui/tooltip.d.ts +0 -15
- package/dist/hooks/haptics.d.ts +0 -8
- package/dist/hooks/use-mobile.d.ts +0 -1
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare const Combobox: typeof ComboboxPrimitive.Root;
|
|
4
|
-
declare function ComboboxValue({ ...props }: ComboboxPrimitive.Value.Props): React.JSX.Element;
|
|
5
|
-
declare function ComboboxTriggerIcon({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
6
|
-
declare function ComboboxTrigger({ className, children, ...props }: ComboboxPrimitive.Trigger.Props): React.JSX.Element;
|
|
7
|
-
declare function ComboboxClear({ className, render, ...props }: ComboboxPrimitive.Clear.Props): React.JSX.Element;
|
|
8
|
-
declare function ComboboxInput({ className, children, disabled, showTrigger, showClear, ...props }: ComboboxPrimitive.Input.Props & {
|
|
9
|
-
showTrigger?: boolean;
|
|
10
|
-
showClear?: boolean;
|
|
11
|
-
}): React.JSX.Element;
|
|
12
|
-
declare function ComboboxContent({ className, side, sideOffset, align, alignOffset, anchor, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, "side" | "align" | "sideOffset" | "alignOffset" | "anchor">): React.JSX.Element;
|
|
13
|
-
declare function ComboboxList({ className, ...props }: ComboboxPrimitive.List.Props): React.JSX.Element;
|
|
14
|
-
declare function ComboboxItemIndicator({ className, ...props }: ComboboxPrimitive.ItemIndicator.Props): React.JSX.Element;
|
|
15
|
-
declare function ComboboxItem({ className, children, ...props }: ComboboxPrimitive.Item.Props): React.JSX.Element;
|
|
16
|
-
declare function ComboboxGroup({ className, ...props }: ComboboxPrimitive.Group.Props): React.JSX.Element;
|
|
17
|
-
declare function ComboboxLabel({ className, ...props }: ComboboxPrimitive.GroupLabel.Props): React.JSX.Element;
|
|
18
|
-
declare function ComboboxCollection({ ...props }: ComboboxPrimitive.Collection.Props): React.JSX.Element;
|
|
19
|
-
declare function ComboboxEmpty({ className, ...props }: ComboboxPrimitive.Empty.Props): React.JSX.Element;
|
|
20
|
-
declare function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.Props): React.JSX.Element;
|
|
21
|
-
declare function ComboboxChips({ className, children, disabled, showTrigger, showClear, ...props }: React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips> & ComboboxPrimitive.Chips.Props & {
|
|
22
|
-
showTrigger?: boolean;
|
|
23
|
-
showClear?: boolean;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
}): React.JSX.Element;
|
|
26
|
-
declare function ComboboxChip({ className, children, showRemove, ...props }: ComboboxPrimitive.Chip.Props & {
|
|
27
|
-
showRemove?: boolean;
|
|
28
|
-
}): React.JSX.Element;
|
|
29
|
-
declare function ComboboxChipsInput({ className, ...props }: ComboboxPrimitive.Input.Props): React.JSX.Element;
|
|
30
|
-
declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
|
|
31
|
-
export { Combobox, ComboboxInput, ComboboxContent, ComboboxList, ComboboxItem, ComboboxItemIndicator, ComboboxGroup, ComboboxLabel, ComboboxCollection, ComboboxEmpty, ComboboxSeparator, ComboboxChips, ComboboxChip, ComboboxChipsInput, ComboboxTrigger, ComboboxTriggerIcon, ComboboxValue, ComboboxClear, useComboboxAnchor, };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
|
-
import { Dialog } from './dialog.js';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
declare const commandVariants: (props?: ({
|
|
6
|
-
raised?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
7
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
-
declare function Command({ className, raised, ...props }: React.ComponentProps<typeof CommandPrimitive> & VariantProps<typeof commandVariants>): React.JSX.Element;
|
|
9
|
-
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
|
|
10
|
-
title?: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
className?: string;
|
|
13
|
-
showCloseButton?: boolean;
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}): React.JSX.Element;
|
|
16
|
-
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): React.JSX.Element;
|
|
17
|
-
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
|
|
18
|
-
declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
|
|
19
|
-
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
|
|
20
|
-
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
|
|
21
|
-
declare function CommandItem({ className, children, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): React.JSX.Element;
|
|
22
|
-
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
23
|
-
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, commandVariants, };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare function Dialog({ ...props }: DialogPrimitive.Root.Props): React.JSX.Element;
|
|
5
|
-
declare function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props): React.JSX.Element;
|
|
6
|
-
declare function DialogPortal({ ...props }: DialogPrimitive.Portal.Props): React.JSX.Element;
|
|
7
|
-
declare function DialogClose({ className, ...props }: DialogPrimitive.Close.Props): React.JSX.Element;
|
|
8
|
-
declare function DialogOverlay({ className, ...props }: DialogPrimitive.Backdrop.Props): React.JSX.Element;
|
|
9
|
-
declare const dialogContentVariants: (props?: ({
|
|
10
|
-
size?: "sm" | "md" | "lg" | null | undefined;
|
|
11
|
-
fullscreen?: boolean | null | undefined;
|
|
12
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
-
declare function DialogContent({ className, children, showCloseButton, fullscreen, size, ...props }: DialogPrimitive.Popup.Props & {
|
|
14
|
-
showCloseButton?: boolean;
|
|
15
|
-
} & VariantProps<typeof dialogContentVariants>): React.JSX.Element;
|
|
16
|
-
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
17
|
-
declare function DialogBody({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
18
|
-
declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
|
|
19
|
-
showCloseButton?: boolean;
|
|
20
|
-
}): React.JSX.Element;
|
|
21
|
-
declare function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props): React.JSX.Element;
|
|
22
|
-
declare function DialogDescription({ className, ...props }: DialogPrimitive.Description.Props): React.JSX.Element;
|
|
23
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogBody, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, dialogContentVariants, };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Drawer as DrawerPrimitive } from '@base-ui/react/drawer';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
|
|
5
|
-
declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): React.JSX.Element;
|
|
6
|
-
declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): React.JSX.Element;
|
|
7
|
-
declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): React.JSX.Element;
|
|
8
|
-
declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Backdrop>): React.JSX.Element;
|
|
9
|
-
declare const drawerContentVariants: (props?: ({
|
|
10
|
-
variant?: "default" | "unstyled" | "inset" | null | undefined;
|
|
11
|
-
side?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
12
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
13
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
|
-
interface DrawerContentProps extends DrawerPrimitive.Popup.Props, VariantProps<typeof drawerContentVariants> {
|
|
15
|
-
showCloseButton?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare function DrawerContent({ className, children, side, size, variant, showCloseButton, ...props }: DrawerContentProps): React.JSX.Element;
|
|
18
|
-
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
19
|
-
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
20
|
-
declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): React.JSX.Element;
|
|
21
|
-
declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): React.JSX.Element;
|
|
22
|
-
export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Menu as MenuPrimitive } from '@base-ui/react/menu';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): React.JSX.Element;
|
|
4
|
-
declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): React.JSX.Element;
|
|
5
|
-
declare function DropdownMenuTrigger({ className, ...props }: MenuPrimitive.Trigger.Props): React.JSX.Element;
|
|
6
|
-
declare const dropdownMenuContentVariants: (props?: ({
|
|
7
|
-
align?: "center" | "end" | "start" | null | undefined;
|
|
8
|
-
side?: "inline-start" | "inline-end" | "left" | "right" | "top" | "bottom" | null | undefined;
|
|
9
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
-
declare function DropdownMenuContent({ alignOffset, sideOffset, align, side, className, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React.JSX.Element;
|
|
11
|
-
declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): React.JSX.Element;
|
|
12
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: MenuPrimitive.GroupLabel.Props & {
|
|
13
|
-
inset?: boolean;
|
|
14
|
-
}): React.JSX.Element;
|
|
15
|
-
declare function DropdownMenuItem({ className, inset, variant, onClick, ...props }: MenuPrimitive.Item.Props & {
|
|
16
|
-
inset?: boolean;
|
|
17
|
-
variant?: "default" | "destructive";
|
|
18
|
-
}): React.JSX.Element;
|
|
19
|
-
declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): React.JSX.Element;
|
|
20
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: MenuPrimitive.SubmenuTrigger.Props & {
|
|
21
|
-
inset?: boolean;
|
|
22
|
-
}): React.JSX.Element;
|
|
23
|
-
declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React.ComponentProps<typeof DropdownMenuContent>): React.JSX.Element;
|
|
24
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: MenuPrimitive.CheckboxItem.Props): React.JSX.Element;
|
|
25
|
-
declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): React.JSX.Element;
|
|
26
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: MenuPrimitive.RadioItem.Props): React.JSX.Element;
|
|
27
|
-
declare function DropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props): React.JSX.Element;
|
|
28
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
|
|
29
|
-
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, dropdownMenuContentVariants, };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
-
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
3
|
-
import { Label } from './label.js';
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>({ children, watch, getValues, getFieldState, setError, clearErrors, setValue, setValues, trigger, formState, resetField, reset, handleSubmit, unregister, control, register, setFocus, subscribe, }: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
6
|
-
declare function FormField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>): React.JSX.Element;
|
|
7
|
-
declare const useFormField: () => {
|
|
8
|
-
invalid: boolean;
|
|
9
|
-
isDirty: boolean;
|
|
10
|
-
isTouched: boolean;
|
|
11
|
-
isValidating: boolean;
|
|
12
|
-
error?: import('react-hook-form').FieldError;
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
formItemId: string;
|
|
16
|
-
formDescriptionId: string;
|
|
17
|
-
formMessageId: string;
|
|
18
|
-
};
|
|
19
|
-
declare function FormItem({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
20
|
-
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof Label>): React.JSX.Element;
|
|
21
|
-
declare function FormControl({ className, render, ...props }: useRender.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
22
|
-
declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
|
|
23
|
-
declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element | null;
|
|
24
|
-
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Popover as PopoverPrimitive } from '@base-ui/react/popover';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
declare function Popover({ ...props }: PopoverPrimitive.Root.Props): React.JSX.Element;
|
|
4
|
-
declare function PopoverTrigger({ ...props }: PopoverPrimitive.Trigger.Props): React.JSX.Element;
|
|
5
|
-
declare function PopoverContent({ className, align, alignOffset, side, sideOffset, ...props }: PopoverPrimitive.Popup.Props & Pick<PopoverPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React.JSX.Element;
|
|
6
|
-
declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
7
|
-
declare function PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props): React.JSX.Element;
|
|
8
|
-
declare function PopoverDescription({ className, ...props }: PopoverPrimitive.Description.Props): React.JSX.Element;
|
|
9
|
-
export { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ScrollArea as ScrollAreaPrimitive } from '@base-ui/react/scroll-area';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
declare const scrollAreaVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "ghost" | "solid" | "accent" | null | undefined;
|
|
5
|
-
orientation?: "auto" | "horizontal" | "vertical" | null | undefined;
|
|
6
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
7
|
-
rounded?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
8
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
interface ScrollAreaProps extends ScrollAreaPrimitive.Root.Props, VariantProps<typeof scrollAreaVariants> {
|
|
10
|
-
}
|
|
11
|
-
declare function ScrollArea({ className, variant, size, rounded, orientation, children, ...props }: ScrollAreaProps): import("react").JSX.Element;
|
|
12
|
-
declare function ScrollBar({ className, ...props }: ScrollAreaPrimitive.Scrollbar.Props): import("react").JSX.Element;
|
|
13
|
-
export { ScrollArea, ScrollBar, scrollAreaVariants };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
-
import { Button } from './button.js';
|
|
3
|
-
import { Input } from './input.js';
|
|
4
|
-
import { Separator } from './separator.js';
|
|
5
|
-
import { TooltipContent } from './tooltip.js';
|
|
6
|
-
import { VariantProps } from 'class-variance-authority';
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
export declare const SIDEBAR_COOKIE_NAME = "__pb_ui_sbs";
|
|
9
|
-
type SidebarContextProps = {
|
|
10
|
-
state: "expanded" | "collapsed";
|
|
11
|
-
open: boolean;
|
|
12
|
-
setOpen: (open: boolean) => void;
|
|
13
|
-
openMobile: boolean;
|
|
14
|
-
setOpenMobile: (open: boolean) => void;
|
|
15
|
-
isMobile: boolean;
|
|
16
|
-
toggleSidebar: () => void;
|
|
17
|
-
side: "left" | "right";
|
|
18
|
-
shadow: boolean;
|
|
19
|
-
variant: "default" | "floating" | "inset";
|
|
20
|
-
};
|
|
21
|
-
declare function useSidebar(): SidebarContextProps;
|
|
22
|
-
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, side, withShadow, variant, style, children, ...props }: React.ComponentProps<"div"> & {
|
|
23
|
-
side: "left" | "right";
|
|
24
|
-
withShadow: boolean;
|
|
25
|
-
defaultOpen?: boolean;
|
|
26
|
-
variant?: "default" | "floating" | "inset";
|
|
27
|
-
open?: boolean;
|
|
28
|
-
onOpenChange?: (open: boolean) => void;
|
|
29
|
-
}): React.JSX.Element;
|
|
30
|
-
declare const sidebarVariants: (props?: ({
|
|
31
|
-
variant?: "default" | "inset" | "floating" | null | undefined;
|
|
32
|
-
collapsible?: "none" | "icon" | "totalCollapse" | null | undefined;
|
|
33
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
34
|
-
interface SidebarProps extends React.ComponentProps<"div">, VariantProps<typeof sidebarVariants> {
|
|
35
|
-
side?: "left" | "right";
|
|
36
|
-
}
|
|
37
|
-
declare function Sidebar({ collapsible, className, children, ...props }: SidebarProps): React.JSX.Element;
|
|
38
|
-
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
39
|
-
declare function SidebarRail({ children, className, ...props }: React.ComponentProps<"button">): React.JSX.Element;
|
|
40
|
-
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): React.JSX.Element;
|
|
41
|
-
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): React.JSX.Element;
|
|
42
|
-
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
43
|
-
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
44
|
-
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
|
|
45
|
-
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
46
|
-
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
47
|
-
declare function SidebarGroupLabel({ className, render, ...props }: useRender.ComponentProps<"div"> & React.ComponentProps<"div">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
48
|
-
declare function SidebarGroupAction({ className, render, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button">): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
49
|
-
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
50
|
-
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
|
|
51
|
-
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
52
|
-
declare function SidebarMenuButton({ render, isActive, size, tooltip, className, children, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
|
|
53
|
-
isActive?: boolean;
|
|
54
|
-
size?: "sm" | "md" | "lg";
|
|
55
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
56
|
-
}): React.JSX.Element;
|
|
57
|
-
declare function SidebarMenuAction({ className, render, showOnHover, ...props }: useRender.ComponentProps<"button"> & React.ComponentProps<"button"> & {
|
|
58
|
-
showOnHover?: boolean;
|
|
59
|
-
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
60
|
-
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
61
|
-
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
|
|
62
|
-
showIcon?: boolean;
|
|
63
|
-
}): React.JSX.Element;
|
|
64
|
-
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
|
|
65
|
-
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
|
|
66
|
-
declare function SidebarMenuSubButton({ render, size, isActive, className, ...props }: useRender.ComponentProps<"a"> & React.ComponentProps<"a"> & {
|
|
67
|
-
size?: "sm" | "md";
|
|
68
|
-
isActive?: boolean;
|
|
69
|
-
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
70
|
-
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { IconProps } from '@tabler/icons-react';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare const toastVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "error" | "success" | "warning" | "loading" | "promise" | "info" | null | undefined;
|
|
6
|
-
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
7
|
-
raised?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
8
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
-
interface ToastActions {
|
|
10
|
-
label: React.ReactNode;
|
|
11
|
-
onClick: () => void;
|
|
12
|
-
}
|
|
13
|
-
interface ToastOptions extends VariantProps<typeof toastVariants> {
|
|
14
|
-
description?: React.ReactNode;
|
|
15
|
-
icon?: React.ElementType<IconProps> | undefined;
|
|
16
|
-
duration?: number;
|
|
17
|
-
action?: ToastActions;
|
|
18
|
-
cancel?: ToastActions;
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
21
|
-
interface PromiseToastOptions extends ToastOptions {
|
|
22
|
-
loadingOptions?: ToastOptions;
|
|
23
|
-
successOptions?: ToastOptions;
|
|
24
|
-
errorOptions?: ToastOptions;
|
|
25
|
-
}
|
|
26
|
-
declare const toast: ((message: React.ReactNode, options?: ToastOptions) => string) & {
|
|
27
|
-
success: (message: React.ReactNode, options?: ToastOptions) => string;
|
|
28
|
-
error: (message: React.ReactNode, options?: ToastOptions) => string;
|
|
29
|
-
warning: (message: React.ReactNode, options?: ToastOptions) => string;
|
|
30
|
-
info: (message: React.ReactNode, options?: ToastOptions) => string;
|
|
31
|
-
loading: (message: React.ReactNode, options?: ToastOptions) => string;
|
|
32
|
-
promise: <T>(promise: Promise<T> | (() => Promise<T>), messages: {
|
|
33
|
-
loading: React.ReactNode;
|
|
34
|
-
success: React.ReactNode | ((data: T) => React.ReactNode);
|
|
35
|
-
error: React.ReactNode | ((error: unknown) => React.ReactNode);
|
|
36
|
-
}, options?: PromiseToastOptions) => Promise<T>;
|
|
37
|
-
};
|
|
38
|
-
declare function ToastList({ className, style, }: {
|
|
39
|
-
className?: string;
|
|
40
|
-
style?: React.CSSProperties;
|
|
41
|
-
}): React.JSX.Element;
|
|
42
|
-
declare const Toaster: {
|
|
43
|
-
({ className, style, ...props }: React.ComponentProps<typeof ToastList>): React.JSX.Element;
|
|
44
|
-
displayName: string;
|
|
45
|
-
};
|
|
46
|
-
export { Toaster, ToastList, toast };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
|
|
2
|
-
declare function TooltipProvider({ delay, closeDelay, ...props }: TooltipPrimitive.Provider.Props): import("react").JSX.Element;
|
|
3
|
-
declare function Tooltip({ delay, closeDelay, ...props }: TooltipPrimitive.Root.Props & {
|
|
4
|
-
delay?: number;
|
|
5
|
-
closeDelay?: number;
|
|
6
|
-
}): import("react").JSX.Element;
|
|
7
|
-
declare function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props): import("react").JSX.Element;
|
|
8
|
-
declare const tooltipVariants: (props?: ({
|
|
9
|
-
align?: "center" | "end" | "start" | null | undefined;
|
|
10
|
-
side?: "inline-start" | "inline-end" | "left" | "right" | "top" | "bottom" | null | undefined;
|
|
11
|
-
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
-
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, withArrow, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset"> & {
|
|
13
|
-
withArrow?: boolean;
|
|
14
|
-
}): import("react").JSX.Element;
|
|
15
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, tooltipVariants, };
|
package/dist/hooks/haptics.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HapticInput } from 'web-haptics';
|
|
2
|
-
export { useWebHaptics as useHaptics } from 'web-haptics/react';
|
|
3
|
-
export declare const HAPTIC_BUTTON: HapticInput;
|
|
4
|
-
export declare const HAPTIC_TAB: HapticInput;
|
|
5
|
-
export declare const HAPTIC_SWITCH: HapticInput;
|
|
6
|
-
export declare const HAPTIC_CHECKBOX: HapticInput;
|
|
7
|
-
export declare const HAPTIC_ACCORDION: HapticInput;
|
|
8
|
-
export declare const HAPTIC_MENU_ITEM: HapticInput;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function useIsMobile(): boolean;
|