@glasshome/ui 0.5.2 → 0.5.4

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.
@@ -2,25 +2,73 @@ import { type VariantProps } from "cva";
2
2
  import { type Component, type ComponentProps } from "solid-js";
3
3
  import { Button } from "./button";
4
4
  declare const InputGroup: Component<ComponentProps<"div">>;
5
- declare const inputGroupAddonVariants: (props?: ({
6
- align?: "inline-end" | "inline-start" | "block-end" | "block-start" | undefined;
7
- } & ({
8
- class?: import("cva").ClassValue;
9
- className?: never;
10
- } | {
11
- class?: never;
12
- className?: import("cva").ClassValue;
13
- })) | undefined) => string;
5
+ declare const inputGroupAddonVariants: import("cva").CVAComponent<Omit<{
6
+ base: string;
7
+ variants: {
8
+ align: {
9
+ "inline-start": string;
10
+ "inline-end": string;
11
+ "block-start": string;
12
+ "block-end": string;
13
+ };
14
+ };
15
+ defaultVariants: {
16
+ align: "inline-start";
17
+ };
18
+ }, "defaultVariants"> & {
19
+ variants: {
20
+ align: {
21
+ "inline-start": string;
22
+ "inline-end": string;
23
+ "block-start": string;
24
+ "block-end": string;
25
+ };
26
+ };
27
+ defaultVariants: Omit<{}, "align"> & {
28
+ align: "inline-start";
29
+ };
30
+ }, {
31
+ align: {
32
+ "inline-start": string;
33
+ "inline-end": string;
34
+ "block-start": string;
35
+ "block-end": string;
36
+ };
37
+ }>;
14
38
  declare const InputGroupAddon: Component<ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>>;
15
- declare const inputGroupButtonVariants: (props?: ({
16
- size?: "sm" | "xs" | "icon-xs" | "icon-sm" | undefined;
17
- } & ({
18
- class?: import("cva").ClassValue;
19
- className?: never;
20
- } | {
21
- class?: never;
22
- className?: import("cva").ClassValue;
23
- })) | undefined) => string;
39
+ declare const inputGroupButtonVariants: import("cva").CVAComponent<Omit<{
40
+ base: string;
41
+ variants: {
42
+ size: {
43
+ xs: string;
44
+ sm: string;
45
+ "icon-xs": string;
46
+ "icon-sm": string;
47
+ };
48
+ };
49
+ defaultVariants: {
50
+ size: "xs";
51
+ };
52
+ }, "defaultVariants"> & {
53
+ variants: {
54
+ size: {
55
+ xs: string;
56
+ sm: string;
57
+ "icon-xs": string;
58
+ "icon-sm": string;
59
+ };
60
+ };
61
+ defaultVariants: Omit<{}, "size"> & {
62
+ size: "xs";
63
+ };
64
+ }, {
65
+ size: {
66
+ xs: string;
67
+ sm: string;
68
+ "icon-xs": string;
69
+ "icon-sm": string;
70
+ };
71
+ }>;
24
72
  declare const InputGroupButton: Component<Omit<ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>>;
25
73
  declare const InputGroupText: Component<ComponentProps<"span">>;
26
74
  declare const InputGroupInput: Component<ComponentProps<"input">>;
@@ -3,28 +3,83 @@ import { type Component, type ComponentProps, type ValidComponent } from "solid-
3
3
  import { Separator } from "./separator";
4
4
  declare const ItemGroup: Component<ComponentProps<"ul">>;
5
5
  declare const ItemSeparator: Component<ComponentProps<typeof Separator>>;
