@utrecht/component-library-react 1.0.0-alpha.11 → 1.0.0-alpha.110

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.
Files changed (88) hide show
  1. package/README.md +27 -3
  2. package/dist/cjs/Article.d.ts +3 -1
  3. package/dist/cjs/Article.js +1 -1
  4. package/dist/cjs/Backdrop.d.ts +3 -1
  5. package/dist/cjs/Backdrop.js +1 -1
  6. package/dist/cjs/Button.d.ts +22 -1
  7. package/dist/cjs/Button.js +22 -4
  8. package/dist/cjs/ButtonLink.d.ts +13 -0
  9. package/dist/cjs/ButtonLink.js +47 -0
  10. package/dist/cjs/Checkbox.js +1 -1
  11. package/dist/cjs/CustomRadioButton.d.ts +13 -0
  12. package/dist/cjs/CustomRadioButton.js +29 -0
  13. package/dist/cjs/Document.d.ts +3 -1
  14. package/dist/cjs/Document.js +1 -1
  15. package/dist/cjs/Fieldset.d.ts +3 -1
  16. package/dist/cjs/Fieldset.js +1 -1
  17. package/dist/cjs/FieldsetLegend.d.ts +3 -1
  18. package/dist/cjs/FieldsetLegend.js +1 -1
  19. package/dist/cjs/FormField.d.ts +3 -1
  20. package/dist/cjs/FormField.js +1 -1
  21. package/dist/cjs/FormFieldDescription.d.ts +3 -1
  22. package/dist/cjs/FormFieldDescription.js +1 -1
  23. package/dist/cjs/FormLabel.d.ts +3 -1
  24. package/dist/cjs/FormLabel.js +1 -1
  25. package/dist/cjs/HTMLContent.d.ts +3 -1
  26. package/dist/cjs/HTMLContent.js +1 -1
  27. package/dist/cjs/Heading1.d.ts +3 -1
  28. package/dist/cjs/Heading1.js +1 -1
  29. package/dist/cjs/Heading2.d.ts +3 -1
  30. package/dist/cjs/Heading2.js +1 -1
  31. package/dist/cjs/Heading3.d.ts +3 -1
  32. package/dist/cjs/Heading3.js +1 -1
  33. package/dist/cjs/Heading4.d.ts +3 -1
  34. package/dist/cjs/Heading4.js +1 -1
  35. package/dist/cjs/Heading5.d.ts +3 -1
  36. package/dist/cjs/Heading5.js +1 -1
  37. package/dist/cjs/Heading6.d.ts +3 -1
  38. package/dist/cjs/Heading6.js +1 -1
  39. package/dist/cjs/Link.d.ts +3 -6
  40. package/dist/cjs/Link.js +3 -10
  41. package/dist/cjs/OrderedList.d.ts +3 -1
  42. package/dist/cjs/OrderedList.js +1 -1
  43. package/dist/cjs/OrderedListItem.d.ts +3 -1
  44. package/dist/cjs/OrderedListItem.js +1 -1
  45. package/dist/cjs/Page.d.ts +3 -1
  46. package/dist/cjs/Page.js +1 -1
  47. package/dist/cjs/PageContent.d.ts +6 -2
  48. package/dist/cjs/PageContent.js +2 -2
  49. package/dist/cjs/PageFooter.d.ts +3 -1
  50. package/dist/cjs/PageFooter.js +1 -1
  51. package/dist/cjs/PageHeader.d.ts +3 -1
  52. package/dist/cjs/PageHeader.js +1 -1
  53. package/dist/cjs/Paragraph.d.ts +3 -1
  54. package/dist/cjs/Paragraph.js +1 -1
  55. package/dist/cjs/RadioButton.js +3 -3
  56. package/dist/cjs/Select.d.ts +10 -2
  57. package/dist/cjs/Select.js +4 -5
  58. package/dist/cjs/Separator.js +1 -1
  59. package/dist/cjs/Surface.d.ts +3 -1
  60. package/dist/cjs/Surface.js +1 -1
  61. package/dist/cjs/Table.d.ts +3 -1
  62. package/dist/cjs/Table.js +1 -1
  63. package/dist/cjs/TableBody.d.ts +3 -1
  64. package/dist/cjs/TableBody.js +1 -1
  65. package/dist/cjs/TableCaption.d.ts +3 -1
  66. package/dist/cjs/TableCaption.js +1 -1
  67. package/dist/cjs/TableCell.d.ts +3 -1
  68. package/dist/cjs/TableCell.js +1 -1
  69. package/dist/cjs/TableFooter.d.ts +3 -1
  70. package/dist/cjs/TableFooter.js +1 -1
  71. package/dist/cjs/TableHeader.d.ts +3 -1
  72. package/dist/cjs/TableHeader.js +1 -1
  73. package/dist/cjs/TableHeaderCell.d.ts +3 -1
  74. package/dist/cjs/TableHeaderCell.js +1 -1
  75. package/dist/cjs/TableRow.d.ts +3 -1
  76. package/dist/cjs/TableRow.js +1 -1
  77. package/dist/cjs/Textarea.js +1 -1
  78. package/dist/cjs/Textbox.js +2 -2
  79. package/dist/cjs/URLValue.d.ts +3 -1
  80. package/dist/cjs/URLValue.js +1 -1
  81. package/dist/cjs/UnorderedList.d.ts +3 -1
  82. package/dist/cjs/UnorderedList.js +1 -1
  83. package/dist/cjs/UnorderedListItem.d.ts +3 -1
  84. package/dist/cjs/UnorderedListItem.js +1 -1
  85. package/dist/cjs/index.d.ts +3 -1
  86. package/dist/cjs/index.js +8 -1
  87. package/dist/cjs/tsconfig.tsbuildinfo +4129 -623
  88. package/package.json +208 -56
