@glasshome/ui 0.1.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/LICENSE +21 -0
- package/README.md +77 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +14 -0
- package/dist/lib/use-is-mobile.d.ts +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/solid/accordion.d.ts +12 -0
- package/dist/solid/alert-dialog.d.ts +22 -0
- package/dist/solid/alert.d.ts +15 -0
- package/dist/solid/aspect-ratio.d.ts +6 -0
- package/dist/solid/avatar.d.ts +6 -0
- package/dist/solid/badge.d.ts +16 -0
- package/dist/solid/breadcrumb.d.ts +11 -0
- package/dist/solid/button-group.d.ts +18 -0
- package/dist/solid/button.d.ts +16 -0
- package/dist/solid/calendar.d.ts +17 -0
- package/dist/solid/card.d.ts +9 -0
- package/dist/solid/carousel.d.ts +15 -0
- package/dist/solid/checkbox.d.ts +4 -0
- package/dist/solid/collapsible.d.ts +6 -0
- package/dist/solid/command.d.ts +24 -0
- package/dist/solid/context-menu.d.ts +43 -0
- package/dist/solid/copy-button.d.ts +7 -0
- package/dist/solid/dialog.d.ts +19 -0
- package/dist/solid/dock.d.ts +24 -0
- package/dist/solid/drawer.d.ts +22 -0
- package/dist/solid/dropdown-menu.d.ts +32 -0
- package/dist/solid/empty.d.ts +18 -0
- package/dist/solid/field.d.ts +29 -0
- package/dist/solid/form.d.ts +24 -0
- package/dist/solid/geometric-background.d.ts +17 -0
- package/dist/solid/glass-effect.d.ts +6 -0
- package/dist/solid/hover-card.d.ts +11 -0
- package/dist/solid/index.d.ts +59 -0
- package/dist/solid/index.js +16036 -0
- package/dist/solid/input-group.d.ts +28 -0
- package/dist/solid/input-otp.d.ts +15 -0
- package/dist/solid/input.d.ts +3 -0
- package/dist/solid/item.d.ts +35 -0
- package/dist/solid/kbd.d.ts +4 -0
- package/dist/solid/label.d.ts +3 -0
- package/dist/solid/menubar.d.ts +25 -0
- package/dist/solid/navigation-menu.d.ts +20 -0
- package/dist/solid/pagination.d.ts +13 -0
- package/dist/solid/popover.d.ts +16 -0
- package/dist/solid/progress.d.ts +6 -0
- package/dist/solid/radio-group.d.ts +5 -0
- package/dist/solid/resizable.d.ts +14 -0
- package/dist/solid/responsive-dialog.d.ts +16 -0
- package/dist/solid/scroll-area.d.ts +6 -0
- package/dist/solid/select.d.ts +30 -0
- package/dist/solid/separator.d.ts +6 -0
- package/dist/solid/sheet.d.ts +22 -0
- package/dist/solid/sidebar.d.ts +74 -0
- package/dist/solid/skeleton.d.ts +3 -0
- package/dist/solid/slider.d.ts +18 -0
- package/dist/solid/sonner.d.ts +5 -0
- package/dist/solid/spinner.d.ts +3 -0
- package/dist/solid/switch.d.ts +11 -0
- package/dist/solid/table.d.ts +10 -0
- package/dist/solid/tabs.d.ts +12 -0
- package/dist/solid/textarea.d.ts +3 -0
- package/dist/solid/toggle-group.d.ts +7 -0
- package/dist/solid/toggle.d.ts +15 -0
- package/dist/solid/tooltip.d.ts +11 -0
- package/dist/utils-eGXXUFl7.js +2935 -0
- package/package.json +77 -0
- package/src/styles/globals.css +411 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GlassHome Labs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# @glasshome/ui
|
|
2
|
+
|
|
3
|
+
SolidJS component library for GlassHome, built on [Kobalte](https://kobalte.dev).
|
|
4
|
+
|
|
5
|
+
56 accessible, theme-aware components plus utility functions and a Tailwind v4 CSS preset — everything you need to build smart-home dashboards.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @glasshome/ui solid-js
|
|
11
|
+
# or
|
|
12
|
+
bun add @glasshome/ui solid-js
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
> `solid-js ^1.9.9` is a required peer dependency.
|
|
16
|
+
|
|
17
|
+
## Subpath Imports
|
|
18
|
+
|
|
19
|
+
### `@glasshome/ui` — Utilities
|
|
20
|
+
|
|
21
|
+
Framework-agnostic helpers exported from the root entrypoint.
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { cn, createIsMobile } from "@glasshome/ui";
|
|
25
|
+
|
|
26
|
+
// Merge Tailwind classes with conflict resolution
|
|
27
|
+
const cls = cn("px-4 py-2", condition && "bg-primary text-white");
|
|
28
|
+
|
|
29
|
+
// Reactive mobile breakpoint signal (SolidJS)
|
|
30
|
+
const isMobile = createIsMobile();
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### `@glasshome/ui/solid` — Components
|
|
34
|
+
|
|
35
|
+
All 56 Kobalte-based components are exported from a single subpath.
|
|
36
|
+
|
|
37
|
+
```tsx
|
|
38
|
+
import { Button, Card, CardHeader, CardTitle, CardContent, Badge } from "@glasshome/ui/solid";
|
|
39
|
+
|
|
40
|
+
function DeviceCard() {
|
|
41
|
+
return (
|
|
42
|
+
<Card>
|
|
43
|
+
<CardHeader>
|
|
44
|
+
<CardTitle>Living Room</CardTitle>
|
|
45
|
+
<Badge>Online</Badge>
|
|
46
|
+
</CardHeader>
|
|
47
|
+
<CardContent>
|
|
48
|
+
<Button onClick={() => console.log("toggled")}>Toggle Light</Button>
|
|
49
|
+
</CardContent>
|
|
50
|
+
</Card>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Available components include:
|
|
56
|
+
|
|
57
|
+
`Accordion` · `Alert` · `AlertDialog` · `AspectRatio` · `Avatar` · `Badge` · `Breadcrumb` · `Button` · `ButtonGroup` · `Calendar` · `Card` · `Carousel` · `Checkbox` · `Collapsible` · `Command` · `ContextMenu` · `CopyButton` · `Dialog` · `Dock` · `Drawer` · `DropdownMenu` · `Empty` · `Field` · `Form` · `GeometricBackground` · `GlassEffect` · `HoverCard` · `Input` · `InputGroup` · `InputOTP` · `Item` · `Kbd` · `Label` · `Menubar` · `NavigationMenu` · `Pagination` · `Popover` · `Progress` · `RadioGroup` · `ResizablePanel` · `ResponsiveDialog` · `ScrollArea` · `Select` · `Separator` · `Sheet` · `Skeleton` · `Slider` · `Sonner (toast)` · `Spinner` · `Switch` · `Table` · `Tabs` · `Textarea` · `Toggle` · `ToggleGroup` · `Tooltip`
|
|
58
|
+
|
|
59
|
+
### `@glasshome/ui/styles` — Tailwind v4 CSS
|
|
60
|
+
|
|
61
|
+
Import the shared CSS preset in your app's stylesheet:
|
|
62
|
+
|
|
63
|
+
```css
|
|
64
|
+
@import "@glasshome/ui/styles";
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
This provides the GlassHome design tokens (colors, radii, animations) as a Tailwind v4 theme layer.
|
|
68
|
+
|
|
69
|
+
## Peer Dependencies
|
|
70
|
+
|
|
71
|
+
| Package | Required | Notes |
|
|
72
|
+
| ---------- | -------- | ---------------------------------------- |
|
|
73
|
+
| `solid-js` | Yes | SolidJS reactive primitives and JSX runtime |
|
|
74
|
+
|
|
75
|
+
## License
|
|
76
|
+
|
|
77
|
+
MIT
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createSignal as r, onMount as a, onCleanup as c } from "solid-js";
|
|
2
|
+
import { c as w } from "./utils-eGXXUFl7.js";
|
|
3
|
+
const n = 768;
|
|
4
|
+
function d() {
|
|
5
|
+
const [i, e] = r(void 0);
|
|
6
|
+
return a(() => {
|
|
7
|
+
const o = window.matchMedia(`(max-width: ${n - 1}px)`), t = () => e(window.innerWidth < n);
|
|
8
|
+
o.addEventListener("change", t), e(window.innerWidth < n), c(() => o.removeEventListener("change", t));
|
|
9
|
+
}), i;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
w as cn,
|
|
13
|
+
d as createIsMobile
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createIsMobile(): import("solid-js").Accessor<boolean | undefined>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Accordion as AccordionPrimitive } from "@kobalte/core/accordion";
|
|
2
|
+
import { type Component, type ComponentProps, type ParentComponent } from "solid-js";
|
|
3
|
+
declare const Accordion: typeof import("@kobalte/core/accordion").Root & {
|
|
4
|
+
Content: typeof import("@kobalte/core/accordion").Content;
|
|
5
|
+
Header: typeof import("@kobalte/core/accordion").Header;
|
|
6
|
+
Item: typeof import("@kobalte/core/accordion").Item;
|
|
7
|
+
Trigger: typeof import("@kobalte/core/accordion").Trigger;
|
|
8
|
+
};
|
|
9
|
+
declare const AccordionItem: Component<ComponentProps<typeof AccordionPrimitive.Item>>;
|
|
10
|
+
declare const AccordionTrigger: ParentComponent<ComponentProps<typeof AccordionPrimitive.Trigger>>;
|
|
11
|
+
declare const AccordionContent: ParentComponent<ComponentProps<typeof AccordionPrimitive.Content>>;
|
|
12
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AlertDialog as AlertDialogPrimitive } from "@kobalte/core/alert-dialog";
|
|
2
|
+
import { type Component, type ComponentProps } from "solid-js";
|
|
3
|
+
declare const AlertDialog: typeof import("@kobalte/core/alert-dialog").Root & {
|
|
4
|
+
CloseButton: typeof import("@kobalte/core/alert-dialog").CloseButton;
|
|
5
|
+
Content: typeof import("@kobalte/core/alert-dialog").Content;
|
|
6
|
+
Description: typeof import("@kobalte/core/alert-dialog").Description;
|
|
7
|
+
Overlay: typeof import("@kobalte/core/alert-dialog").Overlay;
|
|
8
|
+
Portal: typeof import("@kobalte/core/alert-dialog").Portal;
|
|
9
|
+
Title: typeof import("@kobalte/core/alert-dialog").Title;
|
|
10
|
+
Trigger: typeof import("@kobalte/core/alert-dialog").Trigger;
|
|
11
|
+
};
|
|
12
|
+
declare const AlertDialogTrigger: Component<ComponentProps<typeof AlertDialogPrimitive.Trigger>>;
|
|
13
|
+
declare const AlertDialogPortal: typeof import("@kobalte/core/alert-dialog").Portal;
|
|
14
|
+
declare const AlertDialogOverlay: Component<ComponentProps<typeof AlertDialogPrimitive.Overlay>>;
|
|
15
|
+
declare const AlertDialogContent: Component<ComponentProps<typeof AlertDialogPrimitive.Content>>;
|
|
16
|
+
declare const AlertDialogHeader: Component<ComponentProps<"div">>;
|
|
17
|
+
declare const AlertDialogFooter: Component<ComponentProps<"div">>;
|
|
18
|
+
declare const AlertDialogTitle: Component<ComponentProps<typeof AlertDialogPrimitive.Title>>;
|
|
19
|
+
declare const AlertDialogDescription: Component<ComponentProps<typeof AlertDialogPrimitive.Description>>;
|
|
20
|
+
declare const AlertDialogAction: Component<ComponentProps<typeof AlertDialogPrimitive.CloseButton>>;
|
|
21
|
+
declare const AlertDialogCancel: Component<ComponentProps<typeof AlertDialogPrimitive.CloseButton>>;
|
|
22
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type VariantProps } from "cva";
|
|
2
|
+
import { type Component, type ComponentProps } from "solid-js";
|
|
3
|
+
declare const alertVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | undefined;
|
|
5
|
+
} & ({
|
|
6
|
+
class?: import("cva").ClassValue;
|
|
7
|
+
className?: never;
|
|
8
|
+
} | {
|
|
9
|
+
class?: never;
|
|
10
|
+
className?: import("cva").ClassValue;
|
|
11
|
+
})) | undefined) => string;
|
|
12
|
+
declare const Alert: Component<ComponentProps<"div"> & VariantProps<typeof alertVariants>>;
|
|
13
|
+
declare const AlertTitle: Component<ComponentProps<"div">>;
|
|
14
|
+
declare const AlertDescription: Component<ComponentProps<"div">>;
|
|
15
|
+
export { Alert, AlertTitle, AlertDescription, alertVariants };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Image as ImagePrimitive } from "@kobalte/core/image";
|
|
2
|
+
import { type Component, type ComponentProps } from "solid-js";
|
|
3
|
+
declare const Avatar: Component<ComponentProps<typeof ImagePrimitive>>;
|
|
4
|
+
declare const AvatarImage: Component<ComponentProps<typeof ImagePrimitive.Img>>;
|
|
5
|
+
declare const AvatarFallback: Component<ComponentProps<typeof ImagePrimitive.Fallback>>;
|
|
6
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type VariantProps } from "cva";
|
|
2
|
+
import { type Component, type ComponentProps } 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;
|
|
12
|
+
type BadgeProps = ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
13
|
+
component?: Component<any>;
|
|
14
|
+
};
|
|
15
|
+
declare const Badge: Component<BadgeProps>;
|
|
16
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type Component, type ComponentProps, type ParentComponent } from "solid-js";
|
|
2
|
+
declare const Breadcrumb: Component<ComponentProps<"nav">>;
|
|
3
|
+
declare const BreadcrumbList: Component<ComponentProps<"ol">>;
|
|
4
|
+
declare const BreadcrumbItem: Component<ComponentProps<"li">>;
|
|
5
|
+
declare const BreadcrumbLink: Component<ComponentProps<"a"> & {
|
|
6
|
+
component?: Component<any>;
|
|
7
|
+
}>;
|
|
8
|
+
declare const BreadcrumbPage: Component<ComponentProps<"span">>;
|
|
9
|
+
declare const BreadcrumbSeparator: ParentComponent<ComponentProps<"li">>;
|
|
10
|
+
declare const BreadcrumbEllipsis: Component<ComponentProps<"span">>;
|
|
11
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type VariantProps } from "cva";
|
|
2
|
+
import { type Component, type ComponentProps } from "solid-js";
|
|
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;
|
|
13
|
+
declare const ButtonGroup: Component<ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>>;
|
|
14
|
+
declare const ButtonGroupText: Component<ComponentProps<"div"> & {
|
|
15
|
+
component?: Component<any>;
|
|
16
|
+
}>;
|
|
17
|
+
declare const ButtonGroupSeparator: Component<ComponentProps<typeof Separator>>;
|
|
18
|
+
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Button as KobalteButton } from "@kobalte/core/button";
|
|
2
|
+
import { type VariantProps } from "cva";
|
|
3
|
+
import { type ComponentProps } from "solid-js";
|
|
4
|
+
declare const buttonVariants: (props?: ({
|
|
5
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | undefined;
|
|
6
|
+
size?: "default" | "sm" | "lg" | "icon" | undefined;
|
|
7
|
+
} & ({
|
|
8
|
+
class?: import("cva").ClassValue;
|
|
9
|
+
className?: never;
|
|
10
|
+
} | {
|
|
11
|
+
class?: never;
|
|
12
|
+
className?: import("cva").ClassValue;
|
|
13
|
+
})) | undefined) => string;
|
|
14
|
+
type ButtonProps = ComponentProps<typeof KobalteButton> & VariantProps<typeof buttonVariants>;
|
|
15
|
+
declare function Button(props: ButtonProps): import("solid-js").JSX.Element;
|
|
16
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type Component, type ComponentProps } from "solid-js";
|
|
2
|
+
type DateRange = {
|
|
3
|
+
from: Date;
|
|
4
|
+
to?: Date;
|
|
5
|
+
};
|
|
6
|
+
interface CalendarProps extends Omit<ComponentProps<"div">, "onSelect"> {
|
|
7
|
+
mode?: "single" | "range";
|
|
8
|
+
selected?: Date | DateRange;
|
|
9
|
+
onSelect?: (date: Date | DateRange | undefined) => void;
|
|
10
|
+
showOutsideDays?: boolean;
|
|
11
|
+
month?: Date;
|
|
12
|
+
onMonthChange?: (month: Date) => void;
|
|
13
|
+
disabled?: (date: Date) => boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const Calendar: Component<CalendarProps>;
|
|
16
|
+
export { Calendar };
|
|
17
|
+
export type { CalendarProps, DateRange };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Component, type ComponentProps } from "solid-js";
|
|
2
|
+
declare const Card: Component<ComponentProps<"div">>;
|
|
3
|
+
declare const CardHeader: Component<ComponentProps<"div">>;
|
|
4
|
+
declare const CardTitle: Component<ComponentProps<"div">>;
|
|
5
|
+
declare const CardDescription: Component<ComponentProps<"div">>;
|
|
6
|
+
declare const CardAction: Component<ComponentProps<"div">>;
|
|
7
|
+
declare const CardContent: Component<ComponentProps<"div">>;
|
|
8
|
+
declare const CardFooter: Component<ComponentProps<"div">>;
|
|
9
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type EmblaCarouselType, type EmblaOptionsType, type EmblaPluginType } from "embla-carousel";
|
|
2
|
+
import { type Component, type ComponentProps, type ParentComponent } from "solid-js";
|
|
3
|
+
import { Button } from "./button";
|
|
4
|
+
type CarouselApi = EmblaCarouselType;
|
|
5
|
+
declare const Carousel: ParentComponent<ComponentProps<"div"> & {
|
|
6
|
+
opts?: EmblaOptionsType;
|
|
7
|
+
plugins?: EmblaPluginType[];
|
|
8
|
+
orientation?: "horizontal" | "vertical";
|
|
9
|
+
setApi?: (api: CarouselApi) => void;
|
|
10
|
+
}>;
|
|
11
|
+
declare const CarouselContent: Component<ComponentProps<"div">>;
|
|
12
|
+
declare const CarouselItem: Component<ComponentProps<"div">>;
|
|
13
|
+
declare const CarouselPrevious: Component<ComponentProps<typeof Button>>;
|
|
14
|
+
declare const CarouselNext: Component<ComponentProps<typeof Button>>;
|
|
15
|
+
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Collapsible as CollapsiblePrimitive } from "@kobalte/core/collapsible";
|
|
2
|
+
import { type Component, type ComponentProps } from "solid-js";
|
|
3
|
+
declare const Collapsible: Component<ComponentProps<typeof CollapsiblePrimitive>>;
|
|
4
|
+
declare const CollapsibleTrigger: Component<ComponentProps<typeof CollapsiblePrimitive.Trigger>>;
|
|
5
|
+
declare const CollapsibleContent: Component<ComponentProps<typeof CollapsiblePrimitive.Content>>;
|
|
6
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Component, type ComponentProps, type ParentComponent } from "solid-js";
|
|
2
|
+
import { Dialog } from "./dialog";
|
|
3
|
+
declare const Command: ParentComponent<ComponentProps<"div">>;
|
|
4
|
+
declare const CommandDialog: ParentComponent<ComponentProps<typeof Dialog> & {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
contentClass?: string;
|
|
8
|
+
showCloseButton?: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
declare const CommandInput: Component<ComponentProps<"input">>;
|
|
11
|
+
declare const CommandList: ParentComponent<ComponentProps<"div">>;
|
|
12
|
+
declare const CommandEmpty: ParentComponent<ComponentProps<"div">>;
|
|
13
|
+
declare const CommandGroup: ParentComponent<ComponentProps<"div"> & {
|
|
14
|
+
heading?: string;
|
|
15
|
+
}>;
|
|
16
|
+
declare const CommandItem: ParentComponent<ComponentProps<"div"> & {
|
|
17
|
+
value?: string;
|
|
18
|
+
keywords?: string;
|
|
19
|
+
onSelect?: () => void;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
declare const CommandSeparator: Component<ComponentProps<"div">>;
|
|
23
|
+
declare const CommandShortcut: Component<ComponentProps<"span">>;
|
|
24
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ContextMenu as ContextMenuPrimitive } from "@kobalte/core/context-menu";
|
|
2
|
+
import { type Component, type ComponentProps, type ParentComponent } from "solid-js";
|
|
3
|
+
declare const ContextMenu: typeof import("@kobalte/core/context-menu").Root & {
|
|
4
|
+
Arrow: typeof import("@kobalte/core/context-menu").Arrow;
|
|
5
|
+
CheckboxItem: typeof import("@kobalte/core/context-menu").CheckboxItem;
|
|
6
|
+
Content: typeof import("@kobalte/core/context-menu").Content;
|
|
7
|
+
Group: typeof import("@kobalte/core/context-menu").Group;
|
|
8
|
+
GroupLabel: typeof import("@kobalte/core/context-menu").GroupLabel;
|
|
9
|
+
Icon: typeof import("@kobalte/core/context-menu").Icon;
|
|
10
|
+
Item: typeof import("@kobalte/core/context-menu").Item;
|
|
11
|
+
ItemDescription: typeof import("@kobalte/core/context-menu").ItemDescription;
|
|
12
|
+
ItemIndicator: typeof import("@kobalte/core/context-menu").ItemIndicator;
|
|
13
|
+
ItemLabel: typeof import("@kobalte/core/context-menu").ItemLabel;
|
|
14
|
+
Portal: typeof import("@kobalte/core/context-menu").Portal;
|
|
15
|
+
RadioGroup: typeof import("@kobalte/core/context-menu").RadioGroup;
|
|
16
|
+
RadioItem: typeof import("@kobalte/core/context-menu").RadioItem;
|
|
17
|
+
Separator: typeof import("@kobalte/core/context-menu").Separator;
|
|
18
|
+
Sub: typeof import("@kobalte/core/context-menu").Sub;
|
|
19
|
+
SubContent: typeof import("@kobalte/core/context-menu").SubContent;
|
|
20
|
+
SubTrigger: typeof import("@kobalte/core/context-menu").SubTrigger;
|
|
21
|
+
Trigger: typeof import("@kobalte/core/context-menu").Trigger;
|
|
22
|
+
};
|
|
23
|
+
declare const ContextMenuTrigger: typeof import("@kobalte/core/context-menu").Trigger;
|
|
24
|
+
declare const ContextMenuGroup: typeof import("@kobalte/core/context-menu").Group;
|
|
25
|
+
declare const ContextMenuSub: typeof import("@kobalte/core/context-menu").Sub;
|
|
26
|
+
declare const ContextMenuRadioGroup: typeof import("@kobalte/core/context-menu").RadioGroup;
|
|
27
|
+
declare const ContextMenuSubTrigger: ParentComponent<ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
28
|
+
inset?: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
declare const ContextMenuSubContent: Component<ComponentProps<typeof ContextMenuPrimitive.SubContent>>;
|
|
31
|
+
declare const ContextMenuContent: Component<ComponentProps<typeof ContextMenuPrimitive.Content>>;
|
|
32
|
+
declare const ContextMenuItem: Component<ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
33
|
+
inset?: boolean;
|
|
34
|
+
variant?: "default" | "destructive";
|
|
35
|
+
}>;
|
|
36
|
+
declare const ContextMenuCheckboxItem: ParentComponent<ComponentProps<typeof ContextMenuPrimitive.CheckboxItem>>;
|
|
37
|
+
declare const ContextMenuRadioItem: ParentComponent<ComponentProps<typeof ContextMenuPrimitive.RadioItem>>;
|
|
38
|
+
declare const ContextMenuLabel: Component<ComponentProps<typeof ContextMenuPrimitive.GroupLabel> & {
|
|
39
|
+
inset?: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
declare const ContextMenuSeparator: Component<ComponentProps<typeof ContextMenuPrimitive.Separator>>;
|
|
42
|
+
declare const ContextMenuShortcut: Component<ComponentProps<"span">>;
|
|
43
|
+
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from "@kobalte/core/dialog";
|
|
2
|
+
import { type Component, type ComponentProps, type ParentComponent } from "solid-js";
|
|
3
|
+
declare const Dialog: typeof import("@kobalte/core/alert-dialog").Root & {
|
|
4
|
+
CloseButton: typeof import("@kobalte/core/alert-dialog").CloseButton;
|
|
5
|
+
Content: typeof import("@kobalte/core/dialog").Content;
|
|
6
|
+
Description: typeof import("@kobalte/core/alert-dialog").Description;
|
|
7
|
+
Overlay: typeof import("@kobalte/core/alert-dialog").Overlay;
|
|
8
|
+
Portal: typeof import("@kobalte/core/alert-dialog").Portal;
|
|
9
|
+
Title: typeof import("@kobalte/core/alert-dialog").Title;
|
|
10
|
+
Trigger: typeof import("@kobalte/core/alert-dialog").Trigger;
|
|
11
|
+
};
|
|
12
|
+
declare const DialogTrigger: typeof import("@kobalte/core/alert-dialog").Trigger;
|
|
13
|
+
declare const DialogClose: typeof import("@kobalte/core/alert-dialog").CloseButton;
|
|
14
|
+
declare const DialogContent: ParentComponent<ComponentProps<typeof DialogPrimitive.Content>>;
|
|
15
|
+
declare const DialogHeader: Component<ComponentProps<"div">>;
|
|
16
|
+
declare const DialogFooter: Component<ComponentProps<"div">>;
|
|
17
|
+
declare const DialogTitle: Component<ComponentProps<typeof DialogPrimitive.Title>>;
|
|
18
|
+
declare const DialogDescription: Component<ComponentProps<typeof DialogPrimitive.Description>>;
|
|
19
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, DialogClose, };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Component, type ComponentProps, type JSX } from "solid-js";
|
|
2
|
+
interface DockItem {
|
|
3
|
+
id: string;
|
|
4
|
+
icon: Component<{
|
|
5
|
+
class?: string;
|
|
6
|
+
}> | JSX.Element;
|
|
7
|
+
label: string;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface DockProps extends ComponentProps<"div"> {
|
|
12
|
+
items: DockItem[];
|
|
13
|
+
dockMode?: "floating" | "docked";
|
|
14
|
+
}
|
|
15
|
+
interface DockIconButtonProps extends ComponentProps<"button"> {
|
|
16
|
+
icon: Component<{
|
|
17
|
+
class?: string;
|
|
18
|
+
}> | JSX.Element;
|
|
19
|
+
label: string;
|
|
20
|
+
isActive?: boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const Dock: Component<DockProps>;
|
|
23
|
+
export { Dock };
|
|
24
|
+
export type { DockProps, DockItem, DockIconButtonProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from "@kobalte/core/dialog";
|
|
2
|
+
import { type Component, type ComponentProps, type ParentComponent } from "solid-js";
|
|
3
|
+
declare const Drawer: typeof import("@kobalte/core/alert-dialog").Root & {
|
|
4
|
+
CloseButton: typeof import("@kobalte/core/alert-dialog").CloseButton;
|
|
5
|
+
Content: typeof import("@kobalte/core/dialog").Content;
|
|
6
|
+
Description: typeof import("@kobalte/core/alert-dialog").Description;
|
|
7
|
+
Overlay: typeof import("@kobalte/core/alert-dialog").Overlay;
|
|
8
|
+
Portal: typeof import("@kobalte/core/alert-dialog").Portal;
|
|
9
|
+
Title: typeof import("@kobalte/core/alert-dialog").Title;
|
|
10
|
+
Trigger: typeof import("@kobalte/core/alert-dialog").Trigger;
|
|
11
|
+
};
|
|
12
|
+
declare const DrawerTrigger: Component<ComponentProps<typeof DialogPrimitive.Trigger>>;
|
|
13
|
+
declare const DrawerClose: typeof import("@kobalte/core/alert-dialog").CloseButton;
|
|
14
|
+
declare const DrawerOverlay: Component<ComponentProps<typeof DialogPrimitive.Overlay>>;
|
|
15
|
+
declare const DrawerContent: ParentComponent<ComponentProps<typeof DialogPrimitive.Content> & {
|
|
16
|
+
direction?: "top" | "right" | "bottom" | "left";
|
|
17
|
+
}>;
|
|
18
|
+
declare const DrawerHeader: Component<ComponentProps<"div">>;
|
|
19
|
+
declare const DrawerFooter: Component<ComponentProps<"div">>;
|
|
20
|
+
declare const DrawerTitle: Component<ComponentProps<typeof DialogPrimitive.Title>>;
|
|
21
|
+
declare const DrawerDescription: Component<ComponentProps<typeof DialogPrimitive.Description>>;
|
|
22
|
+
export { Drawer, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from "@kobalte/core/dropdown-menu";
|
|
2
|
+
import { type Component, type ComponentProps } from "solid-js";
|
|
3
|
+
declare const DropdownMenu: typeof import("@kobalte/core/dropdown-menu").Root & {
|
|
4
|
+
Arrow: typeof import("@kobalte/core/context-menu").Arrow;
|
|
5
|
+
CheckboxItem: typeof import("@kobalte/core/context-menu").CheckboxItem;
|
|
6
|
+
Content: typeof import("@kobalte/core/dropdown-menu").Content;
|
|
7
|
+
Group: typeof import("@kobalte/core/context-menu").Group;
|
|
8
|
+
GroupLabel: typeof import("@kobalte/core/context-menu").GroupLabel;
|
|
9
|
+
Icon: typeof import("@kobalte/core/context-menu").Icon;
|
|
10
|
+
Item: typeof import("@kobalte/core/context-menu").Item;
|
|
11
|
+
ItemDescription: typeof import("@kobalte/core/context-menu").ItemDescription;
|
|
12
|
+
ItemIndicator: typeof import("@kobalte/core/context-menu").ItemIndicator;
|
|
13
|
+
ItemLabel: typeof import("@kobalte/core/context-menu").ItemLabel;
|
|
14
|
+
Portal: typeof import("@kobalte/core/context-menu").Portal;
|
|
15
|
+
RadioGroup: typeof import("@kobalte/core/context-menu").RadioGroup;
|
|
16
|
+
RadioItem: typeof import("@kobalte/core/context-menu").RadioItem;
|
|
17
|
+
Separator: typeof import("@kobalte/core/context-menu").Separator;
|
|
18
|
+
Sub: typeof import("@kobalte/core/context-menu").Sub;
|
|
19
|
+
SubContent: typeof import("@kobalte/core/context-menu").SubContent;
|
|
20
|
+
SubTrigger: typeof import("@kobalte/core/context-menu").SubTrigger;
|
|
21
|
+
Trigger: typeof import("@kobalte/core/dropdown-menu").Trigger;
|
|
22
|
+
};
|
|
23
|
+
declare const DropdownMenuTrigger: typeof import("@kobalte/core/dropdown-menu").Trigger;
|
|
24
|
+
declare const DropdownMenuGroup: typeof import("@kobalte/core/context-menu").Group;
|
|
25
|
+
declare const DropdownMenuSub: typeof import("@kobalte/core/context-menu").Sub;
|
|
26
|
+
declare const DropdownMenuRadioGroup: typeof import("@kobalte/core/context-menu").RadioGroup;
|
|
27
|
+
declare const DropdownMenuContent: Component<ComponentProps<typeof DropdownMenuPrimitive.Content>>;
|
|
28
|
+
declare const DropdownMenuItem: Component<ComponentProps<typeof DropdownMenuPrimitive.Item>>;
|
|
29
|
+
declare const DropdownMenuSeparator: Component<ComponentProps<typeof DropdownMenuPrimitive.Separator>>;
|
|
30
|
+
declare const DropdownMenuLabel: Component<ComponentProps<typeof DropdownMenuPrimitive.GroupLabel>>;
|
|
31
|
+
declare const DropdownMenuShortcut: Component<ComponentProps<"span">>;
|
|
32
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuLabel, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuRadioGroup, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type VariantProps } from "cva";
|
|
2
|
+
import { type Component, type ComponentProps } from "solid-js";
|
|
3
|
+
declare const Empty: Component<ComponentProps<"div">>;
|
|
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;
|
|
14
|
+
declare const EmptyMedia: Component<ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>>;
|
|
15
|
+
declare const EmptyTitle: Component<ComponentProps<"div">>;
|
|
16
|
+
declare const EmptyDescription: Component<ComponentProps<"div">>;
|
|
17
|
+
declare const EmptyContent: Component<ComponentProps<"div">>;
|
|
18
|
+
export { Empty, EmptyHeader, EmptyTitle, EmptyDescription, EmptyContent, EmptyMedia };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type VariantProps } from "cva";
|
|
2
|
+
import { type Component, type ComponentProps, type ParentComponent } from "solid-js";
|
|
3
|
+
import { Label } from "./label";
|
|
4
|
+
declare const FieldSet: Component<ComponentProps<"fieldset">>;
|
|
5
|
+
declare const FieldLegend: Component<ComponentProps<"legend"> & {
|
|
6
|
+
variant?: "legend" | "label";
|
|
7
|
+
}>;
|
|
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;
|
|
18
|
+
declare const Field: Component<ComponentProps<"div"> & VariantProps<typeof fieldVariants>>;
|
|
19
|
+
declare const FieldContent: Component<ComponentProps<"div">>;
|
|
20
|
+
declare const FieldLabel: Component<ComponentProps<typeof Label>>;
|
|
21
|
+
declare const FieldTitle: Component<ComponentProps<"div">>;
|
|
22
|
+
declare const FieldDescription: Component<ComponentProps<"p">>;
|
|
23
|
+
declare const FieldSeparator: ParentComponent<ComponentProps<"div">>;
|
|
24
|
+
declare const FieldError: Component<ComponentProps<"div"> & {
|
|
25
|
+
errors?: Array<{
|
|
26
|
+
message?: string;
|
|
27
|
+
} | undefined>;
|
|
28
|
+
}>;
|
|
29
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Component, type ComponentProps, type ParentComponent } from "solid-js";
|
|
2
|
+
import { Label } from "./label";
|
|
3
|
+
declare const Form: ParentComponent<ComponentProps<"form"> & {
|
|
4
|
+
errors?: Record<string, string>;
|
|
5
|
+
onSetError?: (name: string, error: string) => void;
|
|
6
|
+
onClearError?: (name: string) => void;
|
|
7
|
+
}>;
|
|
8
|
+
declare function useFormField(): {
|
|
9
|
+
id: () => string;
|
|
10
|
+
name: () => string;
|
|
11
|
+
formItemId: () => string;
|
|
12
|
+
formDescriptionId: () => string;
|
|
13
|
+
formMessageId: () => string;
|
|
14
|
+
error: import("solid-js").Accessor<string>;
|
|
15
|
+
};
|
|
16
|
+
declare const FormField: ParentComponent<{
|
|
17
|
+
name: string;
|
|
18
|
+
}>;
|
|
19
|
+
declare const FormItem: ParentComponent<ComponentProps<"div">>;
|
|
20
|
+
declare const FormLabel: Component<ComponentProps<typeof Label>>;
|
|
21
|
+
declare const FormControl: ParentComponent<ComponentProps<"div">>;
|
|
22
|
+
declare const FormDescription: Component<ComponentProps<"p">>;
|
|
23
|
+
declare const FormMessage: ParentComponent<ComponentProps<"p">>;
|
|
24
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type Component, type ParentComponent } from "solid-js";
|
|
2
|
+
declare const ElegantShape: Component<{
|
|
3
|
+
class?: string;
|
|
4
|
+
delay?: number;
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
rotate?: number;
|
|
8
|
+
blur?: number;
|
|
9
|
+
colorVar?: string;
|
|
10
|
+
opacityStart?: number;
|
|
11
|
+
opacityEnd?: number;
|
|
12
|
+
strokeOpacity?: number;
|
|
13
|
+
}>;
|
|
14
|
+
declare const GeometricBackground: ParentComponent<{
|
|
15
|
+
class?: string;
|
|
16
|
+
}>;
|
|
17
|
+
export { GeometricBackground, ElegantShape };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HoverCard as HoverCardPrimitive } from "@kobalte/core/hover-card";
|
|
2
|
+
import { type Component, type ComponentProps } from "solid-js";
|
|
3
|
+
declare const HoverCard: typeof import("@kobalte/core/hover-card").Root & {
|
|
4
|
+
Arrow: typeof import("@kobalte/core/context-menu").Arrow;
|
|
5
|
+
Content: typeof import("@kobalte/core/hover-card").Content;
|
|
6
|
+
Portal: typeof import("@kobalte/core/hover-card").Portal;
|
|
7
|
+
Trigger: typeof import("@kobalte/core/hover-card").Trigger;
|
|
8
|
+
};
|
|
9
|
+
declare const HoverCardTrigger: Component<ComponentProps<typeof HoverCardPrimitive.Trigger>>;
|
|
10
|
+
declare const HoverCardContent: Component<ComponentProps<typeof HoverCardPrimitive.Content>>;
|
|
11
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent };
|