@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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "./utils-BRD6YbhO.js";
1
+ import { n as e, t } from "./utils-JJqwPy_d.js";
2
2
  import { createSignal as n, onCleanup as r, onMount as i } from "solid-js";
3
3
  //#region src/lib/use-is-mobile.ts
4
4
  var a = 768;
@@ -8,13 +8,68 @@
8
8
  * is sizeless (color + shape only) for callers that supply their own height and
9
9
  * padding.
10
10
  */
11
- export declare const buttonVariants: (props?: ({
12
- variant?: "default" | "gradient" | "destructive" | "outline" | "secondary" | "ghost" | "link" | undefined;
13
- size?: "default" | "sm" | "lg" | "icon" | "none" | undefined;
14
- } & ({
15
- class?: import("cva").ClassValue;
16
- className?: never;
17
- } | {
18
- class?: never;
19
- className?: import("cva").ClassValue;
20
- })) | undefined) => string;
11
+ export declare const buttonVariants: import("cva").CVAComponent<Omit<{
12
+ base: string;
13
+ variants: {
14
+ variant: {
15
+ default: string;
16
+ gradient: string;
17
+ destructive: string;
18
+ outline: string;
19
+ secondary: string;
20
+ ghost: string;
21
+ link: string;
22
+ };
23
+ size: {
24
+ default: string;
25
+ sm: string;
26
+ lg: string;
27
+ icon: string;
28
+ none: string;
29
+ };
30
+ };
31
+ defaultVariants: {
32
+ variant: "default";
33
+ size: "default";
34
+ };
35
+ }, "defaultVariants"> & {
36
+ variants: {
37
+ variant: {
38
+ default: string;
39
+ gradient: string;
40
+ destructive: string;
41
+ outline: string;
42
+ secondary: string;
43
+ ghost: string;
44
+ link: string;
45
+ };
46
+ size: {
47
+ default: string;
48
+ sm: string;
49
+ lg: string;
50
+ icon: string;
51
+ none: string;
52
+ };
53
+ };
54
+ defaultVariants: Omit<{}, "variant" | "size"> & {
55
+ variant: "default";
56
+ size: "default";
57
+ };
58
+ }, {
59
+ variant: {
60
+ default: string;
61
+ gradient: string;
62
+ destructive: string;
63
+ outline: string;
64
+ secondary: string;
65
+ ghost: string;
66
+ link: string;
67
+ };
68
+ size: {
69
+ default: string;
70
+ sm: string;
71
+ lg: string;
72
+ icon: string;
73
+ none: string;
74
+ };
75
+ }>;
@@ -1,14 +1,38 @@
1
1
  import { type VariantProps } from "cva";
2
2
  import { type Component, type ComponentProps, type ValidComponent } from "solid-js";
3
- declare const badgeVariants: (props?: ({
4
- variant?: "default" | "destructive" | "outline" | "secondary" | undefined;
5
- } & ({
6
- class?: import("cva").ClassValue;
7
- className?: never;
8
- } | {
9
- class?: never;
10
- className?: import("cva").ClassValue;
11
- })) | undefined) => string;
3
+ declare const badgeVariants: import("cva").CVAComponent<Omit<{
4
+ base: string;
5
+ variants: {
6
+ variant: {
7
+ default: string;
8
+ secondary: string;
9
+ destructive: string;
10
+ outline: string;
11
+ };
12
+ };
13
+ defaultVariants: {
14
+ variant: "default";
15
+ };
16
+ }, "defaultVariants"> & {
17
+ variants: {
18
+ variant: {
19
+ default: string;
20
+ secondary: string;
21
+ destructive: string;
22
+ outline: string;
23
+ };
24
+ };
25
+ defaultVariants: Omit<{}, "variant"> & {
26
+ variant: "default";
27
+ };
28
+ }, {
29
+ variant: {
30
+ default: string;
31
+ secondary: string;
32
+ destructive: string;
33
+ outline: string;
34
+ };
35
+ }>;
12
36
  type BadgeProps = ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
13
37
  component?: ValidComponent;
