@vertz/ui-primitives 0.2.41 → 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-3sahbk4d.js → chunk-fdse46x5.js} +6 -1
- 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-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,31 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-q7xbcj9q.js";
|
|
4
|
-
|
|
5
|
-
// src/button/button-composed.tsx
|
|
6
|
-
import { __append, __attr, __child, __discardMountFrame, __element, __enterChildren, __exitChildren, __flushMountFrame, __pushMountFrame, __spread } from "@vertz/ui/internals";
|
|
7
|
-
function ComposedButtonRoot(__props) {
|
|
8
|
-
const { classes: __$drop_0, className: __$drop_1, class: __$drop_2, children: __$drop_3, disabled: __$drop_4, type: __$drop_5, ...rest } = __props;
|
|
9
|
-
const __mfDepth = __pushMountFrame();
|
|
10
|
-
try {
|
|
11
|
-
const __mfResult0 = (() => {
|
|
12
|
-
const __el0 = __element("button");
|
|
13
|
-
__attr(__el0, "type", () => __props.type ?? "button");
|
|
14
|
-
__attr(__el0, "class", () => cn(__props.classes?.base, __props.className ?? __props.class));
|
|
15
|
-
__attr(__el0, "disabled", () => __props.disabled || undefined);
|
|
16
|
-
__spread(__el0, rest);
|
|
17
|
-
__enterChildren(__el0);
|
|
18
|
-
__append(__el0, __child(() => __props.children));
|
|
19
|
-
__exitChildren();
|
|
20
|
-
return __el0;
|
|
21
|
-
})();
|
|
22
|
-
__flushMountFrame();
|
|
23
|
-
return __mfResult0;
|
|
24
|
-
} catch (__mfErr) {
|
|
25
|
-
__discardMountFrame(__mfDepth);
|
|
26
|
-
throw __mfErr;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
var ComposedButton = ComposedButtonRoot;
|
|
30
|
-
|
|
31
|
-
export { ComposedButton };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-q7xbcj9q.js";
|
|
4
|
-
|
|
5
|
-
// src/form-group/form-group-composed.tsx
|
|
6
|
-
import { __append, __attr, __child, __discardMountFrame, __element, __enterChildren, __exitChildren, __flushMountFrame, __pushMountFrame } from "@vertz/ui/internals";
|
|
7
|
-
import { createContext, useContext } from "@vertz/ui";
|
|
8
|
-
var FormGroupContext = createContext(undefined, "@vertz/ui-primitives::FormGroupContext");
|
|
9
|
-
function FormError(__props) {
|
|
10
|
-
const __mfDepth = __pushMountFrame();
|
|
11
|
-
try {
|
|
12
|
-
const ctx = useContext(FormGroupContext);
|
|
13
|
-
const __mfResult0 = (() => {
|
|
14
|
-
const __el0 = __element("span");
|
|
15
|
-
__attr(__el0, "class", () => cn(ctx?.classes?.error, __props.className ?? __props.class));
|
|
16
|
-
__enterChildren(__el0);
|
|
17
|
-
__append(__el0, __child(() => __props.children));
|
|
18
|
-
__exitChildren();
|
|
19
|
-
return __el0;
|
|
20
|
-
})();
|
|
21
|
-
__flushMountFrame();
|
|
22
|
-
return __mfResult0;
|
|
23
|
-
} catch (__mfErr) {
|
|
24
|
-
__discardMountFrame(__mfDepth);
|
|
25
|
-
throw __mfErr;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function ComposedFormGroupRoot(__props) {
|
|
29
|
-
const __mfDepth = __pushMountFrame();
|
|
30
|
-
try {
|
|
31
|
-
const __mfResult0 = FormGroupContext.Provider({ get value() {
|
|
32
|
-
return { classes: __props.classes };
|
|
33
|
-
}, children: () => (() => {
|
|
34
|
-
const __el0 = __element("div");
|
|
35
|
-
__attr(__el0, "class", () => cn(__props.classes?.base, __props.className ?? __props.class));
|
|
36
|
-
__enterChildren(__el0);
|
|
37
|
-
__append(__el0, __child(() => __props.children));
|
|
38
|
-
__exitChildren();
|
|
39
|
-
return __el0;
|
|
40
|
-
})() });
|
|
41
|
-
__flushMountFrame();
|
|
42
|
-
return __mfResult0;
|
|
43
|
-
} catch (__mfErr) {
|
|
44
|
-
__discardMountFrame(__mfDepth);
|
|
45
|
-
throw __mfErr;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
var ComposedFormGroup = Object.assign(ComposedFormGroupRoot, {
|
|
49
|
-
FormError
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export { ComposedFormGroup };
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
focusFirst,
|
|
3
|
-
saveFocus,
|
|
4
|
-
trapFocus
|
|
5
|
-
} from "./chunk-e2v1c9ex.js";
|
|
6
|
-
import {
|
|
7
|
-
linkedIds
|
|
8
|
-
} from "./chunk-8y1jf6xr.js";
|
|
9
|
-
import {
|
|
10
|
-
Keys,
|
|
11
|
-
isKey
|
|
12
|
-
} from "./chunk-7867pr13.js";
|
|
13
|
-
import {
|
|
14
|
-
setDataState,
|
|
15
|
-
setDescribedBy,
|
|
16
|
-
setExpanded,
|
|
17
|
-
setHidden,
|
|
18
|
-
setHiddenAnimated,
|
|
19
|
-
setLabelledBy
|
|
20
|
-
} from "./chunk-vevfhpc9.js";
|
|
21
|
-
import {
|
|
22
|
-
applyAttrs
|
|
23
|
-
} from "./chunk-2db2dnp3.js";
|
|
24
|
-
|
|
25
|
-
// src/dialog/dialog.tsx
|
|
26
|
-
import { __discardMountFrame, __element, __flushMountFrame, __on, __pushMountFrame, __styleStr } from "@vertz/ui/internals";
|
|
27
|
-
import { signal } from "@vertz/ui";
|
|
28
|
-
function DialogRoot(options = {}) {
|
|
29
|
-
const __mfDepth = __pushMountFrame();
|
|
30
|
-
try {
|
|
31
|
-
let openDialog = function() {
|
|
32
|
-
state.open.value = true;
|
|
33
|
-
setExpanded(trigger, true);
|
|
34
|
-
setHidden(overlay, false);
|
|
35
|
-
setHidden(content, false);
|
|
36
|
-
setDataState(trigger, "open");
|
|
37
|
-
setDataState(overlay, "open");
|
|
38
|
-
setDataState(content, "open");
|
|
39
|
-
restoreFocus = saveFocus();
|
|
40
|
-
if (modal) {
|
|
41
|
-
removeTrap = trapFocus(content);
|
|
42
|
-
}
|
|
43
|
-
queueMicrotask(() => focusFirst(content));
|
|
44
|
-
onOpenChange?.(true);
|
|
45
|
-
}, closeDialog = function() {
|
|
46
|
-
state.open.value = false;
|
|
47
|
-
setExpanded(trigger, false);
|
|
48
|
-
setDataState(trigger, "closed");
|
|
49
|
-
setDataState(overlay, "closed");
|
|
50
|
-
setDataState(content, "closed");
|
|
51
|
-
setHiddenAnimated(overlay, true);
|
|
52
|
-
setHiddenAnimated(content, true);
|
|
53
|
-
removeTrap?.();
|
|
54
|
-
removeTrap = null;
|
|
55
|
-
restoreFocus?.();
|
|
56
|
-
restoreFocus = null;
|
|
57
|
-
onOpenChange?.(false);
|
|
58
|
-
};
|
|
59
|
-
const { modal = true, defaultOpen = false, onOpenChange, ...attrs } = options;
|
|
60
|
-
const ids = linkedIds("dialog");
|
|
61
|
-
const titleId = `${ids.contentId}-title`;
|
|
62
|
-
const descriptionId = `${ids.contentId}-description`;
|
|
63
|
-
const state = { open: signal(defaultOpen) };
|
|
64
|
-
let restoreFocus = null;
|
|
65
|
-
let removeTrap = null;
|
|
66
|
-
const trigger = (() => {
|
|
67
|
-
const __el0 = __element("button");
|
|
68
|
-
__el0.setAttribute("type", "button");
|
|
69
|
-
{
|
|
70
|
-
const __v = ids.triggerId;
|
|
71
|
-
if (__v != null && __v !== false)
|
|
72
|
-
__el0.setAttribute("id", __v === true ? "" : __v);
|
|
73
|
-
}
|
|
74
|
-
{
|
|
75
|
-
const __v = ids.contentId;
|
|
76
|
-
if (__v != null && __v !== false)
|
|
77
|
-
__el0.setAttribute("aria-controls", __v === true ? "" : __v);
|
|
78
|
-
}
|
|
79
|
-
{
|
|
80
|
-
const __v = defaultOpen ? "true" : "false";
|
|
81
|
-
if (__v != null && __v !== false)
|
|
82
|
-
__el0.setAttribute("aria-expanded", __v === true ? "" : __v);
|
|
83
|
-
}
|
|
84
|
-
{
|
|
85
|
-
const __v = defaultOpen ? "open" : "closed";
|
|
86
|
-
if (__v != null && __v !== false)
|
|
87
|
-
__el0.setAttribute("data-state", __v === true ? "" : __v);
|
|
88
|
-
}
|
|
89
|
-
__on(__el0, "click", () => {
|
|
90
|
-
if (state.open.peek()) {
|
|
91
|
-
closeDialog();
|
|
92
|
-
} else {
|
|
93
|
-
openDialog();
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
return __el0;
|
|
97
|
-
})();
|
|
98
|
-
const overlay = (() => {
|
|
99
|
-
const __el1 = __element("div");
|
|
100
|
-
__el1.setAttribute("data-dialog-overlay", "");
|
|
101
|
-
{
|
|
102
|
-
const __v = defaultOpen ? "false" : "true";
|
|
103
|
-
if (__v != null && __v !== false)
|
|
104
|
-
__el1.setAttribute("aria-hidden", __v === true ? "" : __v);
|
|
105
|
-
}
|
|
106
|
-
{
|
|
107
|
-
const __v = defaultOpen ? "open" : "closed";
|
|
108
|
-
if (__v != null && __v !== false)
|
|
109
|
-
__el1.setAttribute("data-state", __v === true ? "" : __v);
|
|
110
|
-
}
|
|
111
|
-
{
|
|
112
|
-
const __v = { display: defaultOpen ? "" : "none" };
|
|
113
|
-
if (__v != null && __v !== false)
|
|
114
|
-
__el1.setAttribute("style", typeof __v === "object" ? __styleStr(__v) : __v === true ? "" : String(__v));
|
|
115
|
-
}
|
|
116
|
-
__on(__el1, "click", () => closeDialog());
|
|
117
|
-
return __el1;
|
|
118
|
-
})();
|
|
119
|
-
const content = (() => {
|
|
120
|
-
const __el2 = __element("div");
|
|
121
|
-
__el2.setAttribute("role", "dialog");
|
|
122
|
-
{
|
|
123
|
-
const __v = ids.contentId;
|
|
124
|
-
if (__v != null && __v !== false)
|
|
125
|
-
__el2.setAttribute("id", __v === true ? "" : __v);
|
|
126
|
-
}
|
|
127
|
-
{
|
|
128
|
-
const __v = modal ? "true" : undefined;
|
|
129
|
-
if (__v != null && __v !== false)
|
|
130
|
-
__el2.setAttribute("aria-modal", __v === true ? "" : __v);
|
|
131
|
-
}
|
|
132
|
-
{
|
|
133
|
-
const __v = defaultOpen ? "false" : "true";
|
|
134
|
-
if (__v != null && __v !== false)
|
|
135
|
-
__el2.setAttribute("aria-hidden", __v === true ? "" : __v);
|
|
136
|
-
}
|
|
137
|
-
{
|
|
138
|
-
const __v = defaultOpen ? "open" : "closed";
|
|
139
|
-
if (__v != null && __v !== false)
|
|
140
|
-
__el2.setAttribute("data-state", __v === true ? "" : __v);
|
|
141
|
-
}
|
|
142
|
-
{
|
|
143
|
-
const __v = { display: defaultOpen ? "" : "none" };
|
|
144
|
-
if (__v != null && __v !== false)
|
|
145
|
-
__el2.setAttribute("style", typeof __v === "object" ? __styleStr(__v) : __v === true ? "" : String(__v));
|
|
146
|
-
}
|
|
147
|
-
__on(__el2, "keydown", (event) => {
|
|
148
|
-
if (isKey(event, Keys.Escape)) {
|
|
149
|
-
event.preventDefault();
|
|
150
|
-
event.stopPropagation();
|
|
151
|
-
closeDialog();
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
return __el2;
|
|
155
|
-
})();
|
|
156
|
-
setLabelledBy(content, titleId);
|
|
157
|
-
setDescribedBy(content, descriptionId);
|
|
158
|
-
const title = (() => {
|
|
159
|
-
const __el3 = __element("h2");
|
|
160
|
-
{
|
|
161
|
-
const __v = titleId;
|
|
162
|
-
if (__v != null && __v !== false)
|
|
163
|
-
__el3.setAttribute("id", __v === true ? "" : __v);
|
|
164
|
-
}
|
|
165
|
-
return __el3;
|
|
166
|
-
})();
|
|
167
|
-
const description = (() => {
|
|
168
|
-
const __el4 = __element("p");
|
|
169
|
-
{
|
|
170
|
-
const __v = descriptionId;
|
|
171
|
-
if (__v != null && __v !== false)
|
|
172
|
-
__el4.setAttribute("id", __v === true ? "" : __v);
|
|
173
|
-
}
|
|
174
|
-
return __el4;
|
|
175
|
-
})();
|
|
176
|
-
const close = (() => {
|
|
177
|
-
const __el5 = __element("button");
|
|
178
|
-
__el5.setAttribute("type", "button");
|
|
179
|
-
__el5.setAttribute("aria-label", "Close");
|
|
180
|
-
__on(__el5, "click", () => closeDialog());
|
|
181
|
-
return __el5;
|
|
182
|
-
})();
|
|
183
|
-
applyAttrs(content, attrs);
|
|
184
|
-
const __mfResult0 = {
|
|
185
|
-
trigger,
|
|
186
|
-
overlay,
|
|
187
|
-
content,
|
|
188
|
-
title,
|
|
189
|
-
description,
|
|
190
|
-
close,
|
|
191
|
-
state,
|
|
192
|
-
show: openDialog,
|
|
193
|
-
hide: closeDialog
|
|
194
|
-
};
|
|
195
|
-
__flushMountFrame();
|
|
196
|
-
return __mfResult0;
|
|
197
|
-
} catch (__mfErr) {
|
|
198
|
-
__discardMountFrame(__mfDepth);
|
|
199
|
-
throw __mfErr;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
var Dialog = {
|
|
203
|
-
Root: DialogRoot
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
export { Dialog };
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
applyAttrs
|
|
3
|
-
} from "./chunk-2db2dnp3.js";
|
|
4
|
-
|
|
5
|
-
// src/scroll-area/scroll-area.tsx
|
|
6
|
-
import { __append, __conditional, __discardMountFrame, __element, __enterChildren, __exitChildren, __flushMountFrame, __insert, __on, __pushMountFrame, __styleStr } from "@vertz/ui/internals";
|
|
7
|
-
import { signal } from "@vertz/ui";
|
|
8
|
-
function ScrollAreaRoot(options = {}) {
|
|
9
|
-
const __mfDepth = __pushMountFrame();
|
|
10
|
-
try {
|
|
11
|
-
let syncThumbY = function() {
|
|
12
|
-
const { scrollTop, scrollHeight, clientHeight } = viewport;
|
|
13
|
-
if (scrollHeight <= clientHeight) {
|
|
14
|
-
thumbY.style.height = "0";
|
|
15
|
-
return;
|
|
16
|
-
}
|
|
17
|
-
const ratio = clientHeight / scrollHeight;
|
|
18
|
-
thumbY.style.height = `${ratio * 100}%`;
|
|
19
|
-
const scrollRatio = scrollTop / (scrollHeight - clientHeight);
|
|
20
|
-
thumbY.style.transform = `translateY(${scrollRatio * (1 / ratio - 1) * 100}%)`;
|
|
21
|
-
state.scrollTop.value = scrollTop;
|
|
22
|
-
}, syncThumbX = function() {
|
|
23
|
-
const { scrollLeft, scrollWidth, clientWidth } = viewport;
|
|
24
|
-
if (scrollWidth <= clientWidth) {
|
|
25
|
-
thumbX.style.width = "0";
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
const ratio = clientWidth / scrollWidth;
|
|
29
|
-
thumbX.style.width = `${ratio * 100}%`;
|
|
30
|
-
const scrollRatio = scrollLeft / (scrollWidth - clientWidth);
|
|
31
|
-
thumbX.style.transform = `translateX(${scrollRatio * (1 / ratio - 1) * 100}%)`;
|
|
32
|
-
state.scrollLeft.value = scrollLeft;
|
|
33
|
-
}, update = function() {
|
|
34
|
-
syncThumbY();
|
|
35
|
-
syncThumbX();
|
|
36
|
-
}, handleViewportScroll = function() {
|
|
37
|
-
if (orientation === "vertical" || orientation === "both")
|
|
38
|
-
syncThumbY();
|
|
39
|
-
if (orientation === "horizontal" || orientation === "both")
|
|
40
|
-
syncThumbX();
|
|
41
|
-
}, handleThumbYDown = function(e) {
|
|
42
|
-
isDraggingY = true;
|
|
43
|
-
startY = e.clientY;
|
|
44
|
-
startScrollTop = viewport.scrollTop;
|
|
45
|
-
thumbY.setPointerCapture(e.pointerId);
|
|
46
|
-
e.preventDefault();
|
|
47
|
-
}, handleThumbYMove = function(e) {
|
|
48
|
-
if (!isDraggingY)
|
|
49
|
-
return;
|
|
50
|
-
const delta = e.clientY - startY;
|
|
51
|
-
const scrollbarHeight = scrollbarY.clientHeight;
|
|
52
|
-
const scrollRange = viewport.scrollHeight - viewport.clientHeight;
|
|
53
|
-
if (scrollbarHeight > 0) {
|
|
54
|
-
viewport.scrollTop = startScrollTop + delta / scrollbarHeight * scrollRange;
|
|
55
|
-
}
|
|
56
|
-
}, handleThumbYUp = function(e) {
|
|
57
|
-
isDraggingY = false;
|
|
58
|
-
thumbY.releasePointerCapture(e.pointerId);
|
|
59
|
-
}, handleThumbXDown = function(e) {
|
|
60
|
-
isDraggingX = true;
|
|
61
|
-
startX = e.clientX;
|
|
62
|
-
startScrollLeft = viewport.scrollLeft;
|
|
63
|
-
thumbX.setPointerCapture(e.pointerId);
|
|
64
|
-
e.preventDefault();
|
|
65
|
-
}, handleThumbXMove = function(e) {
|
|
66
|
-
if (!isDraggingX)
|
|
67
|
-
return;
|
|
68
|
-
const delta = e.clientX - startX;
|
|
69
|
-
const scrollbarWidth = scrollbarX.clientWidth;
|
|
70
|
-
const scrollRange = viewport.scrollWidth - viewport.clientWidth;
|
|
71
|
-
if (scrollbarWidth > 0) {
|
|
72
|
-
viewport.scrollLeft = startScrollLeft + delta / scrollbarWidth * scrollRange;
|
|
73
|
-
}
|
|
74
|
-
}, handleThumbXUp = function(e) {
|
|
75
|
-
isDraggingX = false;
|
|
76
|
-
thumbX.releasePointerCapture(e.pointerId);
|
|
77
|
-
};
|
|
78
|
-
const { orientation = "vertical", type: _type, ...attrs } = options;
|
|
79
|
-
const state = {
|
|
80
|
-
scrollTop: signal(0),
|
|
81
|
-
scrollLeft: signal(0)
|
|
82
|
-
};
|
|
83
|
-
let isDraggingY = false;
|
|
84
|
-
let startY = 0;
|
|
85
|
-
let startScrollTop = 0;
|
|
86
|
-
let isDraggingX = false;
|
|
87
|
-
let startX = 0;
|
|
88
|
-
let startScrollLeft = 0;
|
|
89
|
-
const thumbY = (() => {
|
|
90
|
-
const __el0 = __element("div");
|
|
91
|
-
__on(__el0, "pointerdown", handleThumbYDown);
|
|
92
|
-
__on(__el0, "pointermove", handleThumbYMove);
|
|
93
|
-
__on(__el0, "pointerup", handleThumbYUp);
|
|
94
|
-
return __el0;
|
|
95
|
-
})();
|
|
96
|
-
const scrollbarY = (() => {
|
|
97
|
-
const __el1 = __element("div");
|
|
98
|
-
__el1.setAttribute("aria-hidden", "true");
|
|
99
|
-
__el1.setAttribute("data-orientation", "vertical");
|
|
100
|
-
__enterChildren(__el1);
|
|
101
|
-
__insert(__el1, thumbY);
|
|
102
|
-
__exitChildren();
|
|
103
|
-
return __el1;
|
|
104
|
-
})();
|
|
105
|
-
const thumbX = (() => {
|
|
106
|
-
const __el2 = __element("div");
|
|
107
|
-
__on(__el2, "pointerdown", handleThumbXDown);
|
|
108
|
-
__on(__el2, "pointermove", handleThumbXMove);
|
|
109
|
-
__on(__el2, "pointerup", handleThumbXUp);
|
|
110
|
-
return __el2;
|
|
111
|
-
})();
|
|
112
|
-
const scrollbarX = (() => {
|
|
113
|
-
const __el3 = __element("div");
|
|
114
|
-
__el3.setAttribute("aria-hidden", "true");
|
|
115
|
-
__el3.setAttribute("data-orientation", "horizontal");
|
|
116
|
-
__enterChildren(__el3);
|
|
117
|
-
__insert(__el3, thumbX);
|
|
118
|
-
__exitChildren();
|
|
119
|
-
return __el3;
|
|
120
|
-
})();
|
|
121
|
-
const content = (() => {
|
|
122
|
-
const __el4 = __element("div");
|
|
123
|
-
return __el4;
|
|
124
|
-
})();
|
|
125
|
-
const showY = orientation === "vertical" || orientation === "both";
|
|
126
|
-
const showX = orientation === "horizontal" || orientation === "both";
|
|
127
|
-
const viewport = (() => {
|
|
128
|
-
const __el5 = __element("div");
|
|
129
|
-
{
|
|
130
|
-
const __v = { overflow: "scroll" };
|
|
131
|
-
if (__v != null && __v !== false)
|
|
132
|
-
__el5.setAttribute("style", typeof __v === "object" ? __styleStr(__v) : __v === true ? "" : String(__v));
|
|
133
|
-
}
|
|
134
|
-
__on(__el5, "scroll", handleViewportScroll);
|
|
135
|
-
__enterChildren(__el5);
|
|
136
|
-
__insert(__el5, content);
|
|
137
|
-
__exitChildren();
|
|
138
|
-
return __el5;
|
|
139
|
-
})();
|
|
140
|
-
viewport.style.scrollbarWidth = "none";
|
|
141
|
-
const root = (() => {
|
|
142
|
-
const __el6 = __element("div");
|
|
143
|
-
{
|
|
144
|
-
const __v = { position: "relative", overflow: "hidden" };
|
|
145
|
-
if (__v != null && __v !== false)
|
|
146
|
-
__el6.setAttribute("style", typeof __v === "object" ? __styleStr(__v) : __v === true ? "" : String(__v));
|
|
147
|
-
}
|
|
148
|
-
__enterChildren(__el6);
|
|
149
|
-
__insert(__el6, viewport);
|
|
150
|
-
__append(__el6, __conditional(() => showY, () => scrollbarY, () => null));
|
|
151
|
-
__append(__el6, __conditional(() => showX, () => scrollbarX, () => null));
|
|
152
|
-
__exitChildren();
|
|
153
|
-
return __el6;
|
|
154
|
-
})();
|
|
155
|
-
applyAttrs(root, attrs);
|
|
156
|
-
const __mfResult0 = { root, viewport, content, scrollbarY, thumbY, scrollbarX, thumbX, state, update };
|
|
157
|
-
__flushMountFrame();
|
|
158
|
-
return __mfResult0;
|
|
159
|
-
} catch (__mfErr) {
|
|
160
|
-
__discardMountFrame(__mfDepth);
|
|
161
|
-
throw __mfErr;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
var ScrollArea = {
|
|
165
|
-
Root: ScrollAreaRoot
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
export { ScrollArea };
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-q7xbcj9q.js";
|
|
4
|
-
import {
|
|
5
|
-
linkedIds
|
|
6
|
-
} from "./chunk-8y1jf6xr.js";
|
|
7
|
-
import {
|
|
8
|
-
setDataState,
|
|
9
|
-
setExpanded,
|
|
10
|
-
setHidden,
|
|
11
|
-
setHiddenAnimated
|
|
12
|
-
} from "./chunk-vevfhpc9.js";
|
|
13
|
-
|
|
14
|
-
// src/collapsible/collapsible-composed.tsx
|
|
15
|
-
import { __append, __attr, __child, __discardMountFrame, __element, __enterChildren, __exitChildren, __flushMountFrame, __on, __pushMountFrame, __styleStr } from "@vertz/ui/internals";
|
|
16
|
-
import { createContext, ref, useContext } from "@vertz/ui";
|
|
17
|
-
var CollapsibleContext = createContext(undefined, "@vertz/ui-primitives::CollapsibleContext");
|
|
18
|
-
function useCollapsibleContext(componentName) {
|
|
19
|
-
const ctx = useContext(CollapsibleContext);
|
|
20
|
-
if (!ctx) {
|
|
21
|
-
throw new Error(`<Collapsible.${componentName}> must be used inside <Collapsible>. ` + "Ensure it is a direct or nested child of the Collapsible root component.");
|
|
22
|
-
}
|
|
23
|
-
return ctx;
|
|
24
|
-
}
|
|
25
|
-
function CollapsibleTrigger(__props) {
|
|
26
|
-
const __mfDepth = __pushMountFrame();
|
|
27
|
-
try {
|
|
28
|
-
const ctx = useCollapsibleContext("Trigger");
|
|
29
|
-
const __mfResult0 = (() => {
|
|
30
|
-
const __el0 = __element("button");
|
|
31
|
-
ctx.triggerRef.current = __el0;
|
|
32
|
-
__el0.setAttribute("type", "button");
|
|
33
|
-
{
|
|
34
|
-
const __v = ctx.ids.triggerId;
|
|
35
|
-
if (__v != null && __v !== false)
|
|
36
|
-
__el0.setAttribute("id", __v === true ? "" : __v);
|
|
37
|
-
}
|
|
38
|
-
{
|
|
39
|
-
const __v = ctx.ids.contentId;
|
|
40
|
-
if (__v != null && __v !== false)
|
|
41
|
-
__el0.setAttribute("aria-controls", __v === true ? "" : __v);
|
|
42
|
-
}
|
|
43
|
-
{
|
|
44
|
-
const __v = ctx.defaultOpen ? "true" : "false";
|
|
45
|
-
if (__v != null && __v !== false)
|
|
46
|
-
__el0.setAttribute("aria-expanded", __v === true ? "" : __v);
|
|
47
|
-
}
|
|
48
|
-
{
|
|
49
|
-
const __v = ctx.defaultOpen ? "open" : "closed";
|
|
50
|
-
if (__v != null && __v !== false)
|
|
51
|
-
__el0.setAttribute("data-state", __v === true ? "" : __v);
|
|
52
|
-
}
|
|
53
|
-
{
|
|
54
|
-
const __v = ctx.disabled;
|
|
55
|
-
if (__v != null && __v !== false)
|
|
56
|
-
__el0.setAttribute("disabled", __v === true ? "" : __v);
|
|
57
|
-
}
|
|
58
|
-
{
|
|
59
|
-
const __v = ctx.disabled ? "true" : undefined;
|
|
60
|
-
if (__v != null && __v !== false)
|
|
61
|
-
__el0.setAttribute("aria-disabled", __v === true ? "" : __v);
|
|
62
|
-
}
|
|
63
|
-
__attr(__el0, "class", () => cn(ctx.classes?.trigger, __props.className ?? __props.class));
|
|
64
|
-
__on(__el0, "click", ctx.toggle);
|
|
65
|
-
__enterChildren(__el0);
|
|
66
|
-
__append(__el0, __child(() => __props.children));
|
|
67
|
-
__exitChildren();
|
|
68
|
-
return __el0;
|
|
69
|
-
})();
|
|
70
|
-
__flushMountFrame();
|
|
71
|
-
return __mfResult0;
|
|
72
|
-
} catch (__mfErr) {
|
|
73
|
-
__discardMountFrame(__mfDepth);
|
|
74
|
-
throw __mfErr;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
function CollapsibleContent(__props) {
|
|
78
|
-
const __mfDepth = __pushMountFrame();
|
|
79
|
-
try {
|
|
80
|
-
const ctx = useCollapsibleContext("Content");
|
|
81
|
-
const __mfResult0 = (() => {
|
|
82
|
-
const __el0 = __element("div");
|
|
83
|
-
ctx.contentRef.current = __el0;
|
|
84
|
-
{
|
|
85
|
-
const __v = ctx.ids.contentId;
|
|
86
|
-
if (__v != null && __v !== false)
|
|
87
|
-
__el0.setAttribute("id", __v === true ? "" : __v);
|
|
88
|
-
}
|
|
89
|
-
__el0.setAttribute("data-part", "collapsible-content");
|
|
90
|
-
{
|
|
91
|
-
const __v = ctx.defaultOpen ? "false" : "true";
|
|
92
|
-
if (__v != null && __v !== false)
|
|
93
|
-
__el0.setAttribute("aria-hidden", __v === true ? "" : __v);
|
|
94
|
-
}
|
|
95
|
-
{
|
|
96
|
-
const __v = ctx.defaultOpen ? "open" : "closed";
|
|
97
|
-
if (__v != null && __v !== false)
|
|
98
|
-
__el0.setAttribute("data-state", __v === true ? "" : __v);
|
|
99
|
-
}
|
|
100
|
-
{
|
|
101
|
-
const __v = { display: ctx.defaultOpen ? "" : "none" };
|
|
102
|
-
if (__v != null && __v !== false)
|
|
103
|
-
__el0.setAttribute("style", typeof __v === "object" ? __styleStr(__v) : __v === true ? "" : String(__v));
|
|
104
|
-
}
|
|
105
|
-
__attr(__el0, "class", () => cn(ctx.classes?.content, __props.className ?? __props.class));
|
|
106
|
-
__enterChildren(__el0);
|
|
107
|
-
__append(__el0, __child(() => __props.children));
|
|
108
|
-
__exitChildren();
|
|
109
|
-
return __el0;
|
|
110
|
-
})();
|
|
111
|
-
__flushMountFrame();
|
|
112
|
-
return __mfResult0;
|
|
113
|
-
} catch (__mfErr) {
|
|
114
|
-
__discardMountFrame(__mfDepth);
|
|
115
|
-
throw __mfErr;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
function ComposedCollapsibleRoot(__props) {
|
|
119
|
-
const __mfDepth = __pushMountFrame();
|
|
120
|
-
try {
|
|
121
|
-
let toggle = function() {
|
|
122
|
-
if (__props.disabled ?? false)
|
|
123
|
-
return;
|
|
124
|
-
const contentEl = contentRef.current;
|
|
125
|
-
const triggerEl = triggerRef.current;
|
|
126
|
-
if (!contentEl || !triggerEl)
|
|
127
|
-
return;
|
|
128
|
-
isOpen = !isOpen;
|
|
129
|
-
if (isOpen) {
|
|
130
|
-
setHidden(contentEl, false);
|
|
131
|
-
}
|
|
132
|
-
const height = contentEl.scrollHeight;
|
|
133
|
-
contentEl.style.setProperty("--collapsible-content-height", `${height}px`);
|
|
134
|
-
setExpanded(triggerEl, isOpen);
|
|
135
|
-
setDataState(triggerEl, isOpen ? "open" : "closed");
|
|
136
|
-
setDataState(contentEl, isOpen ? "open" : "closed");
|
|
137
|
-
if (!isOpen) {
|
|
138
|
-
setHiddenAnimated(contentEl, true);
|
|
139
|
-
}
|
|
140
|
-
__props.onOpenChange?.(isOpen);
|
|
141
|
-
};
|
|
142
|
-
const ids = linkedIds("collapsible");
|
|
143
|
-
const triggerRef = ref();
|
|
144
|
-
const contentRef = ref();
|
|
145
|
-
let isOpen = __props.defaultOpen ?? false;
|
|
146
|
-
const ctx = {
|
|
147
|
-
ids,
|
|
148
|
-
triggerRef,
|
|
149
|
-
contentRef,
|
|
150
|
-
classes: __props.classes,
|
|
151
|
-
disabled: __props.disabled ?? false,
|
|
152
|
-
defaultOpen: __props.defaultOpen ?? false,
|
|
153
|
-
toggle
|
|
154
|
-
};
|
|
155
|
-
const __mfResult0 = (() => {
|
|
156
|
-
const __el0 = __element("div");
|
|
157
|
-
__el0.setAttribute("data-v-id", "ComposedCollapsibleRoot");
|
|
158
|
-
__el0.setAttribute("data-part", "collapsible");
|
|
159
|
-
__attr(__el0, "class", () => cn(__props.classes?.root));
|
|
160
|
-
__enterChildren(__el0);
|
|
161
|
-
__append(__el0, CollapsibleContext.Provider({ get value() {
|
|
162
|
-
return ctx;
|
|
163
|
-
}, children: () => __child(() => __props.children) }));
|
|
164
|
-
__exitChildren();
|
|
165
|
-
return __el0;
|
|
166
|
-
})();
|
|
167
|
-
__flushMountFrame();
|
|
168
|
-
return __mfResult0;
|
|
169
|
-
} catch (__mfErr) {
|
|
170
|
-
__discardMountFrame(__mfDepth);
|
|
171
|
-
throw __mfErr;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
var ComposedCollapsible = Object.assign(ComposedCollapsibleRoot, {
|
|
175
|
-
Trigger: CollapsibleTrigger,
|
|
176
|
-
Content: CollapsibleContent
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
export { ComposedCollapsible };
|