@norges-domstoler/dds-components 24.4.0 → 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.cjs +580 -425
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +944 -645
- package/dist/index.d.cts +848 -10302
- package/dist/index.d.mts +848 -10302
- package/dist/index.mjs +574 -424
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -8
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-
|
|
95
|
-
"text-color--on-
|
|
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-
|
|
412
|
-
"text-on-
|
|
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/
|
|
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
|
-
"
|
|
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,
|
|
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--
|
|
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"
|
|
@@ -1731,16 +1749,14 @@ Badge.displayName = "Badge";
|
|
|
1731
1749
|
//#region src/components/Icon/Icon.tsx
|
|
1732
1750
|
const getSize = (iconSize) => {
|
|
1733
1751
|
switch (iconSize) {
|
|
1734
|
-
case "small": return "var(--dds-size-icon-small)";
|
|
1735
|
-
case "medium": return "var(--dds-size-icon-medium)";
|
|
1736
|
-
case "large": return "var(--dds-size-icon-large)";
|
|
1737
1752
|
case "component": return "var(--dds-size-icon-component)";
|
|
1738
1753
|
case "inherit": return "1em";
|
|
1739
|
-
default: return
|
|
1754
|
+
default: return `var(--dds-size-${iconSize})`;
|
|
1740
1755
|
}
|
|
1741
1756
|
};
|
|
1757
|
+
[...SIZE_SCALE];
|
|
1742
1758
|
function Icon(props) {
|
|
1743
|
-
const { id, iconSize = "
|
|
1759
|
+
const { id, iconSize = "6", color = "currentcolor", icon, className, style, htmlProps, iconState, ...rest } = props;
|
|
1744
1760
|
const size = getSize(iconSize);
|
|
1745
1761
|
return /* @__PURE__ */ jsx(icon, {
|
|
1746
1762
|
...getBaseHTMLProps(id, className, style, htmlProps, rest),
|
|
@@ -1857,7 +1873,7 @@ const commonTexts = createTexts({
|
|
|
1857
1873
|
//#endregion
|
|
1858
1874
|
//#region src/components/Spinner/Spinner.tsx
|
|
1859
1875
|
function Spinner(props) {
|
|
1860
|
-
const { size = "var(--dds-size-
|
|
1876
|
+
const { size = "var(--dds-size-6)", color = "icon-action-resting", tooltip, id, className, htmlProps, style, ...rest } = props;
|
|
1861
1877
|
const { t } = useTranslation();
|
|
1862
1878
|
const uniqueId = `${useId()}-spinnerTitle`;
|
|
1863
1879
|
return /* @__PURE__ */ jsxs("svg", {
|
|
@@ -1867,7 +1883,8 @@ function Spinner(props) {
|
|
|
1867
1883
|
...getBaseHTMLProps(id, cn(className, Spinner_module_default.svg), {
|
|
1868
1884
|
...style,
|
|
1869
1885
|
width: size,
|
|
1870
|
-
height: size
|
|
1886
|
+
height: size,
|
|
1887
|
+
["--dds-color-spinner"]: getTextColor(color)
|
|
1871
1888
|
}, htmlProps, rest),
|
|
1872
1889
|
children: [
|
|
1873
1890
|
/* @__PURE__ */ jsx("title", {
|
|
@@ -1878,7 +1895,6 @@ function Spinner(props) {
|
|
|
1878
1895
|
cx: "12",
|
|
1879
1896
|
cy: "12.25",
|
|
1880
1897
|
r: "6",
|
|
1881
|
-
fill: getTextColor(color),
|
|
1882
1898
|
className: Spinner_module_default.jordskifterett
|
|
1883
1899
|
}),
|
|
1884
1900
|
/* @__PURE__ */ jsx("rect", {
|
|
@@ -1886,12 +1902,10 @@ function Spinner(props) {
|
|
|
1886
1902
|
y: "10.25",
|
|
1887
1903
|
width: "16",
|
|
1888
1904
|
height: "4",
|
|
1889
|
-
fill: getTextColor(color),
|
|
1890
1905
|
className: Spinner_module_default.lagmannsrett
|
|
1891
1906
|
}),
|
|
1892
1907
|
/* @__PURE__ */ jsx("path", {
|
|
1893
1908
|
d: "M12 16.6154C16.4183 16.6154 20 12.7581 20 8H4C4 12.7581 7.58172 16.6154 12 16.6154Z",
|
|
1894
|
-
fill: getTextColor(color),
|
|
1895
1909
|
className: Spinner_module_default.tingrett
|
|
1896
1910
|
})
|
|
1897
1911
|
]
|
|
@@ -1942,7 +1956,7 @@ const DropdownItem = ({ icon, className, children: propChildren, purpose = "defa
|
|
|
1942
1956
|
loading && /* @__PURE__ */ jsx("span", {
|
|
1943
1957
|
className: cn(utilStyles_module_default["center-absolute"]),
|
|
1944
1958
|
children: /* @__PURE__ */ jsx(Spinner, {
|
|
1945
|
-
size: "var(--dds-size-icon-
|
|
1959
|
+
size: "var(--dds-size-icon-component)",
|
|
1946
1960
|
tooltip: loadingTooltip
|
|
1947
1961
|
})
|
|
1948
1962
|
}),
|
|
@@ -2122,7 +2136,7 @@ var Icon_module_default = { "svg": "dds-Icon-module__svg" };
|
|
|
2122
2136
|
//#endregion
|
|
2123
2137
|
//#region src/components/Icon/utils/SvgWrapper.tsx
|
|
2124
2138
|
const size = 24;
|
|
2125
|
-
const sizeCSS = "var(--dds-size-
|
|
2139
|
+
const sizeCSS = "var(--dds-size-6)";
|
|
2126
2140
|
function SvgWrapper({ height, width, fill = "currentColor", className, title, children, iconState: _iconState, style, ...props }) {
|
|
2127
2141
|
return /* @__PURE__ */ jsxs("svg", {
|
|
2128
2142
|
...props,
|
|
@@ -2198,6 +2212,20 @@ function ArrowDownIcon(props) {
|
|
|
2198
2212
|
});
|
|
2199
2213
|
}
|
|
2200
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
|
|
2201
2229
|
//#region src/components/Icon/icons/arrowLeft.tsx
|
|
2202
2230
|
/** Arrows and chevron. Search terms: pil, arrow, venstre, left, tilbake, back. */
|
|
2203
2231
|
function ArrowLeftIcon(props) {
|
|
@@ -2225,6 +2253,20 @@ function ArrowUpIcon(props) {
|
|
|
2225
2253
|
});
|
|
2226
2254
|
}
|
|
2227
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
|
|
2228
2270
|
//#region src/components/Icon/icons/arrowUpRight.tsx
|
|
2229
2271
|
/** Arrows and chevron. Search terms: pil, arrow, opp, up, høyre, right. */
|
|
2230
2272
|
function ArrowUpRightIcon(props) {
|
|
@@ -4112,8 +4154,10 @@ var icons_exports = /* @__PURE__ */ __exportAll({
|
|
|
4112
4154
|
AppsIcon: () => AppsIcon,
|
|
4113
4155
|
ArchiveIcon: () => ArchiveIcon,
|
|
4114
4156
|
ArrowDownIcon: () => ArrowDownIcon,
|
|
4157
|
+
ArrowDownUpIcon: () => ArrowDownUpIcon,
|
|
4115
4158
|
ArrowLeftIcon: () => ArrowLeftIcon,
|
|
4116
4159
|
ArrowRightIcon: () => ArrowRightIcon,
|
|
4160
|
+
ArrowUpDownIcon: () => ArrowUpDownIcon,
|
|
4117
4161
|
ArrowUpIcon: () => ArrowUpIcon,
|
|
4118
4162
|
ArrowUpRightIcon: () => ArrowUpRightIcon,
|
|
4119
4163
|
AttachmentIcon: () => AttachmentIcon,
|
|
@@ -4417,7 +4461,7 @@ const BackLink = ({ label, ref, as = "a", ...rest }) => {
|
|
|
4417
4461
|
const { t } = useTranslation();
|
|
4418
4462
|
return /* @__PURE__ */ jsx("nav", {
|
|
4419
4463
|
ref,
|
|
4420
|
-
"aria-label": t(texts$
|
|
4464
|
+
"aria-label": t(texts$30.goBack),
|
|
4421
4465
|
className: typographyStyles_module_default["body-short-medium"],
|
|
4422
4466
|
children: /* @__PURE__ */ jsxs(HStack, {
|
|
4423
4467
|
as,
|
|
@@ -4433,7 +4477,7 @@ const BackLink = ({ label, ref, as = "a", ...rest }) => {
|
|
|
4433
4477
|
});
|
|
4434
4478
|
};
|
|
4435
4479
|
BackLink.displayName = "BackLink";
|
|
4436
|
-
const texts$
|
|
4480
|
+
const texts$30 = createTexts({ goBack: {
|
|
4437
4481
|
nb: "Gå tilbake",
|
|
4438
4482
|
no: "Gå tilbake",
|
|
4439
4483
|
nn: "Gå tilbake",
|
|
@@ -4642,7 +4686,7 @@ const Label = ({ showRequiredStyling, readOnly, id, className, style, htmlProps,
|
|
|
4642
4686
|
const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
4643
4687
|
readOnly && /* @__PURE__ */ jsx(Icon, {
|
|
4644
4688
|
icon: LockFilledIcon,
|
|
4645
|
-
iconSize: "
|
|
4689
|
+
iconSize: "4",
|
|
4646
4690
|
className: Label_module_default["read-only__icon"]
|
|
4647
4691
|
}),
|
|
4648
4692
|
children,
|
|
@@ -4746,19 +4790,25 @@ var Button_module_default = {
|
|
|
4746
4790
|
"button--primary": "dds-Button-module__button--primary",
|
|
4747
4791
|
"button--secondary": "dds-Button-module__button--secondary",
|
|
4748
4792
|
"button--tertiary": "dds-Button-module__button--tertiary",
|
|
4749
|
-
"button--danger": "dds-Button-module__button--danger",
|
|
4750
|
-
"
|
|
4793
|
+
"button--primary-danger": "dds-Button-module__button--primary-danger",
|
|
4794
|
+
"button--secondary-danger": "dds-Button-module__button--secondary-danger"
|
|
4751
4795
|
};
|
|
4752
4796
|
//#endregion
|
|
4753
4797
|
//#region src/components/ButtonGroup/ButtonGroup.context.tsx
|
|
4754
4798
|
const ButtonGroupContext = createContext({});
|
|
4755
4799
|
const useButtonGroupContext = () => useContext(ButtonGroupContext);
|
|
4756
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
|
|
4757
4807
|
//#region src/components/Button/Button.tsx
|
|
4758
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 }) => {
|
|
4759
4809
|
const { purpose: groupPurpose, size: groupSize } = useButtonGroupContext();
|
|
4760
4810
|
const { t } = useTranslation();
|
|
4761
|
-
const spinnerTooltip = loadingTooltip ?? t(texts$
|
|
4811
|
+
const spinnerTooltip = loadingTooltip ?? t(texts$29.saving);
|
|
4762
4812
|
const hasLabel = !!children;
|
|
4763
4813
|
const hasIcon = !!icon;
|
|
4764
4814
|
const hasLabelAndIcon = hasIcon && hasLabel;
|
|
@@ -4766,7 +4816,7 @@ const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "m
|
|
|
4766
4816
|
const isTextButton = hasLabel && !hasIcon;
|
|
4767
4817
|
const noContent = !hasLabel && !hasIcon;
|
|
4768
4818
|
const size = groupSize ?? propSize;
|
|
4769
|
-
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);
|
|
4770
4820
|
const iconElement = hasIcon && /* @__PURE__ */ jsx(Icon, {
|
|
4771
4821
|
icon,
|
|
4772
4822
|
iconSize: "component",
|
|
@@ -4788,7 +4838,7 @@ const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "m
|
|
|
4788
4838
|
className: cn(!noContent && Button_module_default["spinner-wrapper--absolute"]),
|
|
4789
4839
|
children: /* @__PURE__ */ jsx(Spinner, {
|
|
4790
4840
|
size: "var(--dds-size-icon-component)",
|
|
4791
|
-
color:
|
|
4841
|
+
color: "currentColor",
|
|
4792
4842
|
tooltip: spinnerTooltip
|
|
4793
4843
|
})
|
|
4794
4844
|
})
|
|
@@ -4810,12 +4860,12 @@ const Button = ({ as: propAs, children, purpose = "primary", size: propSize = "m
|
|
|
4810
4860
|
children: [content, badgeProps && /* @__PURE__ */ jsx(Badge, {
|
|
4811
4861
|
...badgeProps,
|
|
4812
4862
|
size,
|
|
4813
|
-
className: cn(
|
|
4863
|
+
className: cn(common_module_default["badge--on-corner"], badgeProps.className)
|
|
4814
4864
|
})]
|
|
4815
4865
|
});
|
|
4816
4866
|
};
|
|
4817
4867
|
Button.displayName = "Button";
|
|
4818
|
-
const texts$
|
|
4868
|
+
const texts$29 = createTexts({ saving: {
|
|
4819
4869
|
no: "Lagring pågår",
|
|
4820
4870
|
nb: "Lagring pågår",
|
|
4821
4871
|
nn: "Lagring pågår",
|
|
@@ -4955,14 +5005,12 @@ var Toggle_module_default = {
|
|
|
4955
5005
|
"track": "dds-Toggle-module__track",
|
|
4956
5006
|
"thumb": "dds-Toggle-module__thumb",
|
|
4957
5007
|
"checkmark": "dds-Toggle-module__checkmark",
|
|
4958
|
-
"unchecked-icon": "dds-Toggle-module__unchecked-icon",
|
|
4959
|
-
"checked-icon": "dds-Toggle-module__checked-icon",
|
|
4960
5008
|
"labeltext--readonly": "dds-Toggle-module__labeltext--readonly",
|
|
4961
5009
|
"icon--read-only": "dds-Toggle-module__icon--read-only",
|
|
5010
|
+
"small": "dds-Toggle-module__small",
|
|
4962
5011
|
"medium": "dds-Toggle-module__medium",
|
|
4963
5012
|
"large": "dds-Toggle-module__large",
|
|
4964
5013
|
"label--is-loading": "dds-Toggle-module__label--is-loading",
|
|
4965
|
-
"label--color-scheme": "dds-Toggle-module__label--color-scheme",
|
|
4966
5014
|
"label--disabled": "dds-Toggle-module__label--disabled",
|
|
4967
5015
|
"label--read-only": "dds-Toggle-module__label--read-only"
|
|
4968
5016
|
};
|
|
@@ -4975,34 +5023,24 @@ const VisuallyHidden = ({ id, as: asProp, className, style, htmlProps, ...rest }
|
|
|
4975
5023
|
});
|
|
4976
5024
|
};
|
|
4977
5025
|
VisuallyHidden.displayName = "VisuallyHidden";
|
|
4978
|
-
const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, style, htmlProps = {},
|
|
5026
|
+
const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultChecked, onChange, disabled, readOnly, isLoading, className, style, htmlProps = {}, ...rest }) => {
|
|
4979
5027
|
const { t } = useTranslation();
|
|
4980
5028
|
const generatedId = useId();
|
|
4981
5029
|
const uniqueId = id ?? `${generatedId}-toggle`;
|
|
4982
|
-
const iconSize =
|
|
5030
|
+
const iconSize = {
|
|
5031
|
+
small: "3",
|
|
5032
|
+
medium: "4",
|
|
5033
|
+
large: "5"
|
|
5034
|
+
}[size];
|
|
4983
5035
|
const [checked, setChecked] = useControllableState({
|
|
4984
5036
|
value: checkedProp,
|
|
4985
5037
|
defaultValue: defaultChecked ?? false,
|
|
4986
5038
|
onChange
|
|
4987
5039
|
});
|
|
4988
|
-
const isColorScheme = variant === "colorScheme";
|
|
4989
|
-
const marker = isColorScheme ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Icon, {
|
|
4990
|
-
className: Toggle_module_default["unchecked-icon"],
|
|
4991
|
-
icon: SunIcon,
|
|
4992
|
-
iconSize
|
|
4993
|
-
}), /* @__PURE__ */ jsx(Icon, {
|
|
4994
|
-
className: Toggle_module_default["checked-icon"],
|
|
4995
|
-
icon: MoonIcon,
|
|
4996
|
-
iconSize
|
|
4997
|
-
})] }) : /* @__PURE__ */ jsx(Icon, {
|
|
4998
|
-
className: Toggle_module_default.checkmark,
|
|
4999
|
-
icon: CheckIcon,
|
|
5000
|
-
iconSize
|
|
5001
|
-
});
|
|
5002
5040
|
return /* @__PURE__ */ jsxs("label", {
|
|
5003
5041
|
htmlFor: uniqueId,
|
|
5004
5042
|
style,
|
|
5005
|
-
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"]
|
|
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"]),
|
|
5006
5044
|
children: [
|
|
5007
5045
|
/* @__PURE__ */ jsx(HiddenInput, {
|
|
5008
5046
|
...getBaseHTMLProps(uniqueId, focus_module_default["focusable-sibling"], void 0, htmlProps, rest),
|
|
@@ -5018,7 +5056,14 @@ const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultCh
|
|
|
5018
5056
|
className: cn(Toggle_module_default.track, focus_module_default["focus-styled-sibling"]),
|
|
5019
5057
|
children: /* @__PURE__ */ jsx("span", {
|
|
5020
5058
|
className: Toggle_module_default.thumb,
|
|
5021
|
-
children: isLoading ? /* @__PURE__ */ jsx(Spinner, {
|
|
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
|
+
})
|
|
5022
5067
|
})
|
|
5023
5068
|
}),
|
|
5024
5069
|
/* @__PURE__ */ jsxs("span", {
|
|
@@ -5026,7 +5071,7 @@ const Toggle = ({ id, children, size = "medium", checked: checkedProp, defaultCh
|
|
|
5026
5071
|
children: [
|
|
5027
5072
|
readOnly && /* @__PURE__ */ jsx(Icon, {
|
|
5028
5073
|
icon: LockFilledIcon,
|
|
5029
|
-
iconSize: "
|
|
5074
|
+
iconSize: "4",
|
|
5030
5075
|
className: Toggle_module_default["icon--read-only"]
|
|
5031
5076
|
}),
|
|
5032
5077
|
children,
|
|
@@ -5204,7 +5249,7 @@ const Breadcrumbs = ({ children, smallScreenBreakpoint, id, className, style, ht
|
|
|
5204
5249
|
size: "xsmall",
|
|
5205
5250
|
icon: MoreHorizontalIcon,
|
|
5206
5251
|
purpose: "tertiary",
|
|
5207
|
-
"aria-label": bChildrenTruncated.length > 1 ? t(texts$
|
|
5252
|
+
"aria-label": bChildrenTruncated.length > 1 ? t(texts$28.showHiddenTo(bChildren.length - 1)) : t(texts$28.showHidden)
|
|
5208
5253
|
}), /* @__PURE__ */ jsx(OverflowMenu, {
|
|
5209
5254
|
portal: false,
|
|
5210
5255
|
children: /* @__PURE__ */ jsx(OverflowMenuList, { children: bChildrenTruncated })
|
|
@@ -5224,7 +5269,7 @@ const Breadcrumbs = ({ children, smallScreenBreakpoint, id, className, style, ht
|
|
|
5224
5269
|
};
|
|
5225
5270
|
return /* @__PURE__ */ jsxs("nav", {
|
|
5226
5271
|
...getBaseHTMLProps(id, cn(className, typographyStyles_module_default["body-short-medium"]), style, htmlProps, rest),
|
|
5227
|
-
"aria-label": t(texts$
|
|
5272
|
+
"aria-label": t(texts$28.breadcrumbs),
|
|
5228
5273
|
children: [/* @__PURE__ */ jsx(HStack, {
|
|
5229
5274
|
...responsiveListProps,
|
|
5230
5275
|
hideBelow: hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
|
|
@@ -5237,7 +5282,7 @@ const Breadcrumbs = ({ children, smallScreenBreakpoint, id, className, style, ht
|
|
|
5237
5282
|
});
|
|
5238
5283
|
};
|
|
5239
5284
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
5240
|
-
const texts$
|
|
5285
|
+
const texts$28 = createTexts({
|
|
5241
5286
|
breadcrumbs: {
|
|
5242
5287
|
nb: "Brødsmulesti",
|
|
5243
5288
|
no: "Brødsmulesti",
|
|
@@ -5386,6 +5431,10 @@ const CardExpandableBody = ({ children, className, style, htmlProps, padding, ..
|
|
|
5386
5431
|
};
|
|
5387
5432
|
CardExpandableBody.displayName = "CardExpandableBody";
|
|
5388
5433
|
//#endregion
|
|
5434
|
+
//#region src/components/Card/CardSelectionControl/CardSelectable.context.tsx
|
|
5435
|
+
const CardSelectableContext = createContext({});
|
|
5436
|
+
const useCardSelectableContext = () => useContext(CardSelectableContext);
|
|
5437
|
+
//#endregion
|
|
5389
5438
|
//#region src/components/SelectionControl/Checkbox/CheckboxGroupContext.tsx
|
|
5390
5439
|
const CheckboxGroupContext = createContext(null);
|
|
5391
5440
|
const useCheckboxGroup = () => {
|
|
@@ -5411,15 +5460,22 @@ const SelectionControl = ({ controlType, className, ...rest }) => /* @__PURE__ *
|
|
|
5411
5460
|
className: cn(className, SelectionControl_module_default["selection-control"], controlType === "radio" && SelectionControl_module_default["selection-control--radio"]),
|
|
5412
5461
|
...rest
|
|
5413
5462
|
});
|
|
5414
|
-
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] };
|
|
5415
5468
|
return /* @__PURE__ */ jsx(Box, {
|
|
5416
5469
|
as: "label",
|
|
5417
5470
|
position: "relative",
|
|
5471
|
+
style: {
|
|
5472
|
+
...style,
|
|
5473
|
+
...styleVariables
|
|
5474
|
+
},
|
|
5418
5475
|
display: "flex",
|
|
5419
5476
|
alignItems: "center",
|
|
5420
5477
|
width: "fit-content",
|
|
5421
|
-
|
|
5422
|
-
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"]),
|
|
5423
5479
|
...rest
|
|
5424
5480
|
});
|
|
5425
5481
|
};
|
|
@@ -5434,7 +5490,7 @@ const renderGroupLabel = ({ id, showRequiredStyling, readOnly, label }) => {
|
|
|
5434
5490
|
readOnly && /* @__PURE__ */ jsx(Icon, {
|
|
5435
5491
|
icon: LockIcon,
|
|
5436
5492
|
className: Label_module_default["read-only__icon"],
|
|
5437
|
-
iconSize: "
|
|
5493
|
+
iconSize: "4"
|
|
5438
5494
|
}),
|
|
5439
5495
|
label,
|
|
5440
5496
|
" ",
|
|
@@ -5444,15 +5500,8 @@ const renderGroupLabel = ({ id, showRequiredStyling, readOnly, label }) => {
|
|
|
5444
5500
|
else return null;
|
|
5445
5501
|
};
|
|
5446
5502
|
//#endregion
|
|
5447
|
-
//#region src/components/SelectionControl/SelectionControl.utils.tsx
|
|
5448
|
-
const selectionControlTypographyProps = {
|
|
5449
|
-
color: "inherit",
|
|
5450
|
-
typographyType: "body-short-medium",
|
|
5451
|
-
as: "span"
|
|
5452
|
-
};
|
|
5453
|
-
//#endregion
|
|
5454
5503
|
//#region src/components/SelectionControl/Checkbox/Checkbox.tsx
|
|
5455
|
-
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 }) => {
|
|
5456
5505
|
const generatedId = useId();
|
|
5457
5506
|
const uniqueId = id ?? `${generatedId}-checkbox`;
|
|
5458
5507
|
const checkboxGroup = useCheckboxGroup();
|
|
@@ -5461,6 +5510,7 @@ const Checkbox = ({ id, name, label, error = false, disabled, readOnly, indeterm
|
|
|
5461
5510
|
const isReadOnly = readOnly || checkboxGroup?.readOnly;
|
|
5462
5511
|
const hasError = error || checkboxGroup?.error;
|
|
5463
5512
|
const isDisabled = disabled || checkboxGroup?.disabled;
|
|
5513
|
+
const controlSize = size || checkboxGroup?.size || "medium";
|
|
5464
5514
|
return /* @__PURE__ */ jsxs(Label$1, {
|
|
5465
5515
|
disabled: isDisabled,
|
|
5466
5516
|
htmlFor: uniqueId,
|
|
@@ -5468,6 +5518,7 @@ const Checkbox = ({ id, name, label, error = false, disabled, readOnly, indeterm
|
|
|
5468
5518
|
controlType: "checkbox",
|
|
5469
5519
|
className,
|
|
5470
5520
|
style,
|
|
5521
|
+
size: controlSize,
|
|
5471
5522
|
children: [
|
|
5472
5523
|
/* @__PURE__ */ jsx(HiddenInput, {
|
|
5473
5524
|
...getBaseHTMLProps(uniqueId, void 0, void 0, htmlProps, rest),
|
|
@@ -5492,10 +5543,7 @@ const Checkbox = ({ id, name, label, error = false, disabled, readOnly, indeterm
|
|
|
5492
5543
|
controlType: "checkbox",
|
|
5493
5544
|
className: focus_module_default["focus-styled-sibling"]
|
|
5494
5545
|
}),
|
|
5495
|
-
hasChildren ? children : hasLabel ? /* @__PURE__ */ jsx(
|
|
5496
|
-
...selectionControlTypographyProps,
|
|
5497
|
-
children: label
|
|
5498
|
-
}) : null
|
|
5546
|
+
hasChildren ? children : hasLabel ? /* @__PURE__ */ jsx("span", { children: label }) : null
|
|
5499
5547
|
]
|
|
5500
5548
|
});
|
|
5501
5549
|
};
|
|
@@ -5557,7 +5605,7 @@ const renderInputMessage = ({ tip, tipId, errorMessage, errorMessageId, noSpacin
|
|
|
5557
5605
|
//#endregion
|
|
5558
5606
|
//#region src/components/SelectionControl/Checkbox/CheckboxGroup.tsx
|
|
5559
5607
|
const CheckboxGroup = (props) => {
|
|
5560
|
-
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;
|
|
5561
5609
|
const { "aria-required": ariaRequired } = htmlProps;
|
|
5562
5610
|
const generatedId = useId();
|
|
5563
5611
|
const uniqueGroupId = groupId ?? `${generatedId}-checkboxGroup`;
|
|
@@ -5571,7 +5619,8 @@ const CheckboxGroup = (props) => {
|
|
|
5571
5619
|
uniqueGroupId,
|
|
5572
5620
|
tipId: tip ? tipId : void 0,
|
|
5573
5621
|
disabled,
|
|
5574
|
-
readOnly
|
|
5622
|
+
readOnly,
|
|
5623
|
+
size
|
|
5575
5624
|
};
|
|
5576
5625
|
return /* @__PURE__ */ jsxs("div", {
|
|
5577
5626
|
...getBaseHTMLProps(id, cn(className, SelectionControl_module_default.container), style, {
|
|
@@ -5623,7 +5672,7 @@ const getIsChecked = ({ value, groupValue, checked }) => {
|
|
|
5623
5672
|
}
|
|
5624
5673
|
return !!value;
|
|
5625
5674
|
};
|
|
5626
|
-
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 }) => {
|
|
5627
5676
|
const generatedId = useId();
|
|
5628
5677
|
const uniqueId = id ?? `${generatedId}-radioButton`;
|
|
5629
5678
|
const hasChildren = !!children;
|
|
@@ -5644,6 +5693,7 @@ const RadioButton = ({ id, name, label, disabled = false, readOnly = false, erro
|
|
|
5644
5693
|
groupValue: radioButtonGroup?.value,
|
|
5645
5694
|
checked
|
|
5646
5695
|
});
|
|
5696
|
+
const controlSize = size || radioButtonGroup?.size || "medium";
|
|
5647
5697
|
return /* @__PURE__ */ jsxs(Label$1, {
|
|
5648
5698
|
disabled: isDisabled,
|
|
5649
5699
|
style,
|
|
@@ -5651,6 +5701,7 @@ const RadioButton = ({ id, name, label, disabled = false, readOnly = false, erro
|
|
|
5651
5701
|
hasText: hasLabel || hasChildren,
|
|
5652
5702
|
htmlFor: uniqueId,
|
|
5653
5703
|
controlType: "radio",
|
|
5704
|
+
size: controlSize,
|
|
5654
5705
|
children: [
|
|
5655
5706
|
/* @__PURE__ */ jsx(HiddenInput, {
|
|
5656
5707
|
...getBaseHTMLProps(uniqueId, void 0, void 0, htmlProps, rest),
|
|
@@ -5672,17 +5723,14 @@ const RadioButton = ({ id, name, label, disabled = false, readOnly = false, erro
|
|
|
5672
5723
|
controlType: "radio",
|
|
5673
5724
|
className: focus_module_default["focus-styled-sibling"]
|
|
5674
5725
|
}),
|
|
5675
|
-
hasChildren ? children : hasLabel ? /* @__PURE__ */ jsx(
|
|
5676
|
-
...selectionControlTypographyProps,
|
|
5677
|
-
children: label
|
|
5678
|
-
}) : null
|
|
5726
|
+
hasChildren ? children : hasLabel ? /* @__PURE__ */ jsx("span", { children: label }) : null
|
|
5679
5727
|
]
|
|
5680
5728
|
});
|
|
5681
5729
|
};
|
|
5682
5730
|
RadioButton.displayName = "RadioButton";
|
|
5683
5731
|
//#endregion
|
|
5684
5732
|
//#region src/components/SelectionControl/RadioButton/RadioButtonGroup.tsx
|
|
5685
|
-
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 }) => {
|
|
5686
5734
|
const { "aria-required": ariaRequired = false } = htmlProps;
|
|
5687
5735
|
const generatedId = useId();
|
|
5688
5736
|
const uniqueGroupId = groupId ?? `${generatedId}-radioButtonGroup`;
|
|
@@ -5704,7 +5752,8 @@ const RadioButtonGroup = ({ name, label, groupId, errorMessage, tip, disabled =
|
|
|
5704
5752
|
required,
|
|
5705
5753
|
readOnly,
|
|
5706
5754
|
value: groupValue,
|
|
5707
|
-
onChange: handleChange
|
|
5755
|
+
onChange: handleChange,
|
|
5756
|
+
size
|
|
5708
5757
|
};
|
|
5709
5758
|
return /* @__PURE__ */ jsxs("div", {
|
|
5710
5759
|
...getBaseHTMLProps(id, cn(className, SelectionControl_module_default.container), style, {
|
|
@@ -5742,10 +5791,6 @@ const RadioButtonGroup = ({ name, label, groupId, errorMessage, tip, disabled =
|
|
|
5742
5791
|
};
|
|
5743
5792
|
RadioButtonGroup.displayName = "RadioButtonGroup";
|
|
5744
5793
|
//#endregion
|
|
5745
|
-
//#region src/components/Card/CardSelectionControl/CardSelectable.context.tsx
|
|
5746
|
-
const CardSelectableContext = createContext({});
|
|
5747
|
-
const useCardSelectableContext = () => useContext(CardSelectableContext);
|
|
5748
|
-
//#endregion
|
|
5749
5794
|
//#region src/components/Card/CardSelectionControl/CardSelectable.tsx
|
|
5750
5795
|
const CardSelectable = (props) => {
|
|
5751
5796
|
const { appearance = "filled", cardType: cardTypeProp, id, padding, controlPlacementProps = {}, "aria-describedby": ariaDescribedby, className, htmlProps, style, ...rest } = props;
|
|
@@ -5769,9 +5814,9 @@ Provide \`cardType\` either via a parent <CardSelectableGroup> or directly on th
|
|
|
5769
5814
|
value
|
|
5770
5815
|
};
|
|
5771
5816
|
const customStyles = {
|
|
5772
|
-
["--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-
|
|
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))",
|
|
5773
5818
|
["--dds-selection-control-card-control-top"]: top,
|
|
5774
|
-
["--dds-selection-control-card-control-left"]: left ?? `var(--dds-spacing-x1
|
|
5819
|
+
["--dds-selection-control-card-control-left"]: left ?? `var(--dds-spacing-x1)`
|
|
5775
5820
|
};
|
|
5776
5821
|
const sharedProps = {
|
|
5777
5822
|
...getBaseHTMLProps(id, classNames, {
|
|
@@ -5843,8 +5888,124 @@ const CardSelectableGroup = ({ name, cardType, errorMessage, disabled, readOnly,
|
|
|
5843
5888
|
};
|
|
5844
5889
|
CardSelectableGroup.displayName = "CardSelectableGroup";
|
|
5845
5890
|
//#endregion
|
|
5846
|
-
//#region src/components/Chip/Chip.
|
|
5847
|
-
|
|
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 }) => {
|
|
5848
6009
|
const { t } = useTranslation();
|
|
5849
6010
|
const { "aria-label": ariaLabel, ...restHTMLprops } = htmlProps;
|
|
5850
6011
|
const [isOpen, setIsOpen] = useState(true);
|
|
@@ -5852,30 +6013,23 @@ const Chip = ({ children, onClose, id, className, style, htmlProps = {}, ...rest
|
|
|
5852
6013
|
setIsOpen(false);
|
|
5853
6014
|
onClose?.();
|
|
5854
6015
|
};
|
|
5855
|
-
return isOpen ? /* @__PURE__ */ jsxs(
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
padding: "x0.25 0 x0.25 x0.5",
|
|
5861
|
-
borderRadius: "chip",
|
|
5862
|
-
border: "border-subtle",
|
|
5863
|
-
background: "surface-subtle",
|
|
5864
|
-
...getBaseHTMLProps(id, cn(className, typographyStyles_module_default["body-short-medium"]), style, restHTMLprops, rest),
|
|
5865
|
-
children: [/* @__PURE__ */ jsx(TextOverflowEllipsisInner, { children }), /* @__PURE__ */ jsx(Bleed, {
|
|
5866
|
-
as: Button,
|
|
5867
|
-
purpose: "tertiary",
|
|
5868
|
-
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, {
|
|
5869
6021
|
icon: CloseIcon,
|
|
6022
|
+
color: "icon-default",
|
|
5870
6023
|
onClick,
|
|
5871
|
-
"aria-label": ariaLabel ?? t(texts$
|
|
5872
|
-
bleedMarginBlock: "x0.25",
|
|
5873
|
-
reflectivePadding: true
|
|
6024
|
+
"aria-label": ariaLabel ?? t(texts$27.removeChip) + (children ? ` ${children}` : "")
|
|
5874
6025
|
})]
|
|
5875
6026
|
}) : null;
|
|
5876
6027
|
};
|
|
5877
|
-
|
|
5878
|
-
|
|
6028
|
+
ChipRemovable.displayName = "ChipRemovable";
|
|
6029
|
+
ChipRadio.displayName = "ChipRadio";
|
|
6030
|
+
ChipCheckbox.displayName = "ChipCheckbox";
|
|
6031
|
+
ChipButton.displayName = "ChipButton";
|
|
6032
|
+
const texts$27 = createTexts({ removeChip: {
|
|
5879
6033
|
nb: "Fjern merkelapp",
|
|
5880
6034
|
no: "Fjern merkelapp",
|
|
5881
6035
|
nn: "Fjern merkelapp",
|
|
@@ -5884,17 +6038,49 @@ const texts$26 = createTexts({ removeChip: {
|
|
|
5884
6038
|
} });
|
|
5885
6039
|
//#endregion
|
|
5886
6040
|
//#region src/components/Chip/ChipGroup.tsx
|
|
5887
|
-
const ChipGroup = (
|
|
5888
|
-
const
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
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
|
|
5894
6066
|
});
|
|
5895
6067
|
};
|
|
5896
6068
|
ChipGroup.displayName = "ChipGroup";
|
|
5897
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
|
|
5898
6084
|
//#region src/components/CookieBanner/CookieBanner.module.css
|
|
5899
6085
|
var CookieBanner_module_default = {
|
|
5900
6086
|
"container": "dds-CookieBanner-module__container",
|
|
@@ -5956,7 +6142,7 @@ function CookieBanner({ headerText, description, buttons, checkboxes, id, classN
|
|
|
5956
6142
|
children: [heading, /* @__PURE__ */ jsx(ShowHide, {
|
|
5957
6143
|
as: Button,
|
|
5958
6144
|
showBelow: collapsedBreakpoint,
|
|
5959
|
-
"aria-label": t(texts$
|
|
6145
|
+
"aria-label": t(texts$26.expandConsent),
|
|
5960
6146
|
purpose: "tertiary",
|
|
5961
6147
|
icon: ExpandIcon,
|
|
5962
6148
|
onClick: () => setIsCollapsedOnBreakpoint(false),
|
|
@@ -5992,7 +6178,7 @@ function CookieBanner({ headerText, description, buttons, checkboxes, id, classN
|
|
|
5992
6178
|
});
|
|
5993
6179
|
}
|
|
5994
6180
|
CookieBanner.displayName = "CookieBanner";
|
|
5995
|
-
const texts$
|
|
6181
|
+
const texts$26 = createTexts({ expandConsent: {
|
|
5996
6182
|
nb: "Utvid samtykke for bruk av informasjonskapsler",
|
|
5997
6183
|
no: "Utvid samtykke for bruk av informasjonskapsler",
|
|
5998
6184
|
nn: "Utvid samtykke for bruk av informasjonskapslar",
|
|
@@ -6225,32 +6411,32 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6225
6411
|
const weeksInMonth = getWeeksInMonth(state.visibleRange.start, locale);
|
|
6226
6412
|
const weekDays = [
|
|
6227
6413
|
{
|
|
6228
|
-
short: t(texts$
|
|
6229
|
-
full: t(texts$
|
|
6414
|
+
short: t(texts$25.mo),
|
|
6415
|
+
full: t(texts$25.monday)
|
|
6230
6416
|
},
|
|
6231
6417
|
{
|
|
6232
|
-
short: t(texts$
|
|
6233
|
-
full: t(texts$
|
|
6418
|
+
short: t(texts$25.tu),
|
|
6419
|
+
full: t(texts$25.tuesday)
|
|
6234
6420
|
},
|
|
6235
6421
|
{
|
|
6236
|
-
short: t(texts$
|
|
6237
|
-
full: t(texts$
|
|
6422
|
+
short: t(texts$25.we),
|
|
6423
|
+
full: t(texts$25.wednesday)
|
|
6238
6424
|
},
|
|
6239
6425
|
{
|
|
6240
|
-
short: t(texts$
|
|
6241
|
-
full: t(texts$
|
|
6426
|
+
short: t(texts$25.th),
|
|
6427
|
+
full: t(texts$25.thursday)
|
|
6242
6428
|
},
|
|
6243
6429
|
{
|
|
6244
|
-
short: t(texts$
|
|
6245
|
-
full: t(texts$
|
|
6430
|
+
short: t(texts$25.fr),
|
|
6431
|
+
full: t(texts$25.friday)
|
|
6246
6432
|
},
|
|
6247
6433
|
{
|
|
6248
|
-
short: t(texts$
|
|
6249
|
-
full: t(texts$
|
|
6434
|
+
short: t(texts$25.sa),
|
|
6435
|
+
full: t(texts$25.saturday)
|
|
6250
6436
|
},
|
|
6251
6437
|
{
|
|
6252
|
-
short: t(texts$
|
|
6253
|
-
full: t(texts$
|
|
6438
|
+
short: t(texts$25.su),
|
|
6439
|
+
full: t(texts$25.sunday)
|
|
6254
6440
|
}
|
|
6255
6441
|
];
|
|
6256
6442
|
const { showWeekNumbers, onClose } = useContext(CalendarPopoverContext);
|
|
@@ -6269,7 +6455,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6269
6455
|
children: [/* @__PURE__ */ jsx("span", {
|
|
6270
6456
|
"aria-hidden": true,
|
|
6271
6457
|
children: "#"
|
|
6272
|
-
}), /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$
|
|
6458
|
+
}), /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$25.weekNumber) })]
|
|
6273
6459
|
}), weekDays.map((day, index) => /* @__PURE__ */ jsxs(CalendarCell, {
|
|
6274
6460
|
as: "th",
|
|
6275
6461
|
children: [/* @__PURE__ */ jsx("span", {
|
|
@@ -6293,7 +6479,7 @@ function CalendarGrid({ state, ...props }) {
|
|
|
6293
6479
|
});
|
|
6294
6480
|
}
|
|
6295
6481
|
CalendarGrid.displayName = "CalendarGrid";
|
|
6296
|
-
const texts$
|
|
6482
|
+
const texts$25 = createTexts({
|
|
6297
6483
|
weekNumber: {
|
|
6298
6484
|
nb: "Ukenummer",
|
|
6299
6485
|
no: "Ukenummer",
|
|
@@ -6428,7 +6614,7 @@ function Calendar(props) {
|
|
|
6428
6614
|
return /* @__PURE__ */ jsxs(VStack, {
|
|
6429
6615
|
...calendarProps,
|
|
6430
6616
|
gap: "x0.25",
|
|
6431
|
-
height: "
|
|
6617
|
+
height: "calc(var(--dds-size-10) * 8 + var(--dds-spacing-x0-5))",
|
|
6432
6618
|
children: [/* @__PURE__ */ jsxs(HStack, {
|
|
6433
6619
|
justifyContent: "space-between",
|
|
6434
6620
|
alignItems: "center",
|
|
@@ -6436,7 +6622,7 @@ function Calendar(props) {
|
|
|
6436
6622
|
/* @__PURE__ */ jsx(Button, {
|
|
6437
6623
|
"aria-hidden": optAttr(isPrevDisabled),
|
|
6438
6624
|
type: "button",
|
|
6439
|
-
"aria-label": t(texts$
|
|
6625
|
+
"aria-label": t(texts$24.previousMonth),
|
|
6440
6626
|
onClick: (e) => onPrev?.(e),
|
|
6441
6627
|
size: "small",
|
|
6442
6628
|
purpose: "tertiary",
|
|
@@ -6453,7 +6639,7 @@ function Calendar(props) {
|
|
|
6453
6639
|
/* @__PURE__ */ jsx(Button, {
|
|
6454
6640
|
type: "button",
|
|
6455
6641
|
"aria-hidden": optAttr(isNextDisabled),
|
|
6456
|
-
"aria-label": t(texts$
|
|
6642
|
+
"aria-label": t(texts$24.nextMonth),
|
|
6457
6643
|
onClick: (e) => onNext?.(e),
|
|
6458
6644
|
size: "small",
|
|
6459
6645
|
purpose: "tertiary",
|
|
@@ -6465,7 +6651,7 @@ function Calendar(props) {
|
|
|
6465
6651
|
});
|
|
6466
6652
|
}
|
|
6467
6653
|
Calendar.displayName = "Calendar";
|
|
6468
|
-
const texts$
|
|
6654
|
+
const texts$24 = createTexts({
|
|
6469
6655
|
nextMonth: {
|
|
6470
6656
|
nb: "Neste måned",
|
|
6471
6657
|
no: "Neste måned",
|
|
@@ -6482,79 +6668,19 @@ const texts$23 = createTexts({
|
|
|
6482
6668
|
}
|
|
6483
6669
|
});
|
|
6484
6670
|
//#endregion
|
|
6485
|
-
//#region src/components/helpers/InlineIconButton/InlineIconButton.module.css
|
|
6486
|
-
var InlineIconButton_module_default = { "button": "dds-InlineIconButton-module__button" };
|
|
6487
|
-
//#endregion
|
|
6488
|
-
//#region src/components/helpers/InlineIconButton/InlineIconButton.tsx
|
|
6489
|
-
const InlineIconButton = ({ className, size, icon, color, ...rest }) => /* @__PURE__ */ jsx(StylelessButton, {
|
|
6490
|
-
className: cn(className, InlineIconButton_module_default.button, _key1),
|
|
6491
|
-
...rest,
|
|
6492
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
6493
|
-
icon,
|
|
6494
|
-
iconSize: size,
|
|
6495
|
-
color
|
|
6496
|
-
})
|
|
6497
|
-
});
|
|
6498
|
-
InlineIconButton.displayName = "InlineIconButton";
|
|
6499
|
-
//#endregion
|
|
6500
|
-
//#region src/components/helpers/Input/Input.module.css
|
|
6501
|
-
var Input_module_default = {
|
|
6502
|
-
"container": "dds-Input-module__container",
|
|
6503
|
-
"input-group": "dds-Input-module__input-group",
|
|
6504
|
-
"input": "dds-Input-module__input",
|
|
6505
|
-
"disabled": "dds-Input-module__disabled",
|
|
6506
|
-
"read-only": "dds-Input-module__read-only",
|
|
6507
|
-
"input--stateful": "dds-Input-module__input--stateful",
|
|
6508
|
-
"input--hover": "dds-Input-module__input--hover",
|
|
6509
|
-
"input--stateful-danger": "dds-Input-module__input--stateful-danger",
|
|
6510
|
-
"input--large": "dds-Input-module__input--large",
|
|
6511
|
-
"input--medium": "dds-Input-module__input--medium",
|
|
6512
|
-
"input--small": "dds-Input-module__input--small",
|
|
6513
|
-
"input--xsmall": "dds-Input-module__input--xsmall",
|
|
6514
|
-
"input-with-icon--large": "dds-Input-module__input-with-icon--large",
|
|
6515
|
-
"input-with-icon--medium": "dds-Input-module__input-with-icon--medium",
|
|
6516
|
-
"input-with-icon--small": "dds-Input-module__input-with-icon--small",
|
|
6517
|
-
"input-with-icon--xsmall": "dds-Input-module__input-with-icon--xsmall",
|
|
6518
|
-
"input-with-el-right--large": "dds-Input-module__input-with-el-right--large",
|
|
6519
|
-
"input-with-el-right--medium": "dds-Input-module__input-with-el-right--medium",
|
|
6520
|
-
"input-with-el-right--small": "dds-Input-module__input-with-el-right--small",
|
|
6521
|
-
"input-with-el-right--xsmall": "dds-Input-module__input-with-el-right--xsmall",
|
|
6522
|
-
"input-with-btn-right--large": "dds-Input-module__input-with-btn-right--large",
|
|
6523
|
-
"input-with-btn-right--medium": "dds-Input-module__input-with-btn-right--medium",
|
|
6524
|
-
"input-with-btn-right--small": "dds-Input-module__input-with-btn-right--small",
|
|
6525
|
-
"input-with-btn-right--xsmall": "dds-Input-module__input-with-btn-right--xsmall",
|
|
6526
|
-
"input-with-icon-and-button-right--large": "dds-Input-module__input-with-icon-and-button-right--large",
|
|
6527
|
-
"input-with-icon-and-button-right--medium": "dds-Input-module__input-with-icon-and-button-right--medium",
|
|
6528
|
-
"input-with-icon-and-button-right--small": "dds-Input-module__input-with-icon-and-button-right--small",
|
|
6529
|
-
"input-with-icon-and-button-right--xsmall": "dds-Input-module__input-with-icon-and-button-right--xsmall",
|
|
6530
|
-
"input-group__absolute-el-right--large": "dds-Input-module__input-group__absolute-el-right--large",
|
|
6531
|
-
"input-group__absolute-el-right--medium": "dds-Input-module__input-group__absolute-el-right--medium",
|
|
6532
|
-
"input-group__absolute-el-right--small": "dds-Input-module__input-group__absolute-el-right--small",
|
|
6533
|
-
"input-group__absolute-el-right--xsmall": "dds-Input-module__input-group__absolute-el-right--xsmall",
|
|
6534
|
-
"input-group__btn-right": "dds-Input-module__input-group__btn-right",
|
|
6535
|
-
"input-group__btn-right-with-right-icon--xsmall": "dds-Input-module__input-group__btn-right-with-right-icon--xsmall",
|
|
6536
|
-
"input-group__btn-right-with-right-icon--small": "dds-Input-module__input-group__btn-right-with-right-icon--small",
|
|
6537
|
-
"input-group__btn-right-with-right-icon--medium": "dds-Input-module__input-group__btn-right-with-right-icon--medium",
|
|
6538
|
-
"input-group__btn-right-with-right-icon--large": "dds-Input-module__input-group__btn-right-with-right-icon--large",
|
|
6539
|
-
"input--with-affix": "dds-Input-module__input--with-affix",
|
|
6540
|
-
"input-group__absolute-el": "dds-Input-module__input-group__absolute-el",
|
|
6541
|
-
"input-group__absolute-el--large": "dds-Input-module__input-group__absolute-el--large",
|
|
6542
|
-
"input-group__absolute-el--medium": "dds-Input-module__input-group__absolute-el--medium",
|
|
6543
|
-
"input-group__absolute-el--small": "dds-Input-module__input-group__absolute-el--small",
|
|
6544
|
-
"input-group__absolute-el--xsmall": "dds-Input-module__input-group__absolute-el--xsmall"
|
|
6545
|
-
};
|
|
6546
|
-
//#endregion
|
|
6547
6671
|
//#region src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
|
|
6548
6672
|
function CalendarButton({ componentSize = "medium", isReadOnly, ...props }) {
|
|
6549
6673
|
const ref = useRef(null);
|
|
6550
6674
|
const { buttonProps } = useButton(props, ref);
|
|
6551
|
-
return /* @__PURE__ */ jsx(
|
|
6675
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
6552
6676
|
...buttonProps,
|
|
6553
6677
|
ref,
|
|
6554
6678
|
type: "button",
|
|
6555
|
-
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"],
|
|
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),
|
|
6556
6680
|
icon: CalendarIcon,
|
|
6557
|
-
size:
|
|
6681
|
+
size: componentSize,
|
|
6682
|
+
purpose: "tertiary",
|
|
6683
|
+
disabled: props.isDisabled
|
|
6558
6684
|
});
|
|
6559
6685
|
}
|
|
6560
6686
|
//#endregion
|
|
@@ -6569,16 +6695,16 @@ function formatDateFieldSegments(segments) {
|
|
|
6569
6695
|
const formattedDaySegment = {
|
|
6570
6696
|
...daySegment,
|
|
6571
6697
|
text: daySegment.text.padStart(2, "0"),
|
|
6572
|
-
placeholder: t(texts$
|
|
6698
|
+
placeholder: t(texts$23.dayPlaceholder)
|
|
6573
6699
|
};
|
|
6574
6700
|
const formattedMonthSegment = {
|
|
6575
6701
|
...monthSegment,
|
|
6576
6702
|
text: monthSegment.text.padStart(2, "0"),
|
|
6577
|
-
placeholder: t(texts$
|
|
6703
|
+
placeholder: t(texts$23.monthPlaceholder)
|
|
6578
6704
|
};
|
|
6579
6705
|
const formattedYearSegment = {
|
|
6580
6706
|
...yearSegment,
|
|
6581
|
-
placeholder: t(texts$
|
|
6707
|
+
placeholder: t(texts$23.yearPlaceholder)
|
|
6582
6708
|
};
|
|
6583
6709
|
const formattedSeparatorSegment = {
|
|
6584
6710
|
...separatorSegment,
|
|
@@ -6592,7 +6718,7 @@ function formatDateFieldSegments(segments) {
|
|
|
6592
6718
|
formattedYearSegment
|
|
6593
6719
|
];
|
|
6594
6720
|
}
|
|
6595
|
-
const texts$
|
|
6721
|
+
const texts$23 = createTexts({
|
|
6596
6722
|
dayPlaceholder: {
|
|
6597
6723
|
nb: "dd",
|
|
6598
6724
|
no: "dd",
|
|
@@ -6772,7 +6898,7 @@ function DateField({ componentSize = "medium", buttonProps, groupProps, ref, cle
|
|
|
6772
6898
|
}),
|
|
6773
6899
|
suffix: showClearButton && /* @__PURE__ */ jsx(ClearButton, {
|
|
6774
6900
|
absolute: true,
|
|
6775
|
-
"aria-label": t(texts$
|
|
6901
|
+
"aria-label": t(texts$22.clearDate),
|
|
6776
6902
|
"aria-hidden": !hasValue,
|
|
6777
6903
|
className: cn(!hasValue && utilStyles_module_default.invisible),
|
|
6778
6904
|
size: componentSize,
|
|
@@ -6791,7 +6917,7 @@ function DateField({ componentSize = "medium", buttonProps, groupProps, ref, cle
|
|
|
6791
6917
|
});
|
|
6792
6918
|
}
|
|
6793
6919
|
DateField.displayName = "DateField";
|
|
6794
|
-
const texts$
|
|
6920
|
+
const texts$22 = createTexts({ clearDate: {
|
|
6795
6921
|
en: "Clear date",
|
|
6796
6922
|
nb: "Tøm dato",
|
|
6797
6923
|
no: "Tøm dato",
|
|
@@ -7075,7 +7201,8 @@ var Table_module_default = {
|
|
|
7075
7201
|
"cell--right": "dds-Table-module__cell--right",
|
|
7076
7202
|
"cell--center": "dds-Table-module__cell--center",
|
|
7077
7203
|
"cell__inner": "dds-Table-module__cell__inner",
|
|
7078
|
-
"sort-button": "dds-Table-module__sort-button"
|
|
7204
|
+
"sort-button": "dds-Table-module__sort-button",
|
|
7205
|
+
"filter-cell": "dds-Table-module__filter-cell"
|
|
7079
7206
|
};
|
|
7080
7207
|
//#endregion
|
|
7081
7208
|
//#region src/components/DetailList/DetailList.tsx
|
|
@@ -7347,7 +7474,7 @@ const ErrorSummary = ({ heading: pHeading, className, style, children, id, htmlP
|
|
|
7347
7474
|
}) : pHeading ? pHeading : /* @__PURE__ */ jsx(Heading, {
|
|
7348
7475
|
level: 2,
|
|
7349
7476
|
typographyType: "heading-small",
|
|
7350
|
-
children: t(texts$
|
|
7477
|
+
children: t(texts$21.toProceedCorrectErrors)
|
|
7351
7478
|
});
|
|
7352
7479
|
return /* @__PURE__ */ jsxs(Paper, {
|
|
7353
7480
|
...getBaseHTMLProps(id, cn(className, ErrorSummary_module_default.container), style, htmlProps, props),
|
|
@@ -7357,7 +7484,7 @@ const ErrorSummary = ({ heading: pHeading, className, style, children, id, htmlP
|
|
|
7357
7484
|
});
|
|
7358
7485
|
};
|
|
7359
7486
|
ErrorSummary.displayName = "ErrorSummary";
|
|
7360
|
-
const texts$
|
|
7487
|
+
const texts$21 = createTexts({ toProceedCorrectErrors: {
|
|
7361
7488
|
nb: "For å gå videre må du rette opp følgende feil:",
|
|
7362
7489
|
no: "For å gå videre må du rette opp følgende feil:",
|
|
7363
7490
|
nn: "For å gå vidare må du rette opp følgjande feil:",
|
|
@@ -7391,6 +7518,7 @@ const FavStar = ({ id, className, style, onChange, checked: checkedProp, default
|
|
|
7391
7518
|
defaultValue: defaultChecked ?? false,
|
|
7392
7519
|
onChange
|
|
7393
7520
|
});
|
|
7521
|
+
const iconSize = size === "large" ? "8" : "6";
|
|
7394
7522
|
return /* @__PURE__ */ jsxs("label", {
|
|
7395
7523
|
className: cn(className, FavStar_module_default.container, FavStar_module_default[`container--${size}`], focus_module_default["has-focusable-input"]),
|
|
7396
7524
|
style,
|
|
@@ -7402,15 +7530,15 @@ const FavStar = ({ id, className, style, onChange, checked: checkedProp, default
|
|
|
7402
7530
|
checked,
|
|
7403
7531
|
onChange: (e) => setChecked(e.target.checked),
|
|
7404
7532
|
type: "checkbox",
|
|
7405
|
-
"aria-label": props["aria-label"] ?? t(texts$
|
|
7533
|
+
"aria-label": props["aria-label"] ?? t(texts$20.favourite)
|
|
7406
7534
|
}),
|
|
7407
7535
|
/* @__PURE__ */ jsx(Icon, {
|
|
7408
|
-
iconSize
|
|
7536
|
+
iconSize,
|
|
7409
7537
|
icon: StarIcon,
|
|
7410
7538
|
className: FavStar_module_default.icon
|
|
7411
7539
|
}),
|
|
7412
7540
|
/* @__PURE__ */ jsx(Icon, {
|
|
7413
|
-
iconSize
|
|
7541
|
+
iconSize,
|
|
7414
7542
|
icon: StarFilledIcon,
|
|
7415
7543
|
className: cn(FavStar_module_default.icon, !checked && FavStar_module_default["icon--invisible"])
|
|
7416
7544
|
})
|
|
@@ -7418,7 +7546,7 @@ const FavStar = ({ id, className, style, onChange, checked: checkedProp, default
|
|
|
7418
7546
|
});
|
|
7419
7547
|
};
|
|
7420
7548
|
FavStar.displayName = "FavStar";
|
|
7421
|
-
const texts$
|
|
7549
|
+
const texts$20 = createTexts({ favourite: {
|
|
7422
7550
|
nb: "Stjernemarker",
|
|
7423
7551
|
no: "Stjernemarker",
|
|
7424
7552
|
nn: "Stjernemerk",
|
|
@@ -7432,9 +7560,7 @@ var Feedback_module_default = {
|
|
|
7432
7560
|
"rating-container--horizontal": "dds-Feedback-module__rating-container--horizontal",
|
|
7433
7561
|
"rating-container--vertical": "dds-Feedback-module__rating-container--vertical",
|
|
7434
7562
|
"rating-submitted-title": "dds-Feedback-module__rating-submitted-title",
|
|
7435
|
-
"button": "dds-Feedback-module__button"
|
|
7436
|
-
"button--horizontal": "dds-Feedback-module__button--horizontal",
|
|
7437
|
-
"button--vertical": "dds-Feedback-module__button--vertical"
|
|
7563
|
+
"button": "dds-Feedback-module__button"
|
|
7438
7564
|
};
|
|
7439
7565
|
//#endregion
|
|
7440
7566
|
//#region src/components/TextArea/TextArea.module.css
|
|
@@ -7462,7 +7588,7 @@ function CharCounter(props) {
|
|
|
7462
7588
|
"/",
|
|
7463
7589
|
max
|
|
7464
7590
|
]
|
|
7465
|
-
}), /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$
|
|
7591
|
+
}), /* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$19.charsWritten(current, max, max - current)) })]
|
|
7466
7592
|
});
|
|
7467
7593
|
}
|
|
7468
7594
|
const renderCharCounter = (id, isShown, textLength, maxLength) => {
|
|
@@ -7472,7 +7598,7 @@ const renderCharCounter = (id, isShown, textLength, maxLength) => {
|
|
|
7472
7598
|
current: textLength
|
|
7473
7599
|
});
|
|
7474
7600
|
};
|
|
7475
|
-
const texts$
|
|
7601
|
+
const texts$19 = createTexts({ charsWritten: (current, max, remain) => ({
|
|
7476
7602
|
nb: `${current} av ${max} tegn skrevet. ${remain} igjen.`,
|
|
7477
7603
|
no: `${current} av ${max} tegn skrevet. ${remain} igjen.`,
|
|
7478
7604
|
nn: `${current} av ${max} teikn skrivne. ${remain} att.`,
|
|
@@ -7574,12 +7700,12 @@ const CommentComponent = ({ rating, feedbackText, positiveFeedbackLabel, negativ
|
|
|
7574
7700
|
size: "small",
|
|
7575
7701
|
onClick: handleSubmit,
|
|
7576
7702
|
loading,
|
|
7577
|
-
children: t(texts$
|
|
7703
|
+
children: t(texts$18.send)
|
|
7578
7704
|
})
|
|
7579
7705
|
]
|
|
7580
7706
|
});
|
|
7581
7707
|
};
|
|
7582
|
-
const texts$
|
|
7708
|
+
const texts$18 = createTexts({ send: {
|
|
7583
7709
|
nb: "Send inn",
|
|
7584
7710
|
no: "Send inn",
|
|
7585
7711
|
nn: "Send inn",
|
|
@@ -7691,7 +7817,7 @@ const RatingComponent = ({ layout, ratingLabel, loading, thumbUpTooltip, thumbDo
|
|
|
7691
7817
|
children: [/* @__PURE__ */ jsx("h2", {
|
|
7692
7818
|
className: typographyStyles_module_default["label-medium"],
|
|
7693
7819
|
children: ratingLabel
|
|
7694
|
-
}), loading ? /* @__PURE__ */ jsx(Spinner, { tooltip: t(texts$
|
|
7820
|
+
}), loading ? /* @__PURE__ */ jsx(Spinner, { tooltip: t(texts$17.uploadingFeedback) }) : /* @__PURE__ */ jsxs(HStack, {
|
|
7695
7821
|
gap: "x0.75",
|
|
7696
7822
|
children: [/* @__PURE__ */ jsx(Tooltip, {
|
|
7697
7823
|
text: thumbUpTooltip,
|
|
@@ -7715,7 +7841,7 @@ const RatingComponent = ({ layout, ratingLabel, loading, thumbUpTooltip, thumbDo
|
|
|
7715
7841
|
})]
|
|
7716
7842
|
});
|
|
7717
7843
|
};
|
|
7718
|
-
const texts$
|
|
7844
|
+
const texts$17 = createTexts({ uploadingFeedback: {
|
|
7719
7845
|
nb: "Laster opp tilbakemelding...",
|
|
7720
7846
|
no: "Laster opp tilbakemelding...",
|
|
7721
7847
|
nn: "Lastar opp tilbakemelding...",
|
|
@@ -7729,14 +7855,14 @@ const Feedback = ({ layout = "vertical", ratingLabel, positiveFeedbackLabel, neg
|
|
|
7729
7855
|
const [rating, setRating] = useState(null);
|
|
7730
7856
|
const [feedbackText, setFeedbackText] = useState();
|
|
7731
7857
|
const [isFeedbackSubmitted, setIsFeedbackSubmitted] = useState(false);
|
|
7732
|
-
const tRatingLabel = ratingLabel ?? t(texts$
|
|
7733
|
-
const tPositiveFeedbackLabel = positiveFeedbackLabel ?? t(texts$
|
|
7734
|
-
const tNegativeFeedbackLabel = negativeFeedbackLabel ?? t(texts$
|
|
7735
|
-
const tRatingSubmittedTitle = ratingSubmittedTitle ?? t(texts$
|
|
7736
|
-
const tSubmittedTitle = submittedTitle ?? t(texts$
|
|
7737
|
-
const tTextAreaTip = textAreaTip ?? t(texts$
|
|
7738
|
-
const tThumbUpTooltip = thumbUpTooltip ?? t(texts$
|
|
7739
|
-
const tThumbDownTooltip = thumbDownTooltip ?? t(texts$
|
|
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);
|
|
7740
7866
|
useEffect(() => {
|
|
7741
7867
|
if (ratingProp !== void 0) setRating(ratingProp);
|
|
7742
7868
|
}, [ratingProp]);
|
|
@@ -7780,7 +7906,7 @@ const Feedback = ({ layout = "vertical", ratingLabel, positiveFeedbackLabel, neg
|
|
|
7780
7906
|
});
|
|
7781
7907
|
return /* @__PURE__ */ jsx(Paragraph, { children: tSubmittedTitle });
|
|
7782
7908
|
};
|
|
7783
|
-
const texts$
|
|
7909
|
+
const texts$16 = createTexts({
|
|
7784
7910
|
ratingQuestion: {
|
|
7785
7911
|
nb: "Hva syns du om tjenesten?",
|
|
7786
7912
|
no: "Hva syns du om tjenesten?",
|
|
@@ -7941,10 +8067,10 @@ const File$1 = (props) => {
|
|
|
7941
8067
|
type: "button",
|
|
7942
8068
|
onClick: removeFile,
|
|
7943
8069
|
icon: CloseIcon,
|
|
7944
|
-
"aria-label": t(texts$
|
|
8070
|
+
"aria-label": t(texts$15.removeFile(stateFile.name)),
|
|
7945
8071
|
htmlProps: {
|
|
7946
8072
|
"aria-invalid": !isValid ? true : void 0,
|
|
7947
|
-
"aria-errormessage": !isValid ? t(texts$
|
|
8073
|
+
"aria-errormessage": !isValid ? t(texts$15.invalidFile) : void 0,
|
|
7948
8074
|
"aria-describedby": spaceSeparatedIdListGenerator(errorsList.map((e) => e.id))
|
|
7949
8075
|
}
|
|
7950
8076
|
})] })]
|
|
@@ -7955,11 +8081,11 @@ const File$1 = (props) => {
|
|
|
7955
8081
|
purpose: "secondary",
|
|
7956
8082
|
onClick: () => onRetry(fileId),
|
|
7957
8083
|
icon: RefreshIcon,
|
|
7958
|
-
children: t(texts$
|
|
8084
|
+
children: t(texts$15.tryAgain)
|
|
7959
8085
|
})]
|
|
7960
8086
|
}), /* @__PURE__ */ jsx(ErrorList, { errors: errorsList })] });
|
|
7961
8087
|
};
|
|
7962
|
-
const texts$
|
|
8088
|
+
const texts$15 = createTexts({
|
|
7963
8089
|
removeFile: (file) => ({
|
|
7964
8090
|
nb: `Fjern fil ${file}`,
|
|
7965
8091
|
no: `Fjern fil ${file}`,
|
|
@@ -8100,7 +8226,7 @@ const useFileUploader = (props) => {
|
|
|
8100
8226
|
isFileDialogActive: false,
|
|
8101
8227
|
isDragActive: false,
|
|
8102
8228
|
dragCounter: 0,
|
|
8103
|
-
rootErrors: calcRootErrors(t(texts$
|
|
8229
|
+
rootErrors: calcRootErrors(t(texts$14.invalidFileAmount), initialFileUploaderFiles, maxFiles, errorMessage)
|
|
8104
8230
|
});
|
|
8105
8231
|
const { files: stateFiles } = state;
|
|
8106
8232
|
useEffect(() => {
|
|
@@ -8111,7 +8237,7 @@ const useFileUploader = (props) => {
|
|
|
8111
8237
|
return {
|
|
8112
8238
|
name: file.name,
|
|
8113
8239
|
file,
|
|
8114
|
-
errors: accepted ? [] : [t(texts$
|
|
8240
|
+
errors: accepted ? [] : [t(texts$14.invalidFileType)]
|
|
8115
8241
|
};
|
|
8116
8242
|
}
|
|
8117
8243
|
return {
|
|
@@ -8134,7 +8260,7 @@ const useFileUploader = (props) => {
|
|
|
8134
8260
|
useEffect(() => {
|
|
8135
8261
|
dispatch({
|
|
8136
8262
|
type: "setRootErrors",
|
|
8137
|
-
payload: calcRootErrors(t(texts$
|
|
8263
|
+
payload: calcRootErrors(t(texts$14.invalidFileAmount), stateFiles, maxFiles, errorMessage)
|
|
8138
8264
|
});
|
|
8139
8265
|
}, [
|
|
8140
8266
|
dispatch,
|
|
@@ -8165,7 +8291,7 @@ const useFileUploader = (props) => {
|
|
|
8165
8291
|
const newFiles = (await fromEvent(evt)).filter((f) => !existingFileNames.includes(f.name)).map((file) => ({
|
|
8166
8292
|
file,
|
|
8167
8293
|
name: file.name,
|
|
8168
|
-
errors: isFileAccepted(file, accept) ? [] : [t(texts$
|
|
8294
|
+
errors: isFileAccepted(file, accept) ? [] : [t(texts$14.invalidFileType)]
|
|
8169
8295
|
})).concat(stateFiles);
|
|
8170
8296
|
const mergedFiles = [...stateFiles.filter((f) => f.url).map((f) => ({
|
|
8171
8297
|
name: f.name,
|
|
@@ -8257,7 +8383,7 @@ const useFileUploader = (props) => {
|
|
|
8257
8383
|
removeFile
|
|
8258
8384
|
};
|
|
8259
8385
|
};
|
|
8260
|
-
const texts$
|
|
8386
|
+
const texts$14 = createTexts({
|
|
8261
8387
|
invalidFileType: {
|
|
8262
8388
|
nb: "Ugyldig filtype",
|
|
8263
8389
|
no: "Ugyldig filtype",
|
|
@@ -8278,8 +8404,8 @@ const texts$13 = createTexts({
|
|
|
8278
8404
|
const FileUploader = (props) => {
|
|
8279
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;
|
|
8280
8406
|
const { t } = useTranslation();
|
|
8281
|
-
const tDropAreaLabel = dropAreaLabel ?? t(texts$
|
|
8282
|
-
const tBtnLabel = btnLabel ?? t(texts$
|
|
8407
|
+
const tDropAreaLabel = dropAreaLabel ?? t(texts$13.dragAndDropOr);
|
|
8408
|
+
const tBtnLabel = btnLabel ?? t(texts$13.selectFile);
|
|
8283
8409
|
const generatedId = useId();
|
|
8284
8410
|
const uniqueId = id ?? `${generatedId}-fileUploader`;
|
|
8285
8411
|
const { state: { files: stateFiles, isDragActive, rootErrors }, getRootProps, getInputProps, getButtonProps, removeFile } = useFileUploader({
|
|
@@ -8385,7 +8511,7 @@ const FileUploader = (props) => {
|
|
|
8385
8511
|
children: [
|
|
8386
8512
|
input,
|
|
8387
8513
|
tDropAreaLabel,
|
|
8388
|
-
/* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$
|
|
8514
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: t(texts$13.uploadFileWithButton) }),
|
|
8389
8515
|
button
|
|
8390
8516
|
]
|
|
8391
8517
|
}) : /* @__PURE__ */ jsxs(Box, {
|
|
@@ -8398,12 +8524,12 @@ const FileUploader = (props) => {
|
|
|
8398
8524
|
className: cn(readOnly && focus_module_default["focus-styled-sibling"], readOnly && FileUploader_module_default["readonly--file-list"]),
|
|
8399
8525
|
children: [/* @__PURE__ */ jsx(VisuallyHidden, {
|
|
8400
8526
|
id: fileListNameId,
|
|
8401
|
-
children: t(texts$
|
|
8527
|
+
children: t(texts$13.uploadedFiles)
|
|
8402
8528
|
}), inactive && fileListElements.length === 0 ? /* @__PURE__ */ jsx(Typography, {
|
|
8403
8529
|
italic: true,
|
|
8404
8530
|
as: "span",
|
|
8405
8531
|
color: disabled ? "text-subtle" : "text-medium",
|
|
8406
|
-
children: t(texts$
|
|
8532
|
+
children: t(texts$13.noFiles)
|
|
8407
8533
|
}) : /* @__PURE__ */ jsx(StylelessList, {
|
|
8408
8534
|
"aria-labelledby": fileListNameId,
|
|
8409
8535
|
children: fileListElements
|
|
@@ -8413,7 +8539,7 @@ const FileUploader = (props) => {
|
|
|
8413
8539
|
});
|
|
8414
8540
|
};
|
|
8415
8541
|
FileUploader.displayName = "FileUploader";
|
|
8416
|
-
const texts$
|
|
8542
|
+
const texts$13 = createTexts({
|
|
8417
8543
|
dragAndDropOr: {
|
|
8418
8544
|
nb: "Dra og slipp filer her eller",
|
|
8419
8545
|
no: "Dra og slipp filer her eller",
|
|
@@ -8593,7 +8719,7 @@ function FormSummaryEmptyValue() {
|
|
|
8593
8719
|
" ",
|
|
8594
8720
|
/* @__PURE__ */ jsxs(VisuallyHidden, { children: [
|
|
8595
8721
|
" ",
|
|
8596
|
-
t(texts$
|
|
8722
|
+
t(texts$12.noValue),
|
|
8597
8723
|
" "
|
|
8598
8724
|
] })
|
|
8599
8725
|
] });
|
|
@@ -8607,7 +8733,7 @@ function FormSummaryError({ ...props }) {
|
|
|
8607
8733
|
})
|
|
8608
8734
|
});
|
|
8609
8735
|
}
|
|
8610
|
-
const texts$
|
|
8736
|
+
const texts$12 = createTexts({ noValue: {
|
|
8611
8737
|
nb: "Ikke fylt ut",
|
|
8612
8738
|
no: "Ikke fylt ut",
|
|
8613
8739
|
nn: "Ikkje fylt ut",
|
|
@@ -8669,7 +8795,7 @@ const InlineButton = ({ className, color, icon, children, ...rest }) => /* @__PU
|
|
|
8669
8795
|
...rest,
|
|
8670
8796
|
children: icon ? /* @__PURE__ */ jsx(Icon, {
|
|
8671
8797
|
icon,
|
|
8672
|
-
iconSize: "
|
|
8798
|
+
iconSize: "component"
|
|
8673
8799
|
}) : children
|
|
8674
8800
|
});
|
|
8675
8801
|
//#endregion
|
|
@@ -8733,13 +8859,13 @@ const inlineEditVisuallyHidden = (id, clearable) => {
|
|
|
8733
8859
|
return /* @__PURE__ */ jsxs(VisuallyHidden, {
|
|
8734
8860
|
id,
|
|
8735
8861
|
children: [
|
|
8736
|
-
t(texts$
|
|
8862
|
+
t(texts$11.inlineEditInfo),
|
|
8737
8863
|
" ",
|
|
8738
|
-
!clearable && t(texts$
|
|
8864
|
+
!clearable && t(texts$11.notClearable)
|
|
8739
8865
|
]
|
|
8740
8866
|
});
|
|
8741
8867
|
};
|
|
8742
|
-
const texts$
|
|
8868
|
+
const texts$11 = createTexts({
|
|
8743
8869
|
inlineEditInfo: {
|
|
8744
8870
|
nb: "Escape, Enter eller Tab for å lagre.",
|
|
8745
8871
|
no: "Escape, Enter eller Tab for å lagre.",
|
|
@@ -8996,7 +9122,7 @@ const InternalHeader = (props) => {
|
|
|
8996
9122
|
const hasSmallScreenBreakpoint = !!smallScreenBreakpoint;
|
|
8997
9123
|
const hasNavInContextMenu = hasSmallScreenBreakpoint && hasNavigationElements;
|
|
8998
9124
|
const navigation = hasNavigationElements ? /* @__PURE__ */ jsx("nav", {
|
|
8999
|
-
"aria-label": t(texts$
|
|
9125
|
+
"aria-label": t(texts$10.siteNavigation),
|
|
9000
9126
|
children: /* @__PURE__ */ jsx(ShowHide, {
|
|
9001
9127
|
as: StylelessList,
|
|
9002
9128
|
hideBelow: hasSmallScreenBreakpoint ? smallScreenBreakpoint : void 0,
|
|
@@ -9049,7 +9175,7 @@ const InternalHeader = (props) => {
|
|
|
9049
9175
|
children: /* @__PURE__ */ jsxs(OverflowMenuGroup, { children: [/* @__PURE__ */ jsx(Button, {
|
|
9050
9176
|
icon: hasNavInContextMenu ? MenuIcon : MoreVerticalIcon,
|
|
9051
9177
|
purpose: "tertiary",
|
|
9052
|
-
"aria-label": t(texts$
|
|
9178
|
+
"aria-label": t(texts$10.openMenu)
|
|
9053
9179
|
}), /* @__PURE__ */ jsxs(OverflowMenu, {
|
|
9054
9180
|
className: InternalHeader_module_default["context-menu"],
|
|
9055
9181
|
children: [
|
|
@@ -9062,7 +9188,7 @@ const InternalHeader = (props) => {
|
|
|
9062
9188
|
}) }),
|
|
9063
9189
|
hasNavInContextMenu && /* @__PURE__ */ jsx(ShowHide, {
|
|
9064
9190
|
as: "nav",
|
|
9065
|
-
"aria-label": t(texts$
|
|
9191
|
+
"aria-label": t(texts$10.siteNavigation),
|
|
9066
9192
|
showBelow: smallScreenBreakpoint,
|
|
9067
9193
|
children: /* @__PURE__ */ jsx(OverflowMenuList, { children: navItems.map((item, i) => /* @__PURE__ */ createElement(OverflowMenuLink, {
|
|
9068
9194
|
...item,
|
|
@@ -9089,7 +9215,7 @@ const InternalHeader = (props) => {
|
|
|
9089
9215
|
});
|
|
9090
9216
|
};
|
|
9091
9217
|
InternalHeader.displayName = "InternalHeader";
|
|
9092
|
-
const texts$
|
|
9218
|
+
const texts$10 = createTexts({
|
|
9093
9219
|
openMenu: {
|
|
9094
9220
|
nb: "Åpne meny",
|
|
9095
9221
|
no: "Åpne meny",
|
|
@@ -9412,7 +9538,7 @@ const NewsPopover = ({ id, className, style, htmlProps, header, news, defaultAct
|
|
|
9412
9538
|
}),
|
|
9413
9539
|
news.map((slide, i) => {
|
|
9414
9540
|
return /* @__PURE__ */ jsx(Icon, {
|
|
9415
|
-
iconSize: "
|
|
9541
|
+
iconSize: "4",
|
|
9416
9542
|
icon: CircleFilledIcon,
|
|
9417
9543
|
color: activeSlide === i ? "brand-tertiary-default" : "brand-tertiary-subtle"
|
|
9418
9544
|
}, `${slide.heading}-${i}`);
|
|
@@ -9720,7 +9846,7 @@ const DDSOption = ({ testId, ...props }) => /* @__PURE__ */ jsxs(Option, {
|
|
|
9720
9846
|
},
|
|
9721
9847
|
children: [props.isSelected && /* @__PURE__ */ jsx(Icon, {
|
|
9722
9848
|
icon: CheckIcon,
|
|
9723
|
-
iconSize: "
|
|
9849
|
+
iconSize: "component"
|
|
9724
9850
|
}), props.children]
|
|
9725
9851
|
});
|
|
9726
9852
|
const CustomOption = ({ testId, ...props }) => /* @__PURE__ */ jsx(Option, {
|
|
@@ -10049,7 +10175,7 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
|
|
|
10049
10175
|
value: 50
|
|
10050
10176
|
},
|
|
10051
10177
|
{
|
|
10052
|
-
label: t(texts$
|
|
10178
|
+
label: t(texts$9.all),
|
|
10053
10179
|
value: itemsAmount
|
|
10054
10180
|
}
|
|
10055
10181
|
];
|
|
@@ -10124,7 +10250,7 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
|
|
|
10124
10250
|
const navigation = withPagination ? /* @__PURE__ */ jsxs(Box, {
|
|
10125
10251
|
as: "nav",
|
|
10126
10252
|
ref,
|
|
10127
|
-
"aria-label": t(texts$
|
|
10253
|
+
"aria-label": t(texts$9.pagination),
|
|
10128
10254
|
display: "flex",
|
|
10129
10255
|
alignItems: "center",
|
|
10130
10256
|
...!withSelect && !withCounter && { ...baseHTMLProps },
|
|
@@ -10161,7 +10287,7 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
|
|
|
10161
10287
|
onClick: (event) => {
|
|
10162
10288
|
onPageChange(event, 1);
|
|
10163
10289
|
},
|
|
10164
|
-
"aria-label": t(texts$
|
|
10290
|
+
"aria-label": t(texts$9.firstPage)
|
|
10165
10291
|
})
|
|
10166
10292
|
}),
|
|
10167
10293
|
/* @__PURE__ */ jsx(Box, {
|
|
@@ -10197,7 +10323,7 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
|
|
|
10197
10323
|
onClick: (event) => {
|
|
10198
10324
|
onPageChange(event, pagesLength);
|
|
10199
10325
|
},
|
|
10200
|
-
"aria-label": t(texts$
|
|
10326
|
+
"aria-label": t(texts$9.lastPage)
|
|
10201
10327
|
})
|
|
10202
10328
|
})
|
|
10203
10329
|
]
|
|
@@ -10229,16 +10355,16 @@ const Pagination = ({ itemsAmount, defaultItemsPerPage = 10, defaultActivePage =
|
|
|
10229
10355
|
isClearable: false,
|
|
10230
10356
|
onChange: handleSelectChange,
|
|
10231
10357
|
componentSize: "small",
|
|
10232
|
-
"aria-label": t(texts$
|
|
10358
|
+
"aria-label": t(texts$9.itemsPerPage)
|
|
10233
10359
|
}), withCounter && /* @__PURE__ */ jsx(Paragraph, {
|
|
10234
10360
|
typographyType: "body-short-medium",
|
|
10235
|
-
children: t(texts$
|
|
10361
|
+
children: t(texts$9.showsAmountOfTotalItems(activePageFirstItem, activePageLastItem, itemsAmount))
|
|
10236
10362
|
})]
|
|
10237
10363
|
}), navigation]
|
|
10238
10364
|
});
|
|
10239
10365
|
};
|
|
10240
10366
|
Pagination.displayName = "Pagination";
|
|
10241
|
-
const texts$
|
|
10367
|
+
const texts$9 = createTexts({
|
|
10242
10368
|
pagination: {
|
|
10243
10369
|
nb: "Paginering",
|
|
10244
10370
|
no: "Paginering",
|
|
@@ -11548,8 +11674,8 @@ const createCountryOptions = (countries) => {
|
|
|
11548
11674
|
const countryOptions = createCountryOptions(COUNTRIES);
|
|
11549
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 }) => {
|
|
11550
11676
|
const { t } = useTranslation();
|
|
11551
|
-
const tGroupLabel = groupLabel ?? t(texts$
|
|
11552
|
-
const tSelectLabel = selectLabel ?? t(texts$
|
|
11677
|
+
const tGroupLabel = groupLabel ?? t(texts$8.countryCodeAndPhoneNumber);
|
|
11678
|
+
const tSelectLabel = selectLabel ?? t(texts$8.countryCode);
|
|
11553
11679
|
const generatedId = useId();
|
|
11554
11680
|
const uniqueId = props.id ?? generatedId;
|
|
11555
11681
|
const phoneInputId = `${uniqueId}-phone-input`;
|
|
@@ -11698,7 +11824,7 @@ const PhoneInput = ({ label, readOnly, errorMessage, tip, required, width, compo
|
|
|
11698
11824
|
};
|
|
11699
11825
|
PhoneInput.displayName = "PhoneInput";
|
|
11700
11826
|
const getCallingCode = (s) => s.substring(s.indexOf("+"), s.length) ?? "";
|
|
11701
|
-
const texts$
|
|
11827
|
+
const texts$8 = createTexts({
|
|
11702
11828
|
countryCode: {
|
|
11703
11829
|
nb: "Landskode",
|
|
11704
11830
|
no: "Landskode",
|
|
@@ -11802,6 +11928,7 @@ const Popover = ({ id, header, withCloseButton = true, onBlur, children, placeme
|
|
|
11802
11928
|
}),
|
|
11803
11929
|
/* @__PURE__ */ jsx(Box, {
|
|
11804
11930
|
marginBlock: !hasTitle && withCloseButton ? "x2 0" : "0",
|
|
11931
|
+
height: "100%",
|
|
11805
11932
|
children
|
|
11806
11933
|
}),
|
|
11807
11934
|
withCloseButton && /* @__PURE__ */ jsx(Box, {
|
|
@@ -11939,11 +12066,11 @@ const ProgressTrackerItem = (props) => {
|
|
|
11939
12066
|
const stepNumberContent = useMemo(() => {
|
|
11940
12067
|
if (completed) return /* @__PURE__ */ jsx(Icon, {
|
|
11941
12068
|
icon: CheckIcon,
|
|
11942
|
-
iconSize: "
|
|
12069
|
+
iconSize: "5"
|
|
11943
12070
|
});
|
|
11944
12071
|
if (icon !== void 0) return /* @__PURE__ */ jsx(Icon, {
|
|
11945
12072
|
icon,
|
|
11946
|
-
iconSize: "
|
|
12073
|
+
iconSize: "5"
|
|
11947
12074
|
});
|
|
11948
12075
|
return stepNumber;
|
|
11949
12076
|
}, [
|
|
@@ -11970,7 +12097,7 @@ const ProgressTrackerItem = (props) => {
|
|
|
11970
12097
|
color: getTextColor(),
|
|
11971
12098
|
children
|
|
11972
12099
|
})] });
|
|
11973
|
-
const ariaLabel = htmlProps?.["aria-label"] ? htmlProps?.["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts$
|
|
12100
|
+
const ariaLabel = htmlProps?.["aria-label"] ? htmlProps?.["aria-label"] : `${children}, ${stepNumber}. ${completed ? t(texts$7.completed) : t(texts$7.uncompleted)}`;
|
|
11974
12101
|
return /* @__PURE__ */ jsx(Box, {
|
|
11975
12102
|
as: "li",
|
|
11976
12103
|
display: direction === "row" ? "flex" : void 0,
|
|
@@ -11995,7 +12122,7 @@ const ProgressTrackerItem = (props) => {
|
|
|
11995
12122
|
});
|
|
11996
12123
|
};
|
|
11997
12124
|
ProgressTrackerItem.displayName = "ProgressTracker.Item";
|
|
11998
|
-
const texts$
|
|
12125
|
+
const texts$7 = createTexts({
|
|
11999
12126
|
uncompleted: {
|
|
12000
12127
|
nb: "trinn ikke ferdig",
|
|
12001
12128
|
no: "trinn ikke ferdig",
|
|
@@ -12036,7 +12163,7 @@ const ProgressTracker = (() => {
|
|
|
12036
12163
|
direction
|
|
12037
12164
|
},
|
|
12038
12165
|
children: /* @__PURE__ */ jsx("nav", {
|
|
12039
|
-
"aria-label": ariaLabel ?? t(texts$
|
|
12166
|
+
"aria-label": ariaLabel ?? t(texts$6.stepProgression),
|
|
12040
12167
|
...getBaseHTMLProps(id, className, style, htmlProps, rest),
|
|
12041
12168
|
children: /* @__PURE__ */ jsx(Box, {
|
|
12042
12169
|
as: StylelessOList,
|
|
@@ -12066,7 +12193,7 @@ function passIndexPropToProgressTrackerItem(children) {
|
|
|
12066
12193
|
index
|
|
12067
12194
|
}));
|
|
12068
12195
|
}
|
|
12069
|
-
const texts$
|
|
12196
|
+
const texts$6 = createTexts({ stepProgression: {
|
|
12070
12197
|
nb: "Trinnprogresjon",
|
|
12071
12198
|
no: "Trinnprogresjon",
|
|
12072
12199
|
nn: "Trinnprogresjon",
|
|
@@ -12188,7 +12315,7 @@ const SearchSuggestions = ({ id, searchId, className, style, htmlProps, suggesti
|
|
|
12188
12315
|
marginBlock: "x0.25 0",
|
|
12189
12316
|
children: [/* @__PURE__ */ jsx(DropdownHeader, {
|
|
12190
12317
|
id: suggestionsHeaderId,
|
|
12191
|
-
children: t(texts$
|
|
12318
|
+
children: t(texts$5.searchSuggestions)
|
|
12192
12319
|
}), /* @__PURE__ */ jsx(StylelessList, {
|
|
12193
12320
|
role: "listbox",
|
|
12194
12321
|
"aria-labelledby": suggestionsHeaderId,
|
|
@@ -12198,7 +12325,7 @@ const SearchSuggestions = ({ id, searchId, className, style, htmlProps, suggesti
|
|
|
12198
12325
|
children: /* @__PURE__ */ jsx(SearchSuggestionItem, {
|
|
12199
12326
|
index,
|
|
12200
12327
|
focus: focus === index && showSuggestions,
|
|
12201
|
-
"aria-label": t(texts$
|
|
12328
|
+
"aria-label": t(texts$5.search(suggestion)),
|
|
12202
12329
|
onClick: onSuggestionClick,
|
|
12203
12330
|
"aria-setsize": suggestionsToRender.length,
|
|
12204
12331
|
"aria-posinset": index,
|
|
@@ -12210,7 +12337,7 @@ const SearchSuggestions = ({ id, searchId, className, style, htmlProps, suggesti
|
|
|
12210
12337
|
});
|
|
12211
12338
|
};
|
|
12212
12339
|
SearchSuggestions.displayName = "SearchSuggestions";
|
|
12213
|
-
const texts$
|
|
12340
|
+
const texts$5 = createTexts({
|
|
12214
12341
|
search: (suggestion) => ({
|
|
12215
12342
|
no: `${suggestion} søk`,
|
|
12216
12343
|
nb: `${suggestion} søk`,
|
|
@@ -12291,11 +12418,11 @@ const Search$1 = ({ componentSize = "medium", buttonProps, showIcon = true, name
|
|
|
12291
12418
|
showSuggestions: context.showSuggestions
|
|
12292
12419
|
}), /* @__PURE__ */ jsx(VisuallyHidden, {
|
|
12293
12420
|
id: suggestionsDescriptionId,
|
|
12294
|
-
children: t(texts$
|
|
12421
|
+
children: t(texts$4.useArrowKeys)
|
|
12295
12422
|
})] }),
|
|
12296
12423
|
hasValue && /* @__PURE__ */ jsx(ClearButton, {
|
|
12297
12424
|
size: componentSize,
|
|
12298
|
-
"aria-label": t(texts$
|
|
12425
|
+
"aria-label": t(texts$4.clearSearch),
|
|
12299
12426
|
onClick: clearInput
|
|
12300
12427
|
})
|
|
12301
12428
|
]
|
|
@@ -12314,7 +12441,7 @@ const Search$1 = ({ componentSize = "medium", buttonProps, showIcon = true, name
|
|
|
12314
12441
|
size: componentSize,
|
|
12315
12442
|
onClick,
|
|
12316
12443
|
...otherButtonProps,
|
|
12317
|
-
children: buttonLabel ?? t(texts$
|
|
12444
|
+
children: buttonLabel ?? t(texts$4.search)
|
|
12318
12445
|
})]
|
|
12319
12446
|
}) : inputGroup, renderInputMessage({
|
|
12320
12447
|
tip,
|
|
@@ -12322,7 +12449,7 @@ const Search$1 = ({ componentSize = "medium", buttonProps, showIcon = true, name
|
|
|
12322
12449
|
})] })] });
|
|
12323
12450
|
};
|
|
12324
12451
|
Search$1.displayName = "Search";
|
|
12325
|
-
const texts$
|
|
12452
|
+
const texts$4 = createTexts({
|
|
12326
12453
|
clearSearch: {
|
|
12327
12454
|
nb: "Tøm søk",
|
|
12328
12455
|
no: "Tøm søk",
|
|
@@ -12485,7 +12612,7 @@ const SplitButton = ({ size, primaryAction, secondaryActions, purpose = "primary
|
|
|
12485
12612
|
children: [/* @__PURE__ */ jsx(Button, {
|
|
12486
12613
|
...buttonStyleProps,
|
|
12487
12614
|
icon: isOpen ? ChevronUpIcon : ChevronDownIcon,
|
|
12488
|
-
"aria-label": t(texts$
|
|
12615
|
+
"aria-label": t(texts$3.moreActions),
|
|
12489
12616
|
purpose,
|
|
12490
12617
|
className: cn(SplitButton_module_default.option, purpose === "primary" && SplitButton_module_default["option--primary"]),
|
|
12491
12618
|
type: "button"
|
|
@@ -12500,7 +12627,7 @@ const SplitButton = ({ size, primaryAction, secondaryActions, purpose = "primary
|
|
|
12500
12627
|
});
|
|
12501
12628
|
};
|
|
12502
12629
|
SplitButton.displayName = "SplitButton";
|
|
12503
|
-
const texts$
|
|
12630
|
+
const texts$3 = createTexts({ moreActions: {
|
|
12504
12631
|
nb: "Flere handlinger",
|
|
12505
12632
|
no: "Flere handlinger",
|
|
12506
12633
|
nn: "Fleire handlingar",
|
|
@@ -12558,6 +12685,60 @@ const Cell = ({ children, type: _type, layout = "left", collapseKey, className,
|
|
|
12558
12685
|
};
|
|
12559
12686
|
Cell.displayName = "Table.Cell";
|
|
12560
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
|
|
12561
12742
|
//#region src/components/Table/Foot.tsx
|
|
12562
12743
|
const Foot = (props) => /* @__PURE__ */ jsx("tfoot", { ...props });
|
|
12563
12744
|
Foot.displayName = "Table.Foot";
|
|
@@ -12669,9 +12850,9 @@ const texts$1 = createTexts({
|
|
|
12669
12850
|
const SortCell = ({ isSorted, sortOrder, onClick, children, ...rest }) => {
|
|
12670
12851
|
const { t } = useTranslation();
|
|
12671
12852
|
const SortIcon = () => {
|
|
12672
|
-
if (!isSorted || !sortOrder) return
|
|
12673
|
-
if (sortOrder === "ascending") return
|
|
12674
|
-
return
|
|
12853
|
+
if (!isSorted || !sortOrder) return ArrowUpDownIcon;
|
|
12854
|
+
if (sortOrder === "ascending") return ArrowUpIcon;
|
|
12855
|
+
return ArrowDownIcon;
|
|
12675
12856
|
};
|
|
12676
12857
|
return /* @__PURE__ */ jsx(Cell, {
|
|
12677
12858
|
type: "head",
|
|
@@ -12765,6 +12946,7 @@ Table.Head = Head;
|
|
|
12765
12946
|
Table.Body = Body;
|
|
12766
12947
|
Table.Cell = Cell;
|
|
12767
12948
|
Table.SortCell = SortCell;
|
|
12949
|
+
Table.FilterCell = FilterCell;
|
|
12768
12950
|
Table.Row = Row;
|
|
12769
12951
|
Table.Foot = Foot;
|
|
12770
12952
|
//#endregion
|
|
@@ -12836,7 +13018,7 @@ const AddTabButton = ({ ref, children, index, className, width = "1fr", ...rest
|
|
|
12836
13018
|
return /* @__PURE__ */ jsxs("button", {
|
|
12837
13019
|
...rest,
|
|
12838
13020
|
ref: combinedRef,
|
|
12839
|
-
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"]),
|
|
12840
13022
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
12841
13023
|
icon: PlusIcon,
|
|
12842
13024
|
iconSize: "inherit"
|
|
@@ -13050,17 +13232,12 @@ TabPanels.displayName = "TabPanels";
|
|
|
13050
13232
|
//#region src/components/Tag/Tag.module.css
|
|
13051
13233
|
var Tag_module_default = {
|
|
13052
13234
|
"container": "dds-Tag-module__container",
|
|
13053
|
-
"container--
|
|
13054
|
-
"container--
|
|
13055
|
-
"container--
|
|
13056
|
-
"container--
|
|
13057
|
-
"container--
|
|
13058
|
-
"container--
|
|
13059
|
-
"container--danger--strong": "dds-Tag-module__container--danger--strong",
|
|
13060
|
-
"container--warning--default": "dds-Tag-module__container--warning--default",
|
|
13061
|
-
"container--warning--strong": "dds-Tag-module__container--warning--strong",
|
|
13062
|
-
"container--info--default": "dds-Tag-module__container--info--default",
|
|
13063
|
-
"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"
|
|
13064
13241
|
};
|
|
13065
13242
|
//#endregion
|
|
13066
13243
|
//#region src/components/Tag/Tag.tsx
|
|
@@ -13069,12 +13246,42 @@ const icons = {
|
|
|
13069
13246
|
danger: ErrorIcon,
|
|
13070
13247
|
warning: WarningIcon,
|
|
13071
13248
|
success: CheckCircledIcon,
|
|
13072
|
-
|
|
13073
|
-
};
|
|
13074
|
-
const Tag = ({ purpose
|
|
13075
|
-
const
|
|
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;
|
|
13076
13280
|
return /* @__PURE__ */ jsxs(TextOverflowEllipsisWrapper, {
|
|
13077
|
-
...getBaseHTMLProps(id, cn(className, typographyStyles_module_default[
|
|
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),
|
|
13078
13285
|
children: [withIcon && icon && /* @__PURE__ */ jsx(Icon, {
|
|
13079
13286
|
icon,
|
|
13080
13287
|
iconSize: "component"
|
|
@@ -13085,7 +13292,6 @@ Tag.displayName = "Tag";
|
|
|
13085
13292
|
//#endregion
|
|
13086
13293
|
//#region src/components/TextInput/TextInput.module.css
|
|
13087
13294
|
var TextInput_module_default = {
|
|
13088
|
-
"container": "dds-TextInput-module__container",
|
|
13089
13295
|
"container--readonly": "dds-TextInput-module__container--readonly",
|
|
13090
13296
|
"container--disabled": "dds-TextInput-module__container--disabled",
|
|
13091
13297
|
"input--extended": "dds-TextInput-module__input--extended",
|
|
@@ -13157,7 +13363,7 @@ const TextInput = ({ label, afterLabelContent, disabled, readOnly, errorMessage,
|
|
|
13157
13363
|
disabled && TextInput_module_default["affix--disabled"]
|
|
13158
13364
|
];
|
|
13159
13365
|
if (hasIcon) extendedInput = /* @__PURE__ */ jsxs(Box, {
|
|
13160
|
-
className: cn(Input_module_default["input-group"]
|
|
13366
|
+
className: cn(Input_module_default["input-group"]),
|
|
13161
13367
|
width: inputWidth,
|
|
13162
13368
|
children: [/* @__PURE__ */ jsx(Icon, {
|
|
13163
13369
|
icon,
|
|
@@ -13197,7 +13403,7 @@ const TextInput = ({ label, afterLabelContent, disabled, readOnly, errorMessage,
|
|
|
13197
13403
|
]
|
|
13198
13404
|
});
|
|
13199
13405
|
return /* @__PURE__ */ jsxs("div", {
|
|
13200
|
-
className: cn(className, Input_module_default.container,
|
|
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}`]),
|
|
13201
13407
|
style,
|
|
13202
13408
|
children: [
|
|
13203
13409
|
renderLabel({
|
|
@@ -13327,7 +13533,7 @@ const ToggleRadio = ({ value, name, onChange, checked, "aria-label": ariaLabel,
|
|
|
13327
13533
|
as: "span",
|
|
13328
13534
|
justifyContent: "center",
|
|
13329
13535
|
alignItems: "center",
|
|
13330
|
-
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"]),
|
|
13331
13537
|
children: [icon && /* @__PURE__ */ jsx(Icon, {
|
|
13332
13538
|
icon,
|
|
13333
13539
|
iconSize: "component"
|
|
@@ -13337,62 +13543,6 @@ const ToggleRadio = ({ value, name, onChange, checked, "aria-label": ariaLabel,
|
|
|
13337
13543
|
};
|
|
13338
13544
|
ToggleRadio.displayName = "ToggleRadio";
|
|
13339
13545
|
//#endregion
|
|
13340
|
-
|
|
13341
|
-
var ToggleButton_module_default = { "content": "dds-ToggleButton-module__content" };
|
|
13342
|
-
//#endregion
|
|
13343
|
-
//#region src/components/ToggleButton/ToggleButton.tsx
|
|
13344
|
-
const ToggleButton = ({ id, label, icon, size = "small", className, style, htmlProps, ...rest }) => {
|
|
13345
|
-
const generatedId = useId();
|
|
13346
|
-
const uniqueId = id ?? `${generatedId}-toggleButton`;
|
|
13347
|
-
const hasIcon = !!icon;
|
|
13348
|
-
return /* @__PURE__ */ jsxs(Box, {
|
|
13349
|
-
as: "label",
|
|
13350
|
-
htmlFor: uniqueId,
|
|
13351
|
-
width: "fit-content",
|
|
13352
|
-
children: [/* @__PURE__ */ jsx(HiddenInput, {
|
|
13353
|
-
...getBaseHTMLProps(uniqueId, cn(className, focus_module_default["focusable-sibling"]), style, htmlProps, rest),
|
|
13354
|
-
type: "checkbox"
|
|
13355
|
-
}), /* @__PURE__ */ jsxs(Paper, {
|
|
13356
|
-
as: "span",
|
|
13357
|
-
border: "border-default",
|
|
13358
|
-
background: "surface-default",
|
|
13359
|
-
borderRadius: "rounded",
|
|
13360
|
-
width: "fit-content",
|
|
13361
|
-
display: "inline-flex",
|
|
13362
|
-
alignItems: "center",
|
|
13363
|
-
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"]] : []),
|
|
13364
|
-
children: [hasIcon && /* @__PURE__ */ jsx(Icon, {
|
|
13365
|
-
icon,
|
|
13366
|
-
iconSize: "component"
|
|
13367
|
-
}), /* @__PURE__ */ jsx("span", { children: label })]
|
|
13368
|
-
})]
|
|
13369
|
-
});
|
|
13370
|
-
};
|
|
13371
|
-
ToggleButton.displayName = "ToggleButton";
|
|
13372
|
-
//#endregion
|
|
13373
|
-
//#region src/components/ToggleButton/ToggleButtonGroup.tsx
|
|
13374
|
-
const ToggleButtonGroup = (props) => {
|
|
13375
|
-
const { children, direction = "row", label, labelId, id, className, style, htmlProps, ...rest } = props;
|
|
13376
|
-
const generatedId = useId();
|
|
13377
|
-
const uniqueLabelId = labelId ?? `${generatedId}-ToggleButtonGroupLabel`;
|
|
13378
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
13379
|
-
...getBaseHTMLProps(id, className, style, htmlProps, rest),
|
|
13380
|
-
role: "group",
|
|
13381
|
-
"aria-labelledby": label ? uniqueLabelId : void 0,
|
|
13382
|
-
children: [renderGroupLabel({
|
|
13383
|
-
label,
|
|
13384
|
-
id: uniqueLabelId
|
|
13385
|
-
}), /* @__PURE__ */ jsx(Box, {
|
|
13386
|
-
display: "flex",
|
|
13387
|
-
flexWrap: "wrap",
|
|
13388
|
-
gap: "x0.75",
|
|
13389
|
-
flexDirection: direction,
|
|
13390
|
-
children
|
|
13391
|
-
})]
|
|
13392
|
-
});
|
|
13393
|
-
};
|
|
13394
|
-
ToggleButtonGroup.displayName = "ToggleButtonGroup";
|
|
13395
|
-
//#endregion
|
|
13396
|
-
export { Accordion, AccordionBody, AccordionContextProvider, AccordionHeader, AddTabButton, AddressShieldedIcon, AgreementIcon, AnimatedChevronUpDownIcon, AppsIcon, ArchiveIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, 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, 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 };
|
|
13397
13547
|
|
|
13398
13548
|
//# sourceMappingURL=index.mjs.map
|