@rockshin/tao-ui 0.0.9 → 0.0.11

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/date-picker/calendar/calendar-grid.js +21 -17
  6. package/dist/components/date-picker/calendar/calendar-header.js +8 -0
  7. package/dist/components/date-picker/calendar/month-grid.js +1 -1
  8. package/dist/components/date-picker/calendar/time-panel.js +36 -41
  9. package/dist/components/date-picker/date-picker.css +30 -16
  10. package/dist/components/date-picker/date-picker.js +240 -223
  11. package/dist/components/date-picker/range-picker.js +25 -2
  12. package/dist/components/drawer/drawer.js +2 -0
  13. package/dist/components/dropdown/dropdown.js +2 -1
  14. package/dist/components/form-field/form.css +0 -4
  15. package/dist/components/form-section/form-section.js +2 -2
  16. package/dist/components/menu/menu-render.js +6 -3
  17. package/dist/components/modal/confirm-dialog.js +9 -1
  18. package/dist/components/modal/modal.js +2 -0
  19. package/dist/components/pagination/pagination.js +56 -64
  20. package/dist/components/scroll-area/scroll-area.css +3 -0
  21. package/dist/components/scroll-area/scroll-area.js +6 -2
  22. package/dist/components/select/mobile-select.css +4 -0
  23. package/dist/components/select/mobile-select.js +9 -4
  24. package/dist/components/select/select.js +6 -0
  25. package/dist/components/spinner/spinner.js +2 -1
  26. package/dist/components/splitter/splitter.js +165 -149
  27. package/dist/components/switch/switch.js +2 -0
  28. package/dist/components/table/table.css +14 -0
  29. package/dist/components/table/table.js +14 -14
  30. package/dist/components/tabs/tabs.js +84 -87
  31. package/dist/components/tag/tag.js +1 -0
  32. package/dist/components/textarea/textarea.css +21 -3
  33. package/dist/docs/component-doc.d.ts +28 -0
  34. package/dist/docs/component-doc.js +0 -0
  35. package/dist/docs/component-docs.d.ts +147 -0
  36. package/dist/docs/component-docs.js +70 -0
  37. package/dist/docs/components/breadcrumb.doc.d.ts +23 -0
  38. package/dist/docs/components/breadcrumb.doc.js +53 -0
  39. package/dist/docs/components/button.doc.d.ts +29 -0
  40. package/dist/docs/components/button.doc.js +62 -0
  41. package/dist/docs/components/checkbox.doc.d.ts +23 -0
  42. package/dist/docs/components/checkbox.doc.js +60 -0
  43. package/dist/docs/components/collapsible.doc.d.ts +18 -0
  44. package/dist/docs/components/collapsible.doc.js +39 -0
  45. package/dist/docs/components/context-menu.doc.d.ts +18 -0
  46. package/dist/docs/components/context-menu.doc.js +40 -0
  47. package/dist/docs/components/date-picker.doc.d.ts +18 -0
  48. package/dist/docs/components/date-picker.doc.js +43 -0
  49. package/dist/docs/components/drawer.doc.d.ts +18 -0
  50. package/dist/docs/components/drawer.doc.js +42 -0
  51. package/dist/docs/components/dropdown.doc.d.ts +18 -0
  52. package/dist/docs/components/dropdown.doc.js +42 -0
  53. package/dist/docs/components/form-actions.doc.d.ts +17 -0
  54. package/dist/docs/components/form-actions.doc.js +35 -0
  55. package/dist/docs/components/form-field.doc.d.ts +17 -0
  56. package/dist/docs/components/form-field.doc.js +39 -0
  57. package/dist/docs/components/form-layout.doc.d.ts +16 -0
  58. package/dist/docs/components/form-layout.doc.js +31 -0
  59. package/dist/docs/components/form-section.doc.d.ts +17 -0
  60. package/dist/docs/components/form-section.doc.js +38 -0
  61. package/dist/docs/components/headless-input-number.doc.d.ts +16 -0
  62. package/dist/docs/components/headless-input-number.doc.js +36 -0
  63. package/dist/docs/components/input-number.doc.d.ts +18 -0
  64. package/dist/docs/components/input-number.doc.js +41 -0
  65. package/dist/docs/components/input.doc.d.ts +17 -0
  66. package/dist/docs/components/input.doc.js +38 -0
  67. package/dist/docs/components/modal.doc.d.ts +18 -0
  68. package/dist/docs/components/modal.doc.js +43 -0
  69. package/dist/docs/components/pagination.doc.d.ts +17 -0
  70. package/dist/docs/components/pagination.doc.js +37 -0
  71. package/dist/docs/components/radio.doc.d.ts +18 -0
  72. package/dist/docs/components/radio.doc.js +43 -0
  73. package/dist/docs/components/range-picker.doc.d.ts +17 -0
  74. package/dist/docs/components/range-picker.doc.js +39 -0
  75. package/dist/docs/components/scroll-area.doc.d.ts +17 -0
  76. package/dist/docs/components/scroll-area.doc.js +36 -0
  77. package/dist/docs/components/select.doc.d.ts +18 -0
  78. package/dist/docs/components/select.doc.js +43 -0
  79. package/dist/docs/components/spinner.doc.d.ts +18 -0
  80. package/dist/docs/components/spinner.doc.js +36 -0
  81. package/dist/docs/components/splitter.doc.d.ts +17 -0
  82. package/dist/docs/components/splitter.doc.js +36 -0
  83. package/dist/docs/components/stack.doc.d.ts +16 -0
  84. package/dist/docs/components/stack.doc.js +31 -0
  85. package/dist/docs/components/switch.doc.d.ts +17 -0
  86. package/dist/docs/components/switch.doc.js +35 -0
  87. package/dist/docs/components/table.doc.d.ts +18 -0
  88. package/dist/docs/components/table.doc.js +46 -0
  89. package/dist/docs/components/tabs.doc.d.ts +18 -0
  90. package/dist/docs/components/tabs.doc.js +39 -0
  91. package/dist/docs/components/tag.doc.d.ts +18 -0
  92. package/dist/docs/components/tag.doc.js +41 -0
  93. package/dist/docs/components/tao-provider.doc.d.ts +22 -0
  94. package/dist/docs/components/tao-provider.doc.js +60 -0
  95. package/dist/docs/components/textarea.doc.d.ts +17 -0
  96. package/dist/docs/components/textarea.doc.js +35 -0
  97. package/dist/docs/index.d.ts +2 -0
  98. package/dist/docs/index.js +1 -0
  99. package/dist/index.d.ts +35 -33
  100. package/dist/index.js +2 -0
  101. package/dist/provider/tao-provider.js +93 -49
  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": "",
