@economic/taco 2.45.0-alpha.4 → 2.45.0-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. package/dist/components/Banner/util.d.ts +0 -1
  2. package/dist/components/Icon/components/Autopay.d.ts +3 -0
  3. package/dist/components/Icon/components/AutopayPaused.d.ts +3 -0
  4. package/dist/components/Icon/components/Person.d.ts +3 -0
  5. package/dist/components/Icon/components/PersonSolid.d.ts +3 -0
  6. package/dist/components/Icon/components/Wallet.d.ts +3 -0
  7. package/dist/components/Icon/components/index.d.ts +1 -1
  8. package/dist/components/Input/Input.d.ts +1 -1
  9. package/dist/components/Menu/components/Item.d.ts +1 -1
  10. package/dist/components/Menu/components/Link.d.ts +1 -1
  11. package/dist/components/Navigation2/components/Link.d.ts +1 -1
  12. package/dist/components/Pagination/PageNumbers.d.ts +0 -1
  13. package/dist/components/Report/Report.d.ts +1 -1
  14. package/dist/components/Select2/components/Option.d.ts +4 -4
  15. package/dist/components/Select2/components/Search.d.ts +1 -1
  16. package/dist/components/Table3/components/Columns/Cell/EditingDisplayCell.d.ts +0 -1
  17. package/dist/components/Table3/components/Row/Editing/CreateNewRow.d.ts +1 -2
  18. package/dist/components/Table3/components/Row/Editing/TemporaryRow.d.ts +1 -0
  19. package/dist/components/Table3/util/editing.d.ts +3 -0
  20. package/dist/components/Tag/Tag.d.ts +1 -1
  21. package/dist/esm/index.css +13 -4
  22. package/dist/esm/packages/taco/src/charts/utils/color.js.map +1 -1
  23. package/dist/esm/packages/taco/src/components/Badge/Badge.js +9 -6
  24. package/dist/esm/packages/taco/src/components/Badge/Badge.js.map +1 -1
  25. package/dist/esm/packages/taco/src/components/Button/Button.js +2 -1
  26. package/dist/esm/packages/taco/src/components/Button/Button.js.map +1 -1
  27. package/dist/esm/packages/taco/src/components/Combobox/useCombobox.js +6 -5
  28. package/dist/esm/packages/taco/src/components/Combobox/useCombobox.js.map +1 -1
  29. package/dist/esm/packages/taco/src/components/Icon/components/Autopay.js +19 -0
  30. package/dist/esm/packages/taco/src/components/Icon/components/Autopay.js.map +1 -0
  31. package/dist/esm/packages/taco/src/components/Icon/components/AutopayPaused.js +19 -0
  32. package/dist/esm/packages/taco/src/components/Icon/components/AutopayPaused.js.map +1 -0
  33. package/dist/esm/packages/taco/src/components/Icon/components/Person.js +19 -0
  34. package/dist/esm/packages/taco/src/components/Icon/components/Person.js.map +1 -0
  35. package/dist/esm/packages/taco/src/components/Icon/components/PersonSolid.js +19 -0
  36. package/dist/esm/packages/taco/src/components/Icon/components/PersonSolid.js.map +1 -0
  37. package/dist/esm/packages/taco/src/components/Icon/components/Wallet.js +19 -0
  38. package/dist/esm/packages/taco/src/components/Icon/components/Wallet.js.map +1 -0
  39. package/dist/esm/packages/taco/src/components/Icon/components/index.js +10 -0
  40. package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
  41. package/dist/esm/packages/taco/src/components/Select2/components/Option.js +7 -5
  42. package/dist/esm/packages/taco/src/components/Select2/components/Option.js.map +1 -1
  43. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js +56 -19
  44. package/dist/esm/packages/taco/src/components/Select2/components/Trigger.js.map +1 -1
  45. package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js +1 -1
  46. package/dist/esm/packages/taco/src/components/Shortcut/Shortcut.js.map +1 -1
  47. package/dist/esm/packages/taco/src/components/Table3/Table3.js +15 -7
  48. package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
  49. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js +2 -4
  50. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/CreateNewRow.js.map +1 -1
  51. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js +3 -3
  52. package/dist/esm/packages/taco/src/components/Table3/components/Row/Editing/TemporaryRow.js.map +1 -1
  53. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +9 -7
  54. package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -1
  55. package/dist/esm/packages/taco/src/components/Table3/util/editing.js +9 -1
  56. package/dist/esm/packages/taco/src/components/Table3/util/editing.js.map +1 -1
  57. package/dist/esm/packages/taco/src/components/Tag/Tag.js +6 -4
  58. package/dist/esm/packages/taco/src/components/Tag/Tag.js.map +1 -1
  59. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +2 -1
  60. package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -1
  61. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js +4 -0
  62. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Columns/Internal/Expansion.js.map +1 -1
  63. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js +7 -2
  64. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Footer/Footer.js.map +1 -1
  65. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/FilterContext.js +6 -0
  66. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/FilterContext.js.map +1 -0
  67. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js +5 -3
  68. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/ManageFiltersPopover.js.map +1 -1
  69. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js +0 -2
  70. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.js.map +1 -1
  71. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js +2 -1
  72. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -1
  73. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js +3 -1
  74. package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterValue.js.map +1 -1
  75. package/dist/esm/packages/taco/src/primitives/Table/types.js.map +1 -1
  76. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js +2 -1
  77. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/features/useTableRowExpansion.js.map +1 -1
  78. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js +1 -1
  79. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/useTableManager.js.map +1 -1
  80. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js +7 -1
  81. package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/presets.js.map +1 -1
  82. package/dist/index.css +13 -4
  83. package/dist/primitives/Table/Core/Table.d.ts +1 -0
  84. package/dist/primitives/Table/Core/components/Body/util.d.ts +4 -4
  85. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/FilterContext.d.ts +3 -0
  86. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/Filter.d.ts +0 -1
  87. package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.d.ts +0 -3
  88. package/dist/primitives/Table/types.d.ts +2 -1
  89. package/dist/primitives/Table/useTableManager/features/useTableRowExpansion.d.ts +2 -1
  90. package/dist/primitives/Table/useTableManager/types.d.ts +0 -1
  91. package/dist/taco.cjs.development.js +235 -75
  92. package/dist/taco.cjs.development.js.map +1 -1
  93. package/dist/taco.cjs.production.min.js +1 -1
  94. package/dist/taco.cjs.production.min.js.map +1 -1
  95. package/package.json +18 -19
@@ -391,6 +391,36 @@ function IconAttach(props, svgRef) {
391
391
  }
392
392
  var Attach = /*#__PURE__*/React.forwardRef(IconAttach);
393
393
 
