@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.mjs
CHANGED
|
@@ -5939,6 +5939,7 @@ var DetailList_default = {
|
|
|
5939
5939
|
"list--with-dividers": "DetailList_list--with-dividers",
|
|
5940
5940
|
row: "DetailList_row",
|
|
5941
5941
|
"list--striped": "DetailList_list--striped",
|
|
5942
|
+
"list--striped-with-bp": "DetailList_list--striped-with-bp",
|
|
5942
5943
|
"list--small": "DetailList_list--small",
|
|
5943
5944
|
cell: "DetailList_cell",
|
|
5944
5945
|
"list--medium": "DetailList_list--medium",
|
|
@@ -5973,7 +5974,8 @@ var DetailList = ({
|
|
|
5973
5974
|
DetailList_default.list,
|
|
5974
5975
|
DetailList_default[`list--${size2}`],
|
|
5975
5976
|
withDividers && DetailList_default["list--with-dividers"],
|
|
5976
|
-
striped && DetailList_default["list--striped"]
|
|
5977
|
+
striped && !smallScreenBreakpoint && DetailList_default["list--striped"],
|
|
5978
|
+
striped && smallScreenBreakpoint && DetailList_default["list--striped-with-bp"]
|
|
5977
5979
|
),
|
|
5978
5980
|
htmlProps,
|
|
5979
5981
|
rest
|
|
@@ -5991,17 +5993,18 @@ DetailListDesc.displayName = "DetailListDesc";
|
|
|
5991
5993
|
import { Fragment as Fragment5, jsx as jsx235, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5992
5994
|
var DetailListRow = ({ className, ...rest }) => {
|
|
5993
5995
|
const { smallScreenBreakpoint: bp } = useDetailListContext();
|
|
5996
|
+
const hasBp = !!bp;
|
|
5994
5997
|
return /* @__PURE__ */ jsxs46(Fragment5, { children: [
|
|
5995
5998
|
/* @__PURE__ */ jsx235(
|
|
5996
5999
|
Box,
|
|
5997
6000
|
{
|
|
5998
6001
|
display: "table-row",
|
|
5999
|
-
hideBelow: bp,
|
|
6002
|
+
hideBelow: hasBp ? bp : void 0,
|
|
6000
6003
|
className: cn(className, DetailList_default.row),
|
|
6001
6004
|
...rest
|
|
6002
6005
|
}
|
|
6003
6006
|
),
|
|
6004
|
-
/* @__PURE__ */ jsx235(
|
|
6007
|
+
hasBp && /* @__PURE__ */ jsx235(
|
|
6005
6008
|
Box,
|
|
6006
6009
|
{
|
|
6007
6010
|
display: "flex",
|
|
@@ -8182,8 +8185,7 @@ var LocalMessage = ({
|
|
|
8182
8185
|
),
|
|
8183
8186
|
width,
|
|
8184
8187
|
display: "grid",
|
|
8185
|
-
|
|
8186
|
-
padding: "x0.75",
|
|
8188
|
+
padding: "x0.75 x0.75 x0.75 x0.5",
|
|
8187
8189
|
gap: "x0.5",
|
|
8188
8190
|
children: [
|
|
8189
8191
|
/* @__PURE__ */ jsx271(
|
|
@@ -8203,7 +8205,7 @@ var LocalMessage = ({
|
|
|
8203
8205
|
setClosed(true);
|
|
8204
8206
|
onClose && onClose();
|
|
8205
8207
|
},
|
|
8206
|
-
size: "
|
|
8208
|
+
size: "xsmall",
|
|
8207
8209
|
"aria-label": "Lukk melding",
|
|
8208
8210
|
className: LocalMessage_default.container__button
|
|
8209
8211
|
}
|