package/README.md CHANGED
@@ -45,11 +45,11 @@ import { Document } from "@utrecht/component-library-react/Document";
45
45
  import { Heading1 } from "@utrecht/component-library-react/Heading1";
46
46
 
47
47
  // Package with CSS for white-label components
48
- import "@utrecht/component-library-css/dist/bem.css";
48
+ import "@utrecht/component-library-css";
49
49
 
50
50
  // Package with Utrecht design tokens for the white-label components
51
- // Substitute with your another theme for other organisations.
52
- import "@utrecht/design-tokens/dist/theme/index.css";
51
+ // Substitute with your another theme for other organizations.
52
+ import "@utrecht/design-tokens/dist/index.css";
53
53
 
54
54
  export const MyPage = () => (
55
55
  // Class name to apply the design tokens from the theme
@@ -59,6 +59,30 @@ export const MyPage = () => (
59
59
  );
60
60
  ```
61
61
 
62
+ Only when you use the `<HTMLContent/>` component, you should import the `html.css` from the `component-library-css`
63
+
64
+ ```jsx
65
+ import { HTMLContent } from "@utrecht/component-library-react";
66
+
67
+ import "@utrecht/component-library-css/dist/html.css";
68
+ import "@utrecht/design-tokens/dist/index.css";
69
+
70
+ export const MyPage = () => (
71
+ // Class name to apply the design tokens from the theme
72
+ <HTMLContent
73
+ className="utrecht-theme"
74
+ dangerouslySetInnerHTML={{
75
+ _html: `<h1>Heading 1</h1>
76
+ <h2>Heading 2</h2>
77
+ <h3>Heading 3</h3>
78
+ <h4>Heading 4</h4>
79
+ <h5>Heading 5</h5>
80
+ <h6>Heading 6</h6>`,
81
+ }}
82
+ />
83
+ );
84
+ ```
85
+
62
86
  ## Components overview
63
87
 
64
88
  We make components for React available when needed in a project. Not every component is available yet, and we welcome you to discuss contributions.
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type ArticleProps = HTMLAttributes<HTMLElement>;
7
- export declare const Article: import("react").ForwardRefExoticComponent<ArticleProps & import("react").RefAttributes<HTMLElement>>;
7
+ export declare const Article: import("react").ForwardRefExoticComponent<ArticleProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLElement>>;
@@ -26,4 +26,4 @@ exports.Article = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("article", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-article', className) }, { children: children }), void 0));
28
28
  });
29
- exports.Article.displayName = 'utrecht-article';
29
+ exports.Article.displayName = 'Article';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type BackdropProps = HTMLAttributes<HTMLDivElement>;
7
- export declare const Backdrop: import("react").ForwardRefExoticComponent<BackdropProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const Backdrop: import("react").ForwardRefExoticComponent<BackdropProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -26,4 +26,4 @@ exports.Backdrop = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-backdrop', className) }, { children: children }), void 0));
28
28
  });
29
- exports.Backdrop.displayName = 'utrecht-backdrop';
29
+ exports.Backdrop.displayName = 'Backdrop';
@@ -1,5 +1,26 @@
1
1
  import { ButtonHTMLAttributes } from 'react';
2
2
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
3
+ appearance?: string;
3
4
  busy?: boolean;
4
5
  }
5
- export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
6
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & {
7
+ children?: import("react").ReactNode;
8
+ } & import("react").RefAttributes<HTMLButtonElement>>;
9
+ export declare const PrimaryActionButton: {
10
+ ({ ...args }: {
11
+ [x: string]: any;
12
+ }): JSX.Element;
13
+ displayName: string;
14
+ };
15
+ export declare const SecondaryActionButton: {
16
+ ({ ...args }: {
17
+ [x: string]: any;
18
+ }): JSX.Element;
19
+ displayName: string;
20
+ };
21
+ export declare const SubtleButton: {
22
+ ({ ...args }: {
23
+ [x: string]: any;
24
+ }): JSX.Element;
25
+ displayName: string;
26
+ };
@@ -14,12 +14,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.Button = void 0;
17
+ exports.SubtleButton = exports.SecondaryActionButton = exports.PrimaryActionButton = exports.Button = void 0;
18
18
  const jsx_runtime_1 = require("react/jsx-runtime");
19
19
  const clsx_1 = __importDefault(require("clsx"));
20
20
  const react_1 = require("react");
21
21
  exports.Button = react_1.forwardRef((_a, ref) => {
22
- var { busy, disabled, children, className, type } = _a, restProps = __rest(_a, ["busy", "disabled", "children", "className", "type"]);
23
- return (jsx_runtime_1.jsx("button", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-button', busy && 'utrecht-button--busy', disabled && 'utrecht-button--disabled', type === 'submit' && 'utrecht-button--submit', className), "aria-busy": busy || undefined, disabled: disabled, type: type || 'button' }, { children: children }), void 0));
22
+ var { appearance, busy, disabled, children, className, type } = _a, restProps = __rest(_a, ["appearance", "busy", "disabled", "children", "className", "type"]);
23
+ return (jsx_runtime_1.jsx("button", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-button', busy && 'utrecht-button--busy', disabled && 'utrecht-button--disabled', type === 'submit' && 'utrecht-button--submit', appearance === 'primary-action-button' && 'utrecht-button--primary-action', appearance === 'secondary-action-button' && 'utrecht-button--secondary-action', appearance === 'subtle-button' && 'utrecht-button--subtle', className), "aria-busy": busy || undefined, disabled: disabled, type: type || 'button' }, { children: children }), void 0));
24
24
  });
25
- exports.Button.displayName = 'utrecht-button';
25
+ exports.Button.displayName = 'Button';
26
+ const PrimaryActionButton = (_a) => {
27
+ var args = __rest(_a, []);
28
+ return jsx_runtime_1.jsx(exports.Button, Object.assign({}, args, { appearance: "primary-action-button" }), void 0);
29
+ };
30
+ exports.PrimaryActionButton = PrimaryActionButton;
31
+ exports.PrimaryActionButton.displayName = 'PrimaryActionButton';
32
+ const SecondaryActionButton = (_a) => {
33
+ var args = __rest(_a, []);
34
+ return jsx_runtime_1.jsx(exports.Button, Object.assign({}, args, { appearance: "secondary-action-button" }), void 0);
35
+ };
36
+ exports.SecondaryActionButton = SecondaryActionButton;
37
+ exports.SecondaryActionButton.displayName = 'SecondaryActionButton';
38
+ const SubtleButton = (_a) => {
39
+ var args = __rest(_a, []);
40
+ return jsx_runtime_1.jsx(exports.Button, Object.assign({}, args, { appearance: "subtle-button" }), void 0);
41
+ };
42
+ exports.SubtleButton = SubtleButton;
43
+ exports.SubtleButton.displayName = 'SubtleButton';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Gemeente Utrecht
4
+ * Copyright (c) 2021 Robbert Broersma
5
+ */
6
+ import { AnchorHTMLAttributes } from 'react';
7
+ interface ButtonLinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
8
+ external?: boolean;
9
+ }
10
+ export declare const ButtonLink: import("react").ForwardRefExoticComponent<ButtonLinkProps & {
11
+ children?: import("react").ReactNode;
12
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
13
+ export {};
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ButtonLink = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ /**
20
+ * @license EUPL-1.2
21
+ * Copyright (c) 2021 Gemeente Utrecht
22
+ * Copyright (c) 2021 Robbert Broersma
23
+ */
24
+ const clsx_1 = __importDefault(require("clsx"));
25
+ const react_1 = require("react");
26
+ const onKeyDown = (evt) => {
27
+ var _a;
28
+ if (evt.key === ' ' && typeof ((_a = evt.target) === null || _a === void 0 ? void 0 : _a.click) === 'function') {
29
+ // Prevent other side-effects, such as scrolling
30
+ evt.preventDefault();
31
+ // Navigate to the link target
32
+ evt.target.click();
33
+ }
34
+ };
35
+ exports.ButtonLink = react_1.forwardRef((_a, ref) => {
36
+ var { children, className, external, role } = _a, restProps = __rest(_a, ["children", "className", "external", "role"]);
37
+ let props = restProps;
38
+ if (role === 'button') {
39
+ // When this link is announced as button by accessibility tools,
40
+ // it should also behave like a button. Links are not activated
41
+ // using `Space`, so we need to implement that behaviour here
42
+ // to reach parity with the `button` element.
43
+ props = Object.assign(Object.assign({}, restProps), { onKeyDown });
44
+ }
45
+ return (jsx_runtime_1.jsx("a", Object.assign({}, props, { ref: ref, role: role, className: clsx_1.default('utrecht-button-link', 'utrecht-button-link--html-button', { 'utrecht-button-link--external': external }, className), rel: external ? 'external noopener noreferrer' : undefined }, { children: children }), void 0));
46
+ });
47
+ exports.ButtonLink.displayName = 'ButtonLink';
@@ -22,4 +22,4 @@ exports.Checkbox = react_1.forwardRef((_a, ref) => {
22
22
  var { disabled, invalid, required, className } = _a, restProps = __rest(_a, ["disabled", "invalid", "required", "className"]);
23
23
  return (jsx_runtime_1.jsx("input", Object.assign({}, restProps, { ref: ref, type: "checkbox", className: clsx_1.default('utrecht-checkbox', 'utrecht-checkbox--html-input', disabled && 'utrecht-checkbox--disabled', invalid && 'utrecht-checkbox--invalid', required && 'utrecht-checkbox--required', className), "aria-invalid": invalid || undefined, disabled: disabled, required: required }), void 0));
24
24
  });
25
- exports.Checkbox.displayName = 'utrecht-checkbox';
25
+ exports.Checkbox.displayName = 'Checkbox';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license EUPL-1.2
3
+ * Copyright (c) 2021 Robbert Broersma
4
+ */
5
+ import { InputHTMLAttributes } from 'react';
6
+ export declare type CustomRadioButtonProps = InputHTMLAttributes<HTMLInputElement> & {
7
+ invalid?: boolean;
8
+ };
9
+ export declare const CustomRadioButton: import("react").ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
10
+ invalid?: boolean | undefined;
11
+ } & {
12
+ children?: import("react").ReactNode;
13
+ } & import("react").RefAttributes<HTMLInputElement>>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.CustomRadioButton = void 0;
18
+ const jsx_runtime_1 = require("react/jsx-runtime");
19
+ /**
20
+ * @license EUPL-1.2
21
+ * Copyright (c) 2021 Robbert Broersma
22
+ */
23
+ const clsx_1 = __importDefault(require("clsx"));
24
+ const react_1 = require("react");
25
+ exports.CustomRadioButton = react_1.forwardRef((_a, ref) => {
26
+ var { disabled, required, className, invalid } = _a, restProps = __rest(_a, ["disabled", "required", "className", "invalid"]);
27
+ return (jsx_runtime_1.jsx("input", Object.assign({ type: "radio", "aria-invalid": invalid || undefined, disabled: disabled, required: required, ref: ref, className: clsx_1.default('utrecht-custom-radio-button', disabled && 'utrecht-custom-radio-button--disabled', invalid && 'utrecht-custom-radio-button--invalid', className) }, restProps), void 0));
28
+ });
29
+ exports.CustomRadioButton.displayName = 'CustomRadioButton';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type DocumentProps = HTMLAttributes<HTMLDivElement>;
7
- export declare const Document: import("react").ForwardRefExoticComponent<DocumentProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const Document: import("react").ForwardRefExoticComponent<DocumentProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -26,4 +26,4 @@ exports.Document = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-document', className) }, { children: children }), void 0));
28
28
  });
29
- exports.Document.displayName = 'utrecht-document';
29
+ exports.Document.displayName = 'Document';
@@ -1,3 +1,5 @@
1
1
  import { FieldsetHTMLAttributes } from 'react';
2
2
  export declare type FieldsetProps = FieldsetHTMLAttributes<HTMLFieldSetElement>;
3
- export declare const Fieldset: import("react").ForwardRefExoticComponent<FieldsetProps & import("react").RefAttributes<HTMLFieldSetElement>>;
3
+ export declare const Fieldset: import("react").ForwardRefExoticComponent<FieldsetProps & {
4
+ children?: import("react").ReactNode;
5
+ } & import("react").RefAttributes<HTMLFieldSetElement>>;
@@ -22,4 +22,4 @@ exports.Fieldset = react_1.forwardRef((_a, ref) => {
22
22
  var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
23
23
  return (jsx_runtime_1.jsx("fieldset", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-form-fieldset', 'utrecht-form-fieldset--reset-fieldset', className) }, { children: children }), void 0));
24
24
  });
25
- exports.Fieldset.displayName = 'utrecht-form-fieldset';
25
+ exports.Fieldset.displayName = 'Fieldset';
@@ -1,3 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export declare type FieldsetLegendProps = HTMLAttributes<HTMLLegendElement>;
3
- export declare const FieldsetLegend: import("react").ForwardRefExoticComponent<FieldsetLegendProps & import("react").RefAttributes<HTMLLegendElement>>;
3
+ export declare const FieldsetLegend: import("react").ForwardRefExoticComponent<FieldsetLegendProps & {
4
+ children?: import("react").ReactNode;
5
+ } & import("react").RefAttributes<HTMLLegendElement>>;
@@ -22,4 +22,4 @@ exports.FieldsetLegend = react_1.forwardRef((_a, ref) => {
22
22
  var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
23
23
  return (jsx_runtime_1.jsx("legend", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-form-fieldset__legend', 'utrecht-form-fieldset__legend--reset-legend', className) }, { children: children }), void 0));
24
24
  });
25
- exports.FieldsetLegend.displayName = 'utrecht-form-fieldset-legend';
25
+ exports.FieldsetLegend.displayName = 'FieldsetLegend';
@@ -1,3 +1,5 @@
1
1
  import { HTMLAttributes } from 'react';
2
2
  export declare type FormFieldProps = HTMLAttributes<HTMLDivElement>;
3
- export declare const FormField: import("react").ForwardRefExoticComponent<FormFieldProps & import("react").RefAttributes<HTMLDivElement>>;
3
+ export declare const FormField: import("react").ForwardRefExoticComponent<FormFieldProps & {
4
+ children?: import("react").ReactNode;
5
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -22,4 +22,4 @@ exports.FormField = react_1.forwardRef((_a, ref) => {
22
22
  var { className, children } = _a, restProps = __rest(_a, ["className", "children"]);
23
23
  return (jsx_runtime_1.jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-form-field', 'utrecht-form-field--distanced', className) }, { children: children }), void 0));
24
24
  });
25
- exports.FormField.displayName = 'utrecht-form-field';
25
+ exports.FormField.displayName = 'FormField';
@@ -4,4 +4,6 @@ export interface FormFieldDescriptionProps extends HTMLAttributes<HTMLDivElement
4
4
  valid?: boolean;
5
5
  warning?: boolean;
6
6
  }
7
- export declare const FormFieldDescription: import("react").ForwardRefExoticComponent<FormFieldDescriptionProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const FormFieldDescription: import("react").ForwardRefExoticComponent<FormFieldDescriptionProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -22,4 +22,4 @@ exports.FormFieldDescription = react_1.forwardRef((_a, ref) => {
22
22
  var { invalid, valid, warning, className, children } = _a, restProps = __rest(_a, ["invalid", "valid", "warning", "className", "children"]);
23
23
  return (jsx_runtime_1.jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-form-field-description', invalid && 'utrecht-form-field-description--invalid', valid && 'utrecht-form-field-description--valid', warning && 'utrecht-form-field-description--warning', className) }, { children: children }), void 0));
24
24
  });
25
- exports.FormFieldDescription.displayName = 'utrecht-form-field-description';
25
+ exports.FormFieldDescription.displayName = 'FormFieldDescription';
@@ -5,4 +5,6 @@ export interface FormLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
5
5
  disabled?: boolean;
6
6
  checked?: boolean;
7
7
  }
8
- export declare const FormLabel: import("react").ForwardRefExoticComponent<FormLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
8
+ export declare const FormLabel: import("react").ForwardRefExoticComponent<FormLabelProps & {
9
+ children?: import("react").ReactNode;
10
+ } & import("react").RefAttributes<HTMLLabelElement>>;
@@ -22,4 +22,4 @@ exports.FormLabel = react_1.forwardRef((_a, ref) => {
22
22
  var { children, className, type, disabled, checked } = _a, restProps = __rest(_a, ["children", "className", "type", "disabled", "checked"]);
23
23
  return (jsx_runtime_1.jsx("label", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-form-label', type && `utrecht-form-label--${type}`, disabled && 'utrecht-form-label--disabled', checked && 'utrecht-form-label--checked', className) }, { children: children }), void 0));
24
24
  });
25
- exports.FormLabel.displayName = 'utrecht-form-label';
25
+ exports.FormLabel.displayName = 'FormLabel';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type HTMLContentProps = HTMLAttributes<HTMLDivElement>;
7
- export declare const HTMLContent: import("react").ForwardRefExoticComponent<HTMLContentProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const HTMLContent: import("react").ForwardRefExoticComponent<HTMLContentProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -26,4 +26,4 @@ exports.HTMLContent = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-html', className) }, { children: children }), void 0));
28
28
  });
29
- exports.HTMLContent.displayName = 'utrecht-html';
29
+ exports.HTMLContent.displayName = 'HTMLContent';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type Heading1Props = HTMLAttributes<HTMLHeadingElement>;
7
- export declare const Heading1: import("react").ForwardRefExoticComponent<Heading1Props & import("react").RefAttributes<HTMLHeadingElement>>;
7
+ export declare const Heading1: import("react").ForwardRefExoticComponent<Heading1Props & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -26,4 +26,4 @@ exports.Heading1 = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("h1", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-heading-1', className) }, { children: children }), void 0));
28
28
  });
29
- exports.Heading1.displayName = 'utrecht-heading-1';
29
+ exports.Heading1.displayName = 'Heading1';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type Heading2Props = HTMLAttributes<HTMLHeadingElement>;
7
- export declare const Heading2: import("react").ForwardRefExoticComponent<Heading2Props & import("react").RefAttributes<HTMLHeadingElement>>;
7
+ export declare const Heading2: import("react").ForwardRefExoticComponent<Heading2Props & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -26,4 +26,4 @@ exports.Heading2 = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("h2", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-heading-2', className) }, { children: children }), void 0));
28
28
  });
29
- exports.Heading2.displayName = 'utrecht-heading-2';
29
+ exports.Heading2.displayName = 'Heading2';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type Heading3Props = HTMLAttributes<HTMLHeadingElement>;
7
- export declare const Heading3: import("react").ForwardRefExoticComponent<Heading3Props & import("react").RefAttributes<HTMLHeadingElement>>;
7
+ export declare const Heading3: import("react").ForwardRefExoticComponent<Heading3Props & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -26,4 +26,4 @@ exports.Heading3 = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("h3", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-heading-3', className) }, { children: children }), void 0));
28
28
  });
29
- exports.Heading3.displayName = 'utrecht-heading-3';
29
+ exports.Heading3.displayName = 'Heading3';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type Heading4Props = HTMLAttributes<HTMLHeadingElement>;
7
- export declare const Heading4: import("react").ForwardRefExoticComponent<Heading4Props & import("react").RefAttributes<HTMLHeadingElement>>;
7
+ export declare const Heading4: import("react").ForwardRefExoticComponent<Heading4Props & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -26,4 +26,4 @@ exports.Heading4 = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("h4", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-heading-4', className) }, { children: children }), void 0));
28
28
  });
29
- exports.Heading4.displayName = 'utrecht-heading-4';
29
+ exports.Heading4.displayName = 'Heading4';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type Heading5Props = HTMLAttributes<HTMLHeadingElement>;
7
- export declare const Heading5: import("react").ForwardRefExoticComponent<Heading5Props & import("react").RefAttributes<HTMLHeadingElement>>;
7
+ export declare const Heading5: import("react").ForwardRefExoticComponent<Heading5Props & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -26,4 +26,4 @@ exports.Heading5 = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("h5", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-heading-5', className) }, { children: children }), void 0));
28
28
  });
29
- exports.Heading5.displayName = 'utrecht-heading-5';
29
+ exports.Heading5.displayName = 'Heading5';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type Heading6Props = HTMLAttributes<HTMLHeadingElement>;
7
- export declare const Heading6: import("react").ForwardRefExoticComponent<Heading6Props & import("react").RefAttributes<HTMLHeadingElement>>;
7
+ export declare const Heading6: import("react").ForwardRefExoticComponent<Heading6Props & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLHeadingElement>>;
@@ -26,4 +26,4 @@ exports.Heading6 = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("h6", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-heading-6', className) }, { children: children }), void 0));
28
28
  });
29
- exports.Heading6.displayName = 'utrecht-heading-6';
29
+ exports.Heading6.displayName = 'Heading6';
@@ -5,11 +5,8 @@
5
5
  */
6
6
  import { AnchorHTMLAttributes } from 'react';
7
7
  export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
8
- activeStyle?: boolean;
9
8
  external?: boolean;
10
- focusStyle?: boolean;
11
- focusVisibleStyle?: boolean;
12
- hoverStyle?: boolean;
13
- visitedStyle?: boolean;
14
9
  }
15
- export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
10
+ export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & {
11
+ children?: import("react").ReactNode;
12
+ } & import("react").RefAttributes<HTMLAnchorElement>>;
package/dist/cjs/Link.js CHANGED
@@ -24,19 +24,12 @@ const jsx_runtime_1 = require("react/jsx-runtime");
24
24
  const clsx_1 = __importDefault(require("clsx"));
25
25
  const react_1 = require("react");
26
26
  exports.Link = react_1.forwardRef((_a, ref) => {
27
- var { children, className, activeStyle, external, focusStyle, focusVisibleStyle, hoverStyle, visitedStyle } = _a, restProps = __rest(_a, ["children", "className", "activeStyle", "external", "focusStyle", "focusVisibleStyle", "hoverStyle", "visitedStyle"]);
27
+ var { children, className, external } = _a, restProps = __rest(_a, ["children", "className", "external"]);
28
28
  return (
29
29
  // "utrecht-link--telephone" does not have a corresponding API,
30
30
  // since it is primarily a basis for implementing input[href^="tel"].
31
31
  // Telephone number rendering in React is best achieved using composition
32
32
  // of the TelephoneValue component.
33
- jsx_runtime_1.jsx("a", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-link', {
34
- 'utrecht-link--active': activeStyle,
35
- 'utrecht-link--external': external,
36
- 'utrecht-link--focus': focusStyle,
37
- 'utrecht-link--focus-visible': focusVisibleStyle,
38
- 'utrecht-link--hover': hoverStyle,
39
- 'utrecht-link--visited': visitedStyle,
40
- }, className), rel: external ? 'external noopener noreferrer' : undefined }, { children: children }), void 0));
33
+ jsx_runtime_1.jsx("a", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-link', { 'utrecht-link--external': external }, className), rel: external ? 'external noopener noreferrer' : undefined }, { children: children }), void 0));
41
34
  });
42
- exports.Link.displayName = 'utrecht-link';
35
+ exports.Link.displayName = 'Link';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { OlHTMLAttributes } from 'react';
6
6
  export declare type OrderedListProps = OlHTMLAttributes<HTMLOListElement>;
7
- export declare const OrderedList: import("react").ForwardRefExoticComponent<OrderedListProps & import("react").RefAttributes<HTMLOListElement>>;
7
+ export declare const OrderedList: import("react").ForwardRefExoticComponent<OrderedListProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLOListElement>>;
@@ -26,4 +26,4 @@ exports.OrderedList = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("ol", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-ordered-list', className) }, { children: children }), void 0));
28
28
  });
29
- exports.OrderedList.displayName = 'utrecht-ordered-list';
29
+ exports.OrderedList.displayName = 'OrderedList';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { LiHTMLAttributes } from 'react';
6
6
  export declare type OrderedListItemProps = LiHTMLAttributes<HTMLLIElement>;
7
- export declare const OrderedListItem: import("react").ForwardRefExoticComponent<OrderedListItemProps & import("react").RefAttributes<HTMLLIElement>>;
7
+ export declare const OrderedListItem: import("react").ForwardRefExoticComponent<OrderedListItemProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLLIElement>>;
@@ -26,4 +26,4 @@ exports.OrderedListItem = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("li", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-ordered-list__item', className) }, { children: children }), void 0));
28
28
  });
29
- exports.OrderedListItem.displayName = 'utrecht-ordered-list-item';
29
+ exports.OrderedListItem.displayName = 'OrderedListItem';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type PageProps = HTMLAttributes<HTMLDivElement>;
7
- export declare const Page: import("react").ForwardRefExoticComponent<PageProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const Page: import("react").ForwardRefExoticComponent<PageProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLDivElement>>;
package/dist/cjs/Page.js CHANGED
@@ -26,4 +26,4 @@ exports.Page = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-page', className) }, { children: children }), void 0));
28
28
  });
29
- exports.Page.displayName = 'utrecht-page';
29
+ exports.Page.displayName = 'Page';
@@ -4,6 +4,10 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type PageContentProps = HTMLAttributes<HTMLDivElement>;
7
- export declare const PageContent: import("react").ForwardRefExoticComponent<PageContentProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const PageContent: import("react").ForwardRefExoticComponent<PageContentProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLDivElement>>;
8
10
  export declare type PageContentMainProps = HTMLAttributes<HTMLDivElement>;
9
- export declare const PageContentMain: import("react").ForwardRefExoticComponent<PageContentMainProps & import("react").RefAttributes<HTMLDivElement>>;
11
+ export declare const PageContentMain: import("react").ForwardRefExoticComponent<PageContentMainProps & {
12
+ children?: import("react").ReactNode;
13
+ } & import("react").RefAttributes<HTMLDivElement>>;
@@ -26,9 +26,9 @@ exports.PageContent = react_1.forwardRef((_a, ref) => {
26
26
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
27
27
  return (jsx_runtime_1.jsx("div", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-page-content', className) }, { children: children }), void 0));
28
28
  });
29
- exports.PageContent.displayName = 'utrecht-page-content';
29
+ exports.PageContent.displayName = 'PageContent';
30
30
  exports.PageContentMain = react_1.forwardRef((_a, ref) => {
31
31
  var { children, className } = _a, restProps = __rest(_a, ["children", "className"]);
32
32
  return (jsx_runtime_1.jsx("main", Object.assign({}, restProps, { ref: ref, className: clsx_1.default('utrecht-page-content__main', className) }, { children: children }), void 0));
33
33
  });
34
- exports.PageContentMain.displayName = 'utrecht-page-content-main';
34
+ exports.PageContentMain.displayName = 'PageContentMain';
@@ -4,4 +4,6 @@
4
4
  */
5
5
  import { HTMLAttributes } from 'react';
6
6
  export declare type PageFooterProps = HTMLAttributes<HTMLDivElement>;
7
- export declare const PageFooter: import("react").ForwardRefExoticComponent<PageFooterProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export declare const PageFooter: import("react").ForwardRefExoticComponent<PageFooterProps & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLDivElement>>;