@@ -288,6 +299,8 @@ function CalendarIcon() {
288
299
  let t0;
289
300
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
290
301
  t0 = /*#__PURE__*/ jsxs("svg", {
302
+ "aria-hidden": "true",
303
+ focusable: "false",
291
304
  width: "16",
292
305
  height: "16",
293
306
  viewBox: "0 0 24 24",
@@ -321,6 +334,8 @@ function CloseIcon() {
321
334
  let t0;
322
335
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
323
336
  t0 = /*#__PURE__*/ jsx("svg", {
337
+ "aria-hidden": "true",
338
+ focusable: "false",
324
339
  width: "14",
325
340
  height: "14",
326
341
  viewBox: "0 0 24 24",
@@ -342,6 +357,8 @@ function LeftIcon() {
342
357
  let t0;
343
358
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
344
359
  t0 = /*#__PURE__*/ jsx("svg", {
360
+ "aria-hidden": "true",
361
+ focusable: "false",
345
362
  width: "14",
346
363
  height: "14",
347
364
  viewBox: "0 0 24 24",
@@ -363,6 +380,8 @@ function RightIcon() {
363
380
  let t0;
364
381
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
365
382
  t0 = /*#__PURE__*/ jsx("svg", {
383
+ "aria-hidden": "true",
384
+ focusable: "false",
366
385
  width: "14",
367
386
  height: "14",
368
387
  viewBox: "0 0 24 24",
@@ -384,6 +403,8 @@ function DoubleLeftIcon() {
384
403
  let t0;
385
404
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
386
405
  t0 = /*#__PURE__*/ jsxs("svg", {
406
+ "aria-hidden": "true",
407
+ focusable: "false",
387
408
  width: "14",
388
409
  height: "14",
389
410
  viewBox: "0 0 24 24",
@@ -410,6 +431,8 @@ function DoubleRightIcon() {
410
431
  let t0;
411
432
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
412
433
  t0 = /*#__PURE__*/ jsxs("svg", {
434
+ "aria-hidden": "true",
435
+ focusable: "false",
413
436
  width: "14",
414
437
  height: "14",
415
438
  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",
@@ -31,10 +31,7 @@
31
31
  }
32
32
 
33
33
  [data-tao-form-section] {
34
- border: none;
35
34
  flex-direction: column;
36
- margin: 0;
37
- padding: 0;
38
35
  display: flex;
39
36
  }
40
37
 
@@ -53,7 +50,6 @@
53
50
  font-size: var(--tao-font-size-lg);
54
51
  font-weight: var(--tao-font-weight-strong);
55
52
  color: var(--tao-color-text);
56
- padding: 0;
57
53
  line-height: 1.25;
58
54
  }
59
55
 
@@ -31,7 +31,7 @@ function FormSection(t0) {
31
31
  style: styles?.header,
32
32
  "data-tao-form-section-header": "",
33
33
  children: [
34
- title && /*#__PURE__*/ jsx("legend", {
34
+ title && /*#__PURE__*/ jsx("div", {
35
35
  className: classNames?.title,
36
36
  style: styles?.title,
37
37
  "data-tao-form-section-title": "",
@@ -72,7 +72,7 @@ function FormSection(t0) {
72
72
  } else t8 = $[18];
73
73
  let t9;
74
74
  if ($[19] !== t2 || $[20] !== t4 || $[21] !== t5 || $[22] !== t8) {
75
- t9 = /*#__PURE__*/ jsxs("fieldset", {
75
+ t9 = /*#__PURE__*/ jsxs("section", {
76
76
  className: t2,
77
77
  style: t4,
78
78
  "data-tao-form-section": "",
@@ -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",
@@ -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",
@@ -403,6 +403,7 @@ function ChevronDownIcon() {
403
403
  strokeLinecap: "round",
404
404
  strokeLinejoin: "round",
405
405
  "aria-hidden": "true",
406
+ focusable: "false",
406
407
  role: "presentation",
407
408
  children: /*#__PURE__*/ jsx("path", {
408
409
  d: "m6 9 6 6 6-6"
@@ -426,6 +427,7 @@ function ChevronsUpDownIcon() {
426
427
  strokeLinecap: "round",
427
428
  strokeLinejoin: "round",
428
429
  "aria-hidden": "true",
430
+ focusable: "false",
429
431
  children: /*#__PURE__*/ jsx("path", {
430
432
  d: "m7 15 5 5 5-5M7 9l5-5 5 5"
431
433
  })
@@ -448,6 +450,7 @@ function CheckIcon() {
448
450
  strokeLinecap: "round",
449
451
  strokeLinejoin: "round",
450
452
  "aria-hidden": "true",
453
+ focusable: "false",
451
454
  role: "presentation",
452
455
  children: /*#__PURE__*/ jsx("polyline", {
453
456
  points: "20 6 9 17 4 12"
@@ -471,6 +474,7 @@ function CloseIcon() {
471
474
  strokeLinecap: "round",
472
475
  strokeLinejoin: "round",
473
476
  "aria-hidden": "true",
477
+ focusable: "false",
474
478
  role: "presentation",
475
479
  children: /*#__PURE__*/ jsx("path", {
476
480
  d: "M18 6 6 18M6 6l12 12"
@@ -494,6 +498,7 @@ function SearchIcon() {
494
498
  strokeLinecap: "round",
495
499
  strokeLinejoin: "round",
496
500
  "aria-hidden": "true",
501
+ focusable: "false",
497
502
  role: "presentation",
498
503
  children: [
499
504
  /*#__PURE__*/ jsx("circle", {
@@ -525,6 +530,7 @@ function LoadingIcon() {
525
530
  strokeLinecap: "round",
526
531
  strokeLinejoin: "round",
527
532
  "aria-hidden": "true",
533
+ focusable: "false",
528
534
  role: "presentation",
529
535
  children: /*#__PURE__*/ jsx("path", {
530
536
  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",