@developer-overheid-nl/don-register-components 1.0.0 → 1.0.1
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/LICENSE.md +291 -291
- package/README.md +20 -20
- package/package.json +1 -1
- package/src/alert/Alert.tsx +19 -19
- package/src/alert/styles.module.css +3 -3
- package/src/alignBox/AlignBox.tsx +110 -110
- package/src/alignBox/styles.module.css +106 -106
- package/src/article/Article.tsx +10 -10
- package/src/block/Block.tsx +35 -35
- package/src/block/styles.module.css +29 -29
- package/src/button/Button.tsx +3 -3
- package/src/cardAsLink/CardAsLink.tsx +21 -21
- package/src/cardAsLink/styles.module.css +23 -23
- package/src/cardsList/CardsList.tsx +54 -54
- package/src/cardsList/styles.module.css +19 -19
- package/src/client.ts +2 -2
- package/src/container/Container.tsx +10 -10
- package/src/container/styles.module.css +28 -28
- package/src/copyButton/CopyButton.tsx +39 -39
- package/src/copyButton/styles.module.css +13 -13
- package/src/dataBadgeLink/DataBadgeLink.tsx +50 -50
- package/src/dataBadgeLink/styles.module.css +43 -43
- package/src/dataSummary/DataSummary.tsx +22 -22
- package/src/dataSummary/DataSummaryItem.tsx +21 -21
- package/src/dataSummary/styles.module.css +70 -70
- package/src/fieldset/FieldSet.tsx +3 -3
- package/src/filters/Filters.tsx +115 -115
- package/src/filters/styles.module.css +26 -26
- package/src/footer/Footer.tsx +76 -76
- package/src/footer/styles.module.css +103 -103
- package/src/formFieldLabel/FormFieldLabel.tsx +23 -23
- package/src/formFieldTextInput/FormFieldTextInput.tsx +3 -3
- package/src/header/Header.tsx +137 -137
- package/src/header/styles.module.css +71 -71
- package/src/heading/Heading.tsx +10 -10
- package/src/headingGroup/HeadingGroup.tsx +48 -48
- package/src/headingGroup/styles.module.css +3 -3
- package/src/i18n.ts +24 -24
- package/src/iconBadge/IconBadge.tsx +32 -32
- package/src/iconBadge/getAppearance.ts +47 -47
- package/src/iconBadge/styles.module.css +19 -19
- package/src/iconsSprite/Icon.tsx +17 -17
- package/src/iconsSprite/IconsSprite.tsx +5 -5
- package/src/index.ts +80 -80
- package/src/link/Link.tsx +10 -10
- package/src/markdown/Markdown.tsx +42 -42
- package/src/pagination/Pagination.tsx +144 -144
- package/src/pagination/styles.module.css +13 -13
- package/src/paragraph/Paragraph.tsx +10 -10
- package/src/pillBadge/PillBadge.examples.tsx +107 -107
- package/src/pillBadge/PillBadge.tsx +51 -51
- package/src/pillBadge/styles.module.css +194 -194
- package/src/readOnlyTextInput/ReadOnlyTextInput.tsx +24 -24
- package/src/readOnlyTextInput/styles.module.css +19 -19
- package/src/scoreBadge/ScoreBadge.tsx +132 -132
- package/src/search/Search.tsx +66 -66
- package/src/search/styles.module.css +39 -39
- package/src/siteLogo/SiteLogo.tsx +24 -24
- package/src/topNavigation/TopNavigation.tsx +67 -64
- package/src/topNavigation/styles.module.css +54 -54
- package/tsconfig.json +121 -121
package/src/heading/Heading.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type HeadingProps,
|
|
3
|
-
Heading as RHCHeading,
|
|
4
|
-
} from "@rijkshuisstijl-community/components-react";
|
|
5
|
-
|
|
6
|
-
const Heading = (props: HeadingProps) => {
|
|
7
|
-
return <RHCHeading {...props} />;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default Heading;
|
|
1
|
+
import {
|
|
2
|
+
type HeadingProps,
|
|
3
|
+
Heading as RHCHeading,
|
|
4
|
+
} from "@rijkshuisstijl-community/components-react";
|
|
5
|
+
|
|
6
|
+
const Heading = (props: HeadingProps) => {
|
|
7
|
+
return <RHCHeading {...props} />;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default Heading;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Heading,
|
|
3
|
-
type HeadingProps,
|
|
4
|
-
Paragraph,
|
|
5
|
-
HeadingGroup as RHCHeadingGroup,
|
|
6
|
-
type HeadingGroupProps as RHCHeadingGroupProps,
|
|
7
|
-
} from "@rijkshuisstijl-community/components-react";
|
|
8
|
-
import clsx from "clsx";
|
|
9
|
-
import type { HTMLProps, PropsWithChildren, ReactNode } from "react";
|
|
10
|
-
import styles from "./styles.module.css";
|
|
11
|
-
|
|
12
|
-
export interface HeadingGroupProps extends RHCHeadingGroupProps {
|
|
13
|
-
title: string;
|
|
14
|
-
subTitle?: string | ReactNode;
|
|
15
|
-
level: HeadingProps["level"];
|
|
16
|
-
appearanceLevel?: HeadingProps["appearanceLevel"];
|
|
17
|
-
subTitleProps?: HTMLProps<Paragraph>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
const HeadingGroup = (props: PropsWithChildren<HeadingGroupProps>) => {
|
|
21
|
-
const {
|
|
22
|
-
title,
|
|
23
|
-
subTitle,
|
|
24
|
-
level,
|
|
25
|
-
appearanceLevel,
|
|
26
|
-
className,
|
|
27
|
-
subTitleProps,
|
|
28
|
-
children,
|
|
29
|
-
...restProps
|
|
30
|
-
} = props;
|
|
31
|
-
return (
|
|
32
|
-
<RHCHeadingGroup
|
|
33
|
-
className={clsx(className, styles.headingGroup)}
|
|
34
|
-
{...restProps}
|
|
35
|
-
>
|
|
36
|
-
<Heading appearanceLevel={appearanceLevel} level={level}>
|
|
37
|
-
{title}
|
|
38
|
-
</Heading>
|
|
39
|
-
{typeof subTitle === "string" ? (
|
|
40
|
-
<Paragraph {...subTitleProps}>{subTitle}</Paragraph>
|
|
41
|
-
) : (
|
|
42
|
-
subTitle || children
|
|
43
|
-
)}
|
|
44
|
-
</RHCHeadingGroup>
|
|
45
|
-
);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default HeadingGroup;
|
|
1
|
+
import {
|
|
2
|
+
Heading,
|
|
3
|
+
type HeadingProps,
|
|
4
|
+
Paragraph,
|
|
5
|
+
HeadingGroup as RHCHeadingGroup,
|
|
6
|
+
type HeadingGroupProps as RHCHeadingGroupProps,
|
|
7
|
+
} from "@rijkshuisstijl-community/components-react";
|
|
8
|
+
import clsx from "clsx";
|
|
9
|
+
import type { HTMLProps, PropsWithChildren, ReactNode } from "react";
|
|
10
|
+
import styles from "./styles.module.css";
|
|
11
|
+
|
|
12
|
+
export interface HeadingGroupProps extends RHCHeadingGroupProps {
|
|
13
|
+
title: string;
|
|
14
|
+
subTitle?: string | ReactNode;
|
|
15
|
+
level: HeadingProps["level"];
|
|
16
|
+
appearanceLevel?: HeadingProps["appearanceLevel"];
|
|
17
|
+
subTitleProps?: HTMLProps<Paragraph>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const HeadingGroup = (props: PropsWithChildren<HeadingGroupProps>) => {
|
|
21
|
+
const {
|
|
22
|
+
title,
|
|
23
|
+
subTitle,
|
|
24
|
+
level,
|
|
25
|
+
appearanceLevel,
|
|
26
|
+
className,
|
|
27
|
+
subTitleProps,
|
|
28
|
+
children,
|
|
29
|
+
...restProps
|
|
30
|
+
} = props;
|
|
31
|
+
return (
|
|
32
|
+
<RHCHeadingGroup
|
|
33
|
+
className={clsx(className, styles.headingGroup)}
|
|
34
|
+
{...restProps}
|
|
35
|
+
>
|
|
36
|
+
<Heading appearanceLevel={appearanceLevel} level={level}>
|
|
37
|
+
{title}
|
|
38
|
+
</Heading>
|
|
39
|
+
{typeof subTitle === "string" ? (
|
|
40
|
+
<Paragraph {...subTitleProps}>{subTitle}</Paragraph>
|
|
41
|
+
) : (
|
|
42
|
+
subTitle || children
|
|
43
|
+
)}
|
|
44
|
+
</RHCHeadingGroup>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default HeadingGroup;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.headingGroup {
|
|
2
|
-
inline-size: 100%;
|
|
3
|
-
}
|
|
1
|
+
.headingGroup {
|
|
2
|
+
inline-size: 100%;
|
|
3
|
+
}
|
package/src/i18n.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import resources from "@developer-overheid-nl/don-register-locales/nl" with {
|
|
2
|
-
type: "json",
|
|
3
|
-
};
|
|
4
|
-
import { createInstance, type i18n } from "i18next";
|
|
5
|
-
|
|
6
|
-
const i18nInstance: i18n = createInstance({
|
|
7
|
-
lng: "nl",
|
|
8
|
-
fallbackLng: "nl",
|
|
9
|
-
// debug: true,
|
|
10
|
-
|
|
11
|
-
interpolation: {
|
|
12
|
-
escapeValue: false, // not needed for react as it escapes by default
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
resources: {
|
|
16
|
-
nl: {
|
|
17
|
-
translation: resources,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
i18nInstance.init();
|
|
23
|
-
|
|
24
|
-
export default i18nInstance;
|
|
1
|
+
import resources from "@developer-overheid-nl/don-register-locales/nl" with {
|
|
2
|
+
type: "json",
|
|
3
|
+
};
|
|
4
|
+
import { createInstance, type i18n } from "i18next";
|
|
5
|
+
|
|
6
|
+
const i18nInstance: i18n = createInstance({
|
|
7
|
+
lng: "nl",
|
|
8
|
+
fallbackLng: "nl",
|
|
9
|
+
// debug: true,
|
|
10
|
+
|
|
11
|
+
interpolation: {
|
|
12
|
+
escapeValue: false, // not needed for react as it escapes by default
|
|
13
|
+
},
|
|
14
|
+
|
|
15
|
+
resources: {
|
|
16
|
+
nl: {
|
|
17
|
+
translation: resources,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
i18nInstance.init();
|
|
23
|
+
|
|
24
|
+
export default i18nInstance;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import clsx from "clsx";
|
|
2
|
-
import type { HTMLProps } from "react";
|
|
3
|
-
import Icon from "../iconsSprite/Icon";
|
|
4
|
-
import styles from "./styles.module.css";
|
|
5
|
-
|
|
6
|
-
export interface IconBadgeProps extends HTMLProps<HTMLSpanElement> {
|
|
7
|
-
name: string;
|
|
8
|
-
appearance?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default function IconBadge(props: IconBadgeProps) {
|
|
12
|
-
const { className, name, appearance, ...restProps } = props;
|
|
13
|
-
const iconClassName = `don-icon don-icon-${name} ${className || ""}`.trim();
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<span
|
|
17
|
-
className={clsx(
|
|
18
|
-
"utrecht-data-badge",
|
|
19
|
-
`utrecht-data-badge--${appearance || name}`,
|
|
20
|
-
styles,
|
|
21
|
-
)}
|
|
22
|
-
{...restProps}
|
|
23
|
-
>
|
|
24
|
-
<Icon
|
|
25
|
-
width="1.5rem"
|
|
26
|
-
height="1.5rem"
|
|
27
|
-
className={`${iconClassName}`}
|
|
28
|
-
name={name}
|
|
29
|
-
/>
|
|
30
|
-
</span>
|
|
31
|
-
);
|
|
32
|
-
}
|
|
1
|
+
import clsx from "clsx";
|
|
2
|
+
import type { HTMLProps } from "react";
|
|
3
|
+
import Icon from "../iconsSprite/Icon";
|
|
4
|
+
import styles from "./styles.module.css";
|
|
5
|
+
|
|
6
|
+
export interface IconBadgeProps extends HTMLProps<HTMLSpanElement> {
|
|
7
|
+
name: string;
|
|
8
|
+
appearance?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default function IconBadge(props: IconBadgeProps) {
|
|
12
|
+
const { className, name, appearance, ...restProps } = props;
|
|
13
|
+
const iconClassName = `don-icon don-icon-${name} ${className || ""}`.trim();
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<span
|
|
17
|
+
className={clsx(
|
|
18
|
+
"utrecht-data-badge",
|
|
19
|
+
`utrecht-data-badge--${appearance || name}`,
|
|
20
|
+
styles,
|
|
21
|
+
)}
|
|
22
|
+
{...restProps}
|
|
23
|
+
>
|
|
24
|
+
<Icon
|
|
25
|
+
width="1.5rem"
|
|
26
|
+
height="1.5rem"
|
|
27
|
+
className={`${iconClassName}`}
|
|
28
|
+
name={name}
|
|
29
|
+
/>
|
|
30
|
+
</span>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
/* biome-ignore-all lint: TODO: needs a refactor maybe */
|
|
2
|
-
type status = "active" | "deprecated" | "sunset" | "retired";
|
|
3
|
-
|
|
4
|
-
export function getDate(object?: Partial<Record<"status" | status, any>>) {
|
|
5
|
-
if (!object) return;
|
|
6
|
-
|
|
7
|
-
const keys = Object.keys(object);
|
|
8
|
-
const statuses: status[] = ["deprecated", "sunset"];
|
|
9
|
-
let date;
|
|
10
|
-
|
|
11
|
-
statuses.forEach((status) => {
|
|
12
|
-
if (keys.includes(status) && object[status]) {
|
|
13
|
-
date = object[status];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
date &&
|
|
19
|
-
new Date(date).toLocaleDateString("nl-NL", {
|
|
20
|
-
year: "numeric",
|
|
21
|
-
month: "long",
|
|
22
|
-
day: "numeric",
|
|
23
|
-
})
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default function getAppearance(
|
|
28
|
-
object?: Partial<Record<"status" | status, any>>,
|
|
29
|
-
) {
|
|
30
|
-
if (!object) return;
|
|
31
|
-
|
|
32
|
-
const keys = Object.keys(object);
|
|
33
|
-
const statuses: status[] = ["active", "deprecated", "sunset", "retired"];
|
|
34
|
-
let appearance;
|
|
35
|
-
|
|
36
|
-
statuses.forEach((status) => {
|
|
37
|
-
if (keys.includes(status) && object[status]) {
|
|
38
|
-
// If upcoming status is more serious than current status, use that one
|
|
39
|
-
appearance =
|
|
40
|
-
statuses.indexOf(status) > statuses.indexOf(object.status)
|
|
41
|
-
? status
|
|
42
|
-
: object.status;
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
return appearance;
|
|
47
|
-
}
|
|
1
|
+
/* biome-ignore-all lint: TODO: needs a refactor maybe */
|
|
2
|
+
type status = "active" | "deprecated" | "sunset" | "retired";
|
|
3
|
+
|
|
4
|
+
export function getDate(object?: Partial<Record<"status" | status, any>>) {
|
|
5
|
+
if (!object) return;
|
|
6
|
+
|
|
7
|
+
const keys = Object.keys(object);
|
|
8
|
+
const statuses: status[] = ["deprecated", "sunset"];
|
|
9
|
+
let date;
|
|
10
|
+
|
|
11
|
+
statuses.forEach((status) => {
|
|
12
|
+
if (keys.includes(status) && object[status]) {
|
|
13
|
+
date = object[status];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
date &&
|
|
19
|
+
new Date(date).toLocaleDateString("nl-NL", {
|
|
20
|
+
year: "numeric",
|
|
21
|
+
month: "long",
|
|
22
|
+
day: "numeric",
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default function getAppearance(
|
|
28
|
+
object?: Partial<Record<"status" | status, any>>,
|
|
29
|
+
) {
|
|
30
|
+
if (!object) return;
|
|
31
|
+
|
|
32
|
+
const keys = Object.keys(object);
|
|
33
|
+
const statuses: status[] = ["active", "deprecated", "sunset", "retired"];
|
|
34
|
+
let appearance;
|
|
35
|
+
|
|
36
|
+
statuses.forEach((status) => {
|
|
37
|
+
if (keys.includes(status) && object[status]) {
|
|
38
|
+
// If upcoming status is more serious than current status, use that one
|
|
39
|
+
appearance =
|
|
40
|
+
statuses.indexOf(status) > statuses.indexOf(object.status)
|
|
41
|
+
? status
|
|
42
|
+
: object.status;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
return appearance;
|
|
47
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
:global(.utrecht-data-badge--active) {
|
|
2
|
-
--utrecht-data-badge-background-color: var(--rhc-color-groen-100);
|
|
3
|
-
--utrecht-data-badge-color: var(--rhc-color-groen-500);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
:global(.utrecht-data-badge--deprecated) {
|
|
7
|
-
--utrecht-data-badge-background-color: var(--rhc-color-donkergeel-100);
|
|
8
|
-
--utrecht-data-badge-color: var(--rhc-color-donkergeel-500);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:global(.utrecht-data-badge--sunset) {
|
|
12
|
-
--utrecht-data-badge-background-color: var(--rhc-color-oranje-100);
|
|
13
|
-
--utrecht-data-badge-color: var(--rhc-color-oranje-500);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:global(.utrecht-data-badge--retired) {
|
|
17
|
-
--utrecht-data-badge-background-color: var(--rhc-color-rood-100);
|
|
18
|
-
--utrecht-data-badge-color: var(--rhc-color-rood-500);
|
|
19
|
-
}
|
|
1
|
+
:global(.utrecht-data-badge--active) {
|
|
2
|
+
--utrecht-data-badge-background-color: var(--rhc-color-groen-100);
|
|
3
|
+
--utrecht-data-badge-color: var(--rhc-color-groen-500);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
:global(.utrecht-data-badge--deprecated) {
|
|
7
|
+
--utrecht-data-badge-background-color: var(--rhc-color-donkergeel-100);
|
|
8
|
+
--utrecht-data-badge-color: var(--rhc-color-donkergeel-500);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:global(.utrecht-data-badge--sunset) {
|
|
12
|
+
--utrecht-data-badge-background-color: var(--rhc-color-oranje-100);
|
|
13
|
+
--utrecht-data-badge-color: var(--rhc-color-oranje-500);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:global(.utrecht-data-badge--retired) {
|
|
17
|
+
--utrecht-data-badge-background-color: var(--rhc-color-rood-100);
|
|
18
|
+
--utrecht-data-badge-color: var(--rhc-color-rood-500);
|
|
19
|
+
}
|
package/src/iconsSprite/Icon.tsx
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export default function Icon(props: React.HTMLProps<SVGSVGElement>) {
|
|
2
|
-
const { className, name, ...restProps } = props;
|
|
3
|
-
const iconClassName = `don-icon don-icon-${name} ${className || ""}`.trim();
|
|
4
|
-
|
|
5
|
-
return (
|
|
6
|
-
<svg
|
|
7
|
-
width="1rem"
|
|
8
|
-
height="1rem"
|
|
9
|
-
className={`${iconClassName}`}
|
|
10
|
-
role={props.role || "img"}
|
|
11
|
-
aria-label={props["aria-label"]}
|
|
12
|
-
{...restProps}
|
|
13
|
-
>
|
|
14
|
-
<use href={`#icon-${name}`} />
|
|
15
|
-
</svg>
|
|
16
|
-
);
|
|
17
|
-
}
|
|
1
|
+
export default function Icon(props: React.HTMLProps<SVGSVGElement>) {
|
|
2
|
+
const { className, name, ...restProps } = props;
|
|
3
|
+
const iconClassName = `don-icon don-icon-${name} ${className || ""}`.trim();
|
|
4
|
+
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
width="1rem"
|
|
8
|
+
height="1rem"
|
|
9
|
+
className={`${iconClassName}`}
|
|
10
|
+
role={props.role || "img"}
|
|
11
|
+
aria-label={props["aria-label"]}
|
|
12
|
+
{...restProps}
|
|
13
|
+
>
|
|
14
|
+
<use href={`#icon-${name}`} />
|
|
15
|
+
</svg>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Sprite } from "@developer-overheid-nl/proprietary/icons";
|
|
2
|
-
|
|
3
|
-
export default function IconsSprite() {
|
|
4
|
-
return <Sprite />;
|
|
5
|
-
}
|
|
1
|
+
import { Sprite } from "@developer-overheid-nl/proprietary/icons";
|
|
2
|
+
|
|
3
|
+
export default function IconsSprite() {
|
|
4
|
+
return <Sprite />;
|
|
5
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
// Barrel export for all components
|
|
2
|
-
export { type AlertProps, default as Alert } from "./alert/Alert";
|
|
3
|
-
export { type AlignBoxProps, default as AlignBox } from "./alignBox/AlignBox";
|
|
4
|
-
export { default as Article } from "./article/Article";
|
|
5
|
-
export { type BlockProps, default as Block } from "./block/Block";
|
|
6
|
-
export { default as Button } from "./button/Button";
|
|
7
|
-
export {
|
|
8
|
-
type CardAsLinksProps,
|
|
9
|
-
default as CardAsLink,
|
|
10
|
-
} from "./cardAsLink/CardAsLink";
|
|
11
|
-
export {
|
|
12
|
-
CardsListItem,
|
|
13
|
-
type CardsListItemProps,
|
|
14
|
-
type CardsListProps,
|
|
15
|
-
default as CardsList,
|
|
16
|
-
} from "./cardsList/CardsList";
|
|
17
|
-
export { default as Container } from "./container/Container";
|
|
18
|
-
export { default as CopyButton } from "./copyButton/CopyButton"; // client component
|
|
19
|
-
export {
|
|
20
|
-
type DataBadgeLinkProps,
|
|
21
|
-
default as DataBadgeLink,
|
|
22
|
-
} from "./dataBadgeLink/DataBadgeLink";
|
|
23
|
-
export {
|
|
24
|
-
type DataSummaryProps,
|
|
25
|
-
default as DataSummary,
|
|
26
|
-
} from "./dataSummary/DataSummary";
|
|
27
|
-
export {
|
|
28
|
-
type DataSummaryItemProps,
|
|
29
|
-
default as DataSummaryItem,
|
|
30
|
-
} from "./dataSummary/DataSummaryItem";
|
|
31
|
-
export { default as Fieldset } from "./fieldset/FieldSet";
|
|
32
|
-
export { default as Filters } from "./filters/Filters";
|
|
33
|
-
export {
|
|
34
|
-
type ColumnProps,
|
|
35
|
-
default as Footer,
|
|
36
|
-
type FooterProps,
|
|
37
|
-
} from "./footer/Footer";
|
|
38
|
-
export { default as FormFieldLabel } from "./formFieldLabel/FormFieldLabel";
|
|
39
|
-
export { default as FormFieldTextInput } from "./formFieldTextInput/FormFieldTextInput";
|
|
40
|
-
export { default as Header, type HeaderProps } from "./header/Header";
|
|
41
|
-
export { default as Heading } from "./heading/Heading";
|
|
42
|
-
export {
|
|
43
|
-
default as HeadingGroup,
|
|
44
|
-
type HeadingGroupProps,
|
|
45
|
-
} from "./headingGroup/HeadingGroup";
|
|
46
|
-
export { default as getAppearance, getDate } from "./iconBadge/getAppearance";
|
|
47
|
-
export {
|
|
48
|
-
default as IconBadge,
|
|
49
|
-
type IconBadgeProps,
|
|
50
|
-
} from "./iconBadge/IconBadge";
|
|
51
|
-
export { default as Icon } from "./iconsSprite/Icon";
|
|
52
|
-
export { default as IconsSprite } from "./iconsSprite/IconsSprite";
|
|
53
|
-
export { default as Link } from "./link/Link";
|
|
54
|
-
export {
|
|
55
|
-
default as Markdown,
|
|
56
|
-
type HeadingLevels,
|
|
57
|
-
type MarkdownProps,
|
|
58
|
-
} from "./markdown/Markdown";
|
|
59
|
-
export {
|
|
60
|
-
default as Pagination,
|
|
61
|
-
type PaginationProps,
|
|
62
|
-
} from "./pagination/Pagination";
|
|
63
|
-
export { default as Paragraph } from "./paragraph/Paragraph";
|
|
64
|
-
export {
|
|
65
|
-
default as PillBadge,
|
|
66
|
-
type PillBadgeProps,
|
|
67
|
-
} from "./pillBadge/PillBadge";
|
|
68
|
-
export { default as ReadOnlyTextInput } from "./readOnlyTextInput/ReadOnlyTextInput";
|
|
69
|
-
export {
|
|
70
|
-
default as ScoreBadge,
|
|
71
|
-
type ScoreBadgeProps,
|
|
72
|
-
} from "./scoreBadge/ScoreBadge";
|
|
73
|
-
export { default as Search, type SearchProps } from "./search/Search";
|
|
74
|
-
export { default as SiteLogo } from "./siteLogo/SiteLogo";
|
|
75
|
-
export {
|
|
76
|
-
default as TopNavigation,
|
|
77
|
-
type NavBarItem,
|
|
78
|
-
processNavBarItems,
|
|
79
|
-
type TopNavigationProps,
|
|
80
|
-
} from "./topNavigation/TopNavigation";
|
|
1
|
+
// Barrel export for all components
|
|
2
|
+
export { type AlertProps, default as Alert } from "./alert/Alert";
|
|
3
|
+
export { type AlignBoxProps, default as AlignBox } from "./alignBox/AlignBox";
|
|
4
|
+
export { default as Article } from "./article/Article";
|
|
5
|
+
export { type BlockProps, default as Block } from "./block/Block";
|
|
6
|
+
export { default as Button } from "./button/Button";
|
|
7
|
+
export {
|
|
8
|
+
type CardAsLinksProps,
|
|
9
|
+
default as CardAsLink,
|
|
10
|
+
} from "./cardAsLink/CardAsLink";
|
|
11
|
+
export {
|
|
12
|
+
CardsListItem,
|
|
13
|
+
type CardsListItemProps,
|
|
14
|
+
type CardsListProps,
|
|
15
|
+
default as CardsList,
|
|
16
|
+
} from "./cardsList/CardsList";
|
|
17
|
+
export { default as Container } from "./container/Container";
|
|
18
|
+
export { default as CopyButton } from "./copyButton/CopyButton"; // client component
|
|
19
|
+
export {
|
|
20
|
+
type DataBadgeLinkProps,
|
|
21
|
+
default as DataBadgeLink,
|
|
22
|
+
} from "./dataBadgeLink/DataBadgeLink";
|
|
23
|
+
export {
|
|
24
|
+
type DataSummaryProps,
|
|
25
|
+
default as DataSummary,
|
|
26
|
+
} from "./dataSummary/DataSummary";
|
|
27
|
+
export {
|
|
28
|
+
type DataSummaryItemProps,
|
|
29
|
+
default as DataSummaryItem,
|
|
30
|
+
} from "./dataSummary/DataSummaryItem";
|
|
31
|
+
export { default as Fieldset } from "./fieldset/FieldSet";
|
|
32
|
+
export { default as Filters } from "./filters/Filters";
|
|
33
|
+
export {
|
|
34
|
+
type ColumnProps,
|
|
35
|
+
default as Footer,
|
|
36
|
+
type FooterProps,
|
|
37
|
+
} from "./footer/Footer";
|
|
38
|
+
export { default as FormFieldLabel } from "./formFieldLabel/FormFieldLabel";
|
|
39
|
+
export { default as FormFieldTextInput } from "./formFieldTextInput/FormFieldTextInput";
|
|
40
|
+
export { default as Header, type HeaderProps } from "./header/Header";
|
|
41
|
+
export { default as Heading } from "./heading/Heading";
|
|
42
|
+
export {
|
|
43
|
+
default as HeadingGroup,
|
|
44
|
+
type HeadingGroupProps,
|
|
45
|
+
} from "./headingGroup/HeadingGroup";
|
|
46
|
+
export { default as getAppearance, getDate } from "./iconBadge/getAppearance";
|
|
47
|
+
export {
|
|
48
|
+
default as IconBadge,
|
|
49
|
+
type IconBadgeProps,
|
|
50
|
+
} from "./iconBadge/IconBadge";
|
|
51
|
+
export { default as Icon } from "./iconsSprite/Icon";
|
|
52
|
+
export { default as IconsSprite } from "./iconsSprite/IconsSprite";
|
|
53
|
+
export { default as Link } from "./link/Link";
|
|
54
|
+
export {
|
|
55
|
+
default as Markdown,
|
|
56
|
+
type HeadingLevels,
|
|
57
|
+
type MarkdownProps,
|
|
58
|
+
} from "./markdown/Markdown";
|
|
59
|
+
export {
|
|
60
|
+
default as Pagination,
|
|
61
|
+
type PaginationProps,
|
|
62
|
+
} from "./pagination/Pagination";
|
|
63
|
+
export { default as Paragraph } from "./paragraph/Paragraph";
|
|
64
|
+
export {
|
|
65
|
+
default as PillBadge,
|
|
66
|
+
type PillBadgeProps,
|
|
67
|
+
} from "./pillBadge/PillBadge";
|
|
68
|
+
export { default as ReadOnlyTextInput } from "./readOnlyTextInput/ReadOnlyTextInput";
|
|
69
|
+
export {
|
|
70
|
+
default as ScoreBadge,
|
|
71
|
+
type ScoreBadgeProps,
|
|
72
|
+
} from "./scoreBadge/ScoreBadge";
|
|
73
|
+
export { default as Search, type SearchProps } from "./search/Search";
|
|
74
|
+
export { default as SiteLogo } from "./siteLogo/SiteLogo";
|
|
75
|
+
export {
|
|
76
|
+
default as TopNavigation,
|
|
77
|
+
type NavBarItem,
|
|
78
|
+
processNavBarItems,
|
|
79
|
+
type TopNavigationProps,
|
|
80
|
+
} from "./topNavigation/TopNavigation";
|
package/src/link/Link.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type LinkProps,
|
|
3
|
-
Link as RHCLink,
|
|
4
|
-
} from "@rijkshuisstijl-community/components-react";
|
|
5
|
-
|
|
6
|
-
const Link = (props: LinkProps) => {
|
|
7
|
-
return <RHCLink {...props} />;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export default Link;
|
|
1
|
+
import {
|
|
2
|
+
type LinkProps,
|
|
3
|
+
Link as RHCLink,
|
|
4
|
+
} from "@rijkshuisstijl-community/components-react";
|
|
5
|
+
|
|
6
|
+
const Link = (props: LinkProps) => {
|
|
7
|
+
return <RHCLink {...props} />;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default Link;
|