@vertz/ui-primitives 0.2.15 → 0.2.17
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/shared/chunk-0mcr52hc.js +78 -0
- package/dist/shared/chunk-18y8gfk0.js +308 -0
- package/dist/shared/chunk-34yfm2b0.js +182 -0
- package/dist/shared/chunk-4085nbdq.js +196 -0
- package/dist/shared/chunk-4da5zksy.js +46 -0
- package/dist/shared/chunk-7ffg0caj.js +265 -0
- package/dist/shared/chunk-7kpsyjd7.js +61 -0
- package/dist/shared/chunk-7krvqrwq.js +177 -0
- package/dist/shared/chunk-8ak7vdk1.js +151 -0
- package/dist/shared/chunk-8nk0ya7a.js +163 -0
- package/dist/shared/chunk-8tvzqry6.js +218 -0
- package/dist/shared/chunk-8y1jf6xr.js +17 -0
- package/dist/shared/chunk-96d9nr7y.js +19 -0
- package/dist/shared/chunk-9hj9p7s2.js +95 -0
- package/dist/shared/chunk-a6wp8c32.js +32 -0
- package/dist/shared/chunk-avxcmmk6.js +178 -0
- package/dist/shared/chunk-bew4bjgf.js +165 -0
- package/dist/shared/chunk-dpsgb1xw.js +18 -0
- package/dist/shared/chunk-e2v1c9ex.js +62 -0
- package/dist/shared/chunk-g9qvd20g.js +133 -0
- package/dist/shared/chunk-gkddsbmh.js +73 -0
- package/dist/shared/chunk-gt0wth9h.js +128 -0
- package/dist/shared/chunk-hr9hx58m.js +71 -0
- package/dist/shared/chunk-j4cm8avr.js +175 -0
- package/dist/shared/chunk-jctqs9m4.js +60 -0
- package/dist/shared/chunk-jz0s6srh.js +161 -0
- package/dist/shared/chunk-kg27s15c.js +282 -0
- package/dist/shared/chunk-m1ptgp1s.js +142 -0
- package/dist/shared/chunk-n9nwx58j.js +60 -0
- package/dist/shared/chunk-ppcv3ehd.js +85 -0
- package/dist/shared/chunk-rnjm61t0.js +34 -0
- package/dist/shared/chunk-sqs8kyb2.js +288 -0
- package/dist/shared/chunk-t1vkvsz2.js +175 -0
- package/dist/shared/chunk-tfyg0qrp.js +117 -0
- package/dist/shared/chunk-ttsyf6ma.js +239 -0
- package/dist/shared/chunk-vvjyx7fe.js +62 -0
- package/dist/shared/chunk-x0we8gcy.js +219 -0
- package/dist/shared/chunk-x2hz98qn.js +108 -0
- package/dist/shared/chunk-yr9yzpvq.js +107 -0
- package/dist/src/accordion/accordion.d.ts +35 -0
- package/dist/src/accordion/accordion.js +10 -0
- package/dist/src/alert-dialog/alert-dialog.d.ts +26 -0
- package/dist/src/alert-dialog/alert-dialog.js +9 -0
- package/dist/src/badge/badge.d.ts +22 -0
- package/dist/src/badge/badge.js +8 -0
- package/dist/src/button/button.d.ts +20 -0
- package/dist/src/button/button.js +8 -0
- package/dist/src/calendar/calendar.d.ts +52 -0
- package/dist/src/calendar/calendar.js +7 -0
- package/dist/src/carousel/carousel.d.ts +39 -0
- package/dist/src/carousel/carousel.js +9 -0
- package/dist/src/checkbox/checkbox.d.ts +22 -0
- package/dist/src/checkbox/checkbox.js +9 -0
- package/dist/src/collapsible/collapsible.d.ts +33 -0
- package/dist/src/collapsible/collapsible.js +9 -0
- package/dist/src/combobox/combobox.d.ts +35 -0
- package/dist/src/combobox/combobox.js +10 -0
- package/dist/src/command/command.d.ts +41 -0
- package/dist/src/command/command.js +10 -0
- package/dist/src/context-menu/context-menu.d.ts +51 -0
- package/dist/src/context-menu/context-menu.js +12 -0
- package/dist/src/date-picker/date-picker.d.ts +47 -0
- package/dist/src/date-picker/date-picker.js +15 -0
- package/dist/src/dialog/dialog.d.ts +36 -0
- package/dist/src/dialog/dialog.js +11 -0
- package/dist/src/dropdown-menu/dropdown-menu.d.ts +54 -0
- package/dist/src/dropdown-menu/dropdown-menu.js +13 -0
- package/dist/src/hover-card/hover-card.d.ts +45 -0
- package/dist/src/hover-card/hover-card.js +11 -0
- package/dist/{index.d.ts → src/index.d.ts} +132 -140
- package/dist/src/index.js +137 -0
- package/dist/src/menu/menu.d.ts +51 -0
- package/dist/src/menu/menu.js +12 -0
- package/dist/src/menubar/menubar.d.ts +52 -0
- package/dist/src/menubar/menubar.js +13 -0
- package/dist/src/navigation-menu/navigation-menu.d.ts +37 -0
- package/dist/src/navigation-menu/navigation-menu.js +11 -0
- package/dist/src/popover/popover.d.ts +44 -0
- package/dist/src/popover/popover.js +13 -0
- package/dist/src/progress/progress.d.ts +32 -0
- package/dist/src/progress/progress.js +9 -0
- package/dist/src/radio/radio.d.ts +30 -0
- package/dist/src/radio/radio.js +11 -0
- package/dist/src/resizable-panel/resizable-panel.d.ts +36 -0
- package/dist/src/resizable-panel/resizable-panel.js +9 -0
- package/dist/src/scroll-area/scroll-area.d.ts +37 -0
- package/dist/src/scroll-area/scroll-area.js +7 -0
- package/dist/src/select/select.d.ts +53 -0
- package/dist/src/select/select.js +12 -0
- package/dist/src/sheet/sheet.d.ts +24 -0
- package/dist/src/sheet/sheet.js +10 -0
- package/dist/src/slider/slider.d.ts +36 -0
- package/dist/src/slider/slider.js +10 -0
- package/dist/src/switch/switch.d.ts +21 -0
- package/dist/src/switch/switch.js +9 -0
- package/dist/src/tabs/tabs.d.ts +35 -0
- package/dist/src/tabs/tabs.js +11 -0
- package/dist/src/toast/toast.d.ts +36 -0
- package/dist/src/toast/toast.js +9 -0
- package/dist/src/toggle/toggle.d.ts +21 -0
- package/dist/src/toggle/toggle.js +9 -0
- package/dist/src/toggle-group/toggle-group.d.ts +34 -0
- package/dist/src/toggle-group/toggle-group.js +10 -0
- package/dist/src/tooltip/tooltip.d.ts +44 -0
- package/dist/src/tooltip/tooltip.js +11 -0
- package/dist/src/utils.d.ts +176 -0
- package/dist/src/utils.js +72 -0
- package/package.json +12 -10
- package/dist/index.js +0 -3675
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Switch
|
|
3
|
+
} from "../shared/chunk-7kpsyjd7.js";
|
|
4
|
+
import {
|
|
5
|
+
Button
|
|
6
|
+
} from "../shared/chunk-4da5zksy.js";
|
|
7
|
+
import {
|
|
8
|
+
HoverCard
|
|
9
|
+
} from "../shared/chunk-bew4bjgf.js";
|
|
10
|
+
import {
|
|
11
|
+
ResizablePanel
|
|
12
|
+
} from "../shared/chunk-j4cm8avr.js";
|
|
13
|
+
import {
|
|
14
|
+
Tabs
|
|
15
|
+
} from "../shared/chunk-8nk0ya7a.js";
|
|
16
|
+
import {
|
|
17
|
+
Checkbox
|
|
18
|
+
} from "../shared/chunk-hr9hx58m.js";
|
|
19
|
+
import {
|
|
20
|
+
Command
|
|
21
|
+
} from "../shared/chunk-ttsyf6ma.js";
|
|
22
|
+
import {
|
|
23
|
+
DropdownMenu
|
|
24
|
+
} from "../shared/chunk-96d9nr7y.js";
|
|
25
|
+
import {
|
|
26
|
+
Menu
|
|
27
|
+
} from "../shared/chunk-7ffg0caj.js";
|
|
28
|
+
import {
|
|
29
|
+
Collapsible
|
|
30
|
+
} from "../shared/chunk-tfyg0qrp.js";
|
|
31
|
+
import {
|
|
32
|
+
Toggle
|
|
33
|
+
} from "../shared/chunk-n9nwx58j.js";
|
|
34
|
+
import {
|
|
35
|
+
Dialog
|
|
36
|
+
} from "../shared/chunk-7krvqrwq.js";
|
|
37
|
+
import {
|
|
38
|
+
Select
|
|
39
|
+
} from "../shared/chunk-kg27s15c.js";
|
|
40
|
+
import {
|
|
41
|
+
AlertDialog
|
|
42
|
+
} from "../shared/chunk-34yfm2b0.js";
|
|
43
|
+
import {
|
|
44
|
+
ToggleGroup
|
|
45
|
+
} from "../shared/chunk-gt0wth9h.js";
|
|
46
|
+
import {
|
|
47
|
+
ContextMenu
|
|
48
|
+
} from "../shared/chunk-x0we8gcy.js";
|
|
49
|
+
import {
|
|
50
|
+
Sheet
|
|
51
|
+
} from "../shared/chunk-t1vkvsz2.js";
|
|
52
|
+
import {
|
|
53
|
+
NavigationMenu
|
|
54
|
+
} from "../shared/chunk-8tvzqry6.js";
|
|
55
|
+
import {
|
|
56
|
+
Radio
|
|
57
|
+
} from "../shared/chunk-yr9yzpvq.js";
|
|
58
|
+
import {
|
|
59
|
+
Tooltip
|
|
60
|
+
} from "../shared/chunk-9hj9p7s2.js";
|
|
61
|
+
import {
|
|
62
|
+
Menubar
|
|
63
|
+
} from "../shared/chunk-sqs8kyb2.js";
|
|
64
|
+
import {
|
|
65
|
+
ScrollArea
|
|
66
|
+
} from "../shared/chunk-jz0s6srh.js";
|
|
67
|
+
import {
|
|
68
|
+
Progress
|
|
69
|
+
} from "../shared/chunk-ppcv3ehd.js";
|
|
70
|
+
import {
|
|
71
|
+
Carousel
|
|
72
|
+
} from "../shared/chunk-g9qvd20g.js";
|
|
73
|
+
import {
|
|
74
|
+
Toast
|
|
75
|
+
} from "../shared/chunk-gkddsbmh.js";
|
|
76
|
+
import {
|
|
77
|
+
DatePicker
|
|
78
|
+
} from "../shared/chunk-x2hz98qn.js";
|
|
79
|
+
import {
|
|
80
|
+
Calendar
|
|
81
|
+
} from "../shared/chunk-18y8gfk0.js";
|
|
82
|
+
import {
|
|
83
|
+
Popover
|
|
84
|
+
} from "../shared/chunk-m1ptgp1s.js";
|
|
85
|
+
import"../shared/chunk-a6wp8c32.js";
|
|
86
|
+
import"../shared/chunk-e2v1c9ex.js";
|
|
87
|
+
import"../shared/chunk-0mcr52hc.js";
|
|
88
|
+
import {
|
|
89
|
+
Slider
|
|
90
|
+
} from "../shared/chunk-8ak7vdk1.js";
|
|
91
|
+
import {
|
|
92
|
+
Combobox
|
|
93
|
+
} from "../shared/chunk-4085nbdq.js";
|
|
94
|
+
import {
|
|
95
|
+
Accordion
|
|
96
|
+
} from "../shared/chunk-avxcmmk6.js";
|
|
97
|
+
import"../shared/chunk-jctqs9m4.js";
|
|
98
|
+
import"../shared/chunk-vvjyx7fe.js";
|
|
99
|
+
import {
|
|
100
|
+
Badge
|
|
101
|
+
} from "../shared/chunk-rnjm61t0.js";
|
|
102
|
+
import"../shared/chunk-dpsgb1xw.js";
|
|
103
|
+
import"../shared/chunk-8y1jf6xr.js";
|
|
104
|
+
export {
|
|
105
|
+
Tooltip,
|
|
106
|
+
ToggleGroup,
|
|
107
|
+
Toggle,
|
|
108
|
+
Toast,
|
|
109
|
+
Tabs,
|
|
110
|
+
Switch,
|
|
111
|
+
Slider,
|
|
112
|
+
Sheet,
|
|
113
|
+
Select,
|
|
114
|
+
ScrollArea,
|
|
115
|
+
ResizablePanel,
|
|
116
|
+
Radio,
|
|
117
|
+
Progress,
|
|
118
|
+
Popover,
|
|
119
|
+
NavigationMenu,
|
|
120
|
+
Menubar,
|
|
121
|
+
Menu,
|
|
122
|
+
HoverCard,
|
|
123
|
+
DropdownMenu,
|
|
124
|
+
Dialog,
|
|
125
|
+
DatePicker,
|
|
126
|
+
ContextMenu,
|
|
127
|
+
Command,
|
|
128
|
+
Combobox,
|
|
129
|
+
Collapsible,
|
|
130
|
+
Checkbox,
|
|
131
|
+
Carousel,
|
|
132
|
+
Calendar,
|
|
133
|
+
Button,
|
|
134
|
+
Badge,
|
|
135
|
+
AlertDialog,
|
|
136
|
+
Accordion
|
|
137
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Signal } from "@vertz/ui";
|
|
2
|
+
interface ElementAttrs {
|
|
3
|
+
class?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
tabindex?: number | string;
|
|
9
|
+
hidden?: boolean | string;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
[key: `data-${string}`]: string | undefined;
|
|
12
|
+
[key: `aria-${string}`]: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
import { Middleware, Placement, Strategy } from "@floating-ui/dom";
|
|
15
|
+
interface FloatingOptions {
|
|
16
|
+
placement?: Placement;
|
|
17
|
+
strategy?: Strategy;
|
|
18
|
+
offset?: number;
|
|
19
|
+
flip?: boolean;
|
|
20
|
+
shift?: boolean;
|
|
21
|
+
middleware?: Middleware[];
|
|
22
|
+
matchReferenceWidth?: boolean;
|
|
23
|
+
portal?: boolean;
|
|
24
|
+
/** Override the reference element used for positioning (e.g., a custom trigger wrapping the primitive trigger). */
|
|
25
|
+
referenceElement?: HTMLElement;
|
|
26
|
+
}
|
|
27
|
+
interface MenuOptions extends ElementAttrs {
|
|
28
|
+
onSelect?: (value: string) => void;
|
|
29
|
+
positioning?: FloatingOptions;
|
|
30
|
+
}
|
|
31
|
+
interface MenuState {
|
|
32
|
+
open: Signal<boolean>;
|
|
33
|
+
activeIndex: Signal<number>;
|
|
34
|
+
}
|
|
35
|
+
interface MenuElements {
|
|
36
|
+
trigger: HTMLButtonElement;
|
|
37
|
+
content: HTMLDivElement;
|
|
38
|
+
}
|
|
39
|
+
declare const Menu: {
|
|
40
|
+
Root: (options?: MenuOptions) => MenuElements & {
|
|
41
|
+
state: MenuState;
|
|
42
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
43
|
+
Group: (label: string) => {
|
|
44
|
+
el: HTMLDivElement;
|
|
45
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
46
|
+
};
|
|
47
|
+
Separator: () => HTMLHRElement;
|
|
48
|
+
Label: (text: string) => HTMLDivElement;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
export { MenuState, MenuOptions, MenuElements, Menu };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Menu
|
|
3
|
+
} from "../../shared/chunk-7ffg0caj.js";
|
|
4
|
+
import"../../shared/chunk-a6wp8c32.js";
|
|
5
|
+
import"../../shared/chunk-0mcr52hc.js";
|
|
6
|
+
import"../../shared/chunk-jctqs9m4.js";
|
|
7
|
+
import"../../shared/chunk-vvjyx7fe.js";
|
|
8
|
+
import"../../shared/chunk-dpsgb1xw.js";
|
|
9
|
+
import"../../shared/chunk-8y1jf6xr.js";
|
|
10
|
+
export {
|
|
11
|
+
Menu
|
|
12
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Signal } from "@vertz/ui";
|
|
2
|
+
interface ElementAttrs {
|
|
3
|
+
class?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
tabindex?: number | string;
|
|
9
|
+
hidden?: boolean | string;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
[key: `data-${string}`]: string | undefined;
|
|
12
|
+
[key: `aria-${string}`]: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
import { Middleware, Placement, Strategy } from "@floating-ui/dom";
|
|
15
|
+
interface FloatingOptions {
|
|
16
|
+
placement?: Placement;
|
|
17
|
+
strategy?: Strategy;
|
|
18
|
+
offset?: number;
|
|
19
|
+
flip?: boolean;
|
|
20
|
+
shift?: boolean;
|
|
21
|
+
middleware?: Middleware[];
|
|
22
|
+
matchReferenceWidth?: boolean;
|
|
23
|
+
portal?: boolean;
|
|
24
|
+
/** Override the reference element used for positioning (e.g., a custom trigger wrapping the primitive trigger). */
|
|
25
|
+
referenceElement?: HTMLElement;
|
|
26
|
+
}
|
|
27
|
+
interface MenubarOptions extends ElementAttrs {
|
|
28
|
+
onSelect?: (value: string) => void;
|
|
29
|
+
positioning?: FloatingOptions;
|
|
30
|
+
}
|
|
31
|
+
interface MenubarState {
|
|
32
|
+
activeMenu: Signal<string | null>;
|
|
33
|
+
}
|
|
34
|
+
interface MenubarElements {
|
|
35
|
+
root: HTMLDivElement;
|
|
36
|
+
}
|
|
37
|
+
declare const Menubar: {
|
|
38
|
+
Root: (options?: MenubarOptions) => MenubarElements & {
|
|
39
|
+
state: MenubarState;
|
|
40
|
+
Menu: (value: string, label?: string) => {
|
|
41
|
+
trigger: HTMLButtonElement;
|
|
42
|
+
content: HTMLDivElement;
|
|
43
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
44
|
+
Group: (label: string) => {
|
|
45
|
+
el: HTMLDivElement;
|
|
46
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
47
|
+
};
|
|
48
|
+
Separator: () => HTMLHRElement;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export { MenubarState, MenubarOptions, MenubarElements, Menubar };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Menubar
|
|
3
|
+
} from "../../shared/chunk-sqs8kyb2.js";
|
|
4
|
+
import"../../shared/chunk-a6wp8c32.js";
|
|
5
|
+
import"../../shared/chunk-e2v1c9ex.js";
|
|
6
|
+
import"../../shared/chunk-0mcr52hc.js";
|
|
7
|
+
import"../../shared/chunk-jctqs9m4.js";
|
|
8
|
+
import"../../shared/chunk-vvjyx7fe.js";
|
|
9
|
+
import"../../shared/chunk-dpsgb1xw.js";
|
|
10
|
+
import"../../shared/chunk-8y1jf6xr.js";
|
|
11
|
+
export {
|
|
12
|
+
Menubar
|
|
13
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Signal } from "@vertz/ui";
|
|
2
|
+
interface ElementAttrs {
|
|
3
|
+
class?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
tabindex?: number | string;
|
|
9
|
+
hidden?: boolean | string;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
[key: `data-${string}`]: string | undefined;
|
|
12
|
+
[key: `aria-${string}`]: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
interface NavigationMenuOptions extends ElementAttrs {
|
|
15
|
+
orientation?: "horizontal" | "vertical";
|
|
16
|
+
delayOpen?: number;
|
|
17
|
+
delayClose?: number;
|
|
18
|
+
}
|
|
19
|
+
interface NavigationMenuState {
|
|
20
|
+
activeItem: Signal<string | null>;
|
|
21
|
+
}
|
|
22
|
+
interface NavigationMenuElements {
|
|
23
|
+
root: HTMLElement;
|
|
24
|
+
list: HTMLDivElement;
|
|
25
|
+
viewport: HTMLDivElement;
|
|
26
|
+
}
|
|
27
|
+
declare const NavigationMenu: {
|
|
28
|
+
Root: (options?: NavigationMenuOptions) => NavigationMenuElements & {
|
|
29
|
+
state: NavigationMenuState;
|
|
30
|
+
Item: (value: string, label?: string) => {
|
|
31
|
+
trigger: HTMLButtonElement;
|
|
32
|
+
content: HTMLDivElement;
|
|
33
|
+
};
|
|
34
|
+
Link: (href: string, label: string) => HTMLAnchorElement;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export { NavigationMenuState, NavigationMenuOptions, NavigationMenuElements, NavigationMenu };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NavigationMenu
|
|
3
|
+
} from "../../shared/chunk-8tvzqry6.js";
|
|
4
|
+
import"../../shared/chunk-e2v1c9ex.js";
|
|
5
|
+
import"../../shared/chunk-jctqs9m4.js";
|
|
6
|
+
import"../../shared/chunk-vvjyx7fe.js";
|
|
7
|
+
import"../../shared/chunk-dpsgb1xw.js";
|
|
8
|
+
import"../../shared/chunk-8y1jf6xr.js";
|
|
9
|
+
export {
|
|
10
|
+
NavigationMenu
|
|
11
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Signal } from "@vertz/ui";
|
|
2
|
+
interface ElementAttrs {
|
|
3
|
+
class?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
tabindex?: number | string;
|
|
9
|
+
hidden?: boolean | string;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
[key: `data-${string}`]: string | undefined;
|
|
12
|
+
[key: `aria-${string}`]: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
import { Middleware, Placement, Strategy } from "@floating-ui/dom";
|
|
15
|
+
interface FloatingOptions {
|
|
16
|
+
placement?: Placement;
|
|
17
|
+
strategy?: Strategy;
|
|
18
|
+
offset?: number;
|
|
19
|
+
flip?: boolean;
|
|
20
|
+
shift?: boolean;
|
|
21
|
+
middleware?: Middleware[];
|
|
22
|
+
matchReferenceWidth?: boolean;
|
|
23
|
+
portal?: boolean;
|
|
24
|
+
/** Override the reference element used for positioning (e.g., a custom trigger wrapping the primitive trigger). */
|
|
25
|
+
referenceElement?: HTMLElement;
|
|
26
|
+
}
|
|
27
|
+
interface PopoverOptions extends ElementAttrs {
|
|
28
|
+
defaultOpen?: boolean;
|
|
29
|
+
onOpenChange?: (open: boolean) => void;
|
|
30
|
+
positioning?: FloatingOptions;
|
|
31
|
+
}
|
|
32
|
+
interface PopoverState {
|
|
33
|
+
open: Signal<boolean>;
|
|
34
|
+
}
|
|
35
|
+
interface PopoverElements {
|
|
36
|
+
trigger: HTMLButtonElement;
|
|
37
|
+
content: HTMLDivElement;
|
|
38
|
+
}
|
|
39
|
+
declare const Popover: {
|
|
40
|
+
Root: (options?: PopoverOptions) => PopoverElements & {
|
|
41
|
+
state: PopoverState;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export { PopoverState, PopoverOptions, PopoverElements, Popover };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Popover
|
|
3
|
+
} from "../../shared/chunk-m1ptgp1s.js";
|
|
4
|
+
import"../../shared/chunk-a6wp8c32.js";
|
|
5
|
+
import"../../shared/chunk-e2v1c9ex.js";
|
|
6
|
+
import"../../shared/chunk-0mcr52hc.js";
|
|
7
|
+
import"../../shared/chunk-jctqs9m4.js";
|
|
8
|
+
import"../../shared/chunk-vvjyx7fe.js";
|
|
9
|
+
import"../../shared/chunk-dpsgb1xw.js";
|
|
10
|
+
import"../../shared/chunk-8y1jf6xr.js";
|
|
11
|
+
export {
|
|
12
|
+
Popover
|
|
13
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Signal } from "@vertz/ui";
|
|
2
|
+
interface ElementAttrs {
|
|
3
|
+
class?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
tabindex?: number | string;
|
|
9
|
+
hidden?: boolean | string;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
[key: `data-${string}`]: string | undefined;
|
|
12
|
+
[key: `aria-${string}`]: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
interface ProgressOptions extends ElementAttrs {
|
|
15
|
+
defaultValue?: number;
|
|
16
|
+
min?: number;
|
|
17
|
+
max?: number;
|
|
18
|
+
}
|
|
19
|
+
interface ProgressState {
|
|
20
|
+
value: Signal<number>;
|
|
21
|
+
}
|
|
22
|
+
interface ProgressElements {
|
|
23
|
+
root: HTMLDivElement;
|
|
24
|
+
indicator: HTMLDivElement;
|
|
25
|
+
}
|
|
26
|
+
declare const Progress: {
|
|
27
|
+
Root: (options?: ProgressOptions) => ProgressElements & {
|
|
28
|
+
state: ProgressState;
|
|
29
|
+
setValue: (value: number) => void;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export { ProgressState, ProgressOptions, ProgressElements, Progress };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Signal } from "@vertz/ui";
|
|
2
|
+
interface ElementAttrs {
|
|
3
|
+
class?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
tabindex?: number | string;
|
|
9
|
+
hidden?: boolean | string;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
[key: `data-${string}`]: string | undefined;
|
|
12
|
+
[key: `aria-${string}`]: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
interface RadioOptions extends ElementAttrs {
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
onValueChange?: (value: string) => void;
|
|
17
|
+
}
|
|
18
|
+
interface RadioState {
|
|
19
|
+
value: Signal<string>;
|
|
20
|
+
}
|
|
21
|
+
interface RadioElements {
|
|
22
|
+
root: HTMLDivElement;
|
|
23
|
+
}
|
|
24
|
+
declare const Radio: {
|
|
25
|
+
Root: (options?: RadioOptions) => RadioElements & {
|
|
26
|
+
state: RadioState;
|
|
27
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export { RadioState, RadioOptions, RadioElements, Radio };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Radio
|
|
3
|
+
} from "../../shared/chunk-yr9yzpvq.js";
|
|
4
|
+
import"../../shared/chunk-e2v1c9ex.js";
|
|
5
|
+
import"../../shared/chunk-jctqs9m4.js";
|
|
6
|
+
import"../../shared/chunk-vvjyx7fe.js";
|
|
7
|
+
import"../../shared/chunk-dpsgb1xw.js";
|
|
8
|
+
import"../../shared/chunk-8y1jf6xr.js";
|
|
9
|
+
export {
|
|
10
|
+
Radio
|
|
11
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Signal } from "@vertz/ui";
|
|
2
|
+
interface ElementAttrs {
|
|
3
|
+
class?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
tabindex?: number | string;
|
|
9
|
+
hidden?: boolean | string;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
[key: `data-${string}`]: string | undefined;
|
|
12
|
+
[key: `aria-${string}`]: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
interface ResizablePanelOptions extends ElementAttrs {
|
|
15
|
+
orientation?: "horizontal" | "vertical";
|
|
16
|
+
onResize?: (sizes: number[]) => void;
|
|
17
|
+
}
|
|
18
|
+
interface PanelOptions {
|
|
19
|
+
defaultSize?: number;
|
|
20
|
+
minSize?: number;
|
|
21
|
+
maxSize?: number;
|
|
22
|
+
}
|
|
23
|
+
interface ResizablePanelState {
|
|
24
|
+
sizes: Signal<number[]>;
|
|
25
|
+
}
|
|
26
|
+
interface ResizablePanelElements {
|
|
27
|
+
root: HTMLDivElement;
|
|
28
|
+
}
|
|
29
|
+
declare const ResizablePanel: {
|
|
30
|
+
Root: (options?: ResizablePanelOptions) => ResizablePanelElements & {
|
|
31
|
+
state: ResizablePanelState;
|
|
32
|
+
Panel: (panelOptions?: PanelOptions) => HTMLDivElement;
|
|
33
|
+
Handle: () => HTMLDivElement;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export { ResizablePanelState, ResizablePanelOptions, ResizablePanelElements, ResizablePanel, PanelOptions };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Signal } from "@vertz/ui";
|
|
2
|
+
interface ElementAttrs {
|
|
3
|
+
class?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
tabindex?: number | string;
|
|
9
|
+
hidden?: boolean | string;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
[key: `data-${string}`]: string | undefined;
|
|
12
|
+
[key: `aria-${string}`]: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
interface ScrollAreaOptions extends ElementAttrs {
|
|
15
|
+
orientation?: "vertical" | "horizontal" | "both";
|
|
16
|
+
type?: "auto" | "always" | "hover" | "scroll";
|
|
17
|
+
}
|
|
18
|
+
interface ScrollAreaState {
|
|
19
|
+
scrollTop: Signal<number>;
|
|
20
|
+
scrollLeft: Signal<number>;
|
|
21
|
+
}
|
|
22
|
+
interface ScrollAreaElements {
|
|
23
|
+
root: HTMLDivElement;
|
|
24
|
+
viewport: HTMLDivElement;
|
|
25
|
+
content: HTMLDivElement;
|
|
26
|
+
scrollbarY: HTMLDivElement;
|
|
27
|
+
thumbY: HTMLDivElement;
|
|
28
|
+
scrollbarX: HTMLDivElement;
|
|
29
|
+
thumbX: HTMLDivElement;
|
|
30
|
+
}
|
|
31
|
+
declare const ScrollArea: {
|
|
32
|
+
Root: (options?: ScrollAreaOptions) => ScrollAreaElements & {
|
|
33
|
+
state: ScrollAreaState;
|
|
34
|
+
update: () => void;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export { ScrollAreaState, ScrollAreaOptions, ScrollAreaElements, ScrollArea };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Signal } from "@vertz/ui";
|
|
2
|
+
interface ElementAttrs {
|
|
3
|
+
class?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
tabindex?: number | string;
|
|
9
|
+
hidden?: boolean | string;
|
|
10
|
+
autofocus?: boolean;
|
|
11
|
+
[key: `data-${string}`]: string | undefined;
|
|
12
|
+
[key: `aria-${string}`]: string | undefined;
|
|
13
|
+
}
|
|
14
|
+
import { Middleware, Placement, Strategy } from "@floating-ui/dom";
|
|
15
|
+
interface FloatingOptions {
|
|
16
|
+
placement?: Placement;
|
|
17
|
+
strategy?: Strategy;
|
|
18
|
+
offset?: number;
|
|
19
|
+
flip?: boolean;
|
|
20
|
+
shift?: boolean;
|
|
21
|
+
middleware?: Middleware[];
|
|
22
|
+
matchReferenceWidth?: boolean;
|
|
23
|
+
portal?: boolean;
|
|
24
|
+
/** Override the reference element used for positioning (e.g., a custom trigger wrapping the primitive trigger). */
|
|
25
|
+
referenceElement?: HTMLElement;
|
|
26
|
+
}
|
|
27
|
+
interface SelectOptions extends ElementAttrs {
|
|
28
|
+
defaultValue?: string;
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
onValueChange?: (value: string) => void;
|
|
31
|
+
positioning?: FloatingOptions;
|
|
32
|
+
}
|
|
33
|
+
interface SelectState {
|
|
34
|
+
open: Signal<boolean>;
|
|
35
|
+
value: Signal<string>;
|
|
36
|
+
activeIndex: Signal<number>;
|
|
37
|
+
}
|
|
38
|
+
interface SelectElements {
|
|
39
|
+
trigger: HTMLButtonElement;
|
|
40
|
+
content: HTMLDivElement;
|
|
41
|
+
}
|
|
42
|
+
declare const Select: {
|
|
43
|
+
Root: (options?: SelectOptions) => SelectElements & {
|
|
44
|
+
state: SelectState;
|
|
45
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
46
|
+
Group: (label: string) => {
|
|
47
|
+
el: HTMLDivElement;
|
|
48
|
+
Item: (value: string, label?: string) => HTMLDivElement;
|
|
49
|
+
};
|
|
50
|
+
Separator: () => HTMLHRElement;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
export { SelectState, SelectOptions, SelectElements, Select };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Select
|
|
3
|
+
} from "../../shared/chunk-kg27s15c.js";
|
|
4
|
+
import"../../shared/chunk-a6wp8c32.js";
|
|
5
|
+
import"../../shared/chunk-0mcr52hc.js";
|
|
6
|
+
import"../../shared/chunk-jctqs9m4.js";
|
|
7
|
+
import"../../shared/chunk-vvjyx7fe.js";
|
|
8
|
+
import"../../shared/chunk-dpsgb1xw.js";
|
|
9
|
+
import"../../shared/chunk-8y1jf6xr.js";
|
|
10
|
+
export {
|
|
11
|
+
Select
|
|
12
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Signal } from "@vertz/ui";
|
|
2
|
+
type SheetSide = "left" | "right" | "top" | "bottom";
|
|
3
|
+
interface SheetOptions {
|
|
4
|
+
side?: SheetSide;
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
}
|
|
8
|
+
interface SheetState {
|
|
9
|
+
open: Signal<boolean>;
|
|
10
|
+
}
|
|
11
|
+
interface SheetElements {
|
|
12
|
+
trigger: HTMLButtonElement;
|
|
13
|
+
overlay: HTMLDivElement;
|
|
14
|
+
content: HTMLDivElement;
|
|
15
|
+
close: HTMLButtonElement;
|
|
16
|
+
show: () => void;
|
|
17
|
+
hide: () => void;
|
|
18
|
+
}
|
|
19
|
+
declare const Sheet: {
|
|
20
|
+
Root: (options?: SheetOptions) => SheetElements & {
|
|
21
|
+
state: SheetState;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export { SheetState, SheetSide, SheetOptions, SheetElements, Sheet };
|