@utrecht/component-library-react 3.0.0 → 3.0.1-alpha.0

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.
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2023 Gemeente Utrecht
4
+ */
5
+ import { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
6
+ import type { LinkProps } from './Link';
7
+ export interface LinkListLinkProps extends LinkProps {
8
+ icon?: ReactNode;
9
+ }
10
+ export declare const LinkListLink: import("react").ForwardRefExoticComponent<LinkListLinkProps & {
11
+ children?: ReactNode;
12
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
13
+ export interface LinkListProps extends Omit<HTMLAttributes<HTMLUListElement>, 'children'> {
14
+ icon?: () => ReactNode;
15
+ links?: PropsWithChildren<LinkListLinkProps>[];
16
+ }
17
+ export declare const LinkList: import("react").ForwardRefExoticComponent<LinkListProps & {
18
+ children?: ReactNode;
19
+ } & import("react").RefAttributes<HTMLUListElement>>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2023 Gemeente Utrecht
4
+ */
5
+ import { HTMLAttributes, PropsWithChildren, ReactNode } from 'react';
6
+ import type { LinkProps } from './Link';
7
+ export interface LinkListLinkProps extends LinkProps {
8
+ icon?: ReactNode;
9
+ }
10
+ export declare const LinkListLink: import("react").ForwardRefExoticComponent<LinkListLinkProps & {
11
+ children?: ReactNode;
12
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
13
+ export interface LinkListProps extends Omit<HTMLAttributes<HTMLUListElement>, 'children'> {
14
+ icon?: () => ReactNode;
15
+ links?: PropsWithChildren<LinkListLinkProps>[];
16
+ }
17
+ export declare const LinkList: import("react").ForwardRefExoticComponent<LinkListProps & {
18
+ children?: ReactNode;
19
+ } & import("react").RefAttributes<HTMLUListElement>>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import '../../../../components/link-list/css/index.scss';
6
+ export * from '../LinkList';
@@ -94,6 +94,8 @@ export { Link } from './Link';
94
94
  export type { LinkButtonProps } from '../LinkButton';
95
95
  export { LinkButton } from './LinkButton';
96
96
  export type { LinkSocialProps } from '../LinkSocial';
97
+ export { LinkList, LinkListLink } from './LinkList';
98
+ export type { LinkListProps, LinkListLinkProps } from './LinkList';
97
99
  export { LinkSocial } from './LinkSocial';
98
100
  export type { ListSocialProps, ListSocialItemProps } from '../ListSocial';
99
101
  export { ListSocial, ListSocialItem } from './ListSocial';
@@ -96,6 +96,8 @@ export type { LinkButtonProps } from './LinkButton';
96
96
  export { LinkButton } from './LinkButton';
97
97
  export type { LinkSocialProps } from './LinkSocial';
98
98
  export { LinkSocial } from './LinkSocial';
99
+ export type { LinkListProps, LinkListLinkProps } from './LinkList';
100
+ export { LinkList, LinkListLink } from './LinkList';
99
101
  export type { ListSocialProps, ListSocialItemProps } from './ListSocial';
100
102
  export { ListSocial, ListSocialItem } from './ListSocial';
101
103
  export type { LogoProps } from './Logo';