@iclips/ui 1.3.30 → 1.3.31
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/components/ui/underline-tabs.d.ts.map +1 -1
- package/dist/index.cjs +37 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +23 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -61427,7 +61427,7 @@ function dB({
|
|
|
61427
61427
|
const [a, o] = I.useState(t || ""), s = e !== void 0 ? e : a, l = (c) => {
|
|
61428
61428
|
e === void 0 && o(c), n == null || n(c);
|
|
61429
61429
|
};
|
|
61430
|
-
return /* @__PURE__ */ f(My.Provider, { value: { value: s, onValueChange: l }, children: /* @__PURE__ */ f("div", { className: C("w-full", i),
|
|
61430
|
+
return /* @__PURE__ */ f(My.Provider, { value: { value: s, onValueChange: l }, children: /* @__PURE__ */ f("div", { className: C("w-full", i), children: r }) });
|
|
61431
61431
|
}
|
|
61432
61432
|
function uB({ children: t, className: e }) {
|
|
61433
61433
|
const n = I.useRef(null), r = I.useRef({ active: !1, startX: 0, scrollLeft: 0, moved: !1 }), i = (l) => {
|
|
@@ -61442,19 +61442,28 @@ function uB({ children: t, className: e }) {
|
|
|
61442
61442
|
}, s = (l) => {
|
|
61443
61443
|
r.current.moved && (l.stopPropagation(), r.current.moved = !1);
|
|
61444
61444
|
};
|
|
61445
|
-
return /* @__PURE__ */
|
|
61446
|
-
"
|
|
61447
|
-
|
|
61448
|
-
|
|
61449
|
-
|
|
61450
|
-
|
|
61451
|
-
|
|
61452
|
-
|
|
61453
|
-
|
|
61454
|
-
|
|
61455
|
-
|
|
61456
|
-
|
|
61457
|
-
|
|
61445
|
+
return /* @__PURE__ */ b("div", { role: "tablist", className: C("border-b border-border bg-background", e), children: [
|
|
61446
|
+
/* @__PURE__ */ f("style", { children: ".ul-tabs-scroll::-webkit-scrollbar{display:none}" }),
|
|
61447
|
+
/* @__PURE__ */ f(
|
|
61448
|
+
"div",
|
|
61449
|
+
{
|
|
61450
|
+
ref: n,
|
|
61451
|
+
className: "ul-tabs-scroll flex select-none cursor-grab active:cursor-grabbing",
|
|
61452
|
+
style: {
|
|
61453
|
+
overflowX: "auto",
|
|
61454
|
+
scrollbarWidth: "none",
|
|
61455
|
+
msOverflowStyle: "none",
|
|
61456
|
+
touchAction: "pan-x"
|
|
61457
|
+
},
|
|
61458
|
+
onMouseDown: i,
|
|
61459
|
+
onMouseMove: a,
|
|
61460
|
+
onMouseUp: o,
|
|
61461
|
+
onMouseLeave: o,
|
|
61462
|
+
onClickCapture: s,
|
|
61463
|
+
children: t
|
|
61464
|
+
}
|
|
61465
|
+
)
|
|
61466
|
+
] });
|
|
61458
61467
|
}
|
|
61459
61468
|
function hB({
|
|
61460
61469
|
value: t,
|