@medplum/react 2.0.11 → 2.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/cjs/index.cjs +73 -75
  2. package/dist/cjs/index.cjs.map +1 -1
  3. package/dist/cjs/index.min.cjs +1 -1
  4. package/dist/esm/SearchFieldEditor/SearchFieldEditor.mjs +20 -22
  5. package/dist/esm/SearchFieldEditor/SearchFieldEditor.mjs.map +1 -1
  6. package/dist/esm/index.min.mjs +1 -1
  7. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs +1 -1
  8. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/createReactComponent.mjs.map +1 -1
  9. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs +1 -1
  10. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/defaultAttributes.mjs.map +1 -1
  11. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAdjustmentsHorizontal.mjs +1 -1
  12. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAdjustmentsHorizontal.mjs.map +1 -1
  13. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs +4 -4
  14. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconAlertCircle.mjs.map +1 -1
  15. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleach.mjs +1 -1
  16. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleach.mjs.map +1 -1
  17. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleachOff.mjs +1 -1
  18. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBleachOff.mjs.map +1 -1
  19. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs +1 -1
  20. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBoxMultiple.mjs.map +1 -1
  21. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBracketsContain.mjs +1 -1
  22. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBracketsContain.mjs.map +1 -1
  23. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucket.mjs +1 -1
  24. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucket.mjs.map +1 -1
  25. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucketOff.mjs +1 -1
  26. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconBucketOff.mjs.map +1 -1
  27. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.mjs +7 -7
  28. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCalendar.mjs.map +1 -1
  29. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs +1 -1
  30. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheck.mjs.map +1 -1
  31. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.mjs +1 -1
  32. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCheckbox.mjs.map +1 -1
  33. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.mjs +1 -1
  34. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCircleMinus.mjs.map +1 -1
  35. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.mjs +1 -1
  36. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCirclePlus.mjs.map +1 -1
  37. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.mjs +1 -1
  38. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCloudUpload.mjs.map +1 -1
  39. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.mjs +1 -1
  40. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconColumns.mjs.map +1 -1
  41. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCurrencyDollar.mjs +1 -1
  42. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconCurrencyDollar.mjs.map +1 -1
  43. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs +1 -1
  44. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconDots.mjs.map +1 -1
  45. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs +1 -1
  46. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEdit.mjs.map +1 -1
  47. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqual.mjs +1 -1
  48. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqual.mjs.map +1 -1
  49. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqualNot.mjs +1 -1
  50. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconEqualNot.mjs.map +1 -1
  51. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFileAlert.mjs +1 -1
  52. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFileAlert.mjs.map +1 -1
  53. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.mjs +1 -1
  54. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilePlus.mjs.map +1 -1
  55. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.mjs +1 -1
  56. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconFilter.mjs.map +1 -1
  57. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconListDetails.mjs +1 -1
  58. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconListDetails.mjs.map +1 -1
  59. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathGreater.mjs +1 -1
  60. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathGreater.mjs.map +1 -1
  61. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathLower.mjs +1 -1
  62. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMathLower.mjs.map +1 -1
  63. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMessage.mjs +6 -6
  64. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconMessage.mjs.map +1 -1
  65. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPin.mjs +1 -1
  66. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPin.mjs.map +1 -1
  67. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs +1 -1
  68. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconPinnedOff.mjs.map +1 -1
  69. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.mjs +2 -2
  70. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSettings.mjs.map +1 -1
  71. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs +1 -1
  72. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortAscending.mjs.map +1 -1
  73. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs +1 -1
  74. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSortDescending.mjs.map +1 -1
  75. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSquare.mjs +1 -1
  76. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconSquare.mjs.map +1 -1
  77. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTableExport.mjs +1 -1
  78. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTableExport.mjs.map +1 -1
  79. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs +1 -1
  80. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconTrash.mjs.map +1 -1
  81. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs +1 -1
  82. package/dist/esm/node_modules/@tabler/icons-react/dist/esm/icons/IconX.mjs.map +1 -1
  83. package/package.json +16 -15
@@ -315,7 +315,7 @@
315
315
  }
316
316
 
317
317
  /**
318
- * @tabler/icons-react v2.9.0 - MIT
318
+ * @tabler/icons-react v2.11.0 - MIT
319
319
  */
