@rockshin/tao-ui 0.0.1 → 0.0.3

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 (71) hide show
  1. package/dist/components/breadcrumb/breadcrumb.css +1091 -0
  2. package/dist/components/breadcrumb/breadcrumb.d.ts +43 -0
  3. package/dist/components/breadcrumb/breadcrumb.js +268 -0
  4. package/dist/components/button/button.css +46 -21
  5. package/dist/components/checkbox/checkbox.css +33 -12
  6. package/dist/components/collapsible/collapsible.css +1026 -0
  7. package/dist/components/collapsible/collapsible.d.ts +39 -0
  8. package/dist/components/collapsible/collapsible.js +168 -0
  9. package/dist/components/context-menu/context-menu.css +1149 -0
  10. package/dist/components/context-menu/context-menu.d.ts +19 -0
  11. package/dist/components/context-menu/context-menu.js +106 -0
  12. package/dist/components/date-picker/calendar/month-grid.d.ts +1 -1
  13. package/dist/components/date-picker/calendar/time-panel.d.ts +1 -1
  14. package/dist/components/date-picker/calendar/year-grid.d.ts +1 -1
  15. package/dist/components/date-picker/date-picker.css +87 -17
  16. package/dist/components/date-picker/date-picker.js +9 -7
  17. package/dist/components/date-picker/range-picker.js +9 -7
  18. package/dist/components/drawer/drawer.css +128 -15
  19. package/dist/components/drawer/drawer.d.ts +36 -3
  20. package/dist/components/drawer/drawer.js +323 -121
  21. package/dist/components/dropdown/dropdown.css +999 -0
  22. package/dist/components/dropdown/dropdown.d.ts +45 -0
  23. package/dist/components/dropdown/dropdown.js +383 -0
  24. package/dist/components/form-field/form.css +33 -12
  25. package/dist/components/input/input.css +86 -14
  26. package/dist/components/menu/menu-render.d.ts +89 -0
  27. package/dist/components/menu/menu-render.js +379 -0
  28. package/dist/components/menu/menu.css +1145 -0
  29. package/dist/components/modal/confirm-dialog.d.ts +37 -0
  30. package/dist/components/modal/confirm-dialog.js +193 -0
  31. package/dist/components/modal/confirm.d.ts +13 -0
  32. package/dist/components/modal/confirm.js +56 -0
  33. package/dist/components/modal/index.d.ts +21 -0
  34. package/dist/components/modal/index.js +18 -0
  35. package/dist/components/modal/modal.css +1169 -0
  36. package/dist/components/modal/modal.d.ts +50 -0
  37. package/dist/components/modal/modal.js +362 -0
  38. package/dist/components/modal/use-modal.d.ts +21 -0
  39. package/dist/components/modal/use-modal.js +83 -0
  40. package/dist/components/pagination/pagination.css +33 -12
  41. package/dist/components/pagination/pagination.js +3 -1
  42. package/dist/components/radio/radio.css +33 -12
  43. package/dist/components/scroll-area/scroll-area.css +33 -12
  44. package/dist/components/select/mobile-select.css +75 -13
  45. package/dist/components/select/mobile-select.d.ts +4 -1
  46. package/dist/components/select/mobile-select.js +103 -107
  47. package/dist/components/select/select.css +167 -26
  48. package/dist/components/select/select.d.ts +62 -4
  49. package/dist/components/select/select.js +359 -377
  50. package/dist/components/spinner/spinner.css +1084 -0
  51. package/dist/components/spinner/spinner.d.ts +26 -0
  52. package/dist/components/spinner/spinner.js +229 -0
  53. package/dist/components/splitter/splitter.css +33 -12
  54. package/dist/components/switch/switch.css +33 -12
  55. package/dist/components/table/table.css +57 -18
  56. package/dist/components/table/table.d.ts +17 -2
  57. package/dist/components/table/table.js +214 -206
  58. package/dist/components/tabs/tabs.css +36 -17
  59. package/dist/components/tag/tag.css +33 -12
  60. package/dist/components/textarea/textarea.css +1246 -0
  61. package/dist/components/textarea/textarea.d.ts +19 -0
  62. package/dist/components/textarea/textarea.js +181 -0
  63. package/dist/index.d.ts +25 -18
  64. package/dist/index.js +22 -15
  65. package/dist/layouts/stack/layout.css +33 -12
  66. package/dist/provider/tao-provider.d.ts +17 -1
  67. package/dist/provider/tao-provider.js +53 -15
  68. package/dist/theme/control.css +86 -13
  69. package/dist/theme/theme.css +33 -12
  70. package/llms.txt +7 -6
  71. package/package.json +18 -13
