@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.mjs CHANGED
@@ -516,7 +516,7 @@ var Input_default = {
516
516
  "input--with-affix": "Input_input--with-affix",
517
517
  label: "Input_label",
518
518
  "char-counter": "Input_char-counter",
519
- icon: "Input_icon"
519
+ "input-group__absolute-element": "Input_input-group__absolute-element"
520
520
  };
521
521
 
522
522
  // src/components/Typography/Caption/Caption.tsx
@@ -2157,7 +2157,7 @@ import { forwardRef as forwardRef5 } from "react";
2157
2157
  import { useCallback } from "react";
2158
2158
  function useCombinedRef(...refs) {
2159
2159
  return useCallback((element) => {
2160
- refs.forEach((ref) => {
2160
+ refs.filter(Boolean).forEach((ref) => {
2161
2161
  if (typeof ref === "function") ref(element);
2162
2162
  else if (ref && typeof ref === "object")
2163
2163
  ref.current = element;
@@ -9783,7 +9783,10 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
9783
9783
  {
9784
9784
  icon,
9785
9785
  iconSize: getFormInputIconSize(componentSize),
9786
- className: cn(Input_default.icon, Select_default[`icon--${componentSize}`])
9786
+ className: cn(
9787
+ Input_default["input-group__absolute-element"],
9788
+ Select_default[`icon--${componentSize}`]
9789
+ )
9787
9790
  }
9788
9791
  ),
9789
9792
  props.children
@@ -10292,9 +10295,942 @@ var Pagination = forwardRef76(
10292
10295
  );
10293
10296
  Pagination.displayName = "Pagination";
10294
10297
 
10295
- // src/components/Popover/Popover.tsx
10298
+ // src/components/PhoneInput/PhoneInput.tsx
10296
10299
  import { ddsTokens as ddsTokens15 } from "@norges-domstoler/dds-design-tokens";
10297
- import { forwardRef as forwardRef77 } from "react";
10300
+ import {
10301
+ forwardRef as forwardRef77,
10302
+ useEffect as useEffect23,
10303
+ useId as useId17,
10304
+ useLayoutEffect as useLayoutEffect2,
10305
+ useRef as useRef27,
10306
+ useState as useState19
10307
+ } from "react";
10308
+
10309
+ // src/components/PhoneInput/constants.ts
10310
+ var COUNTRIES = {
10311
+ AF: {
10312
+ name: "Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)",
10313
+ id: "AF",
10314
+ dialCode: "+93"
10315
+ },
10316
+ AL: {
10317
+ name: "Albania (Shqip\xEBri)",
10318
+ id: "AL",
10319
+ dialCode: "+355"
10320
+ },
10321
+ DZ: {
10322
+ name: "Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)",
10323
+ id: "DZ",
10324
+ dialCode: "+213"
10325
+ },
10326
+ AS: {
10327
+ name: "American Samoa",
10328
+ id: "AS",
10329
+ dialCode: "+1684"
10330
+ },
10331
+ AD: { name: "Andorra", id: "AD", dialCode: "+376" },
10332
+ AO: { name: "Angola", id: "AO", dialCode: "+244" },
10333
+ AI: { name: "Anguilla", id: "AI", dialCode: "+1264" },
10334
+ AG: {
10335
+ name: "Antigua and Barbuda",
10336
+ id: "AG",
10337
+ dialCode: "+1268"
10338
+ },
10339
+ AR: { name: "Argentina", id: "AR", dialCode: "+54" },
10340
+ AM: {
10341
+ name: "Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)",
10342
+ id: "AM",
10343
+ dialCode: "+374"
10344
+ },
10345
+ AW: { name: "Aruba", id: "AW", dialCode: "+297" },
10346
+ AU: { name: "Australia", id: "AU", dialCode: "+61" },
10347
+ AT: {
10348
+ name: "Austria (\xD6sterreich)",
10349
+ id: "AT",
10350
+ dialCode: "+43"
10351
+ },
10352
+ AZ: {
10353
+ name: "Azerbaijan (Az\u0259rbaycan)",
10354
+ id: "AZ",
10355
+ dialCode: "+994"
10356
+ },
10357
+ BS: { name: "Bahamas", id: "BS", dialCode: "+1242" },
10358
+ BH: {
10359
+ name: "Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)",
10360
+ id: "BH",
10361
+ dialCode: "+973"
10362
+ },
10363
+ BD: {
10364
+ name: "Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)",
10365
+ id: "BD",
10366
+ dialCode: "+880"
10367
+ },
10368
+ BB: { name: "Barbados", id: "BB", dialCode: "+1246" },
10369
+ BY: {
10370
+ name: "Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)",
10371
+ id: "BY",
10372
+ dialCode: "+375"
10373
+ },
10374
+ BE: { name: "Belgium (Belgi\xEB)", id: "BE", dialCode: "+32" },
10375
+ BZ: { name: "Belize", id: "BZ", dialCode: "+501" },
10376
+ BJ: { name: "Benin (B\xE9nin)", id: "BJ", dialCode: "+229" },
10377
+ BM: { name: "Bermuda", id: "BM", dialCode: "+1441" },
10378
+ BT: { name: "Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)", id: "BT", dialCode: "+975" },
10379
+ BO: { name: "Bolivia", id: "BO", dialCode: "+591" },
10380
+ BA: {
10381
+ name: "Bosnia and Herzegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)",
10382
+ id: "BA",
10383
+ dialCode: "+387"
10384
+ },
10385
+ BW: { name: "Botswana", id: "BW", dialCode: "+267" },
10386
+ BR: { name: "Brazil (Brasil)", id: "BR", dialCode: "+55" },
10387
+ IO: {
10388
+ name: "British Indian Ocean Territory",
10389
+ id: "IO",
10390
+ dialCode: "+246"
10391
+ },
10392
+ VG: {
10393
+ name: "British Virgin Islands",
10394
+ id: "VG",
10395
+ dialCode: "+1284"
10396
+ },
10397
+ BN: { name: "Brunei", id: "BN", dialCode: "+673" },
10398
+ BG: {
10399
+ name: "Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)",
10400
+ id: "BG",
10401
+ dialCode: "+359"
10402
+ },
10403
+ BF: { name: "Burkina Faso", id: "BF", dialCode: "+226" },
10404
+ BI: {
10405
+ name: "Burundi (Uburundi)",
10406
+ id: "BI",
10407
+ dialCode: "+257"
10408
+ },
10409
+ KH: {
10410
+ name: "Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)",
10411
+ id: "KH",
10412
+ dialCode: "+855"
10413
+ },
10414
+ CM: {
10415
+ name: "Cameroon (Cameroun)",
10416
+ id: "CM",
10417
+ dialCode: "+237"
10418
+ },
10419
+ CA: { name: "Canada", id: "CA", dialCode: "+1" },
10420
+ CV: {
10421
+ name: "Cape Verde (Kabu Verdi)",
10422
+ id: "CV",
10423
+ dialCode: "+238"
10424
+ },
10425
+ KY: {
10426
+ name: "Cayman Islands",
10427
+ id: "KY",
10428
+ dialCode: "+1345"
10429
+ },
10430
+ CF: {
10431
+ name: "Central African Republic (R\xE9publique centrafricaine)",
10432
+ id: "CF",
10433
+ dialCode: "+236"
10434
+ },
10435
+ TD: { name: "Chad (Tchad)", id: "TD", dialCode: "+235" },
10436
+ CL: { name: "Chile", id: "CL", dialCode: "+56" },
10437
+ CN: { name: "China (\u4E2D\u56FD)", id: "CN", dialCode: "+86" },
10438
+ CX: { name: "Christmas Island", id: "CX", dialCode: "+61" },
10439
+ CC: {
10440
+ name: "Cocos (Keeling) Islands",
10441
+ id: "CC",
10442
+ dialCode: "+61"
10443
+ },
10444
+ CO: { name: "Colombia", id: "CO", dialCode: "+57" },
10445
+ KM: {
10446
+ name: "Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)",
10447
+ id: "KM",
10448
+ dialCode: "+269"
10449
+ },
10450
+ CD: {
10451
+ name: "Congo (DRC) (Jamhuri ya Kisoemokrasia ya Kongo)",
10452
+ id: "CD",
10453
+ dialCode: "+243"
10454
+ },
10455
+ CG: {
10456
+ name: "Congo (Republic) (Congo-Brazzaville)",
10457
+ id: "CG",
10458
+ dialCode: "+242"
10459
+ },
10460
+ CK: { name: "Cook Islands", id: "CK", dialCode: "+682" },
10461
+ CR: { name: "Costa Rica", id: "CR", dialCode: "+506" },
10462
+ CI: { name: "C\xF4te d\u2019Ivoire", id: "CI", dialCode: "+225" },
10463
+ HR: {
10464
+ name: "Croatia (Hrvatska)",
10465
+ id: "HR",
10466
+ dialCode: "+385"
10467
+ },
10468
+ CU: { name: "Cuba", id: "CU", dialCode: "+53" },
10469
+ CW: { name: "Cura\xE7ao", id: "CW", dialCode: "+599" },
10470
+ CY: {
10471
+ name: "Cyprus (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)",
10472
+ id: "CY",
10473
+ dialCode: "+357"
10474
+ },
10475
+ CZ: {
10476
+ name: "Czech Republic (\u010Cesk\xE1 republika)",
10477
+ id: "CZ",
10478
+ dialCode: "+420"
10479
+ },
10480
+ DK: {
10481
+ name: "Denmark (Danmark)",
10482
+ id: "DK",
10483
+ dialCode: "+45"
10484
+ },
10485
+ DJ: { name: "Djibouti", id: "DJ", dialCode: "+253" },
10486
+ DM: { name: "Dominica", id: "DM", dialCode: "+1767" },
10487
+ DO: {
10488
+ name: "Dominican Republic (Rep\xFAblica Dominicana)",
10489
+ id: "DO",
10490
+ dialCode: "+1"
10491
+ },
10492
+ EC: { name: "Ecuador", id: "EC", dialCode: "+593" },
10493
+ EG: { name: "Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)", id: "EG", dialCode: "+20" },
10494
+ SV: { name: "El Salvador", id: "SV", dialCode: "+503" },
10495
+ GQ: {
10496
+ name: "Equatorial Guinea (Guinea Ecuatorial)",
10497
+ id: "GQ",
10498
+ dialCode: "+240"
10499
+ },
10500
+ ER: { name: "Eritrea", id: "ER", dialCode: "+291" },
10501
+ EE: {
10502
+ name: "Estonia (Eesti)",
10503
+ id: "EE",
10504
+ dialCode: "+372"
10505
+ },
10506
+ ET: { name: "Ethiopia", id: "ET", dialCode: "+251" },
10507
+ FK: {
10508
+ name: "Falkland Islands (Islas Malvinas)",
10509
+ id: "FK",
10510
+ dialCode: "+500"
10511
+ },
10512
+ FO: {
10513
+ name: "Faroe Islands (F\xF8royar)",
10514
+ id: "FO",
10515
+ dialCode: "+298"
10516
+ },
10517
+ FJ: { name: "Fiji", id: "FJ", dialCode: "+679" },
10518
+ FI: {
10519
+ name: "Finland (Suomi)",
10520
+ id: "FI",
10521
+ dialCode: "+358"
10522
+ },
10523
+ FR: { name: "France", id: "FR", dialCode: "+33" },
10524
+ GF: {
10525
+ name: "French Guiana (Guyane fran\xE7aise)",
10526
+ id: "GF",
10527
+ dialCode: "+594"
10528
+ },
10529
+ PF: {
10530
+ name: "French Polynesia (Polyn\xE9sie fran\xE7aise)",
10531
+ id: "PF",
10532
+ dialCode: "+689"
10533
+ },
10534
+ GA: { name: "Gabon", id: "GA", dialCode: "+241" },
10535
+ GM: { name: "Gambia", id: "GM", dialCode: "+220" },
10536
+ GE: {
10537
+ name: "Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)",
10538
+ id: "GE",
10539
+ dialCode: "+995"
10540
+ },
10541
+ DE: {
10542
+ name: "Germany (Deutschland)",
10543
+ id: "DE",
10544
+ dialCode: "+49"
10545
+ },
10546
+ GH: { name: "Ghana (Gaana)", id: "GH", dialCode: "+233" },
10547
+ GI: { name: "Gibraltar", id: "GI", dialCode: "+350" },
10548
+ GR: { name: "Greece (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)", id: "GR", dialCode: "+30" },
10549
+ GL: {
10550
+ name: "Greenland (Kalaallit Nunaat)",
10551
+ id: "GL",
10552
+ dialCode: "+299"
10553
+ },
10554
+ GD: { name: "Grenada", id: "GD", dialCode: "+1473" },
10555
+ GP: { name: "Guadeloupe", id: "GP", dialCode: "+590" },
10556
+ GU: { name: "Guam", id: "GU", dialCode: "+1671" },
10557
+ GT: { name: "Guatemala", id: "GT", dialCode: "+502" },
10558
+ GG: { name: "Guernsey", id: "GG", dialCode: "+44" },
10559
+ GN: {
10560
+ name: "Guinea (Guin\xE9e)",
10561
+ id: "GN",
10562
+ dialCode: "+224"
10563
+ },
10564
+ GW: {
10565
+ name: "Guinea-Bissau (Guin\xE9 Bissau)",
10566
+ id: "GW",
10567
+ dialCode: "+245"
10568
+ },
10569
+ GY: { name: "Guyana", id: "GY", dialCode: "+592" },
10570
+ HT: { name: "Haiti", id: "HT", dialCode: "+509" },
10571
+ HN: { name: "Honduras", id: "HN", dialCode: "+504" },
10572
+ HK: {
10573
+ name: "Hong Kong (\u9999\u6E2F)",
10574
+ id: "HK",
10575
+ dialCode: "+852"
10576
+ },
10577
+ HU: {
10578
+ name: "Hungary (Magyarorsz\xE1g)",
10579
+ id: "HU",
10580
+ dialCode: "+36"
10581
+ },
10582
+ IS: {
10583
+ name: "Iceland (\xCDsland)",
10584
+ id: "IS",
10585
+ dialCode: "+354"
10586
+ },
10587
+ IN: { name: "India (\u092D\u093E\u0930\u0924)", id: "IN", dialCode: "+91" },
10588
+ ID: { name: "Indonesia", id: "ID", dialCode: "+62" },
10589
+ IR: { name: "Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)", id: "IR", dialCode: "+98" },
10590
+ IQ: {
10591
+ name: "Iraq (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)",
10592
+ id: "IQ",
10593
+ dialCode: "+964"
10594
+ },
10595
+ IE: { name: "Ireland", id: "IE", dialCode: "+353" },
10596
+ IM: { name: "Isle of Man", id: "IM", dialCode: "+44" },
10597
+ IL: {
10598
+ name: "Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)",
10599
+ id: "IL",
10600
+ dialCode: "+972"
10601
+ },
10602
+ IT: { name: "Italy (Italia)", id: "IT", dialCode: "+39" },
10603
+ JM: { name: "Jamaica", id: "JM", dialCode: "+1" },
10604
+ JP: { name: "Japan (\u65E5\u672C)", id: "JP", dialCode: "+81" },
10605
+ JE: { name: "Jersey", id: "JE", dialCode: "+44" },
10606
+ JO: {
10607
+ name: "Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)",
10608
+ id: "JO",
10609
+ dialCode: "+962"
10610
+ },
10611
+ KZ: {
10612
+ name: "Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)",
10613
+ id: "KZ",
10614
+ dialCode: "+7"
10615
+ },
10616
+ KE: { name: "Kenya", id: "KE", dialCode: "+254" },
10617
+ KI: { name: "Kiribati", id: "KI", dialCode: "+686" },
10618
+ XK: { name: "Kosovo", id: "XK", dialCode: "+383" },
10619
+ KW: {
10620
+ name: "Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)",
10621
+ id: "KW",
10622
+ dialCode: "+965"
10623
+ },
10624
+ KG: {
10625
+ name: "Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)",
10626
+ id: "KG",
10627
+ dialCode: "+996"
10628
+ },
10629
+ LA: { name: "Laos (\u0EA5\u0EB2\u0EA7)", id: "LA", dialCode: "+856" },
10630
+ LV: {
10631
+ name: "Latvia (Latvija)",
10632
+ id: "LV",
10633
+ dialCode: "+371"
10634
+ },
10635
+ LB: {
10636
+ name: "Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)",
10637
+ id: "LB",
10638
+ dialCode: "+961"
10639
+ },
10640
+ LS: { name: "Lesotho", id: "LS", dialCode: "+266" },
10641
+ LR: { name: "Liberia", id: "LR", dialCode: "+231" },
10642
+ LY: {
10643
+ name: "Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)",
10644
+ id: "LY",
10645
+ dialCode: "+218"
10646
+ },
10647
+ LI: { name: "Liechtenstein", id: "LI", dialCode: "+423" },
10648
+ LT: {
10649
+ name: "Lithuania (Lietuva)",
10650
+ id: "LT",
10651
+ dialCode: "+370"
10652
+ },
10653
+ LU: { name: "Luxembourg", id: "LU", dialCode: "+352" },
10654
+ MO: { name: "Macau (\u6FB3\u9580)", id: "MO", dialCode: "+853" },
10655
+ MK: {
10656
+ name: "North Macedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)",
10657
+ id: "MK",
10658
+ dialCode: "+389"
10659
+ },
10660
+ MG: {
10661
+ name: "Madagascar (Madagasikara)",
10662
+ id: "MG",
10663
+ dialCode: "+261"
10664
+ },
10665
+ MW: { name: "Malawi", id: "MW", dialCode: "+265" },
10666
+ MY: { name: "Malaysia", id: "MY", dialCode: "+60" },
10667
+ MV: { name: "Maldives", id: "MV", dialCode: "+960" },
10668
+ ML: { name: "Mali", id: "ML", dialCode: "+223" },
10669
+ MT: { name: "Malta", id: "MT", dialCode: "+356" },
10670
+ MH: {
10671
+ name: "Marshall Islands",
10672
+ id: "MH",
10673
+ dialCode: "+692"
10674
+ },
10675
+ MQ: { name: "Martinique", id: "MQ", dialCode: "+596" },
10676
+ MR: {
10677
+ name: "Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)",
10678
+ id: "MR",
10679
+ dialCode: "+222"
10680
+ },
10681
+ MU: {
10682
+ name: "Mauritius (Moris)",
10683
+ id: "MU",
10684
+ dialCode: "+230"
10685
+ },
10686
+ YT: { name: "Mayotte", id: "YT", dialCode: "+262" },
10687
+ MX: { name: "Mexico (M\xE9xico)", id: "MX", dialCode: "+52" },
10688
+ FM: { name: "Micronesia", id: "FM", dialCode: "+691" },
10689
+ MD: {
10690
+ name: "Moldova (Republica Moldova)",
10691
+ id: "MD",
10692
+ dialCode: "+373"
10693
+ },
10694
+ MC: { name: "Monaco", id: "MC", dialCode: "+377" },
10695
+ MN: {
10696
+ name: "Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)",
10697
+ id: "MN",
10698
+ dialCode: "+976"
10699
+ },
10700
+ ME: {
10701
+ name: "Montenegro (Crna Gora)",
10702
+ id: "ME",
10703
+ dialCode: "+382"
10704
+ },
10705
+ MS: { name: "Montserrat", id: "MS", dialCode: "+1664" },
10706
+ MA: {
10707
+ name: "Morocco (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)",
10708
+ id: "MA",
10709
+ dialCode: "+212"
10710
+ },
10711
+ MZ: {
10712
+ name: "Mozambique (Mo\xE7ambique)",
10713
+ id: "MZ",
10714
+ dialCode: "+258"
10715
+ },
10716
+ MM: {
10717
+ name: "Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)",
10718
+ id: "MM",
10719
+ dialCode: "+95"
10720
+ },
10721
+ NA: {
10722
+ name: "Namibia (Namibi\xEB)",
10723
+ id: "NA",
10724
+ dialCode: "+264"
10725
+ },
10726
+ NR: { name: "Nauru", id: "NR", dialCode: "+674" },
10727
+ NP: { name: "Nepal (\u0928\u0947\u092A\u093E\u0932)", id: "NP", dialCode: "+977" },
10728
+ NL: {
10729
+ name: "Netherlands (Nederland)",
10730
+ id: "NL",
10731
+ dialCode: "+31"
10732
+ },
10733
+ NC: {
10734
+ name: "New Caledonia (Nouvelle-Cal\xE9donie)",
10735
+ id: "NC",
10736
+ dialCode: "+687"
10737
+ },
10738
+ NZ: { name: "New Zealand", id: "NZ", dialCode: "+64" },
10739
+ NI: { name: "Nicaragua", id: "NI", dialCode: "+505" },
10740
+ NE: { name: "Niger (Nijar)", id: "NE", dialCode: "+227" },
10741
+ NG: { name: "Nigeria", id: "NG", dialCode: "+234" },
10742
+ NU: { name: "Niue", id: "NU", dialCode: "+683" },
10743
+ NF: { name: "Norfolk Island", id: "NF", dialCode: "+672" },
10744
+ KP: {
10745
+ name: "North Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)",
10746
+ id: "KP",
10747
+ dialCode: "+850"
10748
+ },
10749
+ MP: {
10750
+ name: "Northern Mariana Islands",
10751
+ id: "MP",
10752
+ dialCode: "+1670"
10753
+ },
10754
+ NO: { name: "Norway (Norge)", id: "NO", dialCode: "+47" },
10755
+ OM: {
10756
+ name: "Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)",
10757
+ id: "OM",
10758
+ dialCode: "+968"
10759
+ },
10760
+ PK: {
10761
+ name: "Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)",
10762
+ id: "PK",
10763
+ dialCode: "+92"
10764
+ },
10765
+ PW: { name: "Palau", id: "PW", dialCode: "+680" },
10766
+ PS: {
10767
+ name: "Palestine (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)",
10768
+ id: "PS",
10769
+ dialCode: "+970"
10770
+ },
10771
+ PA: {
10772
+ name: "Panama (Panam\xE1)",
10773
+ id: "PA",
10774
+ dialCode: "+507"
10775
+ },
10776
+ PG: {
10777
+ name: "Papua New Guinea",
10778
+ id: "PG",
10779
+ dialCode: "+675"
10780
+ },
10781
+ PY: { name: "Paraguay", id: "PY", dialCode: "+595" },
10782
+ PE: { name: "Peru (Per\xFA)", id: "PE", dialCode: "+51" },
10783
+ PH: { name: "Philippines", id: "PH", dialCode: "+63" },
10784
+ PL: { name: "Poland (Polska)", id: "PL", dialCode: "+48" },
10785
+ PT: { name: "Portugal", id: "PT", dialCode: "+351" },
10786
+ PR: { name: "Puerto Rico", id: "PR", dialCode: "+1" },
10787
+ QA: { name: "Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)", id: "QA", dialCode: "+974" },
10788
+ RE: {
10789
+ name: "R\xE9union (La R\xE9union)",
10790
+ id: "RE",
10791
+ dialCode: "+262"
10792
+ },
10793
+ RO: {
10794
+ name: "Romania (Rom\xE2nia)",
10795
+ id: "RO",
10796
+ dialCode: "+40"
10797
+ },
10798
+ RU: { name: "Russia (\u0420\u043E\u0441\u0441\u0438\u044F)", id: "RU", dialCode: "+7" },
10799
+ RW: { name: "Rwanda", id: "RW", dialCode: "+250" },
10800
+ BL: {
10801
+ name: "Saint Barth\xE9lemy",
10802
+ id: "BL",
10803
+ dialCode: "+590"
10804
+ },
10805
+ SH: { name: "Saint Helena", id: "SH", dialCode: "+290" },
10806
+ KN: {
10807
+ name: "Saint Kitts and Nevis",
10808
+ id: "KN",
10809
+ dialCode: "+1869"
10810
+ },
10811
+ LC: { name: "Saint Lucia", id: "LC", dialCode: "+1758" },
10812
+ MF: {
10813
+ name: "Saint Martin (Saint-Martin (partie fran\xE7aise))",
10814
+ id: "MF",
10815
+ dialCode: "+590"
10816
+ },
10817
+ PM: {
10818
+ name: "Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)",
10819
+ id: "PM",
10820
+ dialCode: "+508"
10821
+ },
10822
+ VC: {
10823
+ name: "Saint Vincent and the Grenadines",
10824
+ id: "VC",
10825
+ dialCode: "+1784"
10826
+ },
10827
+ WS: { name: "Samoa", id: "WS", dialCode: "+685" },
10828
+ SM: { name: "San Marino", id: "SM", dialCode: "+378" },
10829
+ ST: {
10830
+ name: "S\xE3o Tom\xE9 and Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)",
10831
+ id: "ST",
10832
+ dialCode: "+239"
10833
+ },
10834
+ SA: {
10835
+ 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)",
10836
+ id: "SA",
10837
+ dialCode: "+966"
10838
+ },
10839
+ SN: {
10840
+ name: "Senegal (S\xE9n\xE9gal)",
10841
+ id: "SN",
10842
+ dialCode: "+221"
10843
+ },
10844
+ RS: {
10845
+ name: "Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)",
10846
+ id: "RS",
10847
+ dialCode: "+381"
10848
+ },
10849
+ SC: { name: "Seychelles", id: "SC", dialCode: "+248" },
10850
+ SL: { name: "Sierra Leone", id: "SL", dialCode: "+232" },
10851
+ SG: { name: "Singapore", id: "SG", dialCode: "+65" },
10852
+ SX: { name: "Sint Maarten", id: "SX", dialCode: "+1721" },
10853
+ SK: {
10854
+ name: "Slovakia (Slovensko)",
10855
+ id: "SK",
10856
+ dialCode: "+421"
10857
+ },
10858
+ SI: {
10859
+ name: "Slovenia (Slovenija)",
10860
+ id: "SI",
10861
+ dialCode: "+386"
10862
+ },
10863
+ SB: {
10864
+ name: "Solomon Islands",
10865
+ id: "SB",
10866
+ dialCode: "+677"
10867
+ },
10868
+ SO: {
10869
+ name: "Somalia (Soomaaliya)",
10870
+ id: "SO",
10871
+ dialCode: "+252"
10872
+ },
10873
+ ZA: { name: "South Africa", id: "ZA", dialCode: "+27" },
10874
+ KR: {
10875
+ name: "South Korea (\uB300\uD55C\uBBFC\uAD6D)",
10876
+ id: "KR",
10877
+ dialCode: "+82"
10878
+ },
10879
+ SS: {
10880
+ name: "South Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)",
10881
+ id: "SS",
10882
+ dialCode: "+211"
10883
+ },
10884
+ ES: { name: "Spain (Espa\xF1a)", id: "ES", dialCode: "+34" },
10885
+ LK: {
10886
+ name: "Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)",
10887
+ id: "LK",
10888
+ dialCode: "+94"
10889
+ },
10890
+ SD: {
10891
+ name: "Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)",
10892
+ id: "SD",
10893
+ dialCode: "+249"
10894
+ },
10895
+ SR: { name: "Suriname", id: "SR", dialCode: "+597" },
10896
+ SJ: {
10897
+ name: "Svalbard and Jan Mayen",
10898
+ id: "SJ",
10899
+ dialCode: "+47"
10900
+ },
10901
+ SZ: { name: "Swaziland", id: "SZ", dialCode: "+268" },
10902
+ SE: { name: "Sweden (Sverige)", id: "SE", dialCode: "+46" },
10903
+ CH: {
10904
+ name: "Switzerland (Schweiz)",
10905
+ id: "CH",
10906
+ dialCode: "+41"
10907
+ },
10908
+ SY: {
10909
+ name: "Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)",
10910
+ id: "SY",
10911
+ dialCode: "+963"
10912
+ },
10913
+ TW: { name: "Taiwan (\u53F0\u7063)", id: "TW", dialCode: "+886" },
10914
+ TJ: { name: "Tajikistan", id: "TJ", dialCode: "+992" },
10915
+ TZ: { name: "Tanzania", id: "TZ", dialCode: "+255" },
10916
+ TH: { name: "Thailand (\u0E44\u0E17\u0E22)", id: "TH", dialCode: "+66" },
10917
+ TL: { name: "Timor-Leste", id: "TL", dialCode: "+670" },
10918
+ TG: { name: "Togo", id: "TG", dialCode: "+228" },
10919
+ TK: { name: "Tokelau", id: "TK", dialCode: "+690" },
10920
+ TO: { name: "Tonga", id: "TO", dialCode: "+676" },
10921
+ TT: {
10922
+ name: "Trinisoad and Tobago",
10923
+ id: "TT",
10924
+ dialCode: "+1868"
10925
+ },
10926
+ TN: {
10927
+ name: "Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)",
10928
+ id: "TN",
10929
+ dialCode: "+216"
10930
+ },
10931
+ TR: { name: "Turkey (T\xFCrkiye)", id: "TR", dialCode: "+90" },
10932
+ TM: { name: "Turkmenistan", id: "TM", dialCode: "+993" },
10933
+ TC: {
10934
+ name: "Turks and Caicos Islands",
10935
+ id: "TC",
10936
+ dialCode: "+1649"
10937
+ },
10938
+ TV: { name: "Tuvalu", id: "TV", dialCode: "+688" },
10939
+ VI: {
10940
+ name: "U.S. Virgin Islands",
10941
+ id: "VI",
10942
+ dialCode: "+1340"
10943
+ },
10944
+ UG: { name: "Uganda", id: "UG", dialCode: "+256" },
10945
+ UA: {
10946
+ name: "Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)",
10947
+ id: "UA",
10948
+ dialCode: "+380"
10949
+ },
10950
+ AE: {
10951
+ 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)",
10952
+ id: "AE",
10953
+ dialCode: "+971"
10954
+ },
10955
+ GB: { name: "United Kingdom", id: "GB", dialCode: "+44" },
10956
+ US: { name: "United States", id: "US", dialCode: "+1" },
10957
+ UY: { name: "Uruguay", id: "UY", dialCode: "+598" },
10958
+ UZ: {
10959
+ name: "Uzbekistan (O\u02BBzbekiston)",
10960
+ id: "UZ",
10961
+ dialCode: "+998"
10962
+ },
10963
+ VU: { name: "Vanuatu", id: "VU", dialCode: "+678" },
10964
+ VA: {
10965
+ name: "Vatican City (Citt\xE0 del Vaticano)",
10966
+ id: "VA",
10967
+ dialCode: "+39"
10968
+ },
10969
+ VE: { name: "Venezuela", id: "VE", dialCode: "+58" },
10970
+ VN: {
10971
+ name: "Vietnam (Vi\u1EC7t Nam)",
10972
+ id: "VN",
10973
+ dialCode: "+84"
10974
+ },
10975
+ WF: {
10976
+ name: "Wallis and Futuna (Wallis-et-Futuna)",
10977
+ id: "WF",
10978
+ dialCode: "+681"
10979
+ },
10980
+ YE: {
10981
+ name: "Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)",
10982
+ id: "YE",
10983
+ dialCode: "+967"
10984
+ },
10985
+ ZM: { name: "Zambia", id: "ZM", dialCode: "+260" },
10986
+ ZW: { name: "Zimbabwe", id: "ZW", dialCode: "+263" },
10987
+ AX: { name: "\xC5land Islands", id: "AX", dialCode: "+358" }
10988
+ };
10989
+
10990
+ // src/components/PhoneInput/PhoneInput.module.css
10991
+ var PhoneInput_default = {
10992
+ "inputs-container": "PhoneInput_inputs-container",
10993
+ input: "PhoneInput_input",
10994
+ select: "PhoneInput_select",
10995
+ "select--tiny": "PhoneInput_select--tiny",
10996
+ "inputs-container--small-screen-xs": "PhoneInput_inputs-container--small-screen-xs",
10997
+ "inputs-container--small-screen-sm": "PhoneInput_inputs-container--small-screen-sm",
10998
+ "inputs-container--small-screen-md": "PhoneInput_inputs-container--small-screen-md",
10999
+ "inputs-container--small-screen-lg": "PhoneInput_inputs-container--small-screen-lg",
11000
+ "inputs-container--small-screen-xl": "PhoneInput_inputs-container--small-screen-xl",
11001
+ "calling-code": "PhoneInput_calling-code"
11002
+ };
11003
+
11004
+ // src/components/PhoneInput/PhoneInput.tsx
11005
+ import { jsx as jsx266, jsxs as jsxs62 } from "react/jsx-runtime";
11006
+ var prioritizedCountries = [
11007
+ COUNTRIES.NO,
11008
+ COUNTRIES.SE,
11009
+ COUNTRIES.DK,
11010
+ COUNTRIES.FI
11011
+ ];
11012
+ var prioritizedCountryOptions = prioritizedCountries.map((country) => {
11013
+ return {
11014
+ label: `${country.name} ${country.dialCode}`,
11015
+ countryCode: country.id
11016
+ };
11017
+ });
11018
+ var sortedCountryOptions = Object.values(
11019
+ COUNTRIES
11020
+ ).sort((a2, b) => +a2.name - +b.name).map((country) => ({
11021
+ countryCode: country.id,
11022
+ label: `${country.name} ${country.dialCode}`
11023
+ })).filter(
11024
+ (country) => !prioritizedCountryOptions.some(
11025
+ (pCountry) => pCountry.countryCode === country.countryCode
11026
+ )
11027
+ );
11028
+ var countryOptions = [
11029
+ ...prioritizedCountryOptions,
11030
+ ...sortedCountryOptions
11031
+ ];
11032
+ var PhoneInput = forwardRef77(
11033
+ ({
11034
+ label,
11035
+ readOnly,
11036
+ errorMessage,
11037
+ tip,
11038
+ required,
11039
+ width,
11040
+ componentSize = "medium",
11041
+ name,
11042
+ className,
11043
+ style,
11044
+ value,
11045
+ selectLabel = "Landskode",
11046
+ selectRef,
11047
+ onChange,
11048
+ defaultValue,
11049
+ "aria-required": ariaRequired,
11050
+ "aria-describedby": ariaDescribedby,
11051
+ groupLabel = "Landskode og telefonnummer",
11052
+ ...props
11053
+ }, ref) => {
11054
+ var _a;
11055
+ const generatedId = useId17();
11056
+ const uniqueId = (_a = props.id) != null ? _a : generatedId;
11057
+ const phoneInputId = `${uniqueId}-phone-input`;
11058
+ const phoneNumberId = `${uniqueId}-phone-number`;
11059
+ const selectId = `${uniqueId}-country-code`;
11060
+ const hasErrorMessage = !!errorMessage;
11061
+ const hasTip = !!tip;
11062
+ const hasLabel = !!label;
11063
+ const hasMessage = hasErrorMessage || hasTip;
11064
+ const tipId = derivativeIdGenerator(phoneInputId, "tip");
11065
+ const errorMessageId = derivativeIdGenerator(phoneInputId, "errorMessage");
11066
+ const [callingCode, setCallingCode] = useState19("");
11067
+ const [selectedCountryCodeText, setSelectedCountryCodeText] = useState19("");
11068
+ const [internalValue, setInternalValue] = useState19(
11069
+ defaultValue != null ? defaultValue : {
11070
+ countryCode: "",
11071
+ phoneNumber: ""
11072
+ }
11073
+ );
11074
+ const isControlled = value !== void 0;
11075
+ const [callingCodeWidth, setCallingCodeWidth] = useState19(0);
11076
+ const callingCodeRef = useRef27(null);
11077
+ useLayoutEffect2(() => {
11078
+ if (callingCodeRef.current) {
11079
+ setCallingCodeWidth(callingCodeRef.current.offsetWidth);
11080
+ }
11081
+ }, [callingCode]);
11082
+ const callingCodeInlineStart = callingCodeWidth ? ddsTokens15.ddsSpacingX1NumberPx + callingCodeWidth + "px" : void 0;
11083
+ const styleVariables = {
11084
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
11085
+ ["--dds-phone-input-width"]: width ? width : componentSize === "tiny" ? "131px" : "194px"
11086
+ };
11087
+ const internalSelectRef = useRef27(null);
11088
+ const combinedSelectRef = useCombinedRef(selectRef, internalSelectRef);
11089
+ const displayedValue = isControlled ? value : internalValue;
11090
+ useEffect23(() => {
11091
+ const selectEl = internalSelectRef.current;
11092
+ if (selectEl && selectEl.value) {
11093
+ const { options, selectedIndex } = selectEl;
11094
+ const content = options[selectedIndex].innerHTML;
11095
+ setSelectedCountryCodeText(content);
11096
+ setCallingCode(getCallingCode(content));
11097
+ }
11098
+ }, [displayedValue == null ? void 0 : displayedValue.countryCode]);
11099
+ const handleCountryCodeChange = (e) => {
11100
+ var _a2;
11101
+ const newValue = {
11102
+ countryCode: e.target.value,
11103
+ phoneNumber: (_a2 = displayedValue == null ? void 0 : displayedValue.phoneNumber) != null ? _a2 : ""
11104
+ };
11105
+ const { options, selectedIndex } = e.target;
11106
+ const content = options[selectedIndex].innerHTML;
11107
+ setCallingCode(getCallingCode(content));
11108
+ if (isControlled && onChange) {
11109
+ onChange(newValue);
11110
+ } else {
11111
+ setInternalValue(newValue);
11112
+ }
11113
+ };
11114
+ const handlePhoneNumberChange = (e) => {
11115
+ var _a2;
11116
+ const newValue = {
11117
+ countryCode: (_a2 = displayedValue == null ? void 0 : displayedValue.countryCode) != null ? _a2 : "",
11118
+ phoneNumber: e.target.value
11119
+ };
11120
+ if (isControlled && onChange) {
11121
+ onChange(newValue);
11122
+ } else {
11123
+ setInternalValue(newValue);
11124
+ }
11125
+ };
11126
+ const commonProps = {
11127
+ required,
11128
+ "aria-required": ariaRequired,
11129
+ disabled: props.disabled,
11130
+ readOnly,
11131
+ componentSize
11132
+ };
11133
+ const showRequiredStyling = !!(required || ariaRequired);
11134
+ return /* @__PURE__ */ jsxs62("div", { className: cn(className, Input_default.container), style, children: [
11135
+ hasLabel && /* @__PURE__ */ jsx266(
11136
+ Label,
11137
+ {
11138
+ htmlFor: phoneNumberId,
11139
+ showRequiredStyling,
11140
+ className: Input_default.label,
11141
+ readOnly,
11142
+ children: label
11143
+ }
11144
+ ),
11145
+ /* @__PURE__ */ jsxs62(
11146
+ "div",
11147
+ {
11148
+ className: cn(
11149
+ PhoneInput_default["inputs-container"],
11150
+ !!props.smallScreenBreakpoint && PhoneInput_default[`inputs-container--small-screen-${props.smallScreenBreakpoint}`]
11151
+ ),
11152
+ style: styleVariables,
11153
+ role: "group",
11154
+ "aria-label": groupLabel,
11155
+ children: [
11156
+ /* @__PURE__ */ jsx266("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: selectLabel }),
11157
+ /* @__PURE__ */ jsx266(
11158
+ NativeSelect,
11159
+ {
11160
+ ...commonProps,
11161
+ ref: combinedSelectRef,
11162
+ id: selectId,
11163
+ className: cn(
11164
+ PhoneInput_default.select,
11165
+ componentSize === "tiny" && PhoneInput_default["select--tiny"]
11166
+ ),
11167
+ onChange: handleCountryCodeChange,
11168
+ defaultValue: defaultValue == null ? void 0 : defaultValue.countryCode,
11169
+ value: (displayedValue == null ? void 0 : displayedValue.countryCode) || "",
11170
+ title: selectedCountryCodeText,
11171
+ name: `${name}-country-code`,
11172
+ "aria-describedby": spaceSeparatedIdListGenerator([
11173
+ hasTip ? tipId : void 0,
11174
+ ariaDescribedby
11175
+ ]),
11176
+ children: countryOptions.map((item, index) => /* @__PURE__ */ jsx266("option", { value: item.countryCode, children: item.label }, index))
11177
+ }
11178
+ ),
11179
+ /* @__PURE__ */ jsxs62("div", { className: Input_default["input-group"], children: [
11180
+ /* @__PURE__ */ jsx266(
11181
+ "span",
11182
+ {
11183
+ className: cn(
11184
+ typographyStyles_default[getTypographyCn(inputTypographyTypes[componentSize])],
11185
+ Input_default["input-group__absolute-element"],
11186
+ PhoneInput_default["calling-code"]
11187
+ ),
11188
+ ref: callingCodeRef,
11189
+ children: callingCode
11190
+ }
11191
+ ),
11192
+ /* @__PURE__ */ jsx266(
11193
+ StatefulInput,
11194
+ {
11195
+ ref,
11196
+ type: "tel",
11197
+ ...commonProps,
11198
+ id: phoneNumberId,
11199
+ value: (displayedValue == null ? void 0 : displayedValue.phoneNumber) || "",
11200
+ defaultValue: defaultValue == null ? void 0 : defaultValue.phoneNumber,
11201
+ name: `${name}-phone-number`,
11202
+ onChange: handlePhoneNumberChange,
11203
+ style: {
11204
+ ...styleVariables,
11205
+ paddingInlineStart: callingCodeInlineStart
11206
+ },
11207
+ className: PhoneInput_default.input,
11208
+ hasErrorMessage,
11209
+ "aria-invalid": hasErrorMessage ? true : void 0,
11210
+ "aria-describedby": spaceSeparatedIdListGenerator([
11211
+ hasTip ? tipId : void 0,
11212
+ hasErrorMessage ? errorMessageId : void 0,
11213
+ ariaDescribedby
11214
+ ])
11215
+ }
11216
+ )
11217
+ ] })
11218
+ ]
11219
+ }
11220
+ ),
11221
+ hasMessage && renderInputMessage(tip, tipId, errorMessage, errorMessageId)
11222
+ ] });
11223
+ }
11224
+ );
11225
+ PhoneInput.displayName = "PhoneInput";
11226
+ var getCallingCode = (s2) => {
11227
+ var _a;
11228
+ return (_a = s2.substring(s2.indexOf("+"), s2.length)) != null ? _a : "";
11229
+ };
11230
+
11231
+ // src/components/Popover/Popover.tsx
11232
+ import { ddsTokens as ddsTokens16 } from "@norges-domstoler/dds-design-tokens";
11233
+ import { forwardRef as forwardRef78 } from "react";
10298
11234
 
10299
11235
  // src/components/Popover/Popover.module.css
10300
11236
  var Popover_default = {
@@ -10305,8 +11241,8 @@ var Popover_default = {
10305
11241
  };
10306
11242
 
10307
11243
  // src/components/Popover/Popover.tsx
10308
- import { jsx as jsx266, jsxs as jsxs62 } from "react/jsx-runtime";
10309
- var Popover = forwardRef77(
11244
+ import { jsx as jsx267, jsxs as jsxs63 } from "react/jsx-runtime";
11245
+ var Popover = forwardRef78(
10310
11246
  (props, ref) => {
10311
11247
  const {
10312
11248
  title,
@@ -10318,7 +11254,7 @@ var Popover = forwardRef77(
10318
11254
  anchorElement,
10319
11255
  children,
10320
11256
  placement = "bottom",
10321
- offset = ddsTokens15.ddsSpacingX05NumberPx,
11257
+ offset = ddsTokens16.ddsSpacingX05NumberPx,
10322
11258
  sizeProps,
10323
11259
  id,
10324
11260
  className,
@@ -10346,7 +11282,7 @@ var Popover = forwardRef77(
10346
11282
  useOnClickOutside(elements, () => {
10347
11283
  if (isOpen) onClose && onClose();
10348
11284
  });
10349
- return isOpen || hasTransitionedIn ? /* @__PURE__ */ jsxs62(
11285
+ return isOpen || hasTransitionedIn ? /* @__PURE__ */ jsxs63(
10350
11286
  Paper,
10351
11287
  {
10352
11288
  ...getBaseHTMLProps(
@@ -10368,15 +11304,15 @@ var Popover = forwardRef77(
10368
11304
  elevation: 3,
10369
11305
  border: "subtle",
10370
11306
  children: [
10371
- title && /* @__PURE__ */ jsx266("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ jsx266(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
10372
- /* @__PURE__ */ jsx266(
11307
+ title && /* @__PURE__ */ jsx267("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ jsx267(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
11308
+ /* @__PURE__ */ jsx267(
10373
11309
  "div",
10374
11310
  {
10375
11311
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
10376
11312
  children
10377
11313
  }
10378
11314
  ),
10379
- withCloseButton && /* @__PURE__ */ jsx266(
11315
+ withCloseButton && /* @__PURE__ */ jsx267(
10380
11316
  Button,
10381
11317
  {
10382
11318
  icon: CloseIcon,
@@ -10399,11 +11335,11 @@ import {
10399
11335
  Children as ReactChildren5,
10400
11336
  cloneElement as cloneElement6,
10401
11337
  isValidElement as isValidElement7,
10402
- useId as useId17,
10403
- useRef as useRef27,
10404
- useState as useState19
11338
+ useId as useId18,
11339
+ useRef as useRef28,
11340
+ useState as useState20
10405
11341
  } from "react";
10406
- import { Fragment as Fragment9, jsx as jsx267 } from "react/jsx-runtime";
11342
+ import { Fragment as Fragment9, jsx as jsx268 } from "react/jsx-runtime";
10407
11343
  var PopoverGroup = ({
10408
11344
  isOpen = false,
10409
11345
  onCloseButtonClick,
@@ -10411,8 +11347,8 @@ var PopoverGroup = ({
10411
11347
  children,
10412
11348
  popoverId
10413
11349
  }) => {
10414
- const [open, setOpen] = useState19(isOpen);
10415
- const generatedId = useId17();
11350
+ const [open, setOpen] = useState20(isOpen);
11351
+ const generatedId = useId18();
10416
11352
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
10417
11353
  const handleOnCloseButtonClick = () => {
10418
11354
  setOpen(false);
@@ -10422,8 +11358,8 @@ var PopoverGroup = ({
10422
11358
  setOpen(!open);
10423
11359
  onTriggerClick && onTriggerClick();
10424
11360
  };
10425
- const buttonRef = useRef27(null);
10426
- const popoverRef = useRef27(null);
11361
+ const buttonRef = useRef28(null);
11362
+ const popoverRef = useRef28(null);
10427
11363
  useOnKeyDown(["Esc", "Escape"], () => {
10428
11364
  var _a;
10429
11365
  if (open) {
@@ -10449,7 +11385,7 @@ var PopoverGroup = ({
10449
11385
  onClose: handleClose
10450
11386
  }));
10451
11387
  });
10452
- return /* @__PURE__ */ jsx267(Fragment9, { children: Children8 });
11388
+ return /* @__PURE__ */ jsx268(Fragment9, { children: Children8 });
10453
11389
  };
10454
11390
  PopoverGroup.displayName = "PopoverGroup";
10455
11391
 
@@ -10458,11 +11394,11 @@ import {
10458
11394
  Children as Children4,
10459
11395
  Fragment as Fragment11,
10460
11396
  cloneElement as cloneElement7,
10461
- forwardRef as forwardRef78,
11397
+ forwardRef as forwardRef79,
10462
11398
  isValidElement as isValidElement8,
10463
- useEffect as useEffect23,
11399
+ useEffect as useEffect24,
10464
11400
  useMemo as useMemo3,
10465
- useState as useState20
11401
+ useState as useState21
10466
11402
  } from "react";
10467
11403
 
10468
11404
  // src/components/ProgressTracker/ProgressTracker.context.tsx
@@ -10497,7 +11433,7 @@ var ProgressTracker_default = {
10497
11433
 
10498
11434
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
10499
11435
  import { useMemo as useMemo2 } from "react";
10500
- import { Fragment as Fragment10, jsx as jsx268, jsxs as jsxs63 } from "react/jsx-runtime";
11436
+ import { Fragment as Fragment10, jsx as jsx269, jsxs as jsxs64 } from "react/jsx-runtime";
10501
11437
  var toItemState = (active, completed, disabled) => {
10502
11438
  if (disabled) {
10503
11439
  return "disabled";
@@ -10540,15 +11476,15 @@ var ProgressTrackerItem = (props) => {
10540
11476
  };
10541
11477
  const stepNumberContent = useMemo2(() => {
10542
11478
  if (completed) {
10543
- return /* @__PURE__ */ jsx268(Icon, { icon: CheckIcon, iconSize: "small" });
11479
+ return /* @__PURE__ */ jsx269(Icon, { icon: CheckIcon, iconSize: "small" });
10544
11480
  }
10545
11481
  if (icon !== void 0) {
10546
- return /* @__PURE__ */ jsx268(Icon, { icon, iconSize: "small" });
11482
+ return /* @__PURE__ */ jsx269(Icon, { icon, iconSize: "small" });
10547
11483
  }
10548
11484
  return index + 1;
10549
11485
  }, [completed, icon, index]);
10550
- const stepContent = /* @__PURE__ */ jsxs63(Fragment10, { children: [
10551
- /* @__PURE__ */ jsx268(
11486
+ const stepContent = /* @__PURE__ */ jsxs64(Fragment10, { children: [
11487
+ /* @__PURE__ */ jsx269(
10552
11488
  "div",
10553
11489
  {
10554
11490
  "aria-hidden": true,
@@ -10560,7 +11496,7 @@ var ProgressTrackerItem = (props) => {
10560
11496
  children: stepNumberContent
10561
11497
  }
10562
11498
  ),
10563
- /* @__PURE__ */ jsxs63(
11499
+ /* @__PURE__ */ jsxs64(
10564
11500
  "div",
10565
11501
  {
10566
11502
  className: cn(
@@ -10569,13 +11505,13 @@ var ProgressTrackerItem = (props) => {
10569
11505
  typographyStyles_default["body-sans-03"]
10570
11506
  ),
10571
11507
  children: [
10572
- /* @__PURE__ */ jsx268(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
11508
+ /* @__PURE__ */ jsx269(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
10573
11509
  children
10574
11510
  ]
10575
11511
  }
10576
11512
  )
10577
11513
  ] });
10578
- return /* @__PURE__ */ jsx268("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ jsx268(
11514
+ return /* @__PURE__ */ jsx269("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ jsx269(
10579
11515
  "button",
10580
11516
  {
10581
11517
  ...getBaseHTMLProps(
@@ -10588,7 +11524,7 @@ var ProgressTrackerItem = (props) => {
10588
11524
  disabled,
10589
11525
  children: stepContent
10590
11526
  }
10591
- ) : /* @__PURE__ */ jsx268(
11527
+ ) : /* @__PURE__ */ jsx269(
10592
11528
  "div",
10593
11529
  {
10594
11530
  ...getBaseHTMLProps(
@@ -10604,9 +11540,9 @@ var ProgressTrackerItem = (props) => {
10604
11540
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
10605
11541
 
10606
11542
  // src/components/ProgressTracker/ProgressTracker.tsx
10607
- import { jsx as jsx269, jsxs as jsxs64 } from "react/jsx-runtime";
11543
+ import { jsx as jsx270, jsxs as jsxs65 } from "react/jsx-runtime";
10608
11544
  var ProgressTracker = (() => {
10609
- const Res = forwardRef78((props, ref) => {
11545
+ const Res = forwardRef79((props, ref) => {
10610
11546
  const {
10611
11547
  id,
10612
11548
  activeStep = 0,
@@ -10616,12 +11552,12 @@ var ProgressTracker = (() => {
10616
11552
  htmlProps,
10617
11553
  ...rest
10618
11554
  } = props;
10619
- const [thisActiveStep, setActiveStep] = useState20(activeStep);
11555
+ const [thisActiveStep, setActiveStep] = useState21(activeStep);
10620
11556
  const handleChange = (step) => {
10621
11557
  setActiveStep(step);
10622
11558
  onStepChange && onStepChange(step);
10623
11559
  };
10624
- useEffect23(() => {
11560
+ useEffect24(() => {
10625
11561
  if (activeStep !== void 0 && activeStep != thisActiveStep) {
10626
11562
  setActiveStep(activeStep);
10627
11563
  }
@@ -10636,14 +11572,14 @@ var ProgressTracker = (() => {
10636
11572
  const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
10637
11573
  return itemsWithConnectorsBetween;
10638
11574
  }, [children]);
10639
- return /* @__PURE__ */ jsx269(
11575
+ return /* @__PURE__ */ jsx270(
10640
11576
  ProgressTrackerContext.Provider,
10641
11577
  {
10642
11578
  value: {
10643
11579
  activeStep: thisActiveStep,
10644
11580
  handleStepChange: handleChange
10645
11581
  },
10646
- children: /* @__PURE__ */ jsx269("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx269("ol", { className: ProgressTracker_default.list, children: steps }) })
11582
+ children: /* @__PURE__ */ jsx270("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx270("ol", { className: ProgressTracker_default.list, children: steps }) })
10647
11583
  }
10648
11584
  );
10649
11585
  });
@@ -10667,14 +11603,14 @@ var intersperseItemsWithConnector = (children) => Children4.map(children, (child
10667
11603
  if (index === 0) {
10668
11604
  return child;
10669
11605
  }
10670
- return /* @__PURE__ */ jsxs64(Fragment11, { children: [
10671
- /* @__PURE__ */ jsx269("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
11606
+ return /* @__PURE__ */ jsxs65(Fragment11, { children: [
11607
+ /* @__PURE__ */ jsx270("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
10672
11608
  child
10673
11609
  ] }, index);
10674
11610
  });
10675
11611
 
10676
11612
  // src/components/ProgressBar/ProgressBar.tsx
10677
- import { forwardRef as forwardRef79, useId as useId18 } from "react";
11613
+ import { forwardRef as forwardRef80, useId as useId19 } from "react";
10678
11614
 
10679
11615
  // src/components/ProgressBar/ProgressBar.module.css
10680
11616
  var ProgressBar_default = {
@@ -10690,8 +11626,8 @@ var ProgressBar_default = {
10690
11626
  };
10691
11627
 
10692
11628
  // src/components/ProgressBar/ProgressBar.tsx
10693
- import { jsx as jsx270, jsxs as jsxs65 } from "react/jsx-runtime";
10694
- var ProgressBar = forwardRef79(
11629
+ import { jsx as jsx271, jsxs as jsxs66 } from "react/jsx-runtime";
11630
+ var ProgressBar = forwardRef80(
10695
11631
  (props, ref) => {
10696
11632
  const {
10697
11633
  label,
@@ -10707,7 +11643,7 @@ var ProgressBar = forwardRef79(
10707
11643
  style,
10708
11644
  ...rest
10709
11645
  } = props;
10710
- const generatedId = useId18();
11646
+ const generatedId = useId19();
10711
11647
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
10712
11648
  const hasErrorMessage = !!errorMessage;
10713
11649
  const hasTip = !!tip;
@@ -10725,9 +11661,9 @@ var ProgressBar = forwardRef79(
10725
11661
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
10726
11662
  ["--dds-progressbar-fill-width"]: fillPrecentage != null ? fillPrecentage : 0
10727
11663
  };
10728
- return /* @__PURE__ */ jsxs65("div", { className: cn(className, ProgressBar_default.container), style, children: [
10729
- hasLabel ? /* @__PURE__ */ jsx270(Label, { htmlFor: uniqueId, children: label }) : void 0,
10730
- /* @__PURE__ */ jsx270(
11664
+ return /* @__PURE__ */ jsxs66("div", { className: cn(className, ProgressBar_default.container), style, children: [
11665
+ hasLabel ? /* @__PURE__ */ jsx271(Label, { htmlFor: uniqueId, children: label }) : void 0,
11666
+ /* @__PURE__ */ jsx271(
10731
11667
  "progress",
10732
11668
  {
10733
11669
  ref,
@@ -10744,12 +11680,12 @@ var ProgressBar = forwardRef79(
10744
11680
  children: fillPrecentage
10745
11681
  }
10746
11682
  ),
10747
- /* @__PURE__ */ jsx270(
11683
+ /* @__PURE__ */ jsx271(
10748
11684
  "div",
10749
11685
  {
10750
11686
  style: progressStyleVariables,
10751
11687
  className: cn(ProgressBar_default.progress, ProgressBar_default[`progress--${size2}`]),
10752
- children: /* @__PURE__ */ jsx270(
11688
+ children: /* @__PURE__ */ jsx271(
10753
11689
  "div",
10754
11690
  {
10755
11691
  style: fillStyleVariables,
@@ -10771,9 +11707,9 @@ ProgressBar.displayName = "ProgressBar";
10771
11707
 
10772
11708
  // src/components/Search/Search.tsx
10773
11709
  import {
10774
- forwardRef as forwardRef82,
10775
- useId as useId19,
10776
- useState as useState21
11710
+ forwardRef as forwardRef83,
11711
+ useId as useId20,
11712
+ useState as useState22
10777
11713
  } from "react";
10778
11714
 
10779
11715
  // src/components/Search/AutocompleteSearch.context.tsx
@@ -10833,26 +11769,26 @@ function createEmptyChangeEvent(inputElementId) {
10833
11769
  }
10834
11770
 
10835
11771
  // src/components/Search/SearchSuggestions.tsx
10836
- import { forwardRef as forwardRef81 } from "react";
11772
+ import { forwardRef as forwardRef82 } from "react";
10837
11773
 
10838
11774
  // src/components/Search/SearchSuggestionItem.tsx
10839
11775
  import {
10840
- forwardRef as forwardRef80,
10841
- useEffect as useEffect24,
10842
- useRef as useRef28
11776
+ forwardRef as forwardRef81,
11777
+ useEffect as useEffect25,
11778
+ useRef as useRef29
10843
11779
  } from "react";
10844
- import { jsx as jsx271 } from "react/jsx-runtime";
10845
- var SearchSuggestionItem = forwardRef80((props, ref) => {
11780
+ import { jsx as jsx272 } from "react/jsx-runtime";
11781
+ var SearchSuggestionItem = forwardRef81((props, ref) => {
10846
11782
  const { focus, className, ...rest } = props;
10847
- const itemRef = useRef28(null);
11783
+ const itemRef = useRef29(null);
10848
11784
  const combinedRef = useCombinedRef(ref, itemRef);
10849
- useEffect24(() => {
11785
+ useEffect25(() => {
10850
11786
  var _a;
10851
11787
  if (focus) {
10852
11788
  (_a = itemRef.current) == null ? void 0 : _a.focus();
10853
11789
  }
10854
11790
  }, [focus]);
10855
- return /* @__PURE__ */ jsx271(
11791
+ return /* @__PURE__ */ jsx272(
10856
11792
  "button",
10857
11793
  {
10858
11794
  ref: combinedRef,
@@ -10871,8 +11807,8 @@ var SearchSuggestionItem = forwardRef80((props, ref) => {
10871
11807
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
10872
11808
 
10873
11809
  // src/components/Search/SearchSuggestions.tsx
10874
- import { jsx as jsx272, jsxs as jsxs66 } from "react/jsx-runtime";
10875
- var SearchSuggestions = forwardRef81((props, ref) => {
11810
+ import { jsx as jsx273, jsxs as jsxs67 } from "react/jsx-runtime";
11811
+ var SearchSuggestions = forwardRef82((props, ref) => {
10876
11812
  const {
10877
11813
  id,
10878
11814
  searchId,
@@ -10891,7 +11827,7 @@ var SearchSuggestions = forwardRef81((props, ref) => {
10891
11827
  );
10892
11828
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
10893
11829
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
10894
- return /* @__PURE__ */ jsxs66(
11830
+ return /* @__PURE__ */ jsxs67(
10895
11831
  Paper,
10896
11832
  {
10897
11833
  ...getBaseHTMLProps(
@@ -10910,7 +11846,7 @@ var SearchSuggestions = forwardRef81((props, ref) => {
10910
11846
  "aria-hidden": !showSuggestions,
10911
11847
  border: "default",
10912
11848
  children: [
10913
- /* @__PURE__ */ jsx272(
11849
+ /* @__PURE__ */ jsx273(
10914
11850
  "span",
10915
11851
  {
10916
11852
  id: suggestionsHeaderId,
@@ -10921,14 +11857,14 @@ var SearchSuggestions = forwardRef81((props, ref) => {
10921
11857
  children: "S\xF8keforslag"
10922
11858
  }
10923
11859
  ),
10924
- /* @__PURE__ */ jsx272(
11860
+ /* @__PURE__ */ jsx273(
10925
11861
  "ul",
10926
11862
  {
10927
11863
  role: "listbox",
10928
11864
  "aria-labelledby": suggestionsHeaderId,
10929
11865
  className: utilStyles_default["remove-list-styling"],
10930
11866
  children: suggestionsToRender.map((suggestion, index) => {
10931
- return /* @__PURE__ */ jsx272("li", { role: "option", children: /* @__PURE__ */ jsx272(
11867
+ return /* @__PURE__ */ jsx273("li", { role: "option", children: /* @__PURE__ */ jsx273(
10932
11868
  SearchSuggestionItem,
10933
11869
  {
10934
11870
  index,
@@ -10951,7 +11887,7 @@ var SearchSuggestions = forwardRef81((props, ref) => {
10951
11887
  SearchSuggestions.displayName = "SearchSuggestions";
10952
11888
 
10953
11889
  // src/components/Search/Search.tsx
10954
- import { Fragment as Fragment12, jsx as jsx273, jsxs as jsxs67 } from "react/jsx-runtime";
11890
+ import { Fragment as Fragment12, jsx as jsx274, jsxs as jsxs68 } from "react/jsx-runtime";
10955
11891
  var getIconSize = (size2) => {
10956
11892
  switch (size2) {
10957
11893
  case "large":
@@ -10962,7 +11898,7 @@ var getIconSize = (size2) => {
10962
11898
  return "small";
10963
11899
  }
10964
11900
  };
10965
- var Search = forwardRef82(
11901
+ var Search = forwardRef83(
10966
11902
  ({
10967
11903
  componentSize = "medium",
10968
11904
  buttonProps,
@@ -10978,7 +11914,7 @@ var Search = forwardRef82(
10978
11914
  ...rest
10979
11915
  }, ref) => {
10980
11916
  var _a;
10981
- const generatedId = useId19();
11917
+ const generatedId = useId20();
10982
11918
  const uniqueId = id != null ? id : `${generatedId}-searchInput`;
10983
11919
  const hasLabel = !!label;
10984
11920
  const tipId = derivativeIdGenerator(uniqueId, "tip");
@@ -10987,7 +11923,7 @@ var Search = forwardRef82(
10987
11923
  uniqueId,
10988
11924
  "suggestions-description"
10989
11925
  );
10990
- const [hasValue, setHasValue] = useState21(!!value);
11926
+ const [hasValue, setHasValue] = useState22(!!value);
10991
11927
  const context = useAutocompleteSearch();
10992
11928
  const combinedRef = context.inputRef ? useCombinedRef(context.inputRef, ref) : ref;
10993
11929
  const handleChange = (e) => {
@@ -11006,10 +11942,10 @@ var Search = forwardRef82(
11006
11942
  } = buttonProps != null ? buttonProps : {};
11007
11943
  const hasSuggestions = !!context.suggestions;
11008
11944
  const showSearchButton = !!buttonProps && !!onClick;
11009
- return /* @__PURE__ */ jsxs67("div", { className: Search_default.container, children: [
11010
- hasLabel && /* @__PURE__ */ jsx273(Label, { htmlFor: uniqueId, children: label }),
11011
- /* @__PURE__ */ jsxs67("div", { children: [
11012
- /* @__PURE__ */ jsxs67(
11945
+ return /* @__PURE__ */ jsxs68("div", { className: Search_default.container, children: [
11946
+ hasLabel && /* @__PURE__ */ jsx274(Label, { htmlFor: uniqueId, children: label }),
11947
+ /* @__PURE__ */ jsxs68("div", { children: [
11948
+ /* @__PURE__ */ jsxs68(
11013
11949
  "div",
11014
11950
  {
11015
11951
  className: cn(
@@ -11018,16 +11954,19 @@ var Search = forwardRef82(
11018
11954
  ),
11019
11955
  style,
11020
11956
  children: [
11021
- /* @__PURE__ */ jsxs67("div", { className: Search_default["input-group"], children: [
11022
- /* @__PURE__ */ jsx273(
11957
+ /* @__PURE__ */ jsxs68("div", { className: Search_default["input-group"], children: [
11958
+ /* @__PURE__ */ jsx274(
11023
11959
  Icon,
11024
11960
  {
11025
11961
  icon: SearchIcon,
11026
11962
  iconSize: getIconSize(componentSize),
11027
- className: cn(Input_default.icon, Search_default["search-icon"])
11963
+ className: cn(
11964
+ Input_default["input-group__absolute-element"],
11965
+ Search_default["search-icon"]
11966
+ )
11028
11967
  }
11029
11968
  ),
11030
- /* @__PURE__ */ jsx273(
11969
+ /* @__PURE__ */ jsx274(
11031
11970
  Input,
11032
11971
  {
11033
11972
  ...rest,
@@ -11054,8 +11993,8 @@ var Search = forwardRef82(
11054
11993
  )
11055
11994
  }
11056
11995
  ),
11057
- hasSuggestions && /* @__PURE__ */ jsxs67(Fragment12, { children: [
11058
- /* @__PURE__ */ jsx273(
11996
+ hasSuggestions && /* @__PURE__ */ jsxs68(Fragment12, { children: [
11997
+ /* @__PURE__ */ jsx274(
11059
11998
  SearchSuggestions,
11060
11999
  {
11061
12000
  id: suggestionsId,
@@ -11067,9 +12006,9 @@ var Search = forwardRef82(
11067
12006
  componentSize
11068
12007
  }
11069
12008
  ),
11070
- /* @__PURE__ */ jsx273(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
12009
+ /* @__PURE__ */ jsx274(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
11071
12010
  ] }),
11072
- hasValue && /* @__PURE__ */ jsx273(
12011
+ hasValue && /* @__PURE__ */ jsx274(
11073
12012
  Button,
11074
12013
  {
11075
12014
  icon: CloseSmallIcon,
@@ -11081,7 +12020,7 @@ var Search = forwardRef82(
11081
12020
  }
11082
12021
  )
11083
12022
  ] }),
11084
- showSearchButton && /* @__PURE__ */ jsx273(
12023
+ showSearchButton && /* @__PURE__ */ jsx274(
11085
12024
  Button,
11086
12025
  {
11087
12026
  size: componentSize,
@@ -11102,11 +12041,11 @@ Search.displayName = "Search";
11102
12041
 
11103
12042
  // src/components/Search/SearchAutocompleteWrapper.tsx
11104
12043
  import {
11105
- useEffect as useEffect25,
11106
- useRef as useRef29,
11107
- useState as useState22
12044
+ useEffect as useEffect26,
12045
+ useRef as useRef30,
12046
+ useState as useState23
11108
12047
  } from "react";
11109
- import { jsx as jsx274 } from "react/jsx-runtime";
12048
+ import { jsx as jsx275 } from "react/jsx-runtime";
11110
12049
  var SearchAutocompleteWrapper = (props) => {
11111
12050
  const {
11112
12051
  value,
@@ -11117,12 +12056,12 @@ var SearchAutocompleteWrapper = (props) => {
11117
12056
  onSuggestionSelection,
11118
12057
  children
11119
12058
  } = props;
11120
- const [inputValue, setInputValue] = useState22(value != null ? value : "");
11121
- const [suggestions, setSuggestions] = useState22([]);
11122
- const [showSuggestions, setShowSuggestions] = useState22(false);
12059
+ const [inputValue, setInputValue] = useState23(value != null ? value : "");
12060
+ const [suggestions, setSuggestions] = useState23([]);
12061
+ const [showSuggestions, setShowSuggestions] = useState23(false);
11123
12062
  const closeSuggestions = () => showSuggestions === true && setShowSuggestions(false);
11124
12063
  const openSuggestions = () => showSuggestions === false && setShowSuggestions(true);
11125
- useEffect25(() => {
12064
+ useEffect26(() => {
11126
12065
  if (suggestions.length > 0) {
11127
12066
  openSuggestions();
11128
12067
  } else {
@@ -11167,8 +12106,8 @@ var SearchAutocompleteWrapper = (props) => {
11167
12106
  const handleSetInputValue = (value2) => {
11168
12107
  setInputValue(value2 != null ? value2 : "");
11169
12108
  };
11170
- const inputRef = useRef29(null);
11171
- const suggestionsRef = useRef29(null);
12109
+ const inputRef = useRef30(null);
12110
+ const suggestionsRef = useRef30(null);
11172
12111
  useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
11173
12112
  closeSuggestions();
11174
12113
  });
@@ -11182,7 +12121,7 @@ var SearchAutocompleteWrapper = (props) => {
11182
12121
  inputValue,
11183
12122
  onSugggestionClick: handleSuggestionClick
11184
12123
  };
11185
- return /* @__PURE__ */ jsx274(AutocompleteSearchContext.Provider, { value: contextProps, children });
12124
+ return /* @__PURE__ */ jsx275(AutocompleteSearchContext.Provider, { value: contextProps, children });
11186
12125
  };
11187
12126
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
11188
12127
 
@@ -11192,7 +12131,7 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
11192
12131
  Search2.Suggestions = SearchSuggestions;
11193
12132
 
11194
12133
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
11195
- import { forwardRef as forwardRef84, useId as useId20 } from "react";
12134
+ import { forwardRef as forwardRef85, useId as useId21 } from "react";
11196
12135
 
11197
12136
  // src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
11198
12137
  import { createContext as createContext6, useContext as useContext9 } from "react";
@@ -11203,7 +12142,7 @@ var useCheckboxGroup = () => {
11203
12142
 
11204
12143
  // src/components/SelectionControl/SelectionControl.styles.tsx
11205
12144
  import {
11206
- forwardRef as forwardRef83
12145
+ forwardRef as forwardRef84
11207
12146
  } from "react";
11208
12147
 
11209
12148
  // src/components/SelectionControl/SelectionControl.module.css
@@ -11224,10 +12163,10 @@ var SelectionControl_default = {
11224
12163
  };
11225
12164
 
11226
12165
  // src/components/SelectionControl/SelectionControl.styles.tsx
11227
- import { jsx as jsx275 } from "react/jsx-runtime";
11228
- var SelectionControl = forwardRef83((props, ref) => {
12166
+ import { jsx as jsx276 } from "react/jsx-runtime";
12167
+ var SelectionControl = forwardRef84((props, ref) => {
11229
12168
  const { controlType, className, ...rest } = props;
11230
- return /* @__PURE__ */ jsx275(
12169
+ return /* @__PURE__ */ jsx276(
11231
12170
  "span",
11232
12171
  {
11233
12172
  ref,
@@ -11240,7 +12179,7 @@ var SelectionControl = forwardRef83((props, ref) => {
11240
12179
  }
11241
12180
  );
11242
12181
  });
11243
- var Label2 = forwardRef83(
12182
+ var Label2 = forwardRef84(
11244
12183
  (props, ref) => {
11245
12184
  const {
11246
12185
  disabled,
@@ -11251,7 +12190,7 @@ var Label2 = forwardRef83(
11251
12190
  className,
11252
12191
  ...rest
11253
12192
  } = props;
11254
- return /* @__PURE__ */ jsx275(
12193
+ return /* @__PURE__ */ jsx276(
11255
12194
  "label",
11256
12195
  {
11257
12196
  ref,
@@ -11282,8 +12221,8 @@ var selectionControlTypographyProps = {
11282
12221
  };
11283
12222
 
11284
12223
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
11285
- import { jsx as jsx276, jsxs as jsxs68 } from "react/jsx-runtime";
11286
- var Checkbox = forwardRef84(
12224
+ import { jsx as jsx277, jsxs as jsxs69 } from "react/jsx-runtime";
12225
+ var Checkbox = forwardRef85(
11287
12226
  (props, ref) => {
11288
12227
  const {
11289
12228
  id,
@@ -11298,7 +12237,7 @@ var Checkbox = forwardRef84(
11298
12237
  htmlProps = {},
11299
12238
  ...rest
11300
12239
  } = props;
11301
- const generatedId = useId20();
12240
+ const generatedId = useId21();
11302
12241
  const uniqueId = id != null ? id : `${generatedId}-checkbox`;
11303
12242
  const checkboxGroup = useCheckboxGroup();
11304
12243
  const hasLabel = !!label;
@@ -11310,7 +12249,7 @@ var Checkbox = forwardRef84(
11310
12249
  const isReadOnly = readOnly || (checkboxGroup == null ? void 0 : checkboxGroup.readOnly);
11311
12250
  const hasError = error || (checkboxGroup == null ? void 0 : checkboxGroup.error);
11312
12251
  const isDisabled = disabled || (checkboxGroup == null ? void 0 : checkboxGroup.disabled);
11313
- return /* @__PURE__ */ jsxs68(
12252
+ return /* @__PURE__ */ jsxs69(
11314
12253
  Label2,
11315
12254
  {
11316
12255
  hasError,
@@ -11322,7 +12261,7 @@ var Checkbox = forwardRef84(
11322
12261
  className: cn(className, htmlPropsClassName),
11323
12262
  style,
11324
12263
  children: [
11325
- /* @__PURE__ */ jsx276(
12264
+ /* @__PURE__ */ jsx277(
11326
12265
  "input",
11327
12266
  {
11328
12267
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -11352,14 +12291,14 @@ var Checkbox = forwardRef84(
11352
12291
  onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
11353
12292
  }
11354
12293
  ),
11355
- /* @__PURE__ */ jsx276(
12294
+ /* @__PURE__ */ jsx277(
11356
12295
  SelectionControl,
11357
12296
  {
11358
12297
  controlType: "checkbox",
11359
12298
  className: focus_default["focus-styled-sibling"]
11360
12299
  }
11361
12300
  ),
11362
- hasLabel && /* @__PURE__ */ jsx276(Typography, { ...selectionControlTypographyProps, children: label })
12301
+ hasLabel && /* @__PURE__ */ jsx277(Typography, { ...selectionControlTypographyProps, children: label })
11363
12302
  ]
11364
12303
  }
11365
12304
  );
@@ -11368,8 +12307,8 @@ var Checkbox = forwardRef84(
11368
12307
  Checkbox.displayName = "Checkbox";
11369
12308
 
11370
12309
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
11371
- import { useId as useId21 } from "react";
11372
- import { jsx as jsx277, jsxs as jsxs69 } from "react/jsx-runtime";
12310
+ import { useId as useId22 } from "react";
12311
+ import { jsx as jsx278, jsxs as jsxs70 } from "react/jsx-runtime";
11373
12312
  var CheckboxGroup = (props) => {
11374
12313
  const {
11375
12314
  label,
@@ -11387,7 +12326,7 @@ var CheckboxGroup = (props) => {
11387
12326
  ...rest
11388
12327
  } = props;
11389
12328
  const { "aria-required": ariaRequired } = htmlProps;
11390
- const generatedId = useId21();
12329
+ const generatedId = useId22();
11391
12330
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
11392
12331
  const hasErrorMessage = !!errorMessage;
11393
12332
  const showRequiredMarker = required || ariaRequired;
@@ -11401,7 +12340,7 @@ var CheckboxGroup = (props) => {
11401
12340
  disabled,
11402
12341
  readOnly
11403
12342
  };
11404
- return /* @__PURE__ */ jsxs69(
12343
+ return /* @__PURE__ */ jsxs70(
11405
12344
  "div",
11406
12345
  {
11407
12346
  ...getBaseHTMLProps(
@@ -11411,7 +12350,7 @@ var CheckboxGroup = (props) => {
11411
12350
  rest
11412
12351
  ),
11413
12352
  children: [
11414
- /* @__PURE__ */ jsxs69(
12353
+ /* @__PURE__ */ jsxs70(
11415
12354
  Typography,
11416
12355
  {
11417
12356
  as: "span",
@@ -11419,15 +12358,15 @@ var CheckboxGroup = (props) => {
11419
12358
  id: uniqueGroupId,
11420
12359
  className: readOnly ? Label_default["read-only"] : void 0,
11421
12360
  children: [
11422
- readOnly && /* @__PURE__ */ jsx277(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
12361
+ readOnly && /* @__PURE__ */ jsx278(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11423
12362
  label,
11424
12363
  " ",
11425
- showRequiredMarker && /* @__PURE__ */ jsx277(RequiredMarker, {})
12364
+ showRequiredMarker && /* @__PURE__ */ jsx278(RequiredMarker, {})
11426
12365
  ]
11427
12366
  }
11428
12367
  ),
11429
12368
  renderInputMessage(tip, tipId),
11430
- /* @__PURE__ */ jsx277(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx277(
12369
+ /* @__PURE__ */ jsx278(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx278(
11431
12370
  "div",
11432
12371
  {
11433
12372
  role: "group",
@@ -11445,7 +12384,7 @@ var CheckboxGroup = (props) => {
11445
12384
  CheckboxGroup.displayName = "CheckboxGroup";
11446
12385
 
11447
12386
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
11448
- import { forwardRef as forwardRef85, useId as useId22 } from "react";
12387
+ import { forwardRef as forwardRef86, useId as useId23 } from "react";
11449
12388
 
11450
12389
  // src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
11451
12390
  import { createContext as createContext7, useContext as useContext10 } from "react";
@@ -11455,7 +12394,7 @@ var useRadioButtonGroup = () => {
11455
12394
  };
11456
12395
 
11457
12396
  // src/components/SelectionControl/RadioButton/RadioButton.tsx
11458
- import { jsx as jsx278, jsxs as jsxs70 } from "react/jsx-runtime";
12397
+ import { jsx as jsx279, jsxs as jsxs71 } from "react/jsx-runtime";
11459
12398
  var isValueEqualToGroupValueOrFalsy = (value, group) => {
11460
12399
  if (typeof value !== "undefined" && value !== null && group) {
11461
12400
  if (typeof value === "number") {
@@ -11465,7 +12404,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group) => {
11465
12404
  }
11466
12405
  return !!value;
11467
12406
  };
11468
- var RadioButton = forwardRef85(
12407
+ var RadioButton = forwardRef86(
11469
12408
  (props, ref) => {
11470
12409
  const {
11471
12410
  id,
@@ -11489,7 +12428,7 @@ var RadioButton = forwardRef85(
11489
12428
  style,
11490
12429
  ...restHtmlProps
11491
12430
  } = htmlProps;
11492
- const generatedId = useId22();
12431
+ const generatedId = useId23();
11493
12432
  const uniqueId = id != null ? id : `${generatedId}-radioButton`;
11494
12433
  const hasLabel = !!label;
11495
12434
  const radioButtonGroup = useRadioButtonGroup();
@@ -11504,7 +12443,7 @@ var RadioButton = forwardRef85(
11504
12443
  const isReadOnly = readOnly || (radioButtonGroup == null ? void 0 : radioButtonGroup.readOnly);
11505
12444
  const isDisabled = disabled || (radioButtonGroup == null ? void 0 : radioButtonGroup.disabled);
11506
12445
  const hasError = error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error);
11507
- return /* @__PURE__ */ jsxs70(
12446
+ return /* @__PURE__ */ jsxs71(
11508
12447
  Label2,
11509
12448
  {
11510
12449
  hasError,
@@ -11516,7 +12455,7 @@ var RadioButton = forwardRef85(
11516
12455
  htmlFor: uniqueId,
11517
12456
  controlType: "radio",
11518
12457
  children: [
11519
- /* @__PURE__ */ jsx278(
12458
+ /* @__PURE__ */ jsx279(
11520
12459
  "input",
11521
12460
  {
11522
12461
  ...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
@@ -11542,14 +12481,14 @@ var RadioButton = forwardRef85(
11542
12481
  onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
11543
12482
  }
11544
12483
  ),
11545
- /* @__PURE__ */ jsx278(
12484
+ /* @__PURE__ */ jsx279(
11546
12485
  SelectionControl,
11547
12486
  {
11548
12487
  controlType: "radio",
11549
12488
  className: focus_default["focus-styled-sibling"]
11550
12489
  }
11551
12490
  ),
11552
- /* @__PURE__ */ jsx278(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
12491
+ /* @__PURE__ */ jsx279(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
11553
12492
  ]
11554
12493
  }
11555
12494
  );
@@ -11559,11 +12498,11 @@ RadioButton.displayName = "RadioButton";
11559
12498
 
11560
12499
  // src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
11561
12500
  import {
11562
- forwardRef as forwardRef86,
11563
- useId as useId23,
11564
- useState as useState23
12501
+ forwardRef as forwardRef87,
12502
+ useId as useId24,
12503
+ useState as useState24
11565
12504
  } from "react";
11566
- import { jsx as jsx279, jsxs as jsxs71 } from "react/jsx-runtime";
12505
+ import { jsx as jsx280, jsxs as jsxs72 } from "react/jsx-runtime";
11567
12506
  var RadioButtonGroupInner = (props, ref) => {
11568
12507
  const {
11569
12508
  name,
@@ -11584,8 +12523,8 @@ var RadioButtonGroupInner = (props, ref) => {
11584
12523
  ...rest
11585
12524
  } = props;
11586
12525
  const { "aria-required": ariaRequired = false } = htmlProps;
11587
- const [groupValue, setGroupValue] = useState23(value);
11588
- const generatedId = useId23();
12526
+ const [groupValue, setGroupValue] = useState24(value);
12527
+ const generatedId = useId24();
11589
12528
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-radioButtonGroup`;
11590
12529
  const handleChange = combineHandlers(
11591
12530
  (e) => setGroupValue(e.target.value),
@@ -11605,7 +12544,7 @@ var RadioButtonGroupInner = (props, ref) => {
11605
12544
  value: groupValue,
11606
12545
  onChange: handleChange
11607
12546
  };
11608
- return /* @__PURE__ */ jsxs71(
12547
+ return /* @__PURE__ */ jsxs72(
11609
12548
  "div",
11610
12549
  {
11611
12550
  ...getBaseHTMLProps(
@@ -11616,7 +12555,7 @@ var RadioButtonGroupInner = (props, ref) => {
11616
12555
  ),
11617
12556
  ref,
11618
12557
  children: [
11619
- /* @__PURE__ */ jsxs71(
12558
+ /* @__PURE__ */ jsxs72(
11620
12559
  Typography,
11621
12560
  {
11622
12561
  as: "span",
@@ -11624,15 +12563,15 @@ var RadioButtonGroupInner = (props, ref) => {
11624
12563
  id: uniqueGroupId,
11625
12564
  className: readOnly ? Label_default["read-only"] : void 0,
11626
12565
  children: [
11627
- readOnly && /* @__PURE__ */ jsx279(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
12566
+ readOnly && /* @__PURE__ */ jsx280(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11628
12567
  label,
11629
12568
  " ",
11630
- showRequiredMarker && /* @__PURE__ */ jsx279(RequiredMarker, {})
12569
+ showRequiredMarker && /* @__PURE__ */ jsx280(RequiredMarker, {})
11631
12570
  ]
11632
12571
  }
11633
12572
  ),
11634
12573
  renderInputMessage(tip, tipId),
11635
- /* @__PURE__ */ jsx279(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx279(
12574
+ /* @__PURE__ */ jsx280(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx280(
11636
12575
  "div",
11637
12576
  {
11638
12577
  role: "radiogroup",
@@ -11648,11 +12587,11 @@ var RadioButtonGroupInner = (props, ref) => {
11648
12587
  }
11649
12588
  );
11650
12589
  };
11651
- var RadioButtonGroup = forwardRef86(RadioButtonGroupInner);
12590
+ var RadioButtonGroup = forwardRef87(RadioButtonGroupInner);
11652
12591
  RadioButtonGroup.displayName = "RadioButtonGroup";
11653
12592
 
11654
12593
  // src/components/Skeleton/Skeleton.tsx
11655
- import { forwardRef as forwardRef87 } from "react";
12594
+ import { forwardRef as forwardRef88 } from "react";
11656
12595
 
11657
12596
  // src/components/Skeleton/Skeleton.module.css
11658
12597
  var Skeleton_default = {
@@ -11661,8 +12600,8 @@ var Skeleton_default = {
11661
12600
  };
11662
12601
 
11663
12602
  // src/components/Skeleton/Skeleton.tsx
11664
- import { jsx as jsx280 } from "react/jsx-runtime";
11665
- var Skeleton = forwardRef87(
12603
+ import { jsx as jsx281 } from "react/jsx-runtime";
12604
+ var Skeleton = forwardRef88(
11666
12605
  (props, ref) => {
11667
12606
  const {
11668
12607
  width,
@@ -11672,7 +12611,7 @@ var Skeleton = forwardRef87(
11672
12611
  style,
11673
12612
  ...rest
11674
12613
  } = props;
11675
- return /* @__PURE__ */ jsx280(
12614
+ return /* @__PURE__ */ jsx281(
11676
12615
  "div",
11677
12616
  {
11678
12617
  ref,
@@ -11686,7 +12625,7 @@ var Skeleton = forwardRef87(
11686
12625
  Skeleton.displayName = "Skeleton";
11687
12626
 
11688
12627
  // src/components/SkipToContent/SkipToContent.tsx
11689
- import { forwardRef as forwardRef88 } from "react";
12628
+ import { forwardRef as forwardRef89 } from "react";
11690
12629
 
11691
12630
  // src/components/SkipToContent/SkipToContent.module.css
11692
12631
  var SkipToContent_default = {
@@ -11694,8 +12633,8 @@ var SkipToContent_default = {
11694
12633
  };
11695
12634
 
11696
12635
  // src/components/SkipToContent/SkipToContent.tsx
11697
- import { jsx as jsx281 } from "react/jsx-runtime";
11698
- var SkipToContent = forwardRef88(
12636
+ import { jsx as jsx282 } from "react/jsx-runtime";
12637
+ var SkipToContent = forwardRef89(
11699
12638
  (props, ref) => {
11700
12639
  const {
11701
12640
  text = "Til hovedinnhold",
@@ -11710,12 +12649,12 @@ var SkipToContent = forwardRef88(
11710
12649
  style,
11711
12650
  ...restHtmlProps
11712
12651
  } = htmlProps;
11713
- return /* @__PURE__ */ jsx281(
12652
+ return /* @__PURE__ */ jsx282(
11714
12653
  Contrast,
11715
12654
  {
11716
12655
  className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
11717
12656
  style: { ...style, top },
11718
- children: /* @__PURE__ */ jsx281(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), ref, children: text })
12657
+ children: /* @__PURE__ */ jsx282(Link, { ...getBaseHTMLProps(id, restHtmlProps, rest), ref, children: text })
11719
12658
  }
11720
12659
  );
11721
12660
  }
@@ -11723,7 +12662,7 @@ var SkipToContent = forwardRef88(
11723
12662
  SkipToContent.displayName = "SkipToContent";
11724
12663
 
11725
12664
  // src/components/SplitButton/SplitButton.tsx
11726
- import { forwardRef as forwardRef89, useState as useState24 } from "react";
12665
+ import { forwardRef as forwardRef90, useState as useState25 } from "react";
11727
12666
 
11728
12667
  // src/components/SplitButton/SplitButton.module.css
11729
12668
  var SplitButton_default = {
@@ -11734,8 +12673,8 @@ var SplitButton_default = {
11734
12673
  };
11735
12674
 
11736
12675
  // src/components/SplitButton/SplitButton.tsx
11737
- import { jsx as jsx282, jsxs as jsxs72 } from "react/jsx-runtime";
11738
- var SplitButton = forwardRef89(
12676
+ import { jsx as jsx283, jsxs as jsxs73 } from "react/jsx-runtime";
12677
+ var SplitButton = forwardRef90(
11739
12678
  (props, ref) => {
11740
12679
  const {
11741
12680
  size: size2,
@@ -11745,13 +12684,13 @@ var SplitButton = forwardRef89(
11745
12684
  className,
11746
12685
  ...rest
11747
12686
  } = props;
11748
- const [isOpen, setIsOpen] = useState24(false);
12687
+ const [isOpen, setIsOpen] = useState25(false);
11749
12688
  const buttonStyleProps = {
11750
12689
  purpose,
11751
12690
  size: size2
11752
12691
  };
11753
- return /* @__PURE__ */ jsxs72("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
11754
- /* @__PURE__ */ jsx282(
12692
+ return /* @__PURE__ */ jsxs73("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
12693
+ /* @__PURE__ */ jsx283(
11755
12694
  Button,
11756
12695
  {
11757
12696
  ...buttonStyleProps,
@@ -11760,8 +12699,8 @@ var SplitButton = forwardRef89(
11760
12699
  className: SplitButton_default.main
11761
12700
  }
11762
12701
  ),
11763
- /* @__PURE__ */ jsxs72(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
11764
- /* @__PURE__ */ jsx282(
12702
+ /* @__PURE__ */ jsxs73(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
12703
+ /* @__PURE__ */ jsx283(
11765
12704
  Button,
11766
12705
  {
11767
12706
  ...buttonStyleProps,
@@ -11774,7 +12713,7 @@ var SplitButton = forwardRef89(
11774
12713
  )
11775
12714
  }
11776
12715
  ),
11777
- /* @__PURE__ */ jsx282(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx282(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx282(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
12716
+ /* @__PURE__ */ jsx283(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx283(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ jsx283(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
11778
12717
  ] })
11779
12718
  ] });
11780
12719
  }
@@ -11786,10 +12725,10 @@ import {
11786
12725
  Children as Children5,
11787
12726
  Fragment as Fragment13,
11788
12727
  cloneElement as cloneElement8,
11789
- forwardRef as forwardRef97,
12728
+ forwardRef as forwardRef98,
11790
12729
  isValidElement as isValidElement9,
11791
- useEffect as useEffect27,
11792
- useState as useState26
12730
+ useEffect as useEffect28,
12731
+ useState as useState27
11793
12732
  } from "react";
11794
12733
 
11795
12734
  // src/components/Table/collapsible/Table.context.tsx
@@ -11801,30 +12740,30 @@ var CollapsibleTableContext = createContext8({
11801
12740
  var useCollapsibleTableContext = () => useContext11(CollapsibleTableContext);
11802
12741
 
11803
12742
  // src/components/Table/normal/Body.tsx
11804
- import { forwardRef as forwardRef90 } from "react";
11805
- import { jsx as jsx283 } from "react/jsx-runtime";
11806
- var Body = forwardRef90(
12743
+ import { forwardRef as forwardRef91 } from "react";
12744
+ import { jsx as jsx284 } from "react/jsx-runtime";
12745
+ var Body = forwardRef91(
11807
12746
  (props, ref) => {
11808
- return /* @__PURE__ */ jsx283("tbody", { ref, ...props });
12747
+ return /* @__PURE__ */ jsx284("tbody", { ref, ...props });
11809
12748
  }
11810
12749
  );
11811
12750
  Body.displayName = "Table.Body";
11812
12751
 
11813
12752
  // src/components/Table/normal/Cell.tsx
11814
12753
  import {
11815
- forwardRef as forwardRef92
12754
+ forwardRef as forwardRef93
11816
12755
  } from "react";
11817
12756
 
11818
12757
  // src/components/Table/normal/Head.tsx
11819
12758
  import {
11820
12759
  createContext as createContext9,
11821
- forwardRef as forwardRef91,
12760
+ forwardRef as forwardRef92,
11822
12761
  useContext as useContext12
11823
12762
  } from "react";
11824
- import { jsx as jsx284 } from "react/jsx-runtime";
11825
- var Head = forwardRef91(
12763
+ import { jsx as jsx285 } from "react/jsx-runtime";
12764
+ var Head = forwardRef92(
11826
12765
  ({ children, ...rest }, ref) => {
11827
- return /* @__PURE__ */ jsx284("thead", { ref, ...rest, children: /* @__PURE__ */ jsx284(HeadContext.Provider, { value: true, children }) });
12766
+ return /* @__PURE__ */ jsx285("thead", { ref, ...rest, children: /* @__PURE__ */ jsx285(HeadContext.Provider, { value: true, children }) });
11828
12767
  }
11829
12768
  );
11830
12769
  Head.displayName = "Table.Head";
@@ -11860,8 +12799,8 @@ var Table_default = {
11860
12799
  };
11861
12800
 
11862
12801
  // src/components/Table/normal/Cell.tsx
11863
- import { jsx as jsx285 } from "react/jsx-runtime";
11864
- var Cell = forwardRef92(
12802
+ import { jsx as jsx286 } from "react/jsx-runtime";
12803
+ var Cell = forwardRef93(
11865
12804
  ({
11866
12805
  children,
11867
12806
  type: _type,
@@ -11874,7 +12813,7 @@ var Cell = forwardRef92(
11874
12813
  const type = _type != null ? _type : isInHead ? "head" : "data";
11875
12814
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
11876
12815
  const isComplexLayout = layout === "text and icon";
11877
- return isCollapsibleChild ? /* @__PURE__ */ jsx285(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx285(
12816
+ return isCollapsibleChild ? /* @__PURE__ */ jsx286(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx286(
11878
12817
  "th",
11879
12818
  {
11880
12819
  ref,
@@ -11884,15 +12823,15 @@ var Cell = forwardRef92(
11884
12823
  !isComplexLayout && Table_default[`cell--${layout}`],
11885
12824
  Table_default["cell--head"]
11886
12825
  ),
11887
- children: isComplexLayout ? /* @__PURE__ */ jsx285("div", { className: Table_default.cell__inner, children }) : children
12826
+ children: isComplexLayout ? /* @__PURE__ */ jsx286("div", { className: Table_default.cell__inner, children }) : children
11888
12827
  }
11889
- ) : /* @__PURE__ */ jsx285(
12828
+ ) : /* @__PURE__ */ jsx286(
11890
12829
  "td",
11891
12830
  {
11892
12831
  ref,
11893
12832
  ...rest,
11894
12833
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
11895
- children: isComplexLayout ? /* @__PURE__ */ jsx285("div", { className: Table_default.cell__inner, children }) : children
12834
+ children: isComplexLayout ? /* @__PURE__ */ jsx286("div", { className: Table_default.cell__inner, children }) : children
11896
12835
  }
11897
12836
  );
11898
12837
  }
@@ -11900,23 +12839,23 @@ var Cell = forwardRef92(
11900
12839
  Cell.displayName = "Table.Cell";
11901
12840
 
11902
12841
  // src/components/Table/normal/Foot.tsx
11903
- import { forwardRef as forwardRef93 } from "react";
11904
- import { jsx as jsx286 } from "react/jsx-runtime";
11905
- var Foot = forwardRef93(
12842
+ import { forwardRef as forwardRef94 } from "react";
12843
+ import { jsx as jsx287 } from "react/jsx-runtime";
12844
+ var Foot = forwardRef94(
11906
12845
  (props, ref) => {
11907
- return /* @__PURE__ */ jsx286("tfoot", { ref, ...props });
12846
+ return /* @__PURE__ */ jsx287("tfoot", { ref, ...props });
11908
12847
  }
11909
12848
  );
11910
12849
  Foot.displayName = "Table.Foot";
11911
12850
 
11912
12851
  // src/components/Table/normal/Row.tsx
11913
- import { forwardRef as forwardRef94 } from "react";
11914
- import { jsx as jsx287 } from "react/jsx-runtime";
11915
- var Row = forwardRef94(
12852
+ import { forwardRef as forwardRef95 } from "react";
12853
+ import { jsx as jsx288 } from "react/jsx-runtime";
12854
+ var Row = forwardRef95(
11916
12855
  ({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
11917
12856
  const isInHeader = useIsInTableHead();
11918
12857
  const type = _type != null ? _type : isInHeader ? "head" : "body";
11919
- return /* @__PURE__ */ jsx287(
12858
+ return /* @__PURE__ */ jsx288(
11920
12859
  "tr",
11921
12860
  {
11922
12861
  ref,
@@ -11939,23 +12878,23 @@ var Row = forwardRef94(
11939
12878
  Row.displayName = "Table.Row";
11940
12879
 
11941
12880
  // src/components/Table/normal/SortCell.tsx
11942
- import { forwardRef as forwardRef95 } from "react";
11943
- import { jsx as jsx288, jsxs as jsxs73 } from "react/jsx-runtime";
12881
+ import { forwardRef as forwardRef96 } from "react";
12882
+ import { jsx as jsx289, jsxs as jsxs74 } from "react/jsx-runtime";
11944
12883
  var makeSortIcon = (isSorted, sortOrder) => {
11945
12884
  if (!isSorted || !sortOrder) {
11946
- return /* @__PURE__ */ jsx288(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
12885
+ return /* @__PURE__ */ jsx289(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
11947
12886
  }
11948
- return sortOrder === "ascending" ? /* @__PURE__ */ jsx288(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx288(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
12887
+ return sortOrder === "ascending" ? /* @__PURE__ */ jsx289(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx289(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
11949
12888
  };
11950
- var SortCell = forwardRef95(
11951
- ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx288(
12889
+ var SortCell = forwardRef96(
12890
+ ({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx289(
11952
12891
  Cell,
11953
12892
  {
11954
12893
  ref,
11955
12894
  type: "head",
11956
12895
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
11957
12896
  ...rest,
11958
- children: /* @__PURE__ */ jsxs73(
12897
+ children: /* @__PURE__ */ jsxs74(
11959
12898
  "button",
11960
12899
  {
11961
12900
  onClick,
@@ -11979,8 +12918,8 @@ var SortCell = forwardRef95(
11979
12918
  SortCell.displayName = "Table.SortCell";
11980
12919
 
11981
12920
  // src/components/Table/normal/Table.tsx
11982
- import { forwardRef as forwardRef96 } from "react";
11983
- import { jsx as jsx289 } from "react/jsx-runtime";
12921
+ import { forwardRef as forwardRef97 } from "react";
12922
+ import { jsx as jsx290 } from "react/jsx-runtime";
11984
12923
  function getDensityCn2(value) {
11985
12924
  switch (value) {
11986
12925
  case "normal":
@@ -11990,7 +12929,7 @@ function getDensityCn2(value) {
11990
12929
  return "extra-compact";
11991
12930
  }
11992
12931
  }
11993
- var Table = forwardRef96(
12932
+ var Table = forwardRef97(
11994
12933
  ({
11995
12934
  density = "normal",
11996
12935
  stickyHeader,
@@ -11999,7 +12938,7 @@ var Table = forwardRef96(
11999
12938
  children,
12000
12939
  ...rest
12001
12940
  }, ref) => {
12002
- return /* @__PURE__ */ jsx289(
12941
+ return /* @__PURE__ */ jsx290(
12003
12942
  "table",
12004
12943
  {
12005
12944
  ref,
@@ -12020,30 +12959,30 @@ var Table = forwardRef96(
12020
12959
  Table.displayName = "Table";
12021
12960
 
12022
12961
  // src/components/Table/normal/TableWrapper.tsx
12023
- import { useEffect as useEffect26, useRef as useRef30, useState as useState25 } from "react";
12024
- import { jsx as jsx290 } from "react/jsx-runtime";
12962
+ import { useEffect as useEffect27, useRef as useRef31, useState as useState26 } from "react";
12963
+ import { jsx as jsx291 } from "react/jsx-runtime";
12025
12964
  var TableWrapper = ({ className, ...rest }) => {
12026
- const [overflowX, setOverflowX] = useState25(false);
12027
- const [windowWidth, setWindowWidth] = useState25(window.innerWidth);
12965
+ const [overflowX, setOverflowX] = useState26(false);
12966
+ const [windowWidth, setWindowWidth] = useState26(window.innerWidth);
12028
12967
  function isOverflowingX(event) {
12029
12968
  return event.offsetWidth < event.scrollWidth;
12030
12969
  }
12031
- const wrapperRef = useRef30(null);
12032
- useEffect26(() => {
12970
+ const wrapperRef = useRef31(null);
12971
+ useEffect27(() => {
12033
12972
  if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
12034
12973
  setOverflowX(true);
12035
12974
  return;
12036
12975
  }
12037
12976
  setOverflowX(false);
12038
12977
  }, [windowWidth]);
12039
- useEffect26(() => {
12978
+ useEffect27(() => {
12040
12979
  function handleResize() {
12041
12980
  setWindowWidth(window.innerWidth);
12042
12981
  }
12043
12982
  window.addEventListener("resize", handleResize);
12044
12983
  return () => window.removeEventListener("resize", handleResize);
12045
12984
  });
12046
- return /* @__PURE__ */ jsx290(
12985
+ return /* @__PURE__ */ jsx291(
12047
12986
  "div",
12048
12987
  {
12049
12988
  ref: wrapperRef,
@@ -12070,8 +13009,8 @@ Table2.Row = Row;
12070
13009
  Table2.Foot = Foot;
12071
13010
 
12072
13011
  // src/components/Table/collapsible/CollapsibleRow.tsx
12073
- import { Fragment as Fragment14, jsx as jsx291, jsxs as jsxs74 } from "react/jsx-runtime";
12074
- var CollapsibleRow = forwardRef97(
13012
+ import { Fragment as Fragment14, jsx as jsx292, jsxs as jsxs75 } from "react/jsx-runtime";
13013
+ var CollapsibleRow = forwardRef98(
12075
13014
  ({
12076
13015
  type: _type,
12077
13016
  className,
@@ -12084,8 +13023,8 @@ var CollapsibleRow = forwardRef97(
12084
13023
  const isInHead = useIsInTableHead();
12085
13024
  const type = _type != null ? _type : isInHead ? "head" : "body";
12086
13025
  const { isCollapsed, headerValues, definingColumnIndex } = useCollapsibleTableContext();
12087
- const [childrenCollapsed, setChildrenCollapsed] = useState26(true);
12088
- useEffect27(() => {
13026
+ const [childrenCollapsed, setChildrenCollapsed] = useState27(true);
13027
+ useEffect28(() => {
12089
13028
  !isCollapsed && setChildrenCollapsed(true);
12090
13029
  }, [isCollapsed]);
12091
13030
  const rowProps = (isOpenCollapsibleHeader) => {
@@ -12112,33 +13051,33 @@ var CollapsibleRow = forwardRef97(
12112
13051
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
12113
13052
  const id = derivativeIdGenerator(prefix3, index.toString());
12114
13053
  collapsibleIds.push(id);
12115
- return /* @__PURE__ */ jsxs74(Fragment13, { children: [
12116
- /* @__PURE__ */ jsx291(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
13054
+ return /* @__PURE__ */ jsxs75(Fragment13, { children: [
13055
+ /* @__PURE__ */ jsx292(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
12117
13056
  isValidElement9(child) && cloneElement8(child, {
12118
13057
  collapsibleProps: { isCollapsibleChild: true }
12119
13058
  })
12120
13059
  ] }, `DL-${index}`);
12121
13060
  }) : null;
12122
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx291(Row, { ...rowProps(), children: /* @__PURE__ */ jsx291(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx291(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
13061
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx292(Row, { ...rowProps(), children: /* @__PURE__ */ jsx292(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx292(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
12123
13062
  const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
12124
13063
  return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
12125
13064
  });
12126
13065
  const headerRow = () => {
12127
13066
  if (type !== "head" || !isCollapsed) return null;
12128
- return /* @__PURE__ */ jsx291(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs74(Fragment14, { children: [
13067
+ return /* @__PURE__ */ jsx292(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs75(Fragment14, { children: [
12129
13068
  definingColumnCells,
12130
- /* @__PURE__ */ jsxs74(Table2.Cell, { type: "head", layout: "center", children: [
13069
+ /* @__PURE__ */ jsxs75(Table2.Cell, { type: "head", layout: "center", children: [
12131
13070
  "Utvid",
12132
- /* @__PURE__ */ jsx291(VisuallyHidden, { as: "span", children: "raden" })
13071
+ /* @__PURE__ */ jsx292(VisuallyHidden, { as: "span", children: "raden" })
12133
13072
  ] })
12134
13073
  ] }) });
12135
13074
  };
12136
13075
  const idList = spaceSeparatedIdListGenerator(collapsibleIds);
12137
13076
  const rowWithChevron = () => {
12138
13077
  if (type !== "body" || !isCollapsed) return null;
12139
- return /* @__PURE__ */ jsxs74(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
13078
+ return /* @__PURE__ */ jsxs75(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
12140
13079
  definingColumnCells,
12141
- /* @__PURE__ */ jsx291(Table2.Cell, { children: /* @__PURE__ */ jsx291(
13080
+ /* @__PURE__ */ jsx292(Table2.Cell, { children: /* @__PURE__ */ jsx292(
12142
13081
  "button",
12143
13082
  {
12144
13083
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
@@ -12150,7 +13089,7 @@ var CollapsibleRow = forwardRef97(
12150
13089
  utilStyles_default["remove-button-styling"],
12151
13090
  focusable
12152
13091
  ),
12153
- children: /* @__PURE__ */ jsx291(
13092
+ children: /* @__PURE__ */ jsx292(
12154
13093
  AnimatedChevronUpDown,
12155
13094
  {
12156
13095
  isUp: childrenCollapsed ? false : true,
@@ -12162,28 +13101,28 @@ var CollapsibleRow = forwardRef97(
12162
13101
  ) })
12163
13102
  ] });
12164
13103
  };
12165
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs74(Fragment14, { children: [
13104
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs75(Fragment14, { children: [
12166
13105
  headerRow(),
12167
- type === "body" && /* @__PURE__ */ jsxs74(Fragment14, { children: [
13106
+ type === "body" && /* @__PURE__ */ jsxs75(Fragment14, { children: [
12168
13107
  rowWithChevron(),
12169
13108
  childrenCollapsed ? null : collapsedRows
12170
13109
  ] })
12171
- ] }) : /* @__PURE__ */ jsx291(Row, { ref, ...rowProps(), children });
13110
+ ] }) : /* @__PURE__ */ jsx292(Row, { ref, ...rowProps(), children });
12172
13111
  }
12173
13112
  );
12174
13113
  CollapsibleRow.displayName = "CollapsibleTable.Row";
12175
13114
 
12176
13115
  // src/components/Table/collapsible/CollapsibleTable.tsx
12177
- import { forwardRef as forwardRef98 } from "react";
12178
- import { jsx as jsx292 } from "react/jsx-runtime";
12179
- var CollapsibleTable = forwardRef98((props, ref) => {
13116
+ import { forwardRef as forwardRef99 } from "react";
13117
+ import { jsx as jsx293 } from "react/jsx-runtime";
13118
+ var CollapsibleTable = forwardRef99((props, ref) => {
12180
13119
  const {
12181
13120
  isCollapsed,
12182
13121
  headerValues,
12183
13122
  definingColumnIndex = [0],
12184
13123
  ...rest
12185
13124
  } = props;
12186
- return /* @__PURE__ */ jsx292(
13125
+ return /* @__PURE__ */ jsx293(
12187
13126
  CollapsibleTableContext.Provider,
12188
13127
  {
12189
13128
  value: {
@@ -12191,7 +13130,7 @@ var CollapsibleTable = forwardRef98((props, ref) => {
12191
13130
  headerValues,
12192
13131
  definingColumnIndex
12193
13132
  },
12194
- children: /* @__PURE__ */ jsx292(Table2, { ref, ...rest })
13133
+ children: /* @__PURE__ */ jsx293(Table2, { ref, ...rest })
12195
13134
  }
12196
13135
  );
12197
13136
  });
@@ -12203,11 +13142,11 @@ CollapsibleTable2.Row = CollapsibleRow;
12203
13142
 
12204
13143
  // src/components/Tabs/Tabs.tsx
12205
13144
  import {
12206
- forwardRef as forwardRef99,
12207
- useEffect as useEffect28,
12208
- useId as useId24,
12209
- useRef as useRef31,
12210
- useState as useState27
13145
+ forwardRef as forwardRef100,
13146
+ useEffect as useEffect29,
13147
+ useId as useId25,
13148
+ useRef as useRef32,
13149
+ useState as useState28
12211
13150
  } from "react";
12212
13151
 
12213
13152
  // src/components/Tabs/Tabs.context.tsx
@@ -12238,8 +13177,8 @@ var Tabs_default = {
12238
13177
  };
12239
13178
 
12240
13179
  // src/components/Tabs/Tabs.tsx
12241
- import { jsx as jsx293 } from "react/jsx-runtime";
12242
- var Tabs = forwardRef99((props, ref) => {
13180
+ import { jsx as jsx294 } from "react/jsx-runtime";
13181
+ var Tabs = forwardRef100((props, ref) => {
12243
13182
  const {
12244
13183
  id,
12245
13184
  activeTab,
@@ -12251,17 +13190,17 @@ var Tabs = forwardRef99((props, ref) => {
12251
13190
  htmlProps,
12252
13191
  ...rest
12253
13192
  } = props;
12254
- const generatedId = useId24();
13193
+ const generatedId = useId25();
12255
13194
  const uniqueId = id != null ? id : `${generatedId}-tabs`;
12256
- const [thisActiveTab, setActiveTab] = useState27(activeTab != null ? activeTab : 0);
12257
- const [hasTabFocus, setHasTabFocus] = useState27(false);
12258
- const tabListRef = useRef31(null);
12259
- const tabPanelsRef = useRef31(null);
13195
+ const [thisActiveTab, setActiveTab] = useState28(activeTab != null ? activeTab : 0);
13196
+ const [hasTabFocus, setHasTabFocus] = useState28(false);
13197
+ const tabListRef = useRef32(null);
13198
+ const tabPanelsRef = useRef32(null);
12260
13199
  const handleTabChange = (index) => {
12261
13200
  setActiveTab(index);
12262
13201
  onChange && onChange(index);
12263
13202
  };
12264
- useEffect28(() => {
13203
+ useEffect29(() => {
12265
13204
  if (activeTab !== void 0 && activeTab !== thisActiveTab) {
12266
13205
  setActiveTab(activeTab);
12267
13206
  }
@@ -12270,7 +13209,7 @@ var Tabs = forwardRef99((props, ref) => {
12270
13209
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
12271
13210
  ["--dds-tabs-width"]: width
12272
13211
  };
12273
- return /* @__PURE__ */ jsx293(
13212
+ return /* @__PURE__ */ jsx294(
12274
13213
  TabsContext.Provider,
12275
13214
  {
12276
13215
  value: {
@@ -12283,7 +13222,7 @@ var Tabs = forwardRef99((props, ref) => {
12283
13222
  setHasTabFocus,
12284
13223
  tabContentDirection
12285
13224
  },
12286
- children: /* @__PURE__ */ jsx293(
13225
+ children: /* @__PURE__ */ jsx294(
12287
13226
  "div",
12288
13227
  {
12289
13228
  ref,
@@ -12304,25 +13243,25 @@ Tabs.displayName = "Tabs";
12304
13243
 
12305
13244
  // src/components/Tabs/Tab.tsx
12306
13245
  import {
12307
- forwardRef as forwardRef100,
13246
+ forwardRef as forwardRef101,
12308
13247
  useCallback as useCallback7,
12309
- useEffect as useEffect29,
12310
- useRef as useRef32
13248
+ useEffect as useEffect30,
13249
+ useRef as useRef33
12311
13250
  } from "react";
12312
13251
 
12313
13252
  // src/components/Tabs/TabWidthContext.tsx
12314
13253
  import {
12315
13254
  createContext as createContext11,
12316
13255
  useContext as useContext14,
12317
- useLayoutEffect as useLayoutEffect2
13256
+ useLayoutEffect as useLayoutEffect3
12318
13257
  } from "react";
12319
- import { jsx as jsx294 } from "react/jsx-runtime";
13258
+ import { jsx as jsx295 } from "react/jsx-runtime";
12320
13259
  var TabContext = createContext11(null);
12321
13260
  function TabWidthContextProvider({
12322
13261
  children,
12323
13262
  onChangeWidths
12324
13263
  }) {
12325
- return /* @__PURE__ */ jsx294(
13264
+ return /* @__PURE__ */ jsx295(
12326
13265
  TabContext.Provider,
12327
13266
  {
12328
13267
  value: {
@@ -12347,15 +13286,15 @@ function TabWidthContextProvider({
12347
13286
  }
12348
13287
  function useSetTabWidth(index, width) {
12349
13288
  const context = useContext14(TabContext);
12350
- useLayoutEffect2(() => {
13289
+ useLayoutEffect3(() => {
12351
13290
  context == null ? void 0 : context.updateWidth(index, width);
12352
13291
  return () => context == null ? void 0 : context.removeTab(index);
12353
13292
  }, [index, width]);
12354
13293
  }
12355
13294
 
12356
13295
  // src/components/Tabs/Tab.tsx
12357
- import { jsx as jsx295, jsxs as jsxs75 } from "react/jsx-runtime";
12358
- var Tab = forwardRef100((props, ref) => {
13296
+ import { jsx as jsx296, jsxs as jsxs76 } from "react/jsx-runtime";
13297
+ var Tab = forwardRef101((props, ref) => {
12359
13298
  const {
12360
13299
  active = false,
12361
13300
  icon,
@@ -12372,10 +13311,10 @@ var Tab = forwardRef100((props, ref) => {
12372
13311
  ...rest
12373
13312
  } = props;
12374
13313
  useSetTabWidth(index, width);
12375
- const itemRef = useRef32(null);
13314
+ const itemRef = useRef33(null);
12376
13315
  const combinedRef = useCombinedRef(ref, itemRef);
12377
13316
  const { tabContentDirection } = useTabsContext();
12378
- useEffect29(() => {
13317
+ useEffect30(() => {
12379
13318
  var _a;
12380
13319
  if (focus) {
12381
13320
  (_a = itemRef.current) == null ? void 0 : _a.focus();
@@ -12394,7 +13333,7 @@ var Tab = forwardRef100((props, ref) => {
12394
13333
  handleSelect();
12395
13334
  onKeyDown && onKeyDown(e);
12396
13335
  };
12397
- return /* @__PURE__ */ jsxs75(
13336
+ return /* @__PURE__ */ jsxs76(
12398
13337
  "button",
12399
13338
  {
12400
13339
  ...getBaseHTMLProps(
@@ -12417,8 +13356,8 @@ var Tab = forwardRef100((props, ref) => {
12417
13356
  onKeyDown: handleOnKeyDown,
12418
13357
  tabIndex: focus ? 0 : -1,
12419
13358
  children: [
12420
- icon && /* @__PURE__ */ jsx295(Icon, { icon, iconSize: "inherit" }),
12421
- /* @__PURE__ */ jsx295("span", { children })
13359
+ icon && /* @__PURE__ */ jsx296(Icon, { icon, iconSize: "inherit" }),
13360
+ /* @__PURE__ */ jsx296("span", { children })
12422
13361
  ]
12423
13362
  }
12424
13363
  );
@@ -12429,12 +13368,12 @@ Tab.displayName = "Tab";
12429
13368
  import {
12430
13369
  Children as Children6,
12431
13370
  cloneElement as cloneElement9,
12432
- forwardRef as forwardRef101,
13371
+ forwardRef as forwardRef102,
12433
13372
  isValidElement as isValidElement10,
12434
- useState as useState28
13373
+ useState as useState29
12435
13374
  } from "react";
12436
- import { jsx as jsx296 } from "react/jsx-runtime";
12437
- var TabList = forwardRef101(
13375
+ import { jsx as jsx297 } from "react/jsx-runtime";
13376
+ var TabList = forwardRef102(
12438
13377
  ({ children, id, style, onFocus, ...rest }, ref) => {
12439
13378
  const {
12440
13379
  activeTab,
@@ -12459,7 +13398,7 @@ var TabList = forwardRef101(
12459
13398
  onClick: () => handleTabChange(index)
12460
13399
  });
12461
13400
  });
12462
- const [widths, setWidths] = useState28([]);
13401
+ const [widths, setWidths] = useState29([]);
12463
13402
  const handleOnFocus = (event) => {
12464
13403
  setHasTabFocus(true);
12465
13404
  onFocus && onFocus(event);
@@ -12477,7 +13416,7 @@ var TabList = forwardRef101(
12477
13416
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
12478
13417
  ["--dds-tab-widths"]: widths.join(" ")
12479
13418
  };
12480
- return /* @__PURE__ */ jsx296(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx296(
13419
+ return /* @__PURE__ */ jsx297(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx297(
12481
13420
  "div",
12482
13421
  {
12483
13422
  ...rest,
@@ -12503,11 +13442,11 @@ var TabList = forwardRef101(
12503
13442
  TabList.displayName = "TabList";
12504
13443
 
12505
13444
  // src/components/Tabs/TabPanel.tsx
12506
- import { forwardRef as forwardRef102 } from "react";
12507
- import { jsx as jsx297 } from "react/jsx-runtime";
12508
- var TabPanel = forwardRef102(
13445
+ import { forwardRef as forwardRef103 } from "react";
13446
+ import { jsx as jsx298 } from "react/jsx-runtime";
13447
+ var TabPanel = forwardRef103(
12509
13448
  ({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
12510
- return /* @__PURE__ */ jsx297(
13449
+ return /* @__PURE__ */ jsx298(
12511
13450
  "div",
12512
13451
  {
12513
13452
  ...getBaseHTMLProps(
@@ -12531,11 +13470,11 @@ TabPanel.displayName = "TabPanel";
12531
13470
  import {
12532
13471
  Children as Children7,
12533
13472
  cloneElement as cloneElement10,
12534
- forwardRef as forwardRef103,
13473
+ forwardRef as forwardRef104,
12535
13474
  isValidElement as isValidElement11
12536
13475
  } from "react";
12537
- import { jsx as jsx298 } from "react/jsx-runtime";
12538
- var TabPanels = forwardRef103(
13476
+ import { jsx as jsx299 } from "react/jsx-runtime";
13477
+ var TabPanels = forwardRef104(
12539
13478
  ({ children, ...rest }, ref) => {
12540
13479
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
12541
13480
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
@@ -12548,13 +13487,13 @@ var TabPanels = forwardRef103(
12548
13487
  "aria-expanded": active
12549
13488
  });
12550
13489
  });
12551
- return /* @__PURE__ */ jsx298("div", { ref: combinedRef, ...rest, children: panelChildren });
13490
+ return /* @__PURE__ */ jsx299("div", { ref: combinedRef, ...rest, children: panelChildren });
12552
13491
  }
12553
13492
  );
12554
13493
  TabPanels.displayName = "TabPanels";
12555
13494
 
12556
13495
  // src/components/Tag/Tag.tsx
12557
- import { forwardRef as forwardRef104 } from "react";
13496
+ import { forwardRef as forwardRef105 } from "react";
12558
13497
 
12559
13498
  // src/components/Tag/Tag.module.css
12560
13499
  var Tag_default = {
@@ -12573,7 +13512,7 @@ var Tag_default = {
12573
13512
  };
12574
13513
 
12575
13514
  // src/components/Tag/Tag.tsx
12576
- import { jsx as jsx299, jsxs as jsxs76 } from "react/jsx-runtime";
13515
+ import { jsx as jsx300, jsxs as jsxs77 } from "react/jsx-runtime";
12577
13516
  var icons3 = {
12578
13517
  info: InfoIcon,
12579
13518
  danger: ErrorIcon,
@@ -12581,7 +13520,7 @@ var icons3 = {
12581
13520
  success: CheckCircledIcon,
12582
13521
  default: void 0
12583
13522
  };
12584
- var Tag = forwardRef104((props, ref) => {
13523
+ var Tag = forwardRef105((props, ref) => {
12585
13524
  const {
12586
13525
  text,
12587
13526
  purpose = "default",
@@ -12594,7 +13533,7 @@ var Tag = forwardRef104((props, ref) => {
12594
13533
  ...rest
12595
13534
  } = props;
12596
13535
  const icon = icons3[purpose];
12597
- return /* @__PURE__ */ jsxs76(
13536
+ return /* @__PURE__ */ jsxs77(
12598
13537
  TextOverflowEllipsisWrapper,
12599
13538
  {
12600
13539
  ...getBaseHTMLProps(
@@ -12611,8 +13550,8 @@ var Tag = forwardRef104((props, ref) => {
12611
13550
  ),
12612
13551
  ref,
12613
13552
  children: [
12614
- withIcon && icon && /* @__PURE__ */ jsx299(Icon, { icon, iconSize: "small" }),
12615
- /* @__PURE__ */ jsx299(TextOverflowEllipsisInner, { children: children != null ? children : text })
13553
+ withIcon && icon && /* @__PURE__ */ jsx300(Icon, { icon, iconSize: "small" }),
13554
+ /* @__PURE__ */ jsx300(TextOverflowEllipsisInner, { children: children != null ? children : text })
12616
13555
  ]
12617
13556
  }
12618
13557
  );
@@ -12620,13 +13559,13 @@ var Tag = forwardRef104((props, ref) => {
12620
13559
  Tag.displayName = "Tag";
12621
13560
 
12622
13561
  // src/components/TextInput/TextInput.tsx
12623
- import { ddsTokens as ddsTokens16 } from "@norges-domstoler/dds-design-tokens";
13562
+ import { ddsTokens as ddsTokens17 } from "@norges-domstoler/dds-design-tokens";
12624
13563
  import {
12625
- forwardRef as forwardRef105,
12626
- useId as useId25,
12627
- useLayoutEffect as useLayoutEffect3,
12628
- useRef as useRef33,
12629
- useState as useState29
13564
+ forwardRef as forwardRef106,
13565
+ useId as useId26,
13566
+ useLayoutEffect as useLayoutEffect4,
13567
+ useRef as useRef34,
13568
+ useState as useState30
12630
13569
  } from "react";
12631
13570
 
12632
13571
  // src/components/TextInput/TextInput.module.css
@@ -12654,8 +13593,8 @@ var TextInput_default = {
12654
13593
  };
12655
13594
 
12656
13595
  // src/components/TextInput/TextInput.tsx
12657
- import { jsx as jsx300, jsxs as jsxs77 } from "react/jsx-runtime";
12658
- var TextInput = forwardRef105(
13596
+ import { jsx as jsx301, jsxs as jsxs78 } from "react/jsx-runtime";
13597
+ var TextInput = forwardRef106(
12659
13598
  ({
12660
13599
  label,
12661
13600
  disabled,
@@ -12681,14 +13620,14 @@ var TextInput = forwardRef105(
12681
13620
  suffix,
12682
13621
  ...rest
12683
13622
  }, ref) => {
12684
- const [text, setText] = useState29(
13623
+ const [text, setText] = useState30(
12685
13624
  getDefaultText(value, defaultValue)
12686
13625
  );
12687
- const prefixRef = useRef33(null);
12688
- const suffixRef = useRef33(null);
12689
- const [prefixLength, setPrefixLength] = useState29(0);
12690
- const [suffixLength, setSuffixLength] = useState29(0);
12691
- useLayoutEffect3(() => {
13626
+ const prefixRef = useRef34(null);
13627
+ const suffixRef = useRef34(null);
13628
+ const [prefixLength, setPrefixLength] = useState30(0);
13629
+ const [suffixLength, setSuffixLength] = useState30(0);
13630
+ useLayoutEffect4(() => {
12692
13631
  if (prefixRef.current) {
12693
13632
  setPrefixLength(prefixRef.current.offsetWidth);
12694
13633
  }
@@ -12702,7 +13641,7 @@ var TextInput = forwardRef105(
12702
13641
  onChange(event);
12703
13642
  }
12704
13643
  };
12705
- const generatedId = useId25();
13644
+ const generatedId = useId26();
12706
13645
  const uniqueId = id != null ? id : `${generatedId}-textInput`;
12707
13646
  const hasErrorMessage = !!errorMessage;
12708
13647
  const hasTip = !!tip;
@@ -12740,25 +13679,28 @@ var TextInput = forwardRef105(
12740
13679
  ...rest
12741
13680
  };
12742
13681
  const showRequiredStyling = !!(required || ariaRequired);
12743
- const preffixPaddingInlineStart = readOnly && prefixLength ? prefixLength + "px" : prefixLength ? ddsTokens16.ddsSpacingX1NumberPx + prefixLength + "px" : void 0;
12744
- const suffixPaddingInlineEnd = readOnly && suffixLength ? suffixLength + "px" : suffixLength ? ddsTokens16.ddsSpacingX1NumberPx + suffixLength + "px" : void 0;
13682
+ const preffixPaddingInlineStart = readOnly && prefixLength ? prefixLength + "px" : prefixLength ? ddsTokens17.ddsSpacingX1NumberPx + prefixLength + "px" : void 0;
13683
+ const suffixPaddingInlineEnd = readOnly && suffixLength ? suffixLength + "px" : suffixLength ? ddsTokens17.ddsSpacingX1NumberPx + suffixLength + "px" : void 0;
12745
13684
  let extendedInput = null;
12746
13685
  if (hasIcon) {
12747
- extendedInput = /* @__PURE__ */ jsxs77(
13686
+ extendedInput = /* @__PURE__ */ jsxs78(
12748
13687
  "div",
12749
13688
  {
12750
13689
  className: cn(TextInput_default["input-width"], Input_default["input-group"]),
12751
13690
  style: styleVariables,
12752
13691
  children: [
12753
- /* @__PURE__ */ jsx300(
13692
+ /* @__PURE__ */ jsx301(
12754
13693
  Icon,
12755
13694
  {
12756
13695
  icon,
12757
13696
  iconSize: getFormInputIconSize(componentSize),
12758
- className: cn(Input_default.icon, TextInput_default[`icon--${componentSize}`])
13697
+ className: cn(
13698
+ Input_default["input-group__absolute-element"],
13699
+ TextInput_default[`icon--${componentSize}`]
13700
+ )
12759
13701
  }
12760
13702
  ),
12761
- /* @__PURE__ */ jsx300(
13703
+ /* @__PURE__ */ jsx301(
12762
13704
  StatefulInput,
12763
13705
  {
12764
13706
  ref,
@@ -12777,13 +13719,13 @@ var TextInput = forwardRef105(
12777
13719
  }
12778
13720
  );
12779
13721
  } else if (hasAffix) {
12780
- extendedInput = /* @__PURE__ */ jsxs77(
13722
+ extendedInput = /* @__PURE__ */ jsxs78(
12781
13723
  "div",
12782
13724
  {
12783
13725
  className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
12784
13726
  style: styleVariables,
12785
13727
  children: [
12786
- prefix3 && /* @__PURE__ */ jsx300(
13728
+ prefix3 && /* @__PURE__ */ jsx301(
12787
13729
  "span",
12788
13730
  {
12789
13731
  ref: prefixRef,
@@ -12796,7 +13738,7 @@ var TextInput = forwardRef105(
12796
13738
  children: prefix3
12797
13739
  }
12798
13740
  ),
12799
- /* @__PURE__ */ jsx300(
13741
+ /* @__PURE__ */ jsx301(
12800
13742
  StatefulInput,
12801
13743
  {
12802
13744
  ref,
@@ -12811,7 +13753,7 @@ var TextInput = forwardRef105(
12811
13753
  className: TextInput_default["input--extended"]
12812
13754
  }
12813
13755
  ),
12814
- suffix && /* @__PURE__ */ jsx300(
13756
+ suffix && /* @__PURE__ */ jsx301(
12815
13757
  "span",
12816
13758
  {
12817
13759
  ref: suffixRef,
@@ -12828,7 +13770,7 @@ var TextInput = forwardRef105(
12828
13770
  }
12829
13771
  );
12830
13772
  }
12831
- return /* @__PURE__ */ jsxs77(
13773
+ return /* @__PURE__ */ jsxs78(
12832
13774
  "div",
12833
13775
  {
12834
13776
  className: cn(
@@ -12840,7 +13782,7 @@ var TextInput = forwardRef105(
12840
13782
  ),
12841
13783
  style,
12842
13784
  children: [
12843
- hasLabel && /* @__PURE__ */ jsx300(
13785
+ hasLabel && /* @__PURE__ */ jsx301(
12844
13786
  Label,
12845
13787
  {
12846
13788
  htmlFor: uniqueId,
@@ -12850,7 +13792,7 @@ var TextInput = forwardRef105(
12850
13792
  children: label
12851
13793
  }
12852
13794
  ),
12853
- extendedInput ? extendedInput : /* @__PURE__ */ jsx300(
13795
+ extendedInput ? extendedInput : /* @__PURE__ */ jsx301(
12854
13796
  StatefulInput,
12855
13797
  {
12856
13798
  ref,
@@ -12862,7 +13804,7 @@ var TextInput = forwardRef105(
12862
13804
  className: TextInput_default["input-width"]
12863
13805
  }
12864
13806
  ),
12865
- hasMessage && /* @__PURE__ */ jsxs77("div", { className: TextInput_default["message-container"], children: [
13807
+ hasMessage && /* @__PURE__ */ jsxs78("div", { className: TextInput_default["message-container"], children: [
12866
13808
  renderInputMessage(tip, tipId, errorMessage, errorMessageId),
12867
13809
  renderCharCounter(
12868
13810
  characterCounterId,
@@ -12879,7 +13821,7 @@ var TextInput = forwardRef105(
12879
13821
  TextInput.displayName = "TextInput";
12880
13822
 
12881
13823
  // src/components/ToggleBar/ToggleBar.tsx
12882
- import { useId as useId26, useState as useState30 } from "react";
13824
+ import { useId as useId27, useState as useState31 } from "react";
12883
13825
 
12884
13826
  // src/components/ToggleBar/ToggleBar.context.tsx
12885
13827
  import { createContext as createContext12, useContext as useContext15 } from "react";
@@ -12905,7 +13847,7 @@ var ToggleBar_default = {
12905
13847
  };
12906
13848
 
12907
13849
  // src/components/ToggleBar/ToggleBar.tsx
12908
- import { jsx as jsx301, jsxs as jsxs78 } from "react/jsx-runtime";
13850
+ import { jsx as jsx302, jsxs as jsxs79 } from "react/jsx-runtime";
12909
13851
  var ToggleBar = (props) => {
12910
13852
  const {
12911
13853
  children,
@@ -12920,15 +13862,15 @@ var ToggleBar = (props) => {
12920
13862
  id,
12921
13863
  ...rest
12922
13864
  } = props;
12923
- const generatedId = useId26();
13865
+ const generatedId = useId27();
12924
13866
  const uniqueId = id != null ? id : `${generatedId}-ToggleBar`;
12925
- const [groupValue, setGroupValue] = useState30(value);
13867
+ const [groupValue, setGroupValue] = useState31(value);
12926
13868
  const handleChange = combineHandlers(
12927
13869
  (e) => setGroupValue(e.target.value),
12928
13870
  (e) => onChange && onChange(e, e.target.value)
12929
13871
  );
12930
13872
  const labelId = label && `${uniqueId}-label`;
12931
- return /* @__PURE__ */ jsx301(
13873
+ return /* @__PURE__ */ jsx302(
12932
13874
  ToggleBarContext.Provider,
12933
13875
  {
12934
13876
  value: {
@@ -12937,7 +13879,7 @@ var ToggleBar = (props) => {
12937
13879
  name,
12938
13880
  value: groupValue
12939
13881
  },
12940
- children: /* @__PURE__ */ jsxs78(
13882
+ children: /* @__PURE__ */ jsxs79(
12941
13883
  "div",
12942
13884
  {
12943
13885
  ...getBaseHTMLProps(
@@ -12950,8 +13892,8 @@ var ToggleBar = (props) => {
12950
13892
  role: "radiogroup",
12951
13893
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
12952
13894
  children: [
12953
- label && /* @__PURE__ */ jsx301(Label, { id: labelId, children: label }),
12954
- /* @__PURE__ */ jsx301("div", { className: ToggleBar_default.bar, children })
13895
+ label && /* @__PURE__ */ jsx302(Label, { id: labelId, children: label }),
13896
+ /* @__PURE__ */ jsx302("div", { className: ToggleBar_default.bar, children })
12955
13897
  ]
12956
13898
  }
12957
13899
  )
@@ -12962,10 +13904,10 @@ ToggleBar.displayName = "ToggleBar";
12962
13904
 
12963
13905
  // src/components/ToggleBar/ToggleRadio.tsx
12964
13906
  import {
12965
- forwardRef as forwardRef106,
12966
- useId as useId27
13907
+ forwardRef as forwardRef107,
13908
+ useId as useId28
12967
13909
  } from "react";
12968
- import { jsx as jsx302, jsxs as jsxs79 } from "react/jsx-runtime";
13910
+ import { jsx as jsx303, jsxs as jsxs80 } from "react/jsx-runtime";
12969
13911
  var typographyTypes4 = {
12970
13912
  large: "bodySans04",
12971
13913
  medium: "bodySans02",
@@ -12982,7 +13924,7 @@ var calculateChecked = (value, group, checked) => {
12982
13924
  }
12983
13925
  return !!value;
12984
13926
  };
12985
- var ToggleRadio = forwardRef106(
13927
+ var ToggleRadio = forwardRef107(
12986
13928
  (props, ref) => {
12987
13929
  const {
12988
13930
  value,
@@ -12998,7 +13940,7 @@ var ToggleRadio = forwardRef106(
12998
13940
  id,
12999
13941
  ...rest
13000
13942
  } = props;
13001
- const generatedId = useId27();
13943
+ const generatedId = useId28();
13002
13944
  const uniqueId = id != null ? id : `${generatedId}-ToggleRadio`;
13003
13945
  const group = useToggleBarContext();
13004
13946
  const handleChange = (event) => {
@@ -13006,8 +13948,8 @@ var ToggleRadio = forwardRef106(
13006
13948
  (group == null ? void 0 : group.onChange) && group.onChange(event);
13007
13949
  };
13008
13950
  const contentTypeCn = label ? "with-text" : "just-icon";
13009
- return /* @__PURE__ */ jsxs79("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
13010
- /* @__PURE__ */ jsx302(
13951
+ return /* @__PURE__ */ jsxs80("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
13952
+ /* @__PURE__ */ jsx303(
13011
13953
  "input",
13012
13954
  {
13013
13955
  ...getBaseHTMLProps(
@@ -13030,7 +13972,7 @@ var ToggleRadio = forwardRef106(
13030
13972
  "aria-labelledby": ariaLabelledBy
13031
13973
  }
13032
13974
  ),
13033
- /* @__PURE__ */ jsxs79(
13975
+ /* @__PURE__ */ jsxs80(
13034
13976
  Typography,
13035
13977
  {
13036
13978
  as: "span",
@@ -13041,8 +13983,8 @@ var ToggleRadio = forwardRef106(
13041
13983
  focus_default["focus-styled-sibling"]
13042
13984
  ),
13043
13985
  children: [
13044
- icon && /* @__PURE__ */ jsx302(Icon, { icon, iconSize: "inherit" }),
13045
- label && /* @__PURE__ */ jsx302("span", { children: label })
13986
+ icon && /* @__PURE__ */ jsx303(Icon, { icon, iconSize: "inherit" }),
13987
+ label && /* @__PURE__ */ jsx303("span", { children: label })
13046
13988
  ]
13047
13989
  }
13048
13990
  )
@@ -13052,7 +13994,7 @@ var ToggleRadio = forwardRef106(
13052
13994
  ToggleRadio.displayName = "ToggleRadio";
13053
13995
 
13054
13996
  // src/components/ToggleButton/ToggleButton.tsx
13055
- import { forwardRef as forwardRef107, useId as useId28 } from "react";
13997
+ import { forwardRef as forwardRef108, useId as useId29 } from "react";
13056
13998
 
13057
13999
  // src/components/ToggleButton/ToggleButton.module.css
13058
14000
  var ToggleButton_default = {
@@ -13066,14 +14008,14 @@ var ToggleButton_default = {
13066
14008
  };
13067
14009
 
13068
14010
  // src/components/ToggleButton/ToggleButton.tsx
13069
- import { jsx as jsx303, jsxs as jsxs80 } from "react/jsx-runtime";
13070
- var ToggleButton = forwardRef107(
14011
+ import { jsx as jsx304, jsxs as jsxs81 } from "react/jsx-runtime";
14012
+ var ToggleButton = forwardRef108(
13071
14013
  ({ id, label, icon, className, htmlProps, ...rest }, ref) => {
13072
- const generatedId = useId28();
14014
+ const generatedId = useId29();
13073
14015
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
13074
14016
  const hasIcon = !!icon;
13075
- return /* @__PURE__ */ jsxs80("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
13076
- /* @__PURE__ */ jsx303(
14017
+ return /* @__PURE__ */ jsxs81("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
14018
+ /* @__PURE__ */ jsx304(
13077
14019
  "input",
13078
14020
  {
13079
14021
  ...getBaseHTMLProps(
@@ -13090,7 +14032,7 @@ var ToggleButton = forwardRef107(
13090
14032
  type: "checkbox"
13091
14033
  }
13092
14034
  ),
13093
- /* @__PURE__ */ jsxs80(
14035
+ /* @__PURE__ */ jsxs81(
13094
14036
  "span",
13095
14037
  {
13096
14038
  className: cn(
@@ -13100,7 +14042,7 @@ var ToggleButton = forwardRef107(
13100
14042
  focus_default["focus-styled-sibling"]
13101
14043
  ),
13102
14044
  children: [
13103
- hasIcon && /* @__PURE__ */ jsx303(Icon, { icon, iconSize: "inherit" }),
14045
+ hasIcon && /* @__PURE__ */ jsx304(Icon, { icon, iconSize: "inherit" }),
13104
14046
  " ",
13105
14047
  label
13106
14048
  ]
@@ -13112,8 +14054,8 @@ var ToggleButton = forwardRef107(
13112
14054
  ToggleButton.displayName = "ToggleButton";
13113
14055
 
13114
14056
  // src/components/ToggleButton/ToggleButtonGroup.tsx
13115
- import { useId as useId29 } from "react";
13116
- import { jsx as jsx304, jsxs as jsxs81 } from "react/jsx-runtime";
14057
+ import { useId as useId30 } from "react";
14058
+ import { jsx as jsx305, jsxs as jsxs82 } from "react/jsx-runtime";
13117
14059
  var ToggleButtonGroup = (props) => {
13118
14060
  const {
13119
14061
  children,
@@ -13125,9 +14067,9 @@ var ToggleButtonGroup = (props) => {
13125
14067
  htmlProps,
13126
14068
  ...rest
13127
14069
  } = props;
13128
- const generatedId = useId29();
14070
+ const generatedId = useId30();
13129
14071
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
13130
- return /* @__PURE__ */ jsxs81(
14072
+ return /* @__PURE__ */ jsxs82(
13131
14073
  "div",
13132
14074
  {
13133
14075
  ...getBaseHTMLProps(
@@ -13139,7 +14081,7 @@ var ToggleButtonGroup = (props) => {
13139
14081
  role: "group",
13140
14082
  "aria-labelledby": label ? uniqueLabelId : void 0,
13141
14083
  children: [
13142
- !!label && /* @__PURE__ */ jsx304(
14084
+ !!label && /* @__PURE__ */ jsx305(
13143
14085
  Typography,
13144
14086
  {
13145
14087
  as: "span",
@@ -13148,7 +14090,7 @@ var ToggleButtonGroup = (props) => {
13148
14090
  children: label
13149
14091
  }
13150
14092
  ),
13151
- /* @__PURE__ */ jsx304("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
14093
+ /* @__PURE__ */ jsx305("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
13152
14094
  ]
13153
14095
  }
13154
14096
  );
@@ -13358,6 +14300,7 @@ export {
13358
14300
  PersonAddIcon,
13359
14301
  PersonIcon,
13360
14302
  PersonShieldedIcon,
14303
+ PhoneInput,
13361
14304
  PinIcon,
13362
14305
  PlusCircledIcon,
13363
14306
  PlusIcon,
@@ -13446,6 +14389,7 @@ export {
13446
14389
  ZoomOutIcon,
13447
14390
  calendarDateToNativeDate,
13448
14391
  cn,
14392
+ countryOptions,
13449
14393
  createSelectOptions,
13450
14394
  dangerInputfield,
13451
14395
  dateValueToNativeDate,