@norges-domstoler/dds-components 24.3.1 → 25.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -91,8 +91,9 @@ var typographyStyles_module_default = {
91
91
  "text-color--on-tertiary-medium": "dds-typographyStyles-module__text-color--on-tertiary-medium",
92
92
  "text-color--on-tertiary-subtle": "dds-typographyStyles-module__text-color--on-tertiary-subtle",
93
93
  "text-color--on-tertiary-strong": "dds-typographyStyles-module__text-color--on-tertiary-strong",
94
- "text-color--on-data-default": "dds-typographyStyles-module__text-color--on-data-default",
95
- "text-color--on-data-subtle": "dds-typographyStyles-module__text-color--on-data-subtle",
94
+ "text-color--domain-on-domain": "dds-typographyStyles-module__text-color--domain-on-domain",
95
+ "text-color--statistics-on-default": "dds-typographyStyles-module__text-color--statistics-on-default",
96
+ "text-color--statistics-on-subtle": "dds-typographyStyles-module__text-color--statistics-on-subtle",
96
97
  "text-color--on-inverse": "dds-typographyStyles-module__text-color--on-inverse",
97
98
  "icon-color--default": "dds-typographyStyles-module__icon-color--default",
98
99
  "icon-color--medium": "dds-typographyStyles-module__icon-color--medium",
@@ -408,8 +409,9 @@ const TEXT_COLORS = [
408
409
  "text-on-tertiary-medium",
409
410
  "text-on-tertiary-subtle",
410
411
  "text-on-tertiary-strong",
411
- "text-on-data-default",
412
- "text-on-data-subtle",
412
+ "text-domain-on-domain",
413
+ "text-statistics-on-default",
414
+ "text-statistics-on-subtle",
413
415
  "icon-on-action",
414
416
  "icon-on-info-default",
415
417
  "icon-on-success-default",
@@ -1141,7 +1143,59 @@ function getBaseHTMLProps(id, className, style, htmlProps, unknownProps) {
1141
1143
  });
1142
1144
  }
1143
1145
  //#endregion
1144
- //#region src/types/Size.tsx
1146
+ //#region src/components/layout/common/Responsive.types.tsx
1147
+ const BREAKPOINTS = [
1148
+ "xs",
1149
+ "sm",
1150
+ "md",
1151
+ "lg",
1152
+ "xl"
1153
+ ];
1154
+ const SPACING_SCALES = [
1155
+ "x0",
1156
+ "x0.125",
1157
+ "x0.25",
1158
+ "x0.5",
1159
+ "x0.75",
1160
+ "x1",
1161
+ "x1.5",
1162
+ "x2",
1163
+ "x2.5",
1164
+ "x3",
1165
+ "x4",
1166
+ "x6",
1167
+ "x10"
1168
+ ];
1169
+ const SIZE_SCALE = [
1170
+ "0",
1171
+ "1",
1172
+ "2",
1173
+ "3",
1174
+ "4",
1175
+ "5",
1176
+ "6",
1177
+ "7",
1178
+ "8",
1179
+ "9",
1180
+ "10",
1181
+ "11",
1182
+ "12",
1183
+ "13",
1184
+ "14"
1185
+ ];
1186
+ const Z_INDEXES = [
1187
+ "skiptocontent",
1188
+ "modal-backdrop",
1189
+ "drawer",
1190
+ "drawer-backdrop",
1191
+ "overflowmenu",
1192
+ "popover",
1193
+ "tooltip",
1194
+ "dropdown",
1195
+ "sticky",
1196
+ "absolute-element"
1197
+ ];
1198
+ [...SIZE_SCALE];
1145
1199
  function createSizes(...sizes) {
1146
1200
  return sizes;
1147
1201
  }
@@ -1156,7 +1210,7 @@ const BORDER_RADII = [
1156
1210
  "button",
1157
1211
  "input",
1158
1212
  "surface",
1159
- "chip",
1213
+ "tag",
1160
1214
  "rounded",
1161
1215
  "0"
1162
1216
  ];
@@ -1263,42 +1317,6 @@ var layout_module_default = {
1263
1317
  "dds-flow": "dds-layout-module__dds-flow"
1264
1318
  };
1265
1319
  //#endregion
1266
- //#region src/components/layout/common/Responsive.types.tsx
1267
- const BREAKPOINTS = [
1268
- "xs",
1269
- "sm",
1270
- "md",
1271
- "lg",
1272
- "xl"
1273
- ];
1274
- const SPACING_SCALES = [
1275
- "x0",
1276
- "x0.125",
1277
- "x0.25",
1278
- "x0.5",
1279
- "x0.75",
1280
- "x1",
1281
- "x1.5",
1282
- "x2",
1283
- "x2.5",
1284
- "x3",
1285
- "x4",
1286
- "x6",
1287
- "x10"
1288
- ];
1289
- const Z_INDEXES = [
1290
- "skiptocontent",
1291
- "modal-backdrop",
1292
- "drawer",
1293
- "drawer-backdrop",
1294
- "overflowmenu",
1295
- "popover",
1296
- "tooltip",
1297
- "dropdown",
1298
- "sticky",
1299
- "absolute-element"
1300
- ];
1301
- //#endregion
1302
1320
  //#region src/components/layout/common/utils.tsx
1303
1321
  const TOKEN_PREFIX = "dds";
