@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.
Files changed (106) hide show
  1. package/component-manifest.json +764 -0
  2. package/dist/components/breadcrumb/breadcrumb.css +4 -0
  3. package/dist/components/breadcrumb/breadcrumb.js +8 -6
  4. package/dist/components/checkbox/checkbox.js +4 -0
  5. package/dist/components/context-menu/context-menu.js +1 -0
  6. package/dist/components/date-picker/calendar/calendar-grid.js +21 -17
  7. package/dist/components/date-picker/calendar/calendar-header.js +8 -0
  8. package/dist/components/date-picker/calendar/month-grid.js +1 -1
  9. package/dist/components/date-picker/calendar/time-panel.js +36 -41
  10. package/dist/components/date-picker/date-picker.css +30 -16
  11. package/dist/components/date-picker/date-picker.js +241 -223
  12. package/dist/components/date-picker/range-picker.js +26 -2
  13. package/dist/components/drawer/drawer.js +2 -0
  14. package/dist/components/dropdown/dropdown.js +3 -1
  15. package/dist/components/menu/menu-render.js +7 -3
  16. package/dist/components/modal/confirm-dialog.js +9 -1
  17. package/dist/components/modal/modal.js +2 -0
  18. package/dist/components/pagination/pagination.js +56 -64
  19. package/dist/components/scroll-area/scroll-area.css +3 -0
  20. package/dist/components/scroll-area/scroll-area.js +6 -2
  21. package/dist/components/select/mobile-select.css +4 -0
  22. package/dist/components/select/mobile-select.js +9 -4
  23. package/dist/components/select/select.js +7 -0
  24. package/dist/components/spinner/spinner.js +2 -1
  25. package/dist/components/splitter/splitter.js +165 -149
  26. package/dist/components/switch/switch.js +2 -0
  27. package/dist/components/table/table.css +14 -0
  28. package/dist/components/table/table.js +14 -14
  29. package/dist/components/tabs/tabs.js +84 -87
  30. package/dist/components/tag/tag.js +1 -0
  31. package/dist/components/textarea/textarea.css +21 -3
  32. package/dist/docs/component-doc.d.ts +28 -0
  33. package/dist/docs/component-doc.js +0 -0
  34. package/dist/docs/component-docs.d.ts +147 -0
  35. package/dist/docs/component-docs.js +70 -0
  36. package/dist/docs/components/breadcrumb.doc.d.ts +23 -0
  37. package/dist/docs/components/breadcrumb.doc.js +53 -0
  38. package/dist/docs/components/button.doc.d.ts +29 -0
  39. package/dist/docs/components/button.doc.js +62 -0
  40. package/dist/docs/components/checkbox.doc.d.ts +23 -0
  41. package/dist/docs/components/checkbox.doc.js +60 -0
  42. package/dist/docs/components/collapsible.doc.d.ts +18 -0
  43. package/dist/docs/components/collapsible.doc.js +39 -0
  44. package/dist/docs/components/context-menu.doc.d.ts +18 -0
  45. package/dist/docs/components/context-menu.doc.js +40 -0
  46. package/dist/docs/components/date-picker.doc.d.ts +18 -0
  47. package/dist/docs/components/date-picker.doc.js +43 -0
  48. package/dist/docs/components/drawer.doc.d.ts +18 -0
  49. package/dist/docs/components/drawer.doc.js +42 -0
  50. package/dist/docs/components/dropdown.doc.d.ts +18 -0
  51. package/dist/docs/components/dropdown.doc.js +42 -0
  52. package/dist/docs/components/form-actions.doc.d.ts +17 -0
  53. package/dist/docs/components/form-actions.doc.js +35 -0
  54. package/dist/docs/components/form-field.doc.d.ts +17 -0
  55. package/dist/docs/components/form-field.doc.js +39 -0
  56. package/dist/docs/components/form-layout.doc.d.ts +16 -0
  57. package/dist/docs/components/form-layout.doc.js +31 -0
  58. package/dist/docs/components/form-section.doc.d.ts +17 -0
  59. package/dist/docs/components/form-section.doc.js +38 -0
  60. package/dist/docs/components/headless-input-number.doc.d.ts +16 -0
  61. package/dist/docs/components/headless-input-number.doc.js +36 -0
  62. package/dist/docs/components/input-number.doc.d.ts +18 -0
  63. package/dist/docs/components/input-number.doc.js +41 -0
  64. package/dist/docs/components/input.doc.d.ts +17 -0
  65. package/dist/docs/components/input.doc.js +38 -0
  66. package/dist/docs/components/modal.doc.d.ts +18 -0
  67. package/dist/docs/components/modal.doc.js +43 -0
  68. package/dist/docs/components/pagination.doc.d.ts +17 -0
  69. package/dist/docs/components/pagination.doc.js +37 -0
  70. package/dist/docs/components/radio.doc.d.ts +18 -0
  71. package/dist/docs/components/radio.doc.js +43 -0
  72. package/dist/docs/components/range-picker.doc.d.ts +17 -0
  73. package/dist/docs/components/range-picker.doc.js +39 -0
  74. package/dist/docs/components/scroll-area.doc.d.ts +17 -0
  75. package/dist/docs/components/scroll-area.doc.js +36 -0
  76. package/dist/docs/components/select.doc.d.ts +18 -0
  77. package/dist/docs/components/select.doc.js +43 -0
  78. package/dist/docs/components/spinner.doc.d.ts +18 -0
  79. package/dist/docs/components/spinner.doc.js +36 -0
  80. package/dist/docs/components/splitter.doc.d.ts +17 -0
  81. package/dist/docs/components/splitter.doc.js +36 -0
  82. package/dist/docs/components/stack.doc.d.ts +16 -0
  83. package/dist/docs/components/stack.doc.js +31 -0
  84. package/dist/docs/components/switch.doc.d.ts +17 -0
  85. package/dist/docs/components/switch.doc.js +35 -0
  86. package/dist/docs/components/table.doc.d.ts +18 -0
  87. package/dist/docs/components/table.doc.js +46 -0
  88. package/dist/docs/components/tabs.doc.d.ts +18 -0
  89. package/dist/docs/components/tabs.doc.js +39 -0
  90. package/dist/docs/components/tag.doc.d.ts +18 -0
  91. package/dist/docs/components/tag.doc.js +41 -0
  92. package/dist/docs/components/tao-provider.doc.d.ts +22 -0
  93. package/dist/docs/components/tao-provider.doc.js +60 -0
  94. package/dist/docs/components/textarea.doc.d.ts +17 -0
  95. package/dist/docs/components/textarea.doc.js +35 -0
  96. package/dist/docs/index.d.ts +2 -0
  97. package/dist/docs/index.js +1 -0
  98. package/dist/index.d.ts +35 -33
  99. package/dist/index.js +2 -0
  100. package/dist/provider/tao-provider.d.ts +9 -1
  101. package/dist/provider/tao-provider.js +129 -61
  102. package/dist/theme/theme.css +46 -46
  103. package/dist/theme/tokens.d.ts +4 -0
  104. package/dist/theme/tokens.js +108 -0
  105. package/llms.txt +402 -45
  106. 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: handleClear,
