@norges-domstoler/dds-components 17.1.0 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.css +48 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +60 -3
- package/dist/index.d.ts +60 -3
- package/dist/index.js +838 -697
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +575 -439
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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) {
|
|
@@ -6232,8 +6243,96 @@ var DescriptionListGroup = forwardRef39((props, ref) => {
|
|
|
6232
6243
|
});
|
|
6233
6244
|
DescriptionListGroup.displayName = "DescriptionListGroup";
|
|
6234
6245
|
|
|
6246
|
+
// src/components/DetailList/DetailList.tsx
|
|
6247
|
+
import { forwardRef as forwardRef40 } from "react";
|
|
6248
|
+
|
|
6249
|
+
// src/components/DetailList/DetailList.module.css
|
|
6250
|
+
var DetailList_default = {
|
|
6251
|
+
list: "DetailList_list",
|
|
6252
|
+
"list--with-dividers": "DetailList_list--with-dividers",
|
|
6253
|
+
row: "DetailList_row",
|
|
6254
|
+
"list--striped": "DetailList_list--striped",
|
|
6255
|
+
"list--normal": "DetailList_list--normal",
|
|
6256
|
+
cell: "DetailList_cell",
|
|
6257
|
+
"list--compact": "DetailList_list--compact",
|
|
6258
|
+
"list--extra-compact": "DetailList_list--extra-compact",
|
|
6259
|
+
term: "DetailList_term"
|
|
6260
|
+
};
|
|
6261
|
+
|
|
6262
|
+
// src/components/DetailList/DetailList.tsx
|
|
6263
|
+
import { jsx as jsx215 } from "react/jsx-runtime";
|
|
6264
|
+
var DetailList = forwardRef40(
|
|
6265
|
+
(props, ref) => {
|
|
6266
|
+
const {
|
|
6267
|
+
id,
|
|
6268
|
+
className,
|
|
6269
|
+
htmlProps,
|
|
6270
|
+
withDividers = true,
|
|
6271
|
+
striped = true,
|
|
6272
|
+
density = "normal",
|
|
6273
|
+
...rest
|
|
6274
|
+
} = props;
|
|
6275
|
+
return /* @__PURE__ */ jsx215(
|
|
6276
|
+
"dl",
|
|
6277
|
+
{
|
|
6278
|
+
ref,
|
|
6279
|
+
...getBaseHTMLProps(
|
|
6280
|
+
id,
|
|
6281
|
+
cn(
|
|
6282
|
+
className,
|
|
6283
|
+
DetailList_default.list,
|
|
6284
|
+
DetailList_default[`list--${getDensityCn(density)}`],
|
|
6285
|
+
withDividers && DetailList_default["list--with-dividers"],
|
|
6286
|
+
striped && DetailList_default["list--striped"]
|
|
6287
|
+
),
|
|
6288
|
+
htmlProps,
|
|
6289
|
+
rest
|
|
6290
|
+
)
|
|
6291
|
+
}
|
|
6292
|
+
);
|
|
6293
|
+
}
|
|
6294
|
+
);
|
|
6295
|
+
DetailList.displayName = "DetailList";
|
|
6296
|
+
|
|
6297
|
+
// src/components/DetailList/DetailListDesc.tsx
|
|
6298
|
+
import { forwardRef as forwardRef41 } from "react";
|
|
6299
|
+
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
6300
|
+
var DetailListDesc = forwardRef41(
|
|
6301
|
+
({ className, ...rest }, ref) => {
|
|
6302
|
+
return /* @__PURE__ */ jsx216("dd", { ref, className: cn(className, DetailList_default.cell), ...rest });
|
|
6303
|
+
}
|
|
6304
|
+
);
|
|
6305
|
+
DetailListDesc.displayName = "DetailListDesc";
|
|
6306
|
+
|
|
6307
|
+
// src/components/DetailList/DetailListRow.tsx
|
|
6308
|
+
import { forwardRef as forwardRef42 } from "react";
|
|
6309
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
6310
|
+
var DetailListRow = forwardRef42(
|
|
6311
|
+
({ className, ...rest }, ref) => {
|
|
6312
|
+
return /* @__PURE__ */ jsx217("div", { ref, className: cn(className, DetailList_default.row), ...rest });
|
|
6313
|
+
}
|
|
6314
|
+
);
|
|
6315
|
+
DetailListRow.displayName = "DetailListRow";
|
|
6316
|
+
|
|
6317
|
+
// src/components/DetailList/DetailListTerm.tsx
|
|
6318
|
+
import { forwardRef as forwardRef43 } from "react";
|
|
6319
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
6320
|
+
var DetailListTerm = forwardRef43(
|
|
6321
|
+
({ className, ...rest }, ref) => {
|
|
6322
|
+
return /* @__PURE__ */ jsx218(
|
|
6323
|
+
"dt",
|
|
6324
|
+
{
|
|
6325
|
+
ref,
|
|
6326
|
+
className: cn(className, DetailList_default.cell, DetailList_default.term),
|
|
6327
|
+
...rest
|
|
6328
|
+
}
|
|
6329
|
+
);
|
|
6330
|
+
}
|
|
6331
|
+
);
|
|
6332
|
+
DetailListTerm.displayName = "DetailListTerm";
|
|
6333
|
+
|
|
6235
6334
|
// src/components/Drawer/Drawer.tsx
|
|
6236
|
-
import { forwardRef as
|
|
6335
|
+
import { forwardRef as forwardRef44, useId as useId6 } from "react";
|
|
6237
6336
|
import { createPortal } from "react-dom";
|
|
6238
6337
|
|
|
6239
6338
|
// src/components/Drawer/Drawer.module.css
|
|
@@ -6253,8 +6352,8 @@ var Drawer_default = {
|
|
|
6253
6352
|
};
|
|
6254
6353
|
|
|
6255
6354
|
// src/components/Drawer/Drawer.tsx
|
|
6256
|
-
import { jsx as
|
|
6257
|
-
var Drawer =
|
|
6355
|
+
import { jsx as jsx219, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6356
|
+
var Drawer = forwardRef44((props, ref) => {
|
|
6258
6357
|
const {
|
|
6259
6358
|
children,
|
|
6260
6359
|
onClose,
|
|
@@ -6325,12 +6424,12 @@ var Drawer = forwardRef40((props, ref) => {
|
|
|
6325
6424
|
utilStyles_default["scrollable-y"]
|
|
6326
6425
|
),
|
|
6327
6426
|
children: [
|
|
6328
|
-
hasHeader && /* @__PURE__ */
|
|
6427
|
+
hasHeader && /* @__PURE__ */ jsx219("div", { id: headerId, children: typeof header === "string" ? /* @__PURE__ */ jsx219(Heading, { level: 2, typographyType: "headingSans03", children: header }) : header }),
|
|
6329
6428
|
children
|
|
6330
6429
|
]
|
|
6331
6430
|
}
|
|
6332
6431
|
),
|
|
6333
|
-
/* @__PURE__ */
|
|
6432
|
+
/* @__PURE__ */ jsx219(
|
|
6334
6433
|
Button,
|
|
6335
6434
|
{
|
|
6336
6435
|
className: cn(Drawer_default["button--close"]),
|
|
@@ -6408,7 +6507,7 @@ var EmptyContent_default = {
|
|
|
6408
6507
|
};
|
|
6409
6508
|
|
|
6410
6509
|
// src/components/EmptyContent/EmptyContent.tsx
|
|
6411
|
-
import { jsx as
|
|
6510
|
+
import { jsx as jsx220, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6412
6511
|
function EmptyContent({
|
|
6413
6512
|
title,
|
|
6414
6513
|
message,
|
|
@@ -6416,15 +6515,15 @@ function EmptyContent({
|
|
|
6416
6515
|
className,
|
|
6417
6516
|
...rest
|
|
6418
6517
|
}) {
|
|
6419
|
-
return /* @__PURE__ */
|
|
6420
|
-
title && /* @__PURE__ */
|
|
6421
|
-
/* @__PURE__ */
|
|
6518
|
+
return /* @__PURE__ */ jsx220("div", { ...rest, className: cn(className, EmptyContent_default.containter), children: /* @__PURE__ */ jsxs42("div", { className: EmptyContent_default.text, children: [
|
|
6519
|
+
title && /* @__PURE__ */ jsx220(Heading, { level: titleHeadingLevel, typographyType: "headingSans02", children: title }),
|
|
6520
|
+
/* @__PURE__ */ jsx220(Paragraph, { className: EmptyContent_default.message, children: message })
|
|
6422
6521
|
] }) });
|
|
6423
6522
|
}
|
|
6424
6523
|
EmptyContent.displayName = "EmptyContent";
|
|
6425
6524
|
|
|
6426
6525
|
// src/components/FavStar/FavStar.tsx
|
|
6427
|
-
import { forwardRef as
|
|
6526
|
+
import { forwardRef as forwardRef45, useId as useId8 } from "react";
|
|
6428
6527
|
|
|
6429
6528
|
// src/components/FavStar/FavStar.module.css
|
|
6430
6529
|
var FavStar_default = {
|
|
@@ -6473,8 +6572,8 @@ function useControllableState(props) {
|
|
|
6473
6572
|
}
|
|
6474
6573
|
|
|
6475
6574
|
// src/components/FavStar/FavStar.tsx
|
|
6476
|
-
import { jsx as
|
|
6477
|
-
var FavStar =
|
|
6575
|
+
import { jsx as jsx221, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
6576
|
+
var FavStar = forwardRef45(
|
|
6478
6577
|
({
|
|
6479
6578
|
id,
|
|
6480
6579
|
className,
|
|
@@ -6510,7 +6609,7 @@ var FavStar = forwardRef41(
|
|
|
6510
6609
|
style,
|
|
6511
6610
|
htmlFor: id != null ? id : generatedId,
|
|
6512
6611
|
children: [
|
|
6513
|
-
/* @__PURE__ */
|
|
6612
|
+
/* @__PURE__ */ jsx221(
|
|
6514
6613
|
"input",
|
|
6515
6614
|
{
|
|
6516
6615
|
...props,
|
|
@@ -6523,8 +6622,8 @@ var FavStar = forwardRef41(
|
|
|
6523
6622
|
className: utilStyles_default["hide-input"]
|
|
6524
6623
|
}
|
|
6525
6624
|
),
|
|
6526
|
-
/* @__PURE__ */
|
|
6527
|
-
/* @__PURE__ */
|
|
6625
|
+
/* @__PURE__ */ jsx221(Icon, { iconSize: size2, icon: StarIcon, className: FavStar_default.icon }),
|
|
6626
|
+
/* @__PURE__ */ jsx221(
|
|
6528
6627
|
Icon,
|
|
6529
6628
|
{
|
|
6530
6629
|
iconSize: size2,
|
|
@@ -6554,7 +6653,7 @@ var Feedback_default = {
|
|
|
6554
6653
|
};
|
|
6555
6654
|
|
|
6556
6655
|
// src/components/Stack/Stack.tsx
|
|
6557
|
-
import { forwardRef as
|
|
6656
|
+
import { forwardRef as forwardRef46 } from "react";
|
|
6558
6657
|
|
|
6559
6658
|
// src/components/Stack/Stack.module.css
|
|
6560
6659
|
var Stack_default = {
|
|
@@ -6590,8 +6689,8 @@ var Stack_default = {
|
|
|
6590
6689
|
};
|
|
6591
6690
|
|
|
6592
6691
|
// src/components/Stack/Stack.tsx
|
|
6593
|
-
import { jsx as
|
|
6594
|
-
var HStack =
|
|
6692
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
6693
|
+
var HStack = forwardRef46(
|
|
6595
6694
|
({
|
|
6596
6695
|
id,
|
|
6597
6696
|
className,
|
|
@@ -6608,7 +6707,7 @@ var HStack = forwardRef42(
|
|
|
6608
6707
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6609
6708
|
["--dds-stack-justify-content"]: justify
|
|
6610
6709
|
};
|
|
6611
|
-
return /* @__PURE__ */
|
|
6710
|
+
return /* @__PURE__ */ jsx222(
|
|
6612
6711
|
"div",
|
|
6613
6712
|
{
|
|
6614
6713
|
ref,
|
|
@@ -6630,7 +6729,7 @@ var HStack = forwardRef42(
|
|
|
6630
6729
|
}
|
|
6631
6730
|
);
|
|
6632
6731
|
HStack.displayName = "HStack";
|
|
6633
|
-
var VStack =
|
|
6732
|
+
var VStack = forwardRef46(
|
|
6634
6733
|
({
|
|
6635
6734
|
id,
|
|
6636
6735
|
className,
|
|
@@ -6647,7 +6746,7 @@ var VStack = forwardRef42(
|
|
|
6647
6746
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6648
6747
|
["--dds-stack-justify-content"]: justify
|
|
6649
6748
|
};
|
|
6650
|
-
return /* @__PURE__ */
|
|
6749
|
+
return /* @__PURE__ */ jsx222(
|
|
6651
6750
|
"div",
|
|
6652
6751
|
{
|
|
6653
6752
|
ref,
|
|
@@ -6674,7 +6773,7 @@ function spacingPropToCn(value) {
|
|
|
6674
6773
|
}
|
|
6675
6774
|
|
|
6676
6775
|
// src/components/TextArea/TextArea.tsx
|
|
6677
|
-
import { forwardRef as
|
|
6776
|
+
import { forwardRef as forwardRef47, useEffect as useEffect18, useId as useId9, useRef as useRef19, useState as useState12 } from "react";
|
|
6678
6777
|
|
|
6679
6778
|
// src/components/TextArea/TextArea.module.css
|
|
6680
6779
|
var TextArea_default = {
|
|
@@ -6683,8 +6782,8 @@ var TextArea_default = {
|
|
|
6683
6782
|
};
|
|
6684
6783
|
|
|
6685
6784
|
// src/components/TextArea/TextArea.tsx
|
|
6686
|
-
import { jsx as
|
|
6687
|
-
var TextArea =
|
|
6785
|
+
import { jsx as jsx223, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
6786
|
+
var TextArea = forwardRef47(
|
|
6688
6787
|
(props, ref) => {
|
|
6689
6788
|
const {
|
|
6690
6789
|
id,
|
|
@@ -6742,7 +6841,7 @@ var TextArea = forwardRef43(
|
|
|
6742
6841
|
className: cn(className, Input_default.container),
|
|
6743
6842
|
style: { ...style },
|
|
6744
6843
|
children: [
|
|
6745
|
-
hasLabel && /* @__PURE__ */
|
|
6844
|
+
hasLabel && /* @__PURE__ */ jsx223(
|
|
6746
6845
|
Label,
|
|
6747
6846
|
{
|
|
6748
6847
|
showRequiredStyling,
|
|
@@ -6752,7 +6851,7 @@ var TextArea = forwardRef43(
|
|
|
6752
6851
|
children: label
|
|
6753
6852
|
}
|
|
6754
6853
|
),
|
|
6755
|
-
/* @__PURE__ */
|
|
6854
|
+
/* @__PURE__ */ jsx223(
|
|
6756
6855
|
"textarea",
|
|
6757
6856
|
{
|
|
6758
6857
|
ref: multiRef,
|
|
@@ -6801,7 +6900,7 @@ var TextArea = forwardRef43(
|
|
|
6801
6900
|
TextArea.displayName = "TextArea";
|
|
6802
6901
|
|
|
6803
6902
|
// src/components/Feedback/CommentComponent.tsx
|
|
6804
|
-
import { jsx as
|
|
6903
|
+
import { jsx as jsx224, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
6805
6904
|
var CommentComponent = ({
|
|
6806
6905
|
rating,
|
|
6807
6906
|
feedbackText,
|
|
@@ -6815,7 +6914,7 @@ var CommentComponent = ({
|
|
|
6815
6914
|
}) => {
|
|
6816
6915
|
return /* @__PURE__ */ jsxs45(VStack, { gap: "x1", align: "flex-start", children: [
|
|
6817
6916
|
/* @__PURE__ */ jsxs45("span", { className: Feedback_default["rating-submitted-title"], children: [
|
|
6818
|
-
/* @__PURE__ */
|
|
6917
|
+
/* @__PURE__ */ jsx224(
|
|
6819
6918
|
Icon,
|
|
6820
6919
|
{
|
|
6821
6920
|
icon: rating === "positive" ? ThumbUpFilledIcon : ThumbDownFilledIcon,
|
|
@@ -6827,7 +6926,7 @@ var CommentComponent = ({
|
|
|
6827
6926
|
" "
|
|
6828
6927
|
] })
|
|
6829
6928
|
] }),
|
|
6830
|
-
/* @__PURE__ */
|
|
6929
|
+
/* @__PURE__ */ jsx224(
|
|
6831
6930
|
TextArea,
|
|
6832
6931
|
{
|
|
6833
6932
|
value: feedbackText,
|
|
@@ -6836,7 +6935,7 @@ var CommentComponent = ({
|
|
|
6836
6935
|
tip: textAreaTip
|
|
6837
6936
|
}
|
|
6838
6937
|
),
|
|
6839
|
-
/* @__PURE__ */
|
|
6938
|
+
/* @__PURE__ */ jsx224(
|
|
6840
6939
|
Button,
|
|
6841
6940
|
{
|
|
6842
6941
|
purpose: "secondary",
|
|
@@ -6853,7 +6952,7 @@ var CommentComponent = ({
|
|
|
6853
6952
|
import {
|
|
6854
6953
|
Children as ReactChildren4,
|
|
6855
6954
|
cloneElement as cloneElement4,
|
|
6856
|
-
forwardRef as
|
|
6955
|
+
forwardRef as forwardRef48,
|
|
6857
6956
|
isValidElement as isValidElement5,
|
|
6858
6957
|
useEffect as useEffect19,
|
|
6859
6958
|
useId as useId10,
|
|
@@ -6870,8 +6969,8 @@ var Tooltip_default = {
|
|
|
6870
6969
|
};
|
|
6871
6970
|
|
|
6872
6971
|
// src/components/Tooltip/Tooltip.tsx
|
|
6873
|
-
import { jsx as
|
|
6874
|
-
var Tooltip =
|
|
6972
|
+
import { jsx as jsx225, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
6973
|
+
var Tooltip = forwardRef48(
|
|
6875
6974
|
(props, ref) => {
|
|
6876
6975
|
const {
|
|
6877
6976
|
text,
|
|
@@ -6984,15 +7083,15 @@ var Tooltip = forwardRef44(
|
|
|
6984
7083
|
),
|
|
6985
7084
|
children: [
|
|
6986
7085
|
text,
|
|
6987
|
-
/* @__PURE__ */
|
|
6988
|
-
/* @__PURE__ */
|
|
7086
|
+
/* @__PURE__ */ jsx225("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs46("svg", { width: "36", height: "9", children: [
|
|
7087
|
+
/* @__PURE__ */ jsx225(
|
|
6989
7088
|
"path",
|
|
6990
7089
|
{
|
|
6991
7090
|
d: "M16.586 6.586L10 0h16.154a.373.373 0 00-.263.11l-6.477 6.476a2 2 0 01-2.828 0z",
|
|
6992
7091
|
className: Tooltip_default["svg-arrow__background"]
|
|
6993
7092
|
}
|
|
6994
7093
|
),
|
|
6995
|
-
/* @__PURE__ */
|
|
7094
|
+
/* @__PURE__ */ jsx225(
|
|
6996
7095
|
"path",
|
|
6997
7096
|
{
|
|
6998
7097
|
fillRule: "evenodd",
|
|
@@ -7011,7 +7110,7 @@ var Tooltip = forwardRef44(
|
|
|
7011
7110
|
Tooltip.displayName = "Tooltip";
|
|
7012
7111
|
|
|
7013
7112
|
// src/components/Feedback/RatingComponent.tsx
|
|
7014
|
-
import { jsx as
|
|
7113
|
+
import { jsx as jsx226, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7015
7114
|
var RatingComponent = ({
|
|
7016
7115
|
layout,
|
|
7017
7116
|
ratingLabel,
|
|
@@ -7021,7 +7120,7 @@ var RatingComponent = ({
|
|
|
7021
7120
|
handleRatingChange
|
|
7022
7121
|
}) => {
|
|
7023
7122
|
const layoutCn = layout === "vertical" ? "column" : "row";
|
|
7024
|
-
const button = (purpose, layout2) => /* @__PURE__ */
|
|
7123
|
+
const button = (purpose, layout2) => /* @__PURE__ */ jsx226(
|
|
7025
7124
|
"button",
|
|
7026
7125
|
{
|
|
7027
7126
|
"aria-label": purpose === "up" ? thumbUpTooltip : thumbDownTooltip,
|
|
@@ -7032,7 +7131,7 @@ var RatingComponent = ({
|
|
|
7032
7131
|
Feedback_default[`button--${layout2}`],
|
|
7033
7132
|
focusable
|
|
7034
7133
|
),
|
|
7035
|
-
children: /* @__PURE__ */
|
|
7134
|
+
children: /* @__PURE__ */ jsx226(
|
|
7036
7135
|
Icon,
|
|
7037
7136
|
{
|
|
7038
7137
|
icon: purpose === "up" ? ThumbUpIcon : ThumbDownIcon,
|
|
@@ -7049,10 +7148,10 @@ var RatingComponent = ({
|
|
|
7049
7148
|
Feedback_default[`rating-container--${layoutCn}`]
|
|
7050
7149
|
),
|
|
7051
7150
|
children: [
|
|
7052
|
-
/* @__PURE__ */
|
|
7053
|
-
loading ? /* @__PURE__ */
|
|
7054
|
-
/* @__PURE__ */
|
|
7055
|
-
/* @__PURE__ */
|
|
7151
|
+
/* @__PURE__ */ jsx226(Label, { children: ratingLabel }),
|
|
7152
|
+
loading ? /* @__PURE__ */ jsx226(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ jsxs47(HStack, { gap: "x1", children: [
|
|
7153
|
+
/* @__PURE__ */ jsx226(Tooltip, { text: thumbUpTooltip, children: button("up", layout) }),
|
|
7154
|
+
/* @__PURE__ */ jsx226(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx226("div", { children: button("down", layout) }) })
|
|
7056
7155
|
] })
|
|
7057
7156
|
]
|
|
7058
7157
|
}
|
|
@@ -7060,7 +7159,7 @@ var RatingComponent = ({
|
|
|
7060
7159
|
};
|
|
7061
7160
|
|
|
7062
7161
|
// src/components/Feedback/Feedback.tsx
|
|
7063
|
-
import { jsx as
|
|
7162
|
+
import { jsx as jsx227 } from "react/jsx-runtime";
|
|
7064
7163
|
var Feedback = ({
|
|
7065
7164
|
layout = "vertical",
|
|
7066
7165
|
ratingLabel = "Hva syns du om tjenesten?",
|
|
@@ -7106,7 +7205,7 @@ var Feedback = ({
|
|
|
7106
7205
|
isSubmittedProp === void 0 && setIsFeedbackSubmitted(true);
|
|
7107
7206
|
};
|
|
7108
7207
|
if (rating === null && !isFeedbackSubmitted) {
|
|
7109
|
-
return /* @__PURE__ */
|
|
7208
|
+
return /* @__PURE__ */ jsx227(
|
|
7110
7209
|
RatingComponent,
|
|
7111
7210
|
{
|
|
7112
7211
|
layout,
|
|
@@ -7119,7 +7218,7 @@ var Feedback = ({
|
|
|
7119
7218
|
);
|
|
7120
7219
|
}
|
|
7121
7220
|
if (!feedbackTextAreaExcluded && !isFeedbackSubmitted) {
|
|
7122
|
-
return /* @__PURE__ */
|
|
7221
|
+
return /* @__PURE__ */ jsx227(
|
|
7123
7222
|
CommentComponent,
|
|
7124
7223
|
{
|
|
7125
7224
|
rating,
|
|
@@ -7134,11 +7233,11 @@ var Feedback = ({
|
|
|
7134
7233
|
}
|
|
7135
7234
|
);
|
|
7136
7235
|
}
|
|
7137
|
-
return /* @__PURE__ */
|
|
7236
|
+
return /* @__PURE__ */ jsx227(Paragraph, { children: submittedTitle });
|
|
7138
7237
|
};
|
|
7139
7238
|
|
|
7140
7239
|
// src/components/Fieldset/Fieldset.tsx
|
|
7141
|
-
import { forwardRef as
|
|
7240
|
+
import { forwardRef as forwardRef49 } from "react";
|
|
7142
7241
|
|
|
7143
7242
|
// src/components/Fieldset/Fieldset.module.css
|
|
7144
7243
|
var Fieldset_default = {
|
|
@@ -7146,11 +7245,11 @@ var Fieldset_default = {
|
|
|
7146
7245
|
};
|
|
7147
7246
|
|
|
7148
7247
|
// src/components/Fieldset/Fieldset.tsx
|
|
7149
|
-
import { jsx as
|
|
7150
|
-
var Fieldset =
|
|
7248
|
+
import { jsx as jsx228 } from "react/jsx-runtime";
|
|
7249
|
+
var Fieldset = forwardRef49(
|
|
7151
7250
|
(props, ref) => {
|
|
7152
7251
|
const { id, className, htmlProps, ...rest } = props;
|
|
7153
|
-
return /* @__PURE__ */
|
|
7252
|
+
return /* @__PURE__ */ jsx228(
|
|
7154
7253
|
"fieldset",
|
|
7155
7254
|
{
|
|
7156
7255
|
ref,
|
|
@@ -7169,14 +7268,14 @@ var Fieldset = forwardRef45(
|
|
|
7169
7268
|
import { useId as useId11 } from "react";
|
|
7170
7269
|
|
|
7171
7270
|
// src/components/FileUploader/ErrorList.tsx
|
|
7172
|
-
import { jsx as
|
|
7271
|
+
import { jsx as jsx229 } from "react/jsx-runtime";
|
|
7173
7272
|
var ErrorList = (props) => {
|
|
7174
7273
|
const { errors } = props;
|
|
7175
7274
|
if (errors.length < 1) {
|
|
7176
7275
|
return null;
|
|
7177
7276
|
}
|
|
7178
7277
|
if (errors.length === 1) {
|
|
7179
|
-
return /* @__PURE__ */
|
|
7278
|
+
return /* @__PURE__ */ jsx229(
|
|
7180
7279
|
InputMessage,
|
|
7181
7280
|
{
|
|
7182
7281
|
id: errors[0].id,
|
|
@@ -7185,8 +7284,8 @@ var ErrorList = (props) => {
|
|
|
7185
7284
|
}
|
|
7186
7285
|
);
|
|
7187
7286
|
}
|
|
7188
|
-
return /* @__PURE__ */
|
|
7189
|
-
return /* @__PURE__ */
|
|
7287
|
+
return /* @__PURE__ */ jsx229("ul", { className: utilStyles_default["remove-list-styling"], children: errors.map(({ id, message }) => {
|
|
7288
|
+
return /* @__PURE__ */ jsx229("li", { children: /* @__PURE__ */ jsx229(
|
|
7190
7289
|
InputMessage,
|
|
7191
7290
|
{
|
|
7192
7291
|
id,
|
|
@@ -7213,7 +7312,7 @@ var FileUploader_default = {
|
|
|
7213
7312
|
};
|
|
7214
7313
|
|
|
7215
7314
|
// src/components/FileUploader/File.tsx
|
|
7216
|
-
import { jsx as
|
|
7315
|
+
import { jsx as jsx230, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7217
7316
|
var File = (props) => {
|
|
7218
7317
|
const { parentId, index, file: stateFile, removeFile, isValid } = props;
|
|
7219
7318
|
const errorsList = stateFile.errors.map((e, errorIndex) => ({
|
|
@@ -7222,21 +7321,21 @@ var File = (props) => {
|
|
|
7222
7321
|
}));
|
|
7223
7322
|
return /* @__PURE__ */ jsxs48("li", { children: [
|
|
7224
7323
|
/* @__PURE__ */ jsxs48("div", { className: cn(FileUploader_default.file, !isValid && FileUploader_default["file--invalid"]), children: [
|
|
7225
|
-
/* @__PURE__ */
|
|
7324
|
+
/* @__PURE__ */ jsx230(
|
|
7226
7325
|
"span",
|
|
7227
7326
|
{
|
|
7228
7327
|
className: cn(FileUploader_default.file__name, typographyStyles_default["body-sans-02"]),
|
|
7229
7328
|
children: stateFile.file.name
|
|
7230
7329
|
}
|
|
7231
7330
|
),
|
|
7232
|
-
/* @__PURE__ */
|
|
7331
|
+
/* @__PURE__ */ jsx230(
|
|
7233
7332
|
Icon,
|
|
7234
7333
|
{
|
|
7235
7334
|
icon: isValid ? CheckCircledIcon : ErrorIcon,
|
|
7236
7335
|
className: FileUploader_default[`file__icon--${isValid ? "valid" : "invalid"}`]
|
|
7237
7336
|
}
|
|
7238
7337
|
),
|
|
7239
|
-
/* @__PURE__ */
|
|
7338
|
+
/* @__PURE__ */ jsx230(
|
|
7240
7339
|
Button,
|
|
7241
7340
|
{
|
|
7242
7341
|
size: "small",
|
|
@@ -7255,7 +7354,7 @@ var File = (props) => {
|
|
|
7255
7354
|
}
|
|
7256
7355
|
)
|
|
7257
7356
|
] }),
|
|
7258
|
-
/* @__PURE__ */
|
|
7357
|
+
/* @__PURE__ */ jsx230(ErrorList, { errors: errorsList })
|
|
7259
7358
|
] });
|
|
7260
7359
|
};
|
|
7261
7360
|
|
|
@@ -7547,19 +7646,19 @@ var useFileUploader = (props) => {
|
|
|
7547
7646
|
};
|
|
7548
7647
|
|
|
7549
7648
|
// src/components/VisuallyHidden/VisuallyHidden.tsx
|
|
7550
|
-
import { jsx as
|
|
7649
|
+
import { jsx as jsx231 } from "react/jsx-runtime";
|
|
7551
7650
|
var VisuallyHidden = (props) => {
|
|
7552
7651
|
const { id, className, htmlProps, as, ...rest } = props;
|
|
7553
7652
|
const cl = cn(className, utilStyles_default["visually-hidden"]);
|
|
7554
7653
|
if (as === "div") {
|
|
7555
|
-
return /* @__PURE__ */
|
|
7654
|
+
return /* @__PURE__ */ jsx231("div", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
|
|
7556
7655
|
}
|
|
7557
|
-
return /* @__PURE__ */
|
|
7656
|
+
return /* @__PURE__ */ jsx231("span", { ...getBaseHTMLProps(id, cl, htmlProps, rest) });
|
|
7558
7657
|
};
|
|
7559
7658
|
VisuallyHidden.displayName = "VisuallyHidden";
|
|
7560
7659
|
|
|
7561
7660
|
// src/components/FileUploader/FileUploader.tsx
|
|
7562
|
-
import { jsx as
|
|
7661
|
+
import { jsx as jsx232, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7563
7662
|
var FileUploader = (props) => {
|
|
7564
7663
|
const {
|
|
7565
7664
|
id,
|
|
@@ -7608,7 +7707,7 @@ var FileUploader = (props) => {
|
|
|
7608
7707
|
const tipId = derivativeIdGenerator(uniqueId, "tip");
|
|
7609
7708
|
const buttonId = derivativeIdGenerator(uniqueId, "button");
|
|
7610
7709
|
const inputId = derivativeIdGenerator(uniqueId, "input");
|
|
7611
|
-
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */
|
|
7710
|
+
const fileListElements = stateFiles.map((stateFile, index) => /* @__PURE__ */ jsx232(
|
|
7612
7711
|
File,
|
|
7613
7712
|
{
|
|
7614
7713
|
parentId: uniqueId,
|
|
@@ -7623,7 +7722,7 @@ var FileUploader = (props) => {
|
|
|
7623
7722
|
id: derivativeIdGenerator(uniqueId, `error-${index}`),
|
|
7624
7723
|
message: e
|
|
7625
7724
|
}));
|
|
7626
|
-
const button = /* @__PURE__ */
|
|
7725
|
+
const button = /* @__PURE__ */ jsx232(
|
|
7627
7726
|
Button,
|
|
7628
7727
|
{
|
|
7629
7728
|
...getButtonProps(),
|
|
@@ -7655,8 +7754,8 @@ var FileUploader = (props) => {
|
|
|
7655
7754
|
style: { ...style, width },
|
|
7656
7755
|
...rest,
|
|
7657
7756
|
children: [
|
|
7658
|
-
hasLabel && /* @__PURE__ */
|
|
7659
|
-
hasTip && /* @__PURE__ */
|
|
7757
|
+
hasLabel && /* @__PURE__ */ jsx232(Label, { id: labelId, showRequiredStyling: showRequiredMarker, children: label }),
|
|
7758
|
+
hasTip && /* @__PURE__ */ jsx232(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
|
|
7660
7759
|
withDragAndDrop ? /* @__PURE__ */ jsxs49(
|
|
7661
7760
|
"div",
|
|
7662
7761
|
{
|
|
@@ -7667,7 +7766,7 @@ var FileUploader = (props) => {
|
|
|
7667
7766
|
isDragActive && FileUploader_default["input-container--drag-active"]
|
|
7668
7767
|
),
|
|
7669
7768
|
children: [
|
|
7670
|
-
/* @__PURE__ */
|
|
7769
|
+
/* @__PURE__ */ jsx232(
|
|
7671
7770
|
"input",
|
|
7672
7771
|
{
|
|
7673
7772
|
...getInputProps(),
|
|
@@ -7676,16 +7775,16 @@ var FileUploader = (props) => {
|
|
|
7676
7775
|
}
|
|
7677
7776
|
),
|
|
7678
7777
|
dropAreaLabel,
|
|
7679
|
-
/* @__PURE__ */
|
|
7778
|
+
/* @__PURE__ */ jsx232(VisuallyHidden, { as: "span", children: "velg fil med p\xE5f\xF8lgende knapp" }),
|
|
7680
7779
|
button
|
|
7681
7780
|
]
|
|
7682
7781
|
}
|
|
7683
7782
|
) : /* @__PURE__ */ jsxs49("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
|
|
7684
|
-
/* @__PURE__ */
|
|
7783
|
+
/* @__PURE__ */ jsx232("input", { ...getInputProps(), id: inputId }),
|
|
7685
7784
|
button
|
|
7686
7785
|
] }),
|
|
7687
|
-
/* @__PURE__ */
|
|
7688
|
-
!hideFileList && /* @__PURE__ */
|
|
7786
|
+
/* @__PURE__ */ jsx232(ErrorList, { errors: rootErrorsList }),
|
|
7787
|
+
!hideFileList && /* @__PURE__ */ jsx232("ul", { className: utilStyles_default["remove-list-styling"], children: fileListElements })
|
|
7689
7788
|
]
|
|
7690
7789
|
}
|
|
7691
7790
|
);
|
|
@@ -7693,7 +7792,7 @@ var FileUploader = (props) => {
|
|
|
7693
7792
|
FileUploader.displayName = "FileUploader";
|
|
7694
7793
|
|
|
7695
7794
|
// src/components/Footer/Footer.tsx
|
|
7696
|
-
import { forwardRef as
|
|
7795
|
+
import { forwardRef as forwardRef50 } from "react";
|
|
7697
7796
|
|
|
7698
7797
|
// src/components/Footer/Footer.module.css
|
|
7699
7798
|
var Footer_default = {
|
|
@@ -7709,10 +7808,10 @@ var Footer_default = {
|
|
|
7709
7808
|
};
|
|
7710
7809
|
|
|
7711
7810
|
// src/components/Footer/Footer.tsx
|
|
7712
|
-
import { jsx as
|
|
7713
|
-
var Footer =
|
|
7811
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
7812
|
+
var Footer = forwardRef50((props, ref) => {
|
|
7714
7813
|
const { className, ...rest } = props;
|
|
7715
|
-
return /* @__PURE__ */
|
|
7814
|
+
return /* @__PURE__ */ jsx233(
|
|
7716
7815
|
Contrast,
|
|
7717
7816
|
{
|
|
7718
7817
|
as: "footer",
|
|
@@ -7724,24 +7823,24 @@ var Footer = forwardRef46((props, ref) => {
|
|
|
7724
7823
|
});
|
|
7725
7824
|
|
|
7726
7825
|
// src/components/Footer/FooterListHeader.tsx
|
|
7727
|
-
import { forwardRef as
|
|
7728
|
-
import { jsx as
|
|
7729
|
-
var FooterListHeader =
|
|
7730
|
-
return /* @__PURE__ */
|
|
7826
|
+
import { forwardRef as forwardRef51 } from "react";
|
|
7827
|
+
import { jsx as jsx234 } from "react/jsx-runtime";
|
|
7828
|
+
var FooterListHeader = forwardRef51((props, ref) => {
|
|
7829
|
+
return /* @__PURE__ */ jsx234(Heading, { level: 2, typographyType: "headingSans02", ref, ...props });
|
|
7731
7830
|
});
|
|
7732
7831
|
|
|
7733
7832
|
// src/components/Footer/FooterLogo.tsx
|
|
7734
|
-
import { forwardRef as
|
|
7833
|
+
import { forwardRef as forwardRef52 } from "react";
|
|
7735
7834
|
|
|
7736
7835
|
// src/components/Footer/norges_domstoler_logo.svg
|
|
7737
7836
|
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
7837
|
|
|
7739
7838
|
// src/components/Footer/FooterLogo.tsx
|
|
7740
|
-
import { jsx as
|
|
7741
|
-
var FooterLogo =
|
|
7839
|
+
import { jsx as jsx235 } from "react/jsx-runtime";
|
|
7840
|
+
var FooterLogo = forwardRef52(
|
|
7742
7841
|
(props, ref) => {
|
|
7743
7842
|
const { className, hideBreakpoint, ...rest } = props;
|
|
7744
|
-
return /* @__PURE__ */
|
|
7843
|
+
return /* @__PURE__ */ jsx235(
|
|
7745
7844
|
"img",
|
|
7746
7845
|
{
|
|
7747
7846
|
ref,
|
|
@@ -7760,12 +7859,12 @@ var FooterLogo = forwardRef48(
|
|
|
7760
7859
|
);
|
|
7761
7860
|
|
|
7762
7861
|
// src/components/Footer/FooterList.tsx
|
|
7763
|
-
import { forwardRef as
|
|
7764
|
-
import { jsx as
|
|
7765
|
-
var FooterList =
|
|
7862
|
+
import { forwardRef as forwardRef53 } from "react";
|
|
7863
|
+
import { jsx as jsx236 } from "react/jsx-runtime";
|
|
7864
|
+
var FooterList = forwardRef53(
|
|
7766
7865
|
(props, ref) => {
|
|
7767
7866
|
const { className, ...rest } = props;
|
|
7768
|
-
return /* @__PURE__ */
|
|
7867
|
+
return /* @__PURE__ */ jsx236(
|
|
7769
7868
|
"ul",
|
|
7770
7869
|
{
|
|
7771
7870
|
ref,
|
|
@@ -7781,11 +7880,11 @@ var FooterList = forwardRef49(
|
|
|
7781
7880
|
);
|
|
7782
7881
|
|
|
7783
7882
|
// src/components/Footer/FooterSocialsList.tsx
|
|
7784
|
-
import { forwardRef as
|
|
7785
|
-
import { jsx as
|
|
7786
|
-
var FooterSocialsList =
|
|
7883
|
+
import { forwardRef as forwardRef54 } from "react";
|
|
7884
|
+
import { jsx as jsx237 } from "react/jsx-runtime";
|
|
7885
|
+
var FooterSocialsList = forwardRef54((props, ref) => {
|
|
7787
7886
|
const { className, ...rest } = props;
|
|
7788
|
-
return /* @__PURE__ */
|
|
7887
|
+
return /* @__PURE__ */ jsx237(
|
|
7789
7888
|
"ul",
|
|
7790
7889
|
{
|
|
7791
7890
|
ref,
|
|
@@ -7800,11 +7899,11 @@ var FooterSocialsList = forwardRef50((props, ref) => {
|
|
|
7800
7899
|
});
|
|
7801
7900
|
|
|
7802
7901
|
// src/components/Footer/FooterSocialsGroup.tsx
|
|
7803
|
-
import { forwardRef as
|
|
7804
|
-
import { jsx as
|
|
7805
|
-
var FooterSocialsGroup =
|
|
7902
|
+
import { forwardRef as forwardRef55 } from "react";
|
|
7903
|
+
import { jsx as jsx238 } from "react/jsx-runtime";
|
|
7904
|
+
var FooterSocialsGroup = forwardRef55((props, ref) => {
|
|
7806
7905
|
const { className, ...rest } = props;
|
|
7807
|
-
return /* @__PURE__ */
|
|
7906
|
+
return /* @__PURE__ */ jsx238(
|
|
7808
7907
|
"div",
|
|
7809
7908
|
{
|
|
7810
7909
|
ref,
|
|
@@ -7815,12 +7914,12 @@ var FooterSocialsGroup = forwardRef51((props, ref) => {
|
|
|
7815
7914
|
});
|
|
7816
7915
|
|
|
7817
7916
|
// src/components/Footer/FooterListGroup.tsx
|
|
7818
|
-
import { forwardRef as
|
|
7819
|
-
import { jsx as
|
|
7820
|
-
var FooterListGroup =
|
|
7917
|
+
import { forwardRef as forwardRef56 } from "react";
|
|
7918
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
7919
|
+
var FooterListGroup = forwardRef56(
|
|
7821
7920
|
(props, ref) => {
|
|
7822
7921
|
const { className, ...rest } = props;
|
|
7823
|
-
return /* @__PURE__ */
|
|
7922
|
+
return /* @__PURE__ */ jsx239(
|
|
7824
7923
|
"div",
|
|
7825
7924
|
{
|
|
7826
7925
|
ref,
|
|
@@ -7832,17 +7931,17 @@ var FooterListGroup = forwardRef52(
|
|
|
7832
7931
|
);
|
|
7833
7932
|
|
|
7834
7933
|
// src/components/Footer/FooterLeft.tsx
|
|
7835
|
-
import { forwardRef as
|
|
7836
|
-
import { jsx as
|
|
7837
|
-
var FooterLeft =
|
|
7934
|
+
import { forwardRef as forwardRef57 } from "react";
|
|
7935
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
7936
|
+
var FooterLeft = forwardRef57(
|
|
7838
7937
|
(props, ref) => {
|
|
7839
7938
|
const { className, ...rest } = props;
|
|
7840
|
-
return /* @__PURE__ */
|
|
7939
|
+
return /* @__PURE__ */ jsx240("div", { ref, className: cn(className, Footer_default["left"]), ...rest });
|
|
7841
7940
|
}
|
|
7842
7941
|
);
|
|
7843
7942
|
|
|
7844
7943
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
7845
|
-
import { forwardRef as
|
|
7944
|
+
import { forwardRef as forwardRef58, useState as useState15 } from "react";
|
|
7846
7945
|
|
|
7847
7946
|
// src/components/GlobalMessage/GlobalMessage.module.css
|
|
7848
7947
|
var GlobalMessage_default = {
|
|
@@ -7856,13 +7955,13 @@ var GlobalMessage_default = {
|
|
|
7856
7955
|
};
|
|
7857
7956
|
|
|
7858
7957
|
// src/components/GlobalMessage/GlobalMessage.tsx
|
|
7859
|
-
import { jsx as
|
|
7958
|
+
import { jsx as jsx241, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
7860
7959
|
var icons = {
|
|
7861
7960
|
info: InfoIcon,
|
|
7862
7961
|
danger: ErrorIcon,
|
|
7863
7962
|
warning: WarningIcon
|
|
7864
7963
|
};
|
|
7865
|
-
var GlobalMessage =
|
|
7964
|
+
var GlobalMessage = forwardRef58(
|
|
7866
7965
|
(props, ref) => {
|
|
7867
7966
|
const {
|
|
7868
7967
|
message,
|
|
@@ -7900,12 +7999,12 @@ var GlobalMessage = forwardRef54(
|
|
|
7900
7999
|
closable && GlobalMessage_default["content--closable"]
|
|
7901
8000
|
),
|
|
7902
8001
|
children: [
|
|
7903
|
-
/* @__PURE__ */
|
|
7904
|
-
children != null ? children : /* @__PURE__ */
|
|
8002
|
+
/* @__PURE__ */ jsx241(Icon, { icon: icons[purpose], className: GlobalMessage_default.icon }),
|
|
8003
|
+
children != null ? children : /* @__PURE__ */ jsx241("span", { children: message })
|
|
7905
8004
|
]
|
|
7906
8005
|
}
|
|
7907
8006
|
),
|
|
7908
|
-
closable && /* @__PURE__ */
|
|
8007
|
+
closable && /* @__PURE__ */ jsx241(
|
|
7909
8008
|
Button,
|
|
7910
8009
|
{
|
|
7911
8010
|
icon: CloseIcon,
|
|
@@ -7936,7 +8035,7 @@ var Grid_default = {
|
|
|
7936
8035
|
};
|
|
7937
8036
|
|
|
7938
8037
|
// src/components/Grid/Grid.tsx
|
|
7939
|
-
import { jsx as
|
|
8038
|
+
import { jsx as jsx242 } from "react/jsx-runtime";
|
|
7940
8039
|
var Grid = (props) => {
|
|
7941
8040
|
const {
|
|
7942
8041
|
id,
|
|
@@ -7981,13 +8080,13 @@ var Grid = (props) => {
|
|
|
7981
8080
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7982
8081
|
["--dds-grid-xl-column-gap"]: (columnGap == null ? void 0 : columnGap.xl) ? columnGap.xl : "var(--dds-grid-xl-gutter-size)"
|
|
7983
8082
|
};
|
|
7984
|
-
return as === "div" ? /* @__PURE__ */
|
|
8083
|
+
return as === "div" ? /* @__PURE__ */ jsx242(
|
|
7985
8084
|
"div",
|
|
7986
8085
|
{
|
|
7987
8086
|
...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
|
|
7988
8087
|
style: { ...htmlProps == null ? void 0 : htmlProps.style, ...styleVariables }
|
|
7989
8088
|
}
|
|
7990
|
-
) : /* @__PURE__ */
|
|
8089
|
+
) : /* @__PURE__ */ jsx242(
|
|
7991
8090
|
"form",
|
|
7992
8091
|
{
|
|
7993
8092
|
...getBaseHTMLProps(id, cn(className, Grid_default.grid), htmlProps, rest),
|
|
@@ -7998,7 +8097,7 @@ var Grid = (props) => {
|
|
|
7998
8097
|
Grid.displayName = "Grid";
|
|
7999
8098
|
|
|
8000
8099
|
// src/components/Grid/GridChild.tsx
|
|
8001
|
-
import { jsx as
|
|
8100
|
+
import { jsx as jsx243 } from "react/jsx-runtime";
|
|
8002
8101
|
var isRelativeGridColumn = (type) => {
|
|
8003
8102
|
return type === "all" || type === "firstHalf" || type === "secondHalf";
|
|
8004
8103
|
};
|
|
@@ -8048,7 +8147,7 @@ var GridChild = (props) => {
|
|
|
8048
8147
|
firstHalf: "first-half",
|
|
8049
8148
|
secondHalf: "second-half"
|
|
8050
8149
|
};
|
|
8051
|
-
return /* @__PURE__ */
|
|
8150
|
+
return /* @__PURE__ */ jsx243(
|
|
8052
8151
|
"div",
|
|
8053
8152
|
{
|
|
8054
8153
|
...getBaseHTMLProps(
|
|
@@ -8069,7 +8168,7 @@ var GridChild = (props) => {
|
|
|
8069
8168
|
GridChild.displayName = "GridChild";
|
|
8070
8169
|
|
|
8071
8170
|
// src/components/InlineButton/InlineButton.tsx
|
|
8072
|
-
import { forwardRef as
|
|
8171
|
+
import { forwardRef as forwardRef59 } from "react";
|
|
8073
8172
|
|
|
8074
8173
|
// src/components/InlineButton/InlineButton.module.css
|
|
8075
8174
|
var InlineButton_default = {
|
|
@@ -8077,11 +8176,11 @@ var InlineButton_default = {
|
|
|
8077
8176
|
};
|
|
8078
8177
|
|
|
8079
8178
|
// src/components/InlineButton/InlineButton.tsx
|
|
8080
|
-
import { jsx as
|
|
8081
|
-
var InlineButton =
|
|
8179
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
8180
|
+
var InlineButton = forwardRef59(
|
|
8082
8181
|
(props, ref) => {
|
|
8083
8182
|
const { className, ...rest } = props;
|
|
8084
|
-
return /* @__PURE__ */
|
|
8183
|
+
return /* @__PURE__ */ jsx244(
|
|
8085
8184
|
"button",
|
|
8086
8185
|
{
|
|
8087
8186
|
ref,
|
|
@@ -8100,7 +8199,7 @@ var InlineButton = forwardRef55(
|
|
|
8100
8199
|
);
|
|
8101
8200
|
|
|
8102
8201
|
// src/components/InlineEdit/InlineEditTextArea.tsx
|
|
8103
|
-
import { forwardRef as
|
|
8202
|
+
import { forwardRef as forwardRef61, useRef as useRef23 } from "react";
|
|
8104
8203
|
|
|
8105
8204
|
// src/components/InlineEdit/InlineEdit.tsx
|
|
8106
8205
|
import {
|
|
@@ -8109,7 +8208,7 @@ import {
|
|
|
8109
8208
|
isValidElement as isValidElement6,
|
|
8110
8209
|
useState as useState16
|
|
8111
8210
|
} from "react";
|
|
8112
|
-
import { Fragment as Fragment6, jsx as
|
|
8211
|
+
import { Fragment as Fragment6, jsx as jsx245 } from "react/jsx-runtime";
|
|
8113
8212
|
var InlineEdit = (props) => {
|
|
8114
8213
|
const {
|
|
8115
8214
|
emptiable,
|
|
@@ -8159,12 +8258,12 @@ var InlineEdit = (props) => {
|
|
|
8159
8258
|
emptiable
|
|
8160
8259
|
})
|
|
8161
8260
|
);
|
|
8162
|
-
return /* @__PURE__ */
|
|
8261
|
+
return /* @__PURE__ */ jsx245(Fragment6, { children: inputChild });
|
|
8163
8262
|
};
|
|
8164
8263
|
InlineEdit.displayName = "InlineEdit";
|
|
8165
8264
|
|
|
8166
8265
|
// src/components/InlineEdit/InlineTextArea.tsx
|
|
8167
|
-
import { forwardRef as
|
|
8266
|
+
import { forwardRef as forwardRef60, useId as useId12, useRef as useRef22 } from "react";
|
|
8168
8267
|
|
|
8169
8268
|
// src/components/InlineEdit/InlineEdit.module.css
|
|
8170
8269
|
var InlineEdit_default = {
|
|
@@ -8185,8 +8284,8 @@ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs51(Visuall
|
|
|
8185
8284
|
] });
|
|
8186
8285
|
|
|
8187
8286
|
// src/components/InlineEdit/InlineTextArea.tsx
|
|
8188
|
-
import { jsx as
|
|
8189
|
-
var InlineTextArea =
|
|
8287
|
+
import { jsx as jsx246, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
8288
|
+
var InlineTextArea = forwardRef60((props, ref) => {
|
|
8190
8289
|
const {
|
|
8191
8290
|
id,
|
|
8192
8291
|
error,
|
|
@@ -8209,7 +8308,7 @@ var InlineTextArea = forwardRef56((props, ref) => {
|
|
|
8209
8308
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8210
8309
|
return /* @__PURE__ */ jsxs52("div", { className: InlineEdit_default.container, style: { width }, children: [
|
|
8211
8310
|
/* @__PURE__ */ jsxs52("div", { className: Input_default["input-group"], children: [
|
|
8212
|
-
!isEditing && !hideIcon && /* @__PURE__ */
|
|
8311
|
+
!isEditing && !hideIcon && /* @__PURE__ */ jsx246(
|
|
8213
8312
|
"span",
|
|
8214
8313
|
{
|
|
8215
8314
|
onClick: () => {
|
|
@@ -8217,10 +8316,10 @@ var InlineTextArea = forwardRef56((props, ref) => {
|
|
|
8217
8316
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
8218
8317
|
},
|
|
8219
8318
|
className: InlineEdit_default["icon-wrapper"],
|
|
8220
|
-
children: /* @__PURE__ */
|
|
8319
|
+
children: /* @__PURE__ */ jsx246(Icon, { icon: EditIcon, iconSize: "small" })
|
|
8221
8320
|
}
|
|
8222
8321
|
),
|
|
8223
|
-
/* @__PURE__ */
|
|
8322
|
+
/* @__PURE__ */ jsx246(
|
|
8224
8323
|
"textarea",
|
|
8225
8324
|
{
|
|
8226
8325
|
...rest,
|
|
@@ -8252,12 +8351,12 @@ var InlineTextArea = forwardRef56((props, ref) => {
|
|
|
8252
8351
|
InlineTextArea.displayName = "InlineTextArea";
|
|
8253
8352
|
|
|
8254
8353
|
// src/components/InlineEdit/InlineEditTextArea.tsx
|
|
8255
|
-
import { jsx as
|
|
8256
|
-
var InlineEditTextArea =
|
|
8354
|
+
import { jsx as jsx247 } from "react/jsx-runtime";
|
|
8355
|
+
var InlineEditTextArea = forwardRef61((props, ref) => {
|
|
8257
8356
|
const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
|
|
8258
8357
|
const textareaRef = useRef23(null);
|
|
8259
8358
|
const combinedRef = useCombinedRef(ref, textareaRef);
|
|
8260
|
-
return /* @__PURE__ */
|
|
8359
|
+
return /* @__PURE__ */ jsx247(
|
|
8261
8360
|
InlineEdit,
|
|
8262
8361
|
{
|
|
8263
8362
|
onSetValue,
|
|
@@ -8267,18 +8366,18 @@ var InlineEditTextArea = forwardRef57((props, ref) => {
|
|
|
8267
8366
|
onFocus,
|
|
8268
8367
|
onChange,
|
|
8269
8368
|
onBlur,
|
|
8270
|
-
children: /* @__PURE__ */
|
|
8369
|
+
children: /* @__PURE__ */ jsx247(InlineTextArea, { ref: combinedRef, ...rest })
|
|
8271
8370
|
}
|
|
8272
8371
|
);
|
|
8273
8372
|
});
|
|
8274
8373
|
|
|
8275
8374
|
// src/components/InlineEdit/InlineEditInput.tsx
|
|
8276
|
-
import { forwardRef as
|
|
8375
|
+
import { forwardRef as forwardRef63, useRef as useRef25 } from "react";
|
|
8277
8376
|
|
|
8278
8377
|
// src/components/InlineEdit/InlineInput.tsx
|
|
8279
|
-
import { forwardRef as
|
|
8280
|
-
import { jsx as
|
|
8281
|
-
var InlineInput =
|
|
8378
|
+
import { forwardRef as forwardRef62, useId as useId13, useRef as useRef24 } from "react";
|
|
8379
|
+
import { jsx as jsx248, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
8380
|
+
var InlineInput = forwardRef62(
|
|
8282
8381
|
(props, ref) => {
|
|
8283
8382
|
const {
|
|
8284
8383
|
id,
|
|
@@ -8302,7 +8401,7 @@ var InlineInput = forwardRef58(
|
|
|
8302
8401
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8303
8402
|
return /* @__PURE__ */ jsxs53("div", { className: InlineEdit_default.container, style: { width }, children: [
|
|
8304
8403
|
/* @__PURE__ */ jsxs53("div", { className: Input_default["input-group"], children: [
|
|
8305
|
-
!isEditing && !hideIcon && /* @__PURE__ */
|
|
8404
|
+
!isEditing && !hideIcon && /* @__PURE__ */ jsx248(
|
|
8306
8405
|
"span",
|
|
8307
8406
|
{
|
|
8308
8407
|
onClick: () => {
|
|
@@ -8310,10 +8409,10 @@ var InlineInput = forwardRef58(
|
|
|
8310
8409
|
(_a = inputRef.current) == null ? void 0 : _a.focus();
|
|
8311
8410
|
},
|
|
8312
8411
|
className: InlineEdit_default["icon-wrapper"],
|
|
8313
|
-
children: /* @__PURE__ */
|
|
8412
|
+
children: /* @__PURE__ */ jsx248(Icon, { icon: EditIcon, iconSize: "small" })
|
|
8314
8413
|
}
|
|
8315
8414
|
),
|
|
8316
|
-
/* @__PURE__ */
|
|
8415
|
+
/* @__PURE__ */ jsx248(
|
|
8317
8416
|
"input",
|
|
8318
8417
|
{
|
|
8319
8418
|
...rest,
|
|
@@ -8344,12 +8443,12 @@ var InlineInput = forwardRef58(
|
|
|
8344
8443
|
InlineInput.displayName = "InlineInput";
|
|
8345
8444
|
|
|
8346
8445
|
// src/components/InlineEdit/InlineEditInput.tsx
|
|
8347
|
-
import { jsx as
|
|
8348
|
-
var InlineEditInput =
|
|
8446
|
+
import { jsx as jsx249 } from "react/jsx-runtime";
|
|
8447
|
+
var InlineEditInput = forwardRef63((props, ref) => {
|
|
8349
8448
|
const { onSetValue, emptiable, value, onFocus, onChange, onBlur, ...rest } = props;
|
|
8350
8449
|
const inputRef = useRef25(null);
|
|
8351
8450
|
const combinedRef = useCombinedRef(ref, inputRef);
|
|
8352
|
-
return /* @__PURE__ */
|
|
8451
|
+
return /* @__PURE__ */ jsx249(
|
|
8353
8452
|
InlineEdit,
|
|
8354
8453
|
{
|
|
8355
8454
|
onSetValue,
|
|
@@ -8359,7 +8458,7 @@ var InlineEditInput = forwardRef59((props, ref) => {
|
|
|
8359
8458
|
onFocus,
|
|
8360
8459
|
onChange,
|
|
8361
8460
|
onBlur,
|
|
8362
|
-
children: /* @__PURE__ */
|
|
8461
|
+
children: /* @__PURE__ */ jsx249(InlineInput, { ...rest, ref: combinedRef })
|
|
8363
8462
|
}
|
|
8364
8463
|
);
|
|
8365
8464
|
});
|
|
@@ -8421,10 +8520,10 @@ var InternalHeader_default = {
|
|
|
8421
8520
|
};
|
|
8422
8521
|
|
|
8423
8522
|
// src/components/InternalHeader/NavigationItem.tsx
|
|
8424
|
-
import { forwardRef as
|
|
8425
|
-
import { jsx as
|
|
8426
|
-
var NavigationItem =
|
|
8427
|
-
return /* @__PURE__ */
|
|
8523
|
+
import { forwardRef as forwardRef64 } from "react";
|
|
8524
|
+
import { jsx as jsx250 } from "react/jsx-runtime";
|
|
8525
|
+
var NavigationItem = forwardRef64(({ isCurrent, ...rest }, ref) => {
|
|
8526
|
+
return /* @__PURE__ */ jsx250(
|
|
8428
8527
|
"a",
|
|
8429
8528
|
{
|
|
8430
8529
|
...rest,
|
|
@@ -8441,7 +8540,7 @@ var NavigationItem = forwardRef60(({ isCurrent, ...rest }, ref) => {
|
|
|
8441
8540
|
});
|
|
8442
8541
|
|
|
8443
8542
|
// src/components/InternalHeader/InternalHeader.tsx
|
|
8444
|
-
import { jsx as
|
|
8543
|
+
import { jsx as jsx251, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
8445
8544
|
var InternalHeader = (props) => {
|
|
8446
8545
|
const {
|
|
8447
8546
|
applicationDesc,
|
|
@@ -8475,7 +8574,7 @@ var InternalHeader = (props) => {
|
|
|
8475
8574
|
const hasContextMenuElements = !!contextMenuItems && contextMenuItems.length > 0;
|
|
8476
8575
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
8477
8576
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
8478
|
-
const navigation = hasNavigationElements ? /* @__PURE__ */
|
|
8577
|
+
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx251("nav", { "aria-label": "sidenavigasjon", children: /* @__PURE__ */ jsx251(
|
|
8479
8578
|
"ul",
|
|
8480
8579
|
{
|
|
8481
8580
|
className: cn(
|
|
@@ -8486,7 +8585,7 @@ var InternalHeader = (props) => {
|
|
|
8486
8585
|
children: navItems.map((item, index) => {
|
|
8487
8586
|
const { href, ...rest2 } = item;
|
|
8488
8587
|
const isCurrent = href === currentPage;
|
|
8489
|
-
return /* @__PURE__ */
|
|
8588
|
+
return /* @__PURE__ */ jsx251("li", { className: InternalHeader_default["nav-list__item"], children: /* @__PURE__ */ jsx251(
|
|
8490
8589
|
NavigationItem,
|
|
8491
8590
|
{
|
|
8492
8591
|
href,
|
|
@@ -8515,7 +8614,7 @@ var InternalHeader = (props) => {
|
|
|
8515
8614
|
rest
|
|
8516
8615
|
),
|
|
8517
8616
|
children: [
|
|
8518
|
-
/* @__PURE__ */
|
|
8617
|
+
/* @__PURE__ */ jsx251(Typography, { typographyType: "bodySans02", bold: true, as: "span", children: applicationHref ? /* @__PURE__ */ jsx251(
|
|
8519
8618
|
"a",
|
|
8520
8619
|
{
|
|
8521
8620
|
href: applicationHref,
|
|
@@ -8524,8 +8623,8 @@ var InternalHeader = (props) => {
|
|
|
8524
8623
|
children: applicationName
|
|
8525
8624
|
}
|
|
8526
8625
|
) : applicationName }),
|
|
8527
|
-
/* @__PURE__ */
|
|
8528
|
-
(hasContextMenu || navigation !== null) && /* @__PURE__ */
|
|
8626
|
+
/* @__PURE__ */ jsx251(Typography, { typographyType: "bodySans02", as: "span", children: applicationDesc }),
|
|
8627
|
+
(hasContextMenu || navigation !== null) && /* @__PURE__ */ jsx251("div", { className: InternalHeader_default["bar-separator"] }),
|
|
8529
8628
|
navigation,
|
|
8530
8629
|
hasContextMenu && /* @__PURE__ */ jsxs54(
|
|
8531
8630
|
"div",
|
|
@@ -8536,7 +8635,7 @@ var InternalHeader = (props) => {
|
|
|
8536
8635
|
!hasContextMenuLargeScreen && hasSmallScreenBreakpoint && InternalHeader_default[`context-menu-group--small-screen-only-${smallScreenBreakpoint}`]
|
|
8537
8636
|
),
|
|
8538
8637
|
children: [
|
|
8539
|
-
/* @__PURE__ */
|
|
8638
|
+
/* @__PURE__ */ jsx251(
|
|
8540
8639
|
Button,
|
|
8541
8640
|
{
|
|
8542
8641
|
ref: buttonRef,
|
|
@@ -8556,8 +8655,8 @@ var InternalHeader = (props) => {
|
|
|
8556
8655
|
anchorRef: buttonRef,
|
|
8557
8656
|
className: InternalHeader_default["context-menu"],
|
|
8558
8657
|
children: [
|
|
8559
|
-
user && /* @__PURE__ */
|
|
8560
|
-
hasNavInContextMenu && /* @__PURE__ */
|
|
8658
|
+
user && /* @__PURE__ */ jsx251(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx251(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx251(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
|
|
8659
|
+
hasNavInContextMenu && /* @__PURE__ */ jsx251(
|
|
8561
8660
|
"nav",
|
|
8562
8661
|
{
|
|
8563
8662
|
"aria-label": "sidenavigasjon",
|
|
@@ -8565,10 +8664,10 @@ var InternalHeader = (props) => {
|
|
|
8565
8664
|
InternalHeader_default["nav--in-menu--small-screen"],
|
|
8566
8665
|
InternalHeader_default[`nav--in-menu--small-screen-${smallScreenBreakpoint}`]
|
|
8567
8666
|
),
|
|
8568
|
-
children: /* @__PURE__ */
|
|
8667
|
+
children: /* @__PURE__ */ jsx251(OverflowMenuList, { children: navItems.map((item) => /* @__PURE__ */ jsx251(OverflowMenuLink, { ...item })) })
|
|
8569
8668
|
}
|
|
8570
8669
|
),
|
|
8571
|
-
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */
|
|
8670
|
+
hasNavInContextMenu && hasContextMenuElements && /* @__PURE__ */ jsx251(
|
|
8572
8671
|
OverflowMenuDivider,
|
|
8573
8672
|
{
|
|
8574
8673
|
className: cn(
|
|
@@ -8577,8 +8676,8 @@ var InternalHeader = (props) => {
|
|
|
8577
8676
|
)
|
|
8578
8677
|
}
|
|
8579
8678
|
),
|
|
8580
|
-
hasContextMenuElements && /* @__PURE__ */
|
|
8581
|
-
return item.href ? /* @__PURE__ */
|
|
8679
|
+
hasContextMenuElements && /* @__PURE__ */ jsx251(OverflowMenuList, { children: contextMenuItems.map((item) => {
|
|
8680
|
+
return item.href ? /* @__PURE__ */ jsx251(OverflowMenuLink, { ...item }) : /* @__PURE__ */ jsx251(
|
|
8582
8681
|
OverflowMenuButton,
|
|
8583
8682
|
{
|
|
8584
8683
|
...item
|
|
@@ -8598,7 +8697,7 @@ var InternalHeader = (props) => {
|
|
|
8598
8697
|
InternalHeader.displayName = "InternalHeader";
|
|
8599
8698
|
|
|
8600
8699
|
// src/components/List/List.tsx
|
|
8601
|
-
import { forwardRef as
|
|
8700
|
+
import { forwardRef as forwardRef65 } from "react";
|
|
8602
8701
|
|
|
8603
8702
|
// src/components/List/List.module.css
|
|
8604
8703
|
var List_default = {
|
|
@@ -8610,8 +8709,8 @@ var List_default = {
|
|
|
8610
8709
|
};
|
|
8611
8710
|
|
|
8612
8711
|
// src/components/List/List.tsx
|
|
8613
|
-
import { jsx as
|
|
8614
|
-
var List =
|
|
8712
|
+
import { jsx as jsx252 } from "react/jsx-runtime";
|
|
8713
|
+
var List = forwardRef65((props, ref) => {
|
|
8615
8714
|
const {
|
|
8616
8715
|
listType = "unordered",
|
|
8617
8716
|
typographyType = "inherit",
|
|
@@ -8622,7 +8721,7 @@ var List = forwardRef61((props, ref) => {
|
|
|
8622
8721
|
...rest
|
|
8623
8722
|
} = props;
|
|
8624
8723
|
const List2 = listType === "ordered" ? "ol" : "ul";
|
|
8625
|
-
return /* @__PURE__ */
|
|
8724
|
+
return /* @__PURE__ */ jsx252(
|
|
8626
8725
|
List2,
|
|
8627
8726
|
{
|
|
8628
8727
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
@@ -8639,17 +8738,17 @@ var List = forwardRef61((props, ref) => {
|
|
|
8639
8738
|
List.displayName = "List";
|
|
8640
8739
|
|
|
8641
8740
|
// src/components/List/ListItem.tsx
|
|
8642
|
-
import { forwardRef as
|
|
8643
|
-
import { jsx as
|
|
8644
|
-
var ListItem =
|
|
8741
|
+
import { forwardRef as forwardRef66 } from "react";
|
|
8742
|
+
import { jsx as jsx253 } from "react/jsx-runtime";
|
|
8743
|
+
var ListItem = forwardRef66(
|
|
8645
8744
|
({ className, ...rest }, ref) => {
|
|
8646
|
-
return /* @__PURE__ */
|
|
8745
|
+
return /* @__PURE__ */ jsx253("li", { ref, ...rest, className: cn(className, List_default.li) });
|
|
8647
8746
|
}
|
|
8648
8747
|
);
|
|
8649
8748
|
ListItem.displayName = "ListItem";
|
|
8650
8749
|
|
|
8651
8750
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
8652
|
-
import { forwardRef as
|
|
8751
|
+
import { forwardRef as forwardRef67, useState as useState18 } from "react";
|
|
8653
8752
|
|
|
8654
8753
|
// src/components/LocalMessage/LocalMessage.module.css
|
|
8655
8754
|
var LocalMessage_default = {
|
|
@@ -8670,7 +8769,7 @@ var LocalMessage_default = {
|
|
|
8670
8769
|
};
|
|
8671
8770
|
|
|
8672
8771
|
// src/components/LocalMessage/LocalMessage.tsx
|
|
8673
|
-
import { Fragment as Fragment7, jsx as
|
|
8772
|
+
import { Fragment as Fragment7, jsx as jsx254, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
8674
8773
|
var icons2 = {
|
|
8675
8774
|
info: InfoIcon,
|
|
8676
8775
|
danger: ErrorIcon,
|
|
@@ -8678,7 +8777,7 @@ var icons2 = {
|
|
|
8678
8777
|
success: CheckCircledIcon,
|
|
8679
8778
|
tips: TipIcon
|
|
8680
8779
|
};
|
|
8681
|
-
var LocalMessage =
|
|
8780
|
+
var LocalMessage = forwardRef67(
|
|
8682
8781
|
(props, ref) => {
|
|
8683
8782
|
const {
|
|
8684
8783
|
message,
|
|
@@ -8695,7 +8794,7 @@ var LocalMessage = forwardRef63(
|
|
|
8695
8794
|
} = props;
|
|
8696
8795
|
const [isClosed, setClosed] = useState18(false);
|
|
8697
8796
|
if (isClosed) {
|
|
8698
|
-
return /* @__PURE__ */
|
|
8797
|
+
return /* @__PURE__ */ jsx254(Fragment7, {});
|
|
8699
8798
|
}
|
|
8700
8799
|
return /* @__PURE__ */ jsxs55(
|
|
8701
8800
|
"div",
|
|
@@ -8716,15 +8815,15 @@ var LocalMessage = forwardRef63(
|
|
|
8716
8815
|
),
|
|
8717
8816
|
style: { ...htmlProps == null ? void 0 : htmlProps.style, width },
|
|
8718
8817
|
children: [
|
|
8719
|
-
/* @__PURE__ */
|
|
8818
|
+
/* @__PURE__ */ jsx254(
|
|
8720
8819
|
Icon,
|
|
8721
8820
|
{
|
|
8722
8821
|
icon: icons2[purpose],
|
|
8723
8822
|
className: cn(LocalMessage_default.icon, LocalMessage_default.container__icon)
|
|
8724
8823
|
}
|
|
8725
8824
|
),
|
|
8726
|
-
/* @__PURE__ */
|
|
8727
|
-
closable && /* @__PURE__ */
|
|
8825
|
+
/* @__PURE__ */ jsx254("div", { className: LocalMessage_default.container__text, children: children != null ? children : /* @__PURE__ */ jsx254("span", { children: message }) }),
|
|
8826
|
+
closable && /* @__PURE__ */ jsx254(
|
|
8728
8827
|
Button,
|
|
8729
8828
|
{
|
|
8730
8829
|
icon: CloseIcon,
|
|
@@ -8747,7 +8846,7 @@ LocalMessage.displayName = "LocalMessage";
|
|
|
8747
8846
|
|
|
8748
8847
|
// src/components/Modal/Modal.tsx
|
|
8749
8848
|
import {
|
|
8750
|
-
forwardRef as
|
|
8849
|
+
forwardRef as forwardRef68,
|
|
8751
8850
|
useEffect as useEffect22,
|
|
8752
8851
|
useId as useId14
|
|
8753
8852
|
} from "react";
|
|
@@ -8788,8 +8887,8 @@ var Modal_default = {
|
|
|
8788
8887
|
};
|
|
8789
8888
|
|
|
8790
8889
|
// src/components/Modal/Modal.tsx
|
|
8791
|
-
import { jsx as
|
|
8792
|
-
var Modal =
|
|
8890
|
+
import { jsx as jsx255, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
8891
|
+
var Modal = forwardRef68((props, ref) => {
|
|
8793
8892
|
const {
|
|
8794
8893
|
isOpen = false,
|
|
8795
8894
|
parentElement = document.body,
|
|
@@ -8827,7 +8926,7 @@ var Modal = forwardRef64((props, ref) => {
|
|
|
8827
8926
|
useOnKeyDown(["Escape", "Esc"], () => handleClose());
|
|
8828
8927
|
const hasTransitionedIn = useMountTransition(isOpen, 200);
|
|
8829
8928
|
return isOpen || hasTransitionedIn ? createPortal2(
|
|
8830
|
-
/* @__PURE__ */
|
|
8929
|
+
/* @__PURE__ */ jsx255(
|
|
8831
8930
|
"div",
|
|
8832
8931
|
{
|
|
8833
8932
|
className: cn(
|
|
@@ -8853,10 +8952,10 @@ var Modal = forwardRef64((props, ref) => {
|
|
|
8853
8952
|
elevation: 4,
|
|
8854
8953
|
children: [
|
|
8855
8954
|
/* @__PURE__ */ jsxs56("div", { className: Modal_default.content, children: [
|
|
8856
|
-
header && /* @__PURE__ */
|
|
8955
|
+
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
8956
|
children
|
|
8858
8957
|
] }),
|
|
8859
|
-
onClose && /* @__PURE__ */
|
|
8958
|
+
onClose && /* @__PURE__ */ jsx255(
|
|
8860
8959
|
Button,
|
|
8861
8960
|
{
|
|
8862
8961
|
size: "small",
|
|
@@ -8878,12 +8977,12 @@ var Modal = forwardRef64((props, ref) => {
|
|
|
8878
8977
|
Modal.displayName = "Modal";
|
|
8879
8978
|
|
|
8880
8979
|
// src/components/Modal/ModalBody.tsx
|
|
8881
|
-
import { forwardRef as
|
|
8882
|
-
import { jsx as
|
|
8883
|
-
var ModalBody =
|
|
8980
|
+
import { forwardRef as forwardRef69 } from "react";
|
|
8981
|
+
import { jsx as jsx256 } from "react/jsx-runtime";
|
|
8982
|
+
var ModalBody = forwardRef69(
|
|
8884
8983
|
(props, ref) => {
|
|
8885
8984
|
const { children, id, className, scrollable, htmlProps, height, ...rest } = props;
|
|
8886
|
-
return /* @__PURE__ */
|
|
8985
|
+
return /* @__PURE__ */ jsx256(
|
|
8887
8986
|
"div",
|
|
8888
8987
|
{
|
|
8889
8988
|
ref,
|
|
@@ -8907,17 +9006,17 @@ var ModalBody = forwardRef65(
|
|
|
8907
9006
|
ModalBody.displayName = "ModalBody";
|
|
8908
9007
|
|
|
8909
9008
|
// src/components/Modal/ModalActions.tsx
|
|
8910
|
-
import { forwardRef as
|
|
8911
|
-
import { jsx as
|
|
8912
|
-
var ModalActions =
|
|
9009
|
+
import { forwardRef as forwardRef70 } from "react";
|
|
9010
|
+
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
9011
|
+
var ModalActions = forwardRef70(
|
|
8913
9012
|
({ className, ...rest }, ref) => {
|
|
8914
|
-
return /* @__PURE__ */
|
|
9013
|
+
return /* @__PURE__ */ jsx257("div", { ref, ...rest, className: cn(className, Modal_default.actions) });
|
|
8915
9014
|
}
|
|
8916
9015
|
);
|
|
8917
9016
|
ModalActions.displayName = "ModalActions";
|
|
8918
9017
|
|
|
8919
9018
|
// src/components/Pagination/Pagination.tsx
|
|
8920
|
-
import { forwardRef as
|
|
9019
|
+
import { forwardRef as forwardRef73, useState as useState19 } from "react";
|
|
8921
9020
|
|
|
8922
9021
|
// src/components/Pagination/Pagination.module.css
|
|
8923
9022
|
var Pagination_default = {
|
|
@@ -8980,7 +9079,7 @@ function PaginationGenerator(pagesAmount, activePage) {
|
|
|
8980
9079
|
}
|
|
8981
9080
|
|
|
8982
9081
|
// src/components/Select/Select.tsx
|
|
8983
|
-
import { forwardRef as
|
|
9082
|
+
import { forwardRef as forwardRef71, useId as useId15 } from "react";
|
|
8984
9083
|
import {
|
|
8985
9084
|
default as ReactSelect
|
|
8986
9085
|
} from "react-select";
|
|
@@ -9279,7 +9378,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
|
|
|
9279
9378
|
import {
|
|
9280
9379
|
components
|
|
9281
9380
|
} from "react-select";
|
|
9282
|
-
import { jsx as
|
|
9381
|
+
import { jsx as jsx258, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
9283
9382
|
var {
|
|
9284
9383
|
Option,
|
|
9285
9384
|
NoOptionsMessage,
|
|
@@ -9301,26 +9400,26 @@ var getIndicatorIconSize = (componentSize) => {
|
|
|
9301
9400
|
}
|
|
9302
9401
|
};
|
|
9303
9402
|
var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs57(Option, { ...props, children: [
|
|
9304
|
-
props.isSelected && /* @__PURE__ */
|
|
9403
|
+
props.isSelected && /* @__PURE__ */ jsx258(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
|
|
9305
9404
|
props.children
|
|
9306
9405
|
] });
|
|
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__ */
|
|
9406
|
+
var CustomOption = (props, Element) => /* @__PURE__ */ jsx258(Option, { ...props, children: /* @__PURE__ */ jsx258(Element, { ...props }) });
|
|
9407
|
+
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 }) });
|
|
9408
|
+
var DDSNoOptionsMessage = (props) => /* @__PURE__ */ jsx258(NoOptionsMessage, { ...props, children: "Ingen treff" });
|
|
9409
|
+
var DDSClearIndicator = (props, size2) => /* @__PURE__ */ jsx258(ClearIndicator, { ...props, children: /* @__PURE__ */ jsx258(Icon, { icon: CloseSmallIcon, iconSize: getIndicatorIconSize(size2) }) });
|
|
9410
|
+
var DDSMultiValueRemove = (props) => /* @__PURE__ */ jsx258(MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx258(Icon, { icon: CloseSmallIcon, iconSize: "small" }) });
|
|
9312
9411
|
var DDSDropdownIndicator = (props, size2) => {
|
|
9313
9412
|
const { className, ...rest } = props;
|
|
9314
|
-
return /* @__PURE__ */
|
|
9413
|
+
return /* @__PURE__ */ jsx258(
|
|
9315
9414
|
DropdownIndicator,
|
|
9316
9415
|
{
|
|
9317
9416
|
...rest,
|
|
9318
9417
|
className: cn(className, Select_default["dropdown-indicator"]),
|
|
9319
|
-
children: /* @__PURE__ */
|
|
9418
|
+
children: /* @__PURE__ */ jsx258(Icon, { icon: ChevronDownIcon, iconSize: getIndicatorIconSize(size2) })
|
|
9320
9419
|
}
|
|
9321
9420
|
);
|
|
9322
9421
|
};
|
|
9323
|
-
var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */
|
|
9422
|
+
var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx258(
|
|
9324
9423
|
Input2,
|
|
9325
9424
|
{
|
|
9326
9425
|
...props,
|
|
@@ -9330,7 +9429,7 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx254(
|
|
|
9330
9429
|
);
|
|
9331
9430
|
var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
9332
9431
|
const { className, ...rest } = props;
|
|
9333
|
-
return /* @__PURE__ */
|
|
9432
|
+
return /* @__PURE__ */ jsx258(
|
|
9334
9433
|
"div",
|
|
9335
9434
|
{
|
|
9336
9435
|
"data-testid": dataTestId ? dataTestId + "-control" : void 0,
|
|
@@ -9345,7 +9444,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
|
9345
9444
|
readOnly && Select_default["control--readonly"]
|
|
9346
9445
|
),
|
|
9347
9446
|
children: [
|
|
9348
|
-
icon && /* @__PURE__ */
|
|
9447
|
+
icon && /* @__PURE__ */ jsx258(
|
|
9349
9448
|
Icon,
|
|
9350
9449
|
{
|
|
9351
9450
|
icon,
|
|
@@ -9362,7 +9461,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
|
|
|
9362
9461
|
};
|
|
9363
9462
|
|
|
9364
9463
|
// src/components/Select/Select.tsx
|
|
9365
|
-
import { jsx as
|
|
9464
|
+
import { jsx as jsx259, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
9366
9465
|
var getPlaceholder = (placeholder, isMulti) => placeholder ? placeholder : isMulti ? "-- Velg en eller flere --" : "-- Velg fra listen --";
|
|
9367
9466
|
function SelectInner(props, ref) {
|
|
9368
9467
|
const {
|
|
@@ -9462,7 +9561,7 @@ function SelectInner(props, ref) {
|
|
|
9462
9561
|
),
|
|
9463
9562
|
style: { ...style, width },
|
|
9464
9563
|
children: [
|
|
9465
|
-
hasLabel && /* @__PURE__ */
|
|
9564
|
+
hasLabel && /* @__PURE__ */ jsx259(
|
|
9466
9565
|
Label,
|
|
9467
9566
|
{
|
|
9468
9567
|
htmlFor: uniqueId,
|
|
@@ -9472,17 +9571,17 @@ function SelectInner(props, ref) {
|
|
|
9472
9571
|
children: label
|
|
9473
9572
|
}
|
|
9474
9573
|
),
|
|
9475
|
-
/* @__PURE__ */
|
|
9574
|
+
/* @__PURE__ */ jsx259(ReactSelect, { ...reactSelectProps, ref }),
|
|
9476
9575
|
renderInputMessage(tip, tipId, errorMessage, errorMessageId)
|
|
9477
9576
|
]
|
|
9478
9577
|
}
|
|
9479
9578
|
);
|
|
9480
9579
|
}
|
|
9481
|
-
var Select =
|
|
9580
|
+
var Select = forwardRef71(SelectInner);
|
|
9482
9581
|
Select.displayName = "Select";
|
|
9483
9582
|
|
|
9484
9583
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9485
|
-
import { forwardRef as
|
|
9584
|
+
import { forwardRef as forwardRef72, useId as useId16 } from "react";
|
|
9486
9585
|
|
|
9487
9586
|
// src/components/Select/NativeSelect/NativeSelect.module.css
|
|
9488
9587
|
var NativeSelect_default = {
|
|
@@ -9497,8 +9596,8 @@ var NativeSelect_default = {
|
|
|
9497
9596
|
};
|
|
9498
9597
|
|
|
9499
9598
|
// src/components/Select/NativeSelect/NativeSelect.tsx
|
|
9500
|
-
import { jsx as
|
|
9501
|
-
var NativeSelect =
|
|
9599
|
+
import { jsx as jsx260, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
9600
|
+
var NativeSelect = forwardRef72(
|
|
9502
9601
|
(props, ref) => {
|
|
9503
9602
|
const {
|
|
9504
9603
|
id,
|
|
@@ -9530,7 +9629,7 @@ var NativeSelect = forwardRef68(
|
|
|
9530
9629
|
["--dds-native-select-width"]: width ? width : componentSize === "tiny" ? "210px" : "var(--dds-input-default-width)"
|
|
9531
9630
|
};
|
|
9532
9631
|
return /* @__PURE__ */ jsxs59("div", { children: [
|
|
9533
|
-
hasLabel && /* @__PURE__ */
|
|
9632
|
+
hasLabel && /* @__PURE__ */ jsx260(
|
|
9534
9633
|
Label,
|
|
9535
9634
|
{
|
|
9536
9635
|
className: Input_default.label,
|
|
@@ -9541,7 +9640,7 @@ var NativeSelect = forwardRef68(
|
|
|
9541
9640
|
}
|
|
9542
9641
|
),
|
|
9543
9642
|
/* @__PURE__ */ jsxs59("div", { className: NativeSelect_default.container, children: [
|
|
9544
|
-
/* @__PURE__ */
|
|
9643
|
+
/* @__PURE__ */ jsx260(
|
|
9545
9644
|
"select",
|
|
9546
9645
|
{
|
|
9547
9646
|
ref,
|
|
@@ -9579,7 +9678,7 @@ var NativeSelect = forwardRef68(
|
|
|
9579
9678
|
children
|
|
9580
9679
|
}
|
|
9581
9680
|
),
|
|
9582
|
-
!multiple && /* @__PURE__ */
|
|
9681
|
+
!multiple && /* @__PURE__ */ jsx260(
|
|
9583
9682
|
Icon,
|
|
9584
9683
|
{
|
|
9585
9684
|
icon: ChevronDownIcon,
|
|
@@ -9592,9 +9691,9 @@ var NativeSelect = forwardRef68(
|
|
|
9592
9691
|
] });
|
|
9593
9692
|
}
|
|
9594
9693
|
);
|
|
9595
|
-
var NativeSelectPlaceholder =
|
|
9694
|
+
var NativeSelectPlaceholder = forwardRef72((props, ref) => {
|
|
9596
9695
|
const { children = "-- Velg fra listen --", value, ...rest } = props;
|
|
9597
|
-
return /* @__PURE__ */
|
|
9696
|
+
return /* @__PURE__ */ jsx260("option", { ref, value: value != null ? value : "", selected: true, ...rest, children });
|
|
9598
9697
|
});
|
|
9599
9698
|
NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
9600
9699
|
|
|
@@ -9602,8 +9701,8 @@ NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
|
|
|
9602
9701
|
var createSelectOptions = (...args) => args.map((v2) => ({ label: v2, value: v2 }));
|
|
9603
9702
|
|
|
9604
9703
|
// src/components/Pagination/Pagination.tsx
|
|
9605
|
-
import { Fragment as Fragment8, jsx as
|
|
9606
|
-
var Pagination =
|
|
9704
|
+
import { Fragment as Fragment8, jsx as jsx261, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
9705
|
+
var Pagination = forwardRef73(
|
|
9607
9706
|
(props, ref) => {
|
|
9608
9707
|
const {
|
|
9609
9708
|
itemsAmount,
|
|
@@ -9646,7 +9745,7 @@ var Pagination = forwardRef69(
|
|
|
9646
9745
|
};
|
|
9647
9746
|
const listItems = items.length > 0 ? items.map((item, i2) => {
|
|
9648
9747
|
const isActive = item === activePage;
|
|
9649
|
-
return /* @__PURE__ */
|
|
9748
|
+
return /* @__PURE__ */ jsx261("li", { className: Pagination_default.list__item, children: item !== "truncator" ? /* @__PURE__ */ jsx261(
|
|
9650
9749
|
Button,
|
|
9651
9750
|
{
|
|
9652
9751
|
purpose: isActive ? "primary" : "secondary",
|
|
@@ -9657,7 +9756,7 @@ var Pagination = forwardRef69(
|
|
|
9657
9756
|
"aria-label": isActive ? `N\xE5v\xE6rende side (side ${item})` : `G\xE5 til side ${item}`,
|
|
9658
9757
|
children: item
|
|
9659
9758
|
}
|
|
9660
|
-
) : /* @__PURE__ */
|
|
9759
|
+
) : /* @__PURE__ */ jsx261(
|
|
9661
9760
|
Icon,
|
|
9662
9761
|
{
|
|
9663
9762
|
icon: MoreHorizontalIcon,
|
|
@@ -9665,7 +9764,7 @@ var Pagination = forwardRef69(
|
|
|
9665
9764
|
}
|
|
9666
9765
|
) }, `pagination-item-${i2}`);
|
|
9667
9766
|
}) : void 0;
|
|
9668
|
-
const previousPageButton = /* @__PURE__ */
|
|
9767
|
+
const previousPageButton = /* @__PURE__ */ jsx261(
|
|
9669
9768
|
Button,
|
|
9670
9769
|
{
|
|
9671
9770
|
purpose: "secondary",
|
|
@@ -9677,7 +9776,7 @@ var Pagination = forwardRef69(
|
|
|
9677
9776
|
"aria-label": "G\xE5 til forrige siden"
|
|
9678
9777
|
}
|
|
9679
9778
|
);
|
|
9680
|
-
const nextPageButton = /* @__PURE__ */
|
|
9779
|
+
const nextPageButton = /* @__PURE__ */ jsx261(
|
|
9681
9780
|
Button,
|
|
9682
9781
|
{
|
|
9683
9782
|
purpose: "secondary",
|
|
@@ -9702,8 +9801,8 @@ var Pagination = forwardRef69(
|
|
|
9702
9801
|
};
|
|
9703
9802
|
const isOnFirstPage = activePage === 1;
|
|
9704
9803
|
const isOnLastPage = activePage === pagesLength;
|
|
9705
|
-
const largeScreenNavigation = withPagination ? /* @__PURE__ */
|
|
9706
|
-
/* @__PURE__ */
|
|
9804
|
+
const largeScreenNavigation = withPagination ? /* @__PURE__ */ jsx261("nav", { ref, "aria-label": "paginering", ...navProps(), children: /* @__PURE__ */ jsxs60("ol", { className: Pagination_default.list, children: [
|
|
9805
|
+
/* @__PURE__ */ jsx261(
|
|
9707
9806
|
"li",
|
|
9708
9807
|
{
|
|
9709
9808
|
className: cn(
|
|
@@ -9715,7 +9814,7 @@ var Pagination = forwardRef69(
|
|
|
9715
9814
|
}
|
|
9716
9815
|
),
|
|
9717
9816
|
listItems,
|
|
9718
|
-
/* @__PURE__ */
|
|
9817
|
+
/* @__PURE__ */ jsx261(
|
|
9719
9818
|
"li",
|
|
9720
9819
|
{
|
|
9721
9820
|
className: cn(
|
|
@@ -9727,8 +9826,8 @@ var Pagination = forwardRef69(
|
|
|
9727
9826
|
}
|
|
9728
9827
|
)
|
|
9729
9828
|
] }) }) : null;
|
|
9730
|
-
const smallScreenNavigation = withPagination ? /* @__PURE__ */
|
|
9731
|
-
/* @__PURE__ */
|
|
9829
|
+
const smallScreenNavigation = withPagination ? /* @__PURE__ */ jsx261("nav", { ref, "aria-label": "paginering", ...navProps(true), children: /* @__PURE__ */ jsxs60("ol", { className: Pagination_default.list, children: [
|
|
9830
|
+
/* @__PURE__ */ jsx261(
|
|
9732
9831
|
"li",
|
|
9733
9832
|
{
|
|
9734
9833
|
className: cn(
|
|
@@ -9736,7 +9835,7 @@ var Pagination = forwardRef69(
|
|
|
9736
9835
|
isOnFirstPage && Pagination_default["list__item--hidden"]
|
|
9737
9836
|
),
|
|
9738
9837
|
"aria-hidden": isOnFirstPage,
|
|
9739
|
-
children: /* @__PURE__ */
|
|
9838
|
+
children: /* @__PURE__ */ jsx261(
|
|
9740
9839
|
Button,
|
|
9741
9840
|
{
|
|
9742
9841
|
purpose: "secondary",
|
|
@@ -9750,7 +9849,7 @@ var Pagination = forwardRef69(
|
|
|
9750
9849
|
)
|
|
9751
9850
|
}
|
|
9752
9851
|
),
|
|
9753
|
-
/* @__PURE__ */
|
|
9852
|
+
/* @__PURE__ */ jsx261(
|
|
9754
9853
|
"li",
|
|
9755
9854
|
{
|
|
9756
9855
|
className: cn(
|
|
@@ -9761,7 +9860,7 @@ var Pagination = forwardRef69(
|
|
|
9761
9860
|
children: previousPageButton
|
|
9762
9861
|
}
|
|
9763
9862
|
),
|
|
9764
|
-
/* @__PURE__ */
|
|
9863
|
+
/* @__PURE__ */ jsx261("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ jsx261(
|
|
9765
9864
|
Button,
|
|
9766
9865
|
{
|
|
9767
9866
|
size: "small",
|
|
@@ -9771,7 +9870,7 @@ var Pagination = forwardRef69(
|
|
|
9771
9870
|
children: activePage
|
|
9772
9871
|
}
|
|
9773
9872
|
) }),
|
|
9774
|
-
/* @__PURE__ */
|
|
9873
|
+
/* @__PURE__ */ jsx261(
|
|
9775
9874
|
"li",
|
|
9776
9875
|
{
|
|
9777
9876
|
className: cn(
|
|
@@ -9782,7 +9881,7 @@ var Pagination = forwardRef69(
|
|
|
9782
9881
|
children: nextPageButton
|
|
9783
9882
|
}
|
|
9784
9883
|
),
|
|
9785
|
-
/* @__PURE__ */
|
|
9884
|
+
/* @__PURE__ */ jsx261(
|
|
9786
9885
|
"li",
|
|
9787
9886
|
{
|
|
9788
9887
|
className: cn(
|
|
@@ -9790,7 +9889,7 @@ var Pagination = forwardRef69(
|
|
|
9790
9889
|
isOnLastPage && Pagination_default["list__item--hidden"]
|
|
9791
9890
|
),
|
|
9792
9891
|
"aria-hidden": isOnLastPage,
|
|
9793
|
-
children: /* @__PURE__ */
|
|
9892
|
+
children: /* @__PURE__ */ jsx261(
|
|
9794
9893
|
Button,
|
|
9795
9894
|
{
|
|
9796
9895
|
purpose: "secondary",
|
|
@@ -9825,7 +9924,7 @@ var Pagination = forwardRef69(
|
|
|
9825
9924
|
),
|
|
9826
9925
|
children: [
|
|
9827
9926
|
/* @__PURE__ */ jsxs60("div", { className: Pagination_default.indicators, children: [
|
|
9828
|
-
withSelect && /* @__PURE__ */
|
|
9927
|
+
withSelect && /* @__PURE__ */ jsx261(
|
|
9829
9928
|
Select,
|
|
9830
9929
|
{
|
|
9831
9930
|
options: selectOptions,
|
|
@@ -9861,7 +9960,7 @@ Pagination.displayName = "Pagination";
|
|
|
9861
9960
|
|
|
9862
9961
|
// src/components/Popover/Popover.tsx
|
|
9863
9962
|
import { ddsTokens as ddsTokens14 } from "@norges-domstoler/dds-design-tokens";
|
|
9864
|
-
import { forwardRef as
|
|
9963
|
+
import { forwardRef as forwardRef74 } from "react";
|
|
9865
9964
|
|
|
9866
9965
|
// src/components/Popover/Popover.module.css
|
|
9867
9966
|
var Popover_default = {
|
|
@@ -9872,8 +9971,8 @@ var Popover_default = {
|
|
|
9872
9971
|
};
|
|
9873
9972
|
|
|
9874
9973
|
// src/components/Popover/Popover.tsx
|
|
9875
|
-
import { jsx as
|
|
9876
|
-
var Popover =
|
|
9974
|
+
import { jsx as jsx262, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
9975
|
+
var Popover = forwardRef74(
|
|
9877
9976
|
(props, ref) => {
|
|
9878
9977
|
const {
|
|
9879
9978
|
title,
|
|
@@ -9916,29 +10015,34 @@ var Popover = forwardRef70(
|
|
|
9916
10015
|
return isOpen || hasTransitionedIn ? /* @__PURE__ */ jsxs61(
|
|
9917
10016
|
Paper,
|
|
9918
10017
|
{
|
|
9919
|
-
...getBaseHTMLProps(
|
|
10018
|
+
...getBaseHTMLProps(
|
|
10019
|
+
id,
|
|
10020
|
+
cn(
|
|
10021
|
+
className,
|
|
10022
|
+
Popover_default.container,
|
|
10023
|
+
utilStyles_default["visibility-transition"],
|
|
10024
|
+
hasTransitionedIn && isOpen ? utilStyles_default["visibility-transition--open"] : utilStyles_default["visibility-transition--closed"],
|
|
10025
|
+
focus_default.focusable
|
|
10026
|
+
),
|
|
10027
|
+
htmlProps,
|
|
10028
|
+
rest
|
|
10029
|
+
),
|
|
9920
10030
|
ref: multiRef,
|
|
9921
10031
|
tabIndex: -1,
|
|
9922
10032
|
style: { ...htmlProps.style, ...floatingStyles.floating, ...sizeProps },
|
|
9923
10033
|
role: "dialog",
|
|
9924
10034
|
elevation: 3,
|
|
9925
10035
|
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
10036
|
children: [
|
|
9933
|
-
title && /* @__PURE__ */
|
|
9934
|
-
/* @__PURE__ */
|
|
10037
|
+
title && /* @__PURE__ */ jsx262("div", { className: Popover_default.title, children: typeof title === "string" ? /* @__PURE__ */ jsx262(Heading, { level: 2, typographyType: "headingSans02", children: title }) : title }),
|
|
10038
|
+
/* @__PURE__ */ jsx262(
|
|
9935
10039
|
"div",
|
|
9936
10040
|
{
|
|
9937
10041
|
className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-title"] : "",
|
|
9938
10042
|
children
|
|
9939
10043
|
}
|
|
9940
10044
|
),
|
|
9941
|
-
withCloseButton && /* @__PURE__ */
|
|
10045
|
+
withCloseButton && /* @__PURE__ */ jsx262(
|
|
9942
10046
|
Button,
|
|
9943
10047
|
{
|
|
9944
10048
|
icon: CloseIcon,
|
|
@@ -9965,7 +10069,7 @@ import {
|
|
|
9965
10069
|
useRef as useRef27,
|
|
9966
10070
|
useState as useState20
|
|
9967
10071
|
} from "react";
|
|
9968
|
-
import { Fragment as Fragment9, jsx as
|
|
10072
|
+
import { Fragment as Fragment9, jsx as jsx263 } from "react/jsx-runtime";
|
|
9969
10073
|
var PopoverGroup = ({
|
|
9970
10074
|
isOpen = false,
|
|
9971
10075
|
onCloseButtonClick,
|
|
@@ -10011,7 +10115,7 @@ var PopoverGroup = ({
|
|
|
10011
10115
|
onClose: handleClose
|
|
10012
10116
|
}));
|
|
10013
10117
|
});
|
|
10014
|
-
return /* @__PURE__ */
|
|
10118
|
+
return /* @__PURE__ */ jsx263(Fragment9, { children: Children8 });
|
|
10015
10119
|
};
|
|
10016
10120
|
PopoverGroup.displayName = "PopoverGroup";
|
|
10017
10121
|
|
|
@@ -10020,7 +10124,7 @@ import {
|
|
|
10020
10124
|
Children as Children4,
|
|
10021
10125
|
Fragment as Fragment11,
|
|
10022
10126
|
cloneElement as cloneElement7,
|
|
10023
|
-
forwardRef as
|
|
10127
|
+
forwardRef as forwardRef75,
|
|
10024
10128
|
isValidElement as isValidElement8,
|
|
10025
10129
|
useEffect as useEffect23,
|
|
10026
10130
|
useMemo as useMemo3,
|
|
@@ -10059,7 +10163,7 @@ var ProgressTracker_default = {
|
|
|
10059
10163
|
|
|
10060
10164
|
// src/components/ProgressTracker/ProgressTrackerItem.tsx
|
|
10061
10165
|
import { useMemo as useMemo2 } from "react";
|
|
10062
|
-
import { Fragment as Fragment10, jsx as
|
|
10166
|
+
import { Fragment as Fragment10, jsx as jsx264, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
10063
10167
|
var toItemState = (active, completed, disabled) => {
|
|
10064
10168
|
if (disabled) {
|
|
10065
10169
|
return "disabled";
|
|
@@ -10080,26 +10184,37 @@ var itemStateCn = {
|
|
|
10080
10184
|
var getVisuallyHiddenText = (active, completed, index) => `${index + 1}, ${active ? "" : "Trinn, "}${completed ? "Ferdig, " : "Ikke ferdig, "}`;
|
|
10081
10185
|
var ProgressTrackerItem = (props) => {
|
|
10082
10186
|
const {
|
|
10187
|
+
id,
|
|
10188
|
+
className,
|
|
10189
|
+
htmlProps,
|
|
10083
10190
|
index = 0,
|
|
10084
10191
|
completed = false,
|
|
10085
10192
|
disabled = false,
|
|
10193
|
+
onClick,
|
|
10086
10194
|
icon,
|
|
10087
|
-
children
|
|
10195
|
+
children,
|
|
10196
|
+
...rest
|
|
10088
10197
|
} = props;
|
|
10089
10198
|
const { activeStep, handleStepChange } = useProgressTrackerContext();
|
|
10090
10199
|
const active = activeStep === index;
|
|
10091
10200
|
const itemState = toItemState(active, completed, disabled);
|
|
10201
|
+
const handleClick = () => {
|
|
10202
|
+
if (!disabled) {
|
|
10203
|
+
onClick && onClick(index);
|
|
10204
|
+
handleStepChange && handleStepChange(index);
|
|
10205
|
+
}
|
|
10206
|
+
};
|
|
10092
10207
|
const stepNumberContent = useMemo2(() => {
|
|
10093
10208
|
if (completed) {
|
|
10094
|
-
return /* @__PURE__ */
|
|
10209
|
+
return /* @__PURE__ */ jsx264(Icon, { icon: CheckIcon, iconSize: "small" });
|
|
10095
10210
|
}
|
|
10096
10211
|
if (icon !== void 0) {
|
|
10097
|
-
return /* @__PURE__ */
|
|
10212
|
+
return /* @__PURE__ */ jsx264(Icon, { icon, iconSize: "small" });
|
|
10098
10213
|
}
|
|
10099
10214
|
return index + 1;
|
|
10100
10215
|
}, [completed, icon, index]);
|
|
10101
10216
|
const stepContent = /* @__PURE__ */ jsxs62(Fragment10, { children: [
|
|
10102
|
-
/* @__PURE__ */
|
|
10217
|
+
/* @__PURE__ */ jsx264(
|
|
10103
10218
|
"div",
|
|
10104
10219
|
{
|
|
10105
10220
|
"aria-hidden": true,
|
|
@@ -10120,28 +10235,44 @@ var ProgressTrackerItem = (props) => {
|
|
|
10120
10235
|
typographyStyles_default["body-sans-03"]
|
|
10121
10236
|
),
|
|
10122
10237
|
children: [
|
|
10123
|
-
/* @__PURE__ */
|
|
10238
|
+
/* @__PURE__ */ jsx264(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
|
|
10124
10239
|
children
|
|
10125
10240
|
]
|
|
10126
10241
|
}
|
|
10127
10242
|
)
|
|
10128
10243
|
] });
|
|
10129
|
-
return /* @__PURE__ */
|
|
10244
|
+
return /* @__PURE__ */ jsx264("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ jsx264(
|
|
10130
10245
|
"button",
|
|
10131
10246
|
{
|
|
10132
|
-
|
|
10247
|
+
...getBaseHTMLProps(
|
|
10248
|
+
id,
|
|
10249
|
+
cn(className, ProgressTracker_default["item-button"], focusable),
|
|
10250
|
+
htmlProps,
|
|
10251
|
+
rest
|
|
10252
|
+
),
|
|
10253
|
+
onClick: () => handleClick(),
|
|
10133
10254
|
disabled,
|
|
10134
|
-
className: cn(ProgressTracker_default["item-button"], focusable),
|
|
10135
10255
|
children: stepContent
|
|
10136
10256
|
}
|
|
10137
|
-
) : /* @__PURE__ */
|
|
10257
|
+
) : /* @__PURE__ */ jsx264(
|
|
10258
|
+
"div",
|
|
10259
|
+
{
|
|
10260
|
+
...getBaseHTMLProps(
|
|
10261
|
+
id,
|
|
10262
|
+
cn(className, cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"])),
|
|
10263
|
+
htmlProps,
|
|
10264
|
+
rest
|
|
10265
|
+
),
|
|
10266
|
+
children: stepContent
|
|
10267
|
+
}
|
|
10268
|
+
) });
|
|
10138
10269
|
};
|
|
10139
10270
|
ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
10140
10271
|
|
|
10141
10272
|
// src/components/ProgressTracker/ProgressTracker.tsx
|
|
10142
|
-
import { jsx as
|
|
10273
|
+
import { jsx as jsx265, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
10143
10274
|
var ProgressTracker = (() => {
|
|
10144
|
-
const Res =
|
|
10275
|
+
const Res = forwardRef75((props, ref) => {
|
|
10145
10276
|
const {
|
|
10146
10277
|
id,
|
|
10147
10278
|
activeStep = 0,
|
|
@@ -10171,14 +10302,14 @@ var ProgressTracker = (() => {
|
|
|
10171
10302
|
const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
|
|
10172
10303
|
return itemsWithConnectorsBetween;
|
|
10173
10304
|
}, [children]);
|
|
10174
|
-
return /* @__PURE__ */
|
|
10305
|
+
return /* @__PURE__ */ jsx265(
|
|
10175
10306
|
ProgressTrackerContext.Provider,
|
|
10176
10307
|
{
|
|
10177
10308
|
value: {
|
|
10178
10309
|
activeStep: thisActiveStep,
|
|
10179
10310
|
handleStepChange: handleChange
|
|
10180
10311
|
},
|
|
10181
|
-
children: /* @__PURE__ */
|
|
10312
|
+
children: /* @__PURE__ */ jsx265("div", { role: "group", "aria-label": "progress", ...containerProps, children: /* @__PURE__ */ jsx265("ol", { className: ProgressTracker_default.list, children: steps }) })
|
|
10182
10313
|
}
|
|
10183
10314
|
);
|
|
10184
10315
|
});
|
|
@@ -10203,14 +10334,14 @@ var intersperseItemsWithConnector = (children) => Children4.map(children, (child
|
|
|
10203
10334
|
return child;
|
|
10204
10335
|
}
|
|
10205
10336
|
return /* @__PURE__ */ jsxs63(Fragment11, { children: [
|
|
10206
|
-
/* @__PURE__ */
|
|
10337
|
+
/* @__PURE__ */ jsx265("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
|
|
10207
10338
|
child
|
|
10208
10339
|
] }, index);
|
|
10209
10340
|
});
|
|
10210
10341
|
|
|
10211
10342
|
// src/components/Search/Search.tsx
|
|
10212
10343
|
import {
|
|
10213
|
-
forwardRef as
|
|
10344
|
+
forwardRef as forwardRef78,
|
|
10214
10345
|
useId as useId18,
|
|
10215
10346
|
useState as useState22
|
|
10216
10347
|
} from "react";
|
|
@@ -10272,16 +10403,16 @@ function createEmptyChangeEvent(inputElementId) {
|
|
|
10272
10403
|
}
|
|
10273
10404
|
|
|
10274
10405
|
// src/components/Search/SearchSuggestions.tsx
|
|
10275
|
-
import { forwardRef as
|
|
10406
|
+
import { forwardRef as forwardRef77 } from "react";
|
|
10276
10407
|
|
|
10277
10408
|
// src/components/Search/SearchSuggestionItem.tsx
|
|
10278
10409
|
import {
|
|
10279
|
-
forwardRef as
|
|
10410
|
+
forwardRef as forwardRef76,
|
|
10280
10411
|
useEffect as useEffect24,
|
|
10281
10412
|
useRef as useRef28
|
|
10282
10413
|
} from "react";
|
|
10283
|
-
import { jsx as
|
|
10284
|
-
var SearchSuggestionItem =
|
|
10414
|
+
import { jsx as jsx266 } from "react/jsx-runtime";
|
|
10415
|
+
var SearchSuggestionItem = forwardRef76((props, ref) => {
|
|
10285
10416
|
const { focus, className, ...rest } = props;
|
|
10286
10417
|
const itemRef = useRef28(null);
|
|
10287
10418
|
const combinedRef = useCombinedRef(ref, itemRef);
|
|
@@ -10291,7 +10422,7 @@ var SearchSuggestionItem = forwardRef72((props, ref) => {
|
|
|
10291
10422
|
(_a = itemRef.current) == null ? void 0 : _a.focus();
|
|
10292
10423
|
}
|
|
10293
10424
|
}, [focus]);
|
|
10294
|
-
return /* @__PURE__ */
|
|
10425
|
+
return /* @__PURE__ */ jsx266(
|
|
10295
10426
|
"button",
|
|
10296
10427
|
{
|
|
10297
10428
|
ref: combinedRef,
|
|
@@ -10310,8 +10441,8 @@ var SearchSuggestionItem = forwardRef72((props, ref) => {
|
|
|
10310
10441
|
SearchSuggestionItem.displayName = "SearchSuggestionItem";
|
|
10311
10442
|
|
|
10312
10443
|
// src/components/Search/SearchSuggestions.tsx
|
|
10313
|
-
import { jsx as
|
|
10314
|
-
var SearchSuggestions =
|
|
10444
|
+
import { jsx as jsx267, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
10445
|
+
var SearchSuggestions = forwardRef77((props, ref) => {
|
|
10315
10446
|
const {
|
|
10316
10447
|
id,
|
|
10317
10448
|
searchId,
|
|
@@ -10349,7 +10480,7 @@ var SearchSuggestions = forwardRef73((props, ref) => {
|
|
|
10349
10480
|
"aria-hidden": !showSuggestions,
|
|
10350
10481
|
border: "default",
|
|
10351
10482
|
children: [
|
|
10352
|
-
/* @__PURE__ */
|
|
10483
|
+
/* @__PURE__ */ jsx267(
|
|
10353
10484
|
"span",
|
|
10354
10485
|
{
|
|
10355
10486
|
id: suggestionsHeaderId,
|
|
@@ -10360,14 +10491,14 @@ var SearchSuggestions = forwardRef73((props, ref) => {
|
|
|
10360
10491
|
children: "S\xF8keforslag"
|
|
10361
10492
|
}
|
|
10362
10493
|
),
|
|
10363
|
-
/* @__PURE__ */
|
|
10494
|
+
/* @__PURE__ */ jsx267(
|
|
10364
10495
|
"ul",
|
|
10365
10496
|
{
|
|
10366
10497
|
role: "listbox",
|
|
10367
10498
|
"aria-labelledby": suggestionsHeaderId,
|
|
10368
10499
|
className: utilStyles_default["remove-list-styling"],
|
|
10369
10500
|
children: suggestionsToRender.map((suggestion, index) => {
|
|
10370
|
-
return /* @__PURE__ */
|
|
10501
|
+
return /* @__PURE__ */ jsx267("li", { role: "option", children: /* @__PURE__ */ jsx267(
|
|
10371
10502
|
SearchSuggestionItem,
|
|
10372
10503
|
{
|
|
10373
10504
|
index,
|
|
@@ -10390,7 +10521,7 @@ var SearchSuggestions = forwardRef73((props, ref) => {
|
|
|
10390
10521
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
10391
10522
|
|
|
10392
10523
|
// src/components/Search/Search.tsx
|
|
10393
|
-
import { Fragment as Fragment12, jsx as
|
|
10524
|
+
import { Fragment as Fragment12, jsx as jsx268, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
10394
10525
|
var getIconSize = (size2) => {
|
|
10395
10526
|
switch (size2) {
|
|
10396
10527
|
case "large":
|
|
@@ -10401,7 +10532,7 @@ var getIconSize = (size2) => {
|
|
|
10401
10532
|
return "small";
|
|
10402
10533
|
}
|
|
10403
10534
|
};
|
|
10404
|
-
var Search =
|
|
10535
|
+
var Search = forwardRef78(
|
|
10405
10536
|
({
|
|
10406
10537
|
componentSize = "medium",
|
|
10407
10538
|
buttonProps,
|
|
@@ -10446,7 +10577,7 @@ var Search = forwardRef74(
|
|
|
10446
10577
|
const hasSuggestions = !!context.suggestions;
|
|
10447
10578
|
const showSearchButton = !!buttonProps && !!onClick;
|
|
10448
10579
|
return /* @__PURE__ */ jsxs65("div", { className: Search_default.container, children: [
|
|
10449
|
-
hasLabel && /* @__PURE__ */
|
|
10580
|
+
hasLabel && /* @__PURE__ */ jsx268(Label, { htmlFor: uniqueId, children: label }),
|
|
10450
10581
|
/* @__PURE__ */ jsxs65("div", { children: [
|
|
10451
10582
|
/* @__PURE__ */ jsxs65(
|
|
10452
10583
|
"div",
|
|
@@ -10458,7 +10589,7 @@ var Search = forwardRef74(
|
|
|
10458
10589
|
style,
|
|
10459
10590
|
children: [
|
|
10460
10591
|
/* @__PURE__ */ jsxs65("div", { className: Search_default["input-group"], children: [
|
|
10461
|
-
/* @__PURE__ */
|
|
10592
|
+
/* @__PURE__ */ jsx268(
|
|
10462
10593
|
Icon,
|
|
10463
10594
|
{
|
|
10464
10595
|
icon: SearchIcon,
|
|
@@ -10466,7 +10597,7 @@ var Search = forwardRef74(
|
|
|
10466
10597
|
className: cn(Input_default.icon, Search_default["search-icon"])
|
|
10467
10598
|
}
|
|
10468
10599
|
),
|
|
10469
|
-
/* @__PURE__ */
|
|
10600
|
+
/* @__PURE__ */ jsx268(
|
|
10470
10601
|
Input,
|
|
10471
10602
|
{
|
|
10472
10603
|
...rest,
|
|
@@ -10494,7 +10625,7 @@ var Search = forwardRef74(
|
|
|
10494
10625
|
}
|
|
10495
10626
|
),
|
|
10496
10627
|
hasSuggestions && /* @__PURE__ */ jsxs65(Fragment12, { children: [
|
|
10497
|
-
/* @__PURE__ */
|
|
10628
|
+
/* @__PURE__ */ jsx268(
|
|
10498
10629
|
SearchSuggestions,
|
|
10499
10630
|
{
|
|
10500
10631
|
id: suggestionsId,
|
|
@@ -10506,9 +10637,9 @@ var Search = forwardRef74(
|
|
|
10506
10637
|
componentSize
|
|
10507
10638
|
}
|
|
10508
10639
|
),
|
|
10509
|
-
/* @__PURE__ */
|
|
10640
|
+
/* @__PURE__ */ jsx268(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
|
|
10510
10641
|
] }),
|
|
10511
|
-
hasValue && /* @__PURE__ */
|
|
10642
|
+
hasValue && /* @__PURE__ */ jsx268(
|
|
10512
10643
|
Button,
|
|
10513
10644
|
{
|
|
10514
10645
|
icon: CloseSmallIcon,
|
|
@@ -10520,7 +10651,7 @@ var Search = forwardRef74(
|
|
|
10520
10651
|
}
|
|
10521
10652
|
)
|
|
10522
10653
|
] }),
|
|
10523
|
-
showSearchButton && /* @__PURE__ */
|
|
10654
|
+
showSearchButton && /* @__PURE__ */ jsx268(
|
|
10524
10655
|
Button,
|
|
10525
10656
|
{
|
|
10526
10657
|
size: componentSize,
|
|
@@ -10545,7 +10676,7 @@ import {
|
|
|
10545
10676
|
useRef as useRef29,
|
|
10546
10677
|
useState as useState23
|
|
10547
10678
|
} from "react";
|
|
10548
|
-
import { jsx as
|
|
10679
|
+
import { jsx as jsx269 } from "react/jsx-runtime";
|
|
10549
10680
|
var SearchAutocompleteWrapper = (props) => {
|
|
10550
10681
|
const {
|
|
10551
10682
|
value,
|
|
@@ -10621,7 +10752,7 @@ var SearchAutocompleteWrapper = (props) => {
|
|
|
10621
10752
|
inputValue,
|
|
10622
10753
|
onSugggestionClick: handleSuggestionClick
|
|
10623
10754
|
};
|
|
10624
|
-
return /* @__PURE__ */
|
|
10755
|
+
return /* @__PURE__ */ jsx269(AutocompleteSearchContext.Provider, { value: contextProps, children });
|
|
10625
10756
|
};
|
|
10626
10757
|
SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
|
|
10627
10758
|
|
|
@@ -10631,7 +10762,7 @@ Search2.AutocompleteWrapper = SearchAutocompleteWrapper;
|
|
|
10631
10762
|
Search2.Suggestions = SearchSuggestions;
|
|
10632
10763
|
|
|
10633
10764
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
10634
|
-
import { forwardRef as
|
|
10765
|
+
import { forwardRef as forwardRef80, useId as useId19 } from "react";
|
|
10635
10766
|
|
|
10636
10767
|
// src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
|
|
10637
10768
|
import { createContext as createContext6, useContext as useContext9 } from "react";
|
|
@@ -10642,7 +10773,7 @@ var useCheckboxGroup = () => {
|
|
|
10642
10773
|
|
|
10643
10774
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
10644
10775
|
import {
|
|
10645
|
-
forwardRef as
|
|
10776
|
+
forwardRef as forwardRef79
|
|
10646
10777
|
} from "react";
|
|
10647
10778
|
|
|
10648
10779
|
// src/components/SelectionControl/SelectionControl.module.css
|
|
@@ -10663,10 +10794,10 @@ var SelectionControl_default = {
|
|
|
10663
10794
|
};
|
|
10664
10795
|
|
|
10665
10796
|
// src/components/SelectionControl/SelectionControl.styles.tsx
|
|
10666
|
-
import { jsx as
|
|
10667
|
-
var SelectionControl =
|
|
10797
|
+
import { jsx as jsx270 } from "react/jsx-runtime";
|
|
10798
|
+
var SelectionControl = forwardRef79((props, ref) => {
|
|
10668
10799
|
const { controlType, className, ...rest } = props;
|
|
10669
|
-
return /* @__PURE__ */
|
|
10800
|
+
return /* @__PURE__ */ jsx270(
|
|
10670
10801
|
"span",
|
|
10671
10802
|
{
|
|
10672
10803
|
ref,
|
|
@@ -10679,7 +10810,7 @@ var SelectionControl = forwardRef75((props, ref) => {
|
|
|
10679
10810
|
}
|
|
10680
10811
|
);
|
|
10681
10812
|
});
|
|
10682
|
-
var Label2 =
|
|
10813
|
+
var Label2 = forwardRef79(
|
|
10683
10814
|
(props, ref) => {
|
|
10684
10815
|
const {
|
|
10685
10816
|
disabled,
|
|
@@ -10690,7 +10821,7 @@ var Label2 = forwardRef75(
|
|
|
10690
10821
|
className,
|
|
10691
10822
|
...rest
|
|
10692
10823
|
} = props;
|
|
10693
|
-
return /* @__PURE__ */
|
|
10824
|
+
return /* @__PURE__ */ jsx270(
|
|
10694
10825
|
"label",
|
|
10695
10826
|
{
|
|
10696
10827
|
ref,
|
|
@@ -10721,8 +10852,8 @@ var selectionControlTypographyProps = {
|
|
|
10721
10852
|
};
|
|
10722
10853
|
|
|
10723
10854
|
// src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
10724
|
-
import { jsx as
|
|
10725
|
-
var Checkbox =
|
|
10855
|
+
import { jsx as jsx271, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
10856
|
+
var Checkbox = forwardRef80(
|
|
10726
10857
|
(props, ref) => {
|
|
10727
10858
|
const {
|
|
10728
10859
|
id,
|
|
@@ -10761,7 +10892,7 @@ var Checkbox = forwardRef76(
|
|
|
10761
10892
|
className: cn(className, htmlPropsClassName),
|
|
10762
10893
|
style,
|
|
10763
10894
|
children: [
|
|
10764
|
-
/* @__PURE__ */
|
|
10895
|
+
/* @__PURE__ */ jsx271(
|
|
10765
10896
|
"input",
|
|
10766
10897
|
{
|
|
10767
10898
|
...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
|
|
@@ -10791,14 +10922,14 @@ var Checkbox = forwardRef76(
|
|
|
10791
10922
|
onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
|
|
10792
10923
|
}
|
|
10793
10924
|
),
|
|
10794
|
-
/* @__PURE__ */
|
|
10925
|
+
/* @__PURE__ */ jsx271(
|
|
10795
10926
|
SelectionControl,
|
|
10796
10927
|
{
|
|
10797
10928
|
controlType: "checkbox",
|
|
10798
10929
|
className: focus_default["focus-styled-sibling"]
|
|
10799
10930
|
}
|
|
10800
10931
|
),
|
|
10801
|
-
hasLabel && /* @__PURE__ */
|
|
10932
|
+
hasLabel && /* @__PURE__ */ jsx271(Typography, { ...selectionControlTypographyProps, children: label })
|
|
10802
10933
|
]
|
|
10803
10934
|
}
|
|
10804
10935
|
);
|
|
@@ -10808,7 +10939,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
10808
10939
|
|
|
10809
10940
|
// src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
|
|
10810
10941
|
import { useId as useId20 } from "react";
|
|
10811
|
-
import { jsx as
|
|
10942
|
+
import { jsx as jsx272, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
10812
10943
|
var CheckboxGroup = (props) => {
|
|
10813
10944
|
const {
|
|
10814
10945
|
label,
|
|
@@ -10858,15 +10989,15 @@ var CheckboxGroup = (props) => {
|
|
|
10858
10989
|
id: uniqueGroupId,
|
|
10859
10990
|
className: readOnly ? Label_default["read-only"] : void 0,
|
|
10860
10991
|
children: [
|
|
10861
|
-
readOnly && /* @__PURE__ */
|
|
10992
|
+
readOnly && /* @__PURE__ */ jsx272(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
|
|
10862
10993
|
label,
|
|
10863
10994
|
" ",
|
|
10864
|
-
showRequiredMarker && /* @__PURE__ */
|
|
10995
|
+
showRequiredMarker && /* @__PURE__ */ jsx272(RequiredMarker, {})
|
|
10865
10996
|
]
|
|
10866
10997
|
}
|
|
10867
10998
|
),
|
|
10868
10999
|
renderInputMessage(tip, tipId),
|
|
10869
|
-
/* @__PURE__ */
|
|
11000
|
+
/* @__PURE__ */ jsx272(CheckboxGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx272(
|
|
10870
11001
|
"div",
|
|
10871
11002
|
{
|
|
10872
11003
|
role: "group",
|
|
@@ -10884,7 +11015,7 @@ var CheckboxGroup = (props) => {
|
|
|
10884
11015
|
CheckboxGroup.displayName = "CheckboxGroup";
|
|
10885
11016
|
|
|
10886
11017
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
10887
|
-
import { forwardRef as
|
|
11018
|
+
import { forwardRef as forwardRef81, useId as useId21 } from "react";
|
|
10888
11019
|
|
|
10889
11020
|
// src/components/SelectionControl/RadioButton/RadioButtonGroupContext.tsx
|
|
10890
11021
|
import { createContext as createContext7, useContext as useContext10 } from "react";
|
|
@@ -10894,7 +11025,7 @@ var useRadioButtonGroup = () => {
|
|
|
10894
11025
|
};
|
|
10895
11026
|
|
|
10896
11027
|
// src/components/SelectionControl/RadioButton/RadioButton.tsx
|
|
10897
|
-
import { jsx as
|
|
11028
|
+
import { jsx as jsx273, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
10898
11029
|
var isValueEqualToGroupValueOrFalsy = (value, group) => {
|
|
10899
11030
|
if (typeof value !== "undefined" && value !== null && group) {
|
|
10900
11031
|
if (typeof value === "number") {
|
|
@@ -10904,7 +11035,7 @@ var isValueEqualToGroupValueOrFalsy = (value, group) => {
|
|
|
10904
11035
|
}
|
|
10905
11036
|
return !!value;
|
|
10906
11037
|
};
|
|
10907
|
-
var RadioButton =
|
|
11038
|
+
var RadioButton = forwardRef81(
|
|
10908
11039
|
(props, ref) => {
|
|
10909
11040
|
const {
|
|
10910
11041
|
id,
|
|
@@ -10955,7 +11086,7 @@ var RadioButton = forwardRef77(
|
|
|
10955
11086
|
htmlFor: uniqueId,
|
|
10956
11087
|
controlType: "radio",
|
|
10957
11088
|
children: [
|
|
10958
|
-
/* @__PURE__ */
|
|
11089
|
+
/* @__PURE__ */ jsx273(
|
|
10959
11090
|
"input",
|
|
10960
11091
|
{
|
|
10961
11092
|
...getBaseHTMLProps(uniqueId, restHtmlProps, rest),
|
|
@@ -10981,14 +11112,14 @@ var RadioButton = forwardRef77(
|
|
|
10981
11112
|
onClick: readOnlyClickHandler(isReadOnly, htmlProps.onClick)
|
|
10982
11113
|
}
|
|
10983
11114
|
),
|
|
10984
|
-
/* @__PURE__ */
|
|
11115
|
+
/* @__PURE__ */ jsx273(
|
|
10985
11116
|
SelectionControl,
|
|
10986
11117
|
{
|
|
10987
11118
|
controlType: "radio",
|
|
10988
11119
|
className: focus_default["focus-styled-sibling"]
|
|
10989
11120
|
}
|
|
10990
11121
|
),
|
|
10991
|
-
/* @__PURE__ */
|
|
11122
|
+
/* @__PURE__ */ jsx273(Typography, { ...selectionControlTypographyProps, children: children != null ? children : label })
|
|
10992
11123
|
]
|
|
10993
11124
|
}
|
|
10994
11125
|
);
|
|
@@ -10998,11 +11129,11 @@ RadioButton.displayName = "RadioButton";
|
|
|
10998
11129
|
|
|
10999
11130
|
// src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
|
|
11000
11131
|
import {
|
|
11001
|
-
forwardRef as
|
|
11132
|
+
forwardRef as forwardRef82,
|
|
11002
11133
|
useId as useId22,
|
|
11003
11134
|
useState as useState24
|
|
11004
11135
|
} from "react";
|
|
11005
|
-
import { jsx as
|
|
11136
|
+
import { jsx as jsx274, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
11006
11137
|
var RadioButtonGroupInner = (props, ref) => {
|
|
11007
11138
|
const {
|
|
11008
11139
|
name,
|
|
@@ -11063,15 +11194,15 @@ var RadioButtonGroupInner = (props, ref) => {
|
|
|
11063
11194
|
id: uniqueGroupId,
|
|
11064
11195
|
className: readOnly ? Label_default["read-only"] : void 0,
|
|
11065
11196
|
children: [
|
|
11066
|
-
readOnly && /* @__PURE__ */
|
|
11197
|
+
readOnly && /* @__PURE__ */ jsx274(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
|
|
11067
11198
|
label,
|
|
11068
11199
|
" ",
|
|
11069
|
-
showRequiredMarker && /* @__PURE__ */
|
|
11200
|
+
showRequiredMarker && /* @__PURE__ */ jsx274(RequiredMarker, {})
|
|
11070
11201
|
]
|
|
11071
11202
|
}
|
|
11072
11203
|
),
|
|
11073
11204
|
renderInputMessage(tip, tipId),
|
|
11074
|
-
/* @__PURE__ */
|
|
11205
|
+
/* @__PURE__ */ jsx274(RadioButtonGroupContext.Provider, { value: { ...contextProps }, children: /* @__PURE__ */ jsx274(
|
|
11075
11206
|
"div",
|
|
11076
11207
|
{
|
|
11077
11208
|
role: "radiogroup",
|
|
@@ -11087,11 +11218,11 @@ var RadioButtonGroupInner = (props, ref) => {
|
|
|
11087
11218
|
}
|
|
11088
11219
|
);
|
|
11089
11220
|
};
|
|
11090
|
-
var RadioButtonGroup =
|
|
11221
|
+
var RadioButtonGroup = forwardRef82(RadioButtonGroupInner);
|
|
11091
11222
|
RadioButtonGroup.displayName = "RadioButtonGroup";
|
|
11092
11223
|
|
|
11093
11224
|
// src/components/Skeleton/Skeleton.tsx
|
|
11094
|
-
import { forwardRef as
|
|
11225
|
+
import { forwardRef as forwardRef83 } from "react";
|
|
11095
11226
|
|
|
11096
11227
|
// src/components/Skeleton/Skeleton.module.css
|
|
11097
11228
|
var Skeleton_default = {
|
|
@@ -11100,8 +11231,8 @@ var Skeleton_default = {
|
|
|
11100
11231
|
};
|
|
11101
11232
|
|
|
11102
11233
|
// src/components/Skeleton/Skeleton.tsx
|
|
11103
|
-
import { jsx as
|
|
11104
|
-
var Skeleton =
|
|
11234
|
+
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
11235
|
+
var Skeleton = forwardRef83(
|
|
11105
11236
|
(props, ref) => {
|
|
11106
11237
|
const {
|
|
11107
11238
|
width,
|
|
@@ -11111,7 +11242,7 @@ var Skeleton = forwardRef79(
|
|
|
11111
11242
|
style,
|
|
11112
11243
|
...rest
|
|
11113
11244
|
} = props;
|
|
11114
|
-
return /* @__PURE__ */
|
|
11245
|
+
return /* @__PURE__ */ jsx275(
|
|
11115
11246
|
"div",
|
|
11116
11247
|
{
|
|
11117
11248
|
ref,
|
|
@@ -11125,7 +11256,7 @@ var Skeleton = forwardRef79(
|
|
|
11125
11256
|
Skeleton.displayName = "Skeleton";
|
|
11126
11257
|
|
|
11127
11258
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
11128
|
-
import { forwardRef as
|
|
11259
|
+
import { forwardRef as forwardRef84 } from "react";
|
|
11129
11260
|
|
|
11130
11261
|
// src/components/SkipToContent/SkipToContent.module.css
|
|
11131
11262
|
var SkipToContent_default = {
|
|
@@ -11134,8 +11265,8 @@ var SkipToContent_default = {
|
|
|
11134
11265
|
};
|
|
11135
11266
|
|
|
11136
11267
|
// src/components/SkipToContent/SkipToContent.tsx
|
|
11137
|
-
import { jsx as
|
|
11138
|
-
var SkipToContent =
|
|
11268
|
+
import { jsx as jsx276 } from "react/jsx-runtime";
|
|
11269
|
+
var SkipToContent = forwardRef84(
|
|
11139
11270
|
(props, ref) => {
|
|
11140
11271
|
const {
|
|
11141
11272
|
text = "Til hovedinnhold",
|
|
@@ -11150,12 +11281,12 @@ var SkipToContent = forwardRef80(
|
|
|
11150
11281
|
style,
|
|
11151
11282
|
...restHtmlProps
|
|
11152
11283
|
} = htmlProps;
|
|
11153
|
-
return /* @__PURE__ */
|
|
11284
|
+
return /* @__PURE__ */ jsx276(
|
|
11154
11285
|
"div",
|
|
11155
11286
|
{
|
|
11156
11287
|
className: cn(className, htmlPropsClassName, SkipToContent_default.wrapper),
|
|
11157
11288
|
style: { ...style, top },
|
|
11158
|
-
children: /* @__PURE__ */
|
|
11289
|
+
children: /* @__PURE__ */ jsx276(
|
|
11159
11290
|
Link,
|
|
11160
11291
|
{
|
|
11161
11292
|
...getBaseHTMLProps(id, restHtmlProps, rest),
|
|
@@ -11172,7 +11303,7 @@ var SkipToContent = forwardRef80(
|
|
|
11172
11303
|
SkipToContent.displayName = "SkipToContent";
|
|
11173
11304
|
|
|
11174
11305
|
// src/components/SplitButton/SplitButton.tsx
|
|
11175
|
-
import { forwardRef as
|
|
11306
|
+
import { forwardRef as forwardRef85, useState as useState25 } from "react";
|
|
11176
11307
|
|
|
11177
11308
|
// src/components/SplitButton/SplitButton.module.css
|
|
11178
11309
|
var SplitButton_default = {
|
|
@@ -11183,8 +11314,8 @@ var SplitButton_default = {
|
|
|
11183
11314
|
};
|
|
11184
11315
|
|
|
11185
11316
|
// src/components/SplitButton/SplitButton.tsx
|
|
11186
|
-
import { jsx as
|
|
11187
|
-
var SplitButton =
|
|
11317
|
+
import { jsx as jsx277, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
11318
|
+
var SplitButton = forwardRef85(
|
|
11188
11319
|
(props, ref) => {
|
|
11189
11320
|
const {
|
|
11190
11321
|
size: size2,
|
|
@@ -11200,7 +11331,7 @@ var SplitButton = forwardRef81(
|
|
|
11200
11331
|
size: size2
|
|
11201
11332
|
};
|
|
11202
11333
|
return /* @__PURE__ */ jsxs70("div", { ref, className: cn(className, SplitButton_default.container), ...rest, children: [
|
|
11203
|
-
/* @__PURE__ */
|
|
11334
|
+
/* @__PURE__ */ jsx277(
|
|
11204
11335
|
Button,
|
|
11205
11336
|
{
|
|
11206
11337
|
...buttonStyleProps,
|
|
@@ -11210,7 +11341,7 @@ var SplitButton = forwardRef81(
|
|
|
11210
11341
|
}
|
|
11211
11342
|
),
|
|
11212
11343
|
/* @__PURE__ */ jsxs70(OverflowMenuGroup, { onToggle: () => setIsOpen(!isOpen), children: [
|
|
11213
|
-
/* @__PURE__ */
|
|
11344
|
+
/* @__PURE__ */ jsx277(
|
|
11214
11345
|
Button,
|
|
11215
11346
|
{
|
|
11216
11347
|
...buttonStyleProps,
|
|
@@ -11223,7 +11354,7 @@ var SplitButton = forwardRef81(
|
|
|
11223
11354
|
)
|
|
11224
11355
|
}
|
|
11225
11356
|
),
|
|
11226
|
-
/* @__PURE__ */
|
|
11357
|
+
/* @__PURE__ */ jsx277(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ jsx277(OverflowMenuList, { children: secondaryActions.map((item) => /* @__PURE__ */ jsx277(OverflowMenuButton, { ...item, children: item.children })) }) })
|
|
11227
11358
|
] })
|
|
11228
11359
|
] });
|
|
11229
11360
|
}
|
|
@@ -11235,7 +11366,7 @@ import {
|
|
|
11235
11366
|
Children as Children5,
|
|
11236
11367
|
Fragment as Fragment13,
|
|
11237
11368
|
cloneElement as cloneElement8,
|
|
11238
|
-
forwardRef as
|
|
11369
|
+
forwardRef as forwardRef93,
|
|
11239
11370
|
isValidElement as isValidElement9,
|
|
11240
11371
|
useEffect as useEffect27,
|
|
11241
11372
|
useState as useState27
|
|
@@ -11250,30 +11381,30 @@ var CollapsibleTableContext = createContext8({
|
|
|
11250
11381
|
var useCollapsibleTableContext = () => useContext11(CollapsibleTableContext);
|
|
11251
11382
|
|
|
11252
11383
|
// src/components/Table/normal/Body.tsx
|
|
11253
|
-
import { forwardRef as
|
|
11254
|
-
import { jsx as
|
|
11255
|
-
var Body =
|
|
11384
|
+
import { forwardRef as forwardRef86 } from "react";
|
|
11385
|
+
import { jsx as jsx278 } from "react/jsx-runtime";
|
|
11386
|
+
var Body = forwardRef86(
|
|
11256
11387
|
(props, ref) => {
|
|
11257
|
-
return /* @__PURE__ */
|
|
11388
|
+
return /* @__PURE__ */ jsx278("tbody", { ref, ...props });
|
|
11258
11389
|
}
|
|
11259
11390
|
);
|
|
11260
11391
|
Body.displayName = "Table.Body";
|
|
11261
11392
|
|
|
11262
11393
|
// src/components/Table/normal/Cell.tsx
|
|
11263
11394
|
import {
|
|
11264
|
-
forwardRef as
|
|
11395
|
+
forwardRef as forwardRef88
|
|
11265
11396
|
} from "react";
|
|
11266
11397
|
|
|
11267
11398
|
// src/components/Table/normal/Head.tsx
|
|
11268
11399
|
import {
|
|
11269
11400
|
createContext as createContext9,
|
|
11270
|
-
forwardRef as
|
|
11401
|
+
forwardRef as forwardRef87,
|
|
11271
11402
|
useContext as useContext12
|
|
11272
11403
|
} from "react";
|
|
11273
|
-
import { jsx as
|
|
11274
|
-
var Head =
|
|
11404
|
+
import { jsx as jsx279 } from "react/jsx-runtime";
|
|
11405
|
+
var Head = forwardRef87(
|
|
11275
11406
|
({ children, ...rest }, ref) => {
|
|
11276
|
-
return /* @__PURE__ */
|
|
11407
|
+
return /* @__PURE__ */ jsx279("thead", { ref, ...rest, children: /* @__PURE__ */ jsx279(HeadContext.Provider, { value: true, children }) });
|
|
11277
11408
|
}
|
|
11278
11409
|
);
|
|
11279
11410
|
Head.displayName = "Table.Head";
|
|
@@ -11309,8 +11440,8 @@ var Table_default = {
|
|
|
11309
11440
|
};
|
|
11310
11441
|
|
|
11311
11442
|
// src/components/Table/normal/Cell.tsx
|
|
11312
|
-
import { jsx as
|
|
11313
|
-
var Cell =
|
|
11443
|
+
import { jsx as jsx280 } from "react/jsx-runtime";
|
|
11444
|
+
var Cell = forwardRef88(
|
|
11314
11445
|
({
|
|
11315
11446
|
children,
|
|
11316
11447
|
type: _type,
|
|
@@ -11323,7 +11454,7 @@ var Cell = forwardRef84(
|
|
|
11323
11454
|
const type = _type != null ? _type : isInHead ? "head" : "data";
|
|
11324
11455
|
const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
|
|
11325
11456
|
const isComplexLayout = layout === "text and icon";
|
|
11326
|
-
return isCollapsibleChild ? /* @__PURE__ */
|
|
11457
|
+
return isCollapsibleChild ? /* @__PURE__ */ jsx280(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ jsx280(
|
|
11327
11458
|
"th",
|
|
11328
11459
|
{
|
|
11329
11460
|
ref,
|
|
@@ -11333,15 +11464,15 @@ var Cell = forwardRef84(
|
|
|
11333
11464
|
!isComplexLayout && Table_default[`cell--${layout}`],
|
|
11334
11465
|
Table_default["cell--head"]
|
|
11335
11466
|
),
|
|
11336
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
11467
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx280("div", { className: Table_default.cell__inner, children }) : children
|
|
11337
11468
|
}
|
|
11338
|
-
) : /* @__PURE__ */
|
|
11469
|
+
) : /* @__PURE__ */ jsx280(
|
|
11339
11470
|
"td",
|
|
11340
11471
|
{
|
|
11341
11472
|
ref,
|
|
11342
11473
|
...rest,
|
|
11343
11474
|
className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
|
|
11344
|
-
children: isComplexLayout ? /* @__PURE__ */
|
|
11475
|
+
children: isComplexLayout ? /* @__PURE__ */ jsx280("div", { className: Table_default.cell__inner, children }) : children
|
|
11345
11476
|
}
|
|
11346
11477
|
);
|
|
11347
11478
|
}
|
|
@@ -11349,23 +11480,23 @@ var Cell = forwardRef84(
|
|
|
11349
11480
|
Cell.displayName = "Table.Cell";
|
|
11350
11481
|
|
|
11351
11482
|
// src/components/Table/normal/Foot.tsx
|
|
11352
|
-
import { forwardRef as
|
|
11353
|
-
import { jsx as
|
|
11354
|
-
var Foot =
|
|
11483
|
+
import { forwardRef as forwardRef89 } from "react";
|
|
11484
|
+
import { jsx as jsx281 } from "react/jsx-runtime";
|
|
11485
|
+
var Foot = forwardRef89(
|
|
11355
11486
|
(props, ref) => {
|
|
11356
|
-
return /* @__PURE__ */
|
|
11487
|
+
return /* @__PURE__ */ jsx281("tfoot", { ref, ...props });
|
|
11357
11488
|
}
|
|
11358
11489
|
);
|
|
11359
11490
|
Foot.displayName = "Table.Foot";
|
|
11360
11491
|
|
|
11361
11492
|
// src/components/Table/normal/Row.tsx
|
|
11362
|
-
import { forwardRef as
|
|
11363
|
-
import { jsx as
|
|
11364
|
-
var Row =
|
|
11493
|
+
import { forwardRef as forwardRef90 } from "react";
|
|
11494
|
+
import { jsx as jsx282 } from "react/jsx-runtime";
|
|
11495
|
+
var Row = forwardRef90(
|
|
11365
11496
|
({ type: _type, mode = "normal", hoverable, selected, className, ...rest }, ref) => {
|
|
11366
11497
|
const isInHeader = useIsInTableHead();
|
|
11367
11498
|
const type = _type != null ? _type : isInHeader ? "head" : "body";
|
|
11368
|
-
return /* @__PURE__ */
|
|
11499
|
+
return /* @__PURE__ */ jsx282(
|
|
11369
11500
|
"tr",
|
|
11370
11501
|
{
|
|
11371
11502
|
ref,
|
|
@@ -11388,16 +11519,16 @@ var Row = forwardRef86(
|
|
|
11388
11519
|
Row.displayName = "Table.Row";
|
|
11389
11520
|
|
|
11390
11521
|
// src/components/Table/normal/SortCell.tsx
|
|
11391
|
-
import { forwardRef as
|
|
11392
|
-
import { jsx as
|
|
11522
|
+
import { forwardRef as forwardRef91 } from "react";
|
|
11523
|
+
import { jsx as jsx283, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
11393
11524
|
var makeSortIcon = (isSorted, sortOrder) => {
|
|
11394
11525
|
if (!isSorted || !sortOrder) {
|
|
11395
|
-
return /* @__PURE__ */
|
|
11526
|
+
return /* @__PURE__ */ jsx283(Icon, { icon: UnfoldMoreIcon, iconSize: "inherit" });
|
|
11396
11527
|
}
|
|
11397
|
-
return sortOrder === "ascending" ? /* @__PURE__ */
|
|
11528
|
+
return sortOrder === "ascending" ? /* @__PURE__ */ jsx283(Icon, { icon: ChevronDownIcon, iconSize: "inherit" }) : /* @__PURE__ */ jsx283(Icon, { icon: ChevronUpIcon, iconSize: "inherit" });
|
|
11398
11529
|
};
|
|
11399
|
-
var SortCell =
|
|
11400
|
-
({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */
|
|
11530
|
+
var SortCell = forwardRef91(
|
|
11531
|
+
({ isSorted, sortOrder, onClick, children, ...rest }, ref) => /* @__PURE__ */ jsx283(
|
|
11401
11532
|
Cell,
|
|
11402
11533
|
{
|
|
11403
11534
|
ref,
|
|
@@ -11428,9 +11559,9 @@ var SortCell = forwardRef87(
|
|
|
11428
11559
|
SortCell.displayName = "Table.SortCell";
|
|
11429
11560
|
|
|
11430
11561
|
// src/components/Table/normal/Table.tsx
|
|
11431
|
-
import { forwardRef as
|
|
11432
|
-
import { jsx as
|
|
11433
|
-
function
|
|
11562
|
+
import { forwardRef as forwardRef92 } from "react";
|
|
11563
|
+
import { jsx as jsx284 } from "react/jsx-runtime";
|
|
11564
|
+
function getDensityCn2(value) {
|
|
11434
11565
|
switch (value) {
|
|
11435
11566
|
case "normal":
|
|
11436
11567
|
case "compact":
|
|
@@ -11439,7 +11570,7 @@ function getDensityCn(value) {
|
|
|
11439
11570
|
return "extra-compact";
|
|
11440
11571
|
}
|
|
11441
11572
|
}
|
|
11442
|
-
var Table =
|
|
11573
|
+
var Table = forwardRef92(
|
|
11443
11574
|
({
|
|
11444
11575
|
density = "normal",
|
|
11445
11576
|
stickyHeader,
|
|
@@ -11448,7 +11579,7 @@ var Table = forwardRef88(
|
|
|
11448
11579
|
children,
|
|
11449
11580
|
...rest
|
|
11450
11581
|
}, ref) => {
|
|
11451
|
-
return /* @__PURE__ */
|
|
11582
|
+
return /* @__PURE__ */ jsx284(
|
|
11452
11583
|
"table",
|
|
11453
11584
|
{
|
|
11454
11585
|
ref,
|
|
@@ -11456,7 +11587,7 @@ var Table = forwardRef88(
|
|
|
11456
11587
|
className: cn(
|
|
11457
11588
|
className,
|
|
11458
11589
|
Table_default.table,
|
|
11459
|
-
Table_default[`table--${
|
|
11590
|
+
Table_default[`table--${getDensityCn2(density)}`],
|
|
11460
11591
|
withDividers && Table_default["table--with-dividers"],
|
|
11461
11592
|
stickyHeader && Table_default["table--sticky-header"],
|
|
11462
11593
|
scrollbar
|
|
@@ -11470,7 +11601,7 @@ Table.displayName = "Table";
|
|
|
11470
11601
|
|
|
11471
11602
|
// src/components/Table/normal/TableWrapper.tsx
|
|
11472
11603
|
import { useEffect as useEffect26, useRef as useRef30, useState as useState26 } from "react";
|
|
11473
|
-
import { jsx as
|
|
11604
|
+
import { jsx as jsx285 } from "react/jsx-runtime";
|
|
11474
11605
|
var TableWrapper = ({ className, ...rest }) => {
|
|
11475
11606
|
const [overflowX, setOverflowX] = useState26(false);
|
|
11476
11607
|
const [windowWidth, setWindowWidth] = useState26(window.innerWidth);
|
|
@@ -11492,7 +11623,7 @@ var TableWrapper = ({ className, ...rest }) => {
|
|
|
11492
11623
|
window.addEventListener("resize", handleResize);
|
|
11493
11624
|
return () => window.removeEventListener("resize", handleResize);
|
|
11494
11625
|
});
|
|
11495
|
-
return /* @__PURE__ */
|
|
11626
|
+
return /* @__PURE__ */ jsx285(
|
|
11496
11627
|
"div",
|
|
11497
11628
|
{
|
|
11498
11629
|
ref: wrapperRef,
|
|
@@ -11519,8 +11650,8 @@ Table2.Row = Row;
|
|
|
11519
11650
|
Table2.Foot = Foot;
|
|
11520
11651
|
|
|
11521
11652
|
// src/components/Table/collapsible/CollapsibleRow.tsx
|
|
11522
|
-
import { Fragment as Fragment14, jsx as
|
|
11523
|
-
var CollapsibleRow =
|
|
11653
|
+
import { Fragment as Fragment14, jsx as jsx286, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
11654
|
+
var CollapsibleRow = forwardRef93(
|
|
11524
11655
|
({
|
|
11525
11656
|
type: _type,
|
|
11526
11657
|
className,
|
|
@@ -11562,23 +11693,23 @@ var CollapsibleRow = forwardRef89(
|
|
|
11562
11693
|
const id = derivativeIdGenerator(prefix3, index.toString());
|
|
11563
11694
|
collapsibleIds.push(id);
|
|
11564
11695
|
return /* @__PURE__ */ jsxs72(Fragment13, { children: [
|
|
11565
|
-
/* @__PURE__ */
|
|
11696
|
+
/* @__PURE__ */ jsx286(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
|
|
11566
11697
|
isValidElement9(child) && cloneElement8(child, {
|
|
11567
11698
|
collapsibleProps: { isCollapsibleChild: true }
|
|
11568
11699
|
})
|
|
11569
11700
|
] }, `DL-${index}`);
|
|
11570
11701
|
}) : null;
|
|
11571
|
-
const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */
|
|
11702
|
+
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
11703
|
const definingColumnCells = childrenArray.slice().filter((column2, index) => definingColumnIndex.indexOf(index) > -1).sort((a2, b) => {
|
|
11573
11704
|
return definingColumnIndex.indexOf(childrenArray.indexOf(a2)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
|
|
11574
11705
|
});
|
|
11575
11706
|
const headerRow = () => {
|
|
11576
11707
|
if (type !== "head" || !isCollapsed) return null;
|
|
11577
|
-
return /* @__PURE__ */
|
|
11708
|
+
return /* @__PURE__ */ jsx286(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs72(Fragment14, { children: [
|
|
11578
11709
|
definingColumnCells,
|
|
11579
11710
|
/* @__PURE__ */ jsxs72(Table2.Cell, { type: "head", layout: "center", children: [
|
|
11580
11711
|
"Utvid",
|
|
11581
|
-
/* @__PURE__ */
|
|
11712
|
+
/* @__PURE__ */ jsx286(VisuallyHidden, { as: "span", children: "raden" })
|
|
11582
11713
|
] })
|
|
11583
11714
|
] }) });
|
|
11584
11715
|
};
|
|
@@ -11587,7 +11718,7 @@ var CollapsibleRow = forwardRef89(
|
|
|
11587
11718
|
if (type !== "body" || !isCollapsed) return null;
|
|
11588
11719
|
return /* @__PURE__ */ jsxs72(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
|
|
11589
11720
|
definingColumnCells,
|
|
11590
|
-
/* @__PURE__ */
|
|
11721
|
+
/* @__PURE__ */ jsx286(Table2.Cell, { children: /* @__PURE__ */ jsx286(
|
|
11591
11722
|
"button",
|
|
11592
11723
|
{
|
|
11593
11724
|
onClick: () => setChildrenCollapsed(!childrenCollapsed),
|
|
@@ -11599,7 +11730,7 @@ var CollapsibleRow = forwardRef89(
|
|
|
11599
11730
|
utilStyles_default["remove-button-styling"],
|
|
11600
11731
|
focusable
|
|
11601
11732
|
),
|
|
11602
|
-
children: /* @__PURE__ */
|
|
11733
|
+
children: /* @__PURE__ */ jsx286(
|
|
11603
11734
|
AnimatedChevronUpDown,
|
|
11604
11735
|
{
|
|
11605
11736
|
isUp: childrenCollapsed ? false : true,
|
|
@@ -11617,22 +11748,22 @@ var CollapsibleRow = forwardRef89(
|
|
|
11617
11748
|
rowWithChevron(),
|
|
11618
11749
|
childrenCollapsed ? null : collapsedRows
|
|
11619
11750
|
] })
|
|
11620
|
-
] }) : /* @__PURE__ */
|
|
11751
|
+
] }) : /* @__PURE__ */ jsx286(Row, { ref, ...rowProps(), children });
|
|
11621
11752
|
}
|
|
11622
11753
|
);
|
|
11623
11754
|
CollapsibleRow.displayName = "CollapsibleTable.Row";
|
|
11624
11755
|
|
|
11625
11756
|
// src/components/Table/collapsible/CollapsibleTable.tsx
|
|
11626
|
-
import { forwardRef as
|
|
11627
|
-
import { jsx as
|
|
11628
|
-
var CollapsibleTable =
|
|
11757
|
+
import { forwardRef as forwardRef94 } from "react";
|
|
11758
|
+
import { jsx as jsx287 } from "react/jsx-runtime";
|
|
11759
|
+
var CollapsibleTable = forwardRef94((props, ref) => {
|
|
11629
11760
|
const {
|
|
11630
11761
|
isCollapsed,
|
|
11631
11762
|
headerValues,
|
|
11632
11763
|
definingColumnIndex = [0],
|
|
11633
11764
|
...rest
|
|
11634
11765
|
} = props;
|
|
11635
|
-
return /* @__PURE__ */
|
|
11766
|
+
return /* @__PURE__ */ jsx287(
|
|
11636
11767
|
CollapsibleTableContext.Provider,
|
|
11637
11768
|
{
|
|
11638
11769
|
value: {
|
|
@@ -11640,7 +11771,7 @@ var CollapsibleTable = forwardRef90((props, ref) => {
|
|
|
11640
11771
|
headerValues,
|
|
11641
11772
|
definingColumnIndex
|
|
11642
11773
|
},
|
|
11643
|
-
children: /* @__PURE__ */
|
|
11774
|
+
children: /* @__PURE__ */ jsx287(Table2, { ref, ...rest })
|
|
11644
11775
|
}
|
|
11645
11776
|
);
|
|
11646
11777
|
});
|
|
@@ -11652,7 +11783,7 @@ CollapsibleTable2.Row = CollapsibleRow;
|
|
|
11652
11783
|
|
|
11653
11784
|
// src/components/Tabs/Tabs.tsx
|
|
11654
11785
|
import {
|
|
11655
|
-
forwardRef as
|
|
11786
|
+
forwardRef as forwardRef95,
|
|
11656
11787
|
useEffect as useEffect28,
|
|
11657
11788
|
useId as useId23,
|
|
11658
11789
|
useRef as useRef31,
|
|
@@ -11688,8 +11819,8 @@ var Tabs_default = {
|
|
|
11688
11819
|
};
|
|
11689
11820
|
|
|
11690
11821
|
// src/components/Tabs/Tabs.tsx
|
|
11691
|
-
import { jsx as
|
|
11692
|
-
var Tabs =
|
|
11822
|
+
import { jsx as jsx288 } from "react/jsx-runtime";
|
|
11823
|
+
var Tabs = forwardRef95((props, ref) => {
|
|
11693
11824
|
const {
|
|
11694
11825
|
id,
|
|
11695
11826
|
activeTab,
|
|
@@ -11720,7 +11851,7 @@ var Tabs = forwardRef91((props, ref) => {
|
|
|
11720
11851
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11721
11852
|
["--dds-tabs-width"]: width
|
|
11722
11853
|
};
|
|
11723
|
-
return /* @__PURE__ */
|
|
11854
|
+
return /* @__PURE__ */ jsx288(
|
|
11724
11855
|
TabsContext.Provider,
|
|
11725
11856
|
{
|
|
11726
11857
|
value: {
|
|
@@ -11733,7 +11864,7 @@ var Tabs = forwardRef91((props, ref) => {
|
|
|
11733
11864
|
setHasTabFocus,
|
|
11734
11865
|
tabContentDirection
|
|
11735
11866
|
},
|
|
11736
|
-
children: /* @__PURE__ */
|
|
11867
|
+
children: /* @__PURE__ */ jsx288(
|
|
11737
11868
|
"div",
|
|
11738
11869
|
{
|
|
11739
11870
|
ref,
|
|
@@ -11754,7 +11885,7 @@ Tabs.displayName = "Tabs";
|
|
|
11754
11885
|
|
|
11755
11886
|
// src/components/Tabs/Tab.tsx
|
|
11756
11887
|
import {
|
|
11757
|
-
forwardRef as
|
|
11888
|
+
forwardRef as forwardRef96,
|
|
11758
11889
|
useCallback as useCallback7,
|
|
11759
11890
|
useEffect as useEffect29,
|
|
11760
11891
|
useRef as useRef32
|
|
@@ -11766,13 +11897,13 @@ import {
|
|
|
11766
11897
|
useContext as useContext14,
|
|
11767
11898
|
useLayoutEffect as useLayoutEffect2
|
|
11768
11899
|
} from "react";
|
|
11769
|
-
import { jsx as
|
|
11900
|
+
import { jsx as jsx289 } from "react/jsx-runtime";
|
|
11770
11901
|
var TabContext = createContext11(null);
|
|
11771
11902
|
function TabWidthContextProvider({
|
|
11772
11903
|
children,
|
|
11773
11904
|
onChangeWidths
|
|
11774
11905
|
}) {
|
|
11775
|
-
return /* @__PURE__ */
|
|
11906
|
+
return /* @__PURE__ */ jsx289(
|
|
11776
11907
|
TabContext.Provider,
|
|
11777
11908
|
{
|
|
11778
11909
|
value: {
|
|
@@ -11804,8 +11935,8 @@ function useSetTabWidth(index, width) {
|
|
|
11804
11935
|
}
|
|
11805
11936
|
|
|
11806
11937
|
// src/components/Tabs/Tab.tsx
|
|
11807
|
-
import { jsx as
|
|
11808
|
-
var Tab =
|
|
11938
|
+
import { jsx as jsx290, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
11939
|
+
var Tab = forwardRef96((props, ref) => {
|
|
11809
11940
|
const {
|
|
11810
11941
|
active = false,
|
|
11811
11942
|
icon,
|
|
@@ -11867,8 +11998,8 @@ var Tab = forwardRef92((props, ref) => {
|
|
|
11867
11998
|
onKeyDown: handleOnKeyDown,
|
|
11868
11999
|
tabIndex: focus ? 0 : -1,
|
|
11869
12000
|
children: [
|
|
11870
|
-
icon && /* @__PURE__ */
|
|
11871
|
-
/* @__PURE__ */
|
|
12001
|
+
icon && /* @__PURE__ */ jsx290(Icon, { icon, iconSize: "inherit" }),
|
|
12002
|
+
/* @__PURE__ */ jsx290("span", { children })
|
|
11872
12003
|
]
|
|
11873
12004
|
}
|
|
11874
12005
|
);
|
|
@@ -11879,12 +12010,12 @@ Tab.displayName = "Tab";
|
|
|
11879
12010
|
import {
|
|
11880
12011
|
Children as Children6,
|
|
11881
12012
|
cloneElement as cloneElement9,
|
|
11882
|
-
forwardRef as
|
|
12013
|
+
forwardRef as forwardRef97,
|
|
11883
12014
|
isValidElement as isValidElement10,
|
|
11884
12015
|
useState as useState29
|
|
11885
12016
|
} from "react";
|
|
11886
|
-
import { jsx as
|
|
11887
|
-
var TabList =
|
|
12017
|
+
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
12018
|
+
var TabList = forwardRef97(
|
|
11888
12019
|
({ children, id, style, onFocus, ...rest }, ref) => {
|
|
11889
12020
|
const {
|
|
11890
12021
|
activeTab,
|
|
@@ -11927,7 +12058,7 @@ var TabList = forwardRef93(
|
|
|
11927
12058
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11928
12059
|
["--dds-tab-widths"]: widths.join(" ")
|
|
11929
12060
|
};
|
|
11930
|
-
return /* @__PURE__ */
|
|
12061
|
+
return /* @__PURE__ */ jsx291(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ jsx291(
|
|
11931
12062
|
"div",
|
|
11932
12063
|
{
|
|
11933
12064
|
...rest,
|
|
@@ -11953,11 +12084,11 @@ var TabList = forwardRef93(
|
|
|
11953
12084
|
TabList.displayName = "TabList";
|
|
11954
12085
|
|
|
11955
12086
|
// src/components/Tabs/TabPanel.tsx
|
|
11956
|
-
import { forwardRef as
|
|
11957
|
-
import { jsx as
|
|
11958
|
-
var TabPanel =
|
|
12087
|
+
import { forwardRef as forwardRef98 } from "react";
|
|
12088
|
+
import { jsx as jsx292 } from "react/jsx-runtime";
|
|
12089
|
+
var TabPanel = forwardRef98(
|
|
11959
12090
|
({ active = false, children, id, className, htmlProps, ...rest }, ref) => {
|
|
11960
|
-
return /* @__PURE__ */
|
|
12091
|
+
return /* @__PURE__ */ jsx292(
|
|
11961
12092
|
"div",
|
|
11962
12093
|
{
|
|
11963
12094
|
...getBaseHTMLProps(
|
|
@@ -11985,11 +12116,11 @@ TabPanel.displayName = "TabPanel";
|
|
|
11985
12116
|
import {
|
|
11986
12117
|
Children as Children7,
|
|
11987
12118
|
cloneElement as cloneElement10,
|
|
11988
|
-
forwardRef as
|
|
12119
|
+
forwardRef as forwardRef99,
|
|
11989
12120
|
isValidElement as isValidElement11
|
|
11990
12121
|
} from "react";
|
|
11991
|
-
import { jsx as
|
|
11992
|
-
var TabPanels =
|
|
12122
|
+
import { jsx as jsx293 } from "react/jsx-runtime";
|
|
12123
|
+
var TabPanels = forwardRef99(
|
|
11993
12124
|
({ children, ...rest }, ref) => {
|
|
11994
12125
|
const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
|
|
11995
12126
|
const combinedRef = useCombinedRef(ref, tabPanelsRef);
|
|
@@ -12002,13 +12133,13 @@ var TabPanels = forwardRef95(
|
|
|
12002
12133
|
"aria-expanded": active
|
|
12003
12134
|
});
|
|
12004
12135
|
});
|
|
12005
|
-
return /* @__PURE__ */
|
|
12136
|
+
return /* @__PURE__ */ jsx293("div", { ref: combinedRef, ...rest, children: panelChildren });
|
|
12006
12137
|
}
|
|
12007
12138
|
);
|
|
12008
12139
|
TabPanels.displayName = "TabPanels";
|
|
12009
12140
|
|
|
12010
12141
|
// src/components/Tag/Tag.tsx
|
|
12011
|
-
import { forwardRef as
|
|
12142
|
+
import { forwardRef as forwardRef100 } from "react";
|
|
12012
12143
|
|
|
12013
12144
|
// src/components/Tag/Tag.module.css
|
|
12014
12145
|
var Tag_default = {
|
|
@@ -12027,7 +12158,7 @@ var Tag_default = {
|
|
|
12027
12158
|
};
|
|
12028
12159
|
|
|
12029
12160
|
// src/components/Tag/Tag.tsx
|
|
12030
|
-
import { jsx as
|
|
12161
|
+
import { jsx as jsx294, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
12031
12162
|
var icons3 = {
|
|
12032
12163
|
info: InfoIcon,
|
|
12033
12164
|
danger: ErrorIcon,
|
|
@@ -12035,7 +12166,7 @@ var icons3 = {
|
|
|
12035
12166
|
success: CheckCircledIcon,
|
|
12036
12167
|
default: void 0
|
|
12037
12168
|
};
|
|
12038
|
-
var Tag =
|
|
12169
|
+
var Tag = forwardRef100((props, ref) => {
|
|
12039
12170
|
const {
|
|
12040
12171
|
text,
|
|
12041
12172
|
purpose = "default",
|
|
@@ -12065,8 +12196,8 @@ var Tag = forwardRef96((props, ref) => {
|
|
|
12065
12196
|
),
|
|
12066
12197
|
ref,
|
|
12067
12198
|
children: [
|
|
12068
|
-
withIcon && icon && /* @__PURE__ */
|
|
12069
|
-
/* @__PURE__ */
|
|
12199
|
+
withIcon && icon && /* @__PURE__ */ jsx294(Icon, { icon, iconSize: "small" }),
|
|
12200
|
+
/* @__PURE__ */ jsx294(TextOverflowEllipsisInner, { children: children != null ? children : text })
|
|
12070
12201
|
]
|
|
12071
12202
|
}
|
|
12072
12203
|
);
|
|
@@ -12076,7 +12207,7 @@ Tag.displayName = "Tag";
|
|
|
12076
12207
|
// src/components/TextInput/TextInput.tsx
|
|
12077
12208
|
import { ddsTokens as ddsTokens15 } from "@norges-domstoler/dds-design-tokens";
|
|
12078
12209
|
import {
|
|
12079
|
-
forwardRef as
|
|
12210
|
+
forwardRef as forwardRef101,
|
|
12080
12211
|
useId as useId24,
|
|
12081
12212
|
useLayoutEffect as useLayoutEffect3,
|
|
12082
12213
|
useRef as useRef33,
|
|
@@ -12108,8 +12239,8 @@ var TextInput_default = {
|
|
|
12108
12239
|
};
|
|
12109
12240
|
|
|
12110
12241
|
// src/components/TextInput/TextInput.tsx
|
|
12111
|
-
import { jsx as
|
|
12112
|
-
var TextInput =
|
|
12242
|
+
import { jsx as jsx295, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
12243
|
+
var TextInput = forwardRef101(
|
|
12113
12244
|
({
|
|
12114
12245
|
label,
|
|
12115
12246
|
disabled,
|
|
@@ -12204,7 +12335,7 @@ var TextInput = forwardRef97(
|
|
|
12204
12335
|
className: cn(TextInput_default["input-width"], Input_default["input-group"]),
|
|
12205
12336
|
style: styleVariables,
|
|
12206
12337
|
children: [
|
|
12207
|
-
/* @__PURE__ */
|
|
12338
|
+
/* @__PURE__ */ jsx295(
|
|
12208
12339
|
Icon,
|
|
12209
12340
|
{
|
|
12210
12341
|
icon,
|
|
@@ -12212,7 +12343,7 @@ var TextInput = forwardRef97(
|
|
|
12212
12343
|
className: cn(Input_default.icon, TextInput_default[`icon--${componentSize}`])
|
|
12213
12344
|
}
|
|
12214
12345
|
),
|
|
12215
|
-
/* @__PURE__ */
|
|
12346
|
+
/* @__PURE__ */ jsx295(
|
|
12216
12347
|
StatefulInput,
|
|
12217
12348
|
{
|
|
12218
12349
|
ref,
|
|
@@ -12237,7 +12368,7 @@ var TextInput = forwardRef97(
|
|
|
12237
12368
|
className: cn(TextInput_default["affix-container"], TextInput_default["input-width"]),
|
|
12238
12369
|
style: styleVariables,
|
|
12239
12370
|
children: [
|
|
12240
|
-
prefix3 && /* @__PURE__ */
|
|
12371
|
+
prefix3 && /* @__PURE__ */ jsx295(
|
|
12241
12372
|
"span",
|
|
12242
12373
|
{
|
|
12243
12374
|
ref: prefixRef,
|
|
@@ -12250,7 +12381,7 @@ var TextInput = forwardRef97(
|
|
|
12250
12381
|
children: prefix3
|
|
12251
12382
|
}
|
|
12252
12383
|
),
|
|
12253
|
-
/* @__PURE__ */
|
|
12384
|
+
/* @__PURE__ */ jsx295(
|
|
12254
12385
|
StatefulInput,
|
|
12255
12386
|
{
|
|
12256
12387
|
ref,
|
|
@@ -12265,7 +12396,7 @@ var TextInput = forwardRef97(
|
|
|
12265
12396
|
className: TextInput_default["input--extended"]
|
|
12266
12397
|
}
|
|
12267
12398
|
),
|
|
12268
|
-
suffix && /* @__PURE__ */
|
|
12399
|
+
suffix && /* @__PURE__ */ jsx295(
|
|
12269
12400
|
"span",
|
|
12270
12401
|
{
|
|
12271
12402
|
ref: suffixRef,
|
|
@@ -12294,7 +12425,7 @@ var TextInput = forwardRef97(
|
|
|
12294
12425
|
),
|
|
12295
12426
|
style,
|
|
12296
12427
|
children: [
|
|
12297
|
-
hasLabel && /* @__PURE__ */
|
|
12428
|
+
hasLabel && /* @__PURE__ */ jsx295(
|
|
12298
12429
|
Label,
|
|
12299
12430
|
{
|
|
12300
12431
|
htmlFor: uniqueId,
|
|
@@ -12304,7 +12435,7 @@ var TextInput = forwardRef97(
|
|
|
12304
12435
|
children: label
|
|
12305
12436
|
}
|
|
12306
12437
|
),
|
|
12307
|
-
extendedInput ? extendedInput : /* @__PURE__ */
|
|
12438
|
+
extendedInput ? extendedInput : /* @__PURE__ */ jsx295(
|
|
12308
12439
|
StatefulInput,
|
|
12309
12440
|
{
|
|
12310
12441
|
ref,
|
|
@@ -12359,7 +12490,7 @@ var ToggleBar_default = {
|
|
|
12359
12490
|
};
|
|
12360
12491
|
|
|
12361
12492
|
// src/components/ToggleBar/ToggleBar.tsx
|
|
12362
|
-
import { jsx as
|
|
12493
|
+
import { jsx as jsx296, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
12363
12494
|
var ToggleBar = (props) => {
|
|
12364
12495
|
const {
|
|
12365
12496
|
children,
|
|
@@ -12382,7 +12513,7 @@ var ToggleBar = (props) => {
|
|
|
12382
12513
|
(e) => onChange && onChange(e, e.target.value)
|
|
12383
12514
|
);
|
|
12384
12515
|
const labelId = label && `${uniqueId}-label`;
|
|
12385
|
-
return /* @__PURE__ */
|
|
12516
|
+
return /* @__PURE__ */ jsx296(
|
|
12386
12517
|
ToggleBarContext.Provider,
|
|
12387
12518
|
{
|
|
12388
12519
|
value: {
|
|
@@ -12404,8 +12535,8 @@ var ToggleBar = (props) => {
|
|
|
12404
12535
|
role: "radiogroup",
|
|
12405
12536
|
"aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
|
|
12406
12537
|
children: [
|
|
12407
|
-
label && /* @__PURE__ */
|
|
12408
|
-
/* @__PURE__ */
|
|
12538
|
+
label && /* @__PURE__ */ jsx296(Label, { id: labelId, children: label }),
|
|
12539
|
+
/* @__PURE__ */ jsx296("div", { className: ToggleBar_default.bar, children })
|
|
12409
12540
|
]
|
|
12410
12541
|
}
|
|
12411
12542
|
)
|
|
@@ -12416,10 +12547,10 @@ ToggleBar.displayName = "ToggleBar";
|
|
|
12416
12547
|
|
|
12417
12548
|
// src/components/ToggleBar/ToggleRadio.tsx
|
|
12418
12549
|
import {
|
|
12419
|
-
forwardRef as
|
|
12550
|
+
forwardRef as forwardRef102,
|
|
12420
12551
|
useId as useId26
|
|
12421
12552
|
} from "react";
|
|
12422
|
-
import { jsx as
|
|
12553
|
+
import { jsx as jsx297, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
12423
12554
|
var typographyTypes4 = {
|
|
12424
12555
|
large: "bodySans04",
|
|
12425
12556
|
medium: "bodySans02",
|
|
@@ -12436,7 +12567,7 @@ var calculateChecked = (value, group, checked) => {
|
|
|
12436
12567
|
}
|
|
12437
12568
|
return !!value;
|
|
12438
12569
|
};
|
|
12439
|
-
var ToggleRadio =
|
|
12570
|
+
var ToggleRadio = forwardRef102(
|
|
12440
12571
|
(props, ref) => {
|
|
12441
12572
|
const {
|
|
12442
12573
|
value,
|
|
@@ -12461,7 +12592,7 @@ var ToggleRadio = forwardRef98(
|
|
|
12461
12592
|
};
|
|
12462
12593
|
const contentTypeCn = label ? "with-text" : "just-icon";
|
|
12463
12594
|
return /* @__PURE__ */ jsxs77("label", { htmlFor: uniqueId, className: ToggleBar_default.label, children: [
|
|
12464
|
-
/* @__PURE__ */
|
|
12595
|
+
/* @__PURE__ */ jsx297(
|
|
12465
12596
|
"input",
|
|
12466
12597
|
{
|
|
12467
12598
|
...getBaseHTMLProps(
|
|
@@ -12495,8 +12626,8 @@ var ToggleRadio = forwardRef98(
|
|
|
12495
12626
|
focus_default["focus-styled-sibling"]
|
|
12496
12627
|
),
|
|
12497
12628
|
children: [
|
|
12498
|
-
icon && /* @__PURE__ */
|
|
12499
|
-
label && /* @__PURE__ */
|
|
12629
|
+
icon && /* @__PURE__ */ jsx297(Icon, { icon, iconSize: "inherit" }),
|
|
12630
|
+
label && /* @__PURE__ */ jsx297("span", { children: label })
|
|
12500
12631
|
]
|
|
12501
12632
|
}
|
|
12502
12633
|
)
|
|
@@ -12506,7 +12637,7 @@ var ToggleRadio = forwardRef98(
|
|
|
12506
12637
|
ToggleRadio.displayName = "ToggleRadio";
|
|
12507
12638
|
|
|
12508
12639
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
12509
|
-
import { forwardRef as
|
|
12640
|
+
import { forwardRef as forwardRef103, useId as useId27 } from "react";
|
|
12510
12641
|
|
|
12511
12642
|
// src/components/ToggleButton/ToggleButton.module.css
|
|
12512
12643
|
var ToggleButton_default = {
|
|
@@ -12519,13 +12650,13 @@ var ToggleButton_default = {
|
|
|
12519
12650
|
};
|
|
12520
12651
|
|
|
12521
12652
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
12522
|
-
import { jsx as
|
|
12523
|
-
var ToggleButton =
|
|
12653
|
+
import { jsx as jsx298, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
12654
|
+
var ToggleButton = forwardRef103(
|
|
12524
12655
|
({ id, label, icon, className, htmlProps, ...rest }, ref) => {
|
|
12525
12656
|
const generatedId = useId27();
|
|
12526
12657
|
const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
|
|
12527
12658
|
return /* @__PURE__ */ jsxs78("label", { htmlFor: uniqueId, className: ToggleButton_default.container, children: [
|
|
12528
|
-
/* @__PURE__ */
|
|
12659
|
+
/* @__PURE__ */ jsx298(
|
|
12529
12660
|
"input",
|
|
12530
12661
|
{
|
|
12531
12662
|
...getBaseHTMLProps(
|
|
@@ -12551,7 +12682,7 @@ var ToggleButton = forwardRef99(
|
|
|
12551
12682
|
focus_default["focus-styled-sibling"]
|
|
12552
12683
|
),
|
|
12553
12684
|
children: [
|
|
12554
|
-
icon && /* @__PURE__ */
|
|
12685
|
+
icon && /* @__PURE__ */ jsx298(Icon, { icon, iconSize: "inherit" }),
|
|
12555
12686
|
" ",
|
|
12556
12687
|
label
|
|
12557
12688
|
]
|
|
@@ -12564,7 +12695,7 @@ ToggleButton.displayName = "ToggleButton";
|
|
|
12564
12695
|
|
|
12565
12696
|
// src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
12566
12697
|
import { useId as useId28 } from "react";
|
|
12567
|
-
import { jsx as
|
|
12698
|
+
import { jsx as jsx299, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
12568
12699
|
var ToggleButtonGroup = (props) => {
|
|
12569
12700
|
const {
|
|
12570
12701
|
children,
|
|
@@ -12590,7 +12721,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
12590
12721
|
role: "group",
|
|
12591
12722
|
"aria-labelledby": label ? uniqueLabelId : void 0,
|
|
12592
12723
|
children: [
|
|
12593
|
-
!!label && /* @__PURE__ */
|
|
12724
|
+
!!label && /* @__PURE__ */ jsx299(
|
|
12594
12725
|
Typography,
|
|
12595
12726
|
{
|
|
12596
12727
|
as: "span",
|
|
@@ -12599,7 +12730,7 @@ var ToggleButtonGroup = (props) => {
|
|
|
12599
12730
|
children: label
|
|
12600
12731
|
}
|
|
12601
12732
|
),
|
|
12602
|
-
/* @__PURE__ */
|
|
12733
|
+
/* @__PURE__ */ jsx299("div", { className: cn(ToggleButton_default.group, ToggleButton_default[`group--${direction}`]), children })
|
|
12603
12734
|
]
|
|
12604
12735
|
}
|
|
12605
12736
|
);
|
|
@@ -12675,6 +12806,10 @@ export {
|
|
|
12675
12806
|
DescriptionListDesc,
|
|
12676
12807
|
DescriptionListGroup,
|
|
12677
12808
|
DescriptionListTerm,
|
|
12809
|
+
DetailList,
|
|
12810
|
+
DetailListDesc,
|
|
12811
|
+
DetailListRow,
|
|
12812
|
+
DetailListTerm,
|
|
12678
12813
|
Divider,
|
|
12679
12814
|
DoubleChevronLeftIcon,
|
|
12680
12815
|
DoubleChevronRightIcon,
|
|
@@ -12901,6 +13036,7 @@ export {
|
|
|
12901
13036
|
focusVisibleTransitionValue,
|
|
12902
13037
|
getBaseHTMLProps,
|
|
12903
13038
|
getDefaultText,
|
|
13039
|
+
getDensityCn,
|
|
12904
13040
|
getElementType,
|
|
12905
13041
|
getLiteralScreenSize,
|
|
12906
13042
|
getTypographyCn,
|