394
+ function IconAutopayPaused(props, svgRef) {
395
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
396
+ fill: "none",
397
+ xmlns: "http://www.w3.org/2000/svg",
398
+ viewBox: "0 0 24 24",
399
+ ref: svgRef
400
+ }, props), /*#__PURE__*/React.createElement("path", {
401
+ fillRule: "evenodd",
402
+ clipRule: "evenodd",
403
+ d: "M9.356 2.503a.743.743 0 10.449 1.417 9.323 9.323 0 011.909-.391 8.998 8.998 0 011.883.013.743.743 0 10.168-1.476 10.484 10.484 0 00-2.195-.016 10.81 10.81 0 00-2.214.453zM7.46 5.037a.743.743 0 10-.817-1.241c-.628.413-1.215.893-1.747 1.433-.52.528-.978 1.103-1.366 1.712a.743.743 0 101.253.798 8.928 8.928 0 011.17-1.467A9.28 9.28 0 017.46 5.037zm9.14-2.22a.743.743 0 00-.59 1.363 7.904 7.904 0 011.611.935c.484.363.914.776 1.287 1.229a.743.743 0 001.147-.945 9.004 9.004 0 00-1.54-1.472 9.387 9.387 0 00-1.915-1.11zM3.767 10.008a.743.743 0 10-1.432-.396A9.316 9.316 0 002 11.795a.743.743 0 101.485.048 7.83 7.83 0 01.282-1.835zm17.716-2.152a.743.743 0 10-1.389.529c.21.549.353 1.126.425 1.723a.743.743 0 101.476-.18 8.81 8.81 0 00-.512-2.072zm-9.28-.732c-.26 0-.527.127-.527.505v.406c-1.567.145-2.577 1.085-2.577 2.426 0 1.125.639 1.862 1.907 2.182l1.296.285c.836.18 1.167.435 1.167.87 0 .558-.441.923-1.26.923-.586 0-1.154-.244-1.67-.714-.332-.278-.54-.36-.796-.36-.412 0-.743.256-.743.709 0 .348.186.684.51.98.482.447 1.26.72 2.143.796v.354c0 .371.272.505.533.505.262 0 .529-.134.529-.505v-.366c1.625-.191 2.64-1.143 2.64-2.519 0-1.133-.652-1.845-1.978-2.156l-1.3-.27c-.738-.145-1.075-.424-1.075-.859 0-.488.436-.876 1.12-.876.581 0 .999.185 1.492.655.29.25.528.36.842.36.366 0 .667-.267.667-.65 0-.325-.174-.667-.499-.975-.43-.418-1.12-.685-1.892-.783v-.418c0-.372-.267-.505-.528-.505zm8.802 8.025a.743.743 0 00-.946.457 7.718 7.718 0 01-2.763 3.704 8.23 8.23 0 01-4.48 1.548 8.628 8.628 0 01-4.69-1.152c-.906-.524-1.649-1.03-2.262-1.749l.79.276a.743.743 0 10.49-1.404l-2.732-.952a.743.743 0 00-.946.458l-.997 2.86a.743.743 0 101.403.49l.45-1.294c.84 1.193 1.88 1.918 3.06 2.601a10.114 10.114 0 005.5 1.35 9.715 9.715 0 005.287-1.83 9.204 9.204 0 003.293-4.417.743.743 0 00-.457-.946z",
404
+ fill: "currentColor"
405
+ }));
406
+ }
407
+ var AutopayPaused = /*#__PURE__*/React.forwardRef(IconAutopayPaused);
408
+
409
+ function IconAutopay(props, svgRef) {
410
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
411
+ fill: "none",
412
+ xmlns: "http://www.w3.org/2000/svg",
413
+ viewBox: "0 0 24 24",
414
+ ref: svgRef
415
+ }, props), /*#__PURE__*/React.createElement("path", {
416
+ fillRule: "evenodd",
417
+ clipRule: "evenodd",
418
+ d: "M1.367 6.142a.734.734 0 011.003.269l.83 1.438a9.885 9.885 0 017.774-5.769 9.993 9.993 0 015.73.975 10.135 10.135 0 014.249 4.002.734.734 0 01-1.272.734 8.667 8.667 0 00-3.633-3.422 8.525 8.525 0 00-4.888-.832 8.417 8.417 0 00-6.355 4.376l.749-.433a.734.734 0 01.734 1.271l-2.56 1.479a.734.734 0 01-1.004-.269L1.098 7.145a.734.734 0 01.27-1.003zm2.895 10.273a.734.734 0 011.003.269 7.627 7.627 0 003.384 3.09 8.195 8.195 0 004.668.668 8.64 8.64 0 004.376-2.005c.792-.684 1.427-1.318 1.895-2.138l-.731.422a.734.734 0 01-.734-1.27l2.495-1.442a.734.734 0 011.003.27l1.501 2.6a.734.734 0 01-1.271.734l-.683-1.183c-.6 1.326-1.485 2.229-2.516 3.118a10.107 10.107 0 01-5.122 2.346 9.664 9.664 0 01-5.504-.79 9.095 9.095 0 01-4.032-3.686.734.734 0 01.268-1.003zm7.382-8.75c0-.372.264-.498.522-.498s.521.132.521.499v.413c.763.097 1.446.361 1.87.774.321.304.493.642.493.963 0 .379-.298.643-.66.643-.309 0-.544-.11-.83-.356-.488-.464-.901-.648-1.475-.648-.676 0-1.107.384-1.107.866 0 .43.333.706 1.062.849l1.285.267c1.31.307 1.955 1.01 1.955 2.13 0 1.36-1.004 2.3-2.61 2.489v.361c0 .367-.264.5-.522.5s-.527-.133-.527-.5v-.35c-.872-.074-1.64-.344-2.116-.785-.322-.293-.505-.625-.505-.97 0-.447.327-.7.734-.7.252 0 .459.081.786.357.51.464 1.072.705 1.651.705.809 0 1.245-.361 1.245-.912 0-.43-.327-.682-1.153-.86l-1.281-.282c-1.253-.316-1.885-1.044-1.885-2.155 0-1.325.998-2.254 2.547-2.398v-.401z",
419
+ fill: "currentColor"
420
+ }));
421
+ }
422
+ var Autopay = /*#__PURE__*/React.forwardRef(IconAutopay);
423
+
394
424
  function IconAutotextInsert(props, svgRef) {
395
425
  return /*#__PURE__*/React.createElement("svg", Object.assign({
396
426
  xmlns: "http://www.w3.org/2000/svg",
@@ -2626,6 +2656,21 @@ function IconPersonPlus(props, svgRef) {
2626
2656
  }
2627
2657
  var PersonPlus = /*#__PURE__*/React.forwardRef(IconPersonPlus);
2628
2658
 
2659
+ function IconPersonSolid(props, svgRef) {
2660
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
2661
+ fill: "none",
2662
+ xmlns: "http://www.w3.org/2000/svg",
2663
+ viewBox: "0 0 24 24",
2664
+ ref: svgRef
2665
+ }, props), /*#__PURE__*/React.createElement("path", {
2666
+ fillRule: "evenodd",
2667
+ clipRule: "evenodd",
2668
+ d: "M12 11.5c4.553 0 7.21 2.43 7.969 7.29.24 1.537-.928 2.962-2.608 3.182-.144.018-.29.028-.435.028H7.074C5.376 22 4 20.74 4 19.187c0-.133.01-.266.03-.398C4.79 13.93 7.448 11.5 12 11.5zM12 2c2.112 0 3.825 1.903 3.825 4.25S14.112 10.5 12 10.5c-2.113 0-3.825-1.903-3.825-4.25S9.887 2 12 2z",
2669
+ fill: "currentColor"
2670
+ }));
2671
+ }
2672
+ var PersonSolid = /*#__PURE__*/React.forwardRef(IconPersonSolid);
2673
+
2629
2674
  function IconPersonTick(props, svgRef) {
2630
2675
  return /*#__PURE__*/React.createElement("svg", Object.assign({
2631
2676
  xmlns: "http://www.w3.org/2000/svg",
@@ -2639,6 +2684,21 @@ function IconPersonTick(props, svgRef) {
2639
2684
  }
2640
2685
  var PersonTick = /*#__PURE__*/React.forwardRef(IconPersonTick);
2641
2686
 
2687
+ function IconPerson(props, svgRef) {
2688
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
2689
+ fill: "none",
2690
+ xmlns: "http://www.w3.org/2000/svg",
2691
+ viewBox: "0 0 24 24",
2692
+ ref: svgRef
2693
+ }, props), /*#__PURE__*/React.createElement("path", {
2694
+ fillRule: "evenodd",
2695
+ clipRule: "evenodd",
2696
+ d: "M12 11.5c4.553 0 7.21 2.43 7.969 7.29.24 1.537-.928 2.962-2.608 3.182-.144.018-.29.028-.435.028H7.074C5.376 22 4 20.74 4 19.187c0-.133.01-.266.03-.398C4.79 13.93 7.448 11.5 12 11.5zm0 1.5c-3.684 0-5.696 1.84-6.346 6.002-.01.061-.015.123-.015.186 0 .68.565 1.238 1.288 1.305l.147.007h9.852c.068 0 .136-.004.203-.013.784-.103 1.329-.768 1.217-1.485C17.696 14.84 15.684 13 12 13zm0-11c2.112 0 3.825 1.903 3.825 4.25S14.112 10.5 12 10.5c-2.113 0-3.825-1.903-3.825-4.25S9.887 2 12 2zm0 1.5c-1.13 0-2.186 1.174-2.186 2.75S10.87 9 12 9s2.186-1.174 2.186-2.75S13.129 3.5 12 3.5z",
2697
+ fill: "currentColor"
2698
+ }));
2699
+ }
2700
+ var Person = /*#__PURE__*/React.forwardRef(IconPerson);
2701
+
2642
2702
  function IconPhoneSolid(props, svgRef) {
2643
2703
  return /*#__PURE__*/React.createElement("svg", Object.assign({
2644
2704
  fill: "none",
@@ -3408,6 +3468,21 @@ function IconUnreconciled(props, svgRef) {
3408
3468
  }
3409
3469
  var Unreconciled = /*#__PURE__*/React.forwardRef(IconUnreconciled);
3410
3470
 
3471
+ function IconWallet(props, svgRef) {
3472
+ return /*#__PURE__*/React.createElement("svg", Object.assign({
3473
+ fill: "none",
3474
+ xmlns: "http://www.w3.org/2000/svg",
3475
+ viewBox: "0 0 24 24",
3476
+ ref: svgRef
3477
+ }, props), /*#__PURE__*/React.createElement("path", {
3478
+ fillRule: "evenodd",
3479
+ clipRule: "evenodd",
3480
+ d: "M4.75 4.5h14.5a.25.25 0 01.25.25V7H16a5 5 0 000 10h3.5v2.25a.25.25 0 01-.25.25H4.75a.25.25 0 01-.25-.25V4.75a.25.25 0 01.25-.25zM22 7h-1V4.75A1.75 1.75 0 0019.25 3H4.75A1.75 1.75 0 003 4.75v14.5c0 .966.784 1.75 1.75 1.75h14.5A1.75 1.75 0 0021 19.25V17h1a1 1 0 001-1V8a1 1 0 00-1-1zm-.5 1.5H16a3.5 3.5 0 100 7h5.5v-7zm-5.5 5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",
3481
+ fill: "currentColor"
3482
+ }));
3483
+ }
3484
+ var Wallet = /*#__PURE__*/React.forwardRef(IconWallet);
3485
+
3411
3486
  function IconWarning(props, svgRef) {
3412
3487
  return /*#__PURE__*/React.createElement("svg", Object.assign({
3413
3488
  fill: "none",
@@ -3505,6 +3580,8 @@ const icons = {
3505
3580
  'attach-cancel': AttachCancel,
3506
3581
  'attach-warning': AttachWarning,
3507
3582
  attach: Attach,
3583
+ 'autopay-paused': AutopayPaused,
3584
+ autopay: Autopay,
3508
3585
  'autotext-insert': AutotextInsert,
3509
3586
  autotext: Autotext,
3510
3587
  'basic-tabs': BasicTabs,
@@ -3671,7 +3748,9 @@ const icons = {
3671
3748
  'person-change': PersonChange,
3672
3749
  'person-minus': PersonMinus,
3673
3750
  'person-plus': PersonPlus,
3751
+ 'person-solid': PersonSolid,
3674
3752
  'person-tick': PersonTick,
3753
+ person: Person,
3675
3754
  'phone-solid': PhoneSolid,
3676
3755
  phone: Phone,
3677
3756
  play: Play,
@@ -3730,6 +3809,7 @@ const icons = {
3730
3809
  undo: Undo,
3731
3810
  undock: Undock,
3732
3811
  unreconciled: Unreconciled,
3812
+ wallet: Wallet,
3733
3813
  warning: Warning,
3734
3814
  webshop: Webshop,
3735
3815
  website: Website,
@@ -4083,10 +4163,10 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
4083
4163
  ...otherProps
4084
4164
  } = props;
4085
4165
  const isTransparent = color === 'transparent';
4086
- const className = cn('rounded-full border overflow-hidden whitespace-nowrap inline-flex items-center justify-center', {
4166
+ const className = cn('rounded-full border box-border overflow-hidden whitespace-nowrap inline-flex items-center justify-center', {
4087
4167
  [`border ${getOutlineColorShadeClasses(color)}`]: outline,
4088
- [`border-transparent font-normal ${getSubtleColorShadeClasses(color)}`]: subtle,
4089
- [`border-transparent ${getColorShadeClasses(color)}`]: !outline && !subtle,
4168
+ [`border-none font-normal ${getSubtleColorShadeClasses(color)}`]: subtle,
4169
+ [`border-none ${getColorShadeClasses(color)}`]: !outline && !subtle,
4090
4170
  'h-4 min-w-0 py-0 px-1 text-xs': small,
4091
4171
  'h-2 w-2 min-w-0': compact,
4092
4172
  'font-bold': outline || !subtle,
@@ -4098,12 +4178,15 @@ const Badge = /*#__PURE__*/React.forwardRef(function Badge(props, ref) {
4098
4178
  if (compact) {
4099
4179
  return /*#__PURE__*/React.createElement(VisuallyHidden, null, children);
4100
4180
  }
4181
+ const contentToRender = typeof children === 'string' ? /*#__PURE__*/React.createElement("span", {
4182
+ className: "items-center truncate"
4183
+ }, children) : children;
4101
4184
  if (status) {
4102
4185
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
4103
- className: cn('mr-1 h-2 w-2 rounded-full', getColorShadeClasses(color))
4104
- }), children);
4186
+ className: cn('mr-1 h-2 w-2 shrink-0 rounded-full', getColorShadeClasses(color))
4187
+ }), contentToRender);
4105
4188
  }
4106
- return children;
4189
+ return contentToRender;
4107
4190
  };
4108
4191
  return /*#__PURE__*/React.createElement("span", Object.assign({}, otherProps, {
4109
4192
  "aria-atomic": "true",
@@ -4859,7 +4942,8 @@ const Base$1 = /*#__PURE__*/React.forwardRef(function ButtonBase(props, ref) {
4859
4942
  }, props.className);
4860
4943
  return createButtonWithTooltip({
4861
4944
  ...otherProps,
4862
- 'data-taco': 'button'
4945
+ 'data-taco': 'button',
4946
+ 'data-appearance': appearance
4863
4947
  }, className, ref);
4864
4948
  });
4865
4949
  const Button$1 = /*#__PURE__*/React.forwardRef(function Button(props, ref) {
@@ -5943,7 +6027,6 @@ const useCombobox = ({
5943
6027
  }, [open]);
5944
6028
  // event handlers
5945
6029
  const handleInputBlur = event => {
5946
- event.persist();
5947
6030
  if (listRef.current && event.relatedTarget === listRef.current) {
5948
6031
  event.preventDefault();
5949
6032
  return;
@@ -5956,7 +6039,12 @@ const useCombobox = ({
5956
6039
  if (parents !== null && parents.length > 0) {
5957
6040
  event.detail.parents = parents;
5958
6041
  }
5959
- onChange(event);
6042
+ const isComboboxChangeEvent = event => {
6043
+ return !event.isTrusted; // this makes sure we only take our own custom event, and not the browser default blur on tab.
6044
+ };
6045
+ if (isComboboxChangeEvent(event)) {
6046
+ onChange(event);
6047
+ }
5960
6048
  }
5961
6049
  if (props.onBlur) {
5962
6050
  props.onBlur(event);
@@ -5970,12 +6058,10 @@ const useCombobox = ({
5970
6058
  setOpen(true);
5971
6059
  }
5972
6060
  if (onClick) {
5973
- event.persist();
5974
6061
  onClick(event);
5975
6062
  }
5976
6063
  };
5977
6064
  const handleInputKeyDown = event => {
5978
- event.persist();
5979
6065
  if (!event.ctrlKey && !event.metaKey) {
5980
6066
  switch (event.key) {
5981
6067
  case 'Backspace':
@@ -6044,7 +6130,6 @@ const useCombobox = ({
6044
6130
  }
6045
6131
  }
6046
6132
  if (!event.isDefaultPrevented() && onKeyDown) {
6047
- event.persist();
6048
6133
  onKeyDown(event);
6049
6134
  }
6050
6135
  };
@@ -8283,7 +8368,7 @@ const Shortcut = ({
8283
8368
  className: className
8284
8369
  }), texts.map(key => (/*#__PURE__*/React__default.createElement("kbd", {
8285
8370
  key: key,
8286
- className: "font-display text-grey-700 [[data-taco=tooltip]_&]:bg-grey-300/[0.25] rounded-sm bg-black/[0.09] px-1 text-center font-bold [[data-taco=tooltip]_&]:text-white"
8371
+ className: "font-display text-grey-700 [[data-taco=tooltip]_&]:bg-grey-300/[0.25] rounded-sm bg-black/[0.09] px-1 text-center font-bold [[data-appearance=danger]_&]:text-white [[data-appearance=primary]_&]:text-white [[data-taco=tooltip]_&]:text-white"
8287
8372
  }, key))));
8288
8373
  };
8289
8374
 
@@ -10526,6 +10611,7 @@ const DEFAULT_PRESET = {
10526
10611
  enableColumnHiding: false,
10527
10612
  enableColumnResizing: false,
10528
10613
  enableRowExpansion: false,
10614
+ enableRowExpansionAll: true,
10529
10615
  enableRowSelection: false,
10530
10616
  // custom -- common between all table types
10531
10617
  enableColumnOrdering: false,
@@ -10552,6 +10638,7 @@ const presets = {
10552
10638
  enableColumnHiding: true,
10553
10639
  enableColumnResizing: true,
10554
10640
  enableRowExpansion: true,
10641
+ enableRowExpansionAll: true,
10555
10642
  enableRowSelection: true,
10556
10643
  // custom -- common between all table types
10557
10644
  enableColumnOrdering: true,
@@ -10577,6 +10664,7 @@ const presets = {
10577
10664
  enableColumnHiding: false,
10578
10665
  enableColumnResizing: false,
10579
10666
  enableRowExpansion: true,
10667
+ enableRowExpansionAll: true,
10580
10668
  enableRowSelection: true,
10581
10669
  // custom -- common between all table types
10582
10670
  enableColumnOrdering: false,
@@ -10602,6 +10690,7 @@ const presets = {
10602
10690
  enableColumnHiding: false,
10603
10691
  enableColumnResizing: false,
10604
10692
  enableRowExpansion: true,
10693
+ enableRowExpansionAll: true,
10605
10694
  enableRowSelection: false,
10606
10695
  // custom -- common between all table types
10607
10696
  enableColumnOrdering: false,
@@ -10619,7 +10708,7 @@ const presets = {
10619
10708
  }
10620
10709
  };
10621
10710
  function getTableFeaturePreset(props) {
10622
- var _props$enableRowActio, _props$enableRowClick, _props$enableRowDrag, _props$enableRowDrop, _props$enableRowGoto, _props$enableRowExpan, _props$enableRowSelec, _props$enableFilterin, _props$enableSearch, _props$enableSorting, _props$enableColumnFr, _props$enableColumnHi, _props$enableColumnRe, _props$enableColumnOr, _props$enableFontSize, _props$enableFooter, _props$enablePrinting, _props$enableRowActiv, _props$rowActions, _props$enableRowHeigh, _props$enableSaveSett;
10711
+ var _props$enableRowActio, _props$enableRowClick, _props$enableRowDrag, _props$enableRowDrop, _props$enableRowGoto, _props$enableRowExpan, _props$enableRowExpan2, _props$enableRowSelec, _props$enableFilterin, _props$enableSearch, _props$enableSorting, _props$enableColumnFr, _props$enableColumnHi, _props$enableColumnRe, _props$enableColumnOr, _props$enableFontSize, _props$enableFooter, _props$enablePrinting, _props$enableRowActiv, _props$rowActions, _props$enableRowHeigh, _props$enableSaveSett;
10623
10712
  const presetOptions = props.preset ? presets[props.preset] : DEFAULT_PRESET;
10624
10713
  const enableRowActions = (_props$enableRowActio = props.enableRowActions) !== null && _props$enableRowActio !== void 0 ? _props$enableRowActio : presetOptions.enableRowActions;
10625
10714
  const enableRowClick = (_props$enableRowClick = props.enableRowClick) !== null && _props$enableRowClick !== void 0 ? _props$enableRowClick : presetOptions.enableRowClick;
@@ -10627,6 +10716,7 @@ function getTableFeaturePreset(props) {
10627
10716
  const enableRowDrop = (_props$enableRowDrop = props.enableRowDrop) !== null && _props$enableRowDrop !== void 0 ? _props$enableRowDrop : presetOptions.enableRowDrop;
10628
10717
  const enableRowGoto = (_props$enableRowGoto = props.enableRowGoto) !== null && _props$enableRowGoto !== void 0 ? _props$enableRowGoto : presetOptions.enableRowGoto;
10629
10718
  const enableRowExpansion = (_props$enableRowExpan = props.enableRowExpansion) !== null && _props$enableRowExpan !== void 0 ? _props$enableRowExpan : presetOptions.enableRowExpansion;
10719
+ const enableRowExpansionAll = (_props$enableRowExpan2 = props.enableRowExpansionAll) !== null && _props$enableRowExpan2 !== void 0 ? _props$enableRowExpan2 : presetOptions.enableRowExpansionAll;
10630
10720
  const enableRowSelection = (_props$enableRowSelec = props.enableRowSelection) !== null && _props$enableRowSelec !== void 0 ? _props$enableRowSelec : presetOptions.enableRowSelection;
10631
10721
  return {
10632
10722
  // react-table built-in
@@ -10651,6 +10741,7 @@ function getTableFeaturePreset(props) {
10651
10741
  enableRowDrag: enableRowDrag && !!props.onRowDrag,
10652
10742
  enableRowDrop: enableRowDrop && !!props.onRowDrop,
10653
10743
  enableRowGoto: enableRowGoto && !!props.onRowGoto,
10744
+ enableRowExpansionAll: enableRowExpansion && enableRowExpansionAll && !!props.rowExpansionRenderer,
10654
10745
  enableRowHeight: (_props$enableRowHeigh = props.enableRowHeight) !== null && _props$enableRowHeigh !== void 0 ? _props$enableRowHeigh : presetOptions.enableRowHeight,
10655
10746
  enableSaveSettings: (_props$enableSaveSett = props.enableSaveSettings) !== null && _props$enableSaveSett !== void 0 ? _props$enableSaveSett : presetOptions.enableSaveSettings
10656
10747
  };
@@ -10895,9 +10986,10 @@ function useTableRowClick(isEnabled = false, onRowClick) {
10895
10986
  };
10896
10987
  }
10897
10988
 
10898
- function useTableRowExpansion(isEnabled = false, rowExpansionRenderer) {
10989
+ function useTableRowExpansion(isEnabled = false, canExpandAll = true, rowExpansionRenderer) {
10899
10990
  return {
10900
10991
  isEnabled,
10992
+ canExpandAll,
10901
10993
  rowExpansionRenderer: isEnabled ? rowExpansionRenderer : undefined
10902
10994
  };
10903
10995
  }
@@ -11738,7 +11830,7 @@ function useTableManager(props, meta, internalColumns) {
11738
11830
  const rowClick = useTableRowClick(options.enableRowClick, props.onRowClick);
11739
11831
  const rowDrag = useTableRowDrag(options.enableRowDrag && !(meta !== null && meta !== void 0 && (_meta$editing = meta.editing) !== null && _meta$editing !== void 0 && _meta$editing.isEditing), props.onRowDrag);
11740
11832
  const rowDrop = useTableRowDrop(options.enableRowDrop, props.onRowDrop);
11741
- const rowExpansion = useTableRowExpansion(options.enableRowExpansion, props.rowExpansionRenderer);
11833
+ const rowExpansion = useTableRowExpansion(options.enableRowExpansion, options.enableRowExpansionAll, props.rowExpansionRenderer);
11742
11834
  const rowGoto = useTableRowGoto(options.enableRowGoto, props.onRowGoto);
11743
11835
  const rowGroups = useTableRowGroups(props.rowActionsForGroup);
11744
11836
  const rowHeight = useTableRowHeight(options.enableRowHeight, settings.rowHeight);
@@ -12480,6 +12572,10 @@ function Header$3(context) {
12480
12572
  const {
12481
12573
  table
12482
12574
  } = context;
12575
+ const tableMeta = table.options.meta;
12576
+ if (!tableMeta.rowExpansion.canExpandAll) {
12577
+ return null;
12578
+ }
12483
12579
  const isSomeRowsExpanded = table.getIsSomeRowsExpanded();
12484
12580
  const handleClick = event => {
12485
12581
  event.stopPropagation();
@@ -13786,8 +13882,13 @@ function Summary(props) {
13786
13882
  }
13787
13883
 
13788
13884
  function Foot(props) {
13789
- const nonGroupedHeaders = props.table.getFooterGroups()[0].headers.filter(header => !header.column.getIsGrouped());
13790
- return /*#__PURE__*/React__default.createElement("tfoot", null, /*#__PURE__*/React__default.createElement("tr", null, nonGroupedHeaders.map((header, index) => (/*#__PURE__*/React__default.createElement(Footer$3, {
13885
+ const {
13886
+ children,
13887
+ table,
13888
+ ...attributes
13889
+ } = props;
13890
+ const nonGroupedHeaders = table.getFooterGroups()[0].headers.filter(header => !header.column.getIsGrouped());
13891
+ return /*#__PURE__*/React__default.createElement("tfoot", Object.assign({}, attributes), children, /*#__PURE__*/React__default.createElement("tr", null, nonGroupedHeaders.map((header, index) => (/*#__PURE__*/React__default.createElement(Footer$3, {
13791
13892
  key: header.id,
13792
13893
  header: header,
13793
13894
  index: index
@@ -14817,14 +14918,16 @@ const Tag$1 = /*#__PURE__*/React__default.forwardRef((props, ref) => {
14817
14918
  ref: ref,
14818
14919
  "data-taco": "tag"
14819
14920
  }), /*#__PURE__*/React__default.createElement("span", {
14820
- className: "truncate px-2",
14921
+ className: "flex items-center truncate px-2",
14821
14922
  ref: textRef
14822
14923
  }, icon ? typeof icon === 'string' ? (/*#__PURE__*/React__default.createElement(Icon, {
14823
14924
  name: icon,
14824
- className: "-ml-1 -mt-0.5 mr-1 !h-5 !w-5"
14925
+ className: "-ml-1 mr-1 !h-5 !w-5"
14825
14926
  })) : (/*#__PURE__*/React__default.cloneElement(icon, {
14826
- className: 'mr-1 -ml-1 -mt-0.5 !h-5 !w-5'
14827
- })) : null, children), onDelete ? (/*#__PURE__*/React__default.createElement(Icon, {
14927
+ className: 'mr-1 -ml-1 !h-5 !w-5'
14928
+ })) : null, /*#__PURE__*/React__default.createElement("span", {
14929
+ className: "truncate"
14930
+ }, children)), onDelete ? (/*#__PURE__*/React__default.createElement(Icon, {
14828
14931
  name: "close",
14829
14932
  onClick: onDelete,
14830
14933
  className: "-ml-1.5 !h-6 !w-5 flex-shrink-0 cursor-pointer rounded-r p-0.5 hover:bg-black/5"
@@ -15101,12 +15204,13 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
15101
15204
  }), hasValue ? (/*#__PURE__*/React__default.createElement(Icon, {
15102
15205
  name: "tick",
15103
15206
  className: "pointer-events-none invisible -mx-0.5 !h-4 !w-4 group-aria-selected:visible"
15104
- })) : null, isTag ? (/*#__PURE__*/React__default.createElement(Tag$1, {
15207
+ })) : null, typeof children !== 'string' ? (/*#__PURE__*/React__default.createElement("span", null, children)) : isTag ? (/*#__PURE__*/React__default.createElement(Tag$1, {
15105
15208
  className: "pointer-events-none my-1",
15106
15209
  color: color,
15107
15210
  icon: prefix
15108
15211
  }, children)) : (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, prefix ? typeof prefix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
15109
- name: prefix
15212
+ name: prefix,
15213
+ className: "!h-5 !w-5"
15110
15214
  }) : prefix : null, /*#__PURE__*/React__default.createElement("span", {
15111
15215
  className: "flex w-full justify-between"
15112
15216
  }, /*#__PURE__*/React__default.createElement("span", {
@@ -15115,9 +15219,10 @@ const Option$1 = /*#__PURE__*/React__default.forwardRef(function Select2Option(p
15115
15219
  className: "text-grey-700 -mt-1.5 mb-1.5 text-xs"
15116
15220
  }, description) : null), /*#__PURE__*/React__default.createElement("span", {
15117
15221
  className: "flex flex-col self-center"
15118
- }, postfix ? typeof postfix === 'string' ? /*#__PURE__*/React__default.createElement(Icon, {
15119
- name: postfix
15120
- }) : postfix : null)))), popover ? (/*#__PURE__*/React__default.createElement(IconButton, {
15222
+ }, postfix ? typeof postfix === 'string' ? (/*#__PURE__*/React__default.createElement(Icon, {
15223
+ name: postfix,
15224
+ className: "!h-5 !w-5"
15225
+ })) : postfix : null)))), popover ? (/*#__PURE__*/React__default.createElement(IconButton, {
15121
15226
  icon: "ellipsis-vertical",
15122
15227
  appearance: "discrete",
15123
15228
  className: cn('group-aria-current:visible invisible -mr-1 ml-auto !h-5 min-h-[theme(spacing.6)] !w-5 min-w-[theme(spacing.6)] hover:!bg-black/[.08] focus:!shadow-none group-hover:visible', {
@@ -15283,7 +15388,7 @@ const Single = /*#__PURE__*/React__default.forwardRef(function Select2TriggerSin
15283
15388
  readOnly,
15284
15389
  tags
15285
15390
  } = useSelect2Context();
15286
- const contentClassName = cn('truncate items-center gap-1');
15391
+ const contentClassName = cn('truncate flex items-center gap-1');
15287
15392
  const currentValue = children.find(matchesValue(value));
15288
15393
  let output;
15289
15394
  if (placeholder && currentValue === undefined) {
@@ -15293,13 +15398,13 @@ const Single = /*#__PURE__*/React__default.forwardRef(function Select2TriggerSin
15293
15398
  }, placeholder);
15294
15399
  } else if (currentValue) {
15295
15400
  if (tags && emptyValue !== value) {
15296
- output = /*#__PURE__*/React__default.createElement(Tag$1, {
15401
+ if (typeof currentValue.props.children === 'string') output = /*#__PURE__*/React__default.createElement(Tag$1, {
15297
15402
  className: "truncate",
15298
15403
  color: currentValue.props.color,
15299
15404
  disabled: disabled,
15300
15405
  icon: currentValue.props.prefix,
15301
15406
  readOnly: readOnly
15302
- }, currentValue.props.children);
15407
+ }, currentValue.props.children);else output = currentValue.props.children;
15303
15408
  } else {
15304
15409
  output = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, currentValue.props.prefix ? typeof currentValue.props.prefix === 'string' ? (/*#__PURE__*/React__default.createElement(Icon, {
15305
15410
  name: currentValue.props.prefix,
@@ -15350,7 +15455,7 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
15350
15455
  }, valuesAsChildren.length === 0 ? (/*#__PURE__*/React__default.createElement(Placeholder, {
15351
15456
  disabled: disabled,
15352
15457
  readOnly: readOnly
15353
- }, placeholder)) : valuesAsChildren.map(child => (/*#__PURE__*/React__default.createElement(Tag$1, {
15458
+ }, placeholder)) : valuesAsChildren.map(child => typeof child.props.children === 'string' ? (/*#__PURE__*/React__default.createElement(Tag$1, {
15354
15459
  key: String(child.props.value),
15355
15460
  className: "truncate",
15356
15461
  color: tags ? child.props.color : undefined,
@@ -15364,7 +15469,23 @@ const Multiple = /*#__PURE__*/React__default.forwardRef(function Select2TriggerM
15364
15469
  }
15365
15470
  },
15366
15471
  readOnly: readOnly
15367
- }, child.props.children)))));
15472
+ }, child.props.children)) : (/*#__PURE__*/React__default.cloneElement(child.props.children, {
15473
+ key: String(child.props.value),
15474
+ className: '!pr-0 !pl-1.5',
15475
+ children: (/*#__PURE__*/React__default.createElement("span", {
15476
+ className: "flex items-center"
15477
+ }, child.props.children.props.children, /*#__PURE__*/React__default.createElement(Icon, {
15478
+ name: "close",
15479
+ onClick: event => {
15480
+ event === null || event === void 0 ? void 0 : event.stopPropagation();
15481
+ event === null || event === void 0 ? void 0 : event.preventDefault();
15482
+ if (!disabled && !readOnly) {
15483
+ setValue(child.props.value);
15484
+ }
15485
+ },
15486
+ className: "ml-0.5 !h-5 !w-5 shrink-0 cursor-pointer rounded-r p-0.5 hover:bg-black/5"
15487
+ })))
15488
+ })))));
15368
15489
  } else {
15369
15490
  content = /*#__PURE__*/React__default.createElement(MultipleValue, {
15370
15491
  onClick: forwardClick,
@@ -15395,6 +15516,18 @@ const MultipleValue = ({
15395
15516
  } = useSelect2Context();
15396
15517
  const [contentRef, setContentRef] = React__default.useState(null);
15397
15518
  const boundaryIndex = contentRef ? getIndexOfFirstChildOverflowingParent(contentRef, 30) : undefined;
15519
+ // Retrieves the relevant text content from any JSX.Element passed as a select option, handling nested elements, arrays, and direct text
15520
+ const getTooltipTitle = child => {
15521
+ const children = child.props.children;
15522
+ if (typeof children === 'string') return children;
15523
+ if (typeof children.props.children === 'string') {
15524
+ return children.props.children;
15525
+ }
15526
+ if (Array.isArray(children.props.children)) {
15527
+ return children.props.children.filter(item => typeof item === 'string');
15528
+ }
15529
+ return '';
15530
+ };
15398
15531
  return /*#__PURE__*/React__default.createElement("div", {
15399
15532
  className: "relative flex w-full items-center gap-1 overflow-hidden",
15400
15533
  onClick: onClick
@@ -15405,26 +15538,35 @@ const MultipleValue = ({
15405
15538
  disabled: disabled,
15406
15539
  readOnly: readOnly
15407
15540
  }, placeholder)) : valuesAsChildren.map((child, index) => {
15408
- const tag = /*#__PURE__*/React__default.createElement(Tag$1, {
15409
- key: String(child.props.value),
15541
+ const classNames = {
15542
+ truncate: index === boundaryIndex,
15543
+ hidden: boundaryIndex !== undefined && boundaryIndex !== null ? index > boundaryIndex : false
15544
+ };
15545
+ let output;
15546
+ if (typeof child.props.children === 'string') {
15547
+ output = /*#__PURE__*/React__default.createElement(Tag$1, {
15548
+ key: String(child.props.value),
15549
+ className: cn('cursor-pointer', classNames),
15550
+ color: tags ? child.props.color : undefined,
15551
+ disabled: disabled,
15552
+ icon: child.props.prefix,
15553
+ readOnly: readOnly
15554
+ }, child.props.children);
15555
+ } else output = /*#__PURE__*/React__default.cloneElement(child.props.children, {
15410
15556
  className: cn('cursor-pointer', {
15411
- truncate: index === boundaryIndex,
15412
- hidden: boundaryIndex !== undefined && boundaryIndex !== null ? index > boundaryIndex : false
15413
- }),
15414
- color: tags ? child.props.color : undefined,
15415
- disabled: disabled,
15416
- icon: child.props.prefix,
15417
- readOnly: readOnly
15418
- }, child.props.children);
15557
+ 'shrink-0': index !== boundaryIndex
15558
+ }, classNames),
15559
+ key: String(child.props.value)
15560
+ });
15419
15561
  if (index === boundaryIndex) {
15420
15562
  return /*#__PURE__*/React__default.createElement(Tooltip, {
15421
15563
  key: String(child.props.value),
15422
- title: String(child.props.children)
15423
- }, tag);
15564
+ title: String(getTooltipTitle(child))
15565
+ }, output);
15424
15566
  }
15425
- return tag;
15567
+ return output;
15426
15568
  })), boundaryIndex !== undefined && boundaryIndex !== null && boundaryIndex < valuesAsChildren.length - 1 ? (/*#__PURE__*/React__default.createElement(Tooltip, {
15427
- title: valuesAsChildren.slice(boundaryIndex + 1).map(child => child ? String(child.props.children) : '').join(', ')
15569
+ title: valuesAsChildren.slice(boundaryIndex + 1).map(child => child ? String(getTooltipTitle(child)) : '').join(', ')
15428
15570
  }, /*#__PURE__*/React__default.createElement(Badge, {
15429
15571
  className: "flex-shrink-0"
15430
15572
  }, "+", valuesAsChildren.length - (boundaryIndex + 1)))) : null);
@@ -16299,10 +16441,11 @@ function guessComparatorsBasedOnControl(column) {
16299
16441
  return getDataTypeProperties(columnMeta.dataType).filterComparators;
16300
16442
  }
16301
16443
 
16444
+ const FilterContext = /*#__PURE__*/React__default.createContext([]);
16445
+
16302
16446
  const FilterColumn = /*#__PURE__*/React__default.forwardRef((props, ref) => {
16303
16447
  const {
16304
16448
  allColumns,
16305
- filters,
16306
16449
  onChange: handleChange,
16307
16450
  value = null,
16308
16451
  ...attributes
@@ -16310,6 +16453,7 @@ const FilterColumn = /*#__PURE__*/React__default.forwardRef((props, ref) => {
16310
16453
  const {
16311
16454
  texts
16312
16455
  } = useLocalization();
16456
+ const filters = React__default.useContext(FilterContext);
16313
16457
  const selectedColumn = allColumns.find(column => column.id === value);
16314
16458
  const warning = selectedColumn && !selectedColumn.getIsVisible();
16315
16459
  return /*#__PURE__*/React__default.createElement("div", {
@@ -16475,6 +16619,7 @@ function Control(props) {
16475
16619
  } = props;
16476
16620
  const controlRenderer = column === null || column === void 0 ? void 0 : (_column$columnDef$met2 = column.columnDef.meta) === null || _column$columnDef$met2 === void 0 ? void 0 : _column$columnDef$met2.control;
16477
16621
  const dataType = column === null || column === void 0 ? void 0 : (_column$columnDef$met3 = column.columnDef.meta) === null || _column$columnDef$met3 === void 0 ? void 0 : _column$columnDef$met3.dataType;
16622
+ const filters = React__default.useContext(FilterContext);
16478
16623
  const ref = React__default.useRef(null);
16479
16624
  React.useEffect(() => {
16480
16625
  // Set value to false only after first render of the control (when it's undefined) after setting the FilterColumn value, because we don't want to change then the value every time filter is opened
@@ -16488,7 +16633,7 @@ function Control(props) {
16488
16633
  setValue: value => onChange(value),
16489
16634
  value,
16490
16635
  ref
16491
- }), {
16636
+ }, undefined, filters), {
16492
16637
  ['data-query-selector']: querySelector,
16493
16638
  className: 'focus:yt-focus'
16494
16639
  });
@@ -16530,7 +16675,6 @@ function Filter$1(props) {
16530
16675
  const {
16531
16676
  allColumns,
16532
16677
  filter,
16533
- filters,
16534
16678
  onChange: handleChange,
16535
16679
  onRemove,
16536
16680
  position
@@ -16605,7 +16749,6 @@ function Filter$1(props) {
16605
16749
  className: "flex min-h-[theme(spacing.8)] w-14 flex-shrink-0 items-center justify-end pr-2 text-right"
16606
16750
  }, position > 0 ? texts.table.filters.conditions.and : texts.table.filters.conditions.where), /*#__PURE__*/React__default.createElement(FilterColumn, {
16607
16751
  allColumns: allColumns,
16608
- filters: filters,
16609
16752
  onChange: handleChangeColumn,
16610
16753
  value: id,
16611
16754
  ref: ref
@@ -16709,7 +16852,9 @@ function ManageFiltersPopover(props) {
16709
16852
  };
16710
16853
  return /*#__PURE__*/React__default.createElement(Popover, Object.assign({}, popoverProps, {
16711
16854
  onChange: handleClose
16712
- }), /*#__PURE__*/React__default.createElement(Popover.Content, null, /*#__PURE__*/React__default.createElement("div", {
16855
+ }), /*#__PURE__*/React__default.createElement(Popover.Content, null, /*#__PURE__*/React__default.createElement(FilterContext.Provider, {
16856
+ value: filters
16857
+ }, /*#__PURE__*/React__default.createElement("div", {
16713
16858
  className: "flex w-[40rem] flex-col gap-4"
16714
16859
  }, /*#__PURE__*/React__default.createElement("div", {
16715
16860
  className: "flex h-8"
@@ -16725,7 +16870,6 @@ function ManageFiltersPopover(props) {
16725
16870
  key: `filter_${index}`,
16726
16871
  allColumns: allColumns,
16727
16872
  filter: filter,
16728
- filters: filters,
16729
16873
  position: index,
16730
16874
  onChange: handleChangeFilter,
16731
16875
  onRemove: filters.length > 0 && filters.some(f => f.id) || filters.length > 1 ? handleRemoveFilter : undefined
@@ -16741,7 +16885,7 @@ function ManageFiltersPopover(props) {
16741
16885
  }, texts.table.filters.buttons.clear), /*#__PURE__*/React__default.createElement(Button$1, {
16742
16886
  appearance: "primary",
16743
16887
  onClick: handleApply
16744
- }, texts.table.filters.buttons.apply)))));
16888
+ }, texts.table.filters.buttons.apply))))));
16745
16889
  }
16746
16890
 
16747
16891
  function Filters(props) {
@@ -16861,6 +17005,7 @@ function TableGrid(props) {
16861
17005
  var _table$state$grouping;
16862
17006
  const {
16863
17007
  enableHorizontalArrowKeyNavigation,
17008
+ footerRows,
16864
17009
  table,
16865
17010
  ...attributes
16866
17011
  } = props;
@@ -16907,7 +17052,7 @@ function TableGrid(props) {
16907
17052
  } : table.renderer.style
16908
17053
  }, table.renderer.rows, props.children), table.meta.footer.isEnabled ? /*#__PURE__*/React__default.createElement(Foot, {
16909
17054
  table: table.instance
16910
- }) : null)))));
17055
+ }, footerRows) : null)))));
16911
17056
  }
16912
17057
 
16913
17058
  function Column$1(_) {
@@ -18500,6 +18645,14 @@ const shortcut = {
18500
18645
  meta: true,
18501
18646
  shift: false
18502
18647
  };
18648
+ function isTableScrolled(ref) {
18649
+ if (ref.current) {
18650
+ var _ref$current, _ref$current$querySel, _ref$current2, _ref$current2$querySe;
18651
+ const height = parseFloat(((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : (_ref$current$querySel = _ref$current.querySelector('tbody')) === null || _ref$current$querySel === void 0 ? void 0 : _ref$current$querySel.style.height) || '0') + parseFloat(((_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : (_ref$current2$querySe = _ref$current2.querySelector('tbody')) === null || _ref$current2$querySe === void 0 ? void 0 : _ref$current2$querySe.style.paddingBottom) || '0');
18652
+ return height > ref.current.scrollHeight;
18653
+ }
18654
+ return false;
18655
+ }
18503
18656
 
18504
18657
  function useTableEditingListener(table, tableRef, scrollToIndex) {
18505
18658
  const tableMeta = table.options.meta;
@@ -19101,13 +19254,15 @@ function useTableEditing(isEnabled = false, handleSave, handleChange, handleCrea
19101
19254
  try {
19102
19255
  if (changeset) {
19103
19256
  const rowId = pendingChangesFns.insertTemporaryRow(changeset);
19104
- table.getRow(rowId).pin('bottom');
19105
- // set the active row to the new row before toggling editing on
19106
- const temporaryRows = tableMeta.editing.temporaryRows;
19107
- const nextRowIndex = temporaryRows.length ? tableMeta.length + 1 : tableMeta.length;
19108
- tableMeta.rowActive.setRowActiveIndex(nextRowIndex);
19109
- toggleEditing(true, table, scrollToIndex);
19110
- setLastFocusedCellIndex(undefined);
19257
+ window.requestAnimationFrame(() => {
19258
+ table.getRow(rowId).pin('bottom');
19259
+ // set the active row to the new row before toggling editing on
19260
+ const temporaryRows = tableMeta.editing.temporaryRows;
19261
+ const nextRowIndex = temporaryRows.length ? tableMeta.length + 1 : tableMeta.length;
19262
+ tableMeta.rowActive.setRowActiveIndex(nextRowIndex);
19263
+ window.requestAnimationFrame(() => toggleEditing(true, table, scrollToIndex));
19264
+ setLastFocusedCellIndex(undefined);
19265
+ });
19111
19266
  }
19112
19267
  } catch (error) {
19113
19268
  console.error(error);
@@ -20047,10 +20202,10 @@ function CreateNewRow(props) {
20047
20202
  var _temporaryRows$0$tabl, _temporaryRows$, _table$getState$colum;
20048
20203
  const {
20049
20204
  buttonRef,
20205
+ isScrolled,
20050
20206
  scrollToIndex,
20051
20207
  table,
20052
- tableMeta,
20053
- tableRef
20208
+ tableMeta
20054
20209
  } = props;
20055
20210
  const {
20056
20211
  texts
@@ -20083,11 +20238,9 @@ function CreateNewRow(props) {
20083
20238
  keys: shortcut
20084
20239
  });
20085
20240
  }
20086
- const isScrolled = tableRef.current ? tableRef.current.scrollHeight > tableRef.current.clientHeight : false;
20087
20241
  const className = cn('group/row border-grey-300 !sticky z-[21]', {
20088
20242
  'bottom-10': tableMeta.footer.isEnabled,
20089
20243
  'bottom-0': !tableMeta.footer.isEnabled,
20090
- 'border-t-2': isScrolled,
20091
20244
  'border-b': !isScrolled
20092
20245
  });
20093
20246
  return /*#__PURE__*/React__default.createElement("tr", {
@@ -20112,6 +20265,7 @@ function CreateNewRow(props) {
20112
20265
  function TemporaryRow(props) {
20113
20266
  const {
20114
20267
  createRowButtonRef,
20268
+ isScrolled,
20115
20269
  table,
20116
20270
  tableMeta,
20117
20271
  tableRef
@@ -20174,10 +20328,9 @@ function TemporaryRow(props) {
20174
20328
  }
20175
20329
  }
20176
20330
  };
20177
- const isScrolled = tableRef.current ? tableRef.current.scrollHeight > tableRef.current.clientHeight : false;
20178
20331
  const className = cn('group/row border-grey-300 !sticky z-[22]', {
20179
- 'bottom-[calc(5rem_+_3px)] data-[row-editing-move]:bottom-[calc(5rem_+_2px)]': tableMeta.footer.isEnabled,
20180
- 'bottom-[calc(2.5rem_+_3px)] data-[row-editing-move]:bottom-[calc(2.5rem_+_2px)]': !tableMeta.footer.isEnabled,
20332
+ 'bottom-[calc(5rem_+_2px)] data-[row-editing-move]:bottom-[calc(5rem_+_2px)]': tableMeta.footer.isEnabled,
20333
+ 'bottom-[calc(2.5rem_+_2px)] data-[row-editing-move]:bottom-[calc(2.5rem_+_2px)]': !tableMeta.footer.isEnabled,
20181
20334
  'border-t-2 shadow-[0px_-5px_20px_0px_rgba(0,0,0,0.1)] [&>td]:!border-b-0': isScrolled
20182
20335
  });
20183
20336
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, table.getBottomRows().map(row => (/*#__PURE__*/React__default.createElement(Row, {
@@ -20213,6 +20366,17 @@ const BaseTable3 = /*#__PURE__*/fixedForwardRef(function BaseTable3(props, ref)
20213
20366
  };
20214
20367
  const hasAlertErrors = table3.meta.editing.getErrorsShownInAlert().length;
20215
20368
  const hasCreateWorkflow = table3.meta.editing.isEnabled && props.onEditingCreate;
20369
+ const isScrolled = isTableScrolled(table3.ref);
20370
+ let createWorkflow;
20371
+ if (hasCreateWorkflow) {
20372
+ createWorkflow = /*#__PURE__*/React__default.createElement(CreateNewRow, {
20373
+ buttonRef: table3.meta.editing.createRowButtonRef,
20374
+ isScrolled: isScrolled,
20375
+ scrollToIndex: table3.renderer.scrollToIndex,
20376
+ table: table3.instance,
20377
+ tableMeta: table3.meta
20378
+ });
20379
+ }
20216
20380
  return /*#__PURE__*/React__default.createElement(Table, null, /*#__PURE__*/React__default.createElement(Table.Toolbar, {
20217
20381
  table: table3
20218
20382
  }, table3.meta.editing.isEnabled ? (/*#__PURE__*/React__default.createElement(Editing, {
@@ -20225,19 +20389,15 @@ const BaseTable3 = /*#__PURE__*/fixedForwardRef(function BaseTable3(props, ref)
20225
20389
  tableRef: table3.ref
20226
20390
  })) : null, /*#__PURE__*/React__default.createElement(Table.Grid, Object.assign({}, gridAttributes, {
20227
20391
  "data-taco": "table3",
20392
+ footerRows: hasCreateWorkflow && isScrolled ? createWorkflow : undefined,
20228
20393
  table: table3
20229
20394
  }), hasCreateWorkflow ? (/*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(TemporaryRow, {
20230
20395
  createRowButtonRef: table3.meta.editing.createRowButtonRef,
20396
+ isScrolled: isScrolled,
20231
20397
  table: table3.instance,
20232
20398
  tableMeta: table3.meta,
20233
20399
  tableRef: table3.ref
20234
- }), /*#__PURE__*/React__default.createElement(CreateNewRow, {
20235
- buttonRef: table3.meta.editing.createRowButtonRef,
20236
- scrollToIndex: table3.renderer.scrollToIndex,
20237
- table: table3.instance,
20238
- tableMeta: table3.meta,
20239
- tableRef: table3.ref
20240
- }))) : null));
20400
+ }), !isScrolled ? createWorkflow : null)) : null));
20241
20401
  });
20242
20402
  const Table3 = /*#__PURE__*/fixedForwardRef(function Table3(props, ref) {
20243
20403
  const stringifiedChildren = String(props.children);