@rockshin/tao-ui 0.0.10 → 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 (104) 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/menu/menu-render.js +6 -3
  15. package/dist/components/modal/confirm-dialog.js +9 -1
  16. package/dist/components/modal/modal.js +2 -0
  17. package/dist/components/pagination/pagination.js +56 -64
  18. package/dist/components/scroll-area/scroll-area.css +3 -0
  19. package/dist/components/scroll-area/scroll-area.js +6 -2
  20. package/dist/components/select/mobile-select.css +4 -0
  21. package/dist/components/select/mobile-select.js +9 -4
  22. package/dist/components/select/select.js +6 -0
  23. package/dist/components/spinner/spinner.js +2 -1
  24. package/dist/components/splitter/splitter.js +165 -149
  25. package/dist/components/switch/switch.js +2 -0
  26. package/dist/components/table/table.css +14 -0
  27. package/dist/components/table/table.js +14 -14
  28. package/dist/components/tabs/tabs.js +84 -87
  29. package/dist/components/tag/tag.js +1 -0
  30. package/dist/components/textarea/textarea.css +21 -3
  31. package/dist/docs/component-doc.d.ts +28 -0
  32. package/dist/docs/component-doc.js +0 -0
  33. package/dist/docs/component-docs.d.ts +147 -0
  34. package/dist/docs/component-docs.js +70 -0
  35. package/dist/docs/components/breadcrumb.doc.d.ts +23 -0
  36. package/dist/docs/components/breadcrumb.doc.js +53 -0
  37. package/dist/docs/components/button.doc.d.ts +29 -0
  38. package/dist/docs/components/button.doc.js +62 -0
  39. package/dist/docs/components/checkbox.doc.d.ts +23 -0
  40. package/dist/docs/components/checkbox.doc.js +60 -0
  41. package/dist/docs/components/collapsible.doc.d.ts +18 -0
  42. package/dist/docs/components/collapsible.doc.js +39 -0
  43. package/dist/docs/components/context-menu.doc.d.ts +18 -0
  44. package/dist/docs/components/context-menu.doc.js +40 -0
  45. package/dist/docs/components/date-picker.doc.d.ts +18 -0
  46. package/dist/docs/components/date-picker.doc.js +43 -0
  47. package/dist/docs/components/drawer.doc.d.ts +18 -0
  48. package/dist/docs/components/drawer.doc.js +42 -0
  49. package/dist/docs/components/dropdown.doc.d.ts +18 -0
  50. package/dist/docs/components/dropdown.doc.js +42 -0
  51. package/dist/docs/components/form-actions.doc.d.ts +17 -0
  52. package/dist/docs/components/form-actions.doc.js +35 -0
  53. package/dist/docs/components/form-field.doc.d.ts +17 -0
  54. package/dist/docs/components/form-field.doc.js +39 -0
  55. package/dist/docs/components/form-layout.doc.d.ts +16 -0
  56. package/dist/docs/components/form-layout.doc.js +31 -0
  57. package/dist/docs/components/form-section.doc.d.ts +17 -0
  58. package/dist/docs/components/form-section.doc.js +38 -0
  59. package/dist/docs/components/headless-input-number.doc.d.ts +16 -0
  60. package/dist/docs/components/headless-input-number.doc.js +36 -0
  61. package/dist/docs/components/input-number.doc.d.ts +18 -0
  62. package/dist/docs/components/input-number.doc.js +41 -0
  63. package/dist/docs/components/input.doc.d.ts +17 -0
  64. package/dist/docs/components/input.doc.js +38 -0
  65. package/dist/docs/components/modal.doc.d.ts +18 -0
  66. package/dist/docs/components/modal.doc.js +43 -0
  67. package/dist/docs/components/pagination.doc.d.ts +17 -0
  68. package/dist/docs/components/pagination.doc.js +37 -0
  69. package/dist/docs/components/radio.doc.d.ts +18 -0
  70. package/dist/docs/components/radio.doc.js +43 -0
  71. package/dist/docs/components/range-picker.doc.d.ts +17 -0
  72. package/dist/docs/components/range-picker.doc.js +39 -0
  73. package/dist/docs/components/scroll-area.doc.d.ts +17 -0
  74. package/dist/docs/components/scroll-area.doc.js +36 -0
  75. package/dist/docs/components/select.doc.d.ts +18 -0
  76. package/dist/docs/components/select.doc.js +43 -0
  77. package/dist/docs/components/spinner.doc.d.ts +18 -0
  78. package/dist/docs/components/spinner.doc.js +36 -0
  79. package/dist/docs/components/splitter.doc.d.ts +17 -0
  80. package/dist/docs/components/splitter.doc.js +36 -0
  81. package/dist/docs/components/stack.doc.d.ts +16 -0
  82. package/dist/docs/components/stack.doc.js +31 -0
  83. package/dist/docs/components/switch.doc.d.ts +17 -0
  84. package/dist/docs/components/switch.doc.js +35 -0
  85. package/dist/docs/components/table.doc.d.ts +18 -0
  86. package/dist/docs/components/table.doc.js +46 -0
  87. package/dist/docs/components/tabs.doc.d.ts +18 -0
  88. package/dist/docs/components/tabs.doc.js +39 -0
  89. package/dist/docs/components/tag.doc.d.ts +18 -0
  90. package/dist/docs/components/tag.doc.js +41 -0
  91. package/dist/docs/components/tao-provider.doc.d.ts +22 -0
  92. package/dist/docs/components/tao-provider.doc.js +60 -0
  93. package/dist/docs/components/textarea.doc.d.ts +17 -0
  94. package/dist/docs/components/textarea.doc.js +35 -0
  95. package/dist/docs/index.d.ts +2 -0
  96. package/dist/docs/index.js +1 -0
  97. package/dist/index.d.ts +35 -33
  98. package/dist/index.js +2 -0
  99. package/dist/provider/tao-provider.js +92 -49
  100. package/dist/theme/theme.css +46 -46
  101. package/dist/theme/tokens.d.ts +4 -0
  102. package/dist/theme/tokens.js +108 -0
  103. package/llms.txt +402 -45
  104. package/package.json +4 -1
