moduix 0.8.1 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1081,7 +1081,7 @@ function Vt({ className: t, ...n }) {
|
|
|
1081
1081
|
...n
|
|
1082
1082
|
});
|
|
1083
1083
|
}
|
|
1084
|
-
var Ht = { root: "
|
|
1084
|
+
var Ht = { root: "_root_e64j0_2" }, Ut = r.forwardRef(function({ as: t, inline: n = "full", block: r = "none", className: i, ...a }, o) {
|
|
1085
1085
|
return /* @__PURE__ */ e(t ?? "div", {
|
|
1086
1086
|
ref: o,
|
|
1087
1087
|
"data-slot": "bleed-root",
|
|
@@ -2038,17 +2038,17 @@ function Pr(t) {
|
|
|
2038
2038
|
});
|
|
2039
2039
|
}
|
|
2040
2040
|
var Fr = ue, Ir = he, Lr = {
|
|
2041
|
-
trigger: "
|
|
2042
|
-
close: "
|
|
2043
|
-
backdrop: "
|
|
2044
|
-
viewport: "
|
|
2045
|
-
popup: "
|
|
2046
|
-
header: "
|
|
2047
|
-
title: "
|
|
2048
|
-
description: "
|
|
2049
|
-
footer: "
|
|
2050
|
-
closeIcon: "
|
|
2051
|
-
body: "
|
|
2041
|
+
trigger: "_trigger_llr9z_2",
|
|
2042
|
+
close: "_close_llr9z_3",
|
|
2043
|
+
backdrop: "_backdrop_llr9z_51",
|
|
2044
|
+
viewport: "_viewport_llr9z_69",
|
|
2045
|
+
popup: "_popup_llr9z_107",
|
|
2046
|
+
header: "_header_llr9z_152",
|
|
2047
|
+
title: "_title_llr9z_174",
|
|
2048
|
+
description: "_description_llr9z_182",
|
|
2049
|
+
footer: "_footer_llr9z_192",
|
|
2050
|
+
closeIcon: "_closeIcon_llr9z_199",
|
|
2051
|
+
body: "_body_llr9z_222"
|
|
2052
2052
|
}, Rr = m.Root, zr = m.createHandle;
|
|
2053
2053
|
function Br({ className: t, render: n, ...r }) {
|
|
2054
2054
|
let i = n ? t : B(t, Lr.trigger);
|
|
@@ -2119,23 +2119,30 @@ function Jr({ className: t, children: n, ...r }) {
|
|
|
2119
2119
|
...r
|
|
2120
2120
|
});
|
|
2121
2121
|
}
|
|
2122
|
-
function Yr({ className: n, classNames:
|
|
2123
|
-
let { container:
|
|
2124
|
-
return
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2122
|
+
function Yr({ className: n, classNames: i, slotProps: a, container: o, withBackdrop: s = !0, children: c, ...l }) {
|
|
2123
|
+
let { container: u, ...d } = a?.portal ?? {}, f = o ?? u, p = [], m = [];
|
|
2124
|
+
return r.Children.forEach(c, (e) => {
|
|
2125
|
+
if (r.isValidElement(e) && e.type === Jr) {
|
|
2126
|
+
m.push(e);
|
|
2127
|
+
return;
|
|
2128
|
+
}
|
|
2129
|
+
p.push(e);
|
|
2130
|
+
}), /* @__PURE__ */ t(Vr, {
|
|
2131
|
+
className: i?.portal,
|
|
2132
|
+
container: f,
|
|
2133
|
+
...d,
|
|
2134
|
+
children: [s ? /* @__PURE__ */ e(Hr, {
|
|
2135
|
+
className: i?.backdrop,
|
|
2136
|
+
...a?.backdrop
|
|
2137
|
+
}) : null, /* @__PURE__ */ t(Ur, {
|
|
2138
|
+
className: i?.viewport,
|
|
2139
|
+
...a?.viewport,
|
|
2140
|
+
"data-with-backdrop": s ? "true" : "false",
|
|
2141
|
+
children: [m, /* @__PURE__ */ e(Wr, {
|
|
2136
2142
|
className: n,
|
|
2137
|
-
...
|
|
2138
|
-
|
|
2143
|
+
...l,
|
|
2144
|
+
children: p
|
|
2145
|
+
})]
|
|
2139
2146
|
})]
|
|
2140
2147
|
});
|
|
2141
2148
|
}
|
|
@@ -2491,15 +2498,15 @@ function Li({ className: t, size: n = "md", htmlSize: r, ...i }) {
|
|
|
2491
2498
|
});
|
|
2492
2499
|
}
|
|
2493
2500
|
var Ri = {
|
|
2494
|
-
trigger: "
|
|
2495
|
-
backdrop: "
|
|
2496
|
-
viewport: "
|
|
2497
|
-
popup: "
|
|
2498
|
-
frame: "
|
|
2499
|
-
"lightbox-image-enter": "_lightbox-image-
|
|
2500
|
-
closeButton: "
|
|
2501
|
-
image: "
|
|
2502
|
-
contentClose: "
|
|
2501
|
+
trigger: "_trigger_32kut_2",
|
|
2502
|
+
backdrop: "_backdrop_32kut_6",
|
|
2503
|
+
viewport: "_viewport_32kut_20",
|
|
2504
|
+
popup: "_popup_32kut_39",
|
|
2505
|
+
frame: "_frame_32kut_64",
|
|
2506
|
+
"lightbox-image-enter": "_lightbox-image-enter_32kut_1",
|
|
2507
|
+
closeButton: "_closeButton_32kut_75",
|
|
2508
|
+
image: "_image_32kut_99",
|
|
2509
|
+
contentClose: "_contentClose_32kut_112"
|
|
2503
2510
|
}, zi = m.Root, Bi = m.createHandle;
|
|
2504
2511
|
function Vi({ className: t, render: n, ...r }) {
|
|
2505
2512
|
let i = n ? t : B(t, Ri.trigger);
|
|
@@ -2564,28 +2571,28 @@ function Ji({ className: n, classNames: r, slotProps: i, container: a, withBackd
|
|
|
2564
2571
|
children: [o ? /* @__PURE__ */ e(Ui, {
|
|
2565
2572
|
className: r?.backdrop,
|
|
2566
2573
|
...i?.backdrop
|
|
2567
|
-
}) : null, /* @__PURE__ */
|
|
2574
|
+
}) : null, /* @__PURE__ */ t(Wi, {
|
|
2568
2575
|
className: r?.viewport,
|
|
2569
2576
|
"data-with-backdrop": o ? "true" : "false",
|
|
2570
2577
|
...i?.viewport,
|
|
2571
|
-
children: /* @__PURE__ */ e(
|
|
2578
|
+
children: [s ? /* @__PURE__ */ e(Ki, {
|
|
2579
|
+
className: Ri.closeButton,
|
|
2580
|
+
"aria-label": l,
|
|
2581
|
+
render: u ?? /* @__PURE__ */ e(ze, { "aria-label": l })
|
|
2582
|
+
}) : null, /* @__PURE__ */ e(Gi, {
|
|
2572
2583
|
className: n,
|
|
2573
2584
|
...f,
|
|
2574
|
-
children: /* @__PURE__ */
|
|
2585
|
+
children: /* @__PURE__ */ e("div", {
|
|
2575
2586
|
"data-slot": "lightbox-frame",
|
|
2576
2587
|
className: r?.frame ?? Ri.frame,
|
|
2577
|
-
children:
|
|
2578
|
-
className: Ri.closeButton,
|
|
2579
|
-
"aria-label": l,
|
|
2580
|
-
render: u ?? /* @__PURE__ */ e(ze, { "aria-label": l })
|
|
2581
|
-
}) : null, c ? /* @__PURE__ */ e(Ki, {
|
|
2588
|
+
children: c ? /* @__PURE__ */ e(Ki, {
|
|
2582
2589
|
className: Ri.contentClose,
|
|
2583
2590
|
"aria-label": l,
|
|
2584
2591
|
render: /* @__PURE__ */ e("div", {}),
|
|
2585
2592
|
children: d
|
|
2586
|
-
}) : d
|
|
2593
|
+
}) : d
|
|
2587
2594
|
})
|
|
2588
|
-
})
|
|
2595
|
+
})]
|
|
2589
2596
|
})]
|
|
2590
2597
|
});
|
|
2591
2598
|
}
|
|
@@ -4259,55 +4266,59 @@ var oc = {
|
|
|
4259
4266
|
function sc(e, ...t) {
|
|
4260
4267
|
return t.some((e) => typeof e == "function") ? (n) => z(e, t.map((e) => typeof e == "function" ? e(n) : e)) : z(e, t);
|
|
4261
4268
|
}
|
|
4262
|
-
function cc({ className: n, classNames: r, children: i, fade: a = !1, scrollbars: o = "vertical",
|
|
4263
|
-
let
|
|
4269
|
+
function cc({ className: n, classNames: r, children: i, fade: a = !1, scrollbars: o = "vertical", contentMinWidth: s = "full", scrollbarKeepMounted: c = !1, slotProps: l, ...u }) {
|
|
4270
|
+
let d = a === !0 ? "vertical" : a || void 0, f = o === "vertical" || o === "both", p = o === "horizontal" || o === "both", m = l?.scrollbar, h = {
|
|
4271
|
+
...l?.content?.style,
|
|
4272
|
+
minWidth: s === "fit-content" ? "fit-content" : "100%"
|
|
4273
|
+
};
|
|
4264
4274
|
return /* @__PURE__ */ t(j.Root, {
|
|
4265
4275
|
"data-slot": "scroll-area-root",
|
|
4266
|
-
"data-fade":
|
|
4276
|
+
"data-fade": d,
|
|
4267
4277
|
className: B(n, oc.root),
|
|
4268
|
-
...
|
|
4278
|
+
...u,
|
|
4269
4279
|
children: [
|
|
4270
4280
|
/* @__PURE__ */ e(j.Viewport, {
|
|
4271
|
-
...
|
|
4281
|
+
...l?.viewport,
|
|
4272
4282
|
"data-slot": "scroll-area-viewport",
|
|
4273
4283
|
className: B(r?.viewport, oc.viewport),
|
|
4274
4284
|
children: /* @__PURE__ */ e(j.Content, {
|
|
4275
|
-
...
|
|
4285
|
+
...l?.content,
|
|
4286
|
+
style: h,
|
|
4276
4287
|
"data-slot": "scroll-area-content",
|
|
4277
4288
|
className: B(r?.content, oc.content),
|
|
4278
4289
|
children: i
|
|
4279
4290
|
})
|
|
4280
4291
|
}),
|
|
4281
|
-
|
|
4282
|
-
...
|
|
4283
|
-
...
|
|
4292
|
+
f ? /* @__PURE__ */ e(j.Scrollbar, {
|
|
4293
|
+
...m,
|
|
4294
|
+
...l?.verticalScrollbar,
|
|
4284
4295
|
"data-slot": "scroll-area-scrollbar",
|
|
4285
4296
|
orientation: "vertical",
|
|
4286
|
-
keepMounted:
|
|
4297
|
+
keepMounted: c,
|
|
4287
4298
|
className: sc(oc.scrollbar, r?.scrollbar, r?.verticalScrollbar),
|
|
4288
4299
|
children: /* @__PURE__ */ e(j.Thumb, {
|
|
4289
|
-
...
|
|
4290
|
-
...
|
|
4300
|
+
...l?.thumb,
|
|
4301
|
+
...l?.verticalThumb,
|
|
4291
4302
|
"data-slot": "scroll-area-thumb",
|
|
4292
4303
|
className: sc(oc.thumb, r?.thumb, r?.verticalThumb)
|
|
4293
4304
|
})
|
|
4294
4305
|
}) : null,
|
|
4295
|
-
|
|
4296
|
-
...
|
|
4297
|
-
...
|
|
4306
|
+
p ? /* @__PURE__ */ e(j.Scrollbar, {
|
|
4307
|
+
...m,
|
|
4308
|
+
...l?.horizontalScrollbar,
|
|
4298
4309
|
"data-slot": "scroll-area-scrollbar",
|
|
4299
4310
|
orientation: "horizontal",
|
|
4300
|
-
keepMounted:
|
|
4311
|
+
keepMounted: c,
|
|
4301
4312
|
className: sc(oc.scrollbar, r?.scrollbar, r?.horizontalScrollbar),
|
|
4302
4313
|
children: /* @__PURE__ */ e(j.Thumb, {
|
|
4303
|
-
...
|
|
4304
|
-
...
|
|
4314
|
+
...l?.thumb,
|
|
4315
|
+
...l?.horizontalThumb,
|
|
4305
4316
|
"data-slot": "scroll-area-thumb",
|
|
4306
4317
|
className: sc(oc.thumb, r?.thumb, r?.horizontalThumb)
|
|
4307
4318
|
})
|
|
4308
4319
|
}) : null,
|
|
4309
4320
|
o === "both" ? /* @__PURE__ */ e(j.Corner, {
|
|
4310
|
-
...
|
|
4321
|
+
...l?.corner,
|
|
4311
4322
|
"data-slot": "scroll-area-corner",
|
|
4312
4323
|
className: B(r?.corner, oc.corner)
|
|
4313
4324
|
}) : null
|