@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.
Files changed (114) hide show
  1. package/README.md +3 -1
  2. package/component-manifest.json +32 -3
  3. package/dist/components/alert/alert.js +20 -17
  4. package/dist/components/avatar/avatar.js +2 -1
  5. package/dist/components/breadcrumb/breadcrumb.js +81 -77
  6. package/dist/components/calendar/calendar.d.ts +0 -1
  7. package/dist/components/calendar/calendar.js +41 -30
  8. package/dist/components/color-picker/color-picker.js +273 -269
  9. package/dist/components/date-picker/calendar/calendar-grid.js +10 -4
  10. package/dist/components/date-picker/calendar/use-calendar.d.ts +2 -2
  11. package/dist/components/date-picker/calendar/use-calendar.js +2 -3
  12. package/dist/components/date-picker/date-localization.d.ts +3 -0
  13. package/dist/components/date-picker/date-localization.js +76 -0
  14. package/dist/components/date-picker/date-picker.js +35 -27
  15. package/dist/components/date-picker/range-picker.js +28 -20
  16. package/dist/components/dropdown/dropdown.js +21 -20
  17. package/dist/components/float-button/float-button.js +3 -2
  18. package/dist/components/form/form.js +88 -103
  19. package/dist/components/image/image.js +202 -137
  20. package/dist/components/list/list-pagination.js +148 -147
  21. package/dist/components/modal/confirm-dialog.js +4 -2
  22. package/dist/components/modal/modal.js +385 -383
  23. package/dist/components/pagination/pagination.js +115 -110
  24. package/dist/components/popconfirm/popconfirm.js +109 -107
  25. package/dist/components/qr-code/qr-code.js +22 -21
  26. package/dist/components/scroll-area/scroll-area.js +41 -38
  27. package/dist/components/select/mobile-select.d.ts +1 -1
  28. package/dist/components/select/mobile-select.js +2 -1
  29. package/dist/components/sonner/sonner.js +10 -10
  30. package/dist/components/spinner/spinner.js +1 -1
  31. package/dist/components/splitter/splitter.js +24 -21
  32. package/dist/components/statistic/statistic.d.ts +2 -0
  33. package/dist/components/statistic/statistic.js +203 -187
  34. package/dist/components/table/table-filter.js +61 -52
  35. package/dist/components/table/table-icons.js +3 -1
  36. package/dist/components/table/table.d.ts +1 -1
  37. package/dist/components/table/table.js +5 -4
  38. package/dist/components/tag/tag.js +22 -19
  39. package/dist/components/time-picker/time-picker.d.ts +0 -1
  40. package/dist/components/time-picker/time-picker.js +139 -96
  41. package/dist/components/transfer/transfer-list.js +224 -488
  42. package/dist/components/transfer/transfer-parts.js +2 -2
  43. package/dist/components/transfer/transfer-types.d.ts +1 -0
  44. package/dist/components/transfer/transfer.js +13 -16
  45. package/dist/components/upload/upload.js +30 -26
  46. package/dist/docs/component-docs.d.ts +13 -2
  47. package/dist/docs/components/headless-input-number.doc.d.ts +5 -0
  48. package/dist/docs/components/headless-input-number.doc.js +7 -0
  49. package/dist/docs/components/input-number.doc.d.ts +5 -0
  50. package/dist/docs/components/input-number.doc.js +7 -0
  51. package/dist/docs/components/statistic.doc.d.ts +5 -0
  52. package/dist/docs/components/statistic.doc.js +7 -0
  53. package/dist/docs/components/tao-provider.doc.d.ts +8 -2
  54. package/dist/docs/components/tao-provider.doc.js +10 -2
  55. package/dist/docs/components/tooltip.doc.d.ts +2 -2
  56. package/dist/entries/provider.d.ts +1 -0
  57. package/dist/entries/provider.js +1 -0
  58. package/dist/index.d.ts +1 -0
  59. package/dist/index.js +1 -0
  60. package/dist/locales/ar-EG.d.ts +3 -0
  61. package/dist/locales/ar-EG.js +199 -0
  62. package/dist/locales/create-locale.d.ts +41 -0
  63. package/dist/locales/create-locale.js +88 -0
  64. package/dist/locales/de-DE.d.ts +3 -0
  65. package/dist/locales/de-DE.js +195 -0
  66. package/dist/locales/en-US.d.ts +2 -0
  67. package/dist/locales/en-US.js +194 -0
  68. package/dist/locales/es-ES.d.ts +3 -0
  69. package/dist/locales/es-ES.js +195 -0
  70. package/dist/locales/fr-FR.d.ts +3 -0
  71. package/dist/locales/fr-FR.js +195 -0
  72. package/dist/locales/hi-IN.d.ts +3 -0
  73. package/dist/locales/hi-IN.js +194 -0
  74. package/dist/locales/id-ID.d.ts +3 -0
  75. package/dist/locales/id-ID.js +194 -0
  76. package/dist/locales/index.d.ts +18 -0
  77. package/dist/locales/index.js +17 -0
  78. package/dist/locales/it-IT.d.ts +3 -0
  79. package/dist/locales/it-IT.js +195 -0
  80. package/dist/locales/ja-JP.d.ts +3 -0
  81. package/dist/locales/ja-JP.js +194 -0
  82. package/dist/locales/ko-KR.d.ts +3 -0
  83. package/dist/locales/ko-KR.js +194 -0
  84. package/dist/locales/pt-BR.d.ts +3 -0
  85. package/dist/locales/pt-BR.js +195 -0
  86. package/dist/locales/ru-RU.d.ts +3 -0
  87. package/dist/locales/ru-RU.js +197 -0
  88. package/dist/locales/th-TH.d.ts +3 -0
  89. package/dist/locales/th-TH.js +194 -0
  90. package/dist/locales/tr-TR.d.ts +3 -0
  91. package/dist/locales/tr-TR.js +194 -0
  92. package/dist/locales/types.d.ts +176 -0
  93. package/dist/locales/types.js +0 -0
  94. package/dist/locales/vi-VN.d.ts +3 -0
  95. package/dist/locales/vi-VN.js +194 -0
  96. package/dist/locales/zh-CN.d.ts +3 -0
  97. package/dist/locales/zh-CN.js +194 -0
  98. package/dist/locales/zh-TW.d.ts +3 -0
  99. package/dist/locales/zh-TW.js +194 -0
  100. package/dist/number-input/format.d.ts +4 -3
  101. package/dist/number-input/format.js +9 -7
  102. package/dist/number-input/locale.d.ts +19 -0
  103. package/dist/number-input/locale.js +44 -0
  104. package/dist/number-input/number-input.js +1 -0
  105. package/dist/number-input/use-number-input.d.ts +2 -0
  106. package/dist/number-input/use-number-input.js +180 -176
  107. package/dist/provider/locale.d.ts +3 -65
  108. package/dist/provider/locale.js +2 -146
  109. package/dist/provider/merge-locale.d.ts +8 -0
  110. package/dist/provider/merge-locale.js +53 -0
  111. package/dist/provider/tao-provider.d.ts +6 -2
  112. package/dist/provider/tao-provider.js +2 -4
  113. package/llms.txt +1 -1
  114. 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 ? "Collapse row" : "Expand row";
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 = 'No Data', bordered = false, className, style, classNames, styles, rowClassName, rowStyle, onRow, onHeaderRow }) {
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": "Select all rows",
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": `Select row ${String(key_3)}`,
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": `Select row ${String(key_3)}`,
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(40);
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] !== showClose || $[28] !== styles?.close) {
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": "Close",
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] = showClose;
147
- $[28] = styles?.close;
148
- $[29] = t16;
149
- } else t16 = $[29];
148
+ $[27] = locale;
149
+ $[28] = showClose;
150
+ $[29] = styles?.close;
151
+ $[30] = t16;
152
+ } else t16 = $[30];
150
153
  let t17;
