@norges-domstoler/dds-components 21.1.0 → 21.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -2664,6 +2664,7 @@ var getLiteralScreenSize = (screenSize) => {
2664
2664
  // src/components/helpers/StylelessList/StylelessList.tsx
2665
2665
  import { jsx as jsx176 } from "react/jsx-runtime";
2666
2666
  var StylelessList = ({ className, ...rest }) => /* @__PURE__ */ jsx176("ul", { ...rest, className: cn(className, utilStyles_default["remove-list-styling"]) });
2667
+ var StylelessOList = ({ className, ...rest }) => /* @__PURE__ */ jsx176("ol", { ...rest, className: cn(className, utilStyles_default["remove-list-styling"]) });
2667
2668
 
2668
2669
  // src/components/helpers/styling/utils.ts
2669
2670
  var outlineOffset = "var(--dds-spacing-x0-125)";
@@ -4586,7 +4587,7 @@ var SelectionControl_default = {
4586
4587
  };
4587
4588
 
4588
4589
  // src/components/SelectionControl/SelectionControl.styles.tsx
4589
- import { jsx as jsx211 } from "react/jsx-runtime";
4590
+ import { jsx as jsx211, jsxs as jsxs34 } from "react/jsx-runtime";
4590
4591
  var SelectionControl = ({
4591
4592
  controlType,
4592
4593
  className,
@@ -4612,8 +4613,14 @@ var Label2 = ({
4612
4613
  ...rest
4613
4614
  }) => {
4614
4615
  return /* @__PURE__ */ jsx211(
4615
- "label",
4616
+ Box,
4616
4617
  {
4618
+ as: "label",
4619
+ position: "relative",
4620
+ display: "flex",
4621
+ alignItems: "center",
4622
+ width: "fit-content",
4623
+ paddingInline: "calc(18px + var(--dds-spacing-x0-5)) 0",
4617
4624
  className: cn(
4618
4625
  className,
4619
4626
  SelectionControl_default.label,
@@ -4629,6 +4636,35 @@ var Label2 = ({
4629
4636
  }
4630
4637
  );
4631
4638
  };
4639
+ var GroupLabel = ({
4640
+ id,
4641
+ showRequiredMarker,
4642
+ readOnly,
4643
+ children
4644
+ }) => {
4645
+ return /* @__PURE__ */ jsxs34(
4646
+ Typography,
4647
+ {
4648
+ as: "span",
4649
+ typographyType: "labelMedium",
4650
+ id,
4651
+ className: readOnly ? Label_default["read-only"] : void 0,
4652
+ children: [
4653
+ readOnly && /* @__PURE__ */ jsx211(
4654
+ Icon,
4655
+ {
4656
+ icon: LockIcon,
4657
+ className: Label_default["read-only__icon"],
4658
+ iconSize: "small"
4659
+ }
4660
+ ),
4661
+ children,
4662
+ " ",
4663
+ showRequiredMarker && /* @__PURE__ */ jsx211(RequiredMarker, {})
4664
+ ]
4665
+ }
4666
+ );
4667
+ };
4632
4668
 
4633
4669
  // src/components/SelectionControl/SelectionControl.utils.tsx
4634
4670
  var selectionControlSizeNumberPx = 18;
@@ -4640,7 +4676,7 @@ var selectionControlTypographyProps = {
4640
4676
  };
4641
4677
 
4642
4678
  // src/components/SelectionControl/Checkbox/Checkbox.tsx
4643
- import { jsx as jsx212, jsxs as jsxs34 } from "react/jsx-runtime";
4679
+ import { jsx as jsx212, jsxs as jsxs35 } from "react/jsx-runtime";
4644
4680
  var Checkbox = ({
4645
4681
  id,
4646
4682
  name,
@@ -4664,15 +4700,9 @@ var Checkbox = ({
4664
4700
  const isReadOnly = readOnly || (checkboxGroup == null ? void 0 : checkboxGroup.readOnly);
4665
4701
  const hasError = error || (checkboxGroup == null ? void 0 : checkboxGroup.error);
4666
4702
  const isDisabled = disabled || (checkboxGroup == null ? void 0 : checkboxGroup.disabled);
4667
- return /* @__PURE__ */ jsxs34(
4668
- Box,
4703
+ return /* @__PURE__ */ jsxs35(
4704
+ Label2,
4669
4705
  {
4670
- position: "relative",
4671
- display: "flex",
4672
- alignItems: "center",
4673
- width: "fit-content",
4674
- paddingInline: "calc(18px + var(--dds-spacing-x0-5)) 0",
4675
- as: Label2,
4676
4706
  hasError,
4677
4707
  disabled: isDisabled,
4678
4708
  readOnly: isReadOnly,
@@ -4728,6 +4758,17 @@ Checkbox.displayName = "Checkbox";
4728
4758
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
4729
4759
  import { useId as useId6 } from "react";
4730
4760
 
4761
+ // src/types/Booleanish.ts
4762
+ function convertBooleanishToBoolean(value) {
4763
+ if (value === "true") {
4764
+ return true;
4765
+ } else if (value === "false") {
4766
+ return false;
4767
+ } else {
4768
+ return value;
4769
+ }
4770
+ }
4771
+
4731
4772
  // src/components/InputMessage/InputMessage.module.css
4732
4773
  var InputMessage_default = {
4733
4774
  container: "InputMessage_container",
@@ -4736,7 +4777,7 @@ var InputMessage_default = {
4736
4777
  };
4737
4778
 
4738
4779
  // src/components/InputMessage/InputMessage.tsx
4739
- import { Fragment as Fragment3, jsx as jsx213, jsxs as jsxs35 } from "react/jsx-runtime";
4780
+ import { Fragment as Fragment3, jsx as jsx213, jsxs as jsxs36 } from "react/jsx-runtime";
4740
4781
  var InputMessage = ({
4741
4782
  message,
4742
4783
  messageType,
@@ -4746,7 +4787,7 @@ var InputMessage = ({
4746
4787
  ...rest
4747
4788
  }) => {
4748
4789
  const isError = messageType === "error";
4749
- return /* @__PURE__ */ jsxs35(
4790
+ return /* @__PURE__ */ jsxs36(
4750
4791
  "div",
4751
4792
  {
4752
4793
  ...getBaseHTMLProps(
@@ -4771,7 +4812,7 @@ var InputMessage = ({
4771
4812
  );
4772
4813
  };
4773
4814
  InputMessage.displayName = "InputMessage";
4774
- var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */ jsxs35(Fragment3, { children: [
4815
+ var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PURE__ */ jsxs36(Fragment3, { children: [
4775
4816
  errorMessage && errorMessageId && /* @__PURE__ */ jsx213(
4776
4817
  InputMessage,
4777
4818
  {
@@ -4784,7 +4825,7 @@ var renderInputMessage = (tip, tipId, errorMessage, errorMessageId) => /* @__PUR
4784
4825
  ] });
4785
4826
 
4786
4827
  // src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
4787
- import { jsx as jsx214, jsxs as jsxs36 } from "react/jsx-runtime";
4828
+ import { jsx as jsx214, jsxs as jsxs37 } from "react/jsx-runtime";
4788
4829
  var CheckboxGroup = (props) => {
4789
4830
  const {
4790
4831
  label,
@@ -4805,7 +4846,7 @@ var CheckboxGroup = (props) => {
4805
4846
  const generatedId = useId6();
4806
4847
  const uniqueGroupId = groupId != null ? groupId : `${generatedId}-checkboxGroup`;
4807
4848
  const hasErrorMessage = !!errorMessage;
4808
- const showRequiredMarker = required || ariaRequired;
4849
+ const showRequiredMarker = required || convertBooleanishToBoolean(ariaRequired);
4809
4850
  const errorMessageId = derivativeIdGenerator(uniqueGroupId, "errorMessage");
4810
4851
  const tipId = derivativeIdGenerator(uniqueGroupId, "tip");
4811
4852
  const contextProps = {
@@ -4816,7 +4857,7 @@ var CheckboxGroup = (props) => {
4816
4857
  disabled,
4817
4858
  readOnly
4818
4859
  };
4819
- return /* @__PURE__ */ jsxs36(
4860
+ return /* @__PURE__ */ jsxs37(
4820
4861
  "div",
4821
4862
  {
4822
4863
  ...getBaseHTMLProps(
@@ -4826,19 +4867,13 @@ var CheckboxGroup = (props) => {
4826
4867
  rest
4827
4868
  ),
4828
4869
  children: [
4829
- label !== void 0 ? /* @__PURE__ */ jsxs36(
4830
- Typography,
4870
+ label !== void 0 ? /* @__PURE__ */ jsx214(
4871
+ GroupLabel,
4831
4872
  {
4832
- as: "span",
4833
- typographyType: "labelMedium",
4834
4873
  id: uniqueGroupId,
4835
- className: readOnly ? Label_default["read-only"] : void 0,
4836
- children: [
4837
- readOnly && /* @__PURE__ */ jsx214(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
4838
- label,
4839
- " ",
4840
- showRequiredMarker && /* @__PURE__ */ jsx214(RequiredMarker, {})
4841
- ]
4874
+ readOnly,
4875
+ showRequiredMarker,
4876
+ children: label
4842
4877
  }
4843
4878
  ) : null,
4844
4879
  renderInputMessage(tip, tipId),
@@ -4865,7 +4900,7 @@ var CookieBanner_default = {
4865
4900
  };
4866
4901
 
4867
4902
  // src/components/CookieBanner/CookieBannerCheckbox.tsx
4868
- import { jsx as jsx215, jsxs as jsxs37 } from "react/jsx-runtime";
4903
+ import { jsx as jsx215, jsxs as jsxs38 } from "react/jsx-runtime";
4869
4904
  function CookieBannerCheckbox({
4870
4905
  headerText,
4871
4906
  description,
@@ -4883,9 +4918,9 @@ function CookieBannerCheckbox({
4883
4918
  htmlProps,
4884
4919
  rest
4885
4920
  ),
4886
- children: /* @__PURE__ */ jsxs37(VStack, { gap: "x0.5", children: [
4921
+ children: /* @__PURE__ */ jsxs38(VStack, { gap: "x0.5", children: [
4887
4922
  /* @__PURE__ */ jsx215(Typography, { as: "span", typographyType: "headingSmall", children: headerText }),
4888
- /* @__PURE__ */ jsxs37(Typography, { as: "span", children: [
4923
+ /* @__PURE__ */ jsxs38(Typography, { as: "span", children: [
4889
4924
  " ",
4890
4925
  description,
4891
4926
  " "
@@ -4897,7 +4932,7 @@ function CookieBannerCheckbox({
4897
4932
  CookieBannerCheckbox.displayName = "CookieBannerCheckbox";
4898
4933
 
4899
4934
  // src/components/CookieBanner/CookieBanner.tsx
4900
- import { jsx as jsx216, jsxs as jsxs38 } from "react/jsx-runtime";
4935
+ import { jsx as jsx216, jsxs as jsxs39 } from "react/jsx-runtime";
4901
4936
  function CookieBanner({
4902
4937
  headerText,
4903
4938
  description,
@@ -4928,7 +4963,7 @@ function CookieBanner({
4928
4963
  maxHeight,
4929
4964
  border: "border-default",
4930
4965
  background: "brand-tertiary-medium",
4931
- children: /* @__PURE__ */ jsxs38(VStack, { maxWidth: "70ch", gap: "x1", children: [
4966
+ children: /* @__PURE__ */ jsxs39(VStack, { maxWidth: "70ch", gap: "x1", children: [
4932
4967
  headerText && /* @__PURE__ */ jsx216(Heading, { level: 2, typographyType: "headingMedium", children: headerText }),
4933
4968
  children,
4934
4969
  description && /* @__PURE__ */ jsx216("div", { children: description }),
@@ -5170,7 +5205,7 @@ function useTheme() {
5170
5205
  }
5171
5206
 
5172
5207
  // src/components/date-inputs/DatePicker/CalendarPopover.tsx
5173
- import { Fragment as Fragment4, jsx as jsx220, jsxs as jsxs39 } from "react/jsx-runtime";
5208
+ import { Fragment as Fragment4, jsx as jsx220, jsxs as jsxs40 } from "react/jsx-runtime";
5174
5209
  var CalendarPopoverContext = createContext6({
5175
5210
  anchorRef: null,
5176
5211
  closeButtonRef: null,
@@ -5244,9 +5279,9 @@ var CalendarPopoverContent = ({
5244
5279
  }
5245
5280
  };
5246
5281
  if (!isOpen) return null;
5247
- return /* @__PURE__ */ jsxs39(Fragment4, { children: [
5282
+ return /* @__PURE__ */ jsxs40(Fragment4, { children: [
5248
5283
  portalTarget && hasBreakpoint && createPortal(
5249
- /* @__PURE__ */ jsx220(ShowHide, { showBelow: smallScreenBreakpoint, children: /* @__PURE__ */ jsx220(Backdrop, { zIndex: "modal", isMounted, children: /* @__PURE__ */ jsxs39(
5284
+ /* @__PURE__ */ jsx220(ShowHide, { showBelow: smallScreenBreakpoint, children: /* @__PURE__ */ jsx220(Backdrop, { zIndex: "modal", isMounted, children: /* @__PURE__ */ jsxs40(
5250
5285
  Paper,
5251
5286
  {
5252
5287
  ref: modalRef,
@@ -5289,7 +5324,7 @@ var CalendarPopoverContent = ({
5289
5324
  };
5290
5325
 
5291
5326
  // src/components/date-inputs/DatePicker/Calendar/CalendarGrid.tsx
5292
- import { jsx as jsx221, jsxs as jsxs40 } from "react/jsx-runtime";
5327
+ import { jsx as jsx221, jsxs as jsxs41 } from "react/jsx-runtime";
5293
5328
  function CalendarGrid({ state, ...props }) {
5294
5329
  const { locale: locale2 } = useLocale();
5295
5330
  const {
@@ -5303,7 +5338,7 @@ function CalendarGrid({ state, ...props }) {
5303
5338
  typographyStyles_default["body-xsmall"],
5304
5339
  typographyStyles_default["text-color--subtle"]
5305
5340
  ];
5306
- return /* @__PURE__ */ jsxs40(
5341
+ return /* @__PURE__ */ jsxs41(
5307
5342
  "table",
5308
5343
  {
5309
5344
  ...gridProps,
@@ -5315,8 +5350,8 @@ function CalendarGrid({ state, ...props }) {
5315
5350
  },
5316
5351
  cellPadding: "0",
5317
5352
  children: [
5318
- /* @__PURE__ */ jsx221("thead", { ...headerProps, children: /* @__PURE__ */ jsxs40("tr", { children: [
5319
- showWeekNumbers && /* @__PURE__ */ jsxs40("th", { className: cn(...typographyCn), children: [
5353
+ /* @__PURE__ */ jsx221("thead", { ...headerProps, children: /* @__PURE__ */ jsxs41("tr", { children: [
5354
+ showWeekNumbers && /* @__PURE__ */ jsxs41("th", { className: cn(...typographyCn), children: [
5320
5355
  "# ",
5321
5356
  /* @__PURE__ */ jsx221(VisuallyHidden, { as: "span", children: "Ukenummer" })
5322
5357
  ] }),
@@ -5326,7 +5361,7 @@ function CalendarGrid({ state, ...props }) {
5326
5361
  const datesInWeek = state.getDatesInWeek(weekIndex);
5327
5362
  const firstExistingDay = datesInWeek.find(Boolean);
5328
5363
  const weekNumber = firstExistingDay ? getWeekNumber(firstExistingDay) : "";
5329
- return /* @__PURE__ */ jsxs40("tr", { children: [
5364
+ return /* @__PURE__ */ jsxs41("tr", { children: [
5330
5365
  showWeekNumbers && /* @__PURE__ */ jsx221(
5331
5366
  "td",
5332
5367
  {
@@ -5357,7 +5392,7 @@ function CalendarGrid({ state, ...props }) {
5357
5392
  CalendarGrid.displayName = "CalendarGrid";
5358
5393
 
5359
5394
  // src/components/date-inputs/DatePicker/Calendar/Calendar.tsx
5360
- import { jsx as jsx222, jsxs as jsxs41 } from "react/jsx-runtime";
5395
+ import { jsx as jsx222, jsxs as jsxs42 } from "react/jsx-runtime";
5361
5396
  function createCalendar(identifier) {
5362
5397
  switch (identifier) {
5363
5398
  case "gregory":
@@ -5388,8 +5423,8 @@ function Calendar(props) {
5388
5423
  }
5389
5424
  }
5390
5425
  };
5391
- return /* @__PURE__ */ jsxs41("div", { ...calendarProps, className: DateInput_default.calendar, children: [
5392
- /* @__PURE__ */ jsxs41("div", { className: DateInput_default.calendar__header, children: [
5426
+ return /* @__PURE__ */ jsxs42("div", { ...calendarProps, className: DateInput_default.calendar, children: [
5427
+ /* @__PURE__ */ jsxs42("div", { className: DateInput_default.calendar__header, children: [
5393
5428
  /* @__PURE__ */ jsx222(
5394
5429
  Button,
5395
5430
  {
@@ -5482,7 +5517,7 @@ function CalendarButton({
5482
5517
  // src/components/date-inputs/DatePicker/DateField/DateSegment.tsx
5483
5518
  import { useDateSegment } from "@react-aria/datepicker";
5484
5519
  import { useRef as useRef13 } from "react";
5485
- import { jsx as jsx224, jsxs as jsxs42 } from "react/jsx-runtime";
5520
+ import { jsx as jsx224, jsxs as jsxs43 } from "react/jsx-runtime";
5486
5521
  var typographyTypes = {
5487
5522
  medium: "bodyMedium",
5488
5523
  small: "bodySmall",
@@ -5496,7 +5531,7 @@ function DateSegment({
5496
5531
  var _a;
5497
5532
  const ref = useRef13(null);
5498
5533
  const { segmentProps } = useDateSegment(segment, state, ref);
5499
- return /* @__PURE__ */ jsxs42(
5534
+ return /* @__PURE__ */ jsxs43(
5500
5535
  "div",
5501
5536
  {
5502
5537
  ...segmentProps,
@@ -5532,7 +5567,7 @@ DateSegment.displayName = "DateSegment";
5532
5567
 
5533
5568
  // src/components/date-inputs/common/DateInput.tsx
5534
5569
  import { useContext as useContext9 } from "react";
5535
- import { jsx as jsx225, jsxs as jsxs43 } from "react/jsx-runtime";
5570
+ import { jsx as jsx225, jsxs as jsxs44 } from "react/jsx-runtime";
5536
5571
  function DateInput({
5537
5572
  errorMessage,
5538
5573
  tip,
@@ -5559,7 +5594,7 @@ function DateInput({
5559
5594
  const hasLabel = props.label != null;
5560
5595
  const hasMessage = hasErrorMessage || hasTip;
5561
5596
  const { isOpen } = useContext9(CalendarPopoverContext);
5562
- return /* @__PURE__ */ jsxs43(
5597
+ return /* @__PURE__ */ jsxs44(
5563
5598
  "div",
5564
5599
  {
5565
5600
  ...groupProps,
@@ -5576,7 +5611,7 @@ function DateInput({
5576
5611
  children: props.label
5577
5612
  }
5578
5613
  ),
5579
- /* @__PURE__ */ jsxs43(
5614
+ /* @__PURE__ */ jsxs44(
5580
5615
  Box,
5581
5616
  {
5582
5617
  ...fieldProps,
@@ -5696,7 +5731,7 @@ function createDOMRef(ref) {
5696
5731
  }
5697
5732
 
5698
5733
  // src/components/date-inputs/DatePicker/DatePicker.tsx
5699
- import { jsx as jsx227, jsxs as jsxs44 } from "react/jsx-runtime";
5734
+ import { jsx as jsx227, jsxs as jsxs45 } from "react/jsx-runtime";
5700
5735
  var refIsFocusable = (ref) => {
5701
5736
  return typeof ref === "object" && ref !== null && "focus" in ref;
5702
5737
  };
@@ -5720,7 +5755,7 @@ function DatePicker({
5720
5755
  state,
5721
5756
  internalRef
5722
5757
  );
5723
- return /* @__PURE__ */ jsx227(I18nProvider, { locale, children: /* @__PURE__ */ jsxs44(
5758
+ return /* @__PURE__ */ jsx227(I18nProvider, { locale, children: /* @__PURE__ */ jsxs45(
5724
5759
  CalendarPopover,
5725
5760
  {
5726
5761
  isOpen: state.isOpen,
@@ -5897,7 +5932,7 @@ var DescriptionListTerm = (props) => {
5897
5932
  DescriptionListTerm.displayName = "DescriptionListTerm";
5898
5933
 
5899
5934
  // src/components/DescriptionList/DescriptionListDesc.tsx
5900
- import { jsx as jsx231, jsxs as jsxs45 } from "react/jsx-runtime";
5935
+ import { jsx as jsx231, jsxs as jsxs46 } from "react/jsx-runtime";
5901
5936
  var DescriptionListDesc = ({
5902
5937
  children,
5903
5938
  icon,
@@ -5905,7 +5940,7 @@ var DescriptionListDesc = ({
5905
5940
  className,
5906
5941
  htmlProps,
5907
5942
  ...rest
5908
- }) => /* @__PURE__ */ jsxs45("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
5943
+ }) => /* @__PURE__ */ jsxs46("dd", { ...getBaseHTMLProps(id, cn(className, DescriptionList_default.desc), htmlProps, rest), children: [
5909
5944
  icon && /* @__PURE__ */ jsx231(Icon, { icon }),
5910
5945
  " ",
5911
5946
  children
@@ -5990,11 +6025,11 @@ var DetailListDesc = ({ className, ...rest }) => /* @__PURE__ */ jsx234("dd", {
5990
6025
  DetailListDesc.displayName = "DetailListDesc";
5991
6026
 
5992
6027
  // src/components/DetailList/DetailListRow.tsx
5993
- import { Fragment as Fragment5, jsx as jsx235, jsxs as jsxs46 } from "react/jsx-runtime";
6028
+ import { Fragment as Fragment5, jsx as jsx235, jsxs as jsxs47 } from "react/jsx-runtime";
5994
6029
  var DetailListRow = ({ className, ...rest }) => {
5995
6030
  const { smallScreenBreakpoint: bp } = useDetailListContext();
5996
6031
  const hasBp = !!bp;
5997
- return /* @__PURE__ */ jsxs46(Fragment5, { children: [
6032
+ return /* @__PURE__ */ jsxs47(Fragment5, { children: [
5998
6033
  /* @__PURE__ */ jsx235(
5999
6034
  Box,
6000
6035
  {
@@ -6051,7 +6086,7 @@ var DrawerContext = createContext8({});
6051
6086
  var useDrawerContext = () => useContext11(DrawerContext);
6052
6087
 
6053
6088
  // src/components/Drawer/Drawer.tsx
6054
- import { jsx as jsx237, jsxs as jsxs47 } from "react/jsx-runtime";
6089
+ import { jsx as jsx237, jsxs as jsxs48 } from "react/jsx-runtime";
6055
6090
  var Drawer = ({
6056
6091
  children,
6057
6092
  header,
@@ -6112,7 +6147,7 @@ var Drawer = ({
6112
6147
  return "800px";
6113
6148
  }
6114
6149
  };
6115
- const drawer = /* @__PURE__ */ jsxs47(
6150
+ const drawer = /* @__PURE__ */ jsxs48(
6116
6151
  Paper,
6117
6152
  {
6118
6153
  ref: combinedRef,
@@ -6144,7 +6179,7 @@ var Drawer = ({
6144
6179
  elevation: 4,
6145
6180
  "aria-labelledby": headerId,
6146
6181
  children: [
6147
- /* @__PURE__ */ jsxs47(
6182
+ /* @__PURE__ */ jsxs48(
6148
6183
  HStack,
6149
6184
  {
6150
6185
  position: "sticky",
@@ -6270,7 +6305,7 @@ var EmptyContent_default = {
6270
6305
  };
6271
6306
 
6272
6307
  // src/components/EmptyContent/EmptyContent.tsx
6273
- import { jsx as jsx239, jsxs as jsxs48 } from "react/jsx-runtime";
6308
+ import { jsx as jsx239, jsxs as jsxs49 } from "react/jsx-runtime";
6274
6309
  function EmptyContent({
6275
6310
  headerText,
6276
6311
  message,
@@ -6290,7 +6325,7 @@ function EmptyContent({
6290
6325
  background: "surface-subtle",
6291
6326
  borderRadius: "0",
6292
6327
  ...rest,
6293
- children: /* @__PURE__ */ jsxs48(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
6328
+ children: /* @__PURE__ */ jsxs49(VStack, { maxWidth: "70ch", gap: "x1", textAlign: "center", children: [
6294
6329
  headerText && /* @__PURE__ */ jsx239(Heading, { level: headerHeadingLevel, typographyType: "headingMedium", children: headerText }),
6295
6330
  /* @__PURE__ */ jsx239(Paragraph, { className: EmptyContent_default.message, children: message })
6296
6331
  ] })
@@ -6349,7 +6384,7 @@ function useControllableState(props) {
6349
6384
  }
6350
6385
 
6351
6386
  // src/components/FavStar/FavStar.tsx
6352
- import { jsx as jsx240, jsxs as jsxs49 } from "react/jsx-runtime";
6387
+ import { jsx as jsx240, jsxs as jsxs50 } from "react/jsx-runtime";
6353
6388
  var FavStar = ({
6354
6389
  id,
6355
6390
  className,
@@ -6373,7 +6408,7 @@ var FavStar = ({
6373
6408
  defaultValue: defaultChecked != null ? defaultChecked : false,
6374
6409
  onChange
6375
6410
  });
6376
- return /* @__PURE__ */ jsxs49(
6411
+ return /* @__PURE__ */ jsxs50(
6377
6412
  "label",
6378
6413
  {
6379
6414
  className: cn(
@@ -6440,7 +6475,7 @@ var TextArea_default = {
6440
6475
  };
6441
6476
 
6442
6477
  // src/components/TextArea/TextArea.tsx
6443
- import { jsx as jsx241, jsxs as jsxs50 } from "react/jsx-runtime";
6478
+ import { jsx as jsx241, jsxs as jsxs51 } from "react/jsx-runtime";
6444
6479
  var TextArea = ({
6445
6480
  id,
6446
6481
  value,
@@ -6488,7 +6523,7 @@ var TextArea = ({
6488
6523
  );
6489
6524
  const showRequiredStyling = required || !!ariaRequired;
6490
6525
  const inputWidth = getInputWidth(width);
6491
- return /* @__PURE__ */ jsxs50("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
6526
+ return /* @__PURE__ */ jsxs51("div", { className: cn(className, Input_default.container), style: { ...style }, children: [
6492
6527
  hasLabel && /* @__PURE__ */ jsx241(
6493
6528
  Label,
6494
6529
  {
@@ -6532,7 +6567,7 @@ var TextArea = ({
6532
6567
  ...rest
6533
6568
  }
6534
6569
  ),
6535
- /* @__PURE__ */ jsxs50(
6570
+ /* @__PURE__ */ jsxs51(
6536
6571
  Box,
6537
6572
  {
6538
6573
  display: "flex",
@@ -6573,7 +6608,7 @@ var ThumbIcon = ({ rating, layout, type }) => type === "comment" ? /* @__PURE__
6573
6608
  );
6574
6609
 
6575
6610
  // src/components/Feedback/CommentComponent.tsx
6576
- import { jsx as jsx243, jsxs as jsxs51 } from "react/jsx-runtime";
6611
+ import { jsx as jsx243, jsxs as jsxs52 } from "react/jsx-runtime";
6577
6612
  var CommentComponent = ({
6578
6613
  layout,
6579
6614
  rating,
@@ -6586,10 +6621,10 @@ var CommentComponent = ({
6586
6621
  handleSubmit,
6587
6622
  handleFeedbackTextChange
6588
6623
  }) => {
6589
- return /* @__PURE__ */ jsxs51(VStack, { gap: "x1", children: [
6590
- /* @__PURE__ */ jsxs51("span", { className: Feedback_default["rating-submitted-title"], children: [
6624
+ return /* @__PURE__ */ jsxs52(VStack, { gap: "x1", children: [
6625
+ /* @__PURE__ */ jsxs52("span", { className: Feedback_default["rating-submitted-title"], children: [
6591
6626
  ThumbIcon({ rating, layout, type: "comment" }),
6592
- /* @__PURE__ */ jsxs51(Paragraph, { children: [
6627
+ /* @__PURE__ */ jsxs52(Paragraph, { children: [
6593
6628
  ratingSubmittedTitle,
6594
6629
  " "
6595
6630
  ] })
@@ -6635,7 +6670,7 @@ var Tooltip_default = {
6635
6670
  };
6636
6671
 
6637
6672
  // src/components/Tooltip/Tooltip.tsx
6638
- import { jsx as jsx244, jsxs as jsxs52 } from "react/jsx-runtime";
6673
+ import { jsx as jsx244, jsxs as jsxs53 } from "react/jsx-runtime";
6639
6674
  var Tooltip = ({
6640
6675
  text,
6641
6676
  placement = "bottom",
@@ -6717,7 +6752,7 @@ var Tooltip = ({
6717
6752
  })
6718
6753
  );
6719
6754
  const openCn = open && inView ? "open" : "closed";
6720
- return /* @__PURE__ */ jsxs52(
6755
+ return /* @__PURE__ */ jsxs53(
6721
6756
  "div",
6722
6757
  {
6723
6758
  ...getBaseHTMLProps(
@@ -6731,7 +6766,7 @@ var Tooltip = ({
6731
6766
  onMouseOver: combineHandlers(openTooltip, onMouseOver),
6732
6767
  children: [
6733
6768
  anchorElement,
6734
- /* @__PURE__ */ jsxs52(
6769
+ /* @__PURE__ */ jsxs53(
6735
6770
  Paper,
6736
6771
  {
6737
6772
  id: uniqueTooltipId,
@@ -6749,7 +6784,7 @@ var Tooltip = ({
6749
6784
  ),
6750
6785
  children: [
6751
6786
  text,
6752
- /* @__PURE__ */ jsx244("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs52("svg", { width: "36", height: "9", children: [
6787
+ /* @__PURE__ */ jsx244("div", { ref: setArrowElement, style: positionStyles.arrow, children: /* @__PURE__ */ jsxs53("svg", { width: "36", height: "9", children: [
6753
6788
  /* @__PURE__ */ jsx244(
6754
6789
  "path",
6755
6790
  {
@@ -6777,7 +6812,7 @@ var Tooltip = ({
6777
6812
  Tooltip.displayName = "Tooltip";
6778
6813
 
6779
6814
  // src/components/Feedback/RatingComponent.tsx
6780
- import { jsx as jsx245, jsxs as jsxs53 } from "react/jsx-runtime";
6815
+ import { jsx as jsx245, jsxs as jsxs54 } from "react/jsx-runtime";
6781
6816
  var RatingComponent = ({
6782
6817
  layout,
6783
6818
  ratingLabel,
@@ -6800,7 +6835,7 @@ var RatingComponent = ({
6800
6835
  children: ThumbIcon({ rating, layout: layout2, type: "rating" })
6801
6836
  }
6802
6837
  );
6803
- return /* @__PURE__ */ jsxs53(
6838
+ return /* @__PURE__ */ jsxs54(
6804
6839
  "div",
6805
6840
  {
6806
6841
  className: cn(
@@ -6809,7 +6844,7 @@ var RatingComponent = ({
6809
6844
  ),
6810
6845
  children: [
6811
6846
  /* @__PURE__ */ jsx245("h2", { className: typographyStyles_default["label-medium"], children: ratingLabel }),
6812
- loading ? /* @__PURE__ */ jsx245(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ jsxs53(HStack, { gap: "x1", children: [
6847
+ loading ? /* @__PURE__ */ jsx245(Spinner, { tooltip: "Laster opp tilbakemelding ..." }) : /* @__PURE__ */ jsxs54(HStack, { gap: "x1", children: [
6813
6848
  /* @__PURE__ */ jsx245(Tooltip, { text: thumbUpTooltip, children: button("positive", layout, thumbUpTooltip) }),
6814
6849
  /* @__PURE__ */ jsx245(Tooltip, { text: thumbDownTooltip, children: /* @__PURE__ */ jsx245("div", { children: button("negative", layout, thumbDownTooltip) }) })
6815
6850
  ] })
@@ -6971,15 +7006,15 @@ var FileUploader_default = {
6971
7006
  };
6972
7007
 
6973
7008
  // src/components/FileUploader/File.tsx
6974
- import { jsx as jsx250, jsxs as jsxs54 } from "react/jsx-runtime";
7009
+ import { jsx as jsx250, jsxs as jsxs55 } from "react/jsx-runtime";
6975
7010
  var File = (props) => {
6976
7011
  const { parentId, index, file: stateFile, removeFile, isValid } = props;
6977
7012
  const errorsList = stateFile.errors.map((e, errorIndex) => ({
6978
7013
  id: derivativeIdGenerator(parentId, `file-${index}-error-${errorIndex}`),
6979
7014
  message: e
6980
7015
  }));
6981
- return /* @__PURE__ */ jsxs54("li", { children: [
6982
- /* @__PURE__ */ jsxs54(
7016
+ return /* @__PURE__ */ jsxs55("li", { children: [
7017
+ /* @__PURE__ */ jsxs55(
6983
7018
  Paper,
6984
7019
  {
6985
7020
  display: "flex",
@@ -7319,7 +7354,7 @@ var useFileUploader = (props) => {
7319
7354
  };
7320
7355
 
7321
7356
  // src/components/FileUploader/FileUploader.tsx
7322
- import { jsx as jsx251, jsxs as jsxs55 } from "react/jsx-runtime";
7357
+ import { jsx as jsx251, jsxs as jsxs56 } from "react/jsx-runtime";
7323
7358
  var FileUploader = (props) => {
7324
7359
  const {
7325
7360
  id,
@@ -7402,7 +7437,7 @@ var FileUploader = (props) => {
7402
7437
  children: btnLabel
7403
7438
  }
7404
7439
  );
7405
- return /* @__PURE__ */ jsxs55(
7440
+ return /* @__PURE__ */ jsxs56(
7406
7441
  Box,
7407
7442
  {
7408
7443
  id: uniqueId,
@@ -7420,7 +7455,7 @@ var FileUploader = (props) => {
7420
7455
  }
7421
7456
  ),
7422
7457
  hasTip && /* @__PURE__ */ jsx251(InputMessage, { id: tipId, message: tip, messageType: "tip" }),
7423
- withDragAndDrop ? /* @__PURE__ */ jsxs55(
7458
+ withDragAndDrop ? /* @__PURE__ */ jsxs56(
7424
7459
  VStack,
7425
7460
  {
7426
7461
  gap: "x1",
@@ -7445,7 +7480,7 @@ var FileUploader = (props) => {
7445
7480
  button
7446
7481
  ]
7447
7482
  }
7448
- ) : /* @__PURE__ */ jsxs55("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
7483
+ ) : /* @__PURE__ */ jsxs56("div", { className: FileUploader_default["input-container--no-drag-zone"], children: [
7449
7484
  /* @__PURE__ */ jsx251("input", { ...getInputProps(), id: inputId }),
7450
7485
  button
7451
7486
  ] }),
@@ -7544,7 +7579,7 @@ var GlobalMessage_default = {
7544
7579
  };
7545
7580
 
7546
7581
  // src/components/GlobalMessage/GlobalMessage.tsx
7547
- import { jsx as jsx260, jsxs as jsxs56 } from "react/jsx-runtime";
7582
+ import { jsx as jsx260, jsxs as jsxs57 } from "react/jsx-runtime";
7548
7583
  var icons = {
7549
7584
  info: InfoIcon,
7550
7585
  danger: ErrorIcon,
@@ -7562,7 +7597,7 @@ var GlobalMessage = ({
7562
7597
  ...rest
7563
7598
  }) => {
7564
7599
  const [isClosed, setClosed] = useState15(false);
7565
- return !isClosed ? /* @__PURE__ */ jsxs56(
7600
+ return !isClosed ? /* @__PURE__ */ jsxs57(
7566
7601
  "div",
7567
7602
  {
7568
7603
  ...getBaseHTMLProps(
@@ -7577,7 +7612,7 @@ var GlobalMessage = ({
7577
7612
  rest
7578
7613
  ),
7579
7614
  children: [
7580
- /* @__PURE__ */ jsxs56(
7615
+ /* @__PURE__ */ jsxs57(
7581
7616
  "div",
7582
7617
  {
7583
7618
  className: cn(GlobalMessage_default.content, closable && GlobalMessage_default["content--closable"]),
@@ -7710,15 +7745,15 @@ var InlineEdit_default = {
7710
7745
  };
7711
7746
 
7712
7747
  // src/components/InlineEdit/InlineEdit.utils.tsx
7713
- import { jsxs as jsxs57 } from "react/jsx-runtime";
7714
- var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs57(VisuallyHidden, { id, as: "span", children: [
7748
+ import { jsxs as jsxs58 } from "react/jsx-runtime";
7749
+ var inlineEditVisuallyHidden = (id, emptiable) => /* @__PURE__ */ jsxs58(VisuallyHidden, { id, as: "span", children: [
7715
7750
  "Escape, Enter eller Tab for \xE5 lagre.",
7716
7751
  " ",
7717
7752
  !emptiable && "Inputfeltet er ikke t\xF8mmbar."
7718
7753
  ] });
7719
7754
 
7720
7755
  // src/components/InlineEdit/InlineTextArea.tsx
7721
- import { jsx as jsx263, jsxs as jsxs58 } from "react/jsx-runtime";
7756
+ import { jsx as jsx263, jsxs as jsxs59 } from "react/jsx-runtime";
7722
7757
  var InlineTextArea = ({
7723
7758
  id,
7724
7759
  error,
@@ -7739,8 +7774,8 @@ var InlineTextArea = ({
7739
7774
  const descId = derivativeIdGenerator(uniqueId, "desc");
7740
7775
  const inputRef = useRef24(null);
7741
7776
  const combinedRef = useCombinedRef(ref, inputRef);
7742
- return /* @__PURE__ */ jsxs58(Box, { position: "relative", width, children: [
7743
- /* @__PURE__ */ jsxs58("div", { className: Input_default["input-group"], children: [
7777
+ return /* @__PURE__ */ jsxs59(Box, { position: "relative", width, children: [
7778
+ /* @__PURE__ */ jsxs59("div", { className: Input_default["input-group"], children: [
7744
7779
  !isEditing && !hideIcon && /* @__PURE__ */ jsx263(
7745
7780
  "span",
7746
7781
  {
@@ -7820,7 +7855,7 @@ import { useRef as useRef27 } from "react";
7820
7855
 
7821
7856
  // src/components/InlineEdit/InlineInput.tsx
7822
7857
  import { useId as useId13, useRef as useRef26 } from "react";
7823
- import { jsx as jsx265, jsxs as jsxs59 } from "react/jsx-runtime";
7858
+ import { jsx as jsx265, jsxs as jsxs60 } from "react/jsx-runtime";
7824
7859
  var InlineInput = ({
7825
7860
  id,
7826
7861
  error,
@@ -7841,8 +7876,8 @@ var InlineInput = ({
7841
7876
  const descId = derivativeIdGenerator(uniqueId, "desc");
7842
7877
  const inputRef = useRef26(null);
7843
7878
  const combinedRef = useCombinedRef(ref, inputRef);
7844
- return /* @__PURE__ */ jsxs59(Box, { position: "relative", width, children: [
7845
- /* @__PURE__ */ jsxs59("div", { className: Input_default["input-group"], children: [
7879
+ return /* @__PURE__ */ jsxs60(Box, { position: "relative", width, children: [
7880
+ /* @__PURE__ */ jsxs60("div", { className: Input_default["input-group"], children: [
7846
7881
  !isEditing && !hideIcon && /* @__PURE__ */ jsx265(
7847
7882
  "span",
7848
7883
  {
@@ -7948,7 +7983,7 @@ var NavigationItem = ({ isCurrent, ...rest }) => /* @__PURE__ */ jsx267(
7948
7983
  );
7949
7984
 
7950
7985
  // src/components/InternalHeader/InternalHeader.tsx
7951
- import { jsx as jsx268, jsxs as jsxs60 } from "react/jsx-runtime";
7986
+ import { jsx as jsx268, jsxs as jsxs61 } from "react/jsx-runtime";
7952
7987
  var InternalHeader = (props) => {
7953
7988
  const {
7954
7989
  applicationDesc,
@@ -7999,7 +8034,7 @@ var InternalHeader = (props) => {
7999
8034
  ) }) : null;
8000
8035
  const hasContextMenu = hasContextMenuElements || !!user || hasNavInContextMenu;
8001
8036
  const hasContextMenuLargeScreen = hasContextMenuElements || !!user;
8002
- return /* @__PURE__ */ jsxs60(
8037
+ return /* @__PURE__ */ jsxs61(
8003
8038
  Box,
8004
8039
  {
8005
8040
  display: "flex",
@@ -8034,7 +8069,7 @@ var InternalHeader = (props) => {
8034
8069
  {
8035
8070
  showBelow: !hasContextMenuLargeScreen && hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
8036
8071
  className: cn(InternalHeader_default["context-menu-group"]),
8037
- children: /* @__PURE__ */ jsxs60(OverflowMenuGroup, { children: [
8072
+ children: /* @__PURE__ */ jsxs61(OverflowMenuGroup, { children: [
8038
8073
  /* @__PURE__ */ jsx268(
8039
8074
  Button,
8040
8075
  {
@@ -8043,7 +8078,7 @@ var InternalHeader = (props) => {
8043
8078
  "aria-label": "\xE5pne meny"
8044
8079
  }
8045
8080
  ),
8046
- /* @__PURE__ */ jsxs60(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
8081
+ /* @__PURE__ */ jsxs61(OverflowMenu, { className: InternalHeader_default["context-menu"], children: [
8047
8082
  user && /* @__PURE__ */ jsx268(OverflowMenuList, { children: user.href ? /* @__PURE__ */ jsx268(OverflowMenuLink, { icon: PersonIcon, ...user }) : /* @__PURE__ */ jsx268(OverflowMenuSpan, { icon: PersonIcon, ...user }) }),
8048
8083
  hasNavInContextMenu && /* @__PURE__ */ jsx268(
8049
8084
  ShowHide,
@@ -8142,7 +8177,7 @@ var LocalMessage_default = {
8142
8177
  };
8143
8178
 
8144
8179
  // src/components/LocalMessage/LocalMessage.tsx
8145
- import { Fragment as Fragment6, jsx as jsx271, jsxs as jsxs61 } from "react/jsx-runtime";
8180
+ import { Fragment as Fragment6, jsx as jsx271, jsxs as jsxs62 } from "react/jsx-runtime";
8146
8181
  var icons2 = {
8147
8182
  info: InfoIcon,
8148
8183
  danger: ErrorIcon,
@@ -8167,7 +8202,7 @@ var LocalMessage = ({
8167
8202
  if (isClosed) {
8168
8203
  return /* @__PURE__ */ jsx271(Fragment6, {});
8169
8204
  }
8170
- return /* @__PURE__ */ jsxs61(
8205
+ return /* @__PURE__ */ jsxs62(
8171
8206
  Box,
8172
8207
  {
8173
8208
  ...getBaseHTMLProps(
@@ -8185,8 +8220,7 @@ var LocalMessage = ({
8185
8220
  ),
8186
8221
  width,
8187
8222
  display: "grid",
8188
- alignItems: "center",
8189
- padding: "x0.75",
8223
+ padding: "x0.75 x0.75 x0.75 x0.5",
8190
8224
  gap: "x0.5",
8191
8225
  children: [
8192
8226
  /* @__PURE__ */ jsx271(
@@ -8206,7 +8240,7 @@ var LocalMessage = ({
8206
8240
  setClosed(true);
8207
8241
  onClose && onClose();
8208
8242
  },
8209
- size: "small",
8243
+ size: "xsmall",
8210
8244
  "aria-label": "Lukk melding",
8211
8245
  className: LocalMessage_default.container__button
8212
8246
  }
@@ -8237,7 +8271,7 @@ var Modal_default = {
8237
8271
  };
8238
8272
 
8239
8273
  // src/components/Modal/Modal.tsx
8240
- import { jsx as jsx272, jsxs as jsxs62 } from "react/jsx-runtime";
8274
+ import { jsx as jsx272, jsxs as jsxs63 } from "react/jsx-runtime";
8241
8275
  var Modal = ({
8242
8276
  isOpen = false,
8243
8277
  parentElement,
@@ -8294,7 +8328,7 @@ var Modal = ({
8294
8328
  isMounted: isOpen && hasTransitionedIn,
8295
8329
  ref: backdropRef,
8296
8330
  onClick: onBackdropClick,
8297
- children: /* @__PURE__ */ jsxs62(
8331
+ children: /* @__PURE__ */ jsxs63(
8298
8332
  Paper,
8299
8333
  {
8300
8334
  display: "flex",
@@ -8321,7 +8355,7 @@ var Modal = ({
8321
8355
  id: modalId,
8322
8356
  elevation: 4,
8323
8357
  children: [
8324
- /* @__PURE__ */ jsxs62(
8358
+ /* @__PURE__ */ jsxs63(
8325
8359
  HStack,
8326
8360
  {
8327
8361
  paddingBlock: "0 x0.75",
@@ -8728,7 +8762,7 @@ var getCustomStyles = (size2, hasError, hasIcon, isReadOnly) => ({
8728
8762
  import {
8729
8763
  components
8730
8764
  } from "react-select";
8731
- import { jsx as jsx275, jsxs as jsxs63 } from "react/jsx-runtime";
8765
+ import { jsx as jsx275, jsxs as jsxs64 } from "react/jsx-runtime";
8732
8766
  var {
8733
8767
  Option,
8734
8768
  NoOptionsMessage,
@@ -8749,7 +8783,7 @@ var getIndicatorIconSize = (componentSize) => {
8749
8783
  return "small";
8750
8784
  }
8751
8785
  };
8752
- var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs63(Option, { ...props, children: [
8786
+ var DDSOption = (props, componentSize) => /* @__PURE__ */ jsxs64(Option, { ...props, children: [
8753
8787
  props.isSelected && /* @__PURE__ */ jsx275(Icon, { icon: CheckIcon, iconSize: getFormInputIconSize(componentSize) }),
8754
8788
  props.children
8755
8789
  ] });
@@ -8779,7 +8813,7 @@ var DDSInput = (props, ariaInvalid, ariaDescribedby) => /* @__PURE__ */ jsx275(
8779
8813
  );
8780
8814
  var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
8781
8815
  const { className, ...rest } = props;
8782
- return /* @__PURE__ */ jsx275("div", { "data-testid": dataTestId ? dataTestId + "-control" : void 0, children: /* @__PURE__ */ jsxs63(
8816
+ return /* @__PURE__ */ jsx275("div", { "data-testid": dataTestId ? dataTestId + "-control" : void 0, children: /* @__PURE__ */ jsxs64(
8783
8817
  Control,
8784
8818
  {
8785
8819
  ...rest,
@@ -8808,7 +8842,7 @@ var DDSControl = (props, componentSize, readOnly, icon, dataTestId) => {
8808
8842
  };
8809
8843
 
8810
8844
  // src/components/Select/Select.tsx
8811
- import { jsx as jsx276, jsxs as jsxs64 } from "react/jsx-runtime";
8845
+ import { jsx as jsx276, jsxs as jsxs65 } from "react/jsx-runtime";
8812
8846
  function Select({
8813
8847
  id,
8814
8848
  label,
@@ -8908,7 +8942,7 @@ function Select({
8908
8942
  openMenuOnClick: readOnly ? false : openMenuOnClick ? openMenuOnClick : void 0,
8909
8943
  ...rest
8910
8944
  };
8911
- return /* @__PURE__ */ jsxs64(
8945
+ return /* @__PURE__ */ jsxs65(
8912
8946
  Box,
8913
8947
  {
8914
8948
  width: inputWidth,
@@ -8954,7 +8988,7 @@ var NativeSelect_default = {
8954
8988
  };
8955
8989
 
8956
8990
  // src/components/Select/NativeSelect/NativeSelect.tsx
8957
- import { jsx as jsx277, jsxs as jsxs65 } from "react/jsx-runtime";
8991
+ import { jsx as jsx277, jsxs as jsxs66 } from "react/jsx-runtime";
8958
8992
  var NativeSelect = ({
8959
8993
  id,
8960
8994
  children,
@@ -8986,7 +9020,7 @@ var NativeSelect = ({
8986
9020
  width,
8987
9021
  componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
8988
9022
  );
8989
- return /* @__PURE__ */ jsxs65("div", { className, style, children: [
9023
+ return /* @__PURE__ */ jsxs66("div", { className, style, children: [
8990
9024
  hasLabel && /* @__PURE__ */ jsx277(
8991
9025
  Label,
8992
9026
  {
@@ -8997,7 +9031,7 @@ var NativeSelect = ({
8997
9031
  children: label
8998
9032
  }
8999
9033
  ),
9000
- /* @__PURE__ */ jsxs65(Box, { position: "relative", width: inputWidth, children: [
9034
+ /* @__PURE__ */ jsxs66(Box, { position: "relative", width: inputWidth, children: [
9001
9035
  /* @__PURE__ */ jsx277(
9002
9036
  "select",
9003
9037
  {
@@ -9052,7 +9086,7 @@ NativeSelectPlaceholder.displayName = "NativeSelectPlaceholder";
9052
9086
  var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
9053
9087
 
9054
9088
  // src/components/Pagination/Pagination.tsx
9055
- import { jsx as jsx278, jsxs as jsxs66 } from "react/jsx-runtime";
9089
+ import { jsx as jsx278, jsxs as jsxs67 } from "react/jsx-runtime";
9056
9090
  var Pagination = ({
9057
9091
  itemsAmount,
9058
9092
  defaultItemsPerPage = 10,
@@ -9140,7 +9174,7 @@ var Pagination = ({
9140
9174
  );
9141
9175
  const isOnFirstPage = activePage === 1;
9142
9176
  const isOnLastPage = activePage === pagesLength;
9143
- const navigation = withPagination ? /* @__PURE__ */ jsxs66(
9177
+ const navigation = withPagination ? /* @__PURE__ */ jsxs67(
9144
9178
  Box,
9145
9179
  {
9146
9180
  as: "nav",
@@ -9152,7 +9186,7 @@ var Pagination = ({
9152
9186
  ...getBaseHTMLProps(id, className, htmlProps, rest)
9153
9187
  },
9154
9188
  children: [
9155
- /* @__PURE__ */ jsxs66(
9189
+ /* @__PURE__ */ jsxs67(
9156
9190
  ShowHide,
9157
9191
  {
9158
9192
  as: "ol",
@@ -9185,7 +9219,7 @@ var Pagination = ({
9185
9219
  ]
9186
9220
  }
9187
9221
  ),
9188
- !!smallScreenBreakpoint && /* @__PURE__ */ jsxs66(
9222
+ !!smallScreenBreakpoint && /* @__PURE__ */ jsxs67(
9189
9223
  ShowHide,
9190
9224
  {
9191
9225
  as: "ol",
@@ -9276,7 +9310,7 @@ var Pagination = ({
9276
9310
  ) : null;
9277
9311
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
9278
9312
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
9279
- return !withCounter && !withSelect ? navigation : /* @__PURE__ */ jsxs66(
9313
+ return !withCounter && !withSelect ? navigation : /* @__PURE__ */ jsxs67(
9280
9314
  Box,
9281
9315
  {
9282
9316
  display: "flex",
@@ -9287,7 +9321,7 @@ var Pagination = ({
9287
9321
  alignItems: applyResponsiveStyle("center", smallScreenBreakpoint),
9288
9322
  ...getBaseHTMLProps(id, className, htmlProps, rest),
9289
9323
  children: [
9290
- /* @__PURE__ */ jsxs66("div", { className: Pagination_default.indicators, children: [
9324
+ /* @__PURE__ */ jsxs67("div", { className: Pagination_default.indicators, children: [
9291
9325
  withSelect && /* @__PURE__ */ jsx278(
9292
9326
  Select,
9293
9327
  {
@@ -9304,7 +9338,7 @@ var Pagination = ({
9304
9338
  "aria-label": "Antall elementer per side"
9305
9339
  }
9306
9340
  ),
9307
- withCounter && /* @__PURE__ */ jsxs66(Paragraph, { children: [
9341
+ withCounter && /* @__PURE__ */ jsxs67(Paragraph, { children: [
9308
9342
  "Viser ",
9309
9343
  activePageFirstItem,
9310
9344
  "-",
@@ -9727,7 +9761,7 @@ var PhoneInput_default = {
9727
9761
  };
9728
9762
 
9729
9763
  // src/components/PhoneInput/PhoneInput.tsx
9730
- import { jsx as jsx279, jsxs as jsxs67 } from "react/jsx-runtime";
9764
+ import { jsx as jsx279, jsxs as jsxs68 } from "react/jsx-runtime";
9731
9765
  var prioritizedCountries = [
9732
9766
  COUNTRIES.NO,
9733
9767
  COUNTRIES.SE,
@@ -9862,7 +9896,7 @@ var PhoneInput = ({
9862
9896
  const showRequiredStyling = !!(required || ariaRequired);
9863
9897
  const bp = props.smallScreenBreakpoint;
9864
9898
  const widthDefault = componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)";
9865
- return /* @__PURE__ */ jsxs67("div", { className: cn(className, Input_default.container), style, children: [
9899
+ return /* @__PURE__ */ jsxs68("div", { className: cn(className, Input_default.container), style, children: [
9866
9900
  hasLabel && /* @__PURE__ */ jsx279(
9867
9901
  Label,
9868
9902
  {
@@ -9873,7 +9907,7 @@ var PhoneInput = ({
9873
9907
  children: label
9874
9908
  }
9875
9909
  ),
9876
- /* @__PURE__ */ jsxs67(
9910
+ /* @__PURE__ */ jsxs68(
9877
9911
  Box,
9878
9912
  {
9879
9913
  display: "flex",
@@ -9911,7 +9945,7 @@ var PhoneInput = ({
9911
9945
  children: countryOptions.map((item, index) => /* @__PURE__ */ jsx279("option", { value: item.countryCode, children: item.label }, index))
9912
9946
  }
9913
9947
  ),
9914
- /* @__PURE__ */ jsxs67(Box, { width: "100%", className: Input_default["input-group"], children: [
9948
+ /* @__PURE__ */ jsxs68(Box, { width: "100%", className: Input_default["input-group"], children: [
9915
9949
  /* @__PURE__ */ jsx279(
9916
9950
  "span",
9917
9951
  {
@@ -9988,7 +10022,7 @@ var PopoverContext = createContext10({});
9988
10022
  var usePopoverContext = () => useContext16(PopoverContext);
9989
10023
 
9990
10024
  // src/components/Popover/Popover.tsx
9991
- import { jsx as jsx280, jsxs as jsxs68 } from "react/jsx-runtime";
10025
+ import { jsx as jsx280, jsxs as jsxs69 } from "react/jsx-runtime";
9992
10026
  var Popover = ({
9993
10027
  id,
9994
10028
  header,
@@ -10075,7 +10109,7 @@ var Popover = ({
10075
10109
  });
10076
10110
  const hasTitle = !!header;
10077
10111
  const openCn = hasTransitionedIn && isOpen ? "open" : "closed";
10078
- const popover = /* @__PURE__ */ jsxs68(
10112
+ const popover = /* @__PURE__ */ jsxs69(
10079
10113
  Paper,
10080
10114
  {
10081
10115
  ...getBaseHTMLProps(
@@ -10223,7 +10257,6 @@ PopoverGroup.displayName = "PopoverGroup";
10223
10257
  // src/components/ProgressTracker/ProgressTracker.tsx
10224
10258
  import {
10225
10259
  Children as Children3,
10226
- Fragment as Fragment8,
10227
10260
  cloneElement as cloneElement5,
10228
10261
  isValidElement as isValidElement5,
10229
10262
  useEffect as useEffect27,
@@ -10235,7 +10268,8 @@ import {
10235
10268
  import { createContext as createContext11, useContext as useContext18 } from "react";
10236
10269
  var ProgressTrackerContext = createContext11(
10237
10270
  {
10238
- activeStep: 0
10271
+ activeStep: 0,
10272
+ direction: "column"
10239
10273
  }
10240
10274
  );
10241
10275
  var useProgressTrackerContext = () => useContext18(ProgressTrackerContext);
@@ -10243,8 +10277,9 @@ var useProgressTrackerContext = () => useContext18(ProgressTrackerContext);
10243
10277
  // src/components/ProgressTracker/ProgressTracker.module.css
10244
10278
  var ProgressTracker_default = {
10245
10279
  list: "ProgressTracker_list",
10246
- connector: "ProgressTracker_connector",
10247
- item: "ProgressTracker_item",
10280
+ "list-item": "ProgressTracker_list-item",
10281
+ "list-item--column": "ProgressTracker_list-item--column",
10282
+ "list-item--row": "ProgressTracker_list-item--row",
10248
10283
  "item-button": "ProgressTracker_item-button",
10249
10284
  "item-number--active-incomplete": "ProgressTracker_item-number--active-incomplete",
10250
10285
  "item-number--inactive-incomplete": "ProgressTracker_item-number--inactive-incomplete",
@@ -10263,7 +10298,7 @@ var ProgressTracker_default = {
10263
10298
 
10264
10299
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
10265
10300
  import { useMemo as useMemo2 } from "react";
10266
- import { Fragment as Fragment7, jsx as jsx282, jsxs as jsxs69 } from "react/jsx-runtime";
10301
+ import { Fragment as Fragment7, jsx as jsx282, jsxs as jsxs70 } from "react/jsx-runtime";
10267
10302
  var toItemState = (active, completed, disabled) => {
10268
10303
  if (disabled) {
10269
10304
  return "disabled";
@@ -10281,7 +10316,8 @@ var itemStateCn = {
10281
10316
  inactiveCompleted: "inactive-completed",
10282
10317
  inactiveIncomplete: "inactive-incomplete"
10283
10318
  };
10284
- var getVisuallyHiddenText = (active, completed, index) => `${index + 1}, ${active ? "" : "Trinn, "}${completed ? "Ferdig, " : "Ikke ferdig, "}`;
10319
+ var getVisuallyHiddenTextBefore = (index) => `${index + 1}. trinn, `;
10320
+ var getVisuallyHiddenTextAfter = (completed) => `, ${completed ? "ferdig" : "ikke ferdig"}`;
10285
10321
  var ProgressTrackerItem = (props) => {
10286
10322
  const {
10287
10323
  id,
@@ -10295,7 +10331,7 @@ var ProgressTrackerItem = (props) => {
10295
10331
  children,
10296
10332
  ...rest
10297
10333
  } = props;
10298
- const { activeStep, handleStepChange } = useProgressTrackerContext();
10334
+ const { activeStep, handleStepChange, direction } = useProgressTrackerContext();
10299
10335
  const active = activeStep === index;
10300
10336
  const itemState = toItemState(active, completed, disabled);
10301
10337
  const handleClick = () => {
@@ -10313,10 +10349,13 @@ var ProgressTrackerItem = (props) => {
10313
10349
  }
10314
10350
  return index + 1;
10315
10351
  }, [completed, icon, index]);
10316
- const stepContent = /* @__PURE__ */ jsxs69(Fragment7, { children: [
10352
+ const stepContent = /* @__PURE__ */ jsxs70(Fragment7, { children: [
10317
10353
  /* @__PURE__ */ jsx282(
10318
- "div",
10354
+ Box,
10319
10355
  {
10356
+ display: "flex",
10357
+ alignItems: "center",
10358
+ justifyContent: "center",
10320
10359
  "aria-hidden": true,
10321
10360
  className: cn(
10322
10361
  ProgressTracker_default["item-number"],
@@ -10326,7 +10365,7 @@ var ProgressTrackerItem = (props) => {
10326
10365
  children: stepNumberContent
10327
10366
  }
10328
10367
  ),
10329
- /* @__PURE__ */ jsxs69(
10368
+ /* @__PURE__ */ jsxs70(
10330
10369
  "div",
10331
10370
  {
10332
10371
  className: cn(
@@ -10335,50 +10374,61 @@ var ProgressTrackerItem = (props) => {
10335
10374
  typographyStyles_default["body-medium"]
10336
10375
  ),
10337
10376
  children: [
10338
- /* @__PURE__ */ jsx282(VisuallyHidden, { as: "span", children: getVisuallyHiddenText(active, completed, index) }),
10339
- children
10377
+ /* @__PURE__ */ jsx282(VisuallyHidden, { as: "span", children: getVisuallyHiddenTextBefore(index) }),
10378
+ children,
10379
+ /* @__PURE__ */ jsx282(VisuallyHidden, { as: "span", children: getVisuallyHiddenTextAfter(completed) })
10340
10380
  ]
10341
10381
  }
10342
10382
  )
10343
10383
  ] });
10344
- return /* @__PURE__ */ jsx282("li", { "aria-current": active ? "step" : void 0, className: ProgressTracker_default.item, children: handleStepChange ? /* @__PURE__ */ jsx282(
10345
- "button",
10346
- {
10347
- ...getBaseHTMLProps(
10348
- id,
10349
- cn(className, ProgressTracker_default["item-button"], focusable),
10350
- htmlProps,
10351
- rest
10352
- ),
10353
- onClick: () => handleClick(),
10354
- disabled,
10355
- children: stepContent
10356
- }
10357
- ) : /* @__PURE__ */ jsx282(
10358
- "div",
10384
+ return /* @__PURE__ */ jsx282(
10385
+ Box,
10359
10386
  {
10360
- ...getBaseHTMLProps(
10361
- id,
10362
- cn(className, cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"])),
10363
- htmlProps,
10364
- rest
10365
- ),
10366
- children: stepContent
10387
+ as: "li",
10388
+ display: direction === "row" ? "flex" : void 0,
10389
+ "aria-current": active ? "step" : void 0,
10390
+ className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
10391
+ children: handleStepChange ? /* @__PURE__ */ jsx282(
10392
+ "button",
10393
+ {
10394
+ ...getBaseHTMLProps(
10395
+ id,
10396
+ cn(className, ProgressTracker_default["item-button"], focusable),
10397
+ htmlProps,
10398
+ rest
10399
+ ),
10400
+ onClick: () => handleClick(),
10401
+ disabled,
10402
+ children: stepContent
10403
+ }
10404
+ ) : /* @__PURE__ */ jsx282(
10405
+ "div",
10406
+ {
10407
+ ...getBaseHTMLProps(
10408
+ id,
10409
+ cn(className, cn(ProgressTracker_default["item-button"], ProgressTracker_default["item-div"])),
10410
+ htmlProps,
10411
+ rest
10412
+ ),
10413
+ children: stepContent
10414
+ }
10415
+ )
10367
10416
  }
10368
- ) });
10417
+ );
10369
10418
  };
10370
10419
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
10371
10420
 
10372
10421
  // src/components/ProgressTracker/ProgressTracker.tsx
10373
- import { jsx as jsx283, jsxs as jsxs70 } from "react/jsx-runtime";
10422
+ import { jsx as jsx283 } from "react/jsx-runtime";
10374
10423
  var ProgressTracker = (() => {
10375
10424
  const Res = ({
10376
10425
  id,
10377
10426
  activeStep = 0,
10378
10427
  onStepChange,
10428
+ direction = "column",
10379
10429
  children,
10380
10430
  className,
10381
- htmlProps,
10431
+ htmlProps = {},
10382
10432
  ...rest
10383
10433
  }) => {
10384
10434
  const [thisActiveStep, setActiveStep] = useState22(activeStep);
@@ -10394,23 +10444,38 @@ var ProgressTracker = (() => {
10394
10444
  const steps = useMemo3(() => {
10395
10445
  const validChildren = removeInvalidChildren(children);
10396
10446
  const itemsWithIndex = passIndexPropToProgressTrackerItem(validChildren);
10397
- const itemsWithConnectorsBetween = intersperseItemsWithConnector(itemsWithIndex);
10398
- return itemsWithConnectorsBetween;
10447
+ return itemsWithIndex;
10399
10448
  }, [children]);
10449
+ const isRow = direction === "row";
10450
+ const { "aria-label": ariaLabel } = htmlProps;
10400
10451
  return /* @__PURE__ */ jsx283(
10401
10452
  ProgressTrackerContext,
10402
10453
  {
10403
10454
  value: {
10404
10455
  activeStep: thisActiveStep,
10405
- handleStepChange: handleChange
10456
+ handleStepChange: handleChange,
10457
+ direction
10406
10458
  },
10407
10459
  children: /* @__PURE__ */ jsx283(
10408
- "div",
10460
+ "nav",
10409
10461
  {
10410
- role: "group",
10411
- "aria-label": "progress",
10462
+ "aria-label": ariaLabel != null ? ariaLabel : "stegprogresjon",
10412
10463
  ...getBaseHTMLProps(id, className, htmlProps, rest),
10413
- children: /* @__PURE__ */ jsx283("ol", { className: ProgressTracker_default.list, children: steps })
10464
+ children: /* @__PURE__ */ jsx283(
10465
+ Box,
10466
+ {
10467
+ as: StylelessOList,
10468
+ display: "flex",
10469
+ flexDirection: direction,
10470
+ alignItems: "start",
10471
+ gap: isRow ? "x0.5" : "x0.125",
10472
+ overflowX: isRow ? "auto" : void 0,
10473
+ margin: "0",
10474
+ padding: isRow ? "x0.25" : "0",
10475
+ className: cn(ProgressTracker_default.list, scrollbar),
10476
+ children: steps
10477
+ }
10478
+ )
10414
10479
  }
10415
10480
  )
10416
10481
  }
@@ -10432,15 +10497,6 @@ function passIndexPropToProgressTrackerItem(children) {
10432
10497
  })
10433
10498
  );
10434
10499
  }
10435
- var intersperseItemsWithConnector = (children) => Children3.map(children, (child, index) => {
10436
- if (index === 0) {
10437
- return child;
10438
- }
10439
- return /* @__PURE__ */ jsxs70(Fragment8, { children: [
10440
- /* @__PURE__ */ jsx283("div", { "aria-hidden": true, className: ProgressTracker_default.connector }),
10441
- child
10442
- ] }, index);
10443
- });
10444
10500
 
10445
10501
  // src/components/ProgressBar/ProgressBar.tsx
10446
10502
  import { useId as useId20 } from "react";
@@ -10544,17 +10600,11 @@ var useAutocompleteSearch = () => {
10544
10600
 
10545
10601
  // src/components/Search/Search.module.css
10546
10602
  var Search_default = {
10547
- container: "Search_container",
10548
- "input-group": "Search_input-group",
10549
10603
  "with-button-container": "Search_with-button-container",
10550
10604
  input: "Search_input",
10551
- "input--small": "Search_input--small",
10552
- "input--medium": "Search_input--medium",
10553
- "input--large": "Search_input--large",
10554
10605
  "search-icon": "Search_search-icon",
10555
10606
  "clear-button": "Search_clear-button",
10556
- suggestions: "Search_suggestions",
10557
- suggestions__header: "Search_suggestions__header"
10607
+ suggestions: "Search_suggestions"
10558
10608
  };
10559
10609
 
10560
10610
  // src/components/Search/Search.utils.ts
@@ -10660,15 +10710,20 @@ var SearchSuggestions = ({
10660
10710
  ),
10661
10711
  "aria-hidden": !showSuggestions,
10662
10712
  border: "border-default",
10713
+ position: "absolute",
10714
+ top: "100%",
10715
+ width: "100%",
10716
+ maxHeight: "300px",
10717
+ overflowY: "scroll",
10718
+ marginBlock: "x0.25 0",
10663
10719
  children: [
10664
10720
  /* @__PURE__ */ jsx286(
10665
- "span",
10721
+ Box,
10666
10722
  {
10723
+ as: "h2",
10724
+ paddingInline: "0 x1",
10667
10725
  id: suggestionsHeaderId,
10668
- className: cn(
10669
- Search_default.suggestions__header,
10670
- typographyStyles_default["body-xsmall"]
10671
- ),
10726
+ className: typographyStyles_default["body-xsmall"],
10672
10727
  children: "S\xF8keforslag"
10673
10728
  }
10674
10729
  ),
@@ -10694,7 +10749,7 @@ var SearchSuggestions = ({
10694
10749
  SearchSuggestions.displayName = "SearchSuggestions";
10695
10750
 
10696
10751
  // src/components/Search/Search.tsx
10697
- import { Fragment as Fragment9, jsx as jsx287, jsxs as jsxs73 } from "react/jsx-runtime";
10752
+ import { Fragment as Fragment8, jsx as jsx287, jsxs as jsxs73 } from "react/jsx-runtime";
10698
10753
  var getIconSize2 = (size2) => {
10699
10754
  switch (size2) {
10700
10755
  case "large":
@@ -10705,9 +10760,28 @@ var getIconSize2 = (size2) => {
10705
10760
  return "small";
10706
10761
  }
10707
10762
  };
10763
+ var getPadding = (size2, showIcon) => {
10764
+ const paddingRight = (textSize) => `calc(
10765
+ var(--dds-spacing-x1) + ${textSize} * 1.5 + var(--dds-spacing-x0-5)
10766
+ )`;
10767
+ const paddingLeft = (iconSize) => `calc(
10768
+ var(--dds-spacing-x0-75) + ${iconSize} + var(--dds-spacing-x0-5)
10769
+ )`;
10770
+ const pRSmallButton = paddingRight("0.875rem");
10771
+ const pRMediumButton = paddingRight("1rem");
10772
+ const pLSmallIcon = paddingLeft("var(--dds-icon-size-small)");
10773
+ const pLMediumIcon = paddingLeft("var(--dds-icon-size-medium)");
10774
+ const paddingMap = {
10775
+ large: `x1 ${pRMediumButton} x1 ${showIcon ? pLMediumIcon : "x0.75"}`,
10776
+ medium: `x0.75 ${pRSmallButton} x0.75 ${showIcon ? pLMediumIcon : "x0.75"}`,
10777
+ small: `x0.5 ${pRSmallButton} x0.5 ${showIcon ? pLSmallIcon : "x0.75"}`
10778
+ };
10779
+ return paddingMap[size2];
10780
+ };
10708
10781
  var Search = ({
10709
10782
  componentSize = "medium",
10710
10783
  buttonProps,
10784
+ showIcon = true,
10711
10785
  name,
10712
10786
  label,
10713
10787
  tip,
@@ -10750,87 +10824,98 @@ var Search = ({
10750
10824
  } = buttonProps != null ? buttonProps : {};
10751
10825
  const hasSuggestions = !!context.suggestions;
10752
10826
  const showSearchButton = !!buttonProps && !!onClick;
10753
- return /* @__PURE__ */ jsxs73("div", { className: Search_default.container, children: [
10827
+ const inputGroup = /* @__PURE__ */ jsxs73(
10828
+ HStack,
10829
+ {
10830
+ position: "relative",
10831
+ width: !showSearchButton ? width : void 0,
10832
+ className: !showSearchButton ? className : void 0,
10833
+ children: [
10834
+ showIcon && /* @__PURE__ */ jsx287(
10835
+ Icon,
10836
+ {
10837
+ icon: SearchIcon,
10838
+ iconSize: getIconSize2(componentSize),
10839
+ className: cn(
10840
+ Input_default["input-group__absolute-element"],
10841
+ Search_default["search-icon"]
10842
+ )
10843
+ }
10844
+ ),
10845
+ /* @__PURE__ */ jsx287(
10846
+ Box,
10847
+ {
10848
+ as: Input,
10849
+ ...rest,
10850
+ ref: combinedRef,
10851
+ name,
10852
+ type: "search",
10853
+ id: uniqueId,
10854
+ "aria-describedby": spaceSeparatedIdListGenerator([
10855
+ tip ? tipId : void 0,
10856
+ context.suggestions ? suggestionsDescriptionId : void 0,
10857
+ ariaDescribedby
10858
+ ]),
10859
+ value: (_a = context.inputValue) != null ? _a : value,
10860
+ onChange: handleChange,
10861
+ autoComplete: "off",
10862
+ "aria-autocomplete": hasSuggestions ? "list" : void 0,
10863
+ "aria-controls": hasSuggestions ? suggestionsId : void 0,
10864
+ "aria-expanded": context.showSuggestions,
10865
+ role: hasSuggestions ? "combobox" : void 0,
10866
+ width: "100%",
10867
+ padding: getPadding(componentSize, showIcon),
10868
+ className: cn(
10869
+ Search_default.input,
10870
+ typographyStyles_default[getTypographyCn(typographyTypes2[componentSize])]
10871
+ )
10872
+ }
10873
+ ),
10874
+ hasSuggestions && /* @__PURE__ */ jsxs73(Fragment8, { children: [
10875
+ /* @__PURE__ */ jsx287(
10876
+ SearchSuggestions,
10877
+ {
10878
+ id: suggestionsId,
10879
+ ref: context.suggestionsRef,
10880
+ searchId: uniqueId,
10881
+ onSuggestionClick: context.onSugggestionClick,
10882
+ suggestions: context.suggestions,
10883
+ showSuggestions: context.showSuggestions,
10884
+ componentSize
10885
+ }
10886
+ ),
10887
+ /* @__PURE__ */ jsx287(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
10888
+ ] }),
10889
+ hasValue && /* @__PURE__ */ jsx287(
10890
+ Button,
10891
+ {
10892
+ icon: CloseSmallIcon,
10893
+ size: componentSize === "large" ? "medium" : "small",
10894
+ purpose: "tertiary",
10895
+ "aria-label": "T\xF8m",
10896
+ onClick: clearInput,
10897
+ className: Search_default["clear-button"]
10898
+ }
10899
+ )
10900
+ ]
10901
+ }
10902
+ );
10903
+ return /* @__PURE__ */ jsxs73(VStack, { gap: "x0.125", children: [
10754
10904
  hasLabel && /* @__PURE__ */ jsx287(Label, { htmlFor: uniqueId, children: label }),
10755
10905
  /* @__PURE__ */ jsxs73("div", { children: [
10756
- /* @__PURE__ */ jsxs73(
10757
- Box,
10906
+ showSearchButton ? /* @__PURE__ */ jsxs73(
10907
+ Grid,
10758
10908
  {
10759
- className: cn(
10760
- className,
10761
- showSearchButton && Search_default["with-button-container"]
10762
- ),
10909
+ className,
10763
10910
  width,
10764
- gap: "x0.5",
10911
+ columnGap: "x0.5",
10912
+ rowGap: "0",
10913
+ marginInline: "0",
10914
+ gridTemplateColumns: "1fr auto",
10765
10915
  style,
10766
10916
  children: [
10767
- /* @__PURE__ */ jsxs73("div", { className: Search_default["input-group"], children: [
10768
- /* @__PURE__ */ jsx287(
10769
- Icon,
10770
- {
10771
- icon: SearchIcon,
10772
- iconSize: getIconSize2(componentSize),
10773
- className: cn(
10774
- Input_default["input-group__absolute-element"],
10775
- Search_default["search-icon"]
10776
- )
10777
- }
10778
- ),
10779
- /* @__PURE__ */ jsx287(
10780
- Input,
10781
- {
10782
- ...rest,
10783
- ref: combinedRef,
10784
- name,
10785
- type: "search",
10786
- id: uniqueId,
10787
- "aria-describedby": spaceSeparatedIdListGenerator([
10788
- tip ? tipId : void 0,
10789
- context.suggestions ? suggestionsDescriptionId : void 0,
10790
- ariaDescribedby
10791
- ]),
10792
- value: (_a = context.inputValue) != null ? _a : value,
10793
- onChange: handleChange,
10794
- autoComplete: "off",
10795
- "aria-autocomplete": hasSuggestions ? "list" : void 0,
10796
- "aria-controls": hasSuggestions ? suggestionsId : void 0,
10797
- "aria-expanded": context.showSuggestions,
10798
- role: hasSuggestions ? "combobox" : void 0,
10799
- className: cn(
10800
- Search_default.input,
10801
- Search_default[`input--${componentSize}`],
10802
- typographyStyles_default[getTypographyCn(typographyTypes2[componentSize])]
10803
- )
10804
- }
10805
- ),
10806
- hasSuggestions && /* @__PURE__ */ jsxs73(Fragment9, { children: [
10807
- /* @__PURE__ */ jsx287(
10808
- SearchSuggestions,
10809
- {
10810
- id: suggestionsId,
10811
- ref: context.suggestionsRef,
10812
- searchId: uniqueId,
10813
- onSuggestionClick: context.onSugggestionClick,
10814
- suggestions: context.suggestions,
10815
- showSuggestions: context.showSuggestions,
10816
- componentSize
10817
- }
10818
- ),
10819
- /* @__PURE__ */ jsx287(VisuallyHidden, { id: suggestionsDescriptionId, as: "span", children: "Bla i s\xF8keforslag med piltaster n\xE5r listen er utvidet." })
10820
- ] }),
10821
- hasValue && /* @__PURE__ */ jsx287(
10822
- Button,
10823
- {
10824
- icon: CloseSmallIcon,
10825
- size: componentSize === "large" ? "medium" : "small",
10826
- purpose: "tertiary",
10827
- "aria-label": "T\xF8m",
10828
- onClick: clearInput,
10829
- className: Search_default["clear-button"]
10830
- }
10831
- )
10832
- ] }),
10833
- showSearchButton && /* @__PURE__ */ jsx287(
10917
+ inputGroup,
10918
+ /* @__PURE__ */ jsx287(
10834
10919
  Button,
10835
10920
  {
10836
10921
  size: componentSize,
@@ -10841,7 +10926,7 @@ var Search = ({
10841
10926
  )
10842
10927
  ]
10843
10928
  }
10844
- ),
10929
+ ) : inputGroup,
10845
10930
  renderInputMessage(tip, tipId)
10846
10931
  ] })
10847
10932
  ] });
@@ -11091,7 +11176,7 @@ var RadioButtonGroup = ({
11091
11176
  }
11092
11177
  };
11093
11178
  const hasErrorMessage = !!errorMessage;
11094
- const showRequiredMarker = required || ariaRequired;
11179
+ const showRequiredMarker = required || convertBooleanishToBoolean(ariaRequired);
11095
11180
  const tipId = tip && `${uniqueGroupId}-tip`;
11096
11181
  const errorMessageId = errorMessage && `${uniqueGroupId}-errorMessage`;
11097
11182
  const contextProps = {
@@ -11115,21 +11200,15 @@ var RadioButtonGroup = ({
11115
11200
  rest
11116
11201
  ),
11117
11202
  children: [
11118
- /* @__PURE__ */ jsxs75(
11119
- Typography,
11203
+ label !== void 0 ? /* @__PURE__ */ jsx290(
11204
+ GroupLabel,
11120
11205
  {
11121
- as: "span",
11122
- typographyType: "labelMedium",
11123
11206
  id: uniqueGroupId,
11124
- className: readOnly ? Label_default["read-only"] : void 0,
11125
- children: [
11126
- readOnly && /* @__PURE__ */ jsx290(Icon, { icon: LockIcon, className: Label_default["read-only__icon"] }),
11127
- label,
11128
- " ",
11129
- showRequiredMarker && /* @__PURE__ */ jsx290(RequiredMarker, {})
11130
- ]
11207
+ readOnly,
11208
+ showRequiredMarker,
11209
+ children: label
11131
11210
  }
11132
- ),
11211
+ ) : null,
11133
11212
  renderInputMessage(tip, tipId),
11134
11213
  /* @__PURE__ */ jsx290(RadioButtonGroupContext, { value: { ...contextProps }, children: /* @__PURE__ */ jsx290(
11135
11214
  "div",
@@ -11266,7 +11345,7 @@ SplitButton.displayName = "SplitButton";
11266
11345
  // src/components/Table/collapsible/CollapsibleRow.tsx
11267
11346
  import {
11268
11347
  Children as Children4,
11269
- Fragment as Fragment10,
11348
+ Fragment as Fragment9,
11270
11349
  cloneElement as cloneElement6,
11271
11350
  isValidElement as isValidElement6,
11272
11351
  useEffect as useEffect31,
@@ -11520,7 +11599,7 @@ Table2.Row = Row;
11520
11599
  Table2.Foot = Foot;
11521
11600
 
11522
11601
  // src/components/Table/collapsible/CollapsibleRow.tsx
11523
- import { Fragment as Fragment11, jsx as jsx302, jsxs as jsxs78 } from "react/jsx-runtime";
11602
+ import { Fragment as Fragment10, jsx as jsx302, jsxs as jsxs78 } from "react/jsx-runtime";
11524
11603
  var CollapsibleRow = ({
11525
11604
  type: _type,
11526
11605
  className,
@@ -11562,7 +11641,7 @@ var CollapsibleRow = ({
11562
11641
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
11563
11642
  const id = derivativeIdGenerator(prefix2, index.toString());
11564
11643
  collapsibleIds.push(id);
11565
- return /* @__PURE__ */ jsxs78(Fragment10, { children: [
11644
+ return /* @__PURE__ */ jsxs78(Fragment9, { children: [
11566
11645
  /* @__PURE__ */ jsx302(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
11567
11646
  isValidElement6(child) && cloneElement6(child, {
11568
11647
  collapsibleProps: { isCollapsibleChild: true }
@@ -11575,7 +11654,7 @@ var CollapsibleRow = ({
11575
11654
  });
11576
11655
  const headerRow = () => {
11577
11656
  if (type !== "head" || !isCollapsed) return null;
11578
- return /* @__PURE__ */ jsx302(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs78(Fragment11, { children: [
11657
+ return /* @__PURE__ */ jsx302(Row, { ref, ...rowProps(), children: /* @__PURE__ */ jsxs78(Fragment10, { children: [
11579
11658
  definingColumnCells,
11580
11659
  /* @__PURE__ */ jsxs78(Table2.Cell, { type: "head", layout: "center", children: [
11581
11660
  "Utvid",
@@ -11612,9 +11691,9 @@ var CollapsibleRow = ({
11612
11691
  ) })
11613
11692
  ] });
11614
11693
  };
11615
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs78(Fragment11, { children: [
11694
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ jsxs78(Fragment10, { children: [
11616
11695
  headerRow(),
11617
- type === "body" && /* @__PURE__ */ jsxs78(Fragment11, { children: [
11696
+ type === "body" && /* @__PURE__ */ jsxs78(Fragment10, { children: [
11618
11697
  rowWithChevron(),
11619
11698
  childrenCollapsed ? null : collapsedRows
11620
11699
  ] })
@@ -12964,6 +13043,7 @@ export {
12964
13043
  StarIcon,
12965
13044
  StatefulInput,
12966
13045
  StylelessList,
13046
+ StylelessOList,
12967
13047
  SvgWrapper,
12968
13048
  SyncIcon,
12969
13049
  Tab,