@rockshin/tao-ui 0.0.45 → 0.0.46
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.md +3 -1
- package/component-manifest.json +32 -3
- package/dist/components/alert/alert.js +20 -17
- package/dist/components/avatar/avatar.js +2 -1
- package/dist/components/breadcrumb/breadcrumb.js +81 -77
- package/dist/components/calendar/calendar.d.ts +0 -1
- package/dist/components/calendar/calendar.js +41 -30
- package/dist/components/color-picker/color-picker.js +273 -269
- package/dist/components/date-picker/calendar/calendar-grid.js +10 -4
- package/dist/components/date-picker/calendar/use-calendar.d.ts +2 -2
- package/dist/components/date-picker/calendar/use-calendar.js +2 -3
- package/dist/components/date-picker/date-localization.d.ts +3 -0
- package/dist/components/date-picker/date-localization.js +76 -0
- package/dist/components/date-picker/date-picker.js +35 -27
- package/dist/components/date-picker/range-picker.js +28 -20
- package/dist/components/dropdown/dropdown.js +21 -20
- package/dist/components/float-button/float-button.js +3 -2
- package/dist/components/form/form.js +88 -103
- package/dist/components/image/image.js +202 -137
- package/dist/components/list/list-pagination.js +148 -147
- package/dist/components/modal/confirm-dialog.js +4 -2
- package/dist/components/modal/modal.js +385 -383
- package/dist/components/pagination/pagination.js +115 -110
- package/dist/components/popconfirm/popconfirm.js +109 -107
- package/dist/components/qr-code/qr-code.js +22 -21
- package/dist/components/scroll-area/scroll-area.js +41 -38
- package/dist/components/select/mobile-select.d.ts +1 -1
- package/dist/components/select/mobile-select.js +2 -1
- package/dist/components/sonner/sonner.js +10 -10
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/splitter/splitter.js +24 -21
- package/dist/components/statistic/statistic.d.ts +2 -0
- package/dist/components/statistic/statistic.js +203 -187
- package/dist/components/table/table-filter.js +61 -52
- package/dist/components/table/table-icons.js +3 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.js +5 -4
- package/dist/components/tag/tag.js +22 -19
- package/dist/components/time-picker/time-picker.d.ts +0 -1
- package/dist/components/time-picker/time-picker.js +139 -96
- package/dist/components/transfer/transfer-list.js +224 -488
- package/dist/components/transfer/transfer-parts.js +2 -2
- package/dist/components/transfer/transfer-types.d.ts +1 -0
- package/dist/components/transfer/transfer.js +13 -16
- package/dist/components/upload/upload.js +30 -26
- package/dist/docs/component-docs.d.ts +13 -2
- package/dist/docs/components/headless-input-number.doc.d.ts +5 -0
- package/dist/docs/components/headless-input-number.doc.js +7 -0
- package/dist/docs/components/input-number.doc.d.ts +5 -0
- package/dist/docs/components/input-number.doc.js +7 -0
- package/dist/docs/components/statistic.doc.d.ts +5 -0
- package/dist/docs/components/statistic.doc.js +7 -0
- package/dist/docs/components/tao-provider.doc.d.ts +8 -2
- package/dist/docs/components/tao-provider.doc.js +10 -2
- package/dist/docs/components/tooltip.doc.d.ts +2 -2
- package/dist/entries/provider.d.ts +1 -0
- package/dist/entries/provider.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/locales/ar-EG.d.ts +3 -0
- package/dist/locales/ar-EG.js +199 -0
- package/dist/locales/create-locale.d.ts +41 -0
- package/dist/locales/create-locale.js +88 -0
- package/dist/locales/de-DE.d.ts +3 -0
- package/dist/locales/de-DE.js +195 -0
- package/dist/locales/en-US.d.ts +2 -0
- package/dist/locales/en-US.js +194 -0
- package/dist/locales/es-ES.d.ts +3 -0
- package/dist/locales/es-ES.js +195 -0
- package/dist/locales/fr-FR.d.ts +3 -0
- package/dist/locales/fr-FR.js +195 -0
- package/dist/locales/hi-IN.d.ts +3 -0
- package/dist/locales/hi-IN.js +194 -0
- package/dist/locales/id-ID.d.ts +3 -0
- package/dist/locales/id-ID.js +194 -0
- package/dist/locales/index.d.ts +18 -0
- package/dist/locales/index.js +17 -0
- package/dist/locales/it-IT.d.ts +3 -0
- package/dist/locales/it-IT.js +195 -0
- package/dist/locales/ja-JP.d.ts +3 -0
- package/dist/locales/ja-JP.js +194 -0
- package/dist/locales/ko-KR.d.ts +3 -0
- package/dist/locales/ko-KR.js +194 -0
- package/dist/locales/pt-BR.d.ts +3 -0
- package/dist/locales/pt-BR.js +195 -0
- package/dist/locales/ru-RU.d.ts +3 -0
- package/dist/locales/ru-RU.js +197 -0
- package/dist/locales/th-TH.d.ts +3 -0
- package/dist/locales/th-TH.js +194 -0
- package/dist/locales/tr-TR.d.ts +3 -0
- package/dist/locales/tr-TR.js +194 -0
- package/dist/locales/types.d.ts +176 -0
- package/dist/locales/types.js +0 -0
- package/dist/locales/vi-VN.d.ts +3 -0
- package/dist/locales/vi-VN.js +194 -0
- package/dist/locales/zh-CN.d.ts +3 -0
- package/dist/locales/zh-CN.js +194 -0
- package/dist/locales/zh-TW.d.ts +3 -0
- package/dist/locales/zh-TW.js +194 -0
- package/dist/number-input/format.d.ts +4 -3
- package/dist/number-input/format.js +9 -7
- package/dist/number-input/locale.d.ts +19 -0
- package/dist/number-input/locale.js +44 -0
- package/dist/number-input/number-input.js +1 -0
- package/dist/number-input/use-number-input.d.ts +2 -0
- package/dist/number-input/use-number-input.js +180 -176
- package/dist/provider/locale.d.ts +3 -65
- package/dist/provider/locale.js +2 -146
- package/dist/provider/merge-locale.d.ts +8 -0
- package/dist/provider/merge-locale.js +53 -0
- package/dist/provider/tao-provider.d.ts +6 -2
- package/dist/provider/tao-provider.js +2 -4
- package/llms.txt +1 -1
- package/package.json +5 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
|
+
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
3
4
|
function SortIcon(t0) {
|
|
4
5
|
const $ = c(10);
|
|
5
6
|
const { order } = t0;
|
|
@@ -157,8 +158,9 @@ function CheckIcon() {
|
|
|
157
158
|
function ExpandIcon(t0) {
|
|
158
159
|
const $ = c(5);
|
|
159
160
|
const { expanded, onClick } = t0;
|
|
161
|
+
const { locale } = useTaoConfig();
|
|
160
162
|
const t1 = expanded || void 0;
|
|
161
|
-
const t2 = expanded ?
|
|
163
|
+
const t2 = expanded ? locale.messages.collapseRow : locale.messages.expandRow;
|
|
162
164
|
let t3;
|
|
163
165
|
if ($[0] !== expanded || $[1] !== onClick || $[2] !== t1 || $[3] !== t2) {
|
|
164
166
|
t3 = /*#__PURE__*/ jsx("button", {
|
|
@@ -3,7 +3,7 @@ import type { TableProps, TableRecord } from './table-types.js';
|
|
|
3
3
|
import './table.css';
|
|
4
4
|
export type { TableSummaryCellProps, TableSummaryProps, TableSummaryRowProps, } from './table-summary.js';
|
|
5
5
|
export type { SorterResult, SortOrder, TableColumn, TableExpandable, TableFilterItem, TablePagination, TableProps, TableRowSelection, TableSemanticClassNames, TableSemanticInfo, TableSemanticPart, TableSemanticStyles, TableVariant, } from './table-types.js';
|
|
6
|
-
export declare function Table<T extends TableRecord = Record<string, unknown>>({ columns: columnsProp, dataSource, rowKey, loading, pagination: paginationProp, onChange, scroll, rowSelection, expandable, summary, size, variant, headerBackground, emptyText, bordered, className, style, classNames, styles, rowClassName, rowStyle, onRow, onHeaderRow, }: TableProps<T>): import("react").JSX.Element;
|
|
6
|
+
export declare function Table<T extends TableRecord = Record<string, unknown>>({ columns: columnsProp, dataSource, rowKey, loading, pagination: paginationProp, onChange, scroll, rowSelection, expandable, summary, size, variant, headerBackground, emptyText: emptyTextProp, bordered, className, style, classNames, styles, rowClassName, rowStyle, onRow, onHeaderRow, }: TableProps<T>): import("react").JSX.Element;
|
|
7
7
|
export declare namespace Table {
|
|
8
8
|
export { TableSummary as Summary };
|
|
9
9
|
}
|
|
@@ -20,8 +20,9 @@ function stickyStyle(pos, zIndex) {
|
|
|
20
20
|
zIndex
|
|
21
21
|
} : void 0;
|
|
22
22
|
}
|
|
23
|
-
function Table({ columns: columnsProp, dataSource, rowKey, loading = false, pagination: paginationProp, onChange, scroll, rowSelection, expandable, summary, size, variant, headerBackground = true, emptyText
|
|
23
|
+
function Table({ columns: columnsProp, dataSource, rowKey, loading = false, pagination: paginationProp, onChange, scroll, rowSelection, expandable, summary, size, variant, headerBackground = true, emptyText: emptyTextProp, bordered = false, className, style, classNames, styles, rowClassName, rowStyle, onRow, onHeaderRow }) {
|
|
24
24
|
const ctx = useTaoConfig();
|
|
25
|
+
const emptyText = void 0 === emptyTextProp ? ctx.locale.messages.tableEmpty : emptyTextProp;
|
|
25
26
|
const resolvedSize = size ?? ctx.size;
|
|
26
27
|
const screens = useBreakpoint();
|
|
27
28
|
const columns = useMemo(()=>columnsProp.some((col_0)=>col_0.responsive) ? columnsProp.filter((col)=>!col.responsive || col.responsive.some((bp)=>screens[bp])) : columnsProp, [
|
|
@@ -302,7 +303,7 @@ function Table({ columns: columnsProp, dataSource, rowKey, loading = false, pagi
|
|
|
302
303
|
...resolvedStyles['selection.cell']
|
|
303
304
|
},
|
|
304
305
|
children: 'checkbox' === selectionType && /*#__PURE__*/ jsx(Checkbox, {
|
|
305
|
-
"aria-label":
|
|
306
|
+
"aria-label": ctx.locale.messages.selectAllRows,
|
|
306
307
|
checked: isAllSelected,
|
|
307
308
|
disabled: 0 === selectablePageKeys.length,
|
|
308
309
|
indeterminate: isIndeterminate,
|
|
@@ -429,12 +430,12 @@ function Table({ columns: columnsProp, dataSource, rowKey, loading = false, pagi
|
|
|
429
430
|
},
|
|
430
431
|
children: 'radio' === selectionType ? /*#__PURE__*/ jsx(Radio, {
|
|
431
432
|
checked: isSelected,
|
|
432
|
-
"aria-label":
|
|
433
|
+
"aria-label": ctx.locale.messages.selectRow(String(key_3)),
|
|
433
434
|
disabled: checkboxProps?.disabled ?? false,
|
|
434
435
|
onChange: ()=>handleSelectRow(key_3)
|
|
435
436
|
}) : /*#__PURE__*/ jsx(Checkbox, {
|
|
436
437
|
checked: isSelected,
|
|
437
|
-
"aria-label":
|
|
438
|
+
"aria-label": ctx.locale.messages.selectRow(String(key_3)),
|
|
438
439
|
disabled: checkboxProps?.disabled ?? false,
|
|
439
440
|
onChange: ()=>handleSelectRow(key_3)
|
|
440
441
|
})
|
|
@@ -2,6 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { c } from "react-compiler-runtime";
|
|
3
3
|
import { cx } from "../../utils/semantic.js";
|
|
4
4
|
import "./tag.css";
|
|
5
|
+
import { useTaoConfig } from "../../provider/tao-provider.js";
|
|
5
6
|
function CloseIcon() {
|
|
6
7
|
const $ = c(1);
|
|
7
8
|
let t0;
|
|
@@ -26,11 +27,12 @@ function CloseIcon() {
|
|
|
26
27
|
return t0;
|
|
27
28
|
}
|
|
28
29
|
function Tag(t0) {
|
|
29
|
-
const $ = c(
|
|
30
|
+
const $ = c(41);
|
|
30
31
|
const { children, color: t1, variant: t2, icon, closeIcon, onClose, disabled: t3, className, style, classNames, styles } = t0;
|
|
31
32
|
const color = void 0 === t1 ? "default" : t1;
|
|
32
33
|
const variant = void 0 === t2 ? "filled" : t2;
|
|
33
34
|
const disabled = void 0 === t3 ? false : t3;
|
|
35
|
+
const { locale } = useTaoConfig();
|
|
34
36
|
let t4;
|
|
35
37
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
36
38
|
t4 = [
|
|
@@ -128,11 +130,11 @@ function Tag(t0) {
|
|
|
128
130
|
$[22] = t15;
|
|
129
131
|
} else t15 = $[22];
|
|
130
132
|
let t16;
|
|
131
|
-
if ($[23] !== classNames?.close || $[24] !== closeIcon || $[25] !== disabled || $[26] !== handleClose || $[27] !==
|
|
133
|
+
if ($[23] !== classNames?.close || $[24] !== closeIcon || $[25] !== disabled || $[26] !== handleClose || $[27] !== locale || $[28] !== showClose || $[29] !== styles?.close) {
|
|
132
134
|
t16 = showClose && /*#__PURE__*/ jsx("button", {
|
|
133
135
|
type: "button",
|
|
134
136
|
"data-tao-tag-close": "",
|
|
135
|
-
"aria-label":
|
|
137
|
+
"aria-label": locale.close,
|
|
136
138
|
disabled: disabled,
|
|
137
139
|
onClick: handleClose,
|
|
138
140
|
className: cx(classNames?.close),
|
|
@@ -143,12 +145,13 @@ function Tag(t0) {
|
|
|
143
145
|
$[24] = closeIcon;
|
|
144
146
|
$[25] = disabled;
|
|
145
147
|
$[26] = handleClose;
|
|
146
|
-
$[27] =
|
|
147
|
-
$[28] =
|
|
148
|
-
$[29] =
|
|
149
|
-
|
|
148
|
+
$[27] = locale;
|
|
149
|
+
$[28] = showClose;
|
|
150
|
+
$[29] = styles?.close;
|
|
151
|
+
$[30] = t16;
|
|
152
|
+
} else t16 = $[30];
|
|
150
153
|
let t17;
|
|
151
|
-
if ($[
|
|
154
|
+
if ($[31] !== t11 || $[32] !== t13 || $[33] !== t14 || $[34] !== t15 || $[35] !== t16 || $[36] !== t7 || $[37] !== t8 || $[38] !== t9 || $[39] !== variant) {
|
|
152
155
|
t17 = /*#__PURE__*/ jsxs("span", {
|
|
153
156
|
"data-tao-tag": "",
|
|
154
157
|
"data-tao-color": t7,
|
|
@@ -163,17 +166,17 @@ function Tag(t0) {
|
|
|
163
166
|
t16
|
|
164
167
|
]
|
|
165
168
|
});
|
|
166
|
-
$[
|
|
167
|
-
$[
|
|
168
|
-
$[
|
|
169
|
-
$[
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
$[
|
|
176
|
-
} else t17 = $[
|
|
169
|
+
$[31] = t11;
|
|
170
|
+
$[32] = t13;
|
|
171
|
+
$[33] = t14;
|
|
172
|
+
$[34] = t15;
|
|
173
|
+
$[35] = t16;
|
|
174
|
+
$[36] = t7;
|
|
175
|
+
$[37] = t8;
|
|
176
|
+
$[38] = t9;
|
|
177
|
+
$[39] = variant;
|
|
178
|
+
$[40] = t17;
|
|
179
|
+
} else t17 = $[40];
|
|
177
180
|
return t17;
|
|
178
181
|
}
|
|
179
182
|
function CheckableTag(t0) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { type PickerRef, type PickerProps as RcPickerProps, type RangePickerProps as RcRangePickerProps } from '@rc-component/picker';
|
|
2
2
|
import type { Locale, RangePickerRef } from '@rc-component/picker/interface';
|
|
3
3
|
import type { Dayjs } from 'dayjs';
|
|
4
|
-
import 'dayjs/locale/zh-cn';
|
|
5
4
|
import { type CSSProperties, type ReactNode } from 'react';
|
|
6
5
|
import './time-picker.css';
|
|
7
6
|
export type TimePickerSemanticPart = 'root' | 'prefix' | 'input' | 'suffix' | 'popup';
|
|
@@ -3,13 +3,13 @@ import { c } from "react-compiler-runtime";
|
|
|
3
3
|
import picker, { RangePicker } from "@rc-component/picker";
|
|
4
4
|
import dayjs from "@rc-component/picker/generate/dayjs";
|
|
5
5
|
import en_US from "@rc-component/picker/locale/en_US";
|
|
6
|
-
import zh_CN from "@rc-component/picker/locale/zh_CN";
|
|
7
6
|
import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
|
|
8
7
|
import { TaoPortalScope, useTaoConfig, useTaoDirection, useTaoInternalConfig } from "../../provider/tao-provider.js";
|
|
9
8
|
import { mergeRefs } from "../../utils/refs.js";
|
|
10
|
-
import "
|
|
9
|
+
import { normalizeDigits, resolveNumberFormat } from "../../number-input/locale.js";
|
|
11
10
|
import { cx } from "../../utils/semantic.js";
|
|
12
11
|
import { Button } from "../button/button.js";
|
|
12
|
+
import { parsePickerDate } from "../date-picker/date-localization.js";
|
|
13
13
|
import "./time-picker.css";
|
|
14
14
|
function TimeIcon(t0) {
|
|
15
15
|
const $ = c(2);
|
|
@@ -74,124 +74,167 @@ function NowButton(props) {
|
|
|
74
74
|
return t0;
|
|
75
75
|
}
|
|
76
76
|
function useAppearance(props, classNames, styles) {
|
|
77
|
-
const $ = c(
|
|
77
|
+
const $ = c(46);
|
|
78
78
|
const config = useTaoConfig();
|
|
79
79
|
const { tokenStyle } = useTaoInternalConfig();
|
|
80
|
-
const baseLocale =
|
|
80
|
+
const baseLocale = config.locale.pickerLocale ?? en_US;
|
|
81
81
|
let t0;
|
|
82
|
-
if ($[0] !==
|
|
83
|
-
t0 = "
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
$[
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
|
|
82
|
+
if ($[0] !== config.locale.numberLocale || $[1] !== props.locale) {
|
|
83
|
+
t0 = props.locale?.lang.locale ? props.locale.lang.locale.replaceAll("_", "-") : config.locale.numberLocale;
|
|
84
|
+
$[0] = config.locale.numberLocale;
|
|
85
|
+
$[1] = props.locale;
|
|
86
|
+
$[2] = t0;
|
|
87
|
+
} else t0 = $[2];
|
|
88
|
+
const numberLocale = t0;
|
|
89
|
+
const dayjsLocale = config.locale.dayjsLocale;
|
|
90
|
+
let t1;
|
|
91
|
+
if ($[3] !== numberLocale) {
|
|
92
|
+
t1 = resolveNumberFormat(numberLocale);
|
|
93
|
+
$[3] = numberLocale;
|
|
94
|
+
$[4] = t1;
|
|
95
|
+
} else t1 = $[4];
|
|
96
|
+
const numberFormat = t1;
|
|
91
97
|
let t2;
|
|
92
|
-
if ($[
|
|
98
|
+
if ($[5] !== baseLocale.locale || $[6] !== dayjsLocale || $[7] !== numberFormat || $[8] !== numberLocale) {
|
|
93
99
|
t2 = {
|
|
100
|
+
...dayjs,
|
|
101
|
+
locale: {
|
|
102
|
+
...dayjs.locale,
|
|
103
|
+
parse: (locale, text, formats)=>{
|
|
104
|
+
if (locale === baseLocale.locale && dayjsLocale) {
|
|
105
|
+
for (const format of formats){
|
|
106
|
+
const parsed = parsePickerDate(text, format, dayjsLocale, numberLocale);
|
|
107
|
+
if (parsed.isValid()) return parsed;
|
|
108
|
+
}
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
return dayjs.locale.parse(locale, normalizeDigits(text, numberFormat), formats);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
$[5] = baseLocale.locale;
|
|
116
|
+
$[6] = dayjsLocale;
|
|
117
|
+
$[7] = numberFormat;
|
|
118
|
+
$[8] = numberLocale;
|
|
119
|
+
$[9] = t2;
|
|
120
|
+
} else t2 = $[9];
|
|
121
|
+
const generateConfig = t2;
|
|
122
|
+
let t3;
|
|
123
|
+
if ($[10] !== classNames) {
|
|
124
|
+
t3 = "string" == typeof classNames?.popup ? {
|
|
125
|
+
root: classNames.popup
|
|
126
|
+
} : classNames?.popup;
|
|
127
|
+
$[10] = classNames;
|
|
128
|
+
$[11] = t3;
|
|
129
|
+
} else t3 = $[11];
|
|
130
|
+
const popup = t3;
|
|
131
|
+
const t4 = props.locale?.lang;
|
|
132
|
+
let t5;
|
|
133
|
+
if ($[12] !== baseLocale || $[13] !== config.locale.clear || $[14] !== config.locale.now || $[15] !== config.locale.ok || $[16] !== t4) {
|
|
134
|
+
t5 = {
|
|
94
135
|
...baseLocale,
|
|
95
136
|
now: config.locale.now,
|
|
96
137
|
ok: config.locale.ok,
|
|
97
138
|
clear: config.locale.clear,
|
|
98
|
-
...
|
|
139
|
+
...t4
|
|
99
140
|
};
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
} else
|
|
107
|
-
const
|
|
108
|
-
const
|
|
109
|
-
const
|
|
110
|
-
let
|
|
111
|
-
if ($[
|
|
112
|
-
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
116
|
-
$[
|
|
117
|
-
} else
|
|
118
|
-
let
|
|
119
|
-
if ($[
|
|
120
|
-
|
|
141
|
+
$[12] = baseLocale;
|
|
142
|
+
$[13] = config.locale.clear;
|
|
143
|
+
$[14] = config.locale.now;
|
|
144
|
+
$[15] = config.locale.ok;
|
|
145
|
+
$[16] = t4;
|
|
146
|
+
$[17] = t5;
|
|
147
|
+
} else t5 = $[17];
|
|
148
|
+
const t6 = "middle" === props.size ? "medium" : props.size ?? config.size;
|
|
149
|
+
const t7 = props.variant ?? (false === props.bordered ? "borderless" : config.variant);
|
|
150
|
+
const t8 = popup?.root;
|
|
151
|
+
let t9;
|
|
152
|
+
if ($[18] !== props.dropdownClassName || $[19] !== props.popupClassName || $[20] !== t8) {
|
|
153
|
+
t9 = cx(props.dropdownClassName, props.popupClassName, t8);
|
|
154
|
+
$[18] = props.dropdownClassName;
|
|
155
|
+
$[19] = props.popupClassName;
|
|
156
|
+
$[20] = t8;
|
|
157
|
+
$[21] = t9;
|
|
158
|
+
} else t9 = $[21];
|
|
159
|
+
let t10;
|
|
160
|
+
if ($[22] !== popup || $[23] !== t9) {
|
|
161
|
+
t10 = {
|
|
121
162
|
...popup,
|
|
122
|
-
root:
|
|
123
|
-
};
|
|
124
|
-
$[12] = popup;
|
|
125
|
-
$[13] = t6;
|
|
126
|
-
$[14] = t7;
|
|
127
|
-
} else t7 = $[14];
|
|
128
|
-
let t8;
|
|
129
|
-
if ($[15] !== classNames || $[16] !== t7) {
|
|
130
|
-
t8 = {
|
|
131
|
-
...classNames,
|
|
132
|
-
popup: t7
|
|
163
|
+
root: t9
|
|
133
164
|
};
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
$[
|
|
137
|
-
} else
|
|
138
|
-
const t9 = styles?.popup;
|
|
139
|
-
const t10 = styles?.popup?.root;
|
|
165
|
+
$[22] = popup;
|
|
166
|
+
$[23] = t9;
|
|
167
|
+
$[24] = t10;
|
|
168
|
+
} else t10 = $[24];
|
|
140
169
|
let t11;
|
|
141
|
-
if ($[
|
|
170
|
+
if ($[25] !== classNames || $[26] !== t10) {
|
|
142
171
|
t11 = {
|
|
172
|
+
...classNames,
|
|
173
|
+
popup: t10
|
|
174
|
+
};
|
|
175
|
+
$[25] = classNames;
|
|
176
|
+
$[26] = t10;
|
|
177
|
+
$[27] = t11;
|
|
178
|
+
} else t11 = $[27];
|
|
179
|
+
const t12 = styles?.popup;
|
|
180
|
+
const t13 = styles?.popup?.root;
|
|
181
|
+
let t14;
|
|
182
|
+
if ($[28] !== props.popupStyle || $[29] !== t13 || $[30] !== tokenStyle) {
|
|
183
|
+
t14 = {
|
|
143
184
|
...tokenStyle,
|
|
144
185
|
position: "absolute",
|
|
145
186
|
width: "max-content",
|
|
146
187
|
maxWidth: "calc(100vw - 24px)",
|
|
147
188
|
zIndex: "calc(var(--tao-z-index-popup-base) + 50)",
|
|
148
189
|
...props.popupStyle,
|
|
149
|
-
...
|
|
190
|
+
...t13
|
|
150
191
|
};
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
} else
|
|
156
|
-
let
|
|
157
|
-
if ($[
|
|
158
|
-
|
|
159
|
-
...
|
|
160
|
-
root:
|
|
192
|
+
$[28] = props.popupStyle;
|
|
193
|
+
$[29] = t13;
|
|
194
|
+
$[30] = tokenStyle;
|
|
195
|
+
$[31] = t14;
|
|
196
|
+
} else t14 = $[31];
|
|
197
|
+
let t15;
|
|
198
|
+
if ($[32] !== t12 || $[33] !== t14) {
|
|
199
|
+
t15 = {
|
|
200
|
+
...t12,
|
|
201
|
+
root: t14
|
|
161
202
|
};
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
} else
|
|
166
|
-
let
|
|
167
|
-
if ($[
|
|
168
|
-
|
|
203
|
+
$[32] = t12;
|
|
204
|
+
$[33] = t14;
|
|
205
|
+
$[34] = t15;
|
|
206
|
+
} else t15 = $[34];
|
|
207
|
+
let t16;
|
|
208
|
+
if ($[35] !== styles || $[36] !== t15) {
|
|
209
|
+
t16 = {
|
|
169
210
|
...styles,
|
|
170
|
-
popup:
|
|
211
|
+
popup: t15
|
|
171
212
|
};
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
174
|
-
$[
|
|
175
|
-
} else
|
|
176
|
-
let
|
|
177
|
-
if ($[
|
|
178
|
-
|
|
213
|
+
$[35] = styles;
|
|
214
|
+
$[36] = t15;
|
|
215
|
+
$[37] = t16;
|
|
216
|
+
} else t16 = $[37];
|
|
217
|
+
let t17;
|
|
218
|
+
if ($[38] !== config || $[39] !== generateConfig || $[40] !== t11 || $[41] !== t16 || $[42] !== t5 || $[43] !== t6 || $[44] !== t7) {
|
|
219
|
+
t17 = {
|
|
179
220
|
config,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
221
|
+
generateConfig,
|
|
222
|
+
locale: t5,
|
|
223
|
+
size: t6,
|
|
224
|
+
variant: t7,
|
|
225
|
+
classNames: t11,
|
|
226
|
+
styles: t16
|
|
185
227
|
};
|
|
186
|
-
$[
|
|
187
|
-
$[
|
|
188
|
-
$[
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
$[
|
|
193
|
-
|
|
194
|
-
|
|
228
|
+
$[38] = config;
|
|
229
|
+
$[39] = generateConfig;
|
|
230
|
+
$[40] = t11;
|
|
231
|
+
$[41] = t16;
|
|
232
|
+
$[42] = t5;
|
|
233
|
+
$[43] = t6;
|
|
234
|
+
$[44] = t7;
|
|
235
|
+
$[45] = t17;
|
|
236
|
+
} else t17 = $[45];
|
|
237
|
+
return t17;
|
|
195
238
|
}
|
|
196
239
|
function scopedPanel(panel, render, direction) {
|
|
197
240
|
return /*#__PURE__*/ jsx(TaoPortalScope, {
|
|
@@ -252,7 +295,7 @@ const SingleTimePicker = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
252
295
|
ref: pickerRef,
|
|
253
296
|
direction: direction,
|
|
254
297
|
picker: "time",
|
|
255
|
-
generateConfig:
|
|
298
|
+
generateConfig: appearance.generateConfig,
|
|
256
299
|
locale: appearance.locale,
|
|
257
300
|
defaultValue: defaultValue ?? void 0,
|
|
258
301
|
disabled: disabled,
|
|
@@ -335,7 +378,7 @@ const TimeRangePicker = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
335
378
|
ref: pickerRef,
|
|
336
379
|
direction: direction,
|
|
337
380
|
picker: "time",
|
|
338
|
-
generateConfig:
|
|
381
|
+
generateConfig: appearance.generateConfig,
|
|
339
382
|
locale: appearance.locale,
|
|
340
383
|
disabled: disabled,
|
|
341
384
|
placeholder: placeholder ?? locale?.timePickerLocale?.rangePlaceholder ?? locale?.lang.rangePlaceholder ?? [
|