@rockshin/tao-ui 0.0.58 → 0.0.60
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 +38 -4
- package/dist/components/app/app-modals.js +11 -6
- package/dist/components/app/app-notices.js +105 -47
- package/dist/components/auto-complete/auto-complete.js +9 -2
- package/dist/components/calendar/calendar.js +22 -18
- package/dist/components/carousel/carousel.js +27 -14
- package/dist/components/cascader/cascader.js +18 -12
- package/dist/components/checkbox/checkbox.d.ts +3 -1
- package/dist/components/checkbox/checkbox.js +65 -58
- package/dist/components/color-picker/color-picker.css +1 -1
- package/dist/components/color-picker/color-picker.js +386 -362
- package/dist/components/context-menu/context-menu.d.ts +3 -1
- package/dist/components/context-menu/context-menu.js +48 -43
- package/dist/components/date-picker/calendar/calendar-grid.d.ts +5 -3
- package/dist/components/date-picker/calendar/calendar-grid.js +9 -4
- package/dist/components/date-picker/calendar/month-grid.d.ts +2 -1
- package/dist/components/date-picker/calendar/month-grid.js +61 -45
- package/dist/components/date-picker/calendar/time-panel.d.ts +8 -1
- package/dist/components/date-picker/calendar/time-panel.js +93 -88
- package/dist/components/date-picker/calendar/year-grid.d.ts +2 -1
- package/dist/components/date-picker/calendar/year-grid.js +60 -44
- package/dist/components/date-picker/date-picker.css +9 -0
- package/dist/components/date-picker/date-picker.js +25 -14
- package/dist/components/date-picker/range-picker.d.ts +2 -0
- package/dist/components/date-picker/range-picker.js +132 -73
- package/dist/components/date-picker/types.js +1 -1
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/drawer/drawer.js +4 -3
- package/dist/components/dropdown/dropdown.d.ts +1 -0
- package/dist/components/dropdown/dropdown.js +29 -21
- package/dist/components/float-button/float-button.js +6 -5
- package/dist/components/form/form-item.d.ts +1 -1
- package/dist/components/form/form-item.js +160 -120
- package/dist/components/form/use-form.js +2 -1
- package/dist/components/form-field/form-field-view.d.ts +2 -1
- package/dist/components/form-field/form-field-view.js +173 -108
- package/dist/components/input/input-shared.js +3 -2
- package/dist/components/input/otp.js +114 -110
- package/dist/components/input/password.js +55 -61
- package/dist/components/input/search.js +8 -4
- package/dist/components/input-number/input-number.d.ts +2 -1
- package/dist/components/input-number/input-number.js +67 -52
- package/dist/components/mentions/mentions.js +4 -2
- package/dist/components/menu/menu-render.d.ts +6 -0
- package/dist/components/menu/menu-render.js +39 -26
- package/dist/components/modal/confirm-dialog.js +22 -10
- package/dist/components/modal/modal.js +320 -315
- package/dist/components/modal/use-modal.js +1 -1
- package/dist/components/pagination/pagination.d.ts +4 -2
- package/dist/components/pagination/pagination.js +128 -117
- package/dist/components/popover/popover.js +214 -351
- package/dist/components/qr-code/qr-code.js +157 -150
- package/dist/components/radio/radio.d.ts +3 -1
- package/dist/components/radio/radio.js +73 -64
- package/dist/components/select/mobile-select.js +7 -4
- package/dist/components/select/select-model.js +3 -3
- package/dist/components/select/select.js +78 -39
- package/dist/components/select/use-select-selection.js +100 -92
- package/dist/components/slider/slider.d.ts +2 -2
- package/dist/components/slider/slider.js +13 -2
- package/dist/components/sonner/sonner.js +2 -2
- package/dist/components/splitter/splitter.css +1 -0
- package/dist/components/splitter/splitter.js +152 -126
- package/dist/components/statistic/statistic.js +38 -31
- package/dist/components/switch/switch.js +45 -39
- package/dist/components/table/table-filter.d.ts +3 -1
- package/dist/components/table/table-filter.js +100 -74
- package/dist/components/table/table.js +2 -0
- package/dist/components/table/use-table-data.js +2 -2
- package/dist/components/tabs/tabs.d.ts +3 -2
- package/dist/components/tabs/tabs.js +122 -112
- package/dist/components/time-picker/time-picker.js +35 -3
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +220 -124
- package/dist/components/tree/tree.js +31 -3
- package/dist/components/tree-select/tree-select.js +2 -1
- package/dist/components/upload/upload.js +67 -40
- package/dist/locales/ar-EG.js +2 -0
- package/dist/locales/de-DE.js +2 -0
- package/dist/locales/en-US.js +2 -0
- package/dist/locales/es-ES.js +2 -0
- package/dist/locales/fr-FR.js +2 -0
- package/dist/locales/hi-IN.js +2 -0
- package/dist/locales/id-ID.js +2 -0
- package/dist/locales/it-IT.js +2 -0
- package/dist/locales/ja-JP.js +2 -0
- package/dist/locales/ko-KR.js +2 -0
- package/dist/locales/pt-BR.js +2 -0
- package/dist/locales/ru-RU.js +2 -0
- package/dist/locales/th-TH.js +2 -0
- package/dist/locales/tr-TR.js +2 -0
- package/dist/locales/types.d.ts +2 -0
- package/dist/locales/vi-VN.js +2 -0
- package/dist/locales/zh-CN.js +2 -0
- package/dist/locales/zh-TW.js +2 -0
- package/dist/number-input/format.js +1 -1
- package/dist/number-input/use-number-input.d.ts +1 -0
- package/dist/number-input/use-number-input.js +170 -321
- package/dist/number-input/validate.d.ts +1 -0
- package/dist/number-input/validate.js +1 -1
- package/dist/provider/tao-provider.d.ts +2 -2
- package/dist/provider/tao-provider.js +66 -52
- package/dist/theme/control.css +5 -1
- package/dist/theme/theme.css +2 -2
- package/dist/utils/composed-parent.d.ts +1 -0
- package/dist/utils/composed-parent.js +7 -0
- package/dist/utils/portal.d.ts +5 -0
- package/dist/utils/portal.js +7 -1
- package/dist/utils/refs.d.ts +3 -1
- package/dist/utils/refs.js +25 -1
- package/package.json +1 -1
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
3
4
|
import { TaoPortalScope, useTaoConfig } from "../../provider/tao-provider.js";
|
|
4
5
|
import { CheckIcon, FilterIcon } from "./table-icons.js";
|
|
5
6
|
import * as __rspack_external__radix_ui_react_dropdown_menu_154a7470 from "@radix-ui/react-dropdown-menu";
|
|
6
7
|
function TableFilterDropdown(t0) {
|
|
7
|
-
const $ = c(
|
|
8
|
-
const { filters, activeValues, onSelect } = t0;
|
|
8
|
+
const $ = c(37);
|
|
9
|
+
const { filters, activeValues, direction, onSelect } = t0;
|
|
9
10
|
const { locale, disabled } = useTaoConfig();
|
|
11
|
+
const [internalOpen, setInternalOpen] = useState(false);
|
|
12
|
+
if (disabled && internalOpen) setInternalOpen(false);
|
|
13
|
+
const open = !disabled && internalOpen;
|
|
10
14
|
let t1;
|
|
11
15
|
if ($[0] !== activeValues || $[1] !== onSelect) {
|
|
12
16
|
t1 = (value)=>{
|
|
@@ -20,45 +24,53 @@ function TableFilterDropdown(t0) {
|
|
|
20
24
|
$[2] = t1;
|
|
21
25
|
} else t1 = $[2];
|
|
22
26
|
const toggle = t1;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
$[
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
let t2;
|
|
28
|
+
if ($[3] !== disabled) {
|
|
29
|
+
t2 = (next)=>{
|
|
30
|
+
if (!disabled || !next) setInternalOpen(next);
|
|
31
|
+
};
|
|
32
|
+
$[3] = disabled;
|
|
33
|
+
$[4] = t2;
|
|
34
|
+
} else t2 = $[4];
|
|
35
|
+
const t3 = activeValues.length > 0;
|
|
32
36
|
let t4;
|
|
33
|
-
if ($[5] !==
|
|
34
|
-
t4 = /*#__PURE__*/ jsx(
|
|
37
|
+
if ($[5] !== t3) {
|
|
38
|
+
t4 = /*#__PURE__*/ jsx(FilterIcon, {
|
|
39
|
+
active: t3
|
|
40
|
+
});
|
|
41
|
+
$[5] = t3;
|
|
42
|
+
$[6] = t4;
|
|
43
|
+
} else t4 = $[6];
|
|
44
|
+
let t5;
|
|
45
|
+
if ($[7] !== disabled || $[8] !== locale.messages.filter || $[9] !== t4) {
|
|
46
|
+
t5 = /*#__PURE__*/ jsx("button", {
|
|
35
47
|
type: "button",
|
|
36
48
|
"data-tao-table-filter-trigger": "",
|
|
37
49
|
"aria-label": locale.messages.filter,
|
|
38
50
|
disabled: disabled,
|
|
39
|
-
children:
|
|
40
|
-
});
|
|
41
|
-
$[5] = disabled;
|
|
42
|
-
$[6] = locale.messages.filter;
|
|
43
|
-
$[7] = t3;
|
|
44
|
-
$[8] = t4;
|
|
45
|
-
} else t4 = $[8];
|
|
46
|
-
const trigger = t4;
|
|
47
|
-
if (disabled) return trigger;
|
|
48
|
-
let t5;
|
|
49
|
-
if ($[9] !== trigger) {
|
|
50
|
-
t5 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Trigger, {
|
|
51
|
-
asChild: true,
|
|
52
|
-
children: trigger
|
|
51
|
+
children: t4
|
|
53
52
|
});
|
|
54
|
-
$[
|
|
53
|
+
$[7] = disabled;
|
|
54
|
+
$[8] = locale.messages.filter;
|
|
55
|
+
$[9] = t4;
|
|
55
56
|
$[10] = t5;
|
|
56
57
|
} else t5 = $[10];
|
|
57
58
|
let t6;
|
|
58
|
-
if ($[11] !==
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
if ($[11] !== disabled || $[12] !== t5) {
|
|
60
|
+
t6 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Trigger, {
|
|
61
|
+
asChild: true,
|
|
62
|
+
disabled: disabled,
|
|
63
|
+
children: t5
|
|
64
|
+
});
|
|
65
|
+
$[11] = disabled;
|
|
66
|
+
$[12] = t5;
|
|
67
|
+
$[13] = t6;
|
|
68
|
+
} else t6 = $[13];
|
|
69
|
+
let t7;
|
|
70
|
+
if ($[14] !== activeValues || $[15] !== filters || $[16] !== toggle) {
|
|
71
|
+
let t8;
|
|
72
|
+
if ($[18] !== activeValues || $[19] !== toggle) {
|
|
73
|
+
t8 = (filter)=>{
|
|
62
74
|
const checked = activeValues.includes(filter.value);
|
|
63
75
|
return /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_154a7470.CheckboxItem, {
|
|
64
76
|
checked: checked,
|
|
@@ -79,62 +91,76 @@ function TableFilterDropdown(t0) {
|
|
|
79
91
|
]
|
|
80
92
|
}, filter.value);
|
|
81
93
|
};
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
84
|
-
$[
|
|
85
|
-
} else
|
|
86
|
-
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
} else
|
|
92
|
-
let
|
|
93
|
-
if ($[
|
|
94
|
-
|
|
94
|
+
$[18] = activeValues;
|
|
95
|
+
$[19] = toggle;
|
|
96
|
+
$[20] = t8;
|
|
97
|
+
} else t8 = $[20];
|
|
98
|
+
t7 = filters.map(t8);
|
|
99
|
+
$[14] = activeValues;
|
|
100
|
+
$[15] = filters;
|
|
101
|
+
$[16] = toggle;
|
|
102
|
+
$[17] = t7;
|
|
103
|
+
} else t7 = $[17];
|
|
104
|
+
let t8;
|
|
105
|
+
if ($[21] !== activeValues.length || $[22] !== locale.messages.filterReset || $[23] !== onSelect) {
|
|
106
|
+
t8 = activeValues.length > 0 && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Item, {
|
|
95
107
|
"data-tao-table-filter-reset": "",
|
|
96
108
|
onSelect: ()=>onSelect([]),
|
|
97
109
|
children: locale.messages.filterReset
|
|
98
110
|
});
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[21] = t7;
|
|
103
|
-
} else t7 = $[21];
|
|
104
|
-
let t8;
|
|
105
|
-
if ($[22] !== t6 || $[23] !== t7) {
|
|
106
|
-
t8 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Portal, {
|
|
107
|
-
children: /*#__PURE__*/ jsx(TaoPortalScope, {
|
|
108
|
-
asChild: true,
|
|
109
|
-
children: /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Content, {
|
|
110
|
-
"data-tao-table-filter-panel": "",
|
|
111
|
-
align: "end",
|
|
112
|
-
sideOffset: 4,
|
|
113
|
-
loop: true,
|
|
114
|
-
children: [
|
|
115
|
-
t6,
|
|
116
|
-
t7
|
|
117
|
-
]
|
|
118
|
-
})
|
|
119
|
-
})
|
|
120
|
-
});
|
|
121
|
-
$[22] = t6;
|
|
122
|
-
$[23] = t7;
|
|
111
|
+
$[21] = activeValues.length;
|
|
112
|
+
$[22] = locale.messages.filterReset;
|
|
113
|
+
$[23] = onSelect;
|
|
123
114
|
$[24] = t8;
|
|
124
115
|
} else t8 = $[24];
|
|
125
116
|
let t9;
|
|
126
|
-
if ($[25] !==
|
|
127
|
-
t9 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_154a7470.
|
|
117
|
+
if ($[25] !== t7 || $[26] !== t8) {
|
|
118
|
+
t9 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Content, {
|
|
119
|
+
"data-tao-table-filter-panel": "",
|
|
120
|
+
align: "end",
|
|
121
|
+
sideOffset: 4,
|
|
122
|
+
loop: true,
|
|
128
123
|
children: [
|
|
129
|
-
|
|
124
|
+
t7,
|
|
130
125
|
t8
|
|
131
126
|
]
|
|
132
127
|
});
|
|
133
|
-
$[25] =
|
|
128
|
+
$[25] = t7;
|
|
134
129
|
$[26] = t8;
|
|
135
130
|
$[27] = t9;
|
|
136
131
|
} else t9 = $[27];
|
|
137
|
-
|
|
132
|
+
let t10;
|
|
133
|
+
if ($[28] !== direction || $[29] !== t9) {
|
|
134
|
+
t10 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Portal, {
|
|
135
|
+
children: /*#__PURE__*/ jsx(TaoPortalScope, {
|
|
136
|
+
asChild: true,
|
|
137
|
+
direction: direction,
|
|
138
|
+
children: t9
|
|
139
|
+
})
|
|
140
|
+
});
|
|
141
|
+
$[28] = direction;
|
|
142
|
+
$[29] = t9;
|
|
143
|
+
$[30] = t10;
|
|
144
|
+
} else t10 = $[30];
|
|
145
|
+
let t11;
|
|
146
|
+
if ($[31] !== direction || $[32] !== open || $[33] !== t10 || $[34] !== t2 || $[35] !== t6) {
|
|
147
|
+
t11 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_154a7470.Root, {
|
|
148
|
+
dir: direction,
|
|
149
|
+
open: open,
|
|
150
|
+
onOpenChange: t2,
|
|
151
|
+
children: [
|
|
152
|
+
t6,
|
|
153
|
+
t10
|
|
154
|
+
]
|
|
155
|
+
});
|
|
156
|
+
$[31] = direction;
|
|
157
|
+
$[32] = open;
|
|
158
|
+
$[33] = t10;
|
|
159
|
+
$[34] = t2;
|
|
160
|
+
$[35] = t6;
|
|
161
|
+
$[36] = t11;
|
|
162
|
+
} else t11 = $[36];
|
|
163
|
+
return t11;
|
|
138
164
|
}
|
|
139
165
|
function _temp(event) {
|
|
140
166
|
return event.preventDefault();
|
|
@@ -385,6 +385,7 @@ function Table({ columns: columnsProp, dataSource, rowKey, loading = false, pagi
|
|
|
385
385
|
hasFilter && /*#__PURE__*/ jsx(TableFilterDropdown, {
|
|
386
386
|
filters: col_4.filters,
|
|
387
387
|
activeValues: activeFilterValues,
|
|
388
|
+
direction: direction,
|
|
388
389
|
onSelect: onFilter
|
|
389
390
|
})
|
|
390
391
|
]
|
|
@@ -473,6 +474,7 @@ function Table({ columns: columnsProp, dataSource, rowKey, loading = false, pagi
|
|
|
473
474
|
const stickyPos_0 = stickyPositions[colIdx];
|
|
474
475
|
const isFixed_0 = !!col_5.fixed && !!scroll?.x;
|
|
475
476
|
const cellProps = col_5.onCell?.(record_3, rowIdx) ?? {};
|
|
477
|
+
if (0 === cellProps.colSpan || 0 === cellProps.rowSpan) return null;
|
|
476
478
|
return /*#__PURE__*/ createElement("td", {
|
|
477
479
|
...cellProps,
|
|
478
480
|
key: colKey_0,
|
|
@@ -126,7 +126,7 @@ function useTableData(t0) {
|
|
|
126
126
|
const currentPage = paginationConfig?.current ?? internalPage;
|
|
127
127
|
let t7;
|
|
128
128
|
bb0: {
|
|
129
|
-
if (false === paginationProp ||
|
|
129
|
+
if (false === paginationProp || processedData.length < total) {
|
|
130
130
|
t7 = processedData;
|
|
131
131
|
break bb0;
|
|
132
132
|
}
|
|
@@ -152,7 +152,7 @@ function useTableData(t0) {
|
|
|
152
152
|
if (!column_7.filters) continue;
|
|
153
153
|
const values_2 = Object.hasOwn(nextFilters, key_0) ? nextFilters[key_0] : void 0;
|
|
154
154
|
filterEntries.push([
|
|
155
|
-
|
|
155
|
+
key_0,
|
|
156
156
|
values_2?.length ? [
|
|
157
157
|
...values_2
|
|
158
158
|
] : null
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AriaAttributes, type ReactNode } from 'react';
|
|
1
|
+
import { type AriaAttributes, type CSSProperties, type ReactNode } from 'react';
|
|
2
2
|
import { type TaoSize } from '../../provider/tao-provider.js';
|
|
3
3
|
import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic.js';
|
|
4
4
|
import './tabs.css';
|
|
@@ -18,7 +18,8 @@ export interface TabsProps extends Pick<AriaAttributes, 'aria-label' | 'aria-lab
|
|
|
18
18
|
variant?: 'line' | 'card';
|
|
19
19
|
destroyInactiveTabPane?: boolean;
|
|
20
20
|
className?: string;
|
|
21
|
+
style?: CSSProperties;
|
|
21
22
|
classNames?: SemanticClassNames<TabsSemanticPart>;
|
|
22
23
|
styles?: SemanticStyles<TabsSemanticPart>;
|
|
23
24
|
}
|
|
24
|
-
export declare function Tabs({ items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant, destroyInactiveTabPane, className, classNames, styles, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: TabsProps): import("react").JSX.Element;
|
|
25
|
+
export declare function Tabs({ items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant, destroyInactiveTabPane, className, style, classNames, styles, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: TabsProps): import("react").JSX.Element;
|
|
@@ -6,8 +6,8 @@ import { mergeRefs } from "../../utils/refs.js";
|
|
|
6
6
|
import { cx } from "../../utils/semantic.js";
|
|
7
7
|
import "./tabs.css";
|
|
8
8
|
function Tabs(t0) {
|
|
9
|
-
const $ = c(
|
|
10
|
-
const { items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant: t1, destroyInactiveTabPane: t2, className, classNames, styles, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy } = t0;
|
|
9
|
+
const $ = c(89);
|
|
10
|
+
const { items, activeKey: activeKeyProp, defaultActiveKey, onChange, size, variant: t1, destroyInactiveTabPane: t2, className, style, classNames, styles, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy } = t0;
|
|
11
11
|
const variant = void 0 === t1 ? "line" : t1;
|
|
12
12
|
const destroyInactiveTabPane = void 0 === t2 ? false : t2;
|
|
13
13
|
const ctx = useTaoConfig();
|
|
@@ -124,7 +124,7 @@ function Tabs(t0) {
|
|
|
124
124
|
next = enabledItems[(idx + 1) % enabledItems.length];
|
|
125
125
|
} else if (e.key === (rtl ? "ArrowRight" : "ArrowLeft")) {
|
|
126
126
|
e.preventDefault();
|
|
127
|
-
next = enabledItems[(idx - 1 + enabledItems.length) % enabledItems.length];
|
|
127
|
+
next = idx < 0 ? enabledItems[enabledItems.length - 1] : enabledItems[(idx - 1 + enabledItems.length) % enabledItems.length];
|
|
128
128
|
} else if ("Home" === e.key) {
|
|
129
129
|
e.preventDefault();
|
|
130
130
|
next = enabledItems[0];
|
|
@@ -154,26 +154,36 @@ function Tabs(t0) {
|
|
|
154
154
|
$[28] = t12;
|
|
155
155
|
} else t12 = $[28];
|
|
156
156
|
const t13 = styles?.root;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
$[30] = t15;
|
|
163
|
-
} else t15 = $[30];
|
|
164
|
-
const t16 = styles?.nav;
|
|
165
|
-
let t17;
|
|
166
|
-
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
167
|
-
t17 = (event)=>{
|
|
168
|
-
if (!(event.relatedTarget instanceof Node) || !event.currentTarget.contains(event.relatedTarget)) setFocusedKey(void 0);
|
|
157
|
+
let t14;
|
|
158
|
+
if ($[29] !== style || $[30] !== t13) {
|
|
159
|
+
t14 = {
|
|
160
|
+
...t13,
|
|
161
|
+
...style
|
|
169
162
|
};
|
|
170
|
-
$[
|
|
171
|
-
|
|
163
|
+
$[29] = style;
|
|
164
|
+
$[30] = t13;
|
|
165
|
+
$[31] = t14;
|
|
166
|
+
} else t14 = $[31];
|
|
167
|
+
const t15 = classNames?.nav;
|
|
168
|
+
let t16;
|
|
169
|
+
if ($[32] !== t15) {
|
|
170
|
+
t16 = cx(t15);
|
|
171
|
+
$[32] = t15;
|
|
172
|
+
$[33] = t16;
|
|
173
|
+
} else t16 = $[33];
|
|
174
|
+
const t17 = styles?.nav;
|
|
172
175
|
let t18;
|
|
173
|
-
if ($[
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
176
|
+
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
177
|
+
t18 = (event)=>{
|
|
178
|
+
if (!(event.relatedTarget instanceof Node) || !event.currentTarget.contains(event.relatedTarget)) setFocusedKey(void 0);
|
|
179
|
+
};
|
|
180
|
+
$[34] = t18;
|
|
181
|
+
} else t18 = $[34];
|
|
182
|
+
let t19;
|
|
183
|
+
if ($[35] !== classNames?.tab || $[36] !== currentKey || $[37] !== destroyInactiveTabPane || $[38] !== focusKey || $[39] !== getItemId || $[40] !== handleSelect || $[41] !== items || $[42] !== styles?.tab) {
|
|
184
|
+
let t20;
|
|
185
|
+
if ($[44] !== classNames?.tab || $[45] !== currentKey || $[46] !== destroyInactiveTabPane || $[47] !== focusKey || $[48] !== getItemId || $[49] !== handleSelect || $[50] !== styles?.tab) {
|
|
186
|
+
t20 = (item_5)=>{
|
|
177
187
|
const isActive = item_5.key === currentKey;
|
|
178
188
|
const tabId = getItemId("tab", item_5.key);
|
|
179
189
|
const panelId = getItemId("panel", item_5.key);
|
|
@@ -201,29 +211,29 @@ function Tabs(t0) {
|
|
|
201
211
|
children: item_5.label
|
|
202
212
|
}, item_5.key);
|
|
203
213
|
};
|
|
204
|
-
$[
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
208
|
-
$[
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
} else
|
|
213
|
-
|
|
214
|
-
$[
|
|
215
|
-
$[
|
|
216
|
-
$[
|
|
217
|
-
$[
|
|
218
|
-
$[
|
|
219
|
-
$[
|
|
220
|
-
$[
|
|
221
|
-
$[
|
|
222
|
-
$[
|
|
223
|
-
} else
|
|
224
|
-
let
|
|
225
|
-
if ($[
|
|
226
|
-
|
|
214
|
+
$[44] = classNames?.tab;
|
|
215
|
+
$[45] = currentKey;
|
|
216
|
+
$[46] = destroyInactiveTabPane;
|
|
217
|
+
$[47] = focusKey;
|
|
218
|
+
$[48] = getItemId;
|
|
219
|
+
$[49] = handleSelect;
|
|
220
|
+
$[50] = styles?.tab;
|
|
221
|
+
$[51] = t20;
|
|
222
|
+
} else t20 = $[51];
|
|
223
|
+
t19 = items.map(t20);
|
|
224
|
+
$[35] = classNames?.tab;
|
|
225
|
+
$[36] = currentKey;
|
|
226
|
+
$[37] = destroyInactiveTabPane;
|
|
227
|
+
$[38] = focusKey;
|
|
228
|
+
$[39] = getItemId;
|
|
229
|
+
$[40] = handleSelect;
|
|
230
|
+
$[41] = items;
|
|
231
|
+
$[42] = styles?.tab;
|
|
232
|
+
$[43] = t19;
|
|
233
|
+
} else t19 = $[43];
|
|
234
|
+
let t20;
|
|
235
|
+
if ($[52] !== classNames?.indicator || $[53] !== direction || $[54] !== inkStyle || $[55] !== styles?.indicator || $[56] !== variant) {
|
|
236
|
+
t20 = "line" === variant && inkStyle && /*#__PURE__*/ jsx("span", {
|
|
227
237
|
"data-tao-tabs-ink": "",
|
|
228
238
|
style: {
|
|
229
239
|
transform: `translateX(${inkStyle.left}px) scaleX(${inkStyle.width})`,
|
|
@@ -232,54 +242,54 @@ function Tabs(t0) {
|
|
|
232
242
|
},
|
|
233
243
|
className: cx(classNames?.indicator)
|
|
234
244
|
});
|
|
235
|
-
$[
|
|
236
|
-
$[
|
|
237
|
-
$[
|
|
238
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
} else
|
|
242
|
-
let
|
|
243
|
-
if ($[
|
|
244
|
-
|
|
245
|
+
$[52] = classNames?.indicator;
|
|
246
|
+
$[53] = direction;
|
|
247
|
+
$[54] = inkStyle;
|
|
248
|
+
$[55] = styles?.indicator;
|
|
249
|
+
$[56] = variant;
|
|
250
|
+
$[57] = t20;
|
|
251
|
+
} else t20 = $[57];
|
|
252
|
+
let t21;
|
|
253
|
+
if ($[58] !== ariaLabel || $[59] !== ariaLabelledBy || $[60] !== handleKeyDown || $[61] !== listRef || $[62] !== t19 || $[63] !== t20) {
|
|
254
|
+
t21 = /*#__PURE__*/ jsxs("div", {
|
|
245
255
|
ref: listRef,
|
|
246
256
|
role: "tablist",
|
|
247
257
|
"aria-label": ariaLabel,
|
|
248
258
|
"aria-labelledby": ariaLabelledBy,
|
|
249
259
|
"data-tao-tabs-list": "",
|
|
250
|
-
onBlur:
|
|
260
|
+
onBlur: t18,
|
|
251
261
|
onKeyDown: handleKeyDown,
|
|
252
262
|
children: [
|
|
253
|
-
|
|
254
|
-
|
|
263
|
+
t19,
|
|
264
|
+
t20
|
|
255
265
|
]
|
|
256
266
|
});
|
|
257
|
-
$[
|
|
258
|
-
$[
|
|
259
|
-
$[
|
|
260
|
-
$[
|
|
261
|
-
$[
|
|
262
|
-
$[
|
|
263
|
-
$[
|
|
264
|
-
} else
|
|
265
|
-
let
|
|
266
|
-
if ($[
|
|
267
|
-
|
|
267
|
+
$[58] = ariaLabel;
|
|
268
|
+
$[59] = ariaLabelledBy;
|
|
269
|
+
$[60] = handleKeyDown;
|
|
270
|
+
$[61] = listRef;
|
|
271
|
+
$[62] = t19;
|
|
272
|
+
$[63] = t20;
|
|
273
|
+
$[64] = t21;
|
|
274
|
+
} else t21 = $[64];
|
|
275
|
+
let t22;
|
|
276
|
+
if ($[65] !== t16 || $[66] !== t17 || $[67] !== t21) {
|
|
277
|
+
t22 = /*#__PURE__*/ jsx("div", {
|
|
268
278
|
"data-tao-tabs-nav": "",
|
|
269
|
-
className:
|
|
270
|
-
style:
|
|
271
|
-
children:
|
|
279
|
+
className: t16,
|
|
280
|
+
style: t17,
|
|
281
|
+
children: t21
|
|
272
282
|
});
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
$[
|
|
276
|
-
$[
|
|
277
|
-
} else
|
|
278
|
-
let
|
|
279
|
-
if ($[
|
|
280
|
-
let
|
|
281
|
-
if ($[
|
|
282
|
-
|
|
283
|
+
$[65] = t16;
|
|
284
|
+
$[66] = t17;
|
|
285
|
+
$[67] = t21;
|
|
286
|
+
$[68] = t22;
|
|
287
|
+
} else t22 = $[68];
|
|
288
|
+
let t23;
|
|
289
|
+
if ($[69] !== classNames?.panel || $[70] !== currentKey || $[71] !== destroyInactiveTabPane || $[72] !== getItemId || $[73] !== items || $[74] !== styles?.panel) {
|
|
290
|
+
let t24;
|
|
291
|
+
if ($[76] !== classNames?.panel || $[77] !== currentKey || $[78] !== destroyInactiveTabPane || $[79] !== getItemId || $[80] !== styles?.panel) {
|
|
292
|
+
t24 = (item_6)=>{
|
|
283
293
|
const isActive_0 = item_6.key === currentKey;
|
|
284
294
|
const tabId_0 = getItemId("tab", item_6.key);
|
|
285
295
|
const panelId_0 = getItemId("panel", item_6.key);
|
|
@@ -297,44 +307,44 @@ function Tabs(t0) {
|
|
|
297
307
|
children: item_6.children
|
|
298
308
|
}, item_6.key);
|
|
299
309
|
};
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
303
|
-
$[
|
|
304
|
-
$[
|
|
305
|
-
$[
|
|
306
|
-
} else
|
|
307
|
-
|
|
308
|
-
$[
|
|
309
|
-
$[
|
|
310
|
-
$[
|
|
311
|
-
$[
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
314
|
-
$[
|
|
315
|
-
} else
|
|
316
|
-
let
|
|
317
|
-
if ($[
|
|
318
|
-
|
|
310
|
+
$[76] = classNames?.panel;
|
|
311
|
+
$[77] = currentKey;
|
|
312
|
+
$[78] = destroyInactiveTabPane;
|
|
313
|
+
$[79] = getItemId;
|
|
314
|
+
$[80] = styles?.panel;
|
|
315
|
+
$[81] = t24;
|
|
316
|
+
} else t24 = $[81];
|
|
317
|
+
t23 = items.map(t24);
|
|
318
|
+
$[69] = classNames?.panel;
|
|
319
|
+
$[70] = currentKey;
|
|
320
|
+
$[71] = destroyInactiveTabPane;
|
|
321
|
+
$[72] = getItemId;
|
|
322
|
+
$[73] = items;
|
|
323
|
+
$[74] = styles?.panel;
|
|
324
|
+
$[75] = t23;
|
|
325
|
+
} else t23 = $[75];
|
|
326
|
+
let t24;
|
|
327
|
+
if ($[82] !== resolvedSize || $[83] !== t12 || $[84] !== t14 || $[85] !== t22 || $[86] !== t23 || $[87] !== variant) {
|
|
328
|
+
t24 = /*#__PURE__*/ jsxs("div", {
|
|
319
329
|
"data-tao-tabs": "",
|
|
320
330
|
"data-tao-variant": variant,
|
|
321
331
|
"data-tao-size": resolvedSize,
|
|
322
332
|
className: t12,
|
|
323
|
-
style:
|
|
333
|
+
style: t14,
|
|
324
334
|
children: [
|
|
325
|
-
|
|
326
|
-
|
|
335
|
+
t22,
|
|
336
|
+
t23
|
|
327
337
|
]
|
|
328
338
|
});
|
|
329
|
-
$[
|
|
330
|
-
$[
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
333
|
-
$[
|
|
334
|
-
$[
|
|
335
|
-
$[
|
|
336
|
-
} else
|
|
337
|
-
return
|
|
339
|
+
$[82] = resolvedSize;
|
|
340
|
+
$[83] = t12;
|
|
341
|
+
$[84] = t14;
|
|
342
|
+
$[85] = t22;
|
|
343
|
+
$[86] = t23;
|
|
344
|
+
$[87] = variant;
|
|
345
|
+
$[88] = t24;
|
|
346
|
+
} else t24 = $[88];
|
|
347
|
+
return t24;
|
|
338
348
|
}
|
|
339
349
|
function _temp2(t) {
|
|
340
350
|
return !t.disabled;
|