@norges-domstoler/dds-components 17.4.0 → 17.5.0

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.js CHANGED
@@ -275,6 +275,7 @@ __export(src_exports, {
275
275
  PersonAddIcon: () => PersonAddIcon,
276
276
  PersonIcon: () => PersonIcon,
277
277
  PersonShieldedIcon: () => PersonShieldedIcon,
278
+ PhoneInput: () => PhoneInput,
278
279
  PinIcon: () => PinIcon,
279
280
  PlusCircledIcon: () => PlusCircledIcon,
280
281
  PlusIcon: () => PlusIcon,
@@ -363,6 +364,7 @@ __export(src_exports, {
363
364
  ZoomOutIcon: () => ZoomOutIcon,
364
365
  calendarDateToNativeDate: () => calendarDateToNativeDate,
365
366
  cn: () => cn,
367
+ countryOptions: () => countryOptions,
366
368
  createSelectOptions: () => createSelectOptions,
367
369
  dangerInputfield: () => dangerInputfield,
368
370
  dateValueToNativeDate: () => dateValueToNativeDate,
@@ -865,7 +867,7 @@ var Input_default = {
865
867
  "input--with-affix": "Input_input--with-affix",
866
868
  label: "Input_label",
867
869
  "char-counter": "Input_char-counter",
868
- icon: "Input_icon"
870
+ "input-group__absolute-element": "Input_input-group__absolute-element"
869
871
  };
870
872
 
871
873
  // src/components/Typography/Caption/Caption.tsx
@@ -2504,7 +2506,7 @@ var import_react15 = require("react");
2504
2506
  var import_react6 = require("react");
2505
2507
  function useCombinedRef(...refs) {
2506
2508
  return (0, import_react6.useCallback)((element) => {
2507
- refs.forEach((ref) => {
2509
+ refs.filter(Boolean).forEach((ref) => {
2508
2510
  if (typeof ref === "function") ref(element);
2509
2511
  else if (ref && typeof ref === "object")
2510
2512
  ref.current = element;
@@ -10022,7 +10024,10 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
10022
10024
  {
10023
10025
  icon,
10024
10026
  iconSize: getFormInputIconSize(componentSize),
10025
- className: cn(Input_default.icon, Select_default[`icon--${componentSize}`])
10027
+ className: cn(
10028
+ Input_default["input-group__absolute-element"],
10029
+ Select_default[`icon--${componentSize}`]
10030
+ )
10026
10031
  }
10027
10032
  ),
10028
10033
  props.children
@@ -10531,10 +10536,936 @@ var Pagination = (0, import_react107.forwardRef)(
10531
10536
  );
10532
10537
  Pagination.displayName = "Pagination";
10533
10538
 
10534
- // src/components/Popover/Popover.tsx
10539
+ // src/components/PhoneInput/PhoneInput.tsx
10535
10540
  var import_dds_design_tokens15 = require("@norges-domstoler/dds-design-tokens");
10536
10541
  var import_react108 = require("react");
10537
10542
 
10543
+ // src/components/PhoneInput/constants.ts
10544
+ var COUNTRIES = {
10545
+ AF: {
10546
+ name: "Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)",
10547
+ id: "AF",
10548
+ dialCode: "+93"
10549
+ },
10550
+ AL: {
10551
+ name: "Albania (Shqip\xEBri)",
10552
+ id: "AL",
10553
+ dialCode: "+355"
10554
+ },
10555
+ DZ: {
10556
+ name: "Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)",
10557
+ id: "DZ",
10558
+ dialCode: "+213"
10559
+ },
10560
+ AS: {
10561
+ name: "American Samoa",
10562
+ id: "AS",
10563
+ dialCode: "+1684"
10564
+ },
10565
+ AD: { name: "Andorra", id: "AD", dialCode: "+376" },
10566
+ AO: { name: "Angola", id: "AO", dialCode: "+244" },
10567
+ AI: { name: "Anguilla", id: "AI", dialCode: "+1264" },
10568
+ AG: {
10569
+ name: "Antigua and Barbuda",
10570
+ id: "AG",
10571
+ dialCode: "+1268"
10572
+ },
10573
+ AR: { name: "Argentina", id: "AR", dialCode: "+54" },
10574
+ AM: {
10575
+ name: "Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)",
10576
+ id: "AM",
10577
+ dialCode: "+374"
10578
+ },
10579
+ AW: { name: "Aruba", id: "AW", dialCode: "+297" },
10580
+ AU: { name: "Australia", id: "AU", dialCode: "+61" },
10581
+ AT: {
10582
+ name: "Austria (\xD6sterreich)",
10583
+ id: "AT",
10584
+ dialCode: "+43"
10585
+ },
10586
+ AZ: {
10587
+ name: "Azerbaijan (Az\u0259rbaycan)",
10588
+ id: "AZ",
10589
+ dialCode: "+994"
10590
+ },
10591
+ BS: { name: "Bahamas", id: "BS", dialCode: "+1242" },
10592
+ BH: {
10593
+ name: "Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)",
10594
+ id: "BH",
10595
+ dialCode: "+973"
10596
+ },
10597
+ BD: {
10598
+ name: "Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)",
10599
+ id: "BD",
10600
+ dialCode: "+880"
10601
+ },
10602
+ BB: { name: "Barbados", id: "BB", dialCode: "+1246" },
10603
+ BY: {
10604
+ name: "Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)",
10605
+ id: "BY",
10606
+ dialCode: "+375"
10607
+ },
10608
+ BE: { name: "Belgium (Belgi\xEB)", id: "BE", dialCode: "+32" },
10609
+ BZ: { name: "Belize", id: "BZ", dialCode: "+501" },
10610
+ BJ: { name: "Benin (B\xE9nin)", id: "BJ", dialCode: "+229" },
10611
+ BM: { name: "Bermuda", id: "BM", dialCode: "+1441" },
10612
+ BT: { name: "Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)", id: "BT", dialCode: "+975" },
10613
+ BO: { name: "Bolivia", id: "BO", dialCode: "+591" },
10614
+ BA: {
10615
+ name: "Bosnia and Herzegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)",
10616
+ id: "BA",
10617
+ dialCode: "+387"
10618
+ },
10619
+ BW: { name: "Botswana", id: "BW", dialCode: "+267" },
10620
+ BR: { name: "Brazil (Brasil)", id: "BR", dialCode: "+55" },
10621
+ IO: {
10622
+ name: "British Indian Ocean Territory",
10623
+ id: "IO",
10624
+ dialCode: "+246"
10625
+ },
10626
+ VG: {
10627
+ name: "British Virgin Islands",
10628
+ id: "VG",
10629
+ dialCode: "+1284"
10630
+ },
10631
+ BN: { name: "Brunei", id: "BN", dialCode: "+673" },
10632
+ BG: {
10633
+ name: "Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)",
10634
+ id: "BG",
10635
+ dialCode: "+359"
10636
+ },
10637
+ BF: { name: "Burkina Faso", id: "BF", dialCode: "+226" },
10638
+ BI: {
10639
+ name: "Burundi (Uburundi)",
10640
+ id: "BI",
10641
+ dialCode: "+257"
10642
+ },
10643
+ KH: {
10644
+ name: "Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)",
10645
+ id: "KH",
10646
+ dialCode: "+855"
10647
+ },
10648
+ CM: {
10649
+ name: "Cameroon (Cameroun)",
10650
+ id: "CM",
10651
+ dialCode: "+237"
10652
+ },
10653
+ CA: { name: "Canada", id: "CA", dialCode: "+1" },
10654
+ CV: {
10655
+ name: "Cape Verde (Kabu Verdi)",
10656
+ id: "CV",
10657
+ dialCode: "+238"
10658
+ },
10659
+ KY: {
10660
+ name: "Cayman Islands",
10661
+ id: "KY",
10662
+ dialCode: "+1345"
10663
+ },
10664
+ CF: {
10665
+ name: "Central African Republic (R\xE9publique centrafricaine)",
10666
+ id: "CF",
10667
+ dialCode: "+236"
10668
+ },
10669
+ TD: { name: "Chad (Tchad)", id: "TD", dialCode: "+235" },
10670
+ CL: { name: "Chile", id: "CL", dialCode: "+56" },
10671
+ CN: { name: "China (\u4E2D\u56FD)", id: "CN", dialCode: "+86" },
10672
+ CX: { name: "Christmas Island", id: "CX", dialCode: "+61" },
10673
+ CC: {
10674
+ name: "Cocos (Keeling) Islands",
10675
+ id: "CC",
10676
+ dialCode: "+61"
10677
+ },
10678
+ CO: { name: "Colombia", id: "CO", dialCode: "+57" },
10679
+ KM: {
10680
+ name: "Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)",
10681
+ id: "KM",
10682
+ dialCode: "+269"
10683
+ },
10684
+ CD: {
10685
+ name: "Congo (DRC) (Jamhuri ya Kisoemokrasia ya Kongo)",
10686
+ id: "CD",
10687
+ dialCode: "+243"
10688
+ },
10689
+ CG: {
10690
+ name: "Congo (Republic) (Congo-Brazzaville)",
10691
+ id: "CG",
10692
+ dialCode: "+242"
10693
+ },
10694
+ CK: { name: "Cook Islands", id: "CK", dialCode: "+682" },
10695
+ CR: { name: "Costa Rica", id: "CR", dialCode: "+506" },
10696
+ CI: { name: "C\xF4te d\u2019Ivoire", id: "CI", dialCode: "+225" },
10697
+ HR: {
10698
+ name: "Croatia (Hrvatska)",
10699
+ id: "HR",
10700
+ dialCode: "+385"
10701
+ },
10702
+ CU: { name: "Cuba", id: "CU", dialCode: "+53" },
10703
+ CW: { name: "Cura\xE7ao", id: "CW", dialCode: "+599" },
10704
+ CY: {
10705
+ name: "Cyprus (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)",
10706
+ id: "CY",
10707
+ dialCode: "+357"
10708
+ },
10709
+ CZ: {
10710
+ name: "Czech Republic (\u010Cesk\xE1 republika)",
10711
+ id: "CZ",
10712
+ dialCode: "+420"
10713
+ },
10714
+ DK: {
10715
+ name: "Denmark (Danmark)",
10716
+ id: "DK",
10717
+ dialCode: "+45"
10718
+ },
10719
+ DJ: { name: "Djibouti", id: "DJ", dialCode: "+253" },
10720
+ DM: { name: "Dominica", id: "DM", dialCode: "+1767" },
10721
+ DO: {
10722
+ name: "Dominican Republic (Rep\xFAblica Dominicana)",
10723
+ id: "DO",
10724
+ dialCode: "+1"
10725
+ },
10726
+ EC: { name: "Ecuador", id: "EC", dialCode: "+593" },
10727
+ EG: { name: "Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)", id: "EG", dialCode: "+20" },
10728
+ SV: { name: "El Salvador", id: "SV", dialCode: "+503" },
10729
+ GQ: {
10730
+ name: "Equatorial Guinea (Guinea Ecuatorial)",
10731
+ id: "GQ",
10732
+ dialCode: "+240"
10733
+ },
10734
+ ER: { name: "Eritrea", id: "ER", dialCode: "+291" },
10735
+ EE: {
10736
+ name: "Estonia (Eesti)",
10737
+ id: "EE",
10738
+ dialCode: "+372"
10739
+ },
10740
+ ET: { name: "Ethiopia", id: "ET", dialCode: "+251" },
10741
+ FK: {
10742
+ name: "Falkland Islands (Islas Malvinas)",
10743
+ id: "FK",
10744
+ dialCode: "+500"
10745
+ },
10746
+ FO: {
10747
+ name: "Faroe Islands (F\xF8royar)",
10748
+ id: "FO",
10749
+ dialCode: "+298"
10750
+ },
10751
+ FJ: { name: "Fiji", id: "FJ", dialCode: "+679" },
10752
+ FI: {
10753
+ name: "Finland (Suomi)",
10754
+ id: "FI",
10755
+ dialCode: "+358"
10756
+ },
10757
+ FR: { name: "France", id: "FR", dialCode: "+33" },
10758
+ GF: {
10759
+ name: "French Guiana (Guyane fran\xE7aise)",
10760
+ id: "GF",
10761
+ dialCode: "+594"
10762
+ },
10763
+ PF: {
10764
+ name: "French Polynesia (Polyn\xE9sie fran\xE7aise)",
10765
+ id: "PF",
10766
+ dialCode: "+689"
10767
+ },
10768
+ GA: { name: "Gabon", id: "GA", dialCode: "+241" },
10769
+ GM: { name: "Gambia", id: "GM", dialCode: "+220" },
10770
+ GE: {
10771
+ name: "Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)",
10772
+ id: "GE",
10773
+ dialCode: "+995"
10774
+ },
10775
+ DE: {
10776
+ name: "Germany (Deutschland)",
10777
+ id: "DE",
10778
+ dialCode: "+49"
10779
+ },
10780
+ GH: { name: "Ghana (Gaana)", id: "GH", dialCode: "+233" },
10781
+ GI: { name: "Gibraltar", id: "GI", dialCode: "+350" },
10782
+ GR: { name: "Greece (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)", id: "GR", dialCode: "+30" },
10783
+ GL: {
10784
+ name: "Greenland (Kalaallit Nunaat)",
10785
+ id: "GL",
10786
+ dialCode: "+299"
10787
+ },
10788
+ GD: { name: "Grenada", id: "GD", dialCode: "+1473" },
10789
+ GP: { name: "Guadeloupe", id: "GP", dialCode: "+590" },
10790
+ GU: { name: "Guam", id: "GU", dialCode: "+1671" },
10791
+ GT: { name: "Guatemala", id: "GT", dialCode: "+502" },
10792
+ GG: { name: "Guernsey", id: "GG", dialCode: "+44" },
10793
+ GN: {
10794
+ name: "Guinea (Guin\xE9e)",
10795
+ id: "GN",
10796
+ dialCode: "+224"
10797
+ },
10798
+ GW: {
10799
+ name: "Guinea-Bissau (Guin\xE9 Bissau)",
10800
+ id: "GW",
10801
+ dialCode: "+245"
10802
+ },
10803
+ GY: { name: "Guyana", id: "GY", dialCode: "+592" },
10804
+ HT: { name: "Haiti", id: "HT", dialCode: "+509" },
10805
+ HN: { name: "Honduras", id: "HN", dialCode: "+504" },
10806
+ HK: {
10807
+ name: "Hong Kong (\u9999\u6E2F)",
10808
+ id: "HK",
10809
+ dialCode: "+852"
10810
+ },
10811
+ HU: {
10812
+ name: "Hungary (Magyarorsz\xE1g)",
10813
+ id: "HU",
10814
+ dialCode: "+36"
10815
+ },
10816
+ IS: {
10817
+ name: "Iceland (\xCDsland)",
10818
+ id: "IS",
10819
+ dialCode: "+354"
10820
+ },
10821
+ IN: { name: "India (\u092D\u093E\u0930\u0924)", id: "IN", dialCode: "+91" },
10822
+ ID: { name: "Indonesia", id: "ID", dialCode: "+62" },
10823
+ IR: { name: "Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)", id: "IR", dialCode: "+98" },
10824
+ IQ: {
10825
+ name: "Iraq (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)",
10826
+ id: "IQ",
10827
+ dialCode: "+964"
10828
+ },
10829
+ IE: { name: "Ireland", id: "IE", dialCode: "+353" },
10830
+ IM: { name: "Isle of Man", id: "IM", dialCode: "+44" },
10831
+ IL: {
10832
+ name: "Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)",
10833
+ id: "IL",
10834
+ dialCode: "+972"
10835
+ },
10836
+ IT: { name: "Italy (Italia)", id: "IT", dialCode: "+39" },
10837
+ JM: { name: "Jamaica", id: "JM", dialCode: "+1" },
10838
+ JP: { name: "Japan (\u65E5\u672C)", id: "JP", dialCode: "+81" },
10839
+ JE: { name: "Jersey", id: "JE", dialCode: "+44" },
10840
+ JO: {
10841
+ name: "Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)",
10842
+ id: "JO",
10843
+ dialCode: "+962"
10844
+ },
10845
+ KZ: {
10846
+ name: "Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)",
10847
+ id: "KZ",
10848
+ dialCode: "+7"
10849
+ },
10850
+ KE: { name: "Kenya", id: "KE", dialCode: "+254" },
10851
+ KI: { name: "Kiribati", id: "KI", dialCode: "+686" },
10852
+ XK: { name: "Kosovo", id: "XK", dialCode: "+383" },
10853
+ KW: {
10854
+ name: "Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)",
10855
+ id: "KW",
10856
+ dialCode: "+965"
10857
+ },
10858
+ KG: {
10859
+ name: "Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)",
10860
+ id: "KG",
10861
+ dialCode: "+996"
10862
+ },
10863
+ LA: { name: "Laos (\u0EA5\u0EB2\u0EA7)", id: "LA", dialCode: "+856" },
10864
+ LV: {
10865
+ name: "Latvia (Latvija)",
10866
+ id: "LV",
10867
+ dialCode: "+371"
10868
+ },
10869
+ LB: {
10870
+ name: "Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)",
10871
+ id: "LB",
10872
+ dialCode: "+961"
10873
+ },
10874
+ LS: { name: "Lesotho", id: "LS", dialCode: "+266" },
10875
+ LR: { name: "Liberia", id: "LR", dialCode: "+231" },
10876
+ LY: {
10877
+ name: "Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)",
10878
+ id: "LY",
10879
+ dialCode: "+218"
10880
+ },
10881
+ LI: { name: "Liechtenstein", id: "LI", dialCode: "+423" },
10882
+ LT: {
10883
+ name: "Lithuania (Lietuva)",
10884
+ id: "LT",
10885
+ dialCode: "+370"
10886
+ },
10887
+ LU: { name: "Luxembourg", id: "LU", dialCode: "+352" },
10888
+ MO: { name: "Macau (\u6FB3\u9580)", id: "MO", dialCode: "+853" },
10889
+ MK: {
10890
+ name: "North Macedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)",
10891
+ id: "MK",
10892
+ dialCode: "+389"
10893
+ },
10894
+ MG: {
10895
+ name: "Madagascar (Madagasikara)",
10896
+ id: "MG",
10897
+ dialCode: "+261"
10898
+ },
10899
+ MW: { name: "Malawi", id: "MW", dialCode: "+265" },
10900
+ MY: { name: "Malaysia", id: "MY", dialCode: "+60" },
10901
+ MV: { name: "Maldives", id: "MV", dialCode: "+960" },
10902
+ ML: { name: "Mali", id: "ML", dialCode: "+223" },
10903
+ MT: { name: "Malta", id: "MT", dialCode: "+356" },
10904
+ MH: {
10905
+ name: "Marshall Islands",
10906
+ id: "MH",
10907
+ dialCode: "+692"
10908
+ },
10909
+ MQ: { name: "Martinique", id: "MQ", dialCode: "+596" },
10910
+ MR: {
10911
+ name: "Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)",
10912
+ id: "MR",
10913
+ dialCode: "+222"
10914
+ },
10915
+ MU: {
10916
+ name: "Mauritius (Moris)",
10917
+ id: "MU",
10918
+ dialCode: "+230"
10919
+ },
10920
+ YT: { name: "Mayotte", id: "YT", dialCode: "+262" },
10921
+ MX: { name: "Mexico (M\xE9xico)", id: "MX", dialCode: "+52" },
10922
+ FM: { name: "Micronesia", id: "FM", dialCode: "+691" },
10923
+ MD: {
10924
+ name: "Moldova (Republica Moldova)",
10925
+ id: "MD",
10926
+ dialCode: "+373"
10927
+ },
10928
+ MC: { name: "Monaco", id: "MC", dialCode: "+377" },
10929
+ MN: {
10930
+ name: "Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)",
10931
+ id: "MN",
10932
+ dialCode: "+976"
10933
+ },
10934
+ ME: {
10935
+ name: "Montenegro (Crna Gora)",
10936
+ id: "ME",
10937
+ dialCode: "+382"
10938
+ },
10939
+ MS: { name: "Montserrat", id: "MS", dialCode: "+1664" },
10940
+ MA: {
10941
+ name: "Morocco (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)",
10942
+ id: "MA",
10943
+ dialCode: "+212"
10944
+ },
10945
+ MZ: {
10946
+ name: "Mozambique (Mo\xE7ambique)",
10947
+ id: "MZ",
10948
+ dialCode: "+258"
10949
+ },
10950
+ MM: {
10951
+ name: "Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)",
10952
+ id: "MM",
10953
+ dialCode: "+95"
10954
+ },
10955
+ NA: {
10956
+ name: "Namibia (Namibi\xEB)",
10957
+ id: "NA",
10958
+ dialCode: "+264"
10959
+ },
10960
+ NR: { name: "Nauru", id: "NR", dialCode: "+674" },
10961
+ NP: { name: "Nepal (\u0928\u0947\u092A\u093E\u0932)", id: "NP", dialCode: "+977" },
10962
+ NL: {
10963
+ name: "Netherlands (Nederland)",
10964
+ id: "NL",
10965
+ dialCode: "+31"
10966
+ },
10967
+ NC: {
10968
+ name: "New Caledonia (Nouvelle-Cal\xE9donie)",
10969
+ id: "NC",
10970
+ dialCode: "+687"
10971
+ },
10972
+ NZ: { name: "New Zealand", id: "NZ", dialCode: "+64" },
10973
+ NI: { name: "Nicaragua", id: "NI", dialCode: "+505" },
10974
+ NE: { name: "Niger (Nijar)", id: "NE", dialCode: "+227" },
10975
+ NG: { name: "Nigeria", id: "NG", dialCode: "+234" },
10976
+ NU: { name: "Niue", id: "NU", dialCode: "+683" },
10977
+ NF: { name: "Norfolk Island", id: "NF", dialCode: "+672" },
10978
+ KP: {
10979
+ name: "North Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)",
10980
+ id: "KP",
10981
+ dialCode: "+850"
10982
+ },
10983
+ MP: {
10984
+ name: "Northern Mariana Islands",
10985
+ id: "MP",
10986
+ dialCode: "+1670"
10987
+ },
10988
+ NO: { name: "Norway (Norge)", id: "NO", dialCode: "+47" },
10989
+ OM: {
10990
+ name: "Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)",
10991
+ id: "OM",
10992
+ dialCode: "+968"
10993
+ },
10994
+ PK: {
10995
+ name: "Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)",
10996
+ id: "PK",
10997
+ dialCode: "+92"
10998
+ },
10999
+ PW: { name: "Palau", id: "PW", dialCode: "+680" },
11000
+ PS: {
11001
+ name: "Palestine (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)",
11002
+ id: "PS",
11003
+ dialCode: "+970"
11004
+ },
11005
+ PA: {
11006
+ name: "Panama (Panam\xE1)",
11007
+ id: "PA",
11008
+ dialCode: "+507"
11009
+ },
11010
+ PG: {
11011
+ name: "Papua New Guinea",
11012
+ id: "PG",
11013
+ dialCode: "+675"
11014
+ },
11015
+ PY: { name: "Paraguay", id: "PY", dialCode: "+595" },
11016
+ PE: { name: "Peru (Per\xFA)", id: "PE", dialCode: "+51" },
11017
+ PH: { name: "Philippines", id: "PH", dialCode: "+63" },
11018
+ PL: { name: "Poland (Polska)", id: "PL", dialCode: "+48" },
11019
+ PT: { name: "Portugal", id: "PT", dialCode: "+351" },
11020
+ PR: { name: "Puerto Rico", id: "PR", dialCode: "+1" },
11021
+ QA: { name: "Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)", id: "QA", dialCode: "+974" },
11022
+ RE: {
11023
+ name: "R\xE9union (La R\xE9union)",
11024
+ id: "RE",
11025
+ dialCode: "+262"
11026
+ },
11027
+ RO: {
11028
+ name: "Romania (Rom\xE2nia)",
11029
+ id: "RO",
11030
+ dialCode: "+40"
11031
+ },
11032
+ RU: { name: "Russia (\u0420\u043E\u0441\u0441\u0438\u044F)", id: "RU", dialCode: "+7" },
11033
+ RW: { name: "Rwanda", id: "RW", dialCode: "+250" },
11034
+ BL: {
11035
+ name: "Saint Barth\xE9lemy",
11036
+ id: "BL",
11037
+ dialCode: "+590"
11038
+ },
11039
+ SH: { name: "Saint Helena", id: "SH", dialCode: "+290" },
11040
+ KN: {
11041
+ name: "Saint Kitts and Nevis",
11042
+ id: "KN",
11043
+ dialCode: "+1869"
11044
+ },
11045
+ LC: { name: "Saint Lucia", id: "LC", dialCode: "+1758" },
11046
+ MF: {
11047
+ name: "Saint Martin (Saint-Martin (partie fran\xE7aise))",
11048
+ id: "MF",
11049
+ dialCode: "+590"
11050
+ },
11051
+ PM: {
11052
+ name: "Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)",
11053
+ id: "PM",
11054
+ dialCode: "+508"
11055
+ },
11056
+ VC: {
11057
+ name: "Saint Vincent and the Grenadines",
11058
+ id: "VC",
11059
+ dialCode: "+1784"
11060
+ },
11061
+ WS: { name: "Samoa", id: "WS", dialCode: "+685" },
11062
+ SM: { name: "San Marino", id: "SM", dialCode: "+378" },
11063
+ ST: {
11064
+ name: "S\xE3o Tom\xE9 and Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)",
11065
+ id: "ST",
11066
+ dialCode: "+239"
11067
+ },
11068
+ SA: {
11069
+ name: "Saudi Arabia (\u202B\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629\u202C\u200E)",
11070
+ id: "SA",
11071
+ dialCode: "+966"
11072
+ },
11073
+ SN: {
11074
+ name: "Senegal (S\xE9n\xE9gal)",
11075
+ id: "SN",
11076
+ dialCode: "+221"
11077
+ },
11078
+ RS: {
11079
+ name: "Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)",
11080
+ id: "RS",
11081
+ dialCode: "+381"
11082
+ },
11083
+ SC: { name: "Seychelles", id: "SC", dialCode: "+248" },
11084
+ SL: { name: "Sierra Leone", id: "SL", dialCode: "+232" },
11085
+ SG: { name: "Singapore", id: "SG", dialCode: "+65" },
11086
+ SX: { name: "Sint Maarten", id: "SX", dialCode: "+1721" },
11087
+ SK: {
11088
+ name: "Slovakia (Slovensko)",
11089
+ id: "SK",
11090
+ dialCode: "+421"
11091
+ },
11092
+ SI: {
11093
+ name: "Slovenia (Slovenija)",
11094
+ id: "SI",
11095
+ dialCode: "+386"
11096
+ },
11097
+ SB: {
11098
+ name: "Solomon Islands",
11099
+ id: "SB",
11100
+ dialCode: "+677"
11101
+ },
11102
+ SO: {
11103
+ name: "Somalia (Soomaaliya)",
11104
+ id: "SO",
11105
+ dialCode: "+252"
11106
+ },
11107
+ ZA: { name: "South Africa", id: "ZA", dialCode: "+27" },
11108
+ KR: {
11109
+ name: "South Korea (\uB300\uD55C\uBBFC\uAD6D)",
11110
+ id: "KR",
11111
+ dialCode: "+82"
11112
+ },
11113
+ SS: {
11114
+ name: "South Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)",
11115
+ id: "SS",
11116
+ dialCode: "+211"
11117
+ },
11118
+ ES: { name: "Spain (Espa\xF1a)", id: "ES", dialCode: "+34" },
11119
+ LK: {
11120
+ name: "Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)",
11121
+ id: "LK",
11122
+ dialCode: "+94"
11123
+ },
11124
+ SD: {
11125
+ name: "Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)",
11126
+ id: "SD",
11127
+ dialCode: "+249"
11128
+ },
11129
+ SR: { name: "Suriname", id: "SR", dialCode: "+597" },
11130
+ SJ: {
11131
+ name: "Svalbard and Jan Mayen",
11132
+ id: "SJ",
11133
+ dialCode: "+47"
11134
+ },
11135
+ SZ: { name: "Swaziland", id: "SZ", dialCode: "+268" },
11136
+ SE: { name: "Sweden (Sverige)", id: "SE", dialCode: "+46" },
11137
+ CH: {
11138
+ name: "Switzerland (Schweiz)",
11139
+ id: "CH",
11140
+ dialCode: "+41"
11141
+ },
11142
+ SY: {
11143
+ name: "Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)",
11144
+ id: "SY",
11145
+ dialCode: "+963"
11146
+ },
11147
+ TW: { name: "Taiwan (\u53F0\u7063)", id: "TW", dialCode: "+886" },
11148
+ TJ: { name: "Tajikistan", id: "TJ", dialCode: "+992" },
11149
+ TZ: { name: "Tanzania", id: "TZ", dialCode: "+255" },
11150
+ TH: { name: "Thailand (\u0E44\u0E17\u0E22)", id: "TH", dialCode: "+66" },
11151
+ TL: { name: "Timor-Leste", id: "TL", dialCode: "+670" },
11152
+ TG: { name: "Togo", id: "TG", dialCode: "+228" },
11153
+ TK: { name: "Tokelau", id: "TK", dialCode: "+690" },
11154
+ TO: { name: "Tonga", id: "TO", dialCode: "+676" },
11155
+ TT: {
11156
+ name: "Trinisoad and Tobago",
11157
+ id: "TT",
11158
+ dialCode: "+1868"
11159
+ },
11160
+ TN: {
11161
+ name: "Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)",
11162
+ id: "TN",
11163
+ dialCode: "+216"
11164
+ },
11165
+ TR: { name: "Turkey (T\xFCrkiye)", id: "TR", dialCode: "+90" },
11166
+ TM: { name: "Turkmenistan", id: "TM", dialCode: "+993" },
11167
+ TC: {
11168
+ name: "Turks and Caicos Islands",
11169
+ id: "TC",
11170
+ dialCode: "+1649"
11171
+ },
11172
+ TV: { name: "Tuvalu", id: "TV", dialCode: "+688" },
11173
+ VI: {
11174
+ name: "U.S. Virgin Islands",
11175
+ id: "VI",
11176
+ dialCode: "+1340"
11177
+ },
11178
+ UG: { name: "Uganda", id: "UG", dialCode: "+256" },
11179
+ UA: {
11180
+ name: "Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)",
11181
+ id: "UA",
11182
+ dialCode: "+380"
11183
+ },
11184
+ AE: {
11185
+ name: "United Arab Emirates (\u202B\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629\u202C\u200E)",
11186
+ id: "AE",
11187
+ dialCode: "+971"
11188
+ },
11189
+ GB: { name: "United Kingdom", id: "GB", dialCode: "+44" },
11190
+ US: { name: "United States", id: "US", dialCode: "+1" },
11191
+ UY: { name: "Uruguay", id: "UY", dialCode: "+598" },
11192
+ UZ: {
11193
+ name: "Uzbekistan (O\u02BBzbekiston)",
11194
+ id: "UZ",
11195
+ dialCode: "+998"
11196
+ },
11197
+ VU: { name: "Vanuatu", id: "VU", dialCode: "+678" },
11198
+ VA: {
11199
+ name: "Vatican City (Citt\xE0 del Vaticano)",
11200
+ id: "VA",
11201
+ dialCode: "+39"
11202
+ },
11203
+ VE: { name: "Venezuela", id: "VE", dialCode: "+58" },
11204
+ VN: {
11205
+ name: "Vietnam (Vi\u1EC7t Nam)",
11206
+ id: "VN",
11207
+ dialCode: "+84"
11208
+ },
11209
+ WF: {
11210
+ name: "Wallis and Futuna (Wallis-et-Futuna)",
11211
+ id: "WF",
11212
+ dialCode: "+681"
11213
+ },
11214
+ YE: {
11215
+ name: "Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)",
11216
+ id: "YE",
11217
+ dialCode: "+967"
11218
+ },
11219
+ ZM: { name: "Zambia", id: "ZM", dialCode: "+260" },
11220
+ ZW: { name: "Zimbabwe", id: "ZW", dialCode: "+263" },
11221
+ AX: { name: "\xC5land Islands", id: "AX", dialCode: "+358" }
11222
+ };
11223
+
11224
+ // src/components/PhoneInput/PhoneInput.module.css
11225
+ var PhoneInput_default = {
11226
+ "inputs-container": "PhoneInput_inputs-container",
11227
+ input: "PhoneInput_input",
11228
+ select: "PhoneInput_select",
11229
+ "select--tiny": "PhoneInput_select--tiny",
11230
+ "inputs-container--small-screen-xs": "PhoneInput_inputs-container--small-screen-xs",
11231
+ "inputs-container--small-screen-sm": "PhoneInput_inputs-container--small-screen-sm",
11232
+ "inputs-container--small-screen-md": "PhoneInput_inputs-container--small-screen-md",
11233
+ "inputs-container--small-screen-lg": "PhoneInput_inputs-container--small-screen-lg",
11234
+ "inputs-container--small-screen-xl": "PhoneInput_inputs-container--small-screen-xl",
11235
+ "calling-code": "PhoneInput_calling-code"
11236
+ };
11237
+
11238
+ // src/components/PhoneInput/PhoneInput.tsx
11239
+ var import_jsx_runtime268 = require("react/jsx-runtime");
11240
+ var prioritizedCountries = [
11241
+ COUNTRIES.NO,
11242
+ COUNTRIES.SE,
11243
+ COUNTRIES.DK,
11244
+ COUNTRIES.FI
11245
+ ];
11246
+ var prioritizedCountryOptions = prioritizedCountries.map((country) => {
11247
+ return {
11248
+ label: `${country.name} ${country.dialCode}`,
11249
+ countryCode: country.id
11250
+ };
11251
+ });
11252
+ var sortedCountryOptions = Object.values(
11253
+ COUNTRIES
11254
+ ).sort((a2, b) => +a2.name - +b.name).map((country) => ({
11255
+ countryCode: country.id,
11256
+ label: `${country.name} ${country.dialCode}`
11257
+ })).filter(
11258
+ (country) => !prioritizedCountryOptions.some(
11259
+ (pCountry) => pCountry.countryCode === country.countryCode
11260
+ )
11261
+ );
11262
+ var countryOptions = [
11263
+ ...prioritizedCountryOptions,
11264
+ ...sortedCountryOptions
11265
+ ];
11266
+ var PhoneInput = (0, import_react108.forwardRef)(
11267
+ ({
11268
+ label,
11269
+ readOnly,
11270
+ errorMessage,
11271
+ tip,
11272
+ required,
11273
+ width,
11274
+ componentSize = "medium",
11275
+ name,
11276
+ className,
11277
+ style,
11278
+ value,
11279
+ selectLabel = "Landskode",
11280
+ selectRef,
11281
+ onChange,
11282
+ defaultValue,
11283
+ "aria-required": ariaRequired,
11284
+ "aria-describedby": ariaDescribedby,
11285
+ groupLabel = "Landskode og telefonnummer",
11286
+ ...props
11287
+ }, ref) => {
11288
+ var _a;
11289
+ const generatedId = (0, import_react108.useId)();
11290
+ const uniqueId = (_a = props.id) != null ? _a : generatedId;
11291
+ const phoneInputId = `${uniqueId}-phone-input`;
11292
+ const phoneNumberId = `${uniqueId}-phone-number`;
11293
+ const selectId = `${uniqueId}-country-code`;
11294
+ const hasErrorMessage = !!errorMessage;
11295
+ const hasTip = !!tip;
11296
+ const hasLabel = !!label;
11297
+ const hasMessage = hasErrorMessage || hasTip;
11298
+ const tipId = derivativeIdGenerator(phoneInputId, "tip");
11299
+ const errorMessageId = derivativeIdGenerator(phoneInputId, "errorMessage");
11300
+ const [callingCode, setCallingCode] = (0, import_react108.useState)("");
11301
+ const [selectedCountryCodeText, setSelectedCountryCodeText] = (0, import_react108.useState)("");
11302
+ const [internalValue, setInternalValue] = (0, import_react108.useState)(
11303
+ defaultValue != null ? defaultValue : {
11304
+ countryCode: "",
11305
+ phoneNumber: ""
11306
+ }
11307
+ );
11308
+ const isControlled = value !== void 0;
11309
+ const [callingCodeWidth, setCallingCodeWidth] = (0, import_react108.useState)(0);
11310
+ const callingCodeRef = (0, import_react108.useRef)(null);
11311
+ (0, import_react108.useLayoutEffect)(() => {
11312
+ if (callingCodeRef.current) {
11313
+ setCallingCodeWidth(callingCodeRef.current.offsetWidth);
11314
+ }
11315
+ }, [callingCode]);
11316
+ const callingCodeInlineStart = callingCodeWidth ? import_dds_design_tokens15.ddsTokens.ddsSpacingX1NumberPx + callingCodeWidth + "px" : void 0;
11317
+ const styleVariables = {
11318
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11319
+ ["--dds-phone-input-width"]: width ? width : componentSize === "tiny" ? "131px" : "194px"
11320
+ };
11321
+ const internalSelectRef = (0, import_react108.useRef)(null);
11322
+ const combinedSelectRef = useCombinedRef(selectRef, internalSelectRef);
11323
+ const displayedValue = isControlled ? value : internalValue;
11324
+ (0, import_react108.useEffect)(() => {
11325
+ const selectEl = internalSelectRef.current;
11326
+ if (selectEl && selectEl.value) {
11327
+ const { options, selectedIndex } = selectEl;
11328
+ const content = options[selectedIndex].innerHTML;
11329
+ setSelectedCountryCodeText(content);
11330
+ setCallingCode(getCallingCode(content));
11331
+ }
11332
+ }, [displayedValue == null ? void 0 : displayedValue.countryCode]);
11333
+ const handleCountryCodeChange = (e) => {
11334
+ var _a2;
11335
+ const newValue = {
11336
+ countryCode: e.target.value,
11337
+ phoneNumber: (_a2 = displayedValue == null ? void 0 : displayedValue.phoneNumber) != null ? _a2 : ""
11338
+ };
11339
+ const { options, selectedIndex } = e.target;
11340
+ const content = options[selectedIndex].innerHTML;
11341
+ setCallingCode(getCallingCode(content));
11342
+ if (isControlled && onChange) {
11343
+ onChange(newValue);
11344
+ } else {
11345
+ setInternalValue(newValue);
11346
+ }
11347
+ };
11348
+ const handlePhoneNumberChange = (e) => {
11349
+ var _a2;
11350
+ const newValue = {
11351
+ countryCode: (_a2 = displayedValue == null ? void 0 : displayedValue.countryCode) != null ? _a2 : "",
11352
+ phoneNumber: e.target.value
11353
+ };
11354
+ if (isControlled && onChange) {
11355
+ onChange(newValue);
11356
+ } else {
11357
+ setInternalValue(newValue);
11358
+ }
11359
+ };
11360
+ const commonProps = {
11361
+ required,
11362
+ "aria-required": ariaRequired,
11363
+ disabled: props.disabled,
11364
+ readOnly,
11365
+ componentSize
11366
+ };
11367
+ const showRequiredStyling = !!(required || ariaRequired);
11368
+ return /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)("div", { className: cn(className, Input_default.container), style, children: [
11369
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11370
+ Label,
11371
+ {
11372
+ htmlFor: phoneNumberId,
11373
+ showRequiredStyling,
11374
+ className: Input_default.label,
11375
+ readOnly,
11376
+ children: label
11377
+ }
11378
+ ),
11379
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
11380
+ "div",
11381
+ {
11382
+ className: cn(
11383
+ PhoneInput_default["inputs-container"],
11384
+ !!props.smallScreenBreakpoint && PhoneInput_default[`inputs-container--small-screen-${props.smallScreenBreakpoint}`]
11385
+ ),
11386
+ style: styleVariables,
11387
+ role: "group",
11388
+ "aria-label": groupLabel,
11389
+ children: [
11390
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: selectLabel }),
11391
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11392
+ NativeSelect,
11393
+ {
11394
+ ...commonProps,
11395
+ ref: combinedSelectRef,
11396
+ id: selectId,
11397
+ className: cn(
11398
+ PhoneInput_default.select,
11399
+ componentSize === "tiny" && PhoneInput_default["select--tiny"]
11400
+ ),
11401
+ onChange: handleCountryCodeChange,
11402
+ defaultValue: defaultValue == null ? void 0 : defaultValue.countryCode,
11403
+ value: (displayedValue == null ? void 0 : displayedValue.countryCode) || "",
11404
+ title: selectedCountryCodeText,
11405
+ name: `${name}-country-code`,
11406
+ "aria-describedby": spaceSeparatedIdListGenerator([
11407
+ hasTip ? tipId : void 0,
11408
+ ariaDescribedby
11409
+ ]),
11410
+ children: countryOptions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("option", { value: item.countryCode, children: item.label }, index))
11411
+ }
11412
+ ),
11413
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)("div", { className: Input_default["input-group"], children: [
11414
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11415
+ "span",
11416
+ {
11417
+ className: cn(
11418
+ typographyStyles_default[getTypographyCn(inputTypographyTypes[componentSize])],
11419
+ Input_default["input-group__absolute-element"],
11420
+ PhoneInput_default["calling-code"]
11421
+ ),
11422
+ ref: callingCodeRef,
11423
+ children: callingCode
11424
+ }
11425
+ ),
11426
+ /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11427
+ StatefulInput,
11428
+ {
11429
+ ref,
11430
+ type: "tel",
11431
+ ...commonProps,
11432
+ id: phoneNumberId,
11433
+ value: (displayedValue == null ? void 0 : displayedValue.phoneNumber) || "",
11434
+ defaultValue: defaultValue == null ? void 0 : defaultValue.phoneNumber,
11435
+ name: `${name}-phone-number`,
11436
+ onChange: handlePhoneNumberChange,
11437
+ style: {
11438
+ ...styleVariables,
11439
+ paddingInlineStart: callingCodeInlineStart
11440
+ },
11441
+ className: PhoneInput_default.input,
11442
+ hasErrorMessage,
11443
+ "aria-invalid": hasErrorMessage ? true : void 0,
11444
+ "aria-describedby": spaceSeparatedIdListGenerator([
11445
+ hasTip ? tipId : void 0,
11446
+ hasErrorMessage ? errorMessageId : void 0,
11447
+ ariaDescribedby
11448
+ ])
11449
+ }
11450
+ )
11451
+ ] })
11452
+ ]
11453
+ }
11454
+ ),
11455
+ hasMessage && renderInputMessage(tip, tipId, errorMessage, errorMessageId)
11456
+ ] });
11457
+ }
11458
+ );
11459
+ PhoneInput.displayName = "PhoneInput";
11460
+ var getCallingCode = (s2) => {
11461
+ var _a;
11462
+ return (_a = s2.substring(s2.indexOf("+"), s2.length)) != null ? _a : "";
11463
+ };
11464
+
11465
+ // src/components/Popover/Popover.tsx
11466
+ var import_dds_design_tokens16 = require("@norges-domstoler/dds-design-tokens");
11467
+ var import_react109 = require("react");
11468
+
10538
11469
  // src/components/Popover/Popover.module.css