320
320
 
321
321
  var defaultAttributes = {
@@ -331,7 +331,7 @@
331
331
  };
332
332
 
333
333
  /**
334
- * @tabler/icons-react v2.9.0 - MIT
334
+ * @tabler/icons-react v2.11.0 - MIT
335
335
  */
336
336
 
337
337
  var __defProp = Object.defineProperty;
@@ -394,7 +394,7 @@
394
394
  };
395
395
 
396
396
  /**
397
- * @tabler/icons-react v2.9.0 - MIT
397
+ * @tabler/icons-react v2.11.0 - MIT
398
398
  */
399
399
 
400
400
  var IconAdjustmentsHorizontal = createReactComponent(
@@ -414,17 +414,17 @@
414
414
  );
415
415
 
416
416
  /**
417
- * @tabler/icons-react v2.9.0 - MIT
417
+ * @tabler/icons-react v2.11.0 - MIT
418
418
  */
419
419
 
420
420
  var IconAlertCircle = createReactComponent("alert-circle", "IconAlertCircle", [
421
- ["path", { d: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0", key: "svg-0" }],
422
- ["path", { d: "M12 8l0 4", key: "svg-1" }],
423
- ["path", { d: "M12 16l.01 0", key: "svg-2" }]
421
+ ["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }],
422
+ ["path", { d: "M12 8v4", key: "svg-1" }],
423
+ ["path", { d: "M12 16h.01", key: "svg-2" }]
424
424
  ]);
425
425
 
426
426
  /**
427
- * @tabler/icons-react v2.9.0 - MIT
427
+ * @tabler/icons-react v2.11.0 - MIT
428
428
  */
429
429
 
430
430
  var IconBleachOff = createReactComponent("bleach-off", "IconBleachOff", [
@@ -439,7 +439,7 @@
439
439
  ]);
440
440
 
441
441
  /**
442
- * @tabler/icons-react v2.9.0 - MIT
442
+ * @tabler/icons-react v2.11.0 - MIT
443
443
  */
444
444
 
445
445
  var IconBleach = createReactComponent("bleach", "IconBleach", [
@@ -453,7 +453,7 @@
453
453
  ]);
454
454
 
455
455
  /**
456
- * @tabler/icons-react v2.9.0 - MIT
456
+ * @tabler/icons-react v2.11.0 - MIT
457
457
  */
458
458
 
459
459
  var IconBoxMultiple = createReactComponent("box-multiple", "IconBoxMultiple", [
@@ -474,7 +474,7 @@
474
474
  ]);
475
475
 
476
476
  /**
477
- * @tabler/icons-react v2.9.0 - MIT
477
+ * @tabler/icons-react v2.11.0 - MIT
478
478
  */
479
479
 
480
480
  var IconBracketsContain = createReactComponent("brackets-contain", "IconBracketsContain", [
@@ -486,7 +486,7 @@
486
486
  ]);
487
487
 
488
488
  /**
489
- * @tabler/icons-react v2.9.0 - MIT
489
+ * @tabler/icons-react v2.11.0 - MIT
490
490
  */
491
491
 
492
492
  var IconBucketOff = createReactComponent("bucket-off", "IconBucketOff", [
@@ -508,7 +508,7 @@
508
508
  ]);
509
509
 
510
510
  /**
511
- * @tabler/icons-react v2.9.0 - MIT
511
+ * @tabler/icons-react v2.11.0 - MIT
512
512
  */
513
513
 
514
514
  var IconBucket = createReactComponent("bucket", "IconBucket", [
@@ -523,26 +523,26 @@
523
523
  ]);
524
524
 
525
525
  /**
526
- * @tabler/icons-react v2.9.0 - MIT
526
+ * @tabler/icons-react v2.11.0 - MIT
527
527
  */
528
528
 
529
529
  var IconCalendar = createReactComponent("calendar", "IconCalendar", [
530
530
  [
531
531
  "path",
532
532
  {
533
- d: "M4 5m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",
533
+ d: "M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12z",
534
534
  key: "svg-0"
535
535
  }
536
536
  ],
537
- ["path", { d: "M16 3l0 4", key: "svg-1" }],
538
- ["path", { d: "M8 3l0 4", key: "svg-2" }],
539
- ["path", { d: "M4 11l16 0", key: "svg-3" }],
540
- ["path", { d: "M11 15l1 0", key: "svg-4" }],
541
- ["path", { d: "M12 15l0 3", key: "svg-5" }]
537
+ ["path", { d: "M16 3v4", key: "svg-1" }],
538
+ ["path", { d: "M8 3v4", key: "svg-2" }],
539
+ ["path", { d: "M4 11h16", key: "svg-3" }],
540
+ ["path", { d: "M11 15h1", key: "svg-4" }],
541
+ ["path", { d: "M12 15v3", key: "svg-5" }]
542
542
  ]);
543
543
 
544
544
  /**
545
- * @tabler/icons-react v2.9.0 - MIT
545
+ * @tabler/icons-react v2.11.0 - MIT
546
546
  */
547
547
 
548
548
  var IconCheck = createReactComponent("check", "IconCheck", [
@@ -550,7 +550,7 @@
550
550
  ]);
551
551
 
552
552
  /**
553
- * @tabler/icons-react v2.9.0 - MIT
553
+ * @tabler/icons-react v2.11.0 - MIT
554
554
  */
555
555
 
556
556
  var IconCheckbox = createReactComponent("checkbox", "IconCheckbox", [
@@ -565,7 +565,7 @@
565
565
  ]);
566
566
 
567
567
  /**
568
- * @tabler/icons-react v2.9.0 - MIT
568
+ * @tabler/icons-react v2.11.0 - MIT
569
569
  */
570
570
 
571
571
  var IconCircleMinus = createReactComponent("circle-minus", "IconCircleMinus", [
@@ -574,7 +574,7 @@
574
574
  ]);
575
575
 
576
576
  /**
577
- * @tabler/icons-react v2.9.0 - MIT
577
+ * @tabler/icons-react v2.11.0 - MIT
578
578
  */
579
579
 
580
580
  var IconCirclePlus = createReactComponent("circle-plus", "IconCirclePlus", [
@@ -584,7 +584,7 @@
584
584
  ]);
585
585
 
586
586
  /**
587
- * @tabler/icons-react v2.9.0 - MIT
587
+ * @tabler/icons-react v2.11.0 - MIT
588
588
  */
589
589
 
590
590
  var IconCloudUpload = createReactComponent("cloud-upload", "IconCloudUpload", [
@@ -600,7 +600,7 @@
600
600
  ]);
601
601
 
602
602
  /**
603
- * @tabler/icons-react v2.9.0 - MIT
603
+ * @tabler/icons-react v2.11.0 - MIT
604
604
  */
605
605
 
606
606
  var IconColumns = createReactComponent("columns", "IconColumns", [
@@ -615,7 +615,7 @@
615
615
  ]);
616
616
 
617
617
  /**
618
- * @tabler/icons-react v2.9.0 - MIT
618
+ * @tabler/icons-react v2.11.0 - MIT
619
619
  */
620
620
 
621
621
  var IconCurrencyDollar = createReactComponent("currency-dollar", "IconCurrencyDollar", [
@@ -630,7 +630,7 @@
630
630
  ]);
631
631
 
632
632
  /**
633
- * @tabler/icons-react v2.9.0 - MIT
633
+ * @tabler/icons-react v2.11.0 - MIT
634
634
  */
635
635
 
636
636
  var IconDots = createReactComponent("dots", "IconDots", [
@@ -640,7 +640,7 @@
640
640
  ]);
641
641
 
642
642
  /**
643
- * @tabler/icons-react v2.9.0 - MIT
643
+ * @tabler/icons-react v2.11.0 - MIT
644
644
  */
645
645
 
646
646
  var IconEdit = createReactComponent("edit", "IconEdit", [
@@ -662,7 +662,7 @@
662
662
  ]);
663
663
 
664
664
  /**
665
- * @tabler/icons-react v2.9.0 - MIT
665
+ * @tabler/icons-react v2.11.0 - MIT
666
666
  */
667
667
 
668
668
  var IconEqualNot = createReactComponent("equal-not", "IconEqualNot", [
@@ -672,7 +672,7 @@
672
672
  ]);
673
673
 
674
674
  /**
675
- * @tabler/icons-react v2.9.0 - MIT
675
+ * @tabler/icons-react v2.11.0 - MIT
676
676
  */
677
677
 
678
678
  var IconEqual = createReactComponent("equal", "IconEqual", [
@@ -681,7 +681,7 @@
681
681
  ]);
682
682
 
683
683
  /**
684
- * @tabler/icons-react v2.9.0 - MIT
684
+ * @tabler/icons-react v2.11.0 - MIT
685
685
  */
686
686
 
687
687
  var IconFileAlert = createReactComponent("file-alert", "IconFileAlert", [
@@ -698,7 +698,7 @@
698
698
  ]);
699
699
 
700
700
  /**
701
- * @tabler/icons-react v2.9.0 - MIT
701
+ * @tabler/icons-react v2.11.0 - MIT
702
702
  */
703
703
 
704
704
  var IconFilePlus = createReactComponent("file-plus", "IconFilePlus", [
@@ -715,7 +715,7 @@
715
715
  ]);
716
716
 
717
717
  /**
718
- * @tabler/icons-react v2.9.0 - MIT
718
+ * @tabler/icons-react v2.11.0 - MIT
719
719
  */
720
720
 
721
721
  var IconFilter = createReactComponent("filter", "IconFilter", [
@@ -729,7 +729,7 @@
729
729
  ]);
730
730
 
731
731
  /**
732
- * @tabler/icons-react v2.9.0 - MIT
732
+ * @tabler/icons-react v2.11.0 - MIT
733
733
  */
734
734
 
735
735
  var IconListDetails = createReactComponent("list-details", "IconListDetails", [
@@ -754,7 +754,7 @@
754
754
  ]);
755
755
 
756
756
  /**
757
- * @tabler/icons-react v2.9.0 - MIT
757
+ * @tabler/icons-react v2.11.0 - MIT
758
758
  */
759
759
 
760
760
  var IconMathGreater = createReactComponent("math-greater", "IconMathGreater", [
@@ -762,7 +762,7 @@
762
762
  ]);
763
763
 
764
764
  /**
765
- * @tabler/icons-react v2.9.0 - MIT
765
+ * @tabler/icons-react v2.11.0 - MIT
766
766
  */
767
767
 
768
768
  var IconMathLower = createReactComponent("math-lower", "IconMathLower", [
@@ -770,23 +770,23 @@
770
770
  ]);
771
771
 
772
772
  /**
773
- * @tabler/icons-react v2.9.0 - MIT
773
+ * @tabler/icons-react v2.11.0 - MIT
774
774
  */
775
775
 
776
776
  var IconMessage = createReactComponent("message", "IconMessage", [
777
+ ["path", { d: "M8 9h8", key: "svg-0" }],
778
+ ["path", { d: "M8 13h6", key: "svg-1" }],
777
779
  [
778
780
  "path",
779
781
  {
780
- d: "M4 21v-13a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v6a3 3 0 0 1 -3 3h-9l-4 4",
781
- key: "svg-0"
782
+ d: "M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z",
783
+ key: "svg-2"
782
784
  }
783
- ],
784
- ["path", { d: "M8 9l8 0", key: "svg-1" }],
785
- ["path", { d: "M8 13l6 0", key: "svg-2" }]
785
+ ]
786
786
  ]);
787
787
 
788
788
  /**
789
- * @tabler/icons-react v2.9.0 - MIT
789
+ * @tabler/icons-react v2.11.0 - MIT
790
790
  */
791
791
 
792
792
  var IconPin = createReactComponent("pin", "IconPin", [
@@ -802,7 +802,7 @@
802
802
  ]);
803
803
 
804
804
  /**
805
- * @tabler/icons-react v2.9.0 - MIT
805
+ * @tabler/icons-react v2.11.0 - MIT
806
806
  */
807
807
 
808
808
  var IconPinnedOff = createReactComponent("pinned-off", "IconPinnedOff", [
@@ -819,7 +819,7 @@
819
819
  ]);
820
820
 
821
821
  /**
822
- * @tabler/icons-react v2.9.0 - MIT
822
+ * @tabler/icons-react v2.11.0 - MIT
823
823
  */
824
824
 
825
825
  var IconSettings = createReactComponent("settings", "IconSettings", [
@@ -830,11 +830,11 @@
830
830
  key: "svg-0"
831
831
  }
832
832
  ],
833
- ["path", { d: "M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0", key: "svg-1" }]
833
+ ["path", { d: "M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0", key: "svg-1" }]
834
834
  ]);
