@norges-domstoler/dds-components 22.11.0 → 23.0.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/dist/index.js CHANGED
@@ -243,6 +243,7 @@ __export(index_exports, {
243
243
  MoreHorizontalIcon: () => MoreHorizontalIcon,
244
244
  MoreVerticalIcon: () => MoreVerticalIcon,
245
245
  NativeSelect: () => NativeSelect,
246
+ NewsPopover: () => NewsPopover,
246
247
  NotarialIcon: () => NotarialIcon,
247
248
  NotebookPenIcon: () => NotebookPenIcon,
248
249
  NotificationsIcon: () => NotificationsIcon,
@@ -433,9 +434,7 @@ var typographyStyles_default = {
433
434
  "a--nested__parent": "typographyStyles_a--nested__parent",
434
435
  "a--nested__child": "typographyStyles_a--nested__child",
435
436
  "a--margins": "typographyStyles_a--margins",
436
- "a--external": "typographyStyles_a--external",
437
- svg: "typographyStyles_svg",
438
- a__icon: "typographyStyles_a__icon",
437
+ "a--with-icon": "typographyStyles_a--with-icon",
439
438
  "a--visited": "typographyStyles_a--visited",
440
439
  "body-short-xsmall": "typographyStyles_body-short-xsmall",
441
440
  "body-short-xsmall--margins": "typographyStyles_body-short-xsmall--margins",
@@ -752,6 +751,21 @@ var TEXT_COLORS = [
752
751
  "icon-subtle",
753
752
  "icon-medium"
754
753
  ];
754
+ var ICON_COLORS = [
755
+ ...TEXT_COLORS,
756
+ "brand-primary-default",
757
+ "brand-primary-strong",
758
+ "brand-primary-medium",
759
+ "brand-primary-subtle",
760
+ "brand-secondary-default",
761
+ "brand-secondary-strong",
762
+ "brand-secondary-medium",
763
+ "brand-secondary-subtle",
764
+ "brand-tertiary-default",
765
+ "brand-tertiary-strong",
766
+ "brand-tertiary-medium",
767
+ "brand-tertiary-subtle"
768
+ ];
755
769
  var TEXT_COLOR_VALUES = TEXT_COLORS.reduce(
756
770
  (acc, key) => {
757
771
  acc[key] = `var(--dds-color-${key})`;
@@ -759,6 +773,13 @@ var TEXT_COLOR_VALUES = TEXT_COLORS.reduce(
759
773
  },
760
774
  {}
761
775
  );
776
+ var ICON_COLOR_VALUES = ICON_COLORS.reduce(
777
+ (acc, key) => {
778
+ acc[key] = `var(--dds-color-${key})`;
779
+ return acc;
780
+ },
781
+ {}
782
+ );
762
783
  var isTextColor = (value) => {
763
784
  return typeof value === "string" && TEXT_COLORS.includes(value);
764
785
  };
@@ -766,6 +787,13 @@ var getTextColor = (color) => {
766
787
  if (isTextColor(color)) return TEXT_COLOR_VALUES[color];
767
788
  return color;
768
789
  };
790
+ var isIconColor = (value) => {
791
+ return typeof value === "string" && ICON_COLORS.includes(value);
792
+ };
793
+ var getIconColor = (color) => {
794
+ if (isIconColor(color)) return ICON_COLOR_VALUES[color];
795
+ return color;
796
+ };
769
797
 
770
798
  // src/utils/combineHandlers.tsx
771
799
  var combineHandlers = (handler1, handler2) => {
@@ -956,7 +984,7 @@ var import_react8 = require("react");
956
984
  function useOnClickOutside(element, handler) {
957
985
  (0, import_react8.useEffect)(() => {
958
986
  const listener = (event) => {
959
- const elements = Array.isArray(element) ? element : [element].filter(Boolean);
987
+ const elements = Array.isArray(element) ? element.map((ref) => ref == null ? void 0 : ref.current).filter((el) => Boolean(el)) : (element == null ? void 0 : element.current) ? [element.current] : [];
960
988
  const hasClickedInside = elements.some(
961
989
  (el) => el == null ? void 0 : el.contains(event.target)
962
990
  );
@@ -1449,6 +1477,7 @@ var layout_default = {
1449
1477
  "dds-a-i": "layout_dds-a-i",
1450
1478
  "dds-a-c": "layout_dds-a-c",
1451
1479
  "dds-j-i": "layout_dds-j-i",
1480
+ "dds-pl-i": "layout_dds-pl-i",
1452
1481
  "dds-j-c": "layout_dds-j-c",
1453
1482
  "dds-wrap": "layout_dds-wrap",
1454
1483
  "dds-basis": "layout_dds-basis",
@@ -1617,6 +1646,7 @@ var Box = ({
1617
1646
  alignItems,
1618
1647
  alignContent,
1619
1648
  justifyItems,
1649
+ placeItems,
1620
1650
  justifyContent,
1621
1651
  flexWrap,
1622
1652
  flexBasis,
@@ -1655,6 +1685,7 @@ var Box = ({
1655
1685
  ...getResponsiveCSSProperties(alignItems, "r", "a-i"),
1656
1686
  ...getResponsiveCSSProperties(alignContent, "r", "a-c"),
1657
1687
  ...getResponsiveCSSProperties(justifyItems, "r", "j-i"),
1688
+ ...getResponsiveCSSProperties(placeItems, "r", "pl-i"),
1658
1689
  ...getResponsiveCSSProperties(justifyContent, "r", "j-c"),
1659
1690
  ...getResponsiveCSSProperties(flexWrap, "r", "wrap"),
1660
1691
  ...getResponsiveCSSProperties(flexBasis, "r", "basis"),
@@ -1698,6 +1729,7 @@ var Box = ({
1698
1729
  alignItems && layout_default["dds-a-i"],
1699
1730
  justifyContent && layout_default["dds-j-c"],
1700
1731
  justifyItems && layout_default["dds-j-i"],
1732
+ placeItems && layout_default["dds-pl-i"],
1701
1733
  flexWrap && layout_default["dds-wrap"],
1702
1734
  flexBasis && layout_default["dds-basis"],
1703
1735
  flexFlow && layout_default["dds-flow"],
@@ -2016,7 +2048,42 @@ var commonTexts = createTexts({
2016
2048
  nn: "Innlastning p\xE5g\xE5r",
2017
2049
  en: "Loading",
2018
2050
  se: "Vie\u017E\u017Eamin"
2019
- }
2051
+ },
2052
+ nextPage: {
2053
+ nb: "Neste side",
2054
+ no: "Neste side",
2055
+ nn: "Neste side",
2056
+ en: "Next page",
2057
+ se: "Boahte siidu"
2058
+ },
2059
+ previousPage: {
2060
+ nb: "Forrige side",
2061
+ no: "Forrige side",
2062
+ nn: "F\xF8rre side",
2063
+ en: "Previous page",
2064
+ se: "Ovddit siidu"
2065
+ },
2066
+ page: (page) => ({
2067
+ nb: `Side ${page}`,
2068
+ no: `Side ${page}`,
2069
+ nn: `Side ${page}`,
2070
+ en: `Page ${page}`,
2071
+ se: `Siidu ${page}`
2072
+ }),
2073
+ currentPage: (page) => ({
2074
+ nb: `N\xE5v\xE6rende side (${page})`,
2075
+ no: `N\xE5v\xE6rende side (${page})`,
2076
+ nn: `Noverande side (${page})`,
2077
+ en: `Current page (${page})`,
2078
+ se: `D\xE1la siidu (${page})`
2079
+ }),
2080
+ pageOf: (current, max) => ({
2081
+ nb: `Side ${current} av ${max}`,
2082
+ no: `Side ${current} av ${max}`,
2083
+ nn: `Side ${current} ${max}`,
2084
+ en: `Page ${current} of ${max}`,
2085
+ se: `Siidu ${current} ${max}`
2086
+ })
2020
2087
  });
2021
2088
 
2022
2089
  // src/components/Spinner/Spinner.tsx
@@ -2475,7 +2542,7 @@ function SvgWrapper({
2475
2542
  "svg",
2476
2543
  {
2477
2544
  ...props,
2478
- fill: getTextColor(fill),
2545
+ fill: getIconColor(fill),
2479
2546
  xmlns: "http://www.w3.org/2000/svg",
2480
2547
  viewBox: `0 0 ${size} ${size}`,
2481
2548
  className: cn(className, Icon_default.svg),
@@ -4235,15 +4302,10 @@ var Typography = (props) => {
4235
4302
  const as = propAs ? propAs : getElementType(typographyType);
4236
4303
  const typographyCn = getTypographyCn(typographyType);
4237
4304
  let relProp;
4238
- let targetProp;
4239
- let externalLinkProp;
4240
4305
  if (isAnchorProps(props)) {
4241
- const { externalLink, target } = props;
4242
4306
  relProp = as === "a" ? "noopener noreferer" : void 0;
4243
- targetProp = as !== "a" ? void 0 : externalLink ? "_blank" : target;
4244
- externalLinkProp = as === "a" && externalLink ? externalLink : void 0;
4245
4307
  }
4246
- return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
4308
+ return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
4247
4309
  Box,
4248
4310
  {
4249
4311
  ...getBaseHTMLProps(
@@ -4252,7 +4314,6 @@ var Typography = (props) => {
4252
4314
  className,
4253
4315
  getColorCn(color),
4254
4316
  Typography_default.container,
4255
- externalLinkProp && typographyStyles_default["a--external"],
4256
4317
  typographyStyles_default[typographyCn],
4257
4318
  withMargins && typographyStyles_default[`${typographyCn}--margins`],
4258
4319
  isLegend(as) && typographyStyles_default.legend,
@@ -4272,11 +4333,7 @@ var Typography = (props) => {
4272
4333
  ),
4273
4334
  as,
4274
4335
  rel: relProp,
4275
- target: targetProp,
4276
- children: [
4277
- children,
4278
- externalLinkProp && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(Icon, { icon: OpenExternalIcon, iconSize: "inherit" })
4279
- ]
4336
+ children
4280
4337
  }
4281
4338
  );
4282
4339
  };
@@ -4468,21 +4525,19 @@ var Link = ({
4468
4525
  typographyType,
4469
4526
  withMargins,
4470
4527
  withVisited,
4471
- external,
4472
- target,
4473
4528
  style,
4474
4529
  color,
4475
4530
  as: propAs,
4476
4531
  isAnchor: propIsAnchor,
4532
+ withIconStyling,
4477
4533
  ...rest
4478
4534
  }) => {
4479
4535
  const as = propAs ? propAs : "a";
4480
4536
  const isAnchor = as === "a" || propIsAnchor;
4481
4537
  const aProps = isAnchor ? {
4482
- rel: "noopener noreferrer",
4483
- target: external ? "_blank" : target
4538
+ rel: "noopener noreferrer"
4484
4539
  } : {};
4485
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(
4540
+ return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
4486
4541
  ElementAs,
4487
4542
  {
4488
4543
  as,
@@ -4491,7 +4546,7 @@ var Link = ({
4491
4546
  cn(
4492
4547
  className,
4493
4548
  typographyStyles_default.a,
4494
- external && typographyStyles_default["a--external"],
4549
+ withIconStyling && typographyStyles_default["a--with-icon"],
4495
4550
  withVisited && typographyStyles_default["a--visited"],
4496
4551
  typographyType && typographyStyles_default[getTypographyCn(typographyType)],
4497
4552
  typographyType && withMargins && typographyStyles_default[`${getTypographyCn(typographyType)}--margins`],
@@ -4506,17 +4561,7 @@ var Link = ({
4506
4561
  rest
4507
4562
  ),
4508
4563
  ...aProps,
4509
- children: [
4510
- children,
4511
- external && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
4512
- Icon,
4513
- {
4514
- iconSize: "inherit",
4515
- icon: OpenExternalIcon,
4516
- className: typographyStyles_default.svg
4517
- }
4518
- )
4519
- ]
4564
+ children
4520
4565
  }
4521
4566
  );
4522
4567
  };
@@ -5334,7 +5379,7 @@ var OverflowMenuGroup = ({
5334
5379
  if (isOpen) onClose == null ? void 0 : onClose();
5335
5380
  toggle();
5336
5381
  };
5337
- useOnClickOutside([menuRef.current, buttonRef.current], () => {
5382
+ useOnClickOutside([menuRef, buttonRef], () => {
5338
5383
  handleClose();
5339
5384
  });
5340
5385
  useOnKeyDown(["Esc", "Escape"], () => {
@@ -6872,7 +6917,7 @@ var CalendarPopoverContent = ({
6872
6917
  const hasTransitionedIn = useMountTransition(isOpen, 500);
6873
6918
  const isMounted = isOpen && hasTransitionedIn;
6874
6919
  const combinedRef = useCombinedRef(refs.setFloating, ref);
6875
- useOnClickOutside([ref.current, modalRef.current], onClose);
6920
+ useOnClickOutside([ref, modalRef], onClose);
6876
6921
  (0, import_react41.useEffect)(() => {
6877
6922
  var _a;
6878
6923
  refs.setReference((_a = anchorRef == null ? void 0 : anchorRef.current) != null ? _a : null);
@@ -8178,7 +8223,7 @@ var Drawer = ({
8178
8223
  }
8179
8224
  const { t } = useTranslation();
8180
8225
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
8181
- const { isOpen = false, onClose, drawerId, triggerEl } = useDrawerContext();
8226
+ const { isOpen = false, onClose, drawerId, triggerRef } = useDrawerContext();
8182
8227
  const hasHeader = !!header;
8183
8228
  const headerId = hasHeader ? `${drawerId}-header` : void 0;
8184
8229
  const drawerRef = useFocusTrap(isOpen);
@@ -8193,8 +8238,8 @@ var Drawer = ({
8193
8238
  return () => handleElementWithBackdropUnmount(document.body);
8194
8239
  }
8195
8240
  }, [isOpen]);
8196
- const elements = [drawerRef.current];
8197
- if (triggerEl) elements.push(triggerEl);
8241
+ const elements = [drawerRef];
8242
+ if (triggerRef) elements.push(triggerRef);
8198
8243
  useOnClickOutside(elements, () => {
8199
8244
  if (isOpen && !withBackdrop) {
8200
8245
  onClose == null ? void 0 : onClose();
@@ -8357,7 +8402,7 @@ var DrawerGroup = ({
8357
8402
  drawerId: uniqueDrawerId,
8358
8403
  isOpen,
8359
8404
  onClose: handleClose,
8360
- triggerEl: triggerRef.current
8405
+ triggerRef
8361
8406
  },
8362
8407
  children: Children7
8363
8408
  }
@@ -10279,7 +10324,7 @@ var InlineEditContextProvider = (props) => {
10279
10324
  };
10280
10325
  useOnKeyDown(["Enter"], () => onExitHandler());
10281
10326
  useOnKeyDown(["Escape"], () => onExitHandler());
10282
- useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
10327
+ useOnClickOutside(inputRef, () => onExitHandler());
10283
10328
  return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
10284
10329
  InlineEditContext,
10285
10330
  {
@@ -11074,6 +11119,189 @@ var import_jsx_runtime304 = require("react/jsx-runtime");
11074
11119
  var ModalActions = (props) => /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
11075
11120
  ModalActions.displayName = "ModalActions";
11076
11121
 
11122
+ // src/components/NewsPopover/NewsPopover.module.css
11123
+ var NewsPopover_default = {
11124
+ "close-button": "NewsPopover_close-button",
11125
+ "img-wrapper": "NewsPopover_img-wrapper"
11126
+ };
11127
+
11128
+ // src/components/NewsPopover/NewsPopover.tsx
11129
+ var import_jsx_runtime305 = require("react/jsx-runtime");
11130
+ var NewsPopover = ({
11131
+ id,
11132
+ className,
11133
+ style,
11134
+ htmlProps,
11135
+ header,
11136
+ news,
11137
+ defaultActiveSlide = 0,
11138
+ activeSlide: activeSlideProp,
11139
+ setActiveSlide: setActiveSlideProp,
11140
+ isOpen: isOpenProp,
11141
+ isInitiallyOpen = true,
11142
+ setIsOpen: setIsOpenProp,
11143
+ smallScreenBreakpoint = "xs",
11144
+ closeOnClickOutside = true,
11145
+ ref,
11146
+ ...rest
11147
+ }) => {
11148
+ if (news.length === 0) {
11149
+ throw new Error('NewsPopover must have at least one item in "news" prop');
11150
+ }
11151
+ if (header.length > 35) {
11152
+ console.warn(
11153
+ "[NewsPopover] header exceeds recommended length (about 35 characters). This may cause wrapping or layout issues depending on theme."
11154
+ );
11155
+ }
11156
+ news.forEach((n, i) => {
11157
+ if (n.heading.length > 35) {
11158
+ console.warn(
11159
+ `[NewsPopover] news[${i}].heading exceeds recommended length (about 35 characters). This may cause wrapping or layout issues depending on theme.`
11160
+ );
11161
+ }
11162
+ if (n.text.length > 135) {
11163
+ console.warn(
11164
+ `[NewsPopover] news[${i}].text exceeds recommended length (about 135 characters). This may cause wrapping or layout issues depending on theme.`
11165
+ );
11166
+ }
11167
+ });
11168
+ const { t } = useTranslation();
11169
+ const [activeSlide, setActiveSlide] = useControllableState({
11170
+ value: activeSlideProp,
11171
+ defaultValue: defaultActiveSlide,
11172
+ onChange: setActiveSlideProp
11173
+ });
11174
+ const [isOpen, setIsOpen] = useControllableState({
11175
+ onChange: setIsOpenProp,
11176
+ value: isOpenProp,
11177
+ defaultValue: isInitiallyOpen
11178
+ });
11179
+ function handleSlideChange(slide) {
11180
+ setActiveSlide(slide);
11181
+ }
11182
+ const popoverRef = useFocusTrap(true);
11183
+ const combinedRef = useCombinedRef(ref, popoverRef);
11184
+ useOnClickOutside(popoverRef, () => {
11185
+ if (closeOnClickOutside && isOpen) {
11186
+ setIsOpen(false);
11187
+ }
11188
+ });
11189
+ useOnKeyDown("Escape", () => setIsOpen(false));
11190
+ const isList = news.length > 1;
11191
+ const slideContent = (el, i) => /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(import_jsx_runtime305.Fragment, { children: [
11192
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(
11193
+ Paper,
11194
+ {
11195
+ background: "brand-secondary-subtle",
11196
+ width: "100%",
11197
+ borderRadius: "0",
11198
+ display: "grid",
11199
+ placeItems: "center",
11200
+ paddingBlock: "x0.5",
11201
+ children: [
11202
+ i !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(VisuallyHidden, { children: t(commonTexts.pageOf(i + 1, news.length)) }),
11203
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Box, { height: "113px", maxWidth: "380px", className: NewsPopover_default["img-wrapper"], children: el.image })
11204
+ ]
11205
+ }
11206
+ ),
11207
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(VStack, { gap: "x0.75", alignItems: "center", margin: "x0.75 x0.75 x1 x0.75", children: [
11208
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Heading, { level: 3, children: el.heading }),
11209
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Paragraph, { textAlign: "center", children: el.text })
11210
+ ] })
11211
+ ] });
11212
+ const content = isList ? /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Box, { as: StylelessList, width: "100%", children: news.map((el, i) => {
11213
+ const active = activeSlide === i;
11214
+ return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)("li", { "aria-current": active, hidden: !active, children: slideContent(el, i) }, i);
11215
+ }) }) : /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Box, { width: "100%", children: slideContent(news[0]) });
11216
+ function handleNext() {
11217
+ if (activeSlide === news.length - 1) handleSlideChange(0);
11218
+ else handleSlideChange(activeSlide + 1);
11219
+ }
11220
+ function handlePrevious() {
11221
+ if (activeSlide === 0) handleSlideChange(news.length - 1);
11222
+ else handleSlideChange(activeSlide - 1);
11223
+ }
11224
+ const headerId = "dds-news-popover-header";
11225
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(
11226
+ Paper,
11227
+ {
11228
+ ...getBaseHTMLProps(
11229
+ id,
11230
+ cn(className, focusable),
11231
+ style,
11232
+ htmlProps,
11233
+ rest
11234
+ ),
11235
+ ref: combinedRef,
11236
+ position: "relative",
11237
+ border: "border-subtle",
11238
+ role: "dialog",
11239
+ "aria-labelledby": headerId,
11240
+ height: isList ? "368px" : "327px",
11241
+ width: styleUpToBreakpoint("100%", smallScreenBreakpoint, "405px"),
11242
+ children: [
11243
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(HStack, { margin: "x0.75 x3 x0.75 x0.75", children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Heading, { id: headerId, level: 2, typographyType: "headingSmall", children: header }) }),
11244
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(
11245
+ VStack,
11246
+ {
11247
+ alignItems: "center",
11248
+ height: isList ? "299px" : void 0,
11249
+ "aria-live": "polite",
11250
+ children: [
11251
+ content,
11252
+ isList && /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(HStack, { alignItems: "center", gap: "x1", marginBlock: "auto 0", children: [
11253
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11254
+ Button,
11255
+ {
11256
+ "aria-label": t(commonTexts.previousPage),
11257
+ size: "small",
11258
+ purpose: "tertiary",
11259
+ icon: ChevronLeftIcon,
11260
+ onClick: () => handlePrevious()
11261
+ }
11262
+ ),
11263
+ news.map((slide, i) => {
11264
+ const active = activeSlide === i;
11265
+ return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11266
+ Icon,
11267
+ {
11268
+ iconSize: "small",
11269
+ icon: CircleFilledIcon,
11270
+ color: active ? "brand-tertiary-default" : "brand-tertiary-subtle"
11271
+ }
11272
+ );
11273
+ }),
11274
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11275
+ Button,
11276
+ {
11277
+ "aria-label": t(commonTexts.nextPage),
11278
+ size: "small",
11279
+ purpose: "tertiary",
11280
+ icon: ChevronRightIcon,
11281
+ onClick: () => handleNext()
11282
+ }
11283
+ )
11284
+ ] }),
11285
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11286
+ Button,
11287
+ {
11288
+ icon: CloseIcon,
11289
+ purpose: "tertiary",
11290
+ size: "small",
11291
+ "aria-label": t(commonTexts.close),
11292
+ onClick: () => setIsOpen(false),
11293
+ className: NewsPopover_default["close-button"]
11294
+ }
11295
+ )
11296
+ ]
11297
+ }
11298
+ )
11299
+ ]
11300
+ }
11301
+ ) : null;
11302
+ };
11303
+ NewsPopover.displayName = "NewsPopover";
11304
+
11077
11305
  // src/components/Pagination/Pagination.tsx
11078
11306
  var import_react76 = require("react");
11079
11307
 
@@ -11377,7 +11605,7 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
11377
11605
  // src/components/Select/SelectComponents.tsx
11378
11606
  var import_react73 = __toESM(require("react"));
11379
11607
  var import_react_select = require("react-select");
11380
- var import_jsx_runtime305 = require("react/jsx-runtime");
11608
+ var import_jsx_runtime306 = require("react/jsx-runtime");
11381
11609
  var {
11382
11610
  Option,
11383
11611
  NoOptionsMessage,
@@ -11390,25 +11618,25 @@ var {
11390
11618
  } = import_react_select.components;
11391
11619
  var DDSOption = ({
11392
11620
  ...props
11393
- }) => /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(Option, { ...props, children: [
11394
- props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Icon, { icon: CheckIcon, iconSize: "small" }),
11621
+ }) => /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(Option, { ...props, children: [
11622
+ props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: CheckIcon, iconSize: "small" }),
11395
11623
  props.children
11396
11624
  ] });
11397
- var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Option, { ...props, children: import_react73.default.createElement(props.customElement, props) });
11625
+ var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Option, { ...props, children: import_react73.default.createElement(props.customElement, props) });
11398
11626
  var CustomSingleValue = ({
11399
11627
  id,
11400
11628
  Element,
11401
11629
  ...props
11402
- }) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Element, { ...props }) : props.children }) });
11403
- var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
11630
+ }) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(SingleValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime306.jsx)("div", { id, className: Select_default["inner-single-value"], children: Element ? /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Element, { ...props }) : props.children }) });
11631
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
11404
11632
  var DDSClearIndicator = ({
11405
11633
  ...props
11406
- }) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11407
- var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11634
+ }) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11635
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11408
11636
  var DDSDropdownIndicator = (props) => {
11409
11637
  const { className, componentSize, ...rest } = props;
11410
11638
  const iconState = rest.selectProps.menuIsOpen ? "up" : "down";
11411
- return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11639
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11412
11640
  DropdownIndicator,
11413
11641
  {
11414
11642
  ...rest,
@@ -11417,7 +11645,7 @@ var DDSDropdownIndicator = (props) => {
11417
11645
  Select_default["dropdown-indicator"],
11418
11646
  Input_default[`input-with-el-right--${componentSize}`]
11419
11647
  ),
11420
- children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11648
+ children: /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11421
11649
  Icon,
11422
11650
  {
11423
11651
  icon: AnimatedChevronUpDownIcon,
@@ -11432,7 +11660,7 @@ var DDSInput = ({
11432
11660
  ariaInvalid,
11433
11661
  ariaDescribedby,
11434
11662
  ...props
11435
- }) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11663
+ }) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11436
11664
  Input2,
11437
11665
  {
11438
11666
  ...props,
@@ -11452,7 +11680,7 @@ function DDSControl(props) {
11452
11680
  ...rest
11453
11681
  } = props;
11454
11682
  const hasIcon = !!icon;
11455
- return /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(
11683
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
11456
11684
  Control,
11457
11685
  {
11458
11686
  ...rest,
@@ -11469,7 +11697,7 @@ function DDSControl(props) {
11469
11697
  hasIcon && Input_default[`input-with-icon--${componentSize}`]
11470
11698
  ),
11471
11699
  children: [
11472
- hasIcon && /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11700
+ hasIcon && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11473
11701
  Icon,
11474
11702
  {
11475
11703
  icon,
@@ -11487,7 +11715,7 @@ function DDSControl(props) {
11487
11715
  }
11488
11716
 
11489
11717
  // src/components/Select/Select.tsx
11490
- var import_jsx_runtime306 = require("react/jsx-runtime");
11718
+ var import_jsx_runtime307 = require("react/jsx-runtime");
11491
11719
  function Select({
11492
11720
  id,
11493
11721
  label,
@@ -11538,7 +11766,7 @@ function Select({
11538
11766
  componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
11539
11767
  );
11540
11768
  const customInput = (0, import_react74.useCallback)(
11541
- (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11769
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
11542
11770
  DDSInput,
11543
11771
  {
11544
11772
  ...props,
@@ -11556,7 +11784,7 @@ function Select({
11556
11784
  []
11557
11785
  );
11558
11786
  const customSingleValue = (0, import_react74.useCallback)(
11559
- (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11787
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
11560
11788
  CustomSingleValue,
11561
11789
  {
11562
11790
  ...props,
@@ -11567,15 +11795,15 @@ function Select({
11567
11795
  []
11568
11796
  );
11569
11797
  const customClearIndicator = (0, import_react74.useCallback)(
11570
- (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(DDSClearIndicator, { ...props }),
11798
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(DDSClearIndicator, { ...props }),
11571
11799
  []
11572
11800
  );
11573
11801
  const customDropdownIndicator = (0, import_react74.useCallback)(
11574
- (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(DDSDropdownIndicator, { ...props, componentSize }),
11802
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(DDSDropdownIndicator, { ...props, componentSize }),
11575
11803
  []
11576
11804
  );
11577
11805
  const customControl = (0, import_react74.useCallback)(
11578
- (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11806
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
11579
11807
  DDSControl,
11580
11808
  {
11581
11809
  ...props,
@@ -11590,9 +11818,9 @@ function Select({
11590
11818
  const customOptionComponent = (0, import_react74.useCallback)(
11591
11819
  (props) => {
11592
11820
  if (customOptionElement) {
11593
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(CustomOption, { ...props, customElement: customOptionElement });
11821
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(CustomOption, { ...props, customElement: customOptionElement });
11594
11822
  } else {
11595
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(DDSOption, { ...props });
11823
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(DDSOption, { ...props });
11596
11824
  }
11597
11825
  },
11598
11826
  [customOptionElement, componentSize]
@@ -11633,7 +11861,7 @@ function Select({
11633
11861
  openMenuOnClick: readOnly ? false : openMenuOnClick ? openMenuOnClick : void 0,
11634
11862
  ...rest
11635
11863
  };
11636
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
11864
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
11637
11865
  Box,
11638
11866
  {
11639
11867
  width: inputWidth,
@@ -11654,7 +11882,7 @@ function Select({
11654
11882
  readOnly,
11655
11883
  afterLabelContent
11656
11884
  }),
11657
- /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
11885
+ /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
11658
11886
  renderInputMessage({ tip, tipId, errorMessage, errorMessageId })
11659
11887
  ]
11660
11888
  }
@@ -11683,7 +11911,7 @@ var NativeSelect_default = {
11683
11911
  };
11684
11912
 
11685
11913
  // src/components/Select/NativeSelect/NativeSelect.tsx
11686
- var import_jsx_runtime307 = require("react/jsx-runtime");
11914
+ var import_jsx_runtime308 = require("react/jsx-runtime");
11687
11915
  var NativeSelect = ({
11688
11916
  ref,
11689
11917
  id,
@@ -11752,7 +11980,7 @@ var NativeSelect = ({
11752
11980
  const iconSize = componentSize === "medium" ? "medium" : "small";
11753
11981
  const showClearButton = clearable && hasValue && !readOnly && !rest.disabled;
11754
11982
  const hasIcon = !!icon;
11755
- return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)("div", { className, style, children: [
11983
+ return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)("div", { className, style, children: [
11756
11984
  renderLabel({
11757
11985
  label,
11758
11986
  htmlFor: uniqueId,
@@ -11760,7 +11988,7 @@ var NativeSelect = ({
11760
11988
  readOnly,
11761
11989
  afterLabelContent
11762
11990
  }),
11763
- /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
11991
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
11764
11992
  Box,
11765
11993
  {
11766
11994
  position: "relative",
@@ -11770,7 +11998,7 @@ var NativeSelect = ({
11770
11998
  Input_default["input-group"]
11771
11999
  ),
11772
12000
  children: [
11773
- hasIcon && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12001
+ hasIcon && /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
11774
12002
  Icon,
11775
12003
  {
11776
12004
  icon,
@@ -11781,7 +12009,7 @@ var NativeSelect = ({
11781
12009
  iconSize: "component"
11782
12010
  }
11783
12011
  ),
11784
- /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12012
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
11785
12013
  "select",
11786
12014
  {
11787
12015
  ref: useCombinedRef(ref, selectRef),
@@ -11815,7 +12043,7 @@ var NativeSelect = ({
11815
12043
  children
11816
12044
  }
11817
12045
  ),
11818
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12046
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
11819
12047
  ClearButton,
11820
12048
  {
11821
12049
  "aria-label": t(commonTexts.clearSelect),
@@ -11824,7 +12052,7 @@ var NativeSelect = ({
11824
12052
  className: NativeSelect_default[`clear-button--${componentSize}`]
11825
12053
  }
11826
12054
  ),
11827
- !multiple && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12055
+ !multiple && /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
11828
12056
  Icon,
11829
12057
  {
11830
12058
  icon: ChevronDownIcon,
@@ -11847,7 +12075,7 @@ var NativeSelect = ({
11847
12075
  var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
11848
12076
 
11849
12077
  // src/components/Pagination/Pagination.tsx
11850
- var import_jsx_runtime308 = require("react/jsx-runtime");
12078
+ var import_jsx_runtime309 = require("react/jsx-runtime");
11851
12079
  var Pagination = ({
11852
12080
  itemsAmount,
11853
12081
  defaultItemsPerPage = 10,
@@ -11902,7 +12130,7 @@ var Pagination = ({
11902
12130
  };
11903
12131
  const listItems = items.length > 0 ? items.map((item, i) => {
11904
12132
  const isActive = item === activePage;
11905
- return /* @__PURE__ */ (0, import_jsx_runtime308.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12133
+ return /* @__PURE__ */ (0, import_jsx_runtime309.jsx)("li", { className: Pagination_default.list__item, children: item !== "truncator" && typeof item === "number" ? /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11906
12134
  Button,
11907
12135
  {
11908
12136
  purpose: isActive ? "primary" : "secondary",
@@ -11910,10 +12138,10 @@ var Pagination = ({
11910
12138
  onClick: (event) => {
11911
12139
  onPageChange(event, item);
11912
12140
  },
11913
- "aria-label": isActive ? t(texts22.currentPage(item)) : t(texts22.page(item)),
12141
+ "aria-label": isActive ? t(commonTexts.currentPage(item)) : t(commonTexts.page(item)),
11914
12142
  children: item
11915
12143
  }
11916
- ) : /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12144
+ ) : /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11917
12145
  Icon,
11918
12146
  {
11919
12147
  icon: MoreHorizontalIcon,
@@ -11921,7 +12149,7 @@ var Pagination = ({
11921
12149
  }
11922
12150
  ) }, `pagination-item-${i}`);
11923
12151
  }) : void 0;
11924
- const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12152
+ const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11925
12153
  Button,
11926
12154
  {
11927
12155
  purpose: "secondary",
@@ -11930,10 +12158,10 @@ var Pagination = ({
11930
12158
  onClick: (event) => {
11931
12159
  onPageChange(event, activePage - 1);
11932
12160
  },
11933
- "aria-label": t(texts22.previousPage)
12161
+ "aria-label": t(commonTexts.previousPage)
11934
12162
  }
11935
12163
  );
11936
- const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12164
+ const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11937
12165
  Button,
11938
12166
  {
11939
12167
  purpose: "secondary",
@@ -11942,13 +12170,13 @@ var Pagination = ({
11942
12170
  onClick: (event) => {
11943
12171
  onPageChange(event, activePage + 1);
11944
12172
  },
11945
- "aria-label": t(texts22.nextPage)
12173
+ "aria-label": t(commonTexts.nextPage)
11946
12174
  }
11947
12175
  );
11948
12176
  const isOnFirstPage = activePage === 1;
11949
12177
  const isOnLastPage = activePage === pagesLength;
11950
12178
  const baseHTMLProps = getBaseHTMLProps(id, className, style, htmlProps, rest);
11951
- const navigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
12179
+ const navigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
11952
12180
  Box,
11953
12181
  {
11954
12182
  as: "nav",
@@ -11960,14 +12188,14 @@ var Pagination = ({
11960
12188
  ...baseHTMLProps
11961
12189
  },
11962
12190
  children: [
11963
- /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
12191
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
11964
12192
  ShowHide,
11965
12193
  {
11966
12194
  as: "ol",
11967
12195
  hideBelow: smallScreenBreakpoint,
11968
12196
  className: Pagination_default.list,
11969
12197
  children: [
11970
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12198
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11971
12199
  "li",
11972
12200
  {
11973
12201
  className: cn(
@@ -11979,7 +12207,7 @@ var Pagination = ({
11979
12207
  }
11980
12208
  ),
11981
12209
  listItems,
11982
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12210
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11983
12211
  "li",
11984
12212
  {
11985
12213
  className: cn(
@@ -11993,14 +12221,14 @@ var Pagination = ({
11993
12221
  ]
11994
12222
  }
11995
12223
  ),
11996
- !!smallScreenBreakpoint && /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
12224
+ !!smallScreenBreakpoint && /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
11997
12225
  ShowHide,
11998
12226
  {
11999
12227
  as: "ol",
12000
12228
  showBelow: smallScreenBreakpoint,
12001
12229
  className: Pagination_default.list,
12002
12230
  children: [
12003
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12231
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12004
12232
  "li",
12005
12233
  {
12006
12234
  className: cn(
@@ -12008,7 +12236,7 @@ var Pagination = ({
12008
12236
  isOnFirstPage && Pagination_default["list__item--hidden"]
12009
12237
  ),
12010
12238
  "aria-hidden": isOnFirstPage,
12011
- children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12239
+ children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12012
12240
  Button,
12013
12241
  {
12014
12242
  purpose: "secondary",
@@ -12022,7 +12250,7 @@ var Pagination = ({
12022
12250
  )
12023
12251
  }
12024
12252
  ),
12025
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12253
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12026
12254
  "li",
12027
12255
  {
12028
12256
  className: cn(
@@ -12033,7 +12261,7 @@ var Pagination = ({
12033
12261
  children: previousPageButton
12034
12262
  }
12035
12263
  ),
12036
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12264
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12037
12265
  Button,
12038
12266
  {
12039
12267
  size: "small",
@@ -12043,7 +12271,7 @@ var Pagination = ({
12043
12271
  children: activePage
12044
12272
  }
12045
12273
  ) }),
12046
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12274
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12047
12275
  "li",
12048
12276
  {
12049
12277
  className: cn(
@@ -12054,7 +12282,7 @@ var Pagination = ({
12054
12282
  children: nextPageButton
12055
12283
  }
12056
12284
  ),
12057
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12285
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12058
12286
  "li",
12059
12287
  {
12060
12288
  className: cn(
@@ -12062,7 +12290,7 @@ var Pagination = ({
12062
12290
  isOnLastPage && Pagination_default["list__item--hidden"]
12063
12291
  ),
12064
12292
  "aria-hidden": isOnLastPage,
12065
- children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12293
+ children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12066
12294
  Button,
12067
12295
  {
12068
12296
  purpose: "secondary",
@@ -12084,7 +12312,7 @@ var Pagination = ({
12084
12312
  ) : null;
12085
12313
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
12086
12314
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
12087
- return !withCounter && !withSelect ? navigation : /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
12315
+ return !withCounter && !withSelect ? navigation : /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
12088
12316
  Box,
12089
12317
  {
12090
12318
  display: "flex",
@@ -12095,7 +12323,7 @@ var Pagination = ({
12095
12323
  alignItems: styleUpToBreakpoint("center", smallScreenBreakpoint),
12096
12324
  ...baseHTMLProps,
12097
12325
  children: [
12098
- /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
12326
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
12099
12327
  Box,
12100
12328
  {
12101
12329
  display: "grid",
@@ -12103,7 +12331,7 @@ var Pagination = ({
12103
12331
  alignItems: "center",
12104
12332
  className: Pagination_default.indicators,
12105
12333
  children: [
12106
- withSelect && /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12334
+ withSelect && /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12107
12335
  Select,
12108
12336
  {
12109
12337
  options: tSelectOptions,
@@ -12119,7 +12347,7 @@ var Pagination = ({
12119
12347
  "aria-label": t(texts22.itemsPerPage)
12120
12348
  }
12121
12349
  ),
12122
- withCounter && /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(Paragraph, { typographyType: "bodyShortMedium", children: t(
12350
+ withCounter && /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Paragraph, { typographyType: "bodyShortMedium", children: t(
12123
12351
  texts22.showsAmountOfTotalItems(
12124
12352
  activePageFirstItem,
12125
12353
  activePageLastItem,
@@ -12150,20 +12378,6 @@ var texts22 = createTexts({
12150
12378
  en: "Items per page",
12151
12379
  se: "Elementat juohki siidui"
12152
12380
  },
12153
- nextPage: {
12154
- nb: "Neste side",
12155
- no: "Neste side",
12156
- nn: "Neste side",
12157
- en: "Next page",
12158
- se: "Boahte siidu"
12159
- },
12160
- previousPage: {
12161
- nb: "Forrige side",
12162
- no: "Forrige side",
12163
- nn: "F\xF8rre side",
12164
- en: "Previous page",
12165
- se: "Ovddit siidu"
12166
- },
12167
12381
  firstPage: {
12168
12382
  nb: "F\xF8rste side",
12169
12383
  no: "F\xF8rste side",
@@ -12178,20 +12392,6 @@ var texts22 = createTexts({
12178
12392
  en: "Last page",
12179
12393
  se: "Ma\u014Bimu\u0161 siidu"
12180
12394
  },
12181
- currentPage: (page) => ({
12182
- nb: `N\xE5v\xE6rende side (${page})`,
12183
- no: `N\xE5v\xE6rende side (${page})`,
12184
- nn: `Noverande side (${page})`,
12185
- en: `Current page (${page})`,
12186
- se: `D\xE1la siidu (${page})`
12187
- }),
12188
- page: (page) => ({
12189
- nb: `Side ${page}`,
12190
- no: `Side ${page}`,
12191
- nn: `Side ${page}`,
12192
- en: `Page ${page}`,
12193
- se: `Siidu ${page}`
12194
- }),
12195
12395
  showsAmountOfTotalItems: (first, last, total) => ({
12196
12396
  nb: `Viser ${first}-${last} av ${total}`,
12197
12397
  no: `Viser ${first}-${last} av ${total}`,
@@ -12609,7 +12809,7 @@ var PhoneInput_default = {
12609
12809
  };
12610
12810
 
12611
12811
  // src/components/PhoneInput/PhoneInput.tsx
12612
- var import_jsx_runtime309 = require("react/jsx-runtime");
12812
+ var import_jsx_runtime310 = require("react/jsx-runtime");
12613
12813
  var prioritizedCountries = [
12614
12814
  COUNTRIES.NO,
12615
12815
  COUNTRIES.SE,
@@ -12747,7 +12947,7 @@ var PhoneInput = ({
12747
12947
  const showRequiredStyling = !!(required || ariaRequired);
12748
12948
  const bp = props.smallScreenBreakpoint;
12749
12949
  const widthDefault = componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)";
12750
- return /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)("div", { className: cn(className, Input_default.container), style, children: [
12950
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)("div", { className: cn(className, Input_default.container), style, children: [
12751
12951
  renderLabel({
12752
12952
  label,
12753
12953
  htmlFor: phoneNumberId,
@@ -12755,7 +12955,7 @@ var PhoneInput = ({
12755
12955
  readOnly,
12756
12956
  afterLabelContent
12757
12957
  }),
12758
- /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
12958
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(
12759
12959
  Box,
12760
12960
  {
12761
12961
  display: "flex",
@@ -12768,8 +12968,8 @@ var PhoneInput = ({
12768
12968
  role: "group",
12769
12969
  "aria-label": tGroupLabel,
12770
12970
  children: [
12771
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
12772
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12971
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
12972
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
12773
12973
  NativeSelect,
12774
12974
  {
12775
12975
  width: styleUpToBreakpoint(
@@ -12790,11 +12990,11 @@ var PhoneInput = ({
12790
12990
  hasTip ? tipId : void 0,
12791
12991
  ariaDescribedby
12792
12992
  ]),
12793
- children: countryOptions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime309.jsx)("option", { value: item.countryCode, children: item.label }, index))
12993
+ children: countryOptions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime310.jsx)("option", { value: item.countryCode, children: item.label }, index))
12794
12994
  }
12795
12995
  ),
12796
- /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(Box, { width: "100%", display: "flex", className: Input_default["input-group"], children: [
12797
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12996
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(Box, { width: "100%", display: "flex", className: Input_default["input-group"], children: [
12997
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
12798
12998
  "span",
12799
12999
  {
12800
13000
  className: cn(
@@ -12806,7 +13006,7 @@ var PhoneInput = ({
12806
13006
  children: callingCode
12807
13007
  }
12808
13008
  ),
12809
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
13009
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
12810
13010
  Box,
12811
13011
  {
12812
13012
  as: StatefulInput,
@@ -12879,7 +13079,7 @@ var PopoverContext = (0, import_react78.createContext)({});
12879
13079
  var usePopoverContext = () => (0, import_react78.useContext)(PopoverContext);
12880
13080
 
12881
13081
  // src/components/Popover/Popover.tsx
12882
- var import_jsx_runtime310 = require("react/jsx-runtime");
13082
+ var import_jsx_runtime311 = require("react/jsx-runtime");
12883
13083
  var Popover = ({
12884
13084
  id,
12885
13085
  header,
@@ -12960,7 +13160,7 @@ var Popover = ({
12960
13160
  (0, import_react79.useEffect)(() => {
12961
13161
  setFloatOptions == null ? void 0 : setFloatOptions({ placement, offset });
12962
13162
  }, [placement, offset]);
12963
- useOnClickOutside([popoverRef.current, anchorEl], () => {
13163
+ useOnClickOutside([popoverRef, anchorRef], () => {
12964
13164
  if (isOpen && !hasContext) onClose == null ? void 0 : onClose();
12965
13165
  });
12966
13166
  useOnKeyDown("Escape", () => {
@@ -12968,7 +13168,7 @@ var Popover = ({
12968
13168
  });
12969
13169
  const hasTitle = !!header;
12970
13170
  const openCn = hasTransitionedIn && isOpen ? "open" : "closed";
12971
- const popover = /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(
13171
+ const popover = /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)(
12972
13172
  Paper,
12973
13173
  {
12974
13174
  ...getBaseHTMLProps(
@@ -12999,15 +13199,15 @@ var Popover = ({
12999
13199
  elevation: "large",
13000
13200
  border: "border-subtle",
13001
13201
  children: [
13002
- header && /* @__PURE__ */ (0, import_jsx_runtime310.jsx)("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
13003
- /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
13202
+ header && /* @__PURE__ */ (0, import_jsx_runtime311.jsx)("div", { className: Popover_default.header, children: typeof header === "string" ? /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(Heading, { level: 2, typographyType: "headingMedium", children: header }) : header }),
13203
+ /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
13004
13204
  "div",
13005
13205
  {
13006
13206
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-header"] : "",
13007
13207
  children
13008
13208
  }
13009
13209
  ),
13010
- withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
13210
+ withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
13011
13211
  Button,
13012
13212
  {
13013
13213
  icon: CloseIcon,
@@ -13027,7 +13227,7 @@ Popover.displayName = "Popover";
13027
13227
 
13028
13228
  // src/components/Popover/PopoverGroup.tsx
13029
13229
  var import_react80 = require("react");
13030
- var import_jsx_runtime311 = require("react/jsx-runtime");
13230
+ var import_jsx_runtime312 = require("react/jsx-runtime");
13031
13231
  var PopoverGroup = ({
13032
13232
  isOpen: propIsOpen,
13033
13233
  setIsOpen: propSetIsOpen,
@@ -13073,8 +13273,8 @@ var PopoverGroup = ({
13073
13273
  (_a2 = buttonRef.current) == null ? void 0 : _a2.focus();
13074
13274
  }
13075
13275
  });
13076
- const elements = [popoverRef.current];
13077
- if (buttonRef.current) elements.push(buttonRef.current);
13276
+ const elements = [popoverRef];
13277
+ if (buttonRef) elements.push(buttonRef);
13078
13278
  useOnClickOutside(elements, () => {
13079
13279
  if (open) handleClose();
13080
13280
  });
@@ -13088,7 +13288,7 @@ var PopoverGroup = ({
13088
13288
  ref: combinedAnchorRef
13089
13289
  }) : child);
13090
13290
  });
13091
- return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
13291
+ return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13092
13292
  PopoverContext,
13093
13293
  {
13094
13294
  value: {
@@ -13139,7 +13339,7 @@ var ProgressTracker_default = {
13139
13339
 
13140
13340
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
13141
13341
  var import_react82 = require("react");
13142
- var import_jsx_runtime312 = require("react/jsx-runtime");
13342
+ var import_jsx_runtime313 = require("react/jsx-runtime");
13143
13343
  var toItemState = (active, completed, disabled) => {
13144
13344
  if (disabled) {
13145
13345
  return "disabled";
@@ -13184,10 +13384,10 @@ var ProgressTrackerItem = (props) => {
13184
13384
  };
13185
13385
  const stepNumberContent = (0, import_react82.useMemo)(() => {
13186
13386
  if (completed) {
13187
- return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
13387
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
13188
13388
  }
13189
13389
  if (icon !== void 0) {
13190
- return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(Icon, { icon, iconSize: "small" });
13390
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(Icon, { icon, iconSize: "small" });
13191
13391
  }
13192
13392
  return stepNumber;
13193
13393
  }, [completed, icon, index]);
@@ -13196,8 +13396,8 @@ var ProgressTrackerItem = (props) => {
13196
13396
  if (active) return "text-action-resting";
13197
13397
  }
13198
13398
  const isInactiveLink = disabled || active;
13199
- const stepContent = /* @__PURE__ */ (0, import_jsx_runtime312.jsxs)(import_jsx_runtime312.Fragment, { children: [
13200
- /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13399
+ const stepContent = /* @__PURE__ */ (0, import_jsx_runtime313.jsxs)(import_jsx_runtime313.Fragment, { children: [
13400
+ /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13201
13401
  Box,
13202
13402
  {
13203
13403
  display: "flex",
@@ -13212,7 +13412,7 @@ var ProgressTrackerItem = (props) => {
13212
13412
  children: stepNumberContent
13213
13413
  }
13214
13414
  ),
13215
- /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13415
+ /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13216
13416
  Typography,
13217
13417
  {
13218
13418
  as: "div",
@@ -13228,14 +13428,14 @@ var ProgressTrackerItem = (props) => {
13228
13428
  )
13229
13429
  ] });
13230
13430
  const ariaLabel = (htmlProps == null ? void 0 : htmlProps["aria-label"]) ? htmlProps == null ? void 0 : htmlProps["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts24.completed) : t(texts24.uncompleted)}`;
13231
- return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13431
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13232
13432
  Box,
13233
13433
  {
13234
13434
  as: "li",
13235
13435
  display: direction === "row" ? "flex" : void 0,
13236
13436
  "aria-current": active ? "step" : void 0,
13237
13437
  className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
13238
- children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13438
+ children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13239
13439
  Box,
13240
13440
  {
13241
13441
  as: StylelessButton,
@@ -13260,7 +13460,7 @@ var ProgressTrackerItem = (props) => {
13260
13460
  disabled,
13261
13461
  children: stepContent
13262
13462
  }
13263
- ) : /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13463
+ ) : /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13264
13464
  "div",
13265
13465
  {
13266
13466
  ...getBaseHTMLProps(
@@ -13296,7 +13496,7 @@ var texts24 = createTexts({
13296
13496
  });
13297
13497
 
13298
13498
  // src/components/ProgressTracker/ProgressTracker.tsx
13299
- var import_jsx_runtime313 = require("react/jsx-runtime");
13499
+ var import_jsx_runtime314 = require("react/jsx-runtime");
13300
13500
  var ProgressTracker = (() => {
13301
13501
  const Res = ({
13302
13502
  id,
@@ -13327,7 +13527,7 @@ var ProgressTracker = (() => {
13327
13527
  }, [children]);
13328
13528
  const isRow = direction === "row";
13329
13529
  const { "aria-label": ariaLabel } = htmlProps;
13330
- return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13530
+ return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13331
13531
  ProgressTrackerContext,
13332
13532
  {
13333
13533
  value: {
@@ -13335,12 +13535,12 @@ var ProgressTracker = (() => {
13335
13535
  handleStepChange: handleChange,
13336
13536
  direction
13337
13537
  },
13338
- children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13538
+ children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13339
13539
  "nav",
13340
13540
  {
13341
13541
  "aria-label": ariaLabel != null ? ariaLabel : t(texts25.stepProgression),
13342
13542
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
13343
- children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13543
+ children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13344
13544
  Box,
13345
13545
  {
13346
13546
  as: StylelessOList,
@@ -13400,7 +13600,7 @@ var ProgressBar_default = {
13400
13600
  };
13401
13601
 
13402
13602
  // src/components/ProgressBar/ProgressBar.tsx
13403
- var import_jsx_runtime314 = require("react/jsx-runtime");
13603
+ var import_jsx_runtime315 = require("react/jsx-runtime");
13404
13604
  var PROGRESS_BAR_SIZES = createSizes("small", "medium");
13405
13605
  var ProgressBar = ({
13406
13606
  label,
@@ -13426,9 +13626,9 @@ var ProgressBar = ({
13426
13626
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
13427
13627
  const fillPrecentage = hasValidValue && value / (max != null ? max : 1) * 100 + "%";
13428
13628
  const isIndeterminate = !hasValidValue && !hasErrorMessage;
13429
- return /* @__PURE__ */ (0, import_jsx_runtime314.jsxs)(Box, { width: "100%", className, style, children: [
13629
+ return /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(Box, { width: "100%", className, style, children: [
13430
13630
  renderLabel({ label, htmlFor: uniqueId }),
13431
- /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13631
+ /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
13432
13632
  "progress",
13433
13633
  {
13434
13634
  id: uniqueId,
@@ -13444,13 +13644,13 @@ var ProgressBar = ({
13444
13644
  children: fillPrecentage
13445
13645
  }
13446
13646
  ),
13447
- /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13647
+ /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
13448
13648
  Box,
13449
13649
  {
13450
13650
  width: getInputWidth(width),
13451
13651
  height: size2 === "small" ? "x0.75" : "x1.5",
13452
13652
  className: cn(ProgressBar_default.progress),
13453
- children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13653
+ children: /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
13454
13654
  Box,
13455
13655
  {
13456
13656
  height: "100%",
@@ -13490,7 +13690,7 @@ var Search_default = {
13490
13690
 
13491
13691
  // src/components/Search/SearchSuggestionItem.tsx
13492
13692
  var import_react86 = require("react");
13493
- var import_jsx_runtime315 = require("react/jsx-runtime");
13693
+ var import_jsx_runtime316 = require("react/jsx-runtime");
13494
13694
  var SearchSuggestionItem = ({
13495
13695
  focus,
13496
13696
  ref,
@@ -13504,7 +13704,7 @@ var SearchSuggestionItem = ({
13504
13704
  (_a = itemRef.current) == null ? void 0 : _a.focus();
13505
13705
  }
13506
13706
  }, [focus]);
13507
- return /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
13707
+ return /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
13508
13708
  DropdownItem,
13509
13709
  {
13510
13710
  as: StylelessButton,
@@ -13517,7 +13717,7 @@ var SearchSuggestionItem = ({
13517
13717
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
13518
13718
 
13519
13719
  // src/components/Search/SearchSuggestions.tsx
13520
- var import_jsx_runtime316 = require("react/jsx-runtime");
13720
+ var import_jsx_runtime317 = require("react/jsx-runtime");
13521
13721
  var SearchSuggestions = ({
13522
13722
  id,
13523
13723
  searchId,
@@ -13537,7 +13737,7 @@ var SearchSuggestions = ({
13537
13737
  const { t } = useTranslation();
13538
13738
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
13539
13739
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
13540
- return /* @__PURE__ */ (0, import_jsx_runtime316.jsxs)(
13740
+ return /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)(
13541
13741
  Paper,
13542
13742
  {
13543
13743
  ...getBaseHTMLProps(
@@ -13562,9 +13762,9 @@ var SearchSuggestions = ({
13562
13762
  overflowY: "scroll",
13563
13763
  marginBlock: "x0.25 0",
13564
13764
  children: [
13565
- /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(DropdownHeader, { id: suggestionsHeaderId, children: t(texts26.searchSuggestions) }),
13566
- /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
13567
- return /* @__PURE__ */ (0, import_jsx_runtime316.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
13765
+ /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(DropdownHeader, { id: suggestionsHeaderId, children: t(texts26.searchSuggestions) }),
13766
+ /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
13767
+ return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13568
13768
  SearchSuggestionItem,
13569
13769
  {
13570
13770
  index,
@@ -13600,7 +13800,7 @@ var texts26 = createTexts({
13600
13800
  });
13601
13801
 
13602
13802
  // src/components/Search/Search.tsx
13603
- var import_jsx_runtime317 = require("react/jsx-runtime");
13803
+ var import_jsx_runtime318 = require("react/jsx-runtime");
13604
13804
  var Search = ({
13605
13805
  componentSize = "medium",
13606
13806
  buttonProps,
@@ -13648,7 +13848,7 @@ var Search = ({
13648
13848
  } = buttonProps != null ? buttonProps : {};
13649
13849
  const hasSuggestions = !!context.suggestions;
13650
13850
  const showSearchButton = !!buttonProps && !!onClick;
13651
- const inputGroup = /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)(
13851
+ const inputGroup = /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)(
13652
13852
  HStack,
13653
13853
  {
13654
13854
  position: "relative",
@@ -13659,7 +13859,7 @@ var Search = ({
13659
13859
  Input_default["input-group"]
13660
13860
  ),
13661
13861
  children: [
13662
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13862
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
13663
13863
  Icon,
13664
13864
  {
13665
13865
  icon: SearchIcon,
@@ -13670,7 +13870,7 @@ var Search = ({
13670
13870
  )
13671
13871
  }
13672
13872
  ),
13673
- /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13873
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
13674
13874
  Box,
13675
13875
  {
13676
13876
  as: Input,
@@ -13700,8 +13900,8 @@ var Search = ({
13700
13900
  )
13701
13901
  }
13702
13902
  ),
13703
- hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)(import_jsx_runtime317.Fragment, { children: [
13704
- /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13903
+ hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)(import_jsx_runtime318.Fragment, { children: [
13904
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
13705
13905
  SearchSuggestions,
13706
13906
  {
13707
13907
  id: suggestionsId,
@@ -13712,9 +13912,9 @@ var Search = ({
13712
13912
  showSuggestions: context.showSuggestions
13713
13913
  }
13714
13914
  ),
13715
- /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts27.useArrowKeys) })
13915
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts27.useArrowKeys) })
13716
13916
  ] }),
13717
- hasValue && /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13917
+ hasValue && /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
13718
13918
  ClearButton,
13719
13919
  {
13720
13920
  size: "component",
@@ -13729,10 +13929,10 @@ var Search = ({
13729
13929
  ]
13730
13930
  }
13731
13931
  );
13732
- return /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)("div", { children: [
13932
+ return /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)("div", { children: [
13733
13933
  renderLabel({ htmlFor: uniqueId, label }),
13734
- /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)("div", { children: [
13735
- showSearchButton ? /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)(
13934
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)("div", { children: [
13935
+ showSearchButton ? /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)(
13736
13936
  Grid,
13737
13937
  {
13738
13938
  className,
@@ -13744,7 +13944,7 @@ var Search = ({
13744
13944
  style,
13745
13945
  children: [
13746
13946
  inputGroup,
13747
- /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13947
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
13748
13948
  Button,
13749
13949
  {
13750
13950
  size: componentSize,
@@ -13787,7 +13987,7 @@ var texts27 = createTexts({
13787
13987
 
13788
13988
  // src/components/Search/SearchAutocompleteWrapper.tsx
13789
13989
  var import_react88 = require("react");
13790
- var import_jsx_runtime318 = require("react/jsx-runtime");
13990
+ var import_jsx_runtime319 = require("react/jsx-runtime");
13791
13991
  var SearchAutocompleteWrapper = (props) => {
13792
13992
  const {
13793
13993
  value,
@@ -13850,7 +14050,7 @@ var SearchAutocompleteWrapper = (props) => {
13850
14050
  };
13851
14051
  const inputRef = (0, import_react88.useRef)(null);
13852
14052
  const suggestionsRef = (0, import_react88.useRef)(null);
13853
- useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
14053
+ useOnClickOutside([inputRef, suggestionsRef], () => {
13854
14054
  closeSuggestions();
13855
14055
  });
13856
14056
  useOnKeyDown("Tab", () => closeSuggestions());
@@ -13863,7 +14063,7 @@ var SearchAutocompleteWrapper = (props) => {
13863
14063
  inputValue,
13864
14064
  onSugggestionClick: handleSuggestionClick
13865
14065
  };
13866
- return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(AutocompleteSearchContext, { value: contextProps, children });
14066
+ return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(AutocompleteSearchContext, { value: contextProps, children });
13867
14067
  };
13868
14068
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
13869
14069
 
@@ -13879,7 +14079,7 @@ var Skeleton_default = {
13879
14079
  };
13880
14080
 
13881
14081
  // src/components/Skeleton/Skeleton.tsx
13882
- var import_jsx_runtime319 = require("react/jsx-runtime");
14082
+ var import_jsx_runtime320 = require("react/jsx-runtime");
13883
14083
  var Skeleton = ({
13884
14084
  width,
13885
14085
  height,
@@ -13889,7 +14089,7 @@ var Skeleton = ({
13889
14089
  ref,
13890
14090
  ...rest
13891
14091
  }) => {
13892
- return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
14092
+ return /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13893
14093
  Box,
13894
14094
  {
13895
14095
  width,
@@ -13909,7 +14109,7 @@ var SkipToContent_default = {
13909
14109
  };
13910
14110
 
13911
14111
  // src/components/SkipToContent/SkipToContent.tsx
13912
- var import_jsx_runtime320 = require("react/jsx-runtime");
14112
+ var import_jsx_runtime321 = require("react/jsx-runtime");
13913
14113
  var SkipToContent = ({
13914
14114
  text = "Til hovedinnhold",
13915
14115
  top = 0,
@@ -13919,7 +14119,7 @@ var SkipToContent = ({
13919
14119
  style,
13920
14120
  ...rest
13921
14121
  }) => {
13922
- return /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
14122
+ return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
13923
14123
  Contrast,
13924
14124
  {
13925
14125
  padding: "x0.25",
@@ -13931,7 +14131,7 @@ var SkipToContent = ({
13931
14131
  className: cn(className, SkipToContent_default.wrapper),
13932
14132
  style,
13933
14133
  top,
13934
- children: /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(Link, { ...rest, ...htmlProps, id, typographyType: "bodyShortMedium", children: text })
14134
+ children: /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(Link, { ...rest, ...htmlProps, id, typographyType: "bodyShortMedium", children: text })
13935
14135
  }
13936
14136
  );
13937
14137
  };
@@ -13949,7 +14149,7 @@ var SplitButton_default = {
13949
14149
  };
13950
14150
 
13951
14151
  // src/components/SplitButton/SplitButton.tsx
13952
- var import_jsx_runtime321 = require("react/jsx-runtime");
14152
+ var import_jsx_runtime322 = require("react/jsx-runtime");
13953
14153
  var SplitButton = ({
13954
14154
  size: size2,
13955
14155
  primaryAction,
@@ -13964,8 +14164,8 @@ var SplitButton = ({
13964
14164
  purpose,
13965
14165
  size: size2
13966
14166
  };
13967
- return /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
13968
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
14167
+ return /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
14168
+ /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
13969
14169
  Button,
13970
14170
  {
13971
14171
  ...buttonStyleProps,
@@ -13974,8 +14174,8 @@ var SplitButton = ({
13974
14174
  className: SplitButton_default.main
13975
14175
  }
13976
14176
  ),
13977
- /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(OverflowMenuGroup, { isOpen, setIsOpen, children: [
13978
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
14177
+ /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(OverflowMenuGroup, { isOpen, setIsOpen, children: [
14178
+ /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
13979
14179
  Button,
13980
14180
  {
13981
14181
  ...buttonStyleProps,
@@ -13989,7 +14189,7 @@ var SplitButton = ({
13989
14189
  type: "button"
13990
14190
  }
13991
14191
  ),
13992
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
14192
+ /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(OverflowMenu, { placement: "bottom-end", children: /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(OverflowMenuList, { children: secondaryActions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(OverflowMenuButton, { ...item, children: item.children }, index)) }) })
13993
14193
  ] })
13994
14194
  ] });
13995
14195
  };
@@ -14016,14 +14216,14 @@ var CollapsibleTableContext = (0, import_react90.createContext)({
14016
14216
  var useCollapsibleTableContext = () => (0, import_react90.useContext)(CollapsibleTableContext);
14017
14217
 
14018
14218
  // src/components/Table/normal/Body.tsx
14019
- var import_jsx_runtime322 = require("react/jsx-runtime");
14020
- var Body = (props) => /* @__PURE__ */ (0, import_jsx_runtime322.jsx)("tbody", { ...props });
14219
+ var import_jsx_runtime323 = require("react/jsx-runtime");
14220
+ var Body = (props) => /* @__PURE__ */ (0, import_jsx_runtime323.jsx)("tbody", { ...props });
14021
14221
  Body.displayName = "Table.Body";
14022
14222
 
14023
14223
  // src/components/Table/normal/Head.tsx
14024
14224
  var import_react91 = require("react");
14025
- var import_jsx_runtime323 = require("react/jsx-runtime");
14026
- var Head = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime323.jsx)("thead", { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime323.jsx)(HeadContext, { value: true, children }) });
14225
+ var import_jsx_runtime324 = require("react/jsx-runtime");
14226
+ var Head = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime324.jsx)("thead", { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(HeadContext, { value: true, children }) });
14027
14227
  var HeadContext = (0, import_react91.createContext)(false);
14028
14228
  function useIsInTableHead() {
14029
14229
  const isInTableHead = (0, import_react91.useContext)(HeadContext);
@@ -14031,7 +14231,7 @@ function useIsInTableHead() {
14031
14231
  }
14032
14232
 
14033
14233
  // src/components/Table/normal/Cell.tsx
14034
- var import_jsx_runtime324 = require("react/jsx-runtime");
14234
+ var import_jsx_runtime325 = require("react/jsx-runtime");
14035
14235
  var Cell = ({
14036
14236
  children,
14037
14237
  type: _type,
@@ -14044,7 +14244,7 @@ var Cell = ({
14044
14244
  const type = _type != null ? _type : isInHead ? "head" : "data";
14045
14245
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
14046
14246
  const isComplexLayout = layout === "text and icon";
14047
- return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
14247
+ return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
14048
14248
  "th",
14049
14249
  {
14050
14250
  ...rest,
@@ -14053,26 +14253,26 @@ var Cell = ({
14053
14253
  !isComplexLayout && Table_default[`cell--${layout}`],
14054
14254
  Table_default["cell--head"]
14055
14255
  ),
14056
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime324.jsx)("div", { className: Table_default.cell__inner, children }) : children
14256
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime325.jsx)("div", { className: Table_default.cell__inner, children }) : children
14057
14257
  }
14058
- ) : /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
14258
+ ) : /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
14059
14259
  "td",
14060
14260
  {
14061
14261
  ...rest,
14062
14262
  className: cn(className, !isComplexLayout && Table_default[`cell--${layout}`]),
14063
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime324.jsx)("div", { className: Table_default.cell__inner, children }) : children
14263
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime325.jsx)("div", { className: Table_default.cell__inner, children }) : children
14064
14264
  }
14065
14265
  );
14066
14266
  };
14067
14267
  Cell.displayName = "Table.Cell";
14068
14268
 
14069
14269
  // src/components/Table/normal/Foot.tsx
14070
- var import_jsx_runtime325 = require("react/jsx-runtime");
14071
- var Foot = (props) => /* @__PURE__ */ (0, import_jsx_runtime325.jsx)("tfoot", { ...props });
14270
+ var import_jsx_runtime326 = require("react/jsx-runtime");
14271
+ var Foot = (props) => /* @__PURE__ */ (0, import_jsx_runtime326.jsx)("tfoot", { ...props });
14072
14272
  Foot.displayName = "Table.Foot";
14073
14273
 
14074
14274
  // src/components/Table/normal/Row.tsx
14075
- var import_jsx_runtime326 = require("react/jsx-runtime");
14275
+ var import_jsx_runtime327 = require("react/jsx-runtime");
14076
14276
  var Row = ({
14077
14277
  type: _type,
14078
14278
  mode = "normal",
@@ -14083,7 +14283,7 @@ var Row = ({
14083
14283
  }) => {
14084
14284
  const isInHeader = useIsInTableHead();
14085
14285
  const type = _type != null ? _type : isInHeader ? "head" : "body";
14086
- return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
14286
+ return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
14087
14287
  "tr",
14088
14288
  {
14089
14289
  className: cn(
@@ -14103,7 +14303,7 @@ var Row = ({
14103
14303
  Row.displayName = "Table.Row";
14104
14304
 
14105
14305
  // src/components/Table/normal/SortCell.tsx
14106
- var import_jsx_runtime327 = require("react/jsx-runtime");
14306
+ var import_jsx_runtime328 = require("react/jsx-runtime");
14107
14307
  var SortCell = ({
14108
14308
  isSorted,
14109
14309
  sortOrder,
@@ -14117,13 +14317,13 @@ var SortCell = ({
14117
14317
  if (sortOrder === "ascending") return ChevronDownIcon;
14118
14318
  return ChevronUpIcon;
14119
14319
  };
14120
- return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
14320
+ return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
14121
14321
  Cell,
14122
14322
  {
14123
14323
  type: "head",
14124
14324
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
14125
14325
  ...rest,
14126
- children: /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
14326
+ children: /* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(
14127
14327
  StylelessButton,
14128
14328
  {
14129
14329
  onClick,
@@ -14132,7 +14332,7 @@ var SortCell = ({
14132
14332
  children: [
14133
14333
  children,
14134
14334
  " ",
14135
- /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(Icon, { icon: SortIcon(), iconSize: "component" })
14335
+ /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(Icon, { icon: SortIcon(), iconSize: "component" })
14136
14336
  ]
14137
14337
  }
14138
14338
  )
@@ -14151,7 +14351,7 @@ var texts29 = createTexts({
14151
14351
  });
14152
14352
 
14153
14353
  // src/components/Table/normal/Table.tsx
14154
- var import_jsx_runtime328 = require("react/jsx-runtime");
14354
+ var import_jsx_runtime329 = require("react/jsx-runtime");
14155
14355
  var Table = ({
14156
14356
  size: size2 = "medium",
14157
14357
  stickyHeader,
@@ -14170,7 +14370,7 @@ var Table = ({
14170
14370
  return "medium";
14171
14371
  }
14172
14372
  };
14173
- return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
14373
+ return /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
14174
14374
  "table",
14175
14375
  {
14176
14376
  ...rest,
@@ -14192,7 +14392,7 @@ Table.displayName = "Table";
14192
14392
 
14193
14393
  // src/components/Table/normal/TableWrapper.tsx
14194
14394
  var import_react92 = require("react");
14195
- var import_jsx_runtime329 = require("react/jsx-runtime");
14395
+ var import_jsx_runtime330 = require("react/jsx-runtime");
14196
14396
  var TableWrapper = ({ className, ...rest }) => {
14197
14397
  const themeContext = (0, import_react92.useContext)(ThemeContext);
14198
14398
  const container2 = themeContext == null ? void 0 : themeContext.el;
@@ -14217,7 +14417,7 @@ var TableWrapper = ({ className, ...rest }) => {
14217
14417
  window.addEventListener("resize", handleResize);
14218
14418
  return () => window.removeEventListener("resize", handleResize);
14219
14419
  });
14220
- return /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
14420
+ return /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
14221
14421
  "div",
14222
14422
  {
14223
14423
  ref: wrapperRef,
@@ -14244,7 +14444,7 @@ Table2.Row = Row;
14244
14444
  Table2.Foot = Foot;
14245
14445
 
14246
14446
  // src/components/Table/collapsible/CollapsibleRow.tsx
14247
- var import_jsx_runtime330 = require("react/jsx-runtime");
14447
+ var import_jsx_runtime331 = require("react/jsx-runtime");
14248
14448
  var CollapsibleRow = ({
14249
14449
  type: _type,
14250
14450
  className,
@@ -14287,24 +14487,24 @@ var CollapsibleRow = ({
14287
14487
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
14288
14488
  const id = derivativeIdGenerator(prefix2, index.toString());
14289
14489
  collapsibleIds.push(id);
14290
- return /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(import_react93.Fragment, { children: [
14291
- /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
14490
+ return /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(import_react93.Fragment, { children: [
14491
+ /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
14292
14492
  (0, import_react93.isValidElement)(child) && (0, import_react93.cloneElement)(child, {
14293
14493
  collapsibleProps: { isCollapsibleChild: true }
14294
14494
  })
14295
14495
  ] }, `DL-${index}`);
14296
14496
  }) : null;
14297
- const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
14497
+ const collapsedRows = collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(Row, { ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(Cell, { colSpan: definingColumnIndex.length + 1, children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(DescriptionList, { children: collapsedRenderedChildren }) }) }) : null;
14298
14498
  const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
14299
14499
  return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
14300
14500
  });
14301
14501
  const headerRow = () => {
14302
14502
  if (type !== "head" || !isCollapsed) return null;
14303
- return /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(import_jsx_runtime330.Fragment, { children: [
14503
+ return /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(import_jsx_runtime331.Fragment, { children: [
14304
14504
  definingColumnCells,
14305
- /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
14505
+ /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
14306
14506
  t(texts30.expand),
14307
- /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(VisuallyHidden, { children: t(texts30.row) })
14507
+ /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(VisuallyHidden, { children: t(texts30.row) })
14308
14508
  ] })
14309
14509
  ] }) });
14310
14510
  };
@@ -14312,16 +14512,16 @@ var CollapsibleRow = ({
14312
14512
  const rowWithChevron = () => {
14313
14513
  if (type !== "body" || !isCollapsed) return null;
14314
14514
  const iconState = childrenCollapsed ? "down" : "up";
14315
- return /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
14515
+ return /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
14316
14516
  definingColumnCells,
14317
- /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
14517
+ /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
14318
14518
  StylelessButton,
14319
14519
  {
14320
14520
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
14321
14521
  "aria-expanded": !childrenCollapsed,
14322
14522
  "aria-controls": idList,
14323
14523
  className: cn(Table_default["collapse-button"], focusable),
14324
- children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
14524
+ children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
14325
14525
  Icon,
14326
14526
  {
14327
14527
  icon: AnimatedChevronUpDownIcon,
@@ -14333,13 +14533,13 @@ var CollapsibleRow = ({
14333
14533
  ) })
14334
14534
  ] });
14335
14535
  };
14336
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(import_jsx_runtime330.Fragment, { children: [
14536
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(import_jsx_runtime331.Fragment, { children: [
14337
14537
  headerRow(),
14338
- type === "body" && /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(import_jsx_runtime330.Fragment, { children: [
14538
+ type === "body" && /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(import_jsx_runtime331.Fragment, { children: [
14339
14539
  rowWithChevron(),
14340
14540
  childrenCollapsed ? null : collapsedRows
14341
14541
  ] })
14342
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(Row, { ref, ...rowProps(), children });
14542
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(Row, { ref, ...rowProps(), children });
14343
14543
  };
14344
14544
  CollapsibleRow.displayName = "CollapsibleTable.Row";
14345
14545
  var texts30 = createTexts({
@@ -14360,14 +14560,14 @@ var texts30 = createTexts({
14360
14560
  });
14361
14561
 
14362
14562
  // src/components/Table/collapsible/CollapsibleTable.tsx
14363
- var import_jsx_runtime331 = require("react/jsx-runtime");
14563
+ var import_jsx_runtime332 = require("react/jsx-runtime");
14364
14564
  var CollapsibleTable = ({
14365
14565
  isCollapsed,
14366
14566
  headerValues,
14367
14567
  definingColumnIndex = [0],
14368
14568
  ...rest
14369
14569
  }) => {
14370
- return /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
14570
+ return /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(
14371
14571
  CollapsibleTableContext,
14372
14572
  {
14373
14573
  value: {
@@ -14375,7 +14575,7 @@ var CollapsibleTable = ({
14375
14575
  headerValues,
14376
14576
  definingColumnIndex
14377
14577
  },
14378
- children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(Table2, { ...rest })
14578
+ children: /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(Table2, { ...rest })
14379
14579
  }
14380
14580
  );
14381
14581
  };
@@ -14421,13 +14621,13 @@ var Tabs_default = {
14421
14621
 
14422
14622
  // src/components/Tabs/TabWidthContext.tsx
14423
14623
  var import_react95 = require("react");
14424
- var import_jsx_runtime332 = require("react/jsx-runtime");
14624
+ var import_jsx_runtime333 = require("react/jsx-runtime");
14425
14625
  var TabContext = (0, import_react95.createContext)(null);
14426
14626
  function TabWidthContextProvider({
14427
14627
  children,
14428
14628
  onChangeWidths
14429
14629
  }) {
14430
- return /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(
14630
+ return /* @__PURE__ */ (0, import_jsx_runtime333.jsx)(
14431
14631
  TabContext,
14432
14632
  {
14433
14633
  value: {
@@ -14459,7 +14659,7 @@ function useSetTabWidth(index, width) {
14459
14659
  }
14460
14660
 
14461
14661
  // src/components/Tabs/AddTabButton.tsx
14462
- var import_jsx_runtime333 = require("react/jsx-runtime");
14662
+ var import_jsx_runtime334 = require("react/jsx-runtime");
14463
14663
  var AddTabButton = ({
14464
14664
  ref,
14465
14665
  children,
@@ -14472,7 +14672,7 @@ var AddTabButton = ({
14472
14672
  const buttonRef = (0, import_react96.useRef)(null);
14473
14673
  const combinedRef = useCombinedRef(ref, buttonRef);
14474
14674
  const { tabContentDirection, size: size2 } = useTabsContext();
14475
- return /* @__PURE__ */ (0, import_jsx_runtime333.jsxs)(
14675
+ return /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(
14476
14676
  "button",
14477
14677
  {
14478
14678
  ...rest,
@@ -14485,8 +14685,8 @@ var AddTabButton = ({
14485
14685
  focus_default["focusable--inset"]
14486
14686
  ),
14487
14687
  children: [
14488
- /* @__PURE__ */ (0, import_jsx_runtime333.jsx)(Icon, { icon: PlusIcon, iconSize: "inherit" }),
14489
- /* @__PURE__ */ (0, import_jsx_runtime333.jsx)("span", { children })
14688
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(Icon, { icon: PlusIcon, iconSize: "inherit" }),
14689
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("span", { children })
14490
14690
  ]
14491
14691
  }
14492
14692
  );
@@ -14495,7 +14695,7 @@ AddTabButton.displayName = "AddTabButton";
14495
14695
 
14496
14696
  // src/components/Tabs/Tabs.tsx
14497
14697
  var import_react97 = require("react");
14498
- var import_jsx_runtime334 = require("react/jsx-runtime");
14698
+ var import_jsx_runtime335 = require("react/jsx-runtime");
14499
14699
  var TABS_SIZES = createSizes("small", "medium");
14500
14700
  var Tabs = ({
14501
14701
  id,
@@ -14526,7 +14726,7 @@ var Tabs = ({
14526
14726
  setActiveTab(activeTab);
14527
14727
  }
14528
14728
  }, [activeTab, thisActiveTab]);
14529
- return /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
14729
+ return /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
14530
14730
  TabsContext,
14531
14731
  {
14532
14732
  value: {
@@ -14541,7 +14741,7 @@ var Tabs = ({
14541
14741
  tabContentDirection,
14542
14742
  addTabButtonProps
14543
14743
  },
14544
- children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
14744
+ children: /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
14545
14745
  Box,
14546
14746
  {
14547
14747
  ...getBaseHTMLProps(uniqueId, className, style, htmlProps, rest),
@@ -14556,7 +14756,7 @@ Tabs.displayName = "Tabs";
14556
14756
 
14557
14757
  // src/components/Tabs/Tab.tsx
14558
14758
  var import_react98 = require("react");
14559
- var import_jsx_runtime335 = require("react/jsx-runtime");
14759
+ var import_jsx_runtime336 = require("react/jsx-runtime");
14560
14760
  var Tab = ({
14561
14761
  active = false,
14562
14762
  icon,
@@ -14599,7 +14799,7 @@ var Tab = ({
14599
14799
  handleSelect();
14600
14800
  onKeyDown == null ? void 0 : onKeyDown(e);
14601
14801
  };
14602
- return /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)(
14802
+ return /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
14603
14803
  "button",
14604
14804
  {
14605
14805
  ...getBaseHTMLProps(
@@ -14624,8 +14824,8 @@ var Tab = ({
14624
14824
  onKeyDown: handleOnKeyDown,
14625
14825
  tabIndex: focus ? 0 : -1,
14626
14826
  children: [
14627
- icon && /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(Icon, { icon, iconSize: "component" }),
14628
- /* @__PURE__ */ (0, import_jsx_runtime335.jsx)("span", { children })
14827
+ icon && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(Icon, { icon, iconSize: "component" }),
14828
+ /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("span", { children })
14629
14829
  ]
14630
14830
  }
14631
14831
  );
@@ -14634,7 +14834,7 @@ Tab.displayName = "Tab";
14634
14834
 
14635
14835
  // src/components/Tabs/TabList.tsx
14636
14836
  var import_react99 = require("react");
14637
- var import_jsx_runtime336 = require("react/jsx-runtime");
14837
+ var import_jsx_runtime337 = require("react/jsx-runtime");
14638
14838
  var TabList = ({
14639
14839
  children,
14640
14840
  id,
@@ -14692,7 +14892,7 @@ var TabList = ({
14692
14892
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
14693
14893
  ["--dds-tab-widths"]: widths.join(" ")
14694
14894
  };
14695
- return /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
14895
+ return /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
14696
14896
  "div",
14697
14897
  {
14698
14898
  ...rest,
@@ -14712,7 +14912,7 @@ var TabList = ({
14712
14912
  style: { ...style, ...customWidths },
14713
14913
  children: [
14714
14914
  tabListChildren,
14715
- hasButton && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
14915
+ hasButton && /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
14716
14916
  AddTabButton,
14717
14917
  {
14718
14918
  index: tabListChildren ? tabListChildren.length : 0,
@@ -14726,7 +14926,7 @@ var TabList = ({
14726
14926
  TabList.displayName = "TabList";
14727
14927
 
14728
14928
  // src/components/Tabs/TabPanel.tsx
14729
- var import_jsx_runtime337 = require("react/jsx-runtime");
14929
+ var import_jsx_runtime338 = require("react/jsx-runtime");
14730
14930
  var TabPanel = ({
14731
14931
  active = false,
14732
14932
  children,
@@ -14736,7 +14936,7 @@ var TabPanel = ({
14736
14936
  htmlProps,
14737
14937
  padding = "x0.25",
14738
14938
  ...rest
14739
- }) => /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
14939
+ }) => /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
14740
14940
  Box,
14741
14941
  {
14742
14942
  padding,
@@ -14751,7 +14951,7 @@ TabPanel.displayName = "TabPanel";
14751
14951
 
14752
14952
  // src/components/Tabs/TabPanels.tsx
14753
14953
  var import_react100 = require("react");
14754
- var import_jsx_runtime338 = require("react/jsx-runtime");
14954
+ var import_jsx_runtime339 = require("react/jsx-runtime");
14755
14955
  var TabPanels = ({ children, ref, ...rest }) => {
14756
14956
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
14757
14957
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
@@ -14766,7 +14966,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
14766
14966
  }
14767
14967
  });
14768
14968
  });
14769
- return /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(Box, { ref: combinedRef, ...rest, children: panelChildren });
14969
+ return /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(Box, { ref: combinedRef, ...rest, children: panelChildren });
14770
14970
  };
14771
14971
  TabPanels.displayName = "TabPanels";
14772
14972
 
@@ -14787,7 +14987,7 @@ var Tag_default = {
14787
14987
  };
14788
14988
 
14789
14989
  // src/components/Tag/Tag.tsx
14790
- var import_jsx_runtime339 = require("react/jsx-runtime");
14990
+ var import_jsx_runtime340 = require("react/jsx-runtime");
14791
14991
  var icons3 = {
14792
14992
  info: InfoIcon,
14793
14993
  danger: ErrorIcon,
@@ -14814,7 +15014,7 @@ var Tag = ({
14814
15014
  ...rest
14815
15015
  }) => {
14816
15016
  const icon = icons3[purpose];
14817
- return /* @__PURE__ */ (0, import_jsx_runtime339.jsxs)(
15017
+ return /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
14818
15018
  TextOverflowEllipsisWrapper,
14819
15019
  {
14820
15020
  ...getBaseHTMLProps(
@@ -14831,8 +15031,8 @@ var Tag = ({
14831
15031
  rest
14832
15032
  ),
14833
15033
  children: [
14834
- withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(Icon, { icon, iconSize: "component" }),
14835
- /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(TextOverflowEllipsisInner, { children })
15034
+ withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(Icon, { icon, iconSize: "component" }),
15035
+ /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(TextOverflowEllipsisInner, { children })
14836
15036
  ]
14837
15037
  }
14838
15038
  );
@@ -14855,7 +15055,7 @@ var TextInput_default = {
14855
15055
  };
14856
15056
 
14857
15057
  // src/components/TextInput/TextInput.tsx
14858
- var import_jsx_runtime340 = require("react/jsx-runtime");
15058
+ var import_jsx_runtime341 = require("react/jsx-runtime");
14859
15059
  var TextInput = ({
14860
15060
  label,
14861
15061
  afterLabelContent,
@@ -14955,7 +15155,7 @@ var TextInput = ({
14955
15155
  disabled && TextInput_default["affix--disabled"]
14956
15156
  ];
14957
15157
  if (hasIcon) {
14958
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
15158
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
14959
15159
  Box,
14960
15160
  {
14961
15161
  className: cn(
@@ -14964,7 +15164,7 @@ var TextInput = ({
14964
15164
  ),
14965
15165
  width: inputWidth,
14966
15166
  children: [
14967
- /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
15167
+ /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
14968
15168
  Icon,
14969
15169
  {
14970
15170
  icon,
@@ -14975,7 +15175,7 @@ var TextInput = ({
14975
15175
  )
14976
15176
  }
14977
15177
  ),
14978
- /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
15178
+ /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
14979
15179
  StatefulInput,
14980
15180
  {
14981
15181
  className: cn(
@@ -14989,7 +15189,7 @@ var TextInput = ({
14989
15189
  }
14990
15190
  );
14991
15191
  } else if (hasAffix) {
14992
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
15192
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
14993
15193
  Box,
14994
15194
  {
14995
15195
  position: "relative",
@@ -14997,7 +15197,7 @@ var TextInput = ({
14997
15197
  alignItems: "center",
14998
15198
  width: inputWidth,
14999
15199
  children: [
15000
- prefix2 && /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
15200
+ prefix2 && /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
15001
15201
  "span",
15002
15202
  {
15003
15203
  ref: prefixRef,
@@ -15010,7 +15210,7 @@ var TextInput = ({
15010
15210
  children: prefix2
15011
15211
  }
15012
15212
  ),
15013
- /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
15213
+ /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
15014
15214
  StatefulInput,
15015
15215
  {
15016
15216
  style: {
@@ -15021,7 +15221,7 @@ var TextInput = ({
15021
15221
  ...generalInputProps
15022
15222
  }
15023
15223
  ),
15024
- suffix && /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
15224
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
15025
15225
  "span",
15026
15226
  {
15027
15227
  ref: suffixRef,
@@ -15039,7 +15239,7 @@ var TextInput = ({
15039
15239
  }
15040
15240
  );
15041
15241
  }
15042
- return /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
15242
+ return /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
15043
15243
  "div",
15044
15244
  {
15045
15245
  className: cn(
@@ -15058,8 +15258,8 @@ var TextInput = ({
15058
15258
  readOnly,
15059
15259
  afterLabelContent
15060
15260
  }),
15061
- extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
15062
- hasBottomContainer && /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
15261
+ extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
15262
+ hasBottomContainer && /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
15063
15263
  Box,
15064
15264
  {
15065
15265
  display: "flex",
@@ -15104,7 +15304,7 @@ var ToggleBar_default = {
15104
15304
  };
15105
15305
 
15106
15306
  // src/components/ToggleBar/ToggleBar.tsx
15107
- var import_jsx_runtime341 = require("react/jsx-runtime");
15307
+ var import_jsx_runtime342 = require("react/jsx-runtime");
15108
15308
  var ToggleBar = (props) => {
15109
15309
  const {
15110
15310
  children,
@@ -15129,7 +15329,7 @@ var ToggleBar = (props) => {
15129
15329
  (e) => onChange && onChange(e, e.target.value)
15130
15330
  );
15131
15331
  const labelId = label && `${uniqueId}-label`;
15132
- return /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
15332
+ return /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(
15133
15333
  ToggleBarContext,
15134
15334
  {
15135
15335
  value: {
@@ -15139,7 +15339,7 @@ var ToggleBar = (props) => {
15139
15339
  name,
15140
15340
  value: groupValue
15141
15341
  },
15142
- children: /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
15342
+ children: /* @__PURE__ */ (0, import_jsx_runtime342.jsxs)(
15143
15343
  VStack,
15144
15344
  {
15145
15345
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -15148,8 +15348,8 @@ var ToggleBar = (props) => {
15148
15348
  role: "radiogroup",
15149
15349
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
15150
15350
  children: [
15151
- label && /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
15152
- /* @__PURE__ */ (0, import_jsx_runtime341.jsx)("div", { className: ToggleBar_default.bar, children })
15351
+ label && /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
15352
+ /* @__PURE__ */ (0, import_jsx_runtime342.jsx)("div", { className: ToggleBar_default.bar, children })
15153
15353
  ]
15154
15354
  }
15155
15355
  )
@@ -15160,7 +15360,7 @@ ToggleBar.displayName = "ToggleBar";
15160
15360
 
15161
15361
  // src/components/ToggleBar/ToggleRadio.tsx
15162
15362
  var import_react104 = require("react");
15163
- var import_jsx_runtime342 = require("react/jsx-runtime");
15363
+ var import_jsx_runtime343 = require("react/jsx-runtime");
15164
15364
  var typographyTypes = {
15165
15365
  large: "bodyShortLarge",
15166
15366
  medium: "bodyShortMedium",
@@ -15203,13 +15403,13 @@ var ToggleRadio = ({
15203
15403
  const hasLabel = !!label;
15204
15404
  const hasIcon = !!icon;
15205
15405
  const contentTypeCn = !hasLabel ? "just-icon" : !hasIcon ? "just-text" : "with-text-and-icon";
15206
- return /* @__PURE__ */ (0, import_jsx_runtime342.jsxs)(
15406
+ return /* @__PURE__ */ (0, import_jsx_runtime343.jsxs)(
15207
15407
  "label",
15208
15408
  {
15209
15409
  htmlFor: uniqueId,
15210
15410
  className: cn(ToggleBar_default.label, ToggleBar_default[`label--${group.purpose}`]),
15211
15411
  children: [
15212
- /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(
15412
+ /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(
15213
15413
  HiddenInput,
15214
15414
  {
15215
15415
  ...getBaseHTMLProps(
@@ -15228,7 +15428,7 @@ var ToggleRadio = ({
15228
15428
  "aria-labelledby": ariaLabelledBy
15229
15429
  }
15230
15430
  ),
15231
- /* @__PURE__ */ (0, import_jsx_runtime342.jsxs)(
15431
+ /* @__PURE__ */ (0, import_jsx_runtime343.jsxs)(
15232
15432
  Typography,
15233
15433
  {
15234
15434
  as: "span",
@@ -15241,8 +15441,8 @@ var ToggleRadio = ({
15241
15441
  focus_default["focus-styled-sibling"]
15242
15442
  ),
15243
15443
  children: [
15244
- icon && /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(Icon, { icon, iconSize: "component" }),
15245
- label && /* @__PURE__ */ (0, import_jsx_runtime342.jsx)("span", { children: label })
15444
+ icon && /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(Icon, { icon, iconSize: "component" }),
15445
+ label && /* @__PURE__ */ (0, import_jsx_runtime343.jsx)("span", { children: label })
15246
15446
  ]
15247
15447
  }
15248
15448
  )
@@ -15264,7 +15464,7 @@ var ToggleButton_default = {
15264
15464
  };
15265
15465
 
15266
15466
  // src/components/ToggleButton/ToggleButton.tsx
15267
- var import_jsx_runtime343 = require("react/jsx-runtime");
15467
+ var import_jsx_runtime344 = require("react/jsx-runtime");
15268
15468
  var ToggleButton = ({
15269
15469
  id,
15270
15470
  label,
@@ -15278,8 +15478,8 @@ var ToggleButton = ({
15278
15478
  const generatedId = (0, import_react105.useId)();
15279
15479
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
15280
15480
  const hasIcon = !!icon;
15281
- return /* @__PURE__ */ (0, import_jsx_runtime343.jsxs)(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
15282
- /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(
15481
+ return /* @__PURE__ */ (0, import_jsx_runtime344.jsxs)(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
15482
+ /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(
15283
15483
  HiddenInput,
15284
15484
  {
15285
15485
  ...getBaseHTMLProps(
@@ -15292,7 +15492,7 @@ var ToggleButton = ({
15292
15492
  type: "checkbox"
15293
15493
  }
15294
15494
  ),
15295
- /* @__PURE__ */ (0, import_jsx_runtime343.jsxs)(
15495
+ /* @__PURE__ */ (0, import_jsx_runtime344.jsxs)(
15296
15496
  "span",
15297
15497
  {
15298
15498
  className: cn(
@@ -15303,7 +15503,7 @@ var ToggleButton = ({
15303
15503
  focus_default["focus-styled-sibling"]
15304
15504
  ),
15305
15505
  children: [
15306
- hasIcon && /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(Icon, { icon, iconSize: "component" }),
15506
+ hasIcon && /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(Icon, { icon, iconSize: "component" }),
15307
15507
  " ",
15308
15508
  label
15309
15509
  ]
@@ -15315,7 +15515,7 @@ ToggleButton.displayName = "ToggleButton";
15315
15515
 
15316
15516
  // src/components/ToggleButton/ToggleButtonGroup.tsx
15317
15517
  var import_react106 = require("react");
15318
- var import_jsx_runtime344 = require("react/jsx-runtime");
15518
+ var import_jsx_runtime345 = require("react/jsx-runtime");
15319
15519
  var ToggleButtonGroup = (props) => {
15320
15520
  const {
15321
15521
  children,
@@ -15330,7 +15530,7 @@ var ToggleButtonGroup = (props) => {
15330
15530
  } = props;
15331
15531
  const generatedId = (0, import_react106.useId)();
15332
15532
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
15333
- return /* @__PURE__ */ (0, import_jsx_runtime344.jsxs)(
15533
+ return /* @__PURE__ */ (0, import_jsx_runtime345.jsxs)(
15334
15534
  "div",
15335
15535
  {
15336
15536
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -15338,7 +15538,7 @@ var ToggleButtonGroup = (props) => {
15338
15538
  "aria-labelledby": label ? uniqueLabelId : void 0,
15339
15539
  children: [
15340
15540
  renderGroupLabel({ label, id: uniqueLabelId }),
15341
- /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
15541
+ /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
15342
15542
  ]
15343
15543
  }
15344
15544
  );
@@ -15558,6 +15758,7 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
15558
15758
  MoreHorizontalIcon,
15559
15759
  MoreVerticalIcon,
15560
15760
  NativeSelect,
15761
+ NewsPopover,
15561
15762
  NotarialIcon,
15562
15763
  NotebookPenIcon,
15563
15764
  NotificationsIcon,