10539
11470
  var Popover_default = {
10540
11471
  container: "Popover_container",
@@ -10544,8 +11475,8 @@ var Popover_default = {
10544
11475
  };
10545
11476
 
10546
11477
  // src/components/Popover/Popover.tsx
10547
- var import_jsx_runtime268 = require("react/jsx-runtime");
10548
- var Popover = (0, import_react108.forwardRef)(
11478
+ var import_jsx_runtime269 = require("react/jsx-runtime");
11479
+ var Popover = (0, import_react109.forwardRef)(
10549
11480
  (props, ref) => {
10550
11481
  const {
10551
11482
  title,
@@ -10557,7 +11488,7 @@ var Popover = (0, import_react108.forwardRef)(
10557
11488
  anchorElement,
10558
11489
  children,
10559
11490
  placement = "bottom",
10560
- offset = import_dds_design_tokens15.ddsTokens.ddsSpacingX05NumberPx,
11491
+ offset = import_dds_design_tokens16.ddsTokens.ddsSpacingX05NumberPx,
10561
11492
  sizeProps,
10562
11493
  id,
10563
11494
  className,
@@ -10585,7 +11516,7 @@ var Popover = (0, import_react108.forwardRef)(
10585
11516
  useOnClickOutside(elements, () => {
10586
11517
  if (isOpen) onClose && onClose();
10587
11518
  });
10588
- return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime268.jsxs)(
11519
+ return isOpen || hasTransitionedIn ? /* @__PURE__ */ (0, import_jsx_runtime269.jsxs)(
10589
11520
  Paper,
10590
11521
  {
10591
11522
  ...getBaseHTMLProps(
@@ -10607,15 +11538,15 @@ var Popover = (0, import_react108.forwardRef)(
10607
11538
  elevation: 3,
10608
11539
  border: "subtle",
10609
11540
  children: [
10610
- title && /* @__PURE__ */ (0, import_jsx_runtime268.jsx)("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
10611
- /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11541
+ title && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
11542
+ /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
10612
11543
  "div",
10613
11544
  {
10614
11545
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
10615
11546
  children
10616
11547
  }
10617
11548
  ),
10618
- withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime268.jsx)(
11549
+ withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(
10619
11550
  Button,
10620
11551
  {
10621
11552
  icon: CloseIcon,
@@ -10634,8 +11565,8 @@ var Popover = (0, import_react108.forwardRef)(
10634
11565
  Popover.displayName = "Popover";
10635
11566
 
10636
11567
  // src/components/Popover/PopoverGroup.tsx
10637
- var import_react109 = require("react");
10638
- var import_jsx_runtime269 = require("react/jsx-runtime");
11568
+ var import_react110 = require("react");
11569
+ var import_jsx_runtime270 = require("react/jsx-runtime");
10639
11570
  var PopoverGroup = ({
10640
11571
  isOpen = false,
10641
11572
  onCloseButtonClick,
@@ -10643,8 +11574,8 @@ var PopoverGroup = ({
10643
11574
  children,
10644
11575
  popoverId
10645
11576
  }) => {
10646
- const [open, setOpen] = (0, import_react109.useState)(isOpen);
10647
- const generatedId = (0, import_react109.useId)();
11577
+ const [open, setOpen] = (0, import_react110.useState)(isOpen);
11578
+ const generatedId = (0, import_react110.useId)();
10648
11579
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
10649
11580
  const handleOnCloseButtonClick = () => {
10650
11581
  setOpen(false);
@@ -10654,8 +11585,8 @@ var PopoverGroup = ({
10654
11585
  setOpen(!open);
10655
11586
  onTriggerClick && onTriggerClick();
10656
11587
  };
10657
- const buttonRef = (0, import_react109.useRef)(null);
10658
- const popoverRef = (0, import_react109.useRef)(null);
11588
+ const buttonRef = (0, import_react110.useRef)(null);
11589
+ const popoverRef = (0, import_react110.useRef)(null);
10659
11590
  useOnKeyDown(["Esc", "Escape"], () => {
10660
11591
  var _a;
10661
11592
  if (open) {
@@ -10664,14 +11595,14 @@ var PopoverGroup = ({
10664
11595
  }
10665
11596
  });
10666
11597
  const handleClose = () => setOpen(false);
10667
- const Children8 = import_react109.Children.map(children, (child, childIndex) => {
10668
- return (0, import_react109.isValidElement)(child) && (childIndex === 0 ? (0, import_react109.cloneElement)(child, {
11598
+ const Children8 = import_react110.Children.map(children, (child, childIndex) => {
11599
+ return (0, import_react110.isValidElement)(child) && (childIndex === 0 ? (0, import_react110.cloneElement)(child, {
10669
11600
  "aria-haspopup": "dialog",
10670
11601
  "aria-controls": uniquePopoverId,
10671
11602
  "aria-expanded": open,
10672
11603
  onClick: handleOnTriggerClick,
10673
11604
  ref: buttonRef
10674
- }) : (0, import_react109.cloneElement)(child, {
11605
+ }) : (0, import_react110.cloneElement)(child, {
10675
11606
  isOpen: open,
10676
11607
  "aria-hidden": !open,
10677
11608
  id: uniquePopoverId,
@@ -10681,21 +11612,21 @@ var PopoverGroup = ({
10681
11612
  onClose: handleClose
10682
11613
  }));
10683
11614
  });
10684
- return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(import_jsx_runtime269.Fragment, { children: Children8 });
11615
+ return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(import_jsx_runtime270.Fragment, { children: Children8 });
10685
11616
  };
10686
11617
  PopoverGroup.displayName = "PopoverGroup";
10687
11618
 
10688
11619
  // src/components/ProgressTracker/ProgressTracker.tsx
10689
- var import_react112 = require("react");
11620
+ var import_react113 = require("react");
10690
11621
 
10691
11622
  // src/components/ProgressTracker/ProgressTracker.context.tsx
10692
- var import_react110 = require("react");
10693
- var ProgressTrackerContext = (0, import_react110.createContext)(
11623
+ var import_react111 = require("react");
11624
+ var ProgressTrackerContext = (0, import_react111.createContext)(
10694
11625
  {
10695
11626
  activeStep: 0
10696
11627
  }
10697
11628
  );
10698
- var useProgressTrackerContext = () => (0, import_react110.useContext)(ProgressTrackerContext);
11629
+ var useProgressTrackerContext = () => (0, import_react111.useContext)(ProgressTrackerContext);
10699
11630
 
10700
11631
  // src/components/ProgressTracker/ProgressTracker.module.css
10701
11632
  var ProgressTracker_default = {
@@ -10719,8 +11650,8 @@ var ProgressTracker_default = {
10719
11650
  };
10720
11651
 
10721
11652
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
10722
- var import_react111 = require("react");
10723
- var import_jsx_runtime270 = require("react/jsx-runtime");
11653
+ var import_react112 = require("react");
11654
+ var import_jsx_runtime271 = require("react/jsx-runtime");
10724
11655
  var toItemState = (active, completed, disabled) => {
10725
11656
  if (disabled) {
10726
11657
  return "disabled";
@@ -10761,17 +11692,17 @@ var ProgressTrackerItem = (props) => {
10761
11692
  handleStepChange && handleStepChange(index);
10762
11693
  }
10763
11694
  };
10764
- const stepNumberContent = (0, import_react111.useMemo)(() => {
11695
+ const stepNumberContent = (0, import_react112.useMemo)(() => {
10765
11696
  if (completed) {
10766
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
11697
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
10767
11698
  }
10768
11699
  if (icon !== void 0) {
10769
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(Icon, { icon, iconSize: "small" });
11700
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(Icon, { icon, iconSize: "small" });
10770
11701
  }
10771
11702
  return index + 1;
10772
11703
  }, [completed, icon, index]);
10773
- const stepContent = /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(import_jsx_runtime270.Fragment, { children: [
10774
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
11704
+ const stepContent = /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(import_jsx_runtime271.Fragment, { children: [
11705
+ /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
10775
11706
  "div",
10776
11707
  {
10777
11708
  "aria-hidden": true,
@@ -10783,7 +11714,7 @@ var ProgressTrackerItem = (props) => {
10783
11714
  children: stepNumberContent
10784
11715
  }
10785
11716
  ),
10786
- /* @__PURE__ */ (0, import_jsx_runtime270.jsxs)(
11717
+ /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(
10787
11718
  "div",
10788
11719
  {
10789
11720
  className: cn(
@@ -10792,13 +11723,13 @@ var ProgressTrackerItem = (props) => {
10792
11723
  typographyStyles_default["body-sans-03"]
10793
11724
  ),
10794
11725
  children: [
10795
- /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
11726
+ /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
10796
11727
  children
10797
11728
  ]
10798
11729
  }
10799
11730
  )
10800
11731
  ] });
10801
- return /* @__PURE__ */ (0, import_jsx_runtime270.jsx)("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
11732
+ return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
10802
11733
  "button",
10803
11734
  {
10804
11735
  ...getBaseHTMLProps(
@@ -10811,7 +11742,7 @@ var ProgressTrackerItem = (props) => {
10811
11742
  disabled,
10812
11743
  children: stepContent
10813
11744
  }
10814
- ) : /* @__PURE__ */ (0, import_jsx_runtime270.jsx)(
11745
+ ) : /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
10815
11746
  "div",
10816
11747
  {
10817
11748
  ...getBaseHTMLProps(
@@ -10827,9 +11758,9 @@ var ProgressTrackerItem = (props) => {
10827
11758
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
10828
11759
 
10829
11760
  // src/components/ProgressTracker/ProgressTracker.tsx
10830
- var import_jsx_runtime271 = require("react/jsx-runtime");
11761
+ var import_jsx_runtime272 = require("react/jsx-runtime");
10831
11762
  var ProgressTracker = (() => {
10832
- const Res = (0, import_react112.forwardRef)((props, ref) => {
11763
+ const Res = (0, import_react113.forwardRef)((props, ref) => {
10833
11764
  const {
10834
11765
  id,
10835
11766
  activeStep = 0,
@@ -10839,12 +11770,12 @@ var ProgressTracker = (() => {
10839
11770
  htmlProps,
10840
11771
  ...rest
10841
11772
  } = props;
10842
- const [thisActiveStep, setActiveStep] = (0, import_react112.useState)(activeStep);
11773
+ const [thisActiveStep, setActiveStep] = (0, import_react113.useState)(activeStep);
10843
11774
  const handleChange = (step) => {
10844
11775
  setActiveStep(step);
10845
11776
  onStepChange && onStepChange(step);
10846
11777
  };
10847
- (0, import_react112.useEffect)(() => {
11778
+ (0, import_react113.useEffect)(() => {
10848
11779
  if (activeStep !== void 0 && activeStep != thisActiveStep) {
10849
11780
  setActiveStep(activeStep);
10850
11781
  }
@@ -10853,20 +11784,20 @@ var ProgressTracker = (() => {
10853
11784
  ...getBaseHTMLProps(id, className, htmlProps, rest),
10854
11785
  ref
10855
11786
  };
10856
- const steps = (0, import_react112.useMemo)(() => {
11787
+ const steps = (0, import_react113.useMemo)(() => {
10857
11788
  const validChildren = removeInvalidChildren(children);
10858
11789
  const itemsWithIndex = passIndexPropToProgressTrackerItem(validChildren);
10859
11790
  const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
10860
11791
  return itemsWithConnectorsBetween;
10861
11792
  }, [children]);
10862
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsx)(
11793
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
10863
11794
  ProgressTrackerContext.Provider,
10864
11795
  {
10865
11796
  value: {
10866
11797
  activeStep: thisActiveStep,
10867
11798
  handleStepChange: handleChange
10868
11799
  },
10869
- children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("ol", { className: ProgressTracker_default.list, children: steps }) })
11800
+ children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("ol", { className: ProgressTracker_default.list, children: steps }) })
10870
11801
  }
10871
11802
  );
10872
11803
  });
@@ -10875,29 +11806,29 @@ var ProgressTracker = (() => {
10875
11806
  return Res;
10876
11807
  })();
10877
11808
  function removeInvalidChildren(children) {
10878
- return import_react112.Children.toArray(children).filter(import_react112.isValidElement);
11809
+ return import_react113.Children.toArray(children).filter(import_react113.isValidElement);
10879
11810
  }
10880
11811
  function passIndexPropToProgressTrackerItem(children) {
10881
- return import_react112.Children.map(
11812
+ return import_react113.Children.map(
10882
11813
  children,
10883
- (item, index) => (0, import_react112.cloneElement)(item, {
11814
+ (item, index) => (0, import_react113.cloneElement)(item, {
10884
11815
  ...item.props,
10885
11816
  index
10886
11817
  })
10887
11818
  );
10888
11819
  }
10889
- var intersperseItemsWithConnector = (children) => import_react112.Children.map(children, (child, index) => {
11820
+ var intersperseItemsWithConnector = (children) => import_react113.Children.map(children, (child, index) => {
10890
11821
  if (index === 0) {
10891
11822
  return child;
10892
11823
  }
10893
- return /* @__PURE__ */ (0, import_jsx_runtime271.jsxs)(import_react112.Fragment, { children: [
10894
- /* @__PURE__ */ (0, import_jsx_runtime271.jsx)("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
11824
+ return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)(import_react113.Fragment, { children: [
11825
+ /* @__PURE__ */ (0, import_jsx_runtime272.jsx)("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
10895
11826
  child
10896
11827
  ] }, index);
10897
11828
  });
10898
11829
 
10899
11830
  // src/components/ProgressBar/ProgressBar.tsx
10900
- var import_react113 = require("react");
11831
+ var import_react114 = require("react");
10901
11832
 
10902
11833
  // src/components/ProgressBar/ProgressBar.module.css
10903
11834
  var ProgressBar_default = {
@@ -10913,8 +11844,8 @@ var ProgressBar_default = {
10913
11844
  };
10914
11845
 
10915
11846
  // src/components/ProgressBar/ProgressBar.tsx
10916
- var import_jsx_runtime272 = require("react/jsx-runtime");
10917
- var ProgressBar = (0, import_react113.forwardRef)(
11847
+ var import_jsx_runtime273 = require("react/jsx-runtime");
11848
+ var ProgressBar = (0, import_react114.forwardRef)(
10918
11849
  (props, ref) => {
10919
11850
  const {
10920
11851
  label,
@@ -10930,7 +11861,7 @@ var ProgressBar = (0, import_react113.forwardRef)(
10930
11861
  style,
10931
11862
  ...rest
10932
11863
  } = props;
10933
- const generatedId = (0, import_react113.useId)();
11864
+ const generatedId = (0, import_react114.useId)();
10934
11865
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
10935
11866
  const hasErrorMessage = !!errorMessage;
10936
11867
  const hasTip = !!tip;
@@ -10948,9 +11879,9 @@ var ProgressBar = (0, import_react113.forwardRef)(
10948
11879
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10949
11880
  ["--dds-progressbar-fill-width"]: fillPrecentage != null ? fillPrecentage : 0
10950
11881
  };
10951
- return /* @__PURE__ */ (0, import_jsx_runtime272.jsxs)("div", { className: cn(className, ProgressBar_default.container), style, children: [
10952
- hasLabel ? /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(Label, { htmlFor: uniqueId, children: label }) : void 0,
10953
- /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
11882
+ return /* @__PURE__ */ (0, import_jsx_runtime273.jsxs)("div", { className: cn(className, ProgressBar_default.container), style, children: [
11883
+ hasLabel ? /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(Label, { htmlFor: uniqueId, children: label }) : void 0,
11884
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
10954
11885
  "progress",
10955
11886
  {
10956
11887
  ref,
@@ -10967,12 +11898,12 @@ var ProgressBar = (0, import_react113.forwardRef)(
10967
11898
  children: fillPrecentage
10968
11899
  }
10969
11900
  ),
10970
- /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
11901
+ /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
10971
11902
  "div",
10972
11903
  {
10973
11904
  style: progressStyleVariables,
10974
11905
  className: cn(ProgressBar_default.progress, ProgressBar_default[`progress--${size2}`]),
10975
- children: /* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
11906
+ children: /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
10976
11907
  "div",
10977
11908
  {
10978
11909
  style: fillStyleVariables,
@@ -10993,13 +11924,13 @@ var ProgressBar = (0, import_react113.forwardRef)(
10993
11924
  ProgressBar.displayName = "ProgressBar";
10994
11925
 
10995
11926
  // src/components/Search/Search.tsx
10996
- var import_react117 = require("react");
11927
+ var import_react118 = require("react");
10997
11928
 
10998
11929
  // src/components/Search/AutocompleteSearch.context.tsx
10999
- var import_react114 = require("react");
11000
- var AutocompleteSearchContext = (0, import_react114.createContext)({});
11930
+ var import_react115 = require("react");
11931
+ var AutocompleteSearchContext = (0, import_react115.createContext)({});
11001
11932
  var useAutocompleteSearch = () => {
11002
- return (0, import_react114.useContext)(AutocompleteSearchContext);
11933
+ return (0, import_react115.useContext)(AutocompleteSearchContext);
11003
11934
  };
11004
11935
 
11005
11936
  // src/components/Search/Search.module.css
@@ -11049,22 +11980,22 @@ function createEmptyChangeEvent(inputElementId) {
11049
11980
  }
11050
11981
 
11051
11982
  // src/components/Search/SearchSuggestions.tsx
11052
- var import_react116 = require("react");
11983
+ var import_react117 = require("react");
11053
11984
 
11054
11985
  // src/components/Search/SearchSuggestionItem.tsx
11055
- var import_react115 = require("react");
11056
- var import_jsx_runtime273 = require("react/jsx-runtime");
11057
- var SearchSuggestionItem = (0, import_react115.forwardRef)((props, ref) => {
11986
+ var import_react116 = require("react");
11987
+ var import_jsx_runtime274 = require("react/jsx-runtime");
11988
+ var SearchSuggestionItem = (0, import_react116.forwardRef)((props, ref) => {
11058
11989
  const { focus, className, ...rest } = props;
11059
- const itemRef = (0, import_react115.useRef)(null);
11990
+ const itemRef = (0, import_react116.useRef)(null);
11060
11991
  const combinedRef = useCombinedRef(ref, itemRef);
11061
- (0, import_react115.useEffect)(() => {
11992
+ (0, import_react116.useEffect)(() => {
11062
11993
  var _a;
11063
11994
  if (focus) {
11064
11995
  (_a = itemRef.current) == null ? void 0 : _a.focus();
11065
11996
  }
11066
11997
  }, [focus]);
11067
- return /* @__PURE__ */ (0, import_jsx_runtime273.jsx)(
11998
+ return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
11068
11999
  "button",
11069
12000
  {
11070
12001
  ref: combinedRef,
@@ -11083,8 +12014,8 @@ var SearchSuggestionItem = (0, import_react115.forwardRef)((props, ref) => {
11083
12014
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
11084
12015
 
11085
12016
  // src/components/Search/SearchSuggestions.tsx
11086
- var import_jsx_runtime274 = require("react/jsx-runtime");
11087
- var SearchSuggestions = (0, import_react116.forwardRef)((props, ref) => {
12017
+ var import_jsx_runtime275 = require("react/jsx-runtime");
12018
+ var SearchSuggestions = (0, import_react117.forwardRef)((props, ref) => {
11088
12019
  const {
11089
12020
  id,
11090
12021
  searchId,
@@ -11103,7 +12034,7 @@ var SearchSuggestions = (0, import_react116.forwardRef)((props, ref) => {
11103
12034
  );
11104
12035
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
11105
12036
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
11106
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsxs)(
12037
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(
11107
12038
  Paper,
11108
12039
  {
11109
12040
  ...getBaseHTMLProps(
@@ -11122,7 +12053,7 @@ var SearchSuggestions = (0, import_react116.forwardRef)((props, ref) => {
11122
12053
  "aria-hidden": !showSuggestions,
11123
12054
  border: "default",
11124
12055
  children: [
11125
- /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
12056
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11126
12057
  "span",
11127
12058
  {
11128
12059
  id: suggestionsHeaderId,
@@ -11133,14 +12064,14 @@ var SearchSuggestions = (0, import_react116.forwardRef)((props, ref) => {
11133
12064
  children: "S\xF8keforslag"
11134
12065
  }
11135
12066
  ),
11136
- /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
12067
+ /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11137
12068
  "ul",
11138
12069
  {
11139
12070
  role: "listbox",
11140
12071
  "aria-labelledby": suggestionsHeaderId,
11141
12072
  className: utilStyles_default["remove-list-styling"],
11142
12073
  children: suggestionsToRender.map((suggestion, index) => {
11143
- return /* @__PURE__ */ (0, import_jsx_runtime274.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime274.jsx)(
12074
+ return /* @__PURE__ */ (0, import_jsx_runtime275.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
11144
12075
  SearchSuggestionItem,
11145
12076
  {
11146
12077
  index,
@@ -11163,7 +12094,7 @@ var SearchSuggestions = (0, import_react116.forwardRef)((props, ref) => {
11163
12094
  SearchSuggestions.displayName = "SearchSuggestions";
11164
12095
 
11165
12096
  // src/components/Search/Search.tsx
11166
- var import_jsx_runtime275 = require("react/jsx-runtime");
12097
+ var import_jsx_runtime276 = require("react/jsx-runtime");
11167
12098
  var getIconSize = (size2) => {
11168
12099
  switch (size2) {
11169
12100
  case "large":
@@ -11174,7 +12105,7 @@ var getIconSize = (size2) => {
11174
12105
  return "small";
11175
12106
  }
11176
12107
  };
11177
- var Search = (0, import_react117.forwardRef)(
12108
+ var Search = (0, import_react118.forwardRef)(
11178
12109
  ({
11179
12110
  componentSize = "medium",
11180
12111
  buttonProps,
@@ -11190,7 +12121,7 @@ var Search = (0, import_react117.forwardRef)(
11190
12121
  ...rest
11191
12122
  }, ref) => {
11192
12123
  var _a;
11193
- const generatedId = (0, import_react117.useId)();
12124
+ const generatedId = (0, import_react118.useId)();
11194
12125
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
11195
12126
  const hasLabel = !!label;
11196
12127
  const tipId = derivativeIdGenerator(uniqueId, "tip");
@@ -11199,7 +12130,7 @@ var Search = (0, import_react117.forwardRef)(
11199
12130
  uniqueId,
11200
12131
  "suggestions-description"
11201
12132
  );
11202
- const [hasValue, setHasValue] = (0, import_react117.useState)(!!value);
12133
+ const [hasValue, setHasValue] = (0, import_react118.useState)(!!value);
11203
12134
  const context = useAutocompleteSearch();
11204
12135
  const combinedRef = context.inputRef ? useCombinedRef(context.inputRef, ref) : ref;
11205
12136
  const handleChange = (e) => {
@@ -11218,10 +12149,10 @@ var Search = (0, import_react117.forwardRef)(
11218
12149
  } = buttonProps != null ? buttonProps : {};
11219
12150
  const hasSuggestions = !!context.suggestions;
11220
12151
  const showSearchButton = !!buttonProps && !!onClick;
11221
- return /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)("div", { className: Search_default.container, children: [
11222
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(Label, { htmlFor: uniqueId, children: label }),
11223
- /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)("div", { children: [
11224
- /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(
12152
+ return /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)("div", { className: Search_default.container, children: [
12153
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(Label, { htmlFor: uniqueId, children: label }),
12154
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)("div", { children: [
12155
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(
11225
12156
  "div",
11226
12157
  {
11227
12158
  className: cn(
@@ -11230,16 +12161,19 @@ var Search = (0, import_react117.forwardRef)(
11230
12161
  ),
11231
12162
  style,
11232
12163
  children: [
11233
- /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)("div", { className: Search_default["input-group"], children: [
11234
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12164
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)("div", { className: Search_default["input-group"], children: [
12165
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11235
12166
  Icon,
11236
12167
  {
11237
12168
  icon: SearchIcon,
11238
12169
  iconSize: getIconSize(componentSize),
11239
- className: cn(Input_default.icon, Search_default["search-icon"])
12170
+ className: cn(
12171
+ Input_default["input-group__absolute-element"],
12172
+ Search_default["search-icon"]
12173
+ )
11240
12174
  }
11241
12175
  ),
11242
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12176
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11243
12177
  Input,
11244
12178
  {
11245
12179
  ...rest,
@@ -11266,8 +12200,8 @@ var Search = (0, import_react117.forwardRef)(
11266
12200
  )
11267
12201
  }
11268
12202
  ),
11269
- hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime275.jsxs)(import_jsx_runtime275.Fragment, { children: [
11270
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12203
+ hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime276.jsxs)(import_jsx_runtime276.Fragment, { children: [
12204
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11271
12205
  SearchSuggestions,
11272
12206
  {
11273
12207
  id: suggestionsId,
@@ -11279,9 +12213,9 @@ var Search = (0, import_react117.forwardRef)(
11279
12213
  componentSize
11280
12214
  }
11281
12215
  ),
11282
- /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
12216
+ /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
11283
12217
  ] }),
11284
- hasValue && /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12218
+ hasValue && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11285
12219
  Button,
11286
12220
  {
11287
12221
  icon: CloseSmallIcon,
@@ -11293,7 +12227,7 @@ var Search = (0, import_react117.forwardRef)(
11293
12227
  }
11294
12228
  )
11295
12229
  ] }),
11296
- showSearchButton && /* @__PURE__ */ (0, import_jsx_runtime275.jsx)(
12230
+ showSearchButton && /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(
11297
12231
  Button,
11298
12232
  {
11299
12233
  size: componentSize,
@@ -11313,8 +12247,8 @@ var Search = (0, import_react117.forwardRef)(
11313
12247
  Search.displayName = "Search";
11314
12248
 
11315
12249
  // src/components/Search/SearchAutocompleteWrapper.tsx
11316
- var import_react118 = require("react");
11317
- var import_jsx_runtime276 = require("react/jsx-runtime");
12250
+ var import_react119 = require("react");
12251
+ var import_jsx_runtime277 = require("react/jsx-runtime");
11318
12252
  var SearchAutocompleteWrapper = (props) => {
11319
12253
  const {
11320
12254
  value,
@@ -11325,12 +12259,12 @@ var SearchAutocompleteWrapper = (props) => {
11325
12259
  onSuggestionSelection,
11326
12260
  children
11327
12261
  } = props;
11328
- const [inputValue, setInputValue] = (0, import_react118.useState)(value != null ? value : "");
11329
- const [suggestions, setSuggestions] = (0, import_react118.useState)([]);
11330
- const [showSuggestions, setShowSuggestions] = (0, import_react118.useState)(false);
12262
+ const [inputValue, setInputValue] = (0, import_react119.useState)(value != null ? value : "");
12263
+ const [suggestions, setSuggestions] = (0, import_react119.useState)([]);
12264
+ const [showSuggestions, setShowSuggestions] = (0, import_react119.useState)(false);
11331
12265
  const closeSuggestions = () => showSuggestions === true && setShowSuggestions(false);
11332
12266
  const openSuggestions = () => showSuggestions === false && setShowSuggestions(true);
11333
- (0, import_react118.useEffect)(() => {
12267
+ (0, import_react119.useEffect)(() => {
11334
12268
  if (suggestions.length > 0) {
11335
12269
  openSuggestions();
11336
12270
  } else {
@@ -11375,8 +12309,8 @@ var SearchAutocompleteWrapper = (props) => {
11375
12309
  const handleSetInputValue = (value2) => {
11376
12310
  setInputValue(value2 != null ? value2 : "");
11377
12311
  };
11378
- const inputRef = (0, import_react118.useRef)(null);
11379
- const suggestionsRef = (0, import_react118.useRef)(null);
12312
+ const inputRef = (0, import_react119.useRef)(null);
12313
+ const suggestionsRef = (0, import_react119.useRef)(null);
11380
12314
  useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
11381
12315
  closeSuggestions();
11382
12316
  });
@@ -11390,7 +12324,7 @@ var SearchAutocompleteWrapper = (props) => {
11390
12324
  inputValue,
11391
12325
  onSugggestionClick: handleSuggestionClick
11392
12326
  };
11393
- return /* @__PURE__ */ (0, import_jsx_runtime276.jsx)(AutocompleteSearchContext.Provider, { value: contextProps, children });
12327
+ return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(AutocompleteSearchContext.Provider, { value: contextProps, children });
11394
12328
  };
11395
12329
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
11396
12330
 
@@ -11400,17 +12334,17 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
11400
12334
  Search2.Suggestions = SearchSuggestions;
11401
12335
 
11402
12336
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
11403
- var import_react121 = require("react");
12337
+ var import_react122 = require("react");
11404
12338
 
11405
12339
  // src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
11406
- var import_react119 = require("react");
11407
- var CheckboxGroupContext = (0, import_react119.createContext)(null);
12340
+ var import_react120 = require("react");
12341
+ var CheckboxGroupContext = (0, import_react120.createContext)(null);
11408
12342
  var useCheckboxGroup = () => {
11409
- return (0, import_react119.useContext)(CheckboxGroupContext);
12343
+ return (0, import_react120.useContext)(CheckboxGroupContext);
11410
12344
  };
11411
12345
 
11412
12346
  // src/components/SelectionControl/SelectionControl.styles.tsx
11413
- var import_react120 = require("react");
12347
+ var import_react121 = require("react");
11414
12348
 
11415
12349
  // src/components/SelectionControl/SelectionControl.module.css
11416
12350
  var SelectionControl_default = {
@@ -11430,10 +12364,10 @@ var SelectionControl_default = {
11430
12364
  };
11431
12365
 
11432
12366
  // src/components/SelectionControl/SelectionControl.styles.tsx
11433
- var import_jsx_runtime277 = require("react/jsx-runtime");
11434
- var SelectionControl = (0, import_react120.forwardRef)((props, ref) => {
12367
+ var import_jsx_runtime278 = require("react/jsx-runtime");
12368
+ var SelectionControl = (0, import_react121.forwardRef)((props, ref) => {
11435
12369
  const { controlType, className, ...rest } = props;
11436
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
12370
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11437
12371
  "span",
11438
12372
  {
11439
12373
  ref,
@@ -11446,7 +12380,7 @@ var SelectionControl = (0, import_react120.forwardRef)((props, ref) => {
11446
12380
  }
11447
12381
  );
11448
12382
  });
11449
- var Label2 = (0, import_react120.forwardRef)(
12383
+ var Label2 = (0, import_react121.forwardRef)(
11450
12384
  (props, ref) => {
11451
12385
  const {
11452
12386
  disabled,
@@ -11457,7 +12391,7 @@ var Label2 = (0, import_react120.forwardRef)(
11457
12391
  className,
11458
12392
  ...rest
11459
12393
  } = props;
11460
- return /* @__PURE__ */ (0, import_jsx_runtime277.jsx)(
12394
+ return /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
11461
12395
  "label",
11462
12396
  {
11463
12397
  ref,
@@ -11488,8 +12422,8 @@ var selectionControlTypographyProps = {
11488
12422
  };
11489
12423
 
11490
12424
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
11491
- var import_jsx_runtime278 = require("react/jsx-runtime");
11492
- var Checkbox = (0, import_react121.forwardRef)(
12425
+ var import_jsx_runtime279 = require("react/jsx-runtime");
12426
+ var Checkbox = (0, import_react122.forwardRef)(
11493
12427
  (props, ref) => {
11494
12428
  const {
11495
12429
  id,
@@ -11504,7 +12438,7 @@ var Checkbox = (0, import_react121.forwardRef)(
11504
12438
  htmlProps = {},
11505
12439
  ...rest
11506
12440
  } = props;
11507
- const generatedId = (0, import_react121.useId)();
12441
+ const generatedId = (0, import_react122.useId)();
11508
12442
  const uniqueId = id != null ? id : `${generatedId}-checkbox`;
11509
12443
  const checkboxGroup = useCheckboxGroup();
11510
12444
  const hasLabel = !!label;
@@ -11516,7 +12450,7 @@ var Checkbox = (0, import_react121.forwardRef)(
11516
12450
  const isReadOnly = readOnly || (checkboxGroup == null ? void 0 : checkboxGroup.readOnly);
11517
12451
  const hasError = error || (checkboxGroup == null ? void 0 : checkboxGroup.error);
11518
12452
  const isDisabled = disabled || (checkboxGroup == null ? void 0 : checkboxGroup.disabled);
11519
- return /* @__PURE__ */ (0, import_jsx_runtime278.jsxs)(
12453
+ return /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(
11520
12454
  Label2,
11521
12455
  {
11522
12456
  hasError,
@@ -11528,7 +12462,7 @@ var Checkbox = (0, import_react121.forwardRef)(
11528
12462
  className: cn(className, htmlPropsClassName),
11529
12463
  style,
11530
12464
  children: [
11531
- /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
12465
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
11532
12466
  "input",
11533
12467
  {
11534
12468
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -11558,14 +12492,14 @@ var Checkbox = (0, import_react121.forwardRef)(
11558
12492
  onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
11559
12493
  }
11560
12494
  ),
11561
- /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
12495
+ /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
11562
12496
  SelectionControl,
11563
12497
  {
11564
12498
  controlType: "checkbox",
11565
12499
  className: focus_default["focus-styled-sibling"]
11566
12500
  }
11567
12501
  ),
11568
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(Typography, { ...selectionControlTypographyProps, children: label })
12502
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(Typography, { ...selectionControlTypographyProps, children: label })
11569
12503
  ]
11570
12504
  }
11571
12505
  );
@@ -11574,8 +12508,8 @@ var Checkbox = (0, import_react121.forwardRef)(
11574
12508
  Checkbox.displayName = "Checkbox";
11575
12509
 
11576
12510
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
11577
- var import_react122 = require("react");
11578
- var import_jsx_runtime279 = require("react/jsx-runtime");
12511
+ var import_react123 = require("react");
12512
+ var import_jsx_runtime280 = require("react/jsx-runtime");
11579
12513
  var CheckboxGroup = (props) => {
11580
12514
  const {
11581
12515
  label,
@@ -11593,7 +12527,7 @@ var CheckboxGroup = (props) => {
11593
12527
  ...rest
11594
12528
  } = props;
11595
12529
  const { "aria-required": ariaRequired } = htmlProps;
11596
- const generatedId = (0, import_react122.useId)();
12530
+ const generatedId = (0, import_react123.useId)();
11597
12531
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
11598
12532
  const hasErrorMessage = !!errorMessage;
11599
12533
  const showRequiredMarker = required || ariaRequired;
@@ -11607,7 +12541,7 @@ var CheckboxGroup = (props) => {
11607
12541
  disabled,
11608
12542
  readOnly
11609
12543
  };
11610
- return /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(
12544
+ return /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(
11611
12545
  "div",
11612
12546
  {
11613
12547
  ...getBaseHTMLProps(
@@ -11617,7 +12551,7 @@ var CheckboxGroup = (props) => {
11617
12551
  rest
11618
12552
  ),
11619
12553
  children: [
11620
- /* @__PURE__ */ (0, import_jsx_runtime279.jsxs)(
12554
+ /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(
11621
12555
  Typography,
11622
12556
  {
11623
12557
  as: "span",
@@ -11625,15 +12559,15 @@ var CheckboxGroup = (props) => {
11625
12559
  id: uniqueGroupId,
11626
12560
  className: readOnly ? Label_default["read-only"] : void 0,
11627
12561
  children: [
11628
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
12562
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11629
12563
  label,
11630
12564
  " ",
11631
- showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(RequiredMarker, {})
12565
+ showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(RequiredMarker, {})
11632
12566
  ]
11633
12567
  }
11634
12568
  ),
11635
12569
  renderInputMessage(tip, tipId),
11636
- /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime279.jsx)(
12570
+ /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
11637
12571
  "div",
11638
12572
  {
11639
12573
  role: "group",
@@ -11651,17 +12585,17 @@ var CheckboxGroup = (props) => {
11651
12585
  CheckboxGroup.displayName = "CheckboxGroup";
11652
12586
 
11653
12587
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
11654
- var import_react124 = require("react");
12588
+ var import_react125 = require("react");
11655
12589
 
11656
12590
  // src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
11657
- var import_react123 = require("react");
11658
- var RadioButtonGroupContext = (0, import_react123.createContext)(null);
12591
+ var import_react124 = require("react");
12592
+ var RadioButtonGroupContext = (0, import_react124.createContext)(null);
11659
12593
  var useRadioButtonGroup = () => {
11660
- return (0, import_react123.useContext)(RadioButtonGroupContext);
12594
+ return (0, import_react124.useContext)(RadioButtonGroupContext);
11661
12595
  };
11662
12596
 
11663
12597
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
11664
- var import_jsx_runtime280 = require("react/jsx-runtime");
12598
+ var import_jsx_runtime281 = require("react/jsx-runtime");
11665
12599
  var isValueEqualToGroupValueOrFalsy = (value, group) => {
11666
12600
  if (typeof value !== "undefined" && value !== null && group) {
11667
12601
  if (typeof value === "number") {
@@ -11671,7 +12605,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group) => {
11671
12605
  }
11672
12606
  return !!value;
11673
12607
  };
11674
- var RadioButton = (0, import_react124.forwardRef)(
12608
+ var RadioButton = (0, import_react125.forwardRef)(
11675
12609
  (props, ref) => {
11676
12610
  const {
11677
12611
  id,
@@ -11695,7 +12629,7 @@ var RadioButton = (0, import_react124.forwardRef)(
11695
12629
  style,
11696
12630
  ...restHtmlProps
11697
12631
  } = htmlProps;
11698
- const generatedId = (0, import_react124.useId)();
12632
+ const generatedId = (0, import_react125.useId)();
11699
12633
  const uniqueId = id != null ? id : `${generatedId}-radioButton`;
11700
12634
  const hasLabel = !!label;
11701
12635
  const radioButtonGroup = useRadioButtonGroup();
@@ -11710,7 +12644,7 @@ var RadioButton = (0, import_react124.forwardRef)(
11710
12644
  const isReadOnly = readOnly || (radioButtonGroup == null ? void 0 : radioButtonGroup.readOnly);
11711
12645
  const isDisabled = disabled || (radioButtonGroup == null ? void 0 : radioButtonGroup.disabled);
11712
12646
  const hasError = error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error);
11713
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(
12647
+ return /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
11714
12648
  Label2,
11715
12649
  {
11716
12650
  hasError,
@@ -11722,7 +12656,7 @@ var RadioButton = (0, import_react124.forwardRef)(
11722
12656
  htmlFor: uniqueId,
11723
12657
  controlType: "radio",
11724
12658
  children: [
11725
- /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
12659
+ /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
11726
12660
  "input",
11727
12661
  {
11728
12662
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -11748,14 +12682,14 @@ var RadioButton = (0, import_react124.forwardRef)(
11748
12682
  onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
11749
12683
  }
11750
12684
  ),
11751
- /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(
12685
+ /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
11752
12686
  SelectionControl,
11753
12687
  {
11754
12688
  controlType: "radio",
11755
12689
  className: focus_default["focus-styled-sibling"]
11756
12690
  }
11757
12691
  ),
11758
- /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
12692
+ /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
11759
12693
  ]
11760
12694
  }
11761
12695
  );
@@ -11764,8 +12698,8 @@ var RadioButton = (0, import_react124.forwardRef)(
11764
12698
  RadioButton.displayName = "RadioButton";
11765
12699
 
11766
12700
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
11767
- var import_react125 = require("react");
11768
- var import_jsx_runtime281 = require("react/jsx-runtime");
12701
+ var import_react126 = require("react");
12702
+ var import_jsx_runtime282 = require("react/jsx-runtime");
11769
12703
  var RadioButtonGroupInner = (props, ref) => {
11770
12704
  const {
11771
12705
  name,
@@ -11786,8 +12720,8 @@ var RadioButtonGroupInner = (props, ref) => {
11786
12720
  ...rest
11787
12721
  } = props;
11788
12722
  const { "aria-required": ariaRequired = false } = htmlProps;
11789
- const [groupValue, setGroupValue] = (0, import_react125.useState)(value);
11790
- const generatedId = (0, import_react125.useId)();
12723
+ const [groupValue, setGroupValue] = (0, import_react126.useState)(value);
12724
+ const generatedId = (0, import_react126.useId)();
11791
12725
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-radioButtonGroup`;
11792
12726
  const handleChange = combineHandlers(
11793
12727
  (e) => setGroupValue(e.target.value),
@@ -11807,7 +12741,7 @@ var RadioButtonGroupInner = (props, ref) => {
11807
12741
  value: groupValue,
11808
12742
  onChange: handleChange
11809
12743
  };
11810
- return /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
12744
+ return /* @__PURE__ */ (0, import_jsx_runtime282.jsxs)(
11811
12745
  "div",
11812
12746
  {
11813
12747
  ...getBaseHTMLProps(
@@ -11818,7 +12752,7 @@ var RadioButtonGroupInner = (props, ref) => {
11818
12752
  ),
11819
12753
  ref,
11820
12754
  children: [
11821
- /* @__PURE__ */ (0, import_jsx_runtime281.jsxs)(
12755
+ /* @__PURE__ */ (0, import_jsx_runtime282.jsxs)(
11822
12756
  Typography,
11823
12757
  {
11824
12758
  as: "span",
@@ -11826,15 +12760,15 @@ var RadioButtonGroupInner = (props, ref) => {
11826
12760
  id: uniqueGroupId,
11827
12761
  className: readOnly ? Label_default["read-only"] : void 0,
11828
12762
  children: [
11829
- readOnly && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
12763
+ readOnly && /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11830
12764
  label,
11831
12765
  " ",
11832
- showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(RequiredMarker, {})
12766
+ showRequiredMarker && /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(RequiredMarker, {})
11833
12767
  ]
11834
12768
  }
11835
12769
  ),
11836
12770
  renderInputMessage(tip, tipId),
11837
- /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime281.jsx)(
12771
+ /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
11838
12772
  "div",
11839
12773
  {
11840
12774
  role: "radiogroup",
@@ -11850,11 +12784,11 @@ var RadioButtonGroupInner = (props, ref) => {
11850
12784
  }
11851
12785
  );
11852
12786
  };
11853
- var RadioButtonGroup = (0, import_react125.forwardRef)(RadioButtonGroupInner);
12787
+ var RadioButtonGroup = (0, import_react126.forwardRef)(RadioButtonGroupInner);
11854
12788
  RadioButtonGroup.displayName = "RadioButtonGroup";
11855
12789
 
11856
12790
  // src/components/Skeleton/Skeleton.tsx
11857
- var import_react126 = require("react");
12791
+ var import_react127 = require("react");
11858
12792
 
11859
12793
  // src/components/Skeleton/Skeleton.module.css
11860
12794
  var Skeleton_default = {
@@ -11863,8 +12797,8 @@ var Skeleton_default = {
11863
12797
  };
11864
12798
 
11865
12799
  // src/components/Skeleton/Skeleton.tsx
11866
- var import_jsx_runtime282 = require("react/jsx-runtime");
11867
- var Skeleton = (0, import_react126.forwardRef)(
12800
+ var import_jsx_runtime283 = require("react/jsx-runtime");
12801
+ var Skeleton = (0, import_react127.forwardRef)(
11868
12802
  (props, ref) => {
11869
12803
  const {
11870
12804
  width,
@@ -11874,7 +12808,7 @@ var Skeleton = (0, import_react126.forwardRef)(
11874
12808
  style,
11875
12809
  ...rest
11876
12810
  } = props;
11877
- return /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
12811
+ return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
11878
12812
  "div",
11879
12813
  {
11880
12814
  ref,
@@ -11888,7 +12822,7 @@ var Skeleton = (0, import_react126.forwardRef)(
11888
12822
  Skeleton.displayName = "Skeleton";
11889
12823
 
11890
12824
  // src/components/SkipToContent/SkipToContent.tsx
11891
- var import_react127 = require("react");
12825
+ var import_react128 = require("react");
11892
12826
 
11893
12827
  // src/components/SkipToContent/SkipToContent.module.css
11894
12828
  var SkipToContent_default = {
@@ -11896,8 +12830,8 @@ var SkipToContent_default = {
11896
12830
  };
11897
12831
 
11898
12832
  // src/components/SkipToContent/SkipToContent.tsx
11899
- var import_jsx_runtime283 = require("react/jsx-runtime");
11900
- var SkipToContent = (0, import_react127.forwardRef)(
12833
+ var import_jsx_runtime284 = require("react/jsx-runtime");
12834
+ var SkipToContent = (0, import_react128.forwardRef)(
11901
12835
  (props, ref) => {
11902
12836
  const {
11903
12837
  text = "Til hovedinnhold",
@@ -11912,12 +12846,12 @@ var SkipToContent = (0, import_react127.forwardRef)(
11912
12846
  style,
11913
12847
  ...restHtmlProps
11914
12848
  } = htmlProps;
11915
- return /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
12849
+ return /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
11916
12850
  Contrast,
11917
12851
  {
11918
12852
  className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
11919
12853
  style: { ...style, top },
11920
- children: /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), ref, children: text })
12854
+ children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), ref, children: text })
11921
12855
  }
11922
12856
  );
11923
12857
  }
@@ -11925,7 +12859,7 @@ var SkipToContent = (0, import_react127.forwardRef)(
11925
12859
  SkipToContent.displayName = "SkipToContent";
11926
12860
 
11927
12861
  // src/components/SplitButton/SplitButton.tsx
11928
- var import_react128 = require("react");
12862
+ var import_react129 = require("react");
11929
12863
 
11930
12864
  // src/components/SplitButton/SplitButton.module.css
11931
12865
  var SplitButton_default = {
@@ -11936,8 +12870,8 @@ var SplitButton_default = {
11936
12870
  };
11937
12871
 
11938
12872
  // src/components/SplitButton/SplitButton.tsx
11939
- var import_jsx_runtime284 = require("react/jsx-runtime");
11940
- var SplitButton = (0, import_react128.forwardRef)(
12873
+ var import_jsx_runtime285 = require("react/jsx-runtime");
12874
+ var SplitButton = (0, import_react129.forwardRef)(
11941
12875
  (props, ref) => {
11942
12876
  const {
11943
12877
  size: size2,
@@ -11947,13 +12881,13 @@ var SplitButton = (0, import_react128.forwardRef)(
11947
12881
  className,
11948
12882
  ...rest
11949
12883
  } = props;
11950
- const [isOpen, setIsOpen] = (0, import_react128.useState)(false);
12884
+ const [isOpen, setIsOpen] = (0, import_react129.useState)(false);
11951
12885
  const buttonStyleProps = {
11952
12886
  purpose,
11953
12887
  size: size2
11954
12888
  };
11955
- return /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
11956
- /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
12889
+ return /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
12890
+ /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
11957
12891
  Button,
11958
12892
  {
11959
12893
  ...buttonStyleProps,
@@ -11962,8 +12896,8 @@ var SplitButton = (0, import_react128.forwardRef)(
11962
12896
  className: SplitButton_default.main
11963
12897
  }
11964
12898
  ),
11965
- /* @__PURE__ */ (0, import_jsx_runtime284.jsxs)(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
11966
- /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(
12899
+ /* @__PURE__ */ (0, import_jsx_runtime285.jsxs)(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
12900
+ /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(
11967
12901
  Button,
11968
12902
  {
11969
12903
  ...buttonStyleProps,
@@ -11976,7 +12910,7 @@ var SplitButton = (0, import_react128.forwardRef)(
11976
12910
  )
11977
12911
  }
11978
12912
  ),
11979
- /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime284.jsx)(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
12913
+ /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime285.jsx)(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
11980
12914
  ] })
11981
12915
  ] });
11982
12916
  }
@@ -11984,41 +12918,41 @@ var SplitButton = (0, import_react128.forwardRef)(
11984
12918
  SplitButton.displayName = "SplitButton";
11985
12919
 
11986
12920
  // src/components/Table/collapsible/CollapsibleRow.tsx
11987
- var import_react138 = require("react");
12921
+ var import_react139 = require("react");
11988
12922
 
11989
12923
  // src/components/Table/collapsible/Table.context.tsx
11990
- var import_react129 = require("react");
11991
- var CollapsibleTableContext = (0, import_react129.createContext)({
12924
+ var import_react130 = require("react");
12925
+ var CollapsibleTableContext = (0, import_react130.createContext)({
11992
12926
  headerValues: [],
11993
12927
  definingColumnIndex: [0]
11994
12928
  });
11995
- var useCollapsibleTableContext = () => (0, import_react129.useContext)(CollapsibleTableContext);
12929
+ var useCollapsibleTableContext = () => (0, import_react130.useContext)(CollapsibleTableContext);
11996
12930
 
11997
12931
  // src/components/Table/normal/Body.tsx
11998
- var import_react130 = require("react");
11999
- var import_jsx_runtime285 = require("react/jsx-runtime");
12000
- var Body = (0, import_react130.forwardRef)(
12932
+ var import_react131 = require("react");
12933
+ var import_jsx_runtime286 = require("react/jsx-runtime");
12934
+ var Body = (0, import_react131.forwardRef)(
12001
12935
  (props, ref) => {
12002
- return /* @__PURE__ */ (0, import_jsx_runtime285.jsx)("tbody", { ref, ...props });
12936
+ return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)("tbody", { ref, ...props });
12003
12937
  }
12004
12938
  );
12005
12939
  Body.displayName = "Table.Body";
12006
12940
 
12007
12941
  // src/components/Table/normal/Cell.tsx
12008
- var import_react132 = require("react");
12942
+ var import_react133 = require("react");
12009
12943
 
12010
12944
  // src/components/Table/normal/Head.tsx
12011
- var import_react131 = require("react");
12012
- var import_jsx_runtime286 = require("react/jsx-runtime");
12013
- var Head = (0, import_react131.forwardRef)(
12945
+ var import_react132 = require("react");
12946
+ var import_jsx_runtime287 = require("react/jsx-runtime");
12947
+ var Head = (0, import_react132.forwardRef)(
12014
12948
  ({ children, ...rest }, ref) => {
12015
- return /* @__PURE__ */ (0, import_jsx_runtime286.jsx)("thead", { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime286.jsx)(HeadContext.Provider, { value: true, children }) });
12949
+ return /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("thead", { ref, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(HeadContext.Provider, { value: true, children }) });
12016
12950
  }
12017
12951
  );
12018
12952
  Head.displayName = "Table.Head";
12019
- var HeadContext = (0, import_react131.createContext)(false);
12953
+ var HeadContext = (0, import_react132.createContext)(false);
12020
12954
  function useIsInTableHead() {
12021
- const isInTableHead = (0, import_react131.useContext)(HeadContext);
12955
+ const isInTableHead = (0, import_react132.useContext)(HeadContext);
12022
12956
  return isInTableHead;
12023
12957
  }
12024
12958
 
@@ -12048,8 +12982,8 @@ var Table_default = {
12048
12982
  };
12049
12983
 
12050
12984
  // src/components/Table/normal/Cell.tsx
12051
- var import_jsx_runtime287 = require("react/jsx-runtime");
12052
- var Cell = (0, import_react132.forwardRef)(
12985
+ var import_jsx_runtime288 = require("react/jsx-runtime");
12986
+ var Cell = (0, import_react133.forwardRef)(
12053
12987
  ({
12054
12988
  children,
12055
12989
  type: _type,
@@ -12062,7 +12996,7 @@ var Cell = (0, import_react132.forwardRef)(
12062
12996
  const type = _type != null ? _type : isInHead ? "head" : "data";
12063
12997
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
12064
12998
  const isComplexLayout = layout === "text and icon";
12065
- return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
12999
+ return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
12066
13000
  "th",
12067
13001
  {
12068
13002
  ref,
@@ -12072,15 +13006,15 @@ var Cell = (0, import_react132.forwardRef)(
12072
13006
  !isComplexLayout && Table_default[`cell--${layout}`],
12073
13007
  Table_default["cell--head"]
12074
13008
  ),
12075
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("div", { className: Table_default.cell__inner, children }) : children
13009
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("div", { className: Table_default.cell__inner, children }) : children
12076
13010
  }
12077
- ) : /* @__PURE__ */ (0, import_jsx_runtime287.jsx)(
13011
+ ) : /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
12078
13012
  "td",
12079
13013
  {
12080
13014
  ref,
12081
13015
  ...rest,
12082
13016
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
12083
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime287.jsx)("div", { className: Table_default.cell__inner, children }) : children
13017
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("div", { className: Table_default.cell__inner, children }) : children
12084
13018
  }
12085
13019
  );
12086
13020
  }
@@ -12088,23 +13022,23 @@ var Cell = (0, import_react132.forwardRef)(
12088
13022
  Cell.displayName = "Table.Cell";
12089
13023
 
12090
13024
  // src/components/Table/normal/Foot.tsx
12091
- var import_react133 = require("react");
12092
- var import_jsx_runtime288 = require("react/jsx-runtime");
12093
- var Foot = (0, import_react133.forwardRef)(
13025
+ var import_react134 = require("react");
13026
+ var import_jsx_runtime289 = require("react/jsx-runtime");
13027
+ var Foot = (0, import_react134.forwardRef)(
12094
13028
  (props, ref) => {
12095
- return /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("tfoot", { ref, ...props });
13029
+ return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)("tfoot", { ref, ...props });
12096
13030
  }
12097
13031
  );
12098
13032
  Foot.displayName = "Table.Foot";
12099
13033
 
12100
13034
  // src/components/Table/normal/Row.tsx
12101
- var import_react134 = require("react");
12102
- var import_jsx_runtime289 = require("react/jsx-runtime");
12103
- var Row = (0, import_react134.forwardRef)(
13035
+ var import_react135 = require("react");
13036
+ var import_jsx_runtime290 = require("react/jsx-runtime");
13037
+ var Row = (0, import_react135.forwardRef)(
12104
13038
  ({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
12105
13039
  const isInHeader = useIsInTableHead();
12106
13040
  const type = _type != null ? _type : isInHeader ? "head" : "body";
12107
- return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
13041
+ return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
12108
13042
  "tr",
12109
13043
  {
12110
13044
  ref,
@@ -12127,23 +13061,23 @@ var Row = (0, import_react134.forwardRef)(
12127
13061
  Row.displayName = "Table.Row";
12128
13062
 
12129
13063
  // src/components/Table/normal/SortCell.tsx
12130
- var import_react135 = require("react");
12131
- var import_jsx_runtime290 = require("react/jsx-runtime");
13064
+ var import_react136 = require("react");
13065
+ var import_jsx_runtime291 = require("react/jsx-runtime");
12132
13066
  var makeSortIcon = (isSorted, sortOrder) => {
12133
13067
  if (!isSorted || !sortOrder) {
12134
- return /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
13068
+ return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12135
13069
  }
12136
- return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
13070
+ return sortOrder === "ascending" ? /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12137
13071
  };
12138
- var SortCell = (0, import_react135.forwardRef)(
12139
- ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime290.jsx)(
13072
+ var SortCell = (0, import_react136.forwardRef)(
13073
+ ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
12140
13074
  Cell,
12141
13075
  {
12142
13076
  ref,
12143
13077
  type: "head",
12144
13078
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
12145
13079
  ...rest,
12146
- children: /* @__PURE__ */ (0, import_jsx_runtime290.jsxs)(
13080
+ children: /* @__PURE__ */ (0, import_jsx_runtime291.jsxs)(
12147
13081
  "button",
12148
13082
  {
12149
13083
  onClick,
@@ -12167,8 +13101,8 @@ var SortCell = (0, import_react135.forwardRef)(
12167
13101
  SortCell.displayName = "Table.SortCell";
12168
13102
 
12169
13103
  // src/components/Table/normal/Table.tsx
12170
- var import_react136 = require("react");
12171
- var import_jsx_runtime291 = require("react/jsx-runtime");
13104
+ var import_react137 = require("react");
13105
+ var import_jsx_runtime292 = require("react/jsx-runtime");
12172
13106
  function getDensityCn2(value) {
12173
13107
  switch (value) {
12174
13108
  case "normal":
@@ -12178,7 +13112,7 @@ function getDensityCn2(value) {
12178
13112
  return "extra-compact";
12179
13113
  }
12180
13114
  }
12181
- var Table = (0, import_react136.forwardRef)(
13115
+ var Table = (0, import_react137.forwardRef)(
12182
13116
  ({
12183
13117
  density = "normal",
12184
13118
  stickyHeader,
@@ -12187,7 +13121,7 @@ var Table = (0, import_react136.forwardRef)(
12187
13121
  children,
12188
13122
  ...rest
12189
13123
  }, ref) => {
12190
- return /* @__PURE__ */ (0, import_jsx_runtime291.jsx)(
13124
+ return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
12191
13125
  "table",
12192
13126
  {
12193
13127
  ref,
@@ -12208,30 +13142,30 @@ var Table = (0, import_react136.forwardRef)(
12208
13142
  Table.displayName = "Table";
12209
13143
 
12210
13144
  // src/components/Table/normal/TableWrapper.tsx
12211
- var import_react137 = require("react");
12212
- var import_jsx_runtime292 = require("react/jsx-runtime");
13145
+ var import_react138 = require("react");
13146
+ var import_jsx_runtime293 = require("react/jsx-runtime");
12213
13147
  var TableWrapper = ({ className, ...rest }) => {
12214
- const [overflowX, setOverflowX] = (0, import_react137.useState)(false);
12215
- const [windowWidth, setWindowWidth] = (0, import_react137.useState)(window.innerWidth);
13148
+ const [overflowX, setOverflowX] = (0, import_react138.useState)(false);
13149
+ const [windowWidth, setWindowWidth] = (0, import_react138.useState)(window.innerWidth);
12216
13150
  function isOverflowingX(event) {
12217
13151
  return event.offsetWidth < event.scrollWidth;
12218
13152
  }
12219
- const wrapperRef = (0, import_react137.useRef)(null);
12220
- (0, import_react137.useEffect)(() => {
13153
+ const wrapperRef = (0, import_react138.useRef)(null);
13154
+ (0, import_react138.useEffect)(() => {
12221
13155
  if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
12222
13156
  setOverflowX(true);
12223
13157
  return;
12224
13158
  }
12225
13159
  setOverflowX(false);
12226
13160
  }, [windowWidth]);
12227
- (0, import_react137.useEffect)(() => {
13161
+ (0, import_react138.useEffect)(() => {
12228
13162
  function handleResize() {
12229
13163
  setWindowWidth(window.innerWidth);
12230
13164
  }
12231
13165
  window.addEventListener("resize", handleResize);
12232
13166
  return () => window.removeEventListener("resize", handleResize);
12233
13167
  });
12234
- return /* @__PURE__ */ (0, import_jsx_runtime292.jsx)(
13168
+ return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
12235
13169
  "div",
12236
13170
  {
12237
13171
  ref: wrapperRef,
@@ -12258,8 +13192,8 @@ Table2.Row = Row;
12258
13192
  Table2.Foot = Foot;
12259
13193
 
12260
13194
  // src/components/Table/collapsible/CollapsibleRow.tsx
12261
- var import_jsx_runtime293 = require("react/jsx-runtime");
12262
- var CollapsibleRow = (0, import_react138.forwardRef)(
13195
+ var import_jsx_runtime294 = require("react/jsx-runtime");
13196
+ var CollapsibleRow = (0, import_react139.forwardRef)(
12263
13197
  ({
12264
13198
  type: _type,
12265
13199
  className,
@@ -12272,8 +13206,8 @@ var CollapsibleRow = (0, import_react138.forwardRef)(
12272
13206
  const isInHead = useIsInTableHead();
12273
13207
  const type = _type != null ? _type : isInHead ? "head" : "body";
12274
13208
  const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
12275
- const [childrenCollapsed, setChildrenCollapsed] = (0, import_react138.useState)(true);
12276
- (0, import_react138.useEffect)(() => {
13209
+ const [childrenCollapsed, setChildrenCollapsed] = (0, import_react139.useState)(true);
13210
+ (0, import_react139.useEffect)(() => {
12277
13211
  !isCollapsed && setChildrenCollapsed(true);
12278
13212
  }, [isCollapsed]);
12279
13213
  const rowProps = (isOpenCollapsibleHeader) => {
@@ -12291,7 +13225,7 @@ var CollapsibleRow = (0, import_react138.forwardRef)(
12291
13225
  const collapsedHeaderValues = headerValues.filter(
12292
13226
  (column2, index) => definingColumnIndex.indexOf(index) === -1
12293
13227
  );
12294
- const childrenArray = import_react138.Children.toArray(children);
13228
+ const childrenArray = import_react139.Children.toArray(children);
12295
13229
  const collapsedChildren = childrenArray.filter(
12296
13230
  (column2, index) => definingColumnIndex.indexOf(index) === -1
12297
13231
  );
@@ -12300,33 +13234,33 @@ var CollapsibleRow = (0, import_react138.forwardRef)(
12300
13234
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
12301
13235
  const id = derivativeIdGenerator(prefix3, index.toString());
12302
13236
  collapsibleIds.push(id);
12303
- return /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(import_react138.Fragment, { children: [
12304
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
12305
- (0, import_react138.isValidElement)(child) && (0, import_react138.cloneElement)(child, {
13237
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(import_react139.Fragment, { children: [
13238
+ /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
13239
+ (0, import_react139.isValidElement)(child) && (0, import_react139.cloneElement)(child, {
12306
13240
  collapsibleProps: { isCollapsibleChild: true }
12307
13241
  })
12308
13242
  ] }, `DL-${index}`);
12309
13243
  }) : null;
12310
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
13244
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
12311
13245
  const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
12312
13246
  return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
12313
13247
  });
12314
13248
  const headerRow = () => {
12315
13249
  if (type !== "head" || !isCollapsed) return null;
12316
- return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(import_jsx_runtime293.Fragment, { children: [
13250
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(import_jsx_runtime294.Fragment, { children: [
12317
13251
  definingColumnCells,
12318
- /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
13252
+ /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
12319
13253
  "Utvid",
12320
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(VisuallyHidden, { as: "span", children: "raden" })
13254
+ /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(VisuallyHidden, { as: "span", children: "raden" })
12321
13255
  ] })
12322
13256
  ] }) });
12323
13257
  };
12324
13258
  const idList = spaceSeparatedIdListGenerator(collapsibleIds);
12325
13259
  const rowWithChevron = () => {
12326
13260
  if (type !== "body" || !isCollapsed) return null;
12327
- return /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
13261
+ return /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
12328
13262
  definingColumnCells,
12329
- /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
13263
+ /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12330
13264
  "button",
12331
13265
  {
12332
13266
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
@@ -12338,7 +13272,7 @@ var CollapsibleRow = (0, import_react138.forwardRef)(
12338
13272
  utilStyles_default["remove-button-styling"],
12339
13273
  focusable
12340
13274
  ),
12341
- children: /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
13275
+ children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
12342
13276
  AnimatedChevronUpDown,
12343
13277
  {
12344
13278
  isUp: childrenCollapsed ? false : true,
@@ -12350,28 +13284,28 @@ var CollapsibleRow = (0, import_react138.forwardRef)(
12350
13284
  ) })
12351
13285
  ] });
12352
13286
  };
12353
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(import_jsx_runtime293.Fragment, { children: [
13287
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(import_jsx_runtime294.Fragment, { children: [
12354
13288
  headerRow(),
12355
- type === "body" && /* @__PURE__ */ (0, import_jsx_runtime293.jsxs)(import_jsx_runtime293.Fragment, { children: [
13289
+ type === "body" && /* @__PURE__ */ (0, import_jsx_runtime294.jsxs)(import_jsx_runtime294.Fragment, { children: [
12356
13290
  rowWithChevron(),
12357
13291
  childrenCollapsed ? null : collapsedRows
12358
13292
  ] })
12359
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(Row, { ref, ...rowProps(), children });
13293
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(Row, { ref, ...rowProps(), children });
12360
13294
  }
12361
13295
  );
12362
13296
  CollapsibleRow.displayName = "CollapsibleTable.Row";
12363
13297
 
12364
13298
  // src/components/Table/collapsible/CollapsibleTable.tsx
12365
- var import_react139 = require("react");
12366
- var import_jsx_runtime294 = require("react/jsx-runtime");
12367
- var CollapsibleTable = (0, import_react139.forwardRef)((props, ref) => {
13299
+ var import_react140 = require("react");
13300
+ var import_jsx_runtime295 = require("react/jsx-runtime");
13301
+ var CollapsibleTable = (0, import_react140.forwardRef)((props, ref) => {
12368
13302
  const {
12369
13303
  isCollapsed,
12370
13304
  headerValues,
12371
13305
  definingColumnIndex = [0],
12372
13306
  ...rest
12373
13307
  } = props;
12374
- return /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(
13308
+ return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
12375
13309
  CollapsibleTableContext.Provider,
12376
13310
  {
12377
13311
  value: {
@@ -12379,7 +13313,7 @@ var CollapsibleTable = (0, import_react139.forwardRef)((props, ref) => {
12379
13313
  headerValues,
12380
13314
  definingColumnIndex
12381
13315
  },
12382
- children: /* @__PURE__ */ (0, import_jsx_runtime294.jsx)(Table2, { ref, ...rest })
13316
+ children: /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(Table2, { ref, ...rest })
12383
13317
  }
12384
13318
  );
12385
13319
  });
@@ -12390,11 +13324,11 @@ var CollapsibleTable2 = CollapsibleTable;
12390
13324
  CollapsibleTable2.Row = CollapsibleRow;
12391
13325
 
12392
13326
  // src/components/Tabs/Tabs.tsx
12393
- var import_react141 = require("react");
13327
+ var import_react142 = require("react");
12394
13328
 
12395
13329
  // src/components/Tabs/Tabs.context.tsx
12396
- var import_react140 = require("react");
12397
- var TabsContext = (0, import_react140.createContext)({
13330
+ var import_react141 = require("react");
13331
+ var TabsContext = (0, import_react141.createContext)({
12398
13332
  activeTab: 0,
12399
13333
  tabsId: "",
12400
13334
  handleTabChange: () => null,
@@ -12404,7 +13338,7 @@ var TabsContext = (0, import_react140.createContext)({
12404
13338
  setHasTabFocus: () => null,
12405
13339
  tabContentDirection: "row"
12406
13340
  });
12407
- var useTabsContext = () => (0, import_react140.useContext)(TabsContext);
13341
+ var useTabsContext = () => (0, import_react141.useContext)(TabsContext);
12408
13342
 
12409
13343
  // src/components/Tabs/Tabs.module.css
12410
13344
  var Tabs_default = {
@@ -12420,8 +13354,8 @@ var Tabs_default = {
12420
13354
  };
12421
13355
 
12422
13356
  // src/components/Tabs/Tabs.tsx
12423
- var import_jsx_runtime295 = require("react/jsx-runtime");
12424
- var Tabs = (0, import_react141.forwardRef)((props, ref) => {
13357
+ var import_jsx_runtime296 = require("react/jsx-runtime");
13358
+ var Tabs = (0, import_react142.forwardRef)((props, ref) => {
12425
13359
  const {
12426
13360
  id,
12427
13361
  activeTab,
@@ -12433,17 +13367,17 @@ var Tabs = (0, import_react141.forwardRef)((props, ref) => {
12433
13367
  htmlProps,
12434
13368
  ...rest
12435
13369
  } = props;
12436
- const generatedId = (0, import_react141.useId)();
13370
+ const generatedId = (0, import_react142.useId)();
12437
13371
  const uniqueId = id != null ? id : `${generatedId}-tabs`;
12438
- const [thisActiveTab, setActiveTab] = (0, import_react141.useState)(activeTab != null ? activeTab : 0);
12439
- const [hasTabFocus, setHasTabFocus] = (0, import_react141.useState)(false);
12440
- const tabListRef = (0, import_react141.useRef)(null);
12441
- const tabPanelsRef = (0, import_react141.useRef)(null);
13372
+ const [thisActiveTab, setActiveTab] = (0, import_react142.useState)(activeTab != null ? activeTab : 0);
13373
+ const [hasTabFocus, setHasTabFocus] = (0, import_react142.useState)(false);
13374
+ const tabListRef = (0, import_react142.useRef)(null);
13375
+ const tabPanelsRef = (0, import_react142.useRef)(null);
12442
13376
  const handleTabChange = (index) => {
12443
13377
  setActiveTab(index);
12444
13378
  onChange && onChange(index);
12445
13379
  };
12446
- (0, import_react141.useEffect)(() => {
13380
+ (0, import_react142.useEffect)(() => {
12447
13381
  if (activeTab !== void 0 && activeTab !== thisActiveTab) {
12448
13382
  setActiveTab(activeTab);
12449
13383
  }
@@ -12452,7 +13386,7 @@ var Tabs = (0, import_react141.forwardRef)((props, ref) => {
12452
13386
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
12453
13387
  ["--dds-tabs-width"]: width
12454
13388
  };
12455
- return /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
13389
+ return /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12456
13390
  TabsContext.Provider,
12457
13391
  {
12458
13392
  value: {
@@ -12465,7 +13399,7 @@ var Tabs = (0, import_react141.forwardRef)((props, ref) => {
12465
13399
  setHasTabFocus,
12466
13400
  tabContentDirection
12467
13401
  },
12468
- children: /* @__PURE__ */ (0, import_jsx_runtime295.jsx)(
13402
+ children: /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
12469
13403
  "div",
12470
13404
  {
12471
13405
  ref,
@@ -12485,17 +13419,17 @@ var Tabs = (0, import_react141.forwardRef)((props, ref) => {
12485
13419
  Tabs.displayName = "Tabs";
12486
13420
 
12487
13421
  // src/components/Tabs/Tab.tsx
12488
- var import_react143 = require("react");
13422
+ var import_react144 = require("react");
12489
13423
 
12490
13424
  // src/components/Tabs/TabWidthContext.tsx
12491
- var import_react142 = require("react");
12492
- var import_jsx_runtime296 = require("react/jsx-runtime");
12493
- var TabContext = (0, import_react142.createContext)(null);
13425
+ var import_react143 = require("react");
13426
+ var import_jsx_runtime297 = require("react/jsx-runtime");
13427
+ var TabContext = (0, import_react143.createContext)(null);
12494
13428
  function TabWidthContextProvider({
12495
13429
  children,
12496
13430
  onChangeWidths
12497
13431
  }) {
12498
- return /* @__PURE__ */ (0, import_jsx_runtime296.jsx)(
13432
+ return /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(
12499
13433
  TabContext.Provider,
12500
13434
  {
12501
13435
  value: {
@@ -12519,16 +13453,16 @@ function TabWidthContextProvider({
12519
13453
  );
12520
13454
  }
12521
13455
  function useSetTabWidth(index, width) {
12522
- const context = (0, import_react142.useContext)(TabContext);
12523
- (0, import_react142.useLayoutEffect)(() => {
13456
+ const context = (0, import_react143.useContext)(TabContext);
13457
+ (0, import_react143.useLayoutEffect)(() => {
12524
13458
  context == null ? void 0 : context.updateWidth(index, width);
12525
13459
  return () => context == null ? void 0 : context.removeTab(index);
12526
13460
  }, [index, width]);
12527
13461
  }
12528
13462
 
12529
13463
  // src/components/Tabs/Tab.tsx
12530
- var import_jsx_runtime297 = require("react/jsx-runtime");
12531
- var Tab = (0, import_react143.forwardRef)((props, ref) => {
13464
+ var import_jsx_runtime298 = require("react/jsx-runtime");
13465
+ var Tab = (0, import_react144.forwardRef)((props, ref) => {
12532
13466
  const {
12533
13467
  active = false,
12534
13468
  icon,
@@ -12545,16 +13479,16 @@ var Tab = (0, import_react143.forwardRef)((props, ref) => {
12545
13479
  ...rest
12546
13480
  } = props;
12547
13481
  useSetTabWidth(index, width);
12548
- const itemRef = (0, import_react143.useRef)(null);
13482
+ const itemRef = (0, import_react144.useRef)(null);
12549
13483
  const combinedRef = useCombinedRef(ref, itemRef);
12550
13484
  const { tabContentDirection } = useTabsContext();
12551
- (0, import_react143.useEffect)(() => {
13485
+ (0, import_react144.useEffect)(() => {
12552
13486
  var _a;
12553
13487
  if (focus) {
12554
13488
  (_a = itemRef.current) == null ? void 0 : _a.focus();
12555
13489
  }
12556
13490
  }, [focus]);
12557
- const handleSelect = (0, import_react143.useCallback)(() => {
13491
+ const handleSelect = (0, import_react144.useCallback)(() => {
12558
13492
  if (setFocus && index) {
12559
13493
  setFocus(index);
12560
13494
  }
@@ -12567,7 +13501,7 @@ var Tab = (0, import_react143.forwardRef)((props, ref) => {
12567
13501
  handleSelect();
12568
13502
  onKeyDown && onKeyDown(e);
12569
13503
  };
12570
- return /* @__PURE__ */ (0, import_jsx_runtime297.jsxs)(
13504
+ return /* @__PURE__ */ (0, import_jsx_runtime298.jsxs)(
12571
13505
  "button",
12572
13506
  {
12573
13507
  ...getBaseHTMLProps(
@@ -12590,8 +13524,8 @@ var Tab = (0, import_react143.forwardRef)((props, ref) => {
12590
13524
  onKeyDown: handleOnKeyDown,
12591
13525
  tabIndex: focus ? 0 : -1,
12592
13526
  children: [
12593
- icon && /* @__PURE__ */ (0, import_jsx_runtime297.jsx)(Icon, { icon, iconSize: "inherit" }),
12594
- /* @__PURE__ */ (0, import_jsx_runtime297.jsx)("span", { children })
13527
+ icon && /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(Icon, { icon, iconSize: "inherit" }),
13528
+ /* @__PURE__ */ (0, import_jsx_runtime298.jsx)("span", { children })
12595
13529
  ]
12596
13530
  }
12597
13531
  );
@@ -12599,9 +13533,9 @@ var Tab = (0, import_react143.forwardRef)((props, ref) => {
12599
13533
  Tab.displayName = "Tab";
12600
13534
 
12601
13535
  // src/components/Tabs/TabList.tsx
12602
- var import_react144 = require("react");
12603
- var import_jsx_runtime298 = require("react/jsx-runtime");
12604
- var TabList = (0, import_react144.forwardRef)(
13536
+ var import_react145 = require("react");
13537
+ var import_jsx_runtime299 = require("react/jsx-runtime");
13538
+ var TabList = (0, import_react145.forwardRef)(
12605
13539
  ({ children, id, style, onFocus, ...rest }, ref) => {
12606
13540
  const {
12607
13541
  activeTab,
@@ -12612,11 +13546,11 @@ var TabList = (0, import_react144.forwardRef)(
12612
13546
  setHasTabFocus
12613
13547
  } = useTabsContext();
12614
13548
  const uniqueId = id != null ? id : `${tabsId}-tablist`;
12615
- const childrenArray = import_react144.Children.toArray(children).length;
13549
+ const childrenArray = import_react145.Children.toArray(children).length;
12616
13550
  const [focus, setFocus] = useRoveFocus(childrenArray, hasTabFocus, "row");
12617
13551
  const combinedRef = useCombinedRef(ref, tabListRef);
12618
- const tabListChildren = import_react144.Children.map(children, (child, index) => {
12619
- return (0, import_react144.isValidElement)(child) && (0, import_react144.cloneElement)(child, {
13552
+ const tabListChildren = import_react145.Children.map(children, (child, index) => {
13553
+ return (0, import_react145.isValidElement)(child) && (0, import_react145.cloneElement)(child, {
12620
13554
  id: `${tabsId}-tab-${index}`,
12621
13555
  "aria-controls": `${tabsId}-panel-${index}`,
12622
13556
  active: activeTab === index,
@@ -12626,7 +13560,7 @@ var TabList = (0, import_react144.forwardRef)(
12626
13560
  onClick: () => handleTabChange(index)
12627
13561
  });
12628
13562
  });
12629
- const [widths, setWidths] = (0, import_react144.useState)([]);
13563
+ const [widths, setWidths] = (0, import_react145.useState)([]);
12630
13564
  const handleOnFocus = (event) => {
12631
13565
  setHasTabFocus(true);
12632
13566
  onFocus && onFocus(event);
@@ -12644,7 +13578,7 @@ var TabList = (0, import_react144.forwardRef)(
12644
13578
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
12645
13579
  ["--dds-tab-widths"]: widths.join(" ")
12646
13580
  };
12647
- return /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime298.jsx)(
13581
+ return /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
12648
13582
  "div",
12649
13583
  {
12650
13584
  ...rest,
@@ -12670,11 +13604,11 @@ var TabList = (0, import_react144.forwardRef)(
12670
13604
  TabList.displayName = "TabList";
12671
13605
 
12672
13606
  // src/components/Tabs/TabPanel.tsx
12673
- var import_react145 = require("react");
12674
- var import_jsx_runtime299 = require("react/jsx-runtime");
12675
- var TabPanel = (0, import_react145.forwardRef)(
13607
+ var import_react146 = require("react");
13608
+ var import_jsx_runtime300 = require("react/jsx-runtime");
13609
+ var TabPanel = (0, import_react146.forwardRef)(
12676
13610
  ({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
12677
- return /* @__PURE__ */ (0, import_jsx_runtime299.jsx)(
13611
+ return /* @__PURE__ */ (0, import_jsx_runtime300.jsx)(
12678
13612
  "div",
12679
13613
  {
12680
13614
  ...getBaseHTMLProps(
@@ -12695,28 +13629,28 @@ var TabPanel = (0, import_react145.forwardRef)(
12695
13629
  TabPanel.displayName = "TabPanel";
12696
13630
 
12697
13631
  // src/components/Tabs/TabPanels.tsx
12698
- var import_react146 = require("react");
12699
- var import_jsx_runtime300 = require("react/jsx-runtime");
12700
- var TabPanels = (0, import_react146.forwardRef)(
13632
+ var import_react147 = require("react");
13633
+ var import_jsx_runtime301 = require("react/jsx-runtime");
13634
+ var TabPanels = (0, import_react147.forwardRef)(
12701
13635
  ({ children, ...rest }, ref) => {
12702
13636
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
12703
13637
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
12704
- const panelChildren = import_react146.Children.map(children, (child, index) => {
13638
+ const panelChildren = import_react147.Children.map(children, (child, index) => {
12705
13639
  const active = index === activeTab;
12706
- return (0, import_react146.isValidElement)(child) && (0, import_react146.cloneElement)(child, {
13640
+ return (0, import_react147.isValidElement)(child) && (0, import_react147.cloneElement)(child, {
12707
13641
  id: `${tabsId}-panel-${index}`,
12708
13642
  "aria-labelledby": `${tabsId}-tab-${index}`,
12709
13643
  active,
12710
13644
  "aria-expanded": active
12711
13645
  });
12712
13646
  });
12713
- return /* @__PURE__ */ (0, import_jsx_runtime300.jsx)("div", { ref: combinedRef, ...rest, children: panelChildren });
13647
+ return /* @__PURE__ */ (0, import_jsx_runtime301.jsx)("div", { ref: combinedRef, ...rest, children: panelChildren });
12714
13648
  }
12715
13649
  );
12716
13650
  TabPanels.displayName = "TabPanels";
12717
13651
 
12718
13652
  // src/components/Tag/Tag.tsx
12719
- var import_react147 = require("react");
13653
+ var import_react148 = require("react");
12720
13654
 
12721
13655
  // src/components/Tag/Tag.module.css
12722
13656
  var Tag_default = {
@@ -12735,7 +13669,7 @@ var Tag_default = {
12735
13669
  };
12736
13670
 
12737
13671
  // src/components/Tag/Tag.tsx
12738
- var import_jsx_runtime301 = require("react/jsx-runtime");
13672
+ var import_jsx_runtime302 = require("react/jsx-runtime");
12739
13673
  var icons3 = {
12740
13674
  info: InfoIcon,
12741
13675
  danger: ErrorIcon,
@@ -12743,7 +13677,7 @@ var icons3 = {
12743
13677
  success: CheckCircledIcon,
12744
13678
  default: void 0
12745
13679
  };
12746
- var Tag = (0, import_react147.forwardRef)((props, ref) => {
13680
+ var Tag = (0, import_react148.forwardRef)((props, ref) => {
12747
13681
  const {
12748
13682
  text,
12749
13683
  purpose = "default",
@@ -12756,7 +13690,7 @@ var Tag = (0, import_react147.forwardRef)((props, ref) => {
12756
13690
  ...rest
12757
13691
  } = props;
12758
13692
  const icon = icons3[purpose];
12759
- return /* @__PURE__ */ (0, import_jsx_runtime301.jsxs)(
13693
+ return /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)(
12760
13694
  TextOverflowEllipsisWrapper,
12761
13695
  {
12762
13696
  ...getBaseHTMLProps(
@@ -12773,8 +13707,8 @@ var Tag = (0, import_react147.forwardRef)((props, ref) => {
12773
13707
  ),
12774
13708
  ref,
12775
13709
  children: [
12776
- withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(Icon, { icon, iconSize: "small" }),
12777
- /* @__PURE__ */ (0, import_jsx_runtime301.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
13710
+ withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(Icon, { icon, iconSize: "small" }),
13711
+ /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(TextOverflowEllipsisInner, { children: children != null ? children : text })
12778
13712
  ]
12779
13713
  }
12780
13714
  );
@@ -12782,8 +13716,8 @@ var Tag = (0, import_react147.forwardRef)((props, ref) => {
12782
13716
  Tag.displayName = "Tag";
12783
13717
 
12784
13718
  // src/components/TextInput/TextInput.tsx
12785
- var import_dds_design_tokens16 = require("@norges-domstoler/dds-design-tokens");
12786
- var import_react148 = require("react");
13719
+ var import_dds_design_tokens17 = require("@norges-domstoler/dds-design-tokens");
13720
+ var import_react149 = require("react");
12787
13721
 
12788
13722
  // src/components/TextInput/TextInput.module.css
12789
13723
  var TextInput_default = {
@@ -12810,8 +13744,8 @@ var TextInput_default = {
12810
13744
  };
12811
13745
 
12812
13746
  // src/components/TextInput/TextInput.tsx
12813
- var import_jsx_runtime302 = require("react/jsx-runtime");
12814
- var TextInput = (0, import_react148.forwardRef)(
13747
+ var import_jsx_runtime303 = require("react/jsx-runtime");
13748
+ var TextInput = (0, import_react149.forwardRef)(
12815
13749
  ({
12816
13750
  label,
12817
13751
  disabled,
@@ -12837,14 +13771,14 @@ var TextInput = (0, import_react148.forwardRef)(
12837
13771
  suffix,
12838
13772
  ...rest
12839
13773
  }, ref) => {
12840
- const [text, setText] = (0, import_react148.useState)(
13774
+ const [text, setText] = (0, import_react149.useState)(
12841
13775
  getDefaultText(value, defaultValue)
12842
13776
  );
12843
- const prefixRef = (0, import_react148.useRef)(null);
12844
- const suffixRef = (0, import_react148.useRef)(null);
12845
- const [prefixLength, setPrefixLength] = (0, import_react148.useState)(0);
12846
- const [suffixLength, setSuffixLength] = (0, import_react148.useState)(0);
12847
- (0, import_react148.useLayoutEffect)(() => {
13777
+ const prefixRef = (0, import_react149.useRef)(null);
13778
+ const suffixRef = (0, import_react149.useRef)(null);
13779
+ const [prefixLength, setPrefixLength] = (0, import_react149.useState)(0);
13780
+ const [suffixLength, setSuffixLength] = (0, import_react149.useState)(0);
13781
+ (0, import_react149.useLayoutEffect)(() => {
12848
13782
  if (prefixRef.current) {
12849
13783
  setPrefixLength(prefixRef.current.offsetWidth);
12850
13784
  }
@@ -12858,7 +13792,7 @@ var TextInput = (0, import_react148.forwardRef)(
12858
13792
  onChange(event);
12859
13793
  }
12860
13794
  };
12861
- const generatedId = (0, import_react148.useId)();
13795
+ const generatedId = (0, import_react149.useId)();
12862
13796
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
12863
13797
  const hasErrorMessage = !!errorMessage;
12864
13798
  const hasTip = !!tip;
@@ -12896,25 +13830,28 @@ var TextInput = (0, import_react148.forwardRef)(
12896
13830
  ...rest
12897
13831
  };
12898
13832
  const showRequiredStyling = !!(required || ariaRequired);
12899
- const preffixPaddingInlineStart = readOnly && prefixLength ? prefixLength + "px" : prefixLength ? import_dds_design_tokens16.ddsTokens.ddsSpacingX1NumberPx + prefixLength + "px" : void 0;
12900
- const suffixPaddingInlineEnd = readOnly && suffixLength ? suffixLength + "px" : suffixLength ? import_dds_design_tokens16.ddsTokens.ddsSpacingX1NumberPx + suffixLength + "px" : void 0;
13833
+ const preffixPaddingInlineStart = readOnly && prefixLength ? prefixLength + "px" : prefixLength ? import_dds_design_tokens17.ddsTokens.ddsSpacingX1NumberPx + prefixLength + "px" : void 0;
13834
+ const suffixPaddingInlineEnd = readOnly && suffixLength ? suffixLength + "px" : suffixLength ? import_dds_design_tokens17.ddsTokens.ddsSpacingX1NumberPx + suffixLength + "px" : void 0;
12901
13835
  let extendedInput = null;
12902
13836
  if (hasIcon) {
12903
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)(
13837
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)(
12904
13838
  "div",
12905
13839
  {
12906
13840
  className: cn(TextInput_default["input-width"], Input_default["input-group"]),
12907
13841
  style: styleVariables,
12908
13842
  children: [
12909
- /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
13843
+ /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
12910
13844
  Icon,
12911
13845
  {
12912
13846
  icon,
12913
13847
  iconSize: getFormInputIconSize(componentSize),
12914
- className: cn(Input_default.icon, TextInput_default[`icon--${componentSize}`])
13848
+ className: cn(
13849
+ Input_default["input-group__absolute-element"],
13850
+ TextInput_default[`icon--${componentSize}`]
13851
+ )
12915
13852
  }
12916
13853
  ),
12917
- /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
13854
+ /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
12918
13855
  StatefulInput,
12919
13856
  {
12920
13857
  ref,
@@ -12933,13 +13870,13 @@ var TextInput = (0, import_react148.forwardRef)(
12933
13870
  }
12934
13871
  );
12935
13872
  } else if (hasAffix) {
12936
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)(
13873
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)(
12937
13874
  "div",
12938
13875
  {
12939
13876
  className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
12940
13877
  style: styleVariables,
12941
13878
  children: [
12942
- prefix3 && /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
13879
+ prefix3 && /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
12943
13880
  "span",
12944
13881
  {
12945
13882
  ref: prefixRef,
@@ -12952,7 +13889,7 @@ var TextInput = (0, import_react148.forwardRef)(
12952
13889
  children: prefix3
12953
13890
  }
12954
13891
  ),
12955
- /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
13892
+ /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
12956
13893
  StatefulInput,
12957
13894
  {
12958
13895
  ref,
@@ -12967,7 +13904,7 @@ var TextInput = (0, import_react148.forwardRef)(
12967
13904
  className: TextInput_default["input--extended"]
12968
13905
  }
12969
13906
  ),
12970
- suffix && /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
13907
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
12971
13908
  "span",
12972
13909
  {
12973
13910
  ref: suffixRef,
@@ -12984,7 +13921,7 @@ var TextInput = (0, import_react148.forwardRef)(
12984
13921
  }
12985
13922
  );
12986
13923
  }
12987
- return /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)(
13924
+ return /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)(
12988
13925
  "div",
12989
13926
  {
12990
13927
  className: cn(
@@ -12996,7 +13933,7 @@ var TextInput = (0, import_react148.forwardRef)(
12996
13933
  ),
12997
13934
  style,
12998
13935
  children: [
12999
- hasLabel && /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
13936
+ hasLabel && /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
13000
13937
  Label,
13001
13938
  {
13002
13939
  htmlFor: uniqueId,
@@ -13006,7 +13943,7 @@ var TextInput = (0, import_react148.forwardRef)(
13006
13943
  children: label
13007
13944
  }
13008
13945
  ),
13009
- extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime302.jsx)(
13946
+ extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
13010
13947
  StatefulInput,
13011
13948
  {
13012
13949
  ref,
@@ -13018,7 +13955,7 @@ var TextInput = (0, import_react148.forwardRef)(
13018
13955
  className: TextInput_default["input-width"]
13019
13956
  }
13020
13957
  ),
13021
- hasMessage && /* @__PURE__ */ (0, import_jsx_runtime302.jsxs)("div", { className: TextInput_default["message-container"], children: [
13958
+ hasMessage && /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)("div", { className: TextInput_default["message-container"], children: [
13022
13959
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
13023
13960
  renderCharCounter(
13024
13961
  characterCounterId,
@@ -13035,14 +13972,14 @@ var TextInput = (0, import_react148.forwardRef)(
13035
13972
  TextInput.displayName = "TextInput";
13036
13973
 
13037
13974
  // src/components/ToggleBar/ToggleBar.tsx
13038
- var import_react150 = require("react");
13975
+ var import_react151 = require("react");
13039
13976
 
13040
13977
  // src/components/ToggleBar/ToggleBar.context.tsx
13041
- var import_react149 = require("react");
13042
- var ToggleBarContext = (0, import_react149.createContext)({
13978
+ var import_react150 = require("react");
13979
+ var ToggleBarContext = (0, import_react150.createContext)({
13043
13980
  size: "medium"
13044
13981
  });
13045
- var useToggleBarContext = () => (0, import_react149.useContext)(ToggleBarContext);
13982
+ var useToggleBarContext = () => (0, import_react150.useContext)(ToggleBarContext);
13046
13983
 
13047
13984
  // src/components/ToggleBar/ToggleBar.module.css
13048
13985
  var ToggleBar_default = {
@@ -13061,7 +13998,7 @@ var ToggleBar_default = {
13061
13998
  };
13062
13999
 
13063
14000
  // src/components/ToggleBar/ToggleBar.tsx
13064
- var import_jsx_runtime303 = require("react/jsx-runtime");
14001
+ var import_jsx_runtime304 = require("react/jsx-runtime");
13065
14002
  var ToggleBar = (props) => {
13066
14003
  const {
13067
14004
  children,
@@ -13076,15 +14013,15 @@ var ToggleBar = (props) => {
13076
14013
  id,
13077
14014
  ...rest
13078
14015
  } = props;
13079
- const generatedId = (0, import_react150.useId)();
14016
+ const generatedId = (0, import_react151.useId)();
13080
14017
  const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
13081
- const [groupValue, setGroupValue] = (0, import_react150.useState)(value);
14018
+ const [groupValue, setGroupValue] = (0, import_react151.useState)(value);
13082
14019
  const handleChange = combineHandlers(
13083
14020
  (e) => setGroupValue(e.target.value),
13084
14021
  (e) => onChange && onChange(e, e.target.value)
13085
14022
  );
13086
14023
  const labelId = label && `${uniqueId}-label`;
13087
- return /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(
14024
+ return /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
13088
14025
  ToggleBarContext.Provider,
13089
14026
  {
13090
14027
  value: {
@@ -13093,7 +14030,7 @@ var ToggleBar = (props) => {
13093
14030
  name,
13094
14031
  value: groupValue
13095
14032
  },
13096
- children: /* @__PURE__ */ (0, import_jsx_runtime303.jsxs)(
14033
+ children: /* @__PURE__ */ (0, import_jsx_runtime304.jsxs)(
13097
14034
  "div",
13098
14035
  {
13099
14036
  ...getBaseHTMLProps(
@@ -13106,8 +14043,8 @@ var ToggleBar = (props) => {
13106
14043
  role: "radiogroup",
13107
14044
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
13108
14045
  children: [
13109
- label && /* @__PURE__ */ (0, import_jsx_runtime303.jsx)(Label, { id: labelId, children: label }),
13110
- /* @__PURE__ */ (0, import_jsx_runtime303.jsx)("div", { className: ToggleBar_default.bar, children })
14046
+ label && /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(Label, { id: labelId, children: label }),
14047
+ /* @__PURE__ */ (0, import_jsx_runtime304.jsx)("div", { className: ToggleBar_default.bar, children })
13111
14048
  ]
13112
14049
  }
13113
14050
  )
@@ -13117,8 +14054,8 @@ var ToggleBar = (props) => {
13117
14054
  ToggleBar.displayName = "ToggleBar";
13118
14055
 
13119
14056
  // src/components/ToggleBar/ToggleRadio.tsx
13120
- var import_react151 = require("react");
13121
- var import_jsx_runtime304 = require("react/jsx-runtime");
14057
+ var import_react152 = require("react");
14058
+ var import_jsx_runtime305 = require("react/jsx-runtime");
13122
14059
  var typographyTypes4 = {
13123
14060
  large: "bodySans04",
13124
14061
  medium: "bodySans02",
@@ -13135,7 +14072,7 @@ var calculateChecked = (value, group, checked) => {
13135
14072
  }
13136
14073
  return !!value;
13137
14074
  };
13138
- var ToggleRadio = (0, import_react151.forwardRef)(
14075
+ var ToggleRadio = (0, import_react152.forwardRef)(
13139
14076
  (props, ref) => {
13140
14077
  const {
13141
14078
  value,
@@ -13151,7 +14088,7 @@ var ToggleRadio = (0, import_react151.forwardRef)(
13151
14088
  id,
13152
14089
  ...rest
13153
14090
  } = props;
13154
- const generatedId = (0, import_react151.useId)();
14091
+ const generatedId = (0, import_react152.useId)();
13155
14092
  const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
13156
14093
  const group = useToggleBarContext();
13157
14094
  const handleChange = (event) => {
@@ -13159,8 +14096,8 @@ var ToggleRadio = (0, import_react151.forwardRef)(
13159
14096
  (group == null ? void 0 : group.onChange) && group.onChange(event);
13160
14097
  };
13161
14098
  const contentTypeCn = label ? "with-text" : "just-icon";
13162
- return /* @__PURE__ */ (0, import_jsx_runtime304.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
13163
- /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(
14099
+ return /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
14100
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
13164
14101
  "input",
13165
14102
  {
13166
14103
  ...getBaseHTMLProps(
@@ -13183,7 +14120,7 @@ var ToggleRadio = (0, import_react151.forwardRef)(
13183
14120
  "aria-labelledby": ariaLabelledBy
13184
14121
  }
13185
14122
  ),
13186
- /* @__PURE__ */ (0, import_jsx_runtime304.jsxs)(
14123
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(
13187
14124
  Typography,
13188
14125
  {
13189
14126
  as: "span",
@@ -13194,8 +14131,8 @@ var ToggleRadio = (0, import_react151.forwardRef)(
13194
14131
  focus_default["focus-styled-sibling"]
13195
14132
  ),
13196
14133
  children: [
13197
- icon && /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(Icon, { icon, iconSize: "inherit" }),
13198
- label && /* @__PURE__ */ (0, import_jsx_runtime304.jsx)("span", { children: label })
14134
+ icon && /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Icon, { icon, iconSize: "inherit" }),
14135
+ label && /* @__PURE__ */ (0, import_jsx_runtime305.jsx)("span", { children: label })
13199
14136
  ]
13200
14137
  }
13201
14138
  )
@@ -13205,7 +14142,7 @@ var ToggleRadio = (0, import_react151.forwardRef)(
13205
14142
  ToggleRadio.displayName = "ToggleRadio";
13206
14143
 
13207
14144
  // src/components/ToggleButton/ToggleButton.tsx
13208
- var import_react152 = require("react");
14145
+ var import_react153 = require("react");
13209
14146
 
13210
14147
  // src/components/ToggleButton/ToggleButton.module.css
13211
14148
  var ToggleButton_default = {
@@ -13219,14 +14156,14 @@ var ToggleButton_default = {
13219
14156
  };
13220
14157
 
13221
14158
  // src/components/ToggleButton/ToggleButton.tsx
13222
- var import_jsx_runtime305 = require("react/jsx-runtime");
13223
- var ToggleButton = (0, import_react152.forwardRef)(
14159
+ var import_jsx_runtime306 = require("react/jsx-runtime");
14160
+ var ToggleButton = (0, import_react153.forwardRef)(
13224
14161
  ({ id, label, icon, className, htmlProps, ...rest }, ref) => {
13225
- const generatedId = (0, import_react152.useId)();
14162
+ const generatedId = (0, import_react153.useId)();
13226
14163
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
13227
14164
  const hasIcon = !!icon;
13228
- return /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
13229
- /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
14165
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
14166
+ /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
13230
14167
  "input",
13231
14168
  {
13232
14169
  ...getBaseHTMLProps(
@@ -13243,7 +14180,7 @@ var ToggleButton = (0, import_react152.forwardRef)(
13243
14180
  type: "checkbox"
13244
14181
  }
13245
14182
  ),
13246
- /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(
14183
+ /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
13247
14184
  "span",
13248
14185
  {
13249
14186
  className: cn(
@@ -13253,7 +14190,7 @@ var ToggleButton = (0, import_react152.forwardRef)(
13253
14190
  focus_default["focus-styled-sibling"]
13254
14191
  ),
13255
14192
  children: [
13256
- hasIcon && /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Icon, { icon, iconSize: "inherit" }),
14193
+ hasIcon && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon, iconSize: "inherit" }),
13257
14194
  " ",
13258
14195
  label
13259
14196
  ]
@@ -13265,8 +14202,8 @@ var ToggleButton = (0, import_react152.forwardRef)(
13265
14202
  ToggleButton.displayName = "ToggleButton";
13266
14203
 
13267
14204
  // src/components/ToggleButton/ToggleButtonGroup.tsx
13268
- var import_react153 = require("react");
13269
- var import_jsx_runtime306 = require("react/jsx-runtime");
14205
+ var import_react154 = require("react");
14206
+ var import_jsx_runtime307 = require("react/jsx-runtime");
13270
14207
  var ToggleButtonGroup = (props) => {
13271
14208
  const {
13272
14209
  children,
@@ -13278,9 +14215,9 @@ var ToggleButtonGroup = (props) => {
13278
14215
  htmlProps,
13279
14216
  ...rest
13280
14217
  } = props;
13281
- const generatedId = (0, import_react153.useId)();
14218
+ const generatedId = (0, import_react154.useId)();
13282
14219
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
13283
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
14220
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
13284
14221
  "div",
13285
14222
  {
13286
14223
  ...getBaseHTMLProps(
@@ -13292,7 +14229,7 @@ var ToggleButtonGroup = (props) => {
13292
14229
  role: "group",
13293
14230
  "aria-labelledby": label ? uniqueLabelId : void 0,
13294
14231
  children: [
13295
- !!label && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
14232
+ !!label && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
13296
14233
  Typography,
13297
14234
  {
13298
14235
  as: "span",
@@ -13301,7 +14238,7 @@ var ToggleButtonGroup = (props) => {
13301
14238
  children: label
13302
14239
  }
13303
14240
  ),
13304
- /* @__PURE__ */ (0, import_jsx_runtime306.jsx)("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
14241
+ /* @__PURE__ */ (0, import_jsx_runtime307.jsx)("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
13305
14242
  ]
13306
14243
  }
13307
14244
  );
@@ -13512,6 +14449,7 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
13512
14449
  PersonAddIcon,
13513
14450
  PersonIcon,
13514
14451
  PersonShieldedIcon,
14452
+ PhoneInput,
13515
14453
  PinIcon,
13516
14454
  PlusCircledIcon,
13517
14455
  PlusIcon,
@@ -13600,6 +14538,7 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
13600
14538
  ZoomOutIcon,
13601
14539
  calendarDateToNativeDate,
13602
14540
  cn,
14541
+ countryOptions,
13603
14542
  createSelectOptions,
13604
14543
  dangerInputfield,
13605
14544
  dateValueToNativeDate,