@@ -30,7 +30,8 @@ function CollapseIcon(t0) {
30
30
  height: "12",
31
31
  viewBox: "0 0 12 12",
32
32
  fill: "none",
33
- "aria-hidden": true,
33
+ "aria-hidden": "true",
34
+ focusable: "false",
34
35
  "data-tao-collapse-direction": direction,
35
36
  children: t1
36
37
  });
@@ -43,43 +44,46 @@ function Panel(_props) {
43
44
  return null;
44
45
  }
45
46
  function Splitter(t0) {
46
- const $ = c(66);
47
+ const $ = c(64);
47
48
  const { orientation: t1, onResize, onResizeEnd, onResizeStart, className, classNames, styles, children } = t0;
48
49
  const orientation = void 0 === t1 ? "horizontal" : t1;
49
50
  const containerRef = useRef(null);
50
- let panelChildren;
51
- let panels;
51
+ let t2;
52
52
  if ($[0] !== children) {
53
- panels = [];
54
- panelChildren = [];
53
+ const nextPanels = [];
54
+ const nextPanelChildren = [];
55
55
  const childArray = Array.isArray(children) ? children : [
56
56
  children
57
57
  ];
58
- for (const child of childArray)if (child && "object" == typeof child && "type" in child && child.type === Panel) {
59
- panels.push(child.props);
60
- panelChildren.push(child.props.children);
58
+ for (const child of childArray)if (child && "object" == typeof child && "type" in child) {
59
+ const panelChild = child;
60
+ if (panelChild.type === Panel && panelChild.props) {
61
+ nextPanels.push(panelChild.props);
62
+ nextPanelChildren.push(panelChild.props.children);
63
+ }
61
64
  }
65
+ t2 = {
66
+ panels: nextPanels,
67
+ panelChildren: nextPanelChildren
68
+ };
62
69
  $[0] = children;
63
- $[1] = panelChildren;
64
- $[2] = panels;
65
- } else {
66
- panelChildren = $[1];
67
- panels = $[2];
68
- }
70
+ $[1] = t2;
71
+ } else t2 = $[1];
72
+ const { panels, panelChildren } = t2;
69
73
  const panelCount = panels.length;
70
74
  const isHorizontal = "horizontal" === orientation;
71
- let t2;
72
- if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
73
- t2 = [];
74
- $[3] = t2;
75
- } else t2 = $[3];
76
- const [sizes, setSizes] = useState(t2);
75
+ let t3;
76
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
77
+ t3 = [];
78
+ $[2] = t3;
79
+ } else t3 = $[2];
80
+ const [sizes, setSizes] = useState(t3);
77
81
  const [containerSize, setContainerSize] = useState(0);
