@gemeente-tilburg/components-react 0.0.0-stage → 0.1.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 +288 -0
- package/README.md +28 -2
- package/dist/Accordion.d.ts +24 -0
- package/dist/Alert.d.ts +26 -0
- package/dist/AlertDialog.d.ts +13 -0
- package/dist/Article.d.ts +5 -0
- package/dist/BadgeStatus.d.ts +10 -0
- package/dist/Breadcrumb.d.ts +17 -0
- package/dist/Button.d.ts +13 -0
- package/dist/ButtonGroup.d.ts +7 -0
- package/dist/ButtonLink.d.ts +11 -0
- package/dist/Checkbox.d.ts +7 -0
- package/dist/Combobox.d.ts +41 -0
- package/dist/DataList.d.ts +20 -0
- package/dist/Document.d.ts +5 -0
- package/dist/Fieldset.d.ts +8 -0
- package/dist/FormField.d.ts +11 -0
- package/dist/FormFieldDescription.d.ts +9 -0
- package/dist/FormLabel.d.ts +11 -0
- package/dist/Heading1.d.ts +6 -0
- package/dist/Heading2.d.ts +6 -0
- package/dist/Heading3.d.ts +6 -0
- package/dist/Heading4.d.ts +6 -0
- package/dist/Heading5.d.ts +6 -0
- package/dist/Heading6.d.ts +6 -0
- package/dist/HtmlContent.d.ts +6 -0
- package/dist/LanguageToggle.d.ts +12 -0
- package/dist/Link.d.ts +10 -0
- package/dist/LoadingSpinner.d.ts +9 -0
- package/dist/Modal.d.ts +19 -0
- package/dist/OrderedList.d.ts +8 -0
- package/dist/Page.d.ts +5 -0
- package/dist/PageContent.d.ts +5 -0
- package/dist/PageFooter.d.ts +13 -0
- package/dist/PageHeader.d.ts +13 -0
- package/dist/Pagination.d.ts +25 -0
- package/dist/Paragraph.d.ts +8 -0
- package/dist/PasswordInput.d.ts +15 -0
- package/dist/ProgressBar.d.ts +13 -0
- package/dist/RadioButton.d.ts +6 -0
- package/dist/Select.d.ts +9 -0
- package/dist/Separator.d.ts +6 -0
- package/dist/SkipLink.d.ts +18 -0
- package/dist/Table.d.ts +36 -0
- package/dist/Textarea.d.ts +6 -0
- package/dist/Textbox.d.ts +6 -0
- package/dist/Tooltip.d.ts +23 -0
- package/dist/UnorderedList.d.ts +10 -0
- package/dist/ValidationMessage.d.ts +13 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +94 -0
- package/dist/index.esm.js +1560 -0
- package/dist/style.css +1 -0
- package/package.json +83 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/language-toggle/index.scss';
|
|
2
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
+
export interface LanguageOption {
|
|
4
|
+
code: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface LanguageToggleProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'onToggle'> {
|
|
8
|
+
options?: LanguageOption[];
|
|
9
|
+
active?: string | null;
|
|
10
|
+
onToggle?: (code: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const LanguageToggle: import("react").ForwardRefExoticComponent<LanguageToggleProps & import("react").RefAttributes<HTMLButtonElement>>;
|
package/dist/Link.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/link/index.scss';
|
|
2
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
3
|
+
export type AriaCurrent = 'page' | 'step' | 'location' | 'date' | 'time' | true | false;
|
|
4
|
+
export interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'aria-current'> {
|
|
5
|
+
external?: boolean;
|
|
6
|
+
current?: AriaCurrent;
|
|
7
|
+
}
|
|
8
|
+
export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & {
|
|
9
|
+
children?: import("react").ReactNode;
|
|
10
|
+
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/loading-spinner/index.scss';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
export interface LoadingSpinnerProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
title?: string | null;
|
|
6
|
+
message?: string | null;
|
|
7
|
+
delayMs?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const LoadingSpinner: import("react").ForwardRefExoticComponent<LoadingSpinnerProps & import("react").RefAttributes<HTMLDivElement>>;
|
package/dist/Modal.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/modal/index.scss';
|
|
2
|
+
import { DialogHTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
export interface ModalProps extends Omit<DialogHTMLAttributes<HTMLDialogElement>, 'title' | 'open' | 'onClose'> {
|
|
4
|
+
/** Heading text; also the dialog's accessible name (`aria-labelledby`). */
|
|
5
|
+
title: string;
|
|
6
|
+
/** Controlled open state: `true` opens the dialog modally (`showModal()`), `false` closes it. */
|
|
7
|
+
open?: boolean;
|
|
8
|
+
/** Visible text of the close button in the header. */
|
|
9
|
+
closeLabel?: string;
|
|
10
|
+
/** Close when the backdrop (the area outside the dialog box) is clicked. */
|
|
11
|
+
closeOnBackdropClick?: boolean;
|
|
12
|
+
/** Rendered inside `<footer class="tilburg-modal__footer">`; omit for no footer. */
|
|
13
|
+
footer?: ReactNode;
|
|
14
|
+
/** Fired after the dialog closed — close button, Escape, backdrop click or `dialog.close()`. */
|
|
15
|
+
onClose?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const Modal: import("react").ForwardRefExoticComponent<ModalProps & {
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
} & import("react").RefAttributes<HTMLDialogElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/ordered-list/index.scss';
|
|
2
|
+
import { OlHTMLAttributes } from 'react';
|
|
3
|
+
export interface OrderedListProps extends OlHTMLAttributes<HTMLOListElement> {
|
|
4
|
+
byLetter?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const OrderedList: import("react").ForwardRefExoticComponent<OrderedListProps & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
} & import("react").RefAttributes<HTMLOListElement>>;
|
package/dist/Page.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type PageProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
export declare const Page: import("react").ForwardRefExoticComponent<PageProps & {
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type PageContentProps = HTMLAttributes<HTMLElement>;
|
|
3
|
+
export declare const PageContent: import("react").ForwardRefExoticComponent<PageContentProps & {
|
|
4
|
+
children?: import("react").ReactNode;
|
|
5
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/page-footer/index.scss';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
export interface PageFooterLink {
|
|
4
|
+
label: string;
|
|
5
|
+
href: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PageFooterProps extends HTMLAttributes<HTMLElement> {
|
|
8
|
+
links?: PageFooterLink[];
|
|
9
|
+
primaryLink?: PageFooterLink | null;
|
|
10
|
+
}
|
|
11
|
+
export declare const PageFooter: import("react").ForwardRefExoticComponent<PageFooterProps & {
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/page-header/index.scss';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
/** Alt text of a logo shown without a title, when no `logoAlt` is given. */
|
|
4
|
+
export declare const DEFAULT_LOGO_ALT = "Gemeente Tilburg";
|
|
5
|
+
export interface PageHeaderProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
6
|
+
logoSrc?: string | null;
|
|
7
|
+
logoAlt?: string;
|
|
8
|
+
title?: string | null;
|
|
9
|
+
titleHref?: string | null;
|
|
10
|
+
}
|
|
11
|
+
export declare const PageHeader: import("react").ForwardRefExoticComponent<PageHeaderProps & {
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/pagination/index.scss';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
export type PaginationStep = 'first' | 'previous' | 'next' | 'last' | 'page';
|
|
4
|
+
export interface PaginationEvent {
|
|
5
|
+
step: PaginationStep;
|
|
6
|
+
page?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onNavigate'> {
|
|
9
|
+
ariaLabel?: string;
|
|
10
|
+
feedback?: string | null;
|
|
11
|
+
range?: string | null;
|
|
12
|
+
pageCount?: number | null;
|
|
13
|
+
currentPage?: number | null;
|
|
14
|
+
firstDisabled?: boolean;
|
|
15
|
+
previousDisabled?: boolean;
|
|
16
|
+
nextDisabled?: boolean;
|
|
17
|
+
lastDisabled?: boolean;
|
|
18
|
+
firstLabel?: string;
|
|
19
|
+
previousLabel?: string;
|
|
20
|
+
nextLabel?: string;
|
|
21
|
+
lastLabel?: string;
|
|
22
|
+
pageLabel?: (n: number) => string;
|
|
23
|
+
onNavigate?: (event: PaginationEvent) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const Pagination: import("react").ForwardRefExoticComponent<PaginationProps & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export interface ParagraphProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
3
|
+
lead?: boolean;
|
|
4
|
+
small?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const Paragraph: import("react").ForwardRefExoticComponent<ParagraphProps & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
} & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import '@gemeente-tilburg/components-css/password-input/index.scss';
|
|
3
|
+
import { TextboxProps } from './Textbox';
|
|
4
|
+
export interface PasswordInputProps extends Omit<TextboxProps, 'type'> {
|
|
5
|
+
/** Label of the show/hide button; it stays the same, `aria-pressed` reports the state. */
|
|
6
|
+
toggleLabel?: string;
|
|
7
|
+
/** Status line read out after showing the password. */
|
|
8
|
+
statusShown?: string;
|
|
9
|
+
/** Status line read out after hiding the password. */
|
|
10
|
+
statusHidden?: string;
|
|
11
|
+
/** Class on the wrapper; `className` goes to the `<input>`, like on `Textbox`. */
|
|
12
|
+
wrapperClassName?: string;
|
|
13
|
+
}
|
|
14
|
+
/** A password textbox with a show/hide toggle (Tilburg component, bq-tlb-frontend TIL-72). */
|
|
15
|
+
export declare const PasswordInput: import("react").ForwardRefExoticComponent<PasswordInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/progress-bar/index.scss';
|
|
2
|
+
import { HTMLAttributes, MouseEvent, ReactNode } from 'react';
|
|
3
|
+
export interface ProgressBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
value?: number;
|
|
5
|
+
total?: number;
|
|
6
|
+
label?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
backLabel?: string;
|
|
9
|
+
showBack?: boolean;
|
|
10
|
+
backIcon?: ReactNode;
|
|
11
|
+
onBackClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const ProgressBar: import("react").ForwardRefExoticComponent<ProgressBarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/radio-button/index.scss';
|
|
2
|
+
import { InputHTMLAttributes } from 'react';
|
|
3
|
+
export interface RadioButtonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
4
|
+
invalid?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const RadioButton: import("react").ForwardRefExoticComponent<RadioButtonProps & import("react").RefAttributes<HTMLInputElement>>;
|
package/dist/Select.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/select/index.scss';
|
|
2
|
+
import { SelectHTMLAttributes } from 'react';
|
|
3
|
+
export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
4
|
+
invalid?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** A styled native `<select>`; put `<option>` (and `<optgroup>`) elements inside it. */
|
|
7
|
+
export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & {
|
|
8
|
+
children?: import("react").ReactNode;
|
|
9
|
+
} & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/separator/index.scss';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
export interface SeparatorProps extends HTMLAttributes<HTMLHRElement> {
|
|
4
|
+
decorative?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const Separator: import("react").ForwardRefExoticComponent<SeparatorProps & import("react").RefAttributes<HTMLHRElement>>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/skip-link/index.scss';
|
|
2
|
+
import { AnchorHTMLAttributes } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Modifier controlling when the skip-link is rendered.
|
|
5
|
+
* - `visible-on-focus` — the production WCAG 2.4.1 pattern: hidden until the
|
|
6
|
+
* link receives keyboard focus, then slides into the top-left of the viewport.
|
|
7
|
+
* - `visible` — always rendered in place (useful for demos / non-standard layouts).
|
|
8
|
+
* - `hidden` — never rendered (kept off-screen unconditionally).
|
|
9
|
+
* - `focus` — force the focused appearance regardless of `:focus`; intended for
|
|
10
|
+
* storybook screenshots.
|
|
11
|
+
*/
|
|
12
|
+
export type SkipLinkVisibility = 'visible-on-focus' | 'visible' | 'hidden' | 'focus';
|
|
13
|
+
export interface SkipLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
14
|
+
visibility?: SkipLinkVisibility;
|
|
15
|
+
}
|
|
16
|
+
export declare const SkipLink: import("react").ForwardRefExoticComponent<SkipLinkProps & {
|
|
17
|
+
children?: import("react").ReactNode;
|
|
18
|
+
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
package/dist/Table.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/table/index.scss';
|
|
2
|
+
import { HTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from 'react';
|
|
3
|
+
export interface TableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
4
|
+
caption?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Table: import("react").ForwardRefExoticComponent<TableProps & {
|
|
7
|
+
children?: import("react").ReactNode;
|
|
8
|
+
} & import("react").RefAttributes<HTMLTableElement>>;
|
|
9
|
+
export type TableBodyProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
10
|
+
export declare const TableBody: import("react").ForwardRefExoticComponent<TableBodyProps & {
|
|
11
|
+
children?: import("react").ReactNode;
|
|
12
|
+
} & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
13
|
+
export type TableCaptionProps = HTMLAttributes<HTMLTableCaptionElement>;
|
|
14
|
+
export declare const TableCaption: import("react").ForwardRefExoticComponent<TableCaptionProps & {
|
|
15
|
+
children?: import("react").ReactNode;
|
|
16
|
+
} & import("react").RefAttributes<HTMLTableCaptionElement>>;
|
|
17
|
+
export type TableCellProps = TdHTMLAttributes<HTMLTableCellElement>;
|
|
18
|
+
export declare const TableCell: import("react").ForwardRefExoticComponent<TableCellProps & {
|
|
19
|
+
children?: import("react").ReactNode;
|
|
20
|
+
} & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
21
|
+
export type TableFooterProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
22
|
+
export declare const TableFooter: import("react").ForwardRefExoticComponent<TableFooterProps & {
|
|
23
|
+
children?: import("react").ReactNode;
|
|
24
|
+
} & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
25
|
+
export type TableHeaderProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
26
|
+
export declare const TableHeader: import("react").ForwardRefExoticComponent<TableHeaderProps & {
|
|
27
|
+
children?: import("react").ReactNode;
|
|
28
|
+
} & import("react").RefAttributes<HTMLTableSectionElement>>;
|
|
29
|
+
export type TableHeaderCellProps = ThHTMLAttributes<HTMLTableCellElement>;
|
|
30
|
+
export declare const TableHeaderCell: import("react").ForwardRefExoticComponent<TableHeaderCellProps & {
|
|
31
|
+
children?: import("react").ReactNode;
|
|
32
|
+
} & import("react").RefAttributes<HTMLTableCellElement>>;
|
|
33
|
+
export type TableRowProps = HTMLAttributes<HTMLTableRowElement>;
|
|
34
|
+
export declare const TableRow: import("react").ForwardRefExoticComponent<TableRowProps & {
|
|
35
|
+
children?: import("react").ReactNode;
|
|
36
|
+
} & import("react").RefAttributes<HTMLTableRowElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/textarea/index.scss';
|
|
2
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
3
|
+
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
+
invalid?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/textbox/index.scss';
|
|
2
|
+
import { InputHTMLAttributes } from 'react';
|
|
3
|
+
export interface TextboxProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
+
invalid?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const Textbox: import("react").ForwardRefExoticComponent<TextboxProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/tooltip/index.scss';
|
|
2
|
+
import { ReactElement, ReactNode } from 'react';
|
|
3
|
+
export type TooltipPlacement = 'above' | 'below';
|
|
4
|
+
export interface TooltipProps {
|
|
5
|
+
/** The tooltip text: a short description of the trigger. */
|
|
6
|
+
content: ReactNode;
|
|
7
|
+
/** Where the tooltip opens, relative to the trigger. */
|
|
8
|
+
placement?: TooltipPlacement;
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The trigger: one element that accepts `aria-describedby` (a button, link, or Tilburg component). */
|
|
11
|
+
children: ReactElement<{
|
|
12
|
+
'aria-describedby'?: string;
|
|
13
|
+
}>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A short description of a control, shown on hover and focus (Tilburg component, bq-tlb-frontend TIL-53/54). Escape
|
|
17
|
+
* closes it, the pointer can move onto it, a tap toggles it on touch screens (WCAG 1.4.13); the behaviour comes from
|
|
18
|
+
* `attachTooltip()` in `@gemeente-tilburg/components-css/tooltip`, the same as the plain HTML/CSS version.
|
|
19
|
+
*/
|
|
20
|
+
export declare const Tooltip: {
|
|
21
|
+
({ content, placement, className, children }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/unordered-list/index.scss';
|
|
2
|
+
import { HTMLAttributes, LiHTMLAttributes } from 'react';
|
|
3
|
+
export type UnorderedListProps = HTMLAttributes<HTMLUListElement>;
|
|
4
|
+
export declare const UnorderedList: import("react").ForwardRefExoticComponent<UnorderedListProps & {
|
|
5
|
+
children?: import("react").ReactNode;
|
|
6
|
+
} & import("react").RefAttributes<HTMLUListElement>>;
|
|
7
|
+
export type UnorderedListItemProps = LiHTMLAttributes<HTMLLIElement>;
|
|
8
|
+
export declare const UnorderedListItem: import("react").ForwardRefExoticComponent<UnorderedListItemProps & {
|
|
9
|
+
children?: import("react").ReactNode;
|
|
10
|
+
} & import("react").RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import '@gemeente-tilburg/components-css/validation-message/index.scss';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
export type ValidationMessageType = 'error' | 'warning';
|
|
4
|
+
export type ValidationLiveRegion = 'polite' | 'assertive' | 'off';
|
|
5
|
+
export interface ValidationMessageProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
type?: ValidationMessageType;
|
|
7
|
+
ariaLive?: ValidationLiveRegion;
|
|
8
|
+
/** Override the default per-type icon. Pass `null` to render no icon. */
|
|
9
|
+
icon?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const ValidationMessage: import("react").ForwardRefExoticComponent<ValidationMessageProps & {
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("clsx"),s=require("react"),B=s.forwardRef(({className:e,children:r,...t},i)=>s.createElement("utrecht-heading-1",{className:e},a.jsx("h1",{ref:i,className:"utrecht-heading-1",...t,children:r})));B.displayName="Heading1";const P=s.forwardRef(({className:e,children:r,...t},i)=>s.createElement("utrecht-heading-2",{className:e},a.jsx("h2",{ref:i,className:"utrecht-heading-2",...t,children:r})));P.displayName="Heading2";const F=s.forwardRef(({className:e,children:r,...t},i)=>s.createElement("utrecht-heading-3",{className:e},a.jsx("h3",{ref:i,className:"utrecht-heading-3",...t,children:r})));F.displayName="Heading3";const O=s.forwardRef(({className:e,children:r,...t},i)=>s.createElement("utrecht-heading-4",{className:e},a.jsx("h4",{ref:i,className:"utrecht-heading-4",...t,children:r})));O.displayName="Heading4";const $=s.forwardRef(({className:e,children:r,...t},i)=>s.createElement("utrecht-heading-5",{className:e},a.jsx("h5",{ref:i,className:"utrecht-heading-5",...t,children:r})));$.displayName="Heading5";const G=s.forwardRef(({className:e,children:r,...t},i)=>s.createElement("utrecht-heading-6",{className:e},a.jsx("h6",{ref:i,className:"utrecht-heading-6",...t,children:r})));G.displayName="Heading6";const st={1:B,2:P,3:F,4:O,5:$,6:G},nt=["ArrowDown","ArrowUp","Home","End"],re=s.forwardRef(({headingLevel:e=2,displayName:r,"aria-label":t,className:i,children:n,onKeyDown:l,...o},c)=>{const u=st[e],h=s.useCallback(p=>{if(l==null||l(p),p.defaultPrevented||!nt.includes(p.key))return;const j=p.target;if(!(j instanceof HTMLButtonElement)||!j.classList.contains("utrecht-accordion__button"))return;const _=p.currentTarget;if(j.closest(".utrecht-accordion")!==_)return;const f=Array.from(_.querySelectorAll(".utrecht-accordion__section button.utrecht-accordion__button")).filter(w=>!w.disabled&&w.closest(".utrecht-accordion")===_),g=f.indexOf(j);if(g===-1||f.length===0)return;let m;switch(p.key){case"ArrowDown":m=(g+1)%f.length;break;case"ArrowUp":m=(g-1+f.length)%f.length;break;case"Home":m=0;break;case"End":m=f.length-1;break}p.preventDefault(),f[m].focus()},[l]);return a.jsxs("div",{ref:c,className:d("utrecht-accordion",i),"aria-label":t,role:t?"region":void 0,onKeyDown:h,...o,children:[r&&a.jsx(u,{className:"tilburg-accordion__display-name",children:r}),n]})});re.displayName="Accordion";const ie=s.forwardRef(({sectionKey:e,label:r,expanded:t=!1,disabled:i=!1,autoToggle:n=!1,iconCollapsed:l,iconExpanded:o,onToggle:c,className:u,children:h,...p},j)=>{const[_,f]=s.useState(t),g=n?_:t,m=s.useCallback(()=>{if(i)return;const x=!g;n&&f(x),c==null||c(x)},[i,g,n,c]),w=`utrecht-accordion-${e??""}-panel`,y=`utrecht-accordion-${e??""}-button`;return a.jsxs("div",{ref:j,className:d("utrecht-accordion__section",u),...p,children:[a.jsx("span",{className:"utrecht-accordion__header",children:a.jsxs("button",{className:"utrecht-button utrecht-button--subtle utrecht-accordion__button",id:y,type:"button",disabled:i,"aria-expanded":g,"aria-controls":w,onClick:m,children:[a.jsx("span",{className:"utrecht-accordion__button-icon","aria-hidden":"true",children:g?o??"−":l??"+"}),a.jsx("span",{className:"utrecht-accordion__button-label tilburg-accordion__display-name",children:r})]})}),a.jsx("div",{className:"utrecht-accordion__panel",id:w,"aria-labelledby":y,hidden:!g,role:"region",children:h})]})});ie.displayName="AccordionSection";/* @license CC0-1.0 */const lt="position:absolute;inline-size:1px;block-size:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0",ot=100,Y=new Map,ct=e=>{const r=`tilburg-announcer-${e}`;let t=document.getElementById(r);return t||(t=document.createElement("div"),t.id=r,t.setAttribute("aria-live",e),t.setAttribute("aria-atomic","true"),t.setAttribute("style",lt),document.body.appendChild(t)),t};function dt(e,r="polite"){const t=String(e||"").replace(/\s+/g," ").trim();if(typeof document>"u"||!document.body||!t)return;const i=ct(r);i.textContent="",clearTimeout(Y.get(r)),Y.set(r,setTimeout(()=>{i.textContent=t},ot))}const ut={info:"info",success:"ok",warning:"warning",danger:"error"},ht={1:B,2:P,3:F,4:O,5:$,6:G},mt=()=>a.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-6h2v6Zm0-8h-2V7h2v2Z"})}),bt=()=>a.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 14.6L6 12l1.4-1.4 3.2 3.2 6-6L18 9.2l-7.4 7.4Z"})}),ft=()=>a.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M1 21h22L12 2 1 21Zm12-3h-2v-2h2v2Zm0-4h-2v-4h2v4Z"})}),gt=()=>a.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm5 13.6L15.6 17 12 13.4 8.4 17 7 15.6 10.6 12 7 8.4 8.4 7 12 10.6 15.6 7 17 8.4 13.4 12 17 15.6Z"})}),pt=()=>a.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:a.jsx("path",{d:"m18.3 5.71-1.42-1.42L12 9.17 7.12 4.29 5.71 5.71 10.59 10.59 5.71 15.46l1.41 1.42L12 12l4.88 4.88 1.42-1.42-4.88-4.87 4.87-4.88Z"})}),xt={info:a.jsx(mt,{}),success:a.jsx(bt,{}),warning:a.jsx(ft,{}),danger:a.jsx(gt,{})},q=({children:e})=>a.jsx("i",{"aria-hidden":"true",style:{alignItems:"center",display:"inline-flex",fontSize:"var(--utrecht-alert-icon-size, 1.5rem)",fontStyle:"normal",justifyContent:"center"},children:e}),vt={info:"Informatie:",success:"Succes:",warning:"Waarschuwing:",danger:"Fout:"},se=s.forwardRef(({variant:e="info",title:r,headingLevel:t=3,closable:i=!1,liveRegion:n,closeButtonAriaLabel:l="sluit alert",srPrefix:o,announce:c=!1,icon:u,closeIcon:h,onClose:p,className:j,children:_,...f},g)=>{const m=ht[t],w=u===void 0?xt[e]:u,y=h===void 0?a.jsx(pt,{}):h,x=o===void 0?vt[e]:o,L=e==="danger"?"alert":"status",R=n??(e==="danger"?"assertive":"polite"),v=s.useRef(null),E=s.useRef(""),T=k=>{v.current=k,typeof g=="function"?g(k):g&&(g.current=k)};return s.useEffect(()=>{var S;if(!c||R==="off")return;const k=(S=v.current)==null?void 0:S.querySelector(".utrecht-alert__content"),A=Array.from((k==null?void 0:k.children)??[],I=>{var M;return((M=I.textContent)==null?void 0:M.trim())??""}).filter(Boolean).join(" ");A&&A!==E.current&&(E.current=A,dt(A,R))}),a.jsxs("div",{ref:T,role:c?void 0:L,"aria-live":c?void 0:R,"aria-atomic":c?void 0:"true",className:d("utrecht-alert","tilburg-alert",`utrecht-alert--${ut[e]}`,j),...f,children:[a.jsx("div",{className:"utrecht-alert__icon",children:w&&a.jsx(q,{children:w})}),a.jsxs("div",{className:"utrecht-alert__content",children:[r&&a.jsx(m,{className:"tilburg-alert__title",children:r}),a.jsxs("div",{className:"utrecht-alert__message",children:[x&&a.jsxs("span",{className:"utrecht-visually-hidden",children:[x," "]}),_]})]}),i&&a.jsx("button",{type:"button",className:"tilburg-alert__close","aria-label":l,onClick:p,children:y&&a.jsx(q,{children:y})})]})});se.displayName="Alert";const _t={"primary-action-button":"utrecht-button--primary-action","secondary-action-button":"utrecht-button--secondary-action","subtle-button":"utrecht-button--subtle"},Z=s.forwardRef(({appearance:e,size:r="medium",pressed:t,busy:i,disabled:n,type:l="button",title:o,"aria-label":c,className:u,children:h,...p},j)=>a.jsx("button",{ref:j,type:l,disabled:n,title:o,"aria-label":c??o,"aria-pressed":t===void 0?void 0:t?"true":"false",className:d("utrecht-button",`tilburg-${r}`,e&&_t[e],i&&"utrecht-button--busy",n&&"utrecht-button--disabled",t===!0&&"utrecht-button--pressed",l==="submit"&&"utrecht-button--submit",u),...p,children:h}));Z.displayName="Button";const Nt=()=>a.jsx("svg",{"aria-hidden":"true",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:a.jsx("path",{d:"M5 5l10 10M15 5L5 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})}),W=s.forwardRef(({id:e,title:r,open:t,closeLabel:i="Sluiten",closeOnBackdropClick:n=!0,footer:l,onClose:o,onClick:c,className:u,children:h,...p},j)=>{const _=s.useRef(null);s.useImperativeHandle(j,()=>_.current);const f=s.useId(),g=`${e??`tilburg-modal-${f.replace(/:/g,"")}`}-title`;s.useEffect(()=>{const x=_.current;!x||t===void 0||(t&&!x.open&&x.showModal(),!t&&x.open&&x.close())},[t]);const m=()=>{var x;return(x=_.current)==null?void 0:x.close()},w=x=>{c==null||c(x),n&&x.target===x.currentTarget&&m()},y=x=>{x.target===x.currentTarget&&(o==null||o())};return a.jsxs("dialog",{...p,ref:_,id:e,className:d("tilburg-modal",u),"aria-labelledby":g,onClick:w,onClose:y,children:[a.jsxs("header",{className:"tilburg-modal__header",children:[a.jsx("h2",{id:g,children:r}),a.jsxs("button",{type:"button",className:"tilburg-modal__close-button",onClick:m,children:[a.jsx("span",{children:i}),a.jsx(Nt,{})]})]}),a.jsx("div",{className:"tilburg-modal__content",children:h}),l&&a.jsx("footer",{className:"tilburg-modal__footer",children:l})]})});W.displayName="Modal";const jt=e=>{var r;return(r=e.currentTarget.closest("dialog"))==null?void 0:r.close()},ne=s.forwardRef(({id:e,title:r,children:t,customFooter:i},n)=>a.jsx(W,{ref:n,id:e,title:r,footer:i??a.jsx(Z,{appearance:"primary-action-button",onClick:jt,children:"Sluiten"}),children:t}));ne.displayName="AlertDialog";const le=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("article",{ref:i,className:d("utrecht-article",e),...t,children:r}));le.displayName="Article";const wt=new Set(["danger","error","invalid"]),oe=s.forwardRef(({status:e,liveRegion:r,className:t,children:i,...n},l)=>{const o=!!(e&&wt.has(e));return a.jsx("span",{ref:l,role:o?"alert":"status","aria-live":r??(o?"assertive":"polite"),className:d("utrecht-badge-status",e&&`utrecht-badge-status--${e}`,t),...n,children:i})});oe.displayName="BadgeStatus";const ce=s.forwardRef(({items:e=[],ariaLabel:r="Kruimelpad",onItemClick:t,...i},n)=>e.length?a.jsx("nav",{ref:n,"aria-label":r,className:"utrecht-breadcrumb-nav tilburg-breadcrumb",...i,children:a.jsx("ol",{className:"utrecht-breadcrumb-nav__list utrecht-breadcrumb-nav__list--html-ol",children:e.map((l,o)=>{const u=!(o===e.length-1)&&!l.current;return a.jsx("li",{className:"utrecht-breadcrumb-nav__item",children:u?a.jsxs(a.Fragment,{children:[a.jsx("a",{className:"utrecht-breadcrumb-nav__link",href:l.href??"#",onClick:h=>t==null?void 0:t({item:l,event:h}),children:l.label}),a.jsx("span",{className:"utrecht-breadcrumb-nav__separator","aria-hidden":"true",children:"›"})]}):a.jsx("span",{"aria-current":"page",className:"utrecht-breadcrumb-nav__link utrecht-breadcrumb-nav__link--current",children:l.label})},`${l.label??""}-${o}`)})})}):null);ce.displayName="Breadcrumb";const de=s.forwardRef(({role:e="group",className:r,children:t,...i},n)=>a.jsx("div",{ref:n,role:e,className:d("utrecht-button-group",r),...i,children:t}));de.displayName="ButtonGroup";const yt={"primary-action-button":"utrecht-button-link--primary-action","secondary-action-button":"utrecht-button-link--secondary-action","subtle-button":"utrecht-button-link--subtle"},ue=s.forwardRef(({appearance:e,external:r,placeholder:t,rel:i,className:n,children:l,...o},c)=>a.jsx("a",{ref:c,rel:r?"external noopener noreferrer":i,"aria-disabled":t?"true":void 0,className:d("utrecht-button-link","utrecht-button-link--html-a",e&&yt[e],t&&"utrecht-button-link--placeholder",n),...o,children:l}));ue.displayName="ButtonLink";const he=s.forwardRef(({invalid:e,indeterminate:r=!1,required:t,disabled:i,className:n,...l},o)=>{const c=s.useRef(null);return s.useImperativeHandle(o,()=>c.current,[]),s.useEffect(()=>{c.current&&(c.current.indeterminate=r)},[r]),a.jsx("input",{ref:c,type:"checkbox",required:t,disabled:i,"aria-checked":r?"mixed":void 0,"aria-invalid":e?"true":void 0,"aria-required":t?"true":void 0,className:d("utrecht-checkbox","utrecht-checkbox--html-input","utrecht-checkbox--custom",i&&"utrecht-checkbox--disabled",r&&"utrecht-checkbox--indeterminate",e&&"utrecht-checkbox--invalid",t&&"utrecht-checkbox--required",n),...l})});he.displayName="Checkbox";function kt(e,r){const{items:t,placeholder:i,disabled:n,invalid:l,required:o,clearable:c,"aria-label":u,"aria-describedby":h,className:p}=e,j=s.useId(),_=e.id??`tilburg-combobox-${j}`,f=`${_}-listbox`,g=b=>`${_}-opt-${b}`,[m,w]=s.useState(!1),[y,x]=s.useState(-1),L=s.useRef(null),R=s.useRef(null);s.useEffect(()=>{typeof r=="function"?r(L.current):r&&(r.current=L.current)},[r]);const v=s.useMemo(()=>e.multiple?[...e.value]:e.value===null||e.value===void 0?[]:[e.value],[e.multiple,e.value]),E=s.useCallback(b=>v.includes(b),[v]),T=s.useCallback(()=>{n||(w(!0),x(-1))},[n]),k=s.useCallback(()=>{w(!1),x(-1)},[]),A=s.useCallback(()=>{m?k():T()},[m,k,T]),S=s.useCallback(b=>{var C;const N=t[b];if(!(!N||N.disabled))if(e.multiple){const rt=E(N.value)?v.filter(it=>it!==N.value):[...v,N.value];e.onChange(rt)}else e.onChange(N.value),k(),(C=L.current)==null||C.focus()},[t,e,v,E,k]),I=s.useCallback((b,N)=>{N==null||N.stopPropagation(),e.multiple&&e.onChange(v.filter(C=>C!==b))},[e,v]),M=s.useCallback(b=>{b==null||b.stopPropagation(),e.multiple?e.onChange([]):e.onChange(null)},[e]),et=s.useCallback(b=>{if(!n)switch(b.key){case"ArrowDown":b.preventDefault(),m?x(N=>Math.min(N+1,t.length-1)):T();break;case"ArrowUp":b.preventDefault(),m?x(N=>Math.max(N-1,0)):T();break;case"Home":m&&(b.preventDefault(),x(0));break;case"End":m&&(b.preventDefault(),x(t.length-1));break;case"Enter":m&&y>=0&&(b.preventDefault(),S(y));break;case"Escape":m&&(b.preventDefault(),k());break;case"Backspace":e.multiple&&(b.currentTarget.value??"")===""&&v.length>0&&I(v[v.length-1]);break}},[n,m,T,t.length,y,k,e,v,I,S]);s.useEffect(()=>{if(!m)return;const b=N=>{var C;(C=R.current)!=null&&C.contains(N.target)||k()};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[m,k]);const tt=s.useMemo(()=>v.map(b=>t.find(N=>N.value===b)).filter(b=>!!b),[v,t]),at=s.useMemo(()=>{if(e.multiple)return"";const b=t.find(N=>N.value===e.value);return(b==null?void 0:b.label)??""},[e,t]);return a.jsxs("div",{ref:R,className:d("utrecht-combobox",e.multiple&&"tilburg-combobox--multiple",p),children:[a.jsxs("div",{className:"tilburg-combobox__value-container",onClick:A,children:[e.multiple?tt.map(b=>a.jsxs("span",{className:"tilburg-combobox__chip",children:[b.label,a.jsx("button",{type:"button",className:"tilburg-combobox__chip-remove","aria-label":`Verwijder ${b.label}`,disabled:n,onClick:N=>I(b.value,N),children:"×"})]},String(b.value))):null,a.jsx("input",{ref:L,id:_,className:"tilburg-combobox__input",type:"text",role:"combobox",readOnly:!0,value:at,placeholder:e.multiple&&v.length>0?void 0:i,disabled:n,"aria-label":u,"aria-describedby":h,"aria-expanded":m,"aria-controls":f,"aria-activedescendant":m&&y>=0?g(y):void 0,"aria-invalid":l?"true":void 0,"aria-required":o?"true":void 0,onKeyDown:et,onChange:()=>{}}),c&&(e.multiple?v.length>0:e.value!==null&&e.value!==void 0)?a.jsx("button",{type:"button",className:"tilburg-combobox__clear","aria-label":"Wis selectie",disabled:n,onClick:M,children:a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:a.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})}):null,a.jsx("button",{type:"button",className:"tilburg-combobox__chevron","aria-label":m?"Sluit opties":"Toon opties",tabIndex:-1,disabled:n,children:a.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:a.jsx("path",{d:"M6 9l6 6 6-6"})})})]}),a.jsx("ul",{id:f,role:"listbox","aria-multiselectable":e.multiple?!0:void 0,className:d("utrecht-listbox","utrecht-combobox__popover","utrecht-combobox__popover--block-end",!m&&"utrecht-combobox__popover--hidden"),children:t.map((b,N)=>a.jsx("li",{id:g(N),role:"option",className:"utrecht-listbox__option","data-active":y===N?"true":void 0,"aria-selected":E(b.value),"aria-disabled":b.disabled?"true":void 0,onMouseEnter:()=>x(N),onMouseDown:C=>{C.preventDefault(),S(N)},children:b.label},String(b.value)))})]})}const me=s.forwardRef(kt);me.displayName="Combobox";const be=s.forwardRef(({large:e,className:r,children:t,...i},n)=>a.jsx("dl",{ref:n,className:d("tilburg-data-list",e&&"tilburg-data-list--large",r),...i,children:t}));be.displayName="DataList";const fe=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("div",{ref:i,className:d("tilburg-data-list__item",e),...t,children:r}));fe.displayName="DataListItem";const ge=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("dt",{ref:i,className:d("tilburg-data-list__key",e),...t,children:r}));ge.displayName="DataListKey";const pe=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("dd",{ref:i,className:d("tilburg-data-list__value",e),...t,children:r}));pe.displayName="DataListValue";const xe=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("div",{ref:i,className:d("utrecht-document",e),...t,children:r}));xe.displayName="Document";const ve=s.forwardRef(({invalid:e,disabled:r,className:t,children:i,...n},l)=>a.jsx("fieldset",{ref:l,disabled:r,"aria-invalid":e?"true":void 0,className:d("utrecht-fieldset",r&&"utrecht-fieldset--disabled",e&&"utrecht-fieldset--invalid",t),...n,children:i}));ve.displayName="Fieldset";const _e=s.forwardRef(({invalid:e,warning:r,type:t,className:i,children:n,...l},o)=>a.jsx("div",{ref:o,className:d("utrecht-form-field",t&&`utrecht-form-field--${t}`,e&&"utrecht-form-field--invalid",r&&"tilburg-warning",i),...l,children:n}));_e.displayName="FormField";const Ne=s.forwardRef(({invalid:e,valid:r,warning:t,className:i,children:n,...l},o)=>a.jsx("div",{ref:o,role:e?"alert":void 0,className:d("utrecht-form-field-description",e&&"utrecht-form-field-description--invalid",r&&"utrecht-form-field-description--valid",t&&"utrecht-form-field-description--warning",i),...l,children:n}));Ne.displayName="FormFieldDescription";const je=s.forwardRef(({type:e,checked:r,disabled:t,className:i,children:n,...l},o)=>a.jsx("label",{ref:o,className:d("utrecht-form-label",e&&`utrecht-form-label--${e}`,r&&"utrecht-form-label--checked",t&&"utrecht-form-label--disabled",i),...l,children:n}));je.displayName="FormLabel";const we=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("div",{ref:i,className:d("utrecht-html-content",e),...t,children:r}));we.displayName="HtmlContent";const Lt=[{code:"NL",label:"NL"},{code:"EN",label:"EN"}],ye=s.forwardRef(({options:e=Lt,active:r="NL",onToggle:t,onClick:i,onKeyDown:n,"aria-label":l="Switch language",className:o,...c},u)=>{const h=()=>{var m;if(!e.length||!t)return;const g=(e.findIndex(w=>w.code===r)+1)%e.length;t(((m=e[g])==null?void 0:m.code)??e[0].code)},p=f=>{i==null||i(f),!f.defaultPrevented&&h()},j=f=>{n==null||n(f),!f.defaultPrevented&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),h())},_=e.length>0&&e[e.length-1].code===r;return a.jsx("button",{ref:u,type:"button",role:"switch","aria-label":l,"aria-checked":_?"true":"false",onClick:p,onKeyDown:j,className:d("tilburg-language-toggle","utrecht-button","utrecht-button--html-button","utrecht-button--secondary-action",o),...c,children:e.map(f=>a.jsx("span",{className:d("tilburg-language-toggle__option",f.code===r&&"tilburg-language-toggle__option--active"),children:f.label},f.code))})});ye.displayName="LanguageToggle";const ke=s.forwardRef(({external:e,rel:r,current:t,className:i,children:n,...l},o)=>a.jsx("a",{ref:o,rel:e?"external noopener noreferrer":r,"aria-current":t===void 0?void 0:t,className:d("utrecht-link","utrecht-link--html-a",i),...l,children:n}));ke.displayName="Link";const Le=s.forwardRef(({visible:e=!1,title:r,message:t,delayMs:i=1e3,"aria-label":n,...l},o)=>{const[c,u]=s.useState(!1),h=s.useRef(void 0);return s.useEffect(()=>(h.current&&(clearTimeout(h.current),h.current=void 0),e?i<=0?u(!0):h.current=setTimeout(()=>u(!0),i):u(!1),()=>{h.current&&clearTimeout(h.current)}),[e,i]),c?a.jsx("div",{ref:o,className:"tilburg-loading-spinner__overlay","aria-busy":"true","aria-label":n??void 0,...l,children:a.jsx("div",{className:"tilburg-loading-spinner__panel",children:a.jsxs("div",{className:"tilburg-loading-spinner__content",role:"status",children:[r&&a.jsx("span",{className:"tilburg-loading-spinner__title",children:r}),a.jsx("div",{children:a.jsxs("svg",{"aria-hidden":"true",className:"tilburg-loading-spinner__svg",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})}),t&&a.jsx("span",{className:"tilburg-loading-spinner__message",children:t})]})})}):null});Le.displayName="LoadingSpinner";const Ce=s.forwardRef(({byLetter:e,className:r,children:t,...i},n)=>a.jsx("ol",{ref:n,className:d("utrecht-ordered-list","utrecht-ordered-list--html-ol","tilburg-ordered-list",e&&"tilburg-ordered-list--by-letter",r),...i,children:t}));Ce.displayName="OrderedList";const Re=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("div",{ref:i,className:d("utrecht-page",e),...t,children:r}));Re.displayName="Page";const Ee=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("main",{ref:i,className:d("utrecht-page-content",e),...t,children:r}));Ee.displayName="PageContent";const Te=s.forwardRef(({links:e=[],primaryLink:r,className:t,children:i,...n},l)=>a.jsx("footer",{ref:l,className:d("tilburg-page-footer",t),...n,children:a.jsxs("div",{className:"tilburg-page-footer__container",children:[i,r&&a.jsx("ul",{className:"tilburg-page-footer__primary",children:a.jsx("li",{children:a.jsx("a",{className:"tilburg-page-footer__primary-link",href:r.href,children:r.label})})}),e.length>0&&a.jsx("ul",{className:"tilburg-page-footer__list",children:e.map(o=>a.jsx("li",{children:a.jsx("a",{className:"tilburg-page-footer__link",href:o.href,children:o.label})},`${o.label}|${o.href}`))})]})}));Te.displayName="PageFooter";const Ct="Gemeente Tilburg",Ae=s.forwardRef(({logoSrc:e,logoAlt:r="",title:t,titleHref:i="/",className:n,children:l,...o},c)=>{const u=s.Children.count(l)>0;return a.jsx("header",{ref:c,className:d("tilburg-page-header",n),...o,children:a.jsxs("div",{className:"tilburg-page-header__container",children:[(e||t)&&a.jsxs("a",{className:"tilburg-page-header__brand",href:i??"/",children:[e&&a.jsx("img",{className:"tilburg-page-header__logo",src:e,alt:r||(t?"":Ct)}),t&&a.jsx("span",{className:"tilburg-page-header__title",children:t})]}),u&&a.jsx("div",{className:"tilburg-page-header__actions",children:l})]})})});Ae.displayName="PageHeader";const z=e=>a.jsx("svg",{className:"tilburg-pagination__icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:a.jsx("polyline",{points:e})}),X=(e,r)=>a.jsxs("svg",{className:"tilburg-pagination__icon","aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[a.jsx("polyline",{points:e}),a.jsx("polyline",{points:r})]}),Rt=(e,r)=>{if(e<=0)return[];if(e<=7)return Array.from({length:e},(l,o)=>({kind:"page",value:o+1}));const t=[{kind:"page",value:1}],i=Math.max(2,r-1),n=Math.min(e-1,r+1);i>2&&t.push({kind:"ellipsis",key:"lead"});for(let l=i;l<=n;l+=1)t.push({kind:"page",value:l});return n<e-1&&t.push({kind:"ellipsis",key:"trail"}),t.push({kind:"page",value:e}),t},Se=s.forwardRef(({ariaLabel:e="Paginering",feedback:r,range:t,pageCount:i,currentPage:n,firstDisabled:l=!1,previousDisabled:o=!1,nextDisabled:c=!1,lastDisabled:u=!1,firstLabel:h="Eerste pagina",previousLabel:p="Vorige pagina",nextLabel:j="Volgende pagina",lastLabel:_="Laatste pagina",pageLabel:f=x=>`Pagina ${x}`,onNavigate:g,className:m,...w},y)=>{const x=Rt(i??0,n??1),L=v=>()=>g==null?void 0:g({step:v}),R=v=>{v!==n&&(g==null||g({step:"page",page:v}))};return a.jsxs("nav",{ref:y,className:d("tilburg-pagination",m),"aria-label":e,...w,children:[r&&a.jsx("div",{className:"tilburg-pagination__feedback",children:r}),a.jsxs("div",{className:"tilburg-pagination__controls",children:[a.jsx("button",{type:"button",className:"tilburg-pagination__button",disabled:l,"aria-label":h,onClick:L("first"),children:X("11 17 6 12 11 7","18 17 13 12 18 7")}),a.jsx("button",{type:"button",className:"tilburg-pagination__button",disabled:o,"aria-label":p,onClick:L("previous"),children:z("15 18 9 12 15 6")}),x.length>0?a.jsx("ul",{className:"tilburg-pagination__pages",children:x.map((v,E)=>v.kind==="ellipsis"?a.jsx("li",{children:a.jsx("span",{className:"tilburg-pagination__ellipsis","aria-hidden":"true",children:"…"})},`e-${v.key}-${E}`):a.jsx("li",{children:a.jsx("button",{type:"button",className:"tilburg-pagination__page"+(v.value===n?" tilburg-pagination__page--current":""),"aria-current":v.value===n?"page":void 0,"aria-label":f(v.value),disabled:v.value===n,onClick:()=>R(v.value),children:v.value})},`p-${v.value}`))}):t&&a.jsx("div",{className:"tilburg-pagination__range",children:t}),a.jsx("button",{type:"button",className:"tilburg-pagination__button",disabled:c,"aria-label":j,onClick:L("next"),children:z("9 18 15 12 9 6")}),a.jsx("button",{type:"button",className:"tilburg-pagination__button",disabled:u,"aria-label":_,onClick:L("last"),children:X("13 17 18 12 13 7","6 17 11 12 6 7")})]})]})});Se.displayName="Pagination";const U=s.forwardRef(({invalid:e,required:r,disabled:t,readOnly:i,type:n="text",className:l,...o},c)=>a.jsx("input",{ref:c,type:n,required:r,disabled:t,readOnly:i,"aria-invalid":e?"true":void 0,"aria-required":r?"true":void 0,className:d("utrecht-textbox","utrecht-textbox--html-input",t&&"utrecht-textbox--disabled",e&&"utrecht-textbox--invalid",i&&"utrecht-textbox--read-only",r&&"utrecht-textbox--required",l),...o}));U.displayName="Textbox";const Et=()=>a.jsxs("svg",{className:"tilburg-password-input__icon tilburg-password-input__icon--show","aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[a.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),a.jsx("circle",{cx:"12",cy:"12",r:"3"})]}),Tt=()=>a.jsxs("svg",{className:"tilburg-password-input__icon tilburg-password-input__icon--hide","aria-hidden":"true",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[a.jsx("path",{d:"M17.94 17.94A10 10 0 0 1 12 20c-7 0-11-8-11-8a18.5 18.5 0 0 1 5.06-5.94M9.9 4.24A9.1 9.1 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19M14.12 14.12a3 3 0 1 1-4.24-4.24"}),a.jsx("path",{d:"M1 1l22 22"})]}),Ie=s.forwardRef(({id:e,toggleLabel:r="Wachtwoord tonen",statusShown:t="Wachtwoord is zichtbaar.",statusHidden:i="Wachtwoord is verborgen.",wrapperClassName:n,disabled:l,...o},c)=>{const u=s.useId(),h=e??u,[p,j]=s.useState(!1),[_,f]=s.useState(""),g=()=>{j(!p),f(p?i:t)};return a.jsxs("div",{className:d("tilburg-password-input",n),children:[a.jsx(U,{ref:c,id:h,type:p?"text":"password",disabled:l,...o}),a.jsxs("button",{type:"button",className:"tilburg-password-input__toggle","aria-pressed":p,"aria-controls":h,"aria-label":r,disabled:l,onClick:g,children:[a.jsx(Et,{}),a.jsx(Tt,{})]}),a.jsx("span",{className:"tilburg-password-input__status","aria-live":"polite",children:_})]})});Ie.displayName="PasswordInput";const Me=s.forwardRef(({lead:e,small:r,className:t,children:i,...n},l)=>a.jsx("p",{ref:l,className:d("utrecht-paragraph",e&&"utrecht-paragraph--lead",r&&"utrecht-paragraph--small",t),...n,children:i}));Me.displayName="Paragraph";const De=s.forwardRef(({value:e=0,total:r=0,label:t,title:i,backLabel:n,showBack:l=!1,backIcon:o,onBackClick:c,"aria-label":u,...h},p)=>{const j=r<=0?0:Math.max(0,Math.min(100,e/r*100)),_=g=>{g.preventDefault(),c==null||c(g)},f=o===void 0?a.jsx("span",{"aria-hidden":"true",children:"←"}):o;return a.jsxs("div",{ref:p,...h,children:[l&&a.jsxs("a",{className:"tilburg-progress-bar__back utrecht-link utrecht-link--html-a",href:"#",onClick:_,children:[f,a.jsx("span",{className:"tilburg-progress-bar__back-label",children:n})]}),a.jsxs("div",{className:"tilburg-progress-bar__header",children:[i&&a.jsx("h2",{className:"tilburg-progress-bar__title tilburg-step-title",children:i}),t&&a.jsx("div",{className:"tilburg-progress-bar__label",children:t})]}),a.jsx("div",{className:"tilburg-progress-bar__track",role:"progressbar","aria-label":u??i??"Voortgang","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(j),"aria-valuetext":t??void 0,children:a.jsx("div",{className:"tilburg-progress-bar__indicator progress-bar-indicator",style:{width:`${j}%`}})})]})});De.displayName="ProgressBar";const He=s.forwardRef(({invalid:e,required:r,disabled:t,className:i,...n},l)=>a.jsx("input",{ref:l,type:"radio",required:r,disabled:t,"aria-invalid":e?"true":void 0,"aria-required":r?"true":void 0,className:d("utrecht-radio-button","utrecht-radio-button--html-input",t&&"utrecht-radio-button--disabled",e&&"utrecht-radio-button--invalid",r&&"utrecht-radio-button--required",i),...n}));He.displayName="RadioButton";const Be=s.forwardRef(({invalid:e,required:r,disabled:t,className:i,children:n,...l},o)=>a.jsx("select",{ref:o,required:r,disabled:t,"aria-invalid":e?"true":void 0,"aria-required":r?"true":void 0,className:d("utrecht-select","utrecht-select--html-select",t&&"utrecht-select--disabled",e&&"utrecht-select--invalid",i),...l,children:n}));Be.displayName="Select";const Pe=s.forwardRef(({decorative:e,className:r,...t},i)=>a.jsx("hr",{ref:i,"aria-hidden":e?"true":void 0,className:d("utrecht-separator",r),...t}));Pe.displayName="Separator";const Fe=s.forwardRef(({visibility:e="visible-on-focus",className:r,children:t,...i},n)=>a.jsx("a",{ref:n,className:d("utrecht-skip-link",`utrecht-skip-link--${e}`,r),...i,children:t}));Fe.displayName="SkipLink";const Oe=s.forwardRef(({caption:e,className:r,children:t,...i},n)=>a.jsxs("table",{ref:n,className:d("utrecht-table",r),...i,children:[e&&a.jsx("caption",{className:"utrecht-table__caption",children:e}),t]}));Oe.displayName="Table";const $e=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("tbody",{ref:i,className:d("utrecht-table__body",e),...t,children:r}));$e.displayName="TableBody";const Ge=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("caption",{ref:i,className:d("utrecht-table__caption",e),...t,children:r}));Ge.displayName="TableCaption";const Ve=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("td",{ref:i,className:d("utrecht-table__cell",e),...t,children:r}));Ve.displayName="TableCell";const Ze=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("tfoot",{ref:i,className:d("utrecht-table__footer",e),...t,children:r}));Ze.displayName="TableFooter";const We=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("thead",{ref:i,className:d("utrecht-table__header",e),...t,children:r}));We.displayName="TableHeader";const Ue=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("th",{ref:i,className:d("utrecht-table__header-cell",e),...t,children:r}));Ue.displayName="TableHeaderCell";const Ye=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("tr",{ref:i,className:d("utrecht-table__row",e),...t,children:r}));Ye.displayName="TableRow";const qe=s.forwardRef(({invalid:e,required:r,disabled:t,readOnly:i,className:n,...l},o)=>a.jsx("textarea",{ref:o,required:r,disabled:t,readOnly:i,"aria-invalid":e?"true":void 0,"aria-required":r?"true":void 0,className:d("utrecht-textarea","utrecht-textarea--html-textarea",t&&"utrecht-textarea--disabled",e&&"utrecht-textarea--invalid",i&&"utrecht-textarea--read-only",r&&"utrecht-textarea--required",n),...l}));qe.displayName="Textarea";/* @license CC0-1.0 */const At="data-tilburg-tooltip-enhance",K="data-tilburg-tooltip-enhanced",V="tilburg-tooltip--open",St="tilburg-tooltip--below",J="data-tilburg-tooltip-placement",Q="--_tilburg-tooltip-shift",D=8,ee=/^(auto|clip|hidden|scroll)$/,It=150,Mt=150,H=()=>typeof matchMedia!="function"||!matchMedia("(hover: none)").matches;function Dt(e){const r=document.documentElement,t={top:0,left:0,right:r.clientWidth,bottom:r.clientHeight};for(let i=e.parentElement;i&&i!==document.body;i=i.parentElement){const{overflowX:n,overflowY:l}=getComputedStyle(i),o=ee.test(n),c=ee.test(l);if(!o&&!c)continue;const u=i.getBoundingClientRect();c&&(t.top=Math.max(t.top,u.top),t.bottom=Math.min(t.bottom,u.bottom)),o&&(t.left=Math.max(t.left,u.left),t.right=Math.min(t.right,u.right))}return t}function te(e){const r=e.querySelector(".tilburg-tooltip__popup");if(!r||typeof getComputedStyle!="function")return;const t=Dt(e);if(t.right<=t.left||t.bottom<=t.top)return;r.style.removeProperty(Q);const i=e.classList.contains(St)?"below":"above",n=i==="above"?"below":"above",l=h=>{e.setAttribute(J,h);const p=r.getBoundingClientRect();return Math.max(0,t.top-p.top)+Math.max(0,p.bottom-t.bottom)},o=l(i);o>0&&l(n)>=o&&e.setAttribute(J,i);const c=r.getBoundingClientRect();let u=0;c.left<t.left+D?u=t.left+D-c.left:c.right>t.right-D&&(u=t.right-D-c.right),u&&r.style.setProperty(Q,`${Math.round(u)}px`)}function ze(e){let r,t;const i=()=>{clearTimeout(r),clearTimeout(t)},n=()=>e.classList.contains(V),l=m=>{m.key==="Escape"&&h()},o=m=>{e.contains(m.target)||h()},c=()=>te(e);function u(){i(),!n()&&(e.classList.add(V),te(e),document.addEventListener("keydown",l),document.addEventListener("scroll",c,{capture:!0,passive:!0}),window.addEventListener("resize",c),H()||document.addEventListener("click",o))}function h(){i(),n()&&(e.classList.remove(V),document.removeEventListener("keydown",l),document.removeEventListener("scroll",c,{capture:!0}),window.removeEventListener("resize",c),document.removeEventListener("click",o))}const p=()=>{H()&&(clearTimeout(t),r=setTimeout(u,It))},j=()=>{H()&&(clearTimeout(r),t=setTimeout(h,Mt))},_=()=>u(),f=m=>{e.contains(m.relatedTarget)||h()},g=m=>{H()||m.target.closest(".tilburg-tooltip__popup")||(n()?h():u())};return e.addEventListener("mouseenter",p),e.addEventListener("mouseleave",j),e.addEventListener("focusin",_),e.addEventListener("focusout",f),e.addEventListener("click",g),()=>{h(),e.removeEventListener("mouseenter",p),e.removeEventListener("mouseleave",j),e.removeEventListener("focusin",_),e.removeEventListener("focusout",f),e.removeEventListener("click",g)}}function ae(e=typeof document<"u"?document:null){e&&e.querySelectorAll(`.tilburg-tooltip[${At}]:not([${K}])`).forEach(r=>{r.setAttribute(K,""),ze(r)})}typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>ae()):ae());const Xe=({content:e,placement:r="above",className:t,children:i})=>{const n=s.useRef(null),l=s.useId();s.useEffect(()=>n.current?ze(n.current):void 0,[]);const o=s.isValidElement(i)?s.cloneElement(i,{"aria-describedby":[i.props["aria-describedby"],l].filter(Boolean).join(" ")}):i;return a.jsxs("span",{ref:n,className:d("tilburg-tooltip",r==="below"&&"tilburg-tooltip--below",t),children:[o,a.jsx("span",{className:"tilburg-tooltip__popup",id:l,role:"tooltip",children:e})]})};Xe.displayName="Tooltip";const Ke=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("ul",{ref:i,className:d("utrecht-unordered-list","utrecht-unordered-list--html-ul","tilburg-unordered-list",e),...t,children:r}));Ke.displayName="UnorderedList";const Je=s.forwardRef(({className:e,children:r,...t},i)=>a.jsx("li",{ref:i,className:d("utrecht-unordered-list__item",e),...t,children:r}));Je.displayName="UnorderedListItem";const Ht=()=>a.jsx("svg",{"aria-hidden":"true",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:a.jsx("path",{d:"M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm1 13H9v-2h2v2Zm0-4H9V5h2v5Z"})}),Bt=()=>a.jsx("svg",{"aria-hidden":"true",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:a.jsx("path",{d:"M10 1 1 19h18L10 1Zm0 5 1 7h-2l1-7Zm0 9a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"})}),Pt={error:a.jsx(Ht,{}),warning:a.jsx(Bt,{})},Ft={assertive:"alert",polite:"status",off:void 0},Qe=s.forwardRef(({type:e="error",ariaLive:r="assertive",icon:t,className:i,children:n,...l},o)=>{const c=e==="error",u=e==="warning",h=t===void 0?Pt[e]:t;return a.jsxs("div",{ref:o,role:Ft[r],"aria-live":r,className:d("tilburg-validation-message",c&&"utrecht-form-field-error-message",c&&"tilburg-validation-message--error",u&&"utrecht-form-field-description",u&&"utrecht-form-field-description--warning",u&&"tilburg-validation-message--warning",i),...l,children:[a.jsx("span",{className:"tilburg-validation-message__icon","aria-hidden":"true",children:h}),a.jsx("span",{children:n})]})});Qe.displayName="ValidationMessage";exports.Accordion=re;exports.AccordionSection=ie;exports.Alert=se;exports.AlertDialog=ne;exports.Article=le;exports.BadgeStatus=oe;exports.Breadcrumb=ce;exports.Button=Z;exports.ButtonGroup=de;exports.ButtonLink=ue;exports.Checkbox=he;exports.Combobox=me;exports.DataList=be;exports.DataListItem=fe;exports.DataListKey=ge;exports.DataListValue=pe;exports.Document=xe;exports.Fieldset=ve;exports.FormField=_e;exports.FormFieldDescription=Ne;exports.FormLabel=je;exports.Heading1=B;exports.Heading2=P;exports.Heading3=F;exports.Heading4=O;exports.Heading5=$;exports.Heading6=G;exports.HtmlContent=we;exports.LanguageToggle=ye;exports.Link=ke;exports.LoadingSpinner=Le;exports.Modal=W;exports.OrderedList=Ce;exports.Page=Re;exports.PageContent=Ee;exports.PageFooter=Te;exports.PageHeader=Ae;exports.Pagination=Se;exports.Paragraph=Me;exports.PasswordInput=Ie;exports.ProgressBar=De;exports.RadioButton=He;exports.Select=Be;exports.Separator=Pe;exports.SkipLink=Fe;exports.Table=Oe;exports.TableBody=$e;exports.TableCaption=Ge;exports.TableCell=Ve;exports.TableFooter=Ze;exports.TableHeader=We;exports.TableHeaderCell=Ue;exports.TableRow=Ye;exports.Textarea=qe;exports.Textbox=U;exports.Tooltip=Xe;exports.UnorderedList=Ke;exports.UnorderedListItem=Je;exports.ValidationMessage=Qe;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export { Accordion, AccordionSection } from './Accordion';
|
|
2
|
+
export type { AccordionProps, AccordionSectionProps } from './Accordion';
|
|
3
|
+
export { Alert } from './Alert';
|
|
4
|
+
export type { AlertLiveRegion, AlertProps, AlertVariant } from './Alert';
|
|
5
|
+
export { AlertDialog } from './AlertDialog';
|
|
6
|
+
export type { AlertDialogProps } from './AlertDialog';
|
|
7
|
+
export { Article } from './Article';
|
|
8
|
+
export type { ArticleProps } from './Article';
|
|
9
|
+
export { BadgeStatus } from './BadgeStatus';
|
|
10
|
+
export type { BadgeStatusProps } from './BadgeStatus';
|
|
11
|
+
export { Breadcrumb } from './Breadcrumb';
|
|
12
|
+
export type { BreadcrumbItem, BreadcrumbProps } from './Breadcrumb';
|
|
13
|
+
export { Button } from './Button';
|
|
14
|
+
export type { ButtonAppearance, ButtonProps, ButtonSize } from './Button';
|
|
15
|
+
export { ButtonGroup } from './ButtonGroup';
|
|
16
|
+
export type { ButtonGroupProps } from './ButtonGroup';
|
|
17
|
+
export { ButtonLink } from './ButtonLink';
|
|
18
|
+
export type { ButtonLinkAppearance, ButtonLinkProps } from './ButtonLink';
|
|
19
|
+
export { Checkbox } from './Checkbox';
|
|
20
|
+
export type { CheckboxProps } from './Checkbox';
|
|
21
|
+
export { Combobox } from './Combobox';
|
|
22
|
+
export type { ComboboxItem, ComboboxProps, MultiComboboxProps, SingleComboboxProps } from './Combobox';
|
|
23
|
+
export { DataList, DataListItem, DataListKey, DataListValue } from './DataList';
|
|
24
|
+
export type { DataListItemProps, DataListKeyProps, DataListProps, DataListValueProps } from './DataList';
|
|
25
|
+
export { Document } from './Document';
|
|
26
|
+
export type { DocumentProps } from './Document';
|
|
27
|
+
export { Fieldset } from './Fieldset';
|
|
28
|
+
export type { FieldsetProps } from './Fieldset';
|
|
29
|
+
export { FormField } from './FormField';
|
|
30
|
+
export type { FormFieldProps } from './FormField';
|
|
31
|
+
export { FormFieldDescription } from './FormFieldDescription';
|
|
32
|
+
export type { FormFieldDescriptionProps } from './FormFieldDescription';
|
|
33
|
+
export { FormLabel } from './FormLabel';
|
|
34
|
+
export type { FormLabelProps, FormLabelType } from './FormLabel';
|
|
35
|
+
export { Heading1 } from './Heading1';
|
|
36
|
+
export type { Heading1Props } from './Heading1';
|
|
37
|
+
export { Heading2 } from './Heading2';
|
|
38
|
+
export type { Heading2Props } from './Heading2';
|
|
39
|
+
export { Heading3 } from './Heading3';
|
|
40
|
+
export type { Heading3Props } from './Heading3';
|
|
41
|
+
export { Heading4 } from './Heading4';
|
|
42
|
+
export type { Heading4Props } from './Heading4';
|
|
43
|
+
export { Heading5 } from './Heading5';
|
|
44
|
+
export type { Heading5Props } from './Heading5';
|
|
45
|
+
export { Heading6 } from './Heading6';
|
|
46
|
+
export type { Heading6Props } from './Heading6';
|
|
47
|
+
export { HtmlContent } from './HtmlContent';
|
|
48
|
+
export type { HtmlContentProps } from './HtmlContent';
|
|
49
|
+
export { LanguageToggle } from './LanguageToggle';
|
|
50
|
+
export type { LanguageOption, LanguageToggleProps } from './LanguageToggle';
|
|
51
|
+
export { Link } from './Link';
|
|
52
|
+
export type { AriaCurrent, LinkProps } from './Link';
|
|
53
|
+
export { LoadingSpinner } from './LoadingSpinner';
|
|
54
|
+
export type { LoadingSpinnerProps } from './LoadingSpinner';
|
|
55
|
+
export { Modal } from './Modal';
|
|
56
|
+
export type { ModalProps } from './Modal';
|
|
57
|
+
export { OrderedList } from './OrderedList';
|
|
58
|
+
export type { OrderedListProps } from './OrderedList';
|
|
59
|
+
export { Page } from './Page';
|
|
60
|
+
export type { PageProps } from './Page';
|
|
61
|
+
export { PageContent } from './PageContent';
|
|
62
|
+
export type { PageContentProps } from './PageContent';
|
|
63
|
+
export { PageFooter } from './PageFooter';
|
|
64
|
+
export type { PageFooterLink, PageFooterProps } from './PageFooter';
|
|
65
|
+
export { PageHeader } from './PageHeader';
|
|
66
|
+
export type { PageHeaderProps } from './PageHeader';
|
|
67
|
+
export { Pagination } from './Pagination';
|
|
68
|
+
export type { PaginationEvent, PaginationProps, PaginationStep } from './Pagination';
|
|
69
|
+
export { PasswordInput } from './PasswordInput';
|
|
70
|
+
export type { PasswordInputProps } from './PasswordInput';
|
|
71
|
+
export { Paragraph } from './Paragraph';
|
|
72
|
+
export type { ParagraphProps } from './Paragraph';
|
|
73
|
+
export { ProgressBar } from './ProgressBar';
|
|
74
|
+
export type { ProgressBarProps } from './ProgressBar';
|
|
75
|
+
export { RadioButton } from './RadioButton';
|
|
76
|
+
export type { RadioButtonProps } from './RadioButton';
|
|
77
|
+
export { Select } from './Select';
|
|
78
|
+
export type { SelectProps } from './Select';
|
|
79
|
+
export { Separator } from './Separator';
|
|
80
|
+
export type { SeparatorProps } from './Separator';
|
|
81
|
+
export { SkipLink } from './SkipLink';
|
|
82
|
+
export type { SkipLinkProps, SkipLinkVisibility } from './SkipLink';
|
|
83
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHeader, TableHeaderCell, TableRow, } from './Table';
|
|
84
|
+
export type { TableBodyProps, TableCaptionProps, TableCellProps, TableFooterProps, TableHeaderCellProps, TableHeaderProps, TableProps, TableRowProps, } from './Table';
|
|
85
|
+
export { Textarea } from './Textarea';
|
|
86
|
+
export type { TextareaProps } from './Textarea';
|
|
87
|
+
export { Textbox } from './Textbox';
|
|
88
|
+
export type { TextboxProps } from './Textbox';
|
|
89
|
+
export { Tooltip } from './Tooltip';
|
|
90
|
+
export type { TooltipPlacement, TooltipProps } from './Tooltip';
|
|
91
|
+
export { UnorderedList, UnorderedListItem } from './UnorderedList';
|
|
92
|
+
export type { UnorderedListItemProps, UnorderedListProps } from './UnorderedList';
|
|
93
|
+
export { ValidationMessage } from './ValidationMessage';
|
|
94
|
+
export type { ValidationLiveRegion, ValidationMessageProps, ValidationMessageType } from './ValidationMessage';
|