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/drawer/index.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
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 Teleport from "../base/teleport.js";
|
|
12
11
|
import { Transition } from "../base/transition.js";
|
|
12
|
+
import { PopupHostContext, usePopupHostScope } from "../config/popup-host.js";
|
|
13
13
|
import { toggleContainerScroll } from "../utils/react-node.js";
|
|
14
14
|
import { X } from "../node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js";
|
|
15
15
|
import { useValue } from "../utils/use-value.js";
|
|
16
16
|
import Button from "../button/button.js";
|
|
17
|
+
import { toCssLength } from "../utils/css.js";
|
|
18
|
+
import { pushOverlay } from "../utils/overlay-stack.js";
|
|
17
19
|
import { c } from "react/compiler-runtime";
|
|
18
20
|
import clsx from "clsx";
|
|
19
21
|
import { useContext, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -31,20 +33,21 @@ var ensurePositioningContext = (element) => {
|
|
|
31
33
|
};
|
|
32
34
|
};
|
|
33
35
|
var Drawer = (t0) => {
|
|
34
|
-
const $ = c(
|
|
35
|
-
const { open, title
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const locale = useContext(ConfigContext)?.locale ||
|
|
36
|
+
const $ = c(112);
|
|
37
|
+
const { open, title, width: t1, height: t2, okText, cancelText, placement: t3, closable: t4, footer: t5, maskClosable: t6, target: t7, mask: t8, loading: t9, escKey: t10, destroyOnClose: t11, onOk, onCancel, onClose, onOpenChange, children } = t0;
|
|
38
|
+
const width = t1 === void 0 ? 520 : t1;
|
|
39
|
+
const height = t2 === void 0 ? 520 : t2;
|
|
40
|
+
const placement = t3 === void 0 ? "right" : t3;
|
|
41
|
+
const closable = t4 === void 0 ? true : t4;
|
|
42
|
+
const footer = t5 === void 0 ? true : t5;
|
|
43
|
+
const maskClosable = t6 === void 0 ? true : t6;
|
|
44
|
+
const target = t7 === void 0 ? getBody : t7;
|
|
45
|
+
const mask = t8 === void 0 ? true : t8;
|
|
46
|
+
const loading = t9 === void 0 ? false : t9;
|
|
47
|
+
const escKey = t10 === void 0 ? true : t10;
|
|
48
|
+
const destroyOnClose = t11 === void 0 ? true : t11;
|
|
49
|
+
const locale = useContext(ConfigContext)?.locale || DEFAULT_LOCALE;
|
|
50
|
+
const { register: registerHostedPopup, closeAll: closeHostedPopups } = usePopupHostScope();
|
|
48
51
|
const [innerOpen, setInnerOpen] = useValue(open, _temp);
|
|
49
52
|
const currentOpen = innerOpen;
|
|
50
53
|
const [visible, setVisible] = useState(false);
|
|
@@ -52,6 +55,8 @@ var Drawer = (t0) => {
|
|
|
52
55
|
const [targetEl, setTargetEl] = useState(null);
|
|
53
56
|
const wrapRef = useRef(null);
|
|
54
57
|
const previousFocus = useRef(null);
|
|
58
|
+
const overlayRef = useRef(null);
|
|
59
|
+
const hideTimerRef = useRef(null);
|
|
55
60
|
let t12;
|
|
56
61
|
if ($[0] !== visible) {
|
|
57
62
|
t12 = (node) => {
|
|
@@ -96,8 +101,19 @@ var Drawer = (t0) => {
|
|
|
96
101
|
useLayoutEffect(t14, t15);
|
|
97
102
|
let t16;
|
|
98
103
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
99
|
-
t16 = (
|
|
104
|
+
t16 = () => {
|
|
105
|
+
if (hideTimerRef.current === null) return;
|
|
106
|
+
clearTimeout(hideTimerRef.current);
|
|
107
|
+
hideTimerRef.current = null;
|
|
108
|
+
};
|
|
109
|
+
$[9] = t16;
|
|
110
|
+
} else t16 = $[9];
|
|
111
|
+
const cancelHide = t16;
|
|
112
|
+
let t17;
|
|
113
|
+
if ($[10] !== closeHostedPopups || $[11] !== destroyOnClose) {
|
|
114
|
+
t17 = (value) => {
|
|
100
115
|
if (value) {
|
|
116
|
+
cancelHide();
|
|
101
117
|
previousFocus.current = document.activeElement;
|
|
102
118
|
setRendered(true);
|
|
103
119
|
setTimeout(() => {
|
|
@@ -105,143 +121,190 @@ var Drawer = (t0) => {
|
|
|
105
121
|
wrapRef.current?.focus();
|
|
106
122
|
}, 0);
|
|
107
123
|
} else {
|
|
124
|
+
closeHostedPopups();
|
|
108
125
|
setVisible(false);
|
|
109
126
|
previousFocus.current?.focus();
|
|
127
|
+
cancelHide();
|
|
128
|
+
hideTimerRef.current = setTimeout(() => {
|
|
129
|
+
hideTimerRef.current = null;
|
|
130
|
+
if (destroyOnClose) setRendered(false);
|
|
131
|
+
}, 300);
|
|
110
132
|
}
|
|
111
133
|
};
|
|
112
|
-
$[
|
|
113
|
-
|
|
114
|
-
const toggle = t16;
|
|
115
|
-
let t17;
|
|
116
|
-
if ($[10] !== onOpenChange || $[11] !== setInnerOpen) {
|
|
117
|
-
t17 = (next_0) => {
|
|
118
|
-
setInnerOpen(next_0);
|
|
119
|
-
onOpenChange?.(next_0);
|
|
120
|
-
};
|
|
121
|
-
$[10] = onOpenChange;
|
|
122
|
-
$[11] = setInnerOpen;
|
|
134
|
+
$[10] = closeHostedPopups;
|
|
135
|
+
$[11] = destroyOnClose;
|
|
123
136
|
$[12] = t17;
|
|
124
137
|
} else t17 = $[12];
|
|
125
|
-
const
|
|
138
|
+
const toggle = t17;
|
|
126
139
|
let t18;
|
|
127
|
-
|
|
128
|
-
|
|
140
|
+
let t19;
|
|
141
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
142
|
+
t18 = () => cancelHide;
|
|
143
|
+
t19 = [cancelHide];
|
|
144
|
+
$[13] = t18;
|
|
145
|
+
$[14] = t19;
|
|
146
|
+
} else {
|
|
147
|
+
t18 = $[13];
|
|
148
|
+
t19 = $[14];
|
|
149
|
+
}
|
|
150
|
+
useEffect(t18, t19);
|
|
151
|
+
let t20;
|
|
152
|
+
if ($[15] !== onOpenChange || $[16] !== setInnerOpen) {
|
|
153
|
+
t20 = (next_0) => {
|
|
154
|
+
setInnerOpen(next_0);
|
|
155
|
+
onOpenChange?.(next_0);
|
|
156
|
+
};
|
|
157
|
+
$[15] = onOpenChange;
|
|
158
|
+
$[16] = setInnerOpen;
|
|
159
|
+
$[17] = t20;
|
|
160
|
+
} else t20 = $[17];
|
|
161
|
+
const requestOpen = t20;
|
|
162
|
+
let t21;
|
|
163
|
+
if ($[18] !== onClose || $[19] !== requestOpen) {
|
|
164
|
+
t21 = () => {
|
|
129
165
|
requestOpen(false);
|
|
130
166
|
onClose?.();
|
|
131
167
|
};
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
} else
|
|
136
|
-
const close =
|
|
137
|
-
let
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
168
|
+
$[18] = onClose;
|
|
169
|
+
$[19] = requestOpen;
|
|
170
|
+
$[20] = t21;
|
|
171
|
+
} else t21 = $[20];
|
|
172
|
+
const close = t21;
|
|
173
|
+
let t22;
|
|
174
|
+
let t23;
|
|
175
|
+
if ($[21] !== rendered || $[22] !== visible) {
|
|
176
|
+
t22 = () => {
|
|
177
|
+
if (!rendered || !visible) return;
|
|
178
|
+
const handle = pushOverlay();
|
|
179
|
+
overlayRef.current = handle;
|
|
180
|
+
return () => {
|
|
181
|
+
handle.release();
|
|
182
|
+
if (overlayRef.current === handle) overlayRef.current = null;
|
|
183
|
+
};
|
|
141
184
|
};
|
|
142
|
-
|
|
143
|
-
$[
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
185
|
+
t23 = [rendered, visible];
|
|
186
|
+
$[21] = rendered;
|
|
187
|
+
$[22] = visible;
|
|
188
|
+
$[23] = t22;
|
|
189
|
+
$[24] = t23;
|
|
190
|
+
} else {
|
|
191
|
+
t22 = $[23];
|
|
192
|
+
t23 = $[24];
|
|
193
|
+
}
|
|
194
|
+
useEffect(t22, t23);
|
|
195
|
+
let t24;
|
|
196
|
+
if ($[25] !== close || $[26] !== visible) {
|
|
197
|
+
t24 = (e) => {
|
|
198
|
+
if (e.key !== "Escape" || e.defaultPrevented) return;
|
|
199
|
+
if (!visible) return;
|
|
200
|
+
if (!overlayRef.current?.isTop()) return;
|
|
201
|
+
close();
|
|
202
|
+
};
|
|
203
|
+
$[25] = close;
|
|
204
|
+
$[26] = visible;
|
|
205
|
+
$[27] = t24;
|
|
206
|
+
} else t24 = $[27];
|
|
207
|
+
const escToClose = t24;
|
|
208
|
+
let t25;
|
|
209
|
+
let t26;
|
|
210
|
+
if ($[28] !== currentOpen || $[29] !== targetEl || $[30] !== toggle) {
|
|
211
|
+
t25 = () => {
|
|
150
212
|
if (currentOpen && !targetEl) return;
|
|
151
213
|
const timer = setTimeout(() => toggle(currentOpen), 0);
|
|
152
214
|
return () => clearTimeout(timer);
|
|
153
215
|
};
|
|
154
|
-
|
|
216
|
+
t26 = [
|
|
155
217
|
currentOpen,
|
|
156
218
|
targetEl,
|
|
157
219
|
toggle
|
|
158
220
|
];
|
|
159
|
-
$[
|
|
160
|
-
$[
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
221
|
+
$[28] = currentOpen;
|
|
222
|
+
$[29] = targetEl;
|
|
223
|
+
$[30] = toggle;
|
|
224
|
+
$[31] = t25;
|
|
225
|
+
$[32] = t26;
|
|
163
226
|
} else {
|
|
164
|
-
|
|
165
|
-
|
|
227
|
+
t25 = $[31];
|
|
228
|
+
t26 = $[32];
|
|
166
229
|
}
|
|
167
|
-
useEffect(
|
|
168
|
-
let
|
|
169
|
-
let
|
|
170
|
-
if ($[
|
|
171
|
-
|
|
230
|
+
useEffect(t25, t26);
|
|
231
|
+
let t27;
|
|
232
|
+
let t28;
|
|
233
|
+
if ($[33] !== escKey || $[34] !== escToClose) {
|
|
234
|
+
t27 = () => {
|
|
172
235
|
if (escKey) document.addEventListener("keydown", escToClose);
|
|
173
236
|
return () => {
|
|
174
237
|
if (escKey) document.removeEventListener("keydown", escToClose);
|
|
175
238
|
};
|
|
176
239
|
};
|
|
177
|
-
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
240
|
+
t28 = [escKey, escToClose];
|
|
241
|
+
$[33] = escKey;
|
|
242
|
+
$[34] = escToClose;
|
|
243
|
+
$[35] = t27;
|
|
244
|
+
$[36] = t28;
|
|
182
245
|
} else {
|
|
183
|
-
|
|
184
|
-
|
|
246
|
+
t27 = $[35];
|
|
247
|
+
t28 = $[36];
|
|
185
248
|
}
|
|
186
|
-
useEffect(
|
|
187
|
-
let
|
|
188
|
-
let
|
|
189
|
-
if ($[
|
|
190
|
-
|
|
249
|
+
useEffect(t27, t28);
|
|
250
|
+
let t29;
|
|
251
|
+
let t30;
|
|
252
|
+
if ($[37] !== currentOpen || $[38] !== targetEl) {
|
|
253
|
+
t29 = () => {
|
|
191
254
|
if (!targetEl) return;
|
|
192
255
|
toggleContainerScroll(targetEl, currentOpen);
|
|
193
256
|
return () => toggleContainerScroll(targetEl, false);
|
|
194
257
|
};
|
|
195
|
-
|
|
196
|
-
$[
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
258
|
+
t30 = [currentOpen, targetEl];
|
|
259
|
+
$[37] = currentOpen;
|
|
260
|
+
$[38] = targetEl;
|
|
261
|
+
$[39] = t29;
|
|
262
|
+
$[40] = t30;
|
|
200
263
|
} else {
|
|
201
|
-
|
|
202
|
-
|
|
264
|
+
t29 = $[39];
|
|
265
|
+
t30 = $[40];
|
|
203
266
|
}
|
|
204
|
-
useEffect(
|
|
205
|
-
let
|
|
206
|
-
let
|
|
207
|
-
if ($[
|
|
208
|
-
|
|
267
|
+
useEffect(t29, t30);
|
|
268
|
+
let t31;
|
|
269
|
+
let t32;
|
|
270
|
+
if ($[41] !== rendered || $[42] !== targetEl) {
|
|
271
|
+
t31 = () => {
|
|
209
272
|
if (rendered && targetEl) return ensurePositioningContext(targetEl);
|
|
210
273
|
};
|
|
211
|
-
|
|
212
|
-
$[
|
|
213
|
-
$[
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
274
|
+
t32 = [rendered, targetEl];
|
|
275
|
+
$[41] = rendered;
|
|
276
|
+
$[42] = targetEl;
|
|
277
|
+
$[43] = t31;
|
|
278
|
+
$[44] = t32;
|
|
216
279
|
} else {
|
|
217
|
-
|
|
218
|
-
|
|
280
|
+
t31 = $[43];
|
|
281
|
+
t32 = $[44];
|
|
219
282
|
}
|
|
220
|
-
useLayoutEffect(
|
|
221
|
-
let
|
|
222
|
-
if ($[
|
|
223
|
-
|
|
224
|
-
onCancel?.();
|
|
283
|
+
useLayoutEffect(t31, t32);
|
|
284
|
+
let t33;
|
|
285
|
+
if ($[45] !== onCancel || $[46] !== requestOpen) {
|
|
286
|
+
t33 = () => {
|
|
225
287
|
requestOpen(false);
|
|
288
|
+
onCancel?.();
|
|
226
289
|
};
|
|
227
|
-
$[
|
|
228
|
-
$[
|
|
229
|
-
$[
|
|
230
|
-
} else
|
|
231
|
-
const cancel =
|
|
232
|
-
let
|
|
233
|
-
if ($[
|
|
234
|
-
|
|
235
|
-
$[
|
|
236
|
-
$[
|
|
237
|
-
} else
|
|
238
|
-
const ok =
|
|
290
|
+
$[45] = onCancel;
|
|
291
|
+
$[46] = requestOpen;
|
|
292
|
+
$[47] = t33;
|
|
293
|
+
} else t33 = $[47];
|
|
294
|
+
const cancel = t33;
|
|
295
|
+
let t34;
|
|
296
|
+
if ($[48] !== onOk) {
|
|
297
|
+
t34 = () => onOk?.();
|
|
298
|
+
$[48] = onOk;
|
|
299
|
+
$[49] = t34;
|
|
300
|
+
} else t34 = $[49];
|
|
301
|
+
const ok = t34;
|
|
239
302
|
const okLabel = okText || locale?.k?.common?.ok;
|
|
240
303
|
const cancelLabel = cancelText || locale?.k?.common?.cancel;
|
|
241
304
|
const hasFooter = footer !== false && footer != null;
|
|
242
|
-
let
|
|
243
|
-
if ($[
|
|
244
|
-
|
|
305
|
+
let t35;
|
|
306
|
+
if ($[50] !== cancel || $[51] !== cancelLabel || $[52] !== footer || $[53] !== hasFooter || $[54] !== loading || $[55] !== ok || $[56] !== okLabel) {
|
|
307
|
+
t35 = hasFooter ? /* @__PURE__ */ jsx("div", {
|
|
245
308
|
className: "k-drawer-footer",
|
|
246
309
|
children: footer === true ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Button, {
|
|
247
310
|
onClick: cancel,
|
|
@@ -253,180 +316,205 @@ var Drawer = (t0) => {
|
|
|
253
316
|
children: okLabel
|
|
254
317
|
})] }) : footer
|
|
255
318
|
}) : null;
|
|
256
|
-
$[
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
264
|
-
} else
|
|
265
|
-
const footerNode =
|
|
266
|
-
let
|
|
267
|
-
if ($[
|
|
268
|
-
|
|
319
|
+
$[50] = cancel;
|
|
320
|
+
$[51] = cancelLabel;
|
|
321
|
+
$[52] = footer;
|
|
322
|
+
$[53] = hasFooter;
|
|
323
|
+
$[54] = loading;
|
|
324
|
+
$[55] = ok;
|
|
325
|
+
$[56] = okLabel;
|
|
326
|
+
$[57] = t35;
|
|
327
|
+
} else t35 = $[57];
|
|
328
|
+
const footerNode = t35;
|
|
329
|
+
let t36;
|
|
330
|
+
if ($[58] !== closable || $[59] !== close) {
|
|
331
|
+
t36 = closable ? /* @__PURE__ */ jsx(Button, {
|
|
269
332
|
className: "k-drawer-close",
|
|
270
333
|
size: "small",
|
|
271
334
|
type: "text",
|
|
272
335
|
onClick: close,
|
|
273
336
|
icon: X
|
|
274
337
|
}) : null;
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
$[
|
|
278
|
-
} else
|
|
279
|
-
const closeNode =
|
|
338
|
+
$[58] = closable;
|
|
339
|
+
$[59] = close;
|
|
340
|
+
$[60] = t36;
|
|
341
|
+
} else t36 = $[60];
|
|
342
|
+
const closeNode = t36;
|
|
280
343
|
let drawerStyle;
|
|
281
|
-
if ($[
|
|
344
|
+
if ($[61] !== height || $[62] !== placement || $[63] !== width) {
|
|
282
345
|
drawerStyle = {};
|
|
283
|
-
if (placement === "left" || placement === "right")
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
346
|
+
if (placement === "left" || placement === "right") {
|
|
347
|
+
let t37;
|
|
348
|
+
if ($[65] !== width) {
|
|
349
|
+
t37 = toCssLength(width);
|
|
350
|
+
$[65] = width;
|
|
351
|
+
$[66] = t37;
|
|
352
|
+
} else t37 = $[66];
|
|
353
|
+
drawerStyle.width = t37;
|
|
354
|
+
}
|
|
355
|
+
if (placement === "top" || placement === "bottom") {
|
|
356
|
+
let t37;
|
|
357
|
+
if ($[67] !== height) {
|
|
358
|
+
t37 = toCssLength(height);
|
|
359
|
+
$[67] = height;
|
|
360
|
+
$[68] = t37;
|
|
361
|
+
} else t37 = $[68];
|
|
362
|
+
drawerStyle.height = t37;
|
|
363
|
+
}
|
|
364
|
+
$[61] = height;
|
|
365
|
+
$[62] = placement;
|
|
366
|
+
$[63] = width;
|
|
367
|
+
$[64] = drawerStyle;
|
|
368
|
+
} else drawerStyle = $[64];
|
|
369
|
+
const t37 = `k-drawer-${placement}`;
|
|
370
|
+
const t38 = !mask;
|
|
371
|
+
let t39;
|
|
372
|
+
if ($[69] !== hasFooter || $[70] !== isBody || $[71] !== t37 || $[72] !== t38) {
|
|
373
|
+
t39 = clsx("k-drawer", t37, {
|
|
295
374
|
"k-drawer-has-footer": hasFooter,
|
|
296
375
|
"k-drawer-to-body": isBody,
|
|
297
|
-
"k-drawer-no-mask":
|
|
376
|
+
"k-drawer-no-mask": t38
|
|
298
377
|
});
|
|
299
|
-
$[
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
303
|
-
$[
|
|
304
|
-
} else
|
|
305
|
-
const classes =
|
|
378
|
+
$[69] = hasFooter;
|
|
379
|
+
$[70] = isBody;
|
|
380
|
+
$[71] = t37;
|
|
381
|
+
$[72] = t38;
|
|
382
|
+
$[73] = t39;
|
|
383
|
+
} else t39 = $[73];
|
|
384
|
+
const classes = t39;
|
|
306
385
|
if (!rendered || !targetEl) return null;
|
|
307
|
-
let
|
|
308
|
-
if ($[
|
|
309
|
-
|
|
386
|
+
let t40;
|
|
387
|
+
if ($[74] !== close || $[75] !== destroyOnClose || $[76] !== isBody || $[77] !== mask || $[78] !== maskClosable || $[79] !== visible) {
|
|
388
|
+
t40 = mask && /* @__PURE__ */ jsx(Transition, {
|
|
310
389
|
name: "k-drawer-fade",
|
|
311
390
|
show: visible,
|
|
312
391
|
timeout: 400,
|
|
313
392
|
appear: true,
|
|
393
|
+
unmountOnExit: destroyOnClose,
|
|
314
394
|
children: /* @__PURE__ */ jsx("div", {
|
|
315
395
|
className: clsx("k-drawer-mask", { "k-drawer-mask-to-body": isBody }),
|
|
316
396
|
onClick: maskClosable ? close : void 0
|
|
317
397
|
})
|
|
318
398
|
});
|
|
319
|
-
$[
|
|
320
|
-
$[
|
|
321
|
-
$[
|
|
322
|
-
$[
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
children: title
|
|
332
|
-
});
|
|
333
|
-
$[65] = title;
|
|
334
|
-
$[66] = t37;
|
|
335
|
-
} else t37 = $[66];
|
|
336
|
-
let t38;
|
|
337
|
-
if ($[67] !== closeNode || $[68] !== t37) {
|
|
338
|
-
t38 = /* @__PURE__ */ jsxs("div", {
|
|
399
|
+
$[74] = close;
|
|
400
|
+
$[75] = destroyOnClose;
|
|
401
|
+
$[76] = isBody;
|
|
402
|
+
$[77] = mask;
|
|
403
|
+
$[78] = maskClosable;
|
|
404
|
+
$[79] = visible;
|
|
405
|
+
$[80] = t40;
|
|
406
|
+
} else t40 = $[80];
|
|
407
|
+
const t41 = `k-drawer-${placement}`;
|
|
408
|
+
let t42;
|
|
409
|
+
if ($[81] !== closable || $[82] !== closeNode || $[83] !== title) {
|
|
410
|
+
t42 = (title != null || closable) && /* @__PURE__ */ jsxs("div", {
|
|
339
411
|
className: "k-drawer-header",
|
|
340
|
-
children: [closeNode,
|
|
412
|
+
children: [closeNode, /* @__PURE__ */ jsx("div", {
|
|
413
|
+
className: "k-drawer-header-inner",
|
|
414
|
+
children: title
|
|
415
|
+
})]
|
|
341
416
|
});
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
$[
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
417
|
+
$[81] = closable;
|
|
418
|
+
$[82] = closeNode;
|
|
419
|
+
$[83] = title;
|
|
420
|
+
$[84] = t42;
|
|
421
|
+
} else t42 = $[84];
|
|
422
|
+
let t43;
|
|
423
|
+
if ($[85] !== children) {
|
|
424
|
+
t43 = /* @__PURE__ */ jsx("div", {
|
|
349
425
|
className: "k-drawer-body",
|
|
350
426
|
children
|
|
351
427
|
});
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
} else
|
|
355
|
-
let
|
|
356
|
-
if ($[
|
|
357
|
-
|
|
428
|
+
$[85] = children;
|
|
429
|
+
$[86] = t43;
|
|
430
|
+
} else t43 = $[86];
|
|
431
|
+
let t44;
|
|
432
|
+
if ($[87] !== footerNode || $[88] !== t42 || $[89] !== t43) {
|
|
433
|
+
t44 = /* @__PURE__ */ jsxs("div", {
|
|
358
434
|
className: "k-drawer-content",
|
|
359
435
|
children: [
|
|
360
|
-
|
|
361
|
-
|
|
436
|
+
t42,
|
|
437
|
+
t43,
|
|
362
438
|
footerNode
|
|
363
439
|
]
|
|
364
440
|
});
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
$[
|
|
369
|
-
} else
|
|
370
|
-
let
|
|
371
|
-
if ($[
|
|
372
|
-
|
|
441
|
+
$[87] = footerNode;
|
|
442
|
+
$[88] = t42;
|
|
443
|
+
$[89] = t43;
|
|
444
|
+
$[90] = t44;
|
|
445
|
+
} else t44 = $[90];
|
|
446
|
+
let t45;
|
|
447
|
+
if ($[91] !== drawerStyle || $[92] !== t44) {
|
|
448
|
+
t45 = /* @__PURE__ */ jsx("div", {
|
|
373
449
|
className: "k-drawer-box",
|
|
374
450
|
style: drawerStyle,
|
|
375
|
-
children:
|
|
451
|
+
children: t44
|
|
376
452
|
});
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
} else
|
|
381
|
-
let
|
|
382
|
-
if ($[
|
|
383
|
-
|
|
453
|
+
$[91] = drawerStyle;
|
|
454
|
+
$[92] = t44;
|
|
455
|
+
$[93] = t45;
|
|
456
|
+
} else t45 = $[93];
|
|
457
|
+
let t46;
|
|
458
|
+
if ($[94] !== destroyOnClose || $[95] !== t41 || $[96] !== t45 || $[97] !== visible) {
|
|
459
|
+
t46 = /* @__PURE__ */ jsx(Transition, {
|
|
384
460
|
show: visible,
|
|
385
|
-
name:
|
|
461
|
+
name: t41,
|
|
386
462
|
timeout: 200,
|
|
387
463
|
appear: true,
|
|
388
|
-
|
|
464
|
+
unmountOnExit: destroyOnClose,
|
|
465
|
+
children: t45
|
|
389
466
|
});
|
|
390
|
-
$[
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
467
|
+
$[94] = destroyOnClose;
|
|
468
|
+
$[95] = t41;
|
|
469
|
+
$[96] = t45;
|
|
470
|
+
$[97] = visible;
|
|
471
|
+
$[98] = t46;
|
|
472
|
+
} else t46 = $[98];
|
|
473
|
+
let t47;
|
|
474
|
+
if ($[99] !== setWrapRef || $[100] !== t46) {
|
|
475
|
+
t47 = /* @__PURE__ */ jsx("div", {
|
|
398
476
|
ref: setWrapRef,
|
|
399
477
|
className: "k-drawer-wrap",
|
|
400
478
|
tabIndex: -1,
|
|
401
|
-
children:
|
|
479
|
+
children: t46
|
|
402
480
|
});
|
|
403
|
-
$[
|
|
404
|
-
$[
|
|
405
|
-
$[
|
|
406
|
-
} else
|
|
407
|
-
let
|
|
408
|
-
if ($[
|
|
409
|
-
|
|
481
|
+
$[99] = setWrapRef;
|
|
482
|
+
$[100] = t46;
|
|
483
|
+
$[101] = t47;
|
|
484
|
+
} else t47 = $[101];
|
|
485
|
+
let t48;
|
|
486
|
+
if ($[102] !== classes || $[103] !== t40 || $[104] !== t47) {
|
|
487
|
+
t48 = /* @__PURE__ */ jsxs("div", {
|
|
410
488
|
className: classes,
|
|
411
|
-
children: [
|
|
489
|
+
children: [t40, t47]
|
|
412
490
|
});
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
} else
|
|
418
|
-
const drawerEl =
|
|
419
|
-
let
|
|
420
|
-
if ($[
|
|
421
|
-
|
|
422
|
-
|
|
491
|
+
$[102] = classes;
|
|
492
|
+
$[103] = t40;
|
|
493
|
+
$[104] = t47;
|
|
494
|
+
$[105] = t48;
|
|
495
|
+
} else t48 = $[105];
|
|
496
|
+
const drawerEl = t48;
|
|
497
|
+
let t49;
|
|
498
|
+
if ($[106] !== drawerEl || $[107] !== registerHostedPopup) {
|
|
499
|
+
t49 = /* @__PURE__ */ jsx(PopupHostContext.Provider, {
|
|
500
|
+
value: registerHostedPopup,
|
|
423
501
|
children: drawerEl
|
|
424
502
|
});
|
|
425
|
-
$[
|
|
426
|
-
$[
|
|
427
|
-
$[
|
|
428
|
-
} else
|
|
429
|
-
|
|
503
|
+
$[106] = drawerEl;
|
|
504
|
+
$[107] = registerHostedPopup;
|
|
505
|
+
$[108] = t49;
|
|
506
|
+
} else t49 = $[108];
|
|
507
|
+
let t50;
|
|
508
|
+
if ($[109] !== t49 || $[110] !== targetEl) {
|
|
509
|
+
t50 = /* @__PURE__ */ jsx(Teleport, {
|
|
510
|
+
to: targetEl,
|
|
511
|
+
children: t49
|
|
512
|
+
});
|
|
513
|
+
$[109] = t49;
|
|
514
|
+
$[110] = targetEl;
|
|
515
|
+
$[111] = t50;
|
|
516
|
+
} else t50 = $[111];
|
|
517
|
+
return t50;
|
|
430
518
|
};
|
|
431
519
|
function _temp(next) {
|
|
432
520
|
return next ?? false;
|