@boriaui/react 0.1.0 → 0.1.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/components/badge.d.ts +3 -3
- package/dist/components/button.d.ts +3 -3
- package/dist/components/calendar.js +7 -7
- package/dist/components/collapsible.d.ts +4 -4
- package/dist/components/command.d.ts +7 -7
- package/dist/components/empty.d.ts +9 -9
- package/dist/components/field.d.ts +11 -11
- package/dist/components/input-group.d.ts +3 -3
- package/dist/components/item.d.ts +4 -4
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/popover.js +1 -1
- package/dist/components/resizable.d.ts +6 -6
- package/dist/components/sidebar.d.ts +2 -2
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/toaster.d.ts +2 -2
- package/dist/components/toggle-group.d.ts +3 -3
- package/dist/components/toggle.d.ts +3 -3
- package/package.json +9 -7
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/badge.d.ts
|
|
6
6
|
declare const badgeVariants: (props?: ({
|
|
7
|
-
variant?: "default" | "destructive" | "
|
|
8
|
-
} &
|
|
7
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
9
9
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
|
|
10
10
|
declare function Badge({
|
|
11
11
|
className,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/button.d.ts
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
|
-
variant?: "
|
|
7
|
+
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
8
8
|
size?: "default" | "sm" | "lg" | "icon" | "xl" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
10
10
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
11
11
|
asChild?: boolean;
|
|
12
12
|
}
|
|
@@ -24,10 +24,10 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
|
|
|
24
24
|
months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),
|
|
25
25
|
month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
|
|
26
26
|
nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),
|
|
27
|
-
button_previous: cn(buttonVariants({ variant: buttonVariant }), "h-
|
|
28
|
-
button_next: cn(buttonVariants({ variant: buttonVariant }), "h-
|
|
29
|
-
month_caption: cn("flex h-
|
|
30
|
-
dropdowns: cn("flex h-
|
|
27
|
+
button_previous: cn(buttonVariants({ variant: buttonVariant }), "h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50", defaultClassNames.button_previous),
|
|
28
|
+
button_next: cn(buttonVariants({ variant: buttonVariant }), "h-(--cell-size) w-(--cell-size) select-none p-0 aria-disabled:opacity-50", defaultClassNames.button_next),
|
|
29
|
+
month_caption: cn("flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)", defaultClassNames.month_caption),
|
|
30
|
+
dropdowns: cn("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns),
|
|
31
31
|
dropdown_root: cn("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border", defaultClassNames.dropdown_root),
|
|
32
32
|
dropdown: cn("bg-popover absolute inset-0 opacity-0", defaultClassNames.dropdown),
|
|
33
33
|
caption_label: cn("select-none font-medium", captionLayout === "label" ? "text-sm" : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5", defaultClassNames.caption_label),
|
|
@@ -35,7 +35,7 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
|
|
|
35
35
|
weekdays: cn("flex", defaultClassNames.weekdays),
|
|
36
36
|
weekday: cn("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal", defaultClassNames.weekday),
|
|
37
37
|
week: cn("mt-2 flex w-full", defaultClassNames.week),
|
|
38
|
-
week_number_header: cn("w-
|
|
38
|
+
week_number_header: cn("w-(--cell-size) select-none", defaultClassNames.week_number_header),
|
|
39
39
|
week_number: cn("text-muted-foreground select-none text-[0.8rem]", defaultClassNames.week_number),
|
|
40
40
|
day: cn("group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md", defaultClassNames.day),
|
|
41
41
|
range_start: cn("bg-accent rounded-l-md", defaultClassNames.range_start),
|
|
@@ -75,7 +75,7 @@ function Calendar({ className, classNames, showOutsideDays = true, captionLayout
|
|
|
75
75
|
return /* @__PURE__ */ jsx("td", {
|
|
76
76
|
...props$1,
|
|
77
77
|
children: /* @__PURE__ */ jsx("div", {
|
|
78
|
-
className: "flex size-
|
|
78
|
+
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
79
79
|
children
|
|
80
80
|
})
|
|
81
81
|
});
|
|
@@ -100,7 +100,7 @@ function CalendarDayButton({ className, day, modifiers,...props }) {
|
|
|
100
100
|
"data-range-start": modifiers.range_start,
|
|
101
101
|
"data-range-end": modifiers.range_end,
|
|
102
102
|
"data-range-middle": modifiers.range_middle,
|
|
103
|
-
className: cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-
|
|
103
|
+
className: cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-(--cell-size) flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className),
|
|
104
104
|
...props
|
|
105
105
|
});
|
|
106
106
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react5 from "react";
|
|
2
2
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
3
3
|
|
|
4
4
|
//#region src/components/collapsible.d.ts
|
|
5
|
-
declare const Collapsible:
|
|
6
|
-
declare const CollapsibleTrigger:
|
|
7
|
-
declare const CollapsibleContent:
|
|
5
|
+
declare const Collapsible: react5.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & react5.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
declare const CollapsibleTrigger: react5.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & react5.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const CollapsibleContent: react5.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & react5.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
@@ -8,7 +8,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
8
8
|
ref?: React.Ref<HTMLDivElement>;
|
|
9
9
|
} & {
|
|
10
10
|
asChild?: boolean;
|
|
11
|
-
}, "
|
|
11
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
12
12
|
label?: string;
|
|
13
13
|
shouldFilter?: boolean;
|
|
14
14
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -27,7 +27,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
27
27
|
ref?: React.Ref<HTMLInputElement>;
|
|
28
28
|
} & {
|
|
29
29
|
asChild?: boolean;
|
|
30
|
-
}, "
|
|
30
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
31
31
|
value?: string;
|
|
32
32
|
onValueChange?: (search: string) => void;
|
|
33
33
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -37,7 +37,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
37
37
|
ref?: React.Ref<HTMLDivElement>;
|
|
38
38
|
} & {
|
|
39
39
|
asChild?: boolean;
|
|
40
|
-
}, "
|
|
40
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
41
41
|
label?: string;
|
|
42
42
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
43
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -46,14 +46,14 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
46
46
|
ref?: React.Ref<HTMLDivElement>;
|
|
47
47
|
} & {
|
|
48
48
|
asChild?: boolean;
|
|
49
|
-
}, "
|
|
49
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
50
50
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
51
51
|
children?: React.ReactNode;
|
|
52
52
|
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
53
53
|
ref?: React.Ref<HTMLDivElement>;
|
|
54
54
|
} & {
|
|
55
55
|
asChild?: boolean;
|
|
56
|
-
}, "
|
|
56
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
57
57
|
heading?: React.ReactNode;
|
|
58
58
|
value?: string;
|
|
59
59
|
forceMount?: boolean;
|
|
@@ -62,7 +62,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
62
62
|
ref?: React.Ref<HTMLDivElement>;
|
|
63
63
|
} & {
|
|
64
64
|
asChild?: boolean;
|
|
65
|
-
}, "
|
|
65
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
66
66
|
alwaysRender?: boolean;
|
|
67
67
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
68
68
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
@@ -71,7 +71,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
71
71
|
ref?: React.Ref<HTMLDivElement>;
|
|
72
72
|
} & {
|
|
73
73
|
asChild?: boolean;
|
|
74
|
-
}, "
|
|
74
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
75
75
|
disabled?: boolean;
|
|
76
76
|
onSelect?: (value: string) => void;
|
|
77
77
|
value?: string;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react12 from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as class_variance_authority_types3 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region src/components/empty.d.ts
|
|
6
6
|
declare function Empty({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<"div">):
|
|
9
|
+
}: React.ComponentProps<"div">): react12.JSX.Element;
|
|
10
10
|
declare function EmptyHeader({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<"div">):
|
|
13
|
+
}: React.ComponentProps<"div">): react12.JSX.Element;
|
|
14
14
|
declare const emptyMediaVariants: (props?: ({
|
|
15
15
|
variant?: "default" | "icon" | null | undefined;
|
|
16
|
-
} &
|
|
16
|
+
} & class_variance_authority_types3.ClassProp) | undefined) => string;
|
|
17
17
|
declare function EmptyMedia({
|
|
18
18
|
className,
|
|
19
19
|
variant,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>):
|
|
21
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): react12.JSX.Element;
|
|
22
22
|
declare function EmptyTitle({
|
|
23
23
|
className,
|
|
24
24
|
...props
|
|
25
|
-
}: React.ComponentProps<"div">):
|
|
25
|
+
}: React.ComponentProps<"div">): react12.JSX.Element;
|
|
26
26
|
declare function EmptyDescription({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<"p">):
|
|
29
|
+
}: React.ComponentProps<"p">): react12.JSX.Element;
|
|
30
30
|
declare function EmptyContent({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<"div">):
|
|
33
|
+
}: React.ComponentProps<"div">): react12.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Label } from "./label.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react19 from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types5 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -7,18 +7,18 @@ import * as class_variance_authority_types5 from "class-variance-authority/types
|
|
|
7
7
|
declare function FieldSet({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<"fieldset">):
|
|
10
|
+
}: React.ComponentProps<"fieldset">): react19.JSX.Element;
|
|
11
11
|
declare function FieldLegend({
|
|
12
12
|
className,
|
|
13
13
|
variant,
|
|
14
14
|
...props
|
|
15
15
|
}: React.ComponentProps<"legend"> & {
|
|
16
16
|
variant?: "legend" | "label";
|
|
17
|
-
}):
|
|
17
|
+
}): react19.JSX.Element;
|
|
18
18
|
declare function FieldGroup({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<"div">):
|
|
21
|
+
}: React.ComponentProps<"div">): react19.JSX.Element;
|
|
22
22
|
declare const fieldVariants: (props?: ({
|
|
23
23
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
24
24
|
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
@@ -26,30 +26,30 @@ declare function Field({
|
|
|
26
26
|
className,
|
|
27
27
|
orientation,
|
|
28
28
|
...props
|
|
29
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>):
|
|
29
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react19.JSX.Element;
|
|
30
30
|
declare function FieldContent({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React.ComponentProps<"div">):
|
|
33
|
+
}: React.ComponentProps<"div">): react19.JSX.Element;
|
|
34
34
|
declare function FieldLabel({
|
|
35
35
|
className,
|
|
36
36
|
...props
|
|
37
|
-
}: React.ComponentProps<typeof Label>):
|
|
37
|
+
}: React.ComponentProps<typeof Label>): react19.JSX.Element;
|
|
38
38
|
declare function FieldTitle({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<"div">):
|
|
41
|
+
}: React.ComponentProps<"div">): react19.JSX.Element;
|
|
42
42
|
declare function FieldDescription({
|
|
43
43
|
className,
|
|
44
44
|
...props
|
|
45
|
-
}: React.ComponentProps<"p">):
|
|
45
|
+
}: React.ComponentProps<"p">): react19.JSX.Element;
|
|
46
46
|
declare function FieldSeparator({
|
|
47
47
|
children,
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
50
|
}: React.ComponentProps<"div"> & {
|
|
51
51
|
children?: React.ReactNode;
|
|
52
|
-
}):
|
|
52
|
+
}): react19.JSX.Element;
|
|
53
53
|
declare function FieldError({
|
|
54
54
|
className,
|
|
55
55
|
children,
|
|
@@ -59,6 +59,6 @@ declare function FieldError({
|
|
|
59
59
|
errors?: Array<{
|
|
60
60
|
message?: string;
|
|
61
61
|
} | undefined>;
|
|
62
|
-
}):
|
|
62
|
+
}): react19.JSX.Element | null;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button } from "./button.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types6 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/input-group.d.ts
|
|
7
7
|
declare function InputGroup({
|
|
@@ -10,7 +10,7 @@ declare function InputGroup({
|
|
|
10
10
|
}: React.ComponentProps<"div">): React.JSX.Element;
|
|
11
11
|
declare const inputGroupAddonVariants: (props?: ({
|
|
12
12
|
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
13
|
-
} &
|
|
13
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
14
14
|
declare function InputGroupAddon({
|
|
15
15
|
className,
|
|
16
16
|
align,
|
|
@@ -18,7 +18,7 @@ declare function InputGroupAddon({
|
|
|
18
18
|
}: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
|
|
19
19
|
declare const inputGroupButtonVariants: (props?: ({
|
|
20
20
|
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
21
|
-
} &
|
|
21
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
22
22
|
declare function InputGroupButton({
|
|
23
23
|
className,
|
|
24
24
|
type,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Separator } from "./separator.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types10 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/item.d.ts
|
|
7
7
|
declare function ItemGroup({
|
|
@@ -15,7 +15,7 @@ declare function ItemSeparator({
|
|
|
15
15
|
declare const itemVariants: (props?: ({
|
|
16
16
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
17
17
|
size?: "default" | "sm" | null | undefined;
|
|
18
|
-
} &
|
|
18
|
+
} & class_variance_authority_types10.ClassProp) | undefined) => string;
|
|
19
19
|
declare function Item({
|
|
20
20
|
className,
|
|
21
21
|
variant,
|
|
@@ -26,8 +26,8 @@ declare function Item({
|
|
|
26
26
|
asChild?: boolean;
|
|
27
27
|
}): React.JSX.Element;
|
|
28
28
|
declare const itemMediaVariants: (props?: ({
|
|
29
|
-
variant?: "
|
|
30
|
-
} &
|
|
29
|
+
variant?: "image" | "default" | "icon" | null | undefined;
|
|
30
|
+
} & class_variance_authority_types10.ClassProp) | undefined) => string;
|
|
31
31
|
declare function ItemMedia({
|
|
32
32
|
className,
|
|
33
33
|
variant,
|
package/dist/components/kbd.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react30 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/kbd.d.ts
|
|
4
4
|
declare function Kbd({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<"kbd">):
|
|
7
|
+
}: React.ComponentProps<"kbd">): react30.JSX.Element;
|
|
8
8
|
declare function KbdGroup({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<"div">):
|
|
11
|
+
}: React.ComponentProps<"div">): react30.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Kbd, KbdGroup };
|
|
@@ -14,7 +14,7 @@ const PopoverContent = React.forwardRef(({ className, align = "center", sideOffs
|
|
|
14
14
|
ref,
|
|
15
15
|
align,
|
|
16
16
|
sideOffset,
|
|
17
|
-
className: cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-
|
|
17
|
+
className: cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-(--radix-popover-content-transform-origin)", className),
|
|
18
18
|
...props
|
|
19
19
|
}) }));
|
|
20
20
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react0 from "react";
|
|
2
2
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
3
3
|
|
|
4
4
|
//#region src/components/resizable.d.ts
|
|
5
5
|
declare const ResizablePanelGroup: ({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) =>
|
|
9
|
-
declare const ResizablePanel:
|
|
8
|
+
}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => react0.JSX.Element;
|
|
9
|
+
declare const ResizablePanel: react0.ForwardRefExoticComponent<Omit<react0.HTMLAttributes<HTMLButtonElement | HTMLElement | HTMLDivElement | HTMLHeadingElement | HTMLParagraphElement | HTMLTextAreaElement | HTMLOListElement | HTMLLIElement | HTMLAnchorElement | HTMLSpanElement | HTMLImageElement | HTMLLabelElement | HTMLObjectElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableCaptionElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLFormElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLInputElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMenuElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPictureElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSelectElement | HTMLSlotElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTemplateElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLUListElement | HTMLVideoElement>, "id" | "onResize"> & {
|
|
10
10
|
className?: string;
|
|
11
11
|
collapsedSize?: number | undefined;
|
|
12
12
|
collapsible?: boolean | undefined;
|
|
@@ -21,14 +21,14 @@ declare const ResizablePanel: react26.ForwardRefExoticComponent<Omit<react26.HTM
|
|
|
21
21
|
style?: object;
|
|
22
22
|
tagName?: keyof HTMLElementTagNameMap | undefined;
|
|
23
23
|
} & {
|
|
24
|
-
children?:
|
|
25
|
-
} &
|
|
24
|
+
children?: react0.ReactNode | undefined;
|
|
25
|
+
} & react0.RefAttributes<ResizablePrimitive.ImperativePanelHandle>>;
|
|
26
26
|
declare const ResizableHandle: ({
|
|
27
27
|
withHandle,
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
30
|
}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
31
31
|
withHandle?: boolean;
|
|
32
|
-
}) =>
|
|
32
|
+
}) => react0.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
|
|
@@ -3,7 +3,7 @@ import { TooltipContent } from "./tooltip.js";
|
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import * as _radix_ui_react_separator0 from "@radix-ui/react-separator";
|
|
6
|
-
import * as
|
|
6
|
+
import * as class_variance_authority_types4 from "class-variance-authority/types";
|
|
7
7
|
|
|
8
8
|
//#region src/components/sidebar.d.ts
|
|
9
9
|
declare const SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
@@ -52,7 +52,7 @@ declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<React.Clas
|
|
|
52
52
|
} & VariantProps<(props?: ({
|
|
53
53
|
variant?: "default" | "outline" | null | undefined;
|
|
54
54
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
55
|
-
} &
|
|
55
|
+
} & class_variance_authority_types4.ClassProp) | undefined) => string>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
56
56
|
declare const SidebarMenuAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
57
57
|
asChild?: boolean;
|
|
58
58
|
showOnHover?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react11 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/skeleton.d.ts
|
|
4
4
|
declare function Skeleton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.HTMLAttributes<HTMLDivElement>):
|
|
7
|
+
}: React.HTMLAttributes<HTMLDivElement>): react11.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Skeleton };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react18 from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/components/spinner.d.ts
|
|
4
4
|
declare function Spinner({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<"svg">):
|
|
7
|
+
}: React.ComponentProps<"svg">): react18.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Spinner };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react29 from "react";
|
|
2
2
|
import { Toaster as Toaster$1 } from "sonner";
|
|
3
3
|
|
|
4
4
|
//#region src/components/toaster.d.ts
|
|
5
5
|
type ToasterProps = React.ComponentProps<typeof Toaster$1>;
|
|
6
6
|
declare const Toaster: ({
|
|
7
7
|
...props
|
|
8
|
-
}: ToasterProps) =>
|
|
8
|
+
}: ToasterProps) => react29.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Toaster };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types8 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toggle-group.d.ts
|
|
7
7
|
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
8
8
|
variant?: "default" | "outline" | null | undefined;
|
|
9
9
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
12
12
|
variant?: "default" | "outline" | null | undefined;
|
|
13
13
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
14
|
-
} &
|
|
14
|
+
} & class_variance_authority_types8.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { ToggleGroup, ToggleGroupItem };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types12 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/components/toggle.d.ts
|
|
7
7
|
declare const toggleVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "outline" | null | undefined;
|
|
9
9
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
10
|
-
} &
|
|
10
|
+
} & class_variance_authority_types12.ClassProp) | undefined) => string;
|
|
11
11
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
12
12
|
variant?: "default" | "outline" | null | undefined;
|
|
13
13
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
14
|
-
} &
|
|
14
|
+
} & class_variance_authority_types12.ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Toggle, toggleVariants };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boriaui/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Boria UI — React primitives",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Burhan Aghazada",
|
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
"build": "tsdown",
|
|
48
48
|
"check-types": "tsc --noEmit",
|
|
49
49
|
"test": "vitest run",
|
|
50
|
-
"test:watch": "vitest"
|
|
50
|
+
"test:watch": "vitest",
|
|
51
|
+
"lint:pkg": "publint --strict && attw --pack . --profile esm-only"
|
|
51
52
|
},
|
|
52
53
|
"dependencies": {
|
|
53
54
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
@@ -100,20 +101,21 @@
|
|
|
100
101
|
}
|
|
101
102
|
},
|
|
102
103
|
"devDependencies": {
|
|
103
|
-
"react-day-picker": "^10.0.2",
|
|
104
|
-
"date-fns": "^4.4.0",
|
|
105
|
-
"cmdk": "^1.1.1",
|
|
106
|
-
"react-resizable-panels": "^3.0.5",
|
|
107
|
-
"sonner": "^2.0.7",
|
|
108
104
|
"@testing-library/jest-dom": "^6.6.0",
|
|
109
105
|
"@testing-library/react": "^16.3.0",
|
|
110
106
|
"@testing-library/user-event": "^14.6.1",
|
|
111
107
|
"@types/node": "^22.0.0",
|
|
112
108
|
"@types/react": "^19.0.0",
|
|
113
109
|
"@types/react-dom": "^19.0.0",
|
|
110
|
+
"axe-core": "^4.10.0",
|
|
111
|
+
"cmdk": "^1.1.1",
|
|
112
|
+
"date-fns": "^4.4.0",
|
|
114
113
|
"jsdom": "^26.0.0",
|
|
115
114
|
"react": "^19.0.0",
|
|
115
|
+
"react-day-picker": "^10.0.2",
|
|
116
116
|
"react-dom": "^19.0.0",
|
|
117
|
+
"react-resizable-panels": "^3.0.5",
|
|
118
|
+
"sonner": "^2.0.7",
|
|
117
119
|
"tsdown": "^0.15.0",
|
|
118
120
|
"typescript": "^5.9.0",
|
|
119
121
|
"vitest": "^3.2.0"
|