@@ -289,34 +289,37 @@ function FilterDropdown(t0) {
289
289
  return t9;
290
290
  }
291
291
  function Table(t0) {
292
- const $ = compiler_runtime_c(160);
293
- const { columns, dataSource, rowKey, loading: t1, pagination: paginationProp, onChange, scroll, rowSelection, size, emptyText: t2, bordered: t3, className, classNames, styles } = t0;
292
+ const $ = compiler_runtime_c(162);
293
+ const { columns, dataSource, rowKey, loading: t1, pagination: paginationProp, onChange, scroll, rowSelection, size, variant, headerBackground: t2, emptyText: t3, bordered: t4, className, classNames, styles } = t0;
294
294
  const loading = void 0 === t1 ? false : t1;
295
- const emptyText = void 0 === t2 ? "No Data" : t2;
296
- const bordered = void 0 === t3 ? false : t3;
295
+ const headerBackground = void 0 === t2 ? true : t2;
296
+ const emptyText = void 0 === t3 ? "No Data" : t3;
297
+ const bordered = void 0 === t4 ? false : t4;
297
298
  const ctx = useTaoConfig();
298
299
  const resolvedSize = size ?? ctx.size;
300
+ const resolvedVariant = variant ?? ("outlined" === ctx.variant ? "filled" : ctx.variant);
301
+ const showBorder = "outlined" === resolvedVariant || bordered && "borderless" !== resolvedVariant;
299
302
  let defaultSortCol;
300
- let t4;
301
303
  let t5;
304
+ let t6;
302
305
  if ($[0] !== columns) {
303
306
  defaultSortCol = columns.find(_temp);
304
- t4 = useState;
305
- t5 = defaultSortCol ? getColKey(defaultSortCol, columns.indexOf(defaultSortCol)) : null;
307
+ t5 = useState;
308
+ t6 = defaultSortCol ? getColKey(defaultSortCol, columns.indexOf(defaultSortCol)) : null;
306
309
  $[0] = columns;
307
310
  $[1] = defaultSortCol;
308
- $[2] = t4;
309
- $[3] = t5;
311
+ $[2] = t5;
312
+ $[3] = t6;
310
313
  } else {
311
314
  defaultSortCol = $[1];
312
- t4 = $[2];
313
- t5 = $[3];
315
+ t5 = $[2];
316
+ t6 = $[3];
314
317
  }
315
- const [sortKey, setSortKey] = t4(t5);
318
+ const [sortKey, setSortKey] = t5(t6);
316
319
  const [sortOrder, setSortOrder] = useState(defaultSortCol?.defaultSortOrder ?? null);
317
- let t6;
320
+ let t7;
318
321
  if ($[4] !== columns) {
319
- t6 = ()=>{
322
+ t7 = ()=>{
320
323
  const init = {};
321
324
  for(let i = 0; i < columns.length; i++){
322
325
  const col = columns[i];
@@ -328,18 +331,18 @@ function Table(t0) {
328
331
  return init;
329
332
  };
330
333
  $[4] = columns;
331
- $[5] = t6;
332
- } else t6 = $[5];
333
- const [filterValues, setFilterValues] = useState(t6);
334
+ $[5] = t7;
335
+ } else t7 = $[5];
336
+ const [filterValues, setFilterValues] = useState(t7);
334
337
  const hasPagination = false !== paginationProp;
335
338
  const paginationConfig = false === paginationProp ? void 0 : paginationProp;
336
339
  const [internalPage, setInternalPage] = useState(paginationConfig?.defaultCurrent ?? 1);
337
340
  const [internalPageSize, setInternalPageSize] = useState(paginationConfig?.defaultPageSize ?? paginationConfig?.pageSize ?? 10);
338
341
  const currentPage = paginationConfig?.current ?? internalPage;
339
342
  const pageSize = paginationConfig?.pageSize ?? internalPageSize;
340
- let t7;
343
+ let t8;
341
344
  if ($[6] !== columns) {
342
- t7 = (key_0, order)=>{
345
+ t8 = (key_0, order)=>{
343
346
  if (!key_0 || !order) return {
344
347
  order: null
345
348
  };
@@ -352,12 +355,12 @@ function Table(t0) {
352
355
  };
353
356
  };
354
357
  $[6] = columns;
355
- $[7] = t7;
356
- } else t7 = $[7];
357
- const buildSorterResult = t7;
358
- let t8;
358
+ $[7] = t8;
359
+ } else t8 = $[7];
360
+ const buildSorterResult = t8;
361
+ let t9;
359
362
  if ($[8] !== columns) {
360
- t8 = (fv)=>{
363
+ t9 = (fv)=>{
361
364
  const result = {};
362
365
  for(let i_1 = 0; i_1 < columns.length; i_1++){
363
366
  const col_1 = columns[i_1];
@@ -370,12 +373,12 @@ function Table(t0) {
370
373
  return result;
371
374
  };
372
375
  $[8] = columns;
373
- $[9] = t8;
374
- } else t8 = $[9];
375
- const buildFiltersRecord = t8;
376
- let t9;
376
+ $[9] = t9;
377
+ } else t9 = $[9];
378
+ const buildFiltersRecord = t9;
379
+ let t10;
377
380
  if ($[10] !== buildFiltersRecord || $[11] !== buildSorterResult || $[12] !== onChange) {
378
- t9 = (page, ps, sk, so, fv_0)=>{
381
+ t10 = (page, ps, sk, so, fv_0)=>{
379
382
  onChange?.({
380
383
  current: page,
381
384
  pageSize: ps
@@ -384,12 +387,12 @@ function Table(t0) {
384
387
  $[10] = buildFiltersRecord;
385
388
  $[11] = buildSorterResult;
386
389
  $[12] = onChange;
387
- $[13] = t9;
388
- } else t9 = $[13];
389
- const triggerChange = t9;
390
- let t10;
390
+ $[13] = t10;
391
+ } else t10 = $[13];
392
+ const triggerChange = t10;
393
+ let t11;
391
394
  if ($[14] !== currentPage || $[15] !== filterValues || $[16] !== pageSize || $[17] !== sortKey || $[18] !== sortOrder || $[19] !== triggerChange) {
392
- t10 = (colKey, col_2)=>{
395
+ t11 = (colKey, col_2)=>{
393
396
  if (void 0 !== col_2.sortOrder) return void triggerChange(currentPage, pageSize, colKey, nextSortOrder(col_2.sortOrder), filterValues);
394
397
  const next = sortKey === colKey ? nextSortOrder(sortOrder) : "ascend";
395
398
  const newKey = null === next ? null : colKey;
@@ -403,12 +406,12 @@ function Table(t0) {
403
406
  $[17] = sortKey;
404
407
  $[18] = sortOrder;
405
408
  $[19] = triggerChange;
406
- $[20] = t10;
407
- } else t10 = $[20];
408
- const handleSort = t10;
409
- let t11;
409
+ $[20] = t11;
410
+ } else t11 = $[20];
411
+ const handleSort = t11;
412
+ let t12;
410
413
  if ($[21] !== filterValues || $[22] !== pageSize || $[23] !== sortKey || $[24] !== sortOrder || $[25] !== triggerChange) {
411
- t11 = (colKey_0, values)=>{
414
+ t12 = (colKey_0, values)=>{
412
415
  const next_0 = {
413
416
  ...filterValues,
414
417
  [colKey_0]: values
@@ -422,12 +425,12 @@ function Table(t0) {
422
425
  $[23] = sortKey;
423
426
  $[24] = sortOrder;
424
427
  $[25] = triggerChange;
425
- $[26] = t11;
426
- } else t11 = $[26];
427
- const handleFilter = t11;
428
- let t12;
428
+ $[26] = t12;
429
+ } else t12 = $[26];
430
+ const handleFilter = t12;
431
+ let t13;
429
432
  if ($[27] !== filterValues || $[28] !== sortKey || $[29] !== sortOrder || $[30] !== triggerChange) {
430
- t12 = (page_0, ps_0)=>{
433
+ t13 = (page_0, ps_0)=>{
431
434
  setInternalPage(page_0);
432
435
  setInternalPageSize(ps_0);
433
436
  triggerChange(page_0, ps_0, sortKey, sortOrder, filterValues);
@@ -436,9 +439,9 @@ function Table(t0) {
436
439
  $[28] = sortKey;
437
440
  $[29] = sortOrder;
438
441
  $[30] = triggerChange;
439
- $[31] = t12;
440
- } else t12 = $[31];
441
- const handlePageChange = t12;
442
+ $[31] = t13;
443
+ } else t13 = $[31];
444
+ const handlePageChange = t13;
442
445
  let data;
443
446
  if ($[32] !== columns || $[33] !== dataSource || $[34] !== filterValues || $[35] !== sortKey || $[36] !== sortOrder) {
444
447
  data = [
@@ -452,18 +455,18 @@ function Table(t0) {
452
455
  const activeVals = controlledValues ?? filterValues[key_2];
453
456
  if (activeVals && activeVals.length > 0) data = data.filter((record)=>activeVals.some((v)=>col_3.onFilter(v, record)));
454
457
  }
455
- let t13;
458
+ let t14;
456
459
  if ($[38] !== sortKey || $[39] !== sortOrder) {
457
- t13 = (col_4, i_3)=>{
460
+ t14 = (col_4, i_3)=>{
458
461
  const key_3 = getColKey(col_4, i_3);
459
462
  const order_0 = void 0 !== col_4.sortOrder ? col_4.sortOrder : sortKey === key_3 ? sortOrder : null;
460
463
  return null !== order_0 && "function" == typeof col_4.sorter;
461
464
  };
462
465
  $[38] = sortKey;
463
466
  $[39] = sortOrder;
464
- $[40] = t13;
465
- } else t13 = $[40];
466
- const activeSortCol = columns.find(t13);
467
+ $[40] = t14;
468
+ } else t14 = $[40];
469
+ const activeSortCol = columns.find(t14);
467
470
  if (activeSortCol && "function" == typeof activeSortCol.sorter) {
468
471
  const colIdx_0 = columns.indexOf(activeSortCol);
469
472
  const key_4 = getColKey(activeSortCol, colIdx_0);
@@ -483,40 +486,40 @@ function Table(t0) {
483
486
  } else data = $[37];
484
487
  const processedData = data;
485
488
  const totalForPagination = paginationConfig?.total ?? processedData.length;
486
- let t13;
489
+ let t14;
487
490
  bb0: {
488
491
  if (!hasPagination) {
489
- t13 = processedData;
492
+ t14 = processedData;
490
493
  break bb0;
491
494
  }
492
495
  if (paginationConfig?.total !== void 0) {
493
- t13 = processedData;
496
+ t14 = processedData;
494
497
  break bb0;
495
498
  }
496
499
  const start = (currentPage - 1) * pageSize;
497
- let t14;
500
+ let t15;
498
501
  if ($[41] !== pageSize || $[42] !== processedData || $[43] !== start) {
499
- t14 = processedData.slice(start, start + pageSize);
502
+ t15 = processedData.slice(start, start + pageSize);
500
503
  $[41] = pageSize;
501
504
  $[42] = processedData;
502
505
  $[43] = start;
503
- $[44] = t14;
504
- } else t14 = $[44];
505
- t13 = t14;
506
+ $[44] = t15;
507
+ } else t15 = $[44];
508
+ t14 = t15;
506
509
  }
507
- const paginatedData = t13;
510
+ const paginatedData = t14;
508
511
  const selectionColWidth = rowSelection?.columnWidth ?? 48;
509
512
  const selectionType = rowSelection?.type ?? "checkbox";
510
- let t14;
513
+ let t15;
511
514
  if ($[45] !== rowSelection?.selectedRowKeys) {
512
- t14 = rowSelection?.selectedRowKeys ?? [];
515
+ t15 = rowSelection?.selectedRowKeys ?? [];
513
516
  $[45] = rowSelection?.selectedRowKeys;
514
- $[46] = t14;
515
- } else t14 = $[46];
516
- const selectedKeys = t14;
517
- let t15;
517
+ $[46] = t15;
518
+ } else t15 = $[46];
519
+ const selectedKeys = t15;
520
+ let t16;
518
521
  if ($[47] !== dataSource || $[48] !== rowKey || $[49] !== rowSelection || $[50] !== selectedKeys || $[51] !== selectionType) {
519
- t15 = (key_5, record_0)=>{
522
+ t16 = (key_5, record_0)=>{
520
523
  if (!rowSelection?.onChange) return;
521
524
  let nextKeys;
522
525
  nextKeys = "radio" === selectionType ? [
@@ -533,12 +536,12 @@ function Table(t0) {
533
536
  $[49] = rowSelection;
534
537
  $[50] = selectedKeys;
535
538
  $[51] = selectionType;
536
- $[52] = t15;
537
- } else t15 = $[52];
538
- const handleSelectRow = t15;
539
- let t16;
539
+ $[52] = t16;
540
+ } else t16 = $[52];
541
+ const handleSelectRow = t16;
542
+ let t17;
540
543
  if ($[53] !== dataSource || $[54] !== paginatedData || $[55] !== rowKey || $[56] !== rowSelection) {
541
- t16 = (checked)=>{
544
+ t17 = (checked)=>{
542
545
  if (!rowSelection?.onChange) return;
543
546
  if (checked) {
544
547
  const allKeys = paginatedData.filter((r_0)=>{
@@ -553,14 +556,14 @@ function Table(t0) {
553
556
  $[54] = paginatedData;
554
557
  $[55] = rowKey;
555
558
  $[56] = rowSelection;
556
- $[57] = t16;
557
- } else t16 = $[57];
558
- const handleSelectAll = t16;
559
+ $[57] = t17;
560
+ } else t17 = $[57];
561
+ const handleSelectAll = t17;
559
562
  const scrollRef = useRef(null);
560
563
  const [scrollState, setScrollState] = useState("left");
561
- let t17;
564
+ let t18;
562
565
  if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
563
- t17 = ()=>{
566
+ t18 = ()=>{
564
567
  const el = scrollRef.current;
565
568
  if (!el) return;
566
569
  const { scrollLeft, scrollWidth, clientWidth } = el;
@@ -570,29 +573,29 @@ function Table(t0) {
570
573
  else if (atLeft) setScrollState("left");
571
574
  else atRight ? setScrollState("right") : setScrollState("middle");
572
575
  };
573
- $[58] = t17;
574
- } else t17 = $[58];
575
- const handleScroll = t17;
576
- let t18;
576
+ $[58] = t18;
577
+ } else t18 = $[58];
578
+ const handleScroll = t18;
579
+ let t19;
577
580
  if ($[59] !== scroll?.x) {
578
- t18 = ()=>{
581
+ t19 = ()=>{
579
582
  if (!scroll?.x) return;
580
583
  handleScroll();
581
584
  };
582
585
  $[59] = scroll?.x;
583
- $[60] = t18;
584
- } else t18 = $[60];
585
- const t19 = scroll?.x;
586
- let t20;
587
- if ($[61] !== t19) {
588
- t20 = [
589
- t19,
586
+ $[60] = t19;
587
+ } else t19 = $[60];
588
+ const t20 = scroll?.x;
589
+ let t21;
590
+ if ($[61] !== t20) {
591
+ t21 = [
592
+ t20,
590
593
  handleScroll
591
594
  ];
592
- $[61] = t19;
593
- $[62] = t20;
594
- } else t20 = $[62];
595
- useEffect(t18, t20);
595
+ $[61] = t20;
596
+ $[62] = t21;
597
+ } else t21 = $[62];
598
+ useEffect(t19, t21);
596
599
  let cols;
597
600
  if ($[63] !== columns || $[64] !== rowSelection || $[65] !== selectionColWidth) {
598
601
  cols = [];
@@ -615,9 +618,9 @@ function Table(t0) {
615
618
  $[66] = cols;
616
619
  } else cols = $[66];
617
620
  const allColumns = cols;
618
- let t21;
621
+ let t22;
619
622
  if ($[67] !== allColumns || $[68] !== scroll?.x) {
620
- t21 = ()=>{
623
+ t22 = ()=>{
621
624
  if (!scroll?.x) return {};
622
625
  const positions = {};
623
626
  let leftOffset = 0;
@@ -641,68 +644,69 @@ function Table(t0) {
641
644
  };
642
645
  $[67] = allColumns;
643
646
  $[68] = scroll?.x;
644
- $[69] = t21;
645
- } else t21 = $[69];
647
+ $[69] = t22;
648
+ } else t22 = $[69];
646
649
  scroll?.x;
647
- let t22;
648
- if ($[70] !== t21) {
649
- t22 = t21();
650
- $[70] = t21;
651
- $[71] = t22;
652
- } else t22 = $[71];
653
- const stickyPositions = t22;
654
650
  let t23;
651
+ if ($[70] !== t22) {
652
+ t23 = t22();
653
+ $[70] = t22;
654
+ $[71] = t23;
655
+ } else t23 = $[71];
656
+ const stickyPositions = t23;
657
+ let t24;
655
658
  if ($[72] !== sortKey || $[73] !== sortOrder) {
656
- t23 = (col_8, colKey_1)=>{
659
+ t24 = (col_8, colKey_1)=>{
657
660
  if (void 0 !== col_8.sortOrder) return col_8.sortOrder;
658
661
  return sortKey === colKey_1 ? sortOrder : null;
659
662
  };
660
663
  $[72] = sortKey;
661
664
  $[73] = sortOrder;
662
- $[74] = t23;
663
- } else t23 = $[74];
664
- const getResolvedSortOrder = t23;
665
- let t24;
665
+ $[74] = t24;
666
+ } else t24 = $[74];
667
+ const getResolvedSortOrder = t24;
668
+ let t25;
666
669
  if ($[75] !== scroll) {
667
- t24 = scroll?.x ? {
670
+ t25 = scroll?.x ? {
668
671
  minWidth: "number" == typeof scroll.x ? `${scroll.x}px` : scroll.x
669
672
  } : {};
670
673
  $[75] = scroll;
671
- $[76] = t24;
672
- } else t24 = $[76];
673
- const tableStyle = t24;
674
- let t25;
674
+ $[76] = t25;
675
+ } else t25 = $[76];
676
+ const tableStyle = t25;
677
+ let t26;
675
678
  if ($[77] !== paginatedData || $[78] !== rowKey || $[79] !== rowSelection || $[80] !== selectedKeys) {
676
- t25 = paginatedData.length > 0 && paginatedData.filter((r_3)=>!rowSelection?.getCheckboxProps?.(r_3)?.disabled).every((r_4)=>selectedKeys.includes(getRowKey(r_4, rowKey)));
679
+ t26 = paginatedData.length > 0 && paginatedData.filter((r_3)=>!rowSelection?.getCheckboxProps?.(r_3)?.disabled).every((r_4)=>selectedKeys.includes(getRowKey(r_4, rowKey)));
677
680
  $[77] = paginatedData;
678
681
  $[78] = rowKey;
679
682
  $[79] = rowSelection;
680
683
  $[80] = selectedKeys;
681
- $[81] = t25;
682
- } else t25 = $[81];
683
- const isAllSelected = t25;
684
+ $[81] = t26;
685
+ } else t26 = $[81];
686
+ const isAllSelected = t26;
684
687
  const isIndeterminate = !isAllSelected && selectedKeys.length > 0;
685
- const t26 = bordered || void 0;
686
- const t27 = scroll?.x ? scrollState : void 0;
687
- const t28 = classNames?.root;
688
- let t29;
689
- if ($[82] !== className || $[83] !== t28) {
690
- t29 = cx(t28, className);
688
+ const t27 = headerBackground ? void 0 : "off";
689
+ const t28 = showBorder || void 0;
690
+ const t29 = scroll?.x ? scrollState : void 0;
691
+ const t30 = classNames?.root;
692
+ let t31;
693
+ if ($[82] !== className || $[83] !== t30) {
694
+ t31 = cx(t30, className);
691
695
  $[82] = className;
692
- $[83] = t28;
693
- $[84] = t29;
694
- } else t29 = $[84];
695
- const t30 = styles?.root;
696
- const t31 = scroll?.x ? handleScroll : void 0;
697
- let t32;
696
+ $[83] = t30;
697
+ $[84] = t31;
698
+ } else t31 = $[84];
699
+ const t32 = styles?.root;
700
+ const t33 = scroll?.x ? handleScroll : void 0;
701
+ let t34;
698
702
  if ($[85] !== loading) {
699
- t32 = loading && /*#__PURE__*/ jsx(LoadingSpinner, {});
703
+ t34 = loading && /*#__PURE__*/ jsx(LoadingSpinner, {});
700
704
  $[85] = loading;
701
- $[86] = t32;
702
- } else t32 = $[86];
703
- let t33;
705
+ $[86] = t34;
706
+ } else t34 = $[86];
707
+ let t35;
704
708
  if ($[87] !== handleSelectAll || $[88] !== isAllSelected || $[89] !== isIndeterminate || $[90] !== rowSelection || $[91] !== selectionColWidth || $[92] !== selectionType || $[93] !== stickyPositions) {
705
- t33 = rowSelection && /*#__PURE__*/ jsx("th", {
709
+ t35 = rowSelection && /*#__PURE__*/ jsx("th", {
706
710
  "data-tao-table-cell": "",
707
711
  "data-tao-table-selection-cell": "",
708
712
  "data-tao-fixed": "left",
@@ -731,13 +735,13 @@ function Table(t0) {
731
735
  $[91] = selectionColWidth;
732
736
  $[92] = selectionType;
733
737
  $[93] = stickyPositions;
734
- $[94] = t33;
735
- } else t33 = $[94];
736
- let t34;
738
+ $[94] = t35;
739
+ } else t35 = $[94];
740
+ let t36;
737
741
  if ($[95] !== classNames || $[96] !== columns || $[97] !== filterValues || $[98] !== getResolvedSortOrder || $[99] !== handleFilter || $[100] !== handleSort || $[101] !== scroll?.x || $[102] !== stickyPositions || $[103] !== styles) {
738
- let t35;
742
+ let t37;
739
743
  if ($[105] !== classNames || $[106] !== filterValues || $[107] !== getResolvedSortOrder || $[108] !== handleFilter || $[109] !== handleSort || $[110] !== scroll?.x || $[111] !== stickyPositions || $[112] !== styles) {
740
- t35 = (col_9, i_6)=>{
744
+ t37 = (col_9, i_6)=>{
741
745
  const colKey_2 = getColKey(col_9, i_6);
742
746
  const hasSorter = !!col_9.sorter;
743
747
  const hasFilter = !!(col_9.filters && col_9.filters.length > 0);
@@ -805,9 +809,9 @@ function Table(t0) {
805
809
  $[110] = scroll?.x;
806
810
  $[111] = stickyPositions;
807
811
  $[112] = styles;
808
- $[113] = t35;
809
- } else t35 = $[113];
810
- t34 = columns.map(t35);
812
+ $[113] = t37;
813
+ } else t37 = $[113];
814
+ t36 = columns.map(t37);
811
815
  $[95] = classNames;
812
816
  $[96] = columns;
813
817
  $[97] = filterValues;
@@ -817,26 +821,26 @@ function Table(t0) {
817
821
  $[101] = scroll?.x;
818
822
  $[102] = stickyPositions;
819
823
  $[103] = styles;
820
- $[104] = t34;
821
- } else t34 = $[104];
822
- let t35;
823
- if ($[114] !== t33 || $[115] !== t34) {
824
- t35 = /*#__PURE__*/ jsx("thead", {
824
+ $[104] = t36;
825
+ } else t36 = $[104];
826
+ let t37;
827
+ if ($[114] !== t35 || $[115] !== t36) {
828
+ t37 = /*#__PURE__*/ jsx("thead", {
825
829
  "data-tao-table-thead": "",
826
830
  children: /*#__PURE__*/ jsxs("tr", {
827
831
  children: [
828
- t33,
829
- t34
832
+ t35,
833
+ t36
830
834
  ]
831
835
  })
832
836
  });
833
- $[114] = t33;
834
- $[115] = t34;
835
- $[116] = t35;
836
- } else t35 = $[116];
837
- let t36;
837
+ $[114] = t35;
838
+ $[115] = t36;
839
+ $[116] = t37;
840
+ } else t37 = $[116];
841
+ let t38;
838
842
  if ($[117] !== classNames || $[118] !== columns || $[119] !== emptyText || $[120] !== handleSelectRow || $[121] !== paginatedData || $[122] !== rowKey || $[123] !== rowSelection || $[124] !== scroll?.x || $[125] !== selectedKeys || $[126] !== selectionType || $[127] !== stickyPositions || $[128] !== styles) {
839
- t36 = 0 === paginatedData.length ? /*#__PURE__*/ jsx("tr", {
843
+ t38 = 0 === paginatedData.length ? /*#__PURE__*/ jsx("tr", {
840
844
  children: /*#__PURE__*/ jsx("td", {
841
845
  "data-tao-table-cell": "",
842
846
  "data-tao-table-empty": "",
@@ -914,51 +918,51 @@ function Table(t0) {
914
918
  $[126] = selectionType;
915
919
  $[127] = stickyPositions;
916
920
  $[128] = styles;
917
- $[129] = t36;
918
- } else t36 = $[129];
919
- let t37;
920
- if ($[130] !== t36) {
921
- t37 = /*#__PURE__*/ jsx("tbody", {
921
+ $[129] = t38;
922
+ } else t38 = $[129];
923
+ let t39;
924
+ if ($[130] !== t38) {
925
+ t39 = /*#__PURE__*/ jsx("tbody", {
922
926
  "data-tao-table-tbody": "",
923
- children: t36
927
+ children: t38
924
928
  });
925
- $[130] = t36;
926
- $[131] = t37;
927
- } else t37 = $[131];
928
- let t38;
929
- if ($[132] !== t35 || $[133] !== t37 || $[134] !== tableStyle) {
930
- t38 = /*#__PURE__*/ jsxs("table", {
929
+ $[130] = t38;
930
+ $[131] = t39;
931
+ } else t39 = $[131];
932
+ let t40;
933
+ if ($[132] !== t37 || $[133] !== t39 || $[134] !== tableStyle) {
934
+ t40 = /*#__PURE__*/ jsxs("table", {
931
935
  "data-tao-table": "",
932
936
  style: tableStyle,
933
937
  children: [
934
- t35,
935
- t37
938
+ t37,
939
+ t39
936
940
  ]
937
941
  });
938
- $[132] = t35;
939
- $[133] = t37;
942
+ $[132] = t37;
943
+ $[133] = t39;
940
944
  $[134] = tableStyle;
941
- $[135] = t38;
942
- } else t38 = $[135];
943
- let t39;
944
- if ($[136] !== t31 || $[137] !== t32 || $[138] !== t38) {
945
- t39 = /*#__PURE__*/ jsxs("div", {
945
+ $[135] = t40;
946
+ } else t40 = $[135];
947
+ let t41;
948
+ if ($[136] !== t33 || $[137] !== t34 || $[138] !== t40) {
949
+ t41 = /*#__PURE__*/ jsxs("div", {
946
950
  "data-tao-table-scroll": "",
947
951
  ref: scrollRef,
948
- onScroll: t31,
952
+ onScroll: t33,
949
953
  children: [
950
- t32,
951
- t38
954
+ t34,
955
+ t40
952
956
  ]
953
957
  });
954
- $[136] = t31;
955
- $[137] = t32;
956
- $[138] = t38;
957
- $[139] = t39;
958
- } else t39 = $[139];
959
- let t40;
958
+ $[136] = t33;
959
+ $[137] = t34;
960
+ $[138] = t40;
961
+ $[139] = t41;
962
+ } else t41 = $[139];
963
+ let t42;
960
964
  if ($[140] !== classNames?.pagination || $[141] !== currentPage || $[142] !== handlePageChange || $[143] !== hasPagination || $[144] !== pageSize || $[145] !== paginationConfig?.pageSizeOptions || $[146] !== paginationConfig?.showSizeChanger || $[147] !== paginationConfig?.showTotal || $[148] !== resolvedSize || $[149] !== styles?.pagination || $[150] !== totalForPagination) {
961
- t40 = hasPagination && totalForPagination > 0 && /*#__PURE__*/ jsx("div", {
965
+ t42 = hasPagination && totalForPagination > 0 && /*#__PURE__*/ jsx("div", {
962
966
  "data-tao-table-pagination": "",
963
967
  className: classNames?.pagination,
964
968
  style: styles?.pagination,
@@ -984,32 +988,36 @@ function Table(t0) {
984
988
  $[148] = resolvedSize;
985
989
  $[149] = styles?.pagination;
986
990
  $[150] = totalForPagination;
987
- $[151] = t40;
988
- } else t40 = $[151];
989
- let t41;
990
- if ($[152] !== resolvedSize || $[153] !== t26 || $[154] !== t27 || $[155] !== t29 || $[156] !== t30 || $[157] !== t39 || $[158] !== t40) {
991
- t41 = /*#__PURE__*/ jsxs("div", {
991
+ $[151] = t42;
992
+ } else t42 = $[151];
993
+ let t43;
994
+ if ($[152] !== resolvedSize || $[153] !== resolvedVariant || $[154] !== t27 || $[155] !== t28 || $[156] !== t29 || $[157] !== t31 || $[158] !== t32 || $[159] !== t41 || $[160] !== t42) {
995
+ t43 = /*#__PURE__*/ jsxs("div", {
992
996
  "data-tao-table-wrapper": "",
993
997
  "data-tao-size": resolvedSize,
994
- "data-tao-bordered": t26,
995
- "data-tao-scroll-state": t27,
996
- className: t29,
997
- style: t30,
998
+ "data-tao-variant": resolvedVariant,
999
+ "data-tao-header-bg": t27,
1000
+ "data-tao-bordered": t28,
1001
+ "data-tao-scroll-state": t29,
1002
+ className: t31,
1003
+ style: t32,
998
1004
  children: [
999
- t39,
1000
- t40
1005
+ t41,
1006
+ t42
1001
1007
  ]
1002
1008
  });
1003
1009
  $[152] = resolvedSize;
1004
- $[153] = t26;
1010
+ $[153] = resolvedVariant;
1005
1011
  $[154] = t27;
1006
- $[155] = t29;
1007
- $[156] = t30;
1008
- $[157] = t39;
1009
- $[158] = t40;
1012
+ $[155] = t28;
1013
+ $[156] = t29;
1014
+ $[157] = t31;
1015
+ $[158] = t32;
1010
1016
  $[159] = t41;
1011
- } else t41 = $[159];
1012
- return t41;
1017
+ $[160] = t42;
1018
+ $[161] = t43;
1019
+ } else t43 = $[161];
1020
+ return t43;
1013
1021
  }
1014
1022
  function _temp(c) {
1015
1023
  return c.defaultSortOrder;