@arbeidstilsynet/design-react 0.3.0 → 0.3.1

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.
package/dist/index.cjs CHANGED
@@ -401,7 +401,7 @@ const FilePickerContext = require$$0.createContext({
401
401
  }
402
402
  });
403
403
  function FilePicker$1(t0) {
404
- const $ = compilerRuntimeExports.c(28);
404
+ const $ = compilerRuntimeExports.c(29);
405
405
  let children;
406
406
  let className;
407
407
  let errors;
@@ -488,33 +488,35 @@ function FilePicker$1(t0) {
488
488
  t5 = $[22];
489
489
  }
490
490
  let t6;
491
- if ($[23] !== ref || $[24] !== rest || $[25] !== t3 || $[26] !== t5) {
492
- t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref, className: t3, ...rest, children: t5 });
493
- $[23] = ref;
494
- $[24] = rest;
495
- $[25] = t3;
496
- $[26] = t5;
497
- $[27] = t6;
491
+ if ($[23] !== disabled || $[24] !== ref || $[25] !== rest || $[26] !== t3 || $[27] !== t5) {
492
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref, className: t3, "data-disabled": disabled, ...rest, children: t5 });
493
+ $[23] = disabled;
494
+ $[24] = ref;
495
+ $[25] = rest;
496
+ $[26] = t3;
497
+ $[27] = t5;
498
+ $[28] = t6;
498
499
  } else {
499
- t6 = $[27];
500
+ t6 = $[28];
500
501
  }
501
502
  return t6;
502
503
  }
503
504
  function DefaultLabel(t0) {
504
- const $ = compilerRuntimeExports.c(10);
505
+ const $ = compilerRuntimeExports.c(11);
505
506
  const {
506
507
  defaultLabelText
507
508
  } = t0;
508
509
  const text1 = defaultLabelText?.[0];
509
510
  const text2 = defaultLabelText?.[1];
511
+ const text3 = defaultLabelText?.[2];
510
512
  let t1;
511
513
  let t2;
512
514
  if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
513
- t1 = {
515
+ t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.CloudUpIcon, { title: "Cloud" });
516
+ t2 = {
514
517
  display: "flex",
515
518
  flexFlow: "row"
516
519
  };
517
- t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.CloudUpIcon, { title: "Cloud" });
518
520
  $[0] = t1;
519
521
  $[1] = t2;
520
522
  } else {
@@ -531,40 +533,42 @@ function DefaultLabel(t0) {
531
533
  t3 = $[2];
532
534
  }
533
535
  let t4;
534
- if ($[3] !== text1) {
535
- t4 = /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { style: t1, children: [
536
- t2,
537
- /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Label, { style: t3, children: text1 })
538
- ] });
539
- $[3] = text1;
536
+ if ($[3] !== text2) {
537
+ t4 = /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: t3, children: text2 });
538
+ $[3] = text2;
540
539
  $[4] = t4;
541
540
  } else {
542
541
  t4 = $[4];
543
542
  }
544
543
  let t5;
545
- if ($[5] !== text2) {
546
- t5 = text2 && /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Label, { children: text2 });
547
- $[5] = text2;
548
- $[6] = t5;
544
+ if ($[5] !== t4 || $[6] !== text1) {
545
+ t5 = /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { style: t2, children: [
546
+ text1,
547
+ t4
548
+ ] });
549
+ $[5] = t4;
550
+ $[6] = text1;
551
+ $[7] = t5;
549
552
  } else {
550
- t5 = $[6];
553
+ t5 = $[7];
551
554
  }
552
555
  let t6;
553
- if ($[7] !== t4 || $[8] !== t5) {
556
+ if ($[8] !== t5 || $[9] !== text3) {
554
557
  t6 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
555
- t4,
556
- t5
558
+ t1,
559
+ t5,
560
+ text3
557
561
  ] });
558
- $[7] = t4;
559
562
  $[8] = t5;
560
- $[9] = t6;
563
+ $[9] = text3;
564
+ $[10] = t6;
561
565
  } else {
562
- t6 = $[9];
566
+ t6 = $[10];
563
567
  }
564
568
  return t6;
565
569
  }
