@norges-domstoler/dds-components 17.1.0 → 17.2.1
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/README.md +2 -0
- package/dist/index.css +53 -4
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +61 -4
- package/dist/index.d.ts +61 -4
- package/dist/index.js +849 -701
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +586 -443
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -482,6 +482,17 @@ var Input_default = {
|
|
|
482
482
|
// src/components/Typography/Caption/Caption.tsx
|
|
483
483
|
import { forwardRef as forwardRef5 } from "react";
|
|
484
484
|
|
|
485
|
+
// src/types/Density.tsx
|
|
486
|
+
function getDensityCn(value) {
|
|
487
|
+
switch (value) {
|
|
488
|
+
case "normal":
|
|
489
|
+
case "compact":
|
|
490
|
+
return value;
|
|
491
|
+
case "extraCompact":
|
|
492
|
+
return "extra-compact";
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
|
|
485
496
|
// src/types/BaseComponentProps.ts
|
|
486
497
|
var getBaseHTMLProps = (id, htmlPropsOrClassName, htmlPropsOrUnknownProps, unknownPropsOrUndefined) => {
|
|
487
498
|
if (typeof htmlPropsOrClassName === "string" || unknownPropsOrUndefined != void 0) {
|
|
@@ -4164,14 +4175,21 @@ import { forwardRef as forwardRef13 } from "react";
|
|
|
4164
4175
|
|
|
4165
4176
|
// src/components/BackLink/BackLink.module.css
|
|
4166
4177
|
var BackLink_default = {
|
|
4167
|
-
|
|
4178
|
+
icon: "BackLink_icon"
|
|
4168
4179
|
};
|
|
4169
4180
|
|
|
4170
4181
|
// src/components/BackLink/BackLink.tsx
|
|
4171
4182
|
import { jsx as jsx177, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
4172
4183
|
var BackLink = forwardRef13((props, ref) => {
|
|
4173
|
-
return /* @__PURE__ */ jsx177("nav", { ref, "aria-label": "g\xE5 tilbake", children: /* @__PURE__ */ jsxs24(Link, { href: props.href,
|
|
4174
|
-
/* @__PURE__ */ jsx177(
|
|
4184
|
+
return /* @__PURE__ */ jsx177("nav", { ref, "aria-label": "g\xE5 tilbake", children: /* @__PURE__ */ jsxs24(Link, { href: props.href, children: [
|
|
4185
|
+
/* @__PURE__ */ jsx177(
|
|
4186
|
+
Icon,
|
|
4187
|
+
{
|
|
4188
|
+
icon: ArrowLeftIcon,
|
|
4189
|
+
iconSize: "small",
|
|
4190
|
+
className: BackLink_default.icon
|
|
4191
|
+
}
|
|
4192
|
+
),
|
|
4175
4193
|
props.label
|
|
4176
4194
|
] }) });
|
|
4177
4195
|
});
|
|
@@ -6232,8 +6250,96 @@ var DescriptionListGroup = forwardRef39((props, ref) => {
|
|
|
6232
6250
|
});
|
|
6233
6251
|
DescriptionListGroup.displayName = "DescriptionListGroup";
|
|
6234
6252
|
|
|
6253
|
+
// src/components/DetailList/DetailList.tsx
|
|
6254
|
+
import { forwardRef as forwardRef40 } from "react";
|
|
6255
|
+
|
|
6256
|
+
// src/components/DetailList/DetailList.module.css
|
|
6257
|
+
var DetailList_default = {
|
|
6258
|
+
list: "DetailList_list",
|
|
6259
|
+
"list--with-dividers": "DetailList_list--with-dividers",
|
|
6260
|
+
row: "DetailList_row",
|
|
6261
|
+
"list--striped": "DetailList_list--striped",
|
|
6262
|
+
"list--normal": "DetailList_list--normal",
|
|
6263
|
+
cell: "DetailList_cell",
|
|
6264
|
+
"list--compact": "DetailList_list--compact",
|
|
6265
|
+
"list--extra-compact": "DetailList_list--extra-compact",
|
|
6266
|
+
term: "DetailList_term"
|
|
6267
|
+
};
|
|
6268
|
+
|
|
6269
|
+
// src/components/DetailList/DetailList.tsx
|
|
6270
|
+
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
6271
|
+
var DetailList = forwardRef40(
|
|
6272
|
+
(props, ref) => {
|
|
6273
|
+
const {
|
|
6274
|
+
id,
|
|
6275
|
+
className,
|
|
6276
|
+
htmlProps,
|
|
6277
|
+
withDividers = true,
|
|
6278
|
+
striped = true,
|
|
6279
|
+
density = "normal",
|
|
6280
|
+
...rest
|
|
6281
|
+
} = props;
|
|
6282
|
+
return /* @__PURE__ */ jsx215(
|
|
6283
|
+
"dl",
|
|
6284
|
+
{
|
|
6285
|
+
ref,
|
|
6286
|
+
...getBaseHTMLProps(
|
|
6287
|
+
id,
|
|
6288
|
+
cn(
|
|
6289
|
+
className,
|
|
6290
|
+
DetailList_default.list,
|
|
6291
|
+
DetailList_default[`list--${getDensityCn(density)}`],
|
|
6292
|
+
withDividers && DetailList_default["list--with-dividers"],
|
|
6293
|
+
striped && DetailList_default["list--striped"]
|
|
6294
|
+
),
|
|
6295
|
+
htmlProps,
|
|
6296
|
+
rest
|
|
6297
|
+
)
|
|
6298
|
+
}
|
|
6299
|
+
);
|
|
6300
|
+
}
|
|
6301
|
+
);
|
|
6302
|
+
DetailList.displayName = "DetailList";
|
|
6303
|
+
|
|
6304
|
+
// src/components/DetailList/DetailListDesc.tsx
|
|
6305
|
+
import { forwardRef as forwardRef41 } from "react";
|
|
6306
|
+
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
6307
|
+
var DetailListDesc = forwardRef41(
|
|
6308
|
+
({ className, ...rest }, ref) => {
|
|
6309
|
+
return /* @__PURE__ */ jsx216("dd", { ref, className: cn(className, DetailList_default.cell), ...rest });
|
|
6310
|
+
}
|
|
6311
|
+
);
|
|
6312
|
+
DetailListDesc.displayName = "DetailListDesc";
|
|
6313
|
+
|
|
6314
|
+
// src/components/DetailList/DetailListRow.tsx
|
|
6315
|
+
import { forwardRef as forwardRef42 } from "react";
|
|
6316
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
6317
|
+
var DetailListRow = forwardRef42(
|
|
6318
|
+
({ className, ...rest }, ref) => {
|
|
6319
|
+
return /* @__PURE__ */ jsx217("div", { ref, className: cn(className, DetailList_default.row), ...rest });
|
|
6320
|
+
}
|
|
6321
|
+
);
|
|
6322
|
+
DetailListRow.displayName = "DetailListRow";
|
|
6323
|
+
|
|
6324
|
+
// src/components/DetailList/DetailListTerm.tsx
|
|
6325
|
+
import { forwardRef as forwardRef43 } from "react";
|
|
6326
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
6327
|
+
var DetailListTerm = forwardRef43(
|
|
6328
|
+
({ className, ...rest }, ref) => {
|
|
6329
|
+
return /* @__PURE__ */ jsx218(
|
|
6330
|
+
"dt",
|
|
6331
|
+
{
|
|
6332
|
+
ref,
|
|
6333
|
+
className: cn(className, DetailList_default.cell, DetailList_default.term),
|
|
6334
|
+
...rest
|
|
6335
|
+
}
|
|
6336
|
+
);
|
|
6337
|
+
}
|
|
6338
|
+
);
|
|
6339
|
+
DetailListTerm.displayName = "DetailListTerm";
|
|
6340
|
+
|
|
6235
6341
|
// src/components/Drawer/Drawer.tsx
|
|
6236
|
-
import { forwardRef as
|
|
6342
|
+
import { forwardRef as forwardRef44, useId as useId6 } from "react";
|
|
6237
6343
|
import { createPortal } from "react-dom";
|
|
6238
6344
|
|
|
6239
6345
|
// src/components/Drawer/Drawer.module.css
|
|
@@ -6253,8 +6359,8 @@ var Drawer_default = {
|
|
|
6253
6359
|
};
|
|
6254
6360
|
|
|
6255
6361
|
// src/components/Drawer/Drawer.tsx
|
|
6256
|
-
import { jsx as
|
|
6257
|
-
var Drawer =
|
|
6362
|
+
import { jsx as jsx219, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6363
|
+
var Drawer = forwardRef44((props, ref) => {
|
|
6258
6364
|
const {
|
|
6259
6365
|
children,
|
|
6260
6366
|
onClose,
|
|
@@ -6325,12 +6431,12 @@ var Drawer = forwardRef40((props, ref) => {
|
|
|
6325
6431
|
utilStyles_default["scrollable-y"]
|
|
6326
6432
|
),
|
|
6327
6433
|
children: [
|
|
6328
|
-
hasHeader && /* @__PURE__ */
|
|
6434
|
+
hasHeader && /* @__PURE__ */ jsx219("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx219(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
|
|
6329
6435
|
children
|
|
6330
6436
|
]
|
|
6331
6437
|
}
|
|
6332
6438
|
),
|
|
6333
|
-
/* @__PURE__ */
|
|
6439
|
+
/* @__PURE__ */ jsx219(
|
|
6334
6440
|
Button,
|
|
6335
6441
|
{
|
|
6336
6442
|
className: cn(Drawer_default["button--close"]),
|
|
@@ -6408,7 +6514,7 @@ var EmptyContent_default = {
|
|
|
6408
6514
|
};
|
|
6409
6515
|
|
|
6410
6516
|
// src/components/EmptyContent/EmptyContent.tsx
|
|
6411
|
-
import { jsx as
|
|
6517
|
+
import { jsx as jsx220, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6412
6518
|
function EmptyContent({
|
|
6413
6519
|
title,
|
|
6414
6520
|
message,
|
|
@@ -6416,15 +6522,15 @@ function EmptyContent({
|
|
|
6416
6522
|
className,
|
|
6417
6523
|
...rest
|
|
6418
6524
|
}) {
|
|
6419
|
-
return /* @__PURE__ */
|
|
6420
|
-
title && /* @__PURE__ */
|
|
6421
|
-
/* @__PURE__ */
|
|
6525
|
+
return /* @__PURE__ */ jsx220("div", { ...rest, className: cn(className, EmptyContent_default.containter), children: /* @__PURE__ */ jsxs42("div", { className: EmptyContent_default.text, children: [
|
|
6526
|
+
title && /* @__PURE__ */ jsx220(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
|
|
6527
|
+
/* @__PURE__ */ jsx220(Paragraph, { className: EmptyContent_default.message, children: message })
|
|
6422
6528
|
] }) });
|
|
6423
6529
|
}
|
|
6424
6530
|
EmptyContent.displayName = "EmptyContent";
|
|
6425
6531
|
|
|
6426
6532
|
// src/components/FavStar/FavStar.tsx
|
|
6427
|
-
import { forwardRef as
|
|
6533
|
+
import { forwardRef as forwardRef45, useId as useId8 } from "react";
|
|
6428
6534
|
|
|
6429
6535
|
// src/components/FavStar/FavStar.module.css
|
|
6430
6536
|
var FavStar_default = {
|
|
@@ -6473,8 +6579,8 @@ function useControllableState(props) {
|
|
|
6473
6579
|
}
|
|
6474
6580
|
|
|
6475
6581
|
// src/components/FavStar/FavStar.tsx
|
|
6476
|
-
import { jsx as
|
|
6477
|
-
var FavStar =
|
|
6582
|
+
import { jsx as jsx221, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
6583
|
+
var FavStar = forwardRef45(
|
|
6478
6584
|
({
|
|
6479
6585
|
id,
|
|
6480
6586
|
className,
|
|
@@ -6510,7 +6616,7 @@ var FavStar = forwardRef41(
|
|
|
6510
6616
|
style,
|
|
6511
6617
|
htmlFor: id != null ? id : generatedId,
|
|
6512
6618
|
children: [
|
|
6513
|
-
/* @__PURE__ */
|
|
6619
|
+
/* @__PURE__ */ jsx221(
|
|
6514
6620
|
"input",
|
|
6515
6621
|
{
|
|
6516
6622
|
...props,
|
|
@@ -6523,8 +6629,8 @@ var FavStar = forwardRef41(
|
|
|
6523
6629
|
className: utilStyles_default["hide-input"]
|
|
6524
6630
|
}
|
|
6525
6631
|
),
|
|
6526
|
-
/* @__PURE__ */
|
|
6527
|
-
/* @__PURE__ */
|
|
6632
|
+
/* @__PURE__ */ jsx221(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
|
|
6633
|
+
/* @__PURE__ */ jsx221(
|
|
6528
6634
|
Icon,
|
|
6529
6635
|
{
|
|
6530
6636
|
iconSize: size2,
|
|
@@ -6554,7 +6660,7 @@ var Feedback_default = {
|
|
|
6554
6660
|
};
|
|
6555
6661
|
|
|
6556
6662
|
// src/components/Stack/Stack.tsx
|
|
6557
|
-
import { forwardRef as
|
|
6663
|
+
import { forwardRef as forwardRef46 } from "react";
|
|
6558
6664
|
|
|
6559
6665
|
// src/components/Stack/Stack.module.css
|
|
6560
6666
|
var Stack_default = {
|
|
@@ -6590,8 +6696,8 @@ var Stack_default = {
|
|
|
6590
6696
|
};
|
|
6591
6697
|
|
|
6592
6698
|
// src/components/Stack/Stack.tsx
|
|
6593
|
-
import { jsx as
|
|
6594
|
-
var HStack =
|
|
6699
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
6700
|
+
var HStack = forwardRef46(
|
|
6595
6701
|
({
|
|
6596
6702
|
id,
|
|
6597
6703
|
className,
|
|
@@ -6608,7 +6714,7 @@ var HStack = forwardRef42(
|
|
|
6608
6714
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6609
6715
|
["--dds-stack-justify-content"]: justify
|
|
6610
6716
|
};
|
|
6611
|
-
return /* @__PURE__ */
|
|
6717
|
+
return /* @__PURE__ */ jsx222(
|
|
6612
6718
|
"div",
|
|
6613
6719
|
{
|
|
6614
6720
|
ref,
|
|
@@ -6630,7 +6736,7 @@ var HStack = forwardRef42(
|
|
|
6630
6736
|
}
|
|
6631
6737
|
);
|
|
6632
6738
|
HStack.displayName = "HStack";
|
|
6633
|
-
var VStack =
|
|
6739
|
+
var VStack = forwardRef46(
|
|
6634
6740
|
({
|
|
6635
6741
|
id,
|
|
6636
6742
|
className,
|
|
@@ -6647,7 +6753,7 @@ var VStack = forwardRef42(
|
|
|
6647
6753
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6648
6754
|
["--dds-stack-justify-content"]: justify
|
|
6649
6755
|
};
|
|
6650
|
-
return /* @__PURE__ */
|
|
6756
|
+
return /* @__PURE__ */ jsx222(
|
|
6651
6757
|
"div",
|
|
6652
6758
|
{
|
|
6653
6759
|
ref,
|
|
@@ -6674,7 +6780,7 @@ function spacingPropToCn(value) {
|
|
|
6674
6780
|
}
|
|
6675
6781
|
|
|
6676
6782
|
// src/components/TextArea/TextArea.tsx
|
|
6677
|
-
import { forwardRef as
|
|
6783
|
+
import { forwardRef as forwardRef47, useEffect as useEffect18, useId as useId9, useRef as useRef19, useState as useState12 } from "react";
|
|
6678
6784
|
|
|
6679
6785
|
// src/components/TextArea/TextArea.module.css
|
|
6680
6786
|
var TextArea_default = {
|
|
@@ -6683,8 +6789,8 @@ var TextArea_default = {
|
|
|
6683
6789
|
};
|
|
6684
6790
|
|
|
6685
6791
|
// src/components/TextArea/TextArea.tsx
|
|
6686
|
-
import { jsx as
|
|
6687
|
-
var TextArea =
|
|
6792
|
+
import { jsx as jsx223, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
6793
|
+
var TextArea = forwardRef47(
|
|
6688
6794
|
(props, ref) => {
|
|
6689
6795
|
const {
|
|
6690
6796
|
id,
|
|
@@ -6742,7 +6848,7 @@ var TextArea = forwardRef43(
|
|
|
6742
6848
|
className: cn(className, Input_default.container),
|
|
6743
6849
|
style: { ...style },
|
|
6744
6850
|
children: [
|
|
6745
|
-
hasLabel && /* @__PURE__ */
|
|
6851
|
+
hasLabel && /* @__PURE__ */ jsx223(
|
|
6746
6852
|
Label,
|
|
6747
6853
|
{
|
|
6748
6854
|
showRequiredStyling,
|
|
@@ -6752,7 +6858,7 @@ var TextArea = forwardRef43(
|
|
|
6752
6858
|
children: label
|
|
6753
6859
|
}
|
|
6754
6860
|
),
|
|
6755
|
-
/* @__PURE__ */
|
|
6861
|
+
/* @__PURE__ */ jsx223(
|
|
6756
6862
|
"textarea",
|
|
6757
6863
|
{
|
|
6758
6864
|
ref: multiRef,
|
|
@@ -6801,7 +6907,7 @@ var TextArea = forwardRef43(
|
|
|
6801
6907
|
TextArea.displayName = "TextArea";
|
|
6802
6908
|
|
|
6803
6909
|
// src/components/Feedback/CommentComponent.tsx
|
|
6804
|
-
import { jsx as
|
|
6910
|
+
import { jsx as jsx224, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
6805
6911
|
var CommentComponent = ({
|
|
6806
6912
|
rating,
|
|
6807
6913
|
feedbackText,
|
|
@@ -6815,7 +6921,7 @@ var CommentComponent = ({
|
|
|
6815
6921
|
}) => {
|
|
6816
6922
|
return /* @__PURE__ */ jsxs45(VStack, { gap: "x1", align: "flex-start", children: [
|
|
6817
6923
|
/* @__PURE__ */ jsxs45("span", { className: Feedback_default["rating-submitted-title"], children: [
|
|
6818
|
-
/* @__PURE__ */
|
|
6924
|
+
/* @__PURE__ */ jsx224(
|
|
6819
6925
|
Icon,
|
|
6820
6926
|
{
|
|
6821
6927
|
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
@@ -6827,7 +6933,7 @@ var CommentComponent = ({
|
|
|
6827
6933
|
" "
|
|
6828
6934
|
] })
|
|
6829
6935
|
] }),
|
|
6830
|
-
/* @__PURE__ */
|
|
6936
|
+
/* @__PURE__ */ jsx224(
|
|
6831
6937
|
TextArea,
|
|
6832
6938
|
{
|
|
6833
6939
|
value: feedbackText,
|
|
@@ -6836,7 +6942,7 @@ var CommentComponent = ({
|
|
|
6836
6942
|
tip: textAreaTip
|
|
6837
6943
|
}
|
|
6838
6944
|
),
|
|
6839
|
-
/* @__PURE__ */
|
|
6945
|
+
/* @__PURE__ */ jsx224(
|
|
6840
6946
|
Button,
|
|
6841
6947
|
{
|
|
6842
6948
|
purpose: "secondary",
|
|
@@ -6853,7 +6959,7 @@ var CommentComponent = ({
|
|
|
6853
6959
|
import {
|
|
6854
6960
|
Children as ReactChildren4,
|
|
6855
6961
|
cloneElement as cloneElement4,
|
|
6856
|
-
forwardRef as
|
|
6962
|
+
forwardRef as forwardRef48,
|
|
6857
6963
|
isValidElement as isValidElement5,
|
|
6858
6964
|
useEffect as useEffect19,
|
|
6859
6965
|
useId as useId10,
|
|
@@ -6870,8 +6976,8 @@ var Tooltip_default = {
|
|
|
6870
6976
|
};
|
|
6871
6977
|
|
|
6872
6978
|
// src/components/Tooltip/Tooltip.tsx
|
|
6873
|
-
import { jsx as
|
|
6874
|
-
var Tooltip =
|
|
6979
|
+
import { jsx as jsx225, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
6980
|
+
var Tooltip = forwardRef48(
|
|
6875
6981
|
(props, ref) => {
|
|
6876
6982
|
const {
|
|
6877
6983
|
text,
|
|
@@ -6984,15 +7090,15 @@ var Tooltip = forwardRef44(
|
|
|
6984
7090
|
),
|
|
6985
7091
|
children: [
|
|
6986
7092
|
text,
|
|
6987
|
-
/* @__PURE__ */
|
|
6988
|
-
/* @__PURE__ */
|
|
7093
|
+
/* @__PURE__ */ jsx225("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs46("svg", { width: "36", height: "9", children: [
|
|
7094
|
+
/* @__PURE__ */ jsx225(
|
|
6989
7095
|
"path",
|
|
6990
7096
|
{
|
|
6991
7097
|
d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
|
|
6992
7098
|
className: Tooltip_default["svg-arrow__background"]
|
|
6993
7099
|
}
|
|
6994
7100
|
),
|
|
6995
|
-
/* @__PURE__ */
|
|
7101
|
+
/* @__PURE__ */ jsx225(
|
|
6996
7102
|
"path",
|
|
6997
7103
|
{
|
|
6998
7104
|
fillRule: "evenodd",
|
|
@@ -7011,7 +7117,7 @@ var Tooltip = forwardRef44(
|
|
|
7011
7117
|
Tooltip.displayName = "Tooltip";
|
|
7012
7118
|
|
|
7013
7119
|
// src/components/Feedback/RatingComponent.tsx
|
|
7014
|
-
import { jsx as
|
|
7120
|
+
import { jsx as jsx226, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7015
7121
|
var RatingComponent = ({
|
|
7016
7122
|
layout,
|
|
7017
7123
|
ratingLabel,
|
|
@@ -7021,7 +7127,7 @@ var RatingComponent = ({
|
|
|
7021
7127
|
handleRatingChange
|
|
7022
7128
|
}) => {
|
|
7023
7129
|
const layoutCn = layout === "vertical" ? "column" : "row";
|
|
7024
|
-
const button = (purpose, layout2) => /* @__PURE__ */
|
|
7130
|
+
const button = (purpose, layout2) => /* @__PURE__ */ jsx226(
|
|
7025
7131
|
"button",
|
|
7026
7132
|
{
|
|
7027
7133
|
"aria-label": purpose === "up" ? thumbUpTooltip : thumbDownTooltip,
|
|
@@ -7032,7 +7138,7 @@ var RatingComponent = ({
|
|
|
7032
7138
|
Feedback_default[`button--${layout2}`],
|
|
7033
7139
|
focusable
|
|
7034
7140
|
),
|
|
7035
|
-
children: /* @__PURE__ */
|
|
7141
|
+
children: /* @__PURE__ */ jsx226(
|
|
7036
7142
|
Icon,
|
|
7037
7143
|
{
|
|
7038
7144
|
icon: purpose === "up" ? ThumbUpIcon : ThumbDownIcon,
|
|
@@ -7049,10 +7155,10 @@ var RatingComponent = ({
|
|
|
7049
7155
|
Feedback_default[`rating-container--${layoutCn}`]
|
|
7050
7156
|
),
|
|
7051
7157
|
children: [
|
|
7052
|
-
/* @__PURE__ */
|
|
7053
|
-
loading ? /* @__PURE__ */
|
|
7054
|
-
/* @__PURE__ */
|
|
7055
|
-
/* @__PURE__ */
|
|
7158
|
+
/* @__PURE__ */ jsx226(Label, { children: ratingLabel }),
|
|
7159
|
+
loading ? /* @__PURE__ */ jsx226(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ jsxs47(HStack, { gap: "x1", children: [
|
|
7160
|
+
/* @__PURE__ */ jsx226(Tooltip, { text: thumbUpTooltip, children: button("up", layout) }),
|
|
7161
|
+
/* @__PURE__ */ jsx226(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx226("div", { children: button("down", layout) }) })
|
|
7056
7162
|
] })
|
|
7057
7163
|
]
|
|
7058
7164
|
}
|
|
@@ -7060,7 +7166,7 @@ var RatingComponent = ({
|
|
|
7060
7166
|
};
|
|
7061
7167
|
|
|
7062
7168
|
// src/components/Feedback/Feedback.tsx
|
|
7063
|
-
import { jsx as
|
|
7169
|
+
import { jsx as jsx227 } from "react/jsx-runtime";
|
|
7064
7170
|
var Feedback = ({
|
|
7065
7171
|
layout = "vertical",
|
|
7066
7172
|
ratingLabel = "Hva syns du om tjenesten?",
|
|
@@ -7106,7 +7212,7 @@ var Feedback = ({
|
|
|
7106
7212
|
isSubmittedProp === void 0 && setIsFeedbackSubmitted(true);
|
|
7107
7213
|
};
|
|
7108
7214
|
if (rating === null && !isFeedbackSubmitted) {
|
|
7109
|
-
return /* @__PURE__ */
|
|
7215
|
+
return /* @__PURE__ */ jsx227(
|
|
7110
7216
|
RatingComponent,
|
|
7111
7217
|
{
|
|
7112
7218
|
layout,
|
|
@@ -7119,7 +7225,7 @@ var Feedback = ({
|
|
|
7119
7225
|
);
|
|
7120
7226
|
}
|
|
7121
7227
|
if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
|
|
7122
|
-
return /* @__PURE__ */
|
|
7228
|
+
return /* @__PURE__ */ jsx227(
|
|
7123
7229
|
CommentComponent,
|
|
7124
7230
|
{
|
|
7125
7231
|
rating,
|
|
@@ -7134,11 +7240,11 @@ var Feedback = ({
|
|
|
7134
7240
|
}
|
|
7135
7241
|
);
|
|
7136
7242
|
}
|
|
7137
|
-
return /* @__PURE__ */
|
|
7243
|
+
return /* @__PURE__ */ jsx227(Paragraph, { children: submittedTitle });
|
|
7138
7244
|
};
|
|
7139
7245
|
|
|
7140
7246
|
// src/components/Fieldset/Fieldset.tsx
|
|
7141
|
-
import { forwardRef as
|
|
7247
|
+
import { forwardRef as forwardRef49 } from "react";
|
|
7142
7248
|
|
|
7143
7249
|
// src/components/Fieldset/Fieldset.module.css
|
|
7144
7250
|
var Fieldset_default = {
|
|
@@ -7146,11 +7252,11 @@ var Fieldset_default = {
|
|
|
7146
7252
|
};
|
|
7147
7253
|
|
|
7148
7254
|
// src/components/Fieldset/Fieldset.tsx
|
|
7149
|
-
import { jsx as
|
|
7150
|
-
var Fieldset =
|
|
7255
|
+
import { jsx as jsx228 } from "react/jsx-runtime";
|
|
7256
|
+
var Fieldset = forwardRef49(
|
|
7151
7257
|
(props, ref) => {
|
|
7152
7258
|
const { id, className, htmlProps, ...rest } = props;
|
|
7153
|
-
return /* @__PURE__ */
|
|
7259
|
+
return /* @__PURE__ */ jsx228(
|
|
7154
7260
|
"fieldset",
|
|
7155
7261
|
{
|
|
7156
7262
|
ref,
|
|
@@ -7169,14 +7275,14 @@ var Fieldset = forwardRef45(
|
|
|
7169
7275
|
import { useId as useId11 } from "react";
|
|
7170
7276
|
|
|
7171
7277
|
// src/components/FileUploader/ErrorList.tsx
|
|
7172
|
-
import { jsx as
|
|
7278
|
+
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
7173
7279
|
var ErrorList = (props) => {
|
|
7174
7280
|
const { errors } = props;
|
|
7175
7281
|
if (errors.length < 1) {
|
|
7176
7282
|
return null;
|
|
7177
7283
|
}
|
|
7178
7284
|
if (errors.length === 1) {
|
|
7179
|
-
return /* @__PURE__ */
|
|
7285
|
+
return /* @__PURE__ */ jsx229(
|
|
7180
7286
|
InputMessage,
|
|
7181
7287
|
{
|
|
7182
7288
|
id: errors[0].id,
|
|
@@ -7185,8 +7291,8 @@ var ErrorList = (props) => {
|
|
|
7185
7291
|
}
|
|
7186
7292
|
);
|
|
7187
7293
|
}
|
|
7188
|
-
return /* @__PURE__ */
|
|
7189
|
-
return /* @__PURE__ */
|
|
7294
|
+
return /* @__PURE__ */ jsx229("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
|
|
7295
|
+
return /* @__PURE__ */ jsx229("li", { children: /* @__PURE__ */ jsx229(
|
|
7190
7296
|
InputMessage,
|
|
7191
7297
|
{
|
|
7192
7298
|
id,
|
|
@@ -7213,7 +7319,7 @@ var FileUploader_default = {
|
|
|
7213
7319
|
};
|
|
7214
7320
|
|
|
7215
7321
|
// src/components/FileUploader/File.tsx
|
|
7216
|
-
import { jsx as
|
|
7322
|
+
import { jsx as jsx230, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7217
7323
|
var File = (props) => {
|
|
7218
7324
|
const { parentId, index, file: stateFile, removeFile, isValid } = props;
|
|
7219
7325
|
const errorsList = stateFile.errors.map((e, errorIndex) => ({
|
|
@@ -7222,21 +7328,21 @@ var File = (props) => {
|
|
|
7222
7328
|
}));
|
|
7223
7329
|
return /* @__PURE__ */ jsxs48("li", { children: [
|
|
7224
7330
|
/* @__PURE__ */ jsxs48("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
|
|
7225
|
-
/* @__PURE__ */
|
|
7331
|
+
/* @__PURE__ */ jsx230(
|
|
7226
7332
|
"span",
|
|
7227
7333
|
{
|
|
7228
7334
|
className: cn(FileUploader_default.file__name, typographyStyles_default["body-sans-02"]),
|
|
7229
7335
|
children: stateFile.file.name
|
|
7230
7336
|
}
|
|
7231
7337
|
),
|
|
7232
|
-
/* @__PURE__ */
|
|
7338
|
+
/* @__PURE__ */ jsx230(
|
|
7233
7339
|
Icon,
|
|
7234
7340
|
{
|
|
7235
7341
|
icon: isValid ? CheckCircledIcon : ErrorIcon,
|
|
7236
7342
|
className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
|
|
7237
7343
|
}
|
|
7238
7344
|
),
|
|
7239
|
-
/* @__PURE__ */
|
|
7345
|
+
/* @__PURE__ */ jsx230(
|
|
7240
7346
|
Button,
|
|
7241
7347
|
{
|
|
7242
7348
|
size: "small",
|
|
@@ -7255,7 +7361,7 @@ var File = (props) => {
|
|
|
7255
7361
|
}
|
|
7256
7362
|
)
|
|
7257
7363
|
] }),
|
|
7258
|
-
/* @__PURE__ */
|
|
7364
|
+
/* @__PURE__ */ jsx230(ErrorList, { errors: errorsList })
|
|
7259
7365
|
] });
|
|
7260
7366
|
};
|
|
7261
7367
|
|
|
@@ -7547,19 +7653,19 @@ var useFileUploader = (props) => {
|
|
|
7547
7653
|
};
|
|
7548
7654
|
|
|
7549
7655
|
// src/components/VisuallyHidden/VisuallyHidden.tsx
|
|
7550
|
-
import { jsx as
|
|
7656
|
+
import { jsx as jsx231 } from "react/jsx-runtime";
|
|
7551
7657
|
var VisuallyHidden = (props) => {
|
|
7552
7658
|
const { id, className, htmlProps, as, ...rest } = props;
|
|
7553
7659
|
const cl = cn(className, utilStyles_default["visually-hidden"]);
|
|
7554
7660
|
if (as === "div") {
|
|
7555
|
-
return /* @__PURE__ */
|
|
7661
|
+
return /* @__PURE__ */ jsx231("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
|
|
7556
7662
|
}
|
|
7557
|
-
return /* @__PURE__ */
|
|
7663
|
+
return /* @__PURE__ */ jsx231("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
|
|
7558
7664
|
};
|
|
7559
7665
|
VisuallyHidden.displayName = "VisuallyHidden";
|
|
7560
7666
|
|
|
7561
7667
|
// src/components/FileUploader/FileUploader.tsx
|
|
7562
|
-
import { jsx as
|
|
7668
|
+
import { jsx as jsx232, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7563
7669
|
var FileUploader = (props) => {
|
|
7564
7670
|
const {
|
|
7565
7671
|
id,
|
|
@@ -7608,7 +7714,7 @@ var FileUploader = (props) => {
|
|
|
7608
7714
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
7609
7715
|
const buttonId = derivativeIdGenerator(uniqueId, "button");
|
|
7610
7716
|
const inputId = derivativeIdGenerator(uniqueId, "input");
|
|
7611
|
-
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */
|
|
7717
|
+
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx232(
|
|
7612
7718
|
File,
|
|
7613
7719
|
{
|
|
7614
7720
|
parentId: uniqueId,
|
|
@@ -7623,7 +7729,7 @@ var FileUploader = (props) => {
|
|
|
7623
7729
|
id: derivativeIdGenerator(uniqueId, `error-${index}`),
|
|
7624
7730
|
message: e
|
|
7625
7731
|
}));
|
|
7626
|
-
const button = /* @__PURE__ */
|
|
7732
|
+
const button = /* @__PURE__ */ jsx232(
|
|
7627
7733
|
Button,
|
|
7628
7734
|
{
|
|
7629
7735
|
...getButtonProps(),
|
|
@@ -7655,8 +7761,8 @@ var FileUploader = (props) => {
|
|
|
7655
7761
|
style: { ...style, width },
|
|
7656
7762
|
...rest,
|
|
7657
7763
|
children: [
|
|
7658
|
-
hasLabel && /* @__PURE__ */
|
|
7659
|
-
hasTip && /* @__PURE__ */
|
|
7764
|
+
hasLabel && /* @__PURE__ */ jsx232(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
|
|
7765
|
+
hasTip && /* @__PURE__ */ jsx232(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
|
|
7660
7766
|
withDragAndDrop ? /* @__PURE__ */ jsxs49(
|
|
7661
7767
|
"div",
|
|
7662
7768
|
{
|
|
@@ -7667,7 +7773,7 @@ var FileUploader = (props) => {
|
|
|
7667
7773
|
isDragActive && FileUploader_default["input-container--drag-active"]
|
|
7668
7774
|
),
|
|
7669
7775
|
children: [
|
|
7670
|
-
/* @__PURE__ */
|
|
7776
|
+
/* @__PURE__ */ jsx232(
|
|
7671
7777
|
"input",
|
|
7672
7778
|
{
|
|
7673
7779
|
...getInputProps(),
|
|
@@ -7676,16 +7782,16 @@ var FileUploader = (props) => {
|
|
|
7676
7782
|
}
|
|
7677
7783
|
),
|
|
7678
7784
|
dropAreaLabel,
|
|
7679
|
-
/* @__PURE__ */
|
|
7785
|
+
/* @__PURE__ */ jsx232(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
|
|
7680
7786
|
button
|
|
7681
7787
|
]
|
|
7682
7788
|
}
|
|
7683
7789
|
) : /* @__PURE__ */ jsxs49("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
|
|
7684
|
-
/* @__PURE__ */
|
|
7790
|
+
/* @__PURE__ */ jsx232("input", { ...getInputProps(), id: inputId }),
|
|
7685
7791
|
button
|
|
7686
7792
|
] }),
|
|
7687
|
-
/* @__PURE__ */
|
|
7688
|
-
!hideFileList && /* @__PURE__ */
|
|
7793
|
+
/* @__PURE__ */ jsx232(ErrorList, { errors: rootErrorsList }),
|
|
7794
|
+
!hideFileList && /* @__PURE__ */ jsx232("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
|
|
7689
7795
|
]
|
|
7690
7796
|
}
|
|
7691
7797
|
);
|
|
@@ -7693,7 +7799,7 @@ var FileUploader = (props) => {
|
|
|
7693
7799
|
FileUploader.displayName = "FileUploader";
|
|
7694
7800
|
|
|
7695
7801
|
// src/components/Footer/Footer.tsx
|
|
7696
|
-
import { forwardRef as
|
|
7802
|
+
import { forwardRef as forwardRef50 } from "react";
|
|
7697
7803
|
|
|
7698
7804
|
// src/components/Footer/Footer.module.css
|
|
7699
7805
|
var Footer_default = {
|
|
@@ -7709,10 +7815,10 @@ var Footer_default = {
|
|
|
7709
7815
|
};
|
|
7710
7816
|
|
|
7711
7817
|
// src/components/Footer/Footer.tsx
|
|
7712
|
-
import { jsx as
|
|
7713
|
-
var Footer =
|
|
7818
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
7819
|
+
var Footer = forwardRef50((props, ref) => {
|
|
7714
7820
|
const { className, ...rest } = props;
|
|
7715
|
-
return /* @__PURE__ */
|
|
7821
|
+
return /* @__PURE__ */ jsx233(
|
|
7716
7822
|
Contrast,
|
|
7717
7823
|
{
|
|
7718
7824
|
as: "footer",
|
|
@@ -7724,24 +7830,24 @@ var Footer = forwardRef46((props, ref) => {
|
|
|
7724
7830
|
});
|
|
7725
7831
|
|
|
7726
7832
|
// src/components/Footer/FooterListHeader.tsx
|
|
7727
|
-
import { forwardRef as
|
|
7728
|
-
import { jsx as
|
|
7729
|
-
var FooterListHeader =
|
|
7730
|
-
return /* @__PURE__ */
|
|
7833
|
+
import { forwardRef as forwardRef51 } from "react";
|
|
7834
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
7835
|
+
var FooterListHeader = forwardRef51((props, ref) => {
|
|
7836
|
+
return /* @__PURE__ */ jsx234(Heading, { level: 2, typographyType: "headingSans02", ref, ...props });
|
|
7731
7837
|
});
|
|
7732
7838
|
|
|
7733
7839
|
// src/components/Footer/FooterLogo.tsx
|
|
7734
|
-
import { forwardRef as
|
|
7840
|
+
import { forwardRef as forwardRef52 } from "react";
|
|
7735
7841
|
|
|
7736
7842
|
// src/components/Footer/norges_domstoler_logo.svg
|
|
7737
7843
|
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';
|
|
7738
7844
|
|
|
7739
7845
|
// src/components/Footer/FooterLogo.tsx
|
|
7740
|
-
import { jsx as
|
|
7741
|
-
var FooterLogo =
|
|
7846
|
+
import { jsx as jsx235 } from "react/jsx-runtime";
|
|
7847
|
+
var FooterLogo = forwardRef52(
|
|
7742
7848
|
(props, ref) => {
|
|
7743
7849
|
const { className, hideBreakpoint, ...rest } = props;
|
|
7744
|
-
return /* @__PURE__ */
|
|
7850
|
+
return /* @__PURE__ */ jsx235(
|
|
7745
7851
|
"img",
|
|
7746
7852
|
{
|
|
7747
7853
|
ref,
|
|
@@ -7760,12 +7866,12 @@ var FooterLogo = forwardRef48(
|
|
|
7760
7866
|
);
|
|
7761
7867
|
|
|
7762
7868
|
// src/components/Footer/FooterList.tsx
|
|
7763
|
-
import { forwardRef as
|
|
7764
|
-
import { jsx as
|
|
7765
|
-
var FooterList =
|
|
7869
|
+
import { forwardRef as forwardRef53 } from "react";
|
|
7870
|
+
import { jsx as jsx236 } from "react/jsx-runtime";
|
|
7871
|
+
var FooterList = forwardRef53(
|
|
7766
7872
|
(props, ref) => {
|
|
7767
7873
|
const { className, ...rest } = props;
|
|
7768
|
-
return /* @__PURE__ */
|
|
7874
|
+
return /* @__PURE__ */ jsx236(
|
|
7769
7875
|
"ul",
|
|
7770
7876
|
{
|
|
7771
7877
|
ref,
|
|
@@ -7781,11 +7887,11 @@ var FooterList = forwardRef49(
|
|
|
7781
7887
|
);
|
|
7782
7888
|
|
|
7783
7889
|
// src/components/Footer/FooterSocialsList.tsx
|
|
7784
|
-
import { forwardRef as
|
|
7785
|
-
import { jsx as
|
|
7786
|
-
var FooterSocialsList =
|
|
7890
|
+
import { forwardRef as forwardRef54 } from "react";
|
|
7891
|
+
import { jsx as jsx237 } from "react/jsx-runtime";
|
|
7892
|
+
var FooterSocialsList = forwardRef54((props, ref) => {
|
|
7787
7893
|
const { className, ...rest } = props;
|
|
7788
|
-
return /* @__PURE__ */
|
|
7894
|
+
return /* @__PURE__ */ jsx237(
|
|
7789
7895
|
"ul",
|
|
7790
7896
|
{
|
|
7791
7897
|
ref,
|
|
@@ -7800,11 +7906,11 @@ var FooterSocialsList = forwardRef50((props, ref) => {
|
|
|
7800
7906
|
});
|
|
7801
7907
|
|
|
7802
7908
|
// src/components/Footer/FooterSocialsGroup.tsx
|
|
7803
|
-
import { forwardRef as
|
|
7804
|
-
import { jsx as
|
|
7805
|
-
var FooterSocialsGroup =
|
|
7909
|
+
import { forwardRef as forwardRef55 } from "react";
|
|
7910
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
7911
|
+
var FooterSocialsGroup = forwardRef55((props, ref) => {
|
|
7806
7912
|
const { className, ...rest } = props;
|
|
7807
|
-
return /* @__PURE__ */
|
|
7913
|
+
return /* @__PURE__ */ jsx238(
|
|
7808
7914
|
"div",
|
|
7809
7915
|
{
|
|
7810
7916
|
ref,
|
|
@@ -7815,12 +7921,12 @@ var FooterSocialsGroup = forwardRef51((props, ref) => {
|
|
|
7815
7921
|
});
|
|
7816
7922
|
|
|
7817
7923
|
// src/components/Footer/FooterListGroup.tsx
|
|
7818
|
-
import { forwardRef as
|
|
7819
|
-
import { jsx as
|
|
7820
|
-
var FooterListGroup =
|
|
7924
|
+
import { forwardRef as forwardRef56 } from "react";
|
|
7925
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
7926
|
+
var FooterListGroup = forwardRef56(
|
|
7821
7927
|
(props, ref) => {
|
|
7822
7928
|
const { className, ...rest } = props;
|
|
7823
|
-
return /* @__PURE__ */
|
|
7929
|
+
return /* @__PURE__ */ jsx239(
|
|
7824
7930
|
"div",
|
|
7825
7931
|
{
|
|
7826
7932
|
ref,
|
|
@@ -7832,17 +7938,17 @@ var FooterListGroup = forwardRef52(
|
|
|
7832
7938
|
);
|
|
7833
7939
|
|
|
7834
7940
|
// src/components/Footer/FooterLeft.tsx
|
|
7835
|
-
import { forwardRef as
|
|
7836
|
-
import { jsx as
|
|
7837
|
-
var FooterLeft =
|
|
7941
|
+
import { forwardRef as forwardRef57 } from "react";
|
|
7942
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
7943
|
+
var FooterLeft = forwardRef57(
|
|
7838
7944
|
(props, ref) => {
|
|
7839
7945
|
const { className, ...rest } = props;
|
|
7840
|
-
return /* @__PURE__ */
|
|
7946
|
+
return /* @__PURE__ */ jsx240("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
|
|
7841
7947
|
}
|
|
7842
7948
|
);
|
|
7843
7949
|
|
|
7844
7950
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
7845
|
-
import { forwardRef as
|
|
7951
|
+
import { forwardRef as forwardRef58, useState as useState15 } from "react";
|
|
7846
7952
|
|
|
7847
7953
|
// src/components/GlobalMessage/GlobalMessage.module.css
|
|
7848
7954
|
var GlobalMessage_default = {
|
|
@@ -7856,13 +7962,13 @@ var GlobalMessage_default = {
|
|
|
7856
7962
|
};
|
|
7857
7963
|
|
|
7858
7964
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
7859
|
-
import { jsx as
|
|
7965
|
+
import { jsx as jsx241, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
7860
7966
|
var icons = {
|
|
7861
7967
|
info: InfoIcon,
|
|
7862
7968
|
danger: ErrorIcon,
|
|
7863
7969
|
warning: WarningIcon
|
|
7864
7970
|
};
|
|
7865
|
-
var GlobalMessage =
|
|
7971
|
+
var GlobalMessage = forwardRef58(
|
|
7866
7972
|
(props, ref) => {
|
|
7867
7973
|
const {
|
|
7868
7974
|
message,
|
|
@@ -7900,12 +8006,12 @@ var GlobalMessage = forwardRef54(
|
|
|
7900
8006
|
closable && GlobalMessage_default["content--closable"]
|
|
7901
8007
|
),
|
|
7902
8008
|
children: [
|
|
7903
|
-
/* @__PURE__ */
|
|
7904
|
-
children != null ? children : /* @__PURE__ */
|
|
8009
|
+
/* @__PURE__ */ jsx241(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
|
|
8010
|
+
children != null ? children : /* @__PURE__ */ jsx241("span", { children: message })
|
|
7905
8011
|
]
|
|
7906
8012
|
}
|
|
7907
8013
|
),
|
|
7908
|
-
closable && /* @__PURE__ */
|
|
8014
|
+
closable && /* @__PURE__ */ jsx241(
|
|
7909
8015
|
Button,
|
|
7910
8016
|
{
|
|
7911
8017
|
icon: CloseIcon,
|
|
@@ -7936,7 +8042,7 @@ var Grid_default = {
|
|
|
7936
8042
|
};
|
|
7937
8043
|
|
|
7938
8044
|
// src/components/Grid/Grid.tsx
|
|
7939
|
-
import { jsx as
|
|
8045
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
7940
8046
|
var Grid = (props) => {
|
|
7941
8047
|
const {
|
|
7942
8048
|
id,
|
|
@@ -7981,13 +8087,13 @@ var Grid = (props) => {
|
|
|
7981
8087
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7982
8088
|
["--dds-grid-xl-column-gap"]: (columnGap == null ? void 0 : columnGap.xl) ? columnGap.xl : "var(--dds-grid-xl-gutter-size)"
|
|
7983
8089
|
};
|
|
7984
|
-
return as === "div" ? /* @__PURE__ */
|
|
8090
|
+
return as === "div" ? /* @__PURE__ */ jsx242(
|
|
7985
8091
|
"div",
|
|
7986
8092
|
{
|
|
7987
8093
|
...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
|
|
7988
|
-
style: { ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables }
|
|
8094
|
+
style: { ...style, ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables }
|
|
7989
8095
|
}
|
|
7990
|
-
) : /* @__PURE__ */
|
|
8096
|
+
) : /* @__PURE__ */ jsx242(
|
|
7991
8097
|
"form",
|
|
7992
8098
|
{
|
|
7993
8099
|
...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
|
|
@@ -7998,7 +8104,7 @@ var Grid = (props) => {
|
|
|
7998
8104
|
Grid.displayName = "Grid";
|
|
7999
8105
|
|
|
8000
8106
|
// src/components/Grid/GridChild.tsx
|
|
8001
|
-
import { jsx as
|
|
8107
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
8002
8108
|
var isRelativeGridColumn = (type) => {
|
|
8003
8109
|
return type === "all" || type === "firstHalf" || type === "secondHalf";
|
|
8004
8110
|
};
|
|
@@ -8048,7 +8154,7 @@ var GridChild = (props) => {
|
|
|
8048
8154
|
firstHalf: "first-half",
|
|
8049
8155
|
secondHalf: "second-half"
|
|
8050
8156
|
};
|
|
8051
|
-
return /* @__PURE__ */
|
|
8157
|
+
return /* @__PURE__ */ jsx243(
|
|
8052
8158
|
"div",
|
|
8053
8159
|
{
|
|
8054
8160
|
...getBaseHTMLProps(
|
|
@@ -8069,7 +8175,7 @@ var GridChild = (props) => {
|
|
|
8069
8175
|
GridChild.displayName = "GridChild";
|
|
8070
8176
|
|
|
8071
8177
|
// src/components/InlineButton/InlineButton.tsx
|
|
8072
|
-
import { forwardRef as
|
|
8178
|
+
import { forwardRef as forwardRef59 } from "react";
|
|
8073
8179
|
|
|
8074
8180
|
// src/components/InlineButton/InlineButton.module.css
|
|
8075
8181
|
var InlineButton_default = {
|
|
@@ -8077,11 +8183,11 @@ var InlineButton_default = {
|
|
|
8077
8183
|
};
|
|
8078
8184
|
|
|
8079
8185
|
// src/components/InlineButton/InlineButton.tsx
|
|
8080
|
-
import { jsx as
|
|
8081
|
-
var InlineButton =
|
|
8186
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
8187
|
+
var InlineButton = forwardRef59(
|
|
8082
8188
|
(props, ref) => {
|
|
8083
8189
|
const { className, ...rest } = props;
|
|
8084
|
-
return /* @__PURE__ */
|
|
8190
|
+
return /* @__PURE__ */ jsx244(
|
|
8085
8191
|
"button",
|
|
8086
8192
|
{
|
|
8087
8193
|
ref,
|
|
@@ -8100,7 +8206,7 @@ var InlineButton = forwardRef55(
|
|
|
8100
8206
|
);
|
|
8101
8207
|
|
|
8102
8208
|
// src/components/InlineEdit/InlineEditTextArea.tsx
|
|
8103
|
-
import { forwardRef as
|
|
8209
|
+
import { forwardRef as forwardRef61, useRef as useRef23 } from "react";
|
|
8104
8210
|
|
|
8105
8211
|
// src/components/InlineEdit/InlineEdit.tsx
|
|
8106
8212
|
import {
|
|
@@ -8109,7 +8215,7 @@ import {
|
|
|
8109
8215
|
isValidElement as isValidElement6,
|
|
8110
8216
|
useState as useState16
|
|
8111
8217
|
} from "react";
|
|
8112
|
-
import { Fragment as Fragment6, jsx as
|
|
8218
|
+
import { Fragment as Fragment6, jsx as jsx245 } from "react/jsx-runtime";
|
|
8113
8219
|
var InlineEdit = (props) => {
|
|
8114
8220
|
const {
|
|
8115
8221
|
emptiable,
|
|
@@ -8159,12 +8265,12 @@ var InlineEdit = (props) => {
|
|
|
8159
8265
|
emptiable
|
|
8160
8266
|
})
|
|
8161
8267
|
);
|
|
8162
|
-
return /* @__PURE__ */
|
|
8268
|
+
return /* @__PURE__ */ jsx245(Fragment6, { children: inputChild });
|
|
8163
8269
|
};
|
|
8164
8270
|
InlineEdit.displayName = "InlineEdit";
|
|
8165
8271
|
|
|
8166
8272
|
// src/components/InlineEdit/InlineTextArea.tsx
|
|
8167
|
-
import { forwardRef as
|
|
8273
|
+
import { forwardRef as forwardRef60, useId as useId12, useRef as useRef22 } from "react";
|
|
8168
8274
|
|
|
8169
8275
|
// src/components/InlineEdit/InlineEdit.module.css
|
|
8170
8276
|
var InlineEdit_default = {
|
|
@@ -8185,8 +8291,8 @@ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs51(Visuall
|
|
|
8185
8291
|
] });
|
|
8186
8292
|
|
|
8187
8293
|
// src/components/InlineEdit/InlineTextArea.tsx
|
|
8188
|
-
import { jsx as
|
|
8189
|
-
var InlineTextArea =
|
|
8294
|
+
import { jsx as jsx246, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
8295
|
+
var InlineTextArea = forwardRef60((props, ref) => {
|
|
8190
8296
|
const {
|
|
8191
8297
|
id,
|
|
8192
8298
|
error,
|
|
@@ -8209,7 +8315,7 @@ var InlineTextArea = forwardRef56((props, ref) => {
|
|
|
8209
8315
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8210
8316
|
return /* @__PURE__ */ jsxs52("div", { className: InlineEdit_default.container, style: { width }, children: [
|
|
8211
8317
|
/* @__PURE__ */ jsxs52("div", { className: Input_default["input-group"], children: [
|
|
8212
|
-
!isEditing && !hideIcon && /* @__PURE__ */
|
|
8318
|
+
!isEditing && !hideIcon && /* @__PURE__ */ jsx246(
|
|
8213
8319
|
"span",
|
|
8214
8320
|
{
|
|
8215
8321
|
onClick: () => {
|
|
@@ -8217,10 +8323,10 @@ var InlineTextArea = forwardRef56((props, ref) => {
|
|
|
8217
8323
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
8218
8324
|
},
|
|
8219
8325
|
className: InlineEdit_default["icon-wrapper"],
|
|
8220
|
-
children: /* @__PURE__ */
|
|
8326
|
+
children: /* @__PURE__ */ jsx246(Icon, { icon: EditIcon, iconSize: "small" })
|
|
8221
8327
|
}
|
|
8222
8328
|
),
|
|
8223
|
-
/* @__PURE__ */
|
|
8329
|
+
/* @__PURE__ */ jsx246(
|
|
8224
8330
|
"textarea",
|
|
8225
8331
|
{
|
|
8226
8332
|
...rest,
|
|
@@ -8252,12 +8358,12 @@ var InlineTextArea = forwardRef56((props, ref) => {
|
|
|
8252
8358
|
InlineTextArea.displayName = "InlineTextArea";
|
|
8253
8359
|
|
|
8254
8360
|
// src/components/InlineEdit/InlineEditTextArea.tsx
|
|
8255
|
-
import { jsx as
|
|
8256
|
-
var InlineEditTextArea =
|
|
8361
|
+
import { jsx as jsx247 } from "react/jsx-runtime";
|
|
8362
|
+
var InlineEditTextArea = forwardRef61((props, ref) => {
|
|
8257
8363
|
const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
|
|
8258
8364
|
const textareaRef = useRef23(null);
|
|
8259
8365
|
const combinedRef = useCombinedRef(ref, textareaRef);
|
|
8260
|
-
return /* @__PURE__ */
|
|
8366
|
+
return /* @__PURE__ */ jsx247(
|
|
8261
8367
|
InlineEdit,
|
|
8262
8368
|
{
|
|
8263
8369
|
onSetValue,
|
|
@@ -8267,18 +8373,18 @@ var InlineEditTextArea = forwardRef57((props, ref) => {
|
|
|
8267
8373
|
onFocus,
|
|
8268
8374
|
onChange,
|
|
8269
8375
|
onBlur,
|
|
8270
|
-
children: /* @__PURE__ */
|
|
8376
|
+
children: /* @__PURE__ */ jsx247(InlineTextArea, { ref: combinedRef, ...rest })
|
|
8271
8377
|
}
|
|
8272
8378
|
);
|
|
8273
8379
|
});
|
|
8274
8380
|
|
|
8275
8381
|
// src/components/InlineEdit/InlineEditInput.tsx
|
|
8276
|
-
import { forwardRef as
|
|
8382
|
+
import { forwardRef as forwardRef63, useRef as useRef25 } from "react";
|
|
8277
8383
|
|
|
8278
8384
|
// src/components/InlineEdit/InlineInput.tsx
|
|
8279
|
-
import { forwardRef as
|
|
8280
|
-
import { jsx as
|
|
8281
|
-
var InlineInput =
|
|
8385
|
+
import { forwardRef as forwardRef62, useId as useId13, useRef as useRef24 } from "react";
|
|
8386
|
+
import { jsx as jsx248, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8387
|
+
var InlineInput = forwardRef62(
|
|
8282
8388
|
(props, ref) => {
|
|
8283
8389
|
const {
|
|
8284
8390
|
id,
|
|
@@ -8302,7 +8408,7 @@ var InlineInput = forwardRef58(
|
|
|
8302
8408
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8303
8409
|
return /* @__PURE__ */ jsxs53("div", { className: InlineEdit_default.container, style: { width }, children: [
|
|
8304
8410
|
/* @__PURE__ */ jsxs53("div", { className: Input_default["input-group"], children: [
|
|
8305
|
-
!isEditing && !hideIcon && /* @__PURE__ */
|
|
8411
|
+
!isEditing && !hideIcon && /* @__PURE__ */ jsx248(
|
|
8306
8412
|
"span",
|
|
8307
8413
|
{
|
|
8308
8414
|
onClick: () => {
|
|
@@ -8310,10 +8416,10 @@ var InlineInput = forwardRef58(
|
|
|
8310
8416
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
8311
8417
|
},
|
|
8312
8418
|
className: InlineEdit_default["icon-wrapper"],
|
|
8313
|
-
children: /* @__PURE__ */
|
|
8419
|
+
children: /* @__PURE__ */ jsx248(Icon, { icon: EditIcon, iconSize: "small" })
|
|
8314
8420
|
}
|
|
8315
8421
|
),
|
|
8316
|
-
/* @__PURE__ */
|
|
8422
|
+
/* @__PURE__ */ jsx248(
|
|
8317
8423
|
"input",
|
|
8318
8424
|
{
|
|
8319
8425
|
...rest,
|
|
@@ -8344,12 +8450,12 @@ var InlineInput = forwardRef58(
|
|
|
8344
8450
|
InlineInput.displayName = "InlineInput";
|
|
8345
8451
|
|
|
8346
8452
|
// src/components/InlineEdit/InlineEditInput.tsx
|
|
8347
|
-
import { jsx as
|
|
8348
|
-
var InlineEditInput =
|
|
8453
|
+
import { jsx as jsx249 } from "react/jsx-runtime";
|
|
8454
|
+
var InlineEditInput = forwardRef63((props, ref) => {
|
|
8349
8455
|
const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
|
|
8350
8456
|
const inputRef = useRef25(null);
|
|
8351
8457
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8352
|
-
return /* @__PURE__ */
|
|
8458
|
+
return /* @__PURE__ */ jsx249(
|
|
8353
8459
|
InlineEdit,
|
|
8354
8460
|
{
|
|
8355
8461
|
onSetValue,
|
|
@@ -8359,7 +8465,7 @@ var InlineEditInput = forwardRef59((props, ref) => {
|
|
|
8359
8465
|
onFocus,
|
|
8360
8466
|
onChange,
|
|
8361
8467
|
onBlur,
|
|
8362
|
-
children: /* @__PURE__ */
|
|
8468
|
+
children: /* @__PURE__ */ jsx249(InlineInput, { ...rest, ref: combinedRef })
|
|
8363
8469
|
}
|
|
8364
8470
|
);
|
|
8365
8471
|
});
|
|
@@ -8421,10 +8527,10 @@ var InternalHeader_default = {
|
|
|
8421
8527
|
};
|
|
8422
8528
|
|
|
8423
8529
|
// src/components/InternalHeader/NavigationItem.tsx
|
|
8424
|
-
import { forwardRef as
|
|
8425
|
-
import { jsx as
|
|
8426
|
-
var NavigationItem =
|
|
8427
|
-
return /* @__PURE__ */
|
|
8530
|
+
import { forwardRef as forwardRef64 } from "react";
|
|
8531
|
+
import { jsx as jsx250 } from "react/jsx-runtime";
|
|
8532
|
+
var NavigationItem = forwardRef64(({ isCurrent, ...rest }, ref) => {
|
|
8533
|
+
return /* @__PURE__ */ jsx250(
|
|
8428
8534
|
"a",
|
|
8429
8535
|
{
|
|
8430
8536
|
...rest,
|
|
@@ -8441,7 +8547,7 @@ var NavigationItem = forwardRef60(({ isCurrent, ...rest }, ref) => {
|
|
|
8441
8547
|
});
|
|
8442
8548
|
|
|
8443
8549
|
// src/components/InternalHeader/InternalHeader.tsx
|
|
8444
|
-
import { jsx as
|
|
8550
|
+
import { jsx as jsx251, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
8445
8551
|
var InternalHeader = (props) => {
|
|
8446
8552
|
const {
|
|
8447
8553
|
applicationDesc,
|
|
@@ -8475,7 +8581,7 @@ var InternalHeader = (props) => {
|
|
|
8475
8581
|
const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
|
|
8476
8582
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
8477
8583
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
8478
|
-
const navigation = hasNavigationElements ? /* @__PURE__ */
|
|
8584
|
+
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx251("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ jsx251(
|
|
8479
8585
|
"ul",
|
|
8480
8586
|
{
|
|
8481
8587
|
className: cn(
|
|
@@ -8486,7 +8592,7 @@ var InternalHeader = (props) => {
|
|
|
8486
8592
|
children: navItems.map((item, index) => {
|
|
8487
8593
|
const { href, ...rest2 } = item;
|
|
8488
8594
|
const isCurrent = href === currentPage;
|
|
8489
|
-
return /* @__PURE__ */
|
|
8595
|
+
return /* @__PURE__ */ jsx251("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ jsx251(
|
|
8490
8596
|
NavigationItem,
|
|
8491
8597
|
{
|
|
8492
8598
|
href,
|
|
@@ -8515,7 +8621,7 @@ var InternalHeader = (props) => {
|
|
|
8515
8621
|
rest
|
|
8516
8622
|
),
|
|
8517
8623
|
children: [
|
|
8518
|
-
/* @__PURE__ */
|
|
8624
|
+
/* @__PURE__ */ jsx251(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx251(
|
|
8519
8625
|
"a",
|
|
8520
8626
|
{
|
|
8521
8627
|
href: applicationHref,
|
|
@@ -8524,8 +8630,8 @@ var InternalHeader = (props) => {
|
|
|
8524
8630
|
children: applicationName
|
|
8525
8631
|
}
|
|
8526
8632
|
) : applicationName }),
|
|
8527
|
-
/* @__PURE__ */
|
|
8528
|
-
(hasContextMenu || navigation !== null) && /* @__PURE__ */
|
|
8633
|
+
/* @__PURE__ */ jsx251(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
|
|
8634
|
+
(hasContextMenu || navigation !== null) && /* @__PURE__ */ jsx251("div", { className: InternalHeader_default["bar-separator"] }),
|
|
8529
8635
|
navigation,
|
|
8530
8636
|
hasContextMenu && /* @__PURE__ */ jsxs54(
|
|
8531
8637
|
"div",
|
|
@@ -8536,7 +8642,7 @@ var InternalHeader = (props) => {
|
|
|
8536
8642
|
!hasContextMenuLargeScreen && hasSmallScreenBreakpoint && InternalHeader_default[`context-menu-group--small-screen-only-${smallScreenBreakpoint}`]
|
|
8537
8643
|
),
|
|
8538
8644
|
children: [
|
|
8539
|
-
/* @__PURE__ */
|
|
8645
|
+
/* @__PURE__ */ jsx251(
|
|
8540
8646
|
Button,
|
|
8541
8647
|
{
|
|
8542
8648
|
ref: buttonRef,
|
|
@@ -8556,8 +8662,8 @@ var InternalHeader = (props) => {
|
|
|
8556
8662
|
anchorRef: buttonRef,
|
|
8557
8663
|
className: InternalHeader_default["context-menu"],
|
|
8558
8664
|
children: [
|
|
8559
|
-
user && /* @__PURE__ */
|
|
8560
|
-
hasNavInContextMenu && /* @__PURE__ */
|
|
8665
|
+
user && /* @__PURE__ */ jsx251(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx251(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx251(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
|
|
8666
|
+
hasNavInContextMenu && /* @__PURE__ */ jsx251(
|
|
8561
8667
|
"nav",
|
|
8562
8668
|
{
|
|
8563
8669
|
"aria-label": "sidenavigasjon",
|
|
@@ -8565,10 +8671,10 @@ var InternalHeader = (props) => {
|
|
|
8565
8671
|
InternalHeader_default["nav--in-menu--small-screen"],
|
|
8566
8672
|
InternalHeader_default[`nav--in-menu--small-screen-${smallScreenBreakpoint}`]
|
|
8567
8673
|
),
|
|
8568
|
-
children: /* @__PURE__ */
|
|
8674
|
+
children: /* @__PURE__ */ jsx251(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ jsx251(OverflowMenuLink, { ...item })) })
|
|
8569
8675
|
}
|
|
8570
8676
|
),
|
|
8571
|
-
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */
|
|
8677
|
+
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ jsx251(
|
|
8572
8678
|
OverflowMenuDivider,
|
|
8573
8679
|
{
|
|
8574
8680
|
className: cn(
|
|
@@ -8577,8 +8683,8 @@ var InternalHeader = (props) => {
|
|
|
8577
8683
|
)
|
|
8578
8684
|
}
|
|
8579
8685
|
),
|
|
8580
|
-
hasContextMenuElements && /* @__PURE__ */
|
|
8581
|
-
return item.href ? /* @__PURE__ */
|
|
8686
|
+
hasContextMenuElements && /* @__PURE__ */ jsx251(OverflowMenuList, { children: contextMenuItems.map((item) => {
|
|
8687
|
+
return item.href ? /* @__PURE__ */ jsx251(OverflowMenuLink, { ...item }) : /* @__PURE__ */ jsx251(
|
|
8582
8688
|
OverflowMenuButton,
|
|
8583
8689
|
{
|
|
8584
8690
|
...item
|
|
@@ -8598,7 +8704,7 @@ var InternalHeader = (props) => {
|
|
|
8598
8704
|
InternalHeader.displayName = "InternalHeader";
|
|
8599
8705
|
|
|
8600
8706
|
// src/components/List/List.tsx
|
|
8601
|
-
import { forwardRef as
|
|
8707
|
+
import { forwardRef as forwardRef65 } from "react";
|
|
8602
8708
|
|
|
8603
8709
|
// src/components/List/List.module.css
|
|
8604
8710
|
var List_default = {
|
|
@@ -8610,8 +8716,8 @@ var List_default = {
|
|
|
8610
8716
|
};
|
|
8611
8717
|
|
|
8612
8718
|
// src/components/List/List.tsx
|
|
8613
|
-
import { jsx as
|
|
8614
|
-
var List =
|
|
8719
|
+
import { jsx as jsx252 } from "react/jsx-runtime";
|
|
8720
|
+
var List = forwardRef65((props, ref) => {
|
|
8615
8721
|
const {
|
|
8616
8722
|
listType = "unordered",
|
|
8617
8723
|
typographyType = "inherit",
|
|
@@ -8622,7 +8728,7 @@ var List = forwardRef61((props, ref) => {
|
|
|
8622
8728
|
...rest
|
|
8623
8729
|
} = props;
|
|
8624
8730
|
const List2 = listType === "ordered" ? "ol" : "ul";
|
|
8625
|
-
return /* @__PURE__ */
|
|
8731
|
+
return /* @__PURE__ */ jsx252(
|
|
8626
8732
|
List2,
|
|
8627
8733
|
{
|
|
8628
8734
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -8639,17 +8745,17 @@ var List = forwardRef61((props, ref) => {
|
|
|
8639
8745
|
List.displayName = "List";
|
|
8640
8746
|
|
|
8641
8747
|
// src/components/List/ListItem.tsx
|
|
8642
|
-
import { forwardRef as
|
|
8643
|
-
import { jsx as
|
|
8644
|
-
var ListItem =
|
|
8748
|
+
import { forwardRef as forwardRef66 } from "react";
|
|
8749
|
+
import { jsx as jsx253 } from "react/jsx-runtime";
|
|
8750
|
+
var ListItem = forwardRef66(
|
|
8645
8751
|
({ className, ...rest }, ref) => {
|
|
8646
|
-
return /* @__PURE__ */
|
|
8752
|
+
return /* @__PURE__ */ jsx253("li", { ref, ...rest, className: cn(className, List_default.li) });
|
|
8647
8753
|
}
|
|
8648
8754
|
);
|
|
8649
8755
|
ListItem.displayName = "ListItem";
|
|
8650
8756
|
|
|
8651
8757
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
8652
|
-
import { forwardRef as
|
|
8758
|
+
import { forwardRef as forwardRef67, useState as useState18 } from "react";
|
|
8653
8759
|
|
|
8654
8760
|
// src/components/LocalMessage/LocalMessage.module.css
|
|
8655
8761
|
var LocalMessage_default = {
|
|
@@ -8670,7 +8776,7 @@ var LocalMessage_default = {
|
|
|
8670
8776
|
};
|
|
8671
8777
|
|
|
8672
8778
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
8673
|
-
import { Fragment as Fragment7, jsx as
|
|
8779
|
+
import { Fragment as Fragment7, jsx as jsx254, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
8674
8780
|
var icons2 = {
|
|
8675
8781
|
info: InfoIcon,
|
|
8676
8782
|
danger: ErrorIcon,
|
|
@@ -8678,7 +8784,7 @@ var icons2 = {
|
|
|
8678
8784
|
success: CheckCircledIcon,
|
|
8679
8785
|
tips: TipIcon
|
|
8680
8786
|
};
|
|
8681
|
-
var LocalMessage =
|
|
8787
|
+
var LocalMessage = forwardRef67(
|
|
8682
8788
|
(props, ref) => {
|
|
8683
8789
|
const {
|
|
8684
8790
|
message,
|
|
@@ -8695,7 +8801,7 @@ var LocalMessage = forwardRef63(
|
|
|
8695
8801
|
} = props;
|
|
8696
8802
|
const [isClosed, setClosed] = useState18(false);
|
|
8697
8803
|
if (isClosed) {
|
|
8698
|
-
return /* @__PURE__ */
|
|
8804
|
+
return /* @__PURE__ */ jsx254(Fragment7, {});
|
|
8699
8805
|
}
|
|
8700
8806
|
return /* @__PURE__ */ jsxs55(
|
|
8701
8807
|
"div",
|
|
@@ -8716,15 +8822,15 @@ var LocalMessage = forwardRef63(
|
|
|
8716
8822
|
),
|
|
8717
8823
|
style: { ...htmlProps == null ? void 0 : htmlProps.style, width },
|
|
8718
8824
|
children: [
|
|
8719
|
-
/* @__PURE__ */
|
|
8825
|
+
/* @__PURE__ */ jsx254(
|
|
8720
8826
|
Icon,
|
|
8721
8827
|
{
|
|
8722
8828
|
icon: icons2[purpose],
|
|
8723
8829
|
className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
|
|
8724
8830
|
}
|
|
8725
8831
|
),
|
|
8726
|
-
/* @__PURE__ */
|
|
8727
|
-
closable && /* @__PURE__ */
|
|
8832
|
+
/* @__PURE__ */ jsx254("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ jsx254("span", { children: message }) }),
|
|
8833
|
+
closable && /* @__PURE__ */ jsx254(
|
|
8728
8834
|
Button,
|
|
8729
8835
|
{
|
|
8730
8836
|
icon: CloseIcon,
|
|
@@ -8747,7 +8853,7 @@ LocalMessage.displayName = "LocalMessage";
|
|
|
8747
8853
|
|
|
8748
8854
|
// src/components/Modal/Modal.tsx
|
|
8749
8855
|
import {
|
|
8750
|
-
forwardRef as
|
|
8856
|
+
forwardRef as forwardRef68,
|
|
8751
8857
|
useEffect as useEffect22,
|
|
8752
8858
|
useId as useId14
|
|
8753
8859
|
} from "react";
|
|
@@ -8788,8 +8894,8 @@ var Modal_default = {
|
|
|
8788
8894
|
};
|
|
8789
8895
|
|
|
8790
8896
|
// src/components/Modal/Modal.tsx
|
|
8791
|
-
import { jsx as
|
|
8792
|
-
var Modal =
|
|
8897
|
+
import { jsx as jsx255, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
8898
|
+
var Modal = forwardRef68((props, ref) => {
|
|
8793
8899
|
const {
|
|
8794
8900
|
isOpen = false,
|
|
8795
8901
|
parentElement = document.body,
|
|
@@ -8827,7 +8933,7 @@ var Modal = forwardRef64((props, ref) => {
|
|
|
8827
8933
|
useOnKeyDown(["Escape", "Esc"], () => handleClose());
|
|
8828
8934
|
const hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
8829
8935
|
return isOpen || hasTransitionedIn ? createPortal2(
|
|
8830
|
-
/* @__PURE__ */
|
|
8936
|
+
/* @__PURE__ */ jsx255(
|
|
8831
8937
|
"div",
|
|
8832
8938
|
{
|
|
8833
8939
|
className: cn(
|
|
@@ -8853,10 +8959,10 @@ var Modal = forwardRef64((props, ref) => {
|
|
|
8853
8959
|
elevation: 4,
|
|
8854
8960
|
children: [
|
|
8855
8961
|
/* @__PURE__ */ jsxs56("div", { className: Modal_default.content, children: [
|
|
8856
|
-
header && /* @__PURE__ */
|
|
8962
|
+
header && /* @__PURE__ */ jsx255("div", { id: headerId, className: Modal_default.header, children: typeof header === "string" ? /* @__PURE__ */ jsx255(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
|
|
8857
8963
|
children
|
|
8858
8964
|
] }),
|
|
8859
|
-
onClose && /* @__PURE__ */
|
|
8965
|
+
onClose && /* @__PURE__ */ jsx255(
|
|
8860
8966
|
Button,
|
|
8861
8967
|
{
|
|
8862
8968
|
size: "small",
|
|
@@ -8878,12 +8984,12 @@ var Modal = forwardRef64((props, ref) => {
|
|
|
8878
8984
|
Modal.displayName = "Modal";
|
|
8879
8985
|
|
|
8880
8986
|
// src/components/Modal/ModalBody.tsx
|
|
8881
|
-
import { forwardRef as
|
|
8882
|
-
import { jsx as
|
|
8883
|
-
var ModalBody =
|
|
8987
|
+
import { forwardRef as forwardRef69 } from "react";
|
|
8988
|
+
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
8989
|
+
var ModalBody = forwardRef69(
|
|
8884
8990
|
(props, ref) => {
|
|
8885
8991
|
const { children, id, className, scrollable, htmlProps, height, ...rest } = props;
|
|
8886
|
-
return /* @__PURE__ */
|
|
8992
|
+
return /* @__PURE__ */ jsx256(
|
|
8887
8993
|
"div",
|
|
8888
8994
|
{
|
|
8889
8995
|
ref,
|
|
@@ -8907,17 +9013,17 @@ var ModalBody = forwardRef65(
|
|
|
8907
9013
|
ModalBody.displayName = "ModalBody";
|
|
8908
9014
|
|
|
8909
9015
|
// src/components/Modal/ModalActions.tsx
|
|
8910
|
-
import { forwardRef as
|
|
8911
|
-
import { jsx as
|
|
8912
|
-
var ModalActions =
|
|
9016
|
+
import { forwardRef as forwardRef70 } from "react";
|
|
9017
|
+
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
9018
|
+
var ModalActions = forwardRef70(
|
|
8913
9019
|
({ className, ...rest }, ref) => {
|
|
8914
|
-
return /* @__PURE__ */
|
|
9020
|
+
return /* @__PURE__ */ jsx257("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
|
|
8915
9021
|
}
|
|
8916
9022
|
);
|
|
8917
9023
|
ModalActions.displayName = "ModalActions";
|
|
8918
9024
|
|
|
8919
9025
|
// src/components/Pagination/Pagination.tsx
|
|
8920
|
-
import { forwardRef as
|
|
9026
|
+
import { forwardRef as forwardRef73, useState as useState19 } from "react";
|
|
8921
9027
|
|
|
8922
9028
|
// src/components/Pagination/Pagination.module.css
|
|
8923
9029
|
var Pagination_default = {
|
|
@@ -8980,7 +9086,7 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
8980
9086
|
}
|
|
8981
9087
|
|
|
8982
9088
|
// src/components/Select/Select.tsx
|
|
8983
|
-
import { forwardRef as
|
|
9089
|
+
import { forwardRef as forwardRef71, useId as useId15 } from "react";
|
|
8984
9090
|
import {
|
|
8985
9091
|
default as ReactSelect
|
|
8986
9092
|
} from "react-select";
|
|
@@ -9279,7 +9385,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
9279
9385
|
import {
|
|
9280
9386
|
components
|
|
9281
9387
|
} from "react-select";
|
|
9282
|
-
import { jsx as
|
|
9388
|
+
import { jsx as jsx258, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
9283
9389
|
var {
|
|
9284
9390
|
Option,
|
|
9285
9391
|
NoOptionsMessage,
|
|
@@ -9301,26 +9407,26 @@ var getIndicatorIconSize = (componentSize) => {
|
|
|
9301
9407
|
}
|
|
9302
9408
|
};
|
|
9303
9409
|
var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs57(Option, { ...props, children: [
|
|
9304
|
-
props.isSelected && /* @__PURE__ */
|
|
9410
|
+
props.isSelected && /* @__PURE__ */ jsx258(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
|
|
9305
9411
|
props.children
|
|
9306
9412
|
] });
|
|
9307
|
-
var CustomOption = (props, Element) => /* @__PURE__ */
|
|
9308
|
-
var CustomSingleValue = (props, id, Element) => /* @__PURE__ */
|
|
9309
|
-
var DDSNoOptionsMessage = (props) => /* @__PURE__ */
|
|
9310
|
-
var DDSClearIndicator = (props, size2) => /* @__PURE__ */
|
|
9311
|
-
var DDSMultiValueRemove = (props) => /* @__PURE__ */
|
|
9413
|
+
var CustomOption = (props, Element) => /* @__PURE__ */ jsx258(Option, { ...props, children: /* @__PURE__ */ jsx258(Element, { ...props }) });
|
|
9414
|
+
var CustomSingleValue = (props, id, Element) => /* @__PURE__ */ jsx258(SingleValue, { ...props, children: /* @__PURE__ */ jsx258("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ jsx258(Element, { ...props }) : props.children }) });
|
|
9415
|
+
var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx258(NoOptionsMessage, { ...props, children: "Ingen treff" });
|
|
9416
|
+
var DDSClearIndicator = (props, size2) => /* @__PURE__ */ jsx258(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx258(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
|
|
9417
|
+
var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx258(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx258(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
|
|
9312
9418
|
var DDSDropdownIndicator = (props, size2) => {
|
|
9313
9419
|
const { className, ...rest } = props;
|
|
9314
|
-
return /* @__PURE__ */
|
|
9420
|
+
return /* @__PURE__ */ jsx258(
|
|
9315
9421
|
DropdownIndicator,
|
|
9316
9422
|
{
|
|
9317
9423
|
...rest,
|
|
9318
9424
|
className: cn(className, Select_default["dropdown-indicator"]),
|
|
9319
|
-
children: /* @__PURE__ */
|
|
9425
|
+
children: /* @__PURE__ */ jsx258(Icon, { icon: ChevronDownIcon, iconSize: getIndicatorIconSize(size2) })
|
|
9320
9426
|
}
|
|
9321
9427
|
);
|
|
9322
9428
|
};
|
|
9323
|
-
var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */
|
|
9429
|
+
var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx258(
|
|
9324
9430
|
Input2,
|
|
9325
9431
|
{
|
|
9326
9432
|
...props,
|
|
@@ -9330,7 +9436,7 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx254(
|
|
|
9330
9436
|
);
|
|
9331
9437
|
var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
9332
9438
|
const { className, ...rest } = props;
|
|
9333
|
-
return /* @__PURE__ */
|
|
9439
|
+
return /* @__PURE__ */ jsx258(
|
|
9334
9440
|
"div",
|
|
9335
9441
|
{
|
|
9336
9442
|
"data-testid": dataTestId ? dataTestId + "-control" : void 0,
|
|
@@ -9345,7 +9451,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
|
9345
9451
|
readOnly && Select_default["control--readonly"]
|
|
9346
9452
|
),
|
|
9347
9453
|
children: [
|
|
9348
|
-
icon && /* @__PURE__ */
|
|
9454
|
+
icon && /* @__PURE__ */ jsx258(
|
|
9349
9455
|
Icon,
|
|
9350
9456
|
{
|
|
9351
9457
|
icon,
|
|
@@ -9362,7 +9468,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
|
9362
9468
|
};
|
|
9363
9469
|
|
|
9364
9470
|
// src/components/Select/Select.tsx
|
|
9365
|
-
import { jsx as
|
|
9471
|
+
import { jsx as jsx259, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
9366
9472
|
var getPlaceholder = (placeholder, isMulti) => placeholder ? placeholder : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
|
|
9367
9473
|
function SelectInner(props, ref) {
|
|
9368
9474
|
const {
|
|
@@ -9462,7 +9568,7 @@ function SelectInner(props, ref) {
|
|
|
9462
9568
|
),
|
|
9463
9569
|
style: { ...style, width },
|
|
9464
9570
|
children: [
|
|
9465
|
-
hasLabel && /* @__PURE__ */
|
|
9571
|
+
hasLabel && /* @__PURE__ */ jsx259(
|
|
9466
9572
|
Label,
|
|
9467
9573
|
{
|
|
9468
9574
|
htmlFor: uniqueId,
|
|
@@ -9472,17 +9578,17 @@ function SelectInner(props, ref) {
|
|
|
9472
9578
|
children: label
|
|
9473
9579
|
}
|
|
9474
9580
|
),
|
|
9475
|
-
/* @__PURE__ */
|
|
9581
|
+
/* @__PURE__ */ jsx259(ReactSelect, { ...reactSelectProps, ref }),
|
|
9476
9582
|
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
9477
9583
|
]
|
|
9478
9584
|
}
|
|
9479
9585
|
);
|
|
9480
9586
|
}
|
|
9481
|
-
var Select =
|
|
9587
|
+
var Select = forwardRef71(SelectInner);
|
|
9482
9588
|
Select.displayName = "Select";
|
|
9483
9589
|
|
|
9484
9590
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9485
|
-
import { forwardRef as
|
|
9591
|
+
import { forwardRef as forwardRef72, useId as useId16 } from "react";
|
|
9486
9592
|
|
|
9487
9593
|
// src/components/Select/NativeSelect/NativeSelect.module.css
|
|
9488
9594
|
var NativeSelect_default = {
|
|
@@ -9497,8 +9603,8 @@ var NativeSelect_default = {
|
|
|
9497
9603
|
};
|
|
9498
9604
|
|
|
9499
9605
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9500
|
-
import { jsx as
|
|
9501
|
-
var NativeSelect =
|
|
9606
|
+
import { jsx as jsx260, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
9607
|
+
var NativeSelect = forwardRef72(
|
|
9502
9608
|
(props, ref) => {
|
|
9503
9609
|
const {
|
|
9504
9610
|
id,
|
|
@@ -9530,7 +9636,7 @@ var NativeSelect = forwardRef68(
|
|
|
9530
9636
|
["--dds-native-select-width"]: width ? width : componentSize === "tiny" ? "210px" : "var(--dds-input-default-width)"
|
|
9531
9637
|
};
|
|
9532
9638
|
return /* @__PURE__ */ jsxs59("div", { children: [
|
|
9533
|
-
hasLabel && /* @__PURE__ */
|
|
9639
|
+
hasLabel && /* @__PURE__ */ jsx260(
|
|
9534
9640
|
Label,
|
|
9535
9641
|
{
|
|
9536
9642
|
className: Input_default.label,
|
|
@@ -9541,7 +9647,7 @@ var NativeSelect = forwardRef68(
|
|
|
9541
9647
|
}
|
|
9542
9648
|
),
|
|
9543
9649
|
/* @__PURE__ */ jsxs59("div", { className: NativeSelect_default.container, children: [
|
|
9544
|
-
/* @__PURE__ */
|
|
9650
|
+
/* @__PURE__ */ jsx260(
|
|
9545
9651
|
"select",
|
|
9546
9652
|
{
|
|
9547
9653
|
ref,
|
|
@@ -9579,7 +9685,7 @@ var NativeSelect = forwardRef68(
|
|
|
9579
9685
|
children
|
|
9580
9686
|
}
|
|
9581
9687
|
),
|
|
9582
|
-
!multiple && /* @__PURE__ */
|
|
9688
|
+
!multiple && /* @__PURE__ */ jsx260(
|
|
9583
9689
|
Icon,
|
|
9584
9690
|
{
|
|
9585
9691
|
icon: ChevronDownIcon,
|
|
@@ -9592,9 +9698,9 @@ var NativeSelect = forwardRef68(
|
|
|
9592
9698
|
] });
|
|
9593
9699
|
}
|
|
9594
9700
|
);
|
|
9595
|
-
var NativeSelectPlaceholder =
|
|
9701
|
+
var NativeSelectPlaceholder = forwardRef72((props, ref) => {
|
|
9596
9702
|
const { children = "-- Velg fra listen --", value, ...rest } = props;
|
|
9597
|
-
return /* @__PURE__ */
|
|
9703
|
+
return /* @__PURE__ */ jsx260("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
|
|
9598
9704
|
});
|
|
9599
9705
|
NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
9600
9706
|
|
|
@@ -9602,8 +9708,8 @@ NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
|
9602
9708
|
var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2 }));
|
|
9603
9709
|
|
|
9604
9710
|
// src/components/Pagination/Pagination.tsx
|
|
9605
|
-
import { Fragment as Fragment8, jsx as
|
|
9606
|
-
var Pagination =
|
|
9711
|
+
import { Fragment as Fragment8, jsx as jsx261, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
9712
|
+
var Pagination = forwardRef73(
|
|
9607
9713
|
(props, ref) => {
|
|
9608
9714
|
const {
|
|
9609
9715
|
itemsAmount,
|
|
@@ -9646,7 +9752,7 @@ var Pagination = forwardRef69(
|
|
|
9646
9752
|
};
|
|
9647
9753
|
const listItems = items.length > 0 ? items.map((item, i2) => {
|
|
9648
9754
|
const isActive = item === activePage;
|
|
9649
|
-
return /* @__PURE__ */
|
|
9755
|
+
return /* @__PURE__ */ jsx261("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ jsx261(
|
|
9650
9756
|
Button,
|
|
9651
9757
|
{
|
|
9652
9758
|
purpose: isActive ? "primary" : "secondary",
|
|
@@ -9657,7 +9763,7 @@ var Pagination = forwardRef69(
|
|
|
9657
9763
|
"aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
|
|
9658
9764
|
children: item
|
|
9659
9765
|
}
|
|
9660
|
-
) : /* @__PURE__ */
|
|
9766
|
+
) : /* @__PURE__ */ jsx261(
|
|
9661
9767
|
Icon,
|
|
9662
9768
|
{
|
|
9663
9769
|
icon: MoreHorizontalIcon,
|
|
@@ -9665,7 +9771,7 @@ var Pagination = forwardRef69(
|
|
|
9665
9771
|
}
|
|
9666
9772
|
) }, `pagination-item-${i2}`);
|
|
9667
9773
|
}) : void 0;
|
|
9668
|
-
const previousPageButton = /* @__PURE__ */
|
|
9774
|
+
const previousPageButton = /* @__PURE__ */ jsx261(
|
|
9669
9775
|
Button,
|
|
9670
9776
|
{
|
|
9671
9777
|
purpose: "secondary",
|
|
@@ -9677,7 +9783,7 @@ var Pagination = forwardRef69(
|
|
|
9677
9783
|
"aria-label": "G\xE5 til forrige siden"
|
|
9678
9784
|
}
|
|
9679
9785
|
);
|
|
9680
|
-
const nextPageButton = /* @__PURE__ */
|
|
9786
|
+
const nextPageButton = /* @__PURE__ */ jsx261(
|
|
9681
9787
|
Button,
|
|
9682
9788
|
{
|
|
9683
9789
|
purpose: "secondary",
|
|
@@ -9702,8 +9808,8 @@ var Pagination = forwardRef69(
|
|
|
9702
9808
|
};
|
|
9703
9809
|
const isOnFirstPage = activePage === 1;
|
|
9704
9810
|
const isOnLastPage = activePage === pagesLength;
|
|
9705
|
-
const largeScreenNavigation = withPagination ? /* @__PURE__ */
|
|
9706
|
-
/* @__PURE__ */
|
|
9811
|
+
const largeScreenNavigation = withPagination ? /* @__PURE__ */ jsx261("nav", { ref, "aria-label": "paginering", ...navProps(), children: /* @__PURE__ */ jsxs60("ol", { className: Pagination_default.list, children: [
|
|
9812
|
+
/* @__PURE__ */ jsx261(
|
|
9707
9813
|
"li",
|
|
9708
9814
|
{
|
|
9709
9815
|
className: cn(
|
|
@@ -9715,7 +9821,7 @@ var Pagination = forwardRef69(
|
|
|
9715
9821
|
}
|
|
9716
9822
|
),
|
|
9717
9823
|
listItems,
|
|
9718
|
-
/* @__PURE__ */
|
|
9824
|
+
/* @__PURE__ */ jsx261(
|
|
9719
9825
|
"li",
|
|
9720
9826
|
{
|
|
9721
9827
|
className: cn(
|
|
@@ -9727,8 +9833,8 @@ var Pagination = forwardRef69(
|
|
|
9727
9833
|
}
|
|
9728
9834
|
)
|
|
9729
9835
|
] }) }) : null;
|
|
9730
|
-
const smallScreenNavigation = withPagination ? /* @__PURE__ */
|
|
9731
|
-
/* @__PURE__ */
|
|
9836
|
+
const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx261("nav", { ref, "aria-label": "paginering", ...navProps(true), children: /* @__PURE__ */ jsxs60("ol", { className: Pagination_default.list, children: [
|
|
9837
|
+
/* @__PURE__ */ jsx261(
|
|
9732
9838
|
"li",
|
|
9733
9839
|
{
|
|
9734
9840
|
className: cn(
|
|
@@ -9736,7 +9842,7 @@ var Pagination = forwardRef69(
|
|
|
9736
9842
|
isOnFirstPage && Pagination_default["list__item--hidden"]
|
|
9737
9843
|
),
|
|
9738
9844
|
"aria-hidden": isOnFirstPage,
|
|
9739
|
-
children: /* @__PURE__ */
|
|
9845
|
+
children: /* @__PURE__ */ jsx261(
|
|
9740
9846
|
Button,
|
|
9741
9847
|
{
|
|
9742
9848
|
purpose: "secondary",
|
|
@@ -9750,7 +9856,7 @@ var Pagination = forwardRef69(
|
|
|
9750
9856
|
)
|
|
9751
9857
|
}
|
|
9752
9858
|
),
|
|
9753
|
-
/* @__PURE__ */
|
|
9859
|
+
/* @__PURE__ */ jsx261(
|
|
9754
9860
|
"li",
|
|
9755
9861
|
{
|
|
9756
9862
|
className: cn(
|
|
@@ -9761,7 +9867,7 @@ var Pagination = forwardRef69(
|
|
|
9761
9867
|
children: previousPageButton
|
|
9762
9868
|
}
|
|
9763
9869
|
),
|
|
9764
|
-
/* @__PURE__ */
|
|
9870
|
+
/* @__PURE__ */ jsx261("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx261(
|
|
9765
9871
|
Button,
|
|
9766
9872
|
{
|
|
9767
9873
|
size: "small",
|
|
@@ -9771,7 +9877,7 @@ var Pagination = forwardRef69(
|
|
|
9771
9877
|
children: activePage
|
|
9772
9878
|
}
|
|
9773
9879
|
) }),
|
|
9774
|
-
/* @__PURE__ */
|
|
9880
|
+
/* @__PURE__ */ jsx261(
|
|
9775
9881
|
"li",
|
|
9776
9882
|
{
|
|
9777
9883
|
className: cn(
|
|
@@ -9782,7 +9888,7 @@ var Pagination = forwardRef69(
|
|
|
9782
9888
|
children: nextPageButton
|
|
9783
9889
|
}
|
|
9784
9890
|
),
|
|
9785
|
-
/* @__PURE__ */
|
|
9891
|
+
/* @__PURE__ */ jsx261(
|
|
9786
9892
|
"li",
|
|
9787
9893
|
{
|
|
9788
9894
|
className: cn(
|
|
@@ -9790,7 +9896,7 @@ var Pagination = forwardRef69(
|
|
|
9790
9896
|
isOnLastPage && Pagination_default["list__item--hidden"]
|
|
9791
9897
|
),
|
|
9792
9898
|
"aria-hidden": isOnLastPage,
|
|
9793
|
-
children: /* @__PURE__ */
|
|
9899
|
+
children: /* @__PURE__ */ jsx261(
|
|
9794
9900
|
Button,
|
|
9795
9901
|
{
|
|
9796
9902
|
purpose: "secondary",
|
|
@@ -9825,7 +9931,7 @@ var Pagination = forwardRef69(
|
|
|
9825
9931
|
),
|
|
9826
9932
|
children: [
|
|
9827
9933
|
/* @__PURE__ */ jsxs60("div", { className: Pagination_default.indicators, children: [
|
|
9828
|
-
withSelect && /* @__PURE__ */
|
|
9934
|
+
withSelect && /* @__PURE__ */ jsx261(
|
|
9829
9935
|
Select,
|
|
9830
9936
|
{
|
|
9831
9937
|
options: selectOptions,
|
|
@@ -9861,7 +9967,7 @@ Pagination.displayName = "Pagination";
|
|
|
9861
9967
|
|
|
9862
9968
|
// src/components/Popover/Popover.tsx
|
|
9863
9969
|
import { ddsTokens as ddsTokens14 } from "@norges-domstoler/dds-design-tokens";
|
|
9864
|
-
import { forwardRef as
|
|
9970
|
+
import { forwardRef as forwardRef74 } from "react";
|
|
9865
9971
|
|
|
9866
9972
|
// src/components/Popover/Popover.module.css
|
|
9867
9973
|
var Popover_default = {
|
|
@@ -9872,8 +9978,8 @@ var Popover_default = {
|
|
|
9872
9978
|
};
|
|
9873
9979
|
|
|
9874
9980
|
// src/components/Popover/Popover.tsx
|
|
9875
|
-
import { jsx as
|
|
9876
|
-
var Popover =
|
|
9981
|
+
import { jsx as jsx262, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
9982
|
+
var Popover = forwardRef74(
|
|
9877
9983
|
(props, ref) => {
|
|
9878
9984
|
const {
|
|
9879
9985
|
title,
|
|
@@ -9916,29 +10022,34 @@ var Popover = forwardRef70(
|
|
|
9916
10022
|
return isOpen || hasTransitionedIn ? /* @__PURE__ */ jsxs61(
|
|
9917
10023
|
Paper,
|
|
9918
10024
|
{
|
|
9919
|
-
...getBaseHTMLProps(
|
|
10025
|
+
...getBaseHTMLProps(
|
|
10026
|
+
id,
|
|
10027
|
+
cn(
|
|
10028
|
+
className,
|
|
10029
|
+
Popover_default.container,
|
|
10030
|
+
utilStyles_default["visibility-transition"],
|
|
10031
|
+
hasTransitionedIn && isOpen ? utilStyles_default["visibility-transition--open"] : utilStyles_default["visibility-transition--closed"],
|
|
10032
|
+
focus_default.focusable
|
|
10033
|
+
),
|
|
10034
|
+
htmlProps,
|
|
10035
|
+
rest
|
|
10036
|
+
),
|
|
9920
10037
|
ref: multiRef,
|
|
9921
10038
|
tabIndex: -1,
|
|
9922
10039
|
style: { ...htmlProps.style, ...floatingStyles.floating, ...sizeProps },
|
|
9923
10040
|
role: "dialog",
|
|
9924
10041
|
elevation: 3,
|
|
9925
10042
|
border: "subtle",
|
|
9926
|
-
className: cn(
|
|
9927
|
-
Popover_default.container,
|
|
9928
|
-
utilStyles_default["visibility-transition"],
|
|
9929
|
-
hasTransitionedIn && isOpen ? utilStyles_default["visibility-transition--open"] : utilStyles_default["visibility-transition--closed"],
|
|
9930
|
-
focus_default.focusable
|
|
9931
|
-
),
|
|
9932
10043
|
children: [
|
|
9933
|
-
title && /* @__PURE__ */
|
|
9934
|
-
/* @__PURE__ */
|
|
10044
|
+
title && /* @__PURE__ */ jsx262("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ jsx262(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
|
|
10045
|
+
/* @__PURE__ */ jsx262(
|
|
9935
10046
|
"div",
|
|
9936
10047
|
{
|
|
9937
10048
|
className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
|
|
9938
10049
|
children
|
|
9939
10050
|
}
|
|
9940
10051
|
),
|
|
9941
|
-
withCloseButton && /* @__PURE__ */
|
|
10052
|
+
withCloseButton && /* @__PURE__ */ jsx262(
|
|
9942
10053
|
Button,
|
|
9943
10054
|
{
|
|
9944
10055
|
icon: CloseIcon,
|
|
@@ -9965,7 +10076,7 @@ import {
|
|
|
9965
10076
|
useRef as useRef27,
|
|
9966
10077
|
useState as useState20
|
|
9967
10078
|
} from "react";
|
|
9968
|
-
import { Fragment as Fragment9, jsx as
|
|
10079
|
+
import { Fragment as Fragment9, jsx as jsx263 } from "react/jsx-runtime";
|
|
9969
10080
|
var PopoverGroup = ({
|
|
9970
10081
|
isOpen = false,
|
|
9971
10082
|
onCloseButtonClick,
|
|
@@ -10011,7 +10122,7 @@ var PopoverGroup = ({
|
|
|
10011
10122
|
onClose: handleClose
|
|
10012
10123
|
}));
|
|
10013
10124
|
});
|
|
10014
|
-
return /* @__PURE__ */
|
|
10125
|
+
return /* @__PURE__ */ jsx263(Fragment9, { children: Children8 });
|
|
10015
10126
|
};
|
|
10016
10127
|
PopoverGroup.displayName = "PopoverGroup";
|
|
10017
10128
|
|
|
@@ -10020,7 +10131,7 @@ import {
|
|
|
10020
10131
|
Children as Children4,
|
|
10021
10132
|
Fragment as Fragment11,
|
|
10022
10133
|
cloneElement as cloneElement7,
|
|
10023
|
-
forwardRef as
|
|
10134
|
+
forwardRef as forwardRef75,
|
|
10024
10135
|
isValidElement as isValidElement8,
|
|
10025
10136
|
useEffect as useEffect23,
|
|
10026
10137
|
useMemo as useMemo3,
|
|
@@ -10059,7 +10170,7 @@ var ProgressTracker_default = {
|
|
|
10059
10170
|
|
|
10060
10171
|
// src/components/ProgressTracker/ProgressTrackerItem.tsx
|
|
10061
10172
|
import { useMemo as useMemo2 } from "react";
|
|
10062
|
-
import { Fragment as Fragment10, jsx as
|
|
10173
|
+
import { Fragment as Fragment10, jsx as jsx264, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
10063
10174
|
var toItemState = (active, completed, disabled) => {
|
|
10064
10175
|
if (disabled) {
|
|
10065
10176
|
return "disabled";
|
|
@@ -10080,26 +10191,37 @@ var itemStateCn = {
|
|
|
10080
10191
|
var getVisuallyHiddenText = (active, completed, index) => `${index + 1}, ${active ? "" : "Trinn, "}${completed ? "Ferdig, " : "Ikke ferdig, "}`;
|
|
10081
10192
|
var ProgressTrackerItem = (props) => {
|
|
10082
10193
|
const {
|
|
10194
|
+
id,
|
|
10195
|
+
className,
|
|
10196
|
+
htmlProps,
|
|
10083
10197
|
index = 0,
|
|
10084
10198
|
completed = false,
|
|
10085
10199
|
disabled = false,
|
|
10200
|
+
onClick,
|
|
10086
10201
|
icon,
|
|
10087
|
-
children
|
|
10202
|
+
children,
|
|
10203
|
+
...rest
|
|
10088
10204
|
} = props;
|
|
10089
10205
|
const { activeStep, handleStepChange } = useProgressTrackerContext();
|
|
10090
10206
|
const active = activeStep === index;
|
|
10091
10207
|
const itemState = toItemState(active, completed, disabled);
|
|
10208
|
+
const handleClick = () => {
|
|
10209
|
+
if (!disabled) {
|
|
10210
|
+
onClick && onClick(index);
|
|
10211
|
+
handleStepChange && handleStepChange(index);
|
|
10212
|
+
}
|
|
10213
|
+
};
|
|
10092
10214
|
const stepNumberContent = useMemo2(() => {
|
|
10093
10215
|
if (completed) {
|
|
10094
|
-
return /* @__PURE__ */
|
|
10216
|
+
return /* @__PURE__ */ jsx264(Icon, { icon: CheckIcon, iconSize: "small" });
|
|
10095
10217
|
}
|
|
10096
10218
|
if (icon !== void 0) {
|
|
10097
|
-
return /* @__PURE__ */
|
|
10219
|
+
return /* @__PURE__ */ jsx264(Icon, { icon, iconSize: "small" });
|
|
10098
10220
|
}
|
|
10099
10221
|
return index + 1;
|
|
10100
10222
|
}, [completed, icon, index]);
|
|
10101
10223
|
const stepContent = /* @__PURE__ */ jsxs62(Fragment10, { children: [
|
|
10102
|
-
/* @__PURE__ */
|
|
10224
|
+
/* @__PURE__ */ jsx264(
|
|
10103
10225
|
"div",
|
|
10104
10226
|
{
|
|
10105
10227
|
"aria-hidden": true,
|
|
@@ -10120,28 +10242,44 @@ var ProgressTrackerItem = (props) => {
|
|
|
10120
10242
|
typographyStyles_default["body-sans-03"]
|
|
10121
10243
|
),
|
|
10122
10244
|
children: [
|
|
10123
|
-
/* @__PURE__ */
|
|
10245
|
+
/* @__PURE__ */ jsx264(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
|
|
10124
10246
|
children
|
|
10125
10247
|
]
|
|
10126
10248
|
}
|
|
10127
10249
|
)
|
|
10128
10250
|
] });
|
|
10129
|
-
return /* @__PURE__ */
|
|
10251
|
+
return /* @__PURE__ */ jsx264("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ jsx264(
|
|
10130
10252
|
"button",
|
|
10131
10253
|
{
|
|
10132
|
-
|
|
10254
|
+
...getBaseHTMLProps(
|
|
10255
|
+
id,
|
|
10256
|
+
cn(className, ProgressTracker_default["item-button"], focusable),
|
|
10257
|
+
htmlProps,
|
|
10258
|
+
rest
|
|
10259
|
+
),
|
|
10260
|
+
onClick: () => handleClick(),
|
|
10133
10261
|
disabled,
|
|
10134
|
-
className: cn(ProgressTracker_default["item-button"], focusable),
|
|
10135
10262
|
children: stepContent
|
|
10136
10263
|
}
|
|
10137
|
-
) : /* @__PURE__ */
|
|
10264
|
+
) : /* @__PURE__ */ jsx264(
|
|
10265
|
+
"div",
|
|
10266
|
+
{
|
|
10267
|
+
...getBaseHTMLProps(
|
|
10268
|
+
id,
|
|
10269
|
+
cn(className, cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"])),
|
|
10270
|
+
htmlProps,
|
|
10271
|
+
rest
|
|
10272
|
+
),
|
|
10273
|
+
children: stepContent
|
|
10274
|
+
}
|
|
10275
|
+
) });
|
|
10138
10276
|
};
|
|
10139
10277
|
ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
10140
10278
|
|
|
10141
10279
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
10142
|
-
import { jsx as
|
|
10280
|
+
import { jsx as jsx265, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
10143
10281
|
var ProgressTracker = (() => {
|
|
10144
|
-
const Res =
|
|
10282
|
+
const Res = forwardRef75((props, ref) => {
|
|
10145
10283
|
const {
|
|
10146
10284
|
id,
|
|
10147
10285
|
activeStep = 0,
|
|
@@ -10171,14 +10309,14 @@ var ProgressTracker = (() => {
|
|
|
10171
10309
|
const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
|
|
10172
10310
|
return itemsWithConnectorsBetween;
|
|
10173
10311
|
}, [children]);
|
|
10174
|
-
return /* @__PURE__ */
|
|
10312
|
+
return /* @__PURE__ */ jsx265(
|
|
10175
10313
|
ProgressTrackerContext.Provider,
|
|
10176
10314
|
{
|
|
10177
10315
|
value: {
|
|
10178
10316
|
activeStep: thisActiveStep,
|
|
10179
10317
|
handleStepChange: handleChange
|
|
10180
10318
|
},
|
|
10181
|
-
children: /* @__PURE__ */
|
|
10319
|
+
children: /* @__PURE__ */ jsx265("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx265("ol", { className: ProgressTracker_default.list, children: steps }) })
|
|
10182
10320
|
}
|
|
10183
10321
|
);
|
|
10184
10322
|
});
|
|
@@ -10203,14 +10341,14 @@ var intersperseItemsWithConnector = (children) => Children4.map(children, (child
|
|
|
10203
10341
|
return child;
|
|
10204
10342
|
}
|
|
10205
10343
|
return /* @__PURE__ */ jsxs63(Fragment11, { children: [
|
|
10206
|
-
/* @__PURE__ */
|
|
10344
|
+
/* @__PURE__ */ jsx265("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
|
|
10207
10345
|
child
|
|
10208
10346
|
] }, index);
|
|
10209
10347
|
});
|
|
10210
10348
|
|
|
10211
10349
|
// src/components/Search/Search.tsx
|
|
10212
10350
|
import {
|
|
10213
|
-
forwardRef as
|
|
10351
|
+
forwardRef as forwardRef78,
|
|
10214
10352
|
useId as useId18,
|
|
10215
10353
|
useState as useState22
|
|
10216
10354
|
} from "react";
|
|
@@ -10272,16 +10410,16 @@ function createEmptyChangeEvent(inputElementId) {
|
|
|
10272
10410
|
}
|
|
10273
10411
|
|
|
10274
10412
|
// src/components/Search/SearchSuggestions.tsx
|
|
10275
|
-
import { forwardRef as
|
|
10413
|
+
import { forwardRef as forwardRef77 } from "react";
|
|
10276
10414
|
|
|
10277
10415
|
// src/components/Search/SearchSuggestionItem.tsx
|
|
10278
10416
|
import {
|
|
10279
|
-
forwardRef as
|
|
10417
|
+
forwardRef as forwardRef76,
|
|
10280
10418
|
useEffect as useEffect24,
|
|
10281
10419
|
useRef as useRef28
|
|
10282
10420
|
} from "react";
|
|
10283
|
-
import { jsx as
|
|
10284
|
-
var SearchSuggestionItem =
|
|
10421
|
+
import { jsx as jsx266 } from "react/jsx-runtime";
|
|
10422
|
+
var SearchSuggestionItem = forwardRef76((props, ref) => {
|
|
10285
10423
|
const { focus, className, ...rest } = props;
|
|
10286
10424
|
const itemRef = useRef28(null);
|
|
10287
10425
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
@@ -10291,7 +10429,7 @@ var SearchSuggestionItem = forwardRef72((props, ref) => {
|
|
|
10291
10429
|
(_a = itemRef.current) == null ? void 0 : _a.focus();
|
|
10292
10430
|
}
|
|
10293
10431
|
}, [focus]);
|
|
10294
|
-
return /* @__PURE__ */
|
|
10432
|
+
return /* @__PURE__ */ jsx266(
|
|
10295
10433
|
"button",
|
|
10296
10434
|
{
|
|
10297
10435
|
ref: combinedRef,
|
|
@@ -10310,8 +10448,8 @@ var SearchSuggestionItem = forwardRef72((props, ref) => {
|
|
|
10310
10448
|
SearchSuggestionItem.displayName = "SearchSuggestionItem";
|
|
10311
10449
|
|
|
10312
10450
|
// src/components/Search/SearchSuggestions.tsx
|
|
10313
|
-
import { jsx as
|
|
10314
|
-
var SearchSuggestions =
|
|
10451
|
+
import { jsx as jsx267, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
10452
|
+
var SearchSuggestions = forwardRef77((props, ref) => {
|
|
10315
10453
|
const {
|
|
10316
10454
|
id,
|
|
10317
10455
|
searchId,
|
|
@@ -10349,7 +10487,7 @@ var SearchSuggestions = forwardRef73((props, ref) => {
|
|
|
10349
10487
|
"aria-hidden": !showSuggestions,
|
|
10350
10488
|
border: "default",
|
|
10351
10489
|
children: [
|
|
10352
|
-
/* @__PURE__ */
|
|
10490
|
+
/* @__PURE__ */ jsx267(
|
|
10353
10491
|
"span",
|
|
10354
10492
|
{
|
|
10355
10493
|
id: suggestionsHeaderId,
|
|
@@ -10360,14 +10498,14 @@ var SearchSuggestions = forwardRef73((props, ref) => {
|
|
|
10360
10498
|
children: "S\xF8keforslag"
|
|
10361
10499
|
}
|
|
10362
10500
|
),
|
|
10363
|
-
/* @__PURE__ */
|
|
10501
|
+
/* @__PURE__ */ jsx267(
|
|
10364
10502
|
"ul",
|
|
10365
10503
|
{
|
|
10366
10504
|
role: "listbox",
|
|
10367
10505
|
"aria-labelledby": suggestionsHeaderId,
|
|
10368
10506
|
className: utilStyles_default["remove-list-styling"],
|
|
10369
10507
|
children: suggestionsToRender.map((suggestion, index) => {
|
|
10370
|
-
return /* @__PURE__ */
|
|
10508
|
+
return /* @__PURE__ */ jsx267("li", { role: "option", children: /* @__PURE__ */ jsx267(
|
|
10371
10509
|
SearchSuggestionItem,
|
|
10372
10510
|
{
|
|
10373
10511
|
index,
|
|
@@ -10390,7 +10528,7 @@ var SearchSuggestions = forwardRef73((props, ref) => {
|
|
|
10390
10528
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
10391
10529
|
|
|
10392
10530
|
// src/components/Search/Search.tsx
|
|
10393
|
-
import { Fragment as Fragment12, jsx as
|
|
10531
|
+
import { Fragment as Fragment12, jsx as jsx268, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
10394
10532
|
var getIconSize = (size2) => {
|
|
10395
10533
|
switch (size2) {
|
|
10396
10534
|
case "large":
|
|
@@ -10401,7 +10539,7 @@ var getIconSize = (size2) => {
|
|
|
10401
10539
|
return "small";
|
|
10402
10540
|
}
|
|
10403
10541
|
};
|
|
10404
|
-
var Search =
|
|
10542
|
+
var Search = forwardRef78(
|
|
10405
10543
|
({
|
|
10406
10544
|
componentSize = "medium",
|
|
10407
10545
|
buttonProps,
|
|
@@ -10446,7 +10584,7 @@ var Search = forwardRef74(
|
|
|
10446
10584
|
const hasSuggestions = !!context.suggestions;
|
|
10447
10585
|
const showSearchButton = !!buttonProps && !!onClick;
|
|
10448
10586
|
return /* @__PURE__ */ jsxs65("div", { className: Search_default.container, children: [
|
|
10449
|
-
hasLabel && /* @__PURE__ */
|
|
10587
|
+
hasLabel && /* @__PURE__ */ jsx268(Label, { htmlFor: uniqueId, children: label }),
|
|
10450
10588
|
/* @__PURE__ */ jsxs65("div", { children: [
|
|
10451
10589
|
/* @__PURE__ */ jsxs65(
|
|
10452
10590
|
"div",
|
|
@@ -10458,7 +10596,7 @@ var Search = forwardRef74(
|
|
|
10458
10596
|
style,
|
|
10459
10597
|
children: [
|
|
10460
10598
|
/* @__PURE__ */ jsxs65("div", { className: Search_default["input-group"], children: [
|
|
10461
|
-
/* @__PURE__ */
|
|
10599
|
+
/* @__PURE__ */ jsx268(
|
|
10462
10600
|
Icon,
|
|
10463
10601
|
{
|
|
10464
10602
|
icon: SearchIcon,
|
|
@@ -10466,7 +10604,7 @@ var Search = forwardRef74(
|
|
|
10466
10604
|
className: cn(Input_default.icon, Search_default["search-icon"])
|
|
10467
10605
|
}
|
|
10468
10606
|
),
|
|
10469
|
-
/* @__PURE__ */
|
|
10607
|
+
/* @__PURE__ */ jsx268(
|
|
10470
10608
|
Input,
|
|
10471
10609
|
{
|
|
10472
10610
|
...rest,
|
|
@@ -10494,7 +10632,7 @@ var Search = forwardRef74(
|
|
|
10494
10632
|
}
|
|
10495
10633
|
),
|
|
10496
10634
|
hasSuggestions && /* @__PURE__ */ jsxs65(Fragment12, { children: [
|
|
10497
|
-
/* @__PURE__ */
|
|
10635
|
+
/* @__PURE__ */ jsx268(
|
|
10498
10636
|
SearchSuggestions,
|
|
10499
10637
|
{
|
|
10500
10638
|
id: suggestionsId,
|
|
@@ -10506,9 +10644,9 @@ var Search = forwardRef74(
|
|
|
10506
10644
|
componentSize
|
|
10507
10645
|
}
|
|
10508
10646
|
),
|
|
10509
|
-
/* @__PURE__ */
|
|
10647
|
+
/* @__PURE__ */ jsx268(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
|
|
10510
10648
|
] }),
|
|
10511
|
-
hasValue && /* @__PURE__ */
|
|
10649
|
+
hasValue && /* @__PURE__ */ jsx268(
|
|
10512
10650
|
Button,
|
|
10513
10651
|
{
|
|
10514
10652
|
icon: CloseSmallIcon,
|
|
@@ -10520,7 +10658,7 @@ var Search = forwardRef74(
|
|
|
10520
10658
|
}
|
|
10521
10659
|
)
|
|
10522
10660
|
] }),
|
|
10523
|
-
showSearchButton && /* @__PURE__ */
|
|
10661
|
+
showSearchButton && /* @__PURE__ */ jsx268(
|
|
10524
10662
|
Button,
|
|
10525
10663
|
{
|
|
10526
10664
|
size: componentSize,
|
|
@@ -10545,7 +10683,7 @@ import {
|
|
|
10545
10683
|
useRef as useRef29,
|
|
10546
10684
|
useState as useState23
|
|
10547
10685
|
} from "react";
|
|
10548
|
-
import { jsx as
|
|
10686
|
+
import { jsx as jsx269 } from "react/jsx-runtime";
|
|
10549
10687
|
var SearchAutocompleteWrapper = (props) => {
|
|
10550
10688
|
const {
|
|
10551
10689
|
value,
|
|
@@ -10621,7 +10759,7 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
10621
10759
|
inputValue,
|
|
10622
10760
|
onSugggestionClick: handleSuggestionClick
|
|
10623
10761
|
};
|
|
10624
|
-
return /* @__PURE__ */
|
|
10762
|
+
return /* @__PURE__ */ jsx269(AutocompleteSearchContext.Provider, { value: contextProps, children });
|
|
10625
10763
|
};
|
|
10626
10764
|
SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
|
|
10627
10765
|
|
|
@@ -10631,7 +10769,7 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
|
|
|
10631
10769
|
Search2.Suggestions = SearchSuggestions;
|
|
10632
10770
|
|
|
10633
10771
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
10634
|
-
import { forwardRef as
|
|
10772
|
+
import { forwardRef as forwardRef80, useId as useId19 } from "react";
|
|
10635
10773
|
|
|
10636
10774
|
// src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
|
|
10637
10775
|
import { createContext as createContext6, useContext as useContext9 } from "react";
|
|
@@ -10642,7 +10780,7 @@ var useCheckboxGroup = () => {
|
|
|
10642
10780
|
|
|
10643
10781
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
10644
10782
|
import {
|
|
10645
|
-
forwardRef as
|
|
10783
|
+
forwardRef as forwardRef79
|
|
10646
10784
|
} from "react";
|
|
10647
10785
|
|
|
10648
10786
|
// src/components/SelectionControl/SelectionControl.module.css
|
|
@@ -10663,10 +10801,10 @@ var SelectionControl_default = {
|
|
|
10663
10801
|
};
|
|
10664
10802
|
|
|
10665
10803
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
10666
|
-
import { jsx as
|
|
10667
|
-
var SelectionControl =
|
|
10804
|
+
import { jsx as jsx270 } from "react/jsx-runtime";
|
|
10805
|
+
var SelectionControl = forwardRef79((props, ref) => {
|
|
10668
10806
|
const { controlType, className, ...rest } = props;
|
|
10669
|
-
return /* @__PURE__ */
|
|
10807
|
+
return /* @__PURE__ */ jsx270(
|
|
10670
10808
|
"span",
|
|
10671
10809
|
{
|
|
10672
10810
|
ref,
|
|
@@ -10679,7 +10817,7 @@ var SelectionControl = forwardRef75((props, ref) => {
|
|
|
10679
10817
|
}
|
|
10680
10818
|
);
|
|
10681
10819
|
});
|
|
10682
|
-
var Label2 =
|
|
10820
|
+
var Label2 = forwardRef79(
|
|
10683
10821
|
(props, ref) => {
|
|
10684
10822
|
const {
|
|
10685
10823
|
disabled,
|
|
@@ -10690,7 +10828,7 @@ var Label2 = forwardRef75(
|
|
|
10690
10828
|
className,
|
|
10691
10829
|
...rest
|
|
10692
10830
|
} = props;
|
|
10693
|
-
return /* @__PURE__ */
|
|
10831
|
+
return /* @__PURE__ */ jsx270(
|
|
10694
10832
|
"label",
|
|
10695
10833
|
{
|
|
10696
10834
|
ref,
|
|
@@ -10721,8 +10859,8 @@ var selectionControlTypographyProps = {
|
|
|
10721
10859
|
};
|
|
10722
10860
|
|
|
10723
10861
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
10724
|
-
import { jsx as
|
|
10725
|
-
var Checkbox =
|
|
10862
|
+
import { jsx as jsx271, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
10863
|
+
var Checkbox = forwardRef80(
|
|
10726
10864
|
(props, ref) => {
|
|
10727
10865
|
const {
|
|
10728
10866
|
id,
|
|
@@ -10761,7 +10899,7 @@ var Checkbox = forwardRef76(
|
|
|
10761
10899
|
className: cn(className, htmlPropsClassName),
|
|
10762
10900
|
style,
|
|
10763
10901
|
children: [
|
|
10764
|
-
/* @__PURE__ */
|
|
10902
|
+
/* @__PURE__ */ jsx271(
|
|
10765
10903
|
"input",
|
|
10766
10904
|
{
|
|
10767
10905
|
...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
|
|
@@ -10791,14 +10929,14 @@ var Checkbox = forwardRef76(
|
|
|
10791
10929
|
onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
|
|
10792
10930
|
}
|
|
10793
10931
|
),
|
|
10794
|
-
/* @__PURE__ */
|
|
10932
|
+
/* @__PURE__ */ jsx271(
|
|
10795
10933
|
SelectionControl,
|
|
10796
10934
|
{
|
|
10797
10935
|
controlType: "checkbox",
|
|
10798
10936
|
className: focus_default["focus-styled-sibling"]
|
|
10799
10937
|
}
|
|
10800
10938
|
),
|
|
10801
|
-
hasLabel && /* @__PURE__ */
|
|
10939
|
+
hasLabel && /* @__PURE__ */ jsx271(Typography, { ...selectionControlTypographyProps, children: label })
|
|
10802
10940
|
]
|
|
10803
10941
|
}
|
|
10804
10942
|
);
|
|
@@ -10808,7 +10946,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
10808
10946
|
|
|
10809
10947
|
// src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
|
|
10810
10948
|
import { useId as useId20 } from "react";
|
|
10811
|
-
import { jsx as
|
|
10949
|
+
import { jsx as jsx272, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
10812
10950
|
var CheckboxGroup = (props) => {
|
|
10813
10951
|
const {
|
|
10814
10952
|
label,
|
|
@@ -10858,15 +10996,15 @@ var CheckboxGroup = (props) => {
|
|
|
10858
10996
|
id: uniqueGroupId,
|
|
10859
10997
|
className: readOnly ? Label_default["read-only"] : void 0,
|
|
10860
10998
|
children: [
|
|
10861
|
-
readOnly && /* @__PURE__ */
|
|
10999
|
+
readOnly && /* @__PURE__ */ jsx272(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
|
|
10862
11000
|
label,
|
|
10863
11001
|
" ",
|
|
10864
|
-
showRequiredMarker && /* @__PURE__ */
|
|
11002
|
+
showRequiredMarker && /* @__PURE__ */ jsx272(RequiredMarker, {})
|
|
10865
11003
|
]
|
|
10866
11004
|
}
|
|
10867
11005
|
),
|
|
10868
11006
|
renderInputMessage(tip, tipId),
|
|
10869
|
-
/* @__PURE__ */
|
|
11007
|
+
/* @__PURE__ */ jsx272(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx272(
|
|
10870
11008
|
"div",
|
|
10871
11009
|
{
|
|
10872
11010
|
role: "group",
|
|
@@ -10884,7 +11022,7 @@ var CheckboxGroup = (props) => {
|
|
|
10884
11022
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
10885
11023
|
|
|
10886
11024
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
10887
|
-
import { forwardRef as
|
|
11025
|
+
import { forwardRef as forwardRef81, useId as useId21 } from "react";
|
|
10888
11026
|
|
|
10889
11027
|
// src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
|
|
10890
11028
|
import { createContext as createContext7, useContext as useContext10 } from "react";
|
|
@@ -10894,7 +11032,7 @@ var useRadioButtonGroup = () => {
|
|
|
10894
11032
|
};
|
|
10895
11033
|
|
|
10896
11034
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
10897
|
-
import { jsx as
|
|
11035
|
+
import { jsx as jsx273, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
10898
11036
|
var isValueEqualToGroupValueOrFalsy = (value, group) => {
|
|
10899
11037
|
if (typeof value !== "undefined" && value !== null && group) {
|
|
10900
11038
|
if (typeof value === "number") {
|
|
@@ -10904,7 +11042,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group) => {
|
|
|
10904
11042
|
}
|
|
10905
11043
|
return !!value;
|
|
10906
11044
|
};
|
|
10907
|
-
var RadioButton =
|
|
11045
|
+
var RadioButton = forwardRef81(
|
|
10908
11046
|
(props, ref) => {
|
|
10909
11047
|
const {
|
|
10910
11048
|
id,
|
|
@@ -10955,7 +11093,7 @@ var RadioButton = forwardRef77(
|
|
|
10955
11093
|
htmlFor: uniqueId,
|
|
10956
11094
|
controlType: "radio",
|
|
10957
11095
|
children: [
|
|
10958
|
-
/* @__PURE__ */
|
|
11096
|
+
/* @__PURE__ */ jsx273(
|
|
10959
11097
|
"input",
|
|
10960
11098
|
{
|
|
10961
11099
|
...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
|
|
@@ -10981,14 +11119,14 @@ var RadioButton = forwardRef77(
|
|
|
10981
11119
|
onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
|
|
10982
11120
|
}
|
|
10983
11121
|
),
|
|
10984
|
-
/* @__PURE__ */
|
|
11122
|
+
/* @__PURE__ */ jsx273(
|
|
10985
11123
|
SelectionControl,
|
|
10986
11124
|
{
|
|
10987
11125
|
controlType: "radio",
|
|
10988
11126
|
className: focus_default["focus-styled-sibling"]
|
|
10989
11127
|
}
|
|
10990
11128
|
),
|
|
10991
|
-
/* @__PURE__ */
|
|
11129
|
+
/* @__PURE__ */ jsx273(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
|
|
10992
11130
|
]
|
|
10993
11131
|
}
|
|
10994
11132
|
);
|
|
@@ -10998,11 +11136,11 @@ RadioButton.displayName = "RadioButton";
|
|
|
10998
11136
|
|
|
10999
11137
|
// src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
|
|
11000
11138
|
import {
|
|
11001
|
-
forwardRef as
|
|
11139
|
+
forwardRef as forwardRef82,
|
|
11002
11140
|
useId as useId22,
|
|
11003
11141
|
useState as useState24
|
|
11004
11142
|
} from "react";
|
|
11005
|
-
import { jsx as
|
|
11143
|
+
import { jsx as jsx274, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
11006
11144
|
var RadioButtonGroupInner = (props, ref) => {
|
|
11007
11145
|
const {
|
|
11008
11146
|
name,
|
|
@@ -11063,15 +11201,15 @@ var RadioButtonGroupInner = (props, ref) => {
|
|
|
11063
11201
|
id: uniqueGroupId,
|
|
11064
11202
|
className: readOnly ? Label_default["read-only"] : void 0,
|
|
11065
11203
|
children: [
|
|
11066
|
-
readOnly && /* @__PURE__ */
|
|
11204
|
+
readOnly && /* @__PURE__ */ jsx274(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
|
|
11067
11205
|
label,
|
|
11068
11206
|
" ",
|
|
11069
|
-
showRequiredMarker && /* @__PURE__ */
|
|
11207
|
+
showRequiredMarker && /* @__PURE__ */ jsx274(RequiredMarker, {})
|
|
11070
11208
|
]
|
|
11071
11209
|
}
|
|
11072
11210
|
),
|
|
11073
11211
|
renderInputMessage(tip, tipId),
|
|
11074
|
-
/* @__PURE__ */
|
|
11212
|
+
/* @__PURE__ */ jsx274(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx274(
|
|
11075
11213
|
"div",
|
|
11076
11214
|
{
|
|
11077
11215
|
role: "radiogroup",
|
|
@@ -11087,11 +11225,11 @@ var RadioButtonGroupInner = (props, ref) => {
|
|
|
11087
11225
|
}
|
|
11088
11226
|
);
|
|
11089
11227
|
};
|
|
11090
|
-
var RadioButtonGroup =
|
|
11228
|
+
var RadioButtonGroup = forwardRef82(RadioButtonGroupInner);
|
|
11091
11229
|
RadioButtonGroup.displayName = "RadioButtonGroup";
|
|
11092
11230
|
|
|
11093
11231
|
// src/components/Skeleton/Skeleton.tsx
|
|
11094
|
-
import { forwardRef as
|
|
11232
|
+
import { forwardRef as forwardRef83 } from "react";
|
|
11095
11233
|
|
|
11096
11234
|
// src/components/Skeleton/Skeleton.module.css
|
|
11097
11235
|
var Skeleton_default = {
|
|
@@ -11100,8 +11238,8 @@ var Skeleton_default = {
|
|
|
11100
11238
|
};
|
|
11101
11239
|
|
|
11102
11240
|
// src/components/Skeleton/Skeleton.tsx
|
|
11103
|
-
import { jsx as
|
|
11104
|
-
var Skeleton =
|
|
11241
|
+
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
11242
|
+
var Skeleton = forwardRef83(
|
|
11105
11243
|
(props, ref) => {
|
|
11106
11244
|
const {
|
|
11107
11245
|
width,
|
|
@@ -11111,7 +11249,7 @@ var Skeleton = forwardRef79(
|
|
|
11111
11249
|
style,
|
|
11112
11250
|
...rest
|
|
11113
11251
|
} = props;
|
|
11114
|
-
return /* @__PURE__ */
|
|
11252
|
+
return /* @__PURE__ */ jsx275(
|
|
11115
11253
|
"div",
|
|
11116
11254
|
{
|
|
11117
11255
|
ref,
|
|
@@ -11125,7 +11263,7 @@ var Skeleton = forwardRef79(
|
|
|
11125
11263
|
Skeleton.displayName = "Skeleton";
|
|
11126
11264
|
|
|
11127
11265
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
11128
|
-
import { forwardRef as
|
|
11266
|
+
import { forwardRef as forwardRef84 } from "react";
|
|
11129
11267
|
|
|
11130
11268
|
// src/components/SkipToContent/SkipToContent.module.css
|
|
11131
11269
|
var SkipToContent_default = {
|
|
@@ -11134,8 +11272,8 @@ var SkipToContent_default = {
|
|
|
11134
11272
|
};
|
|
11135
11273
|
|
|
11136
11274
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
11137
|
-
import { jsx as
|
|
11138
|
-
var SkipToContent =
|
|
11275
|
+
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
11276
|
+
var SkipToContent = forwardRef84(
|
|
11139
11277
|
(props, ref) => {
|
|
11140
11278
|
const {
|
|
11141
11279
|
text = "Til hovedinnhold",
|
|
@@ -11150,12 +11288,12 @@ var SkipToContent = forwardRef80(
|
|
|
11150
11288
|
style,
|
|
11151
11289
|
...restHtmlProps
|
|
11152
11290
|
} = htmlProps;
|
|
11153
|
-
return /* @__PURE__ */
|
|
11291
|
+
return /* @__PURE__ */ jsx276(
|
|
11154
11292
|
"div",
|
|
11155
11293
|
{
|
|
11156
11294
|
className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
|
|
11157
11295
|
style: { ...style, top },
|
|
11158
|
-
children: /* @__PURE__ */
|
|
11296
|
+
children: /* @__PURE__ */ jsx276(
|
|
11159
11297
|
Link,
|
|
11160
11298
|
{
|
|
11161
11299
|
...getBaseHTMLProps(id, restHtmlProps, rest),
|
|
@@ -11172,7 +11310,7 @@ var SkipToContent = forwardRef80(
|
|
|
11172
11310
|
SkipToContent.displayName = "SkipToContent";
|
|
11173
11311
|
|
|
11174
11312
|
// src/components/SplitButton/SplitButton.tsx
|
|
11175
|
-
import { forwardRef as
|
|
11313
|
+
import { forwardRef as forwardRef85, useState as useState25 } from "react";
|
|
11176
11314
|
|
|
11177
11315
|
// src/components/SplitButton/SplitButton.module.css
|
|
11178
11316
|
var SplitButton_default = {
|
|
@@ -11183,8 +11321,8 @@ var SplitButton_default = {
|
|
|
11183
11321
|
};
|
|
11184
11322
|
|
|
11185
11323
|
// src/components/SplitButton/SplitButton.tsx
|
|
11186
|
-
import { jsx as
|
|
11187
|
-
var SplitButton =
|
|
11324
|
+
import { jsx as jsx277, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
11325
|
+
var SplitButton = forwardRef85(
|
|
11188
11326
|
(props, ref) => {
|
|
11189
11327
|
const {
|
|
11190
11328
|
size: size2,
|
|
@@ -11200,7 +11338,7 @@ var SplitButton = forwardRef81(
|
|
|
11200
11338
|
size: size2
|
|
11201
11339
|
};
|
|
11202
11340
|
return /* @__PURE__ */ jsxs70("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
|
|
11203
|
-
/* @__PURE__ */
|
|
11341
|
+
/* @__PURE__ */ jsx277(
|
|
11204
11342
|
Button,
|
|
11205
11343
|
{
|
|
11206
11344
|
...buttonStyleProps,
|
|
@@ -11210,7 +11348,7 @@ var SplitButton = forwardRef81(
|
|
|
11210
11348
|
}
|
|
11211
11349
|
),
|
|
11212
11350
|
/* @__PURE__ */ jsxs70(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
|
|
11213
|
-
/* @__PURE__ */
|
|
11351
|
+
/* @__PURE__ */ jsx277(
|
|
11214
11352
|
Button,
|
|
11215
11353
|
{
|
|
11216
11354
|
...buttonStyleProps,
|
|
@@ -11223,7 +11361,7 @@ var SplitButton = forwardRef81(
|
|
|
11223
11361
|
)
|
|
11224
11362
|
}
|
|
11225
11363
|
),
|
|
11226
|
-
/* @__PURE__ */
|
|
11364
|
+
/* @__PURE__ */ jsx277(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx277(OverflowMenuList, { children: secondaryActions.map((item) => /* @__PURE__ */ jsx277(OverflowMenuButton, { ...item, children: item.children })) }) })
|
|
11227
11365
|
] })
|
|
11228
11366
|
] });
|
|
11229
11367
|
}
|
|
@@ -11235,7 +11373,7 @@ import {
|
|
|
11235
11373
|
Children as Children5,
|
|
11236
11374
|
Fragment as Fragment13,
|
|
11237
11375
|
cloneElement as cloneElement8,
|
|
11238
|
-
forwardRef as
|
|
11376
|
+
forwardRef as forwardRef93,
|
|
11239
11377
|
isValidElement as isValidElement9,
|
|
11240
11378
|
useEffect as useEffect27,
|
|
11241
11379
|
useState as useState27
|
|
@@ -11250,30 +11388,30 @@ var CollapsibleTableContext = createContext8({
|
|
|
11250
11388
|
var useCollapsibleTableContext = () => useContext11(CollapsibleTableContext);
|
|
11251
11389
|
|
|
11252
11390
|
// src/components/Table/normal/Body.tsx
|
|
11253
|
-
import { forwardRef as
|
|
11254
|
-
import { jsx as
|
|
11255
|
-
var Body =
|
|
11391
|
+
import { forwardRef as forwardRef86 } from "react";
|
|
11392
|
+
import { jsx as jsx278 } from "react/jsx-runtime";
|
|
11393
|
+
var Body = forwardRef86(
|
|
11256
11394
|
(props, ref) => {
|
|
11257
|
-
return /* @__PURE__ */
|
|
11395
|
+
return /* @__PURE__ */ jsx278("tbody", { ref, ...props });
|
|
11258
11396
|
}
|
|
11259
11397
|
);
|
|
11260
11398
|
Body.displayName = "Table.Body";
|
|
11261
11399
|
|
|
11262
11400
|
// src/components/Table/normal/Cell.tsx
|
|
11263
11401
|
import {
|
|
11264
|
-
forwardRef as
|
|
11402
|
+
forwardRef as forwardRef88
|
|
11265
11403
|
} from "react";
|
|
11266
11404
|
|
|
11267
11405
|
// src/components/Table/normal/Head.tsx
|
|
11268
11406
|
import {
|
|
11269
11407
|
createContext as createContext9,
|
|
11270
|
-
forwardRef as
|
|
11408
|
+
forwardRef as forwardRef87,
|
|
11271
11409
|
useContext as useContext12
|
|
11272
11410
|
} from "react";
|
|
11273
|
-
import { jsx as
|
|
11274
|
-
var Head =
|
|
11411
|
+
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
11412
|
+
var Head = forwardRef87(
|
|
11275
11413
|
({ children, ...rest }, ref) => {
|
|
11276
|
-
return /* @__PURE__ */
|
|
11414
|
+
return /* @__PURE__ */ jsx279("thead", { ref, ...rest, children: /* @__PURE__ */ jsx279(HeadContext.Provider, { value: true, children }) });
|
|
11277
11415
|
}
|
|
11278
11416
|
);
|
|
11279
11417
|
Head.displayName = "Table.Head";
|
|
@@ -11309,8 +11447,8 @@ var Table_default = {
|
|
|
11309
11447
|
};
|
|
11310
11448
|
|
|
11311
11449
|
// src/components/Table/normal/Cell.tsx
|
|
11312
|
-
import { jsx as
|
|
11313
|
-
var Cell =
|
|
11450
|
+
import { jsx as jsx280 } from "react/jsx-runtime";
|
|
11451
|
+
var Cell = forwardRef88(
|
|
11314
11452
|
({
|
|
11315
11453
|
children,
|
|
11316
11454
|
type: _type,
|
|
@@ -11323,7 +11461,7 @@ var Cell = forwardRef84(
|
|
|
11323
11461
|
const type = _type != null ? _type : isInHead ? "head" : "data";
|
|
11324
11462
|
const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
|
|
11325
11463
|
const isComplexLayout = layout === "text and icon";
|
|
11326
|
-
return isCollapsibleChild ? /* @__PURE__ */
|
|
11464
|
+
return isCollapsibleChild ? /* @__PURE__ */ jsx280(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx280(
|
|
11327
11465
|
"th",
|
|
11328
11466
|
{
|
|
11329
11467
|
ref,
|
|
@@ -11333,15 +11471,15 @@ var Cell = forwardRef84(
|
|
|
11333
11471
|
!isComplexLayout && Table_default[`cell--${layout}`],
|
|
11334
11472
|
Table_default["cell--head"]
|
|
11335
11473
|
),
|
|
11336
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
11474
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx280("div", { className: Table_default.cell__inner, children }) : children
|
|
11337
11475
|
}
|
|
11338
|
-
) : /* @__PURE__ */
|
|
11476
|
+
) : /* @__PURE__ */ jsx280(
|
|
11339
11477
|
"td",
|
|
11340
11478
|
{
|
|
11341
11479
|
ref,
|
|
11342
11480
|
...rest,
|
|
11343
11481
|
className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
|
|
11344
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
11482
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx280("div", { className: Table_default.cell__inner, children }) : children
|
|
11345
11483
|
}
|
|
11346
11484
|
);
|
|
11347
11485
|
}
|
|
@@ -11349,23 +11487,23 @@ var Cell = forwardRef84(
|
|
|
11349
11487
|
Cell.displayName = "Table.Cell";
|
|
11350
11488
|
|
|
11351
11489
|
// src/components/Table/normal/Foot.tsx
|
|
11352
|
-
import { forwardRef as
|
|
11353
|
-
import { jsx as
|
|
11354
|
-
var Foot =
|
|
11490
|
+
import { forwardRef as forwardRef89 } from "react";
|
|
11491
|
+
import { jsx as jsx281 } from "react/jsx-runtime";
|
|
11492
|
+
var Foot = forwardRef89(
|
|
11355
11493
|
(props, ref) => {
|
|
11356
|
-
return /* @__PURE__ */
|
|
11494
|
+
return /* @__PURE__ */ jsx281("tfoot", { ref, ...props });
|
|
11357
11495
|
}
|
|
11358
11496
|
);
|
|
11359
11497
|
Foot.displayName = "Table.Foot";
|
|
11360
11498
|
|
|
11361
11499
|
// src/components/Table/normal/Row.tsx
|
|
11362
|
-
import { forwardRef as
|
|
11363
|
-
import { jsx as
|
|
11364
|
-
var Row =
|
|
11500
|
+
import { forwardRef as forwardRef90 } from "react";
|
|
11501
|
+
import { jsx as jsx282 } from "react/jsx-runtime";
|
|
11502
|
+
var Row = forwardRef90(
|
|
11365
11503
|
({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
|
|
11366
11504
|
const isInHeader = useIsInTableHead();
|
|
11367
11505
|
const type = _type != null ? _type : isInHeader ? "head" : "body";
|
|
11368
|
-
return /* @__PURE__ */
|
|
11506
|
+
return /* @__PURE__ */ jsx282(
|
|
11369
11507
|
"tr",
|
|
11370
11508
|
{
|
|
11371
11509
|
ref,
|
|
@@ -11388,16 +11526,16 @@ var Row = forwardRef86(
|
|
|
11388
11526
|
Row.displayName = "Table.Row";
|
|
11389
11527
|
|
|
11390
11528
|
// src/components/Table/normal/SortCell.tsx
|
|
11391
|
-
import { forwardRef as
|
|
11392
|
-
import { jsx as
|
|
11529
|
+
import { forwardRef as forwardRef91 } from "react";
|
|
11530
|
+
import { jsx as jsx283, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
11393
11531
|
var makeSortIcon = (isSorted, sortOrder) => {
|
|
11394
11532
|
if (!isSorted || !sortOrder) {
|
|
11395
|
-
return /* @__PURE__ */
|
|
11533
|
+
return /* @__PURE__ */ jsx283(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
|
|
11396
11534
|
}
|
|
11397
|
-
return sortOrder === "ascending" ? /* @__PURE__ */
|
|
11535
|
+
return sortOrder === "ascending" ? /* @__PURE__ */ jsx283(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx283(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
|
|
11398
11536
|
};
|
|
11399
|
-
var SortCell =
|
|
11400
|
-
({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */
|
|
11537
|
+
var SortCell = forwardRef91(
|
|
11538
|
+
({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx283(
|
|
11401
11539
|
Cell,
|
|
11402
11540
|
{
|
|
11403
11541
|
ref,
|
|
@@ -11428,9 +11566,9 @@ var SortCell = forwardRef87(
|
|
|
11428
11566
|
SortCell.displayName = "Table.SortCell";
|
|
11429
11567
|
|
|
11430
11568
|
// src/components/Table/normal/Table.tsx
|
|
11431
|
-
import { forwardRef as
|
|
11432
|
-
import { jsx as
|
|
11433
|
-
function
|
|
11569
|
+
import { forwardRef as forwardRef92 } from "react";
|
|
11570
|
+
import { jsx as jsx284 } from "react/jsx-runtime";
|
|
11571
|
+
function getDensityCn2(value) {
|
|
11434
11572
|
switch (value) {
|
|
11435
11573
|
case "normal":
|
|
11436
11574
|
case "compact":
|
|
@@ -11439,7 +11577,7 @@ function getDensityCn(value) {
|
|
|
11439
11577
|
return "extra-compact";
|
|
11440
11578
|
}
|
|
11441
11579
|
}
|
|
11442
|
-
var Table =
|
|
11580
|
+
var Table = forwardRef92(
|
|
11443
11581
|
({
|
|
11444
11582
|
density = "normal",
|
|
11445
11583
|
stickyHeader,
|
|
@@ -11448,7 +11586,7 @@ var Table = forwardRef88(
|
|
|
11448
11586
|
children,
|
|
11449
11587
|
...rest
|
|
11450
11588
|
}, ref) => {
|
|
11451
|
-
return /* @__PURE__ */
|
|
11589
|
+
return /* @__PURE__ */ jsx284(
|
|
11452
11590
|
"table",
|
|
11453
11591
|
{
|
|
11454
11592
|
ref,
|
|
@@ -11456,7 +11594,7 @@ var Table = forwardRef88(
|
|
|
11456
11594
|
className: cn(
|
|
11457
11595
|
className,
|
|
11458
11596
|
Table_default.table,
|
|
11459
|
-
Table_default[`table--${
|
|
11597
|
+
Table_default[`table--${getDensityCn2(density)}`],
|
|
11460
11598
|
withDividers && Table_default["table--with-dividers"],
|
|
11461
11599
|
stickyHeader && Table_default["table--sticky-header"],
|
|
11462
11600
|
scrollbar
|
|
@@ -11470,7 +11608,7 @@ Table.displayName = "Table";
|
|
|
11470
11608
|
|
|
11471
11609
|
// src/components/Table/normal/TableWrapper.tsx
|
|
11472
11610
|
import { useEffect as useEffect26, useRef as useRef30, useState as useState26 } from "react";
|
|
11473
|
-
import { jsx as
|
|
11611
|
+
import { jsx as jsx285 } from "react/jsx-runtime";
|
|
11474
11612
|
var TableWrapper = ({ className, ...rest }) => {
|
|
11475
11613
|
const [overflowX, setOverflowX] = useState26(false);
|
|
11476
11614
|
const [windowWidth, setWindowWidth] = useState26(window.innerWidth);
|
|
@@ -11492,7 +11630,7 @@ var TableWrapper = ({ className, ...rest }) => {
|
|
|
11492
11630
|
window.addEventListener("resize", handleResize);
|
|
11493
11631
|
return () => window.removeEventListener("resize", handleResize);
|
|
11494
11632
|
});
|
|
11495
|
-
return /* @__PURE__ */
|
|
11633
|
+
return /* @__PURE__ */ jsx285(
|
|
11496
11634
|
"div",
|
|
11497
11635
|
{
|
|
11498
11636
|
ref: wrapperRef,
|
|
@@ -11519,8 +11657,8 @@ Table2.Row = Row;
|
|
|
11519
11657
|
Table2.Foot = Foot;
|
|
11520
11658
|
|
|
11521
11659
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
11522
|
-
import { Fragment as Fragment14, jsx as
|
|
11523
|
-
var CollapsibleRow =
|
|
11660
|
+
import { Fragment as Fragment14, jsx as jsx286, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
11661
|
+
var CollapsibleRow = forwardRef93(
|
|
11524
11662
|
({
|
|
11525
11663
|
type: _type,
|
|
11526
11664
|
className,
|
|
@@ -11562,23 +11700,23 @@ var CollapsibleRow = forwardRef89(
|
|
|
11562
11700
|
const id = derivativeIdGenerator(prefix3, index.toString());
|
|
11563
11701
|
collapsibleIds.push(id);
|
|
11564
11702
|
return /* @__PURE__ */ jsxs72(Fragment13, { children: [
|
|
11565
|
-
/* @__PURE__ */
|
|
11703
|
+
/* @__PURE__ */ jsx286(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
|
|
11566
11704
|
isValidElement9(child) && cloneElement8(child, {
|
|
11567
11705
|
collapsibleProps: { isCollapsibleChild: true }
|
|
11568
11706
|
})
|
|
11569
11707
|
] }, `DL-${index}`);
|
|
11570
11708
|
}) : null;
|
|
11571
|
-
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */
|
|
11709
|
+
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsx286(Row, { ...rowProps(), children: /* @__PURE__ */ jsx286(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ jsx286(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
|
|
11572
11710
|
const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
|
|
11573
11711
|
return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
|
|
11574
11712
|
});
|
|
11575
11713
|
const headerRow = () => {
|
|
11576
11714
|
if (type !== "head" || !isCollapsed) return null;
|
|
11577
|
-
return /* @__PURE__ */
|
|
11715
|
+
return /* @__PURE__ */ jsx286(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs72(Fragment14, { children: [
|
|
11578
11716
|
definingColumnCells,
|
|
11579
11717
|
/* @__PURE__ */ jsxs72(Table2.Cell, { type: "head", layout: "center", children: [
|
|
11580
11718
|
"Utvid",
|
|
11581
|
-
/* @__PURE__ */
|
|
11719
|
+
/* @__PURE__ */ jsx286(VisuallyHidden, { as: "span", children: "raden" })
|
|
11582
11720
|
] })
|
|
11583
11721
|
] }) });
|
|
11584
11722
|
};
|
|
@@ -11587,7 +11725,7 @@ var CollapsibleRow = forwardRef89(
|
|
|
11587
11725
|
if (type !== "body" || !isCollapsed) return null;
|
|
11588
11726
|
return /* @__PURE__ */ jsxs72(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
|
|
11589
11727
|
definingColumnCells,
|
|
11590
|
-
/* @__PURE__ */
|
|
11728
|
+
/* @__PURE__ */ jsx286(Table2.Cell, { children: /* @__PURE__ */ jsx286(
|
|
11591
11729
|
"button",
|
|
11592
11730
|
{
|
|
11593
11731
|
onClick: () => setChildrenCollapsed(!childrenCollapsed),
|
|
@@ -11599,7 +11737,7 @@ var CollapsibleRow = forwardRef89(
|
|
|
11599
11737
|
utilStyles_default["remove-button-styling"],
|
|
11600
11738
|
focusable
|
|
11601
11739
|
),
|
|
11602
|
-
children: /* @__PURE__ */
|
|
11740
|
+
children: /* @__PURE__ */ jsx286(
|
|
11603
11741
|
AnimatedChevronUpDown,
|
|
11604
11742
|
{
|
|
11605
11743
|
isUp: childrenCollapsed ? false : true,
|
|
@@ -11617,22 +11755,22 @@ var CollapsibleRow = forwardRef89(
|
|
|
11617
11755
|
rowWithChevron(),
|
|
11618
11756
|
childrenCollapsed ? null : collapsedRows
|
|
11619
11757
|
] })
|
|
11620
|
-
] }) : /* @__PURE__ */
|
|
11758
|
+
] }) : /* @__PURE__ */ jsx286(Row, { ref, ...rowProps(), children });
|
|
11621
11759
|
}
|
|
11622
11760
|
);
|
|
11623
11761
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
11624
11762
|
|
|
11625
11763
|
// src/components/Table/collapsible/CollapsibleTable.tsx
|
|
11626
|
-
import { forwardRef as
|
|
11627
|
-
import { jsx as
|
|
11628
|
-
var CollapsibleTable =
|
|
11764
|
+
import { forwardRef as forwardRef94 } from "react";
|
|
11765
|
+
import { jsx as jsx287 } from "react/jsx-runtime";
|
|
11766
|
+
var CollapsibleTable = forwardRef94((props, ref) => {
|
|
11629
11767
|
const {
|
|
11630
11768
|
isCollapsed,
|
|
11631
11769
|
headerValues,
|
|
11632
11770
|
definingColumnIndex = [0],
|
|
11633
11771
|
...rest
|
|
11634
11772
|
} = props;
|
|
11635
|
-
return /* @__PURE__ */
|
|
11773
|
+
return /* @__PURE__ */ jsx287(
|
|
11636
11774
|
CollapsibleTableContext.Provider,
|
|
11637
11775
|
{
|
|
11638
11776
|
value: {
|
|
@@ -11640,7 +11778,7 @@ var CollapsibleTable = forwardRef90((props, ref) => {
|
|
|
11640
11778
|
headerValues,
|
|
11641
11779
|
definingColumnIndex
|
|
11642
11780
|
},
|
|
11643
|
-
children: /* @__PURE__ */
|
|
11781
|
+
children: /* @__PURE__ */ jsx287(Table2, { ref, ...rest })
|
|
11644
11782
|
}
|
|
11645
11783
|
);
|
|
11646
11784
|
});
|
|
@@ -11652,7 +11790,7 @@ CollapsibleTable2.Row = CollapsibleRow;
|
|
|
11652
11790
|
|
|
11653
11791
|
// src/components/Tabs/Tabs.tsx
|
|
11654
11792
|
import {
|
|
11655
|
-
forwardRef as
|
|
11793
|
+
forwardRef as forwardRef95,
|
|
11656
11794
|
useEffect as useEffect28,
|
|
11657
11795
|
useId as useId23,
|
|
11658
11796
|
useRef as useRef31,
|
|
@@ -11688,8 +11826,8 @@ var Tabs_default = {
|
|
|
11688
11826
|
};
|
|
11689
11827
|
|
|
11690
11828
|
// src/components/Tabs/Tabs.tsx
|
|
11691
|
-
import { jsx as
|
|
11692
|
-
var Tabs =
|
|
11829
|
+
import { jsx as jsx288 } from "react/jsx-runtime";
|
|
11830
|
+
var Tabs = forwardRef95((props, ref) => {
|
|
11693
11831
|
const {
|
|
11694
11832
|
id,
|
|
11695
11833
|
activeTab,
|
|
@@ -11720,7 +11858,7 @@ var Tabs = forwardRef91((props, ref) => {
|
|
|
11720
11858
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11721
11859
|
["--dds-tabs-width"]: width
|
|
11722
11860
|
};
|
|
11723
|
-
return /* @__PURE__ */
|
|
11861
|
+
return /* @__PURE__ */ jsx288(
|
|
11724
11862
|
TabsContext.Provider,
|
|
11725
11863
|
{
|
|
11726
11864
|
value: {
|
|
@@ -11733,7 +11871,7 @@ var Tabs = forwardRef91((props, ref) => {
|
|
|
11733
11871
|
setHasTabFocus,
|
|
11734
11872
|
tabContentDirection
|
|
11735
11873
|
},
|
|
11736
|
-
children: /* @__PURE__ */
|
|
11874
|
+
children: /* @__PURE__ */ jsx288(
|
|
11737
11875
|
"div",
|
|
11738
11876
|
{
|
|
11739
11877
|
ref,
|
|
@@ -11754,7 +11892,7 @@ Tabs.displayName = "Tabs";
|
|
|
11754
11892
|
|
|
11755
11893
|
// src/components/Tabs/Tab.tsx
|
|
11756
11894
|
import {
|
|
11757
|
-
forwardRef as
|
|
11895
|
+
forwardRef as forwardRef96,
|
|
11758
11896
|
useCallback as useCallback7,
|
|
11759
11897
|
useEffect as useEffect29,
|
|
11760
11898
|
useRef as useRef32
|
|
@@ -11766,13 +11904,13 @@ import {
|
|
|
11766
11904
|
useContext as useContext14,
|
|
11767
11905
|
useLayoutEffect as useLayoutEffect2
|
|
11768
11906
|
} from "react";
|
|
11769
|
-
import { jsx as
|
|
11907
|
+
import { jsx as jsx289 } from "react/jsx-runtime";
|
|
11770
11908
|
var TabContext = createContext11(null);
|
|
11771
11909
|
function TabWidthContextProvider({
|
|
11772
11910
|
children,
|
|
11773
11911
|
onChangeWidths
|
|
11774
11912
|
}) {
|
|
11775
|
-
return /* @__PURE__ */
|
|
11913
|
+
return /* @__PURE__ */ jsx289(
|
|
11776
11914
|
TabContext.Provider,
|
|
11777
11915
|
{
|
|
11778
11916
|
value: {
|
|
@@ -11804,8 +11942,8 @@ function useSetTabWidth(index, width) {
|
|
|
11804
11942
|
}
|
|
11805
11943
|
|
|
11806
11944
|
// src/components/Tabs/Tab.tsx
|
|
11807
|
-
import { jsx as
|
|
11808
|
-
var Tab =
|
|
11945
|
+
import { jsx as jsx290, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
11946
|
+
var Tab = forwardRef96((props, ref) => {
|
|
11809
11947
|
const {
|
|
11810
11948
|
active = false,
|
|
11811
11949
|
icon,
|
|
@@ -11867,8 +12005,8 @@ var Tab = forwardRef92((props, ref) => {
|
|
|
11867
12005
|
onKeyDown: handleOnKeyDown,
|
|
11868
12006
|
tabIndex: focus ? 0 : -1,
|
|
11869
12007
|
children: [
|
|
11870
|
-
icon && /* @__PURE__ */
|
|
11871
|
-
/* @__PURE__ */
|
|
12008
|
+
icon && /* @__PURE__ */ jsx290(Icon, { icon, iconSize: "inherit" }),
|
|
12009
|
+
/* @__PURE__ */ jsx290("span", { children })
|
|
11872
12010
|
]
|
|
11873
12011
|
}
|
|
11874
12012
|
);
|
|
@@ -11879,12 +12017,12 @@ Tab.displayName = "Tab";
|
|
|
11879
12017
|
import {
|
|
11880
12018
|
Children as Children6,
|
|
11881
12019
|
cloneElement as cloneElement9,
|
|
11882
|
-
forwardRef as
|
|
12020
|
+
forwardRef as forwardRef97,
|
|
11883
12021
|
isValidElement as isValidElement10,
|
|
11884
12022
|
useState as useState29
|
|
11885
12023
|
} from "react";
|
|
11886
|
-
import { jsx as
|
|
11887
|
-
var TabList =
|
|
12024
|
+
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
12025
|
+
var TabList = forwardRef97(
|
|
11888
12026
|
({ children, id, style, onFocus, ...rest }, ref) => {
|
|
11889
12027
|
const {
|
|
11890
12028
|
activeTab,
|
|
@@ -11927,7 +12065,7 @@ var TabList = forwardRef93(
|
|
|
11927
12065
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11928
12066
|
["--dds-tab-widths"]: widths.join(" ")
|
|
11929
12067
|
};
|
|
11930
|
-
return /* @__PURE__ */
|
|
12068
|
+
return /* @__PURE__ */ jsx291(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx291(
|
|
11931
12069
|
"div",
|
|
11932
12070
|
{
|
|
11933
12071
|
...rest,
|
|
@@ -11953,11 +12091,11 @@ var TabList = forwardRef93(
|
|
|
11953
12091
|
TabList.displayName = "TabList";
|
|
11954
12092
|
|
|
11955
12093
|
// src/components/Tabs/TabPanel.tsx
|
|
11956
|
-
import { forwardRef as
|
|
11957
|
-
import { jsx as
|
|
11958
|
-
var TabPanel =
|
|
12094
|
+
import { forwardRef as forwardRef98 } from "react";
|
|
12095
|
+
import { jsx as jsx292 } from "react/jsx-runtime";
|
|
12096
|
+
var TabPanel = forwardRef98(
|
|
11959
12097
|
({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
|
|
11960
|
-
return /* @__PURE__ */
|
|
12098
|
+
return /* @__PURE__ */ jsx292(
|
|
11961
12099
|
"div",
|
|
11962
12100
|
{
|
|
11963
12101
|
...getBaseHTMLProps(
|
|
@@ -11985,11 +12123,11 @@ TabPanel.displayName = "TabPanel";
|
|
|
11985
12123
|
import {
|
|
11986
12124
|
Children as Children7,
|
|
11987
12125
|
cloneElement as cloneElement10,
|
|
11988
|
-
forwardRef as
|
|
12126
|
+
forwardRef as forwardRef99,
|
|
11989
12127
|
isValidElement as isValidElement11
|
|
11990
12128
|
} from "react";
|
|
11991
|
-
import { jsx as
|
|
11992
|
-
var TabPanels =
|
|
12129
|
+
import { jsx as jsx293 } from "react/jsx-runtime";
|
|
12130
|
+
var TabPanels = forwardRef99(
|
|
11993
12131
|
({ children, ...rest }, ref) => {
|
|
11994
12132
|
const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
|
|
11995
12133
|
const combinedRef = useCombinedRef(ref, tabPanelsRef);
|
|
@@ -12002,13 +12140,13 @@ var TabPanels = forwardRef95(
|
|
|
12002
12140
|
"aria-expanded": active
|
|
12003
12141
|
});
|
|
12004
12142
|
});
|
|
12005
|
-
return /* @__PURE__ */
|
|
12143
|
+
return /* @__PURE__ */ jsx293("div", { ref: combinedRef, ...rest, children: panelChildren });
|
|
12006
12144
|
}
|
|
12007
12145
|
);
|
|
12008
12146
|
TabPanels.displayName = "TabPanels";
|
|
12009
12147
|
|
|
12010
12148
|
// src/components/Tag/Tag.tsx
|
|
12011
|
-
import { forwardRef as
|
|
12149
|
+
import { forwardRef as forwardRef100 } from "react";
|
|
12012
12150
|
|
|
12013
12151
|
// src/components/Tag/Tag.module.css
|
|
12014
12152
|
var Tag_default = {
|
|
@@ -12027,7 +12165,7 @@ var Tag_default = {
|
|
|
12027
12165
|
};
|
|
12028
12166
|
|
|
12029
12167
|
// src/components/Tag/Tag.tsx
|
|
12030
|
-
import { jsx as
|
|
12168
|
+
import { jsx as jsx294, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
12031
12169
|
var icons3 = {
|
|
12032
12170
|
info: InfoIcon,
|
|
12033
12171
|
danger: ErrorIcon,
|
|
@@ -12035,7 +12173,7 @@ var icons3 = {
|
|
|
12035
12173
|
success: CheckCircledIcon,
|
|
12036
12174
|
default: void 0
|
|
12037
12175
|
};
|
|
12038
|
-
var Tag =
|
|
12176
|
+
var Tag = forwardRef100((props, ref) => {
|
|
12039
12177
|
const {
|
|
12040
12178
|
text,
|
|
12041
12179
|
purpose = "default",
|
|
@@ -12065,8 +12203,8 @@ var Tag = forwardRef96((props, ref) => {
|
|
|
12065
12203
|
),
|
|
12066
12204
|
ref,
|
|
12067
12205
|
children: [
|
|
12068
|
-
withIcon && icon && /* @__PURE__ */
|
|
12069
|
-
/* @__PURE__ */
|
|
12206
|
+
withIcon && icon && /* @__PURE__ */ jsx294(Icon, { icon, iconSize: "small" }),
|
|
12207
|
+
/* @__PURE__ */ jsx294(TextOverflowEllipsisInner, { children: children != null ? children : text })
|
|
12070
12208
|
]
|
|
12071
12209
|
}
|
|
12072
12210
|
);
|
|
@@ -12076,7 +12214,7 @@ Tag.displayName = "Tag";
|
|
|
12076
12214
|
// src/components/TextInput/TextInput.tsx
|
|
12077
12215
|
import { ddsTokens as ddsTokens15 } from "@norges-domstoler/dds-design-tokens";
|
|
12078
12216
|
import {
|
|
12079
|
-
forwardRef as
|
|
12217
|
+
forwardRef as forwardRef101,
|
|
12080
12218
|
useId as useId24,
|
|
12081
12219
|
useLayoutEffect as useLayoutEffect3,
|
|
12082
12220
|
useRef as useRef33,
|
|
@@ -12108,8 +12246,8 @@ var TextInput_default = {
|
|
|
12108
12246
|
};
|
|
12109
12247
|
|
|
12110
12248
|
// src/components/TextInput/TextInput.tsx
|
|
12111
|
-
import { jsx as
|
|
12112
|
-
var TextInput =
|
|
12249
|
+
import { jsx as jsx295, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
12250
|
+
var TextInput = forwardRef101(
|
|
12113
12251
|
({
|
|
12114
12252
|
label,
|
|
12115
12253
|
disabled,
|
|
@@ -12204,7 +12342,7 @@ var TextInput = forwardRef97(
|
|
|
12204
12342
|
className: cn(TextInput_default["input-width"], Input_default["input-group"]),
|
|
12205
12343
|
style: styleVariables,
|
|
12206
12344
|
children: [
|
|
12207
|
-
/* @__PURE__ */
|
|
12345
|
+
/* @__PURE__ */ jsx295(
|
|
12208
12346
|
Icon,
|
|
12209
12347
|
{
|
|
12210
12348
|
icon,
|
|
@@ -12212,7 +12350,7 @@ var TextInput = forwardRef97(
|
|
|
12212
12350
|
className: cn(Input_default.icon, TextInput_default[`icon--${componentSize}`])
|
|
12213
12351
|
}
|
|
12214
12352
|
),
|
|
12215
|
-
/* @__PURE__ */
|
|
12353
|
+
/* @__PURE__ */ jsx295(
|
|
12216
12354
|
StatefulInput,
|
|
12217
12355
|
{
|
|
12218
12356
|
ref,
|
|
@@ -12237,7 +12375,7 @@ var TextInput = forwardRef97(
|
|
|
12237
12375
|
className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
|
|
12238
12376
|
style: styleVariables,
|
|
12239
12377
|
children: [
|
|
12240
|
-
prefix3 && /* @__PURE__ */
|
|
12378
|
+
prefix3 && /* @__PURE__ */ jsx295(
|
|
12241
12379
|
"span",
|
|
12242
12380
|
{
|
|
12243
12381
|
ref: prefixRef,
|
|
@@ -12250,7 +12388,7 @@ var TextInput = forwardRef97(
|
|
|
12250
12388
|
children: prefix3
|
|
12251
12389
|
}
|
|
12252
12390
|
),
|
|
12253
|
-
/* @__PURE__ */
|
|
12391
|
+
/* @__PURE__ */ jsx295(
|
|
12254
12392
|
StatefulInput,
|
|
12255
12393
|
{
|
|
12256
12394
|
ref,
|
|
@@ -12265,7 +12403,7 @@ var TextInput = forwardRef97(
|
|
|
12265
12403
|
className: TextInput_default["input--extended"]
|
|
12266
12404
|
}
|
|
12267
12405
|
),
|
|
12268
|
-
suffix && /* @__PURE__ */
|
|
12406
|
+
suffix && /* @__PURE__ */ jsx295(
|
|
12269
12407
|
"span",
|
|
12270
12408
|
{
|
|
12271
12409
|
ref: suffixRef,
|
|
@@ -12294,7 +12432,7 @@ var TextInput = forwardRef97(
|
|
|
12294
12432
|
),
|
|
12295
12433
|
style,
|
|
12296
12434
|
children: [
|
|
12297
|
-
hasLabel && /* @__PURE__ */
|
|
12435
|
+
hasLabel && /* @__PURE__ */ jsx295(
|
|
12298
12436
|
Label,
|
|
12299
12437
|
{
|
|
12300
12438
|
htmlFor: uniqueId,
|
|
@@ -12304,7 +12442,7 @@ var TextInput = forwardRef97(
|
|
|
12304
12442
|
children: label
|
|
12305
12443
|
}
|
|
12306
12444
|
),
|
|
12307
|
-
extendedInput ? extendedInput : /* @__PURE__ */
|
|
12445
|
+
extendedInput ? extendedInput : /* @__PURE__ */ jsx295(
|
|
12308
12446
|
StatefulInput,
|
|
12309
12447
|
{
|
|
12310
12448
|
ref,
|
|
@@ -12359,7 +12497,7 @@ var ToggleBar_default = {
|
|
|
12359
12497
|
};
|
|
12360
12498
|
|
|
12361
12499
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
12362
|
-
import { jsx as
|
|
12500
|
+
import { jsx as jsx296, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
12363
12501
|
var ToggleBar = (props) => {
|
|
12364
12502
|
const {
|
|
12365
12503
|
children,
|
|
@@ -12382,7 +12520,7 @@ var ToggleBar = (props) => {
|
|
|
12382
12520
|
(e) => onChange && onChange(e, e.target.value)
|
|
12383
12521
|
);
|
|
12384
12522
|
const labelId = label && `${uniqueId}-label`;
|
|
12385
|
-
return /* @__PURE__ */
|
|
12523
|
+
return /* @__PURE__ */ jsx296(
|
|
12386
12524
|
ToggleBarContext.Provider,
|
|
12387
12525
|
{
|
|
12388
12526
|
value: {
|
|
@@ -12404,8 +12542,8 @@ var ToggleBar = (props) => {
|
|
|
12404
12542
|
role: "radiogroup",
|
|
12405
12543
|
"aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
|
|
12406
12544
|
children: [
|
|
12407
|
-
label && /* @__PURE__ */
|
|
12408
|
-
/* @__PURE__ */
|
|
12545
|
+
label && /* @__PURE__ */ jsx296(Label, { id: labelId, children: label }),
|
|
12546
|
+
/* @__PURE__ */ jsx296("div", { className: ToggleBar_default.bar, children })
|
|
12409
12547
|
]
|
|
12410
12548
|
}
|
|
12411
12549
|
)
|
|
@@ -12416,10 +12554,10 @@ ToggleBar.displayName = "ToggleBar";
|
|
|
12416
12554
|
|
|
12417
12555
|
// src/components/ToggleBar/ToggleRadio.tsx
|
|
12418
12556
|
import {
|
|
12419
|
-
forwardRef as
|
|
12557
|
+
forwardRef as forwardRef102,
|
|
12420
12558
|
useId as useId26
|
|
12421
12559
|
} from "react";
|
|
12422
|
-
import { jsx as
|
|
12560
|
+
import { jsx as jsx297, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
12423
12561
|
var typographyTypes4 = {
|
|
12424
12562
|
large: "bodySans04",
|
|
12425
12563
|
medium: "bodySans02",
|
|
@@ -12436,7 +12574,7 @@ var calculateChecked = (value, group, checked) => {
|
|
|
12436
12574
|
}
|
|
12437
12575
|
return !!value;
|
|
12438
12576
|
};
|
|
12439
|
-
var ToggleRadio =
|
|
12577
|
+
var ToggleRadio = forwardRef102(
|
|
12440
12578
|
(props, ref) => {
|
|
12441
12579
|
const {
|
|
12442
12580
|
value,
|
|
@@ -12461,7 +12599,7 @@ var ToggleRadio = forwardRef98(
|
|
|
12461
12599
|
};
|
|
12462
12600
|
const contentTypeCn = label ? "with-text" : "just-icon";
|
|
12463
12601
|
return /* @__PURE__ */ jsxs77("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
|
|
12464
|
-
/* @__PURE__ */
|
|
12602
|
+
/* @__PURE__ */ jsx297(
|
|
12465
12603
|
"input",
|
|
12466
12604
|
{
|
|
12467
12605
|
...getBaseHTMLProps(
|
|
@@ -12495,8 +12633,8 @@ var ToggleRadio = forwardRef98(
|
|
|
12495
12633
|
focus_default["focus-styled-sibling"]
|
|
12496
12634
|
),
|
|
12497
12635
|
children: [
|
|
12498
|
-
icon && /* @__PURE__ */
|
|
12499
|
-
label && /* @__PURE__ */
|
|
12636
|
+
icon && /* @__PURE__ */ jsx297(Icon, { icon, iconSize: "inherit" }),
|
|
12637
|
+
label && /* @__PURE__ */ jsx297("span", { children: label })
|
|
12500
12638
|
]
|
|
12501
12639
|
}
|
|
12502
12640
|
)
|
|
@@ -12506,7 +12644,7 @@ var ToggleRadio = forwardRef98(
|
|
|
12506
12644
|
ToggleRadio.displayName = "ToggleRadio";
|
|
12507
12645
|
|
|
12508
12646
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
12509
|
-
import { forwardRef as
|
|
12647
|
+
import { forwardRef as forwardRef103, useId as useId27 } from "react";
|
|
12510
12648
|
|
|
12511
12649
|
// src/components/ToggleButton/ToggleButton.module.css
|
|
12512
12650
|
var ToggleButton_default = {
|
|
@@ -12519,13 +12657,13 @@ var ToggleButton_default = {
|
|
|
12519
12657
|
};
|
|
12520
12658
|
|
|
12521
12659
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
12522
|
-
import { jsx as
|
|
12523
|
-
var ToggleButton =
|
|
12660
|
+
import { jsx as jsx298, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
12661
|
+
var ToggleButton = forwardRef103(
|
|
12524
12662
|
({ id, label, icon, className, htmlProps, ...rest }, ref) => {
|
|
12525
12663
|
const generatedId = useId27();
|
|
12526
12664
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
12527
12665
|
return /* @__PURE__ */ jsxs78("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
|
|
12528
|
-
/* @__PURE__ */
|
|
12666
|
+
/* @__PURE__ */ jsx298(
|
|
12529
12667
|
"input",
|
|
12530
12668
|
{
|
|
12531
12669
|
...getBaseHTMLProps(
|
|
@@ -12551,7 +12689,7 @@ var ToggleButton = forwardRef99(
|
|
|
12551
12689
|
focus_default["focus-styled-sibling"]
|
|
12552
12690
|
),
|
|
12553
12691
|
children: [
|
|
12554
|
-
icon && /* @__PURE__ */
|
|
12692
|
+
icon && /* @__PURE__ */ jsx298(Icon, { icon, iconSize: "inherit" }),
|
|
12555
12693
|
" ",
|
|
12556
12694
|
label
|
|
12557
12695
|
]
|
|
@@ -12564,7 +12702,7 @@ ToggleButton.displayName = "ToggleButton";
|
|
|
12564
12702
|
|
|
12565
12703
|
// src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
12566
12704
|
import { useId as useId28 } from "react";
|
|
12567
|
-
import { jsx as
|
|
12705
|
+
import { jsx as jsx299, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
12568
12706
|
var ToggleButtonGroup = (props) => {
|
|
12569
12707
|
const {
|
|
12570
12708
|
children,
|
|
@@ -12590,7 +12728,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
12590
12728
|
role: "group",
|
|
12591
12729
|
"aria-labelledby": label ? uniqueLabelId : void 0,
|
|
12592
12730
|
children: [
|
|
12593
|
-
!!label && /* @__PURE__ */
|
|
12731
|
+
!!label && /* @__PURE__ */ jsx299(
|
|
12594
12732
|
Typography,
|
|
12595
12733
|
{
|
|
12596
12734
|
as: "span",
|
|
@@ -12599,7 +12737,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
12599
12737
|
children: label
|
|
12600
12738
|
}
|
|
12601
12739
|
),
|
|
12602
|
-
/* @__PURE__ */
|
|
12740
|
+
/* @__PURE__ */ jsx299("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
|
|
12603
12741
|
]
|
|
12604
12742
|
}
|
|
12605
12743
|
);
|
|
@@ -12675,6 +12813,10 @@ export {
|
|
|
12675
12813
|
DescriptionListDesc,
|
|
12676
12814
|
DescriptionListGroup,
|
|
12677
12815
|
DescriptionListTerm,
|
|
12816
|
+
DetailList,
|
|
12817
|
+
DetailListDesc,
|
|
12818
|
+
DetailListRow,
|
|
12819
|
+
DetailListTerm,
|
|
12678
12820
|
Divider,
|
|
12679
12821
|
DoubleChevronLeftIcon,
|
|
12680
12822
|
DoubleChevronRightIcon,
|
|
@@ -12901,6 +13043,7 @@ export {
|
|
|
12901
13043
|
focusVisibleTransitionValue,
|
|
12902
13044
|
getBaseHTMLProps,
|
|
12903
13045
|
getDefaultText,
|
|
13046
|
+
getDensityCn,
|
|
12904
13047
|
getElementType,
|
|
12905
13048
|
getLiteralScreenSize,
|
|
12906
13049
|
getTypographyCn,
|