react-kui 3.2.1 → 3.3.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/ai/kui-components.json +819 -162
- package/es/_virtual/_rolldown/runtime.js +2 -3
- package/es/affix/index.js +73 -185
- package/es/alert/index.js +3 -4
- package/es/anchor/anchor-context.js +2 -3
- package/es/anchor/anchor-link.js +3 -4
- package/es/anchor/anchor.js +195 -398
- package/es/auto-complete/index.js +160 -561
- package/es/avatar/avatar-group-context.js +2 -3
- package/es/avatar/avatar-group.js +32 -124
- package/es/avatar/avatar.js +58 -159
- package/es/back-top/index.js +66 -201
- package/es/badge/index.js +4 -5
- package/es/base/teleport.js +22 -54
- package/es/base/transition-props.js +2 -3
- package/es/base/transition.js +2 -3
- package/es/breadcrumb/breadcrumb-context.js +2 -3
- package/es/breadcrumb/breadcrumb-item.js +19 -102
- package/es/breadcrumb/breadcrumb.js +10 -59
- package/es/button/button-group-context.js +2 -3
- package/es/button/button-group.js +15 -75
- package/es/button/button.js +4 -5
- package/es/calendar/index.js +4 -5
- package/es/card/index.js +4 -5
- package/es/carousel/carousel-context.js +2 -3
- package/es/carousel/carousel-item.js +3 -4
- package/es/carousel/carousel.js +281 -628
- package/es/carousel/drag.js +2 -3
- package/es/cascader/index.js +7 -8
- package/es/check-card/check-card-group.js +53 -179
- package/es/check-card/check-card.js +100 -293
- package/es/check-card/context.js +2 -3
- package/es/checkbox/checkbox-group-context.js +2 -3
- package/es/checkbox/checkbox-group.js +34 -138
- package/es/checkbox/checkbox.js +4 -5
- package/es/checkbox/index.js +2 -3
- package/es/collapse/collapse-panel.js +84 -206
- package/es/collapse/collapse.js +38 -170
- package/es/color-picker/alpha.js +44 -125
- package/es/color-picker/hue.js +39 -108
- package/es/color-picker/index.js +7 -6
- package/es/color-picker/mode.js +76 -159
- package/es/color-picker/paint.js +66 -163
- package/es/color-picker/presets.js +12 -44
- package/es/components.js +37 -32
- package/es/config/config-context.js +2 -3
- package/es/config/context.js +2 -3
- package/es/config/index.js +3 -4
- package/es/config/popup-host.js +3 -4
- package/es/config/size-context.js +2 -3
- package/es/config/use-config-appearance.js +3 -4
- package/es/const/var.js +2 -3
- package/es/date-picker/index.js +8 -9
- package/es/descriptions/descriptions-item.js +3 -4
- package/es/descriptions/descriptions.js +53 -144
- package/es/divider/index.js +2 -3
- package/es/drawer/index.js +171 -465
- package/es/dropdown/dropdown-button.js +25 -128
- package/es/dropdown/dropdown-context.js +2 -3
- package/es/dropdown/dropdown.js +56 -207
- package/es/dropdown/trigger.js +37 -125
- package/es/empty/index.js +34 -111
- package/es/feature-card/index.js +2 -3
- package/es/feedback-panel/index.js +30 -155
- package/es/flame-wrap/index.js +3 -4
- package/es/flame-wrap/types.js +2 -3
- package/es/flex/index.js +2 -3
- package/es/form/field-context.js +3 -4
- package/es/form/form-context.js +2 -3
- package/es/form/form-item.js +4 -5
- package/es/form/form.js +108 -279
- package/es/form/utils.js +2 -3
- package/es/gradient-picker/corners.js +55 -0
- package/es/gradient-picker/index.js +191 -0
- package/es/gradient-picker/stops.js +219 -0
- package/es/gradient-picker/types.js +147 -0
- package/es/grid/grid-item.js +25 -116
- package/es/grid/grid.js +40 -151
- package/es/grid/useBreakpoint.js +3 -4
- package/es/icon/index.js +24 -126
- package/es/image/group.js +3 -4
- package/es/image/image-group-context.js +2 -3
- package/es/image/image.js +5 -6
- package/es/image/instance.js +2 -3
- package/es/image/preview.js +4 -5
- package/es/image/utils.js +2 -3
- package/es/index.js +5 -4
- package/es/input/index.js +2 -3
- package/es/input/input-base.js +4 -5
- package/es/input/input-box.js +2 -3
- package/es/input/input-group.js +4 -5
- package/es/input/input.js +3 -4
- package/es/input/textarea.js +3 -4
- package/es/input-number/drag.js +63 -0
- package/es/input-number/index.js +41 -11
- package/es/input-otp/index.js +3 -4
- package/es/input-tag/index.js +5 -6
- package/es/kanban/index.js +31 -168
- package/es/layout/index.js +43 -215
- package/es/layout/layout-context.js +2 -3
- package/es/list-panel/index.js +47 -185
- package/es/loading/index.js +2 -3
- package/es/loading/loading-bar.js +54 -114
- package/es/locale/de.js +2 -3
- package/es/locale/el.js +2 -3
- package/es/locale/en.js +2 -3
- package/es/locale/fr.js +2 -3
- package/es/locale/it.js +2 -3
- package/es/locale/ja.js +2 -3
- package/es/locale/ko.js +2 -3
- package/es/locale/ru.js +2 -3
- package/es/locale/th.js +2 -3
- package/es/locale/uk.js +2 -3
- package/es/locale/vi.js +2 -3
- package/es/locale/zh-CN.js +2 -3
- package/es/locale/zh-TW.js +2 -3
- package/es/mentions/index.js +214 -581
- package/es/menu/menu-context.js +2 -3
- package/es/menu/menu-divider.js +3 -4
- package/es/menu/menu-group.js +3 -4
- package/es/menu/menu-item.js +2 -3
- package/es/menu/menu-keyboard.js +2 -3
- package/es/menu/menu.js +184 -442
- package/es/menu/recursive-menu.js +3 -4
- package/es/menu/sub-menu.js +5 -6
- package/es/message/index.js +2 -3
- package/es/modal/api.js +2 -3
- package/es/modal/modal.js +263 -599
- package/es/modal/toast.js +63 -179
- package/es/node_modules/.pnpm/kui-icons@5.0.0/node_modules/kui-icons/dist/kui-icons.esm.js +2 -3
- package/es/notice/container.js +2 -3
- package/es/notice/content.js +4 -5
- package/es/notice/index.js +2 -3
- package/es/notice/instance.js +2 -3
- package/es/page/index.js +4 -5
- package/es/page/responsive.js +2 -3
- package/es/page-header/index.js +3 -4
- package/es/popconfirm/index.js +24 -70
- package/es/poptip/index.js +29 -88
- package/es/popup/index.js +8 -6
- package/es/popup/layers.js +2 -3
- package/es/progress/index.js +95 -229
- package/es/qrcode/index.js +3 -4
- package/es/radio/radio-button.js +37 -131
- package/es/radio/radio-group-context.js +2 -3
- package/es/radio/radio-group.js +69 -223
- package/es/radio/radio.js +3 -4
- package/es/rate/index.js +68 -226
- package/es/rate/star.js +38 -129
- package/es/result/index.js +35 -127
- package/es/ripple/index.js +3 -4
- package/es/ripple/types.js +2 -3
- package/es/row-col/col.js +59 -149
- package/es/row-col/row.js +2 -3
- package/es/segmented/index.js +66 -210
- package/es/select/option.js +23 -116
- package/es/select/select.js +9 -10
- package/es/skeleton/skeleton-avatar.js +2 -3
- package/es/skeleton/skeleton-button.js +2 -3
- package/es/skeleton/skeleton-image.js +28 -108
- package/es/skeleton/skeleton-text.js +17 -93
- package/es/skeleton/skeleton.js +46 -133
- package/es/skeleton/use-skeleton-loading.js +3 -4
- package/es/slider/index.js +92 -286
- package/es/slider/thumb.js +43 -133
- package/es/space/index.js +3 -4
- package/es/spin/index.js +2 -3
- package/es/splitter/splitter-panel.js +3 -4
- package/es/splitter/splitter.js +77 -219
- package/es/stat-card/countup.js +46 -141
- package/es/stat-card/rollup.js +27 -105
- package/es/stat-card/stat-card.js +3 -4
- package/es/stat-card/stat-number.js +26 -113
- package/es/stat-card/utils/countup.js +2 -3
- package/es/stat-card/utils/odometer.js +2 -3
- package/es/stat-card/utils/stat-item-key.js +2 -3
- package/es/steps/index.js +45 -123
- package/es/switch/index.js +4 -5
- package/es/table/column-setting.js +43 -139
- package/es/table/index.js +8 -9
- package/es/table/utils.js +2 -3
- package/es/tabs/tab-panel.js +19 -71
- package/es/tabs/tabs.js +6 -7
- package/es/tag/index.js +4 -5
- package/es/time-line/timeline-item.js +3 -4
- package/es/time-line/timeline.js +8 -44
- package/es/tooltip/index.js +41 -142
- package/es/tour/index.js +138 -356
- package/es/transfer/index.js +184 -487
- package/es/tree/index.js +8 -9
- package/es/tree/utils.js +2 -3
- package/es/tree-select/index.js +8 -9
- package/es/typography/index.js +75 -306
- package/es/upload/file-list.js +95 -119
- package/es/upload/index.js +8 -9
- package/es/upload/picture-sort.js +2 -3
- package/es/upload/selector.js +63 -193
- package/es/utils/checked.js +2 -3
- package/es/utils/color.js +2 -3
- package/es/utils/css.js +2 -3
- package/es/utils/focus.js +2 -3
- package/es/utils/number.js +2 -3
- package/es/utils/overlay-order.js +2 -3
- package/es/utils/overlay-stack.js +3 -4
- package/es/utils/placement.js +16 -4
- package/es/utils/popup-arrow.js +45 -0
- package/es/utils/popup.js +2 -3
- package/es/utils/promise.js +2 -3
- package/es/utils/react-node.js +2 -3
- package/es/utils/selection-tags.js +2 -3
- package/es/utils/share.js +2 -3
- package/es/utils/theme.js +2 -3
- package/es/utils/transition.js +2 -3
- package/es/utils/use-value.js +3 -4
- package/es/virtual-list/index.js +49 -187
- package/es/virtual-list/range.js +2 -3
- package/es/watermark/index.js +149 -289
- package/lib/index.cjs +2 -2
- package/lib/locale/de.cjs +1 -1
- package/lib/locale/el.cjs +1 -1
- package/lib/locale/en.cjs +1 -1
- package/lib/locale/fr.cjs +1 -1
- package/lib/locale/it.cjs +1 -1
- package/lib/locale/ja.cjs +1 -1
- package/lib/locale/ko.cjs +1 -1
- package/lib/locale/ru.cjs +1 -1
- package/lib/locale/th.cjs +1 -1
- package/lib/locale/uk.cjs +1 -1
- package/lib/locale/vi.cjs +1 -1
- package/lib/locale/zh-CN.cjs +1 -1
- package/lib/locale/zh-TW.cjs +1 -1
- package/package.json +24 -24
- package/style/base.css +1 -1
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/theme.css +1 -1
- package/types/affix/index.d.cts +1 -1
- package/types/affix/index.d.ts +1 -1
- package/types/anchor/anchor-link.d.cts +1 -1
- package/types/anchor/anchor-link.d.ts +1 -1
- package/types/anchor/anchor.d.cts +1 -1
- package/types/anchor/anchor.d.ts +1 -1
- package/types/back-top/index.d.cts +1 -1
- package/types/back-top/index.d.ts +1 -1
- package/types/carousel/carousel-item.d.cts +1 -1
- package/types/carousel/carousel-item.d.ts +1 -1
- package/types/cascader/index.d.cts +1 -1
- package/types/cascader/index.d.ts +1 -1
- package/types/color-picker/alpha.d.cts +1 -1
- package/types/color-picker/alpha.d.ts +1 -1
- package/types/color-picker/hue.d.cts +1 -1
- package/types/color-picker/hue.d.ts +1 -1
- package/types/color-picker/index.d.cts +3 -2
- package/types/color-picker/index.d.ts +3 -2
- package/types/color-picker/mode.d.cts +1 -1
- package/types/color-picker/mode.d.ts +1 -1
- package/types/color-picker/paint.d.cts +1 -1
- package/types/color-picker/paint.d.ts +1 -1
- package/types/color-picker/presets.d.cts +1 -1
- package/types/color-picker/presets.d.ts +1 -1
- package/types/components.d.cts +3 -0
- package/types/components.d.ts +3 -0
- package/types/date-picker/index.d.cts +2 -2
- package/types/date-picker/index.d.ts +2 -2
- package/types/feature-card/index.d.cts +1 -1
- package/types/feature-card/index.d.ts +1 -1
- package/types/feedback-panel/index.d.cts +1 -1
- package/types/feedback-panel/index.d.ts +1 -1
- package/types/flame-wrap/index.d.cts +1 -1
- package/types/flame-wrap/index.d.ts +1 -1
- package/types/form/form-item.d.cts +1 -1
- package/types/form/form-item.d.ts +1 -1
- package/types/gradient-picker/corners.d.cts +8 -0
- package/types/gradient-picker/corners.d.ts +8 -0
- package/types/gradient-picker/index.d.cts +25 -0
- package/types/gradient-picker/index.d.ts +25 -0
- package/types/gradient-picker/stops.d.cts +12 -0
- package/types/gradient-picker/stops.d.ts +12 -0
- package/types/gradient-picker/types.d.cts +34 -0
- package/types/gradient-picker/types.d.ts +34 -0
- package/types/grid/grid-item.d.cts +1 -1
- package/types/grid/grid-item.d.ts +1 -1
- package/types/grid/grid.d.cts +1 -1
- package/types/grid/grid.d.ts +1 -1
- package/types/image/group.d.cts +1 -1
- package/types/image/group.d.ts +1 -1
- package/types/input-number/drag.d.cts +9 -0
- package/types/input-number/drag.d.ts +9 -0
- package/types/input-number/index.d.cts +1 -0
- package/types/input-number/index.d.ts +1 -0
- package/types/kanban/index.d.cts +1 -1
- package/types/kanban/index.d.ts +1 -1
- package/types/list-panel/index.d.cts +1 -1
- package/types/list-panel/index.d.ts +1 -1
- package/types/loading/loading-bar.d.cts +1 -1
- package/types/loading/loading-bar.d.ts +1 -1
- package/types/modal/toast.d.cts +1 -1
- package/types/modal/toast.d.ts +1 -1
- package/types/notice/content.d.cts +2 -2
- package/types/notice/content.d.ts +2 -2
- package/types/page-header/index.d.cts +1 -1
- package/types/page-header/index.d.ts +1 -1
- package/types/popconfirm/index.d.cts +1 -0
- package/types/popconfirm/index.d.ts +1 -0
- package/types/poptip/index.d.cts +1 -0
- package/types/poptip/index.d.ts +1 -0
- package/types/popup/index.d.cts +1 -0
- package/types/popup/index.d.ts +1 -0
- package/types/result/index.d.cts +1 -1
- package/types/result/index.d.ts +1 -1
- package/types/ripple/index.d.cts +1 -1
- package/types/ripple/index.d.ts +1 -1
- package/types/slider/index.d.cts +1 -1
- package/types/slider/index.d.ts +1 -1
- package/types/splitter/splitter-panel.d.cts +1 -1
- package/types/splitter/splitter-panel.d.ts +1 -1
- package/types/splitter/splitter.d.cts +1 -1
- package/types/splitter/splitter.d.ts +1 -1
- package/types/stat-card/countup.d.cts +1 -1
- package/types/stat-card/countup.d.ts +1 -1
- package/types/stat-card/rollup.d.cts +1 -1
- package/types/stat-card/rollup.d.ts +1 -1
- package/types/stat-card/stat-card.d.cts +1 -1
- package/types/stat-card/stat-card.d.ts +1 -1
- package/types/stat-card/stat-number.d.cts +1 -1
- package/types/stat-card/stat-number.d.ts +1 -1
- package/types/table/column-setting.d.cts +1 -1
- package/types/table/column-setting.d.ts +1 -1
- package/types/table/index.d.cts +1 -1
- package/types/table/index.d.ts +1 -1
- package/types/time-line/timeline-item.d.cts +1 -1
- package/types/time-line/timeline-item.d.ts +1 -1
- package/types/time-line/timeline.d.cts +1 -1
- package/types/time-line/timeline.d.ts +1 -1
- package/types/tooltip/index.d.cts +1 -0
- package/types/tooltip/index.d.ts +1 -0
- package/types/transfer/index.d.cts +1 -1
- package/types/transfer/index.d.ts +1 -1
- package/types/tree-select/index.d.cts +1 -1
- package/types/tree-select/index.d.ts +1 -1
- package/types/upload/file-list.d.cts +1 -1
- package/types/upload/file-list.d.ts +1 -1
- package/types/upload/selector.d.cts +1 -1
- package/types/upload/selector.d.ts +1 -1
- package/types/utils/placement.d.cts +2 -1
- package/types/utils/placement.d.ts +2 -1
- package/types/utils/popup-arrow.d.cts +5 -0
- package/types/utils/popup-arrow.d.ts +5 -0
- package/types/utils/selection-tags.d.cts +1 -1
- package/types/utils/selection-tags.d.ts +1 -1
- package/types/watermark/index.d.cts +1 -1
- package/types/watermark/index.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.
|
|
2
|
+
* react-kui v3.3.0
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import Icon from "../icon/index.js";
|
|
10
|
-
import { c } from "react/compiler-runtime";
|
|
11
10
|
import clsx from "clsx";
|
|
12
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
-
|
|
12
|
+
import { c } from "react/compiler-runtime";
|
|
13
|
+
// components/time-line/timeline-item.tsx
|
|
14
14
|
function TimeLineItem(t0) {
|
|
15
15
|
const $ = c(35);
|
|
16
16
|
let children;
|
|
@@ -129,5 +129,4 @@ function TimeLineItem(t0) {
|
|
|
129
129
|
} else t9 = $[34];
|
|
130
130
|
return t9;
|
|
131
131
|
}
|
|
132
|
-
//#endregion
|
|
133
132
|
export { TimeLineItem as default };
|
package/es/time-line/timeline.js
CHANGED
|
@@ -1,55 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.
|
|
2
|
+
* react-kui v3.3.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 { c } from "react/compiler-runtime";
|
|
10
9
|
import clsx from "clsx";
|
|
11
10
|
import { jsx } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
|
-
function TimeLine(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if ($[0] !== t0) {
|
|
20
|
-
({mode: t1, className, children, ...rest} = t0);
|
|
21
|
-
$[0] = t0;
|
|
22
|
-
$[1] = children;
|
|
23
|
-
$[2] = className;
|
|
24
|
-
$[3] = rest;
|
|
25
|
-
$[4] = t1;
|
|
26
|
-
} else {
|
|
27
|
-
children = $[1];
|
|
28
|
-
className = $[2];
|
|
29
|
-
rest = $[3];
|
|
30
|
-
t1 = $[4];
|
|
31
|
-
}
|
|
32
|
-
const t2 = `k-time-line-${t1 === void 0 ? "left" : t1}`;
|
|
33
|
-
let t3;
|
|
34
|
-
if ($[5] !== className || $[6] !== t2) {
|
|
35
|
-
t3 = clsx("k-time-line", t2, className);
|
|
36
|
-
$[5] = className;
|
|
37
|
-
$[6] = t2;
|
|
38
|
-
$[7] = t3;
|
|
39
|
-
} else t3 = $[7];
|
|
40
|
-
let t4;
|
|
41
|
-
if ($[8] !== children || $[9] !== rest || $[10] !== t3) {
|
|
42
|
-
t4 = /* @__PURE__ */ jsx("ul", {
|
|
43
|
-
...rest,
|
|
44
|
-
className: t3,
|
|
45
|
-
children
|
|
46
|
-
});
|
|
47
|
-
$[8] = children;
|
|
48
|
-
$[9] = rest;
|
|
49
|
-
$[10] = t3;
|
|
50
|
-
$[11] = t4;
|
|
51
|
-
} else t4 = $[11];
|
|
52
|
-
return t4;
|
|
11
|
+
// components/time-line/timeline.tsx
|
|
12
|
+
function TimeLine({ mode = "left", className, children, ...rest }) {
|
|
13
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
14
|
+
...rest,
|
|
15
|
+
className: clsx("k-time-line", `k-time-line-${mode}`, className),
|
|
16
|
+
children
|
|
17
|
+
});
|
|
53
18
|
}
|
|
54
|
-
//#endregion
|
|
55
19
|
export { TimeLine as default };
|
package/es/tooltip/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* react-kui v3.
|
|
2
|
+
* react-kui v3.3.0
|
|
3
3
|
* Copyright 2017-present, kui-react.
|
|
4
4
|
* All rights reserved.
|
|
5
5
|
* Homepage: https://react.k-ui.cn
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import Popup from "../popup/index.js";
|
|
10
|
-
import { isColor } from "../utils/color.js";
|
|
11
10
|
import { colors } from "../const/var.js";
|
|
12
|
-
import {
|
|
11
|
+
import { isColor } from "../utils/color.js";
|
|
13
12
|
import "react";
|
|
14
13
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
|
|
14
|
+
import { c } from "react/compiler-runtime";
|
|
15
|
+
// components/tooltip/index.tsx
|
|
16
16
|
function TooltipPanel(props) {
|
|
17
17
|
const $ = c(2);
|
|
18
18
|
let t0;
|
|
@@ -26,152 +26,51 @@ function TooltipPanel(props) {
|
|
|
26
26
|
} else t0 = $[1];
|
|
27
27
|
return t0;
|
|
28
28
|
}
|
|
29
|
-
var Tooltip = (
|
|
30
|
-
const
|
|
31
|
-
const { trigger: t1, open, show, title, color, disabled: t2, width, placement: t3, destroyOnClose: t4, panelOnly: t5, onOpenChange, onShowChange, children } = t0;
|
|
32
|
-
const trigger = t1 === void 0 ? "hover" : t1;
|
|
33
|
-
const disabled = t2 === void 0 ? false : t2;
|
|
34
|
-
const placement = t3 === void 0 ? "top" : t3;
|
|
35
|
-
const destroyOnClose = t4 === void 0 ? true : t4;
|
|
36
|
-
const panelOnly = t5 === void 0 ? false : t5;
|
|
37
|
-
let t6;
|
|
38
|
-
if ($[0] !== color) {
|
|
39
|
-
t6 = colors.some((preset) => preset === color);
|
|
40
|
-
$[0] = color;
|
|
41
|
-
$[1] = t6;
|
|
42
|
-
} else t6 = $[1];
|
|
43
|
-
const isPresetColor = t6;
|
|
29
|
+
var Tooltip = ({ trigger = "hover", open, show, title, color, disabled = false, width, placement = "top", arrowPointAtCenter = false, destroyOnClose = true, panelOnly = false, onOpenChange, onShowChange, children }) => {
|
|
30
|
+
const isPresetColor = colors.some((preset) => preset === color);
|
|
44
31
|
const bgColor = isColor(color) ? isPresetColor ? `var(--kui-color-${color})` : color : void 0;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
$[7] = t8;
|
|
67
|
-
$[8] = t9;
|
|
68
|
-
$[9] = t10;
|
|
69
|
-
} else t10 = $[9];
|
|
70
|
-
const t11 = t10.join(" ");
|
|
71
|
-
let 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) => {
|
|
32
|
+
return /* @__PURE__ */ jsx(Popup, {
|
|
33
|
+
open: disabled ? false : open ?? show,
|
|
34
|
+
disabled,
|
|
35
|
+
trigger,
|
|
36
|
+
openDelay: 1,
|
|
37
|
+
placement,
|
|
38
|
+
arrowPointAtCenter,
|
|
39
|
+
panelOnly,
|
|
40
|
+
prefixCls: "k-tooltip",
|
|
41
|
+
arrow: true,
|
|
42
|
+
destroyOnClose,
|
|
43
|
+
hideWhenDetached: true,
|
|
44
|
+
closeOnOutsideClick: false,
|
|
45
|
+
className: [
|
|
46
|
+
`k-tooltip-has-arrow`,
|
|
47
|
+
isPresetColor && !isColor(color) && `k-tooltip-${color}`,
|
|
48
|
+
isColor(color) && "k-tooltip-has-color"
|
|
49
|
+
].filter(Boolean).join(" "),
|
|
50
|
+
style: { width },
|
|
51
|
+
contentStyle: { backgroundColor: bgColor },
|
|
52
|
+
onOpenChange: (next) => {
|
|
86
53
|
onOpenChange?.(next);
|
|
87
54
|
onShowChange?.(next);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
$[15] = onShowChange;
|
|
91
|
-
$[16] = t14;
|
|
92
|
-
} else t14 = $[16];
|
|
93
|
-
let t15;
|
|
94
|
-
if ($[17] !== title) {
|
|
95
|
-
t15 = /* @__PURE__ */ jsx("div", {
|
|
55
|
+
},
|
|
56
|
+
overlay: /* @__PURE__ */ jsx("div", {
|
|
96
57
|
className: "k-tooltip-title",
|
|
97
58
|
children: title
|
|
98
|
-
})
|
|
99
|
-
|
|
100
|
-
$[18] = t15;
|
|
101
|
-
} else t15 = $[18];
|
|
102
|
-
const t16 = bgColor || "currentcolor";
|
|
103
|
-
let 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", {
|
|
59
|
+
}),
|
|
60
|
+
arrowContent: /* @__PURE__ */ jsx("div", {
|
|
127
61
|
className: "k-tooltip-arrow",
|
|
62
|
+
"data-popup-arrow": "",
|
|
128
63
|
children: /* @__PURE__ */ jsxs("svg", {
|
|
129
|
-
style:
|
|
64
|
+
style: { fill: bgColor || "currentcolor" },
|
|
130
65
|
viewBox: "0 0 24 7",
|
|
131
|
-
children: [
|
|
66
|
+
children: [/* @__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" }), /* @__PURE__ */ jsx("path", {
|
|
67
|
+
id: "ot",
|
|
68
|
+
fill: "none",
|
|
69
|
+
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"
|
|
70
|
+
})]
|
|
132
71
|
})
|
|
133
|
-
})
|
|
134
|
-
|
|
135
|
-
|
|
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,
|
|
141
|
-
disabled,
|
|
142
|
-
trigger,
|
|
143
|
-
openDelay: 1,
|
|
144
|
-
placement,
|
|
145
|
-
panelOnly,
|
|
146
|
-
prefixCls: "k-tooltip",
|
|
147
|
-
arrow: true,
|
|
148
|
-
destroyOnClose,
|
|
149
|
-
hideWhenDetached: true,
|
|
150
|
-
closeOnOutsideClick: false,
|
|
151
|
-
className: t11,
|
|
152
|
-
style: t12,
|
|
153
|
-
contentStyle: t13,
|
|
154
|
-
onOpenChange: t14,
|
|
155
|
-
overlay: t15,
|
|
156
|
-
arrowContent: t20,
|
|
157
|
-
children
|
|
158
|
-
});
|
|
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;
|
|
72
|
+
}),
|
|
73
|
+
children
|
|
74
|
+
});
|
|
175
75
|
};
|
|
176
|
-
//#endregion
|
|
177
76
|
export { TooltipPanel, Tooltip as default };
|