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.
@@ -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-OPAZ7GAU.cjs.map
10215
- //# sourceMappingURL=chunk-OPAZ7GAU.cjs.map
10215
+ //# sourceMappingURL=chunk-SUH5CQ55.cjs.map
10216
+ //# sourceMappingURL=chunk-SUH5CQ55.cjs.map