835
835
 
836
836
  /**
837
- * @tabler/icons-react v2.9.0 - MIT
837
+ * @tabler/icons-react v2.11.0 - MIT
838
838
  */
839
839
 
840
840
  var IconSortAscending = createReactComponent("sort-ascending", "IconSortAscending", [
@@ -846,7 +846,7 @@
846
846
  ]);
847
847
 
848
848
  /**
849
- * @tabler/icons-react v2.9.0 - MIT
849
+ * @tabler/icons-react v2.11.0 - MIT
850
850
  */
851
851
 
852
852
  var IconSortDescending = createReactComponent("sort-descending", "IconSortDescending", [
@@ -858,7 +858,7 @@
858
858
  ]);
859
859
 
860
860
  /**
861
- * @tabler/icons-react v2.9.0 - MIT
861
+ * @tabler/icons-react v2.11.0 - MIT
862
862
  */
863
863
 
864
864
  var IconSquare = createReactComponent("square", "IconSquare", [
@@ -872,7 +872,7 @@
872
872
  ]);
873
873
 
874
874
  /**
875
- * @tabler/icons-react v2.9.0 - MIT
875
+ * @tabler/icons-react v2.11.0 - MIT
876
876
  */
877
877
 
878
878
  var IconTableExport = createReactComponent("table-export", "IconTableExport", [
@@ -886,7 +886,7 @@
886
886
  ]);
