@norges-domstoler/dds-components 0.0.0-dev-20260720134425 → 0.0.0-dev-20260721121115
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 +17 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +6 -16
- package/dist/index.d.cts +6 -7
- package/dist/index.d.mts +6 -7
- package/dist/index.mjs +17 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1254,6 +1254,7 @@ const BACKGROUNDS = [
|
|
|
1254
1254
|
"surface-default",
|
|
1255
1255
|
"surface-subtle",
|
|
1256
1256
|
"surface-medium",
|
|
1257
|
+
"surface-skeleton",
|
|
1257
1258
|
"surface-inverse-default",
|
|
1258
1259
|
"surface-danger-default",
|
|
1259
1260
|
"surface-danger-strong",
|
|
@@ -1654,13 +1655,17 @@ var Paper_module_default = {
|
|
|
1654
1655
|
"container": "dds-Paper-module__container",
|
|
1655
1656
|
"shadow--small": "dds-Paper-module__shadow--small",
|
|
1656
1657
|
"shadow--medium": "dds-Paper-module__shadow--medium",
|
|
1657
|
-
"shadow--large": "dds-Paper-module__shadow--large"
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
"border-radius--
|
|
1663
|
-
"border-radius--
|
|
1658
|
+
"shadow--large": "dds-Paper-module__shadow--large"
|
|
1659
|
+
};
|
|
1660
|
+
//#endregion
|
|
1661
|
+
//#region src/components/layout/common/surface.module.css
|
|
1662
|
+
var surface_module_default = {
|
|
1663
|
+
"border-radius--button": "dds-surface-module__border-radius--button",
|
|
1664
|
+
"border-radius--surface": "dds-surface-module__border-radius--surface",
|
|
1665
|
+
"border-radius--chip": "dds-surface-module__border-radius--chip",
|
|
1666
|
+
"border-radius--input": "dds-surface-module__border-radius--input",
|
|
1667
|
+
"border-radius--rounded": "dds-surface-module__border-radius--rounded",
|
|
1668
|
+
"border-radius--0": "dds-surface-module__border-radius--0"
|
|
1664
1669
|
};
|
|
1665
1670
|
//#endregion
|
|
1666
1671
|
//#region src/components/layout/Paper/Paper.tsx
|
|
@@ -1669,7 +1674,7 @@ const Paper = ({ id, elevation, border, borderRadius = "surface", background = "
|
|
|
1669
1674
|
...getCSSProperties(background, "paper", "background"),
|
|
1670
1675
|
...getCSSProperties(border, "paper", "border")
|
|
1671
1676
|
};
|
|
1672
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, { ...getBaseHTMLProps(id, cn(className, Paper_module_default.container, elevation && Paper_module_default[`shadow--${elevation}`],
|
|
1677
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Box, { ...getBaseHTMLProps(id, cn(className, Paper_module_default.container, elevation && Paper_module_default[`shadow--${elevation}`], surface_module_default[`border-radius--${borderRadius}`], Paper_module_default.background, border && Paper_module_default.border), {
|
|
1673
1678
|
...style,
|
|
1674
1679
|
...styleVariables
|
|
1675
1680
|
}, htmlProps, rest) });
|
|
@@ -12039,16 +12044,11 @@ var Skeleton_module_default = {
|
|
|
12039
12044
|
};
|
|
12040
12045
|
//#endregion
|
|
12041
12046
|
//#region src/components/Skeleton/Skeleton.tsx
|
|
12042
|
-
const Skeleton = ({
|
|
12043
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
12044
|
-
width,
|
|
12045
|
-
height,
|
|
12046
|
-
ref,
|
|
12047
|
+
const Skeleton = ({ borderRadius = "surface", className, ...rest }) => {
|
|
12048
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Paper, {
|
|
12047
12049
|
className: cn(className, Skeleton_module_default.container),
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
borderRadius
|
|
12051
|
-
},
|
|
12050
|
+
borderRadius,
|
|
12051
|
+
background: "surface-skeleton",
|
|
12052
12052
|
...rest
|
|
12053
12053
|
});
|
|
12054
12054
|
};
|