241
- role: "button",
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",
@@ -367,6 +367,8 @@ function CloseIcon() {
367
367
  let t0;
368
368
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
369
369
  t0 = /*#__PURE__*/ jsx("svg", {
370
+ "aria-hidden": "true",
371
+ focusable: "false",
370
372
  width: "16",
371
373
  height: "16",
372
374
  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", {
@@ -343,6 +343,8 @@ function CloseIcon() {
343
343
  let t0;
344
344
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
345
345
  t0 = /*#__PURE__*/ jsx("svg", {
346
+ "aria-hidden": "true",
347
+ focusable: "false",
346
348
  width: "16",
347
349
  height: "16",
348
350
  viewBox: "0 0 24 24",
@@ -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(69);
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
- let t20;
188
- if ($[37] !== classNames?.item || $[38] !== current || $[39] !== goTo || $[40] !== resolvedDisabled || $[41] !== styles?.item) {
189
- t20 = (item, i)=>"ellipsis" === item ? /*#__PURE__*/ jsx("span", {
190
- "data-tao-pagination-ellipsis": "",
191
- children: "\xb7\xb7\xb7"
192
- }, `e${i}`) : /*#__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);
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 ($[43] !== current || $[44] !== goTo) {
214
+ if ($[37] !== current || $[38] !== goTo) {
223
215
  t21 = ()=>goTo(current + 1);
224
- $[43] = current;
225
- $[44] = goTo;
226
- $[45] = t21;
227
- } else t21 = $[45];
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 ($[46] === Symbol.for("react.memo_cache_sentinel")) {
223
+ if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
232
224
  t24 = /*#__PURE__*/ jsx(ChevronRight, {});
233
- $[46] = t24;
234
- } else t24 = $[46];
225
+ $[40] = t24;
226
+ } else t24 = $[40];
235
227
  let t25;
236
- if ($[47] !== t20 || $[48] !== t21 || $[49] !== t22 || $[50] !== t23) {
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
- $[47] = t20;
248
- $[48] = t21;
249
- $[49] = t22;
250
- $[50] = t23;
251
- $[51] = t25;
252
- } else t25 = $[51];
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 ($[52] !== goTo || $[53] !== pageSize || $[54] !== pageSizeOptions || $[55] !== resolvedDisabled || $[56] !== resolvedSize || $[57] !== showSizeChanger) {
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
- $[52] = goTo;
269
- $[53] = pageSize;
270
- $[54] = pageSizeOptions;
271
- $[55] = resolvedDisabled;
272
- $[56] = resolvedSize;
273
- $[57] = showSizeChanger;
274
- $[58] = t26;
275
- } else t26 = $[58];
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 ($[59] !== resolvedSize || $[60] !== t10 || $[61] !== t11 || $[62] !== t12 || $[63] !== t18 || $[64] !== t19 || $[65] !== t25 || $[66] !== t26 || $[67] !== t8) {
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
- $[59] = resolvedSize;
294
- $[60] = t10;
295
- $[61] = t11;
296
- $[62] = t12;
297
- $[63] = t18;
298
- $[64] = t19;
299
- $[65] = t25;
300
- $[66] = t26;
301
- $[67] = t8;
302
- $[68] = t27;
303
- } else t27 = $[68];
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) {
@@ -21,6 +21,9 @@
21
21
  touch-action: none;
22
22
  transition: opacity var(--tao-motion-duration-mid) var(--tao-motion-ease-out);
23
23
  z-index: 2;
24
+ background: none;
25
+ border: 0;
26
+ padding: 0;
24
27
  position: absolute;
25
28
  }
26
29
 
@@ -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("div", {
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("div", {
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("div", {
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
- if (!opt.disabled) handleSelect(opt.value);
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",