@rockshin/tao-ui 0.0.47 → 0.0.49
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/dist/components/affix/affix.js +20 -16
- package/dist/components/alert/alert.js +114 -99
- package/dist/components/app/app-modals.js +134 -96
- package/dist/components/app/app-notices.js +39 -23
- package/dist/components/auto-complete/auto-complete.js +21 -7
- package/dist/components/avatar/avatar.js +31 -11
- package/dist/components/badge/badge.css +1 -1
- package/dist/components/badge/badge.js +72 -257
- package/dist/components/border-beam/border-beam.js +21 -17
- package/dist/components/breadcrumb/breadcrumb.js +178 -159
- package/dist/components/button/button.js +61 -53
- package/dist/components/calendar/calendar.js +6 -4
- package/dist/components/card/card.js +24 -8
- package/dist/components/carousel/carousel.d.ts +1 -1
- package/dist/components/carousel/carousel.js +105 -68
- package/dist/components/cascader/cascader.js +54 -19
- package/dist/components/checkbox/checkbox.css +13 -2
- package/dist/components/checkbox/checkbox.d.ts +2 -0
- package/dist/components/checkbox/checkbox.js +320 -229
- package/dist/components/collapse/collapse-panels.d.ts +1 -1
- package/dist/components/collapse/collapse-panels.js +122 -113
- package/dist/components/collapse/collapse.js +98 -63
- package/dist/components/color-picker/color-picker.js +539 -441
- package/dist/components/color-picker/color.js +1 -1
- package/dist/components/context-menu/context-menu.d.ts +1 -1
- package/dist/components/context-menu/context-menu.js +108 -68
- package/dist/components/date-picker/calendar/calendar-grid.js +42 -39
- package/dist/components/date-picker/calendar/month-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/month-grid.js +79 -37
- package/dist/components/date-picker/calendar/time-panel.d.ts +2 -1
- package/dist/components/date-picker/calendar/time-panel.js +94 -89
- package/dist/components/date-picker/calendar/year-grid.d.ts +8 -1
- package/dist/components/date-picker/calendar/year-grid.js +66 -35
- package/dist/components/date-picker/date-picker.css +24 -1
- package/dist/components/date-picker/date-picker.js +99 -53
- package/dist/components/date-picker/presets.d.ts +2 -1
- package/dist/components/date-picker/presets.js +27 -24
- package/dist/components/date-picker/range-picker.js +308 -153
- package/dist/components/descriptions/descriptions.js +7 -3
- package/dist/components/divider/divider.css +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/drawer/drawer.js +201 -369
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/dropdown/dropdown.js +183 -279
- package/dist/components/empty/empty.js +57 -78
- package/dist/components/float-button/float-button.d.ts +1 -0
- package/dist/components/float-button/float-button.js +47 -30
- package/dist/components/form/field-control.d.ts +4 -2
- package/dist/components/form/field-control.js +17 -9
- package/dist/components/form/form-context.d.ts +8 -2
- package/dist/components/form/form-context.js +2 -1
- package/dist/components/form/form-item.js +85 -63
- package/dist/components/form/form.css +3 -2
- package/dist/components/form/use-form.d.ts +2 -1
- package/dist/components/form/use-form.js +2 -1
- package/dist/components/form-field/form-field-view.d.ts +3 -1
- package/dist/components/form-field/form-field-view.js +194 -141
- package/dist/components/form-section/form-section.d.ts +1 -1
- package/dist/components/form-section/form-section.js +52 -45
- package/dist/components/image/image.js +585 -477
- package/dist/components/input/base-input.js +8 -9
- package/dist/components/input/input-shared.d.ts +5 -2
- package/dist/components/input/input-shared.js +42 -18
- package/dist/components/input/otp.js +236 -217
- package/dist/components/input/password.js +2 -1
- package/dist/components/input/search.js +8 -7
- package/dist/components/list/list-pagination.js +41 -36
- package/dist/components/list/list.js +141 -125
- package/dist/components/listy/listy.js +175 -106
- package/dist/components/masonry/masonry.js +108 -85
- package/dist/components/mentions/mentions.js +12 -3
- package/dist/components/menu/menu-render.d.ts +9 -3
- package/dist/components/menu/menu-render.js +99 -36
- package/dist/components/modal/confirm-dialog.js +10 -4
- package/dist/components/modal/confirm.js +3 -7
- package/dist/components/modal/index.js +9 -3
- package/dist/components/modal/modal.js +390 -365
- package/dist/components/pagination/pagination.js +105 -96
- package/dist/components/popconfirm/popconfirm.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.js +219 -168
- package/dist/components/popover/popover.js +330 -243
- package/dist/components/progress/progress.css +2 -2
- package/dist/components/progress/progress.js +232 -458
- package/dist/components/qr-code/qr-code.js +72 -66
- package/dist/components/radio/radio.css +15 -4
- package/dist/components/radio/radio.d.ts +2 -1
- package/dist/components/radio/radio.js +260 -198
- package/dist/components/rate/rate.js +173 -113
- package/dist/components/scroll-area/scroll-area.js +241 -211
- package/dist/components/segmented/segmented.js +73 -41
- package/dist/components/select/mobile-select.d.ts +2 -1
- package/dist/components/select/mobile-select.js +24 -13
- package/dist/components/select/select-searchable-list.d.ts +2 -1
- package/dist/components/select/select-searchable-list.js +2 -3
- package/dist/components/select/select.js +49 -25
- package/dist/components/select/use-select-selection.d.ts +1 -1
- package/dist/components/select/use-select-selection.js +7 -4
- package/dist/components/skeleton/skeleton.js +56 -48
- package/dist/components/slider/slider.js +87 -212
- package/dist/components/sonner/sonner.js +109 -93
- package/dist/components/spinner/spinner.js +147 -138
- package/dist/components/splitter/splitter.js +222 -159
- package/dist/components/statistic/statistic.js +7 -6
- package/dist/components/steps/steps.js +88 -81
- package/dist/components/steps/use-display-steps.js +1 -1
- package/dist/components/switch/switch.js +89 -89
- package/dist/components/table/table-filter.js +66 -56
- package/dist/components/table/table-icons.d.ts +2 -1
- package/dist/components/table/table-icons.js +11 -9
- package/dist/components/table/table-model.js +1 -1
- package/dist/components/table/table.js +107 -83
- package/dist/components/table/use-table-data.d.ts +6 -3
- package/dist/components/table/use-table-data.js +166 -130
- package/dist/components/tabs/tabs.css +1 -1
- package/dist/components/tabs/tabs.js +236 -179
- package/dist/components/tag/tag.d.ts +2 -2
- package/dist/components/tag/tag.js +111 -108
- package/dist/components/textarea/textarea.js +22 -17
- package/dist/components/time-picker/time-picker.js +5 -3
- package/dist/components/timeline/timeline.css +6 -1
- package/dist/components/timeline/timeline.js +21 -11
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/tooltip/tooltip.js +123 -233
- package/dist/components/tour/tour.css +4 -0
- package/dist/components/tour/tour.js +400 -331
- package/dist/components/transfer/transfer-list.js +29 -11
- package/dist/components/transfer/transfer-parts.js +1 -1
- package/dist/components/transfer/transfer-types.d.ts +1 -0
- package/dist/components/transfer/transfer.js +29 -14
- package/dist/components/tree/tree-keyboard.d.ts +1 -1
- package/dist/components/tree/tree-keyboard.js +5 -3
- package/dist/components/tree/tree.js +74 -59
- package/dist/components/tree-select/select-engine.d.ts +3 -2
- package/dist/components/tree-select/select-engine.js +18 -16
- package/dist/components/tree-select/tree-select.js +21 -5
- package/dist/components/upload/upload.css +8 -0
- package/dist/components/upload/upload.js +160 -72
- package/dist/components/watermark/watermark.js +36 -29
- package/dist/number-input/use-number-input.js +129 -90
- package/dist/number-input/validate.js +32 -5
- package/dist/provider/merge-locale.js +12 -9
- package/dist/provider/tao-provider.d.ts +3 -1
- package/dist/provider/tao-provider.js +123 -86
- package/package.json +1 -1
|
@@ -2,11 +2,11 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { cx } from "../../utils/semantic.js";
|
|
4
4
|
import "./affix.css";
|
|
5
|
-
const getWindow = ()=>window;
|
|
6
5
|
const Affix = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
7
|
-
const { offsetTop, offsetBottom, onChange, target
|
|
6
|
+
const { offsetTop, offsetBottom, onChange, target, prefixCls, rootClassName, className, style, classNames, styles, children, ...rest } = props;
|
|
8
7
|
const holder = useRef(null);
|
|
9
8
|
const content = useRef(null);
|
|
9
|
+
const [scrollTarget, setScrollTarget] = useState(null);
|
|
10
10
|
const [position, setPosition] = useState();
|
|
11
11
|
const affixed = useRef(false);
|
|
12
12
|
const measure = useRef(()=>{});
|
|
@@ -14,18 +14,20 @@ const Affix = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
14
14
|
measure.current = ()=>{
|
|
15
15
|
const node = holder.current;
|
|
16
16
|
const inner = content.current;
|
|
17
|
-
const scrollTarget = target();
|
|
18
17
|
if (!node || !inner) return;
|
|
18
|
+
const view = node.ownerDocument.defaultView ?? window;
|
|
19
|
+
const measuredTarget = target ? target() : view;
|
|
20
|
+
if (measuredTarget !== scrollTarget) setScrollTarget(measuredTarget);
|
|
19
21
|
let next;
|
|
20
|
-
if (
|
|
22
|
+
if (measuredTarget) {
|
|
21
23
|
const rect = node.getBoundingClientRect();
|
|
22
|
-
const bounds =
|
|
24
|
+
const bounds = 'getBoundingClientRect' in measuredTarget ? measuredTarget.getBoundingClientRect() : {
|
|
23
25
|
top: 0,
|
|
24
|
-
bottom:
|
|
25
|
-
}
|
|
26
|
+
bottom: measuredTarget.innerHeight
|
|
27
|
+
};
|
|
26
28
|
const topOffset = offsetTop ?? (void 0 === offsetBottom ? 0 : void 0);
|
|
27
29
|
const top = void 0 !== topOffset && Math.round(rect.top) - topOffset < Math.round(bounds.top) ? bounds.top + topOffset : void 0;
|
|
28
|
-
const bottom = void 0 !== offsetBottom && Math.round(rect.bottom) + offsetBottom > Math.round(bounds.bottom) ?
|
|
30
|
+
const bottom = void 0 !== offsetBottom && Math.round(rect.bottom) + offsetBottom > Math.round(bounds.bottom) ? view.innerHeight - bounds.bottom + offsetBottom : void 0;
|
|
29
31
|
if (void 0 !== top || void 0 !== bottom) next = {
|
|
30
32
|
...void 0 !== top ? {
|
|
31
33
|
top
|
|
@@ -65,7 +67,7 @@ const Affix = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
65
67
|
updatePosition
|
|
66
68
|
]);
|
|
67
69
|
useEffect(()=>{
|
|
68
|
-
const
|
|
70
|
+
const view_0 = holder.current?.ownerDocument.defaultView ?? window;
|
|
69
71
|
const events = [
|
|
70
72
|
'resize',
|
|
71
73
|
'scroll',
|
|
@@ -76,29 +78,31 @@ const Affix = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
76
78
|
'load'
|
|
77
79
|
];
|
|
78
80
|
events.forEach((event)=>{
|
|
79
|
-
|
|
81
|
+
scrollTarget?.addEventListener(event, updatePosition, {
|
|
80
82
|
passive: true
|
|
81
83
|
});
|
|
82
84
|
});
|
|
83
|
-
if (
|
|
85
|
+
if (scrollTarget !== view_0) view_0.addEventListener('resize', updatePosition);
|
|
84
86
|
const observer = new ResizeObserver(updatePosition);
|
|
85
87
|
if (holder.current) observer.observe(holder.current);
|
|
86
88
|
if (content.current) observer.observe(content.current);
|
|
87
|
-
if (
|
|
89
|
+
if (scrollTarget && 'getBoundingClientRect' in scrollTarget) observer.observe(scrollTarget);
|
|
88
90
|
updatePosition();
|
|
89
91
|
return ()=>{
|
|
90
92
|
events.forEach((event_0)=>{
|
|
91
|
-
|
|
93
|
+
scrollTarget?.removeEventListener(event_0, updatePosition);
|
|
92
94
|
});
|
|
93
|
-
|
|
95
|
+
view_0.removeEventListener('resize', updatePosition);
|
|
94
96
|
observer.disconnect();
|
|
95
97
|
updatePosition.cancel();
|
|
96
98
|
};
|
|
97
99
|
}, [
|
|
98
|
-
|
|
100
|
+
scrollTarget,
|
|
99
101
|
updatePosition
|
|
100
102
|
]);
|
|
101
103
|
useLayoutEffect(()=>{
|
|
104
|
+
const nextTarget = target ? target() : holder.current?.ownerDocument.defaultView ?? window;
|
|
105
|
+
if (nextTarget !== scrollTarget) setScrollTarget(nextTarget);
|
|
102
106
|
updatePosition();
|
|
103
107
|
});
|
|
104
108
|
const fixedStyle = position ? {
|
|
@@ -109,7 +113,7 @@ const Affix = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
109
113
|
...rest,
|
|
110
114
|
ref: holder,
|
|
111
115
|
"data-tao-affix": "",
|
|
112
|
-
className: cx(classNames?.root, className),
|
|
116
|
+
className: cx(prefixCls, classNames?.root, rootClassName, className),
|
|
113
117
|
style: {
|
|
114
118
|
...styles?.root,
|
|
115
119
|
...style
|
|
@@ -28,8 +28,11 @@ function CloseIcon() {
|
|
|
28
28
|
} else t0 = $[0];
|
|
29
29
|
return t0;
|
|
30
30
|
}
|
|
31
|
+
function hasContent(content) {
|
|
32
|
+
return null != content && 'boolean' != typeof content;
|
|
33
|
+
}
|
|
31
34
|
function Alert(t0) {
|
|
32
|
-
const $ = c(
|
|
35
|
+
const $ = c(49);
|
|
33
36
|
const { type: t1, title, description, showIcon: t2, icon, closable: t3, onClose, action, className, style, classNames, styles } = t0;
|
|
34
37
|
const type = void 0 === t1 ? "info" : t1;
|
|
35
38
|
const showIcon = void 0 === t2 ? false : t2;
|
|
@@ -39,109 +42,121 @@ function Alert(t0) {
|
|
|
39
42
|
let t4;
|
|
40
43
|
if ($[0] !== onClose) {
|
|
41
44
|
t4 = (e)=>{
|
|
42
|
-
setVisible(false);
|
|
43
45
|
onClose?.(e);
|
|
46
|
+
if (!e.defaultPrevented) setVisible(false);
|
|
44
47
|
};
|
|
45
48
|
$[0] = onClose;
|
|
46
49
|
$[1] = t4;
|
|
47
50
|
} else t4 = $[1];
|
|
48
51
|
const handleClose = t4;
|
|
49
52
|
if (!visible) return null;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
let t5;
|
|
54
|
+
if ($[2] !== description) {
|
|
55
|
+
t5 = hasContent(description);
|
|
56
|
+
$[2] = description;
|
|
57
|
+
$[3] = t5;
|
|
58
|
+
} else t5 = $[3];
|
|
59
|
+
const hasDescription = t5;
|
|
60
|
+
let t6;
|
|
61
|
+
if ($[4] !== icon || $[5] !== showIcon || $[6] !== type) {
|
|
62
|
+
t6 = icon ?? (showIcon ? /*#__PURE__*/ jsx(StatusIcon, {
|
|
63
|
+
type: type
|
|
64
|
+
}) : null);
|
|
65
|
+
$[4] = icon;
|
|
66
|
+
$[5] = showIcon;
|
|
67
|
+
$[6] = type;
|
|
68
|
+
$[7] = t6;
|
|
69
|
+
} else t6 = $[7];
|
|
70
|
+
const resolvedIcon = t6;
|
|
71
|
+
const t7 = hasDescription || void 0;
|
|
72
|
+
const t8 = classNames?.root;
|
|
62
73
|
let t9;
|
|
63
|
-
if ($[
|
|
64
|
-
t9 =
|
|
65
|
-
|
|
74
|
+
if ($[8] !== className || $[9] !== t8) {
|
|
75
|
+
t9 = cx(t8, className);
|
|
76
|
+
$[8] = className;
|
|
77
|
+
$[9] = t8;
|
|
78
|
+
$[10] = t9;
|
|
79
|
+
} else t9 = $[10];
|
|
80
|
+
const t10 = styles?.root;
|
|
81
|
+
let t11;
|
|
82
|
+
if ($[11] !== style || $[12] !== t10) {
|
|
83
|
+
t11 = {
|
|
84
|
+
...t10,
|
|
66
85
|
...style
|
|
67
86
|
};
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
71
|
-
} else
|
|
72
|
-
let
|
|
73
|
-
if ($[
|
|
74
|
-
|
|
87
|
+
$[11] = style;
|
|
88
|
+
$[12] = t10;
|
|
89
|
+
$[13] = t11;
|
|
90
|
+
} else t11 = $[13];
|
|
91
|
+
let t12;
|
|
92
|
+
if ($[14] !== classNames?.icon || $[15] !== resolvedIcon || $[16] !== styles?.icon) {
|
|
93
|
+
t12 = hasContent(resolvedIcon) && /*#__PURE__*/ jsx("span", {
|
|
75
94
|
"data-tao-alert-icon": "",
|
|
76
95
|
className: cx(classNames?.icon),
|
|
77
96
|
style: styles?.icon,
|
|
78
|
-
children:
|
|
79
|
-
type: type
|
|
80
|
-
})
|
|
97
|
+
children: resolvedIcon
|
|
81
98
|
});
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
84
|
-
$[
|
|
85
|
-
$[
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
if ($[14] !== classNames?.title || $[15] !== styles?.title || $[16] !== title) {
|
|
91
|
-
t11 = null != title && /*#__PURE__*/ jsx("div", {
|
|
99
|
+
$[14] = classNames?.icon;
|
|
100
|
+
$[15] = resolvedIcon;
|
|
101
|
+
$[16] = styles?.icon;
|
|
102
|
+
$[17] = t12;
|
|
103
|
+
} else t12 = $[17];
|
|
104
|
+
let t13;
|
|
105
|
+
if ($[18] !== classNames?.title || $[19] !== styles?.title || $[20] !== title) {
|
|
106
|
+
t13 = hasContent(title) && /*#__PURE__*/ jsx("div", {
|
|
92
107
|
"data-tao-alert-title": "",
|
|
93
108
|
className: cx(classNames?.title),
|
|
94
109
|
style: styles?.title,
|
|
95
110
|
children: title
|
|
96
111
|
});
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
} else
|
|
102
|
-
let
|
|
103
|
-
if ($[
|
|
104
|
-
|
|
112
|
+
$[18] = classNames?.title;
|
|
113
|
+
$[19] = styles?.title;
|
|
114
|
+
$[20] = title;
|
|
115
|
+
$[21] = t13;
|
|
116
|
+
} else t13 = $[21];
|
|
117
|
+
let t14;
|
|
118
|
+
if ($[22] !== classNames?.description || $[23] !== description || $[24] !== hasDescription || $[25] !== styles?.description) {
|
|
119
|
+
t14 = hasDescription && /*#__PURE__*/ jsx("div", {
|
|
105
120
|
"data-tao-alert-description": "",
|
|
106
121
|
className: cx(classNames?.description),
|
|
107
122
|
style: styles?.description,
|
|
108
123
|
children: description
|
|
109
124
|
});
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
} else
|
|
116
|
-
let
|
|
117
|
-
if ($[
|
|
118
|
-
|
|
125
|
+
$[22] = classNames?.description;
|
|
126
|
+
$[23] = description;
|
|
127
|
+
$[24] = hasDescription;
|
|
128
|
+
$[25] = styles?.description;
|
|
129
|
+
$[26] = t14;
|
|
130
|
+
} else t14 = $[26];
|
|
131
|
+
let t15;
|
|
132
|
+
if ($[27] !== t13 || $[28] !== t14) {
|
|
133
|
+
t15 = /*#__PURE__*/ jsxs("div", {
|
|
119
134
|
"data-tao-alert-content": "",
|
|
120
135
|
children: [
|
|
121
|
-
|
|
122
|
-
|
|
136
|
+
t13,
|
|
137
|
+
t14
|
|
123
138
|
]
|
|
124
139
|
});
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
} else
|
|
129
|
-
let
|
|
130
|
-
if ($[
|
|
131
|
-
|
|
140
|
+
$[27] = t13;
|
|
141
|
+
$[28] = t14;
|
|
142
|
+
$[29] = t15;
|
|
143
|
+
} else t15 = $[29];
|
|
144
|
+
let t16;
|
|
145
|
+
if ($[30] !== action || $[31] !== classNames?.action || $[32] !== styles?.action) {
|
|
146
|
+
t16 = hasContent(action) && /*#__PURE__*/ jsx("div", {
|
|
132
147
|
"data-tao-alert-action": "",
|
|
133
148
|
className: cx(classNames?.action),
|
|
134
149
|
style: styles?.action,
|
|
135
150
|
children: action
|
|
136
151
|
});
|
|
137
|
-
$[
|
|
138
|
-
$[
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
} else
|
|
142
|
-
let
|
|
143
|
-
if ($[
|
|
144
|
-
|
|
152
|
+
$[30] = action;
|
|
153
|
+
$[31] = classNames?.action;
|
|
154
|
+
$[32] = styles?.action;
|
|
155
|
+
$[33] = t16;
|
|
156
|
+
} else t16 = $[33];
|
|
157
|
+
let t17;
|
|
158
|
+
if ($[34] !== classNames?.close || $[35] !== closable || $[36] !== handleClose || $[37] !== locale || $[38] !== styles?.close) {
|
|
159
|
+
t17 = closable && /*#__PURE__*/ jsx("button", {
|
|
145
160
|
type: "button",
|
|
146
161
|
"data-tao-alert-close": "",
|
|
147
162
|
"aria-label": locale.close,
|
|
@@ -150,39 +165,39 @@ function Alert(t0) {
|
|
|
150
165
|
style: styles?.close,
|
|
151
166
|
children: /*#__PURE__*/ jsx(CloseIcon, {})
|
|
152
167
|
});
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
156
|
-
$[
|
|
157
|
-
$[
|
|
158
|
-
$[
|
|
159
|
-
} else
|
|
160
|
-
let
|
|
161
|
-
if ($[
|
|
162
|
-
|
|
168
|
+
$[34] = classNames?.close;
|
|
169
|
+
$[35] = closable;
|
|
170
|
+
$[36] = handleClose;
|
|
171
|
+
$[37] = locale;
|
|
172
|
+
$[38] = styles?.close;
|
|
173
|
+
$[39] = t17;
|
|
174
|
+
} else t17 = $[39];
|
|
175
|
+
let t18;
|
|
176
|
+
if ($[40] !== t11 || $[41] !== t12 || $[42] !== t15 || $[43] !== t16 || $[44] !== t17 || $[45] !== t7 || $[46] !== t9 || $[47] !== type) {
|
|
177
|
+
t18 = /*#__PURE__*/ jsxs("div", {
|
|
163
178
|
role: "alert",
|
|
164
179
|
"data-tao-alert": "",
|
|
165
180
|
"data-tao-type": type,
|
|
166
|
-
"data-tao-with-description":
|
|
167
|
-
className:
|
|
168
|
-
style:
|
|
181
|
+
"data-tao-with-description": t7,
|
|
182
|
+
className: t9,
|
|
183
|
+
style: t11,
|
|
169
184
|
children: [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
185
|
+
t12,
|
|
186
|
+
t15,
|
|
187
|
+
t16,
|
|
188
|
+
t17
|
|
174
189
|
]
|
|
175
190
|
});
|
|
176
|
-
$[
|
|
177
|
-
$[
|
|
178
|
-
$[
|
|
179
|
-
$[
|
|
180
|
-
$[
|
|
181
|
-
$[
|
|
182
|
-
$[
|
|
183
|
-
$[
|
|
184
|
-
$[
|
|
185
|
-
} else
|
|
186
|
-
return
|
|
191
|
+
$[40] = t11;
|
|
192
|
+
$[41] = t12;
|
|
193
|
+
$[42] = t15;
|
|
194
|
+
$[43] = t16;
|
|
195
|
+
$[44] = t17;
|
|
196
|
+
$[45] = t7;
|
|
197
|
+
$[46] = t9;
|
|
198
|
+
$[47] = type;
|
|
199
|
+
$[48] = t18;
|
|
200
|
+
} else t18 = $[48];
|
|
201
|
+
return t18;
|
|
187
202
|
}
|
|
188
203
|
export { Alert };
|