887
887
 
888
888
  /**
889
- * @tabler/icons-react v2.9.0 - MIT
889
+ * @tabler/icons-react v2.11.0 - MIT
890
890
  */
891
891
 
892
892
  var IconTrash = createReactComponent("trash", "IconTrash", [
@@ -901,7 +901,7 @@
901
901
  ]);
902
902
 
903
903
  /**
904
- * @tabler/icons-react v2.9.0 - MIT
904
+ * @tabler/icons-react v2.11.0 - MIT
905
905
  */
906
906
 
907
907
  var IconX = createReactComponent("x", "IconX", [
@@ -4383,38 +4383,36 @@
4383
4383
  * Moves the selection up one position in the list.
4384
4384
  */
4385
4385
  function onMoveUp() {
4386
- const currentField = state.search.fields ?? [];
4386
+ const currentFields = state.search.fields ?? [];
4387
4387
  const field = selectedRef.current?.value;
4388
- if (field) {
4389
- const newFields = [...currentField];
4390
- const index = newFields.indexOf(field);
4391
- swapFields(newFields, index, index - 1);
4392
- setState({
4393
- search: {
4394
- ...state.search,
4395
- fields: newFields,
4396
- },
4397
- });
4388
+ if (!field) {
4389
+ return;
4398
4390
  }
4391
+ const newFields = [...currentFields];
4392
+ const index = newFields.indexOf(field);
4393
+ if (index <= 0) {
4394
+ return;
4395
+ }
4396
+ swapFields(newFields, index, index - 1);
4397
+ setState({ search: { ...state.search, fields: newFields } });
4399
4398
  }
4400
4399
  /**
4401
4400
  * Handles a click on the "Down" button.
4402
4401
  * Moves the selection down one position in the list.
4403
4402
  */
4404
4403
  function onMoveDown() {
4405
- const currentField = state.search.fields ?? [];
4404
+ const currentFields = state.search.fields ?? [];
4406
4405
  const field = selectedRef.current?.value;
4407
- if (field) {
4408
- const newFields = [...currentField];
4409
- const index = newFields.indexOf(field);
4410
- swapFields(newFields, index, index + 1);
4411
- setState({
4412
- search: {
4413
- ...state.search,
4414
- fields: newFields,
4415
- },
4416
- });
4406
+ if (!field) {
4407
+ return;
4408
+ }
4409
+ const newFields = [...currentFields];
4410
+ const index = newFields.indexOf(field);
4411
+ if (index >= newFields.length - 1) {
4412
+ return;
4417
4413
  }
4414
+ swapFields(newFields, index, index + 1);
4415
+ setState({ search: { ...state.search, fields: newFields } });
4418
4416
  }
4419
4417
  /**
4420
4418
  * Swaps two fields in the search.