1304
1322
  const hasValue = (value) => {
@@ -1339,7 +1357,7 @@ const getValue = (v, bp, invert) => {
1339
1357
  else output = v;
1340
1358
  return invert ? invertValue(output) : output;
1341
1359
  };
1342
- const convertMultiValue = (value, bp, invert) => value.split(" ").map((v) => getValue(v, bp, invert)).join(" ");
1360
+ const convertMultiValue = (value, bp, invert, mode = "token") => value.split(" ").map((v) => mode === "raw" ? v : getValue(v, bp, invert)).join(" ");
1343
1361
  const invertValue = (v) => v === "0" ? "0" : `calc(-1 * ${v})`;
1344
1362
  const buildCSSKey = (prefix, suffix, bp) => {
1345
1363
  let key = `--${TOKEN_PREFIX}`;
@@ -1354,13 +1372,13 @@ function getCSSProperties(property, prefix, suffix, invert) {
1354
1372
  properties[buildCSSKey(prefix, suffix)] = convertMultiValue(property.toString(), void 0, invert);
1355
1373
  return properties;
1356
1374
  }
1357
- function getResponsiveCSSProperties(property, prefix, suffix, invert) {
1375
+ function getResponsiveCSSProperties(property, prefix, suffix, options = {}) {
1358
1376
  if (property === void 0 || property === null) return;
1359
1377
  const properties = {};
1360
1378
  if (isBreakpointObject(property)) BREAKPOINTS.forEach((bp) => {
1361
- if (property[bp] !== void 0 && property[bp] !== null) properties[buildCSSKey(prefix, suffix, bp)] = convertMultiValue(property[bp].toString(), bp, invert);
1379
+ if (property[bp] !== void 0 && property[bp] !== null) properties[buildCSSKey(prefix, suffix, bp)] = convertMultiValue(property[bp].toString(), bp, options.invert, options.mode);
1362
1380
  });
1363
- else properties[buildCSSKey(prefix, suffix)] = convertMultiValue(property.toString(), void 0, invert);
1381
+ else properties[buildCSSKey(prefix, suffix)] = convertMultiValue(property.toString(), void 0, options.invert, options.mode);
1364
1382
  return properties;
1365
1383
  }
1366
1384
  /**
@@ -1427,30 +1445,30 @@ const Box = ({ id, className, style, padding, paddingInline, paddingBlock, margi
1427
1445
  ...getResponsiveCSSProperties(width, "r", "w"),
1428
1446
  ...getResponsiveCSSProperties(maxWidth, "r", "max-w"),
1429
1447
  ...getResponsiveCSSProperties(minWidth, "r", "min-w"),
1430
- ...getResponsiveCSSProperties(position, "r", "pos"),
1448
+ ...getResponsiveCSSProperties(position, "r", "pos", { mode: "raw" }),
1431
1449
  ...getResponsiveCSSProperties(left, "r", "l"),
1432
1450
  ...getResponsiveCSSProperties(right, "r", "r"),
1433
1451
  ...getResponsiveCSSProperties(top, "r", "t"),
1434
1452
  ...getResponsiveCSSProperties(bottom, "r", "b"),
1435
- ...getResponsiveCSSProperties(overflow, "r", "o"),
1436
- ...getResponsiveCSSProperties(overflowX, "r", "o-x"),
1437
- ...getResponsiveCSSProperties(overflowY, "r", "o-y"),
1438
- ...getResponsiveCSSProperties(display, "r", "display"),
1439
- ...getResponsiveCSSProperties(textAlign, "r", "text-align"),
1440
- ...getResponsiveCSSProperties(flex, "r", "flex"),
1441
- ...getResponsiveCSSProperties(flexDirection, "r", "flex-dir"),
1453
+ ...getResponsiveCSSProperties(overflow, "r", "o", { mode: "raw" }),
1454
+ ...getResponsiveCSSProperties(overflowX, "r", "o-x", { mode: "raw" }),
1455
+ ...getResponsiveCSSProperties(overflowY, "r", "o-y", { mode: "raw" }),
1456
+ ...getResponsiveCSSProperties(display, "r", "display", { mode: "raw" }),
1457
+ ...getResponsiveCSSProperties(textAlign, "r", "text-align", { mode: "raw" }),
1458
+ ...getResponsiveCSSProperties(flex, "r", "flex", { mode: "raw" }),
1459
+ ...getResponsiveCSSProperties(flexDirection, "r", "flex-dir", { mode: "raw" }),
1442
1460
  ...getResponsiveCSSProperties(gap, "r", "gap"),
1443
1461
  ...getResponsiveCSSProperties(columnGap, "r", "c-gap"),
1444
1462
  ...getResponsiveCSSProperties(rowGap, "r", "r-gap"),
1445
- ...getResponsiveCSSProperties(alignItems, "r", "a-i"),
1446
- ...getResponsiveCSSProperties(alignContent, "r", "a-c"),
1447
- ...getResponsiveCSSProperties(justifyItems, "r", "j-i"),
1448
- ...getResponsiveCSSProperties(placeItems, "r", "pl-i"),
1449
- ...getResponsiveCSSProperties(justifyContent, "r", "j-c"),
1450
- ...getResponsiveCSSProperties(flexWrap, "r", "wrap"),
1451
- ...getResponsiveCSSProperties(flexBasis, "r", "basis"),
1452
- ...getResponsiveCSSProperties(flexFlow, "r", "flow"),
1453
- ...getResponsiveCSSProperties(wordBreak, "r", "word-break"),
1463
+ ...getResponsiveCSSProperties(alignItems, "r", "a-i", { mode: "raw" }),
1464
+ ...getResponsiveCSSProperties(alignContent, "r", "a-c", { mode: "raw" }),
1465
+ ...getResponsiveCSSProperties(justifyItems, "r", "j-i", { mode: "raw" }),
1466
+ ...getResponsiveCSSProperties(placeItems, "r", "pl-i", { mode: "raw" }),
1467
+ ...getResponsiveCSSProperties(justifyContent, "r", "j-c", { mode: "raw" }),
1468
+ ...getResponsiveCSSProperties(flexWrap, "r", "wrap", { mode: "raw" }),
1469
+ ...getResponsiveCSSProperties(flexBasis, "r", "basis", { mode: "raw" }),
1470
+ ...getResponsiveCSSProperties(flexFlow, "r", "flow", { mode: "raw" }),
1471
+ ...getResponsiveCSSProperties(wordBreak, "r", "word-break", { mode: "raw" }),
1454
1472
  ...getResponsiveCSSProperties(zIndex, "r", "z-index")
1455
1473
  };
1456
1474
  return /* @__PURE__ */ jsx(ShowHide, { ...getBaseHTMLProps(id, cn(className, hasValue(padding) && layout_module_default["dds-p"], hasValue(paddingInline) && layout_module_default["dds-p-i"], hasValue(paddingBlock) && layout_module_default["dds-p-b"], hasValue(margin) && layout_module_default["dds-m"], hasValue(marginInline) && layout_module_default["dds-m-i"], hasValue(marginBlock) && layout_module_default["dds-m-b"], hasValue(height) && layout_module_default["dds-h"], hasValue(maxHeight) && layout_module_default["dds-max-h"], hasValue(minHeight) && layout_module_default["dds-min-h"], hasValue(width) && layout_module_default["dds-w"], hasValue(maxWidth) && layout_module_default["dds-max-w"], hasValue(minWidth) && layout_module_default["dds-min-w"], hasValue(position) && layout_module_default["dds-pos"], hasValue(left) && layout_module_default["dds-l"], hasValue(right) && layout_module_default["dds-r"], hasValue(top) && layout_module_default["dds-t"], hasValue(bottom) && layout_module_default["dds-b"], hasValue(overflow) && layout_module_default["dds-o"], hasValue(overflowX) && layout_module_default["dds-o-x"], hasValue(overflowY) && layout_module_default["dds-o-y"], hasValue(display) && layout_module_default["dds-display"], hasValue(textAlign) && layout_module_default["dds-text-align"], hasValue(flex) && layout_module_default["dds-flex"], hasValue(flexDirection) && layout_module_default["dds-flex-dir"], hasValue(gap) && layout_module_default["dds-gap"], hasValue(columnGap) && layout_module_default["dds-c-gap"], hasValue(rowGap) && layout_module_default["dds-r-gap"], hasValue(alignContent) && layout_module_default["dds-a-c"], hasValue(alignItems) && layout_module_default["dds-a-i"], hasValue(justifyContent) && layout_module_default["dds-j-c"], hasValue(justifyItems) && layout_module_default["dds-j-i"], hasValue(placeItems) && layout_module_default["dds-pl-i"], hasValue(flexWrap) && layout_module_default["dds-wrap"], hasValue(flexBasis) && layout_module_default["dds-basis"], hasValue(flexFlow) && layout_module_default["dds-flow"], hasValue(wordBreak) && layout_module_default["dds-word-break"], hasValue(zIndex) && layout_module_default["dds-z-index"]), {
@@ -1467,8 +1485,8 @@ const Bleed = ({ id, className, style, htmlProps, bleedMarginBlock, bleedMarginI
1467
1485
  ...getResponsiveCSSProperties(bleedMarginBlock, "r", "p-b")
1468
1486
  } : {};
1469
1487
  const responsiveStyles = {
1470
- ...getResponsiveCSSProperties(bleedMarginInline, "r", "bleed-m-i", true),
1471
- ...getResponsiveCSSProperties(bleedMarginBlock, "r", "bleed-m-b", true),
1488
+ ...getResponsiveCSSProperties(bleedMarginInline, "r", "bleed-m-i", { invert: true }),
1489
+ ...getResponsiveCSSProperties(bleedMarginBlock, "r", "bleed-m-b", { invert: true }),
1472
1490
  ...reflStyles
1473
1491
  };
1474
1492
  return /* @__PURE__ */ jsx(Box, { ...getBaseHTMLProps(id, cn(className, hasValue(bleedMarginInline) && layout_module_default["dds-bleed-m-i"], hasValue(bleedMarginBlock) && layout_module_default["dds-bleed-m-b"], hasValue(bleedMarginInline) && reflectivePadding && layout_module_default["dds-p-i"], hasValue(bleedMarginBlock) && reflectivePadding && layout_module_default["dds-p-b"]), {
@@ -1564,7 +1582,7 @@ const GridChild = ({ id, className, htmlProps, style, gridRow, gridArea, justify
1564
1582
  const styleVariables = {
1565
1583
  ...getResponsiveCSSProperties(gridRow, "r", "grid-row"),
1566
1584
  ...getResponsiveCSSProperties(gridArea, "r", "grid-area"),
1567
- ...getResponsiveCSSProperties(justifySelf, "r", "j-self"),
1585
+ ...getResponsiveCSSProperties(justifySelf, "r", "j-self", { mode: "raw" }),
1568
1586
  ...getResponsiveCSSProperties(columnsOccupied, "r", "grid-column")
1569
1587
  };
1570
1588
  return /* @__PURE__ */ jsx(Box, { ...getBaseHTMLProps(id, cn(className, Grid_module_default["child-col-count"], hasValue(gridRow) && Grid_module_default["dds-grid-row"], hasValue(gridArea) && Grid_module_default["dds-grid-area"], hasValue(justifySelf) && Grid_module_default["dds-j-self"], hasValue(columnsOccupied) && Grid_module_default["dds-grid-column"], columnsOccupied === "firstHalf" && Grid_module_default["child--first-half"], columnsOccupied === "secondHalf" && Grid_module_default["child--second-half"]), {
@@ -1588,7 +1606,7 @@ var Paper_module_default = {
1588
1606
  var surface_module_default = {
1589
1607
  "border-radius--button": "dds-surface-module__border-radius--button",
1590
1608
  "border-radius--surface": "dds-surface-module__border-radius--surface",
1591
- "border-radius--chip": "dds-surface-module__border-radius--chip",
1609
+ "border-radius--tag": "dds-surface-module__border-radius--tag",
1592
1610
  "border-radius--input": "dds-surface-module__border-radius--input",
1593
1611
  "border-radius--rounded": "dds-surface-module__border-radius--rounded",
1594
1612
  "border-radius--0": "dds-surface-module__border-radius--0"
@@ -1675,19 +1693,70 @@ var DropdownItem_module_default = {
1675
1693
  "item--loading": "dds-DropdownItem-module__item--loading"
1676
1694
  };
1677
1695
  //#endregion
1696
+ //#region src/components/Badge/Badge.module.css
1697
+ var Badge_module_default = {
1698
+ "container": "dds-Badge-module__container",
1699
+ "notification": "dds-Badge-module__notification",
1700
+ "action": "dds-Badge-module__action",
1701
+ "neutral": "dds-Badge-module__neutral",
1702
+ "subtle": "dds-Badge-module__subtle"
1703
+ };
1704
+ const Badge = ({ id, className, style, htmlProps, purpose = "notification", size = "medium", children, max = 9, showZero = false, ...rest }) => {
1705
+ const hasChildren = !!children || showZero && children === 0;
1706
+ const heightVariant = hasChildren ? "withChildren" : "noChildren";
1707
+ const height = {
1708
+ withChildren: {
1709
+ xsmall: "18px",
1710
+ small: "21px",
1711
+ medium: "24px",
1712
+ large: "27px"
1713
+ },
1714
+ noChildren: {
1715
+ xsmall: "x0.5",
1716
+ small: "x0.75",
1717
+ medium: "x1",
1718
+ large: "x1.5"
1719
+ }
1720
+ };
1721
+ const color = {
1722
+ notification: "text-on-notification",
1723
+ action: "text-on-action",
1724
+ neutral: "text-on-inverse",
1725
+ subtle: "text-default"
1726
+ };
1727
+ const displayValue = hasChildren && max && children > max ? `${max}+` : children;
1728
+ if (!(!showZero && children === 0 ? false : true)) return null;
1729
+ return /* @__PURE__ */ jsx(Box, {
1730
+ as: "span",
1731
+ paddingInline: hasChildren ? "x0.25" : void 0,
1732
+ minWidth: height[heightVariant][size],
1733
+ maxWidth: "fit-content",
1734
+ height: height[heightVariant][size],
1735
+ display: "inline-flex",
1736
+ alignItems: "center",
1737
+ justifyContent: "center",
1738
+ ...getBaseHTMLProps(id, cn(className, Badge_module_default.container, Badge_module_default[purpose], typographyStyles_module_default[`body-short-${size}`]), style, htmlProps, rest),
1739
+ children: /* @__PURE__ */ jsx(Typography, {
1740
+ as: "span",
1741
+ typographyType: `body-short-${size}`,
1742
+ color: color[purpose],
1743
+ children: displayValue
1744
+ })
1745
+ });
1746
+ };
1747
+ Badge.displayName = "Badge";
1748
+ //#endregion
1678
1749
  //#region src/components/Icon/Icon.tsx
1679
1750
  const getSize = (iconSize) => {
1680
1751
  switch (iconSize) {
1681
- case "small": return "var(--dds-size-icon-small)";
1682
- case "medium": return "var(--dds-size-icon-medium)";
1683
- case "large": return "var(--dds-size-icon-large)";
1684
1752
  case "component": return "var(--dds-size-icon-component)";
1685
1753
  case "inherit": return "1em";
1686
- default: return "var(--dds-size-icon-medium)";
1754
+ default: return `var(--dds-size-${iconSize})`;
1687
1755
  }
1688
1756
  };
1757
+ [...SIZE_SCALE];
1689
1758
  function Icon(props) {
1690
- const { id, iconSize = "medium", color = "currentcolor", icon, className, style, htmlProps, iconState, ...rest } = props;
1759
+ const { id, iconSize = "6", color = "currentcolor", icon, className, style, htmlProps, iconState, ...rest } = props;
1691
1760
  const size = getSize(iconSize);
1692
1761
  return /* @__PURE__ */ jsx(icon, {
1693
1762
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
@@ -1804,7 +1873,7 @@ const commonTexts = createTexts({
1804
1873
  //#endregion
1805
1874
  //#region src/components/Spinner/Spinner.tsx
1806
1875
  function Spinner(props) {
1807
- const { size = "var(--dds-size-icon-medium)", color = "icon-action-resting", tooltip, id, className, htmlProps, style, ...rest } = props;
1876
+ const { size = "var(--dds-size-6)", color = "icon-action-resting", tooltip, id, className, htmlProps, style, ...rest } = props;
1808
1877
  const { t } = useTranslation();
1809
1878
  const uniqueId = `${useId()}-spinnerTitle`;
1810
1879
  return /* @__PURE__ */ jsxs("svg", {
@@ -1814,7 +1883,8 @@ function Spinner(props) {
1814
1883
  ...getBaseHTMLProps(id, cn(className, Spinner_module_default.svg), {
1815
1884
  ...style,
1816
1885
  width: size,
1817
- height: size
1886
+ height: size,
1887
+ ["--dds-color-spinner"]: getTextColor(color)
1818
1888
  }, htmlProps, rest),
1819
1889
  children: [
1820
1890
  /* @__PURE__ */ jsx("title", {
@@ -1825,7 +1895,6 @@ function Spinner(props) {
1825
1895
  cx: "12",
1826
1896
  cy: "12.25",
1827
1897
  r: "6",
1828
- fill: getTextColor(color),
1829
1898
  className: Spinner_module_default.jordskifterett
1830
1899
  }),
1831
1900
  /* @__PURE__ */ jsx("rect", {
@@ -1833,12 +1902,10 @@ function Spinner(props) {
1833
1902
  y: "10.25",
1834
1903
  width: "16",
1835
1904
  height: "4",
1836
- fill: getTextColor(color),
1837
1905
  className: Spinner_module_default.lagmannsrett
1838
1906
  }),
1839
1907
  /* @__PURE__ */ jsx("path", {
1840
1908
  d: "M12 16.6154C16.4183 16.6154 20 12.7581 20 8H4C4 12.7581 7.58172 16.6154 12 16.6154Z",
1841
- fill: getTextColor(color),
1842
1909
  className: Spinner_module_default.tingrett
1843
1910
  })
1844
1911
  ]
@@ -1860,7 +1927,7 @@ var focus_module_default = {
1860
1927
  };
1861
1928
  //#endregion
1862
1929
  //#region src/components/helpers/Dropdown/DropdownItem.tsx
1863
- const DropdownItem = ({ icon, className, children: propChildren, purpose = "default", loading, loadingTooltip, ...rest }) => {
1930
+ const DropdownItem = ({ icon, className, children: propChildren, purpose = "default", loading, loadingTooltip, badgeProps, ...rest }) => {
1864
1931
  const itemCns = [
1865
1932
  DropdownItem_module_default.item,
1866
1933
  DropdownItem_module_default[purpose],
@@ -1889,7 +1956,7 @@ const DropdownItem = ({ icon, className, children: propChildren, purpose = "defa
1889
1956
  loading && /* @__PURE__ */ jsx("span", {
1890
1957
  className: cn(utilStyles_module_default["center-absolute"]),
1891
1958
  children: /* @__PURE__ */ jsx(Spinner, {
1892
- size: "var(--dds-size-icon-medium)",
1959
+ size: "var(--dds-size-icon-component)",
1893
1960
  tooltip: loadingTooltip
1894
1961
  })
1895
1962
  }),
@@ -1898,7 +1965,13 @@ const DropdownItem = ({ icon, className, children: propChildren, purpose = "defa
1898
1965
  icon,
1899
1966
  className: cn(loading && utilStyles_module_default.invisible)
1900
1967
  }),
1901
- children
1968
+ children,
1969
+ badgeProps && /* @__PURE__ */ jsx(Box, {
1970
+ as: Badge,
1971
+ ...badgeProps,
1972
+ size: "small",
1973
+ marginInline: "x0.25 0"
1974
+ })
1902
1975
  ]
1903
1976
  });
1904
1977
  };
@@ -2063,7 +2136,7 @@ var Icon_module_default = { "svg": "dds-Icon-module__svg" };
2063
2136
  //#endregion
2064
2137
  //#region src/components/Icon/utils/SvgWrapper.tsx
2065
2138
  const size = 24;
2066
- const sizeCSS = "var(--dds-size-icon-medium)";
2139
+ const sizeCSS = "var(--dds-size-6)";
2067
2140
  function SvgWrapper({ height, width, fill = "currentColor", className, title, children, iconState: _iconState, style, ...props }) {
2068
2141
  return /* @__PURE__ */ jsxs("svg", {
2069
2142
  ...props,
@@ -2139,6 +2212,20 @@ function ArrowDownIcon(props) {
2139
2212
  });
2140
2213
  }
2141
2214
  //#endregion
2215
+ //#region src/components/Icon/icons/arrowDownUp.tsx
2216
+ /** Arrows and chevron. Search terms: pil, arrow, ned, down. */
2217
+ function ArrowDownUpIcon(props) {
2218
+ return /* @__PURE__ */ jsxs(SvgWrapper, {
2219
+ ...props,
2220
+ children: [
2221
+ /* @__PURE__ */ jsx("path", { d: "M10.4697 15.4697C10.7626 15.1768 11.2374 15.1768 11.5303 15.4697C11.8232 15.7626 11.8232 16.2374 11.5303 16.5303L7.53028 20.5303C7.23738 20.8232 6.76262 20.8232 6.46973 20.5303L2.46973 16.5303C2.17684 16.2374 2.17684 15.7626 2.46973 15.4697C2.76262 15.1768 3.23738 15.1768 3.53028 15.4697L7 18.9394L10.4697 15.4697Z" }),
2222
+ /* @__PURE__ */ jsx("path", { d: "M6.25 20V3.99999C6.25 3.58578 6.58579 3.24999 7 3.24999C7.41422 3.24999 7.75 3.58578 7.75 3.99999V20C7.75 20.4142 7.41422 20.75 7 20.75C6.58579 20.75 6.25 20.4142 6.25 20Z" }),
2223
+ /* @__PURE__ */ jsx("path", { d: "M16.5264 3.41796C16.821 3.17765 17.2557 3.19512 17.5303 3.46972L21.5303 7.46972C21.8232 7.76261 21.8232 8.23737 21.5303 8.53027C21.2374 8.82316 20.7626 8.82316 20.4697 8.53027L17 5.06054L13.5303 8.53027C13.2374 8.82316 12.7626 8.82316 12.4697 8.53027C12.1768 8.23737 12.1768 7.76261 12.4697 7.46972L16.4697 3.46972L16.5264 3.41796Z" }),
2224
+ /* @__PURE__ */ jsx("path", { d: "M16.25 20V3.99999C16.25 3.58578 16.5858 3.24999 17 3.24999C17.4142 3.24999 17.75 3.58578 17.75 3.99999V20C17.75 20.4142 17.4142 20.75 17 20.75C16.5858 20.75 16.25 20.4142 16.25 20Z" })
2225
+ ]
2226
+ });
2227
+ }
2228
+ //#endregion
2142
2229
  //#region src/components/Icon/icons/arrowLeft.tsx
2143
2230
  /** Arrows and chevron. Search terms: pil, arrow, venstre, left, tilbake, back. */
2144
2231
  function ArrowLeftIcon(props) {
@@ -2166,6 +2253,20 @@ function ArrowUpIcon(props) {
2166
2253
  });
2167
2254
  }
2168
2255
  //#endregion
2256
+ //#region src/components/Icon/icons/arrowUpDown.tsx
2257
+ /** Arrows and chevron. Search terms: pil, arrow, ned, down. */
2258
+ function ArrowUpDownIcon(props) {
2259
+ return /* @__PURE__ */ jsxs(SvgWrapper, {
2260
+ ...props,
2261
+ children: [
2262
+ /* @__PURE__ */ jsx("path", { d: "M20.4697 15.4697C20.7626 15.1768 21.2374 15.1768 21.5303 15.4697C21.8232 15.7626 21.8232 16.2374 21.5303 16.5303L17.5303 20.5303C17.2374 20.8232 16.7626 20.8232 16.4697 20.5303L12.4697 16.5303C12.1768 16.2374 12.1768 15.7626 12.4697 15.4697C12.7626 15.1768 13.2374 15.1768 13.5303 15.4697L17 18.9394L20.4697 15.4697Z" }),
2263
+ /* @__PURE__ */ jsx("path", { d: "M16.25 20V3.99999C16.25 3.58578 16.5858 3.24999 17 3.24999C17.4142 3.24999 17.75 3.58578 17.75 3.99999V20C17.75 20.4142 17.4142 20.75 17 20.75C16.5858 20.75 16.25 20.4142 16.25 20Z" }),
2264
+ /* @__PURE__ */ jsx("path", { d: "M6.52637 3.41796C6.82095 3.17765 7.25567 3.19512 7.53028 3.46972L11.5303 7.46972C11.8232 7.76261 11.8232 8.23737 11.5303 8.53027C11.2374 8.82316 10.7626 8.82316 10.4697 8.53027L7 5.06054L3.53028 8.53027C3.23738 8.82316 2.76262 8.82316 2.46973 8.53027C2.17684 8.23737 2.17684 7.76261 2.46973 7.46972L6.46973 3.46972L6.52637 3.41796Z" }),
2265
+ /* @__PURE__ */ jsx("path", { d: "M6.25 20V3.99999C6.25 3.58578 6.58579 3.24999 7 3.24999C7.41422 3.24999 7.75 3.58578 7.75 3.99999V20C7.75 20.4142 7.41422 20.75 7 20.75C6.58579 20.75 6.25 20.4142 6.25 20Z" })
2266
+ ]
2267
+ });
2268
+ }
2269
+ //#endregion
2169
2270
  //#region src/components/Icon/icons/arrowUpRight.tsx
2170
2271
  /** Arrows and chevron. Search terms: pil, arrow, opp, up, høyre, right. */
2171
2272
  function ArrowUpRightIcon(props) {
@@ -4053,8 +4154,10 @@ var icons_exports = /* @__PURE__ */ __exportAll({
4053
4154
  AppsIcon: () => AppsIcon,
4054
4155
  ArchiveIcon: () => ArchiveIcon,
4055
4156
  ArrowDownIcon: () => ArrowDownIcon,
4157
+ ArrowDownUpIcon: () => ArrowDownUpIcon,
4056
4158
  ArrowLeftIcon: () => ArrowLeftIcon,
4057
4159
  ArrowRightIcon: () => ArrowRightIcon,
4160
+ ArrowUpDownIcon: () => ArrowUpDownIcon,
4058
4161
  ArrowUpIcon: () => ArrowUpIcon,
4059
4162
  ArrowUpRightIcon: () => ArrowUpRightIcon,
4060
4163
  AttachmentIcon: () => AttachmentIcon,
@@ -4358,7 +4461,7 @@ const BackLink = ({ label, ref, as = "a", ...rest }) => {
4358
4461
  const { t } = useTranslation();
4359
4462
  return /* @__PURE__ */ jsx("nav", {
4360
4463
  ref,
4361
- "aria-label": t(texts$29.goBack),
4464
+ "aria-label": t(texts$30.goBack),
4362
4465
  className: typographyStyles_module_default["body-short-medium"],
4363
4466
  children: /* @__PURE__ */ jsxs(HStack, {
4364
4467
  as,
@@ -4374,7 +4477,7 @@ const BackLink = ({ label, ref, as = "a", ...rest }) => {
4374
4477
  });
4375
4478
  };
4376
4479
  BackLink.displayName = "BackLink";
4377
- const texts$29 = createTexts({ goBack: {
4480
+ const texts$30 = createTexts({ goBack: {
4378
4481
  nb: "Gå tilbake",
4379
4482
  no: "Gå tilbake",
4380
4483
  nn: "Gå tilbake",
@@ -4583,7 +4686,7 @@ const Label = ({ showRequiredStyling, readOnly, id, className, style, htmlProps,
4583
4686
  const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [
4584
4687
  readOnly && /* @__PURE__ */ jsx(Icon, {
4585
4688
  icon: LockFilledIcon,
4586
- iconSize: "small",
4689
+ iconSize: "4",
4587
4690
  className: Label_module_default["read-only__icon"]
4588
4691
  }),
4589
4692
  children,
@@ -4687,18 +4790,25 @@ var Button_module_default = {
4687
4790
  "button--primary": "dds-Button-module__button--primary",
4688
4791
  "button--secondary": "dds-Button-module__button--secondary",
4689
4792
  "button--tertiary": "dds-Button-module__button--tertiary",
4690
- "button--danger": "dds-Button-module__button--danger"
4793
+ "button--primary-danger": "dds-Button-module__button--primary-danger",
4794
+ "button--secondary-danger": "dds-Button-module__button--secondary-danger"
4691
4795
  };
4692
4796
  //#endregion
4693
4797
  //#region src/components/ButtonGroup/ButtonGroup.context.tsx
4694
4798
  const ButtonGroupContext = createContext({});
4695
4799
  const useButtonGroupContext = () => useContext(ButtonGroupContext);
4696
4800
  //#endregion
4801
+ //#region src/components/helpers/styling/common.module.css
4802
+ var common_module_default = {
4803
+ "badge--on-corner": "dds-common-module__badge--on-corner",
4804
+ "button": "dds-common-module__button"
4805
+ };
4806
+ //#endregion
4697
4807
  //#region src/components/Button/Button.tsx
4698
- const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "medium", iconPosition = "left", loading, loadingTooltip, fullWidth = false, icon, iconState, onClick, onFocus, onBlur, id, ref, className, style, htmlProps, ...props }) => {
4808
+ const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "medium", iconPosition = "left", loading, loadingTooltip, fullWidth = false, icon, iconState, onClick, onFocus, onBlur, badgeProps, id, ref, className, style, htmlProps, ...props }) => {
4699
4809
  const { purpose: groupPurpose, size: groupSize } = useButtonGroupContext();
4700
4810
  const { t } = useTranslation();
4701
- const spinnerTooltip = loadingTooltip ?? t(texts$28.saving);
4811
+ const spinnerTooltip = loadingTooltip ?? t(texts$29.saving);
4702
4812
  const hasLabel = !!children;
4703
4813
  const hasIcon = !!icon;
4704
4814
  const hasLabelAndIcon = hasIcon && hasLabel;
@@ -4706,7 +4816,7 @@ const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "m
4706
4816
  const isTextButton = hasLabel && !hasIcon;
4707
4817
  const noContent = !hasLabel && !hasIcon;
4708
4818
  const size = groupSize ?? propSize;
4709
- const buttonCn = cn(className, Button_module_default.button, Button_module_default[`button--${groupPurpose ? groupPurpose : purpose}`], Button_module_default[`button--${size}`], isTextButton && Button_module_default["just-text"], ...hasLabelAndIcon ? [Button_module_default["with-text-and-icon"], Button_module_default[`with-icon-${iconPosition}`]] : [], isIconButton && Button_module_default["just-icon"], noContent && Button_module_default["no-content"], fullWidth && Button_module_default["button--full-width"], loading && Button_module_default["button--is-loading"], typographyStyles_module_default[`body-short-${size}`], _key1);
4819
+ const buttonCn = cn(className, Button_module_default.button, Button_module_default[`button--${groupPurpose ? groupPurpose : purpose}`], Button_module_default[`button--${size}`], isTextButton && Button_module_default["just-text"], ...hasLabelAndIcon ? [Button_module_default["with-text-and-icon"], Button_module_default[`with-icon-${iconPosition}`]] : [], isIconButton && Button_module_default["just-icon"], noContent && Button_module_default["no-content"], fullWidth && Button_module_default["button--full-width"], loading && Button_module_default["button--is-loading"], typographyStyles_module_default[`body-short-${size}`], common_module_default.button, _key1);
4710
4820
  const iconElement = hasIcon && /* @__PURE__ */ jsx(Icon, {
4711
4821
  icon,
4712
4822
  iconSize: "component",
@@ -4728,7 +4838,7 @@ const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "m
4728
4838
  className: cn(!noContent && Button_module_default["spinner-wrapper--absolute"]),
4729
4839
  children: /* @__PURE__ */ jsx(Spinner, {
4730
4840
  size: "var(--dds-size-icon-component)",
4731
- color: purpose === "primary" || purpose === "danger" ? "icon-on-action" : "icon-default",
4841
+ color: "currentColor",
4732
4842
  tooltip: spinnerTooltip
4733
4843
  })
4734
4844
  })
@@ -4738,7 +4848,7 @@ const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "m
4738
4848
  const isDisabled = (restDisabled ?? htmlDisabled ?? loading) === true;
4739
4849
  const as = propAs ? propAs : "button";
4740
4850
  const aProps = as === "a" ? { rel: "noopener noreferrer" } : {};
4741
- return /* @__PURE__ */ jsx(ElementAs, {
4851
+ return /* @__PURE__ */ jsxs(ElementAs, {
4742
4852
  as,
4743
4853
  ref,
4744
4854
  ...getBaseHTMLProps(id, buttonCn, style, htmlProps, restFinal),
@@ -4747,11 +4857,15 @@ const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "m
4747
4857
  onBlur,
4748
4858
  disabled: isDisabled,
4749
4859
  ...aProps,
4750
- children: content
4860
+ children: [content, badgeProps && /* @__PURE__ */ jsx(Badge, {
4861
+ ...badgeProps,
4862
+ size,
4863
+ className: cn(common_module_default["badge--on-corner"], badgeProps.className)
4864
+ })]
4751
4865
  });
4752
4866
  };
4753
4867
  Button.displayName = "Button";
4754
- const texts$28 = createTexts({ saving: {
4868
+ const texts$29 = createTexts({ saving: {
4755
4869
  no: "Lagring pågår",
4756
4870
  nb: "Lagring pågår",
4757
4871
  nn: "Lagring pågår",
@@ -4891,14 +5005,12 @@ var Toggle_module_default = {
4891
5005
  "track": "dds-Toggle-module__track",
4892
5006
  "thumb": "dds-Toggle-module__thumb",
4893
5007
  "checkmark": "dds-Toggle-module__checkmark",
4894
- "unchecked-icon": "dds-Toggle-module__unchecked-icon",
4895
- "checked-icon": "dds-Toggle-module__checked-icon",
4896
5008
  "labeltext--readonly": "dds-Toggle-module__labeltext--readonly",
4897
5009
  "icon--read-only": "dds-Toggle-module__icon--read-only",
5010
+ "small": "dds-Toggle-module__small",
4898
5011
  "medium": "dds-Toggle-module__medium",
4899
5012
  "large": "dds-Toggle-module__large",
4900
5013
  "label--is-loading": "dds-Toggle-module__label--is-loading",
4901
- "label--color-scheme": "dds-Toggle-module__label--color-scheme",
4902
5014
  "label--disabled": "dds-Toggle-module__label--disabled",
4903
5015
  "label--read-only": "dds-Toggle-module__label--read-only"
4904
5016
  };
@@ -4911,34 +5023,24 @@ const VisuallyHidden = ({ id, as: asProp, className, style, htmlProps, ...rest }
4911
5023
  });
4912
5024
  };
4913
5025
  VisuallyHidden.displayName = "VisuallyHidden";
4914
- const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, style, htmlProps = {}, variant = "default", ...rest }) => {
5026
+ const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, style, htmlProps = {}, ...rest }) => {
4915
5027
  const { t } = useTranslation();
4916
5028
  const generatedId = useId();
4917
5029
  const uniqueId = id ?? `${generatedId}-toggle`;
4918
- const iconSize = size === "large" ? "medium" : "small";
5030
+ const iconSize = {
5031
+ small: "3",
5032
+ medium: "4",
5033
+ large: "5"
5034
+ }[size];
4919
5035
  const [checked, setChecked] = useControllableState({
4920
5036
  value: checkedProp,
4921
5037
  defaultValue: defaultChecked ?? false,
4922
5038
  onChange
4923
5039
  });
4924
- const isColorScheme = variant === "colorScheme";
4925
- const marker = isColorScheme ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Icon, {
4926
- className: Toggle_module_default["unchecked-icon"],
4927
- icon: SunIcon,
4928
- iconSize
4929
- }), /* @__PURE__ */ jsx(Icon, {
4930
- className: Toggle_module_default["checked-icon"],
4931
- icon: MoonIcon,
4932
- iconSize
4933
- })] }) : /* @__PURE__ */ jsx(Icon, {
4934
- className: Toggle_module_default.checkmark,
4935
- icon: CheckIcon,
4936
- iconSize
4937
- });
4938
5040
  return /* @__PURE__ */ jsxs("label", {
4939
5041
  htmlFor: uniqueId,
4940
5042
  style,
4941
- className: cn(className, Toggle_module_default.label, Toggle_module_default[size], isLoading && Toggle_module_default["label--is-loading"], disabled && Toggle_module_default["label--disabled"], readOnly && Toggle_module_default["label--read-only"], isColorScheme && Toggle_module_default["label--color-scheme"]),
5043
+ className: cn(className, Toggle_module_default.label, Toggle_module_default[size], typographyStyles_module_default[`body-short-${size}`], isLoading && Toggle_module_default["label--is-loading"], disabled && Toggle_module_default["label--disabled"], readOnly && Toggle_module_default["label--read-only"]),
4942
5044
  children: [
4943
5045
  /* @__PURE__ */ jsx(HiddenInput, {
4944
5046
  ...getBaseHTMLProps(uniqueId, focus_module_default["focusable-sibling"], void 0, htmlProps, rest),
@@ -4954,7 +5056,14 @@ const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultCh
4954
5056
  className: cn(Toggle_module_default.track, focus_module_default["focus-styled-sibling"]),
4955
5057
  children: /* @__PURE__ */ jsx("span", {
4956
5058
  className: Toggle_module_default.thumb,
4957
- children: isLoading ? /* @__PURE__ */ jsx(Spinner, { size: `var(--dds-size-icon-${size})` }) : marker
5059
+ children: isLoading ? /* @__PURE__ */ jsx(Spinner, {
5060
+ size: `var(--dds-size-${iconSize})`,
5061
+ color: "currentColor"
5062
+ }) : /* @__PURE__ */ jsx(Icon, {
5063
+ className: Toggle_module_default.checkmark,
5064
+ icon: CheckIcon,
5065
+ iconSize
5066
+ })
4958
5067
  })
4959
5068
  }),
4960
5069
  /* @__PURE__ */ jsxs("span", {
@@ -4962,7 +5071,7 @@ const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultCh
4962
5071
  children: [
4963
5072
  readOnly && /* @__PURE__ */ jsx(Icon, {
4964
5073
  icon: LockFilledIcon,
4965
- iconSize: "small",
5074
+ iconSize: "4",
4966
5075
  className: Toggle_module_default["icon--read-only"]
4967
5076
  }),
4968
5077
  children,
@@ -5140,7 +5249,7 @@ const Breadcrumbs = ({ children, smallScreenBreakpoint, id, className, style, ht
5140
5249
  size: "xsmall",
5141
5250
  icon: MoreHorizontalIcon,
5142
5251
  purpose: "tertiary",
5143
- "aria-label": bChildrenTruncated.length > 1 ? t(texts$27.showHiddenTo(bChildren.length - 1)) : t(texts$27.showHidden)
5252
+ "aria-label": bChildrenTruncated.length > 1 ? t(texts$28.showHiddenTo(bChildren.length - 1)) : t(texts$28.showHidden)
5144
5253
  }), /* @__PURE__ */ jsx(OverflowMenu, {
5145
5254
  portal: false,
5146
5255
  children: /* @__PURE__ */ jsx(OverflowMenuList, { children: bChildrenTruncated })
@@ -5160,7 +5269,7 @@ const Breadcrumbs = ({ children, smallScreenBreakpoint, id, className, style, ht
5160
5269
  };
5161
5270
  return /* @__PURE__ */ jsxs("nav", {
5162
5271
  ...getBaseHTMLProps(id, cn(className, typographyStyles_module_default["body-short-medium"]), style, htmlProps, rest),
5163
- "aria-label": t(texts$27.breadcrumbs),
5272
+ "aria-label": t(texts$28.breadcrumbs),
5164
5273
  children: [/* @__PURE__ */ jsx(HStack, {
5165
5274
  ...responsiveListProps,
5166
5275
  hideBelow: hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
@@ -5173,7 +5282,7 @@ const Breadcrumbs = ({ children, smallScreenBreakpoint, id, className, style, ht
5173
5282
  });
5174
5283
  };
5175
5284
  Breadcrumbs.displayName = "Breadcrumbs";
5176
- const texts$27 = createTexts({
5285
+ const texts$28 = createTexts({
5177
5286
  breadcrumbs: {
5178
5287
  nb: "Brødsmulesti",
5179
5288
  no: "Brødsmulesti",
@@ -5322,6 +5431,10 @@ const CardExpandableBody = ({ children, className, style, htmlProps, padding, ..
5322
5431
  };
5323
5432
  CardExpandableBody.displayName = "CardExpandableBody";
5324
5433
  //#endregion
5434
+ //#region src/components/Card/CardSelectionControl/CardSelectable.context.tsx
5435
+ const CardSelectableContext = createContext({});
5436
+ const useCardSelectableContext = () => useContext(CardSelectableContext);
5437
+ //#endregion
5325
5438
  //#region src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
5326
5439
  const CheckboxGroupContext = createContext(null);
5327
5440
  const useCheckboxGroup = () => {
@@ -5347,15 +5460,22 @@ const SelectionControl = ({ controlType, className, ...rest }) => /* @__PURE__ *
5347
5460
  className: cn(className, SelectionControl_module_default["selection-control"], controlType === "radio" && SelectionControl_module_default["selection-control--radio"]),
5348
5461
  ...rest
5349
5462
  });
5350
- const Label$1 = ({ disabled, hasText, controlType, className, ...rest }) => {
5463
+ const Label$1 = ({ disabled, hasText, controlType, className, size = "medium", style, ...rest }) => {
5464
+ const styleVariables = { "--dds-size-sl": {
5465
+ small: "var(--dds-size-5)",
5466
+ medium: "var(--dds-size-6)"
5467
+ }[size] };
5351
5468
  return /* @__PURE__ */ jsx(Box, {
5352
5469
  as: "label",
5353
5470
  position: "relative",
5471
+ style: {
5472
+ ...style,
5473
+ ...styleVariables
5474
+ },
5354
5475
  display: "flex",
5355
5476
  alignItems: "center",
5356
5477
  width: "fit-content",
5357
- paddingInline: "calc(var(--dds-size-icon-component) + var(--dds-spacing-x0-25)) 0",
5358
- className: cn(className, SelectionControl_module_default.label, SelectionControl_module_default[`label--${controlType}`], !hasText && SelectionControl_module_default["label--no-text"], typographyStyles_module_default["body-short-medium"], disabled && typographyStyles_module_default["text-color--subtle"]),
5478
+ className: cn(className, SelectionControl_module_default.label, SelectionControl_module_default[`label--${controlType}`], !hasText && SelectionControl_module_default["label--no-text"], typographyStyles_module_default[`body-short-${size}`], disabled && typographyStyles_module_default["text-color--subtle"]),
5359
5479
  ...rest
5360
5480
  });
5361
5481
  };
@@ -5370,7 +5490,7 @@ const renderGroupLabel = ({ id, showRequiredStyling, readOnly, label }) => {
5370
5490
  readOnly && /* @__PURE__ */ jsx(Icon, {
5371
5491
  icon: LockIcon,
5372
5492
  className: Label_module_default["read-only__icon"],
5373
- iconSize: "small"
5493
+ iconSize: "4"
5374
5494
  }),
5375
5495
  label,
5376
5496
  " ",
@@ -5380,15 +5500,8 @@ const renderGroupLabel = ({ id, showRequiredStyling, readOnly, label }) => {
5380
5500
  else return null;
5381
5501
  };
5382
5502
  //#endregion
5383
- //#region src/components/SelectionControl/SelectionControl.utils.tsx
5384
- const selectionControlTypographyProps = {
5385
- color: "inherit",
5386
- typographyType: "body-short-medium",
5387
- as: "span"
5388
- };
5389
- //#endregion
5390
5503
  //#region src/components/SelectionControl/Checkbox/Checkbox.tsx
5391
- const Checkbox = ({ id, name, label, error = false, disabled, readOnly, indeterminate, "aria-describedby": ariaDescribedby, className, htmlProps = {}, style, children, ...rest }) => {
5504
+ const Checkbox = ({ id, name, label, error = false, disabled, readOnly, indeterminate, "aria-describedby": ariaDescribedby, className, htmlProps = {}, style, children, size, ...rest }) => {
5392
5505
  const generatedId = useId();
5393
5506
  const uniqueId = id ?? `${generatedId}-checkbox`;
5394
5507
  const checkboxGroup = useCheckboxGroup();
@@ -5397,6 +5510,7 @@ const Checkbox = ({ id, name, label, error = false, disabled, readOnly, indeterm
5397
5510
  const isReadOnly = readOnly || checkboxGroup?.readOnly;
5398
5511
  const hasError = error || checkboxGroup?.error;
5399
5512
  const isDisabled = disabled || checkboxGroup?.disabled;
5513
+ const controlSize = size || checkboxGroup?.size || "medium";
5400
5514
  return /* @__PURE__ */ jsxs(Label$1, {
5401
5515
  disabled: isDisabled,
5402
5516
  htmlFor: uniqueId,
@@ -5404,6 +5518,7 @@ const Checkbox = ({ id, name, label, error = false, disabled, readOnly, indeterm
5404
5518
  controlType: "checkbox",
5405
5519
  className,
5406
5520
  style,
5521
+ size: controlSize,
5407
5522
  children: [
5408
5523
  /* @__PURE__ */ jsx(HiddenInput, {
5409
5524
  ...getBaseHTMLProps(uniqueId, void 0, void 0, htmlProps, rest),
@@ -5428,10 +5543,7 @@ const Checkbox = ({ id, name, label, error = false, disabled, readOnly, indeterm
5428
5543
  controlType: "checkbox",
5429
5544
  className: focus_module_default["focus-styled-sibling"]
5430
5545
  }),
5431
- hasChildren ? children : hasLabel ? /* @__PURE__ */ jsx(Typography, {
5432
- ...selectionControlTypographyProps,
5433
- children: label
5434
- }) : null
5546
+ hasChildren ? children : hasLabel ? /* @__PURE__ */ jsx("span", { children: label }) : null
5435
5547
  ]
5436
5548
  });
5437
5549
  };
@@ -5493,7 +5605,7 @@ const renderInputMessage = ({ tip, tipId, errorMessage, errorMessageId, noSpacin
5493
5605
  //#endregion
5494
5606
  //#region src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
5495
5607
  const CheckboxGroup = (props) => {
5496
- const { label, direction = "row", errorMessage, tip, required = false, disabled = false, readOnly = false, groupId, children, id, className, style, htmlProps = {}, ...rest } = props;
5608
+ const { label, direction = "row", errorMessage, tip, required = false, disabled = false, readOnly = false, groupId, children, id, className, style, htmlProps = {}, size = "medium", ...rest } = props;
5497
5609
  const { "aria-required": ariaRequired } = htmlProps;
5498
5610
  const generatedId = useId();
5499
5611
  const uniqueGroupId = groupId ?? `${generatedId}-checkboxGroup`;
@@ -5507,7 +5619,8 @@ const CheckboxGroup = (props) => {
5507
5619
  uniqueGroupId,
5508
5620
  tipId: tip ? tipId : void 0,
5509
5621
  disabled,
5510
- readOnly
5622
+ readOnly,
5623
+ size
5511
5624
  };
5512
5625
  return /* @__PURE__ */ jsxs("div", {
5513
5626
  ...getBaseHTMLProps(id, cn(className, SelectionControl_module_default.container), style, {
@@ -5559,7 +5672,7 @@ const getIsChecked = ({ value, groupValue, checked }) => {
5559
5672
  }
5560
5673
  return !!value;
5561
5674
  };
5562
- const RadioButton = ({ id, name, label, disabled = false, readOnly = false, error = false, checked, value, children, required = false, onChange, "aria-describedby": ariaDescribedby, className, htmlProps = {}, style, ...rest }) => {
5675
+ const RadioButton = ({ id, name, label, disabled = false, readOnly = false, error = false, checked, value, children, required = false, onChange, "aria-describedby": ariaDescribedby, className, htmlProps = {}, size, style, ...rest }) => {
5563
5676
  const generatedId = useId();
5564
5677
  const uniqueId = id ?? `${generatedId}-radioButton`;
5565
5678
  const hasChildren = !!children;
@@ -5580,6 +5693,7 @@ const RadioButton = ({ id, name, label, disabled = false, readOnly = false, erro
5580
5693
  groupValue: radioButtonGroup?.value,
5581
5694
  checked
5582
5695
  });
5696
+ const controlSize = size || radioButtonGroup?.size || "medium";
5583
5697
  return /* @__PURE__ */ jsxs(Label$1, {
5584
5698
  disabled: isDisabled,
5585
5699
  style,
@@ -5587,6 +5701,7 @@ const RadioButton = ({ id, name, label, disabled = false, readOnly = false, erro
5587
5701
  hasText: hasLabel || hasChildren,
5588
5702
  htmlFor: uniqueId,
5589
5703
  controlType: "radio",
5704
+ size: controlSize,
5590
5705
  children: [
5591
5706
  /* @__PURE__ */ jsx(HiddenInput, {
5592
5707
  ...getBaseHTMLProps(uniqueId, void 0, void 0, htmlProps, rest),
@@ -5608,17 +5723,14 @@ const RadioButton = ({ id, name, label, disabled = false, readOnly = false, erro
5608
5723
  controlType: "radio",
5609
5724
  className: focus_module_default["focus-styled-sibling"]
5610
5725
  }),
5611
- hasChildren ? children : hasLabel ? /* @__PURE__ */ jsx(Typography, {
5612
- ...selectionControlTypographyProps,
5613
- children: label
5614
- }) : null
5726
+ hasChildren ? children : hasLabel ? /* @__PURE__ */ jsx("span", { children: label }) : null
5615
5727
  ]
5616
5728
  });
5617
5729
  };
5618
5730
  RadioButton.displayName = "RadioButton";
5619
5731
  //#endregion
5620
5732
  //#region src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
5621
- const RadioButtonGroup = ({ name, label, groupId, errorMessage, tip, disabled = false, readOnly = false, direction = "row", value, defaultValue, children, required = false, onChange, id, className, style, htmlProps = {}, ...rest }) => {
5733
+ const RadioButtonGroup = ({ name, label, groupId, errorMessage, tip, disabled = false, readOnly = false, direction = "row", value, defaultValue, children, required = false, onChange, size = "medium", id, className, style, htmlProps = {}, ...rest }) => {
5622
5734
  const { "aria-required": ariaRequired = false } = htmlProps;
5623
5735
  const generatedId = useId();
5624
5736
  const uniqueGroupId = groupId ?? `${generatedId}-radioButtonGroup`;
@@ -5640,7 +5752,8 @@ const RadioButtonGroup = ({ name, label, groupId, errorMessage, tip, disabled =
5640
5752
  required,
5641
5753
  readOnly,
5642
5754
  value: groupValue,
5643
- onChange: handleChange
5755
+ onChange: handleChange,
5756
+ size
5644
5757
  };
5645
5758
  return /* @__PURE__ */ jsxs("div", {
5646
5759
  ...getBaseHTMLProps(id, cn(className, SelectionControl_module_default.container), style, {
@@ -5678,10 +5791,6 @@ const RadioButtonGroup = ({ name, label, groupId, errorMessage, tip, disabled =
5678
5791
  };
5679
5792
  RadioButtonGroup.displayName = "RadioButtonGroup";
5680
5793
  //#endregion
5681
- //#region src/components/Card/CardSelectionControl/CardSelectable.context.tsx
5682
- const CardSelectableContext = createContext({});
5683
- const useCardSelectableContext = () => useContext(CardSelectableContext);
5684
- //#endregion
5685
5794
  //#region src/components/Card/CardSelectionControl/CardSelectable.tsx
5686
5795
  const CardSelectable = (props) => {
5687
5796
  const { appearance = "filled", cardType: cardTypeProp, id, padding, controlPlacementProps = {}, "aria-describedby": ariaDescribedby, className, htmlProps, style, ...rest } = props;
@@ -5705,9 +5814,9 @@ Provide \`cardType\` either via a parent <CardSelectableGroup> or directly on th
5705
5814
  value
5706
5815
  };
5707
5816
  const customStyles = {
5708
- ["--dds-selection-control-card-padding"]: padding ?? "var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) calc(var(--dds-size-icon-component) + var(--dds-spacing-x0-5) + var(--dds-spacing-x1-5))",
5817
+ ["--dds-selection-control-card-padding"]: padding ?? "var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) var(--dds-spacing-x1-5) calc(var(--dds-size-6) + var(--dds-spacing-x0-5) + var(--dds-spacing-x1))",
5709
5818
  ["--dds-selection-control-card-control-top"]: top,
5710
- ["--dds-selection-control-card-control-left"]: left ?? `var(--dds-spacing-x1-5)`
5819
+ ["--dds-selection-control-card-control-left"]: left ?? `var(--dds-spacing-x1)`
5711
5820
  };
5712
5821
  const sharedProps = {
5713
5822
  ...getBaseHTMLProps(id, classNames, {
@@ -5779,8 +5888,124 @@ const CardSelectableGroup = ({ name, cardType, errorMessage, disabled, readOnly,
5779
5888
  };
5780
5889
  CardSelectableGroup.displayName = "CardSelectableGroup";
5781
5890
  //#endregion
5782
- //#region src/components/Chip/Chip.tsx
5783
- const Chip = ({ children, onClose, id, className, style, htmlProps = {}, ...rest }) => {
5891
+ //#region src/components/Chip/Chip.module.css
5892
+ var Chip_module_default = {
5893
+ "container": "dds-Chip-module__container",
5894
+ "selection-control": "dds-Chip-module__selection-control",
5895
+ "removable": "dds-Chip-module__removable",
5896
+ "selection-control-spacing": "dds-Chip-module__selection-control-spacing",
5897
+ "selection-control--no-indicator": "dds-Chip-module__selection-control--no-indicator"
5898
+ };
5899
+ //#endregion
5900
+ //#region src/components/helpers/Input/Input.module.css
5901
+ var Input_module_default = {
5902
+ "container": "dds-Input-module__container",
5903
+ "input-group": "dds-Input-module__input-group",
5904
+ "input": "dds-Input-module__input",
5905
+ "disabled": "dds-Input-module__disabled",
5906
+ "read-only": "dds-Input-module__read-only",
5907
+ "input--stateful": "dds-Input-module__input--stateful",
5908
+ "input--hover": "dds-Input-module__input--hover",
5909
+ "input--stateful-danger": "dds-Input-module__input--stateful-danger",
5910
+ "input--large": "dds-Input-module__input--large",
5911
+ "input--medium": "dds-Input-module__input--medium",
5912
+ "input--small": "dds-Input-module__input--small",
5913
+ "input--xsmall": "dds-Input-module__input--xsmall",
5914
+ "compact--medium": "dds-Input-module__compact--medium",
5915
+ "compact--small": "dds-Input-module__compact--small",
5916
+ "compact-with-icon--medium": "dds-Input-module__compact-with-icon--medium",
5917
+ "compact-with-icon--small": "dds-Input-module__compact-with-icon--small",
5918
+ "input-with-icon--large": "dds-Input-module__input-with-icon--large",
5919
+ "input-with-icon--medium": "dds-Input-module__input-with-icon--medium",
5920
+ "input-with-icon--small": "dds-Input-module__input-with-icon--small",
5921
+ "input-with-icon--xsmall": "dds-Input-module__input-with-icon--xsmall",
5922
+ "input-with-el-right--large": "dds-Input-module__input-with-el-right--large",
5923
+ "input-with-el-right--medium": "dds-Input-module__input-with-el-right--medium",
5924
+ "input-with-el-right--small": "dds-Input-module__input-with-el-right--small",
5925
+ "input-with-el-right--xsmall": "dds-Input-module__input-with-el-right--xsmall",
5926
+ "input-with-btn-right--large": "dds-Input-module__input-with-btn-right--large",
5927
+ "input-with-btn-right--medium": "dds-Input-module__input-with-btn-right--medium",
5928
+ "input-with-btn-right--small": "dds-Input-module__input-with-btn-right--small",
5929
+ "input-with-btn-right--xsmall": "dds-Input-module__input-with-btn-right--xsmall",
5930
+ "input-with-icon-and-button-right--large": "dds-Input-module__input-with-icon-and-button-right--large",
5931
+ "input-with-icon-and-button-right--medium": "dds-Input-module__input-with-icon-and-button-right--medium",
5932
+ "input-with-icon-and-button-right--small": "dds-Input-module__input-with-icon-and-button-right--small",
5933
+ "input-with-icon-and-button-right--xsmall": "dds-Input-module__input-with-icon-and-button-right--xsmall",
5934
+ "input-group__absolute-el-right--large": "dds-Input-module__input-group__absolute-el-right--large",
5935
+ "input-group__absolute-el-right--medium": "dds-Input-module__input-group__absolute-el-right--medium",
5936
+ "input-group__absolute-el-right--small": "dds-Input-module__input-group__absolute-el-right--small",
5937
+ "input-group__absolute-el-right--xsmall": "dds-Input-module__input-group__absolute-el-right--xsmall",
5938
+ "input-group__btn-right": "dds-Input-module__input-group__btn-right",
5939
+ "input-group__btn-right-with-right-icon--xsmall": "dds-Input-module__input-group__btn-right-with-right-icon--xsmall",
5940
+ "input-group__btn-right-with-right-icon--small": "dds-Input-module__input-group__btn-right-with-right-icon--small",
5941
+ "input-group__btn-right-with-right-icon--medium": "dds-Input-module__input-group__btn-right-with-right-icon--medium",
5942
+ "input-group__btn-right-with-right-icon--large": "dds-Input-module__input-group__btn-right-with-right-icon--large",
5943
+ "input--with-affix": "dds-Input-module__input--with-affix",
5944
+ "input-group__absolute-el": "dds-Input-module__input-group__absolute-el",
5945
+ "input-group__absolute-el--large": "dds-Input-module__input-group__absolute-el--large",
5946
+ "input-group__absolute-el--medium": "dds-Input-module__input-group__absolute-el--medium",
5947
+ "input-group__absolute-el--small": "dds-Input-module__input-group__absolute-el--small",
5948
+ "input-group__absolute-el--xsmall": "dds-Input-module__input-group__absolute-el--xsmall"
5949
+ };
5950
+ const ChipBase = ({ htmlProps, size = "medium", id, className, style, children, icon, ...rest }) => {
5951
+ const hasIcon = !!icon;
5952
+ return /* @__PURE__ */ jsxs(Paper, {
5953
+ display: "inline-flex",
5954
+ alignItems: "center",
5955
+ maxWidth: "100%",
5956
+ borderRadius: "rounded",
5957
+ border: "border-subtle",
5958
+ ...getBaseHTMLProps(id, cn(className, typographyStyles_module_default[`body-short-${size}`], Input_module_default[`compact--${size}`], hasIcon && Input_module_default[`compact-with-icon--${size}`], Chip_module_default.container, _key1), style, htmlProps, {
5959
+ ...rest,
5960
+ ...typeof rest.as === "function" ? { size } : {}
5961
+ }),
5962
+ children: [!!icon && /* @__PURE__ */ jsx(Icon, {
5963
+ icon,
5964
+ iconSize: "component"
5965
+ }), children]
5966
+ });
5967
+ };
5968
+ const ChipButton = ({ htmlProps, size = "medium", id, className, style, children, badgeProps, ...rest }) => {
5969
+ return /* @__PURE__ */ jsxs(ChipBase, {
5970
+ as: "button",
5971
+ size,
5972
+ ...getBaseHTMLProps(id, cn(className, common_module_default.button), style, htmlProps, rest),
5973
+ children: [children, badgeProps && /* @__PURE__ */ jsx(Badge, {
5974
+ ...badgeProps,
5975
+ size,
5976
+ className: cn(common_module_default["badge--on-corner"], badgeProps.className)
5977
+ })]
5978
+ });
5979
+ };
5980
+ const ChipSelectionControl = ({ as, htmlProps, size = "medium", showSelectionControlIndicator = true, id, className, style, ...rest }) => {
5981
+ const sizeKey = {
5982
+ small: "sm",
5983
+ medium: "md"
5984
+ }[size];
5985
+ const showIndicator = showSelectionControlIndicator && !rest.icon;
5986
+ const styleVariables = showIndicator ? {
5987
+ ["--dds-spacing-chip-sl-left"]: `calc(var(--dds-spacing-compact-icon-left-${sizeKey}) + var(--dds-spacing-compact-icon-text-gap-${sizeKey}) + var(--dds-size-icon-component))`,
5988
+ ["--dds-spacing-chip-sl-right"]: `var(--dds-spacing-compact-inline-${sizeKey})`,
5989
+ ["--dds-spacing-chip-sl-marker-left"]: `var(--dds-spacing-compact-icon-left-${sizeKey})`
5990
+ } : {};
5991
+ return /* @__PURE__ */ jsx(ChipBase, {
5992
+ as,
5993
+ size,
5994
+ ...getBaseHTMLProps(id, cn(className, Chip_module_default["selection-control"], showIndicator ? Chip_module_default["selection-control-spacing"] : cn(Chip_module_default["selection-control--no-indicator"], focus_module_default["has-focusable-input"])), {
5995
+ ...style,
5996
+ ...styleVariables
5997
+ }, htmlProps, rest)
5998
+ });
5999
+ };
6000
+ const ChipCheckbox = (props) => /* @__PURE__ */ jsx(ChipSelectionControl, {
6001
+ ...props,
6002
+ as: Checkbox
6003
+ });
6004
+ const ChipRadio = (props) => /* @__PURE__ */ jsx(ChipSelectionControl, {
6005
+ ...props,
6006
+ as: RadioButton
6007
+ });
6008
+ const ChipRemovable = ({ htmlProps = {}, onClose, size = "medium", id, className, style, children, ...rest }) => {
5784
6009
  const { t } = useTranslation();
5785
6010
  const { "aria-label": ariaLabel, ...restHTMLprops } = htmlProps;
5786
6011
  const [isOpen, setIsOpen] = useState(true);
@@ -5788,30 +6013,23 @@ const Chip = ({ children, onClose, id, className, style, htmlProps = {}, ...rest
5788
6013
  setIsOpen(false);
5789
6014
  onClose?.();
5790
6015
  };
5791
- return isOpen ? /* @__PURE__ */ jsxs(Paper, {
5792
- display: "inline-flex",
5793
- alignItems: "center",
5794
- maxWidth: "100%",
5795
- gap: "x0.125",
5796
- padding: "x0.25 0 x0.25 x0.5",
5797
- borderRadius: "chip",
5798
- border: "border-subtle",
5799
- background: "surface-subtle",
5800
- ...getBaseHTMLProps(id, cn(className, typographyStyles_module_default["body-short-medium"]), style, restHTMLprops, rest),
5801
- children: [/* @__PURE__ */ jsx(TextOverflowEllipsisInner, { children }), /* @__PURE__ */ jsx(Bleed, {
5802
- as: Button,
5803
- purpose: "tertiary",
5804
- size: "xsmall",
6016
+ return isOpen ? /* @__PURE__ */ jsxs(ChipBase, {
6017
+ as: "span",
6018
+ size,
6019
+ ...getBaseHTMLProps(id, cn(className, Chip_module_default.removable), style, restHTMLprops, rest),
6020
+ children: [/* @__PURE__ */ jsx(TextOverflowEllipsisInner, { children }), /* @__PURE__ */ jsx(InlineButton, {
5805
6021
  icon: CloseIcon,
6022
+ color: "icon-default",
5806
6023
  onClick,
5807
- "aria-label": ariaLabel ?? t(texts$26.removeChip) + (children ? ` ${children}` : ""),
5808
- bleedMarginBlock: "x0.25",
5809
- reflectivePadding: true
6024
+ "aria-label": ariaLabel ?? t(texts$27.removeChip) + (children ? ` ${children}` : "")
5810
6025
  })]
5811
6026
  }) : null;
5812
6027
  };
5813
- Chip.displayName = "Chip";
5814
- const texts$26 = createTexts({ removeChip: {
6028
+ ChipRemovable.displayName = "ChipRemovable";
6029
+ ChipRadio.displayName = "ChipRadio";
6030
+ ChipCheckbox.displayName = "ChipCheckbox";
6031
+ ChipButton.displayName = "ChipButton";
6032
+ const texts$27 = createTexts({ removeChip: {
5815
6033
  nb: "Fjern merkelapp",
5816
6034
  no: "Fjern merkelapp",
5817
6035
  nn: "Fjern merkelapp",
@@ -5820,17 +6038,49 @@ const texts$26 = createTexts({ removeChip: {
5820
6038
  } });
5821
6039
  //#endregion
5822
6040
  //#region src/components/Chip/ChipGroup.tsx
5823
- const ChipGroup = ({ children, ...rest }) => {
5824
- const childrenArray = Children.toArray(children);
5825
- return /* @__PURE__ */ jsx(HStack, {
5826
- as: StylelessList,
5827
- ...rest,
5828
- gap: "x0.75",
5829
- children: childrenArray.map((item, index) => /* @__PURE__ */ jsx("li", { children: item }, `chip-${index}`))
6041
+ const ChipGroup = (props) => {
6042
+ const { children, label, labelId, gap = "x0.75", flexWrap = "wrap", id, className, style, htmlProps, ...rest } = props;
6043
+ const generatedId = useId();
6044
+ const uniqueLabelId = labelId ?? `${generatedId}-ChipGroupLabel`;
6045
+ const baseProps = getBaseHTMLProps(id, className, style, htmlProps, rest);
6046
+ const layout = {
6047
+ gap,
6048
+ flexWrap
6049
+ };
6050
+ return label ? /* @__PURE__ */ jsxs("div", {
6051
+ ...baseProps,
6052
+ role: "group",
6053
+ "aria-labelledby": label ? uniqueLabelId : void 0,
6054
+ children: [renderGroupLabel({
6055
+ label,
6056
+ id: uniqueLabelId
6057
+ }), /* @__PURE__ */ jsx(HStack, {
6058
+ ...layout,
6059
+ children
6060
+ })]
6061
+ }) : /* @__PURE__ */ jsx(HStack, {
6062
+ ...baseProps,
6063
+ ...layout,
6064
+ role: "group",
6065
+ children
5830
6066
  });
5831
6067
  };
5832
6068
  ChipGroup.displayName = "ChipGroup";
5833
6069
  //#endregion
6070
+ //#region src/components/Chip/index.ts
6071
+ const Chip = {
6072
+ Button: ChipButton,
6073
+ Checkbox: ChipCheckbox,
6074
+ Radio: ChipRadio,
6075
+ Removable: ChipRemovable,
6076
+ Group: ChipGroup
6077
+ };
6078
+ Chip.Button.displayName = "Chip.Button";
6079
+ Chip.Checkbox.displayName = "Chip.Checkbox";
6080
+ Chip.Radio.displayName = "Chip.Radio";
6081
+ Chip.Removable.displayName = "Chip.Removable";
6082
+ Chip.Group.displayName = "Chip.Group";
6083
+ //#endregion
5834
6084
  //#region src/components/CookieBanner/CookieBanner.module.css
5835
6085
  var CookieBanner_module_default = {
5836
6086
  "container": "dds-CookieBanner-module__container",
@@ -5892,7 +6142,7 @@ function CookieBanner({ headerText, description, buttons, checkboxes, id, classN
5892
6142
  children: [heading, /* @__PURE__ */ jsx(ShowHide, {
5893
6143
  as: Button,
5894
6144
  showBelow: collapsedBreakpoint,
5895
- "aria-label": t(texts$25.expandConsent),
6145
+ "aria-label": t(texts$26.expandConsent),
5896
6146
  purpose: "tertiary",
5897
6147
  icon: ExpandIcon,
5898
6148
  onClick: () => setIsCollapsedOnBreakpoint(false),
@@ -5928,7 +6178,7 @@ function CookieBanner({ headerText, description, buttons, checkboxes, id, classN
5928
6178
  });
5929
6179
  }
5930
6180
  CookieBanner.displayName = "CookieBanner";
5931
- const texts$25 = createTexts({ expandConsent: {
6181
+ const texts$26 = createTexts({ expandConsent: {
5932
6182
  nb: "Utvid samtykke for bruk av informasjonskapsler",
5933
6183
  no: "Utvid samtykke for bruk av informasjonskapsler",
5934
6184
  nn: "Utvid samtykke for bruk av informasjonskapslar",
@@ -6161,32 +6411,32 @@ function CalendarGrid({ state, ...props }) {
6161
6411
  const weeksInMonth = getWeeksInMonth(state.visibleRange.start, locale);
6162
6412
  const weekDays = [
6163
6413
  {
6164
- short: t(texts$24.mo),
6165
- full: t(texts$24.monday)
6414
+ short: t(texts$25.mo),
6415
+ full: t(texts$25.monday)
6166
6416
  },
6167
6417
  {
6168
- short: t(texts$24.tu),
6169
- full: t(texts$24.tuesday)
6418
+ short: t(texts$25.tu),
6419
+ full: t(texts$25.tuesday)
6170
6420
  },
6171
6421
  {
6172
- short: t(texts$24.we),
6173
- full: t(texts$24.wednesday)
6422
+ short: t(texts$25.we),
6423
+ full: t(texts$25.wednesday)
6174
6424
  },
6175
6425
  {
6176
- short: t(texts$24.th),
6177
- full: t(texts$24.thursday)
6426
+ short: t(texts$25.th),
6427
+ full: t(texts$25.thursday)
6178
6428
  },
6179
6429
  {
6180
- short: t(texts$24.fr),
6181
- full: t(texts$24.friday)
6430
+ short: t(texts$25.fr),
6431
+ full: t(texts$25.friday)
6182
6432
  },
6183
6433
  {
6184
- short: t(texts$24.sa),
6185
- full: t(texts$24.saturday)
6434
+ short: t(texts$25.sa),
6435
+ full: t(texts$25.saturday)
6186
6436
  },
6187
6437
  {
6188
- short: t(texts$24.su),
6189
- full: t(texts$24.sunday)
6438
+ short: t(texts$25.su),
6439
+ full: t(texts$25.sunday)
6190
6440
  }
6191
6441
  ];
6192
6442
  const { showWeekNumbers, onClose } = useContext(CalendarPopoverContext);
@@ -6205,7 +6455,7 @@ function CalendarGrid({ state, ...props }) {
6205
6455
  children: [/* @__PURE__ */ jsx("span", {
6206
6456
  "aria-hidden": true,
6207
6457
  children: "#"
6208
- }), /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$24.weekNumber) })]
6458
+ }), /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$25.weekNumber) })]
6209
6459
  }), weekDays.map((day, index) => /* @__PURE__ */ jsxs(CalendarCell, {
6210
6460
  as: "th",
6211
6461
  children: [/* @__PURE__ */ jsx("span", {
@@ -6229,7 +6479,7 @@ function CalendarGrid({ state, ...props }) {
6229
6479
  });
6230
6480
  }
6231
6481
  CalendarGrid.displayName = "CalendarGrid";
6232
- const texts$24 = createTexts({
6482
+ const texts$25 = createTexts({
6233
6483
  weekNumber: {
6234
6484
  nb: "Ukenummer",
6235
6485
  no: "Ukenummer",
@@ -6364,7 +6614,7 @@ function Calendar(props) {
6364
6614
  return /* @__PURE__ */ jsxs(VStack, {
6365
6615
  ...calendarProps,
6366
6616
  gap: "x0.25",
6367
- height: "337px",
6617
+ height: "calc(var(--dds-size-10) * 8 + var(--dds-spacing-x0-5))",
6368
6618
  children: [/* @__PURE__ */ jsxs(HStack, {
6369
6619
  justifyContent: "space-between",
6370
6620
  alignItems: "center",
@@ -6372,7 +6622,7 @@ function Calendar(props) {
6372
6622
  /* @__PURE__ */ jsx(Button, {
6373
6623
  "aria-hidden": optAttr(isPrevDisabled),
6374
6624
  type: "button",
6375
- "aria-label": t(texts$23.previousMonth),
6625
+ "aria-label": t(texts$24.previousMonth),
6376
6626
  onClick: (e) => onPrev?.(e),
6377
6627
  size: "small",
6378
6628
  purpose: "tertiary",
@@ -6389,7 +6639,7 @@ function Calendar(props) {
6389
6639
  /* @__PURE__ */ jsx(Button, {
6390
6640
  type: "button",
6391
6641
  "aria-hidden": optAttr(isNextDisabled),
6392
- "aria-label": t(texts$23.nextMonth),
6642
+ "aria-label": t(texts$24.nextMonth),
6393
6643
  onClick: (e) => onNext?.(e),
6394
6644
  size: "small",
6395
6645
  purpose: "tertiary",
@@ -6401,7 +6651,7 @@ function Calendar(props) {
6401
6651
  });
6402
6652
  }
6403
6653
  Calendar.displayName = "Calendar";
6404
- const texts$23 = createTexts({
6654
+ const texts$24 = createTexts({
6405
6655
  nextMonth: {
6406
6656
  nb: "Neste måned",
6407
6657
  no: "Neste måned",
@@ -6418,79 +6668,19 @@ const texts$23 = createTexts({
6418
6668
  }
6419
6669
  });
6420
6670
  //#endregion
6421
- //#region src/components/helpers/InlineIconButton/InlineIconButton.module.css
6422
- var InlineIconButton_module_default = { "button": "dds-InlineIconButton-module__button" };
6423
- //#endregion
6424
- //#region src/components/helpers/InlineIconButton/InlineIconButton.tsx
6425
- const InlineIconButton = ({ className, size, icon, color, ...rest }) => /* @__PURE__ */ jsx(StylelessButton, {
6426
- className: cn(className, InlineIconButton_module_default.button, _key1),
6427
- ...rest,
6428
- children: /* @__PURE__ */ jsx(Icon, {
6429
- icon,
6430
- iconSize: size,
6431
- color
6432
- })
6433
- });
6434
- InlineIconButton.displayName = "InlineIconButton";
6435
- //#endregion
6436
- //#region src/components/helpers/Input/Input.module.css
6437
- var Input_module_default = {
6438
- "container": "dds-Input-module__container",
6439
- "input-group": "dds-Input-module__input-group",
6440
- "input": "dds-Input-module__input",
6441
- "disabled": "dds-Input-module__disabled",
6442
- "read-only": "dds-Input-module__read-only",
6443
- "input--stateful": "dds-Input-module__input--stateful",
6444
- "input--hover": "dds-Input-module__input--hover",
6445
- "input--stateful-danger": "dds-Input-module__input--stateful-danger",
6446
- "input--large": "dds-Input-module__input--large",
6447
- "input--medium": "dds-Input-module__input--medium",
6448
- "input--small": "dds-Input-module__input--small",
6449
- "input--xsmall": "dds-Input-module__input--xsmall",
6450
- "input-with-icon--large": "dds-Input-module__input-with-icon--large",
6451
- "input-with-icon--medium": "dds-Input-module__input-with-icon--medium",
6452
- "input-with-icon--small": "dds-Input-module__input-with-icon--small",
6453
- "input-with-icon--xsmall": "dds-Input-module__input-with-icon--xsmall",
6454
- "input-with-el-right--large": "dds-Input-module__input-with-el-right--large",
6455
- "input-with-el-right--medium": "dds-Input-module__input-with-el-right--medium",
6456
- "input-with-el-right--small": "dds-Input-module__input-with-el-right--small",
6457
- "input-with-el-right--xsmall": "dds-Input-module__input-with-el-right--xsmall",
6458
- "input-with-btn-right--large": "dds-Input-module__input-with-btn-right--large",
6459
- "input-with-btn-right--medium": "dds-Input-module__input-with-btn-right--medium",
6460
- "input-with-btn-right--small": "dds-Input-module__input-with-btn-right--small",
6461
- "input-with-btn-right--xsmall": "dds-Input-module__input-with-btn-right--xsmall",
6462
- "input-with-icon-and-button-right--large": "dds-Input-module__input-with-icon-and-button-right--large",
6463
- "input-with-icon-and-button-right--medium": "dds-Input-module__input-with-icon-and-button-right--medium",
6464
- "input-with-icon-and-button-right--small": "dds-Input-module__input-with-icon-and-button-right--small",
6465
- "input-with-icon-and-button-right--xsmall": "dds-Input-module__input-with-icon-and-button-right--xsmall",
6466
- "input-group__absolute-el-right--large": "dds-Input-module__input-group__absolute-el-right--large",
6467
- "input-group__absolute-el-right--medium": "dds-Input-module__input-group__absolute-el-right--medium",
6468
- "input-group__absolute-el-right--small": "dds-Input-module__input-group__absolute-el-right--small",
6469
- "input-group__absolute-el-right--xsmall": "dds-Input-module__input-group__absolute-el-right--xsmall",
6470
- "input-group__btn-right": "dds-Input-module__input-group__btn-right",
6471
- "input-group__btn-right-with-right-icon--xsmall": "dds-Input-module__input-group__btn-right-with-right-icon--xsmall",
6472
- "input-group__btn-right-with-right-icon--small": "dds-Input-module__input-group__btn-right-with-right-icon--small",
6473
- "input-group__btn-right-with-right-icon--medium": "dds-Input-module__input-group__btn-right-with-right-icon--medium",
6474
- "input-group__btn-right-with-right-icon--large": "dds-Input-module__input-group__btn-right-with-right-icon--large",
6475
- "input--with-affix": "dds-Input-module__input--with-affix",
6476
- "input-group__absolute-el": "dds-Input-module__input-group__absolute-el",
6477
- "input-group__absolute-el--large": "dds-Input-module__input-group__absolute-el--large",
6478
- "input-group__absolute-el--medium": "dds-Input-module__input-group__absolute-el--medium",
6479
- "input-group__absolute-el--small": "dds-Input-module__input-group__absolute-el--small",
6480
- "input-group__absolute-el--xsmall": "dds-Input-module__input-group__absolute-el--xsmall"
6481
- };
6482
- //#endregion
6483
6671
  //#region src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
6484
6672
  function CalendarButton({ componentSize = "medium", isReadOnly, ...props }) {
6485
6673
  const ref = useRef(null);
6486
6674
  const { buttonProps } = useButton(props, ref);
6487
- return /* @__PURE__ */ jsx(InlineIconButton, {
6675
+ return /* @__PURE__ */ jsx(Button, {
6488
6676
  ...buttonProps,
6489
6677
  ref,
6490
6678
  type: "button",
6491
- className: cn(buttonProps.className, DateInput_module_default["popover-button"], isReadOnly && DateInput_module_default["popover-button--readonly"], !props.isDisabled && "dds-focus-module__focusable", Input_module_default["input-group__absolute-el"], Input_module_default[`input-group__absolute-el--${componentSize}`]),
6679
+ className: cn(buttonProps.className, DateInput_module_default["popover-button"], isReadOnly && DateInput_module_default["popover-button--readonly"], !props.isDisabled && "dds-focus-module__focusable", Input_module_default["input-group__absolute-el"], Button_module_default.clear),
6492
6680
  icon: CalendarIcon,
6493
- size: "component"
6681
+ size: componentSize,
6682
+ purpose: "tertiary",
6683
+ disabled: props.isDisabled
6494
6684
  });
6495
6685
  }
6496
6686
  //#endregion
@@ -6505,16 +6695,16 @@ function formatDateFieldSegments(segments) {
6505
6695
  const formattedDaySegment = {
6506
6696
  ...daySegment,
6507
6697
  text: daySegment.text.padStart(2, "0"),
6508
- placeholder: t(texts$22.dayPlaceholder)
6698
+ placeholder: t(texts$23.dayPlaceholder)
6509
6699
  };
6510
6700
  const formattedMonthSegment = {
6511
6701
  ...monthSegment,
6512
6702
  text: monthSegment.text.padStart(2, "0"),
6513
- placeholder: t(texts$22.monthPlaceholder)
6703
+ placeholder: t(texts$23.monthPlaceholder)
6514
6704
  };
6515
6705
  const formattedYearSegment = {
6516
6706
  ...yearSegment,
6517
- placeholder: t(texts$22.yearPlaceholder)
6707
+ placeholder: t(texts$23.yearPlaceholder)
6518
6708
  };
6519
6709
  const formattedSeparatorSegment = {
6520
6710
  ...separatorSegment,
@@ -6528,7 +6718,7 @@ function formatDateFieldSegments(segments) {
6528
6718
  formattedYearSegment
6529
6719
  ];
6530
6720
  }
6531
- const texts$22 = createTexts({
6721
+ const texts$23 = createTexts({
6532
6722
  dayPlaceholder: {
6533
6723
  nb: "dd",
6534
6724
  no: "dd",
@@ -6708,7 +6898,7 @@ function DateField({ componentSize = "medium", buttonProps, groupProps, ref, cle
6708
6898
  }),
6709
6899
  suffix: showClearButton && /* @__PURE__ */ jsx(ClearButton, {
6710
6900
  absolute: true,
6711
- "aria-label": t(texts$21.clearDate),
6901
+ "aria-label": t(texts$22.clearDate),
6712
6902
  "aria-hidden": !hasValue,
6713
6903
  className: cn(!hasValue && utilStyles_module_default.invisible),
6714
6904
  size: componentSize,
@@ -6727,7 +6917,7 @@ function DateField({ componentSize = "medium", buttonProps, groupProps, ref, cle
6727
6917
  });
6728
6918
  }
6729
6919
  DateField.displayName = "DateField";
6730
- const texts$21 = createTexts({ clearDate: {
6920
+ const texts$22 = createTexts({ clearDate: {
6731
6921
  en: "Clear date",
6732
6922
  nb: "Tøm dato",
6733
6923
  no: "Tøm dato",
@@ -7011,7 +7201,8 @@ var Table_module_default = {
7011
7201
  "cell--right": "dds-Table-module__cell--right",
7012
7202
  "cell--center": "dds-Table-module__cell--center",
7013
7203
  "cell__inner": "dds-Table-module__cell__inner",
7014
- "sort-button": "dds-Table-module__sort-button"
7204
+ "sort-button": "dds-Table-module__sort-button",
7205
+ "filter-cell": "dds-Table-module__filter-cell"
7015
7206
  };
7016
7207
  //#endregion
7017
7208
  //#region src/components/DetailList/DetailList.tsx
@@ -7283,7 +7474,7 @@ const ErrorSummary = ({ heading: pHeading, className, style, children, id, htmlP
7283
7474
  }) : pHeading ? pHeading : /* @__PURE__ */ jsx(Heading, {
7284
7475
  level: 2,
7285
7476
  typographyType: "heading-small",
7286
- children: t(texts$20.toProceedCorrectErrors)
7477
+ children: t(texts$21.toProceedCorrectErrors)
7287
7478
  });
7288
7479
  return /* @__PURE__ */ jsxs(Paper, {
7289
7480
  ...getBaseHTMLProps(id, cn(className, ErrorSummary_module_default.container), style, htmlProps, props),
@@ -7293,7 +7484,7 @@ const ErrorSummary = ({ heading: pHeading, className, style, children, id, htmlP
7293
7484
  });
7294
7485
  };
7295
7486
  ErrorSummary.displayName = "ErrorSummary";
7296
- const texts$20 = createTexts({ toProceedCorrectErrors: {
7487
+ const texts$21 = createTexts({ toProceedCorrectErrors: {
7297
7488
  nb: "For å gå videre må du rette opp følgende feil:",
7298
7489
  no: "For å gå videre må du rette opp følgende feil:",
7299
7490
  nn: "For å gå vidare må du rette opp følgjande feil:",
@@ -7327,6 +7518,7 @@ const FavStar = ({ id, className, style, onChange, checked: checkedProp, default
7327
7518
  defaultValue: defaultChecked ?? false,
7328
7519
  onChange
7329
7520
  });
7521
+ const iconSize = size === "large" ? "8" : "6";
7330
7522
  return /* @__PURE__ */ jsxs("label", {
7331
7523
  className: cn(className, FavStar_module_default.container, FavStar_module_default[`container--${size}`], focus_module_default["has-focusable-input"]),
7332
7524
  style,
@@ -7338,15 +7530,15 @@ const FavStar = ({ id, className, style, onChange, checked: checkedProp, default
7338
7530
  checked,
7339
7531
  onChange: (e) => setChecked(e.target.checked),
7340
7532
  type: "checkbox",
7341
- "aria-label": props["aria-label"] ?? t(texts$19.favourite)
7533
+ "aria-label": props["aria-label"] ?? t(texts$20.favourite)
7342
7534
  }),
7343
7535
  /* @__PURE__ */ jsx(Icon, {
7344
- iconSize: size,
7536
+ iconSize,
7345
7537
  icon: StarIcon,
7346
7538
  className: FavStar_module_default.icon
7347
7539
  }),
7348
7540
  /* @__PURE__ */ jsx(Icon, {
7349
- iconSize: size,
7541
+ iconSize,
7350
7542
  icon: StarFilledIcon,
7351
7543
  className: cn(FavStar_module_default.icon, !checked && FavStar_module_default["icon--invisible"])
7352
7544
  })
@@ -7354,7 +7546,7 @@ const FavStar = ({ id, className, style, onChange, checked: checkedProp, default
7354
7546
  });
7355
7547
  };
7356
7548
  FavStar.displayName = "FavStar";
7357
- const texts$19 = createTexts({ favourite: {
7549
+ const texts$20 = createTexts({ favourite: {
7358
7550
  nb: "Stjernemarker",
7359
7551
  no: "Stjernemarker",
7360
7552
  nn: "Stjernemerk",
@@ -7368,9 +7560,7 @@ var Feedback_module_default = {
7368
7560
  "rating-container--horizontal": "dds-Feedback-module__rating-container--horizontal",
7369
7561
  "rating-container--vertical": "dds-Feedback-module__rating-container--vertical",
7370
7562
  "rating-submitted-title": "dds-Feedback-module__rating-submitted-title",
7371
- "button": "dds-Feedback-module__button",
7372
- "button--horizontal": "dds-Feedback-module__button--horizontal",
7373
- "button--vertical": "dds-Feedback-module__button--vertical"
7563
+ "button": "dds-Feedback-module__button"
7374
7564
  };
7375
7565
  //#endregion
7376
7566
  //#region src/components/TextArea/TextArea.module.css
@@ -7398,7 +7588,7 @@ function CharCounter(props) {
7398
7588
  "/",
7399
7589
  max
7400
7590
  ]
7401
- }), /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$18.charsWritten(current, max, max - current)) })]
7591
+ }), /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$19.charsWritten(current, max, max - current)) })]
7402
7592
  });
7403
7593
  }
7404
7594
  const renderCharCounter = (id, isShown, textLength, maxLength) => {
@@ -7408,7 +7598,7 @@ const renderCharCounter = (id, isShown, textLength, maxLength) => {
7408
7598
  current: textLength
7409
7599
  });
7410
7600
  };
7411
- const texts$18 = createTexts({ charsWritten: (current, max, remain) => ({
7601
+ const texts$19 = createTexts({ charsWritten: (current, max, remain) => ({
7412
7602
  nb: `${current} av ${max} tegn skrevet. ${remain} igjen.`,
7413
7603
  no: `${current} av ${max} tegn skrevet. ${remain} igjen.`,
7414
7604
  nn: `${current} av ${max} teikn skrivne. ${remain} att.`,
@@ -7510,12 +7700,12 @@ const CommentComponent = ({ rating, feedbackText, positiveFeedbackLabel, negativ
7510
7700
  size: "small",
7511
7701
  onClick: handleSubmit,
7512
7702
  loading,
7513
- children: t(texts$17.send)
7703
+ children: t(texts$18.send)
7514
7704
  })
7515
7705
  ]
7516
7706
  });
7517
7707
  };
7518
- const texts$17 = createTexts({ send: {
7708
+ const texts$18 = createTexts({ send: {
7519
7709
  nb: "Send inn",
7520
7710
  no: "Send inn",
7521
7711
  nn: "Send inn",
@@ -7627,7 +7817,7 @@ const RatingComponent = ({ layout, ratingLabel, loading, thumbUpTooltip, thumbDo
7627
7817
  children: [/* @__PURE__ */ jsx("h2", {
7628
7818
  className: typographyStyles_module_default["label-medium"],
7629
7819
  children: ratingLabel
7630
- }), loading ? /* @__PURE__ */ jsx(Spinner, { tooltip: t(texts$16.uploadingFeedback) }) : /* @__PURE__ */ jsxs(HStack, {
7820
+ }), loading ? /* @__PURE__ */ jsx(Spinner, { tooltip: t(texts$17.uploadingFeedback) }) : /* @__PURE__ */ jsxs(HStack, {
7631
7821
  gap: "x0.75",
7632
7822
  children: [/* @__PURE__ */ jsx(Tooltip, {
7633
7823
  text: thumbUpTooltip,
@@ -7651,7 +7841,7 @@ const RatingComponent = ({ layout, ratingLabel, loading, thumbUpTooltip, thumbDo
7651
7841
  })]
7652
7842
  });
7653
7843
  };
7654
- const texts$16 = createTexts({ uploadingFeedback: {
7844
+ const texts$17 = createTexts({ uploadingFeedback: {
7655
7845
  nb: "Laster opp tilbakemelding...",
7656
7846
  no: "Laster opp tilbakemelding...",
7657
7847
  nn: "Lastar opp tilbakemelding...",
@@ -7665,14 +7855,14 @@ const Feedback = ({ layout = "vertical", ratingLabel, positiveFeedbackLabel, neg
7665
7855
  const [rating, setRating] = useState(null);
7666
7856
  const [feedbackText, setFeedbackText] = useState();
7667
7857
  const [isFeedbackSubmitted, setIsFeedbackSubmitted] = useState(false);
7668
- const tRatingLabel = ratingLabel ?? t(texts$15.ratingQuestion);
7669
- const tPositiveFeedbackLabel = positiveFeedbackLabel ?? t(texts$15.improvalQuestion);
7670
- const tNegativeFeedbackLabel = negativeFeedbackLabel ?? t(texts$15.improvalQuestion);
7671
- const tRatingSubmittedTitle = ratingSubmittedTitle ?? t(texts$15.thanks);
7672
- const tSubmittedTitle = submittedTitle ?? t(texts$15.thanks);
7673
- const tTextAreaTip = textAreaTip ?? t(texts$15.sensitiveInfo);
7674
- const tThumbUpTooltip = thumbUpTooltip ?? t(texts$15.good);
7675
- const tThumbDownTooltip = thumbDownTooltip ?? t(texts$15.bad);
7858
+ const tRatingLabel = ratingLabel ?? t(texts$16.ratingQuestion);
7859
+ const tPositiveFeedbackLabel = positiveFeedbackLabel ?? t(texts$16.improvalQuestion);
7860
+ const tNegativeFeedbackLabel = negativeFeedbackLabel ?? t(texts$16.improvalQuestion);
7861
+ const tRatingSubmittedTitle = ratingSubmittedTitle ?? t(texts$16.thanks);
7862
+ const tSubmittedTitle = submittedTitle ?? t(texts$16.thanks);
7863
+ const tTextAreaTip = textAreaTip ?? t(texts$16.sensitiveInfo);
7864
+ const tThumbUpTooltip = thumbUpTooltip ?? t(texts$16.good);
7865
+ const tThumbDownTooltip = thumbDownTooltip ?? t(texts$16.bad);
7676
7866
  useEffect(() => {
7677
7867
  if (ratingProp !== void 0) setRating(ratingProp);
7678
7868
  }, [ratingProp]);
@@ -7716,7 +7906,7 @@ const Feedback = ({ layout = "vertical", ratingLabel, positiveFeedbackLabel, neg
7716
7906
  });
7717
7907
  return /* @__PURE__ */ jsx(Paragraph, { children: tSubmittedTitle });
7718
7908
  };
7719
- const texts$15 = createTexts({
7909
+ const texts$16 = createTexts({
7720
7910
  ratingQuestion: {
7721
7911
  nb: "Hva syns du om tjenesten?",
7722
7912
  no: "Hva syns du om tjenesten?",
@@ -7877,10 +8067,10 @@ const File$1 = (props) => {
7877
8067
  type: "button",
7878
8068
  onClick: removeFile,
7879
8069
  icon: CloseIcon,
7880
- "aria-label": t(texts$14.removeFile(stateFile.name)),
8070
+ "aria-label": t(texts$15.removeFile(stateFile.name)),
7881
8071
  htmlProps: {
7882
8072
  "aria-invalid": !isValid ? true : void 0,
7883
- "aria-errormessage": !isValid ? t(texts$14.invalidFile) : void 0,
8073
+ "aria-errormessage": !isValid ? t(texts$15.invalidFile) : void 0,
7884
8074
  "aria-describedby": spaceSeparatedIdListGenerator(errorsList.map((e) => e.id))
7885
8075
  }
7886
8076
  })] })]
@@ -7891,11 +8081,11 @@ const File$1 = (props) => {
7891
8081
  purpose: "secondary",
7892
8082
  onClick: () => onRetry(fileId),
7893
8083
  icon: RefreshIcon,
7894
- children: t(texts$14.tryAgain)
8084
+ children: t(texts$15.tryAgain)
7895
8085
  })]
7896
8086
  }), /* @__PURE__ */ jsx(ErrorList, { errors: errorsList })] });
7897
8087
  };
7898
- const texts$14 = createTexts({
8088
+ const texts$15 = createTexts({
7899
8089
  removeFile: (file) => ({
7900
8090
  nb: `Fjern fil ${file}`,
7901
8091
  no: `Fjern fil ${file}`,
@@ -8036,7 +8226,7 @@ const useFileUploader = (props) => {
8036
8226
  isFileDialogActive: false,
8037
8227
  isDragActive: false,
8038
8228
  dragCounter: 0,
8039
- rootErrors: calcRootErrors(t(texts$13.invalidFileAmount), initialFileUploaderFiles, maxFiles, errorMessage)
8229
+ rootErrors: calcRootErrors(t(texts$14.invalidFileAmount), initialFileUploaderFiles, maxFiles, errorMessage)
8040
8230
  });
8041
8231
  const { files: stateFiles } = state;
8042
8232
  useEffect(() => {
@@ -8047,7 +8237,7 @@ const useFileUploader = (props) => {
8047
8237
  return {
8048
8238
  name: file.name,
8049
8239
  file,
8050
- errors: accepted ? [] : [t(texts$13.invalidFileType)]
8240
+ errors: accepted ? [] : [t(texts$14.invalidFileType)]
8051
8241
  };
8052
8242
  }
8053
8243
  return {
@@ -8070,7 +8260,7 @@ const useFileUploader = (props) => {
8070
8260
  useEffect(() => {
8071
8261
  dispatch({
8072
8262
  type: "setRootErrors",
8073
- payload: calcRootErrors(t(texts$13.invalidFileAmount), stateFiles, maxFiles, errorMessage)
8263
+ payload: calcRootErrors(t(texts$14.invalidFileAmount), stateFiles, maxFiles, errorMessage)
8074
8264
  });
8075
8265
  }, [
8076
8266
  dispatch,
@@ -8101,7 +8291,7 @@ const useFileUploader = (props) => {
8101
8291
  const newFiles = (await fromEvent(evt)).filter((f) => !existingFileNames.includes(f.name)).map((file) => ({
8102
8292
  file,
8103
8293
  name: file.name,
8104
- errors: isFileAccepted(file, accept) ? [] : [t(texts$13.invalidFileType)]
8294
+ errors: isFileAccepted(file, accept) ? [] : [t(texts$14.invalidFileType)]
8105
8295
  })).concat(stateFiles);
8106
8296
  const mergedFiles = [...stateFiles.filter((f) => f.url).map((f) => ({
8107
8297
  name: f.name,
@@ -8193,7 +8383,7 @@ const useFileUploader = (props) => {
8193
8383
  removeFile
8194
8384
  };
8195
8385
  };
8196
- const texts$13 = createTexts({
8386
+ const texts$14 = createTexts({
8197
8387
  invalidFileType: {
8198
8388
  nb: "Ugyldig filtype",
8199
8389
  no: "Ugyldig filtype",
@@ -8214,8 +8404,8 @@ const texts$13 = createTexts({
8214
8404
  const FileUploader = (props) => {
8215
8405
  const { id, label, dropAreaLabel, btnLabel, tip, required = false, withDragAndDrop = true, initialFiles, value, accept, maxFiles, disabled, readOnly, onChange, onKeyDown, width = "var(--dds-input-default-width)", errorMessage, hideFileList, className, afterLabelContent, fileStatusMap, deriveId, onRetry, ...rest } = props;
8216
8406
  const { t } = useTranslation();
8217
- const tDropAreaLabel = dropAreaLabel ?? t(texts$12.dragAndDropOr);
8218
- const tBtnLabel = btnLabel ?? t(texts$12.selectFile);
8407
+ const tDropAreaLabel = dropAreaLabel ?? t(texts$13.dragAndDropOr);
8408
+ const tBtnLabel = btnLabel ?? t(texts$13.selectFile);
8219
8409
  const generatedId = useId();
8220
8410
  const uniqueId = id ?? `${generatedId}-fileUploader`;
8221
8411
  const { state: { files: stateFiles, isDragActive, rootErrors }, getRootProps, getInputProps, getButtonProps, removeFile } = useFileUploader({
@@ -8321,7 +8511,7 @@ const FileUploader = (props) => {
8321
8511
  children: [
8322
8512
  input,
8323
8513
  tDropAreaLabel,
8324
- /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$12.uploadFileWithButton) }),
8514
+ /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$13.uploadFileWithButton) }),
8325
8515
  button
8326
8516
  ]
8327
8517
  }) : /* @__PURE__ */ jsxs(Box, {
@@ -8334,12 +8524,12 @@ const FileUploader = (props) => {
8334
8524
  className: cn(readOnly && focus_module_default["focus-styled-sibling"], readOnly && FileUploader_module_default["readonly--file-list"]),
8335
8525
  children: [/* @__PURE__ */ jsx(VisuallyHidden, {
8336
8526
  id: fileListNameId,
8337
- children: t(texts$12.uploadedFiles)
8527
+ children: t(texts$13.uploadedFiles)
8338
8528
  }), inactive && fileListElements.length === 0 ? /* @__PURE__ */ jsx(Typography, {
8339
8529
  italic: true,
8340
8530
  as: "span",
8341
8531
  color: disabled ? "text-subtle" : "text-medium",
8342
- children: t(texts$12.noFiles)
8532
+ children: t(texts$13.noFiles)
8343
8533
  }) : /* @__PURE__ */ jsx(StylelessList, {
8344
8534
  "aria-labelledby": fileListNameId,
8345
8535
  children: fileListElements
@@ -8349,7 +8539,7 @@ const FileUploader = (props) => {
8349
8539
  });
8350
8540
  };
8351
8541
  FileUploader.displayName = "FileUploader";
8352
- const texts$12 = createTexts({
8542
+ const texts$13 = createTexts({
8353
8543
  dragAndDropOr: {
8354
8544
  nb: "Dra og slipp filer her eller",
8355
8545
  no: "Dra og slipp filer her eller",
@@ -8529,7 +8719,7 @@ function FormSummaryEmptyValue() {
8529
8719
  " ",
8530
8720
  /* @__PURE__ */ jsxs(VisuallyHidden, { children: [
8531
8721
  " ",
8532
- t(texts$11.noValue),
8722
+ t(texts$12.noValue),
8533
8723
  " "
8534
8724
  ] })
8535
8725
  ] });
@@ -8543,7 +8733,7 @@ function FormSummaryError({ ...props }) {
8543
8733
  })
8544
8734
  });
8545
8735
  }
8546
- const texts$11 = createTexts({ noValue: {
8736
+ const texts$12 = createTexts({ noValue: {
8547
8737
  nb: "Ikke fylt ut",
8548
8738
  no: "Ikke fylt ut",
8549
8739
  nn: "Ikkje fylt ut",
@@ -8605,7 +8795,7 @@ const InlineButton = ({ className, color, icon, children, ...rest }) => /* @__PU
8605
8795
  ...rest,
8606
8796
  children: icon ? /* @__PURE__ */ jsx(Icon, {
8607
8797
  icon,
8608
- iconSize: "inherit"
8798
+ iconSize: "component"
8609
8799
  }) : children
8610
8800
  });
8611
8801
  //#endregion
@@ -8669,13 +8859,13 @@ const inlineEditVisuallyHidden = (id, clearable) => {
8669
8859
  return /* @__PURE__ */ jsxs(VisuallyHidden, {
8670
8860
  id,
8671
8861
  children: [
8672
- t(texts$10.inlineEditInfo),
8862
+ t(texts$11.inlineEditInfo),
8673
8863
  " ",
8674
- !clearable && t(texts$10.notClearable)
8864
+ !clearable && t(texts$11.notClearable)
8675
8865
  ]
8676
8866
  });
8677
8867
  };
8678
- const texts$10 = createTexts({
8868
+ const texts$11 = createTexts({
8679
8869
  inlineEditInfo: {
8680
8870
  nb: "Escape, Enter eller Tab for å lagre.",
8681
8871
  no: "Escape, Enter eller Tab for å lagre.",
@@ -8932,7 +9122,7 @@ const InternalHeader = (props) => {
8932
9122
  const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
8933
9123
  const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
8934
9124
  const navigation = hasNavigationElements ? /* @__PURE__ */ jsx("nav", {
8935
- "aria-label": t(texts$9.siteNavigation),
9125
+ "aria-label": t(texts$10.siteNavigation),
8936
9126
  children: /* @__PURE__ */ jsx(ShowHide, {
8937
9127
  as: StylelessList,
8938
9128
  hideBelow: hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
@@ -8985,7 +9175,7 @@ const InternalHeader = (props) => {
8985
9175
  children: /* @__PURE__ */ jsxs(OverflowMenuGroup, { children: [/* @__PURE__ */ jsx(Button, {
8986
9176
  icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
8987
9177
  purpose: "tertiary",
8988
- "aria-label": t(texts$9.openMenu)
9178
+ "aria-label": t(texts$10.openMenu)
8989
9179
  }), /* @__PURE__ */ jsxs(OverflowMenu, {
8990
9180
  className: InternalHeader_module_default["context-menu"],
8991
9181
  children: [
@@ -8998,7 +9188,7 @@ const InternalHeader = (props) => {
8998
9188
  }) }),
8999
9189
  hasNavInContextMenu && /* @__PURE__ */ jsx(ShowHide, {
9000
9190
  as: "nav",
9001
- "aria-label": t(texts$9.siteNavigation),
9191
+ "aria-label": t(texts$10.siteNavigation),
9002
9192
  showBelow: smallScreenBreakpoint,
9003
9193
  children: /* @__PURE__ */ jsx(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ createElement(OverflowMenuLink, {
9004
9194
  ...item,
@@ -9025,7 +9215,7 @@ const InternalHeader = (props) => {
9025
9215
  });
9026
9216
  };
9027
9217
  InternalHeader.displayName = "InternalHeader";
9028
- const texts$9 = createTexts({
9218
+ const texts$10 = createTexts({
9029
9219
  openMenu: {
9030
9220
  nb: "Åpne meny",
9031
9221
  no: "Åpne meny",
@@ -9348,7 +9538,7 @@ const NewsPopover = ({ id, className, style, htmlProps, header, news, defaultAct
9348
9538
  }),
9349
9539
  news.map((slide, i) => {
9350
9540
  return /* @__PURE__ */ jsx(Icon, {
9351
- iconSize: "small",
9541
+ iconSize: "4",
9352
9542
  icon: CircleFilledIcon,
9353
9543
  color: activeSlide === i ? "brand-tertiary-default" : "brand-tertiary-subtle"
9354
9544
  }, `${slide.heading}-${i}`);
@@ -9656,7 +9846,7 @@ const DDSOption = ({ testId, ...props }) => /* @__PURE__ */ jsxs(Option, {
9656
9846
  },
9657
9847
  children: [props.isSelected && /* @__PURE__ */ jsx(Icon, {
9658
9848
  icon: CheckIcon,
9659
- iconSize: "small"
9849
+ iconSize: "component"
9660
9850
  }), props.children]
9661
9851
  });
9662
9852
  const CustomOption = ({ testId, ...props }) => /* @__PURE__ */ jsx(Option, {
@@ -9985,7 +10175,7 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
9985
10175
  value: 50
9986
10176
  },
9987
10177
  {
9988
- label: t(texts$8.all),
10178
+ label: t(texts$9.all),
9989
10179
  value: itemsAmount
9990
10180
  }
9991
10181
  ];
@@ -10060,7 +10250,7 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
10060
10250
  const navigation = withPagination ? /* @__PURE__ */ jsxs(Box, {
10061
10251
  as: "nav",
10062
10252
  ref,
10063
- "aria-label": t(texts$8.pagination),
10253
+ "aria-label": t(texts$9.pagination),
10064
10254
  display: "flex",
10065
10255
  alignItems: "center",
10066
10256
  ...!withSelect && !withCounter && { ...baseHTMLProps },
@@ -10097,7 +10287,7 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
10097
10287
  onClick: (event) => {
10098
10288
  onPageChange(event, 1);
10099
10289
  },
10100
- "aria-label": t(texts$8.firstPage)
10290
+ "aria-label": t(texts$9.firstPage)
10101
10291
  })
10102
10292
  }),
10103
10293
  /* @__PURE__ */ jsx(Box, {
@@ -10133,7 +10323,7 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
10133
10323
  onClick: (event) => {
10134
10324
  onPageChange(event, pagesLength);
10135
10325
  },
10136
- "aria-label": t(texts$8.lastPage)
10326
+ "aria-label": t(texts$9.lastPage)
10137
10327
  })
10138
10328
  })
10139
10329
  ]
@@ -10165,16 +10355,16 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
10165
10355
  isClearable: false,
10166
10356
  onChange: handleSelectChange,
10167
10357
  componentSize: "small",
10168
- "aria-label": t(texts$8.itemsPerPage)
10358
+ "aria-label": t(texts$9.itemsPerPage)
10169
10359
  }), withCounter && /* @__PURE__ */ jsx(Paragraph, {
10170
10360
  typographyType: "body-short-medium",
10171
- children: t(texts$8.showsAmountOfTotalItems(activePageFirstItem, activePageLastItem, itemsAmount))
10361
+ children: t(texts$9.showsAmountOfTotalItems(activePageFirstItem, activePageLastItem, itemsAmount))
10172
10362
  })]
10173
10363
  }), navigation]
10174
10364
  });
10175
10365
  };
10176
10366
  Pagination.displayName = "Pagination";
10177
- const texts$8 = createTexts({
10367
+ const texts$9 = createTexts({
10178
10368
  pagination: {
10179
10369
  nb: "Paginering",
10180
10370
  no: "Paginering",
@@ -11484,8 +11674,8 @@ const createCountryOptions = (countries) => {
11484
11674
  const countryOptions = createCountryOptions(COUNTRIES);
11485
11675
  const PhoneInput = ({ label, readOnly, errorMessage, tip, required, width, componentSize = "medium", name, className, style, value, selectLabel, selectRef, onChange, defaultValue, "aria-required": ariaRequired, "aria-describedby": ariaDescribedby, groupLabel, afterLabelContent, ref, ...props }) => {
11486
11676
  const { t } = useTranslation();
11487
- const tGroupLabel = groupLabel ?? t(texts$7.countryCodeAndPhoneNumber);
11488
- const tSelectLabel = selectLabel ?? t(texts$7.countryCode);
11677
+ const tGroupLabel = groupLabel ?? t(texts$8.countryCodeAndPhoneNumber);
11678
+ const tSelectLabel = selectLabel ?? t(texts$8.countryCode);
11489
11679
  const generatedId = useId();
11490
11680
  const uniqueId = props.id ?? generatedId;
11491
11681
  const phoneInputId = `${uniqueId}-phone-input`;
@@ -11634,7 +11824,7 @@ const PhoneInput = ({ label, readOnly, errorMessage, tip, required, width, compo
11634
11824
  };
11635
11825
  PhoneInput.displayName = "PhoneInput";
11636
11826
  const getCallingCode = (s) => s.substring(s.indexOf("+"), s.length) ?? "";
11637
- const texts$7 = createTexts({
11827
+ const texts$8 = createTexts({
11638
11828
  countryCode: {
11639
11829
  nb: "Landskode",
11640
11830
  no: "Landskode",
@@ -11738,6 +11928,7 @@ const Popover = ({ id, header, withCloseButton = true, onBlur, children, placeme
11738
11928
  }),
11739
11929
  /* @__PURE__ */ jsx(Box, {
11740
11930
  marginBlock: !hasTitle && withCloseButton ? "x2 0" : "0",
11931
+ height: "100%",
11741
11932
  children
11742
11933
  }),
11743
11934
  withCloseButton && /* @__PURE__ */ jsx(Box, {
@@ -11875,11 +12066,11 @@ const ProgressTrackerItem = (props) => {
11875
12066
  const stepNumberContent = useMemo(() => {
11876
12067
  if (completed) return /* @__PURE__ */ jsx(Icon, {
11877
12068
  icon: CheckIcon,
11878
- iconSize: "small"
12069
+ iconSize: "5"
11879
12070
  });
11880
12071
  if (icon !== void 0) return /* @__PURE__ */ jsx(Icon, {
11881
12072
  icon,
11882
- iconSize: "small"
12073
+ iconSize: "5"
11883
12074
  });
11884
12075
  return stepNumber;
11885
12076
  }, [
@@ -11906,7 +12097,7 @@ const ProgressTrackerItem = (props) => {
11906
12097
  color: getTextColor(),
11907
12098
  children
11908
12099
  })] });
11909
- const ariaLabel = htmlProps?.["aria-label"] ? htmlProps?.["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts$6.completed) : t(texts$6.uncompleted)}`;
12100
+ const ariaLabel = htmlProps?.["aria-label"] ? htmlProps?.["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts$7.completed) : t(texts$7.uncompleted)}`;
11910
12101
  return /* @__PURE__ */ jsx(Box, {
11911
12102
  as: "li",
11912
12103
  display: direction === "row" ? "flex" : void 0,
@@ -11931,7 +12122,7 @@ const ProgressTrackerItem = (props) => {
11931
12122
  });
11932
12123
  };
11933
12124
  ProgressTrackerItem.displayName = "ProgressTracker.Item";
11934
- const texts$6 = createTexts({
12125
+ const texts$7 = createTexts({
11935
12126
  uncompleted: {
11936
12127
  nb: "trinn ikke ferdig",
11937
12128
  no: "trinn ikke ferdig",
@@ -11972,7 +12163,7 @@ const ProgressTracker = (() => {
11972
12163
  direction
11973
12164
  },
11974
12165
  children: /* @__PURE__ */ jsx("nav", {
11975
- "aria-label": ariaLabel ?? t(texts$5.stepProgression),
12166
+ "aria-label": ariaLabel ?? t(texts$6.stepProgression),
11976
12167
  ...getBaseHTMLProps(id, className, style, htmlProps, rest),
11977
12168
  children: /* @__PURE__ */ jsx(Box, {
11978
12169
  as: StylelessOList,
@@ -12002,7 +12193,7 @@ function passIndexPropToProgressTrackerItem(children) {
12002
12193
  index
12003
12194
  }));
12004
12195
  }
12005
- const texts$5 = createTexts({ stepProgression: {
12196
+ const texts$6 = createTexts({ stepProgression: {
12006
12197
  nb: "Trinnprogresjon",
12007
12198
  no: "Trinnprogresjon",
12008
12199
  nn: "Trinnprogresjon",
@@ -12124,7 +12315,7 @@ const SearchSuggestions = ({ id, searchId, className, style, htmlProps, suggesti
12124
12315
  marginBlock: "x0.25 0",
12125
12316
  children: [/* @__PURE__ */ jsx(DropdownHeader, {
12126
12317
  id: suggestionsHeaderId,
12127
- children: t(texts$4.searchSuggestions)
12318
+ children: t(texts$5.searchSuggestions)
12128
12319
  }), /* @__PURE__ */ jsx(StylelessList, {
12129
12320
  role: "listbox",
12130
12321
  "aria-labelledby": suggestionsHeaderId,
@@ -12134,7 +12325,7 @@ const SearchSuggestions = ({ id, searchId, className, style, htmlProps, suggesti
12134
12325
  children: /* @__PURE__ */ jsx(SearchSuggestionItem, {
12135
12326
  index,
12136
12327
  focus: focus === index && showSuggestions,
12137
- "aria-label": t(texts$4.search(suggestion)),
12328
+ "aria-label": t(texts$5.search(suggestion)),
12138
12329
  onClick: onSuggestionClick,
12139
12330
  "aria-setsize": suggestionsToRender.length,
12140
12331
  "aria-posinset": index,
@@ -12146,7 +12337,7 @@ const SearchSuggestions = ({ id, searchId, className, style, htmlProps, suggesti
12146
12337
  });
12147
12338
  };
12148
12339
  SearchSuggestions.displayName = "SearchSuggestions";
12149
- const texts$4 = createTexts({
12340
+ const texts$5 = createTexts({
12150
12341
  search: (suggestion) => ({
12151
12342
  no: `${suggestion} søk`,
12152
12343
  nb: `${suggestion} søk`,
@@ -12227,11 +12418,11 @@ const Search$1 = ({ componentSize = "medium", buttonProps, showIcon = true, name
12227
12418
  showSuggestions: context.showSuggestions
12228
12419
  }), /* @__PURE__ */ jsx(VisuallyHidden, {
12229
12420
  id: suggestionsDescriptionId,
12230
- children: t(texts$3.useArrowKeys)
12421
+ children: t(texts$4.useArrowKeys)
12231
12422
  })] }),
12232
12423
  hasValue && /* @__PURE__ */ jsx(ClearButton, {
12233
12424
  size: componentSize,
12234
- "aria-label": t(texts$3.clearSearch),
12425
+ "aria-label": t(texts$4.clearSearch),
12235
12426
  onClick: clearInput
12236
12427
  })
12237
12428
  ]
@@ -12250,7 +12441,7 @@ const Search$1 = ({ componentSize = "medium", buttonProps, showIcon = true, name
12250
12441
  size: componentSize,
12251
12442
  onClick,
12252
12443
  ...otherButtonProps,
12253
- children: buttonLabel ?? t(texts$3.search)
12444
+ children: buttonLabel ?? t(texts$4.search)
12254
12445
  })]
12255
12446
  }) : inputGroup, renderInputMessage({
12256
12447
  tip,
@@ -12258,7 +12449,7 @@ const Search$1 = ({ componentSize = "medium", buttonProps, showIcon = true, name
12258
12449
  })] })] });
12259
12450
  };
12260
12451
  Search$1.displayName = "Search";
12261
- const texts$3 = createTexts({
12452
+ const texts$4 = createTexts({
12262
12453
  clearSearch: {
12263
12454
  nb: "Tøm søk",
12264
12455
  no: "Tøm søk",
@@ -12421,7 +12612,7 @@ const SplitButton = ({ size, primaryAction, secondaryActions, purpose = "primary
12421
12612
  children: [/* @__PURE__ */ jsx(Button, {
12422
12613
  ...buttonStyleProps,
12423
12614
  icon: isOpen ? ChevronUpIcon : ChevronDownIcon,
12424
- "aria-label": t(texts$2.moreActions),
12615
+ "aria-label": t(texts$3.moreActions),
12425
12616
  purpose,
12426
12617
  className: cn(SplitButton_module_default.option, purpose === "primary" && SplitButton_module_default["option--primary"]),
12427
12618
  type: "button"
@@ -12436,7 +12627,7 @@ const SplitButton = ({ size, primaryAction, secondaryActions, purpose = "primary
12436
12627
  });
12437
12628
  };
12438
12629
  SplitButton.displayName = "SplitButton";
12439
- const texts$2 = createTexts({ moreActions: {
12630
+ const texts$3 = createTexts({ moreActions: {
12440
12631
  nb: "Flere handlinger",
12441
12632
  no: "Flere handlinger",
12442
12633
  nn: "Fleire handlingar",
@@ -12494,6 +12685,60 @@ const Cell = ({ children, type: _type, layout = "left", collapseKey, className,
12494
12685
  };
12495
12686
  Cell.displayName = "Table.Cell";
12496
12687
  //#endregion
12688
+ //#region src/components/Table/FilterCell.tsx
12689
+ const FilterCell = ({ sortOrder, children, className, badgeCount, popoverProps, popoverChildren, popoverGroupProps, ...rest }) => {
12690
+ const { t } = useTranslation();
12691
+ const SortIcon = !sortOrder ? void 0 : sortOrder === "ascending" ? ArrowDownIcon : ArrowUpIcon;
12692
+ const hasBadgeCount = !!badgeCount;
12693
+ return /* @__PURE__ */ jsxs(Cell, {
12694
+ type: "head",
12695
+ "aria-sort": sortOrder ? sortOrder : void 0,
12696
+ ...rest,
12697
+ className: cn(Table_module_default["filter-cell"], className),
12698
+ children: [
12699
+ children,
12700
+ /* @__PURE__ */ jsxs(PopoverGroup, {
12701
+ ...popoverGroupProps,
12702
+ children: [/* @__PURE__ */ jsx(Button, {
12703
+ type: "button",
12704
+ icon: FilterListIcon,
12705
+ purpose: "secondary",
12706
+ size: "xsmall",
12707
+ "aria-label": `${t(texts$2.openFilterMenu)}${badgeCount ? ` ${badgeCount}` : ""}`,
12708
+ badgeProps: hasBadgeCount ? {
12709
+ children: badgeCount,
12710
+ purpose: "neutral"
12711
+ } : void 0
12712
+ }), /* @__PURE__ */ jsx(Popover, {
12713
+ ...popoverProps,
12714
+ children: popoverChildren
12715
+ })]
12716
+ }),
12717
+ SortIcon && /* @__PURE__ */ jsx(Icon, {
12718
+ icon: SortIcon,
12719
+ iconSize: "inherit"
12720
+ })
12721
+ ]
12722
+ });
12723
+ };
12724
+ FilterCell.displayName = "Table.FilterCell";
12725
+ const texts$2 = createTexts({
12726
+ openFilterMenu: {
12727
+ nb: "Åpne filtreringsmeny",
12728
+ no: "Åpne filtreringsmeny",
12729
+ nn: "Opne filtreringsmeny",
12730
+ en: "Open filter menu",
12731
+ se: "-"
12732
+ },
12733
+ filterMenu: {
12734
+ nb: "Filtreringsmeny",
12735
+ no: "Filtreringsmeny",
12736
+ nn: "Filtreringsmeny",
12737
+ en: "Filter menu",
12738
+ se: "-"
12739
+ }
12740
+ });
12741
+ //#endregion
12497
12742
  //#region src/components/Table/Foot.tsx
12498
12743
  const Foot = (props) => /* @__PURE__ */ jsx("tfoot", { ...props });
12499
12744
  Foot.displayName = "Table.Foot";
@@ -12605,9 +12850,9 @@ const texts$1 = createTexts({
12605
12850
  const SortCell = ({ isSorted, sortOrder, onClick, children, ...rest }) => {
12606
12851
  const { t } = useTranslation();
12607
12852
  const SortIcon = () => {
12608
- if (!isSorted || !sortOrder) return UnfoldMoreIcon;
12609
- if (sortOrder === "ascending") return ChevronDownIcon;
12610
- return ChevronUpIcon;
12853
+ if (!isSorted || !sortOrder) return ArrowUpDownIcon;
12854
+ if (sortOrder === "ascending") return ArrowUpIcon;
12855
+ return ArrowDownIcon;
12611
12856
  };
12612
12857
  return /* @__PURE__ */ jsx(Cell, {
12613
12858
  type: "head",
@@ -12701,6 +12946,7 @@ Table.Head = Head;
12701
12946
  Table.Body = Body;
12702
12947
  Table.Cell = Cell;
12703
12948
  Table.SortCell = SortCell;
12949
+ Table.FilterCell = FilterCell;
12704
12950
  Table.Row = Row;
12705
12951
  Table.Foot = Foot;
12706
12952
  //#endregion
@@ -12729,7 +12975,8 @@ var Tabs_module_default = {
12729
12975
  "tab--medium--column": "dds-Tabs-module__tab--medium--column",
12730
12976
  "tab--small--column": "dds-Tabs-module__tab--small--column",
12731
12977
  "tab--row": "dds-Tabs-module__tab--row",
12732
- "tab--column": "dds-Tabs-module__tab--column"
12978
+ "tab--column": "dds-Tabs-module__tab--column",
12979
+ "tab--column__badge": "dds-Tabs-module__tab--column__badge"
12733
12980
  };
12734
12981
  //#endregion
12735
12982
  //#region src/components/Tabs/TabWidthContext.tsx
@@ -12771,7 +13018,7 @@ const AddTabButton = ({ ref, children, index, className, width = "1fr", ...rest
12771
13018
  return /* @__PURE__ */ jsxs("button", {
12772
13019
  ...rest,
12773
13020
  ref: combinedRef,
12774
- className: cn(className, Tabs_module_default.tab, Tabs_module_default[`tab--${tabContentDirection}`], typographyStyles_module_default[`body-short-${size}`], focus_module_default["focusable--inset"]),
13021
+ className: cn(className, Tabs_module_default.tab, Tabs_module_default[`tab--${tabContentDirection}`], Tabs_module_default[`tab--${size}--${tabContentDirection}`], typographyStyles_module_default[`body-short-${size}`], focus_module_default["focusable--inset"]),
12775
13022
  children: [/* @__PURE__ */ jsx(Icon, {
12776
13023
  icon: PlusIcon,
12777
13024
  iconSize: "inherit"
@@ -12816,7 +13063,7 @@ const Tabs = ({ id, activeTab, onChange, tabContentDirection = "row", size = "sm
12816
13063
  Tabs.displayName = "Tabs";
12817
13064
  //#endregion
12818
13065
  //#region src/components/Tabs/Tab.tsx
12819
- const Tab = ({ active = false, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps = {}, style, width = "1fr", ref, ...rest }) => {
13066
+ const Tab = ({ active = false, icon, children, focus, setFocus, index, onClick, onKeyDown, id, className, htmlProps = {}, style, width = "1fr", ref, badgeProps, ...rest }) => {
12820
13067
  useSetTabWidth(index, width);
12821
13068
  const itemRef = useRef(null);
12822
13069
  const combinedRef = useCombinedRef(ref, itemRef);
@@ -12840,6 +13087,32 @@ const Tab = ({ active = false, icon, children, focus, setFocus, index, onClick,
12840
13087
  handleSelect();
12841
13088
  onKeyDown?.(e);
12842
13089
  };
13090
+ const badgeSize = {
13091
+ small: "xsmall",
13092
+ medium: "small"
13093
+ };
13094
+ const hasIcon = !!icon;
13095
+ const hasVerticalBadge = badgeProps && !!badgeProps?.children === false && tabContentDirection === "column" && hasIcon;
13096
+ const hasHorizontalBadge = badgeProps && !hasVerticalBadge;
13097
+ const content = hasHorizontalBadge && tabContentDirection === "row" ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", { children }), /* @__PURE__ */ jsx(Box, {
13098
+ as: Badge,
13099
+ ...badgeProps,
13100
+ size: badgeSize[size]
13101
+ })] }) : hasHorizontalBadge && tabContentDirection === "column" ? /* @__PURE__ */ jsxs(HStack, {
13102
+ gap: "x0.5",
13103
+ children: [children, /* @__PURE__ */ jsx(Box, {
13104
+ as: Badge,
13105
+ ...badgeProps,
13106
+ size: badgeSize[size]
13107
+ })]
13108
+ }) : hasVerticalBadge ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", { children }), /* @__PURE__ */ jsx(Box, {
13109
+ as: Badge,
13110
+ ...badgeProps,
13111
+ size: badgeSize[size],
13112
+ className: cn(Tabs_module_default["tab--column__badge"], badgeProps?.className),
13113
+ top: "x0.125",
13114
+ right: "calc(50% - (var(--dds-size-icon-component) / 2 ))"
13115
+ })] }) : /* @__PURE__ */ jsx("span", { children });
12843
13116
  return /* @__PURE__ */ jsxs("button", {
12844
13117
  ...getBaseHTMLProps(id, cn(className, Tabs_module_default.tab, Tabs_module_default[`tab--${size}--${tabContentDirection}`], active && Tabs_module_default["tab--active"], Tabs_module_default[`tab--${tabContentDirection}`], typographyStyles_module_default[`body-short-${size}`], focus_module_default["focusable--inset"]), style, fixedHtmlProps, rest),
12845
13118
  ref: combinedRef,
@@ -12851,7 +13124,7 @@ const Tab = ({ active = false, icon, children, focus, setFocus, index, onClick,
12851
13124
  children: [icon && /* @__PURE__ */ jsx(Icon, {
12852
13125
  icon,
12853
13126
  iconSize: "component"
12854
- }), /* @__PURE__ */ jsx("span", { children })]
13127
+ }), content]
12855
13128
  });
12856
13129
  };
12857
13130
  Tab.displayName = "Tab";
@@ -12959,17 +13232,12 @@ TabPanels.displayName = "TabPanels";
12959
13232
  //#region src/components/Tag/Tag.module.css
12960
13233
  var Tag_module_default = {
12961
13234
  "container": "dds-Tag-module__container",
12962
- "container--with-icon": "dds-Tag-module__container--with-icon",
12963
- "container--default--default": "dds-Tag-module__container--default--default",
12964
- "container--default--strong": "dds-Tag-module__container--default--strong",
12965
- "container--success--default": "dds-Tag-module__container--success--default",
12966
- "container--success--strong": "dds-Tag-module__container--success--strong",
12967
- "container--danger--default": "dds-Tag-module__container--danger--default",
12968
- "container--danger--strong": "dds-Tag-module__container--danger--strong",
12969
- "container--warning--default": "dds-Tag-module__container--warning--default",
12970
- "container--warning--strong": "dds-Tag-module__container--warning--strong",
12971
- "container--info--default": "dds-Tag-module__container--info--default",
12972
- "container--info--strong": "dds-Tag-module__container--info--strong"
13235
+ "container--small": "dds-Tag-module__container--small",
13236
+ "container--medium": "dds-Tag-module__container--medium",
13237
+ "container--outline": "dds-Tag-module__container--outline",
13238
+ "container--subtle": "dds-Tag-module__container--subtle",
13239
+ "container--strong": "dds-Tag-module__container--strong",
13240
+ "container--accent-left": "dds-Tag-module__container--accent-left"
12973
13241
  };
12974
13242
  //#endregion
12975
13243
  //#region src/components/Tag/Tag.tsx
@@ -12978,12 +13246,42 @@ const icons = {
12978
13246
  danger: ErrorIcon,
12979
13247
  warning: WarningIcon,
12980
13248
  success: CheckCircledIcon,
12981
- default: void 0
12982
- };
12983
- const Tag = ({ purpose = "default", appearance = "default", id, className, style, children, htmlProps, withIcon, ...rest }) => {
12984
- const icon = icons[purpose];
13249
+ neutral: void 0
13250
+ };
13251
+ const Tag = ({ purpose, appearance = "outline", id, className, style, children, htmlProps, withIcon, size = "medium", color, ...rest }) => {
13252
+ const hasColor = color !== void 0;
13253
+ const resolvedPurpose = !hasColor ? purpose ?? "neutral" : void 0;
13254
+ const hasResolvedPurpose = resolvedPurpose !== void 0;
13255
+ const isDefaultPurpose = resolvedPurpose === "neutral";
13256
+ const icon = hasResolvedPurpose ? icons[resolvedPurpose] : void 0;
13257
+ const purposeStyleVariables = {
13258
+ ["--dds-color-tag-background-default"]: `var(--dds-color-surface-${purpose}-default)`,
13259
+ ["--dds-color-tag-background-strong"]: `var(--dds-color-surface-${purpose}-strong)`,
13260
+ ["--dds-color-tag-border-outline"]: `var(--dds-color-border-${purpose})`,
13261
+ ["--dds-color-tag-text"]: "var(--dds-color-text-on-status-default)",
13262
+ ["--dds-color-tag-icon"]: `var(--dds-color-icon-on-${purpose}-default)`
13263
+ };
13264
+ const defaultPurposeStyleVariables = {
13265
+ ["--dds-color-tag-background-default"]: "var(--dds-color-surface-subtle)",
13266
+ ["--dds-color-tag-background-strong"]: "var(--dds-color-surface-strong)",
13267
+ ["--dds-color-tag-border-outline"]: "var(--dds-color-border-subtle)",
13268
+ ["--dds-color-tag-text"]: "var(--dds-color-text-default)"
13269
+ };
13270
+ const colorStyleVariables = {
13271
+ ["--dds-color-tag-background-default"]: `var(--dds-color-domain-${color}-subtle)`,
13272
+ ["--dds-color-tag-background-strong"]: `var(--dds-color-domain-${color}-strong)`,
13273
+ ["--dds-color-tag-border-outline"]: `var(--dds-color-domain-${color}-border)`,
13274
+ ["--dds-color-tag-text"]: `var(--dds-color-domain-text-on-domain)`
13275
+ };
13276
+ let styleVariables = {};
13277
+ if (isDefaultPurpose) styleVariables = defaultPurposeStyleVariables;
13278
+ else if (hasResolvedPurpose) styleVariables = purposeStyleVariables;
13279
+ else if (hasColor) styleVariables = colorStyleVariables;
12985
13280
  return /* @__PURE__ */ jsxs(TextOverflowEllipsisWrapper, {
12986
- ...getBaseHTMLProps(id, cn(className, typographyStyles_module_default["body-short-medium"], Tag_module_default.container, withIcon && icon && Tag_module_default["container--with-icon"], Tag_module_default[`container--${purpose}--${appearance}`]), style, htmlProps, rest),
13281
+ ...getBaseHTMLProps(id, cn(className, typographyStyles_module_default[`body-short-${size}`], Tag_module_default.container, Input_module_default[`compact--${size}`], withIcon && Input_module_default[`compact-with-icon--${size}`], Tag_module_default[`container--${appearance}`], Tag_module_default[`container--${size}`]), {
13282
+ ...style,
13283
+ ...styleVariables
13284
+ }, htmlProps, rest),
12987
13285
  children: [withIcon && icon && /* @__PURE__ */ jsx(Icon, {
12988
13286
  icon,
12989
13287
  iconSize: "component"
@@ -12994,7 +13292,6 @@ Tag.displayName = "Tag";
12994
13292
  //#endregion
12995
13293
  //#region src/components/TextInput/TextInput.module.css
12996
13294
  var TextInput_module_default = {
12997
- "container": "dds-TextInput-module__container",
12998
13295
  "container--readonly": "dds-TextInput-module__container--readonly",
12999
13296
  "container--disabled": "dds-TextInput-module__container--disabled",
13000
13297
  "input--extended": "dds-TextInput-module__input--extended",
@@ -13066,7 +13363,7 @@ const TextInput = ({ label, afterLabelContent, disabled, readOnly, errorMessage,
13066
13363
  disabled && TextInput_module_default["affix--disabled"]
13067
13364
  ];
13068
13365
  if (hasIcon) extendedInput = /* @__PURE__ */ jsxs(Box, {
13069
- className: cn(Input_module_default["input-group"], typographyStyles_module_default[`body-short-${componentSize}`]),
13366
+ className: cn(Input_module_default["input-group"]),
13070
13367
  width: inputWidth,
13071
13368
  children: [/* @__PURE__ */ jsx(Icon, {
13072
13369
  icon,
@@ -13106,7 +13403,7 @@ const TextInput = ({ label, afterLabelContent, disabled, readOnly, errorMessage,
13106
13403
  ]
13107
13404
  });
13108
13405
  return /* @__PURE__ */ jsxs("div", {
13109
- className: cn(className, Input_module_default.container, TextInput_module_default.container, readOnly && TextInput_module_default["container--readonly"], disabled && TextInput_module_default["container--disabled"]),
13406
+ className: cn(className, Input_module_default.container, readOnly && TextInput_module_default["container--readonly"], disabled && TextInput_module_default["container--disabled"], typographyStyles_module_default[`body-short-${componentSize}`]),
13110
13407
  style,
13111
13408
  children: [
13112
13409
  renderLabel({
@@ -13236,7 +13533,7 @@ const ToggleRadio = ({ value, name, onChange, checked, "aria-label": ariaLabel,
13236
13533
  as: "span",
13237
13534
  justifyContent: "center",
13238
13535
  alignItems: "center",
13239
- className: cn(typographyStyles_module_default[`body-short-${group.size}`], ToggleBar_module_default.content, Button_module_default[contentTypeCn], hasLabel && hasIcon && Button_module_default["with-icon-left"], Button_module_default[`button--${group.size}`], focus_module_default["focus-styled-sibling"]),
13536
+ className: cn(typographyStyles_module_default[`body-short-${group.size}`], ToggleBar_module_default.content, Button_module_default[contentTypeCn], Button_module_default[`button--${group.size}`], hasLabel && hasIcon && Button_module_default["with-icon-left"], Button_module_default[`button--${group.size}`], focus_module_default["focus-styled-sibling"]),
13240
13537
  children: [icon && /* @__PURE__ */ jsx(Icon, {
13241
13538
  icon,
13242
13539
  iconSize: "component"
@@ -13246,62 +13543,6 @@ const ToggleRadio = ({ value, name, onChange, checked, "aria-label": ariaLabel,
13246
13543
  };
13247
13544
  ToggleRadio.displayName = "ToggleRadio";
13248
13545
  //#endregion
13249
- //#region src/components/ToggleButton/ToggleButton.module.css
13250
- var ToggleButton_module_default = { "content": "dds-ToggleButton-module__content" };
13251
- //#endregion
13252
- //#region src/components/ToggleButton/ToggleButton.tsx
13253
- const ToggleButton = ({ id, label, icon, size = "small", className, style, htmlProps, ...rest }) => {
13254
- const generatedId = useId();
13255
- const uniqueId = id ?? `${generatedId}-toggleButton`;
13256
- const hasIcon = !!icon;
13257
- return /* @__PURE__ */ jsxs(Box, {
13258
- as: "label",
13259
- htmlFor: uniqueId,
13260
- width: "fit-content",
13261
- children: [/* @__PURE__ */ jsx(HiddenInput, {
13262
- ...getBaseHTMLProps(uniqueId, cn(className, focus_module_default["focusable-sibling"]), style, htmlProps, rest),
13263
- type: "checkbox"
13264
- }), /* @__PURE__ */ jsxs(Paper, {
13265
- as: "span",
13266
- border: "border-default",
13267
- background: "surface-default",
13268
- borderRadius: "rounded",
13269
- width: "fit-content",
13270
- display: "inline-flex",
13271
- alignItems: "center",
13272
- className: cn(ToggleButton_module_default.content, typographyStyles_module_default[`body-short-${size}`], focus_module_default["focus-styled-sibling"], Button_module_default[`button--${size}`], Button_module_default["just-text"], ...hasIcon ? [Button_module_default["with-text-and-icon"], Button_module_default["with-icon-left"]] : []),
13273
- children: [hasIcon && /* @__PURE__ */ jsx(Icon, {
13274
- icon,
13275
- iconSize: "component"
13276
- }), /* @__PURE__ */ jsx("span", { children: label })]
13277
- })]
13278
- });
13279
- };
13280
- ToggleButton.displayName = "ToggleButton";
13281
- //#endregion
13282
- //#region src/components/ToggleButton/ToggleButtonGroup.tsx
13283
- const ToggleButtonGroup = (props) => {
13284
- const { children, direction = "row", label, labelId, id, className, style, htmlProps, ...rest } = props;
13285
- const generatedId = useId();
13286
- const uniqueLabelId = labelId ?? `${generatedId}-ToggleButtonGroupLabel`;
13287
- return /* @__PURE__ */ jsxs("div", {
13288
- ...getBaseHTMLProps(id, className, style, htmlProps, rest),
13289
- role: "group",
13290
- "aria-labelledby": label ? uniqueLabelId : void 0,
13291
- children: [renderGroupLabel({
13292
- label,
13293
- id: uniqueLabelId
13294
- }), /* @__PURE__ */ jsx(Box, {
13295
- display: "flex",
13296
- flexWrap: "wrap",
13297
- gap: "x0.75",
13298
- flexDirection: direction,
13299
- children
13300
- })]
13301
- });
13302
- };
13303
- ToggleButtonGroup.displayName = "ToggleButtonGroup";
13304
- //#endregion
13305
- export { Accordion, AccordionBody, AccordionContextProvider, AccordionHeader, AddTabButton, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, ArrowUpRightIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, Backdrop, BarChartBoxedIcon, BarChartIcon, Bleed, BlockIcon, BookIcon, Box, Breadcrumb, Breadcrumbs, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, Calendar, CalendarIcon, CalendarMonthIcon, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, Caption, Card, CardExpandable, CardExpandableBody, CardExpandableHeader, CardSelectable, CardSelectableGroup, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipGroup, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CommentIcon, Contrast, CookieBanner, CookieBannerCheckbox, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, DateRangeIcon, DdsProvider, DeathsIcon, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, DesktopIcon, DesktopMobileIcon, DetailList, DetailListDesc, DetailListRow, DetailListTerm, Divider, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, DropdownHeader, DropdownItem, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, EmptyContent, ErrorIcon, ErrorSummary, ErrorSummaryItem, ExclaimIcon, ExpandIcon, FacebookIcon, FamilyIcon, FavStar, Feedback, FeedbackIcon, Fieldset, FieldsetGroup, FileAddIcon, FileIcon, FileShieldedIcon, FileSignedIcon, FileTextIcon, FileUploader, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, FooterList, FooterListGroup, FooterListHeader, FooterLogo, FooterSocialsGroup, FooterSocialsList, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, Grid, GridChild, GroupIcon, GuardianIcon, HStack, Heading, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, Icon, ImageIcon, InfoIcon, InlineButton, InlineEditInput, InlineEditSelect, InlineEditTextArea, InputMessage, InstagramIcon, InternalHeader, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, LagmannsrettIcon, LanguageIcon, Legend, LineChartIcon, Link, LinkIcon, LinkOffIcon, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, LocalMessage, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, ModalBody, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, NewsPopover, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, OnlineMeetingIcon, OpenExternalIcon, OverflowMenu, OverflowMenuButton, OverflowMenuDivider, OverflowMenuGroup, OverflowMenuLink, OverflowMenuList, OverflowMenuListHeader, OverflowMenuSpan, OverflowMenuToggle, Pagination, PaletteIcon, PanelLeftIcon, Paper, PaperPlaneIcon, Paragraph, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, PinIcon, PlusCircledIcon, PlusIcon, Popover, PopoverGroup, PowerOfAttorneyIcon, PrintIcon, ProgressBar, ProgressTracker, ProgressTrackerItem, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, ReceiptIcon, RedoIcon, RefreshIcon, ReplayIcon, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, SearchIcon, SearchSuggestions, SectionIcon, Select, SettingsIcon, ShowHide, Skeleton, SkipToContent, SmsIcon, Spinner, SplitButton, StarFilledIcon, StarHalfFilledIcon, StarIcon, StickyNoteIcon, StylelessButton, StylelessList, StylelessOList, SunHalfFilledIcon, SunIcon, SupportIcon, SyncIcon, TG_BODY_LONG_TYPES, TG_BODY_SHORT_TYPES, TG_BODY_TYPES, TG_HEADING_TYPES, TG_LEAD_TYPES, Tab, TabList, TabPanel, TabPanels, Table, Body as TableBody, Cell as TableCell, Foot as TableFoot, Head as TableHead, Row as TableRow, SortCell as TableSortCell, TableWrapper, Tabs, Tag, TextArea, TextInput, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, TingrettIcon, TipIcon, Toggle, ToggleBar, ToggleButton, ToggleButtonGroup, ToggleRadio, Tooltip, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, VStack, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, WarningIcon, WebexIcon, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, icons_exports as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, useAccordion, useAccordionContext, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
13546
+ export { Accordion, AccordionBody, AccordionContextProvider, AccordionHeader, AddTabButton, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowDownUpIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, ArrowUpRightIcon, AttachmentIcon, BORDER_COLORS, BORDER_RADII, BackLink, Backdrop, Badge, BarChartBoxedIcon, BarChartIcon, Bleed, BlockIcon, BookIcon, Box, Breadcrumb, Breadcrumbs, BriefcaseIcon, BuildIcon, BuildingIcon, Button, ButtonGroup, Calendar, CalendarIcon, CalendarMonthIcon, CalendarViewDayIcon, CalendarViewMonthIcon, CalendarViewWeekIcon, CallIcon, Caption, Card, CardExpandable, CardExpandableBody, CardExpandableHeader, CardSelectable, CardSelectableGroup, CaringIcon, ChatIcon, CheckCircledIcon, CheckIcon, Checkbox, CheckboxGroup, ChecklistIcon, ChevronDownIcon, ChevronFirstIcon, ChevronLastIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, Chip, ChipButton, ChipCheckbox, ChipGroup, ChipRadio, ChipRemovable, CircleFilledIcon, CircleIcon, CloseCircledIcon, CloseIcon, CloseSmallIcon, CloudIcon, CollapseIcon, CommentIcon, Contrast, CookieBanner, CookieBannerCheckbox, CopyIcon, CourtIcon, DETAIL_LIST_SIZES, DatePicker, DateRangeIcon, DdsProvider, DeathsIcon, DescriptionList, DescriptionListDesc, DescriptionListGroup, DescriptionListTerm, DesktopIcon, DesktopMobileIcon, DetailList, DetailListDesc, DetailListRow, DetailListTerm, Divider, DoubleChevronLeftIcon, DoubleChevronRightIcon, DownloadDoneIcon, DownloadIcon, DragHandleIcon, Drawer, DrawerGroup, DropdownHeader, DropdownItem, ELEVATIONS, EditAltIcon, EditIcon, ElementAs, EmptyContent, ErrorIcon, ErrorSummary, ErrorSummaryItem, ExclaimIcon, ExpandIcon, FacebookIcon, FamilyIcon, FavStar, Feedback, FeedbackIcon, Fieldset, FieldsetGroup, FileAddIcon, FileIcon, FileShieldedIcon, FileSignedIcon, FileTextIcon, FileUploader, FilterIcon, FilterListIcon, FindInPageIcon, FlagFilledIcon, FlagIcon, FlickrIcon, FloppyDiskIcon, FolderAddIcon, FolderIcon, FolderShieldedIcon, Footer, FooterLeft, FooterList, FooterListGroup, FooterListHeader, FooterLogo, FooterSocialsGroup, FooterSocialsList, FormSummary, FormSummaryEditButton, FormSummaryEmptyValue, FormSummaryError, FormSummaryField, FormSummaryFields, FormSummaryHeader, FormSummaryHeading, FormSummaryLabel, FormSummaryValue, FullscreenExitIcon, FullscreenIcon, GavelIcon, GlobalMessage, Grid, GridChild, GroupIcon, GuardianIcon, HStack, Heading, HelpFilledIcon, HelpIcon, HelpSimpleIcon, HiddenInput, HomeIcon, HourglassEmptyIcon, Icon, ImageIcon, InfoIcon, InlineButton, InlineEditInput, InlineEditSelect, InlineEditTextArea, InputMessage, InstagramIcon, InternalHeader, JordskifterettIcon, JordskiftesakIcon, KeyIcon, L_MESSAGE_PURPOSES, Label, LagmannsrettIcon, LanguageIcon, Legend, LineChartIcon, Link, LinkIcon, LinkOffIcon, LinkedInIcon, List, ListAltIcon, ListIcon, ListItem, LocalMessage, LocationIcon, LocationOffIcon, LockFilledIcon, LockIcon, LockOpenIcon, LoginIcon, LogoutIcon, MailIcon, MailOpenIcon, MapIcon, MenuIcon, MinusCircledIcon, MinusIcon, Modal, ModalActions, ModalBody, MoonIcon, MoreHorizontalIcon, MoreVerticalIcon, NativeSelect, NewsPopover, NotarialIcon, NotebookPenIcon, NotificationsIcon, NotificationsOffIcon, OnlineMeetingIcon, OpenExternalIcon, OverflowMenu, OverflowMenuButton, OverflowMenuDivider, OverflowMenuGroup, OverflowMenuLink, OverflowMenuList, OverflowMenuListHeader, OverflowMenuSpan, OverflowMenuToggle, Pagination, PaletteIcon, PanelLeftIcon, Paper, PaperPlaneIcon, Paragraph, PayoutIcon, PdfIcon, PersonAddIcon, PersonIcon, PersonShieldedIcon, PhoneInput, PinIcon, PlusCircledIcon, PlusIcon, Popover, PopoverGroup, PowerOfAttorneyIcon, PrintIcon, ProgressBar, ProgressTracker, ProgressTrackerItem, PublishIcon, QuestionAnswerIcon, RadioButton, RadioButtonGroup, ReceiptIcon, RedoIcon, RefreshIcon, ReplayIcon, RowsIcon, ScaleIcon, ScreenSize, Search, SearchAutocompleteWrapper, SearchIcon, SearchSuggestions, SectionIcon, Select, SettingsIcon, ShowHide, Skeleton, SkipToContent, SmsIcon, Spinner, SplitButton, StarFilledIcon, StarHalfFilledIcon, StarIcon, StickyNoteIcon, StylelessButton, StylelessList, StylelessOList, SunHalfFilledIcon, SunIcon, SupportIcon, SyncIcon, TG_BODY_LONG_TYPES, TG_BODY_SHORT_TYPES, TG_BODY_TYPES, TG_HEADING_TYPES, TG_LEAD_TYPES, Tab, TabList, TabPanel, TabPanels, Table, Body as TableBody, Cell as TableCell, FilterCell as TableFilterCell, Foot as TableFoot, Head as TableHead, Row as TableRow, SortCell as TableSortCell, TableWrapper, Tabs, Tag, TextArea, TextInput, TextOverflowEllipsisInner, TextOverflowEllipsisWrapper, ThumbDownFilledIcon, ThumbDownIcon, ThumbUpFilledIcon, ThumbUpIcon, TimeIcon, TimePicker, TingrettIcon, TipIcon, Toggle, ToggleBar, ToggleRadio, Tooltip, TrashIcon, TrendingDownIcon, TrendingUpIcon, Typography, UndoIcon, UnfoldLessIcon, UnfoldMoreIcon, UploadIcon, VStack, VisibilityOffIcon, VisibilityOnIcon, VisuallyHidden, WarningIcon, WebexIcon, XIcon, ZoomInIcon, ZoomOutIcon, calendarDateToNativeDate, cn, createPurposes, createSelectOptions, createSizes, dateValueToNativeDate, focusVisible, focusVisibleInset, focusVisibleTransitionValue, getBaseHTMLProps, getColorCn, getElementType, handleElementWithBackdropMount, handleElementWithBackdropUnmount, hideInput, icons_exports as icons, inheritLinkStyling, inlineElements, isAnchorTypographyProps, isBorderColor, isBorderRadius, isCaption, isElevation, isHeading, isInlineElement, isKeyboardEvent, isLegend, isPaperBackground, nativeDateToCalendarDate, nativeDateToDateValue, nativeDateToTime, normalizeButton, outlineInset, outlineOffset, removeButtonStyling, removeListStyling, renderInputMessage, scrollbarStyling, useAccordion, useAccordionContext, useCallbackRef, useCombinedRef, useControllableGroupState, useControllableState, useFloatPosition, useFocusTrap, useIsMounted, useMountTransition, useOnClickOutside, useOnKeyDown, useReturnFocusOnBlur, useRoveFocus, useScreenSize, useTheme, useWindowResize };
13306
13547
 
13307
13548
  //# sourceMappingURL=index.mjs.map