6
- declare const itemVariants: (props?: ({
7
- variant?: "default" | "outline" | "muted" | undefined;
8
- size?: "default" | "sm" | undefined;
9
- } & ({
10
- class?: import("cva").ClassValue;
11
- className?: never;
12
- } | {
13
- class?: never;
14
- className?: import("cva").ClassValue;
15
- })) | undefined) => string;
6
+ declare const itemVariants: import("cva").CVAComponent<Omit<{
7
+ base: string;
8
+ variants: {
9
+ variant: {
10
+ default: string;
11
+ outline: string;
12
+ muted: string;
13
+ };
14
+ size: {
15
+ default: string;
16
+ sm: string;
17
+ };
18
+ };
19
+ defaultVariants: {
20
+ variant: "default";
21
+ size: "default";
22
+ };
23
+ }, "defaultVariants"> & {
24
+ variants: {
25
+ variant: {
26
+ default: string;
27
+ outline: string;
28
+ muted: string;
29
+ };
30
+ size: {
31
+ default: string;
32
+ sm: string;
33
+ };
34
+ };
35
+ defaultVariants: Omit<{}, "variant" | "size"> & {
36
+ variant: "default";
37
+ size: "default";
38
+ };
39
+ }, {
40
+ variant: {
41
+ default: string;
42
+ outline: string;
43
+ muted: string;
44
+ };
45
+ size: {
46
+ default: string;
47
+ sm: string;
48
+ };
49
+ }>;
16
50
  declare const Item: Component<ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
17
51
  component?: ValidComponent;
18
52
  }>;
19
- declare const itemMediaVariants: (props?: ({
20
- variant?: "default" | "icon" | "image" | undefined;
21
- } & ({
22
- class?: import("cva").ClassValue;
23
- className?: never;
24
- } | {
25
- class?: never;
26
- className?: import("cva").ClassValue;
27
- })) | undefined) => string;
53
+ declare const itemMediaVariants: import("cva").CVAComponent<Omit<{
54
+ base: string;
55
+ variants: {
56
+ variant: {
57
+ default: string;
58
+ icon: string;
59
+ image: string;
60
+ };
61
+ };
62
+ defaultVariants: {
63
+ variant: "default";
64
+ };
65
+ }, "defaultVariants"> & {
66
+ variants: {
67
+ variant: {
68
+ default: string;
69
+ icon: string;
70
+ image: string;
71
+ };
72
+ };
73
+ defaultVariants: Omit<{}, "variant"> & {
74
+ variant: "default";
75
+ };
76
+ }, {
77
+ variant: {
78
+ default: string;
79
+ icon: string;
80
+ image: string;
81
+ };
82
+ }>;
28
83
  declare const ItemMedia: Component<ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>>;
29
84
  declare const ItemContent: Component<ComponentProps<"div">>;
30
85
  declare const ItemTitle: Component<ComponentProps<"div">>;
@@ -5,13 +5,12 @@ declare const NavigationMenu: ParentComponent<ComponentProps<typeof NavMenuPrimi
5
5
  }>;
6
6
  declare const NavigationMenuList: Component<ComponentProps<"ul">>;
7
7
  declare const NavigationMenuItem: Component<ComponentProps<"li">>;
8
- declare const navigationMenuTriggerStyle: (props?: ({
9
- class?: import("cva").ClassValue;
10
- className?: never;
11
- } | {
12
- class?: never;
13
- className?: import("cva").ClassValue;
14
- }) | undefined) => string;
8
+ declare const navigationMenuTriggerStyle: import("cva").CVAComponent<Omit<{
9
+ base: string;
10
+ }, "defaultVariants"> & {
11
+ variants: unknown;
12
+ defaultVariants: Omit<{}, never>;
13
+ }, unknown>;
15
14
  declare const NavigationMenuTrigger: ParentComponent<ComponentProps<typeof NavMenuPrimitive.Trigger>>;
16
15
  declare const NavigationMenuContent: Component<ComponentProps<typeof NavMenuPrimitive.Content>>;
17
16
  declare const NavigationMenuViewport: Component<ComponentProps<typeof NavMenuPrimitive.Viewport>>;
