@rockshin/tao-ui 0.0.10 → 0.0.12
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/component-manifest.json +764 -0
- package/dist/components/breadcrumb/breadcrumb.css +4 -0
- package/dist/components/breadcrumb/breadcrumb.js +8 -6
- package/dist/components/checkbox/checkbox.js +4 -0
- package/dist/components/context-menu/context-menu.js +1 -0
- package/dist/components/date-picker/calendar/calendar-grid.js +21 -17
- package/dist/components/date-picker/calendar/calendar-header.js +8 -0
- package/dist/components/date-picker/calendar/month-grid.js +1 -1
- package/dist/components/date-picker/calendar/time-panel.js +36 -41
- package/dist/components/date-picker/date-picker.css +30 -16
- package/dist/components/date-picker/date-picker.js +241 -223
- package/dist/components/date-picker/range-picker.js +26 -2
- package/dist/components/drawer/drawer.js +2 -0
- package/dist/components/dropdown/dropdown.js +3 -1
- package/dist/components/menu/menu-render.js +7 -3
- package/dist/components/modal/confirm-dialog.js +9 -1
- package/dist/components/modal/modal.js +2 -0
- package/dist/components/pagination/pagination.js +56 -64
- package/dist/components/scroll-area/scroll-area.css +3 -0
- package/dist/components/scroll-area/scroll-area.js +6 -2
- package/dist/components/select/mobile-select.css +4 -0
- package/dist/components/select/mobile-select.js +9 -4
- package/dist/components/select/select.js +7 -0
- package/dist/components/spinner/spinner.js +2 -1
- package/dist/components/splitter/splitter.js +165 -149
- package/dist/components/switch/switch.js +2 -0
- package/dist/components/table/table.css +14 -0
- package/dist/components/table/table.js +14 -14
- package/dist/components/tabs/tabs.js +84 -87
- package/dist/components/tag/tag.js +1 -0
- package/dist/components/textarea/textarea.css +21 -3
- package/dist/docs/component-doc.d.ts +28 -0
- package/dist/docs/component-doc.js +0 -0
- package/dist/docs/component-docs.d.ts +147 -0
- package/dist/docs/component-docs.js +70 -0
- package/dist/docs/components/breadcrumb.doc.d.ts +23 -0
- package/dist/docs/components/breadcrumb.doc.js +53 -0
- package/dist/docs/components/button.doc.d.ts +29 -0
- package/dist/docs/components/button.doc.js +62 -0
- package/dist/docs/components/checkbox.doc.d.ts +23 -0
- package/dist/docs/components/checkbox.doc.js +60 -0
- package/dist/docs/components/collapsible.doc.d.ts +18 -0
- package/dist/docs/components/collapsible.doc.js +39 -0
- package/dist/docs/components/context-menu.doc.d.ts +18 -0
- package/dist/docs/components/context-menu.doc.js +40 -0
- package/dist/docs/components/date-picker.doc.d.ts +18 -0
- package/dist/docs/components/date-picker.doc.js +43 -0
- package/dist/docs/components/drawer.doc.d.ts +18 -0
- package/dist/docs/components/drawer.doc.js +42 -0
- package/dist/docs/components/dropdown.doc.d.ts +18 -0
- package/dist/docs/components/dropdown.doc.js +42 -0
- package/dist/docs/components/form-actions.doc.d.ts +17 -0
- package/dist/docs/components/form-actions.doc.js +35 -0
- package/dist/docs/components/form-field.doc.d.ts +17 -0
- package/dist/docs/components/form-field.doc.js +39 -0
- package/dist/docs/components/form-layout.doc.d.ts +16 -0
- package/dist/docs/components/form-layout.doc.js +31 -0
- package/dist/docs/components/form-section.doc.d.ts +17 -0
- package/dist/docs/components/form-section.doc.js +38 -0
- package/dist/docs/components/headless-input-number.doc.d.ts +16 -0
- package/dist/docs/components/headless-input-number.doc.js +36 -0
- package/dist/docs/components/input-number.doc.d.ts +18 -0
- package/dist/docs/components/input-number.doc.js +41 -0
- package/dist/docs/components/input.doc.d.ts +17 -0
- package/dist/docs/components/input.doc.js +38 -0
- package/dist/docs/components/modal.doc.d.ts +18 -0
- package/dist/docs/components/modal.doc.js +43 -0
- package/dist/docs/components/pagination.doc.d.ts +17 -0
- package/dist/docs/components/pagination.doc.js +37 -0
- package/dist/docs/components/radio.doc.d.ts +18 -0
- package/dist/docs/components/radio.doc.js +43 -0
- package/dist/docs/components/range-picker.doc.d.ts +17 -0
- package/dist/docs/components/range-picker.doc.js +39 -0
- package/dist/docs/components/scroll-area.doc.d.ts +17 -0
- package/dist/docs/components/scroll-area.doc.js +36 -0
- package/dist/docs/components/select.doc.d.ts +18 -0
- package/dist/docs/components/select.doc.js +43 -0
- package/dist/docs/components/spinner.doc.d.ts +18 -0
- package/dist/docs/components/spinner.doc.js +36 -0
- package/dist/docs/components/splitter.doc.d.ts +17 -0
- package/dist/docs/components/splitter.doc.js +36 -0
- package/dist/docs/components/stack.doc.d.ts +16 -0
- package/dist/docs/components/stack.doc.js +31 -0
- package/dist/docs/components/switch.doc.d.ts +17 -0
- package/dist/docs/components/switch.doc.js +35 -0
- package/dist/docs/components/table.doc.d.ts +18 -0
- package/dist/docs/components/table.doc.js +46 -0
- package/dist/docs/components/tabs.doc.d.ts +18 -0
- package/dist/docs/components/tabs.doc.js +39 -0
- package/dist/docs/components/tag.doc.d.ts +18 -0
- package/dist/docs/components/tag.doc.js +41 -0
- package/dist/docs/components/tao-provider.doc.d.ts +22 -0
- package/dist/docs/components/tao-provider.doc.js +60 -0
- package/dist/docs/components/textarea.doc.d.ts +17 -0
- package/dist/docs/components/textarea.doc.js +35 -0
- package/dist/docs/index.d.ts +2 -0
- package/dist/docs/index.js +1 -0
- package/dist/index.d.ts +35 -33
- package/dist/index.js +2 -0
- package/dist/provider/tao-provider.d.ts +9 -1
- package/dist/provider/tao-provider.js +129 -61
- package/dist/theme/theme.css +46 -46
- package/dist/theme/tokens.d.ts +4 -0
- package/dist/theme/tokens.js +108 -0
- package/llms.txt +402 -45
- package/package.json +4 -1
|
@@ -237,9 +237,20 @@ function RangePicker({ value, onChange, picker = 'date', showTime, format: forma
|
|
|
237
237
|
"data-tao-picker-icons": "",
|
|
238
238
|
children: showClearBtn && hovering ? /*#__PURE__*/ jsx("span", {
|
|
239
239
|
"data-tao-picker-clear": "",
|
|
240
|
-
onClick:
|
|
241
|
-
|
|
240
|
+
onClick: (event)=>{
|
|
241
|
+
event.stopPropagation();
|
|
242
|
+
handleClear(event);
|
|
243
|
+
},
|
|
242
244
|
"aria-label": "Clear",
|
|
245
|
+
role: "button",
|
|
246
|
+
tabIndex: 0,
|
|
247
|
+
onKeyDown: (event_0)=>{
|
|
248
|
+
if ('Enter' === event_0.key || ' ' === event_0.key) {
|
|
249
|
+
event_0.preventDefault();
|
|
250
|
+
event_0.stopPropagation();
|
|
251
|
+
handleClear(event_0);
|
|
252
|
+
}
|
|
253
|
+
},
|
|
243
254
|
children: /*#__PURE__*/ jsx(CloseIcon, {})
|
|
244
255
|
}) : /*#__PURE__*/ jsx("span", {
|
|
245
256
|
"data-tao-picker-suffix": "",
|
|
@@ -271,6 +282,7 @@ function RangePicker({ value, onChange, picker = 'date', showTime, format: forma
|
|
|
271
282
|
}),
|
|
272
283
|
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_popover_e2827c9f.Portal, {
|
|
273
284
|
children: /*#__PURE__*/ jsx(TaoPortalScope, {
|
|
285
|
+
asChild: true,
|
|
274
286
|
children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_popover_e2827c9f.Content, {
|
|
275
287
|
"data-tao-picker-dropdown": "",
|
|
276
288
|
sideOffset: 4,
|
|
@@ -288,6 +300,8 @@ function CalendarIcon() {
|
|
|
288
300
|
let t0;
|
|
289
301
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
290
302
|
t0 = /*#__PURE__*/ jsxs("svg", {
|
|
303
|
+
"aria-hidden": "true",
|
|
304
|
+
focusable: "false",
|
|
291
305
|
width: "16",
|
|
292
306
|
height: "16",
|
|
293
307
|
viewBox: "0 0 24 24",
|
|
@@ -321,6 +335,8 @@ function CloseIcon() {
|
|
|
321
335
|
let t0;
|
|
322
336
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
323
337
|
t0 = /*#__PURE__*/ jsx("svg", {
|
|
338
|
+
"aria-hidden": "true",
|
|
339
|
+
focusable: "false",
|
|
324
340
|
width: "14",
|
|
325
341
|
height: "14",
|
|
326
342
|
viewBox: "0 0 24 24",
|
|
@@ -342,6 +358,8 @@ function LeftIcon() {
|
|
|
342
358
|
let t0;
|
|
343
359
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
344
360
|
t0 = /*#__PURE__*/ jsx("svg", {
|
|
361
|
+
"aria-hidden": "true",
|
|
362
|
+
focusable: "false",
|
|
345
363
|
width: "14",
|
|
346
364
|
height: "14",
|
|
347
365
|
viewBox: "0 0 24 24",
|
|
@@ -363,6 +381,8 @@ function RightIcon() {
|
|
|
363
381
|
let t0;
|
|
364
382
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
365
383
|
t0 = /*#__PURE__*/ jsx("svg", {
|
|
384
|
+
"aria-hidden": "true",
|
|
385
|
+
focusable: "false",
|
|
366
386
|
width: "14",
|
|
367
387
|
height: "14",
|
|
368
388
|
viewBox: "0 0 24 24",
|
|
@@ -384,6 +404,8 @@ function DoubleLeftIcon() {
|
|
|
384
404
|
let t0;
|
|
385
405
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
386
406
|
t0 = /*#__PURE__*/ jsxs("svg", {
|
|
407
|
+
"aria-hidden": "true",
|
|
408
|
+
focusable: "false",
|
|
387
409
|
width: "14",
|
|
388
410
|
height: "14",
|
|
389
411
|
viewBox: "0 0 24 24",
|
|
@@ -410,6 +432,8 @@ function DoubleRightIcon() {
|
|
|
410
432
|
let t0;
|
|
411
433
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
412
434
|
t0 = /*#__PURE__*/ jsxs("svg", {
|
|
435
|
+
"aria-hidden": "true",
|
|
436
|
+
focusable: "false",
|
|
413
437
|
width: "14",
|
|
414
438
|
height: "14",
|
|
415
439
|
viewBox: "0 0 24 24",
|
|
@@ -39,7 +39,8 @@ function EllipsisIcon() {
|
|
|
39
39
|
height: "16",
|
|
40
40
|
viewBox: "0 0 24 24",
|
|
41
41
|
fill: "currentColor",
|
|
42
|
-
"aria-hidden": true,
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
focusable: "false",
|
|
43
44
|
children: [
|
|
44
45
|
/*#__PURE__*/ jsx("circle", {
|
|
45
46
|
cx: "5",
|
|
@@ -240,6 +241,7 @@ function Dropdown(props) {
|
|
|
240
241
|
if ($[47] !== align || $[48] !== content || $[49] !== hoverProps || $[50] !== side || $[51] !== size || $[52] !== t15 || $[53] !== t17 || $[54] !== t18) {
|
|
241
242
|
t19 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Portal, {
|
|
242
243
|
children: /*#__PURE__*/ jsx(TaoPortalScope, {
|
|
244
|
+
asChild: true,
|
|
243
245
|
children: /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dropdown_menu_dbc6754d.Content, {
|
|
244
246
|
"data-tao-menu-content": "",
|
|
245
247
|
"data-tao-dropdown": "",
|
|
@@ -18,7 +18,8 @@ function ChevronRightIcon() {
|
|
|
18
18
|
strokeWidth: "2",
|
|
19
19
|
strokeLinecap: "round",
|
|
20
20
|
strokeLinejoin: "round",
|
|
21
|
-
"aria-hidden": true,
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
focusable: "false",
|
|
22
23
|
children: /*#__PURE__*/ jsx("path", {
|
|
23
24
|
d: "m9 18 6-6-6-6"
|
|
24
25
|
})
|
|
@@ -40,7 +41,8 @@ function CheckIcon() {
|
|
|
40
41
|
strokeWidth: "2.5",
|
|
41
42
|
strokeLinecap: "round",
|
|
42
43
|
strokeLinejoin: "round",
|
|
43
|
-
"aria-hidden": true,
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
focusable: "false",
|
|
44
46
|
children: /*#__PURE__*/ jsx("polyline", {
|
|
45
47
|
points: "20 6 9 17 4 12"
|
|
46
48
|
})
|
|
@@ -58,7 +60,8 @@ function DotIcon() {
|
|
|
58
60
|
height: "16",
|
|
59
61
|
viewBox: "0 0 24 24",
|
|
60
62
|
fill: "currentColor",
|
|
61
|
-
"aria-hidden": true,
|
|
63
|
+
"aria-hidden": "true",
|
|
64
|
+
focusable: "false",
|
|
62
65
|
children: /*#__PURE__*/ jsx("circle", {
|
|
63
66
|
cx: "12",
|
|
64
67
|
cy: "12",
|
|
@@ -179,6 +182,7 @@ function renderMenuItems(items, ctx) {
|
|
|
179
182
|
}),
|
|
180
183
|
/*#__PURE__*/ jsx(P.Portal, {
|
|
181
184
|
children: /*#__PURE__*/ jsx(TaoPortalScope, {
|
|
185
|
+
asChild: true,
|
|
182
186
|
children: /*#__PURE__*/ jsx(P.SubContent, {
|
|
183
187
|
"data-tao-menu-content": "",
|
|
184
188
|
"data-tao-menu-sub-content": "",
|
|
@@ -99,7 +99,7 @@ function StatusIcon(t0) {
|
|
|
99
99
|
strokeWidth: 2,
|
|
100
100
|
strokeLinecap: "round",
|
|
101
101
|
strokeLinejoin: "round",
|
|
102
|
-
"aria-hidden": true
|
|
102
|
+
"aria-hidden=\"true\"": true
|
|
103
103
|
};
|
|
104
104
|
$[0] = t1;
|
|
105
105
|
} else t1 = $[0];
|
|
@@ -110,6 +110,8 @@ function StatusIcon(t0) {
|
|
|
110
110
|
let t2;
|
|
111
111
|
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
112
112
|
t2 = /*#__PURE__*/ jsxs("svg", {
|
|
113
|
+
"aria-hidden": "true",
|
|
114
|
+
focusable: "false",
|
|
113
115
|
...common,
|
|
114
116
|
children: [
|
|
115
117
|
/*#__PURE__*/ jsx("circle", {
|
|
@@ -131,6 +133,8 @@ function StatusIcon(t0) {
|
|
|
131
133
|
let t2;
|
|
132
134
|
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
133
135
|
t2 = /*#__PURE__*/ jsxs("svg", {
|
|
136
|
+
"aria-hidden": "true",
|
|
137
|
+
focusable: "false",
|
|
134
138
|
...common,
|
|
135
139
|
children: [
|
|
136
140
|
/*#__PURE__*/ jsx("circle", {
|
|
@@ -153,6 +157,8 @@ function StatusIcon(t0) {
|
|
|
153
157
|
let t2;
|
|
154
158
|
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
155
159
|
t2 = /*#__PURE__*/ jsxs("svg", {
|
|
160
|
+
"aria-hidden": "true",
|
|
161
|
+
focusable: "false",
|
|
156
162
|
...common,
|
|
157
163
|
children: [
|
|
158
164
|
/*#__PURE__*/ jsx("path", {
|
|
@@ -172,6 +178,8 @@ function StatusIcon(t0) {
|
|
|
172
178
|
let t2;
|
|
173
179
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
174
180
|
t2 = /*#__PURE__*/ jsxs("svg", {
|
|
181
|
+
"aria-hidden": "true",
|
|
182
|
+
focusable: "false",
|
|
175
183
|
...common,
|
|
176
184
|
children: [
|
|
177
185
|
/*#__PURE__*/ jsx("circle", {
|
|
@@ -29,7 +29,8 @@ function ChevronLeft() {
|
|
|
29
29
|
height: "16",
|
|
30
30
|
viewBox: "0 0 16 16",
|
|
31
31
|
fill: "none",
|
|
32
|
-
"aria-hidden": true,
|
|
32
|
+
"aria-hidden": "true",
|
|
33
|
+
focusable: "false",
|
|
33
34
|
children: /*#__PURE__*/ jsx("path", {
|
|
34
35
|
d: "M10 12L6 8l4-4",
|
|
35
36
|
stroke: "currentColor",
|
|
@@ -51,7 +52,8 @@ function ChevronRight() {
|
|
|
51
52
|
height: "16",
|
|
52
53
|
viewBox: "0 0 16 16",
|
|
53
54
|
fill: "none",
|
|
54
|
-
"aria-hidden": true,
|
|
55
|
+
"aria-hidden": "true",
|
|
56
|
+
focusable: "false",
|
|
55
57
|
children: /*#__PURE__*/ jsx("path", {
|
|
56
58
|
d: "M6 4l4 4-4 4",
|
|
57
59
|
stroke: "currentColor",
|
|
@@ -65,7 +67,7 @@ function ChevronRight() {
|
|
|
65
67
|
return t0;
|
|
66
68
|
}
|
|
67
69
|
function Pagination(t0) {
|
|
68
|
-
const $ = c(
|
|
70
|
+
const $ = c(63);
|
|
69
71
|
const { current: currentProp, defaultCurrent: t1, pageSize: pageSizeProp, defaultPageSize: t2, total, onChange, showSizeChanger: t3, pageSizeOptions: t4, showTotal, size, disabled, className, classNames, styles } = t0;
|
|
70
72
|
const defaultCurrent = void 0 === t1 ? 1 : t1;
|
|
71
73
|
const defaultPageSize = void 0 === t2 ? 10 : t2;
|
|
@@ -184,31 +186,21 @@ function Pagination(t0) {
|
|
|
184
186
|
} else t18 = $[29];
|
|
185
187
|
let t19;
|
|
186
188
|
if ($[30] !== classNames?.item || $[31] !== current || $[32] !== goTo || $[33] !== pages || $[34] !== resolvedDisabled || $[35] !== styles?.item) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
children: item
|
|
203
|
-
}, item);
|
|
204
|
-
$[37] = classNames?.item;
|
|
205
|
-
$[38] = current;
|
|
206
|
-
$[39] = goTo;
|
|
207
|
-
$[40] = resolvedDisabled;
|
|
208
|
-
$[41] = styles?.item;
|
|
209
|
-
$[42] = t20;
|
|
210
|
-
} else t20 = $[42];
|
|
211
|
-
t19 = pages.map(t20);
|
|
189
|
+
t19 = pages.map((item, i)=>"ellipsis" === item ? /*#__PURE__*/ jsx("span", {
|
|
190
|
+
"data-tao-pagination-ellipsis": "",
|
|
191
|
+
children: "\xb7\xb7\xb7"
|
|
192
|
+
}, `ellipsis-${pages[i - 1]}-${pages[i + 1]}`) : /*#__PURE__*/ jsx("button", {
|
|
193
|
+
type: "button",
|
|
194
|
+
"data-tao-pagination-btn": "",
|
|
195
|
+
"data-tao-active": item === current || void 0,
|
|
196
|
+
disabled: resolvedDisabled,
|
|
197
|
+
"aria-label": `Page ${item}`,
|
|
198
|
+
"aria-current": item === current ? "page" : void 0,
|
|
199
|
+
onClick: ()=>goTo(item),
|
|
200
|
+
className: classNames?.item,
|
|
201
|
+
style: styles?.item,
|
|
202
|
+
children: item
|
|
203
|
+
}, item));
|
|
212
204
|
$[30] = classNames?.item;
|
|
213
205
|
$[31] = current;
|
|
214
206
|
$[32] = goTo;
|
|
@@ -219,21 +211,21 @@ function Pagination(t0) {
|
|
|
219
211
|
} else t19 = $[36];
|
|
220
212
|
const t20 = resolvedDisabled || current >= totalPages;
|
|
221
213
|
let t21;
|
|
222
|
-
if ($[
|
|
214
|
+
if ($[37] !== current || $[38] !== goTo) {
|
|
223
215
|
t21 = ()=>goTo(current + 1);
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
} else t21 = $[
|
|
216
|
+
$[37] = current;
|
|
217
|
+
$[38] = goTo;
|
|
218
|
+
$[39] = t21;
|
|
219
|
+
} else t21 = $[39];
|
|
228
220
|
const t22 = classNames?.item;
|
|
229
221
|
const t23 = styles?.item;
|
|
230
222
|
let t24;
|
|
231
|
-
if ($[
|
|
223
|
+
if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
|
|
232
224
|
t24 = /*#__PURE__*/ jsx(ChevronRight, {});
|
|
233
|
-
$[
|
|
234
|
-
} else t24 = $[
|
|
225
|
+
$[40] = t24;
|
|
226
|
+
} else t24 = $[40];
|
|
235
227
|
let t25;
|
|
236
|
-
if ($[
|
|
228
|
+
if ($[41] !== t20 || $[42] !== t21 || $[43] !== t22 || $[44] !== t23) {
|
|
237
229
|
t25 = /*#__PURE__*/ jsx("button", {
|
|
238
230
|
type: "button",
|
|
239
231
|
"data-tao-pagination-btn": "",
|
|
@@ -244,14 +236,14 @@ function Pagination(t0) {
|
|
|
244
236
|
style: t23,
|
|
245
237
|
children: t24
|
|
246
238
|
});
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
251
|
-
$[
|
|
252
|
-
} else t25 = $[
|
|
239
|
+
$[41] = t20;
|
|
240
|
+
$[42] = t21;
|
|
241
|
+
$[43] = t22;
|
|
242
|
+
$[44] = t23;
|
|
243
|
+
$[45] = t25;
|
|
244
|
+
} else t25 = $[45];
|
|
253
245
|
let t26;
|
|
254
|
-
if ($[
|
|
246
|
+
if ($[46] !== goTo || $[47] !== pageSize || $[48] !== pageSizeOptions || $[49] !== resolvedDisabled || $[50] !== resolvedSize || $[51] !== showSizeChanger) {
|
|
255
247
|
t26 = showSizeChanger && /*#__PURE__*/ jsx(Select, {
|
|
256
248
|
style: {
|
|
257
249
|
width: "auto"
|
|
@@ -265,16 +257,16 @@ function Pagination(t0) {
|
|
|
265
257
|
disabled: resolvedDisabled,
|
|
266
258
|
size: "large" === resolvedSize ? "medium" : resolvedSize
|
|
267
259
|
});
|
|
268
|
-
$[
|
|
269
|
-
$[
|
|
270
|
-
$[
|
|
271
|
-
$[
|
|
272
|
-
$[
|
|
273
|
-
$[
|
|
274
|
-
$[
|
|
275
|
-
} else t26 = $[
|
|
260
|
+
$[46] = goTo;
|
|
261
|
+
$[47] = pageSize;
|
|
262
|
+
$[48] = pageSizeOptions;
|
|
263
|
+
$[49] = resolvedDisabled;
|
|
264
|
+
$[50] = resolvedSize;
|
|
265
|
+
$[51] = showSizeChanger;
|
|
266
|
+
$[52] = t26;
|
|
267
|
+
} else t26 = $[52];
|
|
276
268
|
let t27;
|
|
277
|
-
if ($[
|
|
269
|
+
if ($[53] !== resolvedSize || $[54] !== t10 || $[55] !== t11 || $[56] !== t12 || $[57] !== t18 || $[58] !== t19 || $[59] !== t25 || $[60] !== t26 || $[61] !== t8) {
|
|
278
270
|
t27 = /*#__PURE__*/ jsxs("nav", {
|
|
279
271
|
"data-tao-pagination": "",
|
|
280
272
|
"data-tao-size": resolvedSize,
|
|
@@ -290,17 +282,17 @@ function Pagination(t0) {
|
|
|
290
282
|
t26
|
|
291
283
|
]
|
|
292
284
|
});
|
|
293
|
-
$[
|
|
294
|
-
$[
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
$[
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
303
|
-
} else t27 = $[
|
|
285
|
+
$[53] = resolvedSize;
|
|
286
|
+
$[54] = t10;
|
|
287
|
+
$[55] = t11;
|
|
288
|
+
$[56] = t12;
|
|
289
|
+
$[57] = t18;
|
|
290
|
+
$[58] = t19;
|
|
291
|
+
$[59] = t25;
|
|
292
|
+
$[60] = t26;
|
|
293
|
+
$[61] = t8;
|
|
294
|
+
$[62] = t27;
|
|
295
|
+
} else t27 = $[62];
|
|
304
296
|
return t27;
|
|
305
297
|
}
|
|
306
298
|
function _temp(opt) {
|
|
@@ -283,9 +283,11 @@ function ScrollArea(t0) {
|
|
|
283
283
|
} else t34 = $[44];
|
|
284
284
|
let t35;
|
|
285
285
|
if ($[45] !== classNames?.scrollbar || $[46] !== classNames?.thumb || $[47] !== scrollState.hasVertical || $[48] !== scrollState.thumbYOffset || $[49] !== scrollState.thumbYRatio || $[50] !== showVertical || $[51] !== styles?.scrollbar || $[52] !== styles?.thumb) {
|
|
286
|
-
t35 = showVertical && scrollState.hasVertical && /*#__PURE__*/ jsx("
|
|
286
|
+
t35 = showVertical && scrollState.hasVertical && /*#__PURE__*/ jsx("button", {
|
|
287
|
+
type: "button",
|
|
287
288
|
"data-tao-scrollbar": "",
|
|
288
289
|
"data-tao-orientation": "vertical",
|
|
290
|
+
"aria-label": "Scroll vertically",
|
|
289
291
|
className: cx(classNames?.scrollbar),
|
|
290
292
|
style: styles?.scrollbar,
|
|
291
293
|
onClick: (e_2)=>handleTrackClick("y", e_2),
|
|
@@ -313,9 +315,11 @@ function ScrollArea(t0) {
|
|
|
313
315
|
} else t35 = $[53];
|
|
314
316
|
let t36;
|
|
315
317
|
if ($[54] !== classNames?.scrollbar || $[55] !== classNames?.thumb || $[56] !== scrollState.hasHorizontal || $[57] !== scrollState.thumbXOffset || $[58] !== scrollState.thumbXRatio || $[59] !== showHorizontal || $[60] !== styles?.scrollbar || $[61] !== styles?.thumb) {
|
|
316
|
-
t36 = showHorizontal && scrollState.hasHorizontal && /*#__PURE__*/ jsx("
|
|
318
|
+
t36 = showHorizontal && scrollState.hasHorizontal && /*#__PURE__*/ jsx("button", {
|
|
319
|
+
type: "button",
|
|
317
320
|
"data-tao-scrollbar": "",
|
|
318
321
|
"data-tao-orientation": "horizontal",
|
|
322
|
+
"aria-label": "Scroll horizontally",
|
|
319
323
|
className: cx(classNames?.scrollbar),
|
|
320
324
|
style: styles?.scrollbar,
|
|
321
325
|
onClick: (e_4)=>handleTrackClick("x", e_4),
|
|
@@ -47,13 +47,17 @@
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
[data-tao-sheet-item] {
|
|
50
|
+
width: 100%;
|
|
50
51
|
min-height: 48px;
|
|
51
52
|
padding-inline: var(--tao-padding);
|
|
52
53
|
font-family: var(--tao-font-family);
|
|
53
54
|
font-size: var(--tao-font-size-base);
|
|
55
|
+
text-align: start;
|
|
54
56
|
color: var(--tao-color-text);
|
|
55
57
|
cursor: pointer;
|
|
56
58
|
-webkit-tap-highlight-color: transparent;
|
|
59
|
+
background: none;
|
|
60
|
+
border: 0;
|
|
57
61
|
align-items: center;
|
|
58
62
|
display: flex;
|
|
59
63
|
}
|
|
@@ -44,12 +44,14 @@ function MobileSelectContent({ options, value, onChange, showSearch, filterOptio
|
|
|
44
44
|
const renderItem = (opt)=>{
|
|
45
45
|
const index = optIndex++;
|
|
46
46
|
const isSelected = opt.value === value;
|
|
47
|
-
return /*#__PURE__*/ jsxs("
|
|
47
|
+
return /*#__PURE__*/ jsxs("button", {
|
|
48
|
+
type: "button",
|
|
48
49
|
"data-tao-sheet-item": "",
|
|
49
50
|
"data-tao-selected": isSelected || void 0,
|
|
50
51
|
"data-tao-disabled": opt.disabled || void 0,
|
|
52
|
+
disabled: opt.disabled,
|
|
51
53
|
onClick: ()=>{
|
|
52
|
-
|
|
54
|
+
handleSelect(opt.value);
|
|
53
55
|
},
|
|
54
56
|
"data-tao-has-desc": null != opt.description || void 0,
|
|
55
57
|
children: [
|
|
@@ -103,8 +105,7 @@ function MobileSelectContent({ options, value, onChange, showSearch, filterOptio
|
|
|
103
105
|
"data-tao-sheet-search-input": "",
|
|
104
106
|
value: search,
|
|
105
107
|
onChange: (e)=>setSearch(e.target.value),
|
|
106
|
-
placeholder: "Search..."
|
|
107
|
-
autoFocus: true
|
|
108
|
+
placeholder: "Search..."
|
|
108
109
|
})
|
|
109
110
|
]
|
|
110
111
|
}),
|
|
@@ -173,6 +174,8 @@ function SearchIcon() {
|
|
|
173
174
|
let t0;
|
|
174
175
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
175
176
|
t0 = /*#__PURE__*/ jsxs("svg", {
|
|
177
|
+
"aria-hidden": "true",
|
|
178
|
+
focusable: "false",
|
|
176
179
|
width: "14",
|
|
177
180
|
height: "14",
|
|
178
181
|
viewBox: "0 0 24 24",
|
|
@@ -201,6 +204,8 @@ function CheckIcon() {
|
|
|
201
204
|
let t0;
|
|
202
205
|
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
203
206
|
t0 = /*#__PURE__*/ jsx("svg", {
|
|
207
|
+
"aria-hidden": "true",
|
|
208
|
+
focusable: "false",
|
|
204
209
|
width: "18",
|
|
205
210
|
height: "18",
|
|
206
211
|
viewBox: "0 0 24 24",
|
|
@@ -373,6 +373,7 @@ function Select(props) {
|
|
|
373
373
|
/*#__PURE__*/ jsx(__rspack_external__radix_ui_react_select_36a82244.Portal, {
|
|
374
374
|
container: container,
|
|
375
375
|
children: /*#__PURE__*/ jsx(TaoPortalScope, {
|
|
376
|
+
asChild: true,
|
|
376
377
|
children: /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_select_36a82244.Content, {
|
|
377
378
|
"data-tao-select-content": "",
|
|
378
379
|
"data-tao-popup-width": false === popupMatchSelectWidth ? 'content' : void 0,
|
|
@@ -403,6 +404,7 @@ function ChevronDownIcon() {
|
|
|
403
404
|
strokeLinecap: "round",
|
|
404
405
|
strokeLinejoin: "round",
|
|
405
406
|
"aria-hidden": "true",
|
|
407
|
+
focusable: "false",
|
|
406
408
|
role: "presentation",
|
|
407
409
|
children: /*#__PURE__*/ jsx("path", {
|
|
408
410
|
d: "m6 9 6 6 6-6"
|
|
@@ -426,6 +428,7 @@ function ChevronsUpDownIcon() {
|
|
|
426
428
|
strokeLinecap: "round",
|
|
427
429
|
strokeLinejoin: "round",
|
|
428
430
|
"aria-hidden": "true",
|
|
431
|
+
focusable: "false",
|
|
429
432
|
children: /*#__PURE__*/ jsx("path", {
|
|
430
433
|
d: "m7 15 5 5 5-5M7 9l5-5 5 5"
|
|
431
434
|
})
|
|
@@ -448,6 +451,7 @@ function CheckIcon() {
|
|
|
448
451
|
strokeLinecap: "round",
|
|
449
452
|
strokeLinejoin: "round",
|
|
450
453
|
"aria-hidden": "true",
|
|
454
|
+
focusable: "false",
|
|
451
455
|
role: "presentation",
|
|
452
456
|
children: /*#__PURE__*/ jsx("polyline", {
|
|
453
457
|
points: "20 6 9 17 4 12"
|
|
@@ -471,6 +475,7 @@ function CloseIcon() {
|
|
|
471
475
|
strokeLinecap: "round",
|
|
472
476
|
strokeLinejoin: "round",
|
|
473
477
|
"aria-hidden": "true",
|
|
478
|
+
focusable: "false",
|
|
474
479
|
role: "presentation",
|
|
475
480
|
children: /*#__PURE__*/ jsx("path", {
|
|
476
481
|
d: "M18 6 6 18M6 6l12 12"
|
|
@@ -494,6 +499,7 @@ function SearchIcon() {
|
|
|
494
499
|
strokeLinecap: "round",
|
|
495
500
|
strokeLinejoin: "round",
|
|
496
501
|
"aria-hidden": "true",
|
|
502
|
+
focusable: "false",
|
|
497
503
|
role: "presentation",
|
|
498
504
|
children: [
|
|
499
505
|
/*#__PURE__*/ jsx("circle", {
|
|
@@ -525,6 +531,7 @@ function LoadingIcon() {
|
|
|
525
531
|
strokeLinecap: "round",
|
|
526
532
|
strokeLinejoin: "round",
|
|
527
533
|
"aria-hidden": "true",
|
|
534
|
+
focusable: "false",
|
|
528
535
|
role: "presentation",
|
|
529
536
|
children: /*#__PURE__*/ jsx("path", {
|
|
530
537
|
d: "M21 12a9 9 0 1 1-6.219-8.56"
|
|
@@ -211,7 +211,8 @@ function DefaultIndicator() {
|
|
|
211
211
|
"data-tao-spinner-svg": "",
|
|
212
212
|
viewBox: "0 0 50 50",
|
|
213
213
|
fill: "none",
|
|
214
|
-
"aria-hidden": true,
|
|
214
|
+
"aria-hidden": "true",
|
|
215
|
+
focusable: "false",
|
|
215
216
|
children: /*#__PURE__*/ jsx("circle", {
|
|
216
217
|
cx: "25",
|
|
217
218
|
cy: "25",
|