151
- if ($[30] !== t11 || $[31] !== t13 || $[32] !== t14 || $[33] !== t15 || $[34] !== t16 || $[35] !== t7 || $[36] !== t8 || $[37] !== t9 || $[38] !== variant) {
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
- $[30] = t11;
167
- $[31] = t13;
168
- $[32] = t14;
169
- $[33] = t15;
170
- $[34] = t16;
171
- $[35] = t7;
172
- $[36] = t8;
173
- $[37] = t9;
174
- $[38] = variant;
175
- $[39] = t17;
176
- } else t17 = $[39];
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 "dayjs/locale/zh-cn";
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(35);
77
+ const $ = c(46);
78
78
  const config = useTaoConfig();
79
79
  const { tokenStyle } = useTaoInternalConfig();
80
- const baseLocale = "zh_CN" === config.locale.locale ? zh_CN : en_US;
80
+ const baseLocale = config.locale.pickerLocale ?? en_US;
81
81
  let t0;
82
- if ($[0] !== classNames) {
83
- t0 = "string" == typeof classNames?.popup ? {
84
- root: classNames.popup
85
- } : classNames?.popup;
86
- $[0] = classNames;
87
- $[1] = t0;
88
- } else t0 = $[1];
89
- const popup = t0;
90
- const t1 = props.locale?.lang;
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 ($[2] !== baseLocale || $[3] !== config.locale.clear || $[4] !== config.locale.now || $[5] !== config.locale.ok || $[6] !== t1) {
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
- ...t1
139
+ ...t4
99
140
  };