566
570
  function FilePickerDropzone(t0) {
567
- const $ = compilerRuntimeExports.c(34);
571
+ const $ = compilerRuntimeExports.c(37);
568
572
  const {
569
573
  className,
570
574
  label,
@@ -574,7 +578,7 @@ function FilePickerDropzone(t0) {
574
578
  } = t0;
575
579
  let t3;
576
580
  if ($[0] !== t1) {
577
- t3 = t1 === void 0 ? ["Last opp fil", "Filformater: pdf, txt og docx"] : t1;
581
+ t3 = t1 === void 0 ? ["Dra og slipp eller", "Last opp fil", "Filformater: pdf, txt og docx"] : t1;
578
582
  $[0] = t1;
579
583
  $[1] = t3;
580
584
  } else {
@@ -585,7 +589,8 @@ function FilePickerDropzone(t0) {
585
589
  const {
586
590
  onAdd,
587
591
  disabled,
588
- isWaiting
592
+ isWaiting,
593
+ errors
589
594
  } = require$$0.use(FilePickerContext);
590
595
  const isDisabled = Boolean(disabled || isWaiting);
591
596
  let t4;
@@ -619,99 +624,109 @@ function FilePickerDropzone(t0) {
619
624
  isDragActive,
620
625
  open
621
626
  } = reactDropzone.useDropzone(t5);
622
- const t6 = getRootProps({
627
+ let t6;
628
+ if ($[7] !== dropLabel) {
629
+ t6 = typeof dropLabel === "string" ? /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: {
630
+ textDecoration: "underline"
631
+ }, children: dropLabel }) : dropLabel;
632
+ $[7] = dropLabel;
633
+ $[8] = t6;
634
+ } else {
635
+ t6 = $[8];
636
+ }
637
+ const dragNode = t6;
638
+ const t7 = getRootProps({
623
639
  role: "group",
624
640
  "aria-disabled": isDisabled || void 0,
625
- className: clsx("at-filepicker-dropzone-wrapper", isDisabled && "is-disabled", className),
641
+ className: clsx("at-filepicker-dropzone-wrapper", className),
626
642
  ...rest
627
643
  });
628
- let t7;
629
- if ($[7] !== getInputProps) {
630
- t7 = getInputProps();
631
- $[7] = getInputProps;
632
- $[8] = t7;
633
- } else {
634
- t7 = $[8];
635
- }
636
644
  let t8;
637
- if ($[9] !== t7) {
638
- t8 = /* @__PURE__ */ jsxRuntimeExports.jsx("input", { ...t7, "aria-hidden": true });
639
- $[9] = t7;
645
+ if ($[9] !== getInputProps) {
646
+ t8 = getInputProps();
647
+ $[9] = getInputProps;
640
648
  $[10] = t8;
641
649
  } else {
642
650
  t8 = $[10];
643
651
  }
644
- const t9 = isDragActive && "is-drag";
652
+ let t9;
653
+ if ($[11] !== t8) {
654
+ t9 = /* @__PURE__ */ jsxRuntimeExports.jsx("input", { ...t8, "aria-hidden": true });
655
+ $[11] = t8;
656
+ $[12] = t9;
657
+ } else {
658
+ t9 = $[12];
659
+ }
645
660
  let t10;
646
- if ($[11] !== t9) {
647
- t10 = clsx("at-filepicker-dropzone", t9);
648
- $[11] = t9;
649
- $[12] = t10;
661
+ if ($[13] !== isWaiting) {
662
+ t10 = isWaiting && /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Spinner, { "aria-label": "Processing files", "data-size": "lg" });
663
+ $[13] = isWaiting;
664
+ $[14] = t10;
650
665
  } else {
651
- t10 = $[12];
666
+ t10 = $[14];
652
667
  }
653
- let t11;
654
- if ($[13] !== isDisabled || $[14] !== open) {
655
- t11 = () => {
668
+ const t11 = isDragActive && "is-drag";
669
+ const t12 = errors && errors.length > 0 && "has-error";
670
+ let t13;
671
+ if ($[15] !== t11 || $[16] !== t12) {
672
+ t13 = clsx("at-filepicker-dropzone", t11, t12);
673
+ $[15] = t11;
674
+ $[16] = t12;
675
+ $[17] = t13;
676
+ } else {
677
+ t13 = $[17];
678
+ }
679
+ let t14;
680
+ if ($[18] !== isDisabled || $[19] !== open) {
681
+ t14 = () => {
656
682
  if (!isDisabled) {
657
683
  open();
658
684
  }
659
685
  };
660
- $[13] = isDisabled;
661
- $[14] = open;
662
- $[15] = t11;
686
+ $[18] = isDisabled;
687
+ $[19] = open;
688
+ $[20] = t14;
663
689
  } else {
664
- t11 = $[15];
690
+ t14 = $[20];
665
691
  }
666
- let t12;
667
- if ($[16] !== isWaiting) {
668
- t12 = isWaiting && /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Spinner, { "aria-label": "Processing files", "data-size": "lg" });
669
- $[16] = isWaiting;
670
- $[17] = t12;
671
- } else {
672
- t12 = $[17];
673
- }
674
- let t13;
675
- if ($[18] !== defaultLabelText || $[19] !== dropLabel || $[20] !== isDragActive || $[21] !== isWaiting || $[22] !== label) {
676
- t13 = !isWaiting && (isDragActive ? /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Label, { children: dropLabel }) : label ?? /* @__PURE__ */ jsxRuntimeExports.jsx(DefaultLabel, { defaultLabelText }));
677
- $[18] = defaultLabelText;
678
- $[19] = dropLabel;
679
- $[20] = isDragActive;
680
- $[21] = isWaiting;
681
- $[22] = label;
682
- $[23] = t13;
692
+ let t15;
693
+ if ($[21] !== defaultLabelText || $[22] !== dragNode || $[23] !== isDragActive || $[24] !== isWaiting || $[25] !== label) {
694
+ t15 = !isWaiting && (isDragActive ? dragNode : label ?? /* @__PURE__ */ jsxRuntimeExports.jsx(DefaultLabel, { defaultLabelText }));
695
+ $[21] = defaultLabelText;
696
+ $[22] = dragNode;
697
+ $[23] = isDragActive;
698
+ $[24] = isWaiting;
699
+ $[25] = label;
700
+ $[26] = t15;
683
701
  } else {
684
- t13 = $[23];
702
+ t15 = $[26];
685
703
  }
686
- let t14;
687
- if ($[24] !== isDisabled || $[25] !== t10 || $[26] !== t11 || $[27] !== t12 || $[28] !== t13) {
688
- t14 = /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Button, { type: "button", disabled: isDisabled, className: t10, onClick: t11, children: [
689
- t12,
690
- t13
691
- ] });
692
- $[24] = isDisabled;
693
- $[25] = t10;
694
- $[26] = t11;
695
- $[27] = t12;
696
- $[28] = t13;
697
- $[29] = t14;
704
+ let t16;
705
+ if ($[27] !== isDisabled || $[28] !== t10 || $[29] !== t13 || $[30] !== t14 || $[31] !== t15) {
706
+ t16 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Button, { type: "button", disabled: isDisabled, loading: t10, className: t13, onClick: t14, children: t15 });
707
+ $[27] = isDisabled;
708
+ $[28] = t10;
709
+ $[29] = t13;
710
+ $[30] = t14;
711
+ $[31] = t15;
712
+ $[32] = t16;
698
713
  } else {
699
- t14 = $[29];
714
+ t16 = $[32];
700
715
  }
701
- let t15;
702
- if ($[30] !== t14 || $[31] !== t6 || $[32] !== t8) {
703
- t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ...t6, children: [
704
- t8,
705
- t14
716
+ let t17;
717
+ if ($[33] !== t16 || $[34] !== t7 || $[35] !== t9) {
718
+ t17 = /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { ...t7, children: [
719
+ t9,
720
+ t16
706
721
  ] });
707
- $[30] = t14;
708
- $[31] = t6;
709
- $[32] = t8;
710
- $[33] = t15;
722
+ $[33] = t16;
723
+ $[34] = t7;
724
+ $[35] = t9;
725
+ $[36] = t17;
711
726
  } else {
712
- t15 = $[33];
727
+ t17 = $[36];
713
728
  }
714
- return t15;
729
+ return t17;
715
730
  }
716
731
  function FilePickerErrors(t0) {
717
732
  const $ = compilerRuntimeExports.c(11);
@@ -753,7 +768,7 @@ function FilePickerErrors(t0) {
753
768
  }
754
769
  let t3;
755
770
  if ($[7] !== rest || $[8] !== t1 || $[9] !== t2) {
756
- t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children: t2 });
771
+ t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, role: "status", ...rest, children: t2 });
757
772
  $[7] = rest;
758
773
  $[8] = t1;
759
774
  $[9] = t2;
@@ -764,7 +779,7 @@ function FilePickerErrors(t0) {
764
779
  return t3;
765
780
  }
766
781
  function _temp$1(error, index) {
767
- return /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Alert, { role: "alert", "data-color": "danger", "data-size": "sm", children: error }, index);
782
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.ValidationMessage, { children: error }, index);
768
783
  }
769
784
  function formatFileSize(bytes) {
770
785
  if (bytes === 0) return "0 Bytes";
@@ -774,21 +789,39 @@ function formatFileSize(bytes) {
774
789
  return parseFloat((bytes / Math.pow(k, i)).toFixed(1)) + " " + sizes[i];
775
790
  }
776
791
  function FilePickerFiles(t0) {
777
- const $ = compilerRuntimeExports.c(16);
792
+ const $ = compilerRuntimeExports.c(38);
778
793
  let className;
779
794
  let rest;
795
+ let t1;
796
+ let t2;
780
797
  if ($[0] !== t0) {
781
798
  ({
782
799
  className,
800
+ columnNames: t1,
801
+ removeButtonLabel: t2,
783
802
  ...rest
784
803
  } = t0);
785
804
  $[0] = t0;
786
805
  $[1] = className;
787
806
  $[2] = rest;
807
+ $[3] = t1;
808
+ $[4] = t2;
788
809
  } else {
789
810
  className = $[1];
790
811
  rest = $[2];
812
+ t1 = $[3];
813
+ t2 = $[4];
791
814
  }
815
+ let t3;
816
+ if ($[5] !== t1) {
817
+ t3 = t1 === void 0 ? ["Navn", "Størrelse", ""] : t1;
818
+ $[5] = t1;
819
+ $[6] = t3;
820
+ } else {
821
+ t3 = $[6];
822
+ }
823
+ const columnNames = t3;
824
+ const removeButtonLabel = t2 === void 0 ? "Fjern" : t2;
792
825
  const {
793
826
  files,
794
827
  onRemove,
@@ -797,63 +830,123 @@ function FilePickerFiles(t0) {
797
830
  if (!files?.length) {
798
831
  return null;
799
832
  }
800
- let t1;
801
- if ($[3] !== className) {
802
- t1 = clsx("at-filepicker-files", className);
803
- $[3] = className;
804
- $[4] = t1;
833
+ let t4;
834
+ if ($[7] !== className) {
835
+ t4 = clsx("at-filepicker-files-table", className);
836
+ $[7] = className;
837
+ $[8] = t4;
805
838
  } else {
806
- t1 = $[4];
839
+ t4 = $[8];
807
840
  }
808
- let t2;
809
- if ($[5] !== disabled || $[6] !== files || $[7] !== onRemove) {
810
- let t32;
811
- if ($[9] !== disabled || $[10] !== onRemove) {
812
- t32 = (t4) => {
841
+ let t5;
842
+ if ($[9] !== columnNames[0]) {
843
+ t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.HeaderCell, { title: columnNames[0], children: columnNames[0] });
844
+ $[9] = columnNames[0];
845
+ $[10] = t5;
846
+ } else {
847
+ t5 = $[10];
848
+ }
849
+ let t6;
850
+ if ($[11] !== columnNames[1]) {
851
+ t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.HeaderCell, { title: columnNames[1], children: columnNames[1] });
852
+ $[11] = columnNames[1];
853
+ $[12] = t6;
854
+ } else {
855
+ t6 = $[12];
856
+ }
857
+ let t7;
858
+ if ($[13] !== columnNames[2]) {
859
+ t7 = columnNames[2] || /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ds-sr-only", children: "Action" });
860
+ $[13] = columnNames[2];
861
+ $[14] = t7;
862
+ } else {
863
+ t7 = $[14];
864
+ }
865
+ let t8;
866
+ if ($[15] !== columnNames[2] || $[16] !== t7) {
867
+ t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.HeaderCell, { title: columnNames[2], children: t7 });
868
+ $[15] = columnNames[2];
869
+ $[16] = t7;
870
+ $[17] = t8;
871
+ } else {
872
+ t8 = $[17];
873
+ }
874
+ let t9;
875
+ if ($[18] !== t5 || $[19] !== t6 || $[20] !== t8) {
876
+ t9 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.Head, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Table.Row, { children: [
877
+ t5,
878
+ t6,
879
+ t8
880
+ ] }) });
881
+ $[18] = t5;
882
+ $[19] = t6;
883
+ $[20] = t8;
884
+ $[21] = t9;
885
+ } else {
886
+ t9 = $[21];
887
+ }
888
+ let t10;
889
+ if ($[22] !== disabled || $[23] !== files || $[24] !== onRemove || $[25] !== removeButtonLabel) {
890
+ let t112;
891
+ if ($[27] !== disabled || $[28] !== onRemove || $[29] !== removeButtonLabel) {
892
+ t112 = (t122) => {
813
893
  const {
814
894
  id,
815
895
  file,
816
- error
817
- } = t4;
818
- return /* @__PURE__ */ jsxRuntimeExports.jsx(require$$0.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "at-filepicker-file", children: [
819
- /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.FileIcon, { "aria-hidden": "true", fontSize: "1.5em" }),
820
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "at-filepicker-file__content", children: [
821
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-filepicker-file__name", title: file.name, children: file.name }),
822
- error && /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.ValidationMessage, { className: "at-filepicker-file__error", "data-color": "danger", "data-size": "sm", title: error, children: error })
823
- ] }),
824
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "at-filepicker-file__size", "data-size": "sm", children: [
825
- "(",
826
- formatFileSize(file.size),
827
- ")"
828
- ] }),
829
- /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Button, { icon: true, variant: "tertiary", "data-size": "sm", onClick: () => onRemove(id), disabled, "aria-label": `Remove ${file.name}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.XMarkIcon, { "aria-hidden": true }) })
830
- ] }) }, id);
896
+ hasError
897
+ } = t122;
898
+ const size = formatFileSize(file.size);
899
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Table.Row, { "data-error": hasError, children: [
900
+ /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.Cell, { title: file.name, className: "at-filepicker-files-file__name", "data-color": "info", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Link, { href: disabled ? void 0 : URL.createObjectURL(file), target: "_blank", rel: "noreferrer", "aria-disabled": disabled, children: [
901
+ /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.FileTextIcon, { "aria-hidden": "true", fontSize: "1.5em" }),
902
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-filepicker-files-file__text", children: file.name })
903
+ ] }) }),
904
+ /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.Cell, { title: size, children: size }),
905
+ /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.Cell, { "data-color": "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Button, { variant: "tertiary", "data-size": "sm", disabled, "aria-label": `Remove ${file.name}`, onClick: () => onRemove(id), children: [
906
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "at-filepicker-files-file__remove-text", children: removeButtonLabel }),
907
+ /* @__PURE__ */ jsxRuntimeExports.jsx(akselIcons.TrashIcon, { "aria-hidden": true })
908
+ ] }) })
909
+ ] }, id);
831
910
  };
832
- $[9] = disabled;
833
- $[10] = onRemove;
834
- $[11] = t32;
911
+ $[27] = disabled;
912
+ $[28] = onRemove;
913
+ $[29] = removeButtonLabel;
914
+ $[30] = t112;
835
915
  } else {
836
- t32 = $[11];
916
+ t112 = $[30];
837
917
  }
838
- t2 = files.map(t32);
839
- $[5] = disabled;
840
- $[6] = files;
841
- $[7] = onRemove;
842
- $[8] = t2;
918
+ t10 = files.map(t112);
919
+ $[22] = disabled;
920
+ $[23] = files;
921
+ $[24] = onRemove;
922
+ $[25] = removeButtonLabel;
923
+ $[26] = t10;
843
924
  } else {
844
- t2 = $[8];
925
+ t10 = $[26];
845
926
  }
846
- let t3;
847
- if ($[12] !== rest || $[13] !== t1 || $[14] !== t2) {
848
- t3 = /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: t1, ...rest, children: t2 });
849
- $[12] = rest;
850
- $[13] = t1;
851
- $[14] = t2;
852
- $[15] = t3;
927
+ let t11;
928
+ if ($[31] !== t10) {
929
+ t11 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Table.Body, { children: t10 });
930
+ $[31] = t10;
931
+ $[32] = t11;
853
932
  } else {
854
- t3 = $[15];
933
+ t11 = $[32];
855
934
  }
856
- return t3;
935
+ let t12;
936
+ if ($[33] !== rest || $[34] !== t11 || $[35] !== t4 || $[36] !== t9) {
937
+ t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Table, { className: t4, ...rest, children: [
938
+ t9,
939
+ t11
940
+ ] });
941
+ $[33] = rest;
942
+ $[34] = t11;
943
+ $[35] = t4;
944
+ $[36] = t9;
945
+ $[37] = t12;
946
+ } else {
947
+ t12 = $[37];
948
+ }
949
+ return t12;
857
950
  }
858
951
  const FilePicker = Object.assign(FilePicker$1, {
859
952
  Dropzone: FilePickerDropzone,