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 CHANGED
@@ -5,6 +5,13 @@ All notable changes to **klun-ui** are documented here. The format follows
5
5
  [Semantic Versioning](https://semver.org/) (pre-1.0: minor/patch bumps may carry
6
6
  small breaking changes).
7
7
 
8
+ ## [0.1.3] — 2026-06-20
9
+
10
+ ### Fixed
11
+ - **`TimePicker`** dropdowns now flip above the trigger when there isn't enough
12
+ room below the viewport (e.g. when the picker sits low inside a
13
+ `DateTimePicker` popover), instead of overflowing off-screen.
14
+
8
15
  ## [0.1.2] — 2026-06-20
9
16
 
10
17
  ### Added
@@ -40,6 +47,7 @@ small breaking changes).
40
47
  `ConfigProvider`, i18n locales, and the full component set (layout, forms,
41
48
  navigation, data display, feedback, overlays, charts).
42
49
 
50
+ [0.1.3]: https://www.npmjs.com/package/klun-ui/v/0.1.3
43
51
  [0.1.2]: https://www.npmjs.com/package/klun-ui/v/0.1.2
44
52
  [0.1.1]: https://www.npmjs.com/package/klun-ui/v/0.1.1
45
53
  [0.1.0]: https://www.npmjs.com/package/klun-ui/v/0.1.0
@@ -6997,6 +6997,7 @@ function TimeColumn({
6997
6997
  const colRef = useRef(null);
6998
6998
  const [active, setActive] = useState(-1);
6999
6999
  const selected = options.find((o) => o.value === current);
7000
+ const flipUp = open && typeof window !== "undefined" && colRef.current ? colRef.current.getBoundingClientRect().bottom + 248 > window.innerHeight : false;
7000
7001
  const panel = () => colRef.current?.querySelector(".klun-select-listbox") ?? null;
7001
7002
  const scrollTo = (i, center) => {
7002
7003
  requestAnimationFrame(() => {
@@ -7076,7 +7077,7 @@ function TimeColumn({
7076
7077
  open ? /* @__PURE__ */ jsx(
7077
7078
  SelectListbox,
7078
7079
  {
7079
- className: "klun-time-picker__listbox",
7080
+ className: cx("klun-time-picker__listbox", flipUp && "klun-select-listbox--up"),
7080
7081
  options,
7081
7082
  current,
7082
7083
  active,
@@ -10067,5 +10068,5 @@ var Popconfirm = forwardRef(function Popconfirm2({
10067
10068
  Popconfirm.displayName = "Popconfirm";
10068
10069
 
10069
10070
  export { Accordion, Alert, AutoComplete, Avatar, AvatarGroup, Badge, Banner, Breadcrumb, BulkAction, BulkActionBar, Button, ButtonGroup, Card, Carousel, Cascader, CharacterCounter, ChartLegend, ChartTooltip, Checkbox, CheckboxCard, Chip, CircularProgress, CodeViewer, Col, ColorDot, ColorPicker, ColorSlider, CommandMenu, CompactSelect, CompactSelectForInput, ConfigProvider, Confirm, ContentLabel, CopyButton, CounterInput, DatePicker, DateRangePicker, DateTimePicker, Descriptions, DigitInput, Divider, Drawer, Dropdown, ExpiryCountdown, FileUpload, Flex, Form, FormItem, FormList, Format, GaugeBar, Grid, Hint, HorizontalFilter, ImageUpload, InlineInput, InlineSelect, Input, Kbd, KeyIcon, Label, Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider, List, ListItem, LiveDot, LogViewer, Masonry, Menu, Message, Modal, Money, Notification, Pagination, PasswordStrength, Popconfirm, Popover, ProgressBar, Radio, RadioCard, RangeSlider, Rating, RelativeTime, RichEditorToolbar, Row, SegmentedControl, SegmentedProgress, Select, SelectMenu, Skeleton, Slider, Space, Spinner2 as Spinner, Splitter2 as Splitter, SplitterPanel, Statistic, StatusBadge, StatusDot, StepIndicator, Switch, Table, Tabs, Tag, Textarea, TimePicker, Timeline, Toast, Toaster, Tooltip, Tree, Wizard, arSA, deDE, enUS, esES, fmt, frFR, idID, itIT, jaJP, koKR, locales, nlNL, plPL, primaryColorVars, ptBR, ruRU, toast, trTR, useBreakpoint, useConfig, useForm, useLocale, useMappedSize, useMessage, useNotification, useSize, viVN, zhCN, zhTW };
10070
- //# sourceMappingURL=chunk-RRE3PQLX.js.map
10071
- //# sourceMappingURL=chunk-RRE3PQLX.js.map
10071
+ //# sourceMappingURL=chunk-7EOW4LHP.js.map
10072
+ //# sourceMappingURL=chunk-7EOW4LHP.js.map