@norges-domstoler/dds-components 0.0.0-dev-20250409122349 → 0.0.0-dev-20250410075606
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 +0 -3
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +13 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -271,9 +271,12 @@ declare const Label: {
|
|
|
271
271
|
displayName: string;
|
|
272
272
|
};
|
|
273
273
|
|
|
274
|
-
type LegendProps = BaseComponentPropsWithChildren<HTMLLegendElement, BaseTypographyProps
|
|
274
|
+
type LegendProps = BaseComponentPropsWithChildren<HTMLLegendElement, BaseTypographyProps & {
|
|
275
|
+
/**Typografistil basert på utvalget for HTML heading elementer. */
|
|
276
|
+
typographyType?: TypographyHeadingType;
|
|
277
|
+
}>;
|
|
275
278
|
declare const Legend: {
|
|
276
|
-
({ id, className, htmlProps,
|
|
279
|
+
({ id, className, htmlProps, typographyType, ...rest }: LegendProps): react_jsx_runtime.JSX.Element;
|
|
277
280
|
displayName: string;
|
|
278
281
|
};
|
|
279
282
|
|
package/dist/index.d.ts
CHANGED
|
@@ -271,9 +271,12 @@ declare const Label: {
|
|
|
271
271
|
displayName: string;
|
|
272
272
|
};
|
|
273
273
|
|
|
274
|
-
type LegendProps = BaseComponentPropsWithChildren<HTMLLegendElement, BaseTypographyProps
|
|
274
|
+
type LegendProps = BaseComponentPropsWithChildren<HTMLLegendElement, BaseTypographyProps & {
|
|
275
|
+
/**Typografistil basert på utvalget for HTML heading elementer. */
|
|
276
|
+
typographyType?: TypographyHeadingType;
|
|
277
|
+
}>;
|
|
275
278
|
declare const Legend: {
|
|
276
|
-
({ id, className, htmlProps,
|
|
279
|
+
({ id, className, htmlProps, typographyType, ...rest }: LegendProps): react_jsx_runtime.JSX.Element;
|
|
277
280
|
displayName: string;
|
|
278
281
|
};
|
|
279
282
|
|
package/dist/index.js
CHANGED
|
@@ -425,7 +425,6 @@ var typographyStyles_default = {
|
|
|
425
425
|
"label-medium": "typographyStyles_label-medium",
|
|
426
426
|
"label-medium--margins": "typographyStyles_label-medium--margins",
|
|
427
427
|
legend: "typographyStyles_legend",
|
|
428
|
-
"legend--margins": "typographyStyles_legend--margins",
|
|
429
428
|
"caption--withMargins": "typographyStyles_caption--withMargins",
|
|
430
429
|
bold: "typographyStyles_bold",
|
|
431
430
|
italic: "typographyStyles_italic",
|
|
@@ -2422,7 +2421,6 @@ var Typography = (props) => {
|
|
|
2422
2421
|
typographyStyles_default[typographyCn],
|
|
2423
2422
|
withMargins && typographyStyles_default[`${typographyCn}--margins`],
|
|
2424
2423
|
isLegend(as) && typographyStyles_default.legend,
|
|
2425
|
-
isLegend(as) && withMargins && typographyStyles_default["legend--margins"],
|
|
2426
2424
|
isCaption(as) && withMargins && typographyStyles_default["caption--withMargins"],
|
|
2427
2425
|
bold && typographyStyles_default.bold,
|
|
2428
2426
|
underline && typographyStyles_default.underline,
|
|
@@ -2564,7 +2562,7 @@ var Legend = ({
|
|
|
2564
2562
|
id,
|
|
2565
2563
|
className,
|
|
2566
2564
|
htmlProps,
|
|
2567
|
-
|
|
2565
|
+
typographyType = "headingLarge",
|
|
2568
2566
|
...rest
|
|
2569
2567
|
}) => {
|
|
2570
2568
|
return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
|
|
@@ -2572,8 +2570,7 @@ var Legend = ({
|
|
|
2572
2570
|
{
|
|
2573
2571
|
...getBaseHTMLProps(id, className, htmlProps, rest),
|
|
2574
2572
|
as: "legend",
|
|
2575
|
-
typographyType
|
|
2576
|
-
children
|
|
2573
|
+
typographyType
|
|
2577
2574
|
}
|
|
2578
2575
|
);
|
|
2579
2576
|
};
|
|
@@ -7402,13 +7399,18 @@ var FooterLogo = ({ hideBreakpoint, ...rest }) => {
|
|
|
7402
7399
|
return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
7403
7400
|
Box,
|
|
7404
7401
|
{
|
|
7405
|
-
as: "img",
|
|
7406
7402
|
hideBelow: hideBreakpoint ? hideBreakpoint : void 0,
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7403
|
+
width: "fit-content",
|
|
7404
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(
|
|
7405
|
+
"img",
|
|
7406
|
+
{
|
|
7407
|
+
height: 80,
|
|
7408
|
+
width: 151,
|
|
7409
|
+
alt: "norges domstoler",
|
|
7410
|
+
src: norges_domstoler_logo_default,
|
|
7411
|
+
...rest
|
|
7412
|
+
}
|
|
7413
|
+
)
|
|
7412
7414
|
}
|
|
7413
7415
|
);
|
|
7414
7416
|
};
|