@norges-domstoler/dds-components 0.0.0-dev-20250429123723 → 0.0.0-dev-20250429135546
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.css +10 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6264,6 +6264,7 @@ var DetailList_default = {
|
|
|
6264
6264
|
"list--with-dividers": "DetailList_list--with-dividers",
|
|
6265
6265
|
row: "DetailList_row",
|
|
6266
6266
|
"list--striped": "DetailList_list--striped",
|
|
6267
|
+
"list--striped-with-bp": "DetailList_list--striped-with-bp",
|
|
6267
6268
|
"list--small": "DetailList_list--small",
|
|
6268
6269
|
cell: "DetailList_cell",
|
|
6269
6270
|
"list--medium": "DetailList_list--medium",
|
|
@@ -6298,7 +6299,8 @@ var DetailList = ({
|
|
|
6298
6299
|
DetailList_default.list,
|
|
6299
6300
|
DetailList_default[`list--${size2}`],
|
|
6300
6301
|
withDividers && DetailList_default["list--with-dividers"],
|
|
6301
|
-
striped && DetailList_default["list--striped"]
|
|
6302
|
+
striped && !smallScreenBreakpoint && DetailList_default["list--striped"],
|
|
6303
|
+
striped && smallScreenBreakpoint && DetailList_default["list--striped-with-bp"]
|
|
6302
6304
|
),
|
|
6303
6305
|
htmlProps,
|
|
6304
6306
|
rest
|
|
@@ -6316,17 +6318,18 @@ DetailListDesc.displayName = "DetailListDesc";
|
|
|
6316
6318
|
var import_jsx_runtime235 = require("react/jsx-runtime");
|
|
6317
6319
|
var DetailListRow = ({ className, ...rest }) => {
|
|
6318
6320
|
const { smallScreenBreakpoint: bp } = useDetailListContext();
|
|
6321
|
+
const hasBp = !!bp;
|
|
6319
6322
|
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(import_jsx_runtime235.Fragment, { children: [
|
|
6320
6323
|
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
6321
6324
|
Box,
|
|
6322
6325
|
{
|
|
6323
6326
|
display: "table-row",
|
|
6324
|
-
hideBelow: bp,
|
|
6327
|
+
hideBelow: hasBp ? bp : void 0,
|
|
6325
6328
|
className: cn(className, DetailList_default.row),
|
|
6326
6329
|
...rest
|
|
6327
6330
|
}
|
|
6328
6331
|
),
|
|
6329
|
-
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
6332
|
+
hasBp && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
6330
6333
|
Box,
|
|
6331
6334
|
{
|
|
6332
6335
|
display: "flex",
|
|
@@ -8478,8 +8481,7 @@ var LocalMessage = ({
|
|
|
8478
8481
|
),
|
|
8479
8482
|
width,
|
|
8480
8483
|
display: "grid",
|
|
8481
|
-
|
|
8482
|
-
padding: "x0.75",
|
|
8484
|
+
padding: "x0.75 x0.75 x0.75 x0.5",
|
|
8483
8485
|
gap: "x0.5",
|
|
8484
8486
|
children: [
|
|
8485
8487
|
/* @__PURE__ */ (0, import_jsx_runtime272.jsx)(
|
|
@@ -8499,7 +8501,7 @@ var LocalMessage = ({
|
|
|
8499
8501
|
setClosed(true);
|
|
8500
8502
|
onClose && onClose();
|
|
8501
8503
|
},
|
|
8502
|
-
size: "
|
|
8504
|
+
size: "xsmall",
|
|
8503
8505
|
"aria-label": "Lukk melding",
|
|
8504
8506
|
className: LocalMessage_default.container__button
|
|
8505
8507
|
}
|