14
38
  /**
@@ -1,15 +1,33 @@
1
1
  import { type VariantProps } from "cva";
2
2
  import { type Component, type ComponentProps, type ValidComponent } from "solid-js";
3
3
  import { Separator } from "./separator";
4
- declare const buttonGroupVariants: (props?: ({
5
- orientation?: "horizontal" | "vertical" | undefined;
6
- } & ({
7
- class?: import("cva").ClassValue;
8
- className?: never;
9
- } | {
10
- class?: never;
11
- className?: import("cva").ClassValue;
12
- })) | undefined) => string;
4
+ declare const buttonGroupVariants: import("cva").CVAComponent<Omit<{
5
+ base: string;
6
+ variants: {
7
+ orientation: {
8
+ horizontal: string;
9
+ vertical: string;
10
+ };
11
+ };
12
+ defaultVariants: {
13
+ orientation: "horizontal";
14
+ };
15
+ }, "defaultVariants"> & {
16
+ variants: {
17
+ orientation: {
18
+ horizontal: string;
19
+ vertical: string;
20
+ };
21
+ };
22
+ defaultVariants: Omit<{}, "orientation"> & {
23
+ orientation: "horizontal";
24
+ };
25
+ }, {
26
+ orientation: {
27
+ horizontal: string;
28
+ vertical: string;
29
+ };
30
+ }>;
13
31
  declare const ButtonGroup: Component<ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>>;
14
32
  declare const ButtonGroupText: Component<ComponentProps<"div"> & {
15
33
  component?: ValidComponent;
@@ -2,15 +2,33 @@ import { type VariantProps } from "cva";
2
2
  import { type Component, type ComponentProps } from "solid-js";
3
3
  declare const Empty: Component<ComponentProps<"div">>;
4
4
  declare const EmptyHeader: Component<ComponentProps<"div">>;
5
- declare const emptyMediaVariants: (props?: ({
6
- variant?: "default" | "icon" | 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 emptyMediaVariants: import("cva").CVAComponent<Omit<{
6
+ base: string;
7
+ variants: {
8
+ variant: {
9
+ default: string;
10
+ icon: string;
11
+ };
12
+ };
13
+ defaultVariants: {
14
+ variant: "default";
15
+ };
16
+ }, "defaultVariants"> & {
17
+ variants: {
18
+ variant: {
19
+ default: string;
20
+ icon: string;
21
+ };
22
+ };
23
+ defaultVariants: Omit<{}, "variant"> & {
24
+ variant: "default";
25
+ };
26
+ }, {
27
+ variant: {
28
+ default: string;
29
+ icon: string;
30
+ };
31
+ }>;
14
32
  declare const EmptyMedia: Component<ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>>;
15
33
  declare const EmptyTitle: Component<ComponentProps<"div">>;
16
34
  declare const EmptyDescription: Component<ComponentProps<"div">>;
@@ -6,15 +6,36 @@ declare const FieldLegend: Component<ComponentProps<"legend"> & {
6
6
  variant?: "legend" | "label";
7
7
  }>;
8
8
  declare const FieldGroup: Component<ComponentProps<"div">>;
9
- declare const fieldVariants: (props?: ({
10
- orientation?: "horizontal" | "vertical" | "responsive" | undefined;
11
- } & ({
12
- class?: import("cva").ClassValue;
13
- className?: never;
14
- } | {
15
- class?: never;
16
- className?: import("cva").ClassValue;
17
- })) | undefined) => string;
9
+ declare const fieldVariants: import("cva").CVAComponent<Omit<{
10
+ base: string;
11
+ variants: {
12
+ orientation: {
13
+ vertical: string[];
14
+ horizontal: string[];
15
+ responsive: string[];
16
+ };
17
+ };
18
+ defaultVariants: {
19
+ orientation: "vertical";
20
+ };
21
+ }, "defaultVariants"> & {
22
+ variants: {
23
+ orientation: {
24
+ vertical: string[];
25
+ horizontal: string[];
26
+ responsive: string[];
27
+ };
28
+ };
29
+ defaultVariants: Omit<{}, "orientation"> & {
30
+ orientation: "vertical";
31
+ };
32
+ }, {
33
+ orientation: {
34
+ vertical: string[];
35
+ horizontal: string[];
36
+ responsive: string[];
37
+ };
38
+ }>;
18
39
  declare const Field: Component<ComponentProps<"div"> & VariantProps<typeof fieldVariants>>;
19
40
  declare const FieldContent: Component<ComponentProps<"div">>;
20
41
  declare const FieldLabel: Component<ComponentProps<typeof Label>>;