react-kui 3.1.2 → 3.2.1
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 +918 -324
- 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 +112 -92
- package/es/select/option.js +1 -1
- package/es/select/select.js +29 -29
- 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 +556 -207
- package/es/table/utils.js +140 -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/segmented/index.d.cts +2 -1
- package/types/segmented/index.d.ts +2 -1
- 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/table/utils.js
CHANGED
|
@@ -1,19 +1,117 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.1
|
|
2
|
+
* react-kui v3.2.1
|
|
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 { assert } from "../utils/share.js";
|
|
9
10
|
//#region components/table/utils.ts
|
|
10
11
|
var flattenColumns = (columns) => columns.flatMap((column) => column.children?.length ? flattenColumns(column.children) : column);
|
|
11
12
|
var countColumnLeaves = (column) => column.children?.length ? column.children.reduce((sum, child) => sum + countColumnLeaves(child), 0) : 1;
|
|
12
|
-
|
|
13
|
+
/**
|
|
14
|
+
* 分组表头父列上的 `fixed` 向下继承给整棵子树。kui-react 与 kui-vue 的
|
|
15
|
+
* `components/table/utils.ts` 里是逐字节相同的副本,改一边必须同步另一边,
|
|
16
|
+
* 否则同一份列配置在两个框架里会固定出不同的列。
|
|
17
|
+
*
|
|
18
|
+
* `colgroup` 与 sticky 偏移都只按叶子列累加,所以父列上写的 `fixed` 必须落到它的每个叶子列上,
|
|
19
|
+
* 「固定整组」这种配置才不会整体失效。叶子自己显式写的 `fixed` 优先,只在没写时补继承值;
|
|
20
|
+
* 一个方向都没继承到的列返回原来的对象引用,整棵子树都没变时连数组都复用同一个引用,
|
|
21
|
+
* 免得每次渲染都给列树新建对象,把 `visibleColumns → leaves → headerInfo` 的 memo 打回原形。
|
|
22
|
+
*/
|
|
23
|
+
var inheritColumnFixed = (columns, inherited) => {
|
|
24
|
+
const next = columns.map((column) => {
|
|
25
|
+
const fixed = column.fixed ?? inherited;
|
|
26
|
+
const children = column.children?.length ? inheritColumnFixed(column.children, fixed) : column.children;
|
|
27
|
+
if (fixed === column.fixed && children === column.children) return column;
|
|
28
|
+
const copy = { ...column };
|
|
29
|
+
if (fixed) copy.fixed = fixed;
|
|
30
|
+
if (children) copy.children = children;
|
|
31
|
+
return copy;
|
|
32
|
+
});
|
|
33
|
+
return next.every((column, index) => column === columns[index]) ? columns : next;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* 按列 `key` 从记录里取单元格值,`rowKey` 与 `childrenColumnName` 的字段名也走这同一个读取器。
|
|
37
|
+
* kui-react 与 kui-vue 的 `components/table/utils.ts` 里是逐字节相同的副本,改一边必须同步另一边,
|
|
38
|
+
* 否则同一份数据在两个框架里会渲染出不同内容、排出不同顺序。
|
|
39
|
+
*
|
|
40
|
+
* 取值规则:
|
|
41
|
+
* - 整名优先:`key` 本身就是记录上的属性时直接取它,所以字段名自带点号(`{ "a.b": 1 }`)不会被误当成路径;
|
|
42
|
+
* - 整名没命中且 `key` 含点号时按 `.` 逐段下钻,任意一段走到非对象(含 `null`)就返回 `undefined`,
|
|
43
|
+
* 所以 `{ user: null }` 配 `key="user.name"` 渲染成空而不是抛错;数字段天然能取数组元素(`"tags.0"`);
|
|
44
|
+
* - `__proto__`/`constructor`/`prototype` 这三段一律取不到值,避免列名顺着原型链摸到全局对象。
|
|
45
|
+
*/
|
|
46
|
+
var getRecordValue = (record, key) => {
|
|
47
|
+
if (key in record) return record[key];
|
|
48
|
+
if (!key.includes(".")) return void 0;
|
|
49
|
+
let current = record;
|
|
50
|
+
for (const segment of key.split(".")) {
|
|
51
|
+
if (segment === "__proto__" || segment === "constructor" || segment === "prototype") return;
|
|
52
|
+
if (current === null || typeof current !== "object") return void 0;
|
|
53
|
+
current = current[segment];
|
|
54
|
+
}
|
|
55
|
+
return current;
|
|
56
|
+
};
|
|
13
57
|
var getTreeChildren = (record, childrenColumnName) => {
|
|
14
58
|
const children = getRecordValue(record, childrenColumnName);
|
|
15
59
|
return Array.isArray(children) ? children : [];
|
|
16
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* 表头排序的共享比较器。kui-react 与 kui-vue 的 `components/table/utils.ts` 里是逐字节相同的副本,
|
|
63
|
+
* 改一边必须同步另一边,否则同一份数据在两个框架下会排出不同顺序。
|
|
64
|
+
*
|
|
65
|
+
* 规则:
|
|
66
|
+
* - 两侧都是 number(含 `Date` 之外的数值)时按数值比较,`NaN` 排在最前;
|
|
67
|
+
* - 其余情况(字符串、数字与字符串混排、布尔、`null`/`undefined`)统一转成字符串,
|
|
68
|
+
* 用带数字感知的字典序比较,所以 `"9"` 排在 `"10"` 前面,`null`/`undefined` 视作空串。
|
|
69
|
+
*/
|
|
70
|
+
var compareSortValues = (first, second) => {
|
|
71
|
+
if (typeof first === "number" && typeof second === "number") {
|
|
72
|
+
const firstIsNaN = Number.isNaN(first);
|
|
73
|
+
const secondIsNaN = Number.isNaN(second);
|
|
74
|
+
if (firstIsNaN || secondIsNaN) return firstIsNaN && secondIsNaN ? 0 : firstIsNaN ? -1 : 1;
|
|
75
|
+
return first === second ? 0 : first < second ? -1 : 1;
|
|
76
|
+
}
|
|
77
|
+
const toText = (value) => value === null || value === void 0 ? "" : String(value);
|
|
78
|
+
const firstText = toText(first);
|
|
79
|
+
const secondText = toText(second);
|
|
80
|
+
if (firstText === secondText) return 0;
|
|
81
|
+
return firstText.localeCompare(secondText, void 0, { numeric: true });
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* `rowKey` 取不到 `string`/`number` 时的兜底 key:按记录对象本身分配一个稳定且互不相同的 key。
|
|
85
|
+
*
|
|
86
|
+
* 直接返回 `""` 会让所有缺 key 的行撞到同一个 React key / 勾选 key 上,勾选一行等于勾选全部。
|
|
87
|
+
* 这里用 `WeakMap` 缓存,同一个记录对象在多次渲染之间拿到的 key 不变,勾选与展开状态因此不会漂移。
|
|
88
|
+
* 只在第一次兜底时告警一次,避免大表格刷屏。
|
|
89
|
+
*/
|
|
90
|
+
var syntheticRowKeys = /* @__PURE__ */ new WeakMap();
|
|
91
|
+
var syntheticRowKeyCount = 0;
|
|
92
|
+
var warnedMissingRowKey = false;
|
|
93
|
+
var getSyntheticRowKey = (record) => {
|
|
94
|
+
const existing = syntheticRowKeys.get(record);
|
|
95
|
+
if (existing) return existing;
|
|
96
|
+
const created = `kui-row-${syntheticRowKeyCount += 1}`;
|
|
97
|
+
syntheticRowKeys.set(record, created);
|
|
98
|
+
if (!warnedMissingRowKey) {
|
|
99
|
+
warnedMissingRowKey = true;
|
|
100
|
+
assert(false, "[kui-table] rowKey 没有取到 string/number,已按记录生成兜底 key,请为每行设置 rowKey(字段名或取值函数)。");
|
|
101
|
+
}
|
|
102
|
+
return created;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* 解析一行的 key,kui-react 与 kui-vue 行为一致:`rowKey` 可以是字段名,也可以是取值函数;
|
|
106
|
+
* 两者都拿不到 `string`/`number` 时回退到 `getSyntheticRowKey` 生成的兜底 key。
|
|
107
|
+
*
|
|
108
|
+
* 字段名走 `getRecordValue`,所以和列 `key` 一样支持 `"user.uid"` 这种点路径。
|
|
109
|
+
* 本函数与上面的 `getSyntheticRowKey` 在两个仓库里是逐字节相同的副本,改一边必须同步另一边。
|
|
110
|
+
*/
|
|
111
|
+
var resolveRowKey = (record, rowKey) => {
|
|
112
|
+
const value = typeof rowKey === "function" ? rowKey(record) : getRecordValue(record, rowKey);
|
|
113
|
+
return typeof value === "string" || typeof value === "number" ? value : getSyntheticRowKey(record);
|
|
114
|
+
};
|
|
17
115
|
var flattenTreeData = ({ data, childrenColumnName, expandedKeys, getKey, sortRecords = (records) => records }) => {
|
|
18
116
|
const rows = [];
|
|
19
117
|
const visit = (records, depth) => {
|
|
@@ -30,5 +128,44 @@ var flattenTreeData = ({ data, childrenColumnName, expandedKeys, getKey, sortRec
|
|
|
30
128
|
visit(data, 0);
|
|
31
129
|
return rows;
|
|
32
130
|
};
|
|
131
|
+
/**
|
|
132
|
+
* `expandAllRows` 期间 `data` 异步变化时,把“数据里新出现的父行”补进展开集合,
|
|
133
|
+
* 已经在数据里的行保持用户手动展开或折叠的结果。kui-react 与 kui-vue 的
|
|
134
|
+
* `components/table/utils.ts` 里是逐字节相同的副本,改一边必须同步另一边。
|
|
135
|
+
*
|
|
136
|
+
* `knownParentKeys` 是上一次看到的数据里的父行 key 集合,`nextParentKeys` 是本次的,
|
|
137
|
+
* 所以从数据里消失又回来的父行算“新出现”、会被重新展开,两仓都不记住它曾被折叠。
|
|
138
|
+
* `changed` 只回答“展开集合要不要加新 key”:调用方每轮都要把 `nextParentKeys` 记回去,
|
|
139
|
+
* 但不能无条件写回展开状态,否则 `data` 每轮都是新数组,渲染期同步状态会直接死循环。
|
|
140
|
+
*/
|
|
141
|
+
var mergeExpandAllRows = (knownParentKeys, nextParentKeys, expandedKeys) => {
|
|
142
|
+
const keys = new Set(expandedKeys);
|
|
143
|
+
let changed = false;
|
|
144
|
+
nextParentKeys.forEach((key) => {
|
|
145
|
+
if (knownParentKeys.has(key) || keys.has(key)) return;
|
|
146
|
+
keys.add(key);
|
|
147
|
+
changed = true;
|
|
148
|
+
});
|
|
149
|
+
return {
|
|
150
|
+
keys,
|
|
151
|
+
changed
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* 单元格省略号配置的归一:列上写了 `ellipsis` 就以列为准,没写才跟着表格级的 `ellipsis` 走,
|
|
156
|
+
* 所以表格级全开时某一列还能用 `ellipsis: false` 单独关掉。`true` 是单行,数字是行数,
|
|
157
|
+
* 对象可以另给 `rows` 与 `tooltip`。返回 `null` 表示这一列不截断。
|
|
158
|
+
* `tooltip` 在这里只当不透明值传下去,节点类型由各自的框架决定,因此两仓的
|
|
159
|
+
* `components/table/utils.ts` 里这一段是逐字节相同的副本,改一边必须同步另一边。
|
|
160
|
+
*/
|
|
161
|
+
var resolveCellEllipsis = (columnValue, tableValue) => {
|
|
162
|
+
const value = columnValue === void 0 ? tableValue : columnValue;
|
|
163
|
+
if (value === void 0 || value === false) return null;
|
|
164
|
+
const options = typeof value === "object" ? value : {};
|
|
165
|
+
return {
|
|
166
|
+
rows: Math.max(1, Math.floor(typeof value === "number" ? value : options.rows ?? 1)),
|
|
167
|
+
tooltip: options.tooltip
|
|
168
|
+
};
|
|
169
|
+
};
|
|
33
170
|
//#endregion
|
|
34
|
-
export { countColumnLeaves, flattenColumns, flattenTreeData, getRecordValue, getTreeChildren };
|
|
171
|
+
export { compareSortValues, countColumnLeaves, flattenColumns, flattenTreeData, getRecordValue, getSyntheticRowKey, getTreeChildren, inheritColumnFixed, mergeExpandAllRows, resolveCellEllipsis, resolveRowKey };
|
package/es/tabs/tab-panel.js
CHANGED
package/es/tabs/tabs.js
CHANGED
package/es/tag/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.1
|
|
2
|
+
* react-kui v3.2.1
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
@@ -7,20 +7,27 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { Transition } from "../base/transition.js";
|
|
10
|
-
import { useConfigAppearance } from "../config/use-config-appearance.js";
|
|
10
|
+
import { resolvePaintedTheme, useConfigAppearance } from "../config/use-config-appearance.js";
|
|
11
11
|
import { X } from "../node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js";
|
|
12
12
|
import Icon from "../icon/index.js";
|
|
13
|
-
import { colors } from "../const/var.js";
|
|
14
13
|
import { isColor } from "../utils/color.js";
|
|
14
|
+
import { colors } from "../const/var.js";
|
|
15
15
|
import clsx from "clsx";
|
|
16
16
|
import { useRef, useState } from "react";
|
|
17
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
18
|
//#region components/tag/index.tsx
|
|
19
|
+
var PAINTED_THEMES = [
|
|
20
|
+
"fill",
|
|
21
|
+
"outline",
|
|
22
|
+
"plain",
|
|
23
|
+
"solid",
|
|
24
|
+
"dashed"
|
|
25
|
+
];
|
|
19
26
|
var Tag = ({ closeable = false, compact = false, color, shape: shapeProp, icon, size: sizeProp, theme: themeProp, onClose, onAfterClose, children, className = "", style, ...rest }) => {
|
|
20
27
|
const inheritedAppearance = useConfigAppearance();
|
|
21
28
|
const shape = shapeProp ?? inheritedAppearance.shape;
|
|
22
29
|
const size = sizeProp ?? inheritedAppearance.size ?? "small";
|
|
23
|
-
const theme = themeProp ?? inheritedAppearance.theme ?? "fill";
|
|
30
|
+
const theme = resolvePaintedTheme(themeProp ?? inheritedAppearance.theme, PAINTED_THEMES) ?? "fill";
|
|
24
31
|
const [visible, setVisible] = useState(true);
|
|
25
32
|
const closing = useRef(false);
|
|
26
33
|
const closeHandler = (e) => {
|
|
@@ -41,7 +48,7 @@ var Tag = ({ closeable = false, compact = false, color, shape: shapeProp, icon,
|
|
|
41
48
|
"k-tag-has-color": isCustomColor,
|
|
42
49
|
"k-tag-closeable": closeable,
|
|
43
50
|
"k-tag-compact": compact,
|
|
44
|
-
[`k-tag-${theme}`]:
|
|
51
|
+
[`k-tag-${theme}`]: true
|
|
45
52
|
}, className);
|
|
46
53
|
const tagStyle = {
|
|
47
54
|
backgroundColor: isCustomColor ? color : void 0,
|
package/es/time-line/timeline.js
CHANGED
package/es/tooltip/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.1
|
|
2
|
+
* react-kui v3.2.1
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import Popup from "../popup/index.js";
|
|
10
|
-
import { colors } from "../const/var.js";
|
|
11
10
|
import { isColor } from "../utils/color.js";
|
|
11
|
+
import { colors } from "../const/var.js";
|
|
12
12
|
import { c } from "react/compiler-runtime";
|
|
13
13
|
import "react";
|
|
14
|
-
import { jsx } from "react/jsx-runtime";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
15
|
//#region components/tooltip/index.tsx
|
|
16
16
|
function TooltipPanel(props) {
|
|
17
17
|
const $ = c(2);
|
|
@@ -27,98 +27,117 @@ function TooltipPanel(props) {
|
|
|
27
27
|
return t0;
|
|
28
28
|
}
|
|
29
29
|
var Tooltip = (t0) => {
|
|
30
|
-
const $ = c(
|
|
31
|
-
const { trigger: t1, open, show, title, color, disabled: t2, width, placement: t3,
|
|
30
|
+
const $ = c(39);
|
|
31
|
+
const { trigger: t1, open, show, title, color, disabled: t2, width, placement: t3, destroyOnClose: t4, panelOnly: t5, onOpenChange, onShowChange, children } = t0;
|
|
32
32
|
const trigger = t1 === void 0 ? "hover" : t1;
|
|
33
33
|
const disabled = t2 === void 0 ? false : t2;
|
|
34
34
|
const placement = t3 === void 0 ? "top" : t3;
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const t5 = disabled ? false : open ?? show;
|
|
35
|
+
const destroyOnClose = t4 === void 0 ? true : t4;
|
|
36
|
+
const panelOnly = t5 === void 0 ? false : t5;
|
|
38
37
|
let t6;
|
|
39
38
|
if ($[0] !== color) {
|
|
40
|
-
t6 =
|
|
39
|
+
t6 = colors.some((preset) => preset === color);
|
|
41
40
|
$[0] = color;
|
|
42
41
|
$[1] = t6;
|
|
43
42
|
} else t6 = $[1];
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
$[2] = color;
|
|
48
|
-
$[3] = t7;
|
|
49
|
-
} else t7 = $[3];
|
|
43
|
+
const isPresetColor = t6;
|
|
44
|
+
const bgColor = isColor(color) ? isPresetColor ? `var(--kui-color-${color})` : color : void 0;
|
|
45
|
+
const t7 = disabled ? false : open ?? show;
|
|
50
46
|
let t8;
|
|
51
|
-
if ($[
|
|
52
|
-
t8 =
|
|
47
|
+
if ($[2] !== color || $[3] !== isPresetColor) {
|
|
48
|
+
t8 = isPresetColor && !isColor(color) && `k-tooltip-${color}`;
|
|
49
|
+
$[2] = color;
|
|
50
|
+
$[3] = isPresetColor;
|
|
51
|
+
$[4] = t8;
|
|
52
|
+
} else t8 = $[4];
|
|
53
|
+
let t9;
|
|
54
|
+
if ($[5] !== color) {
|
|
55
|
+
t9 = isColor(color) && "k-tooltip-has-color";
|
|
56
|
+
$[5] = color;
|
|
57
|
+
$[6] = t9;
|
|
58
|
+
} else t9 = $[6];
|
|
59
|
+
let t10;
|
|
60
|
+
if ($[7] !== t8 || $[8] !== t9) {
|
|
61
|
+
t10 = [
|
|
53
62
|
"k-tooltip-has-arrow",
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
t8,
|
|
64
|
+
t9
|
|
56
65
|
].filter(Boolean);
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
} else
|
|
61
|
-
const
|
|
62
|
-
let t10;
|
|
63
|
-
if ($[7] !== width) {
|
|
64
|
-
t10 = { width };
|
|
65
|
-
$[7] = width;
|
|
66
|
-
$[8] = t10;
|
|
67
|
-
} else t10 = $[8];
|
|
68
|
-
let t11;
|
|
69
|
-
if ($[9] !== bgColor) {
|
|
70
|
-
t11 = { backgroundColor: bgColor };
|
|
71
|
-
$[9] = bgColor;
|
|
72
|
-
$[10] = t11;
|
|
73
|
-
} else t11 = $[10];
|
|
66
|
+
$[7] = t8;
|
|
67
|
+
$[8] = t9;
|
|
68
|
+
$[9] = t10;
|
|
69
|
+
} else t10 = $[9];
|
|
70
|
+
const t11 = t10.join(" ");
|
|
74
71
|
let t12;
|
|
75
|
-
if ($[
|
|
76
|
-
t12 =
|
|
72
|
+
if ($[10] !== width) {
|
|
73
|
+
t12 = { width };
|
|
74
|
+
$[10] = width;
|
|
75
|
+
$[11] = t12;
|
|
76
|
+
} else t12 = $[11];
|
|
77
|
+
let t13;
|
|
78
|
+
if ($[12] !== bgColor) {
|
|
79
|
+
t13 = { backgroundColor: bgColor };
|
|
80
|
+
$[12] = bgColor;
|
|
81
|
+
$[13] = t13;
|
|
82
|
+
} else t13 = $[13];
|
|
83
|
+
let t14;
|
|
84
|
+
if ($[14] !== onOpenChange || $[15] !== onShowChange) {
|
|
85
|
+
t14 = (next) => {
|
|
77
86
|
onOpenChange?.(next);
|
|
78
87
|
onShowChange?.(next);
|
|
79
88
|
};
|
|
80
|
-
$[
|
|
81
|
-
$[
|
|
82
|
-
$[
|
|
83
|
-
} else
|
|
84
|
-
let
|
|
85
|
-
if ($[
|
|
86
|
-
|
|
89
|
+
$[14] = onOpenChange;
|
|
90
|
+
$[15] = onShowChange;
|
|
91
|
+
$[16] = t14;
|
|
92
|
+
} else t14 = $[16];
|
|
93
|
+
let t15;
|
|
94
|
+
if ($[17] !== title) {
|
|
95
|
+
t15 = /* @__PURE__ */ jsx("div", {
|
|
87
96
|
className: "k-tooltip-title",
|
|
88
97
|
children: title
|
|
89
98
|
});
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
92
|
-
} else
|
|
93
|
-
const
|
|
94
|
-
let t15;
|
|
95
|
-
if ($[16] !== t14) {
|
|
96
|
-
t15 = { fill: t14 };
|
|
97
|
-
$[16] = t14;
|
|
98
|
-
$[17] = t15;
|
|
99
|
-
} else t15 = $[17];
|
|
100
|
-
let t16;
|
|
101
|
-
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
102
|
-
t16 = /* @__PURE__ */ jsx("path", { d: "M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z" });
|
|
103
|
-
$[18] = t16;
|
|
104
|
-
} else t16 = $[18];
|
|
99
|
+
$[17] = title;
|
|
100
|
+
$[18] = t15;
|
|
101
|
+
} else t15 = $[18];
|
|
102
|
+
const t16 = bgColor || "currentcolor";
|
|
105
103
|
let t17;
|
|
106
|
-
if ($[19] !==
|
|
107
|
-
t17 =
|
|
104
|
+
if ($[19] !== t16) {
|
|
105
|
+
t17 = { fill: t16 };
|
|
106
|
+
$[19] = t16;
|
|
107
|
+
$[20] = t17;
|
|
108
|
+
} else t17 = $[20];
|
|
109
|
+
let t18;
|
|
110
|
+
let t19;
|
|
111
|
+
if ($[21] === Symbol.for("react.memo_cache_sentinel")) {
|
|
112
|
+
t18 = /* @__PURE__ */ jsx("path", { d: "M24 0V1C20 1 18.5 2 16.5 4C14.5 6 14 7 12 7C10 7 9.5 6 7.5 4C5.5 2 4 1 0 1V0H24Z" });
|
|
113
|
+
t19 = /* @__PURE__ */ jsx("path", {
|
|
114
|
+
id: "ot",
|
|
115
|
+
fill: "none",
|
|
116
|
+
d: "M24 1.5C20 1.5 18.5 2.5 16.5 4.5C14.5 6.5 14 7.5 12 7.5C10 7.5 9.5 6.5 7.5 4.5C5.5 2.5 4 1.5 0 1.5"
|
|
117
|
+
});
|
|
118
|
+
$[21] = t18;
|
|
119
|
+
$[22] = t19;
|
|
120
|
+
} else {
|
|
121
|
+
t18 = $[21];
|
|
122
|
+
t19 = $[22];
|
|
123
|
+
}
|
|
124
|
+
let t20;
|
|
125
|
+
if ($[23] !== t17) {
|
|
126
|
+
t20 = /* @__PURE__ */ jsx("div", {
|
|
108
127
|
className: "k-tooltip-arrow",
|
|
109
|
-
children: /* @__PURE__ */
|
|
110
|
-
style:
|
|
128
|
+
children: /* @__PURE__ */ jsxs("svg", {
|
|
129
|
+
style: t17,
|
|
111
130
|
viewBox: "0 0 24 7",
|
|
112
|
-
children:
|
|
131
|
+
children: [t18, t19]
|
|
113
132
|
})
|
|
114
133
|
});
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
} else
|
|
118
|
-
let
|
|
119
|
-
if ($[
|
|
120
|
-
|
|
121
|
-
open:
|
|
134
|
+
$[23] = t17;
|
|
135
|
+
$[24] = t20;
|
|
136
|
+
} else t20 = $[24];
|
|
137
|
+
let t21;
|
|
138
|
+
if ($[25] !== children || $[26] !== destroyOnClose || $[27] !== disabled || $[28] !== panelOnly || $[29] !== placement || $[30] !== t11 || $[31] !== t12 || $[32] !== t13 || $[33] !== t14 || $[34] !== t15 || $[35] !== t20 || $[36] !== t7 || $[37] !== trigger) {
|
|
139
|
+
t21 = /* @__PURE__ */ jsx(Popup, {
|
|
140
|
+
open: t7,
|
|
122
141
|
disabled,
|
|
123
142
|
trigger,
|
|
124
143
|
openDelay: 1,
|
|
@@ -126,32 +145,33 @@ var Tooltip = (t0) => {
|
|
|
126
145
|
panelOnly,
|
|
127
146
|
prefixCls: "k-tooltip",
|
|
128
147
|
arrow: true,
|
|
129
|
-
destroyOnClose
|
|
148
|
+
destroyOnClose,
|
|
130
149
|
hideWhenDetached: true,
|
|
131
150
|
closeOnOutsideClick: false,
|
|
132
|
-
className:
|
|
133
|
-
style:
|
|
134
|
-
contentStyle:
|
|
135
|
-
onOpenChange:
|
|
136
|
-
overlay:
|
|
137
|
-
arrowContent:
|
|
151
|
+
className: t11,
|
|
152
|
+
style: t12,
|
|
153
|
+
contentStyle: t13,
|
|
154
|
+
onOpenChange: t14,
|
|
155
|
+
overlay: t15,
|
|
156
|
+
arrowContent: t20,
|
|
138
157
|
children
|
|
139
158
|
});
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
$[
|
|
144
|
-
$[
|
|
145
|
-
$[
|
|
146
|
-
$[
|
|
147
|
-
$[
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
|
|
154
|
-
|
|
159
|
+
$[25] = children;
|
|
160
|
+
$[26] = destroyOnClose;
|
|
161
|
+
$[27] = disabled;
|
|
162
|
+
$[28] = panelOnly;
|
|
163
|
+
$[29] = placement;
|
|
164
|
+
$[30] = t11;
|
|
165
|
+
$[31] = t12;
|
|
166
|
+
$[32] = t13;
|
|
167
|
+
$[33] = t14;
|
|
168
|
+
$[34] = t15;
|
|
169
|
+
$[35] = t20;
|
|
170
|
+
$[36] = t7;
|
|
171
|
+
$[37] = trigger;
|
|
172
|
+
$[38] = t21;
|
|
173
|
+
} else t21 = $[38];
|
|
174
|
+
return t21;
|
|
155
175
|
};
|
|
156
176
|
//#endregion
|
|
157
177
|
export { TooltipPanel, Tooltip as default };
|
package/es/tour/index.js
CHANGED