@norges-domstoler/dds-components 22.11.0 → 23.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.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",
@@ -643,7 +642,8 @@ var useFloatPosition = (arrowRef, options = {}) => {
643
642
  strategy,
644
643
  middlewareData,
645
644
  placement: actualPlacement,
646
- refs
645
+ refs,
646
+ isPositioned
647
647
  } = (0, import_react_dom.useFloating)({
648
648
  placement,
649
649
  middleware,
@@ -651,6 +651,7 @@ var useFloatPosition = (arrowRef, options = {}) => {
651
651
  });
652
652
  return {
653
653
  refs,
654
+ isPositioned,
654
655
  styles: {
655
656
  floating: {
656
657
  position: strategy,
@@ -752,6 +753,21 @@ var TEXT_COLORS = [
752
753
  "icon-subtle",
753
754
  "icon-medium"
754
755
  ];
756
+ var ICON_COLORS = [
757
+ ...TEXT_COLORS,
758
+ "brand-primary-default",
759
+ "brand-primary-strong",
760
+ "brand-primary-medium",
761
+ "brand-primary-subtle",
762
+ "brand-secondary-default",
763
+ "brand-secondary-strong",
764
+ "brand-secondary-medium",
765
+ "brand-secondary-subtle",
766
+ "brand-tertiary-default",
767
+ "brand-tertiary-strong",
768
+ "brand-tertiary-medium",
769
+ "brand-tertiary-subtle"
770
+ ];
755
771
  var TEXT_COLOR_VALUES = TEXT_COLORS.reduce(
756
772
  (acc, key) => {
757
773
  acc[key] = `var(--dds-color-${key})`;
@@ -759,6 +775,13 @@ var TEXT_COLOR_VALUES = TEXT_COLORS.reduce(
759
775
  },
760
776
  {}
761
777
  );
778
+ var ICON_COLOR_VALUES = ICON_COLORS.reduce(
779
+ (acc, key) => {
780
+ acc[key] = `var(--dds-color-${key})`;
781
+ return acc;
782
+ },
783
+ {}
784
+ );
762
785
  var isTextColor = (value) => {
763
786
  return typeof value === "string" && TEXT_COLORS.includes(value);
764
787
  };
@@ -766,6 +789,13 @@ var getTextColor = (color) => {
766
789
  if (isTextColor(color)) return TEXT_COLOR_VALUES[color];
767
790
  return color;
768
791
  };
792
+ var isIconColor = (value) => {
793
+ return typeof value === "string" && ICON_COLORS.includes(value);
794
+ };
795
+ var getIconColor = (color) => {
796
+ if (isIconColor(color)) return ICON_COLOR_VALUES[color];
797
+ return color;
798
+ };
769
799
 
770
800
  // src/utils/combineHandlers.tsx
771
801
  var combineHandlers = (handler1, handler2) => {
@@ -956,7 +986,7 @@ var import_react8 = require("react");
956
986
  function useOnClickOutside(element, handler) {
957
987
  (0, import_react8.useEffect)(() => {
958
988
  const listener = (event) => {
959
- const elements = Array.isArray(element) ? element : [element].filter(Boolean);
989
+ 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
990
  const hasClickedInside = elements.some(
961
991
  (el) => el == null ? void 0 : el.contains(event.target)
962
992
  );
@@ -1449,6 +1479,7 @@ var layout_default = {
1449
1479
  "dds-a-i": "layout_dds-a-i",
1450
1480
  "dds-a-c": "layout_dds-a-c",
1451
1481
  "dds-j-i": "layout_dds-j-i",
1482
+ "dds-pl-i": "layout_dds-pl-i",
1452
1483
  "dds-j-c": "layout_dds-j-c",
1453
1484
  "dds-wrap": "layout_dds-wrap",
1454
1485
  "dds-basis": "layout_dds-basis",
@@ -1617,6 +1648,7 @@ var Box = ({
1617
1648
  alignItems,
1618
1649
  alignContent,
1619
1650
  justifyItems,
1651
+ placeItems,
1620
1652
  justifyContent,
1621
1653
  flexWrap,
1622
1654
  flexBasis,
@@ -1655,6 +1687,7 @@ var Box = ({
1655
1687
  ...getResponsiveCSSProperties(alignItems, "r", "a-i"),
1656
1688
  ...getResponsiveCSSProperties(alignContent, "r", "a-c"),
1657
1689
  ...getResponsiveCSSProperties(justifyItems, "r", "j-i"),
1690
+ ...getResponsiveCSSProperties(placeItems, "r", "pl-i"),
1658
1691
  ...getResponsiveCSSProperties(justifyContent, "r", "j-c"),
1659
1692
  ...getResponsiveCSSProperties(flexWrap, "r", "wrap"),
1660
1693
  ...getResponsiveCSSProperties(flexBasis, "r", "basis"),
@@ -1698,6 +1731,7 @@ var Box = ({
1698
1731
  alignItems && layout_default["dds-a-i"],
1699
1732
  justifyContent && layout_default["dds-j-c"],
1700
1733
  justifyItems && layout_default["dds-j-i"],
1734
+ placeItems && layout_default["dds-pl-i"],
1701
1735
  flexWrap && layout_default["dds-wrap"],
1702
1736
  flexBasis && layout_default["dds-basis"],
1703
1737
  flexFlow && layout_default["dds-flow"],
@@ -2016,7 +2050,42 @@ var commonTexts = createTexts({
2016
2050
  nn: "Innlastning p\xE5g\xE5r",
2017
2051
  en: "Loading",
2018
2052
  se: "Vie\u017E\u017Eamin"
2019
- }
2053
+ },
2054
+ nextPage: {
2055
+ nb: "Neste side",
2056
+ no: "Neste side",
2057
+ nn: "Neste side",
2058
+ en: "Next page",
2059
+ se: "Boahte siidu"
2060
+ },
2061
+ previousPage: {
2062
+ nb: "Forrige side",
2063
+ no: "Forrige side",
2064
+ nn: "F\xF8rre side",
2065
+ en: "Previous page",
2066
+ se: "Ovddit siidu"
2067
+ },
2068
+ page: (page) => ({
2069
+ nb: `Side ${page}`,
2070
+ no: `Side ${page}`,
2071
+ nn: `Side ${page}`,
2072
+ en: `Page ${page}`,
2073
+ se: `Siidu ${page}`
2074
+ }),
2075
+ currentPage: (page) => ({
2076
+ nb: `N\xE5v\xE6rende side (${page})`,
2077
+ no: `N\xE5v\xE6rende side (${page})`,
2078
+ nn: `Noverande side (${page})`,
2079
+ en: `Current page (${page})`,
2080
+ se: `D\xE1la siidu (${page})`
2081
+ }),
2082
+ pageOf: (current, max) => ({
2083
+ nb: `Side ${current} av ${max}`,
2084
+ no: `Side ${current} av ${max}`,
2085
+ nn: `Side ${current} ${max}`,
2086
+ en: `Page ${current} of ${max}`,
2087
+ se: `Siidu ${current} ${max}`
2088
+ })
2020
2089
  });
2021
2090
 
2022
2091
  // src/components/Spinner/Spinner.tsx
@@ -2475,7 +2544,7 @@ function SvgWrapper({
2475
2544
  "svg",
2476
2545
  {
2477
2546
  ...props,
2478
- fill: getTextColor(fill),
2547
+ fill: getIconColor(fill),
2479
2548
  xmlns: "http://www.w3.org/2000/svg",
2480
2549
  viewBox: `0 0 ${size} ${size}`,
2481
2550
  className: cn(className, Icon_default.svg),
@@ -4235,15 +4304,10 @@ var Typography = (props) => {
4235
4304
  const as = propAs ? propAs : getElementType(typographyType);
4236
4305
  const typographyCn = getTypographyCn(typographyType);
4237
4306
  let relProp;
4238
- let targetProp;
4239
- let externalLinkProp;
4240
4307
  if (isAnchorProps(props)) {
4241
- const { externalLink, target } = props;
4242
4308
  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
4309
  }
4246
- return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
4310
+ return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
4247
4311
  Box,
4248
4312
  {
4249
4313
  ...getBaseHTMLProps(
@@ -4252,7 +4316,6 @@ var Typography = (props) => {
4252
4316
  className,
4253
4317
  getColorCn(color),
4254
4318
  Typography_default.container,
4255
- externalLinkProp && typographyStyles_default["a--external"],
4256
4319
  typographyStyles_default[typographyCn],
4257
4320
  withMargins && typographyStyles_default[`${typographyCn}--margins`],
4258
4321
  isLegend(as) && typographyStyles_default.legend,
@@ -4272,11 +4335,7 @@ var Typography = (props) => {
4272
4335
  ),
4273
4336
  as,
4274
4337
  rel: relProp,
4275
- target: targetProp,
4276
- children: [
4277
- children,
4278
- externalLinkProp && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(Icon, { icon: OpenExternalIcon, iconSize: "inherit" })
4279
- ]
4338
+ children
4280
4339
  }
4281
4340
  );
4282
4341
  };
@@ -4468,21 +4527,19 @@ var Link = ({
4468
4527
  typographyType,
4469
4528
  withMargins,
4470
4529
  withVisited,
4471
- external,
4472
- target,
4473
4530
  style,
4474
4531
  color,
4475
4532
  as: propAs,
4476
4533
  isAnchor: propIsAnchor,
4534
+ withIconStyling,
4477
4535
  ...rest
4478
4536
  }) => {
4479
4537
  const as = propAs ? propAs : "a";
4480
4538
  const isAnchor = as === "a" || propIsAnchor;
4481
4539
  const aProps = isAnchor ? {
4482
- rel: "noopener noreferrer",
4483
- target: external ? "_blank" : target
4540
+ rel: "noopener noreferrer"
4484
4541
  } : {};
4485
- return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(
4542
+ return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
4486
4543
  ElementAs,
4487
4544
  {
4488
4545
  as,
@@ -4491,7 +4548,7 @@ var Link = ({
4491
4548
  cn(
4492
4549
  className,
4493
4550
  typographyStyles_default.a,
4494
- external && typographyStyles_default["a--external"],
4551
+ withIconStyling && typographyStyles_default["a--with-icon"],
4495
4552
  withVisited && typographyStyles_default["a--visited"],
4496
4553
  typographyType && typographyStyles_default[getTypographyCn(typographyType)],
4497
4554
  typographyType && withMargins && typographyStyles_default[`${getTypographyCn(typographyType)}--margins`],
@@ -4506,17 +4563,7 @@ var Link = ({
4506
4563
  rest
4507
4564
  ),
4508
4565
  ...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
- ]
4566
+ children
4520
4567
  }
4521
4568
  );
4522
4569
  };
@@ -5334,7 +5381,7 @@ var OverflowMenuGroup = ({
5334
5381
  if (isOpen) onClose == null ? void 0 : onClose();
5335
5382
  toggle();
5336
5383
  };
5337
- useOnClickOutside([menuRef.current, buttonRef.current], () => {
5384
+ useOnClickOutside([menuRef, buttonRef], () => {
5338
5385
  handleClose();
5339
5386
  });
5340
5387
  useOnKeyDown(["Esc", "Escape"], () => {
@@ -6872,7 +6919,7 @@ var CalendarPopoverContent = ({
6872
6919
  const hasTransitionedIn = useMountTransition(isOpen, 500);
6873
6920
  const isMounted = isOpen && hasTransitionedIn;
6874
6921
  const combinedRef = useCombinedRef(refs.setFloating, ref);
6875
- useOnClickOutside([ref.current, modalRef.current], onClose);
6922
+ useOnClickOutside([ref, modalRef], onClose);
6876
6923
  (0, import_react41.useEffect)(() => {
6877
6924
  var _a;
6878
6925
  refs.setReference((_a = anchorRef == null ? void 0 : anchorRef.current) != null ? _a : null);
@@ -8178,7 +8225,7 @@ var Drawer = ({
8178
8225
  }
8179
8226
  const { t } = useTranslation();
8180
8227
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
8181
- const { isOpen = false, onClose, drawerId, triggerEl } = useDrawerContext();
8228
+ const { isOpen = false, onClose, drawerId, triggerRef } = useDrawerContext();
8182
8229
  const hasHeader = !!header;
8183
8230
  const headerId = hasHeader ? `${drawerId}-header` : void 0;
8184
8231
  const drawerRef = useFocusTrap(isOpen);
@@ -8193,8 +8240,8 @@ var Drawer = ({
8193
8240
  return () => handleElementWithBackdropUnmount(document.body);
8194
8241
  }
8195
8242
  }, [isOpen]);
8196
- const elements = [drawerRef.current];
8197
- if (triggerEl) elements.push(triggerEl);
8243
+ const elements = [drawerRef];
8244
+ if (triggerRef) elements.push(triggerRef);
8198
8245
  useOnClickOutside(elements, () => {
8199
8246
  if (isOpen && !withBackdrop) {
8200
8247
  onClose == null ? void 0 : onClose();
@@ -8357,7 +8404,7 @@ var DrawerGroup = ({
8357
8404
  drawerId: uniqueDrawerId,
8358
8405
  isOpen,
8359
8406
  onClose: handleClose,
8360
- triggerEl: triggerRef.current
8407
+ triggerRef
8361
8408
  },
8362
8409
  children: Children7
8363
8410
  }
@@ -10279,7 +10326,7 @@ var InlineEditContextProvider = (props) => {
10279
10326
  };
10280
10327
  useOnKeyDown(["Enter"], () => onExitHandler());
10281
10328
  useOnKeyDown(["Escape"], () => onExitHandler());
10282
- useOnClickOutside(inputRef == null ? void 0 : inputRef.current, () => onExitHandler());
10329
+ useOnClickOutside(inputRef, () => onExitHandler());
10283
10330
  return /* @__PURE__ */ (0, import_jsx_runtime293.jsx)(
10284
10331
  InlineEditContext,
10285
10332
  {
@@ -11074,6 +11121,189 @@ var import_jsx_runtime304 = require("react/jsx-runtime");
11074
11121
  var ModalActions = (props) => /* @__PURE__ */ (0, import_jsx_runtime304.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x1", ...props });
11075
11122
  ModalActions.displayName = "ModalActions";
11076
11123
 
11124
+ // src/components/NewsPopover/NewsPopover.module.css
11125
+ var NewsPopover_default = {
11126
+ "close-button": "NewsPopover_close-button",
11127
+ "img-wrapper": "NewsPopover_img-wrapper"
11128
+ };
11129
+
11130
+ // src/components/NewsPopover/NewsPopover.tsx
11131
+ var import_jsx_runtime305 = require("react/jsx-runtime");
11132
+ var NewsPopover = ({
11133
+ id,
11134
+ className,
11135
+ style,
11136
+ htmlProps,
11137
+ header,
11138
+ news,
11139
+ defaultActiveSlide = 0,
11140
+ activeSlide: activeSlideProp,
11141
+ setActiveSlide: setActiveSlideProp,
11142
+ isOpen: isOpenProp,
11143
+ isInitiallyOpen = true,
11144
+ setIsOpen: setIsOpenProp,
11145
+ smallScreenBreakpoint = "xs",
11146
+ closeOnClickOutside = true,
11147
+ ref,
11148
+ ...rest
11149
+ }) => {
11150
+ if (news.length === 0) {
11151
+ throw new Error('NewsPopover must have at least one item in "news" prop');
11152
+ }
11153
+ if (header.length > 35) {
11154
+ console.warn(
11155
+ "[NewsPopover] header exceeds recommended length (about 35 characters). This may cause wrapping or layout issues depending on theme."
11156
+ );
11157
+ }
11158
+ news.forEach((n, i) => {
11159
+ if (n.heading.length > 35) {
11160
+ console.warn(
11161
+ `[NewsPopover] news[${i}].heading exceeds recommended length (about 35 characters). This may cause wrapping or layout issues depending on theme.`
11162
+ );
11163
+ }
11164
+ if (n.text.length > 135) {
11165
+ console.warn(
11166
+ `[NewsPopover] news[${i}].text exceeds recommended length (about 135 characters). This may cause wrapping or layout issues depending on theme.`
11167
+ );
11168
+ }
11169
+ });
11170
+ const { t } = useTranslation();
11171
+ const [activeSlide, setActiveSlide] = useControllableState({
11172
+ value: activeSlideProp,
11173
+ defaultValue: defaultActiveSlide,
11174
+ onChange: setActiveSlideProp
11175
+ });
11176
+ const [isOpen, setIsOpen] = useControllableState({
11177
+ onChange: setIsOpenProp,
11178
+ value: isOpenProp,
11179
+ defaultValue: isInitiallyOpen
11180
+ });
11181
+ function handleSlideChange(slide) {
11182
+ setActiveSlide(slide);
11183
+ }
11184
+ const popoverRef = useFocusTrap(true);
11185
+ const combinedRef = useCombinedRef(ref, popoverRef);
11186
+ useOnClickOutside(popoverRef, () => {
11187
+ if (closeOnClickOutside && isOpen) {
11188
+ setIsOpen(false);
11189
+ }
11190
+ });
11191
+ useOnKeyDown("Escape", () => setIsOpen(false));
11192
+ const isList = news.length > 1;
11193
+ const slideContent = (el, i) => /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(import_jsx_runtime305.Fragment, { children: [
11194
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(
11195
+ Paper,
11196
+ {
11197
+ background: "brand-secondary-subtle",
11198
+ width: "100%",
11199
+ borderRadius: "0",
11200
+ display: "grid",
11201
+ placeItems: "center",
11202
+ paddingBlock: "x0.5",
11203
+ children: [
11204
+ i !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(VisuallyHidden, { children: t(commonTexts.pageOf(i + 1, news.length)) }),
11205
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Box, { height: "113px", maxWidth: "380px", className: NewsPopover_default["img-wrapper"], children: el.image })
11206
+ ]
11207
+ }
11208
+ ),
11209
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(VStack, { gap: "x0.75", alignItems: "center", margin: "x0.75 x0.75 x1 x0.75", children: [
11210
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Heading, { level: 3, children: el.heading }),
11211
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Paragraph, { textAlign: "center", children: el.text })
11212
+ ] })
11213
+ ] });
11214
+ const content = isList ? /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Box, { as: StylelessList, width: "100%", children: news.map((el, i) => {
11215
+ const active = activeSlide === i;
11216
+ return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)("li", { "aria-current": active, hidden: !active, children: slideContent(el, i) }, i);
11217
+ }) }) : /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Box, { width: "100%", children: slideContent(news[0]) });
11218
+ function handleNext() {
11219
+ if (activeSlide === news.length - 1) handleSlideChange(0);
11220
+ else handleSlideChange(activeSlide + 1);
11221
+ }
11222
+ function handlePrevious() {
11223
+ if (activeSlide === 0) handleSlideChange(news.length - 1);
11224
+ else handleSlideChange(activeSlide - 1);
11225
+ }
11226
+ const headerId = "dds-news-popover-header";
11227
+ return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(
11228
+ Paper,
11229
+ {
11230
+ ...getBaseHTMLProps(
11231
+ id,
11232
+ cn(className, focusable),
11233
+ style,
11234
+ htmlProps,
11235
+ rest
11236
+ ),
11237
+ ref: combinedRef,
11238
+ position: "relative",
11239
+ border: "border-subtle",
11240
+ role: "dialog",
11241
+ "aria-labelledby": headerId,
11242
+ height: isList ? "368px" : "327px",
11243
+ width: styleUpToBreakpoint("100%", smallScreenBreakpoint, "405px"),
11244
+ children: [
11245
+ /* @__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 }) }),
11246
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(
11247
+ VStack,
11248
+ {
11249
+ alignItems: "center",
11250
+ height: isList ? "299px" : void 0,
11251
+ "aria-live": "polite",
11252
+ children: [
11253
+ content,
11254
+ isList && /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(HStack, { alignItems: "center", gap: "x1", marginBlock: "auto 0", children: [
11255
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11256
+ Button,
11257
+ {
11258
+ "aria-label": t(commonTexts.previousPage),
11259
+ size: "small",
11260
+ purpose: "tertiary",
11261
+ icon: ChevronLeftIcon,
11262
+ onClick: () => handlePrevious()
11263
+ }
11264
+ ),
11265
+ news.map((slide, i) => {
11266
+ const active = activeSlide === i;
11267
+ return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11268
+ Icon,
11269
+ {
11270
+ iconSize: "small",
11271
+ icon: CircleFilledIcon,
11272
+ color: active ? "brand-tertiary-default" : "brand-tertiary-subtle"
11273
+ }
11274
+ );
11275
+ }),
11276
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11277
+ Button,
11278
+ {
11279
+ "aria-label": t(commonTexts.nextPage),
11280
+ size: "small",
11281
+ purpose: "tertiary",
11282
+ icon: ChevronRightIcon,
11283
+ onClick: () => handleNext()
11284
+ }
11285
+ )
11286
+ ] }),
11287
+ /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11288
+ Button,
11289
+ {
11290
+ icon: CloseIcon,
11291
+ purpose: "tertiary",
11292
+ size: "small",
11293
+ "aria-label": t(commonTexts.close),
11294
+ onClick: () => setIsOpen(false),
11295
+ className: NewsPopover_default["close-button"]
11296
+ }
11297
+ )
11298
+ ]
11299
+ }
11300
+ )
11301
+ ]
11302
+ }
11303
+ ) : null;
11304
+ };
11305
+ NewsPopover.displayName = "NewsPopover";
11306
+
11077
11307
  // src/components/Pagination/Pagination.tsx
11078
11308
  var import_react76 = require("react");
11079
11309
 
@@ -11377,7 +11607,7 @@ var getCustomStyles = (size2, hasError, isReadOnly) => ({
11377
11607
  // src/components/Select/SelectComponents.tsx
11378
11608
  var import_react73 = __toESM(require("react"));
11379
11609
  var import_react_select = require("react-select");
11380
- var import_jsx_runtime305 = require("react/jsx-runtime");
11610
+ var import_jsx_runtime306 = require("react/jsx-runtime");
11381
11611
  var {
11382
11612
  Option,
11383
11613
  NoOptionsMessage,
@@ -11390,25 +11620,25 @@ var {
11390
11620
  } = import_react_select.components;
11391
11621
  var DDSOption = ({
11392
11622
  ...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" }),
11623
+ }) => /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(Option, { ...props, children: [
11624
+ props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: CheckIcon, iconSize: "small" }),
11395
11625
  props.children
11396
11626
  ] });
11397
- var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(Option, { ...props, children: import_react73.default.createElement(props.customElement, props) });
11627
+ var CustomOption = (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Option, { ...props, children: import_react73.default.createElement(props.customElement, props) });
11398
11628
  var CustomSingleValue = ({
11399
11629
  id,
11400
11630
  Element,
11401
11631
  ...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" });
11632
+ }) => /* @__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 }) });
11633
+ var DDSNoOptionsMessage = (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(NoOptionsMessage, { ...props, children: "Ingen treff" });
11404
11634
  var DDSClearIndicator = ({
11405
11635
  ...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" }) });
11636
+ }) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11637
+ var DDSMultiValueRemove = (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(Icon, { icon: CloseSmallIcon, iconSize: "component" }) });
11408
11638
  var DDSDropdownIndicator = (props) => {
11409
11639
  const { className, componentSize, ...rest } = props;
11410
11640
  const iconState = rest.selectProps.menuIsOpen ? "up" : "down";
11411
- return /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11641
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11412
11642
  DropdownIndicator,
11413
11643
  {
11414
11644
  ...rest,
@@ -11417,7 +11647,7 @@ var DDSDropdownIndicator = (props) => {
11417
11647
  Select_default["dropdown-indicator"],
11418
11648
  Input_default[`input-with-el-right--${componentSize}`]
11419
11649
  ),
11420
- children: /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11650
+ children: /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11421
11651
  Icon,
11422
11652
  {
11423
11653
  icon: AnimatedChevronUpDownIcon,
@@ -11432,7 +11662,7 @@ var DDSInput = ({
11432
11662
  ariaInvalid,
11433
11663
  ariaDescribedby,
11434
11664
  ...props
11435
- }) => /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11665
+ }) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11436
11666
  Input2,
11437
11667
  {
11438
11668
  ...props,
@@ -11452,7 +11682,7 @@ function DDSControl(props) {
11452
11682
  ...rest
11453
11683
  } = props;
11454
11684
  const hasIcon = !!icon;
11455
- return /* @__PURE__ */ (0, import_jsx_runtime305.jsxs)(
11685
+ return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
11456
11686
  Control,
11457
11687
  {
11458
11688
  ...rest,
@@ -11469,7 +11699,7 @@ function DDSControl(props) {
11469
11699
  hasIcon && Input_default[`input-with-icon--${componentSize}`]
11470
11700
  ),
11471
11701
  children: [
11472
- hasIcon && /* @__PURE__ */ (0, import_jsx_runtime305.jsx)(
11702
+ hasIcon && /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11473
11703
  Icon,
11474
11704
  {
11475
11705
  icon,
@@ -11487,7 +11717,7 @@ function DDSControl(props) {
11487
11717
  }
11488
11718
 
11489
11719
  // src/components/Select/Select.tsx
11490
- var import_jsx_runtime306 = require("react/jsx-runtime");
11720
+ var import_jsx_runtime307 = require("react/jsx-runtime");
11491
11721
  function Select({
11492
11722
  id,
11493
11723
  label,
@@ -11538,7 +11768,7 @@ function Select({
11538
11768
  componentSize === "xsmall" && "var(--dds-input-default-width-xsmall)"
11539
11769
  );
11540
11770
  const customInput = (0, import_react74.useCallback)(
11541
- (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11771
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
11542
11772
  DDSInput,
11543
11773
  {
11544
11774
  ...props,
@@ -11556,7 +11786,7 @@ function Select({
11556
11786
  []
11557
11787
  );
11558
11788
  const customSingleValue = (0, import_react74.useCallback)(
11559
- (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11789
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
11560
11790
  CustomSingleValue,
11561
11791
  {
11562
11792
  ...props,
@@ -11567,15 +11797,15 @@ function Select({
11567
11797
  []
11568
11798
  );
11569
11799
  const customClearIndicator = (0, import_react74.useCallback)(
11570
- (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(DDSClearIndicator, { ...props }),
11800
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(DDSClearIndicator, { ...props }),
11571
11801
  []
11572
11802
  );
11573
11803
  const customDropdownIndicator = (0, import_react74.useCallback)(
11574
- (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(DDSDropdownIndicator, { ...props, componentSize }),
11804
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(DDSDropdownIndicator, { ...props, componentSize }),
11575
11805
  []
11576
11806
  );
11577
11807
  const customControl = (0, import_react74.useCallback)(
11578
- (props) => /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(
11808
+ (props) => /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
11579
11809
  DDSControl,
11580
11810
  {
11581
11811
  ...props,
@@ -11590,9 +11820,9 @@ function Select({
11590
11820
  const customOptionComponent = (0, import_react74.useCallback)(
11591
11821
  (props) => {
11592
11822
  if (customOptionElement) {
11593
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(CustomOption, { ...props, customElement: customOptionElement });
11823
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(CustomOption, { ...props, customElement: customOptionElement });
11594
11824
  } else {
11595
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(DDSOption, { ...props });
11825
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(DDSOption, { ...props });
11596
11826
  }
11597
11827
  },
11598
11828
  [customOptionElement, componentSize]
@@ -11633,7 +11863,7 @@ function Select({
11633
11863
  openMenuOnClick: readOnly ? false : openMenuOnClick ? openMenuOnClick : void 0,
11634
11864
  ...rest
11635
11865
  };
11636
- return /* @__PURE__ */ (0, import_jsx_runtime306.jsxs)(
11866
+ return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
11637
11867
  Box,
11638
11868
  {
11639
11869
  width: inputWidth,
@@ -11654,7 +11884,7 @@ function Select({
11654
11884
  readOnly,
11655
11885
  afterLabelContent
11656
11886
  }),
11657
- /* @__PURE__ */ (0, import_jsx_runtime306.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
11887
+ /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(import_react_select2.default, { ...reactSelectProps, ref }),
11658
11888
  renderInputMessage({ tip, tipId, errorMessage, errorMessageId })
11659
11889
  ]
11660
11890
  }
@@ -11683,7 +11913,7 @@ var NativeSelect_default = {
11683
11913
  };
11684
11914
 
11685
11915
  // src/components/Select/NativeSelect/NativeSelect.tsx
11686
- var import_jsx_runtime307 = require("react/jsx-runtime");
11916
+ var import_jsx_runtime308 = require("react/jsx-runtime");
11687
11917
  var NativeSelect = ({
11688
11918
  ref,
11689
11919
  id,
@@ -11752,7 +11982,7 @@ var NativeSelect = ({
11752
11982
  const iconSize = componentSize === "medium" ? "medium" : "small";
11753
11983
  const showClearButton = clearable && hasValue && !readOnly && !rest.disabled;
11754
11984
  const hasIcon = !!icon;
11755
- return /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)("div", { className, style, children: [
11985
+ return /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)("div", { className, style, children: [
11756
11986
  renderLabel({
11757
11987
  label,
11758
11988
  htmlFor: uniqueId,
@@ -11760,7 +11990,7 @@ var NativeSelect = ({
11760
11990
  readOnly,
11761
11991
  afterLabelContent
11762
11992
  }),
11763
- /* @__PURE__ */ (0, import_jsx_runtime307.jsxs)(
11993
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
11764
11994
  Box,
11765
11995
  {
11766
11996
  position: "relative",
@@ -11770,7 +12000,7 @@ var NativeSelect = ({
11770
12000
  Input_default["input-group"]
11771
12001
  ),
11772
12002
  children: [
11773
- hasIcon && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12003
+ hasIcon && /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
11774
12004
  Icon,
11775
12005
  {
11776
12006
  icon,
@@ -11781,7 +12011,7 @@ var NativeSelect = ({
11781
12011
  iconSize: "component"
11782
12012
  }
11783
12013
  ),
11784
- /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12014
+ /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
11785
12015
  "select",
11786
12016
  {
11787
12017
  ref: useCombinedRef(ref, selectRef),
@@ -11815,7 +12045,7 @@ var NativeSelect = ({
11815
12045
  children
11816
12046
  }
11817
12047
  ),
11818
- showClearButton && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12048
+ showClearButton && /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
11819
12049
  ClearButton,
11820
12050
  {
11821
12051
  "aria-label": t(commonTexts.clearSelect),
@@ -11824,7 +12054,7 @@ var NativeSelect = ({
11824
12054
  className: NativeSelect_default[`clear-button--${componentSize}`]
11825
12055
  }
11826
12056
  ),
11827
- !multiple && /* @__PURE__ */ (0, import_jsx_runtime307.jsx)(
12057
+ !multiple && /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
11828
12058
  Icon,
11829
12059
  {
11830
12060
  icon: ChevronDownIcon,
@@ -11847,7 +12077,7 @@ var NativeSelect = ({
11847
12077
  var createSelectOptions = (...args) => args.map((v) => ({ label: v, value: v }));
11848
12078
 
11849
12079
  // src/components/Pagination/Pagination.tsx
11850
- var import_jsx_runtime308 = require("react/jsx-runtime");
12080
+ var import_jsx_runtime309 = require("react/jsx-runtime");
11851
12081
  var Pagination = ({
11852
12082
  itemsAmount,
11853
12083
  defaultItemsPerPage = 10,
@@ -11902,7 +12132,7 @@ var Pagination = ({
11902
12132
  };
11903
12133
  const listItems = items.length > 0 ? items.map((item, i) => {
11904
12134
  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)(
12135
+ 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
12136
  Button,
11907
12137
  {
11908
12138
  purpose: isActive ? "primary" : "secondary",
@@ -11910,10 +12140,10 @@ var Pagination = ({
11910
12140
  onClick: (event) => {
11911
12141
  onPageChange(event, item);
11912
12142
  },
11913
- "aria-label": isActive ? t(texts22.currentPage(item)) : t(texts22.page(item)),
12143
+ "aria-label": isActive ? t(commonTexts.currentPage(item)) : t(commonTexts.page(item)),
11914
12144
  children: item
11915
12145
  }
11916
- ) : /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12146
+ ) : /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11917
12147
  Icon,
11918
12148
  {
11919
12149
  icon: MoreHorizontalIcon,
@@ -11921,7 +12151,7 @@ var Pagination = ({
11921
12151
  }
11922
12152
  ) }, `pagination-item-${i}`);
11923
12153
  }) : void 0;
11924
- const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12154
+ const previousPageButton = /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11925
12155
  Button,
11926
12156
  {
11927
12157
  purpose: "secondary",
@@ -11930,10 +12160,10 @@ var Pagination = ({
11930
12160
  onClick: (event) => {
11931
12161
  onPageChange(event, activePage - 1);
11932
12162
  },
11933
- "aria-label": t(texts22.previousPage)
12163
+ "aria-label": t(commonTexts.previousPage)
11934
12164
  }
11935
12165
  );
11936
- const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12166
+ const nextPageButton = /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11937
12167
  Button,
11938
12168
  {
11939
12169
  purpose: "secondary",
@@ -11942,13 +12172,13 @@ var Pagination = ({
11942
12172
  onClick: (event) => {
11943
12173
  onPageChange(event, activePage + 1);
11944
12174
  },
11945
- "aria-label": t(texts22.nextPage)
12175
+ "aria-label": t(commonTexts.nextPage)
11946
12176
  }
11947
12177
  );
11948
12178
  const isOnFirstPage = activePage === 1;
11949
12179
  const isOnLastPage = activePage === pagesLength;
11950
12180
  const baseHTMLProps = getBaseHTMLProps(id, className, style, htmlProps, rest);
11951
- const navigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
12181
+ const navigation = withPagination ? /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
11952
12182
  Box,
11953
12183
  {
11954
12184
  as: "nav",
@@ -11960,14 +12190,14 @@ var Pagination = ({
11960
12190
  ...baseHTMLProps
11961
12191
  },
11962
12192
  children: [
11963
- /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
12193
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
11964
12194
  ShowHide,
11965
12195
  {
11966
12196
  as: "ol",
11967
12197
  hideBelow: smallScreenBreakpoint,
11968
12198
  className: Pagination_default.list,
11969
12199
  children: [
11970
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12200
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11971
12201
  "li",
11972
12202
  {
11973
12203
  className: cn(
@@ -11979,7 +12209,7 @@ var Pagination = ({
11979
12209
  }
11980
12210
  ),
11981
12211
  listItems,
11982
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12212
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
11983
12213
  "li",
11984
12214
  {
11985
12215
  className: cn(
@@ -11993,14 +12223,14 @@ var Pagination = ({
11993
12223
  ]
11994
12224
  }
11995
12225
  ),
11996
- !!smallScreenBreakpoint && /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
12226
+ !!smallScreenBreakpoint && /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
11997
12227
  ShowHide,
11998
12228
  {
11999
12229
  as: "ol",
12000
12230
  showBelow: smallScreenBreakpoint,
12001
12231
  className: Pagination_default.list,
12002
12232
  children: [
12003
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12233
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12004
12234
  "li",
12005
12235
  {
12006
12236
  className: cn(
@@ -12008,7 +12238,7 @@ var Pagination = ({
12008
12238
  isOnFirstPage && Pagination_default["list__item--hidden"]
12009
12239
  ),
12010
12240
  "aria-hidden": isOnFirstPage,
12011
- children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12241
+ children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12012
12242
  Button,
12013
12243
  {
12014
12244
  purpose: "secondary",
@@ -12022,7 +12252,7 @@ var Pagination = ({
12022
12252
  )
12023
12253
  }
12024
12254
  ),
12025
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12255
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12026
12256
  "li",
12027
12257
  {
12028
12258
  className: cn(
@@ -12033,7 +12263,7 @@ var Pagination = ({
12033
12263
  children: previousPageButton
12034
12264
  }
12035
12265
  ),
12036
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12266
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)("li", { className: Pagination_default.list__item, children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12037
12267
  Button,
12038
12268
  {
12039
12269
  size: "small",
@@ -12043,7 +12273,7 @@ var Pagination = ({
12043
12273
  children: activePage
12044
12274
  }
12045
12275
  ) }),
12046
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12276
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12047
12277
  "li",
12048
12278
  {
12049
12279
  className: cn(
@@ -12054,7 +12284,7 @@ var Pagination = ({
12054
12284
  children: nextPageButton
12055
12285
  }
12056
12286
  ),
12057
- /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12287
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12058
12288
  "li",
12059
12289
  {
12060
12290
  className: cn(
@@ -12062,7 +12292,7 @@ var Pagination = ({
12062
12292
  isOnLastPage && Pagination_default["list__item--hidden"]
12063
12293
  ),
12064
12294
  "aria-hidden": isOnLastPage,
12065
- children: /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12295
+ children: /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12066
12296
  Button,
12067
12297
  {
12068
12298
  purpose: "secondary",
@@ -12084,7 +12314,7 @@ var Pagination = ({
12084
12314
  ) : null;
12085
12315
  const activePageFirstItem = activePage === 1 ? 1 : activePage * itemsPerPage - itemsPerPage + 1;
12086
12316
  const activePageLastItem = activePage === pagesLength ? itemsAmount : activePage * itemsPerPage;
12087
- return !withCounter && !withSelect ? navigation : /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
12317
+ return !withCounter && !withSelect ? navigation : /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
12088
12318
  Box,
12089
12319
  {
12090
12320
  display: "flex",
@@ -12095,7 +12325,7 @@ var Pagination = ({
12095
12325
  alignItems: styleUpToBreakpoint("center", smallScreenBreakpoint),
12096
12326
  ...baseHTMLProps,
12097
12327
  children: [
12098
- /* @__PURE__ */ (0, import_jsx_runtime308.jsxs)(
12328
+ /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
12099
12329
  Box,
12100
12330
  {
12101
12331
  display: "grid",
@@ -12103,7 +12333,7 @@ var Pagination = ({
12103
12333
  alignItems: "center",
12104
12334
  className: Pagination_default.indicators,
12105
12335
  children: [
12106
- withSelect && /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(
12336
+ withSelect && /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
12107
12337
  Select,
12108
12338
  {
12109
12339
  options: tSelectOptions,
@@ -12119,7 +12349,7 @@ var Pagination = ({
12119
12349
  "aria-label": t(texts22.itemsPerPage)
12120
12350
  }
12121
12351
  ),
12122
- withCounter && /* @__PURE__ */ (0, import_jsx_runtime308.jsx)(Paragraph, { typographyType: "bodyShortMedium", children: t(
12352
+ withCounter && /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(Paragraph, { typographyType: "bodyShortMedium", children: t(
12123
12353
  texts22.showsAmountOfTotalItems(
12124
12354
  activePageFirstItem,
12125
12355
  activePageLastItem,
@@ -12150,20 +12380,6 @@ var texts22 = createTexts({
12150
12380
  en: "Items per page",
12151
12381
  se: "Elementat juohki siidui"
12152
12382
  },
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
12383
  firstPage: {
12168
12384
  nb: "F\xF8rste side",
12169
12385
  no: "F\xF8rste side",
@@ -12178,20 +12394,6 @@ var texts22 = createTexts({
12178
12394
  en: "Last page",
12179
12395
  se: "Ma\u014Bimu\u0161 siidu"
12180
12396
  },
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
12397
  showsAmountOfTotalItems: (first, last, total) => ({
12196
12398
  nb: `Viser ${first}-${last} av ${total}`,
12197
12399
  no: `Viser ${first}-${last} av ${total}`,
@@ -12609,7 +12811,7 @@ var PhoneInput_default = {
12609
12811
  };
12610
12812
 
12611
12813
  // src/components/PhoneInput/PhoneInput.tsx
12612
- var import_jsx_runtime309 = require("react/jsx-runtime");
12814
+ var import_jsx_runtime310 = require("react/jsx-runtime");
12613
12815
  var prioritizedCountries = [
12614
12816
  COUNTRIES.NO,
12615
12817
  COUNTRIES.SE,
@@ -12747,7 +12949,7 @@ var PhoneInput = ({
12747
12949
  const showRequiredStyling = !!(required || ariaRequired);
12748
12950
  const bp = props.smallScreenBreakpoint;
12749
12951
  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: [
12952
+ return /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)("div", { className: cn(className, Input_default.container), style, children: [
12751
12953
  renderLabel({
12752
12954
  label,
12753
12955
  htmlFor: phoneNumberId,
@@ -12755,7 +12957,7 @@ var PhoneInput = ({
12755
12957
  readOnly,
12756
12958
  afterLabelContent
12757
12959
  }),
12758
- /* @__PURE__ */ (0, import_jsx_runtime309.jsxs)(
12960
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(
12759
12961
  Box,
12760
12962
  {
12761
12963
  display: "flex",
@@ -12768,8 +12970,8 @@ var PhoneInput = ({
12768
12970
  role: "group",
12769
12971
  "aria-label": tGroupLabel,
12770
12972
  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)(
12973
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)("label", { className: utilStyles_default["visually-hidden"], htmlFor: selectId, children: tSelectLabel }),
12974
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
12773
12975
  NativeSelect,
12774
12976
  {
12775
12977
  width: styleUpToBreakpoint(
@@ -12790,11 +12992,11 @@ var PhoneInput = ({
12790
12992
  hasTip ? tipId : void 0,
12791
12993
  ariaDescribedby
12792
12994
  ]),
12793
- children: countryOptions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime309.jsx)("option", { value: item.countryCode, children: item.label }, index))
12995
+ children: countryOptions.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime310.jsx)("option", { value: item.countryCode, children: item.label }, index))
12794
12996
  }
12795
12997
  ),
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)(
12998
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(Box, { width: "100%", display: "flex", className: Input_default["input-group"], children: [
12999
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
12798
13000
  "span",
12799
13001
  {
12800
13002
  className: cn(
@@ -12806,7 +13008,7 @@ var PhoneInput = ({
12806
13008
  children: callingCode
12807
13009
  }
12808
13010
  ),
12809
- /* @__PURE__ */ (0, import_jsx_runtime309.jsx)(
13011
+ /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
12810
13012
  Box,
12811
13013
  {
12812
13014
  as: StatefulInput,
@@ -12879,7 +13081,7 @@ var PopoverContext = (0, import_react78.createContext)({});
12879
13081
  var usePopoverContext = () => (0, import_react78.useContext)(PopoverContext);
12880
13082
 
12881
13083
  // src/components/Popover/Popover.tsx
12882
- var import_jsx_runtime310 = require("react/jsx-runtime");
13084
+ var import_jsx_runtime311 = require("react/jsx-runtime");
12883
13085
  var Popover = ({
12884
13086
  id,
12885
13087
  header,
@@ -12901,7 +13103,11 @@ var Popover = ({
12901
13103
  ref,
12902
13104
  ...rest
12903
13105
  }) => {
12904
- const { refs, styles: positionStyles } = useFloatPosition(null, {
13106
+ const {
13107
+ refs,
13108
+ styles: positionStyles,
13109
+ isPositioned: localIsPositioned
13110
+ } = useFloatPosition(null, {
12905
13111
  offset,
12906
13112
  placement
12907
13113
  });
@@ -12911,6 +13117,7 @@ var Popover = ({
12911
13117
  const portalTarget = parentElement != null ? parentElement : themeContext == null ? void 0 : themeContext.el;
12912
13118
  const {
12913
13119
  floatStyling: contextFloatStyling,
13120
+ isPositioned: contextIsPositioned,
12914
13121
  setFloatOptions,
12915
13122
  floatingRef: contextFloatingRef,
12916
13123
  popoverId: contextPopoverId,
@@ -12928,28 +13135,31 @@ var Popover = ({
12928
13135
  isOpen = false,
12929
13136
  floatingRef,
12930
13137
  floatStyling,
12931
- onClose
13138
+ onClose,
13139
+ isPositioned = false
12932
13140
  ] = hasContext ? [
12933
13141
  contextPopoverId,
12934
13142
  contextAnchorEl,
12935
13143
  contextIsOpen,
12936
13144
  contextFloatingRef,
12937
13145
  contextFloatStyling,
12938
- contextOnClose
13146
+ contextOnClose,
13147
+ contextIsPositioned
12939
13148
  ] : [
12940
13149
  uniquePopoverId,
12941
13150
  (anchorRef == null ? void 0 : anchorRef.current) && anchorRef.current,
12942
13151
  propIsOpen,
12943
13152
  refs.setFloating,
12944
13153
  positionStyles.floating,
12945
- propOnClose
13154
+ propOnClose,
13155
+ localIsPositioned
12946
13156
  ];
12947
13157
  if (!hasContext) {
12948
13158
  refs.setReference(anchorEl || null);
12949
13159
  }
12950
13160
  const hasTransitionedIn = useMountTransition(isOpen, 400);
12951
13161
  const popoverRef = useReturnFocusOnBlur(
12952
- isOpen && hasTransitionedIn && returnFocusOnBlur,
13162
+ isOpen && hasTransitionedIn && isPositioned && returnFocusOnBlur,
12953
13163
  () => {
12954
13164
  onClose == null ? void 0 : onClose();
12955
13165
  onBlur == null ? void 0 : onBlur();
@@ -12960,7 +13170,7 @@ var Popover = ({
12960
13170
  (0, import_react79.useEffect)(() => {
12961
13171
  setFloatOptions == null ? void 0 : setFloatOptions({ placement, offset });
12962
13172
  }, [placement, offset]);
12963
- useOnClickOutside([popoverRef.current, anchorEl], () => {
13173
+ useOnClickOutside([popoverRef, anchorRef], () => {
12964
13174
  if (isOpen && !hasContext) onClose == null ? void 0 : onClose();
12965
13175
  });
12966
13176
  useOnKeyDown("Escape", () => {
@@ -12968,7 +13178,7 @@ var Popover = ({
12968
13178
  });
12969
13179
  const hasTitle = !!header;
12970
13180
  const openCn = hasTransitionedIn && isOpen ? "open" : "closed";
12971
- const popover = /* @__PURE__ */ (0, import_jsx_runtime310.jsxs)(
13181
+ const popover = /* @__PURE__ */ (0, import_jsx_runtime311.jsxs)(
12972
13182
  Paper,
12973
13183
  {
12974
13184
  ...getBaseHTMLProps(
@@ -12999,15 +13209,15 @@ var Popover = ({
12999
13209
  elevation: "large",
13000
13210
  border: "border-subtle",
13001
13211
  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)(
13212
+ 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 }),
13213
+ /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
13004
13214
  "div",
13005
13215
  {
13006
13216
  className: !hasTitle && withCloseButton ? Popover_default["content--closable--no-header"] : "",
13007
13217
  children
13008
13218
  }
13009
13219
  ),
13010
- withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime310.jsx)(
13220
+ withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
13011
13221
  Button,
13012
13222
  {
13013
13223
  icon: CloseIcon,
@@ -13027,7 +13237,7 @@ Popover.displayName = "Popover";
13027
13237
 
13028
13238
  // src/components/Popover/PopoverGroup.tsx
13029
13239
  var import_react80 = require("react");
13030
- var import_jsx_runtime311 = require("react/jsx-runtime");
13240
+ var import_jsx_runtime312 = require("react/jsx-runtime");
13031
13241
  var PopoverGroup = ({
13032
13242
  isOpen: propIsOpen,
13033
13243
  setIsOpen: propSetIsOpen,
@@ -13044,7 +13254,11 @@ var PopoverGroup = ({
13044
13254
  const generatedId = (0, import_react80.useId)();
13045
13255
  const uniquePopoverId = popoverId != null ? popoverId : `${generatedId}-popover`;
13046
13256
  const [floatOptions, setFloatOptions] = (0, import_react80.useState)();
13047
- const { refs, styles: positionStyles } = useFloatPosition(null, floatOptions);
13257
+ const {
13258
+ refs,
13259
+ styles: positionStyles,
13260
+ isPositioned
13261
+ } = useFloatPosition(null, floatOptions);
13048
13262
  const handleClose = () => {
13049
13263
  setOpen(false);
13050
13264
  onClose == null ? void 0 : onClose();
@@ -13073,8 +13287,8 @@ var PopoverGroup = ({
13073
13287
  (_a2 = buttonRef.current) == null ? void 0 : _a2.focus();
13074
13288
  }
13075
13289
  });
13076
- const elements = [popoverRef.current];
13077
- if (buttonRef.current) elements.push(buttonRef.current);
13290
+ const elements = [popoverRef];
13291
+ if (buttonRef) elements.push(buttonRef);
13078
13292
  useOnClickOutside(elements, () => {
13079
13293
  if (open) handleClose();
13080
13294
  });
@@ -13088,11 +13302,12 @@ var PopoverGroup = ({
13088
13302
  ref: combinedAnchorRef
13089
13303
  }) : child);
13090
13304
  });
13091
- return /* @__PURE__ */ (0, import_jsx_runtime311.jsx)(
13305
+ return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13092
13306
  PopoverContext,
13093
13307
  {
13094
13308
  value: {
13095
13309
  floatStyling: positionStyles.floating,
13310
+ isPositioned,
13096
13311
  setFloatOptions,
13097
13312
  floatingRef: combinedPopoverRef,
13098
13313
  popoverId: uniquePopoverId,
@@ -13139,7 +13354,7 @@ var ProgressTracker_default = {
13139
13354
 
13140
13355
  // src/components/ProgressTracker/ProgressTrackerItem.tsx
13141
13356
  var import_react82 = require("react");
13142
- var import_jsx_runtime312 = require("react/jsx-runtime");
13357
+ var import_jsx_runtime313 = require("react/jsx-runtime");
13143
13358
  var toItemState = (active, completed, disabled) => {
13144
13359
  if (disabled) {
13145
13360
  return "disabled";
@@ -13184,10 +13399,10 @@ var ProgressTrackerItem = (props) => {
13184
13399
  };
13185
13400
  const stepNumberContent = (0, import_react82.useMemo)(() => {
13186
13401
  if (completed) {
13187
- return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
13402
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(Icon, { icon: CheckIcon, iconSize: "small" });
13188
13403
  }
13189
13404
  if (icon !== void 0) {
13190
- return /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(Icon, { icon, iconSize: "small" });
13405
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(Icon, { icon, iconSize: "small" });
13191
13406
  }
13192
13407
  return stepNumber;
13193
13408
  }, [completed, icon, index]);
@@ -13196,8 +13411,8 @@ var ProgressTrackerItem = (props) => {
13196
13411
  if (active) return "text-action-resting";
13197
13412
  }
13198
13413
  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)(
13414
+ const stepContent = /* @__PURE__ */ (0, import_jsx_runtime313.jsxs)(import_jsx_runtime313.Fragment, { children: [
13415
+ /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13201
13416
  Box,
13202
13417
  {
13203
13418
  display: "flex",
@@ -13212,7 +13427,7 @@ var ProgressTrackerItem = (props) => {
13212
13427
  children: stepNumberContent
13213
13428
  }
13214
13429
  ),
13215
- /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13430
+ /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13216
13431
  Typography,
13217
13432
  {
13218
13433
  as: "div",
@@ -13228,14 +13443,14 @@ var ProgressTrackerItem = (props) => {
13228
13443
  )
13229
13444
  ] });
13230
13445
  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)(
13446
+ return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13232
13447
  Box,
13233
13448
  {
13234
13449
  as: "li",
13235
13450
  display: direction === "row" ? "flex" : void 0,
13236
13451
  "aria-current": active ? "step" : void 0,
13237
13452
  className: cn(ProgressTracker_default["list-item"], ProgressTracker_default[`list-item--${direction}`]),
13238
- children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13453
+ children: handleStepChange ? /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13239
13454
  Box,
13240
13455
  {
13241
13456
  as: StylelessButton,
@@ -13260,7 +13475,7 @@ var ProgressTrackerItem = (props) => {
13260
13475
  disabled,
13261
13476
  children: stepContent
13262
13477
  }
13263
- ) : /* @__PURE__ */ (0, import_jsx_runtime312.jsx)(
13478
+ ) : /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13264
13479
  "div",
13265
13480
  {
13266
13481
  ...getBaseHTMLProps(
@@ -13296,7 +13511,7 @@ var texts24 = createTexts({
13296
13511
  });
13297
13512
 
13298
13513
  // src/components/ProgressTracker/ProgressTracker.tsx
13299
- var import_jsx_runtime313 = require("react/jsx-runtime");
13514
+ var import_jsx_runtime314 = require("react/jsx-runtime");
13300
13515
  var ProgressTracker = (() => {
13301
13516
  const Res = ({
13302
13517
  id,
@@ -13327,7 +13542,7 @@ var ProgressTracker = (() => {
13327
13542
  }, [children]);
13328
13543
  const isRow = direction === "row";
13329
13544
  const { "aria-label": ariaLabel } = htmlProps;
13330
- return /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13545
+ return /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13331
13546
  ProgressTrackerContext,
13332
13547
  {
13333
13548
  value: {
@@ -13335,12 +13550,12 @@ var ProgressTracker = (() => {
13335
13550
  handleStepChange: handleChange,
13336
13551
  direction
13337
13552
  },
13338
- children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13553
+ children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13339
13554
  "nav",
13340
13555
  {
13341
13556
  "aria-label": ariaLabel != null ? ariaLabel : t(texts25.stepProgression),
13342
13557
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
13343
- children: /* @__PURE__ */ (0, import_jsx_runtime313.jsx)(
13558
+ children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13344
13559
  Box,
13345
13560
  {
13346
13561
  as: StylelessOList,
@@ -13400,7 +13615,7 @@ var ProgressBar_default = {
13400
13615
  };
13401
13616
 
13402
13617
  // src/components/ProgressBar/ProgressBar.tsx
13403
- var import_jsx_runtime314 = require("react/jsx-runtime");
13618
+ var import_jsx_runtime315 = require("react/jsx-runtime");
13404
13619
  var PROGRESS_BAR_SIZES = createSizes("small", "medium");
13405
13620
  var ProgressBar = ({
13406
13621
  label,
@@ -13426,9 +13641,9 @@ var ProgressBar = ({
13426
13641
  const errorMessageId = derivativeIdGenerator(uniqueId, "errorMessage");
13427
13642
  const fillPrecentage = hasValidValue && value / (max != null ? max : 1) * 100 + "%";
13428
13643
  const isIndeterminate = !hasValidValue && !hasErrorMessage;
13429
- return /* @__PURE__ */ (0, import_jsx_runtime314.jsxs)(Box, { width: "100%", className, style, children: [
13644
+ return /* @__PURE__ */ (0, import_jsx_runtime315.jsxs)(Box, { width: "100%", className, style, children: [
13430
13645
  renderLabel({ label, htmlFor: uniqueId }),
13431
- /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13646
+ /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
13432
13647
  "progress",
13433
13648
  {
13434
13649
  id: uniqueId,
@@ -13444,13 +13659,13 @@ var ProgressBar = ({
13444
13659
  children: fillPrecentage
13445
13660
  }
13446
13661
  ),
13447
- /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13662
+ /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
13448
13663
  Box,
13449
13664
  {
13450
13665
  width: getInputWidth(width),
13451
13666
  height: size2 === "small" ? "x0.75" : "x1.5",
13452
13667
  className: cn(ProgressBar_default.progress),
13453
- children: /* @__PURE__ */ (0, import_jsx_runtime314.jsx)(
13668
+ children: /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
13454
13669
  Box,
13455
13670
  {
13456
13671
  height: "100%",
@@ -13490,7 +13705,7 @@ var Search_default = {
13490
13705
 
13491
13706
  // src/components/Search/SearchSuggestionItem.tsx
13492
13707
  var import_react86 = require("react");
13493
- var import_jsx_runtime315 = require("react/jsx-runtime");
13708
+ var import_jsx_runtime316 = require("react/jsx-runtime");
13494
13709
  var SearchSuggestionItem = ({
13495
13710
  focus,
13496
13711
  ref,
@@ -13504,7 +13719,7 @@ var SearchSuggestionItem = ({
13504
13719
  (_a = itemRef.current) == null ? void 0 : _a.focus();
13505
13720
  }
13506
13721
  }, [focus]);
13507
- return /* @__PURE__ */ (0, import_jsx_runtime315.jsx)(
13722
+ return /* @__PURE__ */ (0, import_jsx_runtime316.jsx)(
13508
13723
  DropdownItem,
13509
13724
  {
13510
13725
  as: StylelessButton,
@@ -13517,7 +13732,7 @@ var SearchSuggestionItem = ({
13517
13732
  SearchSuggestionItem.displayName = "SearchSuggestionItem";
13518
13733
 
13519
13734
  // src/components/Search/SearchSuggestions.tsx
13520
- var import_jsx_runtime316 = require("react/jsx-runtime");
13735
+ var import_jsx_runtime317 = require("react/jsx-runtime");
13521
13736
  var SearchSuggestions = ({
13522
13737
  id,
13523
13738
  searchId,
@@ -13537,7 +13752,7 @@ var SearchSuggestions = ({
13537
13752
  const { t } = useTranslation();
13538
13753
  const [focus] = useRoveFocus(suggestions == null ? void 0 : suggestions.length, showSuggestions);
13539
13754
  const suggestionsToRender = maxSuggestions ? suggestions == null ? void 0 : suggestions.slice(maxSuggestions) : suggestions;
13540
- return /* @__PURE__ */ (0, import_jsx_runtime316.jsxs)(
13755
+ return /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)(
13541
13756
  Paper,
13542
13757
  {
13543
13758
  ...getBaseHTMLProps(
@@ -13562,9 +13777,9 @@ var SearchSuggestions = ({
13562
13777
  overflowY: "scroll",
13563
13778
  marginBlock: "x0.25 0",
13564
13779
  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)(
13780
+ /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(DropdownHeader, { id: suggestionsHeaderId, children: t(texts26.searchSuggestions) }),
13781
+ /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(StylelessList, { role: "listbox", "aria-labelledby": suggestionsHeaderId, children: suggestionsToRender.map((suggestion, index) => {
13782
+ return /* @__PURE__ */ (0, import_jsx_runtime317.jsx)("li", { role: "option", children: /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13568
13783
  SearchSuggestionItem,
13569
13784
  {
13570
13785
  index,
@@ -13600,7 +13815,7 @@ var texts26 = createTexts({
13600
13815
  });
13601
13816
 
13602
13817
  // src/components/Search/Search.tsx
13603
- var import_jsx_runtime317 = require("react/jsx-runtime");
13818
+ var import_jsx_runtime318 = require("react/jsx-runtime");
13604
13819
  var Search = ({
13605
13820
  componentSize = "medium",
13606
13821
  buttonProps,
@@ -13648,7 +13863,7 @@ var Search = ({
13648
13863
  } = buttonProps != null ? buttonProps : {};
13649
13864
  const hasSuggestions = !!context.suggestions;
13650
13865
  const showSearchButton = !!buttonProps && !!onClick;
13651
- const inputGroup = /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)(
13866
+ const inputGroup = /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)(
13652
13867
  HStack,
13653
13868
  {
13654
13869
  position: "relative",
@@ -13659,7 +13874,7 @@ var Search = ({
13659
13874
  Input_default["input-group"]
13660
13875
  ),
13661
13876
  children: [
13662
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13877
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
13663
13878
  Icon,
13664
13879
  {
13665
13880
  icon: SearchIcon,
@@ -13670,7 +13885,7 @@ var Search = ({
13670
13885
  )
13671
13886
  }
13672
13887
  ),
13673
- /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13888
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
13674
13889
  Box,
13675
13890
  {
13676
13891
  as: Input,
@@ -13700,8 +13915,8 @@ var Search = ({
13700
13915
  )
13701
13916
  }
13702
13917
  ),
13703
- hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)(import_jsx_runtime317.Fragment, { children: [
13704
- /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13918
+ hasSuggestions && /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)(import_jsx_runtime318.Fragment, { children: [
13919
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
13705
13920
  SearchSuggestions,
13706
13921
  {
13707
13922
  id: suggestionsId,
@@ -13712,9 +13927,9 @@ var Search = ({
13712
13927
  showSuggestions: context.showSuggestions
13713
13928
  }
13714
13929
  ),
13715
- /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts27.useArrowKeys) })
13930
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(VisuallyHidden, { id: suggestionsDescriptionId, children: t(texts27.useArrowKeys) })
13716
13931
  ] }),
13717
- hasValue && /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13932
+ hasValue && /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
13718
13933
  ClearButton,
13719
13934
  {
13720
13935
  size: "component",
@@ -13729,10 +13944,10 @@ var Search = ({
13729
13944
  ]
13730
13945
  }
13731
13946
  );
13732
- return /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)("div", { children: [
13947
+ return /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)("div", { children: [
13733
13948
  renderLabel({ htmlFor: uniqueId, label }),
13734
- /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)("div", { children: [
13735
- showSearchButton ? /* @__PURE__ */ (0, import_jsx_runtime317.jsxs)(
13949
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)("div", { children: [
13950
+ showSearchButton ? /* @__PURE__ */ (0, import_jsx_runtime318.jsxs)(
13736
13951
  Grid,
13737
13952
  {
13738
13953
  className,
@@ -13744,7 +13959,7 @@ var Search = ({
13744
13959
  style,
13745
13960
  children: [
13746
13961
  inputGroup,
13747
- /* @__PURE__ */ (0, import_jsx_runtime317.jsx)(
13962
+ /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(
13748
13963
  Button,
13749
13964
  {
13750
13965
  size: componentSize,
@@ -13787,7 +14002,7 @@ var texts27 = createTexts({
13787
14002
 
13788
14003
  // src/components/Search/SearchAutocompleteWrapper.tsx
13789
14004
  var import_react88 = require("react");
13790
- var import_jsx_runtime318 = require("react/jsx-runtime");
14005
+ var import_jsx_runtime319 = require("react/jsx-runtime");
13791
14006
  var SearchAutocompleteWrapper = (props) => {
13792
14007
  const {
13793
14008
  value,
@@ -13850,7 +14065,7 @@ var SearchAutocompleteWrapper = (props) => {
13850
14065
  };
13851
14066
  const inputRef = (0, import_react88.useRef)(null);
13852
14067
  const suggestionsRef = (0, import_react88.useRef)(null);
13853
- useOnClickOutside([inputRef.current, suggestionsRef.current], () => {
14068
+ useOnClickOutside([inputRef, suggestionsRef], () => {
13854
14069
  closeSuggestions();
13855
14070
  });
13856
14071
  useOnKeyDown("Tab", () => closeSuggestions());
@@ -13863,7 +14078,7 @@ var SearchAutocompleteWrapper = (props) => {
13863
14078
  inputValue,
13864
14079
  onSugggestionClick: handleSuggestionClick
13865
14080
  };
13866
- return /* @__PURE__ */ (0, import_jsx_runtime318.jsx)(AutocompleteSearchContext, { value: contextProps, children });
14081
+ return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(AutocompleteSearchContext, { value: contextProps, children });
13867
14082
  };
13868
14083
  SearchAutocompleteWrapper.displayName = "SearchAutocompleteWrapper";
13869
14084
 
@@ -13879,7 +14094,7 @@ var Skeleton_default = {
13879
14094
  };
13880
14095
 
13881
14096
  // src/components/Skeleton/Skeleton.tsx
13882
- var import_jsx_runtime319 = require("react/jsx-runtime");
14097
+ var import_jsx_runtime320 = require("react/jsx-runtime");
13883
14098
  var Skeleton = ({
13884
14099
  width,
13885
14100
  height,
@@ -13889,7 +14104,7 @@ var Skeleton = ({
13889
14104
  ref,
13890
14105
  ...rest
13891
14106
  }) => {
13892
- return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
14107
+ return /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
13893
14108
  Box,
13894
14109
  {
13895
14110
  width,
@@ -13909,7 +14124,7 @@ var SkipToContent_default = {
13909
14124
  };
13910
14125
 
13911
14126
  // src/components/SkipToContent/SkipToContent.tsx
13912
- var import_jsx_runtime320 = require("react/jsx-runtime");
14127
+ var import_jsx_runtime321 = require("react/jsx-runtime");
13913
14128
  var SkipToContent = ({
13914
14129
  text = "Til hovedinnhold",
13915
14130
  top = 0,
@@ -13919,7 +14134,7 @@ var SkipToContent = ({
13919
14134
  style,
13920
14135
  ...rest
13921
14136
  }) => {
13922
- return /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(
14137
+ return /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
13923
14138
  Contrast,
13924
14139
  {
13925
14140
  padding: "x0.25",
@@ -13931,7 +14146,7 @@ var SkipToContent = ({
13931
14146
  className: cn(className, SkipToContent_default.wrapper),
13932
14147
  style,
13933
14148
  top,
13934
- children: /* @__PURE__ */ (0, import_jsx_runtime320.jsx)(Link, { ...rest, ...htmlProps, id, typographyType: "bodyShortMedium", children: text })
14149
+ children: /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(Link, { ...rest, ...htmlProps, id, typographyType: "bodyShortMedium", children: text })
13935
14150
  }
13936
14151
  );
13937
14152
  };
@@ -13949,7 +14164,7 @@ var SplitButton_default = {
13949
14164
  };
13950
14165
 
13951
14166
  // src/components/SplitButton/SplitButton.tsx
13952
- var import_jsx_runtime321 = require("react/jsx-runtime");
14167
+ var import_jsx_runtime322 = require("react/jsx-runtime");
13953
14168
  var SplitButton = ({
13954
14169
  size: size2,
13955
14170
  primaryAction,
@@ -13964,8 +14179,8 @@ var SplitButton = ({
13964
14179
  purpose,
13965
14180
  size: size2
13966
14181
  };
13967
- return /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
13968
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
14182
+ return /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)("div", { className: cn(className, SplitButton_default.container), ...rest, children: [
14183
+ /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
13969
14184
  Button,
13970
14185
  {
13971
14186
  ...buttonStyleProps,
@@ -13974,8 +14189,8 @@ var SplitButton = ({
13974
14189
  className: SplitButton_default.main
13975
14190
  }
13976
14191
  ),
13977
- /* @__PURE__ */ (0, import_jsx_runtime321.jsxs)(OverflowMenuGroup, { isOpen, setIsOpen, children: [
13978
- /* @__PURE__ */ (0, import_jsx_runtime321.jsx)(
14192
+ /* @__PURE__ */ (0, import_jsx_runtime322.jsxs)(OverflowMenuGroup, { isOpen, setIsOpen, children: [
14193
+ /* @__PURE__ */ (0, import_jsx_runtime322.jsx)(
13979
14194
  Button,
13980
14195
  {
13981
14196
  ...buttonStyleProps,
@@ -13989,7 +14204,7 @@ var SplitButton = ({
13989
14204
  type: "button"
13990
14205
  }
13991
14206
  ),
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)) }) })
14207
+ /* @__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
14208
  ] })
13994
14209
  ] });
13995
14210
  };
@@ -14016,14 +14231,14 @@ var CollapsibleTableContext = (0, import_react90.createContext)({
14016
14231
  var useCollapsibleTableContext = () => (0, import_react90.useContext)(CollapsibleTableContext);
14017
14232
 
14018
14233
  // 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 });
14234
+ var import_jsx_runtime323 = require("react/jsx-runtime");
14235
+ var Body = (props) => /* @__PURE__ */ (0, import_jsx_runtime323.jsx)("tbody", { ...props });
14021
14236
  Body.displayName = "Table.Body";
14022
14237
 
14023
14238
  // src/components/Table/normal/Head.tsx
14024
14239
  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 }) });
14240
+ var import_jsx_runtime324 = require("react/jsx-runtime");
14241
+ var Head = ({ children, ...rest }) => /* @__PURE__ */ (0, import_jsx_runtime324.jsx)("thead", { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(HeadContext, { value: true, children }) });
14027
14242
  var HeadContext = (0, import_react91.createContext)(false);
14028
14243
  function useIsInTableHead() {
14029
14244
  const isInTableHead = (0, import_react91.useContext)(HeadContext);
@@ -14031,7 +14246,7 @@ function useIsInTableHead() {
14031
14246
  }
14032
14247
 
14033
14248
  // src/components/Table/normal/Cell.tsx
14034
- var import_jsx_runtime324 = require("react/jsx-runtime");
14249
+ var import_jsx_runtime325 = require("react/jsx-runtime");
14035
14250
  var Cell = ({
14036
14251
  children,
14037
14252
  type: _type,
@@ -14044,7 +14259,7 @@ var Cell = ({
14044
14259
  const type = _type != null ? _type : isInHead ? "head" : "data";
14045
14260
  const { isCollapsibleChild } = collapsibleProps != null ? collapsibleProps : {};
14046
14261
  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)(
14262
+ return isCollapsibleChild ? /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(DescriptionListDesc, { children }) : type === "head" ? /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
14048
14263
  "th",
14049
14264
  {
14050
14265
  ...rest,
@@ -14053,26 +14268,26 @@ var Cell = ({
14053
14268
  !isComplexLayout && Table_default[`cell--${layout}`],
14054
14269
  Table_default["cell--head"]
14055
14270
  ),
14056
- children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime324.jsx)("div", { className: Table_default.cell__inner, children }) : children
14271
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime325.jsx)("div", { className: Table_default.cell__inner, children }) : children
14057
14272
  }
14058
- ) : /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(
14273
+ ) : /* @__PURE__ */ (0, import_jsx_runtime325.jsx)(
14059
14274
  "td",
14060
14275
  {
14061
14276
  ...rest,
14062
14277
  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
14278
+ children: isComplexLayout ? /* @__PURE__ */ (0, import_jsx_runtime325.jsx)("div", { className: Table_default.cell__inner, children }) : children
14064
14279
  }
14065
14280
  );
14066
14281
  };
14067
14282
  Cell.displayName = "Table.Cell";
14068
14283
 
14069
14284
  // 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 });
14285
+ var import_jsx_runtime326 = require("react/jsx-runtime");
14286
+ var Foot = (props) => /* @__PURE__ */ (0, import_jsx_runtime326.jsx)("tfoot", { ...props });
14072
14287
  Foot.displayName = "Table.Foot";
14073
14288
 
14074
14289
  // src/components/Table/normal/Row.tsx
14075
- var import_jsx_runtime326 = require("react/jsx-runtime");
14290
+ var import_jsx_runtime327 = require("react/jsx-runtime");
14076
14291
  var Row = ({
14077
14292
  type: _type,
14078
14293
  mode = "normal",
@@ -14083,7 +14298,7 @@ var Row = ({
14083
14298
  }) => {
14084
14299
  const isInHeader = useIsInTableHead();
14085
14300
  const type = _type != null ? _type : isInHeader ? "head" : "body";
14086
- return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(
14301
+ return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
14087
14302
  "tr",
14088
14303
  {
14089
14304
  className: cn(
@@ -14103,7 +14318,7 @@ var Row = ({
14103
14318
  Row.displayName = "Table.Row";
14104
14319
 
14105
14320
  // src/components/Table/normal/SortCell.tsx
14106
- var import_jsx_runtime327 = require("react/jsx-runtime");
14321
+ var import_jsx_runtime328 = require("react/jsx-runtime");
14107
14322
  var SortCell = ({
14108
14323
  isSorted,
14109
14324
  sortOrder,
@@ -14117,13 +14332,13 @@ var SortCell = ({
14117
14332
  if (sortOrder === "ascending") return ChevronDownIcon;
14118
14333
  return ChevronUpIcon;
14119
14334
  };
14120
- return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(
14335
+ return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
14121
14336
  Cell,
14122
14337
  {
14123
14338
  type: "head",
14124
14339
  "aria-sort": isSorted && sortOrder ? sortOrder : void 0,
14125
14340
  ...rest,
14126
- children: /* @__PURE__ */ (0, import_jsx_runtime327.jsxs)(
14341
+ children: /* @__PURE__ */ (0, import_jsx_runtime328.jsxs)(
14127
14342
  StylelessButton,
14128
14343
  {
14129
14344
  onClick,
@@ -14132,7 +14347,7 @@ var SortCell = ({
14132
14347
  children: [
14133
14348
  children,
14134
14349
  " ",
14135
- /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(Icon, { icon: SortIcon(), iconSize: "component" })
14350
+ /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(Icon, { icon: SortIcon(), iconSize: "component" })
14136
14351
  ]
14137
14352
  }
14138
14353
  )
@@ -14151,7 +14366,7 @@ var texts29 = createTexts({
14151
14366
  });
14152
14367
 
14153
14368
  // src/components/Table/normal/Table.tsx
14154
- var import_jsx_runtime328 = require("react/jsx-runtime");
14369
+ var import_jsx_runtime329 = require("react/jsx-runtime");
14155
14370
  var Table = ({
14156
14371
  size: size2 = "medium",
14157
14372
  stickyHeader,
@@ -14170,7 +14385,7 @@ var Table = ({
14170
14385
  return "medium";
14171
14386
  }
14172
14387
  };
14173
- return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(
14388
+ return /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
14174
14389
  "table",
14175
14390
  {
14176
14391
  ...rest,
@@ -14192,7 +14407,7 @@ Table.displayName = "Table";
14192
14407
 
14193
14408
  // src/components/Table/normal/TableWrapper.tsx
14194
14409
  var import_react92 = require("react");
14195
- var import_jsx_runtime329 = require("react/jsx-runtime");
14410
+ var import_jsx_runtime330 = require("react/jsx-runtime");
14196
14411
  var TableWrapper = ({ className, ...rest }) => {
14197
14412
  const themeContext = (0, import_react92.useContext)(ThemeContext);
14198
14413
  const container2 = themeContext == null ? void 0 : themeContext.el;
@@ -14217,7 +14432,7 @@ var TableWrapper = ({ className, ...rest }) => {
14217
14432
  window.addEventListener("resize", handleResize);
14218
14433
  return () => window.removeEventListener("resize", handleResize);
14219
14434
  });
14220
- return /* @__PURE__ */ (0, import_jsx_runtime329.jsx)(
14435
+ return /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
14221
14436
  "div",
14222
14437
  {
14223
14438
  ref: wrapperRef,
@@ -14244,7 +14459,7 @@ Table2.Row = Row;
14244
14459
  Table2.Foot = Foot;
14245
14460
 
14246
14461
  // src/components/Table/collapsible/CollapsibleRow.tsx
14247
- var import_jsx_runtime330 = require("react/jsx-runtime");
14462
+ var import_jsx_runtime331 = require("react/jsx-runtime");
14248
14463
  var CollapsibleRow = ({
14249
14464
  type: _type,
14250
14465
  className,
@@ -14287,24 +14502,24 @@ var CollapsibleRow = ({
14287
14502
  const collapsedRenderedChildren = isCollapsed && collapsedHeaderValues.length > 0 ? collapsedChildren.map(function(child, index) {
14288
14503
  const id = derivativeIdGenerator(prefix2, index.toString());
14289
14504
  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 }),
14505
+ return /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(import_react93.Fragment, { children: [
14506
+ /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(DescriptionListTerm, { children: collapsedHeaderValues[index].content }),
14292
14507
  (0, import_react93.isValidElement)(child) && (0, import_react93.cloneElement)(child, {
14293
14508
  collapsibleProps: { isCollapsibleChild: true }
14294
14509
  })
14295
14510
  ] }, `DL-${index}`);
14296
14511
  }) : 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;
14512
+ 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
14513
  const definingColumnCells = childrenArray.slice().filter((column, index) => definingColumnIndex.indexOf(index) > -1).sort((a, b) => {
14299
14514
  return definingColumnIndex.indexOf(childrenArray.indexOf(a)) - definingColumnIndex.indexOf(childrenArray.indexOf(b));
14300
14515
  });
14301
14516
  const headerRow = () => {
14302
14517
  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: [
14518
+ return /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(Row, { ref, ...rowProps(), children: /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(import_jsx_runtime331.Fragment, { children: [
14304
14519
  definingColumnCells,
14305
- /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
14520
+ /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(Table2.Cell, { type: "head", layout: "center", children: [
14306
14521
  t(texts30.expand),
14307
- /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(VisuallyHidden, { children: t(texts30.row) })
14522
+ /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(VisuallyHidden, { children: t(texts30.row) })
14308
14523
  ] })
14309
14524
  ] }) });
14310
14525
  };
@@ -14312,16 +14527,16 @@ var CollapsibleRow = ({
14312
14527
  const rowWithChevron = () => {
14313
14528
  if (type !== "body" || !isCollapsed) return null;
14314
14529
  const iconState = childrenCollapsed ? "down" : "up";
14315
- return /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
14530
+ return /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(Row, { ref, ...rowProps(!childrenCollapsed && true), children: [
14316
14531
  definingColumnCells,
14317
- /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
14532
+ /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(Table2.Cell, { children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
14318
14533
  StylelessButton,
14319
14534
  {
14320
14535
  onClick: () => setChildrenCollapsed(!childrenCollapsed),
14321
14536
  "aria-expanded": !childrenCollapsed,
14322
14537
  "aria-controls": idList,
14323
14538
  className: cn(Table_default["collapse-button"], focusable),
14324
- children: /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(
14539
+ children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
14325
14540
  Icon,
14326
14541
  {
14327
14542
  icon: AnimatedChevronUpDownIcon,
@@ -14333,13 +14548,13 @@ var CollapsibleRow = ({
14333
14548
  ) })
14334
14549
  ] });
14335
14550
  };
14336
- return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(import_jsx_runtime330.Fragment, { children: [
14551
+ return isCollapsed && collapsedRenderedChildren && collapsedRenderedChildren.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(import_jsx_runtime331.Fragment, { children: [
14337
14552
  headerRow(),
14338
- type === "body" && /* @__PURE__ */ (0, import_jsx_runtime330.jsxs)(import_jsx_runtime330.Fragment, { children: [
14553
+ type === "body" && /* @__PURE__ */ (0, import_jsx_runtime331.jsxs)(import_jsx_runtime331.Fragment, { children: [
14339
14554
  rowWithChevron(),
14340
14555
  childrenCollapsed ? null : collapsedRows
14341
14556
  ] })
14342
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime330.jsx)(Row, { ref, ...rowProps(), children });
14557
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(Row, { ref, ...rowProps(), children });
14343
14558
  };
14344
14559
  CollapsibleRow.displayName = "CollapsibleTable.Row";
14345
14560
  var texts30 = createTexts({
@@ -14360,14 +14575,14 @@ var texts30 = createTexts({
14360
14575
  });
14361
14576
 
14362
14577
  // src/components/Table/collapsible/CollapsibleTable.tsx
14363
- var import_jsx_runtime331 = require("react/jsx-runtime");
14578
+ var import_jsx_runtime332 = require("react/jsx-runtime");
14364
14579
  var CollapsibleTable = ({
14365
14580
  isCollapsed,
14366
14581
  headerValues,
14367
14582
  definingColumnIndex = [0],
14368
14583
  ...rest
14369
14584
  }) => {
14370
- return /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(
14585
+ return /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(
14371
14586
  CollapsibleTableContext,
14372
14587
  {
14373
14588
  value: {
@@ -14375,7 +14590,7 @@ var CollapsibleTable = ({
14375
14590
  headerValues,
14376
14591
  definingColumnIndex
14377
14592
  },
14378
- children: /* @__PURE__ */ (0, import_jsx_runtime331.jsx)(Table2, { ...rest })
14593
+ children: /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(Table2, { ...rest })
14379
14594
  }
14380
14595
  );
14381
14596
  };
@@ -14421,13 +14636,13 @@ var Tabs_default = {
14421
14636
 
14422
14637
  // src/components/Tabs/TabWidthContext.tsx
14423
14638
  var import_react95 = require("react");
14424
- var import_jsx_runtime332 = require("react/jsx-runtime");
14639
+ var import_jsx_runtime333 = require("react/jsx-runtime");
14425
14640
  var TabContext = (0, import_react95.createContext)(null);
14426
14641
  function TabWidthContextProvider({
14427
14642
  children,
14428
14643
  onChangeWidths
14429
14644
  }) {
14430
- return /* @__PURE__ */ (0, import_jsx_runtime332.jsx)(
14645
+ return /* @__PURE__ */ (0, import_jsx_runtime333.jsx)(
14431
14646
  TabContext,
14432
14647
  {
14433
14648
  value: {
@@ -14459,7 +14674,7 @@ function useSetTabWidth(index, width) {
14459
14674
  }
14460
14675
 
14461
14676
  // src/components/Tabs/AddTabButton.tsx
14462
- var import_jsx_runtime333 = require("react/jsx-runtime");
14677
+ var import_jsx_runtime334 = require("react/jsx-runtime");
14463
14678
  var AddTabButton = ({
14464
14679
  ref,
14465
14680
  children,
@@ -14472,7 +14687,7 @@ var AddTabButton = ({
14472
14687
  const buttonRef = (0, import_react96.useRef)(null);
14473
14688
  const combinedRef = useCombinedRef(ref, buttonRef);
14474
14689
  const { tabContentDirection, size: size2 } = useTabsContext();
14475
- return /* @__PURE__ */ (0, import_jsx_runtime333.jsxs)(
14690
+ return /* @__PURE__ */ (0, import_jsx_runtime334.jsxs)(
14476
14691
  "button",
14477
14692
  {
14478
14693
  ...rest,
@@ -14485,8 +14700,8 @@ var AddTabButton = ({
14485
14700
  focus_default["focusable--inset"]
14486
14701
  ),
14487
14702
  children: [
14488
- /* @__PURE__ */ (0, import_jsx_runtime333.jsx)(Icon, { icon: PlusIcon, iconSize: "inherit" }),
14489
- /* @__PURE__ */ (0, import_jsx_runtime333.jsx)("span", { children })
14703
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(Icon, { icon: PlusIcon, iconSize: "inherit" }),
14704
+ /* @__PURE__ */ (0, import_jsx_runtime334.jsx)("span", { children })
14490
14705
  ]
14491
14706
  }
14492
14707
  );
@@ -14495,7 +14710,7 @@ AddTabButton.displayName = "AddTabButton";
14495
14710
 
14496
14711
  // src/components/Tabs/Tabs.tsx
14497
14712
  var import_react97 = require("react");
14498
- var import_jsx_runtime334 = require("react/jsx-runtime");
14713
+ var import_jsx_runtime335 = require("react/jsx-runtime");
14499
14714
  var TABS_SIZES = createSizes("small", "medium");
14500
14715
  var Tabs = ({
14501
14716
  id,
@@ -14526,7 +14741,7 @@ var Tabs = ({
14526
14741
  setActiveTab(activeTab);
14527
14742
  }
14528
14743
  }, [activeTab, thisActiveTab]);
14529
- return /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
14744
+ return /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
14530
14745
  TabsContext,
14531
14746
  {
14532
14747
  value: {
@@ -14541,7 +14756,7 @@ var Tabs = ({
14541
14756
  tabContentDirection,
14542
14757
  addTabButtonProps
14543
14758
  },
14544
- children: /* @__PURE__ */ (0, import_jsx_runtime334.jsx)(
14759
+ children: /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(
14545
14760
  Box,
14546
14761
  {
14547
14762
  ...getBaseHTMLProps(uniqueId, className, style, htmlProps, rest),
@@ -14556,7 +14771,7 @@ Tabs.displayName = "Tabs";
14556
14771
 
14557
14772
  // src/components/Tabs/Tab.tsx
14558
14773
  var import_react98 = require("react");
14559
- var import_jsx_runtime335 = require("react/jsx-runtime");
14774
+ var import_jsx_runtime336 = require("react/jsx-runtime");
14560
14775
  var Tab = ({
14561
14776
  active = false,
14562
14777
  icon,
@@ -14599,7 +14814,7 @@ var Tab = ({
14599
14814
  handleSelect();
14600
14815
  onKeyDown == null ? void 0 : onKeyDown(e);
14601
14816
  };
14602
- return /* @__PURE__ */ (0, import_jsx_runtime335.jsxs)(
14817
+ return /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
14603
14818
  "button",
14604
14819
  {
14605
14820
  ...getBaseHTMLProps(
@@ -14624,8 +14839,8 @@ var Tab = ({
14624
14839
  onKeyDown: handleOnKeyDown,
14625
14840
  tabIndex: focus ? 0 : -1,
14626
14841
  children: [
14627
- icon && /* @__PURE__ */ (0, import_jsx_runtime335.jsx)(Icon, { icon, iconSize: "component" }),
14628
- /* @__PURE__ */ (0, import_jsx_runtime335.jsx)("span", { children })
14842
+ icon && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(Icon, { icon, iconSize: "component" }),
14843
+ /* @__PURE__ */ (0, import_jsx_runtime336.jsx)("span", { children })
14629
14844
  ]
14630
14845
  }
14631
14846
  );
@@ -14634,7 +14849,7 @@ Tab.displayName = "Tab";
14634
14849
 
14635
14850
  // src/components/Tabs/TabList.tsx
14636
14851
  var import_react99 = require("react");
14637
- var import_jsx_runtime336 = require("react/jsx-runtime");
14852
+ var import_jsx_runtime337 = require("react/jsx-runtime");
14638
14853
  var TabList = ({
14639
14854
  children,
14640
14855
  id,
@@ -14692,7 +14907,7 @@ var TabList = ({
14692
14907
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
14693
14908
  ["--dds-tab-widths"]: widths.join(" ")
14694
14909
  };
14695
- return /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime336.jsxs)(
14910
+ return /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(TabWidthContextProvider, { onChangeWidths: setWidths, children: /* @__PURE__ */ (0, import_jsx_runtime337.jsxs)(
14696
14911
  "div",
14697
14912
  {
14698
14913
  ...rest,
@@ -14712,7 +14927,7 @@ var TabList = ({
14712
14927
  style: { ...style, ...customWidths },
14713
14928
  children: [
14714
14929
  tabListChildren,
14715
- hasButton && /* @__PURE__ */ (0, import_jsx_runtime336.jsx)(
14930
+ hasButton && /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
14716
14931
  AddTabButton,
14717
14932
  {
14718
14933
  index: tabListChildren ? tabListChildren.length : 0,
@@ -14726,7 +14941,7 @@ var TabList = ({
14726
14941
  TabList.displayName = "TabList";
14727
14942
 
14728
14943
  // src/components/Tabs/TabPanel.tsx
14729
- var import_jsx_runtime337 = require("react/jsx-runtime");
14944
+ var import_jsx_runtime338 = require("react/jsx-runtime");
14730
14945
  var TabPanel = ({
14731
14946
  active = false,
14732
14947
  children,
@@ -14736,7 +14951,7 @@ var TabPanel = ({
14736
14951
  htmlProps,
14737
14952
  padding = "x0.25",
14738
14953
  ...rest
14739
- }) => /* @__PURE__ */ (0, import_jsx_runtime337.jsx)(
14954
+ }) => /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(
14740
14955
  Box,
14741
14956
  {
14742
14957
  padding,
@@ -14751,7 +14966,7 @@ TabPanel.displayName = "TabPanel";
14751
14966
 
14752
14967
  // src/components/Tabs/TabPanels.tsx
14753
14968
  var import_react100 = require("react");
14754
- var import_jsx_runtime338 = require("react/jsx-runtime");
14969
+ var import_jsx_runtime339 = require("react/jsx-runtime");
14755
14970
  var TabPanels = ({ children, ref, ...rest }) => {
14756
14971
  const { activeTab, tabsId, tabPanelsRef } = useTabsContext();
14757
14972
  const combinedRef = useCombinedRef(ref, tabPanelsRef);
@@ -14766,7 +14981,7 @@ var TabPanels = ({ children, ref, ...rest }) => {
14766
14981
  }
14767
14982
  });
14768
14983
  });
14769
- return /* @__PURE__ */ (0, import_jsx_runtime338.jsx)(Box, { ref: combinedRef, ...rest, children: panelChildren });
14984
+ return /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(Box, { ref: combinedRef, ...rest, children: panelChildren });
14770
14985
  };
14771
14986
  TabPanels.displayName = "TabPanels";
14772
14987
 
@@ -14787,7 +15002,7 @@ var Tag_default = {
14787
15002
  };
14788
15003
 
14789
15004
  // src/components/Tag/Tag.tsx
14790
- var import_jsx_runtime339 = require("react/jsx-runtime");
15005
+ var import_jsx_runtime340 = require("react/jsx-runtime");
14791
15006
  var icons3 = {
14792
15007
  info: InfoIcon,
14793
15008
  danger: ErrorIcon,
@@ -14814,7 +15029,7 @@ var Tag = ({
14814
15029
  ...rest
14815
15030
  }) => {
14816
15031
  const icon = icons3[purpose];
14817
- return /* @__PURE__ */ (0, import_jsx_runtime339.jsxs)(
15032
+ return /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
14818
15033
  TextOverflowEllipsisWrapper,
14819
15034
  {
14820
15035
  ...getBaseHTMLProps(
@@ -14831,8 +15046,8 @@ var Tag = ({
14831
15046
  rest
14832
15047
  ),
14833
15048
  children: [
14834
- withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(Icon, { icon, iconSize: "component" }),
14835
- /* @__PURE__ */ (0, import_jsx_runtime339.jsx)(TextOverflowEllipsisInner, { children })
15049
+ withIcon && icon && /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(Icon, { icon, iconSize: "component" }),
15050
+ /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(TextOverflowEllipsisInner, { children })
14836
15051
  ]
14837
15052
  }
14838
15053
  );
@@ -14855,7 +15070,7 @@ var TextInput_default = {
14855
15070
  };
14856
15071
 
14857
15072
  // src/components/TextInput/TextInput.tsx
14858
- var import_jsx_runtime340 = require("react/jsx-runtime");
15073
+ var import_jsx_runtime341 = require("react/jsx-runtime");
14859
15074
  var TextInput = ({
14860
15075
  label,
14861
15076
  afterLabelContent,
@@ -14955,7 +15170,7 @@ var TextInput = ({
14955
15170
  disabled && TextInput_default["affix--disabled"]
14956
15171
  ];
14957
15172
  if (hasIcon) {
14958
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
15173
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
14959
15174
  Box,
14960
15175
  {
14961
15176
  className: cn(
@@ -14964,7 +15179,7 @@ var TextInput = ({
14964
15179
  ),
14965
15180
  width: inputWidth,
14966
15181
  children: [
14967
- /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
15182
+ /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
14968
15183
  Icon,
14969
15184
  {
14970
15185
  icon,
@@ -14975,7 +15190,7 @@ var TextInput = ({
14975
15190
  )
14976
15191
  }
14977
15192
  ),
14978
- /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
15193
+ /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
14979
15194
  StatefulInput,
14980
15195
  {
14981
15196
  className: cn(
@@ -14989,7 +15204,7 @@ var TextInput = ({
14989
15204
  }
14990
15205
  );
14991
15206
  } else if (hasAffix) {
14992
- extendedInput = /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
15207
+ extendedInput = /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
14993
15208
  Box,
14994
15209
  {
14995
15210
  position: "relative",
@@ -14997,7 +15212,7 @@ var TextInput = ({
14997
15212
  alignItems: "center",
14998
15213
  width: inputWidth,
14999
15214
  children: [
15000
- prefix2 && /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
15215
+ prefix2 && /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
15001
15216
  "span",
15002
15217
  {
15003
15218
  ref: prefixRef,
@@ -15010,7 +15225,7 @@ var TextInput = ({
15010
15225
  children: prefix2
15011
15226
  }
15012
15227
  ),
15013
- /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
15228
+ /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
15014
15229
  StatefulInput,
15015
15230
  {
15016
15231
  style: {
@@ -15021,7 +15236,7 @@ var TextInput = ({
15021
15236
  ...generalInputProps
15022
15237
  }
15023
15238
  ),
15024
- suffix && /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
15239
+ suffix && /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
15025
15240
  "span",
15026
15241
  {
15027
15242
  ref: suffixRef,
@@ -15039,7 +15254,7 @@ var TextInput = ({
15039
15254
  }
15040
15255
  );
15041
15256
  }
15042
- return /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
15257
+ return /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
15043
15258
  "div",
15044
15259
  {
15045
15260
  className: cn(
@@ -15058,8 +15273,8 @@ var TextInput = ({
15058
15273
  readOnly,
15059
15274
  afterLabelContent
15060
15275
  }),
15061
- extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
15062
- hasBottomContainer && /* @__PURE__ */ (0, import_jsx_runtime340.jsxs)(
15276
+ extendedInput ? extendedInput : /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(Box, { as: StatefulInput, width: inputWidth, ...generalInputProps }),
15277
+ hasBottomContainer && /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
15063
15278
  Box,
15064
15279
  {
15065
15280
  display: "flex",
@@ -15104,7 +15319,7 @@ var ToggleBar_default = {
15104
15319
  };
15105
15320
 
15106
15321
  // src/components/ToggleBar/ToggleBar.tsx
15107
- var import_jsx_runtime341 = require("react/jsx-runtime");
15322
+ var import_jsx_runtime342 = require("react/jsx-runtime");
15108
15323
  var ToggleBar = (props) => {
15109
15324
  const {
15110
15325
  children,
@@ -15129,7 +15344,7 @@ var ToggleBar = (props) => {
15129
15344
  (e) => onChange && onChange(e, e.target.value)
15130
15345
  );
15131
15346
  const labelId = label && `${uniqueId}-label`;
15132
- return /* @__PURE__ */ (0, import_jsx_runtime341.jsx)(
15347
+ return /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(
15133
15348
  ToggleBarContext,
15134
15349
  {
15135
15350
  value: {
@@ -15139,7 +15354,7 @@ var ToggleBar = (props) => {
15139
15354
  name,
15140
15355
  value: groupValue
15141
15356
  },
15142
- children: /* @__PURE__ */ (0, import_jsx_runtime341.jsxs)(
15357
+ children: /* @__PURE__ */ (0, import_jsx_runtime342.jsxs)(
15143
15358
  VStack,
15144
15359
  {
15145
15360
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -15148,8 +15363,8 @@ var ToggleBar = (props) => {
15148
15363
  role: "radiogroup",
15149
15364
  "aria-labelledby": labelId != null ? labelId : htmlProps == null ? void 0 : htmlProps["aria-labelledby"],
15150
15365
  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 })
15366
+ label && /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(Typography, { id: labelId, as: "span", typographyType: "labelMedium", children: label }),
15367
+ /* @__PURE__ */ (0, import_jsx_runtime342.jsx)("div", { className: ToggleBar_default.bar, children })
15153
15368
  ]
15154
15369
  }
15155
15370
  )
@@ -15160,7 +15375,7 @@ ToggleBar.displayName = "ToggleBar";
15160
15375
 
15161
15376
  // src/components/ToggleBar/ToggleRadio.tsx
15162
15377
  var import_react104 = require("react");
15163
- var import_jsx_runtime342 = require("react/jsx-runtime");
15378
+ var import_jsx_runtime343 = require("react/jsx-runtime");
15164
15379
  var typographyTypes = {
15165
15380
  large: "bodyShortLarge",
15166
15381
  medium: "bodyShortMedium",
@@ -15203,13 +15418,13 @@ var ToggleRadio = ({
15203
15418
  const hasLabel = !!label;
15204
15419
  const hasIcon = !!icon;
15205
15420
  const contentTypeCn = !hasLabel ? "just-icon" : !hasIcon ? "just-text" : "with-text-and-icon";
15206
- return /* @__PURE__ */ (0, import_jsx_runtime342.jsxs)(
15421
+ return /* @__PURE__ */ (0, import_jsx_runtime343.jsxs)(
15207
15422
  "label",
15208
15423
  {
15209
15424
  htmlFor: uniqueId,
15210
15425
  className: cn(ToggleBar_default.label, ToggleBar_default[`label--${group.purpose}`]),
15211
15426
  children: [
15212
- /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(
15427
+ /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(
15213
15428
  HiddenInput,
15214
15429
  {
15215
15430
  ...getBaseHTMLProps(
@@ -15228,7 +15443,7 @@ var ToggleRadio = ({
15228
15443
  "aria-labelledby": ariaLabelledBy
15229
15444
  }
15230
15445
  ),
15231
- /* @__PURE__ */ (0, import_jsx_runtime342.jsxs)(
15446
+ /* @__PURE__ */ (0, import_jsx_runtime343.jsxs)(
15232
15447
  Typography,
15233
15448
  {
15234
15449
  as: "span",
@@ -15241,8 +15456,8 @@ var ToggleRadio = ({
15241
15456
  focus_default["focus-styled-sibling"]
15242
15457
  ),
15243
15458
  children: [
15244
- icon && /* @__PURE__ */ (0, import_jsx_runtime342.jsx)(Icon, { icon, iconSize: "component" }),
15245
- label && /* @__PURE__ */ (0, import_jsx_runtime342.jsx)("span", { children: label })
15459
+ icon && /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(Icon, { icon, iconSize: "component" }),
15460
+ label && /* @__PURE__ */ (0, import_jsx_runtime343.jsx)("span", { children: label })
15246
15461
  ]
15247
15462
  }
15248
15463
  )
@@ -15264,7 +15479,7 @@ var ToggleButton_default = {
15264
15479
  };
15265
15480
 
15266
15481
  // src/components/ToggleButton/ToggleButton.tsx
15267
- var import_jsx_runtime343 = require("react/jsx-runtime");
15482
+ var import_jsx_runtime344 = require("react/jsx-runtime");
15268
15483
  var ToggleButton = ({
15269
15484
  id,
15270
15485
  label,
@@ -15278,8 +15493,8 @@ var ToggleButton = ({
15278
15493
  const generatedId = (0, import_react105.useId)();
15279
15494
  const uniqueId = id != null ? id : `${generatedId}-toggleButton`;
15280
15495
  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)(
15496
+ return /* @__PURE__ */ (0, import_jsx_runtime344.jsxs)(Box, { as: "label", htmlFor: uniqueId, width: "fit-content", children: [
15497
+ /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(
15283
15498
  HiddenInput,
15284
15499
  {
15285
15500
  ...getBaseHTMLProps(
@@ -15292,7 +15507,7 @@ var ToggleButton = ({
15292
15507
  type: "checkbox"
15293
15508
  }
15294
15509
  ),
15295
- /* @__PURE__ */ (0, import_jsx_runtime343.jsxs)(
15510
+ /* @__PURE__ */ (0, import_jsx_runtime344.jsxs)(
15296
15511
  "span",
15297
15512
  {
15298
15513
  className: cn(
@@ -15303,7 +15518,7 @@ var ToggleButton = ({
15303
15518
  focus_default["focus-styled-sibling"]
15304
15519
  ),
15305
15520
  children: [
15306
- hasIcon && /* @__PURE__ */ (0, import_jsx_runtime343.jsx)(Icon, { icon, iconSize: "component" }),
15521
+ hasIcon && /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(Icon, { icon, iconSize: "component" }),
15307
15522
  " ",
15308
15523
  label
15309
15524
  ]
@@ -15315,7 +15530,7 @@ ToggleButton.displayName = "ToggleButton";
15315
15530
 
15316
15531
  // src/components/ToggleButton/ToggleButtonGroup.tsx
15317
15532
  var import_react106 = require("react");
15318
- var import_jsx_runtime344 = require("react/jsx-runtime");
15533
+ var import_jsx_runtime345 = require("react/jsx-runtime");
15319
15534
  var ToggleButtonGroup = (props) => {
15320
15535
  const {
15321
15536
  children,
@@ -15330,7 +15545,7 @@ var ToggleButtonGroup = (props) => {
15330
15545
  } = props;
15331
15546
  const generatedId = (0, import_react106.useId)();
15332
15547
  const uniqueLabelId = labelId != null ? labelId : `${generatedId}-ToggleButtonGroupLabel`;
15333
- return /* @__PURE__ */ (0, import_jsx_runtime344.jsxs)(
15548
+ return /* @__PURE__ */ (0, import_jsx_runtime345.jsxs)(
15334
15549
  "div",
15335
15550
  {
15336
15551
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -15338,7 +15553,7 @@ var ToggleButtonGroup = (props) => {
15338
15553
  "aria-labelledby": label ? uniqueLabelId : void 0,
15339
15554
  children: [
15340
15555
  renderGroupLabel({ label, id: uniqueLabelId }),
15341
- /* @__PURE__ */ (0, import_jsx_runtime344.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
15556
+ /* @__PURE__ */ (0, import_jsx_runtime345.jsx)(Box, { display: "flex", flexWrap: "wrap", gap: "x0.75", flexDirection: direction, children })
15342
15557
  ]
15343
15558
  }
15344
15559
  );
@@ -15558,6 +15773,7 @@ ToggleButtonGroup.displayName = "ToggleButtonGroup";
15558
15773
  MoreHorizontalIcon,
15559
15774
  MoreVerticalIcon,
15560
15775
  NativeSelect,
15776
+ NewsPopover,
15561
15777
  NotarialIcon,
15562
15778
  NotebookPenIcon,
15563
15779
  NotificationsIcon,