@@ -41,16 +41,50 @@ declare const SidebarGroupAction: Component<ComponentProps<"button"> & {
41
41
  declare const SidebarGroupContent: Component<ComponentProps<"div">>;
42
42
  declare const SidebarMenu: Component<ComponentProps<"ul">>;
43
43
  declare const SidebarMenuItem: Component<ComponentProps<"li">>;
44
- declare const sidebarMenuButtonVariants: (props?: ({
45
- variant?: "default" | "outline" | undefined;
46
- size?: "default" | "sm" | "lg" | undefined;
47
- } & ({
48
- class?: import("cva").ClassValue;
49
- className?: never;
50
- } | {
51
- class?: never;
52
- className?: import("cva").ClassValue;
53
- })) | undefined) => string;
44
+ declare const sidebarMenuButtonVariants: import("cva").CVAComponent<Omit<{
45
+ base: string;
46
+ variants: {
47
+ variant: {
48
+ default: string;
49
+ outline: string;
50
+ };
51
+ size: {
52
+ default: string;
53
+ sm: string;
54
+ lg: string;
55
+ };
56
+ };
57
+ defaultVariants: {
58
+ variant: "default";
59
+ size: "default";
60
+ };
61
+ }, "defaultVariants"> & {
62
+ variants: {
63
+ variant: {
64
+ default: string;
65
+ outline: string;
66
+ };
67
+ size: {
68
+ default: string;
69
+ sm: string;
70
+ lg: string;
71
+ };
72
+ };
73
+ defaultVariants: Omit<{}, "variant" | "size"> & {
74
+ variant: "default";
75
+ size: "default";
76
+ };
77
+ }, {
78
+ variant: {
79
+ default: string;
80
+ outline: string;
81
+ };
82
+ size: {
83
+ default: string;
84
+ sm: string;
85
+ lg: string;
86
+ };
87
+ }>;
54
88
  declare const SidebarMenuButton: ParentComponent<ComponentProps<"button"> & {
55
89
  as?: Component | string;
56
90
  isActive?: boolean;
@@ -1,15 +1,49 @@
1
1
  import { ToggleButton as ToggleButtonPrimitive } from "@kobalte/core/toggle-button";
2
2
  import { type VariantProps } from "cva";
3
3
  import { type Component, type ComponentProps } from "solid-js";
4
- declare const toggleVariants: (props?: ({
5
- variant?: "default" | "outline" | undefined;
6
- size?: "default" | "sm" | "lg" | undefined;
7
- } & ({
8
- class?: import("cva").ClassValue;
9
- className?: never;
10
- } | {
11
- class?: never;
12
- className?: import("cva").ClassValue;
13
- })) | undefined) => string;
4
+ declare const toggleVariants: import("cva").CVAComponent<Omit<{
5
+ base: string;
6
+ variants: {
7
+ variant: {
8
+ default: string;
9
+ outline: string;
10
+ };
11
+ size: {
12
+ default: string;
13
+ sm: string;
14
+ lg: string;
15
+ };
16
+ };
17
+ defaultVariants: {
18
+ variant: "default";
19
+ size: "default";
20
+ };
21
+ }, "defaultVariants"> & {
22
+ variants: {
23
+ variant: {
24
+ default: string;
25
+ outline: string;
26
+ };
27
+ size: {
28
+ default: string;
29
+ sm: string;
30
+ lg: string;
31
+ };
32
+ };
33
+ defaultVariants: Omit<{}, "variant" | "size"> & {
34
+ variant: "default";
35
+ size: "default";
36
+ };
37
+ }, {
38
+ variant: {
39
+ default: string;
40
+ outline: string;
41
+ };
42
+ size: {
43
+ default: string;
44
+ sm: string;
45
+ lg: string;
46
+ };
47
+ }>;
14
48
  declare const Toggle: Component<ComponentProps<typeof ToggleButtonPrimitive> & VariantProps<typeof toggleVariants>>;
15
49
  export { Toggle, toggleVariants };