@norges-domstoler/dds-components 17.5.1 → 17.5.3
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 +2 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +4 -8
- package/dist/index.d.ts +4 -8
- package/dist/index.js +596 -571
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +335 -308
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
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,9 +9232,10 @@ 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
|
|
|
@@ -9237,7 +9251,7 @@ var Modal_default = {
|
|
|
9237
9251
|
|
|
9238
9252
|
// src/components/Modal/Modal.tsx
|
|
9239
9253
|
import { jsx as jsx259, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
9240
|
-
var Modal =
|
|
9254
|
+
var Modal = forwardRef72((props, ref) => {
|
|
9241
9255
|
const {
|
|
9242
9256
|
isOpen = false,
|
|
9243
9257
|
parentElement = document.body,
|
|
@@ -9271,55 +9285,68 @@ var Modal = forwardRef71((props, ref) => {
|
|
|
9271
9285
|
}
|
|
9272
9286
|
return () => handleElementWithBackdropUnmount(document.body);
|
|
9273
9287
|
}, [isOpen]);
|
|
9274
|
-
|
|
9288
|
+
const backdropRef = useRef28(null);
|
|
9289
|
+
const onBackdropClick = (event) => {
|
|
9290
|
+
if (event.target === backdropRef.current && isOpen) {
|
|
9291
|
+
handleClose();
|
|
9292
|
+
}
|
|
9293
|
+
};
|
|
9275
9294
|
useOnKeyDown(["Escape", "Esc"], () => handleClose());
|
|
9276
9295
|
const hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
9277
9296
|
return isOpen || hasTransitionedIn ? createPortal2(
|
|
9278
|
-
/* @__PURE__ */ jsx259(
|
|
9279
|
-
|
|
9297
|
+
/* @__PURE__ */ jsx259(
|
|
9298
|
+
Backdrop,
|
|
9280
9299
|
{
|
|
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
|
-
|
|
9300
|
+
isMounted: isOpen && hasTransitionedIn,
|
|
9301
|
+
ref: backdropRef,
|
|
9302
|
+
onClick: onBackdropClick,
|
|
9303
|
+
children: /* @__PURE__ */ jsxs57(
|
|
9304
|
+
Paper,
|
|
9305
|
+
{
|
|
9306
|
+
...getBaseHTMLProps(
|
|
9307
|
+
id,
|
|
9308
|
+
cn(className, Modal_default.container, focusable),
|
|
9309
|
+
htmlProps,
|
|
9310
|
+
rest
|
|
9311
|
+
),
|
|
9312
|
+
ref: combinedRef,
|
|
9313
|
+
role: "dialog",
|
|
9314
|
+
"aria-modal": true,
|
|
9315
|
+
"aria-hidden": !isOpen,
|
|
9316
|
+
tabIndex: -1,
|
|
9317
|
+
"aria-labelledby": headerId,
|
|
9318
|
+
id: modalId,
|
|
9319
|
+
elevation: 4,
|
|
9320
|
+
children: [
|
|
9321
|
+
/* @__PURE__ */ jsxs57("div", { className: Modal_default.content, children: [
|
|
9322
|
+
!!header && /* @__PURE__ */ jsx259("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx259(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
|
|
9323
|
+
children
|
|
9324
|
+
] }),
|
|
9325
|
+
onClose && /* @__PURE__ */ jsx259(
|
|
9326
|
+
Button,
|
|
9327
|
+
{
|
|
9328
|
+
size: "small",
|
|
9329
|
+
purpose: "tertiary",
|
|
9330
|
+
icon: CloseIcon,
|
|
9331
|
+
onClick: handleClose,
|
|
9332
|
+
"aria-label": "Lukk dialog",
|
|
9333
|
+
className: Modal_default["close-button"]
|
|
9334
|
+
}
|
|
9335
|
+
)
|
|
9336
|
+
]
|
|
9337
|
+
}
|
|
9338
|
+
)
|
|
9312
9339
|
}
|
|
9313
|
-
)
|
|
9340
|
+
),
|
|
9314
9341
|
parentElement
|
|
9315
9342
|
) : null;
|
|
9316
9343
|
});
|
|
9317
9344
|
Modal.displayName = "Modal";
|
|
9318
9345
|
|
|
9319
9346
|
// src/components/Modal/ModalBody.tsx
|
|
9320
|
-
import { forwardRef as
|
|
9347
|
+
import { forwardRef as forwardRef73 } from "react";
|
|
9321
9348
|
import { jsx as jsx260 } from "react/jsx-runtime";
|
|
9322
|
-
var ModalBody =
|
|
9349
|
+
var ModalBody = forwardRef73(
|
|
9323
9350
|
(props, ref) => {
|
|
9324
9351
|
const { children, id, className, scrollable, htmlProps, height, ...rest } = props;
|
|
9325
9352
|
return /* @__PURE__ */ jsx260(
|
|
@@ -9346,9 +9373,9 @@ var ModalBody = forwardRef72(
|
|
|
9346
9373
|
ModalBody.displayName = "ModalBody";
|
|
9347
9374
|
|
|
9348
9375
|
// src/components/Modal/ModalActions.tsx
|
|
9349
|
-
import { forwardRef as
|
|
9376
|
+
import { forwardRef as forwardRef74 } from "react";
|
|
9350
9377
|
import { jsx as jsx261 } from "react/jsx-runtime";
|
|
9351
|
-
var ModalActions =
|
|
9378
|
+
var ModalActions = forwardRef74(
|
|
9352
9379
|
({ className, ...rest }, ref) => {
|
|
9353
9380
|
return /* @__PURE__ */ jsx261("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
|
|
9354
9381
|
}
|
|
@@ -9356,7 +9383,7 @@ var ModalActions = forwardRef73(
|
|
|
9356
9383
|
ModalActions.displayName = "ModalActions";
|
|
9357
9384
|
|
|
9358
9385
|
// src/components/Pagination/Pagination.tsx
|
|
9359
|
-
import { forwardRef as
|
|
9386
|
+
import { forwardRef as forwardRef77, useState as useState18 } from "react";
|
|
9360
9387
|
|
|
9361
9388
|
// src/components/Pagination/Pagination.module.css
|
|
9362
9389
|
var Pagination_default = {
|
|
@@ -9419,7 +9446,7 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
9419
9446
|
}
|
|
9420
9447
|
|
|
9421
9448
|
// src/components/Select/Select.tsx
|
|
9422
|
-
import { forwardRef as
|
|
9449
|
+
import { forwardRef as forwardRef75, useId as useId15 } from "react";
|
|
9423
9450
|
import {
|
|
9424
9451
|
default as ReactSelect
|
|
9425
9452
|
} from "react-select";
|
|
@@ -9920,11 +9947,11 @@ function SelectInner(props, ref) {
|
|
|
9920
9947
|
}
|
|
9921
9948
|
);
|
|
9922
9949
|
}
|
|
9923
|
-
var Select =
|
|
9950
|
+
var Select = forwardRef75(SelectInner);
|
|
9924
9951
|
Select.displayName = "Select";
|
|
9925
9952
|
|
|
9926
9953
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9927
|
-
import { forwardRef as
|
|
9954
|
+
import { forwardRef as forwardRef76, useId as useId16 } from "react";
|
|
9928
9955
|
|
|
9929
9956
|
// src/components/Select/NativeSelect/NativeSelect.module.css
|
|
9930
9957
|
var NativeSelect_default = {
|
|
@@ -9940,7 +9967,7 @@ var NativeSelect_default = {
|
|
|
9940
9967
|
|
|
9941
9968
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9942
9969
|
import { jsx as jsx264, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
9943
|
-
var NativeSelect =
|
|
9970
|
+
var NativeSelect = forwardRef76(
|
|
9944
9971
|
(props, ref) => {
|
|
9945
9972
|
const {
|
|
9946
9973
|
id,
|
|
@@ -10034,7 +10061,7 @@ var NativeSelect = forwardRef75(
|
|
|
10034
10061
|
] });
|
|
10035
10062
|
}
|
|
10036
10063
|
);
|
|
10037
|
-
var NativeSelectPlaceholder =
|
|
10064
|
+
var NativeSelectPlaceholder = forwardRef76((props, ref) => {
|
|
10038
10065
|
const { children = "-- Velg fra listen --", value, ...rest } = props;
|
|
10039
10066
|
return /* @__PURE__ */ jsx264("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
|
|
10040
10067
|
});
|
|
@@ -10045,7 +10072,7 @@ var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2
|
|
|
10045
10072
|
|
|
10046
10073
|
// src/components/Pagination/Pagination.tsx
|
|
10047
10074
|
import { Fragment as Fragment8, jsx as jsx265, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
10048
|
-
var Pagination =
|
|
10075
|
+
var Pagination = forwardRef77(
|
|
10049
10076
|
(props, ref) => {
|
|
10050
10077
|
const {
|
|
10051
10078
|
itemsAmount,
|
|
@@ -10304,11 +10331,11 @@ Pagination.displayName = "Pagination";
|
|
|
10304
10331
|
// src/components/PhoneInput/PhoneInput.tsx
|
|
10305
10332
|
import { ddsTokens as ddsTokens15 } from "@norges-domstoler/dds-design-tokens";
|
|
10306
10333
|
import {
|
|
10307
|
-
forwardRef as
|
|
10334
|
+
forwardRef as forwardRef78,
|
|
10308
10335
|
useEffect as useEffect23,
|
|
10309
10336
|
useId as useId17,
|
|
10310
10337
|
useLayoutEffect as useLayoutEffect2,
|
|
10311
|
-
useRef as
|
|
10338
|
+
useRef as useRef29,
|
|
10312
10339
|
useState as useState19
|
|
10313
10340
|
} from "react";
|
|
10314
10341
|
|
|
@@ -11035,7 +11062,7 @@ var countryOptions = [
|
|
|
11035
11062
|
...prioritizedCountryOptions,
|
|
11036
11063
|
...sortedCountryOptions
|
|
11037
11064
|
];
|
|
11038
|
-
var PhoneInput =
|
|
11065
|
+
var PhoneInput = forwardRef78(
|
|
11039
11066
|
({
|
|
11040
11067
|
label,
|
|
11041
11068
|
readOnly,
|
|
@@ -11079,7 +11106,7 @@ var PhoneInput = forwardRef77(
|
|
|
11079
11106
|
);
|
|
11080
11107
|
const isControlled = value !== void 0;
|
|
11081
11108
|
const [callingCodeWidth, setCallingCodeWidth] = useState19(0);
|
|
11082
|
-
const callingCodeRef =
|
|
11109
|
+
const callingCodeRef = useRef29(null);
|
|
11083
11110
|
useLayoutEffect2(() => {
|
|
11084
11111
|
if (callingCodeRef.current) {
|
|
11085
11112
|
setCallingCodeWidth(callingCodeRef.current.offsetWidth);
|
|
@@ -11090,7 +11117,7 @@ var PhoneInput = forwardRef77(
|
|
|
11090
11117
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11091
11118
|
["--dds-phone-input-width"]: width ? width : componentSize === "tiny" ? "131px" : "194px"
|
|
11092
11119
|
};
|
|
11093
|
-
const internalSelectRef =
|
|
11120
|
+
const internalSelectRef = useRef29(null);
|
|
11094
11121
|
const combinedSelectRef = useCombinedRef(selectRef, internalSelectRef);
|
|
11095
11122
|
const displayedValue = isControlled ? value : internalValue;
|
|
11096
11123
|
useEffect23(() => {
|
|
@@ -11236,7 +11263,7 @@ var getCallingCode = (s2) => {
|
|
|
11236
11263
|
|
|
11237
11264
|
// src/components/Popover/Popover.tsx
|
|
11238
11265
|
import { ddsTokens as ddsTokens16 } from "@norges-domstoler/dds-design-tokens";
|
|
11239
|
-
import { forwardRef as
|
|
11266
|
+
import { forwardRef as forwardRef79 } from "react";
|
|
11240
11267
|
|
|
11241
11268
|
// src/components/Popover/Popover.module.css
|
|
11242
11269
|
var Popover_default = {
|
|
@@ -11248,7 +11275,7 @@ var Popover_default = {
|
|
|
11248
11275
|
|
|
11249
11276
|
// src/components/Popover/Popover.tsx
|
|
11250
11277
|
import { jsx as jsx267, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
11251
|
-
var Popover =
|
|
11278
|
+
var Popover = forwardRef79(
|
|
11252
11279
|
(props, ref) => {
|
|
11253
11280
|
const {
|
|
11254
11281
|
title,
|
|
@@ -11342,7 +11369,7 @@ import {
|
|
|
11342
11369
|
cloneElement as cloneElement6,
|
|
11343
11370
|
isValidElement as isValidElement7,
|
|
11344
11371
|
useId as useId18,
|
|
11345
|
-
useRef as
|
|
11372
|
+
useRef as useRef30,
|
|
11346
11373
|
useState as useState20
|
|
11347
11374
|
} from "react";
|
|
11348
11375
|
import { Fragment as Fragment9, jsx as jsx268 } from "react/jsx-runtime";
|
|
@@ -11364,8 +11391,8 @@ var PopoverGroup = ({
|
|
|
11364
11391
|
setOpen(!open);
|
|
11365
11392
|
onTriggerClick && onTriggerClick();
|
|
11366
11393
|
};
|
|
11367
|
-
const buttonRef =
|
|
11368
|
-
const popoverRef =
|
|
11394
|
+
const buttonRef = useRef30(null);
|
|
11395
|
+
const popoverRef = useRef30(null);
|
|
11369
11396
|
useOnKeyDown(["Esc", "Escape"], () => {
|
|
11370
11397
|
var _a;
|
|
11371
11398
|
if (open) {
|
|
@@ -11400,7 +11427,7 @@ import {
|
|
|
11400
11427
|
Children as Children4,
|
|
11401
11428
|
Fragment as Fragment11,
|
|
11402
11429
|
cloneElement as cloneElement7,
|
|
11403
|
-
forwardRef as
|
|
11430
|
+
forwardRef as forwardRef80,
|
|
11404
11431
|
isValidElement as isValidElement8,
|
|
11405
11432
|
useEffect as useEffect24,
|
|
11406
11433
|
useMemo as useMemo3,
|
|
@@ -11548,7 +11575,7 @@ ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
|
11548
11575
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
11549
11576
|
import { jsx as jsx270, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
11550
11577
|
var ProgressTracker = (() => {
|
|
11551
|
-
const Res =
|
|
11578
|
+
const Res = forwardRef80((props, ref) => {
|
|
11552
11579
|
const {
|
|
11553
11580
|
id,
|
|
11554
11581
|
activeStep = 0,
|
|
@@ -11616,7 +11643,7 @@ var intersperseItemsWithConnector = (children) => Children4.map(children, (child
|
|
|
11616
11643
|
});
|
|
11617
11644
|
|
|
11618
11645
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11619
|
-
import { forwardRef as
|
|
11646
|
+
import { forwardRef as forwardRef81, useId as useId19 } from "react";
|
|
11620
11647
|
|
|
11621
11648
|
// src/components/ProgressBar/ProgressBar.module.css
|
|
11622
11649
|
var ProgressBar_default = {
|
|
@@ -11633,7 +11660,7 @@ var ProgressBar_default = {
|
|
|
11633
11660
|
|
|
11634
11661
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
11635
11662
|
import { jsx as jsx271, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
11636
|
-
var ProgressBar =
|
|
11663
|
+
var ProgressBar = forwardRef81(
|
|
11637
11664
|
(props, ref) => {
|
|
11638
11665
|
const {
|
|
11639
11666
|
label,
|
|
@@ -11713,7 +11740,7 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
11713
11740
|
|
|
11714
11741
|
// src/components/Search/Search.tsx
|
|
11715
11742
|
import {
|
|
11716
|
-
forwardRef as
|
|
11743
|
+
forwardRef as forwardRef84,
|
|
11717
11744
|
useId as useId20,
|
|
11718
11745
|
useState as useState22
|
|
11719
11746
|
} from "react";
|
|
@@ -11775,18 +11802,18 @@ function createEmptyChangeEvent(inputElementId) {
|
|
|
11775
11802
|
}
|
|
11776
11803
|
|
|
11777
11804
|
// src/components/Search/SearchSuggestions.tsx
|
|
11778
|
-
import { forwardRef as
|
|
11805
|
+
import { forwardRef as forwardRef83 } from "react";
|
|
11779
11806
|
|
|
11780
11807
|
// src/components/Search/SearchSuggestionItem.tsx
|
|
11781
11808
|
import {
|
|
11782
|
-
forwardRef as
|
|
11809
|
+
forwardRef as forwardRef82,
|
|
11783
11810
|
useEffect as useEffect25,
|
|
11784
|
-
useRef as
|
|
11811
|
+
useRef as useRef31
|
|
11785
11812
|
} from "react";
|
|
11786
11813
|
import { jsx as jsx272 } from "react/jsx-runtime";
|
|
11787
|
-
var SearchSuggestionItem =
|
|
11814
|
+
var SearchSuggestionItem = forwardRef82((props, ref) => {
|
|
11788
11815
|
const { focus, className, ...rest } = props;
|
|
11789
|
-
const itemRef =
|
|
11816
|
+
const itemRef = useRef31(null);
|
|
11790
11817
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
11791
11818
|
useEffect25(() => {
|
|
11792
11819
|
var _a;
|
|
@@ -11814,7 +11841,7 @@ SearchSuggestionItem.displayName = "SearchSuggestionItem";
|
|
|
11814
11841
|
|
|
11815
11842
|
// src/components/Search/SearchSuggestions.tsx
|
|
11816
11843
|
import { jsx as jsx273, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
11817
|
-
var SearchSuggestions =
|
|
11844
|
+
var SearchSuggestions = forwardRef83((props, ref) => {
|
|
11818
11845
|
const {
|
|
11819
11846
|
id,
|
|
11820
11847
|
searchId,
|
|
@@ -11904,7 +11931,7 @@ var getIconSize = (size2) => {
|
|
|
11904
11931
|
return "small";
|
|
11905
11932
|
}
|
|
11906
11933
|
};
|
|
11907
|
-
var Search =
|
|
11934
|
+
var Search = forwardRef84(
|
|
11908
11935
|
({
|
|
11909
11936
|
componentSize = "medium",
|
|
11910
11937
|
buttonProps,
|
|
@@ -12048,7 +12075,7 @@ Search.displayName = "Search";
|
|
|
12048
12075
|
// src/components/Search/SearchAutocompleteWrapper.tsx
|
|
12049
12076
|
import {
|
|
12050
12077
|
useEffect as useEffect26,
|
|
12051
|
-
useRef as
|
|
12078
|
+
useRef as useRef32,
|
|
12052
12079
|
useState as useState23
|
|
12053
12080
|
} from "react";
|
|
12054
12081
|
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
@@ -12112,8 +12139,8 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
12112
12139
|
const handleSetInputValue = (value2) => {
|
|
12113
12140
|
setInputValue(value2 != null ? value2 : "");
|
|
12114
12141
|
};
|
|
12115
|
-
const inputRef =
|
|
12116
|
-
const suggestionsRef =
|
|
12142
|
+
const inputRef = useRef32(null);
|
|
12143
|
+
const suggestionsRef = useRef32(null);
|
|
12117
12144
|
useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
|
|
12118
12145
|
closeSuggestions();
|
|
12119
12146
|
});
|
|
@@ -12137,7 +12164,7 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
|
|
|
12137
12164
|
Search2.Suggestions = SearchSuggestions;
|
|
12138
12165
|
|
|
12139
12166
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
12140
|
-
import { forwardRef as
|
|
12167
|
+
import { forwardRef as forwardRef86, useId as useId21 } from "react";
|
|
12141
12168
|
|
|
12142
12169
|
// src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
|
|
12143
12170
|
import { createContext as createContext6, useContext as useContext9 } from "react";
|
|
@@ -12148,7 +12175,7 @@ var useCheckboxGroup = () => {
|
|
|
12148
12175
|
|
|
12149
12176
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
12150
12177
|
import {
|
|
12151
|
-
forwardRef as
|
|
12178
|
+
forwardRef as forwardRef85
|
|
12152
12179
|
} from "react";
|
|
12153
12180
|
|
|
12154
12181
|
// src/components/SelectionControl/SelectionControl.module.css
|
|
@@ -12170,7 +12197,7 @@ var SelectionControl_default = {
|
|
|
12170
12197
|
|
|
12171
12198
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
12172
12199
|
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
12173
|
-
var SelectionControl =
|
|
12200
|
+
var SelectionControl = forwardRef85((props, ref) => {
|
|
12174
12201
|
const { controlType, className, ...rest } = props;
|
|
12175
12202
|
return /* @__PURE__ */ jsx276(
|
|
12176
12203
|
"span",
|
|
@@ -12185,7 +12212,7 @@ var SelectionControl = forwardRef84((props, ref) => {
|
|
|
12185
12212
|
}
|
|
12186
12213
|
);
|
|
12187
12214
|
});
|
|
12188
|
-
var Label2 =
|
|
12215
|
+
var Label2 = forwardRef85(
|
|
12189
12216
|
(props, ref) => {
|
|
12190
12217
|
const {
|
|
12191
12218
|
disabled,
|
|
@@ -12228,7 +12255,7 @@ var selectionControlTypographyProps = {
|
|
|
12228
12255
|
|
|
12229
12256
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
12230
12257
|
import { jsx as jsx277, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
12231
|
-
var Checkbox =
|
|
12258
|
+
var Checkbox = forwardRef86(
|
|
12232
12259
|
(props, ref) => {
|
|
12233
12260
|
const {
|
|
12234
12261
|
id,
|
|
@@ -12390,7 +12417,7 @@ var CheckboxGroup = (props) => {
|
|
|
12390
12417
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
12391
12418
|
|
|
12392
12419
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
12393
|
-
import { forwardRef as
|
|
12420
|
+
import { forwardRef as forwardRef87, useId as useId23 } from "react";
|
|
12394
12421
|
|
|
12395
12422
|
// src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
|
|
12396
12423
|
import { createContext as createContext7, useContext as useContext10 } from "react";
|
|
@@ -12410,7 +12437,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group) => {
|
|
|
12410
12437
|
}
|
|
12411
12438
|
return !!value;
|
|
12412
12439
|
};
|
|
12413
|
-
var RadioButton =
|
|
12440
|
+
var RadioButton = forwardRef87(
|
|
12414
12441
|
(props, ref) => {
|
|
12415
12442
|
const {
|
|
12416
12443
|
id,
|
|
@@ -12504,7 +12531,7 @@ RadioButton.displayName = "RadioButton";
|
|
|
12504
12531
|
|
|
12505
12532
|
// src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
|
|
12506
12533
|
import {
|
|
12507
|
-
forwardRef as
|
|
12534
|
+
forwardRef as forwardRef88,
|
|
12508
12535
|
useId as useId24,
|
|
12509
12536
|
useState as useState24
|
|
12510
12537
|
} from "react";
|
|
@@ -12593,11 +12620,11 @@ var RadioButtonGroupInner = (props, ref) => {
|
|
|
12593
12620
|
}
|
|
12594
12621
|
);
|
|
12595
12622
|
};
|
|
12596
|
-
var RadioButtonGroup =
|
|
12623
|
+
var RadioButtonGroup = forwardRef88(RadioButtonGroupInner);
|
|
12597
12624
|
RadioButtonGroup.displayName = "RadioButtonGroup";
|
|
12598
12625
|
|
|
12599
12626
|
// src/components/Skeleton/Skeleton.tsx
|
|
12600
|
-
import { forwardRef as
|
|
12627
|
+
import { forwardRef as forwardRef89 } from "react";
|
|
12601
12628
|
|
|
12602
12629
|
// src/components/Skeleton/Skeleton.module.css
|
|
12603
12630
|
var Skeleton_default = {
|
|
@@ -12607,7 +12634,7 @@ var Skeleton_default = {
|
|
|
12607
12634
|
|
|
12608
12635
|
// src/components/Skeleton/Skeleton.tsx
|
|
12609
12636
|
import { jsx as jsx281 } from "react/jsx-runtime";
|
|
12610
|
-
var Skeleton =
|
|
12637
|
+
var Skeleton = forwardRef89(
|
|
12611
12638
|
(props, ref) => {
|
|
12612
12639
|
const {
|
|
12613
12640
|
width,
|
|
@@ -12631,7 +12658,7 @@ var Skeleton = forwardRef88(
|
|
|
12631
12658
|
Skeleton.displayName = "Skeleton";
|
|
12632
12659
|
|
|
12633
12660
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
12634
|
-
import { forwardRef as
|
|
12661
|
+
import { forwardRef as forwardRef90 } from "react";
|
|
12635
12662
|
|
|
12636
12663
|
// src/components/SkipToContent/SkipToContent.module.css
|
|
12637
12664
|
var SkipToContent_default = {
|
|
@@ -12640,7 +12667,7 @@ var SkipToContent_default = {
|
|
|
12640
12667
|
|
|
12641
12668
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
12642
12669
|
import { jsx as jsx282 } from "react/jsx-runtime";
|
|
12643
|
-
var SkipToContent =
|
|
12670
|
+
var SkipToContent = forwardRef90(
|
|
12644
12671
|
(props, ref) => {
|
|
12645
12672
|
const {
|
|
12646
12673
|
text = "Til hovedinnhold",
|
|
@@ -12668,7 +12695,7 @@ var SkipToContent = forwardRef89(
|
|
|
12668
12695
|
SkipToContent.displayName = "SkipToContent";
|
|
12669
12696
|
|
|
12670
12697
|
// src/components/SplitButton/SplitButton.tsx
|
|
12671
|
-
import { forwardRef as
|
|
12698
|
+
import { forwardRef as forwardRef91, useState as useState25 } from "react";
|
|
12672
12699
|
|
|
12673
12700
|
// src/components/SplitButton/SplitButton.module.css
|
|
12674
12701
|
var SplitButton_default = {
|
|
@@ -12680,7 +12707,7 @@ var SplitButton_default = {
|
|
|
12680
12707
|
|
|
12681
12708
|
// src/components/SplitButton/SplitButton.tsx
|
|
12682
12709
|
import { jsx as jsx283, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
12683
|
-
var SplitButton =
|
|
12710
|
+
var SplitButton = forwardRef91(
|
|
12684
12711
|
(props, ref) => {
|
|
12685
12712
|
const {
|
|
12686
12713
|
size: size2,
|
|
@@ -12731,7 +12758,7 @@ import {
|
|
|
12731
12758
|
Children as Children5,
|
|
12732
12759
|
Fragment as Fragment13,
|
|
12733
12760
|
cloneElement as cloneElement8,
|
|
12734
|
-
forwardRef as
|
|
12761
|
+
forwardRef as forwardRef99,
|
|
12735
12762
|
isValidElement as isValidElement9,
|
|
12736
12763
|
useEffect as useEffect28,
|
|
12737
12764
|
useState as useState27
|
|
@@ -12746,9 +12773,9 @@ var CollapsibleTableContext = createContext8({
|
|
|
12746
12773
|
var useCollapsibleTableContext = () => useContext11(CollapsibleTableContext);
|
|
12747
12774
|
|
|
12748
12775
|
// src/components/Table/normal/Body.tsx
|
|
12749
|
-
import { forwardRef as
|
|
12776
|
+
import { forwardRef as forwardRef92 } from "react";
|
|
12750
12777
|
import { jsx as jsx284 } from "react/jsx-runtime";
|
|
12751
|
-
var Body =
|
|
12778
|
+
var Body = forwardRef92(
|
|
12752
12779
|
(props, ref) => {
|
|
12753
12780
|
return /* @__PURE__ */ jsx284("tbody", { ref, ...props });
|
|
12754
12781
|
}
|
|
@@ -12757,17 +12784,17 @@ Body.displayName = "Table.Body";
|
|
|
12757
12784
|
|
|
12758
12785
|
// src/components/Table/normal/Cell.tsx
|
|
12759
12786
|
import {
|
|
12760
|
-
forwardRef as
|
|
12787
|
+
forwardRef as forwardRef94
|
|
12761
12788
|
} from "react";
|
|
12762
12789
|
|
|
12763
12790
|
// src/components/Table/normal/Head.tsx
|
|
12764
12791
|
import {
|
|
12765
12792
|
createContext as createContext9,
|
|
12766
|
-
forwardRef as
|
|
12793
|
+
forwardRef as forwardRef93,
|
|
12767
12794
|
useContext as useContext12
|
|
12768
12795
|
} from "react";
|
|
12769
12796
|
import { jsx as jsx285 } from "react/jsx-runtime";
|
|
12770
|
-
var Head =
|
|
12797
|
+
var Head = forwardRef93(
|
|
12771
12798
|
({ children, ...rest }, ref) => {
|
|
12772
12799
|
return /* @__PURE__ */ jsx285("thead", { ref, ...rest, children: /* @__PURE__ */ jsx285(HeadContext.Provider, { value: true, children }) });
|
|
12773
12800
|
}
|
|
@@ -12806,7 +12833,7 @@ var Table_default = {
|
|
|
12806
12833
|
|
|
12807
12834
|
// src/components/Table/normal/Cell.tsx
|
|
12808
12835
|
import { jsx as jsx286 } from "react/jsx-runtime";
|
|
12809
|
-
var Cell =
|
|
12836
|
+
var Cell = forwardRef94(
|
|
12810
12837
|
({
|
|
12811
12838
|
children,
|
|
12812
12839
|
type: _type,
|
|
@@ -12845,9 +12872,9 @@ var Cell = forwardRef93(
|
|
|
12845
12872
|
Cell.displayName = "Table.Cell";
|
|
12846
12873
|
|
|
12847
12874
|
// src/components/Table/normal/Foot.tsx
|
|
12848
|
-
import { forwardRef as
|
|
12875
|
+
import { forwardRef as forwardRef95 } from "react";
|
|
12849
12876
|
import { jsx as jsx287 } from "react/jsx-runtime";
|
|
12850
|
-
var Foot =
|
|
12877
|
+
var Foot = forwardRef95(
|
|
12851
12878
|
(props, ref) => {
|
|
12852
12879
|
return /* @__PURE__ */ jsx287("tfoot", { ref, ...props });
|
|
12853
12880
|
}
|
|
@@ -12855,9 +12882,9 @@ var Foot = forwardRef94(
|
|
|
12855
12882
|
Foot.displayName = "Table.Foot";
|
|
12856
12883
|
|
|
12857
12884
|
// src/components/Table/normal/Row.tsx
|
|
12858
|
-
import { forwardRef as
|
|
12885
|
+
import { forwardRef as forwardRef96 } from "react";
|
|
12859
12886
|
import { jsx as jsx288 } from "react/jsx-runtime";
|
|
12860
|
-
var Row =
|
|
12887
|
+
var Row = forwardRef96(
|
|
12861
12888
|
({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
|
|
12862
12889
|
const isInHeader = useIsInTableHead();
|
|
12863
12890
|
const type = _type != null ? _type : isInHeader ? "head" : "body";
|
|
@@ -12884,7 +12911,7 @@ var Row = forwardRef95(
|
|
|
12884
12911
|
Row.displayName = "Table.Row";
|
|
12885
12912
|
|
|
12886
12913
|
// src/components/Table/normal/SortCell.tsx
|
|
12887
|
-
import { forwardRef as
|
|
12914
|
+
import { forwardRef as forwardRef97 } from "react";
|
|
12888
12915
|
import { jsx as jsx289, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
12889
12916
|
var makeSortIcon = (isSorted, sortOrder) => {
|
|
12890
12917
|
if (!isSorted || !sortOrder) {
|
|
@@ -12892,7 +12919,7 @@ var makeSortIcon = (isSorted, sortOrder) => {
|
|
|
12892
12919
|
}
|
|
12893
12920
|
return sortOrder === "ascending" ? /* @__PURE__ */ jsx289(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx289(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
|
|
12894
12921
|
};
|
|
12895
|
-
var SortCell =
|
|
12922
|
+
var SortCell = forwardRef97(
|
|
12896
12923
|
({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx289(
|
|
12897
12924
|
Cell,
|
|
12898
12925
|
{
|
|
@@ -12924,7 +12951,7 @@ var SortCell = forwardRef96(
|
|
|
12924
12951
|
SortCell.displayName = "Table.SortCell";
|
|
12925
12952
|
|
|
12926
12953
|
// src/components/Table/normal/Table.tsx
|
|
12927
|
-
import { forwardRef as
|
|
12954
|
+
import { forwardRef as forwardRef98 } from "react";
|
|
12928
12955
|
import { jsx as jsx290 } from "react/jsx-runtime";
|
|
12929
12956
|
function getDensityCn2(value) {
|
|
12930
12957
|
switch (value) {
|
|
@@ -12935,7 +12962,7 @@ function getDensityCn2(value) {
|
|
|
12935
12962
|
return "extra-compact";
|
|
12936
12963
|
}
|
|
12937
12964
|
}
|
|
12938
|
-
var Table =
|
|
12965
|
+
var Table = forwardRef98(
|
|
12939
12966
|
({
|
|
12940
12967
|
density = "normal",
|
|
12941
12968
|
stickyHeader,
|
|
@@ -12965,7 +12992,7 @@ var Table = forwardRef97(
|
|
|
12965
12992
|
Table.displayName = "Table";
|
|
12966
12993
|
|
|
12967
12994
|
// src/components/Table/normal/TableWrapper.tsx
|
|
12968
|
-
import { useEffect as useEffect27, useRef as
|
|
12995
|
+
import { useEffect as useEffect27, useRef as useRef33, useState as useState26 } from "react";
|
|
12969
12996
|
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
12970
12997
|
var TableWrapper = ({ className, ...rest }) => {
|
|
12971
12998
|
const [overflowX, setOverflowX] = useState26(false);
|
|
@@ -12973,7 +13000,7 @@ var TableWrapper = ({ className, ...rest }) => {
|
|
|
12973
13000
|
function isOverflowingX(event) {
|
|
12974
13001
|
return event.offsetWidth < event.scrollWidth;
|
|
12975
13002
|
}
|
|
12976
|
-
const wrapperRef =
|
|
13003
|
+
const wrapperRef = useRef33(null);
|
|
12977
13004
|
useEffect27(() => {
|
|
12978
13005
|
if ((wrapperRef == null ? void 0 : wrapperRef.current) && isOverflowingX(wrapperRef.current)) {
|
|
12979
13006
|
setOverflowX(true);
|
|
@@ -13016,7 +13043,7 @@ Table2.Foot = Foot;
|
|
|
13016
13043
|
|
|
13017
13044
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
13018
13045
|
import { Fragment as Fragment14, jsx as jsx292, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
13019
|
-
var CollapsibleRow =
|
|
13046
|
+
var CollapsibleRow = forwardRef99(
|
|
13020
13047
|
({
|
|
13021
13048
|
type: _type,
|
|
13022
13049
|
className,
|
|
@@ -13119,9 +13146,9 @@ var CollapsibleRow = forwardRef98(
|
|
|
13119
13146
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
13120
13147
|
|
|
13121
13148
|
// src/components/Table/collapsible/CollapsibleTable.tsx
|
|
13122
|
-
import { forwardRef as
|
|
13149
|
+
import { forwardRef as forwardRef100 } from "react";
|
|
13123
13150
|
import { jsx as jsx293 } from "react/jsx-runtime";
|
|
13124
|
-
var CollapsibleTable =
|
|
13151
|
+
var CollapsibleTable = forwardRef100((props, ref) => {
|
|
13125
13152
|
const {
|
|
13126
13153
|
isCollapsed,
|
|
13127
13154
|
headerValues,
|
|
@@ -13148,10 +13175,10 @@ CollapsibleTable2.Row = CollapsibleRow;
|
|
|
13148
13175
|
|
|
13149
13176
|
// src/components/Tabs/Tabs.tsx
|
|
13150
13177
|
import {
|
|
13151
|
-
forwardRef as
|
|
13178
|
+
forwardRef as forwardRef101,
|
|
13152
13179
|
useEffect as useEffect29,
|
|
13153
13180
|
useId as useId25,
|
|
13154
|
-
useRef as
|
|
13181
|
+
useRef as useRef34,
|
|
13155
13182
|
useState as useState28
|
|
13156
13183
|
} from "react";
|
|
13157
13184
|
|
|
@@ -13184,7 +13211,7 @@ var Tabs_default = {
|
|
|
13184
13211
|
|
|
13185
13212
|
// src/components/Tabs/Tabs.tsx
|
|
13186
13213
|
import { jsx as jsx294 } from "react/jsx-runtime";
|
|
13187
|
-
var Tabs =
|
|
13214
|
+
var Tabs = forwardRef101((props, ref) => {
|
|
13188
13215
|
const {
|
|
13189
13216
|
id,
|
|
13190
13217
|
activeTab,
|
|
@@ -13200,8 +13227,8 @@ var Tabs = forwardRef100((props, ref) => {
|
|
|
13200
13227
|
const uniqueId = id != null ? id : `${generatedId}-tabs`;
|
|
13201
13228
|
const [thisActiveTab, setActiveTab] = useState28(activeTab != null ? activeTab : 0);
|
|
13202
13229
|
const [hasTabFocus, setHasTabFocus] = useState28(false);
|
|
13203
|
-
const tabListRef =
|
|
13204
|
-
const tabPanelsRef =
|
|
13230
|
+
const tabListRef = useRef34(null);
|
|
13231
|
+
const tabPanelsRef = useRef34(null);
|
|
13205
13232
|
const handleTabChange = (index) => {
|
|
13206
13233
|
setActiveTab(index);
|
|
13207
13234
|
onChange && onChange(index);
|
|
@@ -13249,10 +13276,10 @@ Tabs.displayName = "Tabs";
|
|
|
13249
13276
|
|
|
13250
13277
|
// src/components/Tabs/Tab.tsx
|
|
13251
13278
|
import {
|
|
13252
|
-
forwardRef as
|
|
13279
|
+
forwardRef as forwardRef102,
|
|
13253
13280
|
useCallback as useCallback7,
|
|
13254
13281
|
useEffect as useEffect30,
|
|
13255
|
-
useRef as
|
|
13282
|
+
useRef as useRef35
|
|
13256
13283
|
} from "react";
|
|
13257
13284
|
|
|
13258
13285
|
// src/components/Tabs/TabWidthContext.tsx
|
|
@@ -13300,7 +13327,7 @@ function useSetTabWidth(index, width) {
|
|
|
13300
13327
|
|
|
13301
13328
|
// src/components/Tabs/Tab.tsx
|
|
13302
13329
|
import { jsx as jsx296, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
13303
|
-
var Tab =
|
|
13330
|
+
var Tab = forwardRef102((props, ref) => {
|
|
13304
13331
|
const {
|
|
13305
13332
|
active = false,
|
|
13306
13333
|
icon,
|
|
@@ -13317,7 +13344,7 @@ var Tab = forwardRef101((props, ref) => {
|
|
|
13317
13344
|
...rest
|
|
13318
13345
|
} = props;
|
|
13319
13346
|
useSetTabWidth(index, width);
|
|
13320
|
-
const itemRef =
|
|
13347
|
+
const itemRef = useRef35(null);
|
|
13321
13348
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
13322
13349
|
const { tabContentDirection } = useTabsContext();
|
|
13323
13350
|
useEffect30(() => {
|
|
@@ -13374,12 +13401,12 @@ Tab.displayName = "Tab";
|
|
|
13374
13401
|
import {
|
|
13375
13402
|
Children as Children6,
|
|
13376
13403
|
cloneElement as cloneElement9,
|
|
13377
|
-
forwardRef as
|
|
13404
|
+
forwardRef as forwardRef103,
|
|
13378
13405
|
isValidElement as isValidElement10,
|
|
13379
13406
|
useState as useState29
|
|
13380
13407
|
} from "react";
|
|
13381
13408
|
import { jsx as jsx297 } from "react/jsx-runtime";
|
|
13382
|
-
var TabList =
|
|
13409
|
+
var TabList = forwardRef103(
|
|
13383
13410
|
({ children, id, style, onFocus, ...rest }, ref) => {
|
|
13384
13411
|
const {
|
|
13385
13412
|
activeTab,
|
|
@@ -13448,9 +13475,9 @@ var TabList = forwardRef102(
|
|
|
13448
13475
|
TabList.displayName = "TabList";
|
|
13449
13476
|
|
|
13450
13477
|
// src/components/Tabs/TabPanel.tsx
|
|
13451
|
-
import { forwardRef as
|
|
13478
|
+
import { forwardRef as forwardRef104 } from "react";
|
|
13452
13479
|
import { jsx as jsx298 } from "react/jsx-runtime";
|
|
13453
|
-
var TabPanel =
|
|
13480
|
+
var TabPanel = forwardRef104(
|
|
13454
13481
|
({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
|
|
13455
13482
|
return /* @__PURE__ */ jsx298(
|
|
13456
13483
|
"div",
|
|
@@ -13476,11 +13503,11 @@ TabPanel.displayName = "TabPanel";
|
|
|
13476
13503
|
import {
|
|
13477
13504
|
Children as Children7,
|
|
13478
13505
|
cloneElement as cloneElement10,
|
|
13479
|
-
forwardRef as
|
|
13506
|
+
forwardRef as forwardRef105,
|
|
13480
13507
|
isValidElement as isValidElement11
|
|
13481
13508
|
} from "react";
|
|
13482
13509
|
import { jsx as jsx299 } from "react/jsx-runtime";
|
|
13483
|
-
var TabPanels =
|
|
13510
|
+
var TabPanels = forwardRef105(
|
|
13484
13511
|
({ children, ...rest }, ref) => {
|
|
13485
13512
|
const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
|
|
13486
13513
|
const combinedRef = useCombinedRef(ref, tabPanelsRef);
|
|
@@ -13499,7 +13526,7 @@ var TabPanels = forwardRef104(
|
|
|
13499
13526
|
TabPanels.displayName = "TabPanels";
|
|
13500
13527
|
|
|
13501
13528
|
// src/components/Tag/Tag.tsx
|
|
13502
|
-
import { forwardRef as
|
|
13529
|
+
import { forwardRef as forwardRef106 } from "react";
|
|
13503
13530
|
|
|
13504
13531
|
// src/components/Tag/Tag.module.css
|
|
13505
13532
|
var Tag_default = {
|
|
@@ -13526,7 +13553,7 @@ var icons3 = {
|
|
|
13526
13553
|
success: CheckCircledIcon,
|
|
13527
13554
|
default: void 0
|
|
13528
13555
|
};
|
|
13529
|
-
var Tag =
|
|
13556
|
+
var Tag = forwardRef106((props, ref) => {
|
|
13530
13557
|
const {
|
|
13531
13558
|
text,
|
|
13532
13559
|
purpose = "default",
|
|
@@ -13567,10 +13594,10 @@ Tag.displayName = "Tag";
|
|
|
13567
13594
|
// src/components/TextInput/TextInput.tsx
|
|
13568
13595
|
import { ddsTokens as ddsTokens17 } from "@norges-domstoler/dds-design-tokens";
|
|
13569
13596
|
import {
|
|
13570
|
-
forwardRef as
|
|
13597
|
+
forwardRef as forwardRef107,
|
|
13571
13598
|
useId as useId26,
|
|
13572
13599
|
useLayoutEffect as useLayoutEffect4,
|
|
13573
|
-
useRef as
|
|
13600
|
+
useRef as useRef36,
|
|
13574
13601
|
useState as useState30
|
|
13575
13602
|
} from "react";
|
|
13576
13603
|
|
|
@@ -13600,7 +13627,7 @@ var TextInput_default = {
|
|
|
13600
13627
|
|
|
13601
13628
|
// src/components/TextInput/TextInput.tsx
|
|
13602
13629
|
import { jsx as jsx301, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
13603
|
-
var TextInput =
|
|
13630
|
+
var TextInput = forwardRef107(
|
|
13604
13631
|
({
|
|
13605
13632
|
label,
|
|
13606
13633
|
disabled,
|
|
@@ -13629,8 +13656,8 @@ var TextInput = forwardRef106(
|
|
|
13629
13656
|
const [text, setText] = useState30(
|
|
13630
13657
|
getDefaultText(value, defaultValue)
|
|
13631
13658
|
);
|
|
13632
|
-
const prefixRef =
|
|
13633
|
-
const suffixRef =
|
|
13659
|
+
const prefixRef = useRef36(null);
|
|
13660
|
+
const suffixRef = useRef36(null);
|
|
13634
13661
|
const [prefixLength, setPrefixLength] = useState30(0);
|
|
13635
13662
|
const [suffixLength, setSuffixLength] = useState30(0);
|
|
13636
13663
|
useLayoutEffect4(() => {
|
|
@@ -13910,7 +13937,7 @@ ToggleBar.displayName = "ToggleBar";
|
|
|
13910
13937
|
|
|
13911
13938
|
// src/components/ToggleBar/ToggleRadio.tsx
|
|
13912
13939
|
import {
|
|
13913
|
-
forwardRef as
|
|
13940
|
+
forwardRef as forwardRef108,
|
|
13914
13941
|
useId as useId28
|
|
13915
13942
|
} from "react";
|
|
13916
13943
|
import { jsx as jsx303, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
@@ -13930,7 +13957,7 @@ var calculateChecked = (value, group, checked) => {
|
|
|
13930
13957
|
}
|
|
13931
13958
|
return !!value;
|
|
13932
13959
|
};
|
|
13933
|
-
var ToggleRadio =
|
|
13960
|
+
var ToggleRadio = forwardRef108(
|
|
13934
13961
|
(props, ref) => {
|
|
13935
13962
|
const {
|
|
13936
13963
|
value,
|
|
@@ -14000,7 +14027,7 @@ var ToggleRadio = forwardRef107(
|
|
|
14000
14027
|
ToggleRadio.displayName = "ToggleRadio";
|
|
14001
14028
|
|
|
14002
14029
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
14003
|
-
import { forwardRef as
|
|
14030
|
+
import { forwardRef as forwardRef109, useId as useId29 } from "react";
|
|
14004
14031
|
|
|
14005
14032
|
// src/components/ToggleButton/ToggleButton.module.css
|
|
14006
14033
|
var ToggleButton_default = {
|
|
@@ -14015,7 +14042,7 @@ var ToggleButton_default = {
|
|
|
14015
14042
|
|
|
14016
14043
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
14017
14044
|
import { jsx as jsx304, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
14018
|
-
var ToggleButton =
|
|
14045
|
+
var ToggleButton = forwardRef109(
|
|
14019
14046
|
({ id, label, icon, className, htmlProps, ...rest }, ref) => {
|
|
14020
14047
|
const generatedId = useId29();
|
|
14021
14048
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|