react-kui 3.1.1 → 3.2.0
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/README.zh-CN.md +3 -1
- package/ai/kui-components.json +912 -318
- package/es/_virtual/_rolldown/runtime.js +1 -1
- package/es/affix/index.js +1 -1
- package/es/alert/index.js +11 -4
- package/es/anchor/anchor-context.js +1 -1
- package/es/anchor/anchor-link.js +1 -1
- package/es/anchor/anchor.js +1 -1
- package/es/auto-complete/index.js +371 -347
- package/es/avatar/avatar-group-context.js +1 -1
- package/es/avatar/avatar-group.js +1 -1
- package/es/avatar/avatar.js +1 -1
- package/es/back-top/index.js +1 -1
- package/es/badge/index.js +10 -8
- package/es/base/teleport.js +1 -1
- package/es/base/transition-props.js +1 -1
- package/es/base/transition.js +1 -1
- package/es/breadcrumb/breadcrumb-context.js +1 -1
- package/es/breadcrumb/breadcrumb-item.js +1 -1
- package/es/breadcrumb/breadcrumb.js +1 -1
- package/es/button/button-group-context.js +1 -1
- package/es/button/button-group.js +1 -1
- package/es/button/button.js +13 -6
- package/es/calendar/index.js +20 -6
- package/es/card/index.js +11 -4
- package/es/carousel/carousel-context.js +1 -1
- package/es/carousel/carousel-item.js +1 -1
- package/es/carousel/carousel.js +1 -1
- package/es/carousel/drag.js +1 -1
- package/es/cascader/index.js +13 -10
- package/es/check-card/check-card-group.js +3 -3
- package/es/check-card/check-card.js +155 -141
- package/es/check-card/context.js +1 -1
- package/es/checkbox/checkbox-group-context.js +1 -1
- package/es/checkbox/checkbox-group.js +3 -3
- package/es/checkbox/checkbox.js +64 -244
- package/es/checkbox/index.js +1 -1
- package/es/collapse/collapse-panel.js +1 -1
- package/es/collapse/collapse.js +96 -82
- package/es/color-picker/alpha.js +1 -1
- package/es/color-picker/hue.js +1 -1
- package/es/color-picker/index.js +7 -7
- package/es/color-picker/mode.js +2 -2
- package/es/color-picker/paint.js +1 -1
- package/es/color-picker/presets.js +1 -1
- package/es/components.js +4 -4
- package/es/config/config-context.js +16 -3
- package/es/config/context.js +29 -2
- package/es/config/index.js +31 -12
- package/es/config/popup-host.js +106 -0
- package/es/config/size-context.js +1 -1
- package/es/config/use-config-appearance.js +62 -2
- package/es/const/var.js +6 -2
- package/es/date-picker/index.js +404 -885
- package/es/descriptions/descriptions-item.js +1 -1
- package/es/descriptions/descriptions.js +1 -1
- package/es/divider/index.js +1 -1
- package/es/drawer/index.js +328 -240
- package/es/dropdown/dropdown-button.js +69 -51
- package/es/dropdown/dropdown-context.js +1 -1
- package/es/dropdown/dropdown.js +137 -93
- package/es/dropdown/trigger.js +85 -33
- package/es/empty/index.js +3 -4
- package/es/feature-card/index.js +15 -4
- package/es/feedback-panel/index.js +95 -81
- package/es/flame-wrap/index.js +116 -109
- package/es/flame-wrap/types.js +54 -6
- package/es/flex/index.js +1 -1
- package/es/form/field-context.js +16 -2
- package/es/form/form-context.js +1 -1
- package/es/form/form-item.js +7 -6
- package/es/form/form.js +1 -1
- package/es/form/utils.js +1 -1
- package/es/grid/grid-item.js +1 -1
- package/es/grid/grid.js +1 -1
- package/es/grid/useBreakpoint.js +1 -1
- package/es/icon/index.js +1 -1
- package/es/image/group.js +1 -1
- package/es/image/image-group-context.js +1 -1
- package/es/image/image.js +137 -123
- package/es/image/instance.js +1 -1
- package/es/image/preview.js +1 -1
- package/es/image/utils.js +1 -1
- package/es/index.js +3 -3
- package/es/input/index.js +3 -3
- package/es/input/input-base.js +7 -7
- package/es/input/input-box.js +2 -2
- package/es/input/input-group.js +43 -127
- package/es/input/input.js +1 -1
- package/es/input/textarea.js +28 -114
- package/es/input-number/index.js +7 -5
- package/es/input-otp/index.js +5 -5
- package/es/input-tag/index.js +5 -5
- package/es/kanban/index.js +79 -63
- package/es/layout/index.js +1 -1
- package/es/layout/layout-context.js +1 -1
- package/es/list-panel/index.js +96 -83
- package/es/loading/index.js +1 -1
- package/es/loading/loading-bar.js +1 -1
- package/es/locale/de.js +10 -2
- package/es/locale/el.js +10 -2
- package/es/locale/en.js +10 -2
- package/es/locale/fr.js +10 -2
- package/es/locale/it.js +10 -2
- package/es/locale/ja.js +10 -2
- package/es/locale/ko.js +10 -2
- package/es/locale/ru.js +10 -2
- package/es/locale/th.js +10 -2
- package/es/locale/uk.js +10 -2
- package/es/locale/vi.js +10 -2
- package/es/locale/zh-CN.js +10 -2
- package/es/locale/zh-TW.js +10 -2
- package/es/mentions/index.js +291 -286
- package/es/menu/menu-context.js +1 -1
- package/es/menu/menu-divider.js +1 -1
- package/es/menu/menu-group.js +1 -1
- package/es/menu/menu-item.js +1 -1
- package/es/menu/menu-keyboard.js +41 -2
- package/es/menu/menu.js +268 -222
- package/es/menu/recursive-menu.js +1 -1
- package/es/menu/sub-menu.js +81 -23
- package/es/message/index.js +1 -1
- package/es/modal/api.js +46 -12
- package/es/modal/modal.js +441 -345
- package/es/modal/toast.js +177 -64
- package/es/node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js +1 -1
- package/es/notice/container.js +1 -1
- package/es/notice/content.js +1 -1
- package/es/notice/index.js +1 -1
- package/es/notice/instance.js +1 -1
- package/es/page/index.js +13 -8
- package/es/page/responsive.js +1 -1
- package/es/page-header/index.js +1 -1
- package/es/popconfirm/index.js +36 -35
- package/es/poptip/index.js +47 -45
- package/es/popup/index.js +5 -2
- package/es/popup/layers.js +11 -2
- package/es/progress/index.js +1 -1
- package/es/qrcode/index.js +13 -7
- package/es/radio/radio-button.js +51 -44
- package/es/radio/radio-group-context.js +1 -1
- package/es/radio/radio-group.js +49 -52
- package/es/radio/radio.js +46 -197
- package/es/rate/index.js +1 -1
- package/es/rate/star.js +1 -1
- package/es/result/index.js +1 -1
- package/es/ripple/index.js +104 -97
- package/es/ripple/types.js +71 -18
- package/es/row-col/col.js +1 -1
- package/es/row-col/row.js +1 -1
- package/es/segmented/index.js +3 -3
- package/es/select/option.js +1 -1
- package/es/select/select.js +33 -36
- package/es/skeleton/skeleton-avatar.js +1 -1
- package/es/skeleton/skeleton-button.js +1 -1
- package/es/skeleton/skeleton-image.js +1 -1
- package/es/skeleton/skeleton-text.js +1 -1
- package/es/skeleton/skeleton.js +1 -1
- package/es/skeleton/use-skeleton-loading.js +1 -1
- package/es/slider/index.js +1 -1
- package/es/slider/thumb.js +1 -1
- package/es/space/index.js +1 -1
- package/es/spin/index.js +1 -1
- package/es/splitter/splitter-panel.js +1 -1
- package/es/splitter/splitter.js +1 -1
- package/es/stat-card/countup.js +2 -2
- package/es/stat-card/rollup.js +1 -1
- package/es/stat-card/stat-card.js +16 -7
- package/es/stat-card/stat-number.js +4 -3
- package/es/stat-card/utils/countup.js +1 -1
- package/es/stat-card/utils/odometer.js +1 -1
- package/es/stat-card/utils/stat-item-key.js +22 -0
- package/es/steps/index.js +1 -1
- package/es/switch/index.js +3 -3
- package/es/table/column-setting.js +104 -115
- package/es/table/index.js +544 -206
- package/es/table/utils.js +141 -3
- package/es/tabs/tab-panel.js +1 -1
- package/es/tabs/tabs.js +1 -1
- package/es/tag/index.js +12 -5
- package/es/time-line/timeline-item.js +1 -1
- package/es/time-line/timeline.js +1 -1
- package/es/tooltip/index.js +114 -94
- package/es/tour/index.js +1 -1
- package/es/transfer/index.js +190 -172
- package/es/tree/index.js +55 -44
- package/es/tree/utils.js +1 -1
- package/es/tree-select/index.js +259 -781
- package/es/typography/index.js +1 -1
- package/es/upload/file-list.js +1 -1
- package/es/upload/index.js +5 -6
- package/es/upload/picture-sort.js +1 -1
- package/es/upload/selector.js +1 -1
- package/es/utils/checked.js +1 -1
- package/es/utils/color.js +25 -2
- package/es/utils/css.js +19 -0
- package/es/utils/focus.js +63 -0
- package/es/utils/number.js +1 -1
- package/es/utils/overlay-order.js +18 -0
- package/es/utils/overlay-stack.js +33 -0
- package/es/utils/placement.js +1 -1
- package/es/utils/popup.js +1 -1
- package/es/utils/promise.js +18 -0
- package/es/utils/react-node.js +55 -30
- package/es/utils/selection-tags.js +6 -4
- package/es/utils/share.js +5 -2
- package/es/utils/theme.js +1 -1
- package/es/utils/transition.js +1 -1
- package/es/utils/use-value.js +1 -1
- package/es/virtual-list/index.js +1 -1
- package/es/virtual-list/range.js +3 -2
- package/es/watermark/index.js +1 -1
- package/lib/index.cjs +2 -2
- package/lib/locale/de.cjs +2 -2
- package/lib/locale/el.cjs +2 -2
- package/lib/locale/en.cjs +2 -2
- package/lib/locale/fr.cjs +2 -2
- package/lib/locale/it.cjs +2 -2
- package/lib/locale/ja.cjs +2 -2
- package/lib/locale/ko.cjs +2 -2
- package/lib/locale/ru.cjs +2 -2
- package/lib/locale/th.cjs +2 -2
- package/lib/locale/uk.cjs +2 -2
- package/lib/locale/vi.cjs +2 -2
- package/lib/locale/zh-CN.cjs +2 -2
- package/lib/locale/zh-TW.cjs +2 -2
- package/package.json +4 -3
- package/readme.md +3 -1
- package/style/base.css +2 -2
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/theme.css +2 -2
- package/types/alert/index.d.cts +2 -2
- package/types/alert/index.d.ts +2 -2
- package/types/auto-complete/index.d.cts +7 -1
- package/types/auto-complete/index.d.ts +7 -1
- package/types/badge/index.d.cts +2 -1
- package/types/badge/index.d.ts +2 -1
- package/types/button/button.d.cts +2 -2
- package/types/button/button.d.ts +2 -2
- package/types/card/index.d.cts +3 -3
- package/types/card/index.d.ts +3 -3
- package/types/cascader/index.d.cts +1 -1
- package/types/cascader/index.d.ts +1 -1
- package/types/cascader/types.d.cts +2 -0
- package/types/cascader/types.d.ts +2 -0
- package/types/check-card/context.d.cts +4 -3
- package/types/check-card/context.d.ts +4 -3
- package/types/check-card/index.d.cts +1 -1
- package/types/check-card/index.d.ts +1 -1
- package/types/check-card/types.d.cts +3 -4
- package/types/check-card/types.d.ts +3 -4
- package/types/checkbox/checkbox-group.d.cts +2 -2
- package/types/checkbox/checkbox-group.d.ts +2 -2
- package/types/checkbox/checkbox.d.cts +2 -2
- package/types/checkbox/checkbox.d.ts +2 -2
- package/types/collapse/collapse.d.cts +3 -3
- package/types/collapse/collapse.d.ts +3 -3
- package/types/color-picker/index.d.cts +3 -1
- package/types/color-picker/index.d.ts +3 -1
- package/types/components.d.cts +2 -2
- package/types/components.d.ts +2 -2
- package/types/config/config-context.d.cts +15 -2
- package/types/config/config-context.d.ts +15 -2
- package/types/config/context.d.cts +6 -0
- package/types/config/context.d.ts +6 -0
- package/types/config/popup-host.d.cts +16 -0
- package/types/config/popup-host.d.ts +16 -0
- package/types/config/use-config-appearance.d.cts +41 -2
- package/types/config/use-config-appearance.d.ts +41 -2
- package/types/const/types.d.cts +30 -1
- package/types/const/types.d.ts +30 -1
- package/types/const/var.d.cts +6 -1
- package/types/const/var.d.ts +6 -1
- package/types/date-picker/index.d.cts +3 -1
- package/types/date-picker/index.d.ts +3 -1
- package/types/descriptions/descriptions.d.cts +2 -2
- package/types/descriptions/descriptions.d.ts +2 -2
- package/types/drawer/index.d.cts +1 -0
- package/types/drawer/index.d.ts +1 -0
- package/types/dropdown/dropdown-button.d.cts +5 -2
- package/types/dropdown/dropdown-button.d.ts +5 -2
- package/types/dropdown/dropdown-context.d.cts +6 -0
- package/types/dropdown/dropdown-context.d.ts +6 -0
- package/types/dropdown/dropdown.d.cts +2 -0
- package/types/dropdown/dropdown.d.ts +2 -0
- package/types/feature-card/index.d.cts +3 -3
- package/types/feature-card/index.d.ts +3 -3
- package/types/feedback-panel/index.d.cts +3 -3
- package/types/feedback-panel/index.d.ts +3 -3
- package/types/flame-wrap/types.d.cts +18 -0
- package/types/flame-wrap/types.d.ts +18 -0
- package/types/form/field-context.d.cts +2 -0
- package/types/form/field-context.d.ts +2 -0
- package/types/image/image.d.cts +2 -2
- package/types/image/image.d.ts +2 -2
- package/types/input/input-group.d.cts +2 -2
- package/types/input/input-group.d.ts +2 -2
- package/types/input-number/index.d.cts +2 -0
- package/types/input-number/index.d.ts +2 -0
- package/types/kanban/index.d.cts +3 -2
- package/types/kanban/index.d.ts +3 -2
- package/types/list-panel/index.d.cts +3 -3
- package/types/list-panel/index.d.ts +3 -3
- package/types/locale/de.d.cts +6 -0
- package/types/locale/de.d.ts +6 -0
- package/types/locale/el.d.cts +6 -0
- package/types/locale/el.d.ts +6 -0
- package/types/locale/en.d.cts +6 -0
- package/types/locale/en.d.ts +6 -0
- package/types/locale/fr.d.cts +6 -0
- package/types/locale/fr.d.ts +6 -0
- package/types/locale/it.d.cts +6 -0
- package/types/locale/it.d.ts +6 -0
- package/types/locale/ja.d.cts +6 -0
- package/types/locale/ja.d.ts +6 -0
- package/types/locale/ko.d.cts +6 -0
- package/types/locale/ko.d.ts +6 -0
- package/types/locale/ru.d.cts +6 -0
- package/types/locale/ru.d.ts +6 -0
- package/types/locale/th.d.cts +6 -0
- package/types/locale/th.d.ts +6 -0
- package/types/locale/uk.d.cts +6 -0
- package/types/locale/uk.d.ts +6 -0
- package/types/locale/vi.d.cts +6 -0
- package/types/locale/vi.d.ts +6 -0
- package/types/locale/zh-CN.d.cts +6 -0
- package/types/locale/zh-CN.d.ts +6 -0
- package/types/locale/zh-TW.d.cts +6 -0
- package/types/locale/zh-TW.d.ts +6 -0
- package/types/mentions/index.d.cts +2 -0
- package/types/mentions/index.d.ts +2 -0
- package/types/menu/menu-keyboard.d.cts +23 -0
- package/types/menu/menu-keyboard.d.ts +23 -0
- package/types/modal/api.d.cts +6 -1
- package/types/modal/api.d.ts +6 -1
- package/types/modal/modal.d.cts +1 -0
- package/types/modal/modal.d.ts +1 -0
- package/types/modal/toast.d.cts +8 -2
- package/types/modal/toast.d.ts +8 -2
- package/types/page/index.d.cts +2 -2
- package/types/page/index.d.ts +2 -2
- package/types/popconfirm/index.d.cts +2 -0
- package/types/popconfirm/index.d.ts +2 -0
- package/types/poptip/index.d.cts +2 -0
- package/types/poptip/index.d.ts +2 -0
- package/types/popup/layers.d.cts +2 -0
- package/types/popup/layers.d.ts +2 -0
- package/types/qrcode/index.d.cts +2 -2
- package/types/qrcode/index.d.ts +2 -2
- package/types/radio/radio-button.d.cts +2 -2
- package/types/radio/radio-button.d.ts +2 -2
- package/types/radio/radio-group.d.cts +2 -2
- package/types/radio/radio-group.d.ts +2 -2
- package/types/radio/radio.d.cts +2 -2
- package/types/radio/radio.d.ts +2 -2
- package/types/ripple/types.d.cts +18 -0
- package/types/ripple/types.d.ts +18 -0
- package/types/select/select.d.cts +2 -0
- package/types/select/select.d.ts +2 -0
- package/types/stat-card/stat-card.d.cts +3 -3
- package/types/stat-card/stat-card.d.ts +3 -3
- package/types/stat-card/utils/stat-item-key.d.cts +11 -0
- package/types/stat-card/utils/stat-item-key.d.ts +11 -0
- package/types/table/column-setting.d.cts +4 -4
- package/types/table/column-setting.d.ts +4 -4
- package/types/table/index.d.cts +2 -2
- package/types/table/index.d.ts +2 -2
- package/types/table/types.d.cts +21 -2
- package/types/table/types.d.ts +21 -2
- package/types/table/utils.d.cts +75 -0
- package/types/table/utils.d.ts +75 -0
- package/types/tag/index.d.cts +2 -2
- package/types/tag/index.d.ts +2 -2
- package/types/tooltip/index.d.cts +2 -0
- package/types/tooltip/index.d.ts +2 -0
- package/types/transfer/index.d.cts +3 -2
- package/types/transfer/index.d.ts +3 -2
- package/types/tree-select/index.d.cts +3 -1
- package/types/tree-select/index.d.ts +3 -1
- package/types/utils/checked.d.cts +1 -1
- package/types/utils/checked.d.ts +1 -1
- package/types/utils/color.d.cts +13 -0
- package/types/utils/color.d.ts +13 -0
- package/types/utils/css.d.cts +2 -0
- package/types/utils/css.d.ts +2 -0
- package/types/utils/focus.d.cts +5 -0
- package/types/utils/focus.d.ts +5 -0
- package/types/utils/overlay-order.d.cts +6 -0
- package/types/utils/overlay-order.d.ts +6 -0
- package/types/utils/overlay-stack.d.cts +13 -0
- package/types/utils/overlay-stack.d.ts +13 -0
- package/types/utils/promise.d.cts +5 -0
- package/types/utils/promise.d.ts +5 -0
- package/types/utils/react-node.d.cts +10 -0
- package/types/utils/react-node.d.ts +10 -0
package/es/modal/toast.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.
|
|
2
|
+
* react-kui v3.2.0
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
6
6
|
* Author: Qiu / https://chuchur.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import { ConfigContext } from "../config/config-context.js";
|
|
9
|
+
import { ConfigContext, DEFAULT_LOCALE } from "../config/config-context.js";
|
|
11
10
|
import { CircleAlert, CircleCheck, CircleQuestionMark, CircleX, Info } from "../node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js";
|
|
12
11
|
import Icon from "../icon/index.js";
|
|
13
12
|
import Button from "../button/button.js";
|
|
13
|
+
import { isPromiseLike } from "../utils/promise.js";
|
|
14
14
|
import Modal from "./modal.js";
|
|
15
|
+
import { c } from "react/compiler-runtime";
|
|
15
16
|
import clsx from "clsx";
|
|
16
17
|
import { useContext, useRef, useState } from "react";
|
|
17
18
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -23,77 +24,189 @@ var icons = {
|
|
|
23
24
|
warning: CircleAlert,
|
|
24
25
|
confirm: CircleQuestionMark
|
|
25
26
|
};
|
|
26
|
-
function Toast(
|
|
27
|
+
function Toast(t0) {
|
|
28
|
+
const $ = c(47);
|
|
29
|
+
const { title, okText, cancelText, content, color, icon, onOk, onCancel, onDestroy, type: t1, open: t2, onOpenChange } = t0;
|
|
30
|
+
const type = t1 === void 0 ? "info" : t1;
|
|
31
|
+
const open = t2 === void 0 ? true : t2;
|
|
27
32
|
const { locale } = useContext(ConfigContext);
|
|
28
|
-
const messages = (locale ??
|
|
29
|
-
const [open, setOpen] = useState(true);
|
|
33
|
+
const messages = (locale ?? DEFAULT_LOCALE)?.k?.common;
|
|
30
34
|
const [loading, setLoading] = useState(false);
|
|
31
35
|
const destroyRequestedRef = useRef(false);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
let t3;
|
|
37
|
+
if ($[0] !== onDestroy) {
|
|
38
|
+
t3 = () => {
|
|
39
|
+
if (destroyRequestedRef.current) return;
|
|
40
|
+
destroyRequestedRef.current = true;
|
|
41
|
+
onDestroy?.();
|
|
42
|
+
};
|
|
43
|
+
$[0] = onDestroy;
|
|
44
|
+
$[1] = t3;
|
|
45
|
+
} else t3 = $[1];
|
|
46
|
+
const requestDestroy = t3;
|
|
47
|
+
let t4;
|
|
48
|
+
if ($[2] !== onOpenChange) {
|
|
49
|
+
t4 = () => {
|
|
50
|
+
onOpenChange?.(false);
|
|
51
|
+
};
|
|
52
|
+
$[2] = onOpenChange;
|
|
53
|
+
$[3] = t4;
|
|
54
|
+
} else t4 = $[3];
|
|
55
|
+
const handleClose = t4;
|
|
56
|
+
let t5;
|
|
57
|
+
if ($[4] !== handleClose || $[5] !== onOk) {
|
|
58
|
+
t5 = () => {
|
|
42
59
|
const result = onOk?.();
|
|
43
|
-
if (result
|
|
44
|
-
|
|
45
|
-
|
|
60
|
+
if (!isPromiseLike(result)) {
|
|
61
|
+
handleClose();
|
|
62
|
+
return;
|
|
46
63
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
64
|
+
setLoading(true);
|
|
65
|
+
Promise.resolve(result).then(() => {
|
|
66
|
+
setLoading(false);
|
|
67
|
+
handleClose();
|
|
68
|
+
}, () => setLoading(false));
|
|
69
|
+
};
|
|
70
|
+
$[4] = handleClose;
|
|
71
|
+
$[5] = onOk;
|
|
72
|
+
$[6] = t5;
|
|
73
|
+
} else t5 = $[6];
|
|
74
|
+
const ok = t5;
|
|
75
|
+
let t6;
|
|
76
|
+
if ($[7] !== handleClose || $[8] !== onCancel) {
|
|
77
|
+
t6 = () => {
|
|
78
|
+
onCancel?.();
|
|
50
79
|
handleClose();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
80
|
+
};
|
|
81
|
+
$[7] = handleClose;
|
|
82
|
+
$[8] = onCancel;
|
|
83
|
+
$[9] = t6;
|
|
84
|
+
} else t6 = $[9];
|
|
85
|
+
const cancel = t6;
|
|
86
|
+
const t7 = icon ?? icons[type];
|
|
87
|
+
let t8;
|
|
88
|
+
if ($[10] !== color || $[11] !== t7) {
|
|
89
|
+
t8 = /* @__PURE__ */ jsx(Icon, {
|
|
90
|
+
className: "k-toast-icon",
|
|
91
|
+
type: t7,
|
|
92
|
+
color
|
|
93
|
+
});
|
|
94
|
+
$[10] = color;
|
|
95
|
+
$[11] = t7;
|
|
96
|
+
$[12] = t8;
|
|
97
|
+
} else t8 = $[12];
|
|
98
|
+
let t9;
|
|
99
|
+
if ($[13] !== title) {
|
|
100
|
+
t9 = /* @__PURE__ */ jsx("div", {
|
|
101
|
+
className: "k-toast-title",
|
|
102
|
+
children: title
|
|
103
|
+
});
|
|
104
|
+
$[13] = title;
|
|
105
|
+
$[14] = t9;
|
|
106
|
+
} else t9 = $[14];
|
|
107
|
+
let t10;
|
|
108
|
+
if ($[15] !== t8 || $[16] !== t9) {
|
|
109
|
+
t10 = /* @__PURE__ */ jsxs("div", {
|
|
59
110
|
className: "k-toast-header",
|
|
60
|
-
children: [
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
/* @__PURE__ */ jsx("div", {
|
|
111
|
+
children: [t8, t9]
|
|
112
|
+
});
|
|
113
|
+
$[15] = t8;
|
|
114
|
+
$[16] = t9;
|
|
115
|
+
$[17] = t10;
|
|
116
|
+
} else t10 = $[17];
|
|
117
|
+
let t11;
|
|
118
|
+
if ($[18] !== content) {
|
|
119
|
+
t11 = /* @__PURE__ */ jsx("div", {
|
|
70
120
|
className: "k-toast-content",
|
|
71
121
|
children: content
|
|
72
|
-
})
|
|
73
|
-
|
|
122
|
+
});
|
|
123
|
+
$[18] = content;
|
|
124
|
+
$[19] = t11;
|
|
125
|
+
} else t11 = $[19];
|
|
126
|
+
let t12;
|
|
127
|
+
if ($[20] !== cancel || $[21] !== cancelText || $[22] !== messages?.cancel || $[23] !== type) {
|
|
128
|
+
t12 = type === "confirm" && /* @__PURE__ */ jsx(Button, {
|
|
129
|
+
onClick: cancel,
|
|
130
|
+
children: cancelText ?? messages?.cancel
|
|
131
|
+
});
|
|
132
|
+
$[20] = cancel;
|
|
133
|
+
$[21] = cancelText;
|
|
134
|
+
$[22] = messages?.cancel;
|
|
135
|
+
$[23] = type;
|
|
136
|
+
$[24] = t12;
|
|
137
|
+
} else t12 = $[24];
|
|
138
|
+
const t13 = okText ?? messages?.ok;
|
|
139
|
+
let t14;
|
|
140
|
+
if ($[25] !== loading || $[26] !== ok || $[27] !== t13) {
|
|
141
|
+
t14 = /* @__PURE__ */ jsx(Button, {
|
|
142
|
+
type: "primary",
|
|
143
|
+
loading,
|
|
144
|
+
onClick: ok,
|
|
145
|
+
children: t13
|
|
146
|
+
});
|
|
147
|
+
$[25] = loading;
|
|
148
|
+
$[26] = ok;
|
|
149
|
+
$[27] = t13;
|
|
150
|
+
$[28] = t14;
|
|
151
|
+
} else t14 = $[28];
|
|
152
|
+
let t15;
|
|
153
|
+
if ($[29] !== t12 || $[30] !== t14) {
|
|
154
|
+
t15 = /* @__PURE__ */ jsxs("div", {
|
|
74
155
|
className: "k-toast-footer",
|
|
75
|
-
children: [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
156
|
+
children: [t12, t14]
|
|
157
|
+
});
|
|
158
|
+
$[29] = t12;
|
|
159
|
+
$[30] = t14;
|
|
160
|
+
$[31] = t15;
|
|
161
|
+
} else t15 = $[31];
|
|
162
|
+
let t16;
|
|
163
|
+
if ($[32] !== t10 || $[33] !== t11 || $[34] !== t15) {
|
|
164
|
+
t16 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
165
|
+
t10,
|
|
166
|
+
t11,
|
|
167
|
+
t15
|
|
168
|
+
] });
|
|
169
|
+
$[32] = t10;
|
|
170
|
+
$[33] = t11;
|
|
171
|
+
$[34] = t15;
|
|
172
|
+
$[35] = t16;
|
|
173
|
+
} else t16 = $[35];
|
|
174
|
+
const body = t16;
|
|
175
|
+
const t17 = `k-toast-${type}`;
|
|
176
|
+
let t18;
|
|
177
|
+
if ($[36] !== t17) {
|
|
178
|
+
t18 = clsx("k-toast", t17);
|
|
179
|
+
$[36] = t17;
|
|
180
|
+
$[37] = t18;
|
|
181
|
+
} else t18 = $[37];
|
|
182
|
+
let t19;
|
|
183
|
+
if ($[38] !== onOpenChange) {
|
|
184
|
+
t19 = (opened) => {
|
|
185
|
+
if (!opened) onOpenChange?.(false);
|
|
186
|
+
};
|
|
187
|
+
$[38] = onOpenChange;
|
|
188
|
+
$[39] = t19;
|
|
189
|
+
} else t19 = $[39];
|
|
190
|
+
let t20;
|
|
191
|
+
if ($[40] !== body || $[41] !== handleClose || $[42] !== open || $[43] !== requestDestroy || $[44] !== t18 || $[45] !== t19) {
|
|
192
|
+
t20 = /* @__PURE__ */ jsx(Modal, {
|
|
193
|
+
open,
|
|
194
|
+
className: t18,
|
|
195
|
+
maskClosable: false,
|
|
196
|
+
content: body,
|
|
197
|
+
onClose: handleClose,
|
|
198
|
+
onAfterClose: requestDestroy,
|
|
199
|
+
onOpenChange: t19
|
|
200
|
+
});
|
|
201
|
+
$[40] = body;
|
|
202
|
+
$[41] = handleClose;
|
|
203
|
+
$[42] = open;
|
|
204
|
+
$[43] = requestDestroy;
|
|
205
|
+
$[44] = t18;
|
|
206
|
+
$[45] = t19;
|
|
207
|
+
$[46] = t20;
|
|
208
|
+
} else t20 = $[46];
|
|
209
|
+
return t20;
|
|
97
210
|
}
|
|
98
211
|
//#endregion
|
|
99
212
|
export { Toast as default };
|
package/es/notice/container.js
CHANGED
package/es/notice/content.js
CHANGED
package/es/notice/index.js
CHANGED
package/es/notice/instance.js
CHANGED
package/es/page/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.
|
|
2
|
+
* react-kui v3.2.0
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
6
6
|
* Author: Qiu / https://chuchur.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import { useConfigAppearance } from "../config/use-config-appearance.js";
|
|
9
|
+
import { ConfigContext, DEFAULT_LOCALE } from "../config/config-context.js";
|
|
10
|
+
import { resolvePaintedTheme, useConfigAppearance } from "../config/use-config-appearance.js";
|
|
12
11
|
import { ChevronUp, ChevronsLeft, ChevronsRight, Ellipsis } from "../node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js";
|
|
13
12
|
import Icon from "../icon/index.js";
|
|
14
13
|
import input_number_default from "../input-number/index.js";
|
|
@@ -18,6 +17,13 @@ import clsx from "clsx";
|
|
|
18
17
|
import { useContext, useLayoutEffect, useRef, useState } from "react";
|
|
19
18
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
19
|
//#region components/page/index.tsx
|
|
20
|
+
var PAINTED_THEMES = [
|
|
21
|
+
"fill",
|
|
22
|
+
"outline",
|
|
23
|
+
"plain",
|
|
24
|
+
"solid",
|
|
25
|
+
"dashed"
|
|
26
|
+
];
|
|
21
27
|
var Page = ({ simple = false, responsive = true, disabled = false, showSizer = false, showTotal = true, showElevator = false, theme: themeProp, shape: shapeProp, sizeData = [
|
|
22
28
|
10,
|
|
23
29
|
15,
|
|
@@ -31,10 +37,10 @@ var Page = ({ simple = false, responsive = true, disabled = false, showSizer = f
|
|
|
31
37
|
return bindResponsivePage(rootRef.current);
|
|
32
38
|
}, [responsive, simple]);
|
|
33
39
|
const inheritedAppearance = useConfigAppearance();
|
|
34
|
-
const theme = themeProp ?? inheritedAppearance.theme ?? "fill";
|
|
40
|
+
const theme = resolvePaintedTheme(themeProp ?? inheritedAppearance.theme, PAINTED_THEMES) ?? "fill";
|
|
35
41
|
const shape = shapeProp ?? inheritedAppearance.shape ?? "round";
|
|
36
42
|
const size = sizeProp ?? inheritedAppearance.size;
|
|
37
|
-
const locale = useContext(ConfigContext)?.locale ||
|
|
43
|
+
const locale = useContext(ConfigContext)?.locale || DEFAULT_LOCALE;
|
|
38
44
|
const normalizePageSize = (value) => Number.isFinite(value) && value > 0 ? value : 10;
|
|
39
45
|
const calcPageCount = (tot, ps) => Math.max(1, Math.ceil((Number.isFinite(tot) && tot > 0 ? tot : 0) / normalizePageSize(ps)));
|
|
40
46
|
const normalizePage = (value_0, count) => Math.min(count, Math.max(1, Number.isFinite(value_0) ? Math.floor(value_0) : 1));
|
|
@@ -145,8 +151,7 @@ var Page = ({ simple = false, responsive = true, disabled = false, showSizer = f
|
|
|
145
151
|
const classes = clsx("k-page", {
|
|
146
152
|
"k-page-sm": size === "small",
|
|
147
153
|
"k-page-lg": size === "large",
|
|
148
|
-
|
|
149
|
-
"k-page-outline": theme === "outline",
|
|
154
|
+
[`k-page-${theme}`]: theme,
|
|
150
155
|
"k-page-disabled": disabled,
|
|
151
156
|
"k-page-simple": simple,
|
|
152
157
|
"k-page-responsive": responsive && !simple,
|
package/es/page/responsive.js
CHANGED
package/es/page-header/index.js
CHANGED
package/es/popconfirm/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.
|
|
2
|
+
* react-kui v3.2.0
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
6
6
|
* Author: Qiu / https://chuchur.com
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import
|
|
10
|
-
import { ConfigContext } from "../config/config-context.js";
|
|
9
|
+
import { ConfigContext, DEFAULT_LOCALE } from "../config/config-context.js";
|
|
11
10
|
import Popup from "../popup/index.js";
|
|
12
11
|
import { CircleQuestionMark } from "../node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js";
|
|
13
12
|
import Icon from "../icon/index.js";
|
|
@@ -31,33 +30,34 @@ function PopconfirmPanel(props) {
|
|
|
31
30
|
return t0;
|
|
32
31
|
}
|
|
33
32
|
var Popconfirm = (t0) => {
|
|
34
|
-
const $ = c(
|
|
35
|
-
const { dark: t1, open, show, title, width, okText, cancelText, placement: t2,
|
|
33
|
+
const $ = c(22);
|
|
34
|
+
const { dark: t1, open, show, title, width, okText, cancelText, placement: t2, destroyOnClose: t3, panelOnly: t4, onCancel, onOk, onOpenChange, onShowChange, children } = t0;
|
|
36
35
|
const dark = t1 === void 0 ? false : t1;
|
|
37
36
|
const placement = t2 === void 0 ? "top" : t2;
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const t5 =
|
|
42
|
-
|
|
37
|
+
const destroyOnClose = t3 === void 0 ? true : t3;
|
|
38
|
+
const panelOnly = t4 === void 0 ? false : t4;
|
|
39
|
+
const locale = React.useContext(ConfigContext).locale || DEFAULT_LOCALE;
|
|
40
|
+
const t5 = open ?? show;
|
|
41
|
+
const t6 = dark ? "k-popconfirm-dark" : void 0;
|
|
42
|
+
let t7;
|
|
43
43
|
if ($[0] !== width) {
|
|
44
|
-
|
|
44
|
+
t7 = { width };
|
|
45
45
|
$[0] = width;
|
|
46
|
-
$[1] =
|
|
47
|
-
} else
|
|
48
|
-
let
|
|
46
|
+
$[1] = t7;
|
|
47
|
+
} else t7 = $[1];
|
|
48
|
+
let t8;
|
|
49
49
|
if ($[2] !== onOpenChange || $[3] !== onShowChange) {
|
|
50
|
-
|
|
50
|
+
t8 = (next) => {
|
|
51
51
|
onOpenChange?.(next);
|
|
52
52
|
onShowChange?.(next);
|
|
53
53
|
};
|
|
54
54
|
$[2] = onOpenChange;
|
|
55
55
|
$[3] = onShowChange;
|
|
56
|
-
$[4] =
|
|
57
|
-
} else
|
|
58
|
-
let
|
|
56
|
+
$[4] = t8;
|
|
57
|
+
} else t8 = $[4];
|
|
58
|
+
let t9;
|
|
59
59
|
if ($[5] !== cancelText || $[6] !== locale || $[7] !== okText || $[8] !== onCancel || $[9] !== onOk || $[10] !== title) {
|
|
60
|
-
|
|
60
|
+
t9 = (popup) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("div", {
|
|
61
61
|
className: "k-popconfirm-body",
|
|
62
62
|
children: [/* @__PURE__ */ jsx(Icon, { type: CircleQuestionMark }), /* @__PURE__ */ jsx("div", {
|
|
63
63
|
className: "k-popconfirm-title",
|
|
@@ -88,36 +88,37 @@ var Popconfirm = (t0) => {
|
|
|
88
88
|
$[8] = onCancel;
|
|
89
89
|
$[9] = onOk;
|
|
90
90
|
$[10] = title;
|
|
91
|
-
$[11] =
|
|
92
|
-
} else
|
|
93
|
-
let
|
|
94
|
-
if ($[12] !== children || $[13] !==
|
|
95
|
-
|
|
96
|
-
open:
|
|
91
|
+
$[11] = t9;
|
|
92
|
+
} else t9 = $[11];
|
|
93
|
+
let t10;
|
|
94
|
+
if ($[12] !== children || $[13] !== destroyOnClose || $[14] !== panelOnly || $[15] !== placement || $[16] !== t5 || $[17] !== t6 || $[18] !== t7 || $[19] !== t8 || $[20] !== t9) {
|
|
95
|
+
t10 = /* @__PURE__ */ jsx(Popup, {
|
|
96
|
+
open: t5,
|
|
97
97
|
trigger: "click",
|
|
98
98
|
placement,
|
|
99
99
|
panelOnly,
|
|
100
100
|
arrow: true,
|
|
101
|
-
destroyOnClose
|
|
101
|
+
destroyOnClose,
|
|
102
102
|
respectDefaultPrevented: false,
|
|
103
103
|
prefixCls: "k-popconfirm",
|
|
104
|
-
className:
|
|
105
|
-
style:
|
|
106
|
-
onOpenChange:
|
|
107
|
-
overlay:
|
|
104
|
+
className: t6,
|
|
105
|
+
style: t7,
|
|
106
|
+
onOpenChange: t8,
|
|
107
|
+
overlay: t9,
|
|
108
108
|
children
|
|
109
109
|
});
|
|
110
110
|
$[12] = children;
|
|
111
|
-
$[13] =
|
|
112
|
-
$[14] =
|
|
113
|
-
$[15] =
|
|
111
|
+
$[13] = destroyOnClose;
|
|
112
|
+
$[14] = panelOnly;
|
|
113
|
+
$[15] = placement;
|
|
114
114
|
$[16] = t5;
|
|
115
115
|
$[17] = t6;
|
|
116
116
|
$[18] = t7;
|
|
117
117
|
$[19] = t8;
|
|
118
118
|
$[20] = t9;
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
$[21] = t10;
|
|
120
|
+
} else t10 = $[21];
|
|
121
|
+
return t10;
|
|
121
122
|
};
|
|
122
123
|
//#endregion
|
|
123
124
|
export { PopconfirmPanel, Popconfirm as default };
|
package/es/poptip/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.
|
|
2
|
+
* react-kui v3.2.0
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
@@ -25,23 +25,24 @@ function PoptipPanel(props) {
|
|
|
25
25
|
return t0;
|
|
26
26
|
}
|
|
27
27
|
var Poptip = (t0) => {
|
|
28
|
-
const $ = c(
|
|
29
|
-
const { dark: t1, open, show, title, content, width, trigger: t2, placement: t3,
|
|
28
|
+
const $ = c(24);
|
|
29
|
+
const { dark: t1, open, show, title, content, width, trigger: t2, placement: t3, destroyOnClose: t4, panelOnly: t5, onClose, onOpenChange, onShowChange, children } = t0;
|
|
30
30
|
const dark = t1 === void 0 ? false : t1;
|
|
31
31
|
const trigger = t2 === void 0 ? "hover" : t2;
|
|
32
32
|
const placement = t3 === void 0 ? "top" : t3;
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const t6 =
|
|
36
|
-
|
|
33
|
+
const destroyOnClose = t4 === void 0 ? true : t4;
|
|
34
|
+
const panelOnly = t5 === void 0 ? false : t5;
|
|
35
|
+
const t6 = open ?? show;
|
|
36
|
+
const t7 = dark ? "k-poptip-dark" : void 0;
|
|
37
|
+
let t8;
|
|
37
38
|
if ($[0] !== width) {
|
|
38
|
-
|
|
39
|
+
t8 = { width };
|
|
39
40
|
$[0] = width;
|
|
40
|
-
$[1] =
|
|
41
|
-
} else
|
|
42
|
-
let
|
|
41
|
+
$[1] = t8;
|
|
42
|
+
} else t8 = $[1];
|
|
43
|
+
let t9;
|
|
43
44
|
if ($[2] !== onClose || $[3] !== onOpenChange || $[4] !== onShowChange) {
|
|
44
|
-
|
|
45
|
+
t9 = (next) => {
|
|
45
46
|
onOpenChange?.(next);
|
|
46
47
|
onShowChange?.(next);
|
|
47
48
|
if (!next) onClose?.();
|
|
@@ -49,62 +50,63 @@ var Poptip = (t0) => {
|
|
|
49
50
|
$[2] = onClose;
|
|
50
51
|
$[3] = onOpenChange;
|
|
51
52
|
$[4] = onShowChange;
|
|
52
|
-
$[5] =
|
|
53
|
-
} else
|
|
54
|
-
let
|
|
53
|
+
$[5] = t9;
|
|
54
|
+
} else t9 = $[5];
|
|
55
|
+
let t10;
|
|
55
56
|
if ($[6] !== title) {
|
|
56
|
-
|
|
57
|
+
t10 = title ? /* @__PURE__ */ jsx("div", {
|
|
57
58
|
className: "k-poptip-title",
|
|
58
59
|
children: title
|
|
59
60
|
}) : null;
|
|
60
61
|
$[6] = title;
|
|
61
|
-
$[7] =
|
|
62
|
-
} else
|
|
63
|
-
let
|
|
62
|
+
$[7] = t10;
|
|
63
|
+
} else t10 = $[7];
|
|
64
|
+
let t11;
|
|
64
65
|
if ($[8] !== content) {
|
|
65
|
-
|
|
66
|
+
t11 = /* @__PURE__ */ jsx("div", {
|
|
66
67
|
className: "k-poptip-body",
|
|
67
68
|
children: content
|
|
68
69
|
});
|
|
69
70
|
$[8] = content;
|
|
70
|
-
$[9] =
|
|
71
|
-
} else
|
|
72
|
-
let t11;
|
|
73
|
-
if ($[10] !== t10 || $[11] !== t9) {
|
|
74
|
-
t11 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t9, t10] });
|
|
75
|
-
$[10] = t10;
|
|
76
|
-
$[11] = t9;
|
|
77
|
-
$[12] = t11;
|
|
78
|
-
} else t11 = $[12];
|
|
71
|
+
$[9] = t11;
|
|
72
|
+
} else t11 = $[9];
|
|
79
73
|
let t12;
|
|
80
|
-
if ($[
|
|
81
|
-
t12 = /* @__PURE__ */
|
|
82
|
-
|
|
74
|
+
if ($[10] !== t10 || $[11] !== t11) {
|
|
75
|
+
t12 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t10, t11] });
|
|
76
|
+
$[10] = t10;
|
|
77
|
+
$[11] = t11;
|
|
78
|
+
$[12] = t12;
|
|
79
|
+
} else t12 = $[12];
|
|
80
|
+
let t13;
|
|
81
|
+
if ($[13] !== children || $[14] !== destroyOnClose || $[15] !== panelOnly || $[16] !== placement || $[17] !== t12 || $[18] !== t6 || $[19] !== t7 || $[20] !== t8 || $[21] !== t9 || $[22] !== trigger) {
|
|
82
|
+
t13 = /* @__PURE__ */ jsx(Popup, {
|
|
83
|
+
open: t6,
|
|
83
84
|
trigger,
|
|
84
85
|
placement,
|
|
85
86
|
panelOnly,
|
|
86
87
|
arrow: true,
|
|
87
|
-
destroyOnClose
|
|
88
|
+
destroyOnClose,
|
|
88
89
|
respectDefaultPrevented: false,
|
|
89
90
|
prefixCls: "k-poptip",
|
|
90
|
-
className:
|
|
91
|
-
style:
|
|
92
|
-
onOpenChange:
|
|
93
|
-
overlay:
|
|
91
|
+
className: t7,
|
|
92
|
+
style: t8,
|
|
93
|
+
onOpenChange: t9,
|
|
94
|
+
overlay: t12,
|
|
94
95
|
children
|
|
95
96
|
});
|
|
96
97
|
$[13] = children;
|
|
97
|
-
$[14] =
|
|
98
|
-
$[15] =
|
|
99
|
-
$[16] =
|
|
100
|
-
$[17] =
|
|
98
|
+
$[14] = destroyOnClose;
|
|
99
|
+
$[15] = panelOnly;
|
|
100
|
+
$[16] = placement;
|
|
101
|
+
$[17] = t12;
|
|
101
102
|
$[18] = t6;
|
|
102
103
|
$[19] = t7;
|
|
103
104
|
$[20] = t8;
|
|
104
|
-
$[21] =
|
|
105
|
-
$[22] =
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
$[21] = t9;
|
|
106
|
+
$[22] = trigger;
|
|
107
|
+
$[23] = t13;
|
|
108
|
+
} else t13 = $[23];
|
|
109
|
+
return t13;
|
|
108
110
|
};
|
|
109
111
|
//#endregion
|
|
110
112
|
export { PoptipPanel, Poptip as default };
|