@vertz/ui-primitives 0.2.38 → 0.2.42
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-06m8prfg.js +52 -0
- package/dist/shared/chunk-0n9jj8xr.js +24 -0
- package/dist/shared/chunk-1ben27xq.js +317 -0
- package/dist/shared/chunk-1j2mj0sa.js +45 -0
- package/dist/shared/chunk-250hj18f.js +243 -0
- package/dist/shared/chunk-2h4m9c71.js +38 -0
- package/dist/shared/chunk-2sbx20hv.js +128 -0
- package/dist/shared/chunk-2ye674gr.js +70 -0
- package/dist/shared/chunk-34d8385y.js +15 -0
- package/dist/shared/chunk-4d7bm8h0.js +113 -0
- package/dist/shared/chunk-4zjgxr7x.js +157 -0
- package/dist/shared/chunk-5c150wvr.js +140 -0
- package/dist/shared/chunk-5gycdypd.js +58 -0
- package/dist/shared/chunk-6mm7fhp8.js +105 -0
- package/dist/shared/chunk-6zmnqvh6.js +109 -0
- package/dist/shared/{chunk-yy3ft5mb.js → chunk-7amn5d71.js} +2 -2
- package/dist/shared/chunk-7pbff2hg.js +118 -0
- package/dist/shared/chunk-7zpjshwz.js +194 -0
- package/dist/shared/chunk-993ff51d.js +155 -0
- package/dist/shared/chunk-9pdt5aw7.js +24 -0
- package/dist/shared/chunk-a71m4xkv.js +106 -0
- package/dist/shared/chunk-aj8m39pk.js +127 -0
- package/dist/shared/chunk-ajawpc05.js +305 -0
- package/dist/shared/chunk-b7mzwqhj.js +125 -0
- package/dist/shared/chunk-bb887de4.js +200 -0
- package/dist/shared/chunk-bfsmbrxc.js +111 -0
- package/dist/shared/chunk-c2f63m5n.js +56 -0
- package/dist/shared/chunk-c5r3s5km.js +263 -0
- package/dist/shared/chunk-caba5bhd.js +427 -0
- package/dist/shared/chunk-crym07yc.js +264 -0
- package/dist/shared/{chunk-5964gmv0.js → chunk-csjtyvam.js} +62 -88
- package/dist/shared/chunk-d6rtejz3.js +128 -0
- package/dist/shared/chunk-dvaf0bmq.js +140 -0
- package/dist/shared/chunk-dwkv9ya6.js +22 -0
- package/dist/shared/chunk-e0ckxrjg.js +41 -0
- package/dist/shared/chunk-ennxcymj.js +225 -0
- package/dist/shared/{chunk-1jd1n0dt.js → chunk-ey38de46.js} +19 -47
- package/dist/shared/chunk-f0v1gs5e.js +52 -0
- package/dist/shared/chunk-f86rsf84.js +231 -0
- package/dist/shared/chunk-fdse46x5.js +21 -0
- package/dist/shared/chunk-gj4hrssn.js +135 -0
- package/dist/shared/chunk-gyvq4gk9.js +24 -0
- package/dist/shared/chunk-hbnps9sq.js +229 -0
- package/dist/shared/{chunk-fhss32ya.js → chunk-hdmpyeq9.js} +43 -132
- package/dist/shared/chunk-hgnkd4he.js +256 -0
- package/dist/shared/chunk-hpcyffm7.js +185 -0
- package/dist/shared/chunk-hpmvwx0h.js +99 -0
- package/dist/shared/chunk-hz0e504p.js +69 -0
- package/dist/shared/chunk-hzk4wfq9.js +43 -0
- package/dist/shared/chunk-j7znzkpa.js +48 -0
- package/dist/shared/chunk-j9kxgrnn.js +167 -0
- package/dist/shared/chunk-jetwnv0w.js +130 -0
- package/dist/shared/chunk-jjdg26c1.js +155 -0
- package/dist/shared/chunk-k0m4yh86.js +123 -0
- package/dist/shared/chunk-k43q9cjr.js +82 -0
- package/dist/shared/chunk-k9k8tbr5.js +119 -0
- package/dist/shared/chunk-meaj7br1.js +232 -0
- package/dist/shared/chunk-mgj0n08k.js +34 -0
- package/dist/shared/chunk-mjz4rp6c.js +46 -0
- package/dist/shared/chunk-n4rr5gme.js +239 -0
- package/dist/shared/chunk-nk55etpp.js +65 -0
- package/dist/shared/chunk-nkh1ks3k.js +264 -0
- package/dist/shared/chunk-pgvpvbpe.js +26 -0
- package/dist/shared/chunk-pma8gnv7.js +178 -0
- package/dist/shared/chunk-q7xv6xze.js +131 -0
- package/dist/shared/chunk-qey801nq.js +22 -0
- package/dist/shared/chunk-s6b4c3tj.js +58 -0
- package/dist/shared/chunk-sq27a4h0.js +36 -0
- package/dist/shared/chunk-taa5pj15.js +103 -0
- package/dist/shared/chunk-tc5rpvyx.js +127 -0
- package/dist/shared/chunk-tescm0b3.js +192 -0
- package/dist/shared/chunk-tkftdwnq.js +71 -0
- package/dist/shared/chunk-tqhnjcfp.js +116 -0
- package/dist/shared/chunk-vfknb5ht.js +183 -0
- package/dist/shared/chunk-vsc369w3.js +185 -0
- package/dist/shared/chunk-whq9s8v5.js +301 -0
- package/dist/shared/{chunk-hze1f32t.js → chunk-wrqddgaj.js} +1 -1
- package/dist/shared/chunk-yzbmkx4r.js +155 -0
- package/dist/shared/chunk-zaen0ajc.js +347 -0
- package/dist/src/accordion/accordion-composed.js +1 -1
- package/dist/src/accordion/accordion.js +1 -1
- package/dist/src/alert/alert-composed.js +1 -1
- package/dist/src/alert-dialog/alert-dialog-composed.js +1 -1
- package/dist/src/alert-dialog/alert-dialog.js +1 -1
- package/dist/src/avatar/avatar-composed.js +1 -1
- package/dist/src/badge/badge-composed.js +1 -1
- package/dist/src/badge/badge.js +1 -1
- package/dist/src/breadcrumb/breadcrumb-composed.js +1 -1
- package/dist/src/button/button-composed.js +1 -1
- package/dist/src/button/button.js +1 -1
- package/dist/src/calendar/calendar-composed.js +1 -1
- package/dist/src/calendar/calendar.js +1 -1
- package/dist/src/card/card-composed.js +1 -1
- package/dist/src/carousel/carousel-composed.js +1 -1
- package/dist/src/carousel/carousel.js +1 -1
- package/dist/src/checkbox/checkbox-composed.js +1 -1
- package/dist/src/checkbox/checkbox.js +1 -1
- package/dist/src/collapsible/collapsible-composed.js +1 -1
- package/dist/src/collapsible/collapsible.js +1 -1
- package/dist/src/combobox/combobox-composed.js +1 -1
- package/dist/src/combobox/combobox.js +1 -1
- package/dist/src/command/command-composed.js +1 -1
- package/dist/src/command/command.js +1 -1
- package/dist/src/composed/with-styles.js +1 -1
- package/dist/src/context-menu/context-menu-composed.js +1 -1
- package/dist/src/context-menu/context-menu.js +1 -1
- package/dist/src/date-picker/date-picker-composed.js +1 -1
- package/dist/src/date-picker/date-picker.js +1 -1
- package/dist/src/dialog/dialog-composed.js +1 -1
- package/dist/src/dialog/dialog-stack-parts.js +1 -1
- package/dist/src/dialog/dialog.js +1 -1
- package/dist/src/dropdown-menu/dropdown-menu-composed.js +1 -1
- package/dist/src/dropdown-menu/dropdown-menu.js +1 -1
- package/dist/src/empty-state/empty-state-composed.js +1 -1
- package/dist/src/form-group/form-group-composed.js +1 -1
- package/dist/src/hover-card/hover-card-composed.js +1 -1
- package/dist/src/hover-card/hover-card.js +1 -1
- package/dist/src/input/input-composed.js +1 -1
- package/dist/src/label/label-composed.js +1 -1
- package/dist/src/list/list-composed.js +1 -1
- package/dist/src/menu/menu-composed.js +1 -1
- package/dist/src/menu/menu.js +1 -1
- package/dist/src/menubar/menubar-composed.js +1 -1
- package/dist/src/menubar/menubar.js +1 -1
- package/dist/src/navigation-menu/navigation-menu-composed.js +1 -1
- package/dist/src/navigation-menu/navigation-menu.js +1 -1
- package/dist/src/pagination/pagination-composed.js +1 -1
- package/dist/src/popover/popover-composed.js +1 -1
- package/dist/src/popover/popover.js +1 -1
- package/dist/src/progress/progress-composed.js +1 -1
- package/dist/src/progress/progress.js +1 -1
- package/dist/src/radio/radio-composed.js +1 -1
- package/dist/src/radio/radio.js +1 -1
- package/dist/src/resizable-panel/resizable-panel-composed.js +1 -1
- package/dist/src/resizable-panel/resizable-panel.js +1 -1
- package/dist/src/scroll-area/scroll-area-composed.js +1 -1
- package/dist/src/scroll-area/scroll-area.js +1 -1
- package/dist/src/select/select-composed.js +1 -1
- package/dist/src/select/select.js +1 -1
- package/dist/src/separator/separator-composed.js +1 -1
- package/dist/src/sheet/sheet-composed.js +1 -1
- package/dist/src/sheet/sheet.js +1 -1
- package/dist/src/skeleton/skeleton-composed.js +1 -1
- package/dist/src/slider/slider-composed.js +1 -1
- package/dist/src/slider/slider.js +1 -1
- package/dist/src/switch/switch-composed.js +1 -1
- package/dist/src/switch/switch.js +1 -1
- package/dist/src/table/table-composed.js +1 -1
- package/dist/src/tabs/tabs-composed.js +1 -1
- package/dist/src/tabs/tabs.js +1 -1
- package/dist/src/textarea/textarea-composed.js +1 -1
- package/dist/src/toast/toast.js +1 -1
- package/dist/src/toggle/toggle-composed.js +1 -1
- package/dist/src/toggle/toggle.js +1 -1
- package/dist/src/toggle-group/toggle-group-composed.js +1 -1
- package/dist/src/toggle-group/toggle-group.js +1 -1
- package/dist/src/tooltip/tooltip-composed.js +1 -1
- package/dist/src/tooltip/tooltip.js +1 -1
- package/package.json +3 -3
- package/dist/shared/chunk-144kbnmx.js +0 -95
- package/dist/shared/chunk-1ewxfgsa.js +0 -167
- package/dist/shared/chunk-1hm0mbke.js +0 -258
- package/dist/shared/chunk-22rt6ws9.js +0 -69
- package/dist/shared/chunk-2ssqz188.js +0 -162
- package/dist/shared/chunk-33he7ay9.js +0 -218
- package/dist/shared/chunk-3jack97k.js +0 -509
- package/dist/shared/chunk-75pegjs7.js +0 -26
- package/dist/shared/chunk-862x7dja.js +0 -398
- package/dist/shared/chunk-8pk1pn5h.js +0 -215
- package/dist/shared/chunk-8t0nm721.js +0 -152
- package/dist/shared/chunk-94twh4s4.js +0 -28
- package/dist/shared/chunk-9yb26c0w.js +0 -232
- package/dist/shared/chunk-a82r2pnq.js +0 -67
- package/dist/shared/chunk-axpbdpgx.js +0 -177
- package/dist/shared/chunk-b3j6mym6.js +0 -203
- package/dist/shared/chunk-b4zzg457.js +0 -410
- package/dist/shared/chunk-b9qxfcsy.js +0 -60
- package/dist/shared/chunk-bc2qqkhr.js +0 -194
- package/dist/shared/chunk-bv12nkdm.js +0 -149
- package/dist/shared/chunk-bvxc1ww4.js +0 -164
- package/dist/shared/chunk-czv0kqj4.js +0 -107
- package/dist/shared/chunk-d83ag07h.js +0 -189
- package/dist/shared/chunk-de18ashk.js +0 -134
- package/dist/shared/chunk-dvk4h36t.js +0 -140
- package/dist/shared/chunk-dxvnerw2.js +0 -353
- package/dist/shared/chunk-e399pzdq.js +0 -241
- package/dist/shared/chunk-e4qha9as.js +0 -180
- package/dist/shared/chunk-eb2d9v6k.js +0 -68
- package/dist/shared/chunk-ect26sp5.js +0 -353
- package/dist/shared/chunk-ev367pq3.js +0 -102
- package/dist/shared/chunk-fjykbv0v.js +0 -214
- package/dist/shared/chunk-gdddk6nh.js +0 -96
- package/dist/shared/chunk-ghkw5bjq.js +0 -55
- package/dist/shared/chunk-hfjtkytb.js +0 -310
- package/dist/shared/chunk-hpvjfj0j.js +0 -31
- package/dist/shared/chunk-jpyjk616.js +0 -52
- package/dist/shared/chunk-k6d53tne.js +0 -206
- package/dist/shared/chunk-knzg86am.js +0 -168
- package/dist/shared/chunk-ktbf6xrt.js +0 -179
- package/dist/shared/chunk-m8y2p66x.js +0 -252
- package/dist/shared/chunk-metxdt5x.js +0 -28
- package/dist/shared/chunk-mgae1d93.js +0 -157
- package/dist/shared/chunk-mtx2cfbx.js +0 -175
- package/dist/shared/chunk-n436p5cb.js +0 -260
- package/dist/shared/chunk-nj420k31.js +0 -54
- package/dist/shared/chunk-nsmvdxgp.js +0 -213
- package/dist/shared/chunk-pcms04vq.js +0 -162
- package/dist/shared/chunk-pqskzq8t.js +0 -79
- package/dist/shared/chunk-pwr60kyd.js +0 -321
- package/dist/shared/chunk-pzknpa1y.js +0 -327
- package/dist/shared/chunk-q77y3rg4.js +0 -189
- package/dist/shared/chunk-qhnany7w.js +0 -179
- package/dist/shared/chunk-r3pffzss.js +0 -13
- package/dist/shared/chunk-rdr0rtpr.js +0 -131
- package/dist/shared/chunk-rj52ty6r.js +0 -147
- package/dist/shared/chunk-rnqc7735.js +0 -125
- package/dist/shared/chunk-rtk30950.js +0 -202
- package/dist/shared/chunk-s0xgd8vg.js +0 -266
- package/dist/shared/chunk-s415735j.js +0 -357
- package/dist/shared/chunk-s62e7jf4.js +0 -30
- package/dist/shared/chunk-snd8e6r8.js +0 -418
- package/dist/shared/chunk-spng4yb9.js +0 -73
- package/dist/shared/chunk-t887wwjc.js +0 -168
- package/dist/shared/chunk-tn0m98j8.js +0 -42
- package/dist/shared/chunk-v0b5pkcq.js +0 -30
- package/dist/shared/chunk-v5tj7veh.js +0 -284
- package/dist/shared/chunk-vkscwzpr.js +0 -294
- package/dist/shared/chunk-vv187snj.js +0 -112
- package/dist/shared/chunk-xv4wd0kf.js +0 -293
- package/dist/shared/chunk-y1hpsqzy.js +0 -185
- package/dist/shared/chunk-yfzddvxc.js +0 -71
- package/dist/shared/chunk-yzgzx2dh.js +0 -311
- package/dist/shared/chunk-z5j7ztf2.js +0 -467
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// src/composed/with-styles.ts
|
|
2
|
-
function withStyles(component, classes) {
|
|
3
|
-
const styled = (props) => component({ ...props, classes });
|
|
4
|
-
const subComponents = {};
|
|
5
|
-
for (const key of Object.getOwnPropertyNames(component)) {
|
|
6
|
-
if (key !== "length" && key !== "name" && key !== "prototype" && key !== "__classKeys" && key !== "__elementType") {
|
|
7
|
-
subComponents[key] = component[key];
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
return Object.assign(styled, subComponents);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { withStyles };
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-q7xbcj9q.js";
|
|
4
|
-
import {
|
|
5
|
-
uniqueId
|
|
6
|
-
} from "./chunk-8y1jf6xr.js";
|
|
7
|
-
import {
|
|
8
|
-
Keys,
|
|
9
|
-
isKey
|
|
10
|
-
} from "./chunk-7867pr13.js";
|
|
11
|
-
|
|
12
|
-
// src/checkbox/checkbox-composed.tsx
|
|
13
|
-
import { signal } from "@vertz/ui";
|
|
14
|
-
import { __append, __attr, __child, __discardMountFrame, __element, __enterChildren, __exitChildren, __flushMountFrame, __on, __pushMountFrame, __styleStr } from "@vertz/ui/internals";
|
|
15
|
-
function dataStateFor(checked) {
|
|
16
|
-
if (checked === "mixed")
|
|
17
|
-
return "indeterminate";
|
|
18
|
-
return checked ? "checked" : "unchecked";
|
|
19
|
-
}
|
|
20
|
-
function ariaCheckedFor(checked) {
|
|
21
|
-
if (checked === "mixed")
|
|
22
|
-
return "mixed";
|
|
23
|
-
return String(checked);
|
|
24
|
-
}
|
|
25
|
-
function ComposedCheckboxRoot(__props) {
|
|
26
|
-
const __mfDepth = __pushMountFrame();
|
|
27
|
-
try {
|
|
28
|
-
let toggle = function() {
|
|
29
|
-
if (__props.disabled ?? false)
|
|
30
|
-
return;
|
|
31
|
-
checked.value = checked.value === "mixed" ? true : !checked.value;
|
|
32
|
-
__props.onCheckedChange?.(checked.value);
|
|
33
|
-
};
|
|
34
|
-
const checked = signal(__props.defaultChecked ?? false, "checked");
|
|
35
|
-
const __mfResult0 = (() => {
|
|
36
|
-
const __el0 = __element("button");
|
|
37
|
-
__el0.setAttribute("data-v-id", "ComposedCheckboxRoot");
|
|
38
|
-
__el0.setAttribute("type", "button");
|
|
39
|
-
__el0.setAttribute("role", "checkbox");
|
|
40
|
-
{
|
|
41
|
-
const __v = uniqueId("checkbox");
|
|
42
|
-
if (__v != null && __v !== false)
|
|
43
|
-
__el0.setAttribute("id", __v === true ? "" : __v);
|
|
44
|
-
}
|
|
45
|
-
__attr(__el0, "aria-checked", () => ariaCheckedFor(checked.value));
|
|
46
|
-
__attr(__el0, "data-state", () => dataStateFor(checked.value));
|
|
47
|
-
__attr(__el0, "disabled", () => __props.disabled ?? false);
|
|
48
|
-
__attr(__el0, "aria-disabled", () => __props.disabled ?? false ? "true" : undefined);
|
|
49
|
-
__attr(__el0, "class", () => cn(__props.classes?.root));
|
|
50
|
-
__on(__el0, "click", toggle);
|
|
51
|
-
__on(__el0, "keydown", (e) => {
|
|
52
|
-
if (isKey(e, Keys.Space)) {
|
|
53
|
-
e.preventDefault();
|
|
54
|
-
toggle();
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
__enterChildren(__el0);
|
|
58
|
-
__append(__el0, (() => {
|
|
59
|
-
const __el1 = __element("span");
|
|
60
|
-
__el1.setAttribute("data-part", "indicator");
|
|
61
|
-
__attr(__el1, "data-state", () => dataStateFor(checked.value));
|
|
62
|
-
__attr(__el1, "class", () => cn(__props.classes?.indicator));
|
|
63
|
-
{
|
|
64
|
-
const __v = { width: "100%", height: "100%", pointerEvents: "none" };
|
|
65
|
-
if (__v != null && __v !== false)
|
|
66
|
-
__el1.setAttribute("style", typeof __v === "object" ? __styleStr(__v) : __v === true ? "" : String(__v));
|
|
67
|
-
}
|
|
68
|
-
__enterChildren(__el1);
|
|
69
|
-
__append(__el1, (() => {
|
|
70
|
-
const __el2 = __element("svg");
|
|
71
|
-
__el2.setAttribute("aria-hidden", "true");
|
|
72
|
-
__el2.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
73
|
-
__el2.setAttribute("viewBox", "0 0 24 24");
|
|
74
|
-
__el2.setAttribute("fill", "none");
|
|
75
|
-
__el2.setAttribute("stroke", "currentColor");
|
|
76
|
-
__el2.setAttribute("stroke-width", "3");
|
|
77
|
-
__el2.setAttribute("stroke-linecap", "round");
|
|
78
|
-
__el2.setAttribute("stroke-linejoin", "round");
|
|
79
|
-
__el2.setAttribute("data-part", "indicator-icon");
|
|
80
|
-
__el2.setAttribute("data-icon", "check");
|
|
81
|
-
__el2.setAttribute("width", "100%");
|
|
82
|
-
__el2.setAttribute("height", "100%");
|
|
83
|
-
__enterChildren(__el2);
|
|
84
|
-
__append(__el2, (() => {
|
|
85
|
-
const __el3 = __element("path");
|
|
86
|
-
__el3.setAttribute("d", "M4 12 9 17 20 6");
|
|
87
|
-
return __el3;
|
|
88
|
-
})());
|
|
89
|
-
__exitChildren();
|
|
90
|
-
return __el2;
|
|
91
|
-
})());
|
|
92
|
-
__append(__el1, (() => {
|
|
93
|
-
const __el4 = __element("svg");
|
|
94
|
-
__el4.setAttribute("aria-hidden", "true");
|
|
95
|
-
__el4.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
96
|
-
__el4.setAttribute("viewBox", "0 0 24 24");
|
|
97
|
-
__el4.setAttribute("fill", "none");
|
|
98
|
-
__el4.setAttribute("stroke", "currentColor");
|
|
99
|
-
__el4.setAttribute("stroke-width", "3");
|
|
100
|
-
__el4.setAttribute("stroke-linecap", "round");
|
|
101
|
-
__el4.setAttribute("stroke-linejoin", "round");
|
|
102
|
-
__el4.setAttribute("data-part", "indicator-icon");
|
|
103
|
-
__el4.setAttribute("data-icon", "minus");
|
|
104
|
-
__el4.setAttribute("width", "100%");
|
|
105
|
-
__el4.setAttribute("height", "100%");
|
|
106
|
-
__enterChildren(__el4);
|
|
107
|
-
__append(__el4, (() => {
|
|
108
|
-
const __el5 = __element("path");
|
|
109
|
-
__el5.setAttribute("d", "M5 12h14");
|
|
110
|
-
return __el5;
|
|
111
|
-
})());
|
|
112
|
-
__exitChildren();
|
|
113
|
-
return __el4;
|
|
114
|
-
})());
|
|
115
|
-
__exitChildren();
|
|
116
|
-
return __el1;
|
|
117
|
-
})());
|
|
118
|
-
__append(__el0, __child(() => __props.children));
|
|
119
|
-
__exitChildren();
|
|
120
|
-
return __el0;
|
|
121
|
-
})();
|
|
122
|
-
__flushMountFrame();
|
|
123
|
-
return __mfResult0;
|
|
124
|
-
} catch (__mfErr) {
|
|
125
|
-
__discardMountFrame(__mfDepth);
|
|
126
|
-
throw __mfErr;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
var ComposedCheckbox = ComposedCheckboxRoot;
|
|
130
|
-
|
|
131
|
-
export { ComposedCheckbox };
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
setRovingTabindex
|
|
3
|
-
} from "./chunk-e2v1c9ex.js";
|
|
4
|
-
import {
|
|
5
|
-
uniqueId
|
|
6
|
-
} from "./chunk-8y1jf6xr.js";
|
|
7
|
-
import {
|
|
8
|
-
handleListNavigation
|
|
9
|
-
} from "./chunk-7867pr13.js";
|
|
10
|
-
import {
|
|
11
|
-
setChecked,
|
|
12
|
-
setDataState,
|
|
13
|
-
setDisabled
|
|
14
|
-
} from "./chunk-vevfhpc9.js";
|
|
15
|
-
import {
|
|
16
|
-
applyAttrs
|
|
17
|
-
} from "./chunk-2db2dnp3.js";
|
|
18
|
-
|
|
19
|
-
// src/radio/radio.tsx
|
|
20
|
-
import { __discardMountFrame, __element, __enterChildren, __exitChildren, __flushMountFrame, __insert, __on, __pushMountFrame } from "@vertz/ui/internals";
|
|
21
|
-
import { signal } from "@vertz/ui";
|
|
22
|
-
function RadioGroup(items, itemValues, selectItem) {
|
|
23
|
-
const __mfDepth = __pushMountFrame();
|
|
24
|
-
try {
|
|
25
|
-
const __mfResult0 = (() => {
|
|
26
|
-
const __el0 = __element("div");
|
|
27
|
-
__el0.setAttribute("role", "radiogroup");
|
|
28
|
-
{
|
|
29
|
-
const __v = uniqueId("radiogroup");
|
|
30
|
-
if (__v != null && __v !== false)
|
|
31
|
-
__el0.setAttribute("id", __v === true ? "" : __v);
|
|
32
|
-
}
|
|
33
|
-
__on(__el0, "keydown", (event) => {
|
|
34
|
-
const result = handleListNavigation(event, items, { orientation: "vertical" });
|
|
35
|
-
if (result) {
|
|
36
|
-
const idx = items.indexOf(result);
|
|
37
|
-
if (idx >= 0) {
|
|
38
|
-
const val = itemValues[idx];
|
|
39
|
-
if (val !== undefined)
|
|
40
|
-
selectItem(val);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
return __el0;
|
|
45
|
-
})();
|
|
46
|
-
__flushMountFrame();
|
|
47
|
-
return __mfResult0;
|
|
48
|
-
} catch (__mfErr) {
|
|
49
|
-
__discardMountFrame(__mfDepth);
|
|
50
|
-
throw __mfErr;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function RadioItem(value, label, isActive, disabled, selectItem) {
|
|
54
|
-
const __mfDepth = __pushMountFrame();
|
|
55
|
-
try {
|
|
56
|
-
const el = (() => {
|
|
57
|
-
const __el0 = __element("div");
|
|
58
|
-
__el0.setAttribute("role", "radio");
|
|
59
|
-
{
|
|
60
|
-
const __v = uniqueId("radio");
|
|
61
|
-
if (__v != null && __v !== false)
|
|
62
|
-
__el0.setAttribute("id", __v === true ? "" : __v);
|
|
63
|
-
}
|
|
64
|
-
{
|
|
65
|
-
const __v = value;
|
|
66
|
-
if (__v != null && __v !== false)
|
|
67
|
-
__el0.setAttribute("data-value", __v === true ? "" : __v);
|
|
68
|
-
}
|
|
69
|
-
{
|
|
70
|
-
const __v = isActive ? "true" : "false";
|
|
71
|
-
if (__v != null && __v !== false)
|
|
72
|
-
__el0.setAttribute("aria-checked", __v === true ? "" : __v);
|
|
73
|
-
}
|
|
74
|
-
{
|
|
75
|
-
const __v = isActive ? "checked" : "unchecked";
|
|
76
|
-
if (__v != null && __v !== false)
|
|
77
|
-
__el0.setAttribute("data-state", __v === true ? "" : __v);
|
|
78
|
-
}
|
|
79
|
-
__on(__el0, "click", () => {
|
|
80
|
-
if (!disabled)
|
|
81
|
-
selectItem(value);
|
|
82
|
-
});
|
|
83
|
-
__enterChildren(__el0);
|
|
84
|
-
__insert(__el0, label ?? value);
|
|
85
|
-
__exitChildren();
|
|
86
|
-
return __el0;
|
|
87
|
-
})();
|
|
88
|
-
if (disabled) {
|
|
89
|
-
setDisabled(el, true);
|
|
90
|
-
el.setAttribute("data-disabled", "");
|
|
91
|
-
}
|
|
92
|
-
const __mfResult0 = el;
|
|
93
|
-
__flushMountFrame();
|
|
94
|
-
return __mfResult0;
|
|
95
|
-
} catch (__mfErr) {
|
|
96
|
-
__discardMountFrame(__mfDepth);
|
|
97
|
-
throw __mfErr;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
function RadioRoot(options = {}) {
|
|
101
|
-
const { defaultValue = "", onValueChange, ...attrs } = options;
|
|
102
|
-
const state = { value: signal(defaultValue) };
|
|
103
|
-
const items = [];
|
|
104
|
-
const itemValues = [];
|
|
105
|
-
function selectItem(value) {
|
|
106
|
-
state.value.value = value;
|
|
107
|
-
for (let i = 0;i < items.length; i++) {
|
|
108
|
-
const item = items[i];
|
|
109
|
-
if (!item)
|
|
110
|
-
continue;
|
|
111
|
-
const isActive = itemValues[i] === value;
|
|
112
|
-
setChecked(item, isActive);
|
|
113
|
-
setDataState(item, isActive ? "checked" : "unchecked");
|
|
114
|
-
}
|
|
115
|
-
setRovingTabindex(items, itemValues.indexOf(value));
|
|
116
|
-
onValueChange?.(value);
|
|
117
|
-
}
|
|
118
|
-
const root = RadioGroup(items, itemValues, selectItem);
|
|
119
|
-
const cleanups = [];
|
|
120
|
-
function Item(value, label, itemOptions) {
|
|
121
|
-
const isActive = value === state.value.peek();
|
|
122
|
-
const disabled = itemOptions?.disabled ?? false;
|
|
123
|
-
const item = RadioItem(value, label, isActive, disabled, selectItem);
|
|
124
|
-
const handleClick = () => {
|
|
125
|
-
if (!disabled)
|
|
126
|
-
item.focus();
|
|
127
|
-
};
|
|
128
|
-
item.addEventListener("click", handleClick);
|
|
129
|
-
cleanups.push(() => item.removeEventListener("click", handleClick));
|
|
130
|
-
items.push(item);
|
|
131
|
-
itemValues.push(value);
|
|
132
|
-
setRovingTabindex(items, itemValues.indexOf(state.value.peek()));
|
|
133
|
-
return item;
|
|
134
|
-
}
|
|
135
|
-
function destroy() {
|
|
136
|
-
for (const cleanup of cleanups)
|
|
137
|
-
cleanup();
|
|
138
|
-
cleanups.length = 0;
|
|
139
|
-
}
|
|
140
|
-
applyAttrs(root, attrs);
|
|
141
|
-
return { root, state, Item, destroy };
|
|
142
|
-
}
|
|
143
|
-
var Radio = {
|
|
144
|
-
Root: RadioRoot
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
export { Radio };
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
linkedIds
|
|
3
|
-
} from "./chunk-8y1jf6xr.js";
|
|
4
|
-
import {
|
|
5
|
-
setDataState,
|
|
6
|
-
setExpanded,
|
|
7
|
-
setHidden,
|
|
8
|
-
setHiddenAnimated
|
|
9
|
-
} from "./chunk-vevfhpc9.js";
|
|
10
|
-
import {
|
|
11
|
-
applyAttrs
|
|
12
|
-
} from "./chunk-2db2dnp3.js";
|
|
13
|
-
|
|
14
|
-
// src/collapsible/collapsible.tsx
|
|
15
|
-
import { __discardMountFrame, __element, __enterChildren, __exitChildren, __flushMountFrame, __insert, __on, __pushMountFrame, __styleStr } from "@vertz/ui/internals";
|
|
16
|
-
import { signal } from "@vertz/ui";
|
|
17
|
-
function CollapsibleRoot(options = {}) {
|
|
18
|
-
const __mfDepth = __pushMountFrame();
|
|
19
|
-
try {
|
|
20
|
-
let toggle = function() {
|
|
21
|
-
if (state.disabled.peek())
|
|
22
|
-
return;
|
|
23
|
-
const next = !state.open.peek();
|
|
24
|
-
state.open.value = next;
|
|
25
|
-
if (next) {
|
|
26
|
-
setHidden(content, false);
|
|
27
|
-
}
|
|
28
|
-
const height = content.scrollHeight;
|
|
29
|
-
content.style.setProperty("--collapsible-content-height", `${height}px`);
|
|
30
|
-
setExpanded(trigger, next);
|
|
31
|
-
setDataState(trigger, next ? "open" : "closed");
|
|
32
|
-
setDataState(content, next ? "open" : "closed");
|
|
33
|
-
if (!next) {
|
|
34
|
-
setHiddenAnimated(content, true);
|
|
35
|
-
}
|
|
36
|
-
onOpenChange?.(next);
|
|
37
|
-
};
|
|
38
|
-
const { defaultOpen = false, disabled = false, onOpenChange, ...attrs } = options;
|
|
39
|
-
const ids = linkedIds("collapsible");
|
|
40
|
-
const state = {
|
|
41
|
-
open: signal(defaultOpen),
|
|
42
|
-
disabled: signal(disabled)
|
|
43
|
-
};
|
|
44
|
-
const trigger = (() => {
|
|
45
|
-
const __el0 = __element("button");
|
|
46
|
-
__el0.setAttribute("type", "button");
|
|
47
|
-
{
|
|
48
|
-
const __v = ids.triggerId;
|
|
49
|
-
if (__v != null && __v !== false)
|
|
50
|
-
__el0.setAttribute("id", __v === true ? "" : __v);
|
|
51
|
-
}
|
|
52
|
-
{
|
|
53
|
-
const __v = ids.contentId;
|
|
54
|
-
if (__v != null && __v !== false)
|
|
55
|
-
__el0.setAttribute("aria-controls", __v === true ? "" : __v);
|
|
56
|
-
}
|
|
57
|
-
{
|
|
58
|
-
const __v = defaultOpen ? "true" : "false";
|
|
59
|
-
if (__v != null && __v !== false)
|
|
60
|
-
__el0.setAttribute("aria-expanded", __v === true ? "" : __v);
|
|
61
|
-
}
|
|
62
|
-
{
|
|
63
|
-
const __v = defaultOpen ? "open" : "closed";
|
|
64
|
-
if (__v != null && __v !== false)
|
|
65
|
-
__el0.setAttribute("data-state", __v === true ? "" : __v);
|
|
66
|
-
}
|
|
67
|
-
{
|
|
68
|
-
const __v = disabled;
|
|
69
|
-
if (__v != null && __v !== false)
|
|
70
|
-
__el0.setAttribute("disabled", __v === true ? "" : __v);
|
|
71
|
-
}
|
|
72
|
-
{
|
|
73
|
-
const __v = disabled ? "true" : undefined;
|
|
74
|
-
if (__v != null && __v !== false)
|
|
75
|
-
__el0.setAttribute("aria-disabled", __v === true ? "" : __v);
|
|
76
|
-
}
|
|
77
|
-
__on(__el0, "click", toggle);
|
|
78
|
-
return __el0;
|
|
79
|
-
})();
|
|
80
|
-
const content = (() => {
|
|
81
|
-
const __el1 = __element("div");
|
|
82
|
-
{
|
|
83
|
-
const __v = ids.contentId;
|
|
84
|
-
if (__v != null && __v !== false)
|
|
85
|
-
__el1.setAttribute("id", __v === true ? "" : __v);
|
|
86
|
-
}
|
|
87
|
-
{
|
|
88
|
-
const __v = defaultOpen ? "false" : "true";
|
|
89
|
-
if (__v != null && __v !== false)
|
|
90
|
-
__el1.setAttribute("aria-hidden", __v === true ? "" : __v);
|
|
91
|
-
}
|
|
92
|
-
{
|
|
93
|
-
const __v = defaultOpen ? "open" : "closed";
|
|
94
|
-
if (__v != null && __v !== false)
|
|
95
|
-
__el1.setAttribute("data-state", __v === true ? "" : __v);
|
|
96
|
-
}
|
|
97
|
-
{
|
|
98
|
-
const __v = { display: defaultOpen ? "" : "none" };
|
|
99
|
-
if (__v != null && __v !== false)
|
|
100
|
-
__el1.setAttribute("style", typeof __v === "object" ? __styleStr(__v) : __v === true ? "" : String(__v));
|
|
101
|
-
}
|
|
102
|
-
return __el1;
|
|
103
|
-
})();
|
|
104
|
-
const root = (() => {
|
|
105
|
-
const __el2 = __element("div");
|
|
106
|
-
__enterChildren(__el2);
|
|
107
|
-
__insert(__el2, trigger);
|
|
108
|
-
__insert(__el2, content);
|
|
109
|
-
__exitChildren();
|
|
110
|
-
return __el2;
|
|
111
|
-
})();
|
|
112
|
-
applyAttrs(root, attrs);
|
|
113
|
-
const __mfResult0 = { root, trigger, content, state };
|
|
114
|
-
__flushMountFrame();
|
|
115
|
-
return __mfResult0;
|
|
116
|
-
} catch (__mfErr) {
|
|
117
|
-
__discardMountFrame(__mfDepth);
|
|
118
|
-
throw __mfErr;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
var Collapsible = {
|
|
122
|
-
Root: CollapsibleRoot
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export { Collapsible };
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
createDismiss
|
|
3
|
-
} from "./chunk-a6wp8c32.js";
|
|
4
|
-
import {
|
|
5
|
-
cn
|
|
6
|
-
} from "./chunk-q7xbcj9q.js";
|
|
7
|
-
import {
|
|
8
|
-
createFloatingPosition
|
|
9
|
-
} from "./chunk-vef3sepw.js";
|
|
10
|
-
import {
|
|
11
|
-
linkedIds
|
|
12
|
-
} from "./chunk-8y1jf6xr.js";
|
|
13
|
-
|
|
14
|
-
// src/popover/popover-composed.tsx
|
|
15
|
-
import { signal } from "@vertz/ui";
|
|
16
|
-
import { __append, __attr, __child, __discardMountFrame, __element, __enterChildren, __exitChildren, __flushMountFrame, __on, __pushMountFrame, __styleStr } from "@vertz/ui/internals";
|
|
17
|
-
import { createContext, ref, useContext } from "@vertz/ui";
|
|
18
|
-
var PopoverContext = createContext(undefined, "@vertz/ui-primitives::PopoverContext");
|
|
19
|
-
function usePopoverContext(componentName) {
|
|
20
|
-
const ctx = useContext(PopoverContext);
|
|
21
|
-
if (!ctx) {
|
|
22
|
-
throw new Error(`<Popover.${componentName}> must be used inside <Popover>. ` + "Ensure it is a direct or nested child of the Popover root component.");
|
|
23
|
-
}
|
|
24
|
-
return ctx;
|
|
25
|
-
}
|
|
26
|
-
function PopoverTrigger(__props) {
|
|
27
|
-
const __mfDepth = __pushMountFrame();
|
|
28
|
-
try {
|
|
29
|
-
const ctx = usePopoverContext("Trigger");
|
|
30
|
-
const __mfResult0 = (() => {
|
|
31
|
-
const __el0 = __element("span");
|
|
32
|
-
{
|
|
33
|
-
const __v = { display: "contents" };
|
|
34
|
-
if (__v != null && __v !== false)
|
|
35
|
-
__el0.setAttribute("style", typeof __v === "object" ? __styleStr(__v) : __v === true ? "" : String(__v));
|
|
36
|
-
}
|
|
37
|
-
__el0.setAttribute("data-popover-trigger", "");
|
|
38
|
-
__el0.setAttribute("aria-haspopup", "dialog");
|
|
39
|
-
{
|
|
40
|
-
const __v = ctx.contentId;
|
|
41
|
-
if (__v != null && __v !== false)
|
|
42
|
-
__el0.setAttribute("aria-controls", __v === true ? "" : __v);
|
|
43
|
-
}
|
|
44
|
-
__el0.setAttribute("aria-expanded", "false");
|
|
45
|
-
__el0.setAttribute("data-state", "closed");
|
|
46
|
-
__on(__el0, "click", () => {
|
|
47
|
-
ctx.toggle();
|
|
48
|
-
const nowOpen = ctx.isOpen();
|
|
49
|
-
const el = document.querySelector(`[data-popover-trigger][aria-controls="${ctx.contentId}"]`);
|
|
50
|
-
if (el) {
|
|
51
|
-
el.setAttribute("aria-expanded", nowOpen ? "true" : "false");
|
|
52
|
-
el.setAttribute("data-state", nowOpen ? "open" : "closed");
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
__enterChildren(__el0);
|
|
56
|
-
__append(__el0, __child(() => __props.children));
|
|
57
|
-
__exitChildren();
|
|
58
|
-
return __el0;
|
|
59
|
-
})();
|
|
60
|
-
__flushMountFrame();
|
|
61
|
-
return __mfResult0;
|
|
62
|
-
} catch (__mfErr) {
|
|
63
|
-
__discardMountFrame(__mfDepth);
|
|
64
|
-
throw __mfErr;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function PopoverContent(__props) {
|
|
68
|
-
const __mfDepth = __pushMountFrame();
|
|
69
|
-
try {
|
|
70
|
-
const ctx = usePopoverContext("Content");
|
|
71
|
-
const instanceIndex = ctx._contentCount.value++;
|
|
72
|
-
if (instanceIndex > 0) {
|
|
73
|
-
console.warn("Duplicate <Popover.Content> detected – only the first is used");
|
|
74
|
-
}
|
|
75
|
-
const __mfResult0 = (() => {
|
|
76
|
-
const __el0 = __element("div");
|
|
77
|
-
ctx.contentRef.current = __el0;
|
|
78
|
-
__el0.setAttribute("role", "dialog");
|
|
79
|
-
{
|
|
80
|
-
const __v = ctx.contentId;
|
|
81
|
-
if (__v != null && __v !== false)
|
|
82
|
-
__el0.setAttribute("id", __v === true ? "" : __v);
|
|
83
|
-
}
|
|
84
|
-
__el0.setAttribute("data-popover-content", "");
|
|
85
|
-
__el0.setAttribute("aria-hidden", "true");
|
|
86
|
-
__el0.setAttribute("data-state", "closed");
|
|
87
|
-
{
|
|
88
|
-
const __v = { display: "none" };
|
|
89
|
-
if (__v != null && __v !== false)
|
|
90
|
-
__el0.setAttribute("style", typeof __v === "object" ? __styleStr(__v) : __v === true ? "" : String(__v));
|
|
91
|
-
}
|
|
92
|
-
__attr(__el0, "class", () => cn(ctx.classes?.content, __props.className ?? __props.class));
|
|
93
|
-
__enterChildren(__el0);
|
|
94
|
-
__append(__el0, __child(() => __props.children));
|
|
95
|
-
__exitChildren();
|
|
96
|
-
return __el0;
|
|
97
|
-
})();
|
|
98
|
-
__flushMountFrame();
|
|
99
|
-
return __mfResult0;
|
|
100
|
-
} catch (__mfErr) {
|
|
101
|
-
__discardMountFrame(__mfDepth);
|
|
102
|
-
throw __mfErr;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function ComposedPopoverRoot(__props) {
|
|
106
|
-
const __mfDepth = __pushMountFrame();
|
|
107
|
-
try {
|
|
108
|
-
let getElements = function() {
|
|
109
|
-
const content = contentRef.current ?? null;
|
|
110
|
-
let trigger = content ? content.parentElement?.querySelector("[data-popover-trigger]") : null;
|
|
111
|
-
while (trigger && getComputedStyle(trigger).display === "contents") {
|
|
112
|
-
trigger = trigger.firstElementChild;
|
|
113
|
-
}
|
|
114
|
-
return { trigger, content };
|
|
115
|
-
}, syncContentAttrs = function(nowOpen) {
|
|
116
|
-
const content = contentRef.current;
|
|
117
|
-
if (!content)
|
|
118
|
-
return;
|
|
119
|
-
content.setAttribute("data-state", nowOpen ? "open" : "closed");
|
|
120
|
-
content.setAttribute("aria-hidden", nowOpen ? "false" : "true");
|
|
121
|
-
content.style.display = nowOpen ? "" : "none";
|
|
122
|
-
}, open = function() {
|
|
123
|
-
isOpen.value = true;
|
|
124
|
-
syncContentAttrs(true);
|
|
125
|
-
const { trigger, content } = getElements();
|
|
126
|
-
if (trigger && content) {
|
|
127
|
-
content.style.position = "fixed";
|
|
128
|
-
const floatingOpts = __props.positioning ?? {};
|
|
129
|
-
const result = createFloatingPosition(trigger, content, floatingOpts);
|
|
130
|
-
cleanup.floating = result.cleanup;
|
|
131
|
-
cleanup.dismiss = createDismiss({
|
|
132
|
-
onDismiss: close,
|
|
133
|
-
insideElements: [trigger, content],
|
|
134
|
-
escapeKey: true
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
__props.onOpenChange?.(true);
|
|
138
|
-
}, close = function() {
|
|
139
|
-
isOpen.value = false;
|
|
140
|
-
syncContentAttrs(false);
|
|
141
|
-
const content = contentRef.current;
|
|
142
|
-
if (content) {
|
|
143
|
-
content.style.position = "";
|
|
144
|
-
content.style.left = "";
|
|
145
|
-
content.style.top = "";
|
|
146
|
-
}
|
|
147
|
-
cleanup.floating?.();
|
|
148
|
-
cleanup.floating = null;
|
|
149
|
-
cleanup.dismiss?.();
|
|
150
|
-
cleanup.dismiss = null;
|
|
151
|
-
__props.onOpenChange?.(false);
|
|
152
|
-
}, toggle = function() {
|
|
153
|
-
if (isOpen.value)
|
|
154
|
-
close();
|
|
155
|
-
else
|
|
156
|
-
open();
|
|
157
|
-
};
|
|
158
|
-
const ids = linkedIds("popover");
|
|
159
|
-
const contentRef = ref();
|
|
160
|
-
const isOpen = signal(false, "isOpen");
|
|
161
|
-
const cleanup = {
|
|
162
|
-
floating: null,
|
|
163
|
-
dismiss: null
|
|
164
|
-
};
|
|
165
|
-
const ctx = {
|
|
166
|
-
isOpen: () => isOpen.value,
|
|
167
|
-
contentId: ids.contentId,
|
|
168
|
-
contentRef,
|
|
169
|
-
classes: __props.classes,
|
|
170
|
-
open,
|
|
171
|
-
close,
|
|
172
|
-
toggle,
|
|
173
|
-
_contentCount: { value: 0 }
|
|
174
|
-
};
|
|
175
|
-
const __mfResult0 = PopoverContext.Provider({ get value() {
|
|
176
|
-
return ctx;
|
|
177
|
-
}, children: () => (() => {
|
|
178
|
-
const __el0 = __element("span");
|
|
179
|
-
{
|
|
180
|
-
const __v = { display: "contents" };
|
|
181
|
-
if (__v != null && __v !== false)
|
|
182
|
-
__el0.setAttribute("style", typeof __v === "object" ? __styleStr(__v) : __v === true ? "" : String(__v));
|
|
183
|
-
}
|
|
184
|
-
__el0.setAttribute("data-popover-root", "");
|
|
185
|
-
__enterChildren(__el0);
|
|
186
|
-
__append(__el0, __child(() => __props.children));
|
|
187
|
-
__exitChildren();
|
|
188
|
-
return __el0;
|
|
189
|
-
})() });
|
|
190
|
-
__flushMountFrame();
|
|
191
|
-
return __mfResult0;
|
|
192
|
-
} catch (__mfErr) {
|
|
193
|
-
__discardMountFrame(__mfDepth);
|
|
194
|
-
throw __mfErr;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
var ComposedPopover = Object.assign(ComposedPopoverRoot, {
|
|
198
|
-
Trigger: PopoverTrigger,
|
|
199
|
-
Content: PopoverContent
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
export { ComposedPopover };
|