78
82
  const initialized = useRef(false);
79
- let t3;
80
83
  let t4;
81
- if ($[4] !== isHorizontal) {
82
- t3 = ()=>{
84
+ let t5;
85
+ if ($[3] !== isHorizontal) {
86
+ t4 = ()=>{
83
87
  const el = containerRef.current;
84
88
  if (!el) return;
85
89
  const observer = new ResizeObserver((entries)=>{
@@ -91,20 +95,21 @@ function Splitter(t0) {
91
95
  observer.observe(el);
92
96
  return ()=>observer.disconnect();
93
97
  };
94
- t4 = [
98
+ t5 = [
95
99
  isHorizontal
96
100
  ];
97
- $[4] = isHorizontal;
98
- $[5] = t3;
99
- $[6] = t4;
101
+ $[3] = isHorizontal;
102
+ $[4] = t4;
103
+ $[5] = t5;
100
104
  } else {
101
- t3 = $[5];
102
- t4 = $[6];
105
+ t4 = $[4];
106
+ t5 = $[5];
103
107
  }
104
- useEffect(t3, t4);
105
- let t5;
106
- if ($[7] !== containerSize || $[8] !== panelCount || $[9] !== panels || $[10] !== sizes.length) {
107
- t5 = ()=>{
108
+ useEffect(t4, t5);
109
+ let t6;
110
+ let t7;
111
+ if ($[6] !== containerSize || $[7] !== panelCount || $[8] !== panels || $[9] !== sizes.length) {
112
+ t6 = ()=>{
108
113
  if (containerSize <= 0 || 0 === panelCount) return;
109
114
  if (initialized.current && sizes.length === panelCount) return;
110
115
  const draggerSpace = (panelCount - 1) * 1;
@@ -131,26 +136,27 @@ function Splitter(t0) {
131
136
  setSizes(newSizes);
132
137
  initialized.current = true;
133
138
  };
134
- $[7] = containerSize;
135
- $[8] = panelCount;
136
- $[9] = panels;
137
- $[10] = sizes.length;
138
- $[11] = t5;
139
- } else t5 = $[11];
140
- let t6;
141
- if ($[12] !== containerSize || $[13] !== panelCount) {
142
- t6 = [
139
+ t7 = [
143
140
  containerSize,
144
- panelCount
141
+ panelCount,
142
+ panels,
143
+ sizes.length
145
144
  ];
146
- $[12] = containerSize;
147
- $[13] = panelCount;
148
- $[14] = t6;
149
- } else t6 = $[14];
150
- useEffect(t5, t6);
151
- let t7;
152
- if ($[15] !== containerSize || $[16] !== panelCount || $[17] !== panels || $[18] !== sizes) {
153
- t7 = ()=>{
145
+ $[6] = containerSize;
146
+ $[7] = panelCount;
147
+ $[8] = panels;
148
+ $[9] = sizes.length;
149
+ $[10] = t6;
150
+ $[11] = t7;
151
+ } else {
152
+ t6 = $[10];
153
+ t7 = $[11];
154
+ }
155
+ useEffect(t6, t7);
156
+ let t8;
157
+ let t9;
158
+ if ($[12] !== containerSize || $[13] !== panelCount || $[14] !== panels || $[15] !== sizes) {
159
+ t8 = ()=>{
154
160
  if (!initialized.current || sizes.length !== panelCount) return;
155
161
  const draggerSpace_0 = (panelCount - 1) * 1;
156
162
  const available_0 = containerSize - draggerSpace_0;
@@ -167,17 +173,27 @@ function Splitter(t0) {
167
173
  }
168
174
  if (changed) setSizes(next);
169
175
  };
170
- $[15] = containerSize;
171
- $[16] = panelCount;
172
- $[17] = panels;
173
- $[18] = sizes;
174
- $[19] = t7;
175
- } else t7 = $[19];
176
- useEffect(t7);
176
+ t9 = [
177
+ containerSize,
178
+ panelCount,
179
+ panels,
180
+ sizes
181
+ ];
182
+ $[12] = containerSize;
183
+ $[13] = panelCount;
184
+ $[14] = panels;
185
+ $[15] = sizes;
186
+ $[16] = t8;
187
+ $[17] = t9;
188
+ } else {
189
+ t8 = $[16];
190
+ t9 = $[17];
191
+ }
192
+ useEffect(t8, t9);
177
193
  const dragging = useRef(null);
178
- let t8;
179
- if ($[20] !== containerSize || $[21] !== isHorizontal || $[22] !== onResize || $[23] !== onResizeEnd || $[24] !== onResizeStart || $[25] !== panelCount || $[26] !== panels || $[27] !== sizes) {
180
- t8 = (index, e)=>{
194
+ let t10;
195
+ if ($[18] !== containerSize || $[19] !== isHorizontal || $[20] !== onResize || $[21] !== onResizeEnd || $[22] !== onResizeStart || $[23] !== panelCount || $[24] !== panels || $[25] !== sizes) {
196
+ t10 = (index, e)=>{
181
197
  e.preventDefault();
182
198
  const pos = isHorizontal ? e.clientX : e.clientY;
183
199
  dragging.current = {
@@ -232,20 +248,20 @@ function Splitter(t0) {
232
248
  document.addEventListener("pointermove", handleMove);
233
249
  document.addEventListener("pointerup", handleUp);
234
250
  };
235
- $[20] = containerSize;
236
- $[21] = isHorizontal;
237
- $[22] = onResize;
238
- $[23] = onResizeEnd;
239
- $[24] = onResizeStart;
240
- $[25] = panelCount;
241
- $[26] = panels;
242
- $[27] = sizes;
243
- $[28] = t8;
244
- } else t8 = $[28];
245
- const handleDragStart = t8;
246
- let t9;
247
- if ($[29] !== containerSize || $[30] !== onResize || $[31] !== onResizeEnd || $[32] !== panelCount || $[33] !== panels) {
248
- t9 = (index_0, direction)=>{
251
+ $[18] = containerSize;
252
+ $[19] = isHorizontal;
253
+ $[20] = onResize;
254
+ $[21] = onResizeEnd;
255
+ $[22] = onResizeStart;
256
+ $[23] = panelCount;
257
+ $[24] = panels;
258
+ $[25] = sizes;
259
+ $[26] = t10;
260
+ } else t10 = $[26];
261
+ const handleDragStart = t10;
262
+ let t11;
263
+ if ($[27] !== containerSize || $[28] !== onResize || $[29] !== onResizeEnd || $[30] !== panelCount || $[31] !== panels) {
264
+ t11 = (index_0, direction)=>{
249
265
  const draggerSpace_2 = (panelCount - 1) * 1;
250
266
  const available_2 = containerSize - draggerSpace_2;
251
267
  const targetIdx = "start" === direction ? index_0 : index_0 + 1;
@@ -270,17 +286,17 @@ function Splitter(t0) {
270
286
  return next_1;
271
287
  });
272
288
  };
273
- $[29] = containerSize;
274
- $[30] = onResize;
275
- $[31] = onResizeEnd;
276
- $[32] = panelCount;
277
- $[33] = panels;
278
- $[34] = t9;
279
- } else t9 = $[34];
280
- const handleCollapse = t9;
281
- let t10;
282
- if ($[35] !== panels) {
283
- t10 = function(index_1) {
289
+ $[27] = containerSize;
290
+ $[28] = onResize;
291
+ $[29] = onResizeEnd;
292
+ $[30] = panelCount;
293
+ $[31] = panels;
294
+ $[32] = t11;
295
+ } else t11 = $[32];
296
+ const handleCollapse = t11;
297
+ let t12;
298
+ if ($[33] !== panels) {
299
+ t12 = function(index_1) {
284
300
  const leftPanel = panels[index_1];
285
301
  const rightPanel = panels[index_1 + 1];
286
302
  let startCollapsible = false;
@@ -298,48 +314,48 @@ function Splitter(t0) {
298
314
  end: endCollapsible
299
315
  };
300
316
  };
301
- $[35] = panels;
302
- $[36] = t10;
303
- } else t10 = $[36];
304
- const getDraggerCollapse = t10;
317
+ $[33] = panels;
318
+ $[34] = t12;
319
+ } else t12 = $[34];
320
+ const getDraggerCollapse = t12;
305
321
  if (sizes.length !== panelCount) {
306
- const t11 = classNames?.root;
307
- let t12;
308
- if ($[37] !== className || $[38] !== t11) {
309
- t12 = cx(t11, className);
310
- $[37] = className;
311
- $[38] = t11;
312
- $[39] = t12;
313
- } else t12 = $[39];
314
- const t13 = styles?.root;
322
+ const t13 = classNames?.root;
315
323
  let t14;
316
- if ($[40] !== orientation || $[41] !== t12 || $[42] !== t13) {
317
- t14 = /*#__PURE__*/ jsx("div", {
324
+ if ($[35] !== className || $[36] !== t13) {
325
+ t14 = cx(t13, className);
326
+ $[35] = className;
327
+ $[36] = t13;
328
+ $[37] = t14;
329
+ } else t14 = $[37];
330
+ const t15 = styles?.root;
331
+ let t16;
332
+ if ($[38] !== orientation || $[39] !== t14 || $[40] !== t15) {
333
+ t16 = /*#__PURE__*/ jsx("div", {
318
334
  ref: containerRef,
319
335
  "data-tao-splitter": "",
320
336
  "data-tao-orientation": orientation,
321
- className: t12,
322
- style: t13
337
+ className: t14,
338
+ style: t15
323
339
  });
324
- $[40] = orientation;
325
- $[41] = t12;
326
- $[42] = t13;
327
- $[43] = t14;
328
- } else t14 = $[43];
329
- return t14;
340
+ $[38] = orientation;
341
+ $[39] = t14;
342
+ $[40] = t15;
343
+ $[41] = t16;
344
+ } else t16 = $[41];
345
+ return t16;
330
346
  }
331
- const t11 = classNames?.root;
332
- let t12;
333
- if ($[44] !== className || $[45] !== t11) {
334
- t12 = cx(t11, className);
335
- $[44] = className;
336
- $[45] = t11;
337
- $[46] = t12;
338
- } else t12 = $[46];
339
- const t13 = styles?.root;
347
+ const t13 = classNames?.root;
340
348
  let t14;
341
- if ($[47] !== classNames?.dragger || $[48] !== classNames?.panel || $[49] !== getDraggerCollapse || $[50] !== handleCollapse || $[51] !== handleDragStart || $[52] !== isHorizontal || $[53] !== orientation || $[54] !== panelChildren || $[55] !== panelCount || $[56] !== panels || $[57] !== sizes || $[58] !== styles?.dragger || $[59] !== styles?.panel) {
342
- t14 = panels.map((panel, i_2)=>{
349
+ if ($[42] !== className || $[43] !== t13) {
350
+ t14 = cx(t13, className);
351
+ $[42] = className;
352
+ $[43] = t13;
353
+ $[44] = t14;
354
+ } else t14 = $[44];
355
+ const t15 = styles?.root;
356
+ let t16;
357
+ if ($[45] !== classNames?.dragger || $[46] !== classNames?.panel || $[47] !== getDraggerCollapse || $[48] !== handleCollapse || $[49] !== handleDragStart || $[50] !== isHorizontal || $[51] !== orientation || $[52] !== panelChildren || $[53] !== panelCount || $[54] !== panels || $[55] !== sizes || $[56] !== styles?.dragger || $[57] !== styles?.panel) {
358
+ t16 = panels.map((panel, i_2)=>{
343
359
  const sizeStyle = isHorizontal ? {
344
360
  width: sizes[i_2],
345
361
  flexShrink: 0,
@@ -414,38 +430,38 @@ function Splitter(t0) {
414
430
  ]
415
431
  }, i_2);
416
432
  });
417
- $[47] = classNames?.dragger;
418
- $[48] = classNames?.panel;
419
- $[49] = getDraggerCollapse;
420
- $[50] = handleCollapse;
421
- $[51] = handleDragStart;
422
- $[52] = isHorizontal;
423
- $[53] = orientation;
424
- $[54] = panelChildren;
425
- $[55] = panelCount;
426
- $[56] = panels;
427
- $[57] = sizes;
428
- $[58] = styles?.dragger;
429
- $[59] = styles?.panel;
430
- $[60] = t14;
431
- } else t14 = $[60];
432
- let t15;
433
- if ($[61] !== orientation || $[62] !== t12 || $[63] !== t13 || $[64] !== t14) {
434
- t15 = /*#__PURE__*/ jsx("div", {
433
+ $[45] = classNames?.dragger;
434
+ $[46] = classNames?.panel;
435
+ $[47] = getDraggerCollapse;
436
+ $[48] = handleCollapse;
437
+ $[49] = handleDragStart;
438
+ $[50] = isHorizontal;
439
+ $[51] = orientation;
440
+ $[52] = panelChildren;
441
+ $[53] = panelCount;
442
+ $[54] = panels;
443
+ $[55] = sizes;
444
+ $[56] = styles?.dragger;
445
+ $[57] = styles?.panel;
446
+ $[58] = t16;
447
+ } else t16 = $[58];
448
+ let t17;
449
+ if ($[59] !== orientation || $[60] !== t14 || $[61] !== t15 || $[62] !== t16) {
450
+ t17 = /*#__PURE__*/ jsx("div", {
435
451
  ref: containerRef,
436
452
  "data-tao-splitter": "",
437
453
  "data-tao-orientation": orientation,
438
- className: t12,
439
- style: t13,
440
- children: t14
454
+ className: t14,
455
+ style: t15,
456
+ children: t16
441
457
  });
442
- $[61] = orientation;
443
- $[62] = t12;
444
- $[63] = t13;
445
- $[64] = t14;
446
- $[65] = t15;
447
- } else t15 = $[65];
448
- return t15;
458
+ $[59] = orientation;
459
+ $[60] = t14;
460
+ $[61] = t15;
461
+ $[62] = t16;
462
+ $[63] = t17;
463
+ } else t17 = $[63];
464
+ return t17;
449
465
  }
450
466
  Splitter.Panel = Panel;
451
467
  export { Panel, Splitter };
@@ -126,6 +126,8 @@ function LoadingIcon() {
126
126
  let t0;
127
127
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
128
128
  t0 = /*#__PURE__*/ jsx("svg", {
129
+ "aria-hidden": "true",
130
+ focusable: "false",
129
131
  "data-tao-switch-loading": "",
130
132
  viewBox: "0 0 24 24",
131
133
  fill: "none",
@@ -122,8 +122,13 @@
122
122
  }
123
123
 
124
124
  [data-tao-table-header-title] {
125
+ color: inherit;
126
+ font: inherit;
127
+ background: none;
128
+ border: 0;
125
129
  align-items: center;
126
130
  gap: 2px;
131
+ padding: 0;
127
132
  display: inline-flex;
128
133
  }
129
134
 
@@ -133,6 +138,10 @@
133
138
  user-select: none;
134
139
  }
135
140
 
141
+ [data-tao-table-header-title]:disabled {
142
+ cursor: default;
143
+ }
144
+
136
145
  [data-tao-table-header-title][data-tao-sortable]:hover {
137
146
  color: var(--tao-color-text);
138
147
  }
@@ -191,13 +200,18 @@
191
200
  [data-tao-table-filter-option] {
192
201
  align-items: center;
193
202
  gap: var(--tao-padding-xs);
203
+ width: 100%;
194
204
  padding: var(--tao-padding-xxs) var(--tao-padding-xs);
195
205
  border-radius: var(--tao-radius-sm);
196
206
  cursor: pointer;
197
207
  font-size: var(--tao-font-size-sm);
208
+ font-family: var(--tao-font-family);
209
+ text-align: start;
198
210
  color: var(--tao-color-text);
199
211
  transition: background-color var(--tao-motion-duration-fast)
200
212
  var(--tao-motion-ease-out);
213
+ background: none;
214
+ border: 0;
201
215
  display: flex;
202
216
  }
203
217
 
@@ -65,7 +65,8 @@ function SortIcon(t0) {
65
65
  height: "14",
66
66
  viewBox: "0 0 14 14",
67
67
  fill: "none",
68
- "aria-hidden": true,
68
+ "aria-hidden": "true",
69
+ focusable: "false",
69
70
  children: [
70
71
  t3,
71
72
  t5
@@ -100,7 +101,8 @@ function FilterIcon(t0) {
100
101
  height: "14",
101
102
  viewBox: "0 0 14 14",
102
103
  fill: "none",
103
- "aria-hidden": true,
104
+ "aria-hidden": "true",
105
+ focusable: "false",
104
106
  children: /*#__PURE__*/ jsx("path", {
105
107
  d: "M2 3h10L8.5 7.5V11L5.5 12V7.5L2 3Z",
106
108
  stroke: "currentColor",
@@ -137,7 +139,8 @@ function LoadingSpinner() {
137
139
  height: "24",
138
140
  viewBox: "0 0 24 24",
139
141
  fill: "none",
140
- "aria-hidden": true,
142
+ "aria-hidden": "true",
143
+ focusable: "false",
141
144
  children: [
142
145
  /*#__PURE__*/ jsx("circle", {
143
146
  cx: "12",
@@ -169,7 +172,8 @@ function CheckIcon() {
169
172
  height: "12",
170
173
  viewBox: "0 0 12 12",
171
174
  fill: "none",
172
- "aria-hidden": true,
175
+ "aria-hidden": "true",
176
+ focusable: "false",
173
177
  children: /*#__PURE__*/ jsx("path", {
174
178
  d: "M2.5 6L5 8.5L9.5 3.5",
175
179
  stroke: "currentColor",
@@ -258,9 +262,11 @@ function FilterDropdown(t0) {
258
262
  children: [
259
263
  filters.map((f)=>{
260
264
  const checked = activeValues.includes(f.value);
261
- return /*#__PURE__*/ jsxs("label", {
265
+ return /*#__PURE__*/ jsxs("button", {
266
+ type: "button",
262
267
  "data-tao-table-filter-option": "",
263
268
  onClick: ()=>toggle(f.value),
269
+ "aria-pressed": checked,
264
270
  children: [
265
271
  /*#__PURE__*/ jsx("span", {
266
272
  "data-tao-table-filter-check": "",
@@ -950,20 +956,14 @@ function Table(t0) {
950
956
  className: resolvedClassNames["header.content"],
951
957
  style: resolvedStyles["header.content"],
952
958
  children: [
953
- /*#__PURE__*/ jsxs("span", {
959
+ /*#__PURE__*/ jsxs("button", {
960
+ type: "button",
954
961
  "data-tao-table-header-title": "",
955
962
  "data-tao-sortable": hasSorter || void 0,
956
963
  className: resolvedClassNames["header.title"],
957
964
  style: resolvedStyles["header.title"],
965
+ disabled: !hasSorter,
958
966
  onClick: hasSorter ? ()=>handleSort(colKey_2, col_9) : void 0,
959
- role: hasSorter ? "button" : void 0,
960
- tabIndex: hasSorter ? 0 : void 0,
961
- onKeyDown: hasSorter ? (e_0)=>{
962
- if ("Enter" === e_0.key || " " === e_0.key) {
963
- e_0.preventDefault();
964
- handleSort(colKey_2, col_9);
965
- }
966
- } : void 0,
967
967
  children: [
968
968
  col_9.title,
969
969
  hasSorter && /*#__PURE__*/ jsx(SortIcon, {