100
- $[2] = baseLocale;
101
- $[3] = config.locale.clear;
102
- $[4] = config.locale.now;
103
- $[5] = config.locale.ok;
104
- $[6] = t1;
105
- $[7] = t2;
106
- } else t2 = $[7];
107
- const t3 = "middle" === props.size ? "medium" : props.size ?? config.size;
108
- const t4 = props.variant ?? (false === props.bordered ? "borderless" : config.variant);
109
- const t5 = popup?.root;
110
- let t6;
111
- if ($[8] !== props.dropdownClassName || $[9] !== props.popupClassName || $[10] !== t5) {
112
- t6 = cx(props.dropdownClassName, props.popupClassName, t5);
113
- $[8] = props.dropdownClassName;
114
- $[9] = props.popupClassName;
115
- $[10] = t5;
116
- $[11] = t6;
117
- } else t6 = $[11];
118
- let t7;
119
- if ($[12] !== popup || $[13] !== t6) {
120
- t7 = {
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: t6
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
- $[15] = classNames;
135
- $[16] = t7;
136
- $[17] = t8;
137
- } else t8 = $[17];
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 ($[18] !== props.popupStyle || $[19] !== t10 || $[20] !== tokenStyle) {
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
- ...t10
190
+ ...t13
150
191
  };
151
- $[18] = props.popupStyle;
152
- $[19] = t10;
153
- $[20] = tokenStyle;
154
- $[21] = t11;
155
- } else t11 = $[21];
156
- let t12;
157
- if ($[22] !== t11 || $[23] !== t9) {
158
- t12 = {
159
- ...t9,
160
- root: t11
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
- $[22] = t11;
163
- $[23] = t9;
164
- $[24] = t12;
165
- } else t12 = $[24];
166
- let t13;
167
- if ($[25] !== styles || $[26] !== t12) {
168
- t13 = {
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: t12
211
+ popup: t15
171
212
  };
172
- $[25] = styles;
173
- $[26] = t12;
174
- $[27] = t13;
175
- } else t13 = $[27];
176
- let t14;
177
- if ($[28] !== config || $[29] !== t13 || $[30] !== t2 || $[31] !== t3 || $[32] !== t4 || $[33] !== t8) {
178
- t14 = {
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
- locale: t2,
181
- size: t3,
182
- variant: t4,
183
- classNames: t8,
184
- styles: t13
221
+ generateConfig,
222
+ locale: t5,
223
+ size: t6,
224
+ variant: t7,
225
+ classNames: t11,
226
+ styles: t16
185
227
  };
186
- $[28] = config;
187
- $[29] = t13;
188
- $[30] = t2;
189
- $[31] = t3;
190
- $[32] = t4;
191
- $[33] = t8;
192
- $[34] = t14;
193
- } else t14 = $[34];
194
- return t14;
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: dayjs,
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: dayjs,
381
+ generateConfig: appearance.generateConfig,
339
382
  locale: appearance.locale,
340
383
  disabled: disabled,
341
384
  placeholder: placeholder ?? locale?.timePickerLocale?.rangePlaceholder ?? locale?.lang.rangePlaceholder ?? [