klun-ui 0.1.2 → 0.1.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/CHANGELOG.md +8 -0
- package/dist/{chunk-RRE3PQLX.js → chunk-7EOW4LHP.js} +4 -3
- package/dist/chunk-7EOW4LHP.js.map +1 -0
- package/dist/{chunk-OPAZ7GAU.cjs → chunk-SUH5CQ55.cjs} +4 -3
- package/dist/chunk-SUH5CQ55.cjs.map +1 -0
- package/dist/index.cjs +144 -144
- package/dist/index.js +1 -1
- package/dist/styles.css +4 -0
- package/dist/templates/index.cjs +82 -82
- package/dist/templates/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-OPAZ7GAU.cjs.map +0 -1
- package/dist/chunk-RRE3PQLX.js.map +0 -1
|
@@ -6999,6 +6999,7 @@ function TimeColumn({
|
|
|
6999
6999
|
const colRef = react.useRef(null);
|
|
7000
7000
|
const [active, setActive] = react.useState(-1);
|
|
7001
7001
|
const selected = options.find((o) => o.value === current);
|
|
7002
|
+
const flipUp = open && typeof window !== "undefined" && colRef.current ? colRef.current.getBoundingClientRect().bottom + 248 > window.innerHeight : false;
|
|
7002
7003
|
const panel = () => colRef.current?.querySelector(".klun-select-listbox") ?? null;
|
|
7003
7004
|
const scrollTo = (i, center) => {
|
|
7004
7005
|
requestAnimationFrame(() => {
|
|
@@ -7078,7 +7079,7 @@ function TimeColumn({
|
|
|
7078
7079
|
open ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7079
7080
|
SelectListbox,
|
|
7080
7081
|
{
|
|
7081
|
-
className: "klun-time-picker__listbox",
|
|
7082
|
+
className: chunkTPGAXYFU_cjs.cx("klun-time-picker__listbox", flipUp && "klun-select-listbox--up"),
|
|
7082
7083
|
options,
|
|
7083
7084
|
current,
|
|
7084
7085
|
active,
|
|
@@ -10211,5 +10212,5 @@ exports.useSize = useSize;
|
|
|
10211
10212
|
exports.viVN = viVN;
|
|
10212
10213
|
exports.zhCN = zhCN;
|
|
10213
10214
|
exports.zhTW = zhTW;
|
|
10214
|
-
//# sourceMappingURL=chunk-
|
|
10215
|
-
//# sourceMappingURL=chunk-
|
|
10215
|
+
//# sourceMappingURL=chunk-SUH5CQ55.cjs.map
|
|
10216
|
+
//# sourceMappingURL=chunk-SUH5CQ55.cjs.map
|