klun-ui 0.1.2 → 0.1.4
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 +16 -0
- package/dist/{chunk-OPAZ7GAU.cjs → chunk-54YNPINO.cjs} +5 -4
- package/dist/chunk-54YNPINO.cjs.map +1 -0
- package/dist/{chunk-RRE3PQLX.js → chunk-OZ5MAWZC.js} +5 -4
- package/dist/chunk-OZ5MAWZC.js.map +1 -0
- package/dist/index.cjs +144 -144
- package/dist/index.js +1 -1
- package/dist/styles.css +8 -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
|
@@ -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,
|
|
@@ -9951,7 +9952,7 @@ var Modal = forwardRef(function Modal2({ open, onClose, title, description, icon
|
|
|
9951
9952
|
closable ? /* @__PURE__ */ jsx("button", { type: "button", onClick: onClose, "aria-label": modal.close, className: "klun-modal__close", children: /* @__PURE__ */ jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": true, children: /* @__PURE__ */ jsx("path", { d: "M5 5l10 10M15 5L5 15", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round" }) }) }) : null
|
|
9952
9953
|
] }) : null,
|
|
9953
9954
|
children ? /* @__PURE__ */ jsx("div", { className: "klun-modal__body", children }) : null,
|
|
9954
|
-
footer ? /* @__PURE__ */ jsx("div", { className: "klun-modal__footer", children: footer }) : null
|
|
9955
|
+
footer ? /* @__PURE__ */ jsx("div", { className: cx("klun-modal__footer", !children && "klun-modal__footer--flush"), children: footer }) : null
|
|
9955
9956
|
]
|
|
9956
9957
|
}
|
|
9957
9958
|
) });
|
|
@@ -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-
|
|
10071
|
-
//# sourceMappingURL=chunk-
|
|
10071
|
+
//# sourceMappingURL=chunk-OZ5MAWZC.js.map
|
|
10072
|
+
//# sourceMappingURL=chunk-OZ5MAWZC.js.map
|