@norges-domstoler/dds-components 17.5.2 → 17.5.4
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.css +19 -17
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +774 -1026
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +513 -763
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.mjs
CHANGED
|
@@ -179,6 +179,9 @@ function handleElementWithBackdropUnmount(container) {
|
|
|
179
179
|
window.scrollTo(0, scrollY * -1);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
// src/components/helpers/Backdrop/Backdrop.tsx
|
|
183
|
+
import { forwardRef } from "react";
|
|
184
|
+
|
|
182
185
|
// src/components/helpers/Backdrop/Backdrop.module.css
|
|
183
186
|
var Backdrop_default = {
|
|
184
187
|
backdrop: "Backdrop_backdrop",
|
|
@@ -403,16 +406,19 @@ function useElementHeight(element) {
|
|
|
403
406
|
|
|
404
407
|
// src/components/helpers/Backdrop/Backdrop.tsx
|
|
405
408
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
406
|
-
var Backdrop = (
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
}
|
|
409
|
+
var Backdrop = forwardRef(
|
|
410
|
+
({ isMounted, ...props }, ref) => {
|
|
411
|
+
const isMountedCn = isMounted ? "visible" : "hidden";
|
|
412
|
+
return /* @__PURE__ */ jsx2(
|
|
413
|
+
"div",
|
|
414
|
+
{
|
|
415
|
+
ref,
|
|
416
|
+
className: cn(Backdrop_default.backdrop, Backdrop_default[`backdrop--${isMountedCn}`]),
|
|
417
|
+
...props
|
|
418
|
+
}
|
|
419
|
+
);
|
|
420
|
+
}
|
|
421
|
+
);
|
|
416
422
|
Backdrop.displayName = "Backdrop";
|
|
417
423
|
|
|
418
424
|
// src/components/helpers/Chevron/Chevron.module.css
|
|
@@ -469,10 +475,10 @@ var AnimatedChevronUpDown = ({
|
|
|
469
475
|
|
|
470
476
|
// src/components/helpers/ElementAs/ElementAs.tsx
|
|
471
477
|
import {
|
|
472
|
-
forwardRef
|
|
478
|
+
forwardRef as forwardRef2
|
|
473
479
|
} from "react";
|
|
474
480
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
475
|
-
var ElementAs =
|
|
481
|
+
var ElementAs = forwardRef2(
|
|
476
482
|
(props, ref) => {
|
|
477
483
|
const { as, children, ...rest } = props;
|
|
478
484
|
const As = as;
|
|
@@ -481,9 +487,9 @@ var ElementAs = forwardRef(
|
|
|
481
487
|
);
|
|
482
488
|
|
|
483
489
|
// src/components/helpers/HiddenInput/HiddenInput.tsx
|
|
484
|
-
import { forwardRef as
|
|
490
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
485
491
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
486
|
-
var HiddenInput =
|
|
492
|
+
var HiddenInput = forwardRef3(
|
|
487
493
|
(props, ref) => {
|
|
488
494
|
const { className, ...rest } = props;
|
|
489
495
|
return /* @__PURE__ */ jsx5(
|
|
@@ -498,7 +504,7 @@ var HiddenInput = forwardRef2(
|
|
|
498
504
|
);
|
|
499
505
|
|
|
500
506
|
// src/components/helpers/Input/Input.tsx
|
|
501
|
-
import { forwardRef as
|
|
507
|
+
import { forwardRef as forwardRef11 } from "react";
|
|
502
508
|
|
|
503
509
|
// src/components/helpers/Input/Input.module.css
|
|
504
510
|
var Input_default = {
|
|
@@ -520,7 +526,7 @@ var Input_default = {
|
|
|
520
526
|
};
|
|
521
527
|
|
|
522
528
|
// src/components/Typography/Caption/Caption.tsx
|
|
523
|
-
import { forwardRef as
|
|
529
|
+
import { forwardRef as forwardRef5 } from "react";
|
|
524
530
|
|
|
525
531
|
// src/types/Density.tsx
|
|
526
532
|
function getDensityCn(value) {
|
|
@@ -591,7 +597,7 @@ function TextOverflowEllipsisInner({
|
|
|
591
597
|
|
|
592
598
|
// src/components/Typography/Typography/Typography.tsx
|
|
593
599
|
import {
|
|
594
|
-
forwardRef as
|
|
600
|
+
forwardRef as forwardRef4
|
|
595
601
|
} from "react";
|
|
596
602
|
|
|
597
603
|
// src/components/Typography/Typography/Typography.module.css
|
|
@@ -2058,7 +2064,7 @@ function HelpSimpleIcon(props) {
|
|
|
2058
2064
|
// src/components/Typography/Typography/Typography.tsx
|
|
2059
2065
|
import { jsx as jsx167, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
2060
2066
|
var isAnchorProps = (props) => props.typographyType === "a";
|
|
2061
|
-
var Typography =
|
|
2067
|
+
var Typography = forwardRef4(
|
|
2062
2068
|
(props, ref) => {
|
|
2063
2069
|
const {
|
|
2064
2070
|
typographyType = "bodySans02",
|
|
@@ -2133,7 +2139,7 @@ Typography.displayName = "Typography";
|
|
|
2133
2139
|
|
|
2134
2140
|
// src/components/Typography/Caption/Caption.tsx
|
|
2135
2141
|
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
2136
|
-
var Caption =
|
|
2142
|
+
var Caption = forwardRef5(
|
|
2137
2143
|
(props, ref) => {
|
|
2138
2144
|
const { id, className, htmlProps, children, ...rest } = props;
|
|
2139
2145
|
return /* @__PURE__ */ jsx168(
|
|
@@ -2151,7 +2157,7 @@ var Caption = forwardRef4(
|
|
|
2151
2157
|
Caption.displayName = "Caption";
|
|
2152
2158
|
|
|
2153
2159
|
// src/components/Typography/Heading/Heading.tsx
|
|
2154
|
-
import { forwardRef as
|
|
2160
|
+
import { forwardRef as forwardRef6 } from "react";
|
|
2155
2161
|
|
|
2156
2162
|
// src/hooks/useCombinedRefs.tsx
|
|
2157
2163
|
import { useCallback } from "react";
|
|
@@ -2520,7 +2526,7 @@ var scaledTypographyType = (type) => {
|
|
|
2520
2526
|
return type;
|
|
2521
2527
|
}
|
|
2522
2528
|
};
|
|
2523
|
-
var Heading =
|
|
2529
|
+
var Heading = forwardRef6(
|
|
2524
2530
|
(props, ref) => {
|
|
2525
2531
|
const {
|
|
2526
2532
|
id,
|
|
@@ -2547,7 +2553,7 @@ var Heading = forwardRef5(
|
|
|
2547
2553
|
Heading.displayName = "Heading";
|
|
2548
2554
|
|
|
2549
2555
|
// src/components/Typography/Label/Label.tsx
|
|
2550
|
-
import { forwardRef as
|
|
2556
|
+
import { forwardRef as forwardRef7 } from "react";
|
|
2551
2557
|
|
|
2552
2558
|
// src/components/Typography/Label/Label.module.css
|
|
2553
2559
|
var Label_default = {
|
|
@@ -2557,7 +2563,7 @@ var Label_default = {
|
|
|
2557
2563
|
|
|
2558
2564
|
// src/components/Typography/Label/Label.tsx
|
|
2559
2565
|
import { jsx as jsx170, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
2560
|
-
var Label =
|
|
2566
|
+
var Label = forwardRef7((props, ref) => {
|
|
2561
2567
|
const {
|
|
2562
2568
|
showRequiredStyling,
|
|
2563
2569
|
readOnly,
|
|
@@ -2596,9 +2602,9 @@ var Label = forwardRef6((props, ref) => {
|
|
|
2596
2602
|
Label.displayName = "Label";
|
|
2597
2603
|
|
|
2598
2604
|
// src/components/Typography/Legend/Legend.tsx
|
|
2599
|
-
import { forwardRef as
|
|
2605
|
+
import { forwardRef as forwardRef8 } from "react";
|
|
2600
2606
|
import { jsx as jsx171 } from "react/jsx-runtime";
|
|
2601
|
-
var Legend =
|
|
2607
|
+
var Legend = forwardRef8(
|
|
2602
2608
|
(props, ref) => {
|
|
2603
2609
|
const { id, className, htmlProps, children, ...rest } = props;
|
|
2604
2610
|
return /* @__PURE__ */ jsx171(
|
|
@@ -2616,9 +2622,9 @@ var Legend = forwardRef7(
|
|
|
2616
2622
|
Legend.displayName = "Legend";
|
|
2617
2623
|
|
|
2618
2624
|
// src/components/Typography/Link/Link.tsx
|
|
2619
|
-
import { forwardRef as
|
|
2625
|
+
import { forwardRef as forwardRef9 } from "react";
|
|
2620
2626
|
import { jsx as jsx172, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2621
|
-
var Link =
|
|
2627
|
+
var Link = forwardRef9((props, ref) => {
|
|
2622
2628
|
const {
|
|
2623
2629
|
id,
|
|
2624
2630
|
className,
|
|
@@ -2662,9 +2668,9 @@ var Link = forwardRef8((props, ref) => {
|
|
|
2662
2668
|
Link.displayName = "Link";
|
|
2663
2669
|
|
|
2664
2670
|
// src/components/Typography/Paragraph/Paragraph.tsx
|
|
2665
|
-
import { forwardRef as
|
|
2671
|
+
import { forwardRef as forwardRef10 } from "react";
|
|
2666
2672
|
import { jsx as jsx173 } from "react/jsx-runtime";
|
|
2667
|
-
var Paragraph =
|
|
2673
|
+
var Paragraph = forwardRef10(
|
|
2668
2674
|
(props, ref) => {
|
|
2669
2675
|
const {
|
|
2670
2676
|
id,
|
|
@@ -2694,7 +2700,7 @@ var inputTypographyTypes = {
|
|
|
2694
2700
|
small: "bodySans01",
|
|
2695
2701
|
tiny: "supportingStyleTiny01"
|
|
2696
2702
|
};
|
|
2697
|
-
var Input =
|
|
2703
|
+
var Input = forwardRef11((props, ref) => {
|
|
2698
2704
|
const { className, ...rest } = props;
|
|
2699
2705
|
return /* @__PURE__ */ jsx174(
|
|
2700
2706
|
"input",
|
|
@@ -2706,7 +2712,7 @@ var Input = forwardRef10((props, ref) => {
|
|
|
2706
2712
|
);
|
|
2707
2713
|
});
|
|
2708
2714
|
Input.displayName = "Input";
|
|
2709
|
-
var StatefulInput =
|
|
2715
|
+
var StatefulInput = forwardRef11(
|
|
2710
2716
|
(props, ref) => {
|
|
2711
2717
|
const {
|
|
2712
2718
|
className,
|
|
@@ -2776,7 +2782,7 @@ function getDefaultText(value, defaultValue) {
|
|
|
2776
2782
|
}
|
|
2777
2783
|
|
|
2778
2784
|
// src/components/helpers/Paper/Paper.tsx
|
|
2779
|
-
import { forwardRef as
|
|
2785
|
+
import { forwardRef as forwardRef12 } from "react";
|
|
2780
2786
|
|
|
2781
2787
|
// src/components/helpers/Paper/Paper.module.css
|
|
2782
2788
|
var Paper_default = {
|
|
@@ -2792,7 +2798,7 @@ var Paper_default = {
|
|
|
2792
2798
|
|
|
2793
2799
|
// src/components/helpers/Paper/Paper.tsx
|
|
2794
2800
|
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
2795
|
-
var Paper =
|
|
2801
|
+
var Paper = forwardRef12((props, ref) => {
|
|
2796
2802
|
const { elevation, border, className, ...rest } = props;
|
|
2797
2803
|
const borderCn = border === "default" || border === "subtle" ? border : "on-inverse";
|
|
2798
2804
|
return /* @__PURE__ */ jsx176(
|
|
@@ -4282,7 +4288,7 @@ var visibilityTransition = (open) => {
|
|
|
4282
4288
|
};
|
|
4283
4289
|
|
|
4284
4290
|
// src/components/Accordion/Accordion.tsx
|
|
4285
|
-
import { forwardRef as
|
|
4291
|
+
import { forwardRef as forwardRef13 } from "react";
|
|
4286
4292
|
|
|
4287
4293
|
// src/components/Accordion/Accordion.module.css
|
|
4288
4294
|
var Accordion_default = {
|
|
@@ -4413,7 +4419,7 @@ var useAccordionContext = () => {
|
|
|
4413
4419
|
|
|
4414
4420
|
// src/components/Accordion/Accordion.tsx
|
|
4415
4421
|
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
4416
|
-
var Accordion =
|
|
4422
|
+
var Accordion = forwardRef13(
|
|
4417
4423
|
(props, ref) => {
|
|
4418
4424
|
const {
|
|
4419
4425
|
isExpanded = false,
|
|
@@ -4461,9 +4467,9 @@ Accordion.displayName = "Accordion";
|
|
|
4461
4467
|
|
|
4462
4468
|
// src/components/Accordion/AccordionHeader.tsx
|
|
4463
4469
|
import { ddsTokens as ddsTokens10 } from "@norges-domstoler/dds-design-tokens";
|
|
4464
|
-
import { forwardRef as
|
|
4470
|
+
import { forwardRef as forwardRef14 } from "react";
|
|
4465
4471
|
import { jsx as jsx179, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4466
|
-
var AccordionHeader =
|
|
4472
|
+
var AccordionHeader = forwardRef14((props, ref) => {
|
|
4467
4473
|
const {
|
|
4468
4474
|
children,
|
|
4469
4475
|
className,
|
|
@@ -4522,9 +4528,9 @@ var AccordionHeader = forwardRef13((props, ref) => {
|
|
|
4522
4528
|
AccordionHeader.displayName = "AccordionHeader";
|
|
4523
4529
|
|
|
4524
4530
|
// src/components/Accordion/AccordionBody.tsx
|
|
4525
|
-
import { forwardRef as
|
|
4531
|
+
import { forwardRef as forwardRef15 } from "react";
|
|
4526
4532
|
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
4527
|
-
var AccordionBody =
|
|
4533
|
+
var AccordionBody = forwardRef15(
|
|
4528
4534
|
(props, ref) => {
|
|
4529
4535
|
const { children, className, htmlProps, ...rest } = props;
|
|
4530
4536
|
const { bodyContentRef, bodyProps } = useAccordionContext();
|
|
@@ -4558,7 +4564,7 @@ var AccordionBody = forwardRef14(
|
|
|
4558
4564
|
AccordionBody.displayName = "AccordionBody";
|
|
4559
4565
|
|
|
4560
4566
|
// src/components/BackLink/BackLink.tsx
|
|
4561
|
-
import { forwardRef as
|
|
4567
|
+
import { forwardRef as forwardRef16 } from "react";
|
|
4562
4568
|
|
|
4563
4569
|
// src/components/BackLink/BackLink.module.css
|
|
4564
4570
|
var BackLink_default = {
|
|
@@ -4567,7 +4573,7 @@ var BackLink_default = {
|
|
|
4567
4573
|
|
|
4568
4574
|
// src/components/BackLink/BackLink.tsx
|
|
4569
4575
|
import { jsx as jsx181, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4570
|
-
var BackLink =
|
|
4576
|
+
var BackLink = forwardRef16((props, ref) => {
|
|
4571
4577
|
return /* @__PURE__ */ jsx181("nav", { ref, "aria-label": "g\xE5 tilbake", children: /* @__PURE__ */ jsxs25(Link, { href: props.href, children: [
|
|
4572
4578
|
/* @__PURE__ */ jsx181(
|
|
4573
4579
|
Icon,
|
|
@@ -4584,13 +4590,13 @@ BackLink.displayName = "BackLink";
|
|
|
4584
4590
|
|
|
4585
4591
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
4586
4592
|
import {
|
|
4587
|
-
forwardRef as
|
|
4593
|
+
forwardRef as forwardRef17
|
|
4588
4594
|
} from "react";
|
|
4589
4595
|
import { jsx as jsx182 } from "react/jsx-runtime";
|
|
4590
4596
|
var isAnchorTypographyProps = (props) => {
|
|
4591
4597
|
return props.href != void 0;
|
|
4592
4598
|
};
|
|
4593
|
-
var Breadcrumb =
|
|
4599
|
+
var Breadcrumb = forwardRef17(
|
|
4594
4600
|
(props, ref) => {
|
|
4595
4601
|
const { children, ...rest } = props;
|
|
4596
4602
|
if (isAnchorTypographyProps(props)) {
|
|
@@ -4602,7 +4608,7 @@ var Breadcrumb = forwardRef16(
|
|
|
4602
4608
|
Breadcrumb.displayName = "Breadcrumb";
|
|
4603
4609
|
|
|
4604
4610
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
4605
|
-
import { Children, forwardRef as
|
|
4611
|
+
import { Children, forwardRef as forwardRef27, isValidElement as isValidElement2 } from "react";
|
|
4606
4612
|
|
|
4607
4613
|
// src/components/Breadcrumbs/Breadcrumbs.module.css
|
|
4608
4614
|
var Breadcrumbs_default = {
|
|
@@ -4626,7 +4632,7 @@ var Breadcrumbs_default = {
|
|
|
4626
4632
|
// src/components/Button/Button.tsx
|
|
4627
4633
|
import { ddsTokens as ddsTokens12 } from "@norges-domstoler/dds-design-tokens";
|
|
4628
4634
|
import {
|
|
4629
|
-
forwardRef as
|
|
4635
|
+
forwardRef as forwardRef18
|
|
4630
4636
|
} from "react";
|
|
4631
4637
|
|
|
4632
4638
|
// src/components/Button/Button.module.css
|
|
@@ -4726,7 +4732,7 @@ var typographyTypes = {
|
|
|
4726
4732
|
small: "bodySans01",
|
|
4727
4733
|
tiny: "supportingStyleTiny01"
|
|
4728
4734
|
};
|
|
4729
|
-
var Button =
|
|
4735
|
+
var Button = forwardRef18(
|
|
4730
4736
|
(props, ref) => {
|
|
4731
4737
|
const {
|
|
4732
4738
|
children,
|
|
@@ -4841,7 +4847,7 @@ Button.displayName = "Button";
|
|
|
4841
4847
|
|
|
4842
4848
|
// src/components/OverflowMenu/OverflowMenu.tsx
|
|
4843
4849
|
import { ddsTokens as ddsTokens13 } from "@norges-domstoler/dds-design-tokens";
|
|
4844
|
-
import { forwardRef as
|
|
4850
|
+
import { forwardRef as forwardRef19, useEffect as useEffect12, useId as useId4 } from "react";
|
|
4845
4851
|
|
|
4846
4852
|
// src/components/OverflowMenu/OverflowMenu.context.tsx
|
|
4847
4853
|
import {
|
|
@@ -4900,7 +4906,7 @@ var OverflowMenu_default = {
|
|
|
4900
4906
|
|
|
4901
4907
|
// src/components/OverflowMenu/OverflowMenu.tsx
|
|
4902
4908
|
import { jsx as jsx186 } from "react/jsx-runtime";
|
|
4903
|
-
var OverflowMenu =
|
|
4909
|
+
var OverflowMenu = forwardRef19(
|
|
4904
4910
|
(props, ref) => {
|
|
4905
4911
|
var _a, _b;
|
|
4906
4912
|
const {
|
|
@@ -4985,9 +4991,9 @@ var OverflowMenu = forwardRef18(
|
|
|
4985
4991
|
OverflowMenu.displayName = "OverflowMenu";
|
|
4986
4992
|
|
|
4987
4993
|
// src/components/OverflowMenu/components/OverflowMenuButton.tsx
|
|
4988
|
-
import { forwardRef as
|
|
4994
|
+
import { forwardRef as forwardRef20, useEffect as useEffect13, useRef as useRef6 } from "react";
|
|
4989
4995
|
import { jsx as jsx187, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4990
|
-
var OverflowMenuButton =
|
|
4996
|
+
var OverflowMenuButton = forwardRef20((props, ref) => {
|
|
4991
4997
|
const { id, icon, children, className, onClick, ...rest } = props;
|
|
4992
4998
|
const itemRef = useRef6(null);
|
|
4993
4999
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
@@ -5026,9 +5032,9 @@ var OverflowMenuButton = forwardRef19((props, ref) => {
|
|
|
5026
5032
|
OverflowMenuButton.displayName = "OverflowMenuButton";
|
|
5027
5033
|
|
|
5028
5034
|
// src/components/OverflowMenu/components/OverflowMenuLink.tsx
|
|
5029
|
-
import { forwardRef as
|
|
5035
|
+
import { forwardRef as forwardRef21, useEffect as useEffect14, useRef as useRef7 } from "react";
|
|
5030
5036
|
import { jsx as jsx188, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5031
|
-
var OverflowMenuLink =
|
|
5037
|
+
var OverflowMenuLink = forwardRef21((props, ref) => {
|
|
5032
5038
|
const { id, href, icon, className, onClick, children, ...rest } = props;
|
|
5033
5039
|
const itemRef = useRef7(null);
|
|
5034
5040
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
@@ -5068,10 +5074,10 @@ var OverflowMenuLink = forwardRef20((props, ref) => {
|
|
|
5068
5074
|
OverflowMenuLink.displayName = "OverflowMenuLink";
|
|
5069
5075
|
|
|
5070
5076
|
// src/components/OverflowMenu/components/OverflowMenuDivider.tsx
|
|
5071
|
-
import { forwardRef as
|
|
5077
|
+
import { forwardRef as forwardRef23 } from "react";
|
|
5072
5078
|
|
|
5073
5079
|
// src/components/Divider/Divider.tsx
|
|
5074
|
-
import { forwardRef as
|
|
5080
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
5075
5081
|
|
|
5076
5082
|
// src/components/Divider/Divider.module.css
|
|
5077
5083
|
var Divider_default = {
|
|
@@ -5083,7 +5089,7 @@ var Divider_default = {
|
|
|
5083
5089
|
|
|
5084
5090
|
// src/components/Divider/Divider.tsx
|
|
5085
5091
|
import { jsx as jsx189 } from "react/jsx-runtime";
|
|
5086
|
-
var Divider =
|
|
5092
|
+
var Divider = forwardRef22((props, ref) => {
|
|
5087
5093
|
const { color = "default", id, className, htmlProps, ...rest } = props;
|
|
5088
5094
|
const colorCn = color === "default" || color === "subtle" ? color : "on-inverse";
|
|
5089
5095
|
const lineProps = {
|
|
@@ -5101,7 +5107,7 @@ Divider.displayName = "Divider";
|
|
|
5101
5107
|
|
|
5102
5108
|
// src/components/OverflowMenu/components/OverflowMenuDivider.tsx
|
|
5103
5109
|
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
5104
|
-
var OverflowMenuDivider =
|
|
5110
|
+
var OverflowMenuDivider = forwardRef23((props, ref) => {
|
|
5105
5111
|
const { className, ...rest } = props;
|
|
5106
5112
|
return /* @__PURE__ */ jsx190(
|
|
5107
5113
|
Divider,
|
|
@@ -5116,9 +5122,9 @@ var OverflowMenuDivider = forwardRef22((props, ref) => {
|
|
|
5116
5122
|
OverflowMenuDivider.displayName = "OverflowMenuDivider";
|
|
5117
5123
|
|
|
5118
5124
|
// src/components/OverflowMenu/components/OverflowMenuList.tsx
|
|
5119
|
-
import { forwardRef as
|
|
5125
|
+
import { forwardRef as forwardRef24 } from "react";
|
|
5120
5126
|
import { jsx as jsx191 } from "react/jsx-runtime";
|
|
5121
|
-
var OverflowMenuList =
|
|
5127
|
+
var OverflowMenuList = forwardRef24((props, ref) => {
|
|
5122
5128
|
return /* @__PURE__ */ jsx191(
|
|
5123
5129
|
"ul",
|
|
5124
5130
|
{
|
|
@@ -5130,9 +5136,9 @@ var OverflowMenuList = forwardRef23((props, ref) => {
|
|
|
5130
5136
|
});
|
|
5131
5137
|
|
|
5132
5138
|
// src/components/OverflowMenu/components/OverflowMenuSpan.tsx
|
|
5133
|
-
import { forwardRef as
|
|
5139
|
+
import { forwardRef as forwardRef25 } from "react";
|
|
5134
5140
|
import { jsx as jsx192, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5135
|
-
var OverflowMenuSpan =
|
|
5141
|
+
var OverflowMenuSpan = forwardRef25((props, ref) => {
|
|
5136
5142
|
const { icon, children, className, ...rest } = props;
|
|
5137
5143
|
return /* @__PURE__ */ jsx192("li", { children: /* @__PURE__ */ jsxs30(
|
|
5138
5144
|
"span",
|
|
@@ -5154,9 +5160,9 @@ var OverflowMenuSpan = forwardRef24((props, ref) => {
|
|
|
5154
5160
|
OverflowMenuSpan.displayName = "OverflowMenuSpan";
|
|
5155
5161
|
|
|
5156
5162
|
// src/components/OverflowMenu/components/OverflowMenuListHeader.tsx
|
|
5157
|
-
import { forwardRef as
|
|
5163
|
+
import { forwardRef as forwardRef26 } from "react";
|
|
5158
5164
|
import { jsx as jsx193 } from "react/jsx-runtime";
|
|
5159
|
-
var OverflowMenuListHeader =
|
|
5165
|
+
var OverflowMenuListHeader = forwardRef26((props, ref) => {
|
|
5160
5166
|
return /* @__PURE__ */ jsx193(
|
|
5161
5167
|
"h2",
|
|
5162
5168
|
{
|
|
@@ -5226,7 +5232,7 @@ OverflowMenuGroup.displayName = "OverflowMenuGroup";
|
|
|
5226
5232
|
|
|
5227
5233
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
5228
5234
|
import { Fragment as Fragment3, jsx as jsx195, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5229
|
-
var Breadcrumbs =
|
|
5235
|
+
var Breadcrumbs = forwardRef27(
|
|
5230
5236
|
(props, ref) => {
|
|
5231
5237
|
const {
|
|
5232
5238
|
children,
|
|
@@ -5327,7 +5333,7 @@ Breadcrumbs.displayName = "Breadcrumbs";
|
|
|
5327
5333
|
import {
|
|
5328
5334
|
Children as ReactChildren2,
|
|
5329
5335
|
cloneElement as cloneElement2,
|
|
5330
|
-
forwardRef as
|
|
5336
|
+
forwardRef as forwardRef28,
|
|
5331
5337
|
isValidElement as isValidElement3
|
|
5332
5338
|
} from "react";
|
|
5333
5339
|
|
|
@@ -5340,7 +5346,7 @@ var ButtonGroup_default = {
|
|
|
5340
5346
|
|
|
5341
5347
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
5342
5348
|
import { jsx as jsx196 } from "react/jsx-runtime";
|
|
5343
|
-
var ButtonGroup =
|
|
5349
|
+
var ButtonGroup = forwardRef28(
|
|
5344
5350
|
(props, ref) => {
|
|
5345
5351
|
const {
|
|
5346
5352
|
children,
|
|
@@ -5426,7 +5432,7 @@ var Card = (props) => {
|
|
|
5426
5432
|
Card.displayName = "Card";
|
|
5427
5433
|
|
|
5428
5434
|
// src/components/Card/CardAccordion/CardAccordion.tsx
|
|
5429
|
-
import { forwardRef as
|
|
5435
|
+
import { forwardRef as forwardRef29 } from "react";
|
|
5430
5436
|
|
|
5431
5437
|
// src/components/Card/CardAccordion/CardAccordion.module.css
|
|
5432
5438
|
var CardAccordion_default = {
|
|
@@ -5439,7 +5445,7 @@ var CardAccordion_default = {
|
|
|
5439
5445
|
|
|
5440
5446
|
// src/components/Card/CardAccordion/CardAccordion.tsx
|
|
5441
5447
|
import { jsx as jsx198 } from "react/jsx-runtime";
|
|
5442
|
-
var CardAccordion =
|
|
5448
|
+
var CardAccordion = forwardRef29(
|
|
5443
5449
|
(props, ref) => {
|
|
5444
5450
|
const {
|
|
5445
5451
|
isExpanded = false,
|
|
@@ -5487,9 +5493,9 @@ CardAccordion.displayName = "CardAccordion";
|
|
|
5487
5493
|
|
|
5488
5494
|
// src/components/Card/CardAccordion/CardAccordionHeader.tsx
|
|
5489
5495
|
import { ddsTokens as ddsTokens14 } from "@norges-domstoler/dds-design-tokens";
|
|
5490
|
-
import { forwardRef as
|
|
5496
|
+
import { forwardRef as forwardRef30 } from "react";
|
|
5491
5497
|
import { jsx as jsx199, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5492
|
-
var CardAccordionHeader =
|
|
5498
|
+
var CardAccordionHeader = forwardRef30((props, ref) => {
|
|
5493
5499
|
const {
|
|
5494
5500
|
children,
|
|
5495
5501
|
className,
|
|
@@ -5553,9 +5559,9 @@ var CardAccordionHeader = forwardRef29((props, ref) => {
|
|
|
5553
5559
|
CardAccordionHeader.displayName = "CardAccordionHeader";
|
|
5554
5560
|
|
|
5555
5561
|
// src/components/Card/CardAccordion/CardAccordionBody.tsx
|
|
5556
|
-
import { forwardRef as
|
|
5562
|
+
import { forwardRef as forwardRef31 } from "react";
|
|
5557
5563
|
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
5558
|
-
var CardAccordionBody =
|
|
5564
|
+
var CardAccordionBody = forwardRef31((props, ref) => {
|
|
5559
5565
|
const { children, className, htmlProps, padding, ...rest } = props;
|
|
5560
5566
|
const { bodyContentRef, bodyProps } = useAccordionContext();
|
|
5561
5567
|
const { className: bodyContextCn, id, height, ...restBodyProps } = bodyProps;
|
|
@@ -5600,7 +5606,7 @@ var CardAccordionBody = forwardRef30((props, ref) => {
|
|
|
5600
5606
|
CardAccordionBody.displayName = "CardAccordionBody";
|
|
5601
5607
|
|
|
5602
5608
|
// src/components/Chip/Chip.tsx
|
|
5603
|
-
import { forwardRef as
|
|
5609
|
+
import { forwardRef as forwardRef32, useState as useState8 } from "react";
|
|
5604
5610
|
|
|
5605
5611
|
// src/components/Chip/Chip.module.css
|
|
5606
5612
|
var Chip_default = {
|
|
@@ -5610,7 +5616,7 @@ var Chip_default = {
|
|
|
5610
5616
|
|
|
5611
5617
|
// src/components/Chip/Chip.tsx
|
|
5612
5618
|
import { jsx as jsx201, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
5613
|
-
var Chip =
|
|
5619
|
+
var Chip = forwardRef32((props, ref) => {
|
|
5614
5620
|
const { text, onClose, id, className, htmlProps = {}, ...rest } = props;
|
|
5615
5621
|
const { "aria-label": ariaLabel, ...restHTMLprops } = htmlProps;
|
|
5616
5622
|
const [isOpen, setIsOpen] = useState8(true);
|
|
@@ -5653,9 +5659,9 @@ var Chip = forwardRef31((props, ref) => {
|
|
|
5653
5659
|
Chip.displayName = "Chip";
|
|
5654
5660
|
|
|
5655
5661
|
// src/components/Chip/ChipGroup.tsx
|
|
5656
|
-
import { Children as Children2, forwardRef as
|
|
5662
|
+
import { Children as Children2, forwardRef as forwardRef33 } from "react";
|
|
5657
5663
|
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
5658
|
-
var ChipGroup =
|
|
5664
|
+
var ChipGroup = forwardRef33(
|
|
5659
5665
|
({ children, className, ...rest }, ref) => {
|
|
5660
5666
|
const childrenArray = Children2.toArray(children);
|
|
5661
5667
|
return /* @__PURE__ */ jsx202(
|
|
@@ -5676,7 +5682,7 @@ var ChipGroup = forwardRef32(
|
|
|
5676
5682
|
ChipGroup.displayName = "ChipGroup";
|
|
5677
5683
|
|
|
5678
5684
|
// src/components/Contrast/Contrast.tsx
|
|
5679
|
-
import { forwardRef as
|
|
5685
|
+
import { forwardRef as forwardRef34 } from "react";
|
|
5680
5686
|
|
|
5681
5687
|
// src/components/Contrast/Contrast.module.css
|
|
5682
5688
|
var Contrast_default = {
|
|
@@ -5685,7 +5691,7 @@ var Contrast_default = {
|
|
|
5685
5691
|
|
|
5686
5692
|
// src/components/Contrast/Contrast.tsx
|
|
5687
5693
|
import { jsx as jsx203 } from "react/jsx-runtime";
|
|
5688
|
-
var Contrast =
|
|
5694
|
+
var Contrast = forwardRef34((props, ref) => {
|
|
5689
5695
|
const { className, as = "div", ...rest } = props;
|
|
5690
5696
|
return /* @__PURE__ */ jsx203(
|
|
5691
5697
|
ElementAs,
|
|
@@ -6024,7 +6030,7 @@ Calendar.displayName = "Calendar";
|
|
|
6024
6030
|
import { useDatePicker } from "@react-aria/datepicker";
|
|
6025
6031
|
import { I18nProvider } from "@react-aria/i18n";
|
|
6026
6032
|
import { useDatePickerState } from "@react-stately/datepicker";
|
|
6027
|
-
import { forwardRef as
|
|
6033
|
+
import { forwardRef as forwardRef38, useRef as useRef15 } from "react";
|
|
6028
6034
|
|
|
6029
6035
|
// src/components/date-inputs/DatePicker/DateField/DateField.tsx
|
|
6030
6036
|
import {
|
|
@@ -6036,7 +6042,7 @@ import {
|
|
|
6036
6042
|
import { useLocale as useLocale3 } from "@react-aria/i18n";
|
|
6037
6043
|
import { useDateFieldState } from "@react-stately/datepicker";
|
|
6038
6044
|
import {
|
|
6039
|
-
forwardRef as
|
|
6045
|
+
forwardRef as forwardRef37,
|
|
6040
6046
|
useRef as useRef13
|
|
6041
6047
|
} from "react";
|
|
6042
6048
|
|
|
@@ -6136,12 +6142,12 @@ DateSegment.displayName = "DateSegment";
|
|
|
6136
6142
|
|
|
6137
6143
|
// src/components/date-inputs/common/DateInput.tsx
|
|
6138
6144
|
import {
|
|
6139
|
-
forwardRef as
|
|
6145
|
+
forwardRef as forwardRef36,
|
|
6140
6146
|
useContext as useContext6
|
|
6141
6147
|
} from "react";
|
|
6142
6148
|
|
|
6143
6149
|
// src/components/InputMessage/InputMessage.tsx
|
|
6144
|
-
import { forwardRef as
|
|
6150
|
+
import { forwardRef as forwardRef35 } from "react";
|
|
6145
6151
|
|
|
6146
6152
|
// src/components/InputMessage/InputMessage.module.css
|
|
6147
6153
|
var InputMessage_default = {
|
|
@@ -6152,7 +6158,7 @@ var InputMessage_default = {
|
|
|
6152
6158
|
|
|
6153
6159
|
// src/components/InputMessage/InputMessage.tsx
|
|
6154
6160
|
import { Fragment as Fragment4, jsx as jsx210, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6155
|
-
var InputMessage =
|
|
6161
|
+
var InputMessage = forwardRef35(
|
|
6156
6162
|
(props, ref) => {
|
|
6157
6163
|
const { message, messageType, id, className, htmlProps, ...rest } = props;
|
|
6158
6164
|
const isError = messageType === "error";
|
|
@@ -6285,7 +6291,7 @@ function _DateInput({
|
|
|
6285
6291
|
}
|
|
6286
6292
|
);
|
|
6287
6293
|
}
|
|
6288
|
-
var DateInput =
|
|
6294
|
+
var DateInput = forwardRef36(_DateInput);
|
|
6289
6295
|
DateInput.displayName = "DateInput";
|
|
6290
6296
|
|
|
6291
6297
|
// src/components/date-inputs/DatePicker/DateField/DateField.tsx
|
|
@@ -6341,7 +6347,7 @@ function _DateField({
|
|
|
6341
6347
|
}
|
|
6342
6348
|
);
|
|
6343
6349
|
}
|
|
6344
|
-
var DateField =
|
|
6350
|
+
var DateField = forwardRef37(_DateField);
|
|
6345
6351
|
DateField.displayName = "DateField";
|
|
6346
6352
|
|
|
6347
6353
|
// src/components/date-inputs/utils/useFocusManagerRef.ts
|
|
@@ -6373,7 +6379,7 @@ var refIsFocusable = (ref) => {
|
|
|
6373
6379
|
function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props }, forwardedRef) {
|
|
6374
6380
|
const state = useDatePickerState(props);
|
|
6375
6381
|
const domRef = useFocusManagerRef(
|
|
6376
|
-
refIsFocusable(
|
|
6382
|
+
refIsFocusable(forwardRef38) ? forwardedRef : null
|
|
6377
6383
|
);
|
|
6378
6384
|
const ref = useRef15(null);
|
|
6379
6385
|
const combinedRef = useCombinedRef(ref, domRef);
|
|
@@ -6402,13 +6408,13 @@ function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props
|
|
|
6402
6408
|
/* @__PURE__ */ jsx213(CalendarPopoverContent, { children: /* @__PURE__ */ jsx213(Calendar, { ...calendarProps }) })
|
|
6403
6409
|
] }) });
|
|
6404
6410
|
}
|
|
6405
|
-
var DatePicker =
|
|
6411
|
+
var DatePicker = forwardRef38(_DatePicker);
|
|
6406
6412
|
DatePicker.displayName = "DatePicker";
|
|
6407
6413
|
|
|
6408
6414
|
// src/components/date-inputs/TimePicker/TimePicker.tsx
|
|
6409
6415
|
import { useTimeField } from "@react-aria/datepicker";
|
|
6410
6416
|
import { useTimeFieldState } from "@react-stately/datepicker";
|
|
6411
|
-
import { forwardRef as
|
|
6417
|
+
import { forwardRef as forwardRef39, useRef as useRef16 } from "react";
|
|
6412
6418
|
import { jsx as jsx214 } from "react/jsx-runtime";
|
|
6413
6419
|
function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef) {
|
|
6414
6420
|
const ref = useRef16(null);
|
|
@@ -6460,7 +6466,7 @@ function _TimePicker({ componentSize = "medium", width, ...props }, forwardedRef
|
|
|
6460
6466
|
}
|
|
6461
6467
|
);
|
|
6462
6468
|
}
|
|
6463
|
-
var TimePicker =
|
|
6469
|
+
var TimePicker = forwardRef39(_TimePicker);
|
|
6464
6470
|
TimePicker.displayName = "TimePicker";
|
|
6465
6471
|
|
|
6466
6472
|
// src/components/date-inputs/utils/transform.ts
|
|
@@ -6497,7 +6503,7 @@ function calendarDateToNativeDate(date, time = new Time(12, 0, 0, 0)) {
|
|
|
6497
6503
|
}
|
|
6498
6504
|
|
|
6499
6505
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
6500
|
-
import { forwardRef as
|
|
6506
|
+
import { forwardRef as forwardRef40 } from "react";
|
|
6501
6507
|
|
|
6502
6508
|
// src/components/DescriptionList/DescriptionList.module.css
|
|
6503
6509
|
var DescriptionList_default = {
|
|
@@ -6512,7 +6518,7 @@ var DescriptionList_default = {
|
|
|
6512
6518
|
|
|
6513
6519
|
// src/components/DescriptionList/DescriptionList.tsx
|
|
6514
6520
|
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
6515
|
-
var DescriptionList =
|
|
6521
|
+
var DescriptionList = forwardRef40((props, ref) => {
|
|
6516
6522
|
const {
|
|
6517
6523
|
appearance = "default",
|
|
6518
6524
|
direction = "column",
|
|
@@ -6544,17 +6550,17 @@ var DescriptionList = forwardRef39((props, ref) => {
|
|
|
6544
6550
|
DescriptionList.displayName = "DescriptionList";
|
|
6545
6551
|
|
|
6546
6552
|
// src/components/DescriptionList/DescriptionListTerm.tsx
|
|
6547
|
-
import { forwardRef as
|
|
6553
|
+
import { forwardRef as forwardRef41 } from "react";
|
|
6548
6554
|
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
6549
|
-
var DescriptionListTerm =
|
|
6555
|
+
var DescriptionListTerm = forwardRef41(({ ...rest }, ref) => {
|
|
6550
6556
|
return /* @__PURE__ */ jsx216("dt", { ref, ...rest });
|
|
6551
6557
|
});
|
|
6552
6558
|
DescriptionListTerm.displayName = "DescriptionListTerm";
|
|
6553
6559
|
|
|
6554
6560
|
// src/components/DescriptionList/DescriptionListDesc.tsx
|
|
6555
|
-
import { forwardRef as
|
|
6561
|
+
import { forwardRef as forwardRef42 } from "react";
|
|
6556
6562
|
import { jsx as jsx217, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6557
|
-
var DescriptionListDesc =
|
|
6563
|
+
var DescriptionListDesc = forwardRef42((props, ref) => {
|
|
6558
6564
|
const { children, icon, id, className, htmlProps, ...rest } = props;
|
|
6559
6565
|
return /* @__PURE__ */ jsxs40(
|
|
6560
6566
|
"dd",
|
|
@@ -6572,9 +6578,9 @@ var DescriptionListDesc = forwardRef41((props, ref) => {
|
|
|
6572
6578
|
DescriptionListDesc.displayName = "DescriptionListDesc";
|
|
6573
6579
|
|
|
6574
6580
|
// src/components/DescriptionList/DescriptionListGroup.tsx
|
|
6575
|
-
import { forwardRef as
|
|
6581
|
+
import { forwardRef as forwardRef43 } from "react";
|
|
6576
6582
|
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
6577
|
-
var DescriptionListGroup =
|
|
6583
|
+
var DescriptionListGroup = forwardRef43((props, ref) => {
|
|
6578
6584
|
const {
|
|
6579
6585
|
children,
|
|
6580
6586
|
margin,
|
|
@@ -6598,7 +6604,7 @@ var DescriptionListGroup = forwardRef42((props, ref) => {
|
|
|
6598
6604
|
DescriptionListGroup.displayName = "DescriptionListGroup";
|
|
6599
6605
|
|
|
6600
6606
|
// src/components/DetailList/DetailList.tsx
|
|
6601
|
-
import { forwardRef as
|
|
6607
|
+
import { forwardRef as forwardRef44 } from "react";
|
|
6602
6608
|
|
|
6603
6609
|
// src/components/DetailList/DetailList.module.css
|
|
6604
6610
|
var DetailList_default = {
|
|
@@ -6615,7 +6621,7 @@ var DetailList_default = {
|
|
|
6615
6621
|
|
|
6616
6622
|
// src/components/DetailList/DetailList.tsx
|
|
6617
6623
|
import { jsx as jsx219 } from "react/jsx-runtime";
|
|
6618
|
-
var DetailList =
|
|
6624
|
+
var DetailList = forwardRef44(
|
|
6619
6625
|
(props, ref) => {
|
|
6620
6626
|
const {
|
|
6621
6627
|
id,
|
|
@@ -6649,9 +6655,9 @@ var DetailList = forwardRef43(
|
|
|
6649
6655
|
DetailList.displayName = "DetailList";
|
|
6650
6656
|
|
|
6651
6657
|
// src/components/DetailList/DetailListDesc.tsx
|
|
6652
|
-
import { forwardRef as
|
|
6658
|
+
import { forwardRef as forwardRef45 } from "react";
|
|
6653
6659
|
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
6654
|
-
var DetailListDesc =
|
|
6660
|
+
var DetailListDesc = forwardRef45(
|
|
6655
6661
|
({ className, ...rest }, ref) => {
|
|
6656
6662
|
return /* @__PURE__ */ jsx220("dd", { ref, className: cn(className, DetailList_default.cell), ...rest });
|
|
6657
6663
|
}
|
|
@@ -6659,9 +6665,9 @@ var DetailListDesc = forwardRef44(
|
|
|
6659
6665
|
DetailListDesc.displayName = "DetailListDesc";
|
|
6660
6666
|
|
|
6661
6667
|
// src/components/DetailList/DetailListRow.tsx
|
|
6662
|
-
import { forwardRef as
|
|
6668
|
+
import { forwardRef as forwardRef46 } from "react";
|
|
6663
6669
|
import { jsx as jsx221 } from "react/jsx-runtime";
|
|
6664
|
-
var DetailListRow =
|
|
6670
|
+
var DetailListRow = forwardRef46(
|
|
6665
6671
|
({ className, ...rest }, ref) => {
|
|
6666
6672
|
return /* @__PURE__ */ jsx221("div", { ref, className: cn(className, DetailList_default.row), ...rest });
|
|
6667
6673
|
}
|
|
@@ -6669,9 +6675,9 @@ var DetailListRow = forwardRef45(
|
|
|
6669
6675
|
DetailListRow.displayName = "DetailListRow";
|
|
6670
6676
|
|
|
6671
6677
|
// src/components/DetailList/DetailListTerm.tsx
|
|
6672
|
-
import { forwardRef as
|
|
6678
|
+
import { forwardRef as forwardRef47 } from "react";
|
|
6673
6679
|
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
6674
|
-
var DetailListTerm =
|
|
6680
|
+
var DetailListTerm = forwardRef47(
|
|
6675
6681
|
({ className, ...rest }, ref) => {
|
|
6676
6682
|
return /* @__PURE__ */ jsx222(
|
|
6677
6683
|
"dt",
|
|
@@ -6687,9 +6693,10 @@ DetailListTerm.displayName = "DetailListTerm";
|
|
|
6687
6693
|
|
|
6688
6694
|
// src/components/Drawer/Drawer.tsx
|
|
6689
6695
|
import {
|
|
6690
|
-
forwardRef as
|
|
6696
|
+
forwardRef as forwardRef48,
|
|
6691
6697
|
useEffect as useEffect16,
|
|
6692
|
-
useId as useId6
|
|
6698
|
+
useId as useId6,
|
|
6699
|
+
useRef as useRef17
|
|
6693
6700
|
} from "react";
|
|
6694
6701
|
import { createPortal } from "react-dom";
|
|
6695
6702
|
|
|
@@ -6711,7 +6718,7 @@ var Drawer_default = {
|
|
|
6711
6718
|
|
|
6712
6719
|
// src/components/Drawer/Drawer.tsx
|
|
6713
6720
|
import { jsx as jsx223, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6714
|
-
var Drawer =
|
|
6721
|
+
var Drawer = forwardRef48((props, ref) => {
|
|
6715
6722
|
const {
|
|
6716
6723
|
children,
|
|
6717
6724
|
onClose,
|
|
@@ -6756,10 +6763,16 @@ var Drawer = forwardRef47((props, ref) => {
|
|
|
6756
6763
|
];
|
|
6757
6764
|
if (triggerRef) elements.push(triggerRef.current);
|
|
6758
6765
|
useOnClickOutside(elements, () => {
|
|
6759
|
-
if (isOpen) {
|
|
6766
|
+
if (isOpen && !withBackdrop) {
|
|
6760
6767
|
onClose == null ? void 0 : onClose();
|
|
6761
6768
|
}
|
|
6762
6769
|
});
|
|
6770
|
+
const backdropRef = useRef17(null);
|
|
6771
|
+
const onBackdropClick = (event) => {
|
|
6772
|
+
if (event.target === backdropRef.current && isOpen && withBackdrop) {
|
|
6773
|
+
onClose == null ? void 0 : onClose();
|
|
6774
|
+
}
|
|
6775
|
+
};
|
|
6763
6776
|
const hasTransitionedIn = useMountTransition(isOpen, 500);
|
|
6764
6777
|
const isMounted = hasTransitionedIn && isOpen;
|
|
6765
6778
|
const isOpenCn = isMounted ? "opened" : "closed";
|
|
@@ -6815,7 +6828,7 @@ var Drawer = forwardRef47((props, ref) => {
|
|
|
6815
6828
|
]
|
|
6816
6829
|
}
|
|
6817
6830
|
);
|
|
6818
|
-
const component = withBackdrop ? /* @__PURE__ */ jsx223(Backdrop, { isMounted, children: drawer }) : drawer;
|
|
6831
|
+
const component = withBackdrop ? /* @__PURE__ */ jsx223(Backdrop, { isMounted, ref: backdropRef, onClick: onBackdropClick, children: drawer }) : drawer;
|
|
6819
6832
|
return isOpen || hasTransitionedIn ? createPortal(component, parentElement) : null;
|
|
6820
6833
|
});
|
|
6821
6834
|
Drawer.displayName = "Drawer";
|
|
@@ -6826,7 +6839,7 @@ import {
|
|
|
6826
6839
|
cloneElement as cloneElement3,
|
|
6827
6840
|
isValidElement as isValidElement4,
|
|
6828
6841
|
useId as useId7,
|
|
6829
|
-
useRef as
|
|
6842
|
+
useRef as useRef18,
|
|
6830
6843
|
useState as useState9
|
|
6831
6844
|
} from "react";
|
|
6832
6845
|
import { Fragment as Fragment5, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
@@ -6838,7 +6851,7 @@ var DrawerGroup = ({
|
|
|
6838
6851
|
}) => {
|
|
6839
6852
|
const generatedId = useId7();
|
|
6840
6853
|
const uniqueDrawerId = drawerId != null ? drawerId : `${generatedId}-drawer`;
|
|
6841
|
-
const buttonRef =
|
|
6854
|
+
const buttonRef = useRef18(null);
|
|
6842
6855
|
const [closed, setClosed] = useState9(true);
|
|
6843
6856
|
const open = () => setClosed(false);
|
|
6844
6857
|
const close = () => setClosed(true);
|
|
@@ -6896,7 +6909,7 @@ function EmptyContent({
|
|
|
6896
6909
|
EmptyContent.displayName = "EmptyContent";
|
|
6897
6910
|
|
|
6898
6911
|
// src/components/FavStar/FavStar.tsx
|
|
6899
|
-
import { forwardRef as
|
|
6912
|
+
import { forwardRef as forwardRef49, useId as useId8 } from "react";
|
|
6900
6913
|
|
|
6901
6914
|
// src/components/FavStar/FavStar.module.css
|
|
6902
6915
|
var FavStar_default = {
|
|
@@ -6911,9 +6924,9 @@ var FavStar_default = {
|
|
|
6911
6924
|
import { useState as useState10 } from "react";
|
|
6912
6925
|
|
|
6913
6926
|
// src/hooks/useCallbackRef.ts
|
|
6914
|
-
import { useCallback as useCallback5, useEffect as useEffect17, useRef as
|
|
6927
|
+
import { useCallback as useCallback5, useEffect as useEffect17, useRef as useRef19 } from "react";
|
|
6915
6928
|
function useCallbackRef(callback, deps = []) {
|
|
6916
|
-
const callbackRef =
|
|
6929
|
+
const callbackRef = useRef19(callback);
|
|
6917
6930
|
useEffect17(() => {
|
|
6918
6931
|
callbackRef.current = callback;
|
|
6919
6932
|
});
|
|
@@ -6946,7 +6959,7 @@ function useControllableState(props) {
|
|
|
6946
6959
|
|
|
6947
6960
|
// src/components/FavStar/FavStar.tsx
|
|
6948
6961
|
import { jsx as jsx225, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
6949
|
-
var FavStar =
|
|
6962
|
+
var FavStar = forwardRef49(
|
|
6950
6963
|
({
|
|
6951
6964
|
id,
|
|
6952
6965
|
className,
|
|
@@ -7026,7 +7039,7 @@ var Feedback_default = {
|
|
|
7026
7039
|
};
|
|
7027
7040
|
|
|
7028
7041
|
// src/components/Stack/Stack.tsx
|
|
7029
|
-
import { forwardRef as
|
|
7042
|
+
import { forwardRef as forwardRef50 } from "react";
|
|
7030
7043
|
|
|
7031
7044
|
// src/components/Stack/Stack.module.css
|
|
7032
7045
|
var Stack_default = {
|
|
@@ -7063,7 +7076,7 @@ var Stack_default = {
|
|
|
7063
7076
|
|
|
7064
7077
|
// src/components/Stack/Stack.tsx
|
|
7065
7078
|
import { jsx as jsx226 } from "react/jsx-runtime";
|
|
7066
|
-
var HStack =
|
|
7079
|
+
var HStack = forwardRef50(
|
|
7067
7080
|
({
|
|
7068
7081
|
id,
|
|
7069
7082
|
className,
|
|
@@ -7102,7 +7115,7 @@ var HStack = forwardRef49(
|
|
|
7102
7115
|
}
|
|
7103
7116
|
);
|
|
7104
7117
|
HStack.displayName = "HStack";
|
|
7105
|
-
var VStack =
|
|
7118
|
+
var VStack = forwardRef50(
|
|
7106
7119
|
({
|
|
7107
7120
|
id,
|
|
7108
7121
|
className,
|
|
@@ -7146,7 +7159,7 @@ function spacingPropToCn(value) {
|
|
|
7146
7159
|
}
|
|
7147
7160
|
|
|
7148
7161
|
// src/components/TextArea/TextArea.tsx
|
|
7149
|
-
import { forwardRef as
|
|
7162
|
+
import { forwardRef as forwardRef51, useEffect as useEffect18, useId as useId9, useRef as useRef20, useState as useState11 } from "react";
|
|
7150
7163
|
|
|
7151
7164
|
// src/components/TextArea/TextArea.module.css
|
|
7152
7165
|
var TextArea_default = {
|
|
@@ -7156,7 +7169,7 @@ var TextArea_default = {
|
|
|
7156
7169
|
|
|
7157
7170
|
// src/components/TextArea/TextArea.tsx
|
|
7158
7171
|
import { jsx as jsx227, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7159
|
-
var TextArea =
|
|
7172
|
+
var TextArea = forwardRef51(
|
|
7160
7173
|
(props, ref) => {
|
|
7161
7174
|
const {
|
|
7162
7175
|
id,
|
|
@@ -7179,7 +7192,7 @@ var TextArea = forwardRef50(
|
|
|
7179
7192
|
} = props;
|
|
7180
7193
|
const generatedId = useId9();
|
|
7181
7194
|
const uniqueId = id != null ? id : `${generatedId}-textArea`;
|
|
7182
|
-
const textAreaRef =
|
|
7195
|
+
const textAreaRef = useRef20(null);
|
|
7183
7196
|
const multiRef = useCombinedRef(ref, textAreaRef);
|
|
7184
7197
|
const [text, setText] = useState11(
|
|
7185
7198
|
getDefaultText(value, defaultValue)
|
|
@@ -7325,11 +7338,11 @@ var CommentComponent = ({
|
|
|
7325
7338
|
import {
|
|
7326
7339
|
Children as ReactChildren4,
|
|
7327
7340
|
cloneElement as cloneElement4,
|
|
7328
|
-
forwardRef as
|
|
7341
|
+
forwardRef as forwardRef52,
|
|
7329
7342
|
isValidElement as isValidElement5,
|
|
7330
7343
|
useEffect as useEffect19,
|
|
7331
7344
|
useId as useId10,
|
|
7332
|
-
useRef as
|
|
7345
|
+
useRef as useRef21,
|
|
7333
7346
|
useState as useState12
|
|
7334
7347
|
} from "react";
|
|
7335
7348
|
|
|
@@ -7343,7 +7356,7 @@ var Tooltip_default = {
|
|
|
7343
7356
|
|
|
7344
7357
|
// src/components/Tooltip/Tooltip.tsx
|
|
7345
7358
|
import { jsx as jsx229, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7346
|
-
var Tooltip =
|
|
7359
|
+
var Tooltip = forwardRef52(
|
|
7347
7360
|
(props, ref) => {
|
|
7348
7361
|
const {
|
|
7349
7362
|
text,
|
|
@@ -7367,7 +7380,7 @@ var Tooltip = forwardRef51(
|
|
|
7367
7380
|
const { refs, styles: positionStyles } = useFloatPosition(arrowElement, {
|
|
7368
7381
|
placement
|
|
7369
7382
|
});
|
|
7370
|
-
const tooltipRef =
|
|
7383
|
+
const tooltipRef = useRef21(null);
|
|
7371
7384
|
const combinedRef = useCombinedRef(ref, refs.setFloating, tooltipRef);
|
|
7372
7385
|
const closeWhenNotInView = (entries) => {
|
|
7373
7386
|
const [entry] = entries;
|
|
@@ -7610,7 +7623,7 @@ var Feedback = ({
|
|
|
7610
7623
|
};
|
|
7611
7624
|
|
|
7612
7625
|
// src/components/Fieldset/Fieldset.tsx
|
|
7613
|
-
import { forwardRef as
|
|
7626
|
+
import { forwardRef as forwardRef53 } from "react";
|
|
7614
7627
|
|
|
7615
7628
|
// src/components/Fieldset/Fieldset.module.css
|
|
7616
7629
|
var Fieldset_default = {
|
|
@@ -7619,7 +7632,7 @@ var Fieldset_default = {
|
|
|
7619
7632
|
|
|
7620
7633
|
// src/components/Fieldset/Fieldset.tsx
|
|
7621
7634
|
import { jsx as jsx232 } from "react/jsx-runtime";
|
|
7622
|
-
var Fieldset =
|
|
7635
|
+
var Fieldset = forwardRef53(
|
|
7623
7636
|
(props, ref) => {
|
|
7624
7637
|
const { id, className, htmlProps, ...rest } = props;
|
|
7625
7638
|
return /* @__PURE__ */ jsx232(
|
|
@@ -7735,7 +7748,7 @@ var File = (props) => {
|
|
|
7735
7748
|
import {
|
|
7736
7749
|
fromEvent as getFilesFromEvent
|
|
7737
7750
|
} from "file-selector";
|
|
7738
|
-
import { useCallback as useCallback6, useEffect as useEffect21, useMemo, useReducer, useRef as
|
|
7751
|
+
import { useCallback as useCallback6, useEffect as useEffect21, useMemo, useReducer, useRef as useRef22 } from "react";
|
|
7739
7752
|
|
|
7740
7753
|
// src/components/FileUploader/fileUploaderReducer.ts
|
|
7741
7754
|
var fileUploaderReducer = (state, action) => {
|
|
@@ -7834,9 +7847,9 @@ var useFileUploader = (props) => {
|
|
|
7834
7847
|
disabled,
|
|
7835
7848
|
errorMessage
|
|
7836
7849
|
} = props;
|
|
7837
|
-
const rootRef =
|
|
7838
|
-
const inputRef =
|
|
7839
|
-
const buttonRef =
|
|
7850
|
+
const rootRef = useRef22(null);
|
|
7851
|
+
const inputRef = useRef22(null);
|
|
7852
|
+
const buttonRef = useRef22(null);
|
|
7840
7853
|
const isControlled = !!value;
|
|
7841
7854
|
const initialFileUploaderFiles = useMemo(
|
|
7842
7855
|
() => (initialFiles != null ? initialFiles : []).map((f2) => ({
|
|
@@ -8165,7 +8178,7 @@ var FileUploader = (props) => {
|
|
|
8165
8178
|
FileUploader.displayName = "FileUploader";
|
|
8166
8179
|
|
|
8167
8180
|
// src/components/Footer/Footer.tsx
|
|
8168
|
-
import { forwardRef as
|
|
8181
|
+
import { forwardRef as forwardRef54 } from "react";
|
|
8169
8182
|
|
|
8170
8183
|
// src/components/Footer/Footer.module.css
|
|
8171
8184
|
var Footer_default = {
|
|
@@ -8182,7 +8195,7 @@ var Footer_default = {
|
|
|
8182
8195
|
|
|
8183
8196
|
// src/components/Footer/Footer.tsx
|
|
8184
8197
|
import { jsx as jsx237 } from "react/jsx-runtime";
|
|
8185
|
-
var Footer =
|
|
8198
|
+
var Footer = forwardRef54((props, ref) => {
|
|
8186
8199
|
const { className, ...rest } = props;
|
|
8187
8200
|
return /* @__PURE__ */ jsx237(
|
|
8188
8201
|
Contrast,
|
|
@@ -8196,21 +8209,21 @@ var Footer = forwardRef53((props, ref) => {
|
|
|
8196
8209
|
});
|
|
8197
8210
|
|
|
8198
8211
|
// src/components/Footer/FooterListHeader.tsx
|
|
8199
|
-
import { forwardRef as
|
|
8212
|
+
import { forwardRef as forwardRef55 } from "react";
|
|
8200
8213
|
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
8201
|
-
var FooterListHeader =
|
|
8214
|
+
var FooterListHeader = forwardRef55((props, ref) => {
|
|
8202
8215
|
return /* @__PURE__ */ jsx238(Heading, { level: 2, typographyType: "headingSans02", ref, ...props });
|
|
8203
8216
|
});
|
|
8204
8217
|
|
|
8205
8218
|
// src/components/Footer/FooterLogo.tsx
|
|
8206
|
-
import { forwardRef as
|
|
8219
|
+
import { forwardRef as forwardRef56 } from "react";
|
|
8207
8220
|
|
|
8208
8221
|
// src/components/Footer/norges_domstoler_logo.svg
|
|
8209
8222
|
var norges_domstoler_logo_default = 'data:image/svg+xml,<svg width="151" height="80" viewBox="0 0 151 80" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Logo" clip-path="url(%23clip0_18254_1882)">%0A<path id="Vector" d="M0 19.5721V0.38501H3.50998L9.51314 13.2128C10.169 14.6541 10.6734 16.1596 11.0182 17.7051H11.1848C10.9502 16.2655 10.8311 14.8093 10.8287 13.3507V0.38501H13.0174V19.5721H9.51314L3.50998 6.77306C2.84978 5.3389 2.34334 3.83883 1.99914 2.29798H1.83829C2.07013 3.73991 2.18921 5.19772 2.19446 6.65817V19.5721H0Z" fill="white"/>%0A<path id="Vector_2" d="M19.2848 17.4063C17.9942 15.7059 17.3489 13.2299 17.3489 9.97846C17.3489 6.72699 17.9942 4.25104 19.2848 2.55062C20.5716 0.850208 22.4118 0 24.8054 0C27.199 0 29.0488 0.844463 30.3548 2.53339C31.6416 4.25679 32.2907 6.70401 32.2907 10.0014C32.2907 13.2989 31.6416 15.7461 30.3548 17.4695C29.068 19.1929 27.2182 20.0029 24.8054 20.0029C22.3927 20.0029 20.5716 19.101 19.2848 17.4063ZM21.3357 4.05572C20.6003 5.31955 20.2308 7.29379 20.2269 9.97846C20.2231 12.6631 20.5927 14.6355 21.3357 15.8954C21.6776 16.4998 22.1813 16.9969 22.7902 17.3307C23.3991 17.6646 24.089 17.8221 24.7825 17.7854C25.4832 17.8288 26.182 17.6747 26.7994 17.3406C27.4169 17.0064 27.9282 16.5058 28.2752 15.8954C29.0143 14.6355 29.3858 12.6631 29.3897 9.97846C29.3935 7.29379 29.0297 5.31955 28.2982 4.05572C27.9502 3.44633 27.4387 2.9464 26.8215 2.61242C26.2042 2.27844 25.5059 2.12372 24.8054 2.16573C24.1083 2.12541 23.4138 2.28107 22.8006 2.6151C22.1874 2.94912 21.6799 3.44817 21.3357 4.05572Z" fill="white"/>%0A<path id="Vector_3" d="M48.594 15.5968C48.8111 16.9446 49.1318 18.2737 49.5534 19.5721H46.5317C46.4288 19.2619 46.3463 18.9453 46.2847 18.6243C46.21 18.2681 46.1238 17.7856 46.0376 17.1709C45.9515 16.5562 45.8825 16.1254 45.8423 15.8668C45.5513 13.9903 45.1415 12.7207 44.613 12.0581C44.0845 11.3956 43.2151 11.0681 42.0049 11.0758H39.1326V19.5721H36.4556V0.38501H43.0045C44.7968 0.38501 46.1813 0.815859 47.1693 1.6833C47.6677 2.13766 48.0592 2.69689 48.3154 3.32072C48.5717 3.94454 48.6865 4.61743 48.6515 5.29094C48.6898 5.93617 48.5867 6.58197 48.3496 7.18326C48.1125 7.78455 47.7469 8.32682 47.2785 8.7722C46.2192 9.64565 44.8691 10.0868 43.4985 10.0073H42.7287V10.1681L43.5272 10.1969C44.1017 10.2313 44.4866 10.2658 44.7566 10.2945C45.102 10.3329 45.4427 10.4061 45.7734 10.5128C46.1234 10.601 46.4442 10.7792 46.704 11.0298C46.968 11.3147 47.2064 11.6223 47.4164 11.949C47.7076 12.4082 47.9301 12.9075 48.077 13.4311C48.2551 14.0343 48.4332 14.7581 48.594 15.5968ZM39.167 9.09964H42.43C42.8862 9.13106 43.3441 9.06822 43.775 8.91503C44.2059 8.76184 44.6006 8.52159 44.9347 8.20922C45.241 7.86617 45.4755 7.4653 45.6245 7.03021C45.7734 6.59512 45.8338 6.13462 45.8021 5.67583C45.8021 3.48138 44.6781 2.38415 42.43 2.38415H39.167V9.09964Z" fill="white"/>%0A<path id="Vector_4" d="M63.8634 6.27892C63.8374 5.16647 63.448 4.0931 62.7547 3.22277C62.4351 2.8708 62.0419 2.59361 61.6031 2.41091C61.1642 2.22821 60.6904 2.14451 60.2155 2.16575C59.518 2.12433 58.8231 2.28288 58.2125 2.62276C57.6019 2.96264 57.1011 3.46974 56.7688 4.08447C56.0334 5.36744 55.6658 7.33211 55.6658 9.97848C55.6658 12.6248 56.0315 14.5933 56.763 15.884C57.0847 16.4915 57.5726 16.995 58.1697 17.3358C58.7668 17.6765 59.4484 17.8404 60.1351 17.8084C62.8581 17.8084 64.2196 15.974 64.2196 12.3051V11.6214H59.9168V9.64529H66.7415V19.572H64.5757V17.6246C64.5824 16.3521 64.6552 15.0808 64.794 13.8159H64.6274C64.4283 15.9338 63.9132 17.4867 63.0821 18.4748C62.2491 19.4629 61.0198 19.9512 59.3941 19.9512C58.4312 19.9882 57.4753 19.7741 56.6202 19.3299C55.7651 18.8857 55.0403 18.2268 54.5169 17.4178C53.3679 15.7289 52.7935 13.2759 52.7935 10.0589C52.7935 6.77296 53.4292 4.28361 54.7007 2.59086C55.9722 0.898101 57.8009 0.0344883 60.1868 2.04411e-05C61.7689 -0.0690547 63.3242 0.425623 64.5757 1.39597C65.1677 1.92295 65.6473 2.56392 65.9859 3.28052C66.3244 3.99712 66.515 4.77464 66.5461 5.56659L63.8634 6.27892Z" fill="white"/>%0A<path id="Vector_5" d="M74.824 17.5673H82.8034V19.5721H72.1125V0.38501H82.6368V2.38415H74.824V8.66305H82.0048V10.6622H74.824V17.5673Z" fill="white"/>%0A<path id="Vector_6" d="M93.0633 19.9512C90.9953 19.9512 89.3695 19.4342 88.1804 18.3887C87.5786 17.8382 87.1032 17.164 86.7869 16.4123C86.4705 15.6606 86.3207 14.8493 86.3478 14.0342L89.0421 13.2645C89.1876 16.3283 90.5491 17.8602 93.1265 17.8602C94.0518 17.9146 94.9669 17.6422 95.7116 17.0904C96.0388 16.8086 96.2951 16.4538 96.4598 16.0546C96.6245 15.6554 96.6929 15.2231 96.6595 14.7925C96.6595 13.3334 95.838 12.284 94.195 11.6445L91.0699 10.3806C88.4159 9.32362 87.0908 7.55236 87.0947 5.06684C87.054 4.35555 87.1815 3.64468 87.467 2.99192C87.7524 2.33915 88.1878 1.76287 88.7376 1.30984C90.0484 0.449859 91.5818 -0.00830078 93.1495 -0.00830078C94.7172 -0.00830078 96.2507 0.449859 97.5614 1.30984C98.139 1.77201 98.6034 2.36008 98.919 3.02914C99.2346 3.6982 99.3931 4.43055 99.3825 5.17024L96.7801 5.9113C96.6155 3.36451 95.4014 2.09302 93.138 2.09685C92.2848 2.02806 91.4347 2.26195 90.7368 2.75749C90.4435 3.00371 90.2126 3.31574 90.0629 3.66814C89.9131 4.02055 89.8488 4.40335 89.8751 4.78535C89.835 5.48253 90.0539 6.16994 90.4897 6.71555C91.0398 7.27423 91.7096 7.70051 92.4487 7.96214L95.3612 9.15703C98.042 10.2294 99.3825 12.0006 99.3825 14.4708C99.4281 15.2308 99.2996 15.9911 99.0069 16.694C98.7143 17.3968 98.2651 18.0236 97.6935 18.5266C96.602 19.4802 95.051 19.9512 93.0633 19.9512Z" fill="white"/>%0A<path id="Vector_7" d="M5.2104 35.4617C7.95251 35.4617 9.98037 36.308 11.294 38.0008C12.6076 39.6936 13.2644 42.045 13.2644 45.0552C13.2644 48.0884 12.6076 50.4456 11.294 52.1269C9.98037 53.8082 7.95251 54.6488 5.2104 54.6488H0V35.4617H5.2104ZM4.96338 52.6497C6.97401 52.6497 8.3757 52.0063 9.17995 50.7195C9.9842 49.4327 10.3863 47.5427 10.3863 45.0552C10.3863 42.5678 9.9842 40.6836 9.17995 39.3968C8.3757 38.11 6.97401 37.4666 4.96338 37.4666H2.71148V52.6497H4.96338Z" fill="white"/>%0A<path id="Vector_8" d="M18.5954 52.4831C17.3047 50.7903 16.6594 48.3144 16.6594 45.0552C16.6594 41.7961 17.3047 39.3202 18.5954 37.6274C19.8898 35.9308 21.732 35.0825 24.1217 35.0825C26.5115 35.0825 28.3613 35.927 29.6711 37.6159C30.954 39.3048 31.5955 41.7846 31.5955 45.0552C31.5955 48.3259 30.9521 50.8152 29.6653 52.5233C28.3823 54.1969 26.5364 55.0337 24.1275 55.0337C21.7185 55.0337 19.8745 54.1835 18.5954 52.4831ZM20.6807 39.1382C19.9147 40.3944 19.5317 42.3667 19.5317 45.0552C19.5317 47.7437 19.9147 49.718 20.6807 50.978C21.0254 51.5787 21.5302 52.0719 22.1388 52.4025C22.7474 52.7332 23.4359 52.8884 24.1275 52.8507C24.8279 52.8921 25.5259 52.7371 26.143 52.4031C26.7601 52.0692 27.2717 51.5697 27.6202 50.9607C28.3555 49.7084 28.7232 47.7399 28.7232 45.0552C28.7232 42.3706 28.3536 40.3982 27.6145 39.1382C27.2674 38.5293 26.7569 38.0296 26.1407 37.6956C25.5245 37.3616 24.8271 37.2067 24.1275 37.2483C23.434 37.2116 22.7441 37.3691 22.1352 37.703C21.5264 38.0368 21.0226 38.5339 20.6807 39.1382Z" fill="white"/>%0A<path id="Vector_9" d="M35.7661 54.6488V35.4617H39.7414L42.8148 46.1237C43.5024 48.2936 43.9079 50.5429 44.0212 52.8163H44.2337C44.2993 50.5424 44.6861 48.2893 45.3827 46.1237L48.5939 35.4617H52.2762V54.6488H49.6911V43.7684C49.6911 41.5223 49.7773 39.414 49.9382 37.4493H49.7486C49.4555 39.2625 49.0527 41.0562 48.5422 42.8206L45.0954 54.6603H42.6827L39.121 42.5965C38.6304 40.9144 38.2467 39.2029 37.9721 37.4723H37.7767C37.9261 39.2417 38.0008 41.2638 38.0008 43.5272V54.6488H35.7661Z" fill="white"/>%0A<path id="Vector_10" d="M63.2314 55.0338C61.171 55.0338 59.5452 54.513 58.3542 53.4713C57.7505 52.9221 57.2734 52.2482 56.9559 51.4963C56.6385 50.7444 56.4884 49.9325 56.5159 49.1168L59.1699 48.3471C59.3155 51.4109 60.6769 52.9428 63.2544 52.9428C64.1809 52.9928 65.0963 52.7208 65.8452 52.173C66.1703 51.8898 66.4248 51.5346 66.5883 51.1356C66.7519 50.7367 66.82 50.3051 66.7873 49.8751C66.7873 48.416 65.9659 47.3647 64.3229 46.7213L61.1978 45.4632C58.5476 44.3986 57.2225 42.6254 57.2225 40.1437C57.1827 39.4334 57.3107 38.7236 57.5962 38.0719C57.8816 37.4202 58.3164 36.8449 58.8655 36.3924C60.1497 35.4549 61.7185 34.9902 63.3061 35.0769C64.8757 35.0068 66.4227 35.4705 67.695 36.3924C68.2714 36.8566 68.7344 37.4461 69.0489 38.116C69.3635 38.7859 69.5213 39.5186 69.5103 40.2586L66.9022 40.9997C66.7414 38.4605 65.5273 37.1909 63.2601 37.1909C62.4071 37.1241 61.5576 37.3578 60.8589 37.8516C60.5656 38.0978 60.3347 38.4098 60.185 38.7622C60.0352 39.1146 59.9709 39.4974 59.9972 39.8794C59.9571 40.5766 60.176 41.264 60.6118 41.8096C61.1632 42.3762 61.8346 42.812 62.5765 43.085L65.535 44.2339C68.2158 45.3139 69.5563 47.0871 69.5563 49.5534C69.6008 50.3128 69.4725 51.0723 69.181 51.7748C68.8894 52.4773 68.4422 53.1045 67.8731 53.6092C66.7529 54.5743 65.2076 55.0338 63.2314 55.0338Z" fill="white"/>%0A<path id="Vector_11" d="M85.8997 35.4617V37.6274H80.6376V54.6488H77.9491V37.6274H72.687V35.4617H85.8997Z" fill="white"/>%0A<path id="Vector_12" d="M90.4092 52.4831C89.1148 50.7903 88.4675 48.3144 88.4675 45.0552C88.4675 41.7961 89.1128 39.3202 90.4035 37.6274C91.6903 35.9308 93.5305 35.0825 95.9241 35.0825C98.3177 35.0825 100.167 35.927 101.473 37.6159C102.76 39.3048 103.404 41.7942 103.404 45.084C103.404 48.3737 102.76 50.8631 101.473 52.552C100.19 54.2065 98.3445 55.0337 95.9356 55.0337C93.5267 55.0337 91.6845 54.1835 90.4092 52.4831ZM92.4888 39.1382C91.7228 40.3944 91.3399 42.3667 91.3399 45.0552C91.3399 47.7437 91.7228 49.718 92.4888 50.978C92.866 51.5576 93.382 52.034 93.9899 52.3637C94.5978 52.6934 95.2785 52.8661 95.97 52.8661C96.6616 52.8661 97.3423 52.6934 97.9502 52.3637C98.5581 52.034 99.0741 51.5576 99.4513 50.978C100.171 49.7141 100.531 47.7399 100.531 45.0552C100.531 42.3706 100.162 40.3982 99.4226 39.1382C99.0454 38.5586 98.5294 38.0823 97.9215 37.7525C97.3136 37.4228 96.6329 37.2501 95.9413 37.2501C95.2497 37.2501 94.5691 37.4228 93.9612 37.7525C93.3532 38.0823 92.8373 38.5586 92.4601 39.1382H92.4888Z" fill="white"/>%0A<path id="Vector_13" d="M107.58 35.4617H110.297V52.4831H117.915V54.6488H107.574L107.58 35.4617Z" fill="white"/>%0A<path id="Vector_14" d="M124.544 52.6497H132.518V54.6488H121.833V35.4617H132.357V37.4666H124.544V43.7397H131.725V45.7446H124.544V52.6497Z" fill="white"/>%0A<path id="Vector_15" d="M149.321 50.6735C149.534 52.022 149.855 53.3513 150.28 54.6488H147.264C147.163 54.3399 147.081 54.0253 147.017 53.7067C146.942 53.3505 146.862 52.8622 146.77 52.2533C146.678 51.6444 146.615 51.2078 146.581 50.9493C146.289 49.0688 145.878 47.7993 145.345 47.1405C144.817 46.4857 143.949 46.1525 142.743 46.1525H139.871V54.6488H137.154V35.4617H143.731C145.52 35.4617 146.908 35.8963 147.896 36.7657C148.392 37.2209 148.781 37.7807 149.034 38.4047C149.288 39.0286 149.399 39.701 149.361 40.3733C149.394 41.0129 149.289 41.6521 149.052 42.247C148.815 42.8419 148.452 43.3786 147.988 43.8201C146.93 44.6951 145.579 45.1365 144.208 45.0552H143.438V45.2218H144.231C144.805 45.2563 145.19 45.285 145.466 45.3137C145.811 45.3579 146.151 45.4309 146.483 45.532C146.833 45.6236 147.153 45.8036 147.413 46.0548C147.676 46.3411 147.914 46.6485 148.126 46.9739C148.422 47.451 148.645 47.97 148.786 48.5135C148.982 49.1167 149.154 49.8348 149.321 50.6735ZM139.894 44.1821H143.151C143.608 44.2136 144.067 44.1508 144.499 43.9976C144.931 43.8445 145.326 43.6042 145.661 43.2916C146.273 42.5923 146.583 41.6795 146.523 40.7525C146.523 38.5638 145.403 37.4666 143.151 37.4666H139.894V44.1821Z" fill="white"/>%0A<path id="Vector_16" d="M150.389 75.0137H0V80H150.389V75.0137Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_18254_1882">%0A<rect width="150.389" height="80" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';
|
|
8210
8223
|
|
|
8211
8224
|
// src/components/Footer/FooterLogo.tsx
|
|
8212
8225
|
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
8213
|
-
var FooterLogo =
|
|
8226
|
+
var FooterLogo = forwardRef56(
|
|
8214
8227
|
(props, ref) => {
|
|
8215
8228
|
const { className, hideBreakpoint, ...rest } = props;
|
|
8216
8229
|
return /* @__PURE__ */ jsx239(
|
|
@@ -8232,9 +8245,9 @@ var FooterLogo = forwardRef55(
|
|
|
8232
8245
|
);
|
|
8233
8246
|
|
|
8234
8247
|
// src/components/Footer/FooterList.tsx
|
|
8235
|
-
import { forwardRef as
|
|
8248
|
+
import { forwardRef as forwardRef57 } from "react";
|
|
8236
8249
|
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
8237
|
-
var FooterList =
|
|
8250
|
+
var FooterList = forwardRef57(
|
|
8238
8251
|
(props, ref) => {
|
|
8239
8252
|
const { className, ...rest } = props;
|
|
8240
8253
|
return /* @__PURE__ */ jsx240(
|
|
@@ -8253,9 +8266,9 @@ var FooterList = forwardRef56(
|
|
|
8253
8266
|
);
|
|
8254
8267
|
|
|
8255
8268
|
// src/components/Footer/FooterSocialsList.tsx
|
|
8256
|
-
import { forwardRef as
|
|
8269
|
+
import { forwardRef as forwardRef58 } from "react";
|
|
8257
8270
|
import { jsx as jsx241 } from "react/jsx-runtime";
|
|
8258
|
-
var FooterSocialsList =
|
|
8271
|
+
var FooterSocialsList = forwardRef58((props, ref) => {
|
|
8259
8272
|
const { className, ...rest } = props;
|
|
8260
8273
|
return /* @__PURE__ */ jsx241(
|
|
8261
8274
|
"ul",
|
|
@@ -8272,9 +8285,9 @@ var FooterSocialsList = forwardRef57((props, ref) => {
|
|
|
8272
8285
|
});
|
|
8273
8286
|
|
|
8274
8287
|
// src/components/Footer/FooterSocialsGroup.tsx
|
|
8275
|
-
import { forwardRef as
|
|
8288
|
+
import { forwardRef as forwardRef59 } from "react";
|
|
8276
8289
|
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
8277
|
-
var FooterSocialsGroup =
|
|
8290
|
+
var FooterSocialsGroup = forwardRef59((props, ref) => {
|
|
8278
8291
|
const { className, ...rest } = props;
|
|
8279
8292
|
return /* @__PURE__ */ jsx242(
|
|
8280
8293
|
"div",
|
|
@@ -8287,9 +8300,9 @@ var FooterSocialsGroup = forwardRef58((props, ref) => {
|
|
|
8287
8300
|
});
|
|
8288
8301
|
|
|
8289
8302
|
// src/components/Footer/FooterListGroup.tsx
|
|
8290
|
-
import { forwardRef as
|
|
8303
|
+
import { forwardRef as forwardRef60 } from "react";
|
|
8291
8304
|
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
8292
|
-
var FooterListGroup =
|
|
8305
|
+
var FooterListGroup = forwardRef60(
|
|
8293
8306
|
(props, ref) => {
|
|
8294
8307
|
const { className, ...rest } = props;
|
|
8295
8308
|
return /* @__PURE__ */ jsx243(
|
|
@@ -8304,9 +8317,9 @@ var FooterListGroup = forwardRef59(
|
|
|
8304
8317
|
);
|
|
8305
8318
|
|
|
8306
8319
|
// src/components/Footer/FooterLeft.tsx
|
|
8307
|
-
import { forwardRef as
|
|
8320
|
+
import { forwardRef as forwardRef61 } from "react";
|
|
8308
8321
|
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
8309
|
-
var FooterLeft =
|
|
8322
|
+
var FooterLeft = forwardRef61(
|
|
8310
8323
|
(props, ref) => {
|
|
8311
8324
|
const { className, ...rest } = props;
|
|
8312
8325
|
return /* @__PURE__ */ jsx244("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
|
|
@@ -8314,7 +8327,7 @@ var FooterLeft = forwardRef60(
|
|
|
8314
8327
|
);
|
|
8315
8328
|
|
|
8316
8329
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8317
|
-
import { forwardRef as
|
|
8330
|
+
import { forwardRef as forwardRef62, useState as useState14 } from "react";
|
|
8318
8331
|
|
|
8319
8332
|
// src/components/GlobalMessage/GlobalMessage.module.css
|
|
8320
8333
|
var GlobalMessage_default = {
|
|
@@ -8334,7 +8347,7 @@ var icons = {
|
|
|
8334
8347
|
danger: ErrorIcon,
|
|
8335
8348
|
warning: WarningIcon
|
|
8336
8349
|
};
|
|
8337
|
-
var GlobalMessage =
|
|
8350
|
+
var GlobalMessage = forwardRef62(
|
|
8338
8351
|
(props, ref) => {
|
|
8339
8352
|
const {
|
|
8340
8353
|
message,
|
|
@@ -8541,7 +8554,7 @@ var GridChild = (props) => {
|
|
|
8541
8554
|
GridChild.displayName = "GridChild";
|
|
8542
8555
|
|
|
8543
8556
|
// src/components/InlineButton/InlineButton.tsx
|
|
8544
|
-
import { forwardRef as
|
|
8557
|
+
import { forwardRef as forwardRef63 } from "react";
|
|
8545
8558
|
|
|
8546
8559
|
// src/components/InlineButton/InlineButton.module.css
|
|
8547
8560
|
var InlineButton_default = {
|
|
@@ -8550,7 +8563,7 @@ var InlineButton_default = {
|
|
|
8550
8563
|
|
|
8551
8564
|
// src/components/InlineButton/InlineButton.tsx
|
|
8552
8565
|
import { jsx as jsx248 } from "react/jsx-runtime";
|
|
8553
|
-
var InlineButton =
|
|
8566
|
+
var InlineButton = forwardRef63(
|
|
8554
8567
|
(props, ref) => {
|
|
8555
8568
|
const { className, ...rest } = props;
|
|
8556
8569
|
return /* @__PURE__ */ jsx248(
|
|
@@ -8572,7 +8585,7 @@ var InlineButton = forwardRef62(
|
|
|
8572
8585
|
);
|
|
8573
8586
|
|
|
8574
8587
|
// src/components/InlineEdit/InlineEditTextArea.tsx
|
|
8575
|
-
import { forwardRef as
|
|
8588
|
+
import { forwardRef as forwardRef65, useRef as useRef24 } from "react";
|
|
8576
8589
|
|
|
8577
8590
|
// src/components/InlineEdit/InlineEdit.tsx
|
|
8578
8591
|
import {
|
|
@@ -8636,7 +8649,7 @@ var InlineEdit = (props) => {
|
|
|
8636
8649
|
InlineEdit.displayName = "InlineEdit";
|
|
8637
8650
|
|
|
8638
8651
|
// src/components/InlineEdit/InlineTextArea.tsx
|
|
8639
|
-
import { forwardRef as
|
|
8652
|
+
import { forwardRef as forwardRef64, useId as useId12, useRef as useRef23 } from "react";
|
|
8640
8653
|
|
|
8641
8654
|
// src/components/InlineEdit/InlineEdit.module.css
|
|
8642
8655
|
var InlineEdit_default = {
|
|
@@ -8658,7 +8671,7 @@ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs52(Visuall
|
|
|
8658
8671
|
|
|
8659
8672
|
// src/components/InlineEdit/InlineTextArea.tsx
|
|
8660
8673
|
import { jsx as jsx250, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8661
|
-
var InlineTextArea =
|
|
8674
|
+
var InlineTextArea = forwardRef64((props, ref) => {
|
|
8662
8675
|
const {
|
|
8663
8676
|
id,
|
|
8664
8677
|
error,
|
|
@@ -8677,7 +8690,7 @@ var InlineTextArea = forwardRef63((props, ref) => {
|
|
|
8677
8690
|
const hasError = !!error;
|
|
8678
8691
|
const hasErrorState = hasError || hasErrorMessage;
|
|
8679
8692
|
const descId = derivativeIdGenerator(uniqueId, "desc");
|
|
8680
|
-
const inputRef =
|
|
8693
|
+
const inputRef = useRef23(null);
|
|
8681
8694
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8682
8695
|
return /* @__PURE__ */ jsxs53("div", { className: InlineEdit_default.container, style: { width }, children: [
|
|
8683
8696
|
/* @__PURE__ */ jsxs53("div", { className: Input_default["input-group"], children: [
|
|
@@ -8725,9 +8738,9 @@ InlineTextArea.displayName = "InlineTextArea";
|
|
|
8725
8738
|
|
|
8726
8739
|
// src/components/InlineEdit/InlineEditTextArea.tsx
|
|
8727
8740
|
import { jsx as jsx251 } from "react/jsx-runtime";
|
|
8728
|
-
var InlineEditTextArea =
|
|
8741
|
+
var InlineEditTextArea = forwardRef65((props, ref) => {
|
|
8729
8742
|
const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
|
|
8730
|
-
const textareaRef =
|
|
8743
|
+
const textareaRef = useRef24(null);
|
|
8731
8744
|
const combinedRef = useCombinedRef(ref, textareaRef);
|
|
8732
8745
|
return /* @__PURE__ */ jsx251(
|
|
8733
8746
|
InlineEdit,
|
|
@@ -8745,12 +8758,12 @@ var InlineEditTextArea = forwardRef64((props, ref) => {
|
|
|
8745
8758
|
});
|
|
8746
8759
|
|
|
8747
8760
|
// src/components/InlineEdit/InlineEditInput.tsx
|
|
8748
|
-
import { forwardRef as
|
|
8761
|
+
import { forwardRef as forwardRef67, useRef as useRef26 } from "react";
|
|
8749
8762
|
|
|
8750
8763
|
// src/components/InlineEdit/InlineInput.tsx
|
|
8751
|
-
import { forwardRef as
|
|
8764
|
+
import { forwardRef as forwardRef66, useId as useId13, useRef as useRef25 } from "react";
|
|
8752
8765
|
import { jsx as jsx252, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
8753
|
-
var InlineInput =
|
|
8766
|
+
var InlineInput = forwardRef66(
|
|
8754
8767
|
(props, ref) => {
|
|
8755
8768
|
const {
|
|
8756
8769
|
id,
|
|
@@ -8770,7 +8783,7 @@ var InlineInput = forwardRef65(
|
|
|
8770
8783
|
const hasErrorState = hasError || hasErrorMessage;
|
|
8771
8784
|
const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
|
|
8772
8785
|
const descId = derivativeIdGenerator(uniqueId, "desc");
|
|
8773
|
-
const inputRef =
|
|
8786
|
+
const inputRef = useRef25(null);
|
|
8774
8787
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8775
8788
|
return /* @__PURE__ */ jsxs54("div", { className: InlineEdit_default.container, style: { width }, children: [
|
|
8776
8789
|
/* @__PURE__ */ jsxs54("div", { className: Input_default["input-group"], children: [
|
|
@@ -8817,9 +8830,9 @@ InlineInput.displayName = "InlineInput";
|
|
|
8817
8830
|
|
|
8818
8831
|
// src/components/InlineEdit/InlineEditInput.tsx
|
|
8819
8832
|
import { jsx as jsx253 } from "react/jsx-runtime";
|
|
8820
|
-
var InlineEditInput =
|
|
8833
|
+
var InlineEditInput = forwardRef67((props, ref) => {
|
|
8821
8834
|
const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
|
|
8822
|
-
const inputRef =
|
|
8835
|
+
const inputRef = useRef26(null);
|
|
8823
8836
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8824
8837
|
return /* @__PURE__ */ jsx253(
|
|
8825
8838
|
InlineEdit,
|
|
@@ -8837,7 +8850,7 @@ var InlineEditInput = forwardRef66((props, ref) => {
|
|
|
8837
8850
|
});
|
|
8838
8851
|
|
|
8839
8852
|
// src/components/InternalHeader/InternalHeader.tsx
|
|
8840
|
-
import { useRef as
|
|
8853
|
+
import { useRef as useRef27, useState as useState16 } from "react";
|
|
8841
8854
|
|
|
8842
8855
|
// src/components/InternalHeader/InternalHeader.module.css
|
|
8843
8856
|
var InternalHeader_default = {
|
|
@@ -8893,9 +8906,9 @@ var InternalHeader_default = {
|
|
|
8893
8906
|
};
|
|
8894
8907
|
|
|
8895
8908
|
// src/components/InternalHeader/NavigationItem.tsx
|
|
8896
|
-
import { forwardRef as
|
|
8909
|
+
import { forwardRef as forwardRef68 } from "react";
|
|
8897
8910
|
import { jsx as jsx254 } from "react/jsx-runtime";
|
|
8898
|
-
var NavigationItem =
|
|
8911
|
+
var NavigationItem = forwardRef68(({ isCurrent, ...rest }, ref) => {
|
|
8899
8912
|
return /* @__PURE__ */ jsx254(
|
|
8900
8913
|
"a",
|
|
8901
8914
|
{
|
|
@@ -8934,7 +8947,7 @@ var InternalHeader = (props) => {
|
|
|
8934
8947
|
const [currentPage, setCurrentPage] = useState16(
|
|
8935
8948
|
currentPageHref
|
|
8936
8949
|
);
|
|
8937
|
-
const buttonRef =
|
|
8950
|
+
const buttonRef = useRef27(null);
|
|
8938
8951
|
const handleCurrentPageChange = (href) => {
|
|
8939
8952
|
setCurrentPage(href);
|
|
8940
8953
|
onCurrentPageChange && onCurrentPageChange();
|
|
@@ -9070,7 +9083,7 @@ var InternalHeader = (props) => {
|
|
|
9070
9083
|
InternalHeader.displayName = "InternalHeader";
|
|
9071
9084
|
|
|
9072
9085
|
// src/components/List/List.tsx
|
|
9073
|
-
import { forwardRef as
|
|
9086
|
+
import { forwardRef as forwardRef69 } from "react";
|
|
9074
9087
|
|
|
9075
9088
|
// src/components/List/List.module.css
|
|
9076
9089
|
var List_default = {
|
|
@@ -9083,7 +9096,7 @@ var List_default = {
|
|
|
9083
9096
|
|
|
9084
9097
|
// src/components/List/List.tsx
|
|
9085
9098
|
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
9086
|
-
var List =
|
|
9099
|
+
var List = forwardRef69((props, ref) => {
|
|
9087
9100
|
const {
|
|
9088
9101
|
listType = "unordered",
|
|
9089
9102
|
typographyType = "inherit",
|
|
@@ -9111,9 +9124,9 @@ var List = forwardRef68((props, ref) => {
|
|
|
9111
9124
|
List.displayName = "List";
|
|
9112
9125
|
|
|
9113
9126
|
// src/components/List/ListItem.tsx
|
|
9114
|
-
import { forwardRef as
|
|
9127
|
+
import { forwardRef as forwardRef70 } from "react";
|
|
9115
9128
|
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
9116
|
-
var ListItem =
|
|
9129
|
+
var ListItem = forwardRef70(
|
|
9117
9130
|
({ className, ...rest }, ref) => {
|
|
9118
9131
|
return /* @__PURE__ */ jsx257("li", { ref, ...rest, className: cn(className, List_default.li) });
|
|
9119
9132
|
}
|
|
@@ -9121,7 +9134,7 @@ var ListItem = forwardRef69(
|
|
|
9121
9134
|
ListItem.displayName = "ListItem";
|
|
9122
9135
|
|
|
9123
9136
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
9124
|
-
import { forwardRef as
|
|
9137
|
+
import { forwardRef as forwardRef71, useState as useState17 } from "react";
|
|
9125
9138
|
|
|
9126
9139
|
// src/components/LocalMessage/LocalMessage.module.css
|
|
9127
9140
|
var LocalMessage_default = {
|
|
@@ -9150,7 +9163,7 @@ var icons2 = {
|
|
|
9150
9163
|
success: CheckCircledIcon,
|
|
9151
9164
|
tips: TipIcon
|
|
9152
9165
|
};
|
|
9153
|
-
var LocalMessage =
|
|
9166
|
+
var LocalMessage = forwardRef71(
|
|
9154
9167
|
(props, ref) => {
|
|
9155
9168
|
const {
|
|
9156
9169
|
message,
|
|
@@ -9219,15 +9232,17 @@ LocalMessage.displayName = "LocalMessage";
|
|
|
9219
9232
|
|
|
9220
9233
|
// src/components/Modal/Modal.tsx
|
|
9221
9234
|
import {
|
|
9222
|
-
forwardRef as
|
|
9235
|
+
forwardRef as forwardRef72,
|
|
9223
9236
|
useEffect as useEffect22,
|
|
9224
|
-
useId as useId14
|
|
9237
|
+
useId as useId14,
|
|
9238
|
+
useRef as useRef28
|
|
9225
9239
|
} from "react";
|
|
9226
9240
|
import { createPortal as createPortal2 } from "react-dom";
|
|
9227
9241
|
|
|
9228
9242
|
// src/components/Modal/Modal.module.css
|
|
9229
9243
|
var Modal_default = {
|
|
9230
9244
|
container: "Modal_container",
|
|
9245
|
+
"container-scrollable": "Modal_container-scrollable",
|
|
9231
9246
|
content: "Modal_content",
|
|
9232
9247
|
body: "Modal_body",
|
|
9233
9248
|
header: "Modal_header",
|
|
@@ -9237,7 +9252,7 @@ var Modal_default = {
|
|
|
9237
9252
|
|
|
9238
9253
|
// src/components/Modal/Modal.tsx
|
|
9239
9254
|
import { jsx as jsx259, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
9240
|
-
var Modal =
|
|
9255
|
+
var Modal = forwardRef72((props, ref) => {
|
|
9241
9256
|
const {
|
|
9242
9257
|
isOpen = false,
|
|
9243
9258
|
parentElement = document.body,
|
|
@@ -9247,6 +9262,7 @@ var Modal = forwardRef71((props, ref) => {
|
|
|
9247
9262
|
id,
|
|
9248
9263
|
triggerRef,
|
|
9249
9264
|
initialFocusRef,
|
|
9265
|
+
scrollable,
|
|
9250
9266
|
className,
|
|
9251
9267
|
htmlProps,
|
|
9252
9268
|
...rest
|
|
@@ -9271,55 +9287,75 @@ var Modal = forwardRef71((props, ref) => {
|
|
|
9271
9287
|
}
|
|
9272
9288
|
return () => handleElementWithBackdropUnmount(document.body);
|
|
9273
9289
|
}, [isOpen]);
|
|
9274
|
-
|
|
9290
|
+
const backdropRef = useRef28(null);
|
|
9291
|
+
const onBackdropClick = (event) => {
|
|
9292
|
+
if (event.target === backdropRef.current && isOpen) {
|
|
9293
|
+
handleClose();
|
|
9294
|
+
}
|
|
9295
|
+
};
|
|
9275
9296
|
useOnKeyDown(["Escape", "Esc"], () => handleClose());
|
|
9276
9297
|
const hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
9277
9298
|
return isOpen || hasTransitionedIn ? createPortal2(
|
|
9278
|
-
/* @__PURE__ */ jsx259(
|
|
9279
|
-
|
|
9299
|
+
/* @__PURE__ */ jsx259(
|
|
9300
|
+
Backdrop,
|
|
9280
9301
|
{
|
|
9281
|
-
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
9311
|
-
|
|
9302
|
+
isMounted: isOpen && hasTransitionedIn,
|
|
9303
|
+
ref: backdropRef,
|
|
9304
|
+
onClick: onBackdropClick,
|
|
9305
|
+
children: /* @__PURE__ */ jsxs57(
|
|
9306
|
+
Paper,
|
|
9307
|
+
{
|
|
9308
|
+
...getBaseHTMLProps(
|
|
9309
|
+
id,
|
|
9310
|
+
cn(
|
|
9311
|
+
className,
|
|
9312
|
+
Modal_default.container,
|
|
9313
|
+
focusable,
|
|
9314
|
+
scrollable && Modal_default["container-scrollable"],
|
|
9315
|
+
utilStyles_default.scrollbar
|
|
9316
|
+
),
|
|
9317
|
+
htmlProps,
|
|
9318
|
+
rest
|
|
9319
|
+
),
|
|
9320
|
+
ref: combinedRef,
|
|
9321
|
+
role: "dialog",
|
|
9322
|
+
"aria-modal": true,
|
|
9323
|
+
"aria-hidden": !isOpen,
|
|
9324
|
+
tabIndex: -1,
|
|
9325
|
+
"aria-labelledby": headerId,
|
|
9326
|
+
id: modalId,
|
|
9327
|
+
elevation: 4,
|
|
9328
|
+
children: [
|
|
9329
|
+
onClose && /* @__PURE__ */ jsx259(
|
|
9330
|
+
Button,
|
|
9331
|
+
{
|
|
9332
|
+
size: "small",
|
|
9333
|
+
purpose: "tertiary",
|
|
9334
|
+
icon: CloseIcon,
|
|
9335
|
+
onClick: handleClose,
|
|
9336
|
+
"aria-label": "Lukk dialog",
|
|
9337
|
+
className: Modal_default["close-button"],
|
|
9338
|
+
htmlProps: { tabIndex: -1 }
|
|
9339
|
+
}
|
|
9340
|
+
),
|
|
9341
|
+
/* @__PURE__ */ jsxs57("div", { className: Modal_default.content, children: [
|
|
9342
|
+
!!header && /* @__PURE__ */ jsx259("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx259(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
|
|
9343
|
+
children
|
|
9344
|
+
] })
|
|
9345
|
+
]
|
|
9346
|
+
}
|
|
9347
|
+
)
|
|
9312
9348
|
}
|
|
9313
|
-
)
|
|
9349
|
+
),
|
|
9314
9350
|
parentElement
|
|
9315
9351
|
) : null;
|
|
9316
9352
|
});
|
|
9317
9353
|
Modal.displayName = "Modal";
|
|
9318
9354
|
|
|
9319
9355
|
// src/components/Modal/ModalBody.tsx
|
|
9320
|
-
import { forwardRef as
|
|
9356
|
+
import { forwardRef as forwardRef73 } from "react";
|
|
9321
9357
|
import { jsx as jsx260 } from "react/jsx-runtime";
|
|
9322
|
-
var ModalBody =
|
|
9358
|
+
var ModalBody = forwardRef73(
|
|
9323
9359
|
(props, ref) => {
|
|
9324
9360
|
const { children, id, className, scrollable, htmlProps, height, ...rest } = props;
|
|
9325
9361
|
return /* @__PURE__ */ jsx260(
|
|
@@ -9346,9 +9382,9 @@ var ModalBody = forwardRef72(
|
|
|
9346
9382
|
ModalBody.displayName = "ModalBody";
|
|
9347
9383
|
|
|
9348
9384
|
// src/components/Modal/ModalActions.tsx
|
|
9349
|
-
import { forwardRef as
|
|
9385
|
+
import { forwardRef as forwardRef74 } from "react";
|
|
9350
9386
|
import { jsx as jsx261 } from "react/jsx-runtime";
|
|
9351
|
-
var ModalActions =
|
|
9387
|
+
var ModalActions = forwardRef74(
|
|
9352
9388
|
({ className, ...rest }, ref) => {
|
|
9353
9389
|
return /* @__PURE__ */ jsx261("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
|
|
9354
9390
|
}
|
|
@@ -9356,7 +9392,7 @@ var ModalActions = forwardRef73(
|
|
|
9356
9392
|
ModalActions.displayName = "ModalActions";
|
|
9357
9393
|
|
|
9358
9394
|
// src/components/Pagination/Pagination.tsx
|
|
9359
|
-
import { forwardRef as
|
|
9395
|
+
import { forwardRef as forwardRef77, useState as useState18 } from "react";
|
|
9360
9396
|
|
|
9361
9397
|
// src/components/Pagination/Pagination.module.css
|
|
9362
9398
|
var Pagination_default = {
|
|
@@ -9419,7 +9455,7 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
9419
9455
|
}
|
|
9420
9456
|
|
|
9421
9457
|
// src/components/Select/Select.tsx
|
|
9422
|
-
import { forwardRef as
|
|
9458
|
+
import { forwardRef as forwardRef75, useId as useId15 } from "react";
|
|
9423
9459
|
import {
|
|
9424
9460
|
default as ReactSelect
|
|
9425
9461
|
} from "react-select";
|
|
@@ -9842,6 +9878,10 @@ function SelectInner(props, ref) {
|
|
|
9842
9878
|
const showRequiredStyling = !!(required || ariaRequired);
|
|
9843
9879
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
9844
9880
|
const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
|
|
9881
|
+
const styleVariables = {
|
|
9882
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9883
|
+
["--dds-select-width"]: width ? width : componentSize === "tiny" ? "210px" : "var(--dds-input-default-width)"
|
|
9884
|
+
};
|
|
9845
9885
|
const reactSelectProps = {
|
|
9846
9886
|
options,
|
|
9847
9887
|
value,
|
|
@@ -9902,7 +9942,7 @@ function SelectInner(props, ref) {
|
|
|
9902
9942
|
isDisabled && Select_default["container--disabled"],
|
|
9903
9943
|
readOnly && Select_default["container--readonly"]
|
|
9904
9944
|
),
|
|
9905
|
-
style: { ...style,
|
|
9945
|
+
style: { ...style, ...styleVariables },
|
|
9906
9946
|
children: [
|
|
9907
9947
|
hasLabel && /* @__PURE__ */ jsx263(
|
|
9908
9948
|
Label,
|
|
@@ -9920,11 +9960,11 @@ function SelectInner(props, ref) {
|
|
|
9920
9960
|
}
|
|
9921
9961
|
);
|
|
9922
9962
|
}
|
|
9923
|
-
var Select =
|
|
9963
|
+
var Select = forwardRef75(SelectInner);
|
|
9924
9964
|
Select.displayName = "Select";
|
|
9925
9965
|
|
|
9926
9966
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9927
|
-
import { forwardRef as
|
|
9967
|
+
import { forwardRef as forwardRef76, useId as useId16 } from "react";
|
|
9928
9968
|
|
|
9929
9969
|
// src/components/Select/NativeSelect/NativeSelect.module.css
|
|
9930
9970
|
var NativeSelect_default = {
|
|
@@ -9940,7 +9980,7 @@ var NativeSelect_default = {
|
|
|
9940
9980
|
|
|
9941
9981
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9942
9982
|
import { jsx as jsx264, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
9943
|
-
var NativeSelect =
|
|
9983
|
+
var NativeSelect = forwardRef76(
|
|
9944
9984
|
(props, ref) => {
|
|
9945
9985
|
const {
|
|
9946
9986
|
id,
|
|
@@ -10034,7 +10074,7 @@ var NativeSelect = forwardRef75(
|
|
|
10034
10074
|
] });
|
|
10035
10075
|
}
|
|
10036
10076
|
);
|
|
10037
|
-
var NativeSelectPlaceholder =
|
|
10077
|
+
var NativeSelectPlaceholder = forwardRef76((props, ref) => {
|
|
10038
10078
|
const { children = "-- Velg fra listen --", value, ...rest } = props;
|
|
10039
10079
|
return /* @__PURE__ */ jsx264("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
|
|
10040
10080
|
});
|
|
@@ -10045,7 +10085,7 @@ var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2
|
|
|
10045
10085
|
|
|
10046
10086
|
// src/components/Pagination/Pagination.tsx
|
|
10047
10087
|
import { Fragment as Fragment8, jsx as jsx265, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
10048
|
-
var Pagination =
|
|
10088
|
+
var Pagination = forwardRef77(
|
|
10049
10089
|
(props, ref) => {
|
|
10050
10090
|
const {
|
|
10051
10091
|
itemsAmount,
|
|
@@ -10304,33 +10344,21 @@ Pagination.displayName = "Pagination";
|
|
|
10304
10344
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
10305
10345
|
import { ddsTokens as ddsTokens15 } from "@norges-domstoler/dds-design-tokens";
|
|
10306
10346
|
import {
|
|
10307
|
-
forwardRef as
|
|
10347
|
+
forwardRef as forwardRef78,
|
|
10308
10348
|
useEffect as useEffect23,
|
|
10309
10349
|
useId as useId17,
|
|
10310
10350
|
useLayoutEffect as useLayoutEffect2,
|
|
10311
|
-
useRef as
|
|
10351
|
+
useRef as useRef29,
|
|
10312
10352
|
useState as useState19
|
|
10313
10353
|
} from "react";
|
|
10314
10354
|
|
|
10315
10355
|
// src/components/PhoneInput/constants.ts
|
|
10316
10356
|
var COUNTRIES = {
|
|
10317
|
-
AF: {
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
dialCode: "+93"
|
|
10321
|
-
},
|
|
10322
|
-
AL: {
|
|
10323
|
-
name: "Albania (Shqip\xEBri)",
|
|
10324
|
-
id: "AL",
|
|
10325
|
-
dialCode: "+355"
|
|
10326
|
-
},
|
|
10327
|
-
DZ: {
|
|
10328
|
-
name: "Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)",
|
|
10329
|
-
id: "DZ",
|
|
10330
|
-
dialCode: "+213"
|
|
10331
|
-
},
|
|
10357
|
+
AF: { name: "Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)", id: "AF", dialCode: "+93" },
|
|
10358
|
+
AL: { name: "Albania (Shqip\xEBri)", id: "AL", dialCode: "+355" },
|
|
10359
|
+
DZ: { name: "Algerie (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)", id: "DZ", dialCode: "+213" },
|
|
10332
10360
|
AS: {
|
|
10333
|
-
name: "American Samoa",
|
|
10361
|
+
name: "Amerikansk Samoa (American Samoa)",
|
|
10334
10362
|
id: "AS",
|
|
10335
10363
|
dialCode: "+1684"
|
|
10336
10364
|
},
|
|
@@ -10338,45 +10366,21 @@ var COUNTRIES = {
|
|
|
10338
10366
|
AO: { name: "Angola", id: "AO", dialCode: "+244" },
|
|
10339
10367
|
AI: { name: "Anguilla", id: "AI", dialCode: "+1264" },
|
|
10340
10368
|
AG: {
|
|
10341
|
-
name: "Antigua and Barbuda",
|
|
10369
|
+
name: "Antigua og Barbuda (Antigua and Barbuda)",
|
|
10342
10370
|
id: "AG",
|
|
10343
10371
|
dialCode: "+1268"
|
|
10344
10372
|
},
|
|
10345
10373
|
AR: { name: "Argentina", id: "AR", dialCode: "+54" },
|
|
10346
|
-
AM: {
|
|
10347
|
-
name: "Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)",
|
|
10348
|
-
id: "AM",
|
|
10349
|
-
dialCode: "+374"
|
|
10350
|
-
},
|
|
10374
|
+
AM: { name: "Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)", id: "AM", dialCode: "+374" },
|
|
10351
10375
|
AW: { name: "Aruba", id: "AW", dialCode: "+297" },
|
|
10352
10376
|
AU: { name: "Australia", id: "AU", dialCode: "+61" },
|
|
10353
|
-
AT: {
|
|
10354
|
-
|
|
10355
|
-
id: "AT",
|
|
10356
|
-
dialCode: "+43"
|
|
10357
|
-
},
|
|
10358
|
-
AZ: {
|
|
10359
|
-
name: "Azerbaijan (Az\u0259rbaycan)",
|
|
10360
|
-
id: "AZ",
|
|
10361
|
-
dialCode: "+994"
|
|
10362
|
-
},
|
|
10377
|
+
AT: { name: "\xD8sterrike (\xD6sterreich)", id: "AT", dialCode: "+43" },
|
|
10378
|
+
AZ: { name: "Aserbajdsjan (Az\u0259rbaycan)", id: "AZ", dialCode: "+994" },
|
|
10363
10379
|
BS: { name: "Bahamas", id: "BS", dialCode: "+1242" },
|
|
10364
|
-
BH: {
|
|
10365
|
-
|
|
10366
|
-
id: "BH",
|
|
10367
|
-
dialCode: "+973"
|
|
10368
|
-
},
|
|
10369
|
-
BD: {
|
|
10370
|
-
name: "Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)",
|
|
10371
|
-
id: "BD",
|
|
10372
|
-
dialCode: "+880"
|
|
10373
|
-
},
|
|
10380
|
+
BH: { name: "Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)", id: "BH", dialCode: "+973" },
|
|
10381
|
+
BD: { name: "Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)", id: "BD", dialCode: "+880" },
|
|
10374
10382
|
BB: { name: "Barbados", id: "BB", dialCode: "+1246" },
|
|
10375
|
-
BY: {
|
|
10376
|
-
name: "Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)",
|
|
10377
|
-
id: "BY",
|
|
10378
|
-
dialCode: "+375"
|
|
10379
|
-
},
|
|
10383
|
+
BY: { name: "Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)", id: "BY", dialCode: "+375" },
|
|
10380
10384
|
BE: { name: "Belgium (Belgi\xEB)", id: "BE", dialCode: "+32" },
|
|
10381
10385
|
BZ: { name: "Belize", id: "BZ", dialCode: "+501" },
|
|
10382
10386
|
BJ: { name: "Benin (B\xE9nin)", id: "BJ", dialCode: "+229" },
|
|
@@ -10384,114 +10388,70 @@ var COUNTRIES = {
|
|
|
10384
10388
|
BT: { name: "Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)", id: "BT", dialCode: "+975" },
|
|
10385
10389
|
BO: { name: "Bolivia", id: "BO", dialCode: "+591" },
|
|
10386
10390
|
BA: {
|
|
10387
|
-
name: "Bosnia
|
|
10391
|
+
name: "Bosnia-Hercegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)",
|
|
10388
10392
|
id: "BA",
|
|
10389
10393
|
dialCode: "+387"
|
|
10390
10394
|
},
|
|
10391
10395
|
BW: { name: "Botswana", id: "BW", dialCode: "+267" },
|
|
10392
|
-
BR: { name: "
|
|
10396
|
+
BR: { name: "Brasil", id: "BR", dialCode: "+55" },
|
|
10393
10397
|
IO: {
|
|
10394
|
-
name: "British Indian Ocean Territory",
|
|
10398
|
+
name: "Det britiske territoriet i Indiahavet (British Indian Ocean Territory)",
|
|
10395
10399
|
id: "IO",
|
|
10396
10400
|
dialCode: "+246"
|
|
10397
10401
|
},
|
|
10398
10402
|
VG: {
|
|
10399
|
-
name: "British Virgin Islands",
|
|
10403
|
+
name: "Britiske Jomfru\xF8yer (British Virgin Islands)",
|
|
10400
10404
|
id: "VG",
|
|
10401
10405
|
dialCode: "+1284"
|
|
10402
10406
|
},
|
|
10403
10407
|
BN: { name: "Brunei", id: "BN", dialCode: "+673" },
|
|
10404
|
-
BG: {
|
|
10405
|
-
name: "Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)",
|
|
10406
|
-
id: "BG",
|
|
10407
|
-
dialCode: "+359"
|
|
10408
|
-
},
|
|
10408
|
+
BG: { name: "Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)", id: "BG", dialCode: "+359" },
|
|
10409
10409
|
BF: { name: "Burkina Faso", id: "BF", dialCode: "+226" },
|
|
10410
|
-
BI: {
|
|
10411
|
-
|
|
10412
|
-
|
|
10413
|
-
dialCode: "+257"
|
|
10414
|
-
},
|
|
10415
|
-
KH: {
|
|
10416
|
-
name: "Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)",
|
|
10417
|
-
id: "KH",
|
|
10418
|
-
dialCode: "+855"
|
|
10419
|
-
},
|
|
10420
|
-
CM: {
|
|
10421
|
-
name: "Cameroon (Cameroun)",
|
|
10422
|
-
id: "CM",
|
|
10423
|
-
dialCode: "+237"
|
|
10424
|
-
},
|
|
10410
|
+
BI: { name: "Burundi (Uburundi)", id: "BI", dialCode: "+257" },
|
|
10411
|
+
KH: { name: "Kambodsja (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)", id: "KH", dialCode: "+855" },
|
|
10412
|
+
CM: { name: "Kamerun (Cameroun)", id: "CM", dialCode: "+237" },
|
|
10425
10413
|
CA: { name: "Canada", id: "CA", dialCode: "+1" },
|
|
10426
|
-
CV: {
|
|
10427
|
-
|
|
10428
|
-
id: "CV",
|
|
10429
|
-
dialCode: "+238"
|
|
10430
|
-
},
|
|
10431
|
-
KY: {
|
|
10432
|
-
name: "Cayman Islands",
|
|
10433
|
-
id: "KY",
|
|
10434
|
-
dialCode: "+1345"
|
|
10435
|
-
},
|
|
10414
|
+
CV: { name: "Kapp Verde (Kabu Verdi)", id: "CV", dialCode: "+238" },
|
|
10415
|
+
KY: { name: "Cayman\xF8yene (Cayman Islands)", id: "KY", dialCode: "+1345" },
|
|
10436
10416
|
CF: {
|
|
10437
|
-
name: "
|
|
10417
|
+
name: "Den sentralafrikanske republikk (R\xE9publique centrafricaine)",
|
|
10438
10418
|
id: "CF",
|
|
10439
10419
|
dialCode: "+236"
|
|
10440
10420
|
},
|
|
10441
|
-
TD: { name: "
|
|
10421
|
+
TD: { name: "Tsjad (Tchad)", id: "TD", dialCode: "+235" },
|
|
10442
10422
|
CL: { name: "Chile", id: "CL", dialCode: "+56" },
|
|
10443
|
-
CN: { name: "
|
|
10444
|
-
CX: { name: "Christmas Island", id: "CX", dialCode: "+61" },
|
|
10423
|
+
CN: { name: "Kina (\u4E2D\u56FD)", id: "CN", dialCode: "+86" },
|
|
10424
|
+
CX: { name: "Christmas\xF8ya (Christmas Island)", id: "CX", dialCode: "+61" },
|
|
10445
10425
|
CC: {
|
|
10446
|
-
name: "Cocos (Keeling) Islands",
|
|
10426
|
+
name: "Kokos\xF8yene (Cocos (Keeling) Islands)",
|
|
10447
10427
|
id: "CC",
|
|
10448
10428
|
dialCode: "+61"
|
|
10449
10429
|
},
|
|
10450
10430
|
CO: { name: "Colombia", id: "CO", dialCode: "+57" },
|
|
10451
|
-
KM: {
|
|
10452
|
-
name: "Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)",
|
|
10453
|
-
id: "KM",
|
|
10454
|
-
dialCode: "+269"
|
|
10455
|
-
},
|
|
10431
|
+
KM: { name: "Komorene (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)", id: "KM", dialCode: "+269" },
|
|
10456
10432
|
CD: {
|
|
10457
|
-
name: "
|
|
10433
|
+
name: "Kongo (DR) (Jamhuri ya Kisoemokrasia ya Kongo)",
|
|
10458
10434
|
id: "CD",
|
|
10459
10435
|
dialCode: "+243"
|
|
10460
10436
|
},
|
|
10461
10437
|
CG: {
|
|
10462
|
-
name: "
|
|
10438
|
+
name: "Kongo (Republikken) (Congo-Brazzaville)",
|
|
10463
10439
|
id: "CG",
|
|
10464
10440
|
dialCode: "+242"
|
|
10465
10441
|
},
|
|
10466
|
-
CK: { name: "Cook Islands", id: "CK", dialCode: "+682" },
|
|
10442
|
+
CK: { name: "Cook\xF8yene (Cook Islands)", id: "CK", dialCode: "+682" },
|
|
10467
10443
|
CR: { name: "Costa Rica", id: "CR", dialCode: "+506" },
|
|
10468
|
-
CI: { name: "C\xF4te d\u2019Ivoire", id: "CI", dialCode: "+225" },
|
|
10469
|
-
HR: {
|
|
10470
|
-
name: "Croatia (Hrvatska)",
|
|
10471
|
-
id: "HR",
|
|
10472
|
-
dialCode: "+385"
|
|
10473
|
-
},
|
|
10444
|
+
CI: { name: "Elfenbenskysten (C\xF4te d\u2019Ivoire)", id: "CI", dialCode: "+225" },
|
|
10445
|
+
HR: { name: "Kroatia (Hrvatska)", id: "HR", dialCode: "+385" },
|
|
10474
10446
|
CU: { name: "Cuba", id: "CU", dialCode: "+53" },
|
|
10475
10447
|
CW: { name: "Cura\xE7ao", id: "CW", dialCode: "+599" },
|
|
10476
|
-
CY: {
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
dialCode: "+357"
|
|
10480
|
-
},
|
|
10481
|
-
CZ: {
|
|
10482
|
-
name: "Czech Republic (\u010Cesk\xE1 republika)",
|
|
10483
|
-
id: "CZ",
|
|
10484
|
-
dialCode: "+420"
|
|
10485
|
-
},
|
|
10486
|
-
DK: {
|
|
10487
|
-
name: "Denmark (Danmark)",
|
|
10488
|
-
id: "DK",
|
|
10489
|
-
dialCode: "+45"
|
|
10490
|
-
},
|
|
10448
|
+
CY: { name: "Kypros (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)", id: "CY", dialCode: "+357" },
|
|
10449
|
+
CZ: { name: "Tsjekkia (\u010Cesk\xE1 republika)", id: "CZ", dialCode: "+420" },
|
|
10450
|
+
DK: { name: "Danmark", id: "DK", dialCode: "+45" },
|
|
10491
10451
|
DJ: { name: "Djibouti", id: "DJ", dialCode: "+253" },
|
|
10492
10452
|
DM: { name: "Dominica", id: "DM", dialCode: "+1767" },
|
|
10493
10453
|
DO: {
|
|
10494
|
-
name: "
|
|
10454
|
+
name: "Den dominikanske republikk (Rep\xFAblica Dominicana)",
|
|
10495
10455
|
id: "DO",
|
|
10496
10456
|
dialCode: "+1"
|
|
10497
10457
|
},
|
|
@@ -10499,248 +10459,118 @@ var COUNTRIES = {
|
|
|
10499
10459
|
EG: { name: "Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)", id: "EG", dialCode: "+20" },
|
|
10500
10460
|
SV: { name: "El Salvador", id: "SV", dialCode: "+503" },
|
|
10501
10461
|
GQ: {
|
|
10502
|
-
name: "
|
|
10462
|
+
name: "Ekvatorial-Guinea (Guinea Ecuatorial)",
|
|
10503
10463
|
id: "GQ",
|
|
10504
10464
|
dialCode: "+240"
|
|
10505
10465
|
},
|
|
10506
10466
|
ER: { name: "Eritrea", id: "ER", dialCode: "+291" },
|
|
10507
|
-
EE: {
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
},
|
|
10512
|
-
ET: { name: "Ethiopia", id: "ET", dialCode: "+251" },
|
|
10513
|
-
FK: {
|
|
10514
|
-
name: "Falkland Islands (Islas Malvinas)",
|
|
10515
|
-
id: "FK",
|
|
10516
|
-
dialCode: "+500"
|
|
10517
|
-
},
|
|
10518
|
-
FO: {
|
|
10519
|
-
name: "Faroe Islands (F\xF8royar)",
|
|
10520
|
-
id: "FO",
|
|
10521
|
-
dialCode: "+298"
|
|
10522
|
-
},
|
|
10467
|
+
EE: { name: "Estland (Eesti)", id: "EE", dialCode: "+372" },
|
|
10468
|
+
ET: { name: "Etiopia (\u12A2\u1275\u12EE\u1335\u12EB)", id: "ET", dialCode: "+251" },
|
|
10469
|
+
FK: { name: "Falklands\xF8yene (Islas Malvinas)", id: "FK", dialCode: "+500" },
|
|
10470
|
+
FO: { name: "F\xE6r\xF8yene (F\xF8royar)", id: "FO", dialCode: "+298" },
|
|
10523
10471
|
FJ: { name: "Fiji", id: "FJ", dialCode: "+679" },
|
|
10524
|
-
FI: {
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
dialCode: "+358"
|
|
10528
|
-
},
|
|
10529
|
-
FR: { name: "France", id: "FR", dialCode: "+33" },
|
|
10530
|
-
GF: {
|
|
10531
|
-
name: "French Guiana (Guyane fran\xE7aise)",
|
|
10532
|
-
id: "GF",
|
|
10533
|
-
dialCode: "+594"
|
|
10534
|
-
},
|
|
10472
|
+
FI: { name: "Finland (Suomi)", id: "FI", dialCode: "+358" },
|
|
10473
|
+
FR: { name: "Frankrike (France)", id: "FR", dialCode: "+33" },
|
|
10474
|
+
GF: { name: "Fransk Guyana (Guyane fran\xE7aise)", id: "GF", dialCode: "+594" },
|
|
10535
10475
|
PF: {
|
|
10536
|
-
name: "
|
|
10476
|
+
name: "Fransk Polynesia (Polyn\xE9sie fran\xE7aise)",
|
|
10537
10477
|
id: "PF",
|
|
10538
10478
|
dialCode: "+689"
|
|
10539
10479
|
},
|
|
10540
10480
|
GA: { name: "Gabon", id: "GA", dialCode: "+241" },
|
|
10541
10481
|
GM: { name: "Gambia", id: "GM", dialCode: "+220" },
|
|
10542
|
-
GE: {
|
|
10543
|
-
|
|
10544
|
-
id: "GE",
|
|
10545
|
-
dialCode: "+995"
|
|
10546
|
-
},
|
|
10547
|
-
DE: {
|
|
10548
|
-
name: "Germany (Deutschland)",
|
|
10549
|
-
id: "DE",
|
|
10550
|
-
dialCode: "+49"
|
|
10551
|
-
},
|
|
10482
|
+
GE: { name: "Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)", id: "GE", dialCode: "+995" },
|
|
10483
|
+
DE: { name: "Tyskland (Deutschland)", id: "DE", dialCode: "+49" },
|
|
10552
10484
|
GH: { name: "Ghana (Gaana)", id: "GH", dialCode: "+233" },
|
|
10553
10485
|
GI: { name: "Gibraltar", id: "GI", dialCode: "+350" },
|
|
10554
|
-
GR: { name: "
|
|
10555
|
-
GL: {
|
|
10556
|
-
name: "Greenland (Kalaallit Nunaat)",
|
|
10557
|
-
id: "GL",
|
|
10558
|
-
dialCode: "+299"
|
|
10559
|
-
},
|
|
10486
|
+
GR: { name: "Hellas (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)", id: "GR", dialCode: "+30" },
|
|
10487
|
+
GL: { name: "Gr\xF8nland (Kalaallit Nunaat)", id: "GL", dialCode: "+299" },
|
|
10560
10488
|
GD: { name: "Grenada", id: "GD", dialCode: "+1473" },
|
|
10561
10489
|
GP: { name: "Guadeloupe", id: "GP", dialCode: "+590" },
|
|
10562
10490
|
GU: { name: "Guam", id: "GU", dialCode: "+1671" },
|
|
10563
10491
|
GT: { name: "Guatemala", id: "GT", dialCode: "+502" },
|
|
10564
10492
|
GG: { name: "Guernsey", id: "GG", dialCode: "+44" },
|
|
10565
|
-
GN: {
|
|
10566
|
-
|
|
10567
|
-
id: "GN",
|
|
10568
|
-
dialCode: "+224"
|
|
10569
|
-
},
|
|
10570
|
-
GW: {
|
|
10571
|
-
name: "Guinea-Bissau (Guin\xE9 Bissau)",
|
|
10572
|
-
id: "GW",
|
|
10573
|
-
dialCode: "+245"
|
|
10574
|
-
},
|
|
10493
|
+
GN: { name: "Guinea (Guin\xE9e)", id: "GN", dialCode: "+224" },
|
|
10494
|
+
GW: { name: "Guinea-Bissau (Guin\xE9-Bissau)", id: "GW", dialCode: "+245" },
|
|
10575
10495
|
GY: { name: "Guyana", id: "GY", dialCode: "+592" },
|
|
10576
10496
|
HT: { name: "Haiti", id: "HT", dialCode: "+509" },
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
dialCode: "+852"
|
|
10582
|
-
},
|
|
10583
|
-
HU: {
|
|
10584
|
-
name: "Hungary (Magyarorsz\xE1g)",
|
|
10585
|
-
id: "HU",
|
|
10586
|
-
dialCode: "+36"
|
|
10497
|
+
HM: {
|
|
10498
|
+
name: "Heard- og McDonald\xF8yene (Heard Island and McDonald Islands)",
|
|
10499
|
+
id: "HM",
|
|
10500
|
+
dialCode: "+672"
|
|
10587
10501
|
},
|
|
10588
|
-
|
|
10589
|
-
name: "
|
|
10590
|
-
id: "
|
|
10591
|
-
dialCode: "+
|
|
10502
|
+
VA: {
|
|
10503
|
+
name: "Vatikanstaten (Citt\xE0 del Vaticano)",
|
|
10504
|
+
id: "VA",
|
|
10505
|
+
dialCode: "+379"
|
|
10592
10506
|
},
|
|
10507
|
+
HN: { name: "Honduras", id: "HN", dialCode: "+504" },
|
|
10508
|
+
HK: { name: "Hongkong (\u9999\u6E2F)", id: "HK", dialCode: "+852" },
|
|
10509
|
+
HU: { name: "Ungarn (Magyarorsz\xE1g)", id: "HU", dialCode: "+36" },
|
|
10510
|
+
IS: { name: "Island (\xCDsland)", id: "IS", dialCode: "+354" },
|
|
10593
10511
|
IN: { name: "India (\u092D\u093E\u0930\u0924)", id: "IN", dialCode: "+91" },
|
|
10594
10512
|
ID: { name: "Indonesia", id: "ID", dialCode: "+62" },
|
|
10595
10513
|
IR: { name: "Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)", id: "IR", dialCode: "+98" },
|
|
10596
|
-
IQ: {
|
|
10597
|
-
|
|
10598
|
-
id: "IQ",
|
|
10599
|
-
dialCode: "+964"
|
|
10600
|
-
},
|
|
10601
|
-
IE: { name: "Ireland", id: "IE", dialCode: "+353" },
|
|
10514
|
+
IQ: { name: "Irak (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)", id: "IQ", dialCode: "+964" },
|
|
10515
|
+
IE: { name: "Irland (\xC9ire)", id: "IE", dialCode: "+353" },
|
|
10602
10516
|
IM: { name: "Isle of Man", id: "IM", dialCode: "+44" },
|
|
10603
|
-
IL: {
|
|
10604
|
-
|
|
10605
|
-
id: "IL",
|
|
10606
|
-
dialCode: "+972"
|
|
10607
|
-
},
|
|
10608
|
-
IT: { name: "Italy (Italia)", id: "IT", dialCode: "+39" },
|
|
10517
|
+
IL: { name: "Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)", id: "IL", dialCode: "+972" },
|
|
10518
|
+
IT: { name: "Italia", id: "IT", dialCode: "+39" },
|
|
10609
10519
|
JM: { name: "Jamaica", id: "JM", dialCode: "+1" },
|
|
10610
10520
|
JP: { name: "Japan (\u65E5\u672C)", id: "JP", dialCode: "+81" },
|
|
10611
10521
|
JE: { name: "Jersey", id: "JE", dialCode: "+44" },
|
|
10612
|
-
JO: {
|
|
10613
|
-
|
|
10614
|
-
id: "JO",
|
|
10615
|
-
dialCode: "+962"
|
|
10616
|
-
},
|
|
10617
|
-
KZ: {
|
|
10618
|
-
name: "Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)",
|
|
10619
|
-
id: "KZ",
|
|
10620
|
-
dialCode: "+7"
|
|
10621
|
-
},
|
|
10522
|
+
JO: { name: "Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)", id: "JO", dialCode: "+962" },
|
|
10523
|
+
KZ: { name: "Kasakhstan (\u049A\u0430\u0437\u0430\u049B\u0441\u0442\u0430\u043D)", id: "KZ", dialCode: "+7" },
|
|
10622
10524
|
KE: { name: "Kenya", id: "KE", dialCode: "+254" },
|
|
10623
10525
|
KI: { name: "Kiribati", id: "KI", dialCode: "+686" },
|
|
10624
10526
|
XK: { name: "Kosovo", id: "XK", dialCode: "+383" },
|
|
10625
|
-
KW: {
|
|
10626
|
-
|
|
10627
|
-
id: "KW",
|
|
10628
|
-
dialCode: "+965"
|
|
10629
|
-
},
|
|
10630
|
-
KG: {
|
|
10631
|
-
name: "Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)",
|
|
10632
|
-
id: "KG",
|
|
10633
|
-
dialCode: "+996"
|
|
10634
|
-
},
|
|
10527
|
+
KW: { name: "Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)", id: "KW", dialCode: "+965" },
|
|
10528
|
+
KG: { name: "Kirgisistan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)", id: "KG", dialCode: "+996" },
|
|
10635
10529
|
LA: { name: "Laos (\u0EA5\u0EB2\u0EA7)", id: "LA", dialCode: "+856" },
|
|
10636
|
-
LV: {
|
|
10637
|
-
|
|
10638
|
-
id: "LV",
|
|
10639
|
-
dialCode: "+371"
|
|
10640
|
-
},
|
|
10641
|
-
LB: {
|
|
10642
|
-
name: "Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)",
|
|
10643
|
-
id: "LB",
|
|
10644
|
-
dialCode: "+961"
|
|
10645
|
-
},
|
|
10530
|
+
LV: { name: "Latvia (Latvija)", id: "LV", dialCode: "+371" },
|
|
10531
|
+
LB: { name: "Libanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)", id: "LB", dialCode: "+961" },
|
|
10646
10532
|
LS: { name: "Lesotho", id: "LS", dialCode: "+266" },
|
|
10647
10533
|
LR: { name: "Liberia", id: "LR", dialCode: "+231" },
|
|
10648
|
-
LY: {
|
|
10649
|
-
name: "Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)",
|
|
10650
|
-
id: "LY",
|
|
10651
|
-
dialCode: "+218"
|
|
10652
|
-
},
|
|
10534
|
+
LY: { name: "Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)", id: "LY", dialCode: "+218" },
|
|
10653
10535
|
LI: { name: "Liechtenstein", id: "LI", dialCode: "+423" },
|
|
10654
|
-
LT: {
|
|
10655
|
-
name: "Lithuania (Lietuva)",
|
|
10656
|
-
id: "LT",
|
|
10657
|
-
dialCode: "+370"
|
|
10658
|
-
},
|
|
10536
|
+
LT: { name: "Litauen (Lietuva)", id: "LT", dialCode: "+370" },
|
|
10659
10537
|
LU: { name: "Luxembourg", id: "LU", dialCode: "+352" },
|
|
10660
|
-
MO: { name: "
|
|
10538
|
+
MO: { name: "Macao (\u6FB3\u9580)", id: "MO", dialCode: "+853" },
|
|
10661
10539
|
MK: {
|
|
10662
|
-
name: "
|
|
10540
|
+
name: "Nord-Makedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)",
|
|
10663
10541
|
id: "MK",
|
|
10664
10542
|
dialCode: "+389"
|
|
10665
10543
|
},
|
|
10666
|
-
MG: {
|
|
10667
|
-
name: "Madagascar (Madagasikara)",
|
|
10668
|
-
id: "MG",
|
|
10669
|
-
dialCode: "+261"
|
|
10670
|
-
},
|
|
10544
|
+
MG: { name: "Madagaskar (Madagasikara)", id: "MG", dialCode: "+261" },
|
|
10671
10545
|
MW: { name: "Malawi", id: "MW", dialCode: "+265" },
|
|
10672
10546
|
MY: { name: "Malaysia", id: "MY", dialCode: "+60" },
|
|
10673
|
-
MV: {
|
|
10547
|
+
MV: {
|
|
10548
|
+
name: "Maldivene (\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0783\u07A7\u0787\u07B0\u0796\u07AD\u078E\u07AC \u0796\u07AA\u0789\u07B0\u0780\u07AB\u0783\u07A8\u0787\u07B0\u0794\u07A7)",
|
|
10549
|
+
id: "MV",
|
|
10550
|
+
dialCode: "+960"
|
|
10551
|
+
},
|
|
10674
10552
|
ML: { name: "Mali", id: "ML", dialCode: "+223" },
|
|
10675
10553
|
MT: { name: "Malta", id: "MT", dialCode: "+356" },
|
|
10676
|
-
MH: {
|
|
10677
|
-
name: "Marshall Islands",
|
|
10678
|
-
id: "MH",
|
|
10679
|
-
dialCode: "+692"
|
|
10680
|
-
},
|
|
10554
|
+
MH: { name: "Marshall\xF8yene (Marshall Islands)", id: "MH", dialCode: "+692" },
|
|
10681
10555
|
MQ: { name: "Martinique", id: "MQ", dialCode: "+596" },
|
|
10682
|
-
MR: {
|
|
10683
|
-
|
|
10684
|
-
id: "MR",
|
|
10685
|
-
dialCode: "+222"
|
|
10686
|
-
},
|
|
10687
|
-
MU: {
|
|
10688
|
-
name: "Mauritius (Moris)",
|
|
10689
|
-
id: "MU",
|
|
10690
|
-
dialCode: "+230"
|
|
10691
|
-
},
|
|
10556
|
+
MR: { name: "Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)", id: "MR", dialCode: "+222" },
|
|
10557
|
+
MU: { name: "Mauritius (Moris)", id: "MU", dialCode: "+230" },
|
|
10692
10558
|
YT: { name: "Mayotte", id: "YT", dialCode: "+262" },
|
|
10693
10559
|
MX: { name: "Mexico (M\xE9xico)", id: "MX", dialCode: "+52" },
|
|
10694
|
-
FM: { name: "Micronesia", id: "FM", dialCode: "+691" },
|
|
10695
|
-
MD: {
|
|
10696
|
-
name: "Moldova (Republica Moldova)",
|
|
10697
|
-
id: "MD",
|
|
10698
|
-
dialCode: "+373"
|
|
10699
|
-
},
|
|
10560
|
+
FM: { name: "Mikronesia (Micronesia)", id: "FM", dialCode: "+691" },
|
|
10561
|
+
MD: { name: "Moldova (Republica Moldova)", id: "MD", dialCode: "+373" },
|
|
10700
10562
|
MC: { name: "Monaco", id: "MC", dialCode: "+377" },
|
|
10701
|
-
MN: {
|
|
10702
|
-
|
|
10703
|
-
id: "MN",
|
|
10704
|
-
dialCode: "+976"
|
|
10705
|
-
},
|
|
10706
|
-
ME: {
|
|
10707
|
-
name: "Montenegro (Crna Gora)",
|
|
10708
|
-
id: "ME",
|
|
10709
|
-
dialCode: "+382"
|
|
10710
|
-
},
|
|
10563
|
+
MN: { name: "Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)", id: "MN", dialCode: "+976" },
|
|
10564
|
+
ME: { name: "Montenegro (Crna Gora)", id: "ME", dialCode: "+382" },
|
|
10711
10565
|
MS: { name: "Montserrat", id: "MS", dialCode: "+1664" },
|
|
10712
|
-
MA: {
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
},
|
|
10717
|
-
MZ: {
|
|
10718
|
-
name: "Mozambique (Mo\xE7ambique)",
|
|
10719
|
-
id: "MZ",
|
|
10720
|
-
dialCode: "+258"
|
|
10721
|
-
},
|
|
10722
|
-
MM: {
|
|
10723
|
-
name: "Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)",
|
|
10724
|
-
id: "MM",
|
|
10725
|
-
dialCode: "+95"
|
|
10726
|
-
},
|
|
10727
|
-
NA: {
|
|
10728
|
-
name: "Namibia (Namibi\xEB)",
|
|
10729
|
-
id: "NA",
|
|
10730
|
-
dialCode: "+264"
|
|
10731
|
-
},
|
|
10566
|
+
MA: { name: "Marokko (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)", id: "MA", dialCode: "+212" },
|
|
10567
|
+
MZ: { name: "Mosambik (Mo\xE7ambique)", id: "MZ", dialCode: "+258" },
|
|
10568
|
+
MM: { name: "Myanmar (\u1019\u103C\u1014\u103A\u1019\u102C)", id: "MM", dialCode: "+95" },
|
|
10569
|
+
NA: { name: "Namibia", id: "NA", dialCode: "+264" },
|
|
10732
10570
|
NR: { name: "Nauru", id: "NR", dialCode: "+674" },
|
|
10733
10571
|
NP: { name: "Nepal (\u0928\u0947\u092A\u093E\u0932)", id: "NP", dialCode: "+977" },
|
|
10734
|
-
NL: {
|
|
10735
|
-
|
|
10736
|
-
id: "NL",
|
|
10737
|
-
dialCode: "+31"
|
|
10738
|
-
},
|
|
10739
|
-
NC: {
|
|
10740
|
-
name: "New Caledonia (Nouvelle-Cal\xE9donie)",
|
|
10741
|
-
id: "NC",
|
|
10742
|
-
dialCode: "+687"
|
|
10743
|
-
},
|
|
10572
|
+
NL: { name: "Nederland", id: "NL", dialCode: "+31" },
|
|
10573
|
+
NC: { name: "Ny-Caledonia (Nouvelle-Cal\xE9donie)", id: "NC", dialCode: "+687" },
|
|
10744
10574
|
NZ: { name: "New Zealand", id: "NZ", dialCode: "+64" },
|
|
10745
10575
|
NI: { name: "Nicaragua", id: "NI", dialCode: "+505" },
|
|
10746
10576
|
NE: { name: "Niger (Nijar)", id: "NE", dialCode: "+227" },
|
|
@@ -10748,69 +10578,49 @@ var COUNTRIES = {
|
|
|
10748
10578
|
NU: { name: "Niue", id: "NU", dialCode: "+683" },
|
|
10749
10579
|
NF: { name: "Norfolk Island", id: "NF", dialCode: "+672" },
|
|
10750
10580
|
KP: {
|
|
10751
|
-
name: "
|
|
10581
|
+
name: "Nord-Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)",
|
|
10752
10582
|
id: "KP",
|
|
10753
10583
|
dialCode: "+850"
|
|
10754
10584
|
},
|
|
10755
10585
|
MP: {
|
|
10756
|
-
name: "Northern Mariana Islands",
|
|
10586
|
+
name: "Nord-Marianene (Northern Mariana Islands)",
|
|
10757
10587
|
id: "MP",
|
|
10758
10588
|
dialCode: "+1670"
|
|
10759
10589
|
},
|
|
10760
|
-
NO: { name: "
|
|
10761
|
-
OM: {
|
|
10762
|
-
|
|
10763
|
-
id: "OM",
|
|
10764
|
-
dialCode: "+968"
|
|
10765
|
-
},
|
|
10766
|
-
PK: {
|
|
10767
|
-
name: "Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)",
|
|
10768
|
-
id: "PK",
|
|
10769
|
-
dialCode: "+92"
|
|
10770
|
-
},
|
|
10590
|
+
NO: { name: "Norge", id: "NO", dialCode: "+47" },
|
|
10591
|
+
OM: { name: "Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)", id: "OM", dialCode: "+968" },
|
|
10592
|
+
PK: { name: "Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)", id: "PK", dialCode: "+92" },
|
|
10771
10593
|
PW: { name: "Palau", id: "PW", dialCode: "+680" },
|
|
10772
10594
|
PS: {
|
|
10773
|
-
name: "
|
|
10595
|
+
name: "Palestina (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)",
|
|
10774
10596
|
id: "PS",
|
|
10775
10597
|
dialCode: "+970"
|
|
10776
10598
|
},
|
|
10777
|
-
PA: {
|
|
10778
|
-
name: "Panama (Panam\xE1)",
|
|
10779
|
-
id: "PA",
|
|
10780
|
-
dialCode: "+507"
|
|
10781
|
-
},
|
|
10599
|
+
PA: { name: "Panama (Panam\xE1)", id: "PA", dialCode: "+507" },
|
|
10782
10600
|
PG: {
|
|
10783
|
-
name: "Papua New Guinea",
|
|
10601
|
+
name: "Papua Ny-Guinea (Papua New Guinea)",
|
|
10784
10602
|
id: "PG",
|
|
10785
10603
|
dialCode: "+675"
|
|
10786
10604
|
},
|
|
10787
10605
|
PY: { name: "Paraguay", id: "PY", dialCode: "+595" },
|
|
10788
10606
|
PE: { name: "Peru (Per\xFA)", id: "PE", dialCode: "+51" },
|
|
10789
|
-
PH: { name: "Philippines", id: "PH", dialCode: "+63" },
|
|
10790
|
-
PL: { name: "
|
|
10607
|
+
PH: { name: "Filippinene (Philippines)", id: "PH", dialCode: "+63" },
|
|
10608
|
+
PL: { name: "Polen (Polska)", id: "PL", dialCode: "+48" },
|
|
10791
10609
|
PT: { name: "Portugal", id: "PT", dialCode: "+351" },
|
|
10792
10610
|
PR: { name: "Puerto Rico", id: "PR", dialCode: "+1" },
|
|
10793
10611
|
QA: { name: "Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)", id: "QA", dialCode: "+974" },
|
|
10794
|
-
RE: {
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
dialCode: "+262"
|
|
10798
|
-
},
|
|
10799
|
-
RO: {
|
|
10800
|
-
name: "Romania (Rom\xE2nia)",
|
|
10801
|
-
id: "RO",
|
|
10802
|
-
dialCode: "+40"
|
|
10803
|
-
},
|
|
10804
|
-
RU: { name: "Russia (\u0420\u043E\u0441\u0441\u0438\u044F)", id: "RU", dialCode: "+7" },
|
|
10612
|
+
RE: { name: "R\xE9union", id: "RE", dialCode: "+262" },
|
|
10613
|
+
RO: { name: "Romania (Rom\xE2nia)", id: "RO", dialCode: "+40" },
|
|
10614
|
+
RU: { name: "Russland (\u0420\u043E\u0441\u0441\u0438\u044F)", id: "RU", dialCode: "+7" },
|
|
10805
10615
|
RW: { name: "Rwanda", id: "RW", dialCode: "+250" },
|
|
10806
10616
|
BL: {
|
|
10807
10617
|
name: "Saint Barth\xE9lemy",
|
|
10808
10618
|
id: "BL",
|
|
10809
10619
|
dialCode: "+590"
|
|
10810
10620
|
},
|
|
10811
|
-
SH: { name: "Saint Helena", id: "SH", dialCode: "+290" },
|
|
10621
|
+
SH: { name: "St. Helena (Saint Helena)", id: "SH", dialCode: "+290" },
|
|
10812
10622
|
KN: {
|
|
10813
|
-
name: "Saint Kitts and Nevis",
|
|
10623
|
+
name: "Saint Kitts og Nevis (Saint Kitts and Nevis)",
|
|
10814
10624
|
id: "KN",
|
|
10815
10625
|
dialCode: "+1869"
|
|
10816
10626
|
},
|
|
@@ -10821,176 +10631,109 @@ var COUNTRIES = {
|
|
|
10821
10631
|
dialCode: "+590"
|
|
10822
10632
|
},
|
|
10823
10633
|
PM: {
|
|
10824
|
-
name: "Saint Pierre
|
|
10634
|
+
name: "Saint Pierre og Miquelon (Saint-Pierre-et-Miquelon)",
|
|
10825
10635
|
id: "PM",
|
|
10826
10636
|
dialCode: "+508"
|
|
10827
10637
|
},
|
|
10828
10638
|
VC: {
|
|
10829
|
-
name: "Saint Vincent and the Grenadines",
|
|
10639
|
+
name: "Saint Vincent og Grenadinene (Saint Vincent and the Grenadines)",
|
|
10830
10640
|
id: "VC",
|
|
10831
10641
|
dialCode: "+1784"
|
|
10832
10642
|
},
|
|
10833
10643
|
WS: { name: "Samoa", id: "WS", dialCode: "+685" },
|
|
10834
10644
|
SM: { name: "San Marino", id: "SM", dialCode: "+378" },
|
|
10835
10645
|
ST: {
|
|
10836
|
-
name: "S\xE3o Tom\xE9
|
|
10646
|
+
name: "S\xE3o Tom\xE9 og Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)",
|
|
10837
10647
|
id: "ST",
|
|
10838
10648
|
dialCode: "+239"
|
|
10839
10649
|
},
|
|
10840
10650
|
SA: {
|
|
10841
|
-
name: "Saudi
|
|
10651
|
+
name: "Saudi-Arabia (\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629)",
|
|
10842
10652
|
id: "SA",
|
|
10843
10653
|
dialCode: "+966"
|
|
10844
10654
|
},
|
|
10845
|
-
SN: {
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
dialCode: "+221"
|
|
10849
|
-
},
|
|
10850
|
-
RS: {
|
|
10851
|
-
name: "Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)",
|
|
10852
|
-
id: "RS",
|
|
10853
|
-
dialCode: "+381"
|
|
10854
|
-
},
|
|
10855
|
-
SC: { name: "Seychelles", id: "SC", dialCode: "+248" },
|
|
10655
|
+
SN: { name: "Senegal (S\xE9n\xE9gal)", id: "SN", dialCode: "+221" },
|
|
10656
|
+
RS: { name: "Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)", id: "RS", dialCode: "+381" },
|
|
10657
|
+
SC: { name: "Seychellene (Seychelles)", id: "SC", dialCode: "+248" },
|
|
10856
10658
|
SL: { name: "Sierra Leone", id: "SL", dialCode: "+232" },
|
|
10857
10659
|
SG: { name: "Singapore", id: "SG", dialCode: "+65" },
|
|
10858
10660
|
SX: { name: "Sint Maarten", id: "SX", dialCode: "+1721" },
|
|
10859
|
-
SK: {
|
|
10860
|
-
|
|
10861
|
-
|
|
10862
|
-
|
|
10863
|
-
},
|
|
10864
|
-
|
|
10865
|
-
name: "
|
|
10866
|
-
id: "
|
|
10867
|
-
dialCode: "+
|
|
10868
|
-
},
|
|
10869
|
-
SB: {
|
|
10870
|
-
name: "Solomon Islands",
|
|
10871
|
-
id: "SB",
|
|
10872
|
-
dialCode: "+677"
|
|
10873
|
-
},
|
|
10874
|
-
SO: {
|
|
10875
|
-
name: "Somalia (Soomaaliya)",
|
|
10876
|
-
id: "SO",
|
|
10877
|
-
dialCode: "+252"
|
|
10661
|
+
SK: { name: "Slovakia (Slovensko)", id: "SK", dialCode: "+421" },
|
|
10662
|
+
SI: { name: "Slovenia (Slovenija)", id: "SI", dialCode: "+386" },
|
|
10663
|
+
SB: { name: "Salomon\xF8yene (Solomon Islands)", id: "SB", dialCode: "+677" },
|
|
10664
|
+
SO: { name: "Somalia (Soomaaliya)", id: "SO", dialCode: "+252" },
|
|
10665
|
+
ZA: { name: "S\xF8r-Afrika (South Africa)", id: "ZA", dialCode: "+27" },
|
|
10666
|
+
GS: {
|
|
10667
|
+
name: "S\xF8r-Georgia og S\xF8r-Sandwich\xF8yene (South Georgia and the South Sandwich Islands)",
|
|
10668
|
+
id: "GS",
|
|
10669
|
+
dialCode: "+500"
|
|
10878
10670
|
},
|
|
10879
|
-
ZA: { name: "South Africa", id: "ZA", dialCode: "+27" },
|
|
10880
10671
|
KR: {
|
|
10881
|
-
name: "
|
|
10672
|
+
name: "S\xF8r-Korea (\uB300\uD55C\uBBFC\uAD6D)",
|
|
10882
10673
|
id: "KR",
|
|
10883
10674
|
dialCode: "+82"
|
|
10884
10675
|
},
|
|
10885
|
-
SS: {
|
|
10886
|
-
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
},
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
},
|
|
10896
|
-
SD: {
|
|
10897
|
-
name: "Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)",
|
|
10898
|
-
id: "SD",
|
|
10899
|
-
dialCode: "+249"
|
|
10900
|
-
},
|
|
10901
|
-
SR: { name: "Suriname", id: "SR", dialCode: "+597" },
|
|
10902
|
-
SJ: {
|
|
10903
|
-
name: "Svalbard and Jan Mayen",
|
|
10904
|
-
id: "SJ",
|
|
10905
|
-
dialCode: "+47"
|
|
10906
|
-
},
|
|
10907
|
-
SZ: { name: "Swaziland", id: "SZ", dialCode: "+268" },
|
|
10908
|
-
SE: { name: "Sweden (Sverige)", id: "SE", dialCode: "+46" },
|
|
10909
|
-
CH: {
|
|
10910
|
-
name: "Switzerland (Schweiz)",
|
|
10911
|
-
id: "CH",
|
|
10912
|
-
dialCode: "+41"
|
|
10913
|
-
},
|
|
10914
|
-
SY: {
|
|
10915
|
-
name: "Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)",
|
|
10916
|
-
id: "SY",
|
|
10917
|
-
dialCode: "+963"
|
|
10918
|
-
},
|
|
10676
|
+
SS: { name: "S\xF8r-Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)", id: "SS", dialCode: "+211" },
|
|
10677
|
+
ES: { name: "Spania (Espa\xF1a)", id: "ES", dialCode: "+34" },
|
|
10678
|
+
LK: { name: "Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)", id: "LK", dialCode: "+94" },
|
|
10679
|
+
SD: { name: "Sudan (\u0627\u0644\u0633\u0648\u062F\u0627\u0646)", id: "SD", dialCode: "+249" },
|
|
10680
|
+
SR: { name: "Surinam (Suriname)", id: "SR", dialCode: "+597" },
|
|
10681
|
+
SJ: { name: "Svalbard og Jan Mayen", id: "SJ", dialCode: "+47" },
|
|
10682
|
+
SZ: { name: "Eswatini", id: "SZ", dialCode: "+268" },
|
|
10683
|
+
SE: { name: "Sverige", id: "SE", dialCode: "+46" },
|
|
10684
|
+
CH: { name: "Sveits (Schweiz)", id: "CH", dialCode: "+41" },
|
|
10685
|
+
SY: { name: "Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)", id: "SY", dialCode: "+963" },
|
|
10919
10686
|
TW: { name: "Taiwan (\u53F0\u7063)", id: "TW", dialCode: "+886" },
|
|
10920
|
-
TJ: { name: "
|
|
10687
|
+
TJ: { name: "Tadsjikistan (\u0422\u0430\u0434\u0436\u0438\u043A\u0438\u0441\u0442\u0430\u043D)", id: "TJ", dialCode: "+992" },
|
|
10921
10688
|
TZ: { name: "Tanzania", id: "TZ", dialCode: "+255" },
|
|
10922
10689
|
TH: { name: "Thailand (\u0E44\u0E17\u0E22)", id: "TH", dialCode: "+66" },
|
|
10923
|
-
TL: { name: "Timor-Leste", id: "TL", dialCode: "+670" },
|
|
10690
|
+
TL: { name: "\xD8st-Timor (Timor-Leste)", id: "TL", dialCode: "+670" },
|
|
10924
10691
|
TG: { name: "Togo", id: "TG", dialCode: "+228" },
|
|
10925
10692
|
TK: { name: "Tokelau", id: "TK", dialCode: "+690" },
|
|
10926
10693
|
TO: { name: "Tonga", id: "TO", dialCode: "+676" },
|
|
10927
10694
|
TT: {
|
|
10928
|
-
name: "
|
|
10695
|
+
name: "Trinidad og Tobago (Trinidad and Tobago)",
|
|
10929
10696
|
id: "TT",
|
|
10930
10697
|
dialCode: "+1868"
|
|
10931
10698
|
},
|
|
10932
|
-
TN: {
|
|
10933
|
-
|
|
10934
|
-
id: "TN",
|
|
10935
|
-
dialCode: "+216"
|
|
10936
|
-
},
|
|
10937
|
-
TR: { name: "Turkey (T\xFCrkiye)", id: "TR", dialCode: "+90" },
|
|
10699
|
+
TN: { name: "Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)", id: "TN", dialCode: "+216" },
|
|
10700
|
+
TR: { name: "Tyrkia (T\xFCrkiye)", id: "TR", dialCode: "+90" },
|
|
10938
10701
|
TM: { name: "Turkmenistan", id: "TM", dialCode: "+993" },
|
|
10939
10702
|
TC: {
|
|
10940
|
-
name: "Turks and Caicos Islands",
|
|
10703
|
+
name: "Turks- og Caicos\xF8yene (Turks and Caicos Islands)",
|
|
10941
10704
|
id: "TC",
|
|
10942
10705
|
dialCode: "+1649"
|
|
10943
10706
|
},
|
|
10944
10707
|
TV: { name: "Tuvalu", id: "TV", dialCode: "+688" },
|
|
10945
10708
|
VI: {
|
|
10946
|
-
name: "U.S. Virgin Islands",
|
|
10709
|
+
name: "De amerikanske Jomfru\xF8yer (U.S. Virgin Islands)",
|
|
10947
10710
|
id: "VI",
|
|
10948
10711
|
dialCode: "+1340"
|
|
10949
10712
|
},
|
|
10950
10713
|
UG: { name: "Uganda", id: "UG", dialCode: "+256" },
|
|
10951
|
-
UA: {
|
|
10952
|
-
name: "Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)",
|
|
10953
|
-
id: "UA",
|
|
10954
|
-
dialCode: "+380"
|
|
10955
|
-
},
|
|
10714
|
+
UA: { name: "Ukraina (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)", id: "UA", dialCode: "+380" },
|
|
10956
10715
|
AE: {
|
|
10957
|
-
name: "
|
|
10716
|
+
name: "De forente arabiske emirater (\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)",
|
|
10958
10717
|
id: "AE",
|
|
10959
10718
|
dialCode: "+971"
|
|
10960
10719
|
},
|
|
10961
|
-
GB: { name: "United Kingdom", id: "GB", dialCode: "+44" },
|
|
10962
|
-
US: { name: "United States", id: "US", dialCode: "+1" },
|
|
10720
|
+
GB: { name: "Storbritannia (United Kingdom)", id: "GB", dialCode: "+44" },
|
|
10721
|
+
US: { name: "USA (United States)", id: "US", dialCode: "+1" },
|
|
10963
10722
|
UY: { name: "Uruguay", id: "UY", dialCode: "+598" },
|
|
10964
|
-
UZ: {
|
|
10965
|
-
name: "Uzbekistan (O\u02BBzbekiston)",
|
|
10966
|
-
id: "UZ",
|
|
10967
|
-
dialCode: "+998"
|
|
10968
|
-
},
|
|
10723
|
+
UZ: { name: "Usbekistan (\u040E\u0437\u0431\u0435\u043A\u0438\u0441\u0442\u043E\u043D)", id: "UZ", dialCode: "+998" },
|
|
10969
10724
|
VU: { name: "Vanuatu", id: "VU", dialCode: "+678" },
|
|
10970
|
-
VA: {
|
|
10971
|
-
name: "Vatican City (Citt\xE0 del Vaticano)",
|
|
10972
|
-
id: "VA",
|
|
10973
|
-
dialCode: "+39"
|
|
10974
|
-
},
|
|
10975
10725
|
VE: { name: "Venezuela", id: "VE", dialCode: "+58" },
|
|
10976
|
-
VN: {
|
|
10977
|
-
|
|
10978
|
-
id: "VN",
|
|
10979
|
-
dialCode: "+84"
|
|
10980
|
-
},
|
|
10726
|
+
VN: { name: "Vietnam (Vi\u1EC7t Nam)", id: "VN", dialCode: "+84" },
|
|
10727
|
+
EH: { name: "Vest-Sahara (Western Sahara)", id: "EH", dialCode: "+212" },
|
|
10981
10728
|
WF: {
|
|
10982
|
-
name: "Wallis
|
|
10729
|
+
name: "Wallis- og Futuna\xF8yene (Wallis-et-Futuna)",
|
|
10983
10730
|
id: "WF",
|
|
10984
10731
|
dialCode: "+681"
|
|
10985
10732
|
},
|
|
10986
|
-
YE: {
|
|
10987
|
-
name: "Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)",
|
|
10988
|
-
id: "YE",
|
|
10989
|
-
dialCode: "+967"
|
|
10990
|
-
},
|
|
10733
|
+
YE: { name: "Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)", id: "YE", dialCode: "+967" },
|
|
10991
10734
|
ZM: { name: "Zambia", id: "ZM", dialCode: "+260" },
|
|
10992
10735
|
ZW: { name: "Zimbabwe", id: "ZW", dialCode: "+263" },
|
|
10993
|
-
AX: { name: "\xC5land
|
|
10736
|
+
AX: { name: "\xC5land", id: "AX", dialCode: "+358" }
|
|
10994
10737
|
};
|
|
10995
10738
|
|
|
10996
10739
|
// src/components/PhoneInput/PhoneInput.module.css
|
|
@@ -11023,7 +10766,15 @@ var prioritizedCountryOptions = prioritizedCountries.map((country) => {
|
|
|
11023
10766
|
});
|
|
11024
10767
|
var sortedCountryOptions = Object.values(
|
|
11025
10768
|
COUNTRIES
|
|
11026
|
-
).sort((a2, b) =>
|
|
10769
|
+
).sort((a2, b) => {
|
|
10770
|
+
if (a2.name < b.name) {
|
|
10771
|
+
return -1;
|
|
10772
|
+
}
|
|
10773
|
+
if (a2.name > b.name) {
|
|
10774
|
+
return 1;
|
|
10775
|
+
}
|
|
10776
|
+
return 0;
|
|
10777
|
+
}).map((country) => ({
|
|
11027
10778
|
countryCode: country.id,
|
|
11028
10779
|
label: `${country.name} ${country.dialCode}`
|
|
11029
10780
|
})).filter(
|
|
@@ -11035,7 +10786,7 @@ var countryOptions = [
|
|
|
11035
10786
|
...prioritizedCountryOptions,
|
|
11036
10787
|
...sortedCountryOptions
|
|
11037
10788
|
];
|
|
11038
|
-
var PhoneInput =
|
|
10789
|
+
var PhoneInput = forwardRef78(
|
|
11039
10790
|
({
|
|
11040
10791
|
label,
|
|
11041
10792
|
readOnly,
|
|
@@ -11079,7 +10830,7 @@ var PhoneInput = forwardRef77(
|
|
|
11079
10830
|
);
|
|
11080
10831
|
const isControlled = value !== void 0;
|
|
11081
10832
|
const [callingCodeWidth, setCallingCodeWidth] = useState19(0);
|
|
11082
|
-
const callingCodeRef =
|
|
10833
|
+
const callingCodeRef = useRef29(null);
|
|
11083
10834
|
useLayoutEffect2(() => {
|
|
11084
10835
|
if (callingCodeRef.current) {
|
|
11085
10836
|
setCallingCodeWidth(callingCodeRef.current.offsetWidth);
|
|
@@ -11090,7 +10841,7 @@ var PhoneInput = forwardRef77(
|
|
|
11090
10841
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11091
10842
|
["--dds-phone-input-width"]: width ? width : componentSize === "tiny" ? "131px" : "194px"
|
|
11092
10843
|
};
|
|
11093
|
-
const internalSelectRef =
|
|
10844
|
+
const internalSelectRef = useRef29(null);
|
|
11094
10845
|
const combinedSelectRef = useCombinedRef(selectRef, internalSelectRef);
|
|
11095
10846
|
const displayedValue = isControlled ? value : internalValue;
|
|
11096
10847
|
useEffect23(() => {
|
|
@@ -11236,7 +10987,7 @@ var getCallingCode = (s2) => {
|
|
|
11236
10987
|
|
|
11237
10988
|
// src/components/Popover/Popover.tsx
|
|
11238
10989
|
import { ddsTokens as ddsTokens16 } from "@norges-domstoler/dds-design-tokens";
|
|
11239
|
-
import { forwardRef as
|
|
10990
|
+
import { forwardRef as forwardRef79 } from "react";
|
|
11240
10991
|
|
|
11241
10992
|
// src/components/Popover/Popover.module.css
|
|
11242
10993
|
var Popover_default = {
|
|
@@ -11248,7 +10999,7 @@ var Popover_default = {
|
|
|
11248
10999
|
|
|
11249
11000
|
// src/components/Popover/Popover.tsx
|
|
11250
11001
|
import { jsx as jsx267, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
11251
|
-
var Popover =
|
|
11002
|
+
var Popover = forwardRef79(
|
|
11252
11003
|
(props, ref) => {
|
|
11253
11004
|
const {
|
|
11254
11005
|
title,
|
|
@@ -11342,7 +11093,7 @@ import {
|
|
|
11342
11093
|
cloneElement as cloneElement6,
|
|
11343
11094
|
isValidElement as isValidElement7,
|
|
11344
11095
|
useId as useId18,
|
|
11345
|
-
useRef as
|
|
11096
|
+
useRef as useRef30,
|
|
11346
11097
|
useState as useState20
|
|
11347
11098
|
} from "react";
|
|
11348
11099
|
import { Fragment as Fragment9, jsx as jsx268 } from "react/jsx-runtime";
|
|
@@ -11364,8 +11115,8 @@ var PopoverGroup = ({
|
|
|
11364
11115
|
setOpen(!open);
|
|
11365
11116
|
onTriggerClick && onTriggerClick();
|
|
11366
11117
|
};
|
|
11367
|
-
const buttonRef =
|
|
11368
|
-
const popoverRef =
|
|
11118
|
+
const buttonRef = useRef30(null);
|
|
11119
|
+
const popoverRef = useRef30(null);
|
|
11369
11120
|
useOnKeyDown(["Esc", "Escape"], () => {
|
|
11370
11121
|
var _a;
|
|
11371
11122
|
if (open) {
|
|
@@ -11400,7 +11151,7 @@ import {
|
|
|
11400
11151
|
Children as Children4,
|
|
11401
11152
|
Fragment as Fragment11,
|
|
11402
11153
|
cloneElement as cloneElement7,
|
|
11403
|
-
forwardRef as
|
|
11154
|
+
forwardRef as forwardRef80,
|
|
11404
11155
|
isValidElement as isValidElement8,
|
|
11405
11156
|
useEffect as useEffect24,
|
|
11406
11157
|
useMemo as useMemo3,
|
|
@@ -11548,7 +11299,7 @@ ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
|
11548
11299
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
11549
11300
|
import { jsx as jsx270, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
11550
11301
|
var ProgressTracker = (() => {
|
|
11551
|
-
const Res =
|
|
11302
|
+
const Res = forwardRef80((props, ref) => {
|
|
11552
11303
|
const {
|
|
11553
11304
|
id,
|
|
11554
11305
|
activeStep = 0,
|
|
@@ -11616,7 +11367,7 @@ var intersperseItemsWithConnector = (children) => Children4.map(children, (child
|
|
|
11616
11367
|
});
|
|
11617
11368
|
|
|
11618
11369
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11619
|
-
import { forwardRef as
|
|
11370
|
+
import { forwardRef as forwardRef81, useId as useId19 } from "react";
|
|
11620
11371
|
|
|
11621
11372
|
// src/components/ProgressBar/ProgressBar.module.css
|
|
11622
11373
|
var ProgressBar_default = {
|
|
@@ -11633,7 +11384,7 @@ var ProgressBar_default = {
|
|
|
11633
11384
|
|
|
11634
11385
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11635
11386
|
import { jsx as jsx271, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
11636
|
-
var ProgressBar =
|
|
11387
|
+
var ProgressBar = forwardRef81(
|
|
11637
11388
|
(props, ref) => {
|
|
11638
11389
|
const {
|
|
11639
11390
|
label,
|
|
@@ -11713,7 +11464,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
11713
11464
|
|
|
11714
11465
|
// src/components/Search/Search.tsx
|
|
11715
11466
|
import {
|
|
11716
|
-
forwardRef as
|
|
11467
|
+
forwardRef as forwardRef84,
|
|
11717
11468
|
useId as useId20,
|
|
11718
11469
|
useState as useState22
|
|
11719
11470
|
} from "react";
|
|
@@ -11775,18 +11526,18 @@ function createEmptyChangeEvent(inputElementId) {
|
|
|
11775
11526
|
}
|
|
11776
11527
|
|
|
11777
11528
|
// src/components/Search/SearchSuggestions.tsx
|
|
11778
|
-
import { forwardRef as
|
|
11529
|
+
import { forwardRef as forwardRef83 } from "react";
|
|
11779
11530
|
|
|
11780
11531
|
// src/components/Search/SearchSuggestionItem.tsx
|
|
11781
11532
|
import {
|
|
11782
|
-
forwardRef as
|
|
11533
|
+
forwardRef as forwardRef82,
|
|
11783
11534
|
useEffect as useEffect25,
|
|
11784
|
-
useRef as
|
|
11535
|
+
useRef as useRef31
|
|
11785
11536
|
} from "react";
|
|
11786
11537
|
import { jsx as jsx272 } from "react/jsx-runtime";
|
|
11787
|
-
var SearchSuggestionItem =
|
|
11538
|
+
var SearchSuggestionItem = forwardRef82((props, ref) => {
|
|
11788
11539
|
const { focus, className, ...rest } = props;
|
|
11789
|
-
const itemRef =
|
|
11540
|
+
const itemRef = useRef31(null);
|
|
11790
11541
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
11791
11542
|
useEffect25(() => {
|
|
11792
11543
|
var _a;
|
|
@@ -11814,7 +11565,7 @@ SearchSuggestionItem.displayName = "SearchSuggestionItem";
|
|
|
11814
11565
|
|
|
11815
11566
|
// src/components/Search/SearchSuggestions.tsx
|
|
11816
11567
|
import { jsx as jsx273, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
11817
|
-
var SearchSuggestions =
|
|
11568
|
+
var SearchSuggestions = forwardRef83((props, ref) => {
|
|
11818
11569
|
const {
|
|
11819
11570
|
id,
|
|
11820
11571
|
searchId,
|
|
@@ -11904,7 +11655,7 @@ var getIconSize = (size2) => {
|
|
|
11904
11655
|
return "small";
|
|
11905
11656
|
}
|
|
11906
11657
|
};
|
|
11907
|
-
var Search =
|
|
11658
|
+
var Search = forwardRef84(
|
|
11908
11659
|
({
|
|
11909
11660
|
componentSize = "medium",
|
|
11910
11661
|
buttonProps,
|
|
@@ -12048,7 +11799,7 @@ Search.displayName = "Search";
|
|
|
12048
11799
|
// src/components/Search/SearchAutocompleteWrapper.tsx
|
|
12049
11800
|
import {
|
|
12050
11801
|
useEffect as useEffect26,
|
|
12051
|
-
useRef as
|
|
11802
|
+
useRef as useRef32,
|
|
12052
11803
|
useState as useState23
|
|
12053
11804
|
} from "react";
|
|
12054
11805
|
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
@@ -12112,8 +11863,8 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
12112
11863
|
const handleSetInputValue = (value2) => {
|
|
12113
11864
|
setInputValue(value2 != null ? value2 : "");
|
|
12114
11865
|
};
|
|
12115
|
-
const inputRef =
|
|
12116
|
-
const suggestionsRef =
|
|
11866
|
+
const inputRef = useRef32(null);
|
|
11867
|
+
const suggestionsRef = useRef32(null);
|
|
12117
11868
|
useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
|
|
12118
11869
|
closeSuggestions();
|
|
12119
11870
|
});
|
|
@@ -12137,7 +11888,7 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
|
|
|
12137
11888
|
Search2.Suggestions = SearchSuggestions;
|
|
12138
11889
|
|
|
12139
11890
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
12140
|
-
import { forwardRef as
|
|
11891
|
+
import { forwardRef as forwardRef86, useId as useId21 } from "react";
|
|
12141
11892
|
|
|
12142
11893
|
// src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
|
|
12143
11894
|
import { createContext as createContext6, useContext as useContext9 } from "react";
|
|
@@ -12148,7 +11899,7 @@ var useCheckboxGroup = () => {
|
|
|
12148
11899
|
|
|
12149
11900
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
12150
11901
|
import {
|
|
12151
|
-
forwardRef as
|
|
11902
|
+
forwardRef as forwardRef85
|
|
12152
11903
|
} from "react";
|
|
12153
11904
|
|
|
12154
11905
|
// src/components/SelectionControl/SelectionControl.module.css
|
|
@@ -12170,7 +11921,7 @@ var SelectionControl_default = {
|
|
|
12170
11921
|
|
|
12171
11922
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
12172
11923
|
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
12173
|
-
var SelectionControl =
|
|
11924
|
+
var SelectionControl = forwardRef85((props, ref) => {
|
|
12174
11925
|
const { controlType, className, ...rest } = props;
|
|
12175
11926
|
return /* @__PURE__ */ jsx276(
|
|
12176
11927
|
"span",
|
|
@@ -12185,7 +11936,7 @@ var SelectionControl = forwardRef84((props, ref) => {
|
|
|
12185
11936
|
}
|
|
12186
11937
|
);
|
|
12187
11938
|
});
|
|
12188
|
-
var Label2 =
|
|
11939
|
+
var Label2 = forwardRef85(
|
|
12189
11940
|
(props, ref) => {
|
|
12190
11941
|
const {
|
|
12191
11942
|
disabled,
|
|
@@ -12228,7 +11979,7 @@ var selectionControlTypographyProps = {
|
|
|
12228
11979
|
|
|
12229
11980
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
12230
11981
|
import { jsx as jsx277, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
12231
|
-
var Checkbox =
|
|
11982
|
+
var Checkbox = forwardRef86(
|
|
12232
11983
|
(props, ref) => {
|
|
12233
11984
|
const {
|
|
12234
11985
|
id,
|
|
@@ -12390,7 +12141,7 @@ var CheckboxGroup = (props) => {
|
|
|
12390
12141
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
12391
12142
|
|
|
12392
12143
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
12393
|
-
import { forwardRef as
|
|
12144
|
+
import { forwardRef as forwardRef87, useId as useId23 } from "react";
|
|
12394
12145
|
|
|
12395
12146
|
// src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
|
|
12396
12147
|
import { createContext as createContext7, useContext as useContext10 } from "react";
|
|
@@ -12410,7 +12161,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group) => {
|
|
|
12410
12161
|
}
|
|
12411
12162
|
return !!value;
|
|
12412
12163
|
};
|
|
12413
|
-
var RadioButton =
|
|
12164
|
+
var RadioButton = forwardRef87(
|
|
12414
12165
|
(props, ref) => {
|
|
12415
12166
|
const {
|
|
12416
12167
|
id,
|
|
@@ -12504,7 +12255,7 @@ RadioButton.displayName = "RadioButton";
|
|
|
12504
12255
|
|
|
12505
12256
|
// src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
|
|
12506
12257
|
import {
|
|
12507
|
-
forwardRef as
|
|
12258
|
+
forwardRef as forwardRef88,
|
|
12508
12259
|
useId as useId24,
|
|
12509
12260
|
useState as useState24
|
|
12510
12261
|
} from "react";
|
|
@@ -12593,11 +12344,11 @@ var RadioButtonGroupInner = (props, ref) => {
|
|
|
12593
12344
|
}
|
|
12594
12345
|
);
|
|
12595
12346
|
};
|
|
12596
|
-
var RadioButtonGroup =
|
|
12347
|
+
var RadioButtonGroup = forwardRef88(RadioButtonGroupInner);
|
|
12597
12348
|
RadioButtonGroup.displayName = "RadioButtonGroup";
|
|
12598
12349
|
|
|
12599
12350
|
// src/components/Skeleton/Skeleton.tsx
|
|
12600
|
-
import { forwardRef as
|
|
12351
|
+
import { forwardRef as forwardRef89 } from "react";
|
|
12601
12352
|
|
|
12602
12353
|
// src/components/Skeleton/Skeleton.module.css
|
|
12603
12354
|
var Skeleton_default = {
|
|
@@ -12607,7 +12358,7 @@ var Skeleton_default = {
|
|
|
12607
12358
|
|
|
12608
12359
|
// src/components/Skeleton/Skeleton.tsx
|
|
12609
12360
|
import { jsx as jsx281 } from "react/jsx-runtime";
|
|
12610
|
-
var Skeleton =
|
|
12361
|
+
var Skeleton = forwardRef89(
|
|
12611
12362
|
(props, ref) => {
|
|
12612
12363
|
const {
|
|
12613
12364
|
width,
|
|
@@ -12631,7 +12382,7 @@ var Skeleton = forwardRef88(
|
|
|
12631
12382
|
Skeleton.displayName = "Skeleton";
|
|
12632
12383
|
|
|
12633
12384
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
12634
|
-
import { forwardRef as
|
|
12385
|
+
import { forwardRef as forwardRef90 } from "react";
|
|
12635
12386
|
|
|
12636
12387
|
// src/components/SkipToContent/SkipToContent.module.css
|
|
12637
12388
|
var SkipToContent_default = {
|
|
@@ -12640,7 +12391,7 @@ var SkipToContent_default = {
|
|
|
12640
12391
|
|
|
12641
12392
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
12642
12393
|
import { jsx as jsx282 } from "react/jsx-runtime";
|
|
12643
|
-
var SkipToContent =
|
|
12394
|
+
var SkipToContent = forwardRef90(
|
|
12644
12395
|
(props, ref) => {
|
|
12645
12396
|
const {
|
|
12646
12397
|
text = "Til hovedinnhold",
|
|
@@ -12668,7 +12419,7 @@ var SkipToContent = forwardRef89(
|
|
|
12668
12419
|
SkipToContent.displayName = "SkipToContent";
|
|
12669
12420
|
|
|
12670
12421
|
// src/components/SplitButton/SplitButton.tsx
|
|
12671
|
-
import { forwardRef as
|
|
12422
|
+
import { forwardRef as forwardRef91, useState as useState25 } from "react";
|
|
12672
12423
|
|
|
12673
12424
|
// src/components/SplitButton/SplitButton.module.css
|
|
12674
12425
|
var SplitButton_default = {
|
|
@@ -12680,7 +12431,7 @@ var SplitButton_default = {
|
|
|
12680
12431
|
|
|
12681
12432
|
// src/components/SplitButton/SplitButton.tsx
|
|
12682
12433
|
import { jsx as jsx283, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
12683
|
-
var SplitButton =
|
|
12434
|
+
var SplitButton = forwardRef91(
|
|
12684
12435
|
(props, ref) => {
|
|
12685
12436
|
const {
|
|
12686
12437
|
size: size2,
|
|
@@ -12731,7 +12482,7 @@ import {
|
|
|
12731
12482
|
Children as Children5,
|
|
12732
12483
|
Fragment as Fragment13,
|
|
12733
12484
|
cloneElement as cloneElement8,
|
|
12734
|
-
forwardRef as
|
|
12485
|
+
forwardRef as forwardRef99,
|
|
12735
12486
|
isValidElement as isValidElement9,
|
|
12736
12487
|
useEffect as useEffect28,
|
|
12737
12488
|
useState as useState27
|
|
@@ -12746,9 +12497,9 @@ var CollapsibleTableContext = createContext8({
|
|
|
12746
12497
|
var useCollapsibleTableContext = () => useContext11(CollapsibleTableContext);
|
|
12747
12498
|
|
|
12748
12499
|
// src/components/Table/normal/Body.tsx
|
|
12749
|
-
import { forwardRef as
|
|
12500
|
+
import { forwardRef as forwardRef92 } from "react";
|
|
12750
12501
|
import { jsx as jsx284 } from "react/jsx-runtime";
|
|
12751
|
-
var Body =
|
|
12502
|
+
var Body = forwardRef92(
|
|
12752
12503
|
(props, ref) => {
|
|
12753
12504
|
return /* @__PURE__ */ jsx284("tbody", { ref, ...props });
|
|
12754
12505
|
}
|
|
@@ -12757,17 +12508,17 @@ Body.displayName = "Table.Body";
|
|
|
12757
12508
|
|
|
12758
12509
|
// src/components/Table/normal/Cell.tsx
|
|
12759
12510
|
import {
|
|
12760
|
-
forwardRef as
|
|
12511
|
+
forwardRef as forwardRef94
|
|
12761
12512
|
} from "react";
|
|
12762
12513
|
|
|
12763
12514
|
// src/components/Table/normal/Head.tsx
|
|
12764
12515
|
import {
|
|
12765
12516
|
createContext as createContext9,
|
|
12766
|
-
forwardRef as
|
|
12517
|
+
forwardRef as forwardRef93,
|
|
12767
12518
|
useContext as useContext12
|
|
12768
12519
|
} from "react";
|
|
12769
12520
|
import { jsx as jsx285 } from "react/jsx-runtime";
|
|
12770
|
-
var Head =
|
|
12521
|
+
var Head = forwardRef93(
|
|
12771
12522
|
({ children, ...rest }, ref) => {
|
|
12772
12523
|
return /* @__PURE__ */ jsx285("thead", { ref, ...rest, children: /* @__PURE__ */ jsx285(HeadContext.Provider, { value: true, children }) });
|
|
12773
12524
|
}
|
|
@@ -12806,7 +12557,7 @@ var Table_default = {
|
|
|
12806
12557
|
|
|
12807
12558
|
// src/components/Table/normal/Cell.tsx
|
|
12808
12559
|
import { jsx as jsx286 } from "react/jsx-runtime";
|
|
12809
|
-
var Cell =
|
|
12560
|
+
var Cell = forwardRef94(
|
|
12810
12561
|
({
|
|
12811
12562
|
children,
|
|
12812
12563
|
type: _type,
|
|
@@ -12845,9 +12596,9 @@ var Cell = forwardRef93(
|
|
|
12845
12596
|
Cell.displayName = "Table.Cell";
|
|
12846
12597
|
|
|
12847
12598
|
// src/components/Table/normal/Foot.tsx
|
|
12848
|
-
import { forwardRef as
|
|
12599
|
+
import { forwardRef as forwardRef95 } from "react";
|
|
12849
12600
|
import { jsx as jsx287 } from "react/jsx-runtime";
|
|
12850
|
-
var Foot =
|
|
12601
|
+
var Foot = forwardRef95(
|
|
12851
12602
|
(props, ref) => {
|
|
12852
12603
|
return /* @__PURE__ */ jsx287("tfoot", { ref, ...props });
|
|
12853
12604
|
}
|
|
@@ -12855,9 +12606,9 @@ var Foot = forwardRef94(
|
|
|
12855
12606
|
Foot.displayName = "Table.Foot";
|
|
12856
12607
|
|
|
12857
12608
|
// src/components/Table/normal/Row.tsx
|
|
12858
|
-
import { forwardRef as
|
|
12609
|
+
import { forwardRef as forwardRef96 } from "react";
|
|
12859
12610
|
import { jsx as jsx288 } from "react/jsx-runtime";
|
|
12860
|
-
var Row =
|
|
12611
|
+
var Row = forwardRef96(
|
|
12861
12612
|
({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
|
|
12862
12613
|
const isInHeader = useIsInTableHead();
|
|
12863
12614
|
const type = _type != null ? _type : isInHeader ? "head" : "body";
|
|
@@ -12884,7 +12635,7 @@ var Row = forwardRef95(
|
|
|
12884
12635
|
Row.displayName = "Table.Row";
|
|
12885
12636
|
|
|
12886
12637
|
// src/components/Table/normal/SortCell.tsx
|
|
12887
|
-
import { forwardRef as
|
|
12638
|
+
import { forwardRef as forwardRef97 } from "react";
|
|
12888
12639
|
import { jsx as jsx289, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
12889
12640
|
var makeSortIcon = (isSorted, sortOrder) => {
|
|
12890
12641
|
if (!isSorted || !sortOrder) {
|
|
@@ -12892,7 +12643,7 @@ var makeSortIcon = (isSorted, sortOrder) => {
|
|
|
12892
12643
|
}
|
|
12893
12644
|
return sortOrder === "ascending" ? /* @__PURE__ */ jsx289(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx289(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
|
|
12894
12645
|
};
|
|
12895
|
-
var SortCell =
|
|
12646
|
+
var SortCell = forwardRef97(
|
|
12896
12647
|
({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx289(
|
|
12897
12648
|
Cell,
|
|
12898
12649
|
{
|
|
@@ -12924,7 +12675,7 @@ var SortCell = forwardRef96(
|
|
|
12924
12675
|
SortCell.displayName = "Table.SortCell";
|
|
12925
12676
|
|
|
12926
12677
|
// src/components/Table/normal/Table.tsx
|
|
12927
|
-
import { forwardRef as
|
|
12678
|
+
import { forwardRef as forwardRef98 } from "react";
|
|
12928
12679
|
import { jsx as jsx290 } from "react/jsx-runtime";
|
|
12929
12680
|
function getDensityCn2(value) {
|
|
12930
12681
|
switch (value) {
|
|
@@ -12935,7 +12686,7 @@ function getDensityCn2(value) {
|
|
|
12935
12686
|
return "extra-compact";
|
|
12936
12687
|
}
|
|
12937
12688
|
}
|
|
12938
|
-
var Table =
|
|
12689
|
+
var Table = forwardRef98(
|
|
12939
12690
|
({
|
|
12940
12691
|
density = "normal",
|
|
12941
12692
|
stickyHeader,
|
|
@@ -12965,7 +12716,7 @@ var Table = forwardRef97(
|
|
|
12965
12716
|
Table.displayName = "Table";
|
|
12966
12717
|
|
|
12967
12718
|
// src/components/Table/normal/TableWrapper.tsx
|
|
12968
|
-
import { useEffect as useEffect27, useRef as
|
|
12719
|
+
import { useEffect as useEffect27, useRef as useRef33, useState as useState26 } from "react";
|
|
12969
12720
|
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
12970
12721
|
var TableWrapper = ({ className, ...rest }) => {
|
|
12971
12722
|
const [overflowX, setOverflowX] = useState26(false);
|
|
@@ -12973,7 +12724,7 @@ var TableWrapper = ({ className, ...rest }) => {
|
|
|
12973
12724
|
function isOverflowingX(event) {
|
|
12974
12725
|
return event.offsetWidth < event.scrollWidth;
|
|
12975
12726
|
}
|
|
12976
|
-
const wrapperRef =
|
|
12727
|
+
const wrapperRef = useRef33(null);
|
|
12977
12728
|
useEffect27(() => {
|
|
12978
12729
|
if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
|
|
12979
12730
|
setOverflowX(true);
|
|
@@ -13016,7 +12767,7 @@ Table2.Foot = Foot;
|
|
|
13016
12767
|
|
|
13017
12768
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
13018
12769
|
import { Fragment as Fragment14, jsx as jsx292, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
13019
|
-
var CollapsibleRow =
|
|
12770
|
+
var CollapsibleRow = forwardRef99(
|
|
13020
12771
|
({
|
|
13021
12772
|
type: _type,
|
|
13022
12773
|
className,
|
|
@@ -13119,9 +12870,9 @@ var CollapsibleRow = forwardRef98(
|
|
|
13119
12870
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
13120
12871
|
|
|
13121
12872
|
// src/components/Table/collapsible/CollapsibleTable.tsx
|
|
13122
|
-
import { forwardRef as
|
|
12873
|
+
import { forwardRef as forwardRef100 } from "react";
|
|
13123
12874
|
import { jsx as jsx293 } from "react/jsx-runtime";
|
|
13124
|
-
var CollapsibleTable =
|
|
12875
|
+
var CollapsibleTable = forwardRef100((props, ref) => {
|
|
13125
12876
|
const {
|
|
13126
12877
|
isCollapsed,
|
|
13127
12878
|
headerValues,
|
|
@@ -13148,10 +12899,10 @@ CollapsibleTable2.Row = CollapsibleRow;
|
|
|
13148
12899
|
|
|
13149
12900
|
// src/components/Tabs/Tabs.tsx
|
|
13150
12901
|
import {
|
|
13151
|
-
forwardRef as
|
|
12902
|
+
forwardRef as forwardRef101,
|
|
13152
12903
|
useEffect as useEffect29,
|
|
13153
12904
|
useId as useId25,
|
|
13154
|
-
useRef as
|
|
12905
|
+
useRef as useRef34,
|
|
13155
12906
|
useState as useState28
|
|
13156
12907
|
} from "react";
|
|
13157
12908
|
|
|
@@ -13184,7 +12935,7 @@ var Tabs_default = {
|
|
|
13184
12935
|
|
|
13185
12936
|
// src/components/Tabs/Tabs.tsx
|
|
13186
12937
|
import { jsx as jsx294 } from "react/jsx-runtime";
|
|
13187
|
-
var Tabs =
|
|
12938
|
+
var Tabs = forwardRef101((props, ref) => {
|
|
13188
12939
|
const {
|
|
13189
12940
|
id,
|
|
13190
12941
|
activeTab,
|
|
@@ -13200,8 +12951,8 @@ var Tabs = forwardRef100((props, ref) => {
|
|
|
13200
12951
|
const uniqueId = id != null ? id : `${generatedId}-tabs`;
|
|
13201
12952
|
const [thisActiveTab, setActiveTab] = useState28(activeTab != null ? activeTab : 0);
|
|
13202
12953
|
const [hasTabFocus, setHasTabFocus] = useState28(false);
|
|
13203
|
-
const tabListRef =
|
|
13204
|
-
const tabPanelsRef =
|
|
12954
|
+
const tabListRef = useRef34(null);
|
|
12955
|
+
const tabPanelsRef = useRef34(null);
|
|
13205
12956
|
const handleTabChange = (index) => {
|
|
13206
12957
|
setActiveTab(index);
|
|
13207
12958
|
onChange && onChange(index);
|
|
@@ -13249,10 +13000,10 @@ Tabs.displayName = "Tabs";
|
|
|
13249
13000
|
|
|
13250
13001
|
// src/components/Tabs/Tab.tsx
|
|
13251
13002
|
import {
|
|
13252
|
-
forwardRef as
|
|
13003
|
+
forwardRef as forwardRef102,
|
|
13253
13004
|
useCallback as useCallback7,
|
|
13254
13005
|
useEffect as useEffect30,
|
|
13255
|
-
useRef as
|
|
13006
|
+
useRef as useRef35
|
|
13256
13007
|
} from "react";
|
|
13257
13008
|
|
|
13258
13009
|
// src/components/Tabs/TabWidthContext.tsx
|
|
@@ -13300,7 +13051,7 @@ function useSetTabWidth(index, width) {
|
|
|
13300
13051
|
|
|
13301
13052
|
// src/components/Tabs/Tab.tsx
|
|
13302
13053
|
import { jsx as jsx296, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
13303
|
-
var Tab =
|
|
13054
|
+
var Tab = forwardRef102((props, ref) => {
|
|
13304
13055
|
const {
|
|
13305
13056
|
active = false,
|
|
13306
13057
|
icon,
|
|
@@ -13317,7 +13068,7 @@ var Tab = forwardRef101((props, ref) => {
|
|
|
13317
13068
|
...rest
|
|
13318
13069
|
} = props;
|
|
13319
13070
|
useSetTabWidth(index, width);
|
|
13320
|
-
const itemRef =
|
|
13071
|
+
const itemRef = useRef35(null);
|
|
13321
13072
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
13322
13073
|
const { tabContentDirection } = useTabsContext();
|
|
13323
13074
|
useEffect30(() => {
|
|
@@ -13374,12 +13125,12 @@ Tab.displayName = "Tab";
|
|
|
13374
13125
|
import {
|
|
13375
13126
|
Children as Children6,
|
|
13376
13127
|
cloneElement as cloneElement9,
|
|
13377
|
-
forwardRef as
|
|
13128
|
+
forwardRef as forwardRef103,
|
|
13378
13129
|
isValidElement as isValidElement10,
|
|
13379
13130
|
useState as useState29
|
|
13380
13131
|
} from "react";
|
|
13381
13132
|
import { jsx as jsx297 } from "react/jsx-runtime";
|
|
13382
|
-
var TabList =
|
|
13133
|
+
var TabList = forwardRef103(
|
|
13383
13134
|
({ children, id, style, onFocus, ...rest }, ref) => {
|
|
13384
13135
|
const {
|
|
13385
13136
|
activeTab,
|
|
@@ -13448,9 +13199,9 @@ var TabList = forwardRef102(
|
|
|
13448
13199
|
TabList.displayName = "TabList";
|
|
13449
13200
|
|
|
13450
13201
|
// src/components/Tabs/TabPanel.tsx
|
|
13451
|
-
import { forwardRef as
|
|
13202
|
+
import { forwardRef as forwardRef104 } from "react";
|
|
13452
13203
|
import { jsx as jsx298 } from "react/jsx-runtime";
|
|
13453
|
-
var TabPanel =
|
|
13204
|
+
var TabPanel = forwardRef104(
|
|
13454
13205
|
({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
|
|
13455
13206
|
return /* @__PURE__ */ jsx298(
|
|
13456
13207
|
"div",
|
|
@@ -13476,11 +13227,11 @@ TabPanel.displayName = "TabPanel";
|
|
|
13476
13227
|
import {
|
|
13477
13228
|
Children as Children7,
|
|
13478
13229
|
cloneElement as cloneElement10,
|
|
13479
|
-
forwardRef as
|
|
13230
|
+
forwardRef as forwardRef105,
|
|
13480
13231
|
isValidElement as isValidElement11
|
|
13481
13232
|
} from "react";
|
|
13482
13233
|
import { jsx as jsx299 } from "react/jsx-runtime";
|
|
13483
|
-
var TabPanels =
|
|
13234
|
+
var TabPanels = forwardRef105(
|
|
13484
13235
|
({ children, ...rest }, ref) => {
|
|
13485
13236
|
const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
|
|
13486
13237
|
const combinedRef = useCombinedRef(ref, tabPanelsRef);
|
|
@@ -13499,7 +13250,7 @@ var TabPanels = forwardRef104(
|
|
|
13499
13250
|
TabPanels.displayName = "TabPanels";
|
|
13500
13251
|
|
|
13501
13252
|
// src/components/Tag/Tag.tsx
|
|
13502
|
-
import { forwardRef as
|
|
13253
|
+
import { forwardRef as forwardRef106 } from "react";
|
|
13503
13254
|
|
|
13504
13255
|
// src/components/Tag/Tag.module.css
|
|
13505
13256
|
var Tag_default = {
|
|
@@ -13526,7 +13277,7 @@ var icons3 = {
|
|
|
13526
13277
|
success: CheckCircledIcon,
|
|
13527
13278
|
default: void 0
|
|
13528
13279
|
};
|
|
13529
|
-
var Tag =
|
|
13280
|
+
var Tag = forwardRef106((props, ref) => {
|
|
13530
13281
|
const {
|
|
13531
13282
|
text,
|
|
13532
13283
|
purpose = "default",
|
|
@@ -13567,10 +13318,10 @@ Tag.displayName = "Tag";
|
|
|
13567
13318
|
// src/components/TextInput/TextInput.tsx
|
|
13568
13319
|
import { ddsTokens as ddsTokens17 } from "@norges-domstoler/dds-design-tokens";
|
|
13569
13320
|
import {
|
|
13570
|
-
forwardRef as
|
|
13321
|
+
forwardRef as forwardRef107,
|
|
13571
13322
|
useId as useId26,
|
|
13572
13323
|
useLayoutEffect as useLayoutEffect4,
|
|
13573
|
-
useRef as
|
|
13324
|
+
useRef as useRef36,
|
|
13574
13325
|
useState as useState30
|
|
13575
13326
|
} from "react";
|
|
13576
13327
|
|
|
@@ -13579,7 +13330,6 @@ var TextInput_default = {
|
|
|
13579
13330
|
container: "TextInput_container",
|
|
13580
13331
|
"container--readonly": "TextInput_container--readonly",
|
|
13581
13332
|
"container--disabled": "TextInput_container--disabled",
|
|
13582
|
-
"container--tiny": "TextInput_container--tiny",
|
|
13583
13333
|
"affix-container": "TextInput_affix-container",
|
|
13584
13334
|
"input-width": "TextInput_input-width",
|
|
13585
13335
|
input: "TextInput_input",
|
|
@@ -13600,7 +13350,7 @@ var TextInput_default = {
|
|
|
13600
13350
|
|
|
13601
13351
|
// src/components/TextInput/TextInput.tsx
|
|
13602
13352
|
import { jsx as jsx301, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
13603
|
-
var TextInput =
|
|
13353
|
+
var TextInput = forwardRef107(
|
|
13604
13354
|
({
|
|
13605
13355
|
label,
|
|
13606
13356
|
disabled,
|
|
@@ -13629,8 +13379,8 @@ var TextInput = forwardRef106(
|
|
|
13629
13379
|
const [text, setText] = useState30(
|
|
13630
13380
|
getDefaultText(value, defaultValue)
|
|
13631
13381
|
);
|
|
13632
|
-
const prefixRef =
|
|
13633
|
-
const suffixRef =
|
|
13382
|
+
const prefixRef = useRef36(null);
|
|
13383
|
+
const suffixRef = useRef36(null);
|
|
13634
13384
|
const [prefixLength, setPrefixLength] = useState30(0);
|
|
13635
13385
|
const [suffixLength, setSuffixLength] = useState30(0);
|
|
13636
13386
|
useLayoutEffect4(() => {
|
|
@@ -13910,7 +13660,7 @@ ToggleBar.displayName = "ToggleBar";
|
|
|
13910
13660
|
|
|
13911
13661
|
// src/components/ToggleBar/ToggleRadio.tsx
|
|
13912
13662
|
import {
|
|
13913
|
-
forwardRef as
|
|
13663
|
+
forwardRef as forwardRef108,
|
|
13914
13664
|
useId as useId28
|
|
13915
13665
|
} from "react";
|
|
13916
13666
|
import { jsx as jsx303, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
@@ -13930,7 +13680,7 @@ var calculateChecked = (value, group, checked) => {
|
|
|
13930
13680
|
}
|
|
13931
13681
|
return !!value;
|
|
13932
13682
|
};
|
|
13933
|
-
var ToggleRadio =
|
|
13683
|
+
var ToggleRadio = forwardRef108(
|
|
13934
13684
|
(props, ref) => {
|
|
13935
13685
|
const {
|
|
13936
13686
|
value,
|
|
@@ -14000,7 +13750,7 @@ var ToggleRadio = forwardRef107(
|
|
|
14000
13750
|
ToggleRadio.displayName = "ToggleRadio";
|
|
14001
13751
|
|
|
14002
13752
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
14003
|
-
import { forwardRef as
|
|
13753
|
+
import { forwardRef as forwardRef109, useId as useId29 } from "react";
|
|
14004
13754
|
|
|
14005
13755
|
// src/components/ToggleButton/ToggleButton.module.css
|
|
14006
13756
|
var ToggleButton_default = {
|
|
@@ -14015,7 +13765,7 @@ var ToggleButton_default = {
|
|
|
14015
13765
|
|
|
14016
13766
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
14017
13767
|
import { jsx as jsx304, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
14018
|
-
var ToggleButton =
|
|
13768
|
+
var ToggleButton = forwardRef109(
|
|
14019
13769
|
({ id, label, icon, className, htmlProps, ...rest }, ref) => {
|
|
14020
13770
|
const generatedId = useId29();
|
|
14021
13771
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|