@norges-domstoler/dds-components 0.0.0-dev-20240307131621 → 0.0.0-dev-20240307142535
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +198 -204
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2367,11 +2367,6 @@ import styled7, { css as css5 } from "styled-components";
|
|
|
2367
2367
|
// src/components/Typography/Typography/Typography.styles.ts
|
|
2368
2368
|
import { ddsBaseTokens as ddsBaseTokens14 } from "@norges-domstoler/dds-design-tokens";
|
|
2369
2369
|
import { css as css4 } from "styled-components";
|
|
2370
|
-
|
|
2371
|
-
// src/components/Typography/Typography/openExternal.svg
|
|
2372
|
-
var openExternal_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<path d="M19 19H5V5H12V3H5C4.46957 3 3.96086 3.21071 3.58579 3.58579C3.21071 3.96086 3 4.46957 3 5V19C3 19.5304 3.21071 20.0391 3.58579 20.4142C3.96086 20.7893 4.46957 21 5 21H19C20.1 21 21 20.1 21 19V12H19V19ZM14 3V5H17.59L7.76 14.83L9.17 16.24L19 6.41V10H21V3H14Z" fill="%230B0D0E"/>%0A</svg>%0A';
|
|
2373
|
-
|
|
2374
|
-
// src/components/Typography/Typography/Typography.styles.ts
|
|
2375
2370
|
var { border: border4, colors: colors7 } = ddsBaseTokens14;
|
|
2376
2371
|
var focusVisibleLink = {
|
|
2377
2372
|
outline: "none",
|
|
@@ -2426,18 +2421,11 @@ var getAnchorStyling = (external, interactionStyling, typographyType7, withMargi
|
|
|
2426
2421
|
transition: ${focusVisibleLinkTransitionValue};
|
|
2427
2422
|
}
|
|
2428
2423
|
${external && css4`
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
background-color: currentColor;
|
|
2435
|
-
width: 1em;
|
|
2436
|
-
height: 1em;
|
|
2437
|
-
content: '';
|
|
2438
|
-
position: absolute;
|
|
2439
|
-
margin-top: ${typographyTokens.typographyType.a.icon.marginTop};
|
|
2440
|
-
margin-left: ${typographyTokens.typographyType.a.icon.marginLeft};
|
|
2424
|
+
& > svg {
|
|
2425
|
+
display: inline;
|
|
2426
|
+
margin: 0.1em 0.1em -0.1em;
|
|
2427
|
+
transform: translateY(0.05em);
|
|
2428
|
+
vertical-align: baseline;
|
|
2441
2429
|
}
|
|
2442
2430
|
`}
|
|
2443
2431
|
&:hover {
|
|
@@ -2457,7 +2445,7 @@ var getAnchorStyling = (external, interactionStyling, typographyType7, withMargi
|
|
|
2457
2445
|
`;
|
|
2458
2446
|
|
|
2459
2447
|
// src/components/Typography/Typography/Typography.tsx
|
|
2460
|
-
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
2448
|
+
import { jsx as jsx159, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2461
2449
|
var StyledTypography = styled7.p.withConfig({
|
|
2462
2450
|
shouldForwardProp: (prop) => {
|
|
2463
2451
|
const styleOnlyProps = [
|
|
@@ -2537,13 +2525,16 @@ var Typography = forwardRef(
|
|
|
2537
2525
|
target: targetProp,
|
|
2538
2526
|
externalLink: externalLinkProp
|
|
2539
2527
|
};
|
|
2540
|
-
return /* @__PURE__ */
|
|
2528
|
+
return /* @__PURE__ */ jsxs15(StyledTypography, { ref, ...typographyProps, children: [
|
|
2529
|
+
children,
|
|
2530
|
+
externalLinkProp && /* @__PURE__ */ jsx159(Icon, { icon: OpenExternalIcon, iconSize: "inherit" })
|
|
2531
|
+
] });
|
|
2541
2532
|
}
|
|
2542
2533
|
);
|
|
2543
2534
|
Typography.displayName = "Typography";
|
|
2544
2535
|
|
|
2545
2536
|
// src/components/InputMessage/InputMessage.tsx
|
|
2546
|
-
import { jsx as jsx160, jsxs as
|
|
2537
|
+
import { jsx as jsx160, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2547
2538
|
var InputMessageWrapper = styled8.div.withConfig({
|
|
2548
2539
|
shouldForwardProp: (prop) => prop !== "messageType"
|
|
2549
2540
|
})`
|
|
@@ -2570,7 +2561,7 @@ var InputMessage = forwardRef2(
|
|
|
2570
2561
|
messageType
|
|
2571
2562
|
};
|
|
2572
2563
|
const isError = messageType === "error";
|
|
2573
|
-
return /* @__PURE__ */
|
|
2564
|
+
return /* @__PURE__ */ jsxs16(InputMessageWrapper, { ...wrapperProps, children: [
|
|
2574
2565
|
isError && /* @__PURE__ */ jsx160(Icon, { icon: ErrorIcon, iconSize: "inherit" }),
|
|
2575
2566
|
/* @__PURE__ */ jsx160(
|
|
2576
2567
|
Typography,
|
|
@@ -2588,8 +2579,8 @@ var InputMessage = forwardRef2(
|
|
|
2588
2579
|
InputMessage.displayName = "InputMessage";
|
|
2589
2580
|
|
|
2590
2581
|
// src/utils/renderInputMessage.tsx
|
|
2591
|
-
import { Fragment, jsx as jsx161, jsxs as
|
|
2592
|
-
var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */
|
|
2582
|
+
import { Fragment, jsx as jsx161, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2583
|
+
var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */ jsxs17(Fragment, { children: [
|
|
2593
2584
|
errorMessage && errorMessageId && /* @__PURE__ */ jsx161(
|
|
2594
2585
|
InputMessage,
|
|
2595
2586
|
{
|
|
@@ -2966,7 +2957,7 @@ import styled21 from "styled-components";
|
|
|
2966
2957
|
|
|
2967
2958
|
// src/components/AppShell/Navigation/NavigationItem.tsx
|
|
2968
2959
|
import styled9 from "styled-components";
|
|
2969
|
-
import { jsx as jsx163, jsxs as
|
|
2960
|
+
import { jsx as jsx163, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
2970
2961
|
var { navigation: navTokens } = appShellTokens;
|
|
2971
2962
|
var navItemTokens = navTokens.navigationItems.item;
|
|
2972
2963
|
var IconContainer = styled9.div`
|
|
@@ -3044,12 +3035,12 @@ var NavigationItem = ({
|
|
|
3044
3035
|
setOpen(false);
|
|
3045
3036
|
};
|
|
3046
3037
|
if (external) {
|
|
3047
|
-
return /* @__PURE__ */
|
|
3038
|
+
return /* @__PURE__ */ jsxs18(ExternalNavItem, { as: Comp, ...rest, onClick, children: [
|
|
3048
3039
|
children,
|
|
3049
3040
|
/* @__PURE__ */ jsx163(Icon, { icon: OpenExternalIcon, iconSize: "inherit" })
|
|
3050
3041
|
] });
|
|
3051
3042
|
}
|
|
3052
|
-
return /* @__PURE__ */
|
|
3043
|
+
return /* @__PURE__ */ jsxs18(
|
|
3053
3044
|
InternalNavItem,
|
|
3054
3045
|
{
|
|
3055
3046
|
as: Comp,
|
|
@@ -3553,10 +3544,10 @@ Heading.displayName = "Heading";
|
|
|
3553
3544
|
|
|
3554
3545
|
// src/components/Typography/Label/Label.tsx
|
|
3555
3546
|
import { forwardRef as forwardRef5 } from "react";
|
|
3556
|
-
import { jsx as jsx167, jsxs as
|
|
3547
|
+
import { jsx as jsx167, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3557
3548
|
var Label = forwardRef5((props, ref) => {
|
|
3558
3549
|
const { showRequiredStyling, id, className, htmlProps, children, ...rest } = props;
|
|
3559
|
-
return /* @__PURE__ */
|
|
3550
|
+
return /* @__PURE__ */ jsxs19(
|
|
3560
3551
|
Typography,
|
|
3561
3552
|
{
|
|
3562
3553
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -3595,7 +3586,7 @@ Legend.displayName = "Legend";
|
|
|
3595
3586
|
// src/components/Typography/Link/Link.tsx
|
|
3596
3587
|
import { forwardRef as forwardRef7 } from "react";
|
|
3597
3588
|
import styled12 from "styled-components";
|
|
3598
|
-
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
3589
|
+
import { jsx as jsx169, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3599
3590
|
var StyledLink = styled12.a`
|
|
3600
3591
|
${({ $external, $typographyType, $withMargins }) => getAnchorStyling($external, void 0, $typographyType, $withMargins)}
|
|
3601
3592
|
`;
|
|
@@ -3610,7 +3601,7 @@ var Link = forwardRef7((props, ref) => {
|
|
|
3610
3601
|
target,
|
|
3611
3602
|
...rest
|
|
3612
3603
|
} = props;
|
|
3613
|
-
return /* @__PURE__ */
|
|
3604
|
+
return /* @__PURE__ */ jsxs20(
|
|
3614
3605
|
StyledLink,
|
|
3615
3606
|
{
|
|
3616
3607
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -3620,7 +3611,10 @@ var Link = forwardRef7((props, ref) => {
|
|
|
3620
3611
|
ref,
|
|
3621
3612
|
rel: "noopener noreferer",
|
|
3622
3613
|
target: external ? "_blank" : target,
|
|
3623
|
-
children
|
|
3614
|
+
children: [
|
|
3615
|
+
children,
|
|
3616
|
+
external && /* @__PURE__ */ jsx169(Icon, { iconSize: "inherit", icon: OpenExternalIcon })
|
|
3617
|
+
]
|
|
3624
3618
|
}
|
|
3625
3619
|
);
|
|
3626
3620
|
});
|
|
@@ -3821,7 +3815,7 @@ var Label2 = styled13.span.withConfig({
|
|
|
3821
3815
|
import { ddsBaseTokens as ddsBaseTokens18 } from "@norges-domstoler/dds-design-tokens";
|
|
3822
3816
|
import { useId, useRef as useRef4 } from "react";
|
|
3823
3817
|
import styled14 from "styled-components";
|
|
3824
|
-
import { jsx as jsx171, jsxs as
|
|
3818
|
+
import { jsx as jsx171, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3825
3819
|
var StyledSpinner = styled14.svg`
|
|
3826
3820
|
display: block;
|
|
3827
3821
|
width: ${({ $size }) => $size};
|
|
@@ -3884,7 +3878,7 @@ function Spinner(props) {
|
|
|
3884
3878
|
$outerAnimationDelay: outerAnimationDelay,
|
|
3885
3879
|
$size: size2
|
|
3886
3880
|
};
|
|
3887
|
-
return /* @__PURE__ */
|
|
3881
|
+
return /* @__PURE__ */ jsxs21(
|
|
3888
3882
|
StyledSpinner,
|
|
3889
3883
|
{
|
|
3890
3884
|
viewBox: "0 0 50 50",
|
|
@@ -3912,7 +3906,7 @@ function Spinner(props) {
|
|
|
3912
3906
|
Spinner.displayName = "Spinner";
|
|
3913
3907
|
|
|
3914
3908
|
// src/components/Button/Button.tsx
|
|
3915
|
-
import { Fragment as Fragment2, jsx as jsx172, jsxs as
|
|
3909
|
+
import { Fragment as Fragment2, jsx as jsx172, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
3916
3910
|
var {
|
|
3917
3911
|
button: { sizes: sizes3, appearances: appearances3 }
|
|
3918
3912
|
} = buttonTokens;
|
|
@@ -3975,8 +3969,8 @@ var Button = forwardRef9(
|
|
|
3975
3969
|
children: /* @__PURE__ */ jsx172(Icon, { icon: icon11, iconSize: "inherit" })
|
|
3976
3970
|
}
|
|
3977
3971
|
);
|
|
3978
|
-
return /* @__PURE__ */
|
|
3979
|
-
!isIconButton && /* @__PURE__ */
|
|
3972
|
+
return /* @__PURE__ */ jsxs22(ButtonWrapper, { ...wrapperProps, "aria-disabled": loading, children: [
|
|
3973
|
+
!isIconButton && /* @__PURE__ */ jsxs22(Fragment2, { children: [
|
|
3980
3974
|
iconPosition === "left" && iconElement,
|
|
3981
3975
|
/* @__PURE__ */ jsx172(Label2, { isHidden: loading, "aria-hidden": loading, children: children != null ? children : label3 }),
|
|
3982
3976
|
iconPosition === "right" && iconElement
|
|
@@ -4058,7 +4052,7 @@ import {
|
|
|
4058
4052
|
useRef as useRef5
|
|
4059
4053
|
} from "react";
|
|
4060
4054
|
import styled15, { css as css8 } from "styled-components";
|
|
4061
|
-
import { jsx as jsx173, jsxs as
|
|
4055
|
+
import { jsx as jsx173, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4062
4056
|
var { element: element2, link: link2 } = overflowMenuTokens;
|
|
4063
4057
|
var elementBaseCSS = css8`
|
|
4064
4058
|
display: flex;
|
|
@@ -4127,13 +4121,13 @@ var OverflowMenuItem = forwardRef10((props, ref) => {
|
|
|
4127
4121
|
};
|
|
4128
4122
|
const iconElement = icon11 && /* @__PURE__ */ jsx173(Icon, { iconSize: "inherit", icon: icon11 });
|
|
4129
4123
|
if (!href && !onClick) {
|
|
4130
|
-
return /* @__PURE__ */
|
|
4124
|
+
return /* @__PURE__ */ jsxs23(Span, { ...{ ...getBaseHTMLProps(id, className, htmlProps, rest), ref }, children: [
|
|
4131
4125
|
/* @__PURE__ */ jsx173(IconWrapper, { children: iconElement }),
|
|
4132
4126
|
title3
|
|
4133
4127
|
] });
|
|
4134
4128
|
}
|
|
4135
4129
|
if (!href) {
|
|
4136
|
-
return /* @__PURE__ */
|
|
4130
|
+
return /* @__PURE__ */ jsxs23(
|
|
4137
4131
|
Link2,
|
|
4138
4132
|
{
|
|
4139
4133
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -4147,7 +4141,7 @@ var OverflowMenuItem = forwardRef10((props, ref) => {
|
|
|
4147
4141
|
}
|
|
4148
4142
|
);
|
|
4149
4143
|
}
|
|
4150
|
-
return /* @__PURE__ */
|
|
4144
|
+
return /* @__PURE__ */ jsxs23(
|
|
4151
4145
|
Link2,
|
|
4152
4146
|
{
|
|
4153
4147
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -4253,7 +4247,7 @@ var scrollbarTokens = {
|
|
|
4253
4247
|
};
|
|
4254
4248
|
|
|
4255
4249
|
// src/components/ScrollableContainer/Scrollbar.tsx
|
|
4256
|
-
import { jsx as jsx175, jsxs as
|
|
4250
|
+
import { jsx as jsx175, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4257
4251
|
var { track: track2, thumb: thumb2, minThumbHeightPx } = scrollbarTokens;
|
|
4258
4252
|
var ScrollbarOuterWrapper = styled17.div``;
|
|
4259
4253
|
var ScrollbarElements = styled17.div`
|
|
@@ -4393,7 +4387,7 @@ var Scrollbar = (props) => {
|
|
|
4393
4387
|
ScrollbarOuterWrapper,
|
|
4394
4388
|
{
|
|
4395
4389
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
4396
|
-
children: /* @__PURE__ */
|
|
4390
|
+
children: /* @__PURE__ */ jsxs24(ScrollbarElements, { children: [
|
|
4397
4391
|
/* @__PURE__ */ jsx175(Track, { ref: trackRef, onClick: handleTrackClick }),
|
|
4398
4392
|
/* @__PURE__ */ jsx175(
|
|
4399
4393
|
Thumb,
|
|
@@ -4415,7 +4409,7 @@ Scrollbar.displayName = "Scrollbar";
|
|
|
4415
4409
|
// src/components/ScrollableContainer/ScrollableContainer.tsx
|
|
4416
4410
|
import { useRef as useRef7 } from "react";
|
|
4417
4411
|
import styled18 from "styled-components";
|
|
4418
|
-
import { jsx as jsx176, jsxs as
|
|
4412
|
+
import { jsx as jsx176, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4419
4413
|
var { track: track3, content: content2, outerContainer: outerContainer2 } = scrollbarTokens;
|
|
4420
4414
|
var StyledScrollableContainer = styled18.div`
|
|
4421
4415
|
grid-template: auto / 1fr ${track3.width};
|
|
@@ -4451,7 +4445,7 @@ var ScrollableContainer = (props) => {
|
|
|
4451
4445
|
...rest
|
|
4452
4446
|
} = props;
|
|
4453
4447
|
const ref = useRef7(null);
|
|
4454
|
-
return /* @__PURE__ */
|
|
4448
|
+
return /* @__PURE__ */ jsxs25(
|
|
4455
4449
|
StyledScrollableContainer,
|
|
4456
4450
|
{
|
|
4457
4451
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -4496,7 +4490,7 @@ var scrollbarStyling = {
|
|
|
4496
4490
|
};
|
|
4497
4491
|
|
|
4498
4492
|
// src/components/OverflowMenu/OverflowMenu.tsx
|
|
4499
|
-
import { Fragment as Fragment3, jsx as jsx177, jsxs as
|
|
4493
|
+
import { Fragment as Fragment3, jsx as jsx177, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4500
4494
|
var { container: container2, divider: divider3 } = overflowMenuTokens;
|
|
4501
4495
|
var Container = styled19.div`
|
|
4502
4496
|
box-sizing: border-box;
|
|
@@ -4607,7 +4601,7 @@ var OverflowMenu = forwardRef12(
|
|
|
4607
4601
|
const navItemsFirstPos = hasNavItems ? userPropsPos + 1 : -1;
|
|
4608
4602
|
const navItemsLastPos = hasNavItems ? userPropsPos + navItems.length : -1;
|
|
4609
4603
|
const contextItemsFirstPos = !hasContextItems ? -1 : hasNavItems ? navItemsLastPos + 1 : userPropsPos + 1;
|
|
4610
|
-
return /* @__PURE__ */
|
|
4604
|
+
return /* @__PURE__ */ jsxs26(Fragment3, { children: [
|
|
4611
4605
|
hasInteractiveUser && /* @__PURE__ */ jsx177(OverflowMenuList, { children: interactiveItemsList == null ? void 0 : interactiveItemsList[0] }),
|
|
4612
4606
|
hasNavItems && /* @__PURE__ */ jsx177("nav", { children: /* @__PURE__ */ jsx177(OverflowMenuList, { children: interactiveItemsList == null ? void 0 : interactiveItemsList.slice(
|
|
4613
4607
|
navItemsFirstPos,
|
|
@@ -4632,7 +4626,7 @@ var OverflowMenu = forwardRef12(
|
|
|
4632
4626
|
"aria-hidden": !isOpen,
|
|
4633
4627
|
role: "menu"
|
|
4634
4628
|
};
|
|
4635
|
-
return /* @__PURE__ */
|
|
4629
|
+
return /* @__PURE__ */ jsxs26(Container, { ...containerProps, "aria-label": "bruk piltaster for \xE5 navigere", children: [
|
|
4636
4630
|
hasStaticUser && /* @__PURE__ */ jsx177(OverflowMenuItem, { title: username, icon: PersonIcon }),
|
|
4637
4631
|
interactiveContent()
|
|
4638
4632
|
] });
|
|
@@ -4693,7 +4687,7 @@ var OverflowMenuGroup = ({
|
|
|
4693
4687
|
OverflowMenuGroup.displayName = "OverflowMenuGroup";
|
|
4694
4688
|
|
|
4695
4689
|
// src/components/AppShell/Navigation/TopBar.tsx
|
|
4696
|
-
import { jsx as jsx179, jsxs as
|
|
4690
|
+
import { jsx as jsx179, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4697
4691
|
var { navigation: navTokens3, floatingActionButtons: floatingActionButtons2 } = appShellTokens;
|
|
4698
4692
|
var LogoBurgerGroup = styled20.div`
|
|
4699
4693
|
display: flex;
|
|
@@ -4790,8 +4784,8 @@ var TopBar = ({
|
|
|
4790
4784
|
title: title3
|
|
4791
4785
|
}) => {
|
|
4792
4786
|
const Icon2 = (props) => /* @__PURE__ */ jsx179(EmbeteIcon, { ...props, type: user.embete.type });
|
|
4793
|
-
return /* @__PURE__ */
|
|
4794
|
-
/* @__PURE__ */
|
|
4787
|
+
return /* @__PURE__ */ jsxs27(Bar, { environmentBannerActive, children: [
|
|
4788
|
+
/* @__PURE__ */ jsxs27(LogoBurgerGroup, { children: [
|
|
4795
4789
|
/* @__PURE__ */ jsx179(
|
|
4796
4790
|
IconButton,
|
|
4797
4791
|
{
|
|
@@ -4801,7 +4795,7 @@ var TopBar = ({
|
|
|
4801
4795
|
),
|
|
4802
4796
|
/* @__PURE__ */ jsx179(NavigationLogo, { small: true, children: title3 })
|
|
4803
4797
|
] }),
|
|
4804
|
-
/* @__PURE__ */ jsx179(ActionButtonGroup, { children: /* @__PURE__ */
|
|
4798
|
+
/* @__PURE__ */ jsx179(ActionButtonGroup, { children: /* @__PURE__ */ jsxs27(OverflowMenuGroup, { children: [
|
|
4805
4799
|
/* @__PURE__ */ jsx179(
|
|
4806
4800
|
IconButton,
|
|
4807
4801
|
{
|
|
@@ -4815,7 +4809,7 @@ var TopBar = ({
|
|
|
4815
4809
|
};
|
|
4816
4810
|
|
|
4817
4811
|
// src/components/AppShell/Navigation/Navigation.tsx
|
|
4818
|
-
import { jsx as jsx180, jsxs as
|
|
4812
|
+
import { jsx as jsx180, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4819
4813
|
var { navigation: navTokens4 } = appShellTokens;
|
|
4820
4814
|
var Sidebar = styled21.div.withConfig({
|
|
4821
4815
|
shouldForwardProp: (prop) => prop !== "isOpen" && prop !== "environmentBannerActive"
|
|
@@ -4901,7 +4895,7 @@ var Navigation = ({
|
|
|
4901
4895
|
window.addEventListener("keypress", listener);
|
|
4902
4896
|
return () => window.removeEventListener("keypress", listener);
|
|
4903
4897
|
});
|
|
4904
|
-
return /* @__PURE__ */
|
|
4898
|
+
return /* @__PURE__ */ jsxs28("div", { children: [
|
|
4905
4899
|
/* @__PURE__ */ jsx180(
|
|
4906
4900
|
TopBar,
|
|
4907
4901
|
{
|
|
@@ -4913,20 +4907,20 @@ var Navigation = ({
|
|
|
4913
4907
|
title: title3
|
|
4914
4908
|
}
|
|
4915
4909
|
),
|
|
4916
|
-
/* @__PURE__ */
|
|
4910
|
+
/* @__PURE__ */ jsxs28(
|
|
4917
4911
|
Sidebar,
|
|
4918
4912
|
{
|
|
4919
4913
|
isOpen,
|
|
4920
4914
|
environmentBannerActive,
|
|
4921
4915
|
children: [
|
|
4922
|
-
/* @__PURE__ */
|
|
4916
|
+
/* @__PURE__ */ jsxs28(LogoAndVersionContainer, { children: [
|
|
4923
4917
|
/* @__PURE__ */ jsx180(NavigationLogo, { children: title3 }),
|
|
4924
|
-
version !== "" && /* @__PURE__ */
|
|
4918
|
+
version !== "" && /* @__PURE__ */ jsxs28(Version, { children: [
|
|
4925
4919
|
"v ",
|
|
4926
4920
|
version
|
|
4927
4921
|
] })
|
|
4928
4922
|
] }),
|
|
4929
|
-
/* @__PURE__ */
|
|
4923
|
+
/* @__PURE__ */ jsxs28(NavigationItems, { children: [
|
|
4930
4924
|
Children.map(internal, (item) => {
|
|
4931
4925
|
if (item.type !== NavigationItem) {
|
|
4932
4926
|
console.warn(
|
|
@@ -4954,7 +4948,7 @@ var Navigation = ({
|
|
|
4954
4948
|
};
|
|
4955
4949
|
|
|
4956
4950
|
// src/components/AppShell/AppShell.tsx
|
|
4957
|
-
import { jsx as jsx181, jsxs as
|
|
4951
|
+
import { jsx as jsx181, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4958
4952
|
var AppShellContainer = styled22.div`
|
|
4959
4953
|
display: flex;
|
|
4960
4954
|
flex-direction: column;
|
|
@@ -4986,7 +4980,7 @@ var AppShell = ({
|
|
|
4986
4980
|
title: title3 = "Lovisa"
|
|
4987
4981
|
}) => {
|
|
4988
4982
|
const environmentBannerActive = environment !== "PROD";
|
|
4989
|
-
return /* @__PURE__ */ jsx181(AppShellContextProvider, { children: /* @__PURE__ */
|
|
4983
|
+
return /* @__PURE__ */ jsx181(AppShellContextProvider, { children: /* @__PURE__ */ jsxs29(AppShellContainer, { children: [
|
|
4990
4984
|
/* @__PURE__ */ jsx181(EnvironmentBanner, { environment }),
|
|
4991
4985
|
/* @__PURE__ */ jsx181(
|
|
4992
4986
|
Navigation,
|
|
@@ -5024,14 +5018,14 @@ var backLinkTokens = {
|
|
|
5024
5018
|
};
|
|
5025
5019
|
|
|
5026
5020
|
// src/components/BackLink/BackLink.tsx
|
|
5027
|
-
import { jsx as jsx182, jsxs as
|
|
5021
|
+
import { jsx as jsx182, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5028
5022
|
var StyledLink2 = styled23(Link)`
|
|
5029
5023
|
align-items: center;
|
|
5030
5024
|
display: flex;
|
|
5031
5025
|
gap: ${backLinkTokens.link.gap};
|
|
5032
5026
|
`;
|
|
5033
5027
|
var BackLink = forwardRef13((props, ref) => {
|
|
5034
|
-
return /* @__PURE__ */ jsx182("nav", { ref, "aria-label": "g\xE5 tilbake", children: /* @__PURE__ */
|
|
5028
|
+
return /* @__PURE__ */ jsx182("nav", { ref, "aria-label": "g\xE5 tilbake", children: /* @__PURE__ */ jsxs30(StyledLink2, { href: props.href, children: [
|
|
5035
5029
|
/* @__PURE__ */ jsx182(Icon, { icon: ArrowLeftIcon, iconSize: "small" }),
|
|
5036
5030
|
props.label
|
|
5037
5031
|
] }) });
|
|
@@ -5084,7 +5078,7 @@ var breadcrumbTokens = {
|
|
|
5084
5078
|
};
|
|
5085
5079
|
|
|
5086
5080
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
5087
|
-
import { Fragment as Fragment5, jsx as jsx184, jsxs as
|
|
5081
|
+
import { Fragment as Fragment5, jsx as jsx184, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5088
5082
|
var { icon: icon3, list: list2, listItem: listItem2 } = breadcrumbTokens;
|
|
5089
5083
|
var List = styled24.ol`
|
|
5090
5084
|
${removeListStyling}
|
|
@@ -5113,7 +5107,7 @@ var Breadcrumbs = forwardRef15(
|
|
|
5113
5107
|
const chevronIcon = /* @__PURE__ */ jsx184(StyledIcon, { iconSize: "inherit", icon: ChevronRightIcon });
|
|
5114
5108
|
const childrenArray = Children2.toArray(children);
|
|
5115
5109
|
const breadcrumbChildren = childrenArray.map((item, index) => {
|
|
5116
|
-
return /* @__PURE__ */
|
|
5110
|
+
return /* @__PURE__ */ jsxs31(ListItem, { smallScreen, children: [
|
|
5117
5111
|
index !== 0 && chevronIcon,
|
|
5118
5112
|
item
|
|
5119
5113
|
] }, `breadcrumb-${index}`);
|
|
@@ -5125,11 +5119,11 @@ var Breadcrumbs = forwardRef15(
|
|
|
5125
5119
|
href: item.props.href
|
|
5126
5120
|
};
|
|
5127
5121
|
}).filter((item) => item) : [];
|
|
5128
|
-
const breadcrumbChildrenSmallScreen = /* @__PURE__ */
|
|
5122
|
+
const breadcrumbChildrenSmallScreen = /* @__PURE__ */ jsxs31(Fragment5, { children: [
|
|
5129
5123
|
/* @__PURE__ */ jsx184(ListItem, { smallScreen, children: childrenArray[0] }),
|
|
5130
|
-
breadcrumbChildrenTruncated.length > 0 && /* @__PURE__ */
|
|
5124
|
+
breadcrumbChildrenTruncated.length > 0 && /* @__PURE__ */ jsxs31(ListItem, { smallScreen, children: [
|
|
5131
5125
|
chevronIcon,
|
|
5132
|
-
/* @__PURE__ */
|
|
5126
|
+
/* @__PURE__ */ jsxs31(OverflowMenuGroup, { children: [
|
|
5133
5127
|
/* @__PURE__ */ jsx184(
|
|
5134
5128
|
Button,
|
|
5135
5129
|
{
|
|
@@ -5142,7 +5136,7 @@ var Breadcrumbs = forwardRef15(
|
|
|
5142
5136
|
/* @__PURE__ */ jsx184(OverflowMenu, { items: breadcrumbChildrenTruncated })
|
|
5143
5137
|
] })
|
|
5144
5138
|
] }),
|
|
5145
|
-
/* @__PURE__ */
|
|
5139
|
+
/* @__PURE__ */ jsxs31(ListItem, { smallScreen, children: [
|
|
5146
5140
|
chevronIcon,
|
|
5147
5141
|
childrenArray[childrenArray.length - 1]
|
|
5148
5142
|
] })
|
|
@@ -5381,7 +5375,7 @@ var cardAccordionTokens = {
|
|
|
5381
5375
|
};
|
|
5382
5376
|
|
|
5383
5377
|
// src/components/Card/CardAccordion/CardAccordionHeader.tsx
|
|
5384
|
-
import { jsx as jsx188, jsxs as
|
|
5378
|
+
import { jsx as jsx188, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5385
5379
|
var { header: header2, chevronWrapper: chevronWrapper2 } = cardAccordionTokens;
|
|
5386
5380
|
var ContentWrapper = styled27.div`
|
|
5387
5381
|
text-align: left;
|
|
@@ -5461,7 +5455,7 @@ var CardAccordionHeader = forwardRef17((props, ref) => {
|
|
|
5461
5455
|
width: cardAccordionTokens.chevron.width,
|
|
5462
5456
|
height: cardAccordionTokens.chevron.height
|
|
5463
5457
|
};
|
|
5464
|
-
return /* @__PURE__ */ jsx188(HeaderWrapperButton, { ...headerWrapperProps, type: "button", children: /* @__PURE__ */
|
|
5458
|
+
return /* @__PURE__ */ jsx188(HeaderWrapperButton, { ...headerWrapperProps, type: "button", children: /* @__PURE__ */ jsxs32(
|
|
5465
5459
|
HeaderContainer,
|
|
5466
5460
|
{
|
|
5467
5461
|
typographyType: typographyType7,
|
|
@@ -5621,7 +5615,7 @@ var chipTokens = {
|
|
|
5621
5615
|
};
|
|
5622
5616
|
|
|
5623
5617
|
// src/components/Chip/Chip.tsx
|
|
5624
|
-
import { jsx as jsx190, jsxs as
|
|
5618
|
+
import { jsx as jsx190, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
5625
5619
|
var { container: container4 } = chipTokens;
|
|
5626
5620
|
var Container3 = styled29(TextOverflowEllipsisWrapper)`
|
|
5627
5621
|
display: flex;
|
|
@@ -5642,7 +5636,7 @@ var Chip = forwardRef19((props, ref) => {
|
|
|
5642
5636
|
setIsOpen(false);
|
|
5643
5637
|
onClose && onClose();
|
|
5644
5638
|
};
|
|
5645
|
-
return isOpen ? /* @__PURE__ */
|
|
5639
|
+
return isOpen ? /* @__PURE__ */ jsxs33(
|
|
5646
5640
|
Container3,
|
|
5647
5641
|
{
|
|
5648
5642
|
...getBaseHTMLProps(id, className, restHTMLprops, rest),
|
|
@@ -5972,7 +5966,7 @@ function isLeapYear(date) {
|
|
|
5972
5966
|
}
|
|
5973
5967
|
|
|
5974
5968
|
// src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
|
|
5975
|
-
import { jsx as jsx194, jsxs as
|
|
5969
|
+
import { jsx as jsx194, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
5976
5970
|
var { grid: gridTokens } = calendarTokens;
|
|
5977
5971
|
var Th = styled33.th`
|
|
5978
5972
|
font-family: ${gridTokens.headers.fontFamily};
|
|
@@ -6006,7 +6000,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6006
6000
|
} = useCalendarGrid(props, state);
|
|
6007
6001
|
const weeksInMonth = getWeeksInMonth(state.visibleRange.start, locale2);
|
|
6008
6002
|
const weekDays = ["Ma", "Ti", "On", "To", "Fr", "L\xF8", "S\xF8"];
|
|
6009
|
-
return /* @__PURE__ */
|
|
6003
|
+
return /* @__PURE__ */ jsxs34(
|
|
6010
6004
|
"table",
|
|
6011
6005
|
{
|
|
6012
6006
|
...gridProps,
|
|
@@ -6018,7 +6012,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6018
6012
|
},
|
|
6019
6013
|
cellPadding: "0",
|
|
6020
6014
|
children: [
|
|
6021
|
-
/* @__PURE__ */ jsx194("thead", { ...headerProps, children: /* @__PURE__ */
|
|
6015
|
+
/* @__PURE__ */ jsx194("thead", { ...headerProps, children: /* @__PURE__ */ jsxs34("tr", { children: [
|
|
6022
6016
|
/* @__PURE__ */ jsx194(Th, { children: "#" }),
|
|
6023
6017
|
weekDays.map((day, index) => /* @__PURE__ */ jsx194(Th, { children: day }, index))
|
|
6024
6018
|
] }) }),
|
|
@@ -6026,7 +6020,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6026
6020
|
const datesInWeek = state.getDatesInWeek(weekIndex);
|
|
6027
6021
|
const firstExistingDay = datesInWeek.find(Boolean);
|
|
6028
6022
|
const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
|
|
6029
|
-
return /* @__PURE__ */
|
|
6023
|
+
return /* @__PURE__ */ jsxs34("tr", { children: [
|
|
6030
6024
|
/* @__PURE__ */ jsx194(WeekNumber, { children: weekNumber }),
|
|
6031
6025
|
datesInWeek.map(
|
|
6032
6026
|
(date, i) => date ? /* @__PURE__ */ jsx194(CalendarCell, { state, date }, i) : /* @__PURE__ */ jsx194("td", {}, i)
|
|
@@ -6040,7 +6034,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6040
6034
|
CalendarGrid.displayName = "CalendarGrid";
|
|
6041
6035
|
|
|
6042
6036
|
// src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
|
|
6043
|
-
import { jsx as jsx195, jsxs as
|
|
6037
|
+
import { jsx as jsx195, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6044
6038
|
var CalendarHeader = styled34.div`
|
|
6045
6039
|
display: flex;
|
|
6046
6040
|
justify-content: space-between;
|
|
@@ -6087,8 +6081,8 @@ function Calendar(props) {
|
|
|
6087
6081
|
onClose();
|
|
6088
6082
|
}
|
|
6089
6083
|
};
|
|
6090
|
-
return /* @__PURE__ */
|
|
6091
|
-
/* @__PURE__ */
|
|
6084
|
+
return /* @__PURE__ */ jsxs35(CalendarContainer, { ...calendarProps, children: [
|
|
6085
|
+
/* @__PURE__ */ jsxs35(CalendarHeader, { children: [
|
|
6092
6086
|
/* @__PURE__ */ jsx195(
|
|
6093
6087
|
StyledButton,
|
|
6094
6088
|
{
|
|
@@ -6313,7 +6307,7 @@ function CalendarButton({
|
|
|
6313
6307
|
import { useDateSegment } from "@react-aria/datepicker";
|
|
6314
6308
|
import { useRef as useRef13 } from "react";
|
|
6315
6309
|
import styled36, { css as css15 } from "styled-components";
|
|
6316
|
-
import { jsx as jsx197, jsxs as
|
|
6310
|
+
import { jsx as jsx197, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6317
6311
|
var {
|
|
6318
6312
|
datefield: { segment: segmentTokens }
|
|
6319
6313
|
} = datePickerTokens;
|
|
@@ -6362,7 +6356,7 @@ function DateSegment({
|
|
|
6362
6356
|
var _a;
|
|
6363
6357
|
const ref = useRef13(null);
|
|
6364
6358
|
const { segmentProps } = useDateSegment(segment2, state, ref);
|
|
6365
|
-
return /* @__PURE__ */
|
|
6359
|
+
return /* @__PURE__ */ jsxs36(
|
|
6366
6360
|
Segment,
|
|
6367
6361
|
{
|
|
6368
6362
|
...segmentProps,
|
|
@@ -6399,7 +6393,7 @@ import {
|
|
|
6399
6393
|
forwardRef as forwardRef21
|
|
6400
6394
|
} from "react";
|
|
6401
6395
|
import styled37 from "styled-components";
|
|
6402
|
-
import { jsx as jsx198, jsxs as
|
|
6396
|
+
import { jsx as jsx198, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6403
6397
|
var InputDiv = styled37(StatefulInput)`
|
|
6404
6398
|
display: inline-flex;
|
|
6405
6399
|
flex-direction: row;
|
|
@@ -6436,7 +6430,7 @@ function _DateInput({
|
|
|
6436
6430
|
const hasTip = !!tip;
|
|
6437
6431
|
const hasLabel = props.label != null;
|
|
6438
6432
|
const hasMessage = hasErrorMessage || hasTip;
|
|
6439
|
-
return /* @__PURE__ */
|
|
6433
|
+
return /* @__PURE__ */ jsxs37(
|
|
6440
6434
|
OuterInputContainer,
|
|
6441
6435
|
{
|
|
6442
6436
|
...groupProps,
|
|
@@ -6445,7 +6439,7 @@ function _DateInput({
|
|
|
6445
6439
|
ref: forwardedRef,
|
|
6446
6440
|
children: [
|
|
6447
6441
|
hasLabel && /* @__PURE__ */ jsx198(Label, { ...labelProps, showRequiredStyling: required, children: props.label }),
|
|
6448
|
-
/* @__PURE__ */
|
|
6442
|
+
/* @__PURE__ */ jsxs37(
|
|
6449
6443
|
InputDiv,
|
|
6450
6444
|
{
|
|
6451
6445
|
...fieldProps,
|
|
@@ -6556,7 +6550,7 @@ function createDOMRef(ref) {
|
|
|
6556
6550
|
}
|
|
6557
6551
|
|
|
6558
6552
|
// src/components/date-inputs/DatePicker/DatePicker.tsx
|
|
6559
|
-
import { jsx as jsx200, jsxs as
|
|
6553
|
+
import { jsx as jsx200, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6560
6554
|
var refIsFocusable = (ref) => {
|
|
6561
6555
|
return typeof ref === "object" && ref !== null && "focus" in ref;
|
|
6562
6556
|
};
|
|
@@ -6572,7 +6566,7 @@ function _DatePicker({ errorMessage, componentSize, tip, style, width, ...props
|
|
|
6572
6566
|
state,
|
|
6573
6567
|
ref
|
|
6574
6568
|
);
|
|
6575
|
-
return /* @__PURE__ */ jsx200(I18nProvider, { locale, children: /* @__PURE__ */
|
|
6569
|
+
return /* @__PURE__ */ jsx200(I18nProvider, { locale, children: /* @__PURE__ */ jsxs38(CalendarPopover, { isOpen: state.isOpen, onClose: state.close, children: [
|
|
6576
6570
|
/* @__PURE__ */ jsx200(CalendarPopoverAnchor, { children: /* @__PURE__ */ jsx200(
|
|
6577
6571
|
DateField,
|
|
6578
6572
|
{
|
|
@@ -6809,7 +6803,7 @@ DescriptionListTerm.displayName = "DescriptionListTerm";
|
|
|
6809
6803
|
// src/components/DescriptionList/DescriptionListDesc.tsx
|
|
6810
6804
|
import { forwardRef as forwardRef27 } from "react";
|
|
6811
6805
|
import styled41 from "styled-components";
|
|
6812
|
-
import { jsx as jsx204, jsxs as
|
|
6806
|
+
import { jsx as jsx204, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6813
6807
|
var DListDesc = styled41.dd`
|
|
6814
6808
|
margin-inline-start: 0;
|
|
6815
6809
|
align-items: center;
|
|
@@ -6824,7 +6818,7 @@ var DescriptionListDesc = forwardRef27((props, ref) => {
|
|
|
6824
6818
|
children,
|
|
6825
6819
|
ref
|
|
6826
6820
|
};
|
|
6827
|
-
return /* @__PURE__ */
|
|
6821
|
+
return /* @__PURE__ */ jsxs39(DListDesc, { ...dListDescProps, children: [
|
|
6828
6822
|
icon11 && /* @__PURE__ */ jsx204(Icon, { icon: icon11 }),
|
|
6829
6823
|
" ",
|
|
6830
6824
|
children
|
|
@@ -6887,7 +6881,7 @@ var drawerTokens = {
|
|
|
6887
6881
|
};
|
|
6888
6882
|
|
|
6889
6883
|
// src/components/Drawer/Drawer.tsx
|
|
6890
|
-
import { jsx as jsx206, jsxs as
|
|
6884
|
+
import { jsx as jsx206, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6891
6885
|
var { container: container6, contentContainer: contentContainer2 } = drawerTokens;
|
|
6892
6886
|
var getMaxWidth = (size2) => {
|
|
6893
6887
|
if (size2 === "large")
|
|
@@ -7008,8 +7002,8 @@ var Drawer = forwardRef29((props, ref) => {
|
|
|
7008
7002
|
id: headerId
|
|
7009
7003
|
};
|
|
7010
7004
|
return isOpen || hasTransitionedIn ? createPortal(
|
|
7011
|
-
/* @__PURE__ */
|
|
7012
|
-
/* @__PURE__ */ jsx206(ScrollableContainer, { children: /* @__PURE__ */
|
|
7005
|
+
/* @__PURE__ */ jsxs40(Container4, { ...containerProps, elevation: 4, children: [
|
|
7006
|
+
/* @__PURE__ */ jsx206(ScrollableContainer, { children: /* @__PURE__ */ jsxs40(ContentContainer, { children: [
|
|
7013
7007
|
hasHeader && /* @__PURE__ */ jsx206(HeaderContainer2, { ...headerContainerProps, children: typeof header3 === "string" ? /* @__PURE__ */ jsx206(Typography, { typographyType: "headingSans03", children: header3 }) : header3 }),
|
|
7014
7008
|
children
|
|
7015
7009
|
] }) }),
|
|
@@ -7040,7 +7034,7 @@ import {
|
|
|
7040
7034
|
useRef as useRef18,
|
|
7041
7035
|
useState as useState11
|
|
7042
7036
|
} from "react";
|
|
7043
|
-
import { Fragment as Fragment6, jsxs as
|
|
7037
|
+
import { Fragment as Fragment6, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7044
7038
|
var DrawerGroup = ({
|
|
7045
7039
|
children,
|
|
7046
7040
|
drawerId,
|
|
@@ -7075,7 +7069,7 @@ var DrawerGroup = ({
|
|
|
7075
7069
|
onClose: handleClose
|
|
7076
7070
|
}));
|
|
7077
7071
|
});
|
|
7078
|
-
return /* @__PURE__ */
|
|
7072
|
+
return /* @__PURE__ */ jsxs41(Fragment6, { children: [
|
|
7079
7073
|
" ",
|
|
7080
7074
|
Children9,
|
|
7081
7075
|
" "
|
|
@@ -7086,7 +7080,7 @@ DrawerGroup.displayName = "DrawerGroup";
|
|
|
7086
7080
|
// src/components/EmptyContent/EmptyContent.tsx
|
|
7087
7081
|
import { ddsBaseTokens as ddsBaseTokens31 } from "@norges-domstoler/dds-design-tokens";
|
|
7088
7082
|
import styled44 from "styled-components";
|
|
7089
|
-
import { jsx as jsx207, jsxs as
|
|
7083
|
+
import { jsx as jsx207, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7090
7084
|
var { colors: colors17, spacing: spacing16 } = ddsBaseTokens31;
|
|
7091
7085
|
var StyledEmptyContent = styled44.div`
|
|
7092
7086
|
display: flex;
|
|
@@ -7111,7 +7105,7 @@ function EmptyContent({
|
|
|
7111
7105
|
titleHeadingLevel = 5,
|
|
7112
7106
|
...rest
|
|
7113
7107
|
}) {
|
|
7114
|
-
return /* @__PURE__ */ jsx207(StyledEmptyContent, { ...rest, children: /* @__PURE__ */
|
|
7108
|
+
return /* @__PURE__ */ jsx207(StyledEmptyContent, { ...rest, children: /* @__PURE__ */ jsxs42(StyledEmptyContentText, { children: [
|
|
7115
7109
|
title3 && /* @__PURE__ */ jsx207(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title3 }),
|
|
7116
7110
|
/* @__PURE__ */ jsx207(Paragraph, { children: message2 })
|
|
7117
7111
|
] }) });
|
|
@@ -7195,7 +7189,7 @@ function useControllableState(props) {
|
|
|
7195
7189
|
}
|
|
7196
7190
|
|
|
7197
7191
|
// src/components/FavStar/FavStar.tsx
|
|
7198
|
-
import { jsx as jsx208, jsxs as
|
|
7192
|
+
import { jsx as jsx208, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7199
7193
|
var TRANSITION_SPEED = "0.2s";
|
|
7200
7194
|
var StyledIcon2 = styled45(Icon)`
|
|
7201
7195
|
color: currentColor;
|
|
@@ -7279,7 +7273,7 @@ var FavStar = forwardRef30(
|
|
|
7279
7273
|
defaultValue: defaultChecked != null ? defaultChecked : false,
|
|
7280
7274
|
onChange
|
|
7281
7275
|
});
|
|
7282
|
-
return /* @__PURE__ */
|
|
7276
|
+
return /* @__PURE__ */ jsxs43(
|
|
7283
7277
|
Container5,
|
|
7284
7278
|
{
|
|
7285
7279
|
size: size2,
|
|
@@ -7416,7 +7410,7 @@ var textAreaTokens = {
|
|
|
7416
7410
|
};
|
|
7417
7411
|
|
|
7418
7412
|
// src/components/TextArea/TextArea.tsx
|
|
7419
|
-
import { jsx as jsx210, jsxs as
|
|
7413
|
+
import { jsx as jsx210, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7420
7414
|
var defaultWidth = "320px";
|
|
7421
7415
|
var { textarea: textarea2 } = textAreaTokens;
|
|
7422
7416
|
var StyledTextArea = styled47(StatefulInput)`
|
|
@@ -7493,7 +7487,7 @@ var TextArea = forwardRef32(
|
|
|
7493
7487
|
"aria-invalid": hasErrorMessage ? true : void 0,
|
|
7494
7488
|
...rest
|
|
7495
7489
|
};
|
|
7496
|
-
return /* @__PURE__ */
|
|
7490
|
+
return /* @__PURE__ */ jsxs44(OuterInputContainer, { ...containerProps, children: [
|
|
7497
7491
|
hasLabel && /* @__PURE__ */ jsx210(Label, { showRequiredStyling, htmlFor: uniqueId, children: label3 }),
|
|
7498
7492
|
/* @__PURE__ */ jsx210(StyledTextArea, { ...textAreaProps, as: "textarea" }),
|
|
7499
7493
|
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
@@ -7503,7 +7497,7 @@ var TextArea = forwardRef32(
|
|
|
7503
7497
|
TextArea.displayName = "TextArea";
|
|
7504
7498
|
|
|
7505
7499
|
// src/components/Feedback/CommentComponent.tsx
|
|
7506
|
-
import { jsx as jsx211, jsxs as
|
|
7500
|
+
import { jsx as jsx211, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7507
7501
|
var IconLabelSpan = styled48.span`
|
|
7508
7502
|
display: inline-flex;
|
|
7509
7503
|
align-items: center;
|
|
@@ -7519,8 +7513,8 @@ var CommentComponent = ({
|
|
|
7519
7513
|
handleSubmit,
|
|
7520
7514
|
handleFeedbackTextChange
|
|
7521
7515
|
}) => {
|
|
7522
|
-
return /* @__PURE__ */
|
|
7523
|
-
/* @__PURE__ */
|
|
7516
|
+
return /* @__PURE__ */ jsxs45(VStack, { gap: "x1", align: "flex-start", children: [
|
|
7517
|
+
/* @__PURE__ */ jsxs45(IconLabelSpan, { children: [
|
|
7524
7518
|
/* @__PURE__ */ jsx211(
|
|
7525
7519
|
Icon,
|
|
7526
7520
|
{
|
|
@@ -7528,7 +7522,7 @@ var CommentComponent = ({
|
|
|
7528
7522
|
color: ddsBaseTokens35.colors.DdsColorInteractiveBase
|
|
7529
7523
|
}
|
|
7530
7524
|
),
|
|
7531
|
-
/* @__PURE__ */
|
|
7525
|
+
/* @__PURE__ */ jsxs45(Paragraph, { children: [
|
|
7532
7526
|
ratingSubmittedTitle,
|
|
7533
7527
|
" "
|
|
7534
7528
|
] })
|
|
@@ -7614,7 +7608,7 @@ var TooltipWrapper = styled49(Paper)`
|
|
|
7614
7608
|
`;
|
|
7615
7609
|
|
|
7616
7610
|
// src/components/Tooltip/Tooltip.tsx
|
|
7617
|
-
import { jsx as jsx212, jsxs as
|
|
7611
|
+
import { jsx as jsx212, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7618
7612
|
var { svgArrow: svgArrow2 } = tooltipTokens;
|
|
7619
7613
|
var Tooltip = forwardRef33(
|
|
7620
7614
|
(props, ref) => {
|
|
@@ -7719,11 +7713,11 @@ var Tooltip = forwardRef33(
|
|
|
7719
7713
|
ref: setArrowElement,
|
|
7720
7714
|
style: styles.arrow
|
|
7721
7715
|
};
|
|
7722
|
-
return /* @__PURE__ */
|
|
7716
|
+
return /* @__PURE__ */ jsxs46(Container6, { ...containerProps, children: [
|
|
7723
7717
|
anchorElement,
|
|
7724
|
-
/* @__PURE__ */
|
|
7718
|
+
/* @__PURE__ */ jsxs46(TooltipWrapper, { ...wrapperProps, elevation: 1, border: "light", children: [
|
|
7725
7719
|
text,
|
|
7726
|
-
/* @__PURE__ */ jsx212(ArrowWrapper, { ...arrowWrapperProps, children: /* @__PURE__ */
|
|
7720
|
+
/* @__PURE__ */ jsx212(ArrowWrapper, { ...arrowWrapperProps, children: /* @__PURE__ */ jsxs46(SvgArrow, { children: [
|
|
7727
7721
|
/* @__PURE__ */ jsx212(
|
|
7728
7722
|
"path",
|
|
7729
7723
|
{
|
|
@@ -7748,7 +7742,7 @@ var Tooltip = forwardRef33(
|
|
|
7748
7742
|
Tooltip.displayName = "Tooltip";
|
|
7749
7743
|
|
|
7750
7744
|
// src/components/Feedback/RatingComponent.tsx
|
|
7751
|
-
import { jsx as jsx213, jsxs as
|
|
7745
|
+
import { jsx as jsx213, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7752
7746
|
var RatingContainer = styled50.div`
|
|
7753
7747
|
display: flex;
|
|
7754
7748
|
gap: ${ddsBaseTokens37.spacing.SizesDdsSpacingX1};
|
|
@@ -7769,9 +7763,9 @@ var RatingComponent = ({
|
|
|
7769
7763
|
thumbDownTooltip,
|
|
7770
7764
|
handleRatingChange
|
|
7771
7765
|
}) => {
|
|
7772
|
-
return /* @__PURE__ */
|
|
7766
|
+
return /* @__PURE__ */ jsxs47(RatingContainer, { $layout: layout, children: [
|
|
7773
7767
|
/* @__PURE__ */ jsx213(Label, { children: ratingLabel }),
|
|
7774
|
-
loading ? /* @__PURE__ */ jsx213(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */
|
|
7768
|
+
loading ? /* @__PURE__ */ jsx213(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ jsxs47(HStack, { gap: "x1", children: [
|
|
7775
7769
|
/* @__PURE__ */ jsx213(Tooltip, { text: thumbUpTooltip, children: /* @__PURE__ */ jsx213(
|
|
7776
7770
|
RatingButton,
|
|
7777
7771
|
{
|
|
@@ -7938,7 +7932,7 @@ var ErrorList = (props) => {
|
|
|
7938
7932
|
|
|
7939
7933
|
// src/components/FileUploader/File.tsx
|
|
7940
7934
|
import styled52 from "styled-components";
|
|
7941
|
-
import { jsx as jsx216, jsxs as
|
|
7935
|
+
import { jsx as jsx216, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7942
7936
|
var FileWrapper = styled52.li``;
|
|
7943
7937
|
var FileNameWrapper = styled52.span`
|
|
7944
7938
|
word-break: break-all;
|
|
@@ -7964,8 +7958,8 @@ var File = (props) => {
|
|
|
7964
7958
|
id: derivativeIdGenerator(parentId, `file-${index}-error-${errorIndex}`),
|
|
7965
7959
|
message: e
|
|
7966
7960
|
}));
|
|
7967
|
-
return /* @__PURE__ */
|
|
7968
|
-
/* @__PURE__ */
|
|
7961
|
+
return /* @__PURE__ */ jsxs48(FileWrapper, { children: [
|
|
7962
|
+
/* @__PURE__ */ jsxs48(FileElement, { ...props, children: [
|
|
7969
7963
|
/* @__PURE__ */ jsx216(FileNameWrapper, { children: stateFile.file.name }),
|
|
7970
7964
|
/* @__PURE__ */ jsx216(
|
|
7971
7965
|
RemoveFileButton,
|
|
@@ -8306,7 +8300,7 @@ var VisuallyHidden = (props) => {
|
|
|
8306
8300
|
VisuallyHidden.displayName = "VisuallyHidden";
|
|
8307
8301
|
|
|
8308
8302
|
// src/components/FileUploader/FileUploader.tsx
|
|
8309
|
-
import { jsx as jsx218, jsxs as
|
|
8303
|
+
import { jsx as jsx218, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
8310
8304
|
var defaultWidth2 = "320px";
|
|
8311
8305
|
var Wrapper3 = styled54.div`
|
|
8312
8306
|
width: ${({ width }) => width ? width : defaultWidth2};
|
|
@@ -8405,10 +8399,10 @@ var FileUploader = (props) => {
|
|
|
8405
8399
|
children: "Velg fil"
|
|
8406
8400
|
}
|
|
8407
8401
|
);
|
|
8408
|
-
return /* @__PURE__ */
|
|
8402
|
+
return /* @__PURE__ */ jsxs49(Wrapper3, { width, children: [
|
|
8409
8403
|
hasLabel && /* @__PURE__ */ jsx218(Label, { showRequiredStyling: showRequiredMarker, htmlFor: uniqueId, children: label3 }),
|
|
8410
8404
|
hasTip && /* @__PURE__ */ jsx218(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
|
|
8411
|
-
withDragAndDrop ? /* @__PURE__ */
|
|
8405
|
+
withDragAndDrop ? /* @__PURE__ */ jsxs49(
|
|
8412
8406
|
Root,
|
|
8413
8407
|
{
|
|
8414
8408
|
...getRootProps(),
|
|
@@ -8428,7 +8422,7 @@ var FileUploader = (props) => {
|
|
|
8428
8422
|
button3
|
|
8429
8423
|
]
|
|
8430
8424
|
}
|
|
8431
|
-
) : /* @__PURE__ */
|
|
8425
|
+
) : /* @__PURE__ */ jsxs49(NoZoneContainer, { children: [
|
|
8432
8426
|
/* @__PURE__ */ jsx218(FileUploaderInput, { ...getInputProps() }),
|
|
8433
8427
|
button3
|
|
8434
8428
|
] }),
|
|
@@ -8503,7 +8497,7 @@ var globalMessageTokens = {
|
|
|
8503
8497
|
};
|
|
8504
8498
|
|
|
8505
8499
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
8506
|
-
import { jsx as jsx219, jsxs as
|
|
8500
|
+
import { jsx as jsx219, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
8507
8501
|
var { container: container8, contentContainer: contentContainer4, icon: icon4 } = globalMessageTokens;
|
|
8508
8502
|
var Container7 = styled55.div`
|
|
8509
8503
|
display: flex;
|
|
@@ -8547,14 +8541,14 @@ var GlobalMessage = forwardRef34(
|
|
|
8547
8541
|
...rest
|
|
8548
8542
|
} = props;
|
|
8549
8543
|
const [isClosed, setClosed] = useState16(false);
|
|
8550
|
-
return !isClosed ? /* @__PURE__ */
|
|
8544
|
+
return !isClosed ? /* @__PURE__ */ jsxs50(
|
|
8551
8545
|
Container7,
|
|
8552
8546
|
{
|
|
8553
8547
|
ref,
|
|
8554
8548
|
$purpose: purpose,
|
|
8555
8549
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
8556
8550
|
children: [
|
|
8557
|
-
/* @__PURE__ */
|
|
8551
|
+
/* @__PURE__ */ jsxs50(ContentContainer2, { $closable: closable, children: [
|
|
8558
8552
|
/* @__PURE__ */ jsx219(
|
|
8559
8553
|
MessageIconWrapper,
|
|
8560
8554
|
{
|
|
@@ -8935,15 +8929,15 @@ var IconWrapper2 = styled59.span`
|
|
|
8935
8929
|
`;
|
|
8936
8930
|
|
|
8937
8931
|
// src/components/InlineEdit/InlineEdit.utils.tsx
|
|
8938
|
-
import { jsxs as
|
|
8939
|
-
var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */
|
|
8932
|
+
import { jsxs as jsxs51 } from "react/jsx-runtime";
|
|
8933
|
+
var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs51(VisuallyHidden, { id, as: "span", children: [
|
|
8940
8934
|
"Escape, Enter eller Tab for \xE5 lagre.",
|
|
8941
8935
|
" ",
|
|
8942
8936
|
!emptiable && "Inputfeltet er ikke t\xF8mmbar."
|
|
8943
8937
|
] });
|
|
8944
8938
|
|
|
8945
8939
|
// src/components/InlineEdit/InlineTextArea.tsx
|
|
8946
|
-
import { jsx as jsx224, jsxs as
|
|
8940
|
+
import { jsx as jsx224, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
8947
8941
|
var InlineTextArea = forwardRef36((props, ref) => {
|
|
8948
8942
|
const {
|
|
8949
8943
|
id,
|
|
@@ -8963,8 +8957,8 @@ var InlineTextArea = forwardRef36((props, ref) => {
|
|
|
8963
8957
|
const descId = derivativeIdGenerator(uniqueId, "desc");
|
|
8964
8958
|
const inputRef = useRef23(null);
|
|
8965
8959
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8966
|
-
return /* @__PURE__ */
|
|
8967
|
-
/* @__PURE__ */
|
|
8960
|
+
return /* @__PURE__ */ jsxs52(OuterInputContainer, { $width: width, children: [
|
|
8961
|
+
/* @__PURE__ */ jsxs52(InputContainer, { children: [
|
|
8968
8962
|
!isEditing && !hideIcon && /* @__PURE__ */ jsx224(
|
|
8969
8963
|
IconWrapper2,
|
|
8970
8964
|
{
|
|
@@ -9024,7 +9018,7 @@ import { forwardRef as forwardRef39, useRef as useRef26 } from "react";
|
|
|
9024
9018
|
|
|
9025
9019
|
// src/components/InlineEdit/InlineInput.tsx
|
|
9026
9020
|
import { forwardRef as forwardRef38, useId as useId12, useRef as useRef25 } from "react";
|
|
9027
|
-
import { jsx as jsx226, jsxs as
|
|
9021
|
+
import { jsx as jsx226, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
9028
9022
|
var InlineInput = forwardRef38(
|
|
9029
9023
|
(props, ref) => {
|
|
9030
9024
|
const {
|
|
@@ -9047,8 +9041,8 @@ var InlineInput = forwardRef38(
|
|
|
9047
9041
|
const descId = derivativeIdGenerator(uniqueId, "desc");
|
|
9048
9042
|
const inputRef = useRef25(null);
|
|
9049
9043
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
9050
|
-
return /* @__PURE__ */
|
|
9051
|
-
/* @__PURE__ */
|
|
9044
|
+
return /* @__PURE__ */ jsxs53(OuterInputContainer, { $width: width, children: [
|
|
9045
|
+
/* @__PURE__ */ jsxs53(InputContainer, { children: [
|
|
9052
9046
|
!isEditing && !hideIcon && /* @__PURE__ */ jsx226(
|
|
9053
9047
|
IconWrapper2,
|
|
9054
9048
|
{
|
|
@@ -9275,7 +9269,7 @@ var NavigationItem2 = forwardRef40(({ title: title3, isCurrent, ...rest }, ref)
|
|
|
9275
9269
|
});
|
|
9276
9270
|
|
|
9277
9271
|
// src/components/InternalHeader/InternalHeader.tsx
|
|
9278
|
-
import { jsx as jsx229, jsxs as
|
|
9272
|
+
import { jsx as jsx229, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
9279
9273
|
var InternalHeader = (props) => {
|
|
9280
9274
|
const {
|
|
9281
9275
|
applicationDesc,
|
|
@@ -9322,7 +9316,7 @@ var InternalHeader = (props) => {
|
|
|
9322
9316
|
) }, index);
|
|
9323
9317
|
}) }) }) : null;
|
|
9324
9318
|
const hasContextMenu = hasContextMenuElements || !!userProps || hasNavInContextMenu;
|
|
9325
|
-
return /* @__PURE__ */
|
|
9319
|
+
return /* @__PURE__ */ jsxs54(
|
|
9326
9320
|
Bar2,
|
|
9327
9321
|
{
|
|
9328
9322
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -9332,7 +9326,7 @@ var InternalHeader = (props) => {
|
|
|
9332
9326
|
/* @__PURE__ */ jsx229(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
|
|
9333
9327
|
(hasContextMenu || navigation2 !== null) && /* @__PURE__ */ jsx229(BarSeparator, {}),
|
|
9334
9328
|
navigation2,
|
|
9335
|
-
hasContextMenu && /* @__PURE__ */
|
|
9329
|
+
hasContextMenu && /* @__PURE__ */ jsxs54(ContextMenuGroup, { children: [
|
|
9336
9330
|
/* @__PURE__ */ jsx229(
|
|
9337
9331
|
Button,
|
|
9338
9332
|
{
|
|
@@ -9612,7 +9606,7 @@ var localMessageTokens = {
|
|
|
9612
9606
|
};
|
|
9613
9607
|
|
|
9614
9608
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
9615
|
-
import { Fragment as Fragment8, jsx as jsx232, jsxs as
|
|
9609
|
+
import { Fragment as Fragment8, jsx as jsx232, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
9616
9610
|
var { container: container10, content: content4, icon: icon6, purposeVariants: purposeVariants3 } = localMessageTokens;
|
|
9617
9611
|
var Container8 = styled64.div.withConfig({
|
|
9618
9612
|
shouldForwardProp: (prop) => {
|
|
@@ -9703,7 +9697,7 @@ var LocalMessage = forwardRef43(
|
|
|
9703
9697
|
if (isClosed) {
|
|
9704
9698
|
return /* @__PURE__ */ jsx232(Fragment8, {});
|
|
9705
9699
|
}
|
|
9706
|
-
return /* @__PURE__ */
|
|
9700
|
+
return /* @__PURE__ */ jsxs55(Container8, { ...containerProps, children: [
|
|
9707
9701
|
/* @__PURE__ */ jsx232(
|
|
9708
9702
|
MessageIconWrapper2,
|
|
9709
9703
|
{
|
|
@@ -9807,7 +9801,7 @@ var modalTokens = {
|
|
|
9807
9801
|
};
|
|
9808
9802
|
|
|
9809
9803
|
// src/components/Modal/Modal.tsx
|
|
9810
|
-
import { jsx as jsx233, jsxs as
|
|
9804
|
+
import { jsx as jsx233, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
9811
9805
|
var { container: container12, contentContainer: contentContainer6 } = modalTokens;
|
|
9812
9806
|
var Container9 = styled66(Paper)`
|
|
9813
9807
|
display: flex;
|
|
@@ -9870,7 +9864,7 @@ var Modal = forwardRef44((props, ref) => {
|
|
|
9870
9864
|
useOnKeyDown(["Escape", "Esc"], () => handleClose());
|
|
9871
9865
|
const hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
9872
9866
|
return isOpen || hasTransitionedIn ? createPortal2(
|
|
9873
|
-
/* @__PURE__ */ jsx233(Backdrop, { isOpen: hasTransitionedIn && isOpen, children: /* @__PURE__ */
|
|
9867
|
+
/* @__PURE__ */ jsx233(Backdrop, { isOpen: hasTransitionedIn && isOpen, children: /* @__PURE__ */ jsxs56(
|
|
9874
9868
|
Container9,
|
|
9875
9869
|
{
|
|
9876
9870
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -9883,7 +9877,7 @@ var Modal = forwardRef44((props, ref) => {
|
|
|
9883
9877
|
id: modalId,
|
|
9884
9878
|
elevation: 4,
|
|
9885
9879
|
children: [
|
|
9886
|
-
/* @__PURE__ */
|
|
9880
|
+
/* @__PURE__ */ jsxs56(ContentContainer3, { children: [
|
|
9887
9881
|
header3 && /* @__PURE__ */ jsx233(HeaderContainer3, { id: headerId, children: typeof header3 === "string" ? /* @__PURE__ */ jsx233(Typography, { typographyType: "headingSans03", children: header3 }) : header3 }),
|
|
9888
9882
|
children
|
|
9889
9883
|
] }),
|
|
@@ -10443,7 +10437,7 @@ var getCustomStyles = (size2) => ({
|
|
|
10443
10437
|
import {
|
|
10444
10438
|
components
|
|
10445
10439
|
} from "react-select";
|
|
10446
|
-
import { jsx as jsx236, jsxs as
|
|
10440
|
+
import { jsx as jsx236, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
10447
10441
|
var {
|
|
10448
10442
|
Option,
|
|
10449
10443
|
NoOptionsMessage,
|
|
@@ -10454,7 +10448,7 @@ var {
|
|
|
10454
10448
|
MultiValueRemove,
|
|
10455
10449
|
Control
|
|
10456
10450
|
} = components;
|
|
10457
|
-
var DDSOption = (props, componentSize) => /* @__PURE__ */
|
|
10451
|
+
var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs57(Option, { ...props, children: [
|
|
10458
10452
|
props.isSelected && /* @__PURE__ */ jsx236(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
|
|
10459
10453
|
props.children
|
|
10460
10454
|
] });
|
|
@@ -10472,13 +10466,13 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx236(
|
|
|
10472
10466
|
"aria-describedby": ariaDescribedby
|
|
10473
10467
|
}
|
|
10474
10468
|
);
|
|
10475
|
-
var DDSControl = (props, componentSize, icon11) => /* @__PURE__ */
|
|
10469
|
+
var DDSControl = (props, componentSize, icon11) => /* @__PURE__ */ jsxs57(Control, { ...props, children: [
|
|
10476
10470
|
icon11 && /* @__PURE__ */ jsx236(StyledIcon3, { icon: icon11, iconSize: getFormInputIconSize(componentSize) }),
|
|
10477
10471
|
props.children
|
|
10478
10472
|
] });
|
|
10479
10473
|
|
|
10480
10474
|
// src/components/Select/Select.tsx
|
|
10481
|
-
import { jsx as jsx237, jsxs as
|
|
10475
|
+
import { jsx as jsx237, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
10482
10476
|
var defaultWidth4 = "320px";
|
|
10483
10477
|
var getPlaceholder = (placeholder3, isMulti) => placeholder3 ? placeholder3 : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
|
|
10484
10478
|
function SelectInner(props, ref) {
|
|
@@ -10565,7 +10559,7 @@ function SelectInner(props, ref) {
|
|
|
10565
10559
|
menuPortalTarget: document == null ? void 0 : document.body,
|
|
10566
10560
|
...rest
|
|
10567
10561
|
};
|
|
10568
|
-
return /* @__PURE__ */
|
|
10562
|
+
return /* @__PURE__ */ jsxs58(Container12, { ...containerProps, children: [
|
|
10569
10563
|
hasLabel && /* @__PURE__ */ jsx237(Label, { htmlFor: uniqueId, showRequiredStyling, children: label3 }),
|
|
10570
10564
|
/* @__PURE__ */ jsx237(ReactSelect, { ...reactSelectProps, ref }),
|
|
10571
10565
|
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
@@ -10578,7 +10572,7 @@ Select.displayName = "Select";
|
|
|
10578
10572
|
var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
|
|
10579
10573
|
|
|
10580
10574
|
// src/components/Pagination/Pagination.tsx
|
|
10581
|
-
import { jsx as jsx238, jsxs as
|
|
10575
|
+
import { jsx as jsx238, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
10582
10576
|
var { outerContainer: outerContainer4, indicatorsContainer: indicatorsContainer2, truncationIcon: truncationIcon2, list: list8 } = paginationTokens;
|
|
10583
10577
|
var Nav = styled70.nav`
|
|
10584
10578
|
display: flex;
|
|
@@ -10713,12 +10707,12 @@ var Pagination = forwardRef48(
|
|
|
10713
10707
|
};
|
|
10714
10708
|
const isOnFirstPage = activePage === 1;
|
|
10715
10709
|
const isOnLastPage = activePage === pagesLength;
|
|
10716
|
-
const navigation2 = withPagination ? /* @__PURE__ */ jsx238(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */
|
|
10710
|
+
const navigation2 = withPagination ? /* @__PURE__ */ jsx238(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs59(List3, { children: [
|
|
10717
10711
|
/* @__PURE__ */ jsx238(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: previousPageButton }),
|
|
10718
10712
|
listItems,
|
|
10719
10713
|
/* @__PURE__ */ jsx238(ListItem3, { $isHidden: isOnLastPage, "aria-hidden": isOnLastPage, children: nextPageButton })
|
|
10720
10714
|
] }) }) : null;
|
|
10721
|
-
const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx238(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */
|
|
10715
|
+
const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx238(Nav, { ref, "aria-label": "paginering", ...navProps, children: /* @__PURE__ */ jsxs59(List3, { children: [
|
|
10722
10716
|
/* @__PURE__ */ jsx238(ListItem3, { $isHidden: isOnFirstPage, "aria-hidden": isOnFirstPage, children: /* @__PURE__ */ jsx238(
|
|
10723
10717
|
Button,
|
|
10724
10718
|
{
|
|
@@ -10761,8 +10755,8 @@ var Pagination = forwardRef48(
|
|
|
10761
10755
|
const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
|
|
10762
10756
|
const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
|
|
10763
10757
|
const navigationToBeRendered = smallScreen ? smallScreenNavigation : navigation2;
|
|
10764
|
-
return !withCounter && !withSelect ? navigationToBeRendered : /* @__PURE__ */
|
|
10765
|
-
/* @__PURE__ */
|
|
10758
|
+
return !withCounter && !withSelect ? navigationToBeRendered : /* @__PURE__ */ jsxs59(OuterContainer, { ...containerProps, children: [
|
|
10759
|
+
/* @__PURE__ */ jsxs59(IndicatorsContainer, { children: [
|
|
10766
10760
|
withSelect && /* @__PURE__ */ jsx238(
|
|
10767
10761
|
Select,
|
|
10768
10762
|
{
|
|
@@ -10778,7 +10772,7 @@ var Pagination = forwardRef48(
|
|
|
10778
10772
|
"aria-label": "Antall elementer per side"
|
|
10779
10773
|
}
|
|
10780
10774
|
),
|
|
10781
|
-
withCounter && /* @__PURE__ */
|
|
10775
|
+
withCounter && /* @__PURE__ */ jsxs59(Typography, { typographyType: "supportingStyleLabel01", as: "p", children: [
|
|
10782
10776
|
"Viser ",
|
|
10783
10777
|
activePageFirstItem,
|
|
10784
10778
|
"-",
|
|
@@ -10824,7 +10818,7 @@ var popoverTokens2 = {
|
|
|
10824
10818
|
};
|
|
10825
10819
|
|
|
10826
10820
|
// src/components/Popover/Popover.tsx
|
|
10827
|
-
import { jsx as jsx239, jsxs as
|
|
10821
|
+
import { jsx as jsx239, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
10828
10822
|
var { spacing: Spacing } = ddsBaseTokens51;
|
|
10829
10823
|
var { wrapper: wrapper4, content: content6, closeButton: closeButton2, title: title2 } = popoverTokens2;
|
|
10830
10824
|
var Wrapper4 = styled71(Paper)`
|
|
@@ -10900,7 +10894,7 @@ var Popover = forwardRef49(
|
|
|
10900
10894
|
if (isOpen)
|
|
10901
10895
|
onClose && onClose();
|
|
10902
10896
|
});
|
|
10903
|
-
return isOpen || hasTransitionedIn ? /* @__PURE__ */
|
|
10897
|
+
return isOpen || hasTransitionedIn ? /* @__PURE__ */ jsxs60(
|
|
10904
10898
|
Wrapper4,
|
|
10905
10899
|
{
|
|
10906
10900
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -11139,7 +11133,7 @@ var progressTrackerTokens = {
|
|
|
11139
11133
|
// src/components/ProgressTracker/ProgressTrackerItem.tsx
|
|
11140
11134
|
import { useMemo as useMemo2 } from "react";
|
|
11141
11135
|
import styled72, { css as css30 } from "styled-components";
|
|
11142
|
-
import { jsx as jsx241, jsxs as
|
|
11136
|
+
import { jsx as jsx241, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
11143
11137
|
var toItemState = (active, completed, disabled) => {
|
|
11144
11138
|
if (disabled) {
|
|
11145
11139
|
return "disabled";
|
|
@@ -11243,7 +11237,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11243
11237
|
}
|
|
11244
11238
|
return index + 1;
|
|
11245
11239
|
}, [completed, icon11, index]);
|
|
11246
|
-
return /* @__PURE__ */ jsx241(ItemWrapper, { "aria-current": active ? "step" : void 0, children: /* @__PURE__ */
|
|
11240
|
+
return /* @__PURE__ */ jsx241(ItemWrapper, { "aria-current": active ? "step" : void 0, children: /* @__PURE__ */ jsxs61(
|
|
11247
11241
|
ItemContentWrapper,
|
|
11248
11242
|
{
|
|
11249
11243
|
...styleProps,
|
|
@@ -11252,7 +11246,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11252
11246
|
disabled,
|
|
11253
11247
|
children: [
|
|
11254
11248
|
/* @__PURE__ */ jsx241(ItemNumber, { ...styleProps, "aria-hidden": true, children: stepNumberContent }),
|
|
11255
|
-
/* @__PURE__ */
|
|
11249
|
+
/* @__PURE__ */ jsxs61(ItemText, { ...styleProps, children: [
|
|
11256
11250
|
/* @__PURE__ */ jsx241(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
|
|
11257
11251
|
children
|
|
11258
11252
|
] })
|
|
@@ -11263,7 +11257,7 @@ var ProgressTrackerItem = (props) => {
|
|
|
11263
11257
|
ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
11264
11258
|
|
|
11265
11259
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
11266
|
-
import { jsx as jsx242, jsxs as
|
|
11260
|
+
import { jsx as jsx242, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
11267
11261
|
var ItemsWrapper = styled73.ol`
|
|
11268
11262
|
display: flex;
|
|
11269
11263
|
flex-direction: column;
|
|
@@ -11343,7 +11337,7 @@ var intersperseItemsWithConnector = (children) => Children5.map(children, (child
|
|
|
11343
11337
|
if (index === 0) {
|
|
11344
11338
|
return child;
|
|
11345
11339
|
}
|
|
11346
|
-
return /* @__PURE__ */
|
|
11340
|
+
return /* @__PURE__ */ jsxs62(Fragment10, { children: [
|
|
11347
11341
|
/* @__PURE__ */ jsx242(ProgressTrackerConnector, { "aria-hidden": true }),
|
|
11348
11342
|
child
|
|
11349
11343
|
] }, index);
|
|
@@ -11479,7 +11473,7 @@ function createEmptyChangeEvent(inputElementId) {
|
|
|
11479
11473
|
// src/components/Search/SearchSuggestions.tsx
|
|
11480
11474
|
import { forwardRef as forwardRef51 } from "react";
|
|
11481
11475
|
import styled74 from "styled-components";
|
|
11482
|
-
import { jsx as jsx243, jsxs as
|
|
11476
|
+
import { jsx as jsx243, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
11483
11477
|
var { suggestionsContainer: suggestionsContainer2, suggestionsHeader: suggestionsHeader2 } = searchTokens;
|
|
11484
11478
|
var SuggestionsContainer = styled74(Paper)`
|
|
11485
11479
|
${({ $isHidden }) => visibilityTransition(!$isHidden)};
|
|
@@ -11539,7 +11533,7 @@ var SearchSuggestions = forwardRef51((props, ref) => {
|
|
|
11539
11533
|
) }, index);
|
|
11540
11534
|
}) });
|
|
11541
11535
|
const isHidden = !showSuggestions;
|
|
11542
|
-
return /* @__PURE__ */
|
|
11536
|
+
return /* @__PURE__ */ jsxs63(
|
|
11543
11537
|
SuggestionsContainer,
|
|
11544
11538
|
{
|
|
11545
11539
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -11564,7 +11558,7 @@ var SearchSuggestions = forwardRef51((props, ref) => {
|
|
|
11564
11558
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
11565
11559
|
|
|
11566
11560
|
// src/components/Search/Search.tsx
|
|
11567
|
-
import { Fragment as Fragment11, jsx as jsx244, jsxs as
|
|
11561
|
+
import { Fragment as Fragment11, jsx as jsx244, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
11568
11562
|
var { input: input4, outerContainer: outerContainer6, horisontalContainer: horisontalContainer2, searchIcon: searchIcon2, clearButton: clearButton2 } = searchTokens;
|
|
11569
11563
|
var getIconSize = (size2) => {
|
|
11570
11564
|
switch (size2) {
|
|
@@ -11667,17 +11661,17 @@ var Search = forwardRef52(
|
|
|
11667
11661
|
} = buttonProps != null ? buttonProps : {};
|
|
11668
11662
|
const hasSuggestions = !!context.suggestions;
|
|
11669
11663
|
const showSearchButton = !!buttonProps && !!onClick;
|
|
11670
|
-
return /* @__PURE__ */
|
|
11664
|
+
return /* @__PURE__ */ jsxs64(OuterContainer2, { children: [
|
|
11671
11665
|
hasLabel && /* @__PURE__ */ jsx244(Label, { htmlFor: uniqueId, children: label3 }),
|
|
11672
|
-
/* @__PURE__ */
|
|
11673
|
-
/* @__PURE__ */
|
|
11666
|
+
/* @__PURE__ */ jsxs64("div", { children: [
|
|
11667
|
+
/* @__PURE__ */ jsxs64(
|
|
11674
11668
|
HorisontalContainer,
|
|
11675
11669
|
{
|
|
11676
11670
|
$hasSearchButton: showSearchButton,
|
|
11677
11671
|
className,
|
|
11678
11672
|
style,
|
|
11679
11673
|
children: [
|
|
11680
|
-
/* @__PURE__ */
|
|
11674
|
+
/* @__PURE__ */ jsxs64(InputContainer2, { children: [
|
|
11681
11675
|
/* @__PURE__ */ jsx244(
|
|
11682
11676
|
StyledSearchIcon,
|
|
11683
11677
|
{
|
|
@@ -11709,7 +11703,7 @@ var Search = forwardRef52(
|
|
|
11709
11703
|
role: hasSuggestions ? "combobox" : void 0
|
|
11710
11704
|
}
|
|
11711
11705
|
),
|
|
11712
|
-
hasSuggestions && /* @__PURE__ */
|
|
11706
|
+
hasSuggestions && /* @__PURE__ */ jsxs64(Fragment11, { children: [
|
|
11713
11707
|
/* @__PURE__ */ jsx244(
|
|
11714
11708
|
SearchSuggestions,
|
|
11715
11709
|
{
|
|
@@ -12135,7 +12129,7 @@ var GroupContainer = styled76.div`
|
|
|
12135
12129
|
`;
|
|
12136
12130
|
|
|
12137
12131
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
12138
|
-
import { jsx as jsx246, jsxs as
|
|
12132
|
+
import { jsx as jsx246, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
12139
12133
|
var Checkbox = forwardRef53(
|
|
12140
12134
|
(props, ref) => {
|
|
12141
12135
|
const {
|
|
@@ -12160,7 +12154,7 @@ var Checkbox = forwardRef53(
|
|
|
12160
12154
|
className: htmlPropsClassName,
|
|
12161
12155
|
...restHtmlProps
|
|
12162
12156
|
} = htmlProps;
|
|
12163
|
-
return /* @__PURE__ */
|
|
12157
|
+
return /* @__PURE__ */ jsxs65(
|
|
12164
12158
|
Container13,
|
|
12165
12159
|
{
|
|
12166
12160
|
$error: error || (checkboxGroup == null ? void 0 : checkboxGroup.error),
|
|
@@ -12203,7 +12197,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
12203
12197
|
|
|
12204
12198
|
// src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
|
|
12205
12199
|
import { useId as useId18 } from "react";
|
|
12206
|
-
import { jsx as jsx247, jsxs as
|
|
12200
|
+
import { jsx as jsx247, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
12207
12201
|
var CheckboxGroup = (props) => {
|
|
12208
12202
|
const {
|
|
12209
12203
|
label: label3,
|
|
@@ -12235,7 +12229,7 @@ var CheckboxGroup = (props) => {
|
|
|
12235
12229
|
disabled,
|
|
12236
12230
|
readOnly
|
|
12237
12231
|
};
|
|
12238
|
-
return /* @__PURE__ */
|
|
12232
|
+
return /* @__PURE__ */ jsxs66(
|
|
12239
12233
|
OuterGroupContainer,
|
|
12240
12234
|
{
|
|
12241
12235
|
...getBaseHTMLProps(
|
|
@@ -12245,7 +12239,7 @@ var CheckboxGroup = (props) => {
|
|
|
12245
12239
|
rest
|
|
12246
12240
|
),
|
|
12247
12241
|
children: [
|
|
12248
|
-
/* @__PURE__ */
|
|
12242
|
+
/* @__PURE__ */ jsxs66(
|
|
12249
12243
|
Typography,
|
|
12250
12244
|
{
|
|
12251
12245
|
as: "span",
|
|
@@ -12287,7 +12281,7 @@ var useRadioButtonGroup = () => {
|
|
|
12287
12281
|
};
|
|
12288
12282
|
|
|
12289
12283
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
12290
|
-
import { jsx as jsx248, jsxs as
|
|
12284
|
+
import { jsx as jsx248, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
12291
12285
|
var isValueEqualToGroupValueOrFalsy = (value, group4) => {
|
|
12292
12286
|
if (typeof value !== "undefined" && value !== null && group4) {
|
|
12293
12287
|
if (typeof value === "number") {
|
|
@@ -12346,7 +12340,7 @@ var RadioButton = forwardRef54(
|
|
|
12346
12340
|
"aria-describedby": describedByIds.length > 0 ? describedByIds.join(" ") : void 0,
|
|
12347
12341
|
"aria-invalid": error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error) ? true : void 0
|
|
12348
12342
|
};
|
|
12349
|
-
return /* @__PURE__ */
|
|
12343
|
+
return /* @__PURE__ */ jsxs67(
|
|
12350
12344
|
Container13,
|
|
12351
12345
|
{
|
|
12352
12346
|
$error: error || (radioButtonGroup == null ? void 0 : radioButtonGroup.error),
|
|
@@ -12374,7 +12368,7 @@ import {
|
|
|
12374
12368
|
useId as useId20,
|
|
12375
12369
|
useState as useState25
|
|
12376
12370
|
} from "react";
|
|
12377
|
-
import { jsx as jsx249, jsxs as
|
|
12371
|
+
import { jsx as jsx249, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
12378
12372
|
var RadioButtonGroupInner = (props, ref) => {
|
|
12379
12373
|
const {
|
|
12380
12374
|
name,
|
|
@@ -12416,7 +12410,7 @@ var RadioButtonGroupInner = (props, ref) => {
|
|
|
12416
12410
|
value: groupValue,
|
|
12417
12411
|
onChange: handleChange
|
|
12418
12412
|
};
|
|
12419
|
-
return /* @__PURE__ */
|
|
12413
|
+
return /* @__PURE__ */ jsxs68(
|
|
12420
12414
|
OuterGroupContainer,
|
|
12421
12415
|
{
|
|
12422
12416
|
...getBaseHTMLProps(
|
|
@@ -12427,7 +12421,7 @@ var RadioButtonGroupInner = (props, ref) => {
|
|
|
12427
12421
|
),
|
|
12428
12422
|
ref,
|
|
12429
12423
|
children: [
|
|
12430
|
-
/* @__PURE__ */
|
|
12424
|
+
/* @__PURE__ */ jsxs68(
|
|
12431
12425
|
Typography,
|
|
12432
12426
|
{
|
|
12433
12427
|
as: "span",
|
|
@@ -12573,7 +12567,7 @@ var tokens3 = {
|
|
|
12573
12567
|
};
|
|
12574
12568
|
|
|
12575
12569
|
// src/components/SplitButton/SplitButton.tsx
|
|
12576
|
-
import { jsx as jsx251, jsxs as
|
|
12570
|
+
import { jsx as jsx251, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
12577
12571
|
var Container14 = styled78.div`
|
|
12578
12572
|
display: flex;
|
|
12579
12573
|
`;
|
|
@@ -12618,7 +12612,7 @@ var SplitButton = forwardRef57(
|
|
|
12618
12612
|
purpose,
|
|
12619
12613
|
size: size2
|
|
12620
12614
|
};
|
|
12621
|
-
return /* @__PURE__ */
|
|
12615
|
+
return /* @__PURE__ */ jsxs69(Container14, { ref, children: [
|
|
12622
12616
|
/* @__PURE__ */ jsx251(
|
|
12623
12617
|
MainButton,
|
|
12624
12618
|
{
|
|
@@ -12627,7 +12621,7 @@ var SplitButton = forwardRef57(
|
|
|
12627
12621
|
iconPosition: "left"
|
|
12628
12622
|
}
|
|
12629
12623
|
),
|
|
12630
|
-
/* @__PURE__ */
|
|
12624
|
+
/* @__PURE__ */ jsxs69(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
|
|
12631
12625
|
/* @__PURE__ */ jsx251(
|
|
12632
12626
|
OptionButton,
|
|
12633
12627
|
{
|
|
@@ -12922,7 +12916,7 @@ Row.displayName = "Table.Row";
|
|
|
12922
12916
|
// src/components/Table/normal/SortCell.tsx
|
|
12923
12917
|
import { forwardRef as forwardRef63 } from "react";
|
|
12924
12918
|
import styled84 from "styled-components";
|
|
12925
|
-
import { jsx as jsx257, jsxs as
|
|
12919
|
+
import { jsx as jsx257, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
12926
12920
|
var { cell: cell4 } = tableTokens;
|
|
12927
12921
|
var StyledButton6 = styled84.button`
|
|
12928
12922
|
${normalizeButton}
|
|
@@ -12949,7 +12943,7 @@ var SortCell = forwardRef63(
|
|
|
12949
12943
|
type: "head",
|
|
12950
12944
|
"aria-sort": isSorted && sortOrder ? sortOrder : void 0,
|
|
12951
12945
|
...rest,
|
|
12952
|
-
children: /* @__PURE__ */
|
|
12946
|
+
children: /* @__PURE__ */ jsxs70(
|
|
12953
12947
|
StyledButton6,
|
|
12954
12948
|
{
|
|
12955
12949
|
onClick,
|
|
@@ -13078,7 +13072,7 @@ Table2.Row = Row;
|
|
|
13078
13072
|
Table2.Foot = Foot;
|
|
13079
13073
|
|
|
13080
13074
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
13081
|
-
import { Fragment as Fragment13, jsx as jsx260, jsxs as
|
|
13075
|
+
import { Fragment as Fragment13, jsx as jsx260, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
13082
13076
|
var { collapseButton: collapseButton2 } = tableTokens;
|
|
13083
13077
|
var CollapseButton = styled87.button`
|
|
13084
13078
|
${removeButtonStyling}
|
|
@@ -13128,7 +13122,7 @@ var CollapsibleRow = forwardRef65(
|
|
|
13128
13122
|
const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
|
|
13129
13123
|
const id = derivativeIdGenerator(prefix2, index.toString());
|
|
13130
13124
|
collapsibleIds.push(id);
|
|
13131
|
-
return /* @__PURE__ */
|
|
13125
|
+
return /* @__PURE__ */ jsxs71(Fragment12, { children: [
|
|
13132
13126
|
/* @__PURE__ */ jsx260(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
|
|
13133
13127
|
isValidElement8(child) && cloneElement7(child, {
|
|
13134
13128
|
collapsibleProps: { isCollapsibleChild: true }
|
|
@@ -13142,9 +13136,9 @@ var CollapsibleRow = forwardRef65(
|
|
|
13142
13136
|
const headerRow = () => {
|
|
13143
13137
|
if (type !== "head" || !isCollapsed)
|
|
13144
13138
|
return null;
|
|
13145
|
-
return /* @__PURE__ */ jsx260(StyledRow, { ref, type, ...rowProps, children: /* @__PURE__ */
|
|
13139
|
+
return /* @__PURE__ */ jsx260(StyledRow, { ref, type, ...rowProps, children: /* @__PURE__ */ jsxs71(Fragment13, { children: [
|
|
13146
13140
|
definingColumnCells,
|
|
13147
|
-
/* @__PURE__ */
|
|
13141
|
+
/* @__PURE__ */ jsxs71(Table2.Cell, { type: "head", layout: "center", children: [
|
|
13148
13142
|
"Utvid",
|
|
13149
13143
|
/* @__PURE__ */ jsx260(VisuallyHidden, { as: "span", children: "raden" })
|
|
13150
13144
|
] })
|
|
@@ -13154,7 +13148,7 @@ var CollapsibleRow = forwardRef65(
|
|
|
13154
13148
|
const rowWithChevron = () => {
|
|
13155
13149
|
if (type !== "body" || !isCollapsed)
|
|
13156
13150
|
return null;
|
|
13157
|
-
return /* @__PURE__ */
|
|
13151
|
+
return /* @__PURE__ */ jsxs71(
|
|
13158
13152
|
StyledRow,
|
|
13159
13153
|
{
|
|
13160
13154
|
ref,
|
|
@@ -13183,9 +13177,9 @@ var CollapsibleRow = forwardRef65(
|
|
|
13183
13177
|
}
|
|
13184
13178
|
);
|
|
13185
13179
|
};
|
|
13186
|
-
return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */
|
|
13180
|
+
return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs71(Fragment13, { children: [
|
|
13187
13181
|
headerRow(),
|
|
13188
|
-
type === "body" && /* @__PURE__ */
|
|
13182
|
+
type === "body" && /* @__PURE__ */ jsxs71(Fragment13, { children: [
|
|
13189
13183
|
rowWithChevron(),
|
|
13190
13184
|
childrenCollapsed ? null : collapsedRows
|
|
13191
13185
|
] })
|
|
@@ -13406,7 +13400,7 @@ function useSetTabWidth(index, width) {
|
|
|
13406
13400
|
}
|
|
13407
13401
|
|
|
13408
13402
|
// src/components/Tabs/Tab.tsx
|
|
13409
|
-
import { jsx as jsx264, jsxs as
|
|
13403
|
+
import { jsx as jsx264, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
13410
13404
|
var { tab: tab2 } = tabsTokens;
|
|
13411
13405
|
var Button2 = styled90.button`
|
|
13412
13406
|
${normalizeButton}
|
|
@@ -13490,7 +13484,7 @@ var Tab = forwardRef68((props, ref) => {
|
|
|
13490
13484
|
handleSelect();
|
|
13491
13485
|
onKeyDown && onKeyDown(e);
|
|
13492
13486
|
};
|
|
13493
|
-
return /* @__PURE__ */
|
|
13487
|
+
return /* @__PURE__ */ jsxs72(
|
|
13494
13488
|
Button2,
|
|
13495
13489
|
{
|
|
13496
13490
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -13774,7 +13768,7 @@ var tagTokens = {
|
|
|
13774
13768
|
};
|
|
13775
13769
|
|
|
13776
13770
|
// src/components/Tag/Tag.tsx
|
|
13777
|
-
import { jsx as jsx268, jsxs as
|
|
13771
|
+
import { jsx as jsx268, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
13778
13772
|
var { wrapper: wrapper8 } = tagTokens;
|
|
13779
13773
|
var Wrapper7 = styled93(TextOverflowEllipsisWrapper)`
|
|
13780
13774
|
display: inline-flex;
|
|
@@ -13808,7 +13802,7 @@ var Tag = forwardRef72((props, ref) => {
|
|
|
13808
13802
|
...rest
|
|
13809
13803
|
} = props;
|
|
13810
13804
|
const icon11 = tagTokens.wrapper.purpose[purpose].icon;
|
|
13811
|
-
return /* @__PURE__ */
|
|
13805
|
+
return /* @__PURE__ */ jsxs73(
|
|
13812
13806
|
Wrapper7,
|
|
13813
13807
|
{
|
|
13814
13808
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -13846,7 +13840,7 @@ import styled96, { css as css44 } from "styled-components";
|
|
|
13846
13840
|
// src/components/TextInput/CharCounter.tsx
|
|
13847
13841
|
import { useId as useId22 } from "react";
|
|
13848
13842
|
import styled94 from "styled-components";
|
|
13849
|
-
import { jsxs as
|
|
13843
|
+
import { jsxs as jsxs74 } from "react/jsx-runtime";
|
|
13850
13844
|
var Wrapper8 = styled94(Typography)`
|
|
13851
13845
|
margin-left: auto;
|
|
13852
13846
|
`;
|
|
@@ -13854,7 +13848,7 @@ function CharCounter(props) {
|
|
|
13854
13848
|
const { current, max, id, className, htmlProps, ...rest } = props;
|
|
13855
13849
|
const generatedId = useId22();
|
|
13856
13850
|
const uniqueId = id != null ? id : `${generatedId}-characterCounter`;
|
|
13857
|
-
return /* @__PURE__ */
|
|
13851
|
+
return /* @__PURE__ */ jsxs74(
|
|
13858
13852
|
Wrapper8,
|
|
13859
13853
|
{
|
|
13860
13854
|
...getBaseHTMLProps(uniqueId, className, htmlProps, rest),
|
|
@@ -13946,7 +13940,7 @@ var StyledInput = styled95(StatefulInput)`
|
|
|
13946
13940
|
`;
|
|
13947
13941
|
|
|
13948
13942
|
// src/components/TextInput/TextInput.tsx
|
|
13949
|
-
import { jsx as jsx269, jsxs as
|
|
13943
|
+
import { jsx as jsx269, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
13950
13944
|
var defaultWidth5 = "320px";
|
|
13951
13945
|
var defaultTinyWidth = "210px";
|
|
13952
13946
|
var getWidth = (size2, width) => {
|
|
@@ -14080,7 +14074,7 @@ var TextInput2 = forwardRef73(
|
|
|
14080
14074
|
const showRequiredStyling = !!(required || ariaRequired);
|
|
14081
14075
|
let extendedInput = null;
|
|
14082
14076
|
if (hasIcon) {
|
|
14083
|
-
extendedInput = /* @__PURE__ */
|
|
14077
|
+
extendedInput = /* @__PURE__ */ jsxs75(InputContainer, { children: [
|
|
14084
14078
|
/* @__PURE__ */ jsx269(
|
|
14085
14079
|
StyledIcon5,
|
|
14086
14080
|
{
|
|
@@ -14102,7 +14096,7 @@ var TextInput2 = forwardRef73(
|
|
|
14102
14096
|
)
|
|
14103
14097
|
] });
|
|
14104
14098
|
} else if (hasAffix) {
|
|
14105
|
-
extendedInput = /* @__PURE__ */
|
|
14099
|
+
extendedInput = /* @__PURE__ */ jsxs75(InputAffixContainer, { children: [
|
|
14106
14100
|
prefix2 && /* @__PURE__ */ jsx269(Prefix, { readOnly, ref: prefixRef, "aria-hidden": true, children: prefix2 }),
|
|
14107
14101
|
/* @__PURE__ */ jsx269(
|
|
14108
14102
|
StatefulInput,
|
|
@@ -14119,7 +14113,7 @@ var TextInput2 = forwardRef73(
|
|
|
14119
14113
|
suffix && /* @__PURE__ */ jsx269(Suffix, { readOnly, ref: suffixRef, "aria-hidden": true, children: suffix })
|
|
14120
14114
|
] });
|
|
14121
14115
|
}
|
|
14122
|
-
return /* @__PURE__ */
|
|
14116
|
+
return /* @__PURE__ */ jsxs75(OuterInputContainer, { ...outerInputContainerProps, children: [
|
|
14123
14117
|
hasLabel && /* @__PURE__ */ jsx269(Label, { htmlFor: uniqueId, showRequiredStyling, children: label3 }),
|
|
14124
14118
|
extendedInput ? extendedInput : /* @__PURE__ */ jsx269(
|
|
14125
14119
|
StatefulInput,
|
|
@@ -14131,7 +14125,7 @@ var TextInput2 = forwardRef73(
|
|
|
14131
14125
|
...generalInputProps
|
|
14132
14126
|
}
|
|
14133
14127
|
),
|
|
14134
|
-
hasMessage && /* @__PURE__ */
|
|
14128
|
+
hasMessage && /* @__PURE__ */ jsxs75(MessageContainer2, { children: [
|
|
14135
14129
|
renderInputMessage(tip, tipId, errorMessage, errorMessageId),
|
|
14136
14130
|
maxLength && Number.isInteger(maxLength) && maxLength > 0 && withCharacterCounter && /* @__PURE__ */ jsx269(
|
|
14137
14131
|
CharCounter_default,
|
|
@@ -14265,7 +14259,7 @@ var toggleBarTokens = {
|
|
|
14265
14259
|
};
|
|
14266
14260
|
|
|
14267
14261
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
14268
|
-
import { jsx as jsx270, jsxs as
|
|
14262
|
+
import { jsx as jsx270, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
14269
14263
|
var OuterContainer3 = styled97.div`
|
|
14270
14264
|
display: flex;
|
|
14271
14265
|
flex-direction: column;
|
|
@@ -14314,7 +14308,7 @@ var ToggleBar = (props) => {
|
|
|
14314
14308
|
name,
|
|
14315
14309
|
value: groupValue
|
|
14316
14310
|
},
|
|
14317
|
-
children: /* @__PURE__ */
|
|
14311
|
+
children: /* @__PURE__ */ jsxs76(
|
|
14318
14312
|
OuterContainer3,
|
|
14319
14313
|
{
|
|
14320
14314
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -14408,7 +14402,7 @@ var Label3 = styled98.label`
|
|
|
14408
14402
|
`;
|
|
14409
14403
|
|
|
14410
14404
|
// src/components/ToggleBar/ToggleRadio.tsx
|
|
14411
|
-
import { jsx as jsx271, jsxs as
|
|
14405
|
+
import { jsx as jsx271, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
14412
14406
|
var calculateChecked = (value, group4, checked) => {
|
|
14413
14407
|
if (typeof checked !== "undefined")
|
|
14414
14408
|
return checked;
|
|
@@ -14443,7 +14437,7 @@ var ToggleRadio = forwardRef74(
|
|
|
14443
14437
|
onChange && onChange(event);
|
|
14444
14438
|
(group4 == null ? void 0 : group4.onChange) && group4.onChange(event);
|
|
14445
14439
|
};
|
|
14446
|
-
return /* @__PURE__ */
|
|
14440
|
+
return /* @__PURE__ */ jsxs77(Label3, { size: group4.size, htmlFor: uniqueId, children: [
|
|
14447
14441
|
/* @__PURE__ */ jsx271(
|
|
14448
14442
|
HiddenInput,
|
|
14449
14443
|
{
|
|
@@ -14458,7 +14452,7 @@ var ToggleRadio = forwardRef74(
|
|
|
14458
14452
|
"aria-labelledby": ariaLabelledBy
|
|
14459
14453
|
}
|
|
14460
14454
|
),
|
|
14461
|
-
/* @__PURE__ */
|
|
14455
|
+
/* @__PURE__ */ jsxs77(Content2, { $size: group4.size, $justIcon: !!icon11 && !label3, children: [
|
|
14462
14456
|
icon11 && /* @__PURE__ */ jsx271(Icon, { icon: icon11, iconSize: "inherit" }),
|
|
14463
14457
|
label3 && /* @__PURE__ */ jsx271("span", { children: label3 })
|
|
14464
14458
|
] })
|
|
@@ -14504,7 +14498,7 @@ var toggleButtonTokens = {
|
|
|
14504
14498
|
};
|
|
14505
14499
|
|
|
14506
14500
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
14507
|
-
import { jsx as jsx272, jsxs as
|
|
14501
|
+
import { jsx as jsx272, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
14508
14502
|
var { toggleButton: toggleButton2 } = toggleButtonTokens;
|
|
14509
14503
|
var Content3 = styled99.span`
|
|
14510
14504
|
display: flex;
|
|
@@ -14562,7 +14556,7 @@ var ToggleButton = forwardRef75(
|
|
|
14562
14556
|
({ id, label: label3, icon: icon11, className, htmlProps, ...rest }, ref) => {
|
|
14563
14557
|
const generatedId = useId26();
|
|
14564
14558
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
14565
|
-
return /* @__PURE__ */
|
|
14559
|
+
return /* @__PURE__ */ jsxs78(Container16, { htmlFor: uniqueId, children: [
|
|
14566
14560
|
/* @__PURE__ */ jsx272(
|
|
14567
14561
|
HiddenInput,
|
|
14568
14562
|
{
|
|
@@ -14571,7 +14565,7 @@ var ToggleButton = forwardRef75(
|
|
|
14571
14565
|
type: "checkbox"
|
|
14572
14566
|
}
|
|
14573
14567
|
),
|
|
14574
|
-
/* @__PURE__ */
|
|
14568
|
+
/* @__PURE__ */ jsxs78(Content3, { $hasIcon: !!icon11, children: [
|
|
14575
14569
|
icon11 && /* @__PURE__ */ jsx272(Icon, { icon: icon11, iconSize: "inherit" }),
|
|
14576
14570
|
" ",
|
|
14577
14571
|
label3
|
|
@@ -14584,7 +14578,7 @@ ToggleButton.displayName = "ToggleButton";
|
|
|
14584
14578
|
// src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
14585
14579
|
import { useId as useId27 } from "react";
|
|
14586
14580
|
import styled100, { css as css48 } from "styled-components";
|
|
14587
|
-
import { jsx as jsx273, jsxs as
|
|
14581
|
+
import { jsx as jsx273, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
14588
14582
|
var Group2 = styled100.div`
|
|
14589
14583
|
gap: ${toggleButtonTokens.group.gap};
|
|
14590
14584
|
display: flex;
|
|
@@ -14619,7 +14613,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
14619
14613
|
role: "group",
|
|
14620
14614
|
"aria-labelledby": label3 ? uniqueLabelId : void 0
|
|
14621
14615
|
};
|
|
14622
|
-
return /* @__PURE__ */
|
|
14616
|
+
return /* @__PURE__ */ jsxs79(Container17, { ...containerProps, children: [
|
|
14623
14617
|
!!label3 && /* @__PURE__ */ jsx273(
|
|
14624
14618
|
Typography,